diff --git a/bower.json b/bower.json index 7404d2fb..88fe030e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "devextreme", - "version": "19.1.11", + "version": "19.1.12-build-20155-0314", "description": "A blazing-fast HTML5 Data Grid and rich libraries of high-performance touch-enabled data vizualization and UI widgets", "moduleType": [ "globals" diff --git a/css/dx.carmine.compact.css b/css/dx.carmine.compact.css index 355cb84a..9b90f6e4 100644 --- a/css/dx.carmine.compact.css +++ b/css/dx.carmine.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.carmine.css b/css/dx.carmine.css index 79f14938..66ff0c5d 100644 --- a/css/dx.carmine.css +++ b/css/dx.carmine.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.common.css b/css/dx.common.css index 8289b567..3690de66 100644 --- a/css/dx.common.css +++ b/css/dx.common.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.contrast.compact.css b/css/dx.contrast.compact.css index c0501884..6ee7207b 100644 --- a/css/dx.contrast.compact.css +++ b/css/dx.contrast.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.contrast.css b/css/dx.contrast.css index 4b4c03cd..56d9345a 100644 --- a/css/dx.contrast.css +++ b/css/dx.contrast.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.dark.compact.css b/css/dx.dark.compact.css index 59ca7b9a..fac13c7d 100644 --- a/css/dx.dark.compact.css +++ b/css/dx.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.dark.css b/css/dx.dark.css index 199a3b50..89692e2f 100644 --- a/css/dx.dark.css +++ b/css/dx.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.darkmoon.compact.css b/css/dx.darkmoon.compact.css index f8cf5a4f..6dfa8806 100644 --- a/css/dx.darkmoon.compact.css +++ b/css/dx.darkmoon.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.darkmoon.css b/css/dx.darkmoon.css index e1aa397c..303a728e 100644 --- a/css/dx.darkmoon.css +++ b/css/dx.darkmoon.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.darkviolet.compact.css b/css/dx.darkviolet.compact.css index dfb6de4d..c05fa923 100644 --- a/css/dx.darkviolet.compact.css +++ b/css/dx.darkviolet.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.darkviolet.css b/css/dx.darkviolet.css index 688d8fb2..b9e88f46 100644 --- a/css/dx.darkviolet.css +++ b/css/dx.darkviolet.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.greenmist.compact.css b/css/dx.greenmist.compact.css index e63dcac8..aadaba4b 100644 --- a/css/dx.greenmist.compact.css +++ b/css/dx.greenmist.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.greenmist.css b/css/dx.greenmist.css index a84ec495..8b22c12c 100644 --- a/css/dx.greenmist.css +++ b/css/dx.greenmist.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.ios7.default.css b/css/dx.ios7.default.css index cb59d7d4..7a22a004 100644 --- a/css/dx.ios7.default.css +++ b/css/dx.ios7.default.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.light.compact.css b/css/dx.light.compact.css index 9c1c1aec..2ad791db 100644 --- a/css/dx.light.compact.css +++ b/css/dx.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.light.css b/css/dx.light.css index 147db32f..0e8c9faf 100644 --- a/css/dx.light.css +++ b/css/dx.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.blue.dark.compact.css b/css/dx.material.blue.dark.compact.css index 756faf9d..b562e2b1 100644 --- a/css/dx.material.blue.dark.compact.css +++ b/css/dx.material.blue.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.blue.dark.css b/css/dx.material.blue.dark.css index f5e0ba0b..36babef0 100644 --- a/css/dx.material.blue.dark.css +++ b/css/dx.material.blue.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.blue.light.compact.css b/css/dx.material.blue.light.compact.css index cb7ed0f2..6ca46cbf 100644 --- a/css/dx.material.blue.light.compact.css +++ b/css/dx.material.blue.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.blue.light.css b/css/dx.material.blue.light.css index bf9920f3..25d7fc7b 100644 --- a/css/dx.material.blue.light.css +++ b/css/dx.material.blue.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.lime.dark.compact.css b/css/dx.material.lime.dark.compact.css index 9d5b2cb7..a3e1dc6e 100644 --- a/css/dx.material.lime.dark.compact.css +++ b/css/dx.material.lime.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.lime.dark.css b/css/dx.material.lime.dark.css index 65d5650c..38901053 100644 --- a/css/dx.material.lime.dark.css +++ b/css/dx.material.lime.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.lime.light.compact.css b/css/dx.material.lime.light.compact.css index d5f0e129..1a0cc377 100644 --- a/css/dx.material.lime.light.compact.css +++ b/css/dx.material.lime.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.lime.light.css b/css/dx.material.lime.light.css index 04a545e0..3f524a5e 100644 --- a/css/dx.material.lime.light.css +++ b/css/dx.material.lime.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.orange.dark.compact.css b/css/dx.material.orange.dark.compact.css index 3c0f80c5..60ef5f97 100644 --- a/css/dx.material.orange.dark.compact.css +++ b/css/dx.material.orange.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.orange.dark.css b/css/dx.material.orange.dark.css index 0c1a7cae..b296d69c 100644 --- a/css/dx.material.orange.dark.css +++ b/css/dx.material.orange.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.orange.light.compact.css b/css/dx.material.orange.light.compact.css index ecd3ee6d..cbacb28c 100644 --- a/css/dx.material.orange.light.compact.css +++ b/css/dx.material.orange.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.orange.light.css b/css/dx.material.orange.light.css index 8afdf82b..d8929f71 100644 --- a/css/dx.material.orange.light.css +++ b/css/dx.material.orange.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.purple.dark.compact.css b/css/dx.material.purple.dark.compact.css index 28a02bbe..d2299b44 100644 --- a/css/dx.material.purple.dark.compact.css +++ b/css/dx.material.purple.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.purple.dark.css b/css/dx.material.purple.dark.css index 045325d5..a1dc5ade 100644 --- a/css/dx.material.purple.dark.css +++ b/css/dx.material.purple.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.purple.light.compact.css b/css/dx.material.purple.light.compact.css index 40f5874f..1d2542ad 100644 --- a/css/dx.material.purple.light.compact.css +++ b/css/dx.material.purple.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.purple.light.css b/css/dx.material.purple.light.css index 5cf15afc..ce30369e 100644 --- a/css/dx.material.purple.light.css +++ b/css/dx.material.purple.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.teal.dark.compact.css b/css/dx.material.teal.dark.compact.css index 2e7bf3ec..59c104f2 100644 --- a/css/dx.material.teal.dark.compact.css +++ b/css/dx.material.teal.dark.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.teal.dark.css b/css/dx.material.teal.dark.css index 184b9703..30427c38 100644 --- a/css/dx.material.teal.dark.css +++ b/css/dx.material.teal.dark.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.teal.light.compact.css b/css/dx.material.teal.light.compact.css index bc31c2fb..08a8d14e 100644 --- a/css/dx.material.teal.light.compact.css +++ b/css/dx.material.teal.light.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.material.teal.light.css b/css/dx.material.teal.light.css index 40bfca4a..003c3986 100644 --- a/css/dx.material.teal.light.css +++ b/css/dx.material.teal.light.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.softblue.compact.css b/css/dx.softblue.compact.css index 97169290..76a7129f 100644 --- a/css/dx.softblue.compact.css +++ b/css/dx.softblue.compact.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/css/dx.softblue.css b/css/dx.softblue.css index 69c7adca..e39689af 100644 --- a/css/dx.softblue.css +++ b/css/dx.softblue.css @@ -1,7 +1,7 @@ /*! * DevExtreme -* Version: 19.1.11 -* Build date: May 15, 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Jun 3, 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/dx.all.debug.js b/js/dx.all.debug.js index f9ddbfb0..cbe6389f 100644 --- a/js/dx.all.debug.js +++ b/js/dx.all.debug.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.all.debug.js) - * Version: 19.1.11 - * Build date: Fri May 15 2020 + * Version: 19.1.11 (build 20155-0314) + * Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ @@ -40889,7 +40889,9 @@ delete headerItem.collapsedChildren; that._update() } else { - that.load(options) + if (this.store()) { + that.load(options) + } } return hasCache } @@ -93551,6 +93553,9 @@ }); var DraggingHeaderView = _uiGrid_core2.default.View.inherit({ _isDragging: false, + isDragging: function() { + return this._isDragging + }, _getDraggingPanelByPos: function(pos) { var that = this; var result; @@ -94110,8 +94115,10 @@ var scrollBarWidth = that._rowsView.getScrollbarWidth(true); var rowsHeight = that._rowsView ? that._rowsView.height() - scrollBarWidth : 0; var columnsResizerController = that.component.getController("columnsResizer"); + var draggingHeaderView = that.component.getView("draggingHeaderView"); params.height = columnsHeadersHeight; - if (false !== columnsResizerController.isResizing()) { + var isDraggingOrResizing = false !== columnsResizerController.isResizing() || draggingHeaderView.isDragging(); + if (isDraggingOrResizing) { params.height += rowsHeight - diffOffsetTop } if (null !== top && $element && $element.length) { @@ -94226,7 +94233,7 @@ var columnsSeparator = this._columnsSeparatorView; this._animationColumnIndex = null; blockSeparator && blockSeparator.hide(); - "block" !== type && columnsSeparator && columnsSeparator.hide(); + "block" !== type && columnsSeparator && columnsSeparator.hide() }, init: function() { var that = this; @@ -212468,7 +212475,7 @@ /*! dynamic exports provided */ /*! all exports used */ function(module, exports, __webpack_require__) { - module.exports = __webpack_require__( /*! c:\Projects\DevExtreme\19.1\BuildLabel\Temp\DevExtreme.v19.1\repo\GitHub\artifacts\transpiled\bundles\dx.all.js */ 860) + module.exports = __webpack_require__( /*! c:\Projects\DevExtreme\19.1\Build\Temp\DevExtreme.v19.1\repo\GitHub\artifacts\transpiled\bundles\dx.all.js */ 860) }, /*!************************************************!*\ !*** ./artifacts/transpiled/bundles/dx.all.js ***! diff --git a/js/dx.all.js b/js/dx.all.js index f7f16000..b02ff03a 100644 --- a/js/dx.all.js +++ b/js/dx.all.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.all.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ @@ -25,8 +25,8 @@ n++)e[n]=a.blend(s,(l+1)/(r[1]+1)).toHex()}}return e}function a(i){if(i<=r)retur endAngle:r||0})},text:function(e,n,i){var o=new t.TextSvgElement(this);return o.attr({text:e,x:n||0,y:i||0})},linearGradient:function(e){var t=yt(),n=this,i=n._createElement("linearGradient",{id:t}).append(n._defs);return i.id=t,e.forEach(function(e){n._createElement("stop",{offset:e.offset,"stop-color":e["stop-color"]}).append(i)}),i},pattern:function e(n,i,o){i=i||{};var a=this,r=i.step||6,s=r/2,l=1.5*r,u=o||yt(),c="right"===(0,Ge.normalizeEnum)(i.direction)?"M "+s+" "+-s+" L "+-s+" "+s+" M 0 "+r+" L "+r+" 0 M "+l+" "+s+" L "+s+" "+l:"M 0 0 L "+r+" "+r+" M "+-s+" "+s+" L "+s+" "+l+" M "+s+" "+-s+" L "+l+" "+s,e=a._createElement("pattern",{id:u,width:r,height:r,patternUnits:"userSpaceOnUse"}).append(a._defs);e.id=u;a.rect(0,0,r,r).attr({fill:n,opacity:i.opacity}).append(e),new t.PathSvgElement(this).attr({d:c,"stroke-width":i.width||1,stroke:n}).append(e);return e},_getPointsWithYOffset:function(e,t){return e.map(function(e,n){return n%2!==0?e+t:e})},clipRect:function(e,t,n,i){var o=this,a=yt(),r=o._createElement("clipPath",{id:a}).append(o._defs),s=o.rect(e,t,n,i).append(r);return s.id=a,s.remove=function(){throw"Not implemented"},s.dispose=function(){return r.dispose(),r=null,this},s},shadowFilter:function(e,t,n,i,o,a,r,s,l){var u=this,c=yt(),d=u._createElement("filter",{id:c,x:e||0,y:t||0,width:n||0,height:i||0}).append(u._defs),h=u._createElement("feGaussianBlur",{"in":"SourceGraphic",result:"gaussianBlurResult",stdDeviation:r||0}).append(d),f=u._createElement("feOffset",{"in":"gaussianBlurResult",result:"offsetResult",dx:o||0,dy:a||0}).append(d),p=u._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(d),g=u._createElement("feComposite",{"in":"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(d),_=u._createElement("feComposite",{"in":"SourceGraphic",in2:"compositeResult",operator:"over"}).append(d);return d.id=c,d.gaussianBlur=h,d.offset=f,d.flood=p,d.composite=g,d.finalComposite=_,d.attr=function(e){var t=this,n={},i={},o={};return"x"in e&&(n.x=e.x),"y"in e&&(n.y=e.y),"width"in e&&(n.width=e.width),"height"in e&&(n.height=e.height),B(t,n),"blur"in e&&t.gaussianBlur.attr({stdDeviation:e.blur}),"offsetX"in e&&(i.dx=e.offsetX),"offsetY"in e&&(i.dy=e.offsetY),t.offset.attr(i),"color"in e&&(o["flood-color"]=e.color),"opacity"in e&&(o["flood-opacity"]=e.opacity),t.flood.attr(o),t},d},brightFilter:function(e,t){var n=this,i=yt(),o=n._createElement("filter",{id:i}).append(n._defs),a=n._createElement("feComponentTransfer").append(o),r={type:e,slope:t};return o.id=i,n._createElement("feFuncR",r).append(a),n._createElement("feFuncG",r).append(a),n._createElement("feFuncB",r).append(a),o},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var e=this,t=yt(),n=e._createElement("filter",{id:t}).append(e._defs);return e._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(n),n.id=t,e._grayScaleFilter=n,n},initHatching:function(){var e,t=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:yt()},n=t.byHash;for(e in n)n[e].pattern.dispose();t.byHash={},t.refToHash={},t.nextId=0},lockHatching:function(e,t,n){var i,o,a=this._hatchingStorage,r=De(e,t);return a.refToHash[n]!==r&&(n&&this.releaseHatching(n),i=a.byHash[r],i||(o=this.pattern(e,t,a.baseId+"-hatching-"+a.nextId++),i=a.byHash[r]={pattern:o,count:0},a.refToHash[o.id]=r),++i.count,n=i.pattern.id),n},releaseHatching:function(e){var t=this._hatchingStorage,n=t.refToHash[e],i=t.byHash[n];i&&0===--i.count&&(i.pattern.dispose(),delete t.byHash[n],delete t.refToHash[e])}};var wt=function(){var e=[];return{add:function(t){e.push(t)},remove:function(t){e=e.filter(function(e){return e!==t})},removeByRenderer:function(t){e=e.filter(function(e){return e.renderer!==t})},fire:function(){e.forEach(function(e){e()})}}}();t.refreshPaths=function(){wt.fire()}},function(e,t,n){function i(e){return c(e,function(e){return e.getCoords()}).concat(c(e.slice().reverse(),function(e){return e.getCoords(!0)}))}var o=n(48),a=n(0).extend,r=n(107).chart,s=n(208),l=s.chart.line,u=s.polar.line,c=n(11).map,d=a,h=s.chart.spline._calculateBezierPoints;t.chart={},t.polar={};var f={_createBorderElement:l._createMainElement,_createLegendState:function(e,t){return{fill:e.color||t,opacity:e.opacity,hatching:e.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&this.showZero!==!1?0:r.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(e){var t=l._getDefaultSegment(e);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(e,t,n,i){var o={points:t.line},a={points:t.area},r=e.line;n?(r&&r.animate(o),e.area.animate(a,{},i)):(r&&r.attr(o),e.area.attr(a))},_removeElement:function(e){e.line&&e.line.remove(),e.area.remove()},_drawElement:function(e){return{line:this._bordersGroup&&this._createBorderElement(e.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(e.area).append(this._elementsGroup)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.smartAttr(e.elements),t._bordersGroup&&t._bordersGroup.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}).sharp()})},_parseStyle:function(e,t,n){var i=e.border||{},o=l._parseLineOptions(i,n);return o.stroke=i.visible&&o["stroke-width"]?o.stroke:"none",o["stroke-width"]=o["stroke-width"]||1,{border:o,elements:{stroke:"none",fill:e.color||t,hatching:e.hatching,opacity:e.opacity}}},_areBordersVisible:function(){var e=this._options;return e.border.visible||e.hoverStyle.border.visible||e.selectionStyle.border.visible},_createMainElement:function(e,t){return this._renderer.path(e,"area").attr(t)},_getTrackerSettings:function(e){return{"stroke-width":e.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(e){return e.area}},p=t.chart.area=d({},l,f,{_prepareSegment:function(e,t){var n=this,o=n._processSinglePointsAreaSegment(e,t),a=i(o),r=n.getArgumentAxis();if(r.getAxisPosition){var s=r.getAxisPosition(),l=r.getOptions(),u=(t?1:-1)*Math.round(l.width/2);l.visible&&a.forEach(function(n,i){if(n){var o=1===e.length?0:i=e.minLevel&&this.level<=e.maxLevel},updateStyles:function(){var e=this,t=Number(e.isNode());e.state=e._buildState(e.ctx.settings[t].state,!t&&e.color&&{fill:e.color})},_buildState:function(e,t){var n=r({},e);return t?r(n,t):n},updateLabelStyle:function(){var e=this.ctx.settings[Number(this.isNode())];this.labelState=e.labelState,this.labelParams=e.labelParams},_getState:function(){return this.state},applyState:function(){s[Number(this.isNode())](this.tile,this._getState())}});var s=[o,a];e.exports=i},function(e,t,n){var i=n(132);n(230),n(460),n(475),n(115),n(484),n(183),n(485),n(486),n(19),n(160),n(131),n(56),n(89),n(137),n(23),n(176),n(286),e.exports=i},function(e,t,n){var i=n(184).fileSaver,o=n(431),a=n(224),r=n(438),s=n(1).isFunction,l=n(6).Deferred;t.export=function(e,t,n){if(!e)return(new l).resolve();var o=t.exportingAction,a=t.exportedAction,r=t.fileSavingAction,u={fileName:t.fileName,format:t.format,cancel:!1};return s(o)&&o(u),u.cancel?(new l).resolve():n(e,t,function(e){s(a)&&a(),s(r)&&(u.data=e,r(u)),u.cancel||i.saveAs(u.fileName,t.format,e,t.proxyUrl,t.forceProxy)})},t.fileSaver=i,t.excel={creator:o.ExcelCreator,getData:o.getData,formatConverter:n(179)},t.image={creator:a.imageCreator,getData:a.getData,testFormats:a.testFormats},t.pdf={getData:n(440).getData},t.svg={creator:r.svgCreator,getData:r.getData}},function(e,t,n){var i=n(7).getWindow(),o=n(1),a=["auto","none","inherit","initial"],r=function(e,t){var n=0;return t.forEach(function(t){n+=parseFloat(e[t])||0}),n},s=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:r(t,["padding"+n,"padding"+i]),border:r(t,["border"+n+"Width","border"+i+"Width"]),margin:r(t,["margin"+n,"margin"+i])}},l=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0},u=function(e,t,n){var o=i.getComputedStyle(e),a=s(t,o),r=e.getClientRects().length,u=e.getBoundingClientRect()[t],c=r?u:0;return c<=0?(c=parseFloat(o[t]||e.style[t])||0,c-=l(t,o,a)):c-=a.padding+a.border,n.paddings&&(c+=a.padding),n.borders&&(c+=a.border),n.margins&&(c+=a.margin),c},c=function(e){return o.isWindow(e)?e.innerHeight:e.offsetHeight},d=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*c(t)/100:isNaN(e)||(e=parseInt(e)),e},h=function(e,t,n){if(!e)return null;if(a.indexOf(e)>-1)return t?null:e;if(o.isString(e)&&(e=d(e,n)),o.isNumeric(e))return Math.max(0,e+t);var i=t<0?" - ":" ";return"calc("+e+i+Math.abs(t)+"px)"},f=function(e,t,n){var i=h(e,t,n);return null!==i?i:"none"},p=function(e,t,n){var i=h(e,t,n);return null!==i?i:0},g=function(e,t){if(!e)return 0;var n=s("height",i.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},_=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0};t.getSize=u,t.getElementBoxParams=s,t.addOffsetToMaxHeight=f,t.addOffsetToMinHeight=p,t.getVerticalOffsets=g,t.getVisibleHeight=_,t.parseHeight=d},function(e,t,n){var i={_findGroup:function(){var e,t=this.option("validationGroup");return t||(e=this.$element().parents(".dx-validationgroup").first(),t=e.length?e.dxValidationGroup("instance"):this._modelByElement(this.$element())),t}};e.exports=i},function(e,t,n){var i=n(2),o=n(5),a=n(9),r=n(4),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(1),d=n(7),h=n(27),f=n(28).fitIntoRange,p=n(67),g=n(8),_=n(56),m=c.isPlainObject,v=c.isFunction,y=n(12),b="dxResizable",x="dx-resizable",w="dx-resizable-resizing",C="dx-resizable-handle",k="dx-resizable-handle-top",S="dx-resizable-handle-bottom",I="dx-resizable-handle-left",T="dx-resizable-handle-right",D="dx-resizable-handle-corner",E=g.addNamespace(_.start,b),A=g.addNamespace(_.move,b),O=g.addNamespace(_.end,b),B={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},P=p.inherit({_getDefaultOptions:function(){return s(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0})},_init:function(){this.callBase(),this.$element().addClass(x)},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");u(t,function(e,t){this._renderHandle(t)}.bind(this)),l("bottom",t)+1&&l("right",t)+1&&this._renderHandle("corner-bottom-right"),l("bottom",t)+1&&l("left",t)+1&&this._renderHandle("corner-bottom-left"),l("top",t)+1&&l("right",t)+1&&this._renderHandle("corner-top-right"),l("top",t)+1&&l("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.$element(),n=i("
");n.addClass(C).addClass(C+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[E]=this._dragStartHandler.bind(this),t[A]=this._dragHandler.bind(this),t[O]=this._dragEndHandler.bind(this),o.on(e,t,{direction:"both",immediate:!0})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=h.locate(t);var n=t.get(0).getBoundingClientRect();this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null},_toggleResizingClass:function(e){this.$element().toggleClass(w,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+C),o=n.outerWidth(),a=n.outerHeight(),r=n.offset(),s=t.offset,l=this._getAreaScrollOffset();e.maxLeftOffset=r.left-s.left-l.scrollX,e.maxRightOffset=s.left+t.width-r.left-o+l.scrollX,e.maxTopOffset=r.top-s.top-l.scrollY,e.maxBottomOffset=s.top+t.height-r.top-a+l.scrollY}},_getBorderWidth:function(e,t){if(c.isWindow(e.get(0)))return 0;var n=e.css(B[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,o=this._elementSize,a=this._getOffset(e),r=o.width+a.x*(n.left?-1:1),s=o.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(r),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(s);var l=t.get(0).getBoundingClientRect(),u=a.y-((l.height||s)-s),c=a.x-((l.width||r)-r);h.move(t,{top:i.top+(n.top?u:0),left:i.left+(n.left?c:0)}),this._resizeAction({event:e,width:this.option("width")||r,height:this.option("height")||s,handles:this._movingSides}),y.triggerResizeEvent(t)},_getOffset:function(e){var t=e.offset,n=r.pairToObject(this.option("step"),!this.option("roundStepValue")),i=this._getMovingSides(e),o="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),o?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,o=this._elementSize,a=n.left?i.left:i.left+o.width,r=n.top?i.top:i.top+o.height,s=(a+e.x)%t.h,l=(r+e.y)%t.v,u=Math.sign||function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},c=function(e,t){return(1+.2*u(t))%1*e},d=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,f=e.y-l;return s>c(t.h,e.x)&&(h+=t.h),l>c(t.v,e.y)&&(f+=t.v),{x:!n.left&&!n.right||d(e.x,t.h)?0:h,y:!n.top&&!n.bottom||d(e.y,t.v)?0:f}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(D+"-top-left"),o=t.hasClass(D+"-top-right"),a=t.hasClass(D+"-bottom-left"),r=t.hasClass(D+"-bottom-right");return{top:t.hasClass(k)||n||o,left:t.hasClass(I)||n||a,bottom:t.hasClass(S)||a||r,right:t.hasClass(T)||o||r}},_getArea:function(){var e=this.option("area");return v(e)&&(e=e.call(this)),m(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t=!v(e)&&!m(e),n={scrollY:0,scrollX:0};if(t){var o=i(e)[0];c.isWindow(o)&&(n.scrollX=o.pageXOffset,n.scrollY=o.pageYOffset)}return n},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=i(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:s({top:0,left:0},c.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",f(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",f(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":d.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":d.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+C).remove()}});a(b,P),e.exports=P},function(e,t,n){var i=n(8),o=n(157),a=n(88),r="dxswipestart",s="dxswipe",l="dxswipeend",u={defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},c={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},d={horizontal:u,vertical:c},h=o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return d[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(r,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),o=t.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:o}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});a({emitter:h,events:[r,s,l]}),t.swipe=s,t.start=r,t.end=l},function(e,t,n){var i=n(13).inArray,o=n(7),a=o.hasWindow()?o.getWindow().WeakMap:WeakMap;a||(a=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);a===-1?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(o!==-1)return t[o]},this.has=function(t){var n=i(t,e);return n!==-1},this.delete=function(n){var o=i(n,e);o!==-1&&(e.splice(o,1),t.splice(o,1))}}),e.exports=a},function(e,t,n){var i=n(3).each,o=n(25),a=function(){var e=[],t=o();this.add=function(n){i(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(44),a=i(o),r=n(51),s=i(r),l=n(32),u=i(l),c=n(1),d=n(185),h=n(280);n(150);var f=1632,p={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},g=/a+/g,_=/E/g,m=/dE+/g,v=/L/g,y=/h/g,b=/\//g,x=/\[/g,w=/]/g,C=/./g,k=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i=f&&t").css({display:"none"}).attr(o);r.append(''),r.append(''),r.append(''),r.appendTo("body"),d.default.trigger(r,"submit"),d.default.trigger(r,"submit")&&r.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,b[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(b[n],["."+y[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_click:function(e){try{e.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch(n){var t=s.default.getDocument().createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,m,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}},_saveBlobAs:function(e,t,n){var i=this;if(this._blobSaved=!1,g.default.isDefined(v.msSaveOrOpenBlob))v.msSaveOrOpenBlob(n,e),this._blobSaved=!0;else if(g.default.isDefined(m.WinJS))this._winJSBlobSave(n,e,t),this._blobSaved=!0;else{var o=m.URL||m.webkitURL||m.mozURL||m.msURL||m.oURL;if(g.default.isDefined(o)){var a=o.createObjectURL(n),r=this._linkDownloader(e,a);setTimeout(function(){o.revokeObjectURL(a),i._objectUrlRevoked=!0},this._revokeObjectURLTimeout),this._click(r)}else _.logger.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(e,t,n,i,o){if(e+="."+y[t],o)this._saveByProxy(i,e,t,n);else if(g.default.isFunction(m.Blob))this._saveBlobAs(e,t,n);else if(g.default.isDefined(i)&&!g.default.isDefined(v.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{g.default.isDefined(v.userAgent.match(/iPad/i))||f.default.log("E1034");var a=this._linkDownloader(e,this._getDataUri(t,n));this._click(a)}}}},function(e,t,n){var i="\u060c",o=" .,:;/\\<>()-[]"+i,a=1632,r=function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=a&&t0&&!r(e[t-1])&&("."===e[t-1]||o.indexOf(e[t-1])<0);)t--;return t},u=function(e,t,n,i){var o=0,a=[],u=function(t){return e[o]!==t[o]&&(void 0===i||r(e[o])===i)};for(Array.isArray(t)||(t=[t]),o=0;o1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=e.replace("0"+n,n+n),e=e.replace("\u0660"+n,n+n)),e},d=function(e,t,n,i){var o,a,s;if(!r(e[t[0]]||"0")){for(var l=Math.max(t.length<=3?3:4,n.length);t.length>l;){for(a=t.pop(),s=i[a],i[a]=-1,o=a+1;o=0,a=t>0&&o.indexOf(t-1)>=0,r=o.indexOf(t+1)>=0;return i&&(a||(n="'"+n),r||(n+="'")),n}).join("")},g=function(e){var t=[],n=h(new Date(2009,8,8,6,5,4),e),i=n.split("").map(function(e,t){return t}),o=n,a={},r=[{date:new Date(2009,8,8,6,5,4,100),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return r.forEach(function(r){var s=u(n,h(r.date,e),t,r.isDigit),l="M"!==r.pattern||a.d?r.pattern:"L";o=d(o,s,l,i),a[l]=s.length}),o=p(o,n,t,i),t.length?o:void 0};t.getFormat=g},function(e,t,n){function i(e,t){var n=r.createElement("div"),i=e.cloneNode(!0);return t&&l(i).css("backgroundColor",t),n.appendChild(i),n.innerHTML}function o(e){var t=!0;return e.indexOf("xmlns:xlink")===-1&&(e=e.replace("-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n").appendTo(e)}},{key:"_addToContainer",value:function(e){var t=this.$placeMarker,n=this.$container;t?t.replaceWith(e):e.appendTo(n)}},{key:"_attachEvents",value:function(){throw"Not implemented"}},{key:"_create",value:function(){throw"Not implemented"}},{key:"_isRendered",value:function(){return!!this.instance}},{key:"_isVisible",value:function(){var e=this.editor,t=this.options;return t.visible||!e.option("readOnly")}},{key:"_isDisabled",value:function(){throw"Not implemented"}},{key:"_shouldRender",value:function(){return this._isVisible()&&!this._isRendered()}},{key:"dispose",value:function(){var e=this.instance,t=this.$placeMarker;e&&(e.dispose?e.dispose():e.remove(),this.instance=null),t&&t.remove()}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=e,this._isVisible()){var t=this._create(),n=t.instance,i=t.$element;this.instance=n,this._attachEvents(n,i)}else this._addPlaceMarker(e)}},{key:"update",value:function(){return this._shouldRender()&&this.render(),!!this.instance}}]),e}();t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(8),u=i(l),c=n(4),d=n(3),h=n(16),f=i(h),p=n(15),g=i(p),_=n(301),m=i(_),v="dxNativeScrollable",y="dx-scrollable-native",b="dx-scrollable-scrollbar-simulated",x="dx-scrollable-scrollbars-hidden",w="vertical",C="horizontal",k=500,S=g.default.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$content=e._$content,this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this._showScrollbar=e.option("showScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._renderPushBackOffset();var e=f.default.real(),t=e.platform;this._$element.addClass(y).addClass(y+"-"+t).toggleClass(x,!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:c.noop,_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._component._lastPushBackValue=e)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass(b),this._renderScrollbar(w),this._renderScrollbar(C)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new m.default((0,a.default)("
").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:c.noop,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){return this._isLocked()?void(e.cancel=!0):void(this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0))},handleEnd:function(){this._disablePushBack=!1},handleCancel:c.noop,handleStop:c.noop,_eachScrollbar:function(e){e=e.bind(this),(0,d.each)(this._scrollbars||{},function(t,n){e(n,t)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location(),t=this._$container.get(0);return{event:this._eventForUserAction,scrollOffset:{top:-e.top,left:-e.left},reachedLeft:this._isDirection(C)?e.left>=0:void 0,reachedRight:this._isDirection(C)?Math.abs(e.left)>=t.scrollWidth-t.clientWidth:void 0,reachedTop:this._isDirection(w)?e.top>=0:void 0,reachedBottom:this._isDirection(w)?Math.abs(e.top)>=t.scrollHeight-t.clientHeight-2*this.option("pushBackValue"):void 0}},handleScroll:function(e){return this._isScrollLocationChanged()?(this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs()),this._lastLocation=this.location(),void this._pushBackFromBoundary()):void e.stopImmediatePropagation()},_pushBackFromBoundary:function(){var e=this.option("pushBackValue");if(e&&!this._disablePushBack){var t=this._containerSize.height-this._contentSize.height,n=this._$container.scrollTop(),i=t+n-2*e;n?i||this._$container.scrollTop(e-t):this._$container.scrollTop(e)}},_isScrollLocationChanged:function(){var e=this.location(),t=this._lastLocation||{},n=t.top!==e.top,i=t.left!==e.left;return n||i},_moveScrollbars:function(){this._eachScrollbar(function(e){e.moveTo(this.location()),e.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(e){e.option("visible",!1)})}.bind(this),k)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:c.noop,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.$content().height(),width:this._component.$content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar(function(e,t){var n=t===w?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(w)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(C)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(y+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),s.default.off(this._$element,"."+v),s.default.off(this._$container,"."+v),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(e){e.$element().remove()})},scrollBy:function(e){var t=this.location();this._$container.scrollTop(Math.round(-t.top-e.top+this.option("pushBackValue"))),this._$container.scrollLeft(Math.round(-t.left-e.left))},validate:function(e){return!this.option("disabled")&&((!u.default.isDxMouseWheelEvent(e)||!this._isScrolledInMaxDirection(e))&&!!this._allowedDirection())},_isScrolledInMaxDirection:function(e){var t,n=this._$container.get(0);return t=e.delta>0?e.shiftKey?!n.scrollLeft:!n.scrollTop:e.shiftKey?n.clientWidth+n.scrollLeft>=n.scrollWidth:n.clientHeight+n.scrollTop>=n.scrollHeight},getDirection:function(){return this._allowedDirection()},verticalOffset:function(){return this.option("pushBackValue")}});e.exports=S},function(e,t,n){var i=n(2),o=n(4).noop,a=n(14),r=n(9),s=n(0).extend,l=n(93),u=n(60),c=n(6).Deferred,d=n(31),h="dx-loadpanel",f="dx-loadpanel-wrapper",p="dx-loadpanel-indicator",g="dx-loadpanel-message",_="dx-loadpanel-content",m="dx-loadpanel-content-wrapper",v="dx-loadpanel-pane-hidden",y=u.inherit({_supportedKeys:function(){return s(this.callBase(),{escape:o})},_getDefaultOptions:function(){return s(this.callBase(),{message:a.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,closeOnBackButton:!1,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return d.isMaterial()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_initOptions:function(){this.callBase.apply(this,arguments),this.option("templatesRenderAsynchronously",!1)},_render:function(){this.callBase(),this.$element().addClass(h),this._wrapper().addClass(f)},_renderContentImpl:function(){this.callBase(),this.$content().addClass(_),this._$contentWrapper=i("
").addClass(m),this._$contentWrapper.appendTo(this._$content),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new c,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){n().done(function(){t.resolve()})},e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$contentWrapper){var e=this.option("message");if(e){var t=i("
").addClass(g).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("
").addClass(p).appendTo(this._$contentWrapper),this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+g).remove(),this.$content().find("."+p).remove()},_togglePaneVisible:function(){this.$content().toggleClass(v,!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._$indicator&&this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});r("dxLoadPanel",y),e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),r=i(a),s=n(55),l=i(s),u=n(0),c=n(1),d=n(135),h=i(d),f=n(41),p=n(6),g=n(304),_=n(10),m=n(4),v="__dx_key__";t.default=l.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var e=this;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=function(t){var n=e._dataSource;n&&!n.isLoaded()&&(e._correctionIndex=0),e._correctionIndex&&t.storeLoadOptions&&(t.storeLoadOptions.skip+=e._correctionIndex)},this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(e){var t=this,n=(0,r.default)(),i=this.key();return this.itemElements().each(function(o,a){var s=(0,r.default)(a),l=t._getItemData(s);if(i?(0,f.keysEqual)(i,t.keyOf(l),e):t._isItemEquals(l,e))return n=s,!1}),n},_dataSourceChangedHandler:function(e,t){t&&t.changes?this._modifyByChanges(t.changes):this.callBase(e,t)},_isItemEquals:function(e,t){e&&e[v]&&(e=e.data);try{return JSON.stringify(e)===JSON.stringify(t)}catch(n){return e===t}},_partialRefresh:function(){var e=this;if(this.option("repaintChangesOnly")){var t=function(t){return t&&void 0!==t[v]?t[v]:e.keyOf(t)},n=(0,g.findChanges)(this._itemsCache,this._editStrategy.itemsGetter(),t,this._isItemEquals);if(n&&this._itemsCache.length)return this._modifyByChanges(n,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var e=this._editStrategy.itemsGetter();try{this._itemsCache=(0,u.extend)(!0,[],e),this.key()||(this._itemsCache=this._itemsCache.map(function(t,n){var i;return i={},o(i,v,e[n]),o(i,"data",t),i}))}catch(t){this._itemsCache=(0,u.extend)([],e)}}},_dispose:function(){this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(e,t,n,i){var o=this;if(i)this._renderItem(n.index,n.data,null,this._findItemElementByKey(n.key));else{var a=t[h.default.indexByKey(e,t,n.key)];a&&h.default.update(e,t,n.key,n.data).done(function(){o._renderItem(t.indexOf(a),a,null,o._findItemElementByKey(n.key))})}},_insertByChange:function(e,t,n,i){var o=this;(0,p.when)(i||h.default.insert(e,t,n.data,n.index)).done(function(){o._beforeItemElementInserted(n),o._renderItem((0,c.isDefined)(n.index)?n.index:t.length,n.data),o._afterItemElementInserted(),o._correctionIndex++})},_updateSelectionAfterRemoveByChange:function(e){var t=this.option("selectedIndex");t>e?this.option("selectedIndex",t-1):t===e&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(e){var t=this.option("selectedIndex");e.index<=t&&this.option("selectedIndex",t+1)},_afterItemElementInserted:m.noop,_removeByChange:function(e,t,n,i){var o=this,a=i?n.index:h.default.indexByKey(e,t,n.key),r=i?n.oldItem:t[a];if(r){var s=this._findItemElementByKey(n.key),l=this._extendActionArgs(s);this._waitDeletingPrepare(s).done(function(){i?(o._updateIndicesAfterIndex(a-1),o._afterItemElementDeleted(s,l),o._updateSelectionAfterRemoveByChange(a)):(o._deleteItemElementByIndex(a),o._afterItemElementDeleted(s,l))}),this._correctionIndex--}},_modifyByChanges:function(e,t){var n=this,i=this._editStrategy.itemsGetter(),o={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},a=this._dataSource,r=a&&a.paginate(),s=a&&a.group();(r||s)&&(e=e.filter(function(e){return"insert"!==e.type||void 0!==e.index})),e.forEach(function(e){return n["_".concat(e.type,"ByChange")](o,i,e,t)}),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(e,t,n){var i=e.children(this._itemSelector()).get(n);(0,_.insertElement)(e.get(0),t.get(0),i)},_optionChanged:function(e){switch(e.name){case"items":var t=this._partialRefresh(e.value);t||this.callBase(e);break;case"dataSource":this.option("repaintChangesOnly")&&e.value||this.option("items",[]),this.callBase(e);break;case"repaintChangesOnly":break;default:this.callBase(e)}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n=0?n.ratio||0:((0,E.isDefined)(n.shrink)?n.shrink:K)*a,l=r>=0?i:o,u=l?Math.round(r*s/l):0;return a+u},l=0;(0,B.each)(e,function(e,t){var i=(0,v.default)(t),o=(0,v.default)(t).data(G),a=s(i);l+=a,i.css(q[n],o.maxSize||"none").css(j[n],o.minSize||"0").css(ne[n],a),i.addClass(ee)}),this.totalItemSize=l}},{key:"_baseSize",value:function(e){var t=(0,v.default)(e).data(G);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)}},{key:"_contentSize",value:function(e){return(0,v.default)(e)[ne[this._option("direction")]]()}},{key:"_parseSize",value:function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e}},{key:"_boxSize",value:function(e){return arguments.length?void(this._boxSizeValue=e):(this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue)}},{key:"_totalBaseSize",value:function(){var e=this,t=0;return(0,B.each)(this._$items,function(n,i){t+=e._baseSize(i)}),t}},{key:"initSize",value:function(){this._boxSize(this._$element[ne[this._option("direction")]]())}},{key:"update",value:function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var e=this._$element.get(0);this._$items.find($).each(function(){e===(0,v.default)(this).parent().closest($).get(0)&&b.default.triggerHandler(this,J)})}}}]),e}(),he=function(e){function t(){return a(this,t),n.apply(this,arguments)}c(t,e);var n=h(t);return s(t,[{key:"_getDefaultOptions",value:function(){return(0,C.extend)(l(_(t.prototype),"_getDefaultOptions",this).call(this),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})}},{key:"_defaultOptionsRules",value:function(){return l(_(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function e(){var e=L.default.real(),t="android"===e.platform&&(e.version[0]<4||4===e.version[0]&&e.version[1]<4),n="ios"===e.platform&&e.version[0]<7;return"win"===e.platform||R.default.msie||t||n},options:{_layoutStrategy:"fallback"}}])}},{key:"_itemClass",value:function(){return W}},{key:"_itemDataKey",value:function(){return G}},{key:"_itemElements",value:function(){return this._itemContainer().children(this._itemSelector())}},{key:"_init",value:function(){l(_(t.prototype),"_init",this).call(this),this.$element().addClass("".concat(N,"-").concat(this.option("_layoutStrategy"))),this._initLayout(),this._initBoxQueue()}},{key:"_initLayout",value:function(){this._layout="fallback"===this.option("_layoutStrategy")?new de(this.$element(),this.option.bind(this)):new ce(this.$element(),this.option.bind(this))}},{key:"_initBoxQueue",value:function(){this._queue=this.option("_queue")||[]}},{key:"_queueIsNotEmpty",value:function(){return!this.option("_queue")&&!!this._queue.length}},{key:"_pushItemToQueue",value:function(e,t){this._queue.push({$item:e,config:t})}},{key:"_shiftItemFromQueue",value:function(){return this._queue.shift()}},{key:"_initMarkup",value:function(){this.$element().addClass(N),this._layout.renderBox(),l(_(t.prototype),"_initMarkup",this).call(this),this._renderAlign(),this._renderActions()}},{key:"_renderActions",value:function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}},{key:"_renderAlign",value:function(){this._layout.renderAlign(),this._layout.renderCrossAlign()}},{key:"_renderItems",value:function(e){var n=this;for(this._layout.initSize(),l(_(t.prototype),"_renderItems",this).call(this,e);this._queueIsNotEmpty();){var i=this._shiftItemFromQueue();this._createComponent(i.$item,t,(0,C.extend)({_layoutStrategy:this.option("_layoutStrategy"),itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},i.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){n._isUpdated||n._layout.update(),n._isUpdated=!1,n._updateTimer=null})}},{key:"_renderItemContent",value:function(e){var n=e.itemData&&e.itemData.node;return n?this._renderItemContentByNode(e,n):l(_(t.prototype),"_renderItemContent",this).call(this,e)}},{key:"_postprocessRenderItem",value:function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)}},{key:"_createItemByTemplate",value:function(e,n){return n.itemData.box?e.source?e.source():(0,v.default)():l(_(t.prototype),"_createItemByTemplate",this).call(this,e,n)}},{key:"_visibilityChanged",value:function(e){e&&this._dimensionChanged()}},{key:"_dimensionChanged",value:function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())}},{key:"_dispose",value:function(){clearTimeout(this._updateTimer),l(_(t.prototype),"_dispose",this).apply(this,arguments)}},{key:"_itemOptionChanged",value:function(e,n,i,o){"visible"===n&&this._onItemStateChanged({name:n,state:i,oldState:o!==!1}),l(_(t.prototype),"_itemOptionChanged",this).call(this,e,n,i)}},{key:"_optionChanged",value:function(e){switch(e.name){case"_layoutStrategy":case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:l(_(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_itemOptions",value:function(){var e=this,n=l(_(t.prototype),"_itemOptions",this).call(this);return n.fireItemStateChangedAction=function(t){e._onItemStateChanged(t)},n}},{key:"repaint",value:function(){this._dimensionChanged()}}]),t}(z.default);he.ItemClass=ue,(0,w.default)("dxBox",he),e.exports=he},function(e,t,n){e.exports=n(540)},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(15),s=n(32),l=r.abstract,u=r.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||i("
"),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(e,t,n)},_getWidgetOptions:l,_getWidgetName:l,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:l,supportedKeys:a,customizeButtons:a,attachKeyboardEvents:function(e){this._widgetKeyboardProcessor=e.attachChildProcessor()},getParsedText:function(e,t){var n=s.parse(e,t);return n?n:s.parse(e)},renderInputMinMax:a,renderOpenedState:function(){this._updateValue()},popupConfig:l,renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();o.off(t,"mousedown"),o.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:a,getLastPopupElement:a,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:a,popupHiddenHandler:a,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},_valueChangedHandler:function(e){this.dateBox.option("opened")&&"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(e.value)},useCurrentDateByDefault:a,getDefaultDate:function(){return new Date},textChangedHandler:a,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});e.exports=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,c,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass(m).toggleClass(_,e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(e){this._renderList(e)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_renderList:function(e){var t=i(e),n=this._listOptions();t.addClass(v),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var a=.5*i(o).height();t.height()>a&&t.height(a)},_listOptions:function(){return{_keyboardProcessor:this._listProcessor,pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_attachKeyboardEvents:function(){this.callBase.apply(this,arguments),this._listProcessor=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),this._list&&this._list.option("_keyboardProcessor",this._listProcessor)},_cleanFocusState:function(){this.callBase.apply(this,arguments),delete this._listProcessor},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(x[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(b[t],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(t,n),this.callBase(e);break;case"onItemRendered":this._list&&this._list.option(t,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;case"container":this._popup&&this._popup.option(e.name,e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(d);r("dxDropDownMenu",w),e.exports=w},function(e,t,n){var i=n(37),o=n(25),a=n(17),r=n(67),s=n(0).extend,l=n(3).map,u=n(174),c=n(99),d=n(559),h=n(9),f="dx-validator",p=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this._skipValidation=!1,this.focused=o(),this._initAdapter()},_initGroupRegistration:function(){var e=this._findGroup();this._groupWasInit||this.on("disposing",function(e){c.removeRegisteredValidator(e.component._validationGroup,e.component)}),this._groupWasInit&&this._validationGroup===e||(c.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,c.registerValidatorInGroup(e,this))},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{validationGroup:!0})},_initAdapter:function(){var e=this,t=e.$element()[0],n=i.data(t,"dx-validation-target"),o=e.option("adapter");if(!o){if(n)return o=new d(n,this),o.validationRequestsCallbacks.add(function(t){e._skipValidation||e.validate(t)}),void this.option("adapter",o);throw a.Error("E0120")}var r=o.validationRequestsCallbacks;r&&(Array.isArray(r)?r.push(function(t){e.validate(t)}):(a.log("W0014","validationRequestsCallbacks","jQuery.Callbacks","17.2","Use the array instead"),r.add(function(t){e.validate(t)})))},_initMarkup:function(){this.$element().addClass(f),this.callBase()},_toggleRTLDirection:function(e){var t,n,i,o=null!==(t=null===(n=this.option("adapter"))||void 0===n?void 0:null===(i=n.editor)||void 0===i?void 0:i.option("rtlEnabled"))&&void 0!==t?t:e;this.callBase(o)},_visibilityChanged:function(e){e&&this._initGroupRegistration()},_optionChanged:function(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;default:this.callBase(e)}},_getValidationRules:function(){return this._validationRules||(this._validationRules=l(this.option("validationRules"),function(e){return s({},e,{validator:this})}.bind(this))),this._validationRules},_resetValidationRules:function(){delete this._validationRules},validate:function(e){var t,n=this,i=n.option("adapter"),o=n.option("name"),a=i.bypass&&i.bypass(),r=e&&void 0!==e.value?e.value:i.getValue(),s=i.getCurrentValidationError&&i.getCurrentValidationError(),l=this._getValidationRules();return a?t={isValid:!0}:s&&s.editorSpecific?(s.validator=this,t={isValid:!1,brokenRule:s}):t=c.validate(r,l,o),this._applyValidationResult(t,i),t},reset:function(){var e=this,t=e.option("adapter"),n={isValid:!0,brokenRule:null};this._skipValidation=!0,t.reset(),this._skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(n,t)},_applyValidationResult:function(e,t){var n=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});e.validator=this,t.applyValidationResults&&t.applyValidationResults(e),this.option({isValid:e.isValid}),n(e)},focus:function(){var e=this.option("adapter");e&&e.focus&&e.focus()}}).include(u);h("dxValidator",p),e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(16),u=i(l),c=n(9),d=i(c),h=n(34),f=i(h),p=n(72),g=i(p),_=n(8),m=n(0),v=n(1),y=n(23),b=i(y),x=n(3),w=n(316),C=i(w),k=n(31),S=i(k),I=n(89),T=i(I),D=n(94),E=i(D),A=n(192),O=i(A),B=n(62),P=n(66),R=i(P),M="dx-tabs",V="dx-tabs-wrapper",F="dx-tabs-expanded",L="dx-tabs-stretched",H="dx-tabs-scrollable",z="dx-tabs-nav-buttons",N="dx-overflow-hidden",$="dx-tab",W="dx-tab-selected",G="dx-tabs-nav-button",j="dx-tabs-nav-button-left",q="dx-tabs-nav-button-right",K="dx-tab-text",U="dxTabData",Y="chevronnext",X="chevronprev",Z=100,Q=5,J=300,ee=30,te=O.default.inherit({_activeStateUnit:"."+$,_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=S.default.current();return this.callBase().concat([{device:function(){return"generic"!==u.default.real().platform},options:{showNavButtons:!1}},{device:{platform:"generic"},options:{scrollByContent:!1}},{device:function(){return"desktop"===u.default.real().deviceType&&!u.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return S.default.isMaterial(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass(M),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=Z},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new R.default(function(e,t){(0,v.isPlainObject)(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=(0,B.getImageContainer)(t.icon);e.wrapInner((0,a.default)("").addClass(K)),n&&n.prependTo(e)}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))},_itemClass:function(){return $},_selectedItemClass:function(){return W},_itemDataKey:function(){return U},_initMarkup:function(){this.callBase(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(N)},_render:function(){this.callBase(),this._renderScrolling()},_renderScrolling:function(){var e=[L,F,N];this.$element().removeClass(e.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(L),this.$element().removeClass(z).addClass(F))},_isItemsWidthExceeded:function(){var e=this._getSummaryItemsWidth(this._getVisibleItems(),!0);return e-1>this.$element().width()},_needStretchItems:function(){var e=this._getVisibleItems(),t=this.$element().width(),n=[];(0,x.each)(e,function(e,t){n.push((0,a.default)(t).outerWidth(!0))});var i=Math.max.apply(null,n);return i>t/e.length},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=g.default.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,a.default)("
").addClass(V),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this.$element().wrapInner((0,a.default)("
").addClass(H)).children();this._scrollable=this._createComponent(e,E.default,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_renderNavButtons:function(){if(this.$element().toggleClass(z,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-ee,e?Y:X);var t=this._leftButton.$element();t.addClass(j),this.$element().prepend(t),this._rightButton=this._createNavButton(ee,e?X:Y);var n=this._rightButton.$element();n.addClass(q),this.$element().append(n)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,i=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,Q)},Q)}),o=(0,_.addNamespace)(T.default.name,"dxNavButton"),r=(0,_.addNamespace)(b.default.up,"dxNavButton"),l=(0,_.addNamespace)(b.default.out,"dxNavButton"),u=this._createComponent((0,a.default)("
").addClass(G),f.default,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),c=u.$element();return s.default.on(c,o,{timeout:J},function(e){i({event:e})}.bind(this)),s.default.on(c,r,function(){n._clearInterval()}),s.default.on(c,l,function(){n._clearInterval()}),u},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._cleanScrolling(),this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"width":this.callBase(e),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_afterItemElementInserted:function(){this.callBase(),this._renderScrolling()},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._renderScrolling()}});te.ItemClass=C.default,(0,d.default)("dxTabs",te),e.exports=te,e.exports.getTabsExpandedClass=F},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(339),a=i(o),r=a.default;e.exports={extend:function(e){r=r.inherit(e)},create:function(e){return new r(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=e.format||Oe[e.dataType];return pe.default.format(t,n)}function a(e){return e&&e.length>1&&"!"===e[0]&&!D(e)}function r(e){return a(e)?e[1]:e}function s(e,t){return a(e)?e[1]=t:e=t,e}function l(e,t){var n=function(e){return e.indexOf("!")!==-1; -},i=function(e){var t=e.slice(0);e.length=0,e.push("!",t)},o=function(e){var t=r(e);e.length=0,[].push.apply(e,t)};n(t)?a(e)||i(e):a(e)&&o(e)}function u(e,t){l(e,t);var n,i=r(e),o=function(e){return e.indexOf("!")===-1?e:e.substring(1)},a=function(e,t){for(n=0;n=0&&i.push(t.name)}}),i.map(function(e){var i=v(n,e);return i?{icon:i.icon||Ie,text:i.caption||me.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:ke.default.getIconByFilterOperation(e)||Ie,text:_(e,t),value:e}})}function b(e){return e.defaultFilterOperation||g(e)[0]}function x(e,t){var n=[e.dataField,"",""],i=b(e);return Y(n,i,t),n}function w(e,t){var n=r(e),i=n.indexOf(t);return n.splice(i,1),1!==n.length&&n.splice(i,1),e}function C(e){return e.indexOf("not")!==-1?["!",[e.substring(3).toLowerCase()]]:[e]}function k(e){var t=r(e);if(D(t))return!1;var n=t.some(function(e){return D(e)});return!n}function S(e,t){var n=r(t),i=h(n);return 1===n.length?n.unshift(e):n.push(e,i),t}function I(e,t){for(var n=0;n0)return i[0];throw new ce.default.Error("E1047",e)}function T(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function D(e){return!!Array.isArray(e)&&(e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1]))}function E(e,t){for(var n=d(e).toLowerCase()||Te,i=[],o=0;o-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=he.default.defaultCalculateFilterExpression,(0,se.isDefined)(n.dataType)||(n.dataType=Se),e.push(n)}return e},[])}function R(e,t,n,i){var o=I(e[0],t),a=O(e,n),r=n.length&&v(n,a[1]);return r&&r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[a[2],o,i]):o.createFilterExpression?o.createFilterExpression.apply(o,[a[2],a[1],i]):o.calculateFilterExpression?o.calculateFilterExpression.apply(o,[a[2],a[1],i]):o.defaultCalculateFilterExpression.apply(o,[a[2],a[1],i])}function M(e,t,n,i){if(!(0,se.isDefined)(e))return null;if(a(e)){var o=M(e[1],t,n,i);return["!",o]}var s=r(e);if(D(s))return R(s,t,n,i)||null;for(var l,u=h(s),c=[],d=0;d3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(z(t))return"";if(Array.isArray(t)){var o=new ae.Deferred;return ae.when.apply(this,H(e,t,n,i)).done(function(){for(var e=arguments.length,t=new Array(e),n=0;n",Ae={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],"boolean":["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Oe={date:"shortDate",datetime:"shortDateShortTime"},Be=["=","<>","isblank","isnotblank"],Pe=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"];t.isValidCondition=Z,t.isEmptyGroup=k,t.getOperationFromAvailable=m,t.updateConditionByOperation=Y,t.getCaptionWithParents=U,t.getItems=j,t.setGroupValue=u,t.getGroupMenuItem=c,t.getGroupValue=h,t.getAvailableOperations=y,t.removeItem=w,t.createCondition=x,t.createEmptyGroup=C,t.addItem=S,t.getField=I,t.isGroup=T,t.isCondition=D,t.getNormalizedFields=P,t.getNormalizedFilter=V,t.getGroupCriteria=r,t.convertToInnerStructure=B,t.getDefaultOperation=b,t.getCurrentValueText=N,t.getCurrentLookupValueText=F,t.getFilterOperations=g,t.getCaptionByOperation=_,t.getOperationValue=X,t.getFilterExpression=M,t.getCustomOperation=v,t.getMergedOperations=Q,t.syncFilters=ne,t.getMatchedConditions=ie,t.filterHasField=oe,t.removeFieldConditionsFromFilter=ee},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.dataField||e.groupName||"",n=(e.summaryType||"").toLowerCase();return(0,p.isString)(e.groupInterval)&&(t+="_"+e.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),t.length&&(n=" ("+n+")")):n="",(0,C.titleize)(t)+n}function a(e,t){var n=e._initProperties||{};(0,m.each)(t,function(t,i){Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])})}function r(e,t){a(e,t),(0,p.isDefined)(e.caption)||(0,E.setFieldProperty)(e,"caption",o(e))}function s(e){return e.some(function(e){return e.summaryDisplayMode||e.calculateSummaryValue})}function l(e){return e.some(function(e){return!!e.runningTotal})}function u(e){return e.rows.length||e.columns.length||e.values.length}var c=n(45),d=n(91),h=i(d),f=n(4),p=n(1),g=n(0),_=n(13),m=n(3),v=n(6),y=n(15),b=i(y),x=n(81),w=i(x),C=n(33),k=n(687),S=n(688),I=i(S),T=n(382),D=n(689),E=n(80),A={row:"rows",column:"columns",data:"values",filter:"filters"},O=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],B=["format","selector","customizeText","caption"],P=B.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);e.exports=b.default.inherit(function(){function e(e,t){var n=e.remoteOperations||e.paginate?I.default:k.LocalStore;return new n((0,g.extend)((0,c.normalizeDataSourceOptions)(e),{onChanged:null,onLoadingChanged:null,onProgressChanged:t}))}function t(t,n){var i;if((0,p.isPlainObject)(t)&&t.load)i=e(t,n);else{t&&!t.store&&(t={store:t});var o=t.store;"xmla"===o.type?i=new T.XmlaStore(o):(0,p.isPlainObject)(o)&&o.type||o instanceof h.default||Array.isArray(o)?i=e(t,n):o instanceof b.default&&(i=o)}return i}function n(e,t,n){for(var i=0;i=0&&(0,p.isDefined)(c))return function(e){var t=r?e.index:c,n=r?c:e.index,i=((o[t]||[[]])[n]||[])[a];return(0,p.isDefined)(i)?i:null}}function N(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}function $(e,t,n,i,o){var a=o?"asc":e.sortOrder,r=N(e.sortBy,o),s=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:(0,E.getCompareFunction)(function(e){return e[r]}),l=!o&&z(e,t,n,i),u=l&&(0,E.getCompareFunction)(l),c=function(e,t){var n=u&&u(e,t)||s(e,t);return"desc"===a?-n:n};return c}function W(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,r=[];(0,E.foreachDataLevel)(e[n],function(a,s){var l=o[s]||{},u=r[s]=r[s]||$(l,e,t,n,i);a.sort(u)},a)}function G(e,t,n){W(t,e,"rows",n),W(t,e,"columns",n)}function j(e,t,n){return(0,E.foreachTreeAsync)(e[n],function(e){var i=e[0];i.text=i.text||(0,E.formatValue)(i.value,t[n][(0,E.createPath)(e).length-1])})}function q(e,t){return(0,v.when)(j(t,e,"columns"),j(t,e,"rows"))}function K(e){var t=new v.Deferred,n={};return(0,v.when)((0,E.foreachTreeAsync)(e,function(e){var t=(0,E.createPath)(e).join(".");n[t]=e[0]})).done(t.resolve),e._cacheByPath=n,t}function U(e,t){var n=[];return(0,m.each)(e,function(){M(this,t)&&n.push(this)}),n}var Y=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},X=function e(t,n){var i=-1;if(t)for(var o=0;o=0&&X(e,n)+1,a=[];return(0,v.when)((0,E.foreachTreeAsync)(e,function(e){delete e[0].collapsedChildren})).done(function(){(0,v.when)((0,E.foreachTreeAsync)(t,function(t,n){var i=t[0];if(i.index>=0){var r=Y(e,(0,E.createPath)(t));if(r&&r.index>=0)a[i.index]=r.index;else if(o){var s=(0,E.createPath)(t.slice(1));r=Y(e,s);var l=s.length?r&&r.children:e;l&&(l[n]=i,i.index=a[i.index]=o++)}}})).done(function(){i.resolve(a)})}),i},J=function(e,t,n,i){var o,a,r=e.values;if(t)for(var s=0;s<=t.length;s++){var l=t[s];if(o=n[s],(0,p.isDefined)(o)||(o=e.grandTotalRowIndex),l&&(0,p.isDefined)(o)){r[o]||(r[o]=[]);for(var u=0;u<=l.length;u++){var c=l[u];a=i[u],(0,p.isDefined)(a)||(a=e.grandTotalColumnIndex),(0,p.isDefined)(c)&&(0,p.isDefined)(a)&&(r[o][a]=c)}}}};return{ctor:function(e){e=e||{};var n=this,i=t(e,function(e){n.fireEvent("progressChanged",[e])});n._store=i,n._paginate=!!e.paginate,n._pageSize=e.pageSize||40,n._data={rows:[],columns:[],values:[]},n._loadingCount=0,n._isFieldsModified=!1,(0,m.each)(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);Object.prototype.hasOwnProperty.call(e,i)&&this.on(n,e[i])}.bind(this)),n._retrieveFields=!(0,p.isDefined)(e.retrieveFields)||e.retrieveFields,n._fields=e.fields||[],n._descriptions=e.descriptions?(0,g.extend)(n._createDescriptions(),e.descriptions):void 0,i||(0,g.extend)(!0,n._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n=[];if(t||"data"===e)n=U(this._fields,e),R(n);else{var i=this._descriptions||{};n=i[A[e]]||[]}return n},fields:function(e){var t=this;return e&&(t._fields=F(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function e(t,n){var i=this,o=i._fields,e=o&&o[(0,p.isNumeric)(t)?t:(0,E.findField)(o,t)];return e&&n&&((0,m.each)(n,function(t,n){var i=(0,_.inArray)(t,O)<0;if((0,E.setFieldProperty)(e,t,n,i),"sortOrder"===t)for(var o=e.levels||[],a=0;a0},state:function(e,t){var n=this;return arguments.length?(e=(0,g.extend)({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(n._descriptions?(n._fields=C(e.fields,n._fields),n._descriptions=n._createDescriptions(),!t&&n.load(e)):(n.beginLoading(),(0,v.when)(L(n)).done(function(i){n._fields=C(e.fields,i),n._fieldsPrepared(i),!t&&n.load(e)}).always(function(){n.endLoading()})))):{fields:d(n._fields,O),columnExpandedPaths:i(n._data,n._descriptions,"columns"),rowExpandedPaths:i(n._data,n._descriptions,"rows")}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t=this.isLoading();this._loadingCount+=e;var n=this.isLoading();t^n&&this.fireEvent("loadingChanged",[n])},_hasPagingValues:function(e,t,n){var i=t+"Take",o=t+"Skip",a=this._data.values,r=this._data[t+"s"],s="row"===t?"column":"row",l=[];if(e.path&&e.area===t){var u=Y(r,e.path);if(r=u&&u.children,!r)return!1}if(e.oppositePath&&e.area===s){var c=Y(r,e.oppositePath);if(r=c&&c.children,!r)return!1}for(var d=e[o];d=d.default.trimTime(new Date(this.getStartViewDate()))},_renderDateTimeIndication:function(){if(this.needRenderDateTimeIndication()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(this),this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator())){var e=this._getGroupCount()||1,t=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());n>0&&this._renderIndicator(n,i,t,e)}},_renderIndicator:function(e,t,n,i){for(var o=0;o").addClass(_);return e.append(t),t},_getRtlOffset:function(e){return this.option("rtlEnabled")?this._dateTableScrollable.$content().get(0).getBoundingClientRect().width-this.getTimePanelWidth()-e:0},_setIndicationUpdateInterval:function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},_clearIndicatorUpdateInterval:function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},_isVerticalShader:function(){return!0},getIndicationWidth:function(e){var t=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(e,e*this._getCellCount(),n);return t=0?(t=P(e.margin),t={top:t,bottom:t,left:t,right:t}):t={top:t.top>=0?P(t.top):G,bottom:t.bottom>=0?P(t.bottom):G,left:t.left>=0?P(t.left):G,right:t.right>=0?P(t.right):G},e.margin=t}function r(e,t,n){var i,o,a=7,r=4;switch(e.itemTextPosition){case Y:case U:i=t+a+n.width,o=V(t,n.height);break;case X:case Z:i=V(t,n.width),o=t+r+n.height}return{width:i,height:o}}function s(e,t){var n={};return n.left=F(e.x,t.x),n.top=F(e.y,t.y),n.right=V(e.x+e.width,t.x+t.width),n.bottom=V(e.y+e.height,t.y+t.height),n}function l(e,t,n,i){var o=t&&n[t[e]];o&&o.marker.smartAttr(o.states[i])}function u(e,t,n){return e?(a(e),e.horizontalAlignment=ae(e.horizontalAlignment,U),e.verticalAlignment=re(e.verticalAlignment,e.horizontalAlignment===K?Z:X),e.orientation=se(e.orientation,e.horizontalAlignment===K?Q:J),e.itemTextPosition=le(e.itemTextPosition,e.orientation===Q?Z:U),e.position=n?ue(e.position,te):te,e.itemsAlignment=ce(e.itemsAlignment,null),e.hoverMode=$(e.hoverMode),e.customizeText=z(e.customizeText)?e.customizeText:function(){return this[t]},e.customizeHint=z(e.customizeHint)?e.customizeHint:B.noop,e._incidentOccurred=e._incidentOccurred||B.noop,e):null}function c(e,t){return e.rect(0,0,t,t)}function d(e,t){return e.circle(t/2,t/2,t/2)}function h(e){return"circle"===$(e)}function f(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function p(e,t,n,i){var o={x:0,y:0},a=0,r=0,s=0;if(s="y"===t.direction?i.top+i.bottom:i.left+i.right,e.forEach(function(e,n){var i=e[0],s=e.length;e.forEach(function(e,n){var i=e.offset||t.spacing;o[t.direction]+=e[t.measure]+(n!==s-1?i:0),a=V(a,o[t.direction])}),o[t.direction]=0,o[t.altDirection]+=i[t.altMeasure]+i.altOffset||t.altSpacing,r=V(r,o[t.altDirection])}),a+s>t.length)return t.countItem=g(t,n),!0}function g(e,t){return e.altCountItem++,L(t/e.altCountItem)}function _(e,t){return e.reduce(function(e,n){var i=n.offset||t.spacing;return e+n[t.measure]+i},0)}function m(e,t){return e.reduce(function(e,n){return V(e,_(n,t))},0)}function v(e,t,n){var i,o=_(e,t);switch(t.itemsAlignment){case U:i=n-o;break;case K:i=(n-o)/2;break;default:i=0}return i}function y(e){switch(e.itemTextPosition){case Z:return{horizontal:K,vertical:X};case X:return{horizontal:K,vertical:Z};case Y:return{horizontal:U,vertical:K};case U:return{horizontal:Y,vertical:K}}}function b(e,t,n){var i={};return n%t.countItem===0&&(t.markerOffset?e.push([],[]):e.push([])),t.markerOffset?(i.firstLine=e[e.length-1],i.secondLine=e[e.length-2]):i.firstLine=i.secondLine=e[e.length-1],i}function x(e,t){var n=e.reduce(function(e,n){var i=n?n[t]:e;return V(e,i)},0);e.forEach(function(e){e&&(e[t]=n)})}function w(e){var t,n,i=e.length,o=e[0].length,a=[];for(t=0;t2&&void 0!==arguments[2]?arguments[2]:{},i=this;if(t=i._options=u(t,i._textField,i._allowInsidePosition)||{},i._data=e&&t.customizeItems&&t.customizeItems(e.slice())||e,i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new A.default.Title({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var o=t.title;n.horizontalAlignment=k(t),i._title.update(n,o)}return this.erase(),i},isVisible:function(){return this._options&&this._options.visible},draw:function(e,t){var n=this,i=n._options,o=n._getItemData();if(n._size={width:e,height:t},n.erase(),!(n.isVisible()&&o&&o.length))return n;if(n._insideLegendGroup=n._renderer.g().enableLinks().append(n._legendGroup),n._title.changeLink(n._insideLegendGroup),n._createBackground(),n._title.hasText()){var a=n._background?2*n._options.paddingLeftRight:0;n._title.draw(e-a,t)}n._markersGroup=n._renderer.g().attr({"class":n._itemGroupClass}).append(n._insideLegendGroup),n._createItems(o),n._locateElements(i),n._finalUpdate(i);var r=n.getLayoutOptions();return(r.width>e||r.height>t)&&n.freeSpace(),n},probeDraw:function(e,t){return this.draw(e,t)},_createItems:function(e){var t,n=this,i=n._options,a=i.markerSize,s=n._renderer,l=0,u=de(i.markerShape);n._markersId={},n._items=(e||[]).map(function(e,c){var d=n._markersGroup,h=P(e.size>0?e.size:a),f=e.states,p=f.normal,g=p.fill,_=u(s,h).attr({fill:g||i.markerColor||i.defaultColor,opacity:p.opacity}).append(d),m=n._createLabel(e,d),v={normal:{fill:g},hovered:o(f.hover,g),selected:o(f.selection,g)},y=m.getBBox();return void 0!==e.id&&(n._markersId[e.id]=c),t=r(i,h,y),l=V(l,t.height),n._createHint(e,m,_),{label:m,labelBBox:y,group:d,bBox:t,marker:_,markerSize:h,tracker:{id:e.id,argument:e.argument,argumentIndex:e.argumentIndex},states:v,itemTextPosition:i.itemTextPosition,markerOffset:0,bBoxes:[]}}),i.equalRowHeight&&n._items.forEach(function(e){return e.bBox.height=l})},_getItemData:function(){var e=this._data||[],t=this._options||{};return t.inverted&&(e=e.slice().reverse()),e.filter(function(e){return e.visible})},_finalUpdate:function(e){this._adjustBackgroundSettings(e),this._setBoundingRect(e.margin)},erase:function(){var e=this,t=e._insideLegendGroup;return t&&t.dispose(),e._insideLegendGroup=e._markersGroup=e._x1=e._x2=e._y2=e._y2=null,e},_locateElements:function(e){this._moveInInitialValues(),this._locateRowsColumns(e)},_moveInInitialValues:function(){var e=this;e._title.hasText()&&e._title.move([0,0]),e._legendGroup&&e._legendGroup.move(0,0),e._background&&e._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(e){return l(e,this._markersId,this._items,"selected"),this},applyHover:function(e){return l(e,this._markersId,this._items,"hovered"),this},resetItem:function(e){return l(e,this._markersId,this._items,"normal"),this},_createLabel:function(e,t){var n=this._getCustomizeObject(e),i=this._options,o=C(i.itemTextPosition),a=i.customizeText.call(n,n),r=H(e.textOpacity)?W({},i.font,{opacity:e.textOpacity}):i.font;return this._renderer.text(a,0,0).css((0,S.patchFontOptions)(r)).attr({align:o,"class":i.cssClass}).append(t)},_createHint:function(e,t,n){var i=this._getCustomizeObject(e),o=this._options.customizeHint.call(i,i);H(o)&&""!==o&&(t.setTitle(o),n.setTitle(o))},_createBackground:function(){var e=this,t=e._options.position===ee,n=e._options.backgroundColor,i=n||(t?e._options.containerBackgroundColor:ne);(e._options.border.visible||(t||n)&&n!==ne)&&(e._background=e._renderer.rect(0,0,0,0).attr({fill:i,"class":e._backgroundClass}).append(e._insideLegendGroup))},_locateRowsColumns:function(e){var t,n=this,i=0,o=n._getItemsLayoutOptions(),a=n._items.length;do t=[],n._createLines(t,o),n._alignLines(t,o),i++;while(p(t,o,a,e.margin)&&in.width&&(n.width=t.width),n},getActionCallback:function(e){var t=this;return t._options.visible?function(n){t[n](e.index)}:B.noop},getLayoutOptions:function(){var e=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return e?(t.verticalAlignment=e.verticalAlignment,t.horizontalAlignment=e.horizontalAlignment,e.orientation===Q?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):e.horizontalAlignment===K?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=e.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:e.horizontalAlignment,vertical:e.verticalAlignment},t):null},shift:function(e,t){var n=this,i={};return n._insideLegendGroup&&n._insideLegendGroup.attr({translateX:e-n._boundingRect.x,translateY:t-n._boundingRect.y}),n._title&&n._shiftTitle(n._boundingRect.widthWithoutMargins),n._markersGroup&&n._shiftMarkers(),n._insideLegendGroup&&(i=n._legendGroup.getBBox()),n._x1=i.x,n._y1=i.y,n._x2=i.x+i.width,n._y2=i.y+i.height,n},_shiftTitle:function(e){var t=this,n=t._title,i=n.getCorrectedLayoutOptions();if(i&&n.hasText()){var o=e-(t._background?2*t._options.paddingLeftRight:0),a=n.getOptions(),r=i.y+a.margin.top,s=0;a.verticalAlignment===Z&&(r+=t._markersGroup.getBBox().height),a.horizontalAlignment===U?s=o-i.width:a.horizontalAlignment===K&&(s=(o-i.width)/2),n.shift(s,r)}},_shiftMarkers:function(){var e=this._title.getLayoutOptions(),t=this._markersGroup.getBBox(),n=this._title.getOptions()||{},i=0,o=0;e.width>t.width&&this._options.horizontalAlignment===K&&(i=e.width/2-t.width/2),n.verticalAlignment===X&&(o=e.height),0===i&&0===o||(this._markersGroup.attr({translateX:i,translateY:o}),this._items.forEach(function(e){e.tracker.left+=i,e.tracker.right+=i,e.tracker.top+=o,e.tracker.bottom+=o}))},getPosition:function(){return this._options.position},coordsIn:function(e,t){return e>=this._x1&&e<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(e,t){var n=this._items,i=this._insideLegendGroup;e-=i.attr("translateX"),t-=i.attr("translateY");for(var o=0;o=0&&!i||n<0&&i)||o&&!i||a;return e=t._options.rotated?r?h:f:r?p:g},_getLabelCoords:function(e){var t,n=this;return t=0===n.initialValue&&n.series.isFullStackedSeries()?this._options.rotated?n._getLabelCoordOfPosition(e,h):n._getLabelCoordOfPosition(e,p):"inside"===e.getLayoutOptions().position?n._getLabelCoordOfPosition(e,"inside"):l._getLabelCoords.call(this,e)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea();return n._isPointInVisibleArea(i,n._getGraphicBBox())?n._moveLabelOnCanvas(t,i,e.getBoundingRect()):t},hideInsideLabel:function(e,t){var n=this._getGraphicBBox(),i=e.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(t.y<=n.y&&t.y+i.height>=n.y+n.height||t.x<=n.x&&t.x+i.width>=n.x+n.width)||t.y>n.y+n.height||t.y+i.heightn.x+n.width||t.x+i.widthi&&(i=t.minX),t.maxXo&&(o=t.minY),t.maxY=0,i=this._getValTranslator().getBusinessRange().invert,o=this.x,a=this.y,r=this.width,s=this.height;return this._options.rotated?(t=a+s/2,e=i?n?o:o+r:n?o+r:o):(e=o+r/2,t=i?n?a+s:a:n?a:a+s),{x:e,y:t,offset:0}},getTooltipParams:function(e){if("edge"===e)return this._getEdgeTooltipParams();var t=this.getCenterCoord();return t.offset=0,t},getCenterCoord:function(){var e=this.width,t=this.height,n=this.x,i=this.y;return{x:n+e/2,y:i+t/2}},_truncateCoord:function(e,t,n){return null===e?e:en?n:e},_getErrorBarBaseEdgeLength:function(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(e){l._translateErrorBars.call(this),(this._errorBarPose[1])&&(this._errorBarPos=void 0)},_translate:function(){var e,t,n,i=this,o=i._options.rotated,a=o?"x":"y",r=o?"y":"x",l=o?"width":"height",c=o?"height":"width",d=i._getArgTranslator(),h=i._getValTranslator(),f=i.series.getArgumentAxis().getVisibleArea(),p=i.series.getValueAxis().getVisibleArea();e=d.translate(i.argument),i[r]=e=null===e?e:e+(i[r+"Correction"]||0),t=h.translate(i.value,1),n=h.translate(i.minValue),i["v"+a]=t,i["v"+r]=e+i[c]/2,t=i._truncateCoord(t,p[0],p[1]),n=i._truncateCoord(n,p[0],p[1]),i[l]=s(t-n),t=tf[1]&&(i[c]=f[1]-i[r]))},_updateMarker:function(e,t){this.graphic.smartAttr(o({},t,e?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var e=this,t=e.x,n=e.y,i=e.width,o=e.height,a=e.series.getArgumentAxis(),r=e._options.rotated;if(a.getAxisPosition){var s=a.getOptions(),l=Math.round(s.width/2),u=a.getAxisPosition();if(s.visible)if(r){var c=e.minX===e.defaultX&&e.minX===u-a.getAxisShift();t+=c?l:0,i-=c?l:0,i<0&&(i=0)}else o-=e.minY===e.defaultY&&e.minY===u-a.getAxisShift()?l:0,o<0&&(o=0)}return{x:t,y:n,width:i,height:o}},coordsIn:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}})},function(e,t,n){function i(e,t,n,i){var o=u.clone(e);return o.x=t,o.y=n,o.angle=i,o}function o(e,t,n,o,a){var r=e.angle+a,s=h.getCosAndSin(r),l=n.x+(e.radius+o*a)*s.cos,u=n.y-(e.radius+o*a)*s.sin;return i(t,l,u,r)}function a(e,t,n,i,o){var a=t-e,r=3*n-3*t,s=3*i-6*n+3*t,l=o-3*i+3*n-t;return f.solveCubicEquation(l,s,r,a)}var r=n(107),s=r.chart,l=r.polar,u=n(48),c=n(0).extend,d=n(3).each,h=n(11),f=n(28),p=h.normalizeAngle,g="discrete",_=h.map,m=c,v=d;t.chart={},t.polar={};var y={autoHidePointMarkersEnabled:function(){return!0},_applyGroupSettings:function(e,t,n){var i=this;t=m(t,e),i._applyElementsClipRect(t),n.attr(t)},_setGroupsSettings:function(e){var t=this,n=t._styles.normal;t._applyGroupSettings(n.elements,{"class":"dxc-elements"},t._elementsGroup),t._bordersGroup&&t._applyGroupSettings(n.border,{"class":"dxc-borders"},t._bordersGroup),s._setGroupsSettings.call(t,e),e&&t._markersGroup&&t._markersGroup.attr({opacity:.001})},_createGroups:function(){var e=this;e._createGroup("_elementsGroup",e,e._group),e._areBordersVisible()&&e._createGroup("_bordersGroup",e,e._group),s._createGroups.call(e)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(e){return{line:_(e.line||[],function(e){return e.getDefaultCoords()})}},_prepareSegment:function(e){return{line:e}},_parseLineOptions:function(e,t){return{stroke:e.color||t,"stroke-width":e.width,dashStyle:e.dashStyle||"solid"}},_parseStyle:function(e,t){return{elements:this._parseLineOptions(e,t)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.attr(e.elements),v(t._graphics||[],function(t,n){n.line&&n.line.attr({"stroke-width":e.elements["stroke-width"]}).sharp()})},_drawElement:function(e,t){return{line:this._createMainElement(e.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(e){e.line.remove()},_updateElement:function(e,t,n,i){var o={points:t.line},a=e.line;n?a.animate(o,{},i):a.attr(o)},_animateComplete:function(){var e=this;s._animateComplete.call(e),e._markersGroup&&e._markersGroup.animate({opacity:1},{duration:e._defaultDuration})},_animate:function(){var e=this,t=e._graphics.length-1;v(e._graphics||[],function(n,i){var o;n===t&&(o=function(){e._animateComplete()}),e._updateElement(i,e._segments[n],!0,o)})},_drawPoint:function(e){s._drawPoint.call(this,{point:e.point,groups:e.groups})},_createMainElement:function(e,t){return this._renderer.path(e,"line").attr(t).sharp()},_sortPoints:function(e,t){return t?e.sort(function(e,t){return t.y-e.y}):e.sort(function(e,t){return e.x-t.x})},_drawSegment:function(e,t,n,i){var o=this,a=o._options.rotated,r=!1,s=o._prepareSegment(e,a,i);o._segments.push(s),o._graphics[n]?t?r&&o._updateElement(o._graphics[n],o._getDefaultSegment(s)):o._updateElement(o._graphics[n],s):o._graphics[n]=o._drawElement(t?o._getDefaultSegment(s):s,o._elementsGroup)},_getTrackerSettings:function(){var e=this,t=e._defaultTrackerWidth,n=e._styles.normal.elements["stroke-width"];return{"stroke-width":n>t?n:t,fill:"none"}},_getMainPointsFromSegment:function(e){return e.line},_drawTrackerElement:function(e){return this._createMainElement(this._getMainPointsFromSegment(e),this._getTrackerSettings(e))},_updateTrackerElement:function(e,t){var n=this._getTrackerSettings(e);n.points=this._getMainPointsFromSegment(e),t.attr(n)},checkSeriesViewportCoord:function(e,t){if(0===this._points.length)return!1;var n=e.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=e.getTranslator().translate(n.categories?n.categories[0]:n.min),o=e.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),a=this.getOptions().rotated,r=e.getOptions().inverted;return e.isArgumentAxis&&(!a&&!r||a&&r)||!e.isArgumentAxis&&(a&&!r||!a&&r)?t>=i&&t<=o:t>=o&&t<=i},getSeriesPairCoord:function(e,t){for(var n=this,i=null,o=this.getNearestPointsByCoord(e,t),a=t&&!n._options.rotated||!t&&n._options.rotated,r=0;rt&&n>e||e=x.y&&S>=w.y)||t&&(k<=x.x&&k<=w.x||k>=x.x&&k>=w.x));if(I)t?(u=s=k,c=(S+w.y)/2,l=(S+x.y)/2):(c=l=S,u=(k+w.x)/2,s=(k+x.x)/2);else{if(g=p-f,_=d-h,m=f*h-d*p,t){if(!g)return void n.push(e,e,e);y=S,v=-1*(_*y+m)/g,b=v-k,d-=b,h-=b}else{if(!_)return void n.push(e,e,e);v=k,y=-1*(g*v+m)/_,b=y-S,f-=b,p-=b}u=(k+C*h)/(1+C),c=(S+C*p)/(1+C),s=(k+C*d)/(1+C),l=(S+C*f)/(1+C)}t?(s=a(x.x,k,s),u=a(w.x,k,u)):(l=a(x.y,S,l),c=a(w.y,S,c));var T=i(e,s,l),D=i(e,u,c);n.push(T,e,D)}):n.push(o[0]),n},_prepareSegment:function(e,t){return b._prepareSegment(this._calculateBezierPoints(e,t))},_createMainElement:function(e,t){return this._renderer.path(e,"bezier").attr(t).sharp()},getSeriesPairCoord:function(e,t){for(var n=this,i=null,o=!t&&!this._options.rotated||t&&this._options.rotated,r=o?"vy":"vx",s=o?"y":"x",l=o?"vx":"vy",u=o?"x":"y",c=t?n.getValueAxis():n.getArgumentAxis(),d=c.getVisibleArea(),h=this.getNearestPointsByCoord(e,t),f=function(t){var n=h[t];if(1===n.length)d[0]<=n[0][l]&&d[1]>=n[0][l]&&(i=n[0][l]);else{var o=a(e,n[0][r],n[1][s],n[2][s],n[3][r]);o.forEach(function(e){if(e>=0&&e<=1){var t=Math.pow(1-e,3)*n[0][l]+3*Math.pow(1-e,2)*e*n[1][u]+3*(1-e)*e*e*n[2][u]+e*e*e*n[3][l];d[0]<=t&&d[1]>=t&&(i=t)}})}if(null!==i)return"break"},p=0;p0?n._segments.reduce(function(e,t){return e.concat(t.line)},[]):[],u=[];return n.isVisible()&&s.length>0&&(s.length>1?n.findNeighborPointsByCoord(e,a,r.slice(0),s,function(e,t){var n=l.indexOf(e);u.push([e,l[n+1],l[n+2],t])}):s[0][a]===e&&u.push([s[0]])),u}}),t.polar.line=m({},l,y,{_sortPoints:function(e){return e},_prepareSegment:function(e,t,n){var i,o=[],a=this.getValueAxis().getCenter();if(n&&this._closeSegment(e),this.argumentAxisType===g||this.valueAxisType===g)return b._prepareSegment.call(this,e);for(i=1;i=0?360-t:-t},_closeSegment:function(e){var t,n;t=this._segments.length?this._segments[0].line[0]:i(e[0],e[0].x,e[0].y,e[0].angle),e[e.length-1].angle!==t.angle&&(p(Math.round(e[e.length-1].angle))===p(Math.round(t.angle))?t.angle=e[e.length-1].angle:(n=e[e.length-1].angle-t.angle,t.angle=e[e.length-1].angle+this._getRemainingAngle(n)),e.push(t))},_getTangentPoints:function(e,t,n){var i,a=[],r=Math.round(t.angle-e.angle),s=(t.radius-e.radius)/r;if(0===r)a=[t,e];else if(r>0)for(i=r;i>=0;i--)a.push(o(e,t,n,s,i));else for(i=0;i>=r;i--)a.push(o(e,t,n,s,r-i));return a}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,i,o){return L.default.tickGenerator({axisType:e.type,dataType:e.dataType,logBase:e.logarithmBase,axisDivisionFactor:o(e.axisDivisionFactor||ye),minorAxisDivisionFactor:o(e.minorAxisDivisionFactor||be),numberMultipliers:e.numberMultipliers,calculateMinors:e.minorTick.visible||e.minorGrid.visible||e.calculateMinors,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:t,firstDayOfWeek:e.workWeek&&e.workWeek[0],skipTickGeneration:n,skipCalculationLimits:e.skipCalculationLimits,generateExtraTick:e.generateExtraTick,minTickInterval:e.minTickInterval,rangeIsEmpty:i})}function r(e,t,n){var i=e.getOptions();return(0,$.tick)(e,t,i.tick,i.grid,n,!1)}function s(e,t){var n=e.getOptions();return(0,$.tick)(e,t,n.minorTick,n.minorGrid)}function l(e,t,n){var i=e.getOptions();return(0,$.tick)(e,t,(0,O.extend)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function u(e,t,n,i){(e||[]).forEach(function(e){return e[t](n,i)})}function c(e){u(e,"initCoords")}function d(e,t){u(e,"drawMark",t)}function h(e,t){u(e,"drawGrid",t)}function f(e,t,n){u(e,"updateTickPosition",t,n)}function p(e,t){u(e,"updateGridPosition",t)}function g(e){var t=e.length-1;for(t;t>=0&&_(e,t);t--);for(t=0;t=0&&i.push(t.name)}}),i.map(function(e){var i=v(n,e);return i?{icon:i.icon||Ie,text:i.caption||me.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:ke.default.getIconByFilterOperation(e)||Ie,text:_(e,t),value:e}})}function b(e){return e.defaultFilterOperation||g(e)[0]}function x(e,t){var n=[e.dataField,"",""],i=b(e);return Y(n,i,t),n}function w(e,t){var n=r(e),i=n.indexOf(t);return n.splice(i,1),1!==n.length&&n.splice(i,1),e}function C(e){return e.indexOf("not")!==-1?["!",[e.substring(3).toLowerCase()]]:[e]}function k(e){var t=r(e);if(D(t))return!1;var n=t.some(function(e){return D(e)});return!n}function S(e,t){var n=r(t),i=h(n);return 1===n.length?n.unshift(e):n.push(e,i),t}function I(e,t){for(var n=0;n0)return i[0];throw new ce.default.Error("E1047",e)}function T(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function D(e){return!!Array.isArray(e)&&(e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1]))}function E(e,t){for(var n=d(e).toLowerCase()||Te,i=[],o=0;o-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=he.default.defaultCalculateFilterExpression,(0,se.isDefined)(n.dataType)||(n.dataType=Se),e.push(n)}return e},[])}function R(e,t,n,i){var o=I(e[0],t),a=O(e,n),r=n.length&&v(n,a[1]);return r&&r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[a[2],o,i]):o.createFilterExpression?o.createFilterExpression.apply(o,[a[2],a[1],i]):o.calculateFilterExpression?o.calculateFilterExpression.apply(o,[a[2],a[1],i]):o.defaultCalculateFilterExpression.apply(o,[a[2],a[1],i])}function M(e,t,n,i){if(!(0,se.isDefined)(e))return null;if(a(e)){var o=M(e[1],t,n,i);return["!",o]}var s=r(e);if(D(s))return R(s,t,n,i)||null;for(var l,u=h(s),c=[],d=0;d3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(z(t))return"";if(Array.isArray(t)){var o=new ae.Deferred;return ae.when.apply(this,H(e,t,n,i)).done(function(){for(var e=arguments.length,t=new Array(e),n=0;n",Ae={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],"boolean":["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Oe={date:"shortDate",datetime:"shortDateShortTime"},Be=["=","<>","isblank","isnotblank"],Pe=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"];t.isValidCondition=Z,t.isEmptyGroup=k,t.getOperationFromAvailable=m,t.updateConditionByOperation=Y,t.getCaptionWithParents=U,t.getItems=j,t.setGroupValue=u,t.getGroupMenuItem=c,t.getGroupValue=h,t.getAvailableOperations=y,t.removeItem=w,t.createCondition=x,t.createEmptyGroup=C,t.addItem=S,t.getField=I,t.isGroup=T,t.isCondition=D,t.getNormalizedFields=P,t.getNormalizedFilter=V,t.getGroupCriteria=r,t.convertToInnerStructure=B,t.getDefaultOperation=b,t.getCurrentValueText=N,t.getCurrentLookupValueText=F,t.getFilterOperations=g,t.getCaptionByOperation=_,t.getOperationValue=X,t.getFilterExpression=M,t.getCustomOperation=v,t.getMergedOperations=Q,t.syncFilters=ne,t.getMatchedConditions=ie,t.filterHasField=oe,t.removeFieldConditionsFromFilter=ee},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.dataField||e.groupName||"",n=(e.summaryType||"").toLowerCase();return(0,p.isString)(e.groupInterval)&&(t+="_"+e.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),t.length&&(n=" ("+n+")")):n="",(0,C.titleize)(t)+n}function a(e,t){var n=e._initProperties||{};(0,m.each)(t,function(t,i){Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])})}function r(e,t){a(e,t),(0,p.isDefined)(e.caption)||(0,E.setFieldProperty)(e,"caption",o(e))}function s(e){return e.some(function(e){return e.summaryDisplayMode||e.calculateSummaryValue})}function l(e){return e.some(function(e){return!!e.runningTotal})}function u(e){return e.rows.length||e.columns.length||e.values.length}var c=n(45),d=n(91),h=i(d),f=n(4),p=n(1),g=n(0),_=n(13),m=n(3),v=n(6),y=n(15),b=i(y),x=n(81),w=i(x),C=n(33),k=n(687),S=n(688),I=i(S),T=n(382),D=n(689),E=n(80),A={row:"rows",column:"columns",data:"values",filter:"filters"},O=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],B=["format","selector","customizeText","caption"],P=B.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);e.exports=b.default.inherit(function(){function e(e,t){var n=e.remoteOperations||e.paginate?I.default:k.LocalStore;return new n((0,g.extend)((0,c.normalizeDataSourceOptions)(e),{onChanged:null,onLoadingChanged:null,onProgressChanged:t}))}function t(t,n){var i;if((0,p.isPlainObject)(t)&&t.load)i=e(t,n);else{t&&!t.store&&(t={store:t});var o=t.store;"xmla"===o.type?i=new T.XmlaStore(o):(0,p.isPlainObject)(o)&&o.type||o instanceof h.default||Array.isArray(o)?i=e(t,n):o instanceof b.default&&(i=o)}return i}function n(e,t,n){for(var i=0;i=0&&(0,p.isDefined)(c))return function(e){var t=r?e.index:c,n=r?c:e.index,i=((o[t]||[[]])[n]||[])[a];return(0,p.isDefined)(i)?i:null}}function N(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}function $(e,t,n,i,o){var a=o?"asc":e.sortOrder,r=N(e.sortBy,o),s=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:(0,E.getCompareFunction)(function(e){return e[r]}),l=!o&&z(e,t,n,i),u=l&&(0,E.getCompareFunction)(l),c=function(e,t){var n=u&&u(e,t)||s(e,t);return"desc"===a?-n:n};return c}function W(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,r=[];(0,E.foreachDataLevel)(e[n],function(a,s){var l=o[s]||{},u=r[s]=r[s]||$(l,e,t,n,i);a.sort(u)},a)}function G(e,t,n){W(t,e,"rows",n),W(t,e,"columns",n)}function j(e,t,n){return(0,E.foreachTreeAsync)(e[n],function(e){var i=e[0];i.text=i.text||(0,E.formatValue)(i.value,t[n][(0,E.createPath)(e).length-1])})}function q(e,t){return(0,v.when)(j(t,e,"columns"),j(t,e,"rows"))}function K(e){var t=new v.Deferred,n={};return(0,v.when)((0,E.foreachTreeAsync)(e,function(e){var t=(0,E.createPath)(e).join(".");n[t]=e[0]})).done(t.resolve),e._cacheByPath=n,t}function U(e,t){var n=[];return(0,m.each)(e,function(){M(this,t)&&n.push(this)}),n}var Y=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},X=function e(t,n){var i=-1;if(t)for(var o=0;o=0&&X(e,n)+1,a=[];return(0,v.when)((0,E.foreachTreeAsync)(e,function(e){delete e[0].collapsedChildren})).done(function(){(0,v.when)((0,E.foreachTreeAsync)(t,function(t,n){var i=t[0];if(i.index>=0){var r=Y(e,(0,E.createPath)(t));if(r&&r.index>=0)a[i.index]=r.index;else if(o){var s=(0,E.createPath)(t.slice(1));r=Y(e,s);var l=s.length?r&&r.children:e;l&&(l[n]=i,i.index=a[i.index]=o++)}}})).done(function(){i.resolve(a)})}),i},J=function(e,t,n,i){var o,a,r=e.values;if(t)for(var s=0;s<=t.length;s++){var l=t[s];if(o=n[s],(0,p.isDefined)(o)||(o=e.grandTotalRowIndex),l&&(0,p.isDefined)(o)){r[o]||(r[o]=[]);for(var u=0;u<=l.length;u++){var c=l[u];a=i[u],(0,p.isDefined)(a)||(a=e.grandTotalColumnIndex),(0,p.isDefined)(c)&&(0,p.isDefined)(a)&&(r[o][a]=c)}}}};return{ctor:function(e){e=e||{};var n=this,i=t(e,function(e){n.fireEvent("progressChanged",[e])});n._store=i,n._paginate=!!e.paginate,n._pageSize=e.pageSize||40,n._data={rows:[],columns:[],values:[]},n._loadingCount=0,n._isFieldsModified=!1,(0,m.each)(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);Object.prototype.hasOwnProperty.call(e,i)&&this.on(n,e[i])}.bind(this)),n._retrieveFields=!(0,p.isDefined)(e.retrieveFields)||e.retrieveFields,n._fields=e.fields||[],n._descriptions=e.descriptions?(0,g.extend)(n._createDescriptions(),e.descriptions):void 0,i||(0,g.extend)(!0,n._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n=[];if(t||"data"===e)n=U(this._fields,e),R(n);else{var i=this._descriptions||{};n=i[A[e]]||[]}return n},fields:function(e){var t=this;return e&&(t._fields=F(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function e(t,n){var i=this,o=i._fields,e=o&&o[(0,p.isNumeric)(t)?t:(0,E.findField)(o,t)];return e&&n&&((0,m.each)(n,function(t,n){var i=(0,_.inArray)(t,O)<0;if((0,E.setFieldProperty)(e,t,n,i),"sortOrder"===t)for(var o=e.levels||[],a=0;a0},state:function(e,t){var n=this;return arguments.length?(e=(0,g.extend)({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(n._descriptions?(n._fields=C(e.fields,n._fields),n._descriptions=n._createDescriptions(),!t&&n.load(e)):(n.beginLoading(),(0,v.when)(L(n)).done(function(i){n._fields=C(e.fields,i),n._fieldsPrepared(i),!t&&n.load(e)}).always(function(){n.endLoading()})))):{fields:d(n._fields,O),columnExpandedPaths:i(n._data,n._descriptions,"columns"),rowExpandedPaths:i(n._data,n._descriptions,"rows")}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t=this.isLoading();this._loadingCount+=e;var n=this.isLoading();t^n&&this.fireEvent("loadingChanged",[n])},_hasPagingValues:function(e,t,n){var i=t+"Take",o=t+"Skip",a=this._data.values,r=this._data[t+"s"],s="row"===t?"column":"row",l=[];if(e.path&&e.area===t){var u=Y(r,e.path);if(r=u&&u.children,!r)return!1}if(e.oppositePath&&e.area===s){var c=Y(r,e.oppositePath);if(r=c&&c.children,!r)return!1}for(var d=e[o];d=d.default.trimTime(new Date(this.getStartViewDate()))},_renderDateTimeIndication:function(){if(this.needRenderDateTimeIndication()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(this),this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator())){var e=this._getGroupCount()||1,t=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());n>0&&this._renderIndicator(n,i,t,e)}},_renderIndicator:function(e,t,n,i){for(var o=0;o").addClass(_);return e.append(t),t},_getRtlOffset:function(e){return this.option("rtlEnabled")?this._dateTableScrollable.$content().get(0).getBoundingClientRect().width-this.getTimePanelWidth()-e:0},_setIndicationUpdateInterval:function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},_clearIndicatorUpdateInterval:function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},_isVerticalShader:function(){return!0},getIndicationWidth:function(e){var t=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(e,e*this._getCellCount(),n);return t=0?(t=P(e.margin),t={top:t,bottom:t,left:t,right:t}):t={top:t.top>=0?P(t.top):G,bottom:t.bottom>=0?P(t.bottom):G,left:t.left>=0?P(t.left):G,right:t.right>=0?P(t.right):G},e.margin=t}function r(e,t,n){var i,o,a=7,r=4;switch(e.itemTextPosition){case Y:case U:i=t+a+n.width,o=V(t,n.height);break;case X:case Z:i=V(t,n.width),o=t+r+n.height}return{width:i,height:o}}function s(e,t){var n={};return n.left=F(e.x,t.x),n.top=F(e.y,t.y),n.right=V(e.x+e.width,t.x+t.width),n.bottom=V(e.y+e.height,t.y+t.height),n}function l(e,t,n,i){var o=t&&n[t[e]];o&&o.marker.smartAttr(o.states[i])}function u(e,t,n){return e?(a(e),e.horizontalAlignment=ae(e.horizontalAlignment,U),e.verticalAlignment=re(e.verticalAlignment,e.horizontalAlignment===K?Z:X),e.orientation=se(e.orientation,e.horizontalAlignment===K?Q:J),e.itemTextPosition=le(e.itemTextPosition,e.orientation===Q?Z:U),e.position=n?ue(e.position,te):te,e.itemsAlignment=ce(e.itemsAlignment,null),e.hoverMode=$(e.hoverMode),e.customizeText=z(e.customizeText)?e.customizeText:function(){return this[t]},e.customizeHint=z(e.customizeHint)?e.customizeHint:B.noop,e._incidentOccurred=e._incidentOccurred||B.noop,e):null}function c(e,t){return e.rect(0,0,t,t)}function d(e,t){return e.circle(t/2,t/2,t/2)}function h(e){return"circle"===$(e)}function f(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function p(e,t,n,i){var o={x:0,y:0},a=0,r=0,s=0;if(s="y"===t.direction?i.top+i.bottom:i.left+i.right,e.forEach(function(e,n){var i=e[0],s=e.length;e.forEach(function(e,n){var i=e.offset||t.spacing;o[t.direction]+=e[t.measure]+(n!==s-1?i:0),a=V(a,o[t.direction])}),o[t.direction]=0,o[t.altDirection]+=i[t.altMeasure]+i.altOffset||t.altSpacing,r=V(r,o[t.altDirection])}),a+s>t.length)return t.countItem=g(t,n),!0}function g(e,t){return e.altCountItem++,L(t/e.altCountItem)}function _(e,t){return e.reduce(function(e,n){var i=n.offset||t.spacing;return e+n[t.measure]+i},0)}function m(e,t){return e.reduce(function(e,n){return V(e,_(n,t))},0)}function v(e,t,n){var i,o=_(e,t);switch(t.itemsAlignment){case U:i=n-o;break;case K:i=(n-o)/2;break;default:i=0}return i}function y(e){switch(e.itemTextPosition){case Z:return{horizontal:K,vertical:X};case X:return{horizontal:K,vertical:Z};case Y:return{horizontal:U,vertical:K};case U:return{horizontal:Y,vertical:K}}}function b(e,t,n){var i={};return n%t.countItem===0&&(t.markerOffset?e.push([],[]):e.push([])),t.markerOffset?(i.firstLine=e[e.length-1],i.secondLine=e[e.length-2]):i.firstLine=i.secondLine=e[e.length-1],i}function x(e,t){var n=e.reduce(function(e,n){var i=n?n[t]:e;return V(e,i)},0);e.forEach(function(e){e&&(e[t]=n)})}function w(e){var t,n,i=e.length,o=e[0].length,a=[];for(t=0;t2&&void 0!==arguments[2]?arguments[2]:{},i=this;if(t=i._options=u(t,i._textField,i._allowInsidePosition)||{},i._data=e&&t.customizeItems&&t.customizeItems(e.slice())||e,i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new A.default.Title({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var o=t.title;n.horizontalAlignment=k(t),i._title.update(n,o)}return this.erase(),i},isVisible:function(){return this._options&&this._options.visible},draw:function(e,t){var n=this,i=n._options,o=n._getItemData();if(n._size={width:e,height:t},n.erase(),!(n.isVisible()&&o&&o.length))return n;if(n._insideLegendGroup=n._renderer.g().enableLinks().append(n._legendGroup),n._title.changeLink(n._insideLegendGroup),n._createBackground(),n._title.hasText()){var a=n._background?2*n._options.paddingLeftRight:0;n._title.draw(e-a,t)}n._markersGroup=n._renderer.g().attr({"class":n._itemGroupClass}).append(n._insideLegendGroup),n._createItems(o),n._locateElements(i),n._finalUpdate(i);var r=n.getLayoutOptions();return(r.width>e||r.height>t)&&n.freeSpace(),n},probeDraw:function(e,t){return this.draw(e,t)},_createItems:function(e){var t,n=this,i=n._options,a=i.markerSize,s=n._renderer,l=0,u=de(i.markerShape);n._markersId={},n._items=(e||[]).map(function(e,c){var d=n._markersGroup,h=P(e.size>0?e.size:a),f=e.states,p=f.normal,g=p.fill,_=u(s,h).attr({fill:g||i.markerColor||i.defaultColor,opacity:p.opacity}).append(d),m=n._createLabel(e,d),v={normal:{fill:g},hovered:o(f.hover,g),selected:o(f.selection,g)},y=m.getBBox();return void 0!==e.id&&(n._markersId[e.id]=c),t=r(i,h,y),l=V(l,t.height),n._createHint(e,m,_),{label:m,labelBBox:y,group:d,bBox:t,marker:_,markerSize:h,tracker:{id:e.id,argument:e.argument,argumentIndex:e.argumentIndex},states:v,itemTextPosition:i.itemTextPosition,markerOffset:0,bBoxes:[]}}),i.equalRowHeight&&n._items.forEach(function(e){return e.bBox.height=l})},_getItemData:function(){var e=this._data||[],t=this._options||{};return t.inverted&&(e=e.slice().reverse()),e.filter(function(e){return e.visible})},_finalUpdate:function(e){this._adjustBackgroundSettings(e),this._setBoundingRect(e.margin)},erase:function(){var e=this,t=e._insideLegendGroup;return t&&t.dispose(),e._insideLegendGroup=e._markersGroup=e._x1=e._x2=e._y2=e._y2=null,e},_locateElements:function(e){this._moveInInitialValues(),this._locateRowsColumns(e)},_moveInInitialValues:function(){var e=this;e._title.hasText()&&e._title.move([0,0]),e._legendGroup&&e._legendGroup.move(0,0),e._background&&e._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(e){return l(e,this._markersId,this._items,"selected"),this},applyHover:function(e){return l(e,this._markersId,this._items,"hovered"),this},resetItem:function(e){return l(e,this._markersId,this._items,"normal"),this},_createLabel:function(e,t){var n=this._getCustomizeObject(e),i=this._options,o=C(i.itemTextPosition),a=i.customizeText.call(n,n),r=H(e.textOpacity)?W({},i.font,{opacity:e.textOpacity}):i.font;return this._renderer.text(a,0,0).css((0,S.patchFontOptions)(r)).attr({align:o,"class":i.cssClass}).append(t)},_createHint:function(e,t,n){var i=this._getCustomizeObject(e),o=this._options.customizeHint.call(i,i);H(o)&&""!==o&&(t.setTitle(o),n.setTitle(o))},_createBackground:function(){var e=this,t=e._options.position===ee,n=e._options.backgroundColor,i=n||(t?e._options.containerBackgroundColor:ne);(e._options.border.visible||(t||n)&&n!==ne)&&(e._background=e._renderer.rect(0,0,0,0).attr({fill:i,"class":e._backgroundClass}).append(e._insideLegendGroup))},_locateRowsColumns:function(e){var t,n=this,i=0,o=n._getItemsLayoutOptions(),a=n._items.length;do t=[],n._createLines(t,o),n._alignLines(t,o),i++;while(p(t,o,a,e.margin)&&in.width&&(n.width=t.width),n},getActionCallback:function(e){var t=this;return t._options.visible?function(n){t[n](e.index)}:B.noop},getLayoutOptions:function(){var e=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return e?(t.verticalAlignment=e.verticalAlignment,t.horizontalAlignment=e.horizontalAlignment,e.orientation===Q?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):e.horizontalAlignment===K?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=e.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:e.horizontalAlignment,vertical:e.verticalAlignment},t):null},shift:function(e,t){var n=this,i={};return n._insideLegendGroup&&n._insideLegendGroup.attr({translateX:e-n._boundingRect.x,translateY:t-n._boundingRect.y}),n._title&&n._shiftTitle(n._boundingRect.widthWithoutMargins),n._markersGroup&&n._shiftMarkers(),n._insideLegendGroup&&(i=n._legendGroup.getBBox()),n._x1=i.x,n._y1=i.y,n._x2=i.x+i.width,n._y2=i.y+i.height,n},_shiftTitle:function(e){var t=this,n=t._title,i=n.getCorrectedLayoutOptions();if(i&&n.hasText()){var o=e-(t._background?2*t._options.paddingLeftRight:0),a=n.getOptions(),r=i.y+a.margin.top,s=0;a.verticalAlignment===Z&&(r+=t._markersGroup.getBBox().height),a.horizontalAlignment===U?s=o-i.width:a.horizontalAlignment===K&&(s=(o-i.width)/2),n.shift(s,r)}},_shiftMarkers:function(){var e=this._title.getLayoutOptions(),t=this._markersGroup.getBBox(),n=this._title.getOptions()||{},i=0,o=0;e.width>t.width&&this._options.horizontalAlignment===K&&(i=e.width/2-t.width/2),n.verticalAlignment===X&&(o=e.height),0===i&&0===o||(this._markersGroup.attr({translateX:i,translateY:o}),this._items.forEach(function(e){e.tracker.left+=i,e.tracker.right+=i,e.tracker.top+=o,e.tracker.bottom+=o}))},getPosition:function(){return this._options.position},coordsIn:function(e,t){return e>=this._x1&&e<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(e,t){var n=this._items,i=this._insideLegendGroup;e-=i.attr("translateX"),t-=i.attr("translateY");for(var o=0;o=0&&!i||n<0&&i)||o&&!i||a;return e=t._options.rotated?r?h:f:r?p:g},_getLabelCoords:function(e){var t,n=this;return t=0===n.initialValue&&n.series.isFullStackedSeries()?this._options.rotated?n._getLabelCoordOfPosition(e,h):n._getLabelCoordOfPosition(e,p):"inside"===e.getLayoutOptions().position?n._getLabelCoordOfPosition(e,"inside"):l._getLabelCoords.call(this,e)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea();return n._isPointInVisibleArea(i,n._getGraphicBBox())?n._moveLabelOnCanvas(t,i,e.getBoundingRect()):t},hideInsideLabel:function(e,t){var n=this._getGraphicBBox(),i=e.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(t.y<=n.y&&t.y+i.height>=n.y+n.height||t.x<=n.x&&t.x+i.width>=n.x+n.width)||t.y>n.y+n.height||t.y+i.heightn.x+n.width||t.x+i.widthi&&(i=t.minX),t.maxXo&&(o=t.minY),t.maxY=0,i=this._getValTranslator().getBusinessRange().invert,o=this.x,a=this.y,r=this.width,s=this.height;return this._options.rotated?(t=a+s/2,e=i?n?o:o+r:n?o+r:o):(e=o+r/2,t=i?n?a+s:a:n?a:a+s),{x:e,y:t,offset:0}},getTooltipParams:function(e){if("edge"===e)return this._getEdgeTooltipParams();var t=this.getCenterCoord();return t.offset=0,t},getCenterCoord:function(){var e=this.width,t=this.height,n=this.x,i=this.y;return{x:n+e/2,y:i+t/2}},_truncateCoord:function(e,t,n){return null===e?e:en?n:e},_getErrorBarBaseEdgeLength:function(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(e){l._translateErrorBars.call(this),(this._errorBarPose[1])&&(this._errorBarPos=void 0)},_translate:function(){var e,t,n,i=this,o=i._options.rotated,a=o?"x":"y",r=o?"y":"x",l=o?"width":"height",c=o?"height":"width",d=i._getArgTranslator(),h=i._getValTranslator(),f=i.series.getArgumentAxis().getVisibleArea(),p=i.series.getValueAxis().getVisibleArea();e=d.translate(i.argument),i[r]=e=null===e?e:e+(i[r+"Correction"]||0),t=h.translate(i.value,1),n=h.translate(i.minValue),i["v"+a]=t,i["v"+r]=e+i[c]/2,t=i._truncateCoord(t,p[0],p[1]),n=i._truncateCoord(n,p[0],p[1]),i[l]=s(t-n),t=tf[1]&&(i[c]=f[1]-i[r]))},_updateMarker:function(e,t){this.graphic.smartAttr(o({},t,e?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var e=this,t=e.x,n=e.y,i=e.width,o=e.height,a=e.series.getArgumentAxis(),r=e._options.rotated;if(a.getAxisPosition){var s=a.getOptions(),l=Math.round(s.width/2),u=a.getAxisPosition();if(s.visible)if(r){var c=e.minX===e.defaultX&&e.minX===u-a.getAxisShift();t+=c?l:0,i-=c?l:0,i<0&&(i=0)}else o-=e.minY===e.defaultY&&e.minY===u-a.getAxisShift()?l:0,o<0&&(o=0)}return{x:t,y:n,width:i,height:o}},coordsIn:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}})},function(e,t,n){function i(e,t,n,i){var o=u.clone(e);return o.x=t,o.y=n,o.angle=i,o}function o(e,t,n,o,a){var r=e.angle+a,s=h.getCosAndSin(r),l=n.x+(e.radius+o*a)*s.cos,u=n.y-(e.radius+o*a)*s.sin;return i(t,l,u,r)}function a(e,t,n,i,o){var a=t-e,r=3*n-3*t,s=3*i-6*n+3*t,l=o-3*i+3*n-t;return f.solveCubicEquation(l,s,r,a)}var r=n(107),s=r.chart,l=r.polar,u=n(48),c=n(0).extend,d=n(3).each,h=n(11),f=n(28),p=h.normalizeAngle,g="discrete",_=h.map,m=c,v=d;t.chart={},t.polar={};var y={autoHidePointMarkersEnabled:function(){return!0},_applyGroupSettings:function(e,t,n){var i=this;t=m(t,e),i._applyElementsClipRect(t),n.attr(t)},_setGroupsSettings:function(e){var t=this,n=t._styles.normal;t._applyGroupSettings(n.elements,{"class":"dxc-elements"},t._elementsGroup),t._bordersGroup&&t._applyGroupSettings(n.border,{"class":"dxc-borders"},t._bordersGroup),s._setGroupsSettings.call(t,e),e&&t._markersGroup&&t._markersGroup.attr({opacity:.001})},_createGroups:function(){var e=this;e._createGroup("_elementsGroup",e,e._group),e._areBordersVisible()&&e._createGroup("_bordersGroup",e,e._group),s._createGroups.call(e)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(e){return{line:_(e.line||[],function(e){return e.getDefaultCoords()})}},_prepareSegment:function(e){return{line:e}},_parseLineOptions:function(e,t){return{stroke:e.color||t,"stroke-width":e.width,dashStyle:e.dashStyle||"solid"}},_parseStyle:function(e,t){return{elements:this._parseLineOptions(e,t)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.attr(e.elements),v(t._graphics||[],function(t,n){n.line&&n.line.attr({"stroke-width":e.elements["stroke-width"]}).sharp()})},_drawElement:function(e,t){return{line:this._createMainElement(e.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(e){e.line.remove()},_updateElement:function(e,t,n,i){var o={points:t.line},a=e.line;n?a.animate(o,{},i):a.attr(o)},_animateComplete:function(){var e=this;s._animateComplete.call(e),e._markersGroup&&e._markersGroup.animate({opacity:1},{duration:e._defaultDuration})},_animate:function(){var e=this,t=e._graphics.length-1;v(e._graphics||[],function(n,i){var o;n===t&&(o=function(){e._animateComplete()}),e._updateElement(i,e._segments[n],!0,o)})},_drawPoint:function(e){s._drawPoint.call(this,{point:e.point,groups:e.groups})},_createMainElement:function(e,t){return this._renderer.path(e,"line").attr(t).sharp()},_sortPoints:function(e,t){return t?e.sort(function(e,t){return t.y-e.y}):e.sort(function(e,t){return e.x-t.x})},_drawSegment:function(e,t,n,i){var o=this,a=o._options.rotated,r=!1,s=o._prepareSegment(e,a,i);o._segments.push(s),o._graphics[n]?t?r&&o._updateElement(o._graphics[n],o._getDefaultSegment(s)):o._updateElement(o._graphics[n],s):o._graphics[n]=o._drawElement(t?o._getDefaultSegment(s):s,o._elementsGroup)},_getTrackerSettings:function(){var e=this,t=e._defaultTrackerWidth,n=e._styles.normal.elements["stroke-width"];return{"stroke-width":n>t?n:t,fill:"none"}},_getMainPointsFromSegment:function(e){return e.line},_drawTrackerElement:function(e){return this._createMainElement(this._getMainPointsFromSegment(e),this._getTrackerSettings(e))},_updateTrackerElement:function(e,t){var n=this._getTrackerSettings(e);n.points=this._getMainPointsFromSegment(e),t.attr(n)},checkSeriesViewportCoord:function(e,t){if(0===this._points.length)return!1;var n=e.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=e.getTranslator().translate(n.categories?n.categories[0]:n.min),o=e.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),a=this.getOptions().rotated,r=e.getOptions().inverted;return e.isArgumentAxis&&(!a&&!r||a&&r)||!e.isArgumentAxis&&(a&&!r||!a&&r)?t>=i&&t<=o:t>=o&&t<=i},getSeriesPairCoord:function(e,t){for(var n=this,i=null,o=this.getNearestPointsByCoord(e,t),a=t&&!n._options.rotated||!t&&n._options.rotated,r=0;rt&&n>e||e=x.y&&S>=w.y)||t&&(k<=x.x&&k<=w.x||k>=x.x&&k>=w.x));if(I)t?(u=s=k,c=(S+w.y)/2,l=(S+x.y)/2):(c=l=S,u=(k+w.x)/2,s=(k+x.x)/2);else{if(g=p-f,_=d-h,m=f*h-d*p,t){if(!g)return void n.push(e,e,e);y=S,v=-1*(_*y+m)/g,b=v-k,d-=b,h-=b}else{if(!_)return void n.push(e,e,e);v=k,y=-1*(g*v+m)/_,b=y-S,f-=b,p-=b}u=(k+C*h)/(1+C),c=(S+C*p)/(1+C),s=(k+C*d)/(1+C),l=(S+C*f)/(1+C)}t?(s=a(x.x,k,s),u=a(w.x,k,u)):(l=a(x.y,S,l),c=a(w.y,S,c));var T=i(e,s,l),D=i(e,u,c);n.push(T,e,D)}):n.push(o[0]),n},_prepareSegment:function(e,t){return b._prepareSegment(this._calculateBezierPoints(e,t))},_createMainElement:function(e,t){return this._renderer.path(e,"bezier").attr(t).sharp()},getSeriesPairCoord:function(e,t){for(var n=this,i=null,o=!t&&!this._options.rotated||t&&this._options.rotated,r=o?"vy":"vx",s=o?"y":"x",l=o?"vx":"vy",u=o?"x":"y",c=t?n.getValueAxis():n.getArgumentAxis(),d=c.getVisibleArea(),h=this.getNearestPointsByCoord(e,t),f=function(t){var n=h[t];if(1===n.length)d[0]<=n[0][l]&&d[1]>=n[0][l]&&(i=n[0][l]);else{var o=a(e,n[0][r],n[1][s],n[2][s],n[3][r]);o.forEach(function(e){if(e>=0&&e<=1){var t=Math.pow(1-e,3)*n[0][l]+3*Math.pow(1-e,2)*e*n[1][u]+3*(1-e)*e*e*n[2][u]+e*e*e*n[3][l];d[0]<=t&&d[1]>=t&&(i=t)}})}if(null!==i)return"break"},p=0;p0?n._segments.reduce(function(e,t){return e.concat(t.line)},[]):[],u=[];return n.isVisible()&&s.length>0&&(s.length>1?n.findNeighborPointsByCoord(e,a,r.slice(0),s,function(e,t){var n=l.indexOf(e);u.push([e,l[n+1],l[n+2],t])}):s[0][a]===e&&u.push([s[0]])),u}}),t.polar.line=m({},l,y,{_sortPoints:function(e){return e},_prepareSegment:function(e,t,n){var i,o=[],a=this.getValueAxis().getCenter();if(n&&this._closeSegment(e),this.argumentAxisType===g||this.valueAxisType===g)return b._prepareSegment.call(this,e);for(i=1;i=0?360-t:-t},_closeSegment:function(e){var t,n;t=this._segments.length?this._segments[0].line[0]:i(e[0],e[0].x,e[0].y,e[0].angle),e[e.length-1].angle!==t.angle&&(p(Math.round(e[e.length-1].angle))===p(Math.round(t.angle))?t.angle=e[e.length-1].angle:(n=e[e.length-1].angle-t.angle,t.angle=e[e.length-1].angle+this._getRemainingAngle(n)),e.push(t))},_getTangentPoints:function(e,t,n){var i,a=[],r=Math.round(t.angle-e.angle),s=(t.radius-e.radius)/r;if(0===r)a=[t,e];else if(r>0)for(i=r;i>=0;i--)a.push(o(e,t,n,s,i));else for(i=0;i>=r;i--)a.push(o(e,t,n,s,r-i));return a}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,i,o){return L.default.tickGenerator({axisType:e.type,dataType:e.dataType,logBase:e.logarithmBase,axisDivisionFactor:o(e.axisDivisionFactor||ye),minorAxisDivisionFactor:o(e.minorAxisDivisionFactor||be),numberMultipliers:e.numberMultipliers,calculateMinors:e.minorTick.visible||e.minorGrid.visible||e.calculateMinors,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:t,firstDayOfWeek:e.workWeek&&e.workWeek[0],skipTickGeneration:n,skipCalculationLimits:e.skipCalculationLimits,generateExtraTick:e.generateExtraTick,minTickInterval:e.minTickInterval,rangeIsEmpty:i})}function r(e,t,n){var i=e.getOptions();return(0,$.tick)(e,t,i.tick,i.grid,n,!1)}function s(e,t){var n=e.getOptions();return(0,$.tick)(e,t,n.minorTick,n.minorGrid)}function l(e,t,n){var i=e.getOptions();return(0,$.tick)(e,t,(0,O.extend)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function u(e,t,n,i){(e||[]).forEach(function(e){return e[t](n,i)})}function c(e){u(e,"initCoords")}function d(e,t){u(e,"drawMark",t)}function h(e,t){u(e,"drawGrid",t)}function f(e,t,n){u(e,"updateTickPosition",t,n)}function p(e,t){u(e,"updateGridPosition",t)}function g(e){var t=e.length-1;for(t;t>=0&&_(e,t);t--);for(t=0;t1&&void 0!==arguments[1]?arguments[1]:1;return e.sharp(this._getSharpParam(),t)},getAxisSharpDirection:function(){var e=this._options.position;return e===ce||e===he?1:-1},getSharpDirectionByCoords:function(e){var t=this._getCanvasStartEnd(),n=Math.max(t.start,t.end);return this.getRadius?0:n!==e[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return i.points?e._createPathElement(i.points,n,e.getSharpDirectionByCoords(t.coords)):null}},_getGridPoints:function(e){var t=this,n=this._isHorizontal,i=n?"x":"y",o=this._orthogonalPositions,a=o.start,r=o.end,s=t.borderOptions,l=n?he:ce,u=n?fe:de,c=t.getCanvas(),d={left:c.left,right:c.width-c.right,top:c.top,bottom:c.height-c.bottom},h=s.visible&&s[l]?d[l]:void 0,f=s.visible&&s[u]?d[u]:void 0,p=ue+h,g=f-ue;return t.areCoordsOutsideAxis(e)||void 0===e[i]||e[i]g?{points:null}:{points:n?null!==e[i]?[e[i],a,e[i],r]:null:null!==e[i]?[a,e[i],r,e[i]]:null}},_getConstantLinePos:function(e,t,n){var i=this._getTranslatedCoord(e);if(!(!(0,D.isDefined)(i)||iae(t,n)))return i},_getConstantLineGraphicAttributes:function(e){var t=this._orthogonalPositions.start,n=this._orthogonalPositions.end;return{points:this._isHorizontal?[e,t,e,n]:[t,e,n,e]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t,k(e,this._getCanvasStartEnd()))},_drawConstantLineLabelText:function(e,t,n,i,o){var a=i.font,r=i.cssClass;return this._renderer.text(e,t,n).css(te((0,O.extend)({},this._options.label.font,a))).attr({align:"center","class":r}).append(o)},_drawConstantLineLabels:function(e,t,n,i){var o=this,a=t.text,r=o._options,s=r.label;o._checkAlignmentConstantLineLabels(t),a=(0,D.isDefined)(a)?a:o.formatLabel(e,s);var l=o._getConstantLineLabelsCoords(n,t);return o._drawConstantLineLabelText(a,l.x,l.y,t,i)},_getStripPos:function(e,t,n,i,o){var a,r,s=!(!o.minVisible&&!o.maxVisible),l=(o.categories||[]).reduce(function(e,t){return e.push(t.valueOf()),e},[]),u=o.minVisible;if(!s&&(0,D.isDefined)(e)&&(0,D.isDefined)(t)){var c=this.parser(e),d=this.parser(t),h=(0,B.inArray)((0,D.isDefined)(c)?c.valueOf():void 0,l),f=(0,B.inArray)((0,D.isDefined)(d)?d.valueOf():void 0,l);if(h===-1||f===-1)return{from:0,to:0};if(h>f){var p=t;t=e,e=p}}return(0,D.isDefined)(e)?(e=this.validateUnit(e,"E2105","strip"),a=this._getTranslatedCoord(e,-1),!(0,D.isDefined)(a)&&s&&(a=eu?i:n)):r=i,aa.startValue));var c=l?r.startValue:s.minVisible,d=u?r.endValue:s.maxVisible;if(i){var h=T.default.getCategoriesInfo(o,a.startValue,a.endValue);o=h.categories,s.categories=o}else s.min=(0,D.isDefined)(a.startValue)?a.startValue:s.min,s.max=(0,D.isDefined)(a.endValue)?a.endValue:s.max;var f=T.default.adjustVisualRange({axisType:n.type,dataType:n.dataType,base:n.logarithmBase},{startValue:l?r.startValue:void 0,endValue:u?r.endValue:void 0,length:r.length},{categories:o,min:a.startValue,max:a.endValue},{categories:o,min:c,max:d});return s.minVisible=f.startValue,s.maxVisible=f.endValue,!(0,D.isDefined)(s.min)&&(s.min=s.minVisible),!(0,D.isDefined)(s.max)&&(s.max=s.maxVisible),s.addRange({}),s},adjustRange:function(e){e=e||{};var t=this._options.type===A.default.discrete,n=this._options.type===A.default.logarithmic;if(n&&(e.startValue=e.startValue<=0?null:e.startValue,e.endValue=e.endValue<=0?null:e.endValue),!t&&(0,D.isDefined)(e.startValue)&&(0,D.isDefined)(e.endValue)&&e.startValue>e.endValue){var i=e.endValue;e.endValue=e.startValue,e.startValue=i}return e},_getVisualRangeUpdateMode:function(e,t,n){var i=this._options.visualRangeUpdateMode,o=this._translator,a=this._seriesData;if(this.isArgumentAxis){if([_e,ge,me].indexOf(i)===-1)if(a.axisType===A.default.discrete){var r=a.categories,s=t.categories,l=this.visualRange();i=r&&s&&r.length&&s.map(function(e){return e.valueOf()}).join(",").indexOf(r.map(function(e){return e.valueOf()}).join(","))!==-1&&(l.startValue.valueOf()!==r[0].valueOf()||l.endValue.valueOf()!==r[r.length-1].valueOf())?ge:me}else{var u=o.translate(a.min),c=o.translate(e.startValue),d=o.translate(a.max),h=o.translate(e.endValue);i=u===c&&d===h?me:u!==c&&d===h?_e:ge}}else[ge,me].indexOf(i)===-1&&(i=n===ge?ge:me);return i},_handleBusinessRangeChanged:function(e,t,n){var i=this,o=this.visualRange();if(!t&&!i._translator.getBusinessRange().isEmpty()){var a=i._lastVisualRangeUpdateMode=i._getVisualRangeUpdateMode(o,n,e);if(!i.isArgumentAxis){var r=i.getViewport();(0,D.isDefined)(r.startValue)||(0,D.isDefined)(r.endValue)||(0,D.isDefined)(r.length)||(a=me)}i._prevDataWasEmpty&&(a=ge),a===ge&&i._setVisualRange([o.startValue,o.endValue]),a===me&&i._setVisualRange([null,null]),a===_e&&i._setVisualRange({length:i.getVisualRangeLength()})}},getVisualRangeLength:function(e){var t,n=e||this._translator.getBusinessRange(),i=this._options,o=i.type,a=i.logarithmBase;if(o===A.default.logarithmic)t=(0,W.adjust)(T.default.getLog(n.maxVisible/n.minVisible,a));else if(o===A.default.discrete){var r=T.default.getCategoriesInfo(n.categories,n.minVisible,n.maxVisible);t=r.categories.length}else t=n.maxVisible-n.minVisible;return t},getVisualRangeCenter:function(e){var t,n=this._translator.getBusinessRange(),i=e||n,o=this._options,a=o.type,r=o.logarithmBase;if((0,D.isDefined)(i.minVisible)&&(0,D.isDefined)(i.maxVisible)){if(a===A.default.logarithmic)t=T.default.raiseTo((0,W.adjust)(T.default.getLog(i.maxVisible*i.minVisible,r))/2,r);else if(a===A.default.discrete){var s=T.default.getCategoriesInfo(i.categories,i.minVisible,i.maxVisible),l=Math.ceil(s.categories.length/2)-1;t=n.categories.indexOf(s.categories[l])}else t=(i.maxVisible.valueOf()+i.minVisible.valueOf())/2;return t}},setBusinessRange:function(e,t,n,i){var o=this,a=o._options,r=a.type===A.default.discrete;o._handleBusinessRangeChanged(n,t,e),o._seriesData=new N.Range(e);var s=o._seriesData.isEmpty();if(o._prevDataWasEmpty=s,o._seriesData.addRange({categories:a.categories,dataType:a.dataType,axisType:a.type,base:a.logarithmBase,invert:a.inverted}),!r){if(!(0,D.isDefined)(o._seriesData.min)&&!(0,D.isDefined)(o._seriesData.max)){var l=o.getViewport();l&&o._seriesData.addRange({min:l.startValue,max:l.endValue})}var u=a.synchronizedValue;(0,D.isDefined)(u)&&o._seriesData.addRange({min:u,max:u})}o._seriesData.minVisible=void 0===o._seriesData.minVisible?o._seriesData.min:o._seriesData.minVisible,o._seriesData.maxVisible=void 0===o._seriesData.maxVisible?o._seriesData.max:o._seriesData.maxVisible,!o.isArgumentAxis&&a.showZero&&o._seriesData.correctValueZeroLevel(),o._seriesData.sortCategories(o.getCategoriesSorter(i)),o._seriesData.breaks=o._breaks=o._getScaleBreaks(a,o._seriesData,o._series,o.isArgumentAxis),o._translator.updateBusinessRange(o.adjustViewport(o._seriesData))},_addConstantLinesToRange:function(e,t,n){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(function(i){if(i.options.extendAxis){var a,r=i.getParsedValue();e.addRange((a={},o(a,t,r),o(a,n,r),a))}})},setGroupSeries:function(e){this._series=e},getLabelsPosition:function(){var e=this,t=e._options,n=t.position,i=t.label.indentFromAxis+(e._axisShift||0)+e._constantLabelOffset,o=e._axisPosition;return n===ce||n===he?o-i:o+i},getFormattedValue:function(e,t,n){var i=this._options.label;return(0,D.isDefined)(e)?this.formatLabel(e,(0,O.extend)(!0,{},i,t),void 0,n):null},_getBoundaryTicks:function(e,t){var n=this,i=e.length,o=n._options,a=o.customBoundTicks,r=t.minVisible,s=t.maxVisible,l=o.showCustomBoundaryTicks?n._boundaryTicksVisibility:{},u=[];return o.type===A.default.discrete?n._tickOffset&&0!==e.length&&(u=[e[0],e[e.length-1]]):a?(l.min&&(0,D.isDefined)(a[0])&&u.push(a[0]),l.max&&(0,D.isDefined)(a[1])&&u.push(a[1])):(l.min&&(0===i||e[0]>r)&&u.push(r),l.max&&(0===i||e[i-1]a.max?a.max:y;var x=n._getScaleBreaks(i,{minVisible:v,maxVisible:y},n._series,n.isArgumentAxis);u=f(p,!1,v,y,x).ticks}}return n._aggregationInterval=p,{interval:p,ticks:u}},createTicks:function(e){var t=this,n=t._renderer,i=t._options;if(e){t._isSynchronized=!1,t.updateCanvas(e),t._estimatedTickInterval=t._getTicks(t.adjustViewport(this._seriesData),j.noop,!0).tickInterval;var o=t._getViewportRange(),a=this._calculateValueMargins();o.addRange({minVisible:a.minValue,maxVisible:a.maxValue,isSpacedMargin:a.isSpacedMargin,checkMinDataVisibility:!this.isArgumentAxis&&a.checkInterval&&!(0,D.isDefined)(i.min)&&a.minValue.valueOf()>0,checkMaxDataVisibility:!this.isArgumentAxis&&a.checkInterval&&!(0,D.isDefined)(i.max)&&a.maxValue.valueOf()<0});var u=t._createTicksAndLabelFormat(o),c=t._getBoundaryTicks(u.ticks,t._getViewportRange());i.showCustomBoundaryTicks&&c.length?(t._boundaryTicks=[c[0]].map(l(t,n,!0)),c.length>1&&(t._boundaryTicks=t._boundaryTicks.concat([c[1]].map(l(t,n,!1))))):t._boundaryTicks=[];var d=(u.minorTicks||[]).filter(function(e){return!c.some(function(t){return b(t)===b(e)})});t._tickInterval=u.tickInterval,t._minorTickInterval=u.minorTickInterval;var h=t._majorTicks||[],f=h.reduce(function(e,t){return e[t.value.valueOf()]=t,e},{}),p=(0,D.type)(u.ticks[0])===(0,D.type)(h[0]&&h[0].value),g=t._getSkippedCategory(u.ticks),_=u.ticks.map(function(e){var i=f[e.valueOf()];return i&&p?(delete f[e.valueOf()],i.setSkippedCategory(g),i):r(t,n,g)(e)});t._majorTicks=_;var m=t._minorTicks||[];t._minorTicks=d.map(function(e,i){var o=m[i];return o?(o.updateValue(e),o):s(t,n)(e)}),t._ticksToRemove=Object.keys(f).map(function(e){return f[e]}).concat(m.slice(t._minorTicks.length,m.length)),t._correctedBreaks=u.breaks,t._reinitTranslator(t._getViewportRange())}},_reinitTranslator:function(e){var t=this,n=t._translator;t._correctedBreaks&&(e.breaks=t._correctedBreaks),t._isSynchronized||n.updateBusinessRange(t.adjustViewport(e))},_getViewportRange:function(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(e){this._marginOptions=e},getMarginOptions:function(){return(0,D.isDefined)(this._marginOptions)?this._marginOptions:{}},allowToExtendVisualRange:function(e){var t=this.adjustRange(ne(this._options.wholeRange)),n=e?t.endValue:t.startValue;return!this.isArgumentAxis||!(0,D.isDefined)(n)&&this.isExtremePosition(e)},_calculateRangeInterval:function(e){var t="datetime"===this._options.dataType,n=[],i=function(e){(0,D.isDefined)(e)&&n.push(t?(0,G.dateToMilliseconds)(e):e)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,D.isDefined)(e)&&n.push(e),i(this._aggregationInterval),this._calculateWorkWeekInterval(re.apply(this,n))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*Ce.day,i=Ce.week-n;if(n!==e&&i=e?Ce.day:e-i*o}else i>=e&&e>Ce.day&&(e=Ce.day)}return e},_calculateValueMargins:function(e){function t(e){var t=f.ratioOfCanvasRange();return t/(t*c/(e+c))}function n(e,n){var i=oe(k.start-e),o=oe(k.end-n),a=t(i+o);_=i/a,m=o/a}this._resetMargins();var i,o=this,a=o.getMarginOptions(),r=(a.size||0)/2,s=o._options,l=this._getViewportRange(),u=this.getViewport(),c=o._getScreenDelta(),d=(s.type||"").indexOf(A.default.discrete)!==-1,h=s.valueMarginsEnabled&&!d,f=o._translator,p=s.minValueMargin,g=s.maxValueMargin,_=0,m=0,v=0;if(l.stubData||!c)return{startPadding:0,endPadding:0};if(o.isArgumentAxis&&a.checkInterval){i=o._calculateRangeInterval(l.interval);var y=f.getInterval(i);isFinite(y)?v=Math.ceil(y/(2*t(y))):i=0}var b,x,w=c*we/2;h&&((0,D.isDefined)(p)?b=isFinite(p)?p:0:(_=Math.max(r,v),_=Math.min(w,_)),(0,D.isDefined)(g)?x=isFinite(g)?g:0:(m=Math.max(r,v),m=Math.min(w,m)));var C=a.percentStick&&!this.isArgumentAxis;C&&(1===oe(l.max)&&(m=0),1===oe(l.min)&&(_=0));var k=o._getCanvasStartEnd(),S=1+(b||0)+(x||0),I=(c-_-m)/S||c;void 0===b&&void 0===x||(void 0!==b&&(_=I*b),void 0!==x&&(m=I*x));var T,E;if(s.type!==A.default.discrete&&e&&e.length>1&&!s.skipViewportExtending&&!u.action&&s.endOnTick!==!1){var O=e.length,B=f.translate(e[0].value),P=f.translate(e[O-1].value),R=B>P?-1:1,M=ae(R*(k.start-B),0),V=ae(R*(P-k.end),0);if(M>_||V>m){var F=V+M,L=t(F);M>=_&&(T=e[0].value),V>=m&&(E=e[O-1].value),_=ae(M,_)/L,m=ae(V,m)/L}}return b=void 0===b?_/I:b,x=void 0===x?m/I:x,d||(this._translator.isInverted()?(T=(0,D.isDefined)(T)?T:f.from(k.start+c*b,-1),E=(0,D.isDefined)(E)?E:f.from(k.end-c*x,1)):(T=(0,D.isDefined)(T)?T:f.from(k.start-c*b,-1),E=(0,D.isDefined)(E)?E:f.from(k.end+c*x,1))),o.isArgumentAxis||(T*l.min<=0&&T*l.minVisible<=0&&(n(f.translate(0),f.translate(E)),T=0),E*l.max<=0&&E*l.maxVisible<=0&&(n(f.translate(T),f.translate(0)),E=0)),{startPadding:this._translator.isInverted()?m:_,endPadding:this._translator.isInverted()?_:m,minValue:T,maxValue:E,interval:i,isSpacedMargin:_===m&&0!==_}},applyMargins:function(){if(!this._isSynchronized){var e=this._calculateValueMargins(this._majorTicks),t=(0,O.extend)({},this._canvas,{startPadding:e.startPadding,endPadding:e.endPadding});if(this._translator.updateCanvas(this._processCanvas(t)),isFinite(e.interval)){var n=this._translator.getBusinessRange();n.addRange({interval:e.interval}),this._translator.updateBusinessRange(n)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines:function(){var e=this,t=(this._options.constantLines||[]).map(function(t){return(0,Z.default)(e,t)});this._outsideConstantLines=t.filter(function(e){return"outside"===e.labelPosition}),this._insideConstantLines=t.filter(function(e){return"inside"===e.labelPosition})},draw:function(e,t){var n=this,i=this._options;n.borderOptions=t||{visible:!1},n._resetMargins(),n.createTicks(e),n.applyMargins(),n._clearAxisGroups(),c(n._majorTicks),c(n._minorTicks),c(n._boundaryTicks),n._axisGroup.append(n._axesContainerGroup),n._drawAxis(),n._drawTitle(),d(n._majorTicks,i.tick),d(n._minorTicks,i.minorTick),d(n._boundaryTicks,i.tick);var o=n._getGridLineDrawer();h(n._majorTicks,o),h(n._minorTicks,o),u(n._majorTicks,"drawLabel",n._getViewportRange()),n._majorTicks.forEach(function(e){e.labelRotationAngle=0,e.labelAlignment=void 0,e.labelOffset=0}),u(n._outsideConstantLines.concat(n._insideConstantLines),"draw"),u(n._strips,"draw"),n._dateMarkers=n._drawDateMarkers()||[],n._labelAxesGroup&&n._axisStripLabelGroup.append(n._labelAxesGroup),n._gridContainerGroup&&n._axisGridGroup.append(n._gridContainerGroup),n._stripsGroup&&n._axisStripGroup.append(n._stripsGroup),n._constantLinesGroup&&(n._axisConstantLineGroups.above.inside.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside1.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside2.append(n._constantLinesGroup.above),n._axisConstantLineGroups.under.inside.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside1.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside2.append(n._constantLinesGroup.under)),n._measureTitle(),ke(n._majorTicks);var a,r,s,l=n._tickInterval;(0,D.isDefined)(l)&&(s=n.getTranslator().getInterval("datetime"===i.dataType?(0,G.dateToMilliseconds)(l):l)),n._isHorizontal?(a=s,r=i.placeholderSize):(a=i.placeholderSize,r=s);var f=n._validateDisplayMode(i.label.displayMode),p=n._validateOverlappingMode(i.label.overlappingBehavior,f),g=i.label.wordWrap||"none",_=i.label.textOverflow||"none";if(("none"!==g||"none"!==_)&&f!==ve&&p!==ve&&"auto"!==p){var m=!1,v=!1;a&&n._majorTicks.some(function(e){return e.labelBBox.width>a})&&(m=!0),r&&n._majorTicks.some(function(e){return e.labelBBox.height>r})&&(v=!0),(m||v)&&(n._majorTicks.forEach(function(e){e.label&&e.label.setMaxSize(a,r,i.label)}),ke(n._majorTicks))}ke(n._outsideConstantLines),ke(n._insideConstantLines),ke(n._strips),ke(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var y=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().isEmpty()||(n._setLabelsPlacement(),y=n._adjustLabels(y)),y=n._adjustDateMarkers(y),n._adjustTitle(y)},_measureTitle:j.noop,animate:function(){u(this._majorTicks,"animateLabels")},updateSize:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this;i.updateCanvas(e),n&&(i._checkTitleOverflow(),i._measureTitle(),i._updateTitleCoords()),i._reinitTranslator(i._getViewportRange()),i.applyMargins();var o=!i._firstDrawing&&t,a=this._options;c(i._majorTicks),c(i._minorTicks),c(i._boundaryTicks),g(i._majorTicks),g(i._minorTicks),g(i._boundaryTicks),this._axisElement&&i._updateAxisElementPosition(),f(i._majorTicks,a.tick,o),f(i._minorTicks,a.minorTick,o),f(i._boundaryTicks,a.tick),u(i._majorTicks,"updateLabelPosition",o),i._outsideConstantLines.concat(i._insideConstantLines||[]).forEach(function(e){return e.updatePosition(o)}),u(i._strips,"updatePosition",o),p(i._majorTicks,o),p(i._minorTicks,o),o&&u(i._ticksToRemove||[],"fadeOutElements"),i.prepareAnimation(),i._ticksToRemove=null,i._translator.getBusinessRange().isEmpty()||(i._firstDrawing=!1)},prepareAnimation:function(){var e=this,t="saveCoords";u(e._majorTicks,t),u(e._minorTicks,t),u(e._insideConstantLines,t),u(e._outsideConstantLines,t),u(e._strips,t)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e})},_mergeViewportOptions:function(){var e=this,t=e._options,n={},i=t._customVisualRange;n=!(0,D.isDefined)(t.max)&&!(0,D.isDefined)(t.min)||(0,D.isDefined)(i.startValue)||(0,D.isDefined)(i.endValue)||(0,D.isDefined)(i.length)?i:{startValue:t.min,endValue:t.max},e._setVisualRange(n)},_validateVisualRange:function(e){var t=ne(e);return void 0!==t.startValue&&(t.startValue=this.validateUnit(t.startValue)),void 0!==t.endValue&&(t.endValue=this.validateUnit(t.endValue)),C(t,e)},_validateOptions:function(e){var t=this;void 0!==e.min&&(e.min=t.validateUnit(e.min,"E2106")),void 0!==e.max&&(e.max=t.validateUnit(e.max,"E2106")),e.wholeRange=t._validateVisualRange(e.wholeRange),e.visualRange=e._customVisualRange=t._validateVisualRange(e._customVisualRange),t._mergeViewportOptions()},validate:function(){var e=this,t=e._options,n=e.isArgumentAxis?t.argumentType:t.valueType,i=n?V.default.getParser(n):function(e){return e};e.parser=i,t.dataType=n,e._validateOptions(t)},resetVisualRange:function(e){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!e,end:!!e})},_applyZooming:function(e,t){var n=this;n._resetVisualRangeOption(),n._setVisualRange(e,t);var i=n.getViewport();n._breaks=n._getScaleBreaks(n._options,{minVisible:i.startValue,maxVisible:i.endValue},n._series,n.isArgumentAxis),n._translator.updateBusinessRange(n._getViewportRange())},getZoomStartEventArg:function(e,t){return{axis:this,range:this.visualRange(),cancel:!1,event:e,actionType:t}},getZoomEndEventArg:function(e,t,n,i,o){var a=this.visualRange();return{axis:this,previousRange:e,range:a,cancel:!1,event:t,actionType:n,zoomFactor:i,shift:o,rangeStart:a.startValue,rangeEnd:a.endValue}},getZoomBounds:function(){var e=T.default.getVizRangeObject(this._options.wholeRange),t=this.getTranslator().getBusinessRange(),n={startValue:x(this._initRange.startValue,t.min),endValue:x(this._initRange.endValue,t.max)};return{startValue:x(e.startValue,n.startValue),endValue:x(e.endValue,n.endValue)}},setInitRange:function(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds()); },_resetVisualRangeOption:function(){this._options._customVisualRange={}},setCustomVisualRange:function(e){this._options._customVisualRange=e},visualRange:function e(){var e,t=this,n=arguments;if(0===n.length){var i=t._getAdjustedBusinessRange(),o=i.minVisible,a=i.maxVisible;return t._options.type===A.default.discrete?(o=(0,D.isDefined)(o)?o:i.categories[0],a=(0,D.isDefined)(a)?a:i.categories[i.categories.length-1],{startValue:o,endValue:a,categories:T.default.getCategoriesInfo(i.categories,o,a).categories}):{startValue:o,endValue:a}}e=se(n[0])?n[0]:(0,D.isPlainObject)(n[0])?(0,O.extend)({},n[0]):[n[0],n[1]];var r=t.handleZooming(e,n[1]);r.isPrevented||t._visualRange(t,r)},handleZooming:function(e,t,n,i){var o=this;t=t||{},(0,D.isDefined)(e)&&(e=o._validateVisualRange(e),e.action=i);var a=o.getZoomStartEventArg(n,i),r=a.range;!t.start&&o._eventTrigger("zoomStart",a);var s={isPrevented:a.cancel,skipEventRising:t.skipEventRising,range:e||a.range};return a.cancel||((0,D.isDefined)(e)&&o._applyZooming(e,t.allowPartialUpdate),(0,D.isDefined)(o._storedZoomEndParams)||(o._storedZoomEndParams={startRange:r,type:this.getOptions().type}),o._storedZoomEndParams.event=n,o._storedZoomEndParams.action=i,o._storedZoomEndParams.prevent=!!t.end),s},handleZoomEnd:function(){var e=this;if((0,D.isDefined)(e._storedZoomEndParams)&&!e._storedZoomEndParams.prevent){var t=e._storedZoomEndParams.startRange,n=e._storedZoomEndParams.event,i=e._storedZoomEndParams.action,o={minVisible:t.startValue,maxVisible:t.endValue,categories:t.categories},a=e.getOptions().type===e._storedZoomEndParams.type,r=a?(0,W.adjust)(e.getVisualRangeCenter()-e.getVisualRangeCenter(o)):NaN,s=a?+(Math.round(e.getVisualRangeLength(o)/e.getVisualRangeLength()+"e+2")+"e-2"):NaN,l=e.getZoomEndEventArg(t,n,i,s,r);l.cancel=e.isZoomingLowerLimitOvercome(1===s?"pan":"zoom",s),e._eventTrigger("zoomEnd",l),l.cancel&&e.restorePreviousVisualRange(t),e._storedZoomEndParams=null}},restorePreviousVisualRange:function(e){var t=this;t._storedZoomEndParams=null,t._applyZooming(e),t._visualRange(t,e)},isZoomingLowerLimitOvercome:function(e,t,n){var i,o=this,a=o._options,r=a.minVisualRangeLength,s="zoom"===e&&t>=1,l=o._translator.getBusinessRange();(0,D.isDefined)(n)&&(i=o.adjustRange(T.default.getVizRangeObject(n)),i={minVisible:i.startValue,maxVisible:i.endValue,categories:l.categories});var u=o.getVisualRangeLength(i);if("discrete"!==a.type)if((0,D.isDefined)(r))"datetime"!==a.dataType||(0,D.isNumeric)(r)||(r=(0,G.dateToMilliseconds)(r)),s&=r>=u;else{var c=o._translator.canvasLength,d={minVisible:l.min,maxVisible:l.max,categories:l.categories};s&=o.getVisualRangeLength(d)/c>=u}else!(0,D.isDefined)(r)&&(r=1),s&=(0,D.isDefined)(n)&&o.getVisualRangeLength()===r&&u<=r;return!!s},dataVisualRangeIsReduced:function(){var e,t,n=this.getTranslator();if("discrete"===this._options.type){var i=n.getBusinessRange().categories;e=i[0],t=i[i.length-1]}else{var o=this._seriesData;e=o.min,t=o.max}if(!(0,D.isDefined)(e)||!(0,D.isDefined)(t))return!1;var a=n.translate(e),r=n.translate(t),s=[Math.min(a,r),Math.max(a,r)],l=this.visualRange(),u=n.translate(l.startValue),c=n.translate(l.endValue);return u>s[0]&&us[0]&&c1&&e.some(s)&&o._applyLabelMode(t,n,e,i),o._checkBoundedLabelsOverlapping(r,e,t)}},_applyLabelMode:function(e,t,n,i,o){var a,r,s=this,l=s._majorTicks,u=s._options.label,c=i.rotationAngle;switch(e){case ve:u.userAlignment||(a=c<0?fe:he,c%90===0&&(a=pe)),t=o?t:s._getStep(n,c),r=function(e){e.label.rotate(c),e.labelRotationAngle=c,a&&(e.labelAlignment=a)},y(l,t,r);break;case"stagger":var d=s._getMaxLabelHeight(n,i.staggeringSpacing);r=function(e,n){n/(t-1)%2!==0&&(e.labelOffset=d)},y(l,t-1,r);break;case"auto":case"_auto":2===t?s._applyLabelMode("stagger",t,n,i):s._applyLabelMode(ve,t,n,{rotationAngle:v(n,u)});break;default:y(l,t)}},getMarkerTrackers:j.noop,_drawDateMarkers:j.noop,_adjustDateMarkers:j.noop,coordsIn:j.noop,areCoordsOutsideAxis:j.noop,_getSkippedCategory:j.noop,_initAxisPositions:j.noop,_drawTitle:j.noop,_updateTitleCoords:j.noop,_adjustConstantLineLabels:j.noop,_createTranslator:function(){return new z.default.Translator2D({},{},{})},_updateTranslator:function(){var e=this._translator;e.update(e.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var e=this._options;return{isHorizontal:this._isHorizontal,shiftZeroValue:!this.isArgumentAxis,interval:e.semiDiscreteInterval,stick:this._getStick(),breaksSize:e.breakStyle?e.breakStyle.width:0}},getVisibleArea:function(){var e=this._getCanvasStartEnd();return[e.start,e.end].sort(function(e,t){return e-t})},_getCanvasStartEnd:function(){var e=this._isHorizontal,t=this._canvas||{},n=this._translator.getBusinessRange().invert,i=e?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var e=this,t=e._getCanvasStartEnd(),n=e._breaks,i=n?n.length:0,o=oe(t.start-t.end);return o-(i?n[i-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_adjustTitle:j.noop,_checkTitleOverflow:j.noop,getSpiderTicks:j.noop,setSpiderTicks:j.noop,_checkBoundedLabelsOverlapping:j.noop,drawScaleBreaks:j.noop,_visualRange:j.noop,_rotateConstantLine:j.noop,applyVisualRangeSetter:j.noop,getCategoriesSorter:function(e){var t;if(this.isArgumentAxis)t=e;else{var n=this._options.categoriesSortingMethod;t=(0,D.isDefined)(n)?n:this._options.categories}return t},_getAdjustedBusinessRange:function(){return this.adjustViewport(this._translator.getBusinessRange())}}},function(e,t,n){function i(e,t){return null===e?e:D(e)?E(e):t}function o(e){return w(e)?e:C(e)?[e]:null}function a(e){return e?e.value:null}function r(e,t,n){for(var o=e[t],r=w(n)?S(n,a):[],s=0,l=r.length,u=[];s0&&n.width>0,o=e.minorTick,a=o.visible&&o.length>0&&o.width>0,r=e.label,s=Number(r.indentFromTick);if(!i&&!a&&!r.visible)return{};var l=t._scale.measureLabels(b({},t._canvas)),u=t._getScaleLayoutValue(),c={min:u,max:u},d=t._getTicksCoefficients(e),h=d.inner,f=d.outer;return i&&(c.min=A(c.min,u-h*n.length),c.max=O(c.max,u+f*n.length)),a&&(c.min=A(c.min,u-h*o.length),c.max=O(c.max,u+f*o.length)),r.visible&&t._correctScaleIndents(c,s,l),c},_renderContent:function(){var e=this,t=e._prepareScaleSettings();e._rangeContainer.render(B(e._getOption("rangeContainer"),{vertical:e._area.vertical})),e._renderScale(t);var n=S([e._rangeContainer].concat(e._prepareValueIndicators()),function(e){return e&&e.enabled?e:null});e._applyMainLayout(n,e._measureScale(t)),P(n,function(t,n){n.resize(e._getElementLayout(n.getOffset()))}),e._shiftScale(e._getElementLayout(0),t),e._beginValueChanging(),e._updateActiveElements(),e._endValueChanging()},_prepareScaleSettings:function(){var e=this,t=e.option("scale"),n=b(!0,{},e._themeManager.theme("scale"),t);return n.label.indentFromAxis=0,n.isHorizontal=!e._area.vertical,n.forceUserTickInterval|=x(t)&&x(t.tickInterval)&&!x(t.scaleDivisionFactor),n.axisDivisionFactor=n.scaleDivisionFactor||e._gridSpacingFactor,n.minorAxisDivisionFactor=n.minorScaleDivisionFactor||L,n.numberMultipliers=H,n.tickOrientation=e._getTicksOrientation(n),n.label.useRangeColors&&(n.label.customizeColor=function(){return e._rangeContainer.getColorForValue(this.value)}),n},_renderScale:function(e){var t=this,n=t._translator.getDomain(),i=n[0],o=n[1],a=t._translator.getCodomain(),r=i>o,s=A(i,o),l=O(i,o);e.min=s,e.max=l,e.startAngle=M-a[0],e.endAngle=M-a[1],e.skipViewportExtending=!0,t._scale.updateOptions(e),t._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:s,max:l,invert:r}),t._updateScaleTickIndent(e),t._scaleGroup.linkAppend(),t._scale.draw(b({},t._canvas))},_updateIndicatorSettings:function(e){var t=this;e.currentValue=e.baseValue=D(t._translator.translate(e.baseValue))?E(e.baseValue):t._baseValue,e.vertical=t._area.vertical,e.text&&!e.text.format&&(e.text.format=t._defaultFormatOptions)},_prepareIndicatorSettings:function(e,t){var n=this,i=n._themeManager.theme("valueIndicators"),o=I(e.type||n._themeManager.theme(t)),a=B(!0,{},i._default,i[o],e);return a.type=o,a.animation=n._animationSettings,a.containerBackgroundColor=n._containerBackgroundColor,n._updateIndicatorSettings(a),a},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){var e=this;return e._prepareValueIndicator(),null!==e.__subvalues&&e._prepareSubvalueIndicators(),[e._valueIndicator,e._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var e=this,t=e._valueIndicator,n=e._prepareIndicatorSettings(e.option("valueIndicator")||{},"valueIndicatorType");t&&t.type!==n.type&&(t.dispose(),t=null),t||(t=e._valueIndicator=e._createIndicator(n.type,e._renderer.root,"dxg-value-indicator","value-indicator")),t.render(n)},_createSubvalueIndicatorsSet:function(){var e=this,t=e._renderer.root;return new _({createIndicator:function(n,i){return e._createIndicator(n,t,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(t){return e._themeManager.createPalette(t)}})},_prepareSubvalueIndicators:function(){var e=this,t=e._subvalueIndicatorsSet,n=e._prepareIndicatorSettings(e.option("subvalueIndicator")||{},"subvalueIndicatorType");t||(t=e._subvalueIndicatorsSet=e._createSubvalueIndicatorsSet());var i=n.type!==t.type;t.type=n.type;var o=e._createIndicator(n.type,e._renderer.root);o&&(o.dispose(),t.render(n,i))},_setupValue:function(e){this.__value=i(e,this.__value)},_setupSubvalues:function(e){var t,n,a,r=void 0===e?this.__subvalues:o(e);if(null!==r){for(t=0,n=r.length,a=[];te){for(t=e,n=r;t2?Object.keys(o).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(o[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},r={y:function(e){return"[0-9]+"},M:a,L:a,Q:function(e,t){return e>2?t.getQuarterNames(o[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(o[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"}},s=Number,l=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},u=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(o).map(function(i){var a=n.getMonthNames(o[i],t);return l(a,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},c={y:function(e,t){var n=s(e);return 2===t?n<30?2e3+n:1900+n:n},M:u,L:u,Q:function(e,t,n){return t>2?n.getQuarterNames(o[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(o[t<3?3:t],"format");return l(i,e)},a:function(e,t,n){var i=n.getPeriodNames(o[t<3?3:t],"format");return l(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},d=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t,n){var i=e.getHours(),o=n.h;void 0!==o&&o!==i&&i--,t||12!==i?t&&12!==i&&(i+=12):i=0,e.setHours(i)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},f=function(e,t){var n=e[t],i=0;do t++,i++;while(e[t]===n);return i},p=function(e,t){for(var n="",i=0;is)){var c=r.indexOf(e);if(c>=0){var h=n.patterns[c],f=i[c+1];m(a,h,f,t,u)}else v(a,e,o)}}),a}return null}};t.getParser=w,t.getRegExpInfo=g,t.getPatternSetters=_},function(e,t,n){var i=n(13).inArray,o=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return o.fire()},e.exports.hideCallback=o},function(e,t,n){var i=n(171),o=i.data=n(236);o.odata=n(490),e.exports=o},function(e,t,n){var i=n(37),o=n(10),a=n(7),r=a.getWindow(),s=n(1),l=n(83),u=n(173),c=n(217),d=function(e,t){return new h(e,t)},h=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:o.getBody(),this.length=1,this):(t=t||o.getDocument(),"<"===e[0]?(this[0]=o.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,o.querySelectorAll(t,e)),this)):o.isNode(e)||s.isWindow(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):d(e.toArray?e.toArray():[e]):(this.length=0,this)};d.fn={dxRenderer:!0},h.prototype=d.fn;var f=function(e,t){for(var n=0;n1&&arguments.length>1)return f.call(this,"attr",arguments);if(!this[0])return s.isObject(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if(s.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else p(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&o.removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(s.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else o.setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n=0)return!0}return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return f.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),a=0===e.indexOf("inner");h.prototype[e]=function(l){if(this.length>1&&arguments.length>0)return f.call(this,e,arguments);var c=this[0];if(c){if(s.isWindow(c))return i?c["inner"+t]:o.getDocumentElement()["client"+t];if(o.isDocument(c)){var d=o.getDocumentElement(),h=o.getBody();return Math.max(h["scroll"+t],h["offset"+t],d["scroll"+t],d["offset"+t],d["client"+t])}if(0===arguments.length||"boolean"==typeof l){var p={paddings:a||i,borders:i,margins:l};return u.getSize(c,n,p)}if(void 0===l||null===l)return this;if(s.isNumeric(l)){var g=r.getComputedStyle(c),_=u.getElementBoxParams(n,g),m="border-box"===g.boxSizing;l=Number(l),i?l-=m?0:_.border+_.padding:a?l+=m?_.border:-_.padding:m&&(l+=_.border+_.padding)}return l+=s.isNumeric(l)?"px":"",o.setStyle(c,n,l),this}}}),h.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!c.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(c.parseHTML(e))):this[0].innerHTML};var g=function(e,t){if(this[0]&&e){"string"==typeof e?e=c.parseHTML(e):e.nodeType?e=[e]:s.isNumeric(e)&&(e=[o.createTextNode(e)]);for(var n=0;n1){for(var t=0;t1){for(var t=0;t1){for(var t=this.length-1;t>=0;t--)d(this[t]).prependTo(e);return this}return e=d(e),e[0]&&o.insertElement(e[0],this[0],e[0].firstChild),this},h.prototype.appendTo=function(e){return this.length>1?f.call(this,"appendTo",arguments):(o.insertElement(d(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=d(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.is(this)?this:(e.insertBefore(this),this.remove(),e)},h.prototype.remove=function(){return this.length>1?f.call(this,"remove",arguments):(i.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?f.call(this,"detach",arguments):(o.removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?f.call(this,"empty",arguments):(i.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t\x20\t\r\n\f]+)/i,r={"default":{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"",endTags:"
"},td:{tagsCount:3,startTags:"",endTags:"
"},col:{tagsCount:2,startTags:"",endTags:"
"},tr:{tagsCount:2,startTags:"",endTags:"
"}};r.tbody=r.colgroup=r.caption=r.tfoot=r.thead,r.th=r.td;var s=function(e){if("string"!=typeof e)return null;var t=o.createDocumentFragment(),n=t.appendChild(o.createElement("div")),s=a.exec(e),l=s&&s[1].toLowerCase(),u=r[l]||r.default;n.innerHTML=u.startTags+e+u.endTags;for(var c=0;c0?o.apply(void 0,arguments):e;return i.toFixed(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.toFixed=void 0;var r=n(28),s=10;t.toFixed=a},function(e,t,n){function i(e,t){for(;e.length0?"-":"+",r=Math.abs(o),s=Math.floor(r/60),l=r%60,u=i(s.toString(),2),c=i(l.toString(),2);return a+u+(t>=3?":":"")+(t>1||l?c:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":a.x(e,t,n)},Z:function(e,t,n){return a.X(e,t>=5?3:2,n)}},r=function(e,t){return function(n){var i,o,r,s,l=0,u="'",c=!1,d="";if(!n)return null;if(!e)return n;var h="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.backgroundColor,n=e.fillPatternType,i=e.fillPatternColor;return!(0,o.isDefined)(t)||(0,o.isDefined)(n)&&(0,o.isDefined)(i)?(0,o.isDefined)(n)&&(0,o.isDefined)(i)?{patternFill:{patternType:n,foregroundColor:{rgb:i},backgroundColor:{rgb:t}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:t}}}},copySimpleFormat:function(e,t){void 0!==e.backgroundColor&&(t.backgroundColor=e.backgroundColor),void 0!==e.fillPatternType&&(t.fillPatternType=e.fillPatternType),void 0!==e.fillPatternColor&&(t.fillPatternColor=e.fillPatternColor)},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.patternFill&&(t.patternFill=l.default.copy(e.patternFill))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&l.default.areEqual(e.patternFill,t.patternFill)},isEmpty:function(e){return!(0,o.isDefined)(e)||l.default.isEmpty(e.patternFill)},toXml:function(e){return r.default.toXml("fill",{},l.default.toXml(e.patternFill))}};t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(75),r=i(a),s={_tryConvertColor:function(e){if("string"!=typeof e)return e;var t;if(e.length>0&&"#"===e[0]){var n=e.substr(1,e.length);t=6===n.length?"FF"+n:8===n.length?n[6]+n[7]+n.substr(0,6):n}else t=e;return t},tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t="string"==typeof e?{rgb:this._tryConvertColor(e)}:{rgb:this._tryConvertColor(e.rgb),theme:e.theme},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&("string"==typeof e?t=e:(t={},void 0!==e.rgb&&(t.rgb=e.rgb),void 0!==e.theme&&(t.theme=e.theme))),t},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.rgb)&&!(0,o.isDefined)(e.theme)},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.rgb===t.rgb&&e.theme===t.theme},toXml:function(e,t){return r.default.toXml(e,{rgb:t.rgb,theme:t.theme})}};t.default=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(75),r=i(a),s=n(222),l=i(s),u={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={size:e.size,name:e.name,family:e.family,scheme:e.scheme,bold:e.bold,italic:e.italic,underline:e.underline,color:l.default.tryCreateTag(e.color)},u.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.size&&(t.size=e.size),void 0!==e.name&&(t.name=e.name),void 0!==e.family&&(t.family=e.family),void 0!==e.scheme&&(t.scheme=e.scheme),void 0!==e.bold&&(t.bold=e.bold),void 0!==e.italic&&(t.italic=e.italic),void 0!==e.underline&&(t.underline=e.underline),void 0!==e.color&&(t.color=l.default.copy(e.color))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.size===t.size&&e.name===t.name&&e.family===t.family&&e.scheme===t.scheme&&(e.bold===t.bold||!e.bold==!t.bold)&&(e.italic===t.italic||!e.italic==!t.italic)&&e.underline===t.underline&&l.default.areEqual(e.color,t.color)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.size)&&!(0,o.isDefined)(e.name)&&!(0,o.isDefined)(e.family)&&!(0,o.isDefined)(e.scheme)&&(!(0,o.isDefined)(e.bold)||!e.bold)&&(!(0,o.isDefined)(e.italic)||!e.italic)&&!(0,o.isDefined)(e.underline)&&l.default.isEmpty(e.color)},toXml:function(e){var t=[(0,o.isDefined)(e.bold)&&e.bold?r.default.toXml("b",{}):"",(0,o.isDefined)(e.size)?r.default.toXml("sz",{val:e.size}):"",(0,o.isDefined)(e.color)?l.default.toXml("color",e.color):"",(0,o.isDefined)(e.name)?r.default.toXml("name",{val:e.name}):"",(0,o.isDefined)(e.family)?r.default.toXml("family",{val:e.family}):"",(0,o.isDefined)(e.scheme)?r.default.toXml("scheme",{val:e.scheme}):"",(0,o.isDefined)(e.italic)&&e.italic?r.default.toXml("i",{}):"",(0,o.isDefined)(e.underline)?r.default.toXml("u",{val:e.underline}):""].join("");return r.default.toXml("font",{},t)}};t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var i=(0,F.default)("")[0];return i.width=e+2*n,i.height=t+2*n,i.hidden=!0,i}function a(e,t){var n=e.toDataURL(t,ce),i=J.atob(n.substring(("data:"+t+";base64,").length));return i}function r(e,t,n,i,o,a,r,s){var l=(e+n)/2,u=(t+i)/2,c=re(t-i,e-n),d=a?1:-1;c+=90*(te/180)*(r?1:-1);var h=oe(ae(n-e,2)+ae(i-t,2))/2,f=oe(ie(ae(o,2)-ae(h,2))),p=l+d*(f*se(c)),g=u+d*(f*le(c)),_=re(t-g,e-p),m=re(i-g,n-p);s.arc(p,g,o,_,m,!r)}function s(e,t){var n,i=ge(e.attributes||{}),o=(0,G.extend)({},i,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===i["text-anchor"]?"center":i["text-anchor"]}),a=i.transform;return a&&(n=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.translateX=ue(n[0]),o.translateY=n[1]?ue(n[1]):0),n=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=ue(n[0]),o.rotationX=n[1]&&ue(n[1]),o.rotationY=n[2]&&ue(n[2])),n=a.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),n&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.scaleX=ue(n[0]),n.length>1?o.scaleY=ue(n[1]):o.scaleY=o.scaleX)),d(e,o,t),o}function l(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,r=t.rx;r?(r=ne(r,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,r),e.arcTo(o,a,0,a,r),e.arcTo(0,a,0,0,r),e.arcTo(0,0,r,0,r),e.lineTo(o/2,0),e.restore()):e.rect(n,i,o,a)}function u(e,t,n){var i=new Q.Deferred,o=new J.Image;return o.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,w(e,t),C(e,t,n),e.drawImage(o,t.x,t.y,t.width,t.height),e.restore(),i.resolve()},o.onerror=function(){i.resolve()},o.setAttribute("crossOrigin","anonymous"),o.src=t.href||t["xlink:href"],i}function c(e,t){var n,i,o=t.replace(/,/g," ").split(/([A-Z])/i).filter(function(e){return""!==e.trim()}),a=0;do{var s=(o[a+1]||"").trim().split(" ");switch(o[a]){case"M":e.moveTo(ue(s[0]),ue(s[1])),a+=2;break;case"L":for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:new Q.Deferred;if(0===e.length)return i.resolve();var o=t(e[0]);return(0,z.isPromise)(o)?o.then(n):n(),i}function D(e,t,n,i){return T(e,function(e){switch(e.tagName&&e.tagName.toLowerCase()){case"g":case"svg":var o=(0,G.extend)({},n,s(e,i.rootAppended));t.save(),w(t,o),C(t,o,i);var a=function(){t.restore()},r=D(e.childNodes,t,o,i);return(0,z.isPromise)(r)?r.then(a):a(),r;case"defs":return D(e.childNodes,t,{},i);case"clippath":i.clipPaths[e.attributes.id.textContent]=e.childNodes[0];break;case"pattern":i.patterns[e.attributes.id.textContent]=e;break;case"filter":i.filters[e.id]=I(e);break;case"lineargradient":i.gradients[e.attributes.id.textContent]=S(e);break;default:return y(e,t,n,i)}})}function E(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=(0,W.map)(n,function(e){return ue(e)}),e.setLineDash(n))}function A(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(E(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function O(e,t,n){var i=s(t,n.rootAppended),a=o(i.width,i.height,0),r=a.getContext("2d");return D(t.childNodes,r,i,n),e.createPattern(a,"repeat")}function B(e,t,n){var i=t.fill;if(i&&"none"!==i){if(i.search(/url/)===-1)e.fillStyle=i;else{var o=n.patterns[h(i)];if(!o)return;e.fillStyle=O(e,o,n)}e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1}}function P(e,t,n,i,o){e.fillStyle=i||"#ffffff",e.fillRect(-o,-o,t+2*o,n+2*o)}function R(){var e=q.default.createElement("div");return e.style.left="-9999px",e.style.position="absolute",e}function M(e,t,n,i,a){var r,s=o(t,n,a),l=s.getContext("2d"),u=$.default.getSvgElement(e),c=q.default.isElementNode(e);return l.translate(a,a),q.default.getBody().appendChild(s),c||(r=R(),r.appendChild(u),q.default.getBody().appendChild(r)),u.attributes.direction&&(s.dir=u.attributes.direction.textContent),P(l,t,n,i,a),D(u.childNodes,l,{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:c&&U.default.contains(q.default.getBody(),e)}).then(function(){return r&&q.default.getBody().removeChild(r),q.default.getBody().removeChild(s),s})}var V=n(2),F=i(V),L=n(90),H=i(L),z=n(1),N=n(186),$=i(N),W=n(3),G=n(0),j=n(10),q=i(j),K=n(12),U=i(K),Y=n(7),X=i(Y),Z=n(33),Q=n(6),J=X.default.getWindow(),ee=Math,te=ee.PI,ne=ee.min,ie=ee.abs,oe=ee.sqrt,ae=ee.pow,re=ee.atan2,se=ee.cos,le=ee.sin,ue=Number,ce=1,de=.05,he="10px",fe="sans-serif",pe="#000",ge=function(e){var t,n={};return(0,W.each)(e,function(e,i){t=i.textContent,isFinite(t)&&(t=ue(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=t.width,o=t.height,r=t.backgroundColor;(0,z.isFunction)(t.__parseAttributesFn)&&(ge=t.__parseAttributesFn);var s=new Q.Deferred;return M(e,i,o,r,t.margin).then(function(e){s.resolve(a(e,n))}),s},getData:function(e,n){var i=this,o=new Q.Deferred;return t.imageCreator.getImageData(e,n).then(function(e){var t="image/"+n.format,a=(0,z.isFunction)(J.Blob)&&!n.forceProxy?i._getBlob(e,t):i._getBase64(e);o.resolve(a)}),o},_getBlob:function(e,t){for(var n=new Uint8Array(e.length),i=0;i-1&&o.splice(t,1)},u=function(e){o[a(e)]=e};r(e.dxpointerdown,s),r(e.dxpointermove,u),r(e.dxpointerup,l),r(e.dxpointercancel,l),this.pointers=function(){return o},this.reset=function(){o=[]}};e.exports=s},function(e,t,n){var i,o=n(0).extend,a=n(152),r=n(228),s={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(e){return e.pointerId=1,{pointers:i.pointers(),pointerId:1}},u=!1,c=function(){u||(i=new r(s,function(){return!0}),u=!0)},d=a.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});d.map=s,d.normalize=l,d.activate=c,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(54),o=n(58).compare,a=n(125),r=n(79)();if(r&&o(i.fn.jquery,[1,10])<0)throw a.Error("E0012");n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459)},function(e,t,n){var i=n(25);e.exports=new i},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(21),o=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var o=t(n);if(o<1)throw i.Error("E0014");1===o?delete e[n]:e[n]=o-1},locked:function(e){return t(e)>0}}};e.exports=o},function(e,t,n){var i=n(42),o=n(4),a=n(1),r=o.getKeyHash,s=n(15),l=n(6).Deferred;e.exports=s.inherit({ctor:function(e){this.options=e,this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function e(){var t=this.options.addedItemKeys,n=this.options.removedItemKeys,i=this.options.addedItems,a=this.options.removedItems,r=this.options.selectedItems,s=this.options.selectedItemKeys,e=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),e({selectedItems:r,selectedItemKeys:s,addedItemKeys:t,removedItemKeys:n,addedItems:i,removedItems:a})},equalKeys:function(e,t){return this.options.equalByReference&&a.isObject(e)&&a.isObject(t)?e===t:o.equalByValue(e,t)},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n,o){var r=encodeURI(JSON.stringify(e)).length,s=this.options.maxFilterLengthInRequest&&r>this.options.maxFilterLengthInRequest,u=new l,c={filter:s?void 0:e,select:s?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?u.resolve([]):this.options.load(c).done(function(n){var r=a.isPlainObject(n)?n.data:n;t&&!o?r=r.filter(t):s&&(r=i(r).filter(e).toArray()),u.resolve(r)}).fail(u.reject.bind(u)),u},updateSelectedItemKeyHash:function(e){for(var t=0;t=this.options.totalCount()||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.options.plainItems(),t=!1,n=!1,i=0;i=0){t=e.replace(n,l[n]);break}return t}}},function(e,t,n){function i(e,t){var n={};return n[e]=t,n}function o(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)o in n?n[o]!==t[o]&&u.log("W4001",o):n[o]=t[o];return n}var a=n(1).isDefined,r=n(29),s=n(100),l=n(237),u=n(36).errors,c=n(42),d=n(91),h=n(239),f=n(6),p=f.when,g=f.Deferred;n(155);var _="5d46402c-7899-4ea9-bd81-8b73c47c7683",m=d.inherit({ctor:function(e){this.callBase(e),this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,a=e.keyType;if(a){var r="string"==typeof a;t||(t=r?_:Object.keys(a),this._legacyAnonymousKey=t),r&&(a=i(t,a)),n=o(n,a)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&(n.$expand=s.generateExpand(this._version,t.expand,t.select)||void 0,n.$select=s.generateSelect(this._version,t.select)||void 0),this._sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t;e=e||{};var n={adapter:"odata",beforeSend:this._beforeSend,errorHandler:this._errorHandler,jsonp:this._jsonp,version:this._version,withCredentials:this._withCredentials,expand:e.expand,requireTotalCount:e.requireTotalCount,deserializeDates:this._deserializeDates,fieldTypes:this._fieldTypes};if(t=a(e.urlOverride)?e.urlOverride:this._url,a(this._filterToLower)&&(n.filterToLower=this._filterToLower),e.customQueryParams){var i=h.escapeServiceOperationParams(e.customQueryParams,this.version());4===this.version()?t=h.formatFunctionInvocationUrl(t,i):n.params=i; @@ -54,11 +54,11 @@ name:a.caption,validationRules:(0,b.extend)(!0,[],a.validationRules),validationG i._pageIndex=i._lastPageIndex=t.pageIndex(),i._viewportSize=0,i._viewportItemSize=20,i._viewportItemIndex=-1,i._itemSizes={},i._sizeRatio=1,i._items=[],i._cache=[],i._isVirtual=n,i._loadingPageIndexes={},i.positionChanged=(0,y.default)()},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},virtualItemsCount:function(){var e,t=this,n=0;if(w(t)){e=o(t),e<0&&(e=t._dataSource.pageIndex());var i=e*t._dataSource.pageSize();n=t._cache.length*t._dataSource.pageSize();var a=Math.max(0,t._dataSource.totalItemsCount()-n-i);return{begin:i,end:a}}},setViewportPosition:function(e){var t=this,n=new m.Deferred,i=Math.min(t.option("scrolling.timeout")||0,t._dataSource.changingDuration());return i0?t._scrollTimeoutID=setTimeout(function(){t._setViewportPositionCore(e),n.resolve()},i):(t._setViewportPositionCore(e),n.resolve()),n.promise()},getViewportPosition:function(){return this._position||0},getItemIndexByPosition:function(){for(var e=this,t=e._position,n=e.getItemSize(),i=0,o=0,a=Object.keys(e._itemSizes).concat(-1),r=0;rr?n._sizeRatio=r/a:n._sizeRatio=1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(e,t){var n=this,i=n.virtualItemsCount(),o=e;if(!i)return 0;var a=0,r=n._dataSource.totalItemsCount();return Object.keys(n._itemSizes).forEach(function(i){o&&(t?i>=r-e:i=0){if(n._viewportSize&&e+n._viewportSize>=s&&!n._isVirtual)if(n._dataSource.hasKnownLastPage()){t=o-1;var l=s%i;t>0&&l>0&&l0?e:this._lastPageIndex},pageSize:function(){return this._dataSource.pageSize()},load:function(){var e,t=this,n=t._dataSource;if(w(t)||C(t)){var o=i(t);if(o>=0){var a=u(t,o);a&&(e=new m.Deferred,a.done(function(){var n=t._delayDeferred;n?n.done(e.resolve).fail(e.reject):e.resolve()}).fail(e.reject),n.updateLoading())}}else e=n.load();return e||t._lastPageIndex===t.pageIndex()||t._dataSource.onChanged({changeType:"pageIndex"}),e||(new m.Deferred).resolve()},loadIfNeed:function(){var e=this;if((w(e)||C(e))&&!e._dataSource.isLoading()&&(!e._isChangedFiring||e._isVirtual)){var t=e.getViewportPosition();t>0?e._setViewportPositionCore(t):e.load()}},handleDataChanged:function(e,t){var i,u,c=this,d=c._dataSource,h=c._cache.length;if(t&&t.changes)r(c,e,t);else if(w(c)||C(c)){var f=o(c);if(f>=0&&(w(c)&&f+c._cache.length!==d.pageIndex()&&f-1!==d.pageIndex()&&(h=0,c._cache=[]),C(c)))if(0===d.pageIndex())c._cache=[];else if(d.pageIndex()Math.max(n(this)+(c.option("scrolling.preloadEnabled")?1:0),2):s(c,e,{isDelayed:!0});var g;f===d.pageIndex()+1?(u&&(g=c._cache.pop()),i="prepend",c._cache.unshift(p)):(u&&(g=c._cache.shift()),i="append",c._cache.push(p));var _=w(c)&&0===h;l(c,e,c._cache.length>1?i:void 0,_,g),c._delayDeferred=c.load().done(function(){s(c,e)&&c.load()})}else l(c,e,t)},itemsCount:function e(t){var e=0;return!t&&w(this)?(0,p.each)(this._cache,function(){e+=this.itemsCount}):e=this._dataSource.itemsCount(),e},reset:function(e){this._loadingPageIndexes={},this._cache=[],e||(this._itemSizes={})},subscribeToWindowScrollEvents:function(e){var n=this;n._windowScroll=n._windowScroll||t.subscribeToExternalScrollers(e,function(e){n.viewportItemSize()&&n.setViewportPosition(e)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return"onClick"===e.option("filterRow.applyFilter")}var a=n(2),r=i(a),s=n(5),l=i(s),u=n(1),c=n(0),d=n(8),h=n(3),f=i(h),p=n(39),g=i(p),_=n(35),m=i(_),v=n(14),y=i(v),b=n(49),x=i(b),w=n(60),C=i(w),k=n(362),S=i(k),I=n(105),T={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal","default":"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},D={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},E=700,A=1,O="filter-row",B="filter-range-overlay",P="filter-range-start",R="filter-range-end",M="dx-menu",V="dx-editor-with-menu",F="dx-editor-container",L="dx-editor-cell",H="dx-filter-menu",z="dx-apply-button",N="dx-highlight-outline",$="dx-focused",W="dx-cell-focus-disabled",G="dx-filter-range-content",j="dx-filter-modified",q="input:not([type='hidden'])",K=function(){var e=function(e){var t=e&&e.children(),n=t&&t.data("dxComponents"),i=n&&n.length&&t.data(n[0]);if(i instanceof x.default)return i},t=function(e,t){var i="",o="",a=n(e,t),r=m.default.getFormatOptionsByColumn(t,"filterRow");return Array.isArray(a)?(i=m.default.formatValue(a[0],r),o=m.default.formatValue(a[1],r),""!==o&&(i+=" - "+o)):(0,u.isDefined)(a)&&(i=m.default.formatValue(a,r)),i},n=function(e,t){if(t)return o(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue},i=function(e,t){if(t)return o(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},a=function(e,t,o){var a=e._columnsController.columnOption(t),r=n(e,a),s=o.closest("."+e.addWidgetPrefix(B)).length,l=o.hasClass(e.addWidgetPrefix(P));return r&&Array.isArray(r)&&"between"===i(e,a)?l?r[0]:r[1]:s||void 0===r?null:r},s=function(e,t,o,a){if("between"===i(e,o)){var r=n(e,o);return a.hasClass(e.addWidgetPrefix(P))?[t,Array.isArray(r)?r[1]:void 0]:[Array.isArray(r)?r[0]:r,t]}return t},h=function(e,t){var n=""===t.value?null:t.value,i=t.container,r=e._columnsController.columnOption(t.column.index),l=a(e,r.index,i);((0,u.isDefined)(l)||(0,u.isDefined)(n))&&(e._applyFilterViewController.setHighLight(i,l!==n),e._columnsController.columnOption(r.index,o(e)?"bufferedFilterValue":"filterValue",s(e,n,r,i),t.notFireEvent))};return{_updateEditorValue:function(t,n){var i=this,o=e(n);o&&o.option("value",a(i,t.index,n))},_columnOptionChanged:function(e){var n,o,a,s,l=this,u=e.optionNames;if(m.default.checkChanges(u,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==e.columnIndex){var c=l._columnsController.getVisibleIndex(e.columnIndex),d=l._columnsController.columnOption(e.columnIndex);if(n=l._getCellElement(l.element().find("."+l.addWidgetPrefix(O)).index(),c)||(0,r.default)(),o=n.find("."+F).first(),u.filterValue||u.bufferedFilterValue){l._updateEditorValue(d,o);var h=n.find("."+l.addWidgetPrefix(B)).data("dxOverlay");h&&(a=h.$content().find("."+F),l._updateEditorValue(d,a.first()),l._updateEditorValue(d,a.last())),h&&h.option("visible")||l._updateFilterRangeContent(n,t(l,d))}return void((u.selectedFilterOperation||u.bufferedSelectedFilterOperation)&&c>=0&&d&&(s=n.find("."+M),s.length&&(l._updateFilterOperationChooser(s,d,o),"between"===i(l,d)?l._renderFilterRangeContent(n,d):o.find("."+G).length&&(l._renderEditor(o,l._getEditorOptions(o,d)),l._hideFilterRange()))))}l.callBase(e)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(e,n){var o=this,a={},s=e.find(".dx-editor-container"),u=(0,r.default)("
").addClass(o.addWidgetPrefix(B)).appendTo(e);return o._createComponent(u,C.default,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,closeOnTargetScroll:!1,closeOnOutsideClick:!0,animation:!1,position:{my:"top",at:"top",of:s.length&&s||e,offset:"0 -1"},contentTemplate:function(t){var i,s=(0,r.default)("
").addClass(F+" "+o.addWidgetPrefix(P)).appendTo(t);return n=o._columnsController.columnOption(n.index),i=o._getEditorOptions(s,n),i.sharedData=a,o._renderEditor(s,i),l.default.on(s.find(q),"keydown",function(t){var n=e.find("[tabindex]").not(t.target).first();"tab"===(0,d.normalizeKeyName)(t)&&t.shiftKey&&(t.preventDefault(),o._hideFilterRange(),n.length||(n=e.prev().find("[tabindex]").last()),l.default.trigger(n,"focus"))}),s=(0,r.default)("
").addClass(F+" "+o.addWidgetPrefix(R)).appendTo(t),i=o._getEditorOptions(s,n),i.sharedData=a,o._renderEditor(s,i),l.default.on(s.find(q),"keydown",function(t){"tab"!==(0,d.normalizeKeyName)(t)||t.shiftKey||(t.preventDefault(),o._hideFilterRange(),l.default.trigger(e.next().find("[tabindex]").first(),"focus"))}),(0,r.default)(t).addClass(o.getWidgetContainerClass())},onShown:function(e){var t=e.component.$content().find("."+F).first();l.default.trigger(t.find(q),"focus")},onHidden:function(){n=o._columnsController.columnOption(n.index),e.find("."+M).parent().addClass(V),"between"===i(o,n)&&(o._updateFilterRangeContent(e,t(o,n)),o.component.updateDimensions())}})},_updateFilterRangeOverlay:function(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)},_showFilterRange:function(e,t){var n=this,i=e.children("."+n.addWidgetPrefix(B)),o=i.length&&i.data("dxOverlay");!o&&t&&(o=n._initFilterRangeOverlay(e,t)),o.option("visible")||(n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.hide(),n._filterRangeOverlayInstance=o,n._updateFilterRangeOverlay({width:e.outerWidth(!0)+A}),n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var e=this._filterRangeOverlayInstance;e&&e.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(e){var t=this,n=this.callBase(e);return"filter"===e.rowType&&(n.addClass(this.addWidgetPrefix(O)),this.option("useLegacyKeyboardNavigation")||l.default.on(n,"keydown",function(e){return(0,I.selectView)("filterRow",t,e)})),n},_getRows:function(){var e=this.callBase();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e},_renderFilterCell:function(e,t){var n=this,o=t.column,a=(0,r.default)(e);n.component.option("showColumnHeaders")&&n.setAria("describedby",o.headerId,a),n.setAria("label",y.default.format("dxDataGrid-ariaFilterCell"),a),a.addClass(L);var s=(0,r.default)("
").appendTo(a),l=(0,r.default)("
").addClass(F).appendTo(s);if("between"===i(n,o))n._renderFilterRangeContent(a,o);else{var u=n._getEditorOptions(l,o);n._renderEditor(l,u)}o.alignment&&a.find(q).first().css("textAlign",o.alignment),o.filterOperations&&o.filterOperations.length&&n._renderFilterOperationChooser(s,o,l)},_renderCellContent:function(e,t){var n=this,i=t.column;if("filter"===t.rowType)if(i.command)e.html(" ");else if(i.allowFiltering)return void n.renderTemplate(e,n._renderFilterCell.bind(n),t);n.callBase(e,t)},_getEditorOptions:function(e,t){var n=this,o={editorOptions:{inputAttr:n._getFilterInputAccessibilityAttributes(t)}},r=(0,c.extend)(o,t,{value:a(n,t.index,e),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:E,width:null,setValue:function(i,o){h(n,{column:t,value:i,container:e,notFireEvent:o})}});return"between"===i(n,t)&&(e.hasClass(n.addWidgetPrefix(P))?r.placeholder=n.option("filterRow.betweenStartText"):r.placeholder=n.option("filterRow.betweenEndText")),r},_getFilterInputAccessibilityAttributes:function(e){var t=y.default.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":t,"aria-describedby":e.headerId}:{"aria-label":t}},_renderEditor:function(e,t){return e.empty(),this.getController("editorFactory").createEditor((0,r.default)("
").appendTo(e),t)},_renderFilterRangeContent:function(e,n){var i=this,o=e.find("."+F).first();o.empty();var a=(0,r.default)("
").addClass(G).attr("tabindex",this.option("tabIndex"));l.default.on(a,"focusin",function(){i._showFilterRange(e,n)}),a.appendTo(o),i._updateFilterRangeContent(e,t(i,n))},_updateFilterRangeContent:function(e,t){var n=e.find("."+G);n.length&&(""===t?n.html(" "):n.text(t))},_updateFilterOperationChooser:function(t,n,a){var r,s=this,u=function(){var e=S.default.getInstance(t);e&&e.option("focusedElement",null),r&&s._focusEditor(a)};s._createComponent(t,S.default,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:s.getWidgetContainerClass()+" "+W+" "+H,showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!n.filterOperations||!n.filterOperations.length,icon:T[i(s,n)||"default"],selectable:!1,items:s._getFilterOperationMenuItems(n)}],onItemClick:function(t){var r=t.itemData.name,l=i(s,n),u=!1,c=o(s),d={};if(!(t.itemData.items||r&&r===l)){if(r?(d[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=r,"between"!==r&&"between"!==l||(u="between"===r,d[c?"bufferedFilterValue":"filterValue"]=null)):(d[c?"bufferedFilterValue":"filterValue"]=null,d[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=n.defaultSelectedFilterOperation||null),s._columnsController.columnOption(n.index,d),s._applyFilterViewController.setHighLight(a,!0),!r){var h=e(a);h&&"dxDateBox"===h.NAME&&!h.option("isValid")&&(h.reset(),h.option("isValid",!0))}u?s._showFilterRange(a.closest("."+L),n):s._focusEditor(a)}},onSubmenuShown:function(){r=s._isEditorFocused(a),s.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){l.default.trigger(t,"blur"),u()},onContentReady:function(e){l.default.on(t,"blur",function(){var t=e.component;t._hideSubmenu(t._visibleSubmenu),u()})},rtlEnabled:s.option("rtlEnabled")})},_isEditorFocused:function(e){return e.hasClass($)||e.parents("."+$).length},_focusEditor:function(e){this.getController("editorFactory").focus(e),l.default.trigger(e.find(q),"focus")},_renderFilterOperationChooser:function(e,t,n){var i,o=this;o.option("filterRow.showOperationChooser")&&(e.addClass(V),i=(0,r.default)("
").prependTo(e),o._updateFilterOperationChooser(i,t,n))},_getFilterOperationMenuItems:function(e){var t=this,n=[{}],o=t.option("filterRow"),a=o&&o.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var r=e.filterOperations.filter(function(e){return(0,u.isDefined)(D[e])});n=f.default.map(r,function(n){var o=D[n];return{name:n,selected:(i(t,e)||e.defaultFilterOperation)===n,text:a[o],icon:T[n]}}),n.push({name:null,text:o&&o.resetOperationText,icon:T.default})}return n},optionChanged:function(e){var t=this;switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}}}}(),U={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=[this.callBase()],t=this._columnsController.getVisibleColumns();return f.default.each(t,function(){if(this.allowFiltering&&this.calculateFilterExpression&&(0,u.isDefined)(this.filterValue)){var t=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");e.push(t)}}),m.default.combineFilters(e)}};t.ApplyFilterViewController=g.default.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(e,t){o(this)&&(e&&e.toggleClass(N,t)&&e.closest("."+L).toggleClass(j,t),this._getHeaderPanel().enableApplyButton(t))},applyFilter:function(){var e=this.getController("columns"),t=e.getColumns();e.beginUpdate();for(var n=0;ne)}}},{key:"_init",value:function(){l(_(t.prototype),"_init",this).call(this),this._submenus=[]}},{key:"_initActions",value:function(){var e=this;this._actions={},(0,S.each)(pe,function(t,n){e._actions[n]=e._createActionByOption(n)})}},{key:"_initMarkup",value:function(){this._visibleSubmenu=null,this.$element().addClass(G),l(_(t.prototype),"_initMarkup",this).call(this),this.setAria("role","menubar")}},{key:"_render",value:function(){l(_(t.prototype),"_render",this).call(this),this._initAdaptivity()}},{key:"_renderHamburgerButton",value:function(){return this._hamburger=new N.default((0,v.default)("
").addClass(oe),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}},{key:"_toggleTreeView",value:function(e){(0,I.isPlainObject)(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),this._toggleHamburgerActiveState(e)}},{key:"_toggleHamburgerActiveState",value:function(e){this._hamburger&&this._hamburger.$element().toggleClass(ne,e)}},{key:"_toggleAdaptiveMode",value:function(e){var t=this.$element().find(".".concat(q)),n=this.$element().find(".".concat(ie));e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),n.toggle(e)}},{key:"_removeAdaptivity",value:function(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}},{key:"_treeviewItemClickHandler",value:function(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)}},{key:"_getAdaptiveOverlayOptions",value:function(){var e=this,t=this.option("rtlEnabled"),n=t?"right":"left";return{maxHeight:function(){return(0,D.getElementMaxHeightByWindow)(e.$element())},deferRendering:!1,shading:!1,animation:!1,closeOnTargetScroll:!0,onHidden:function(){e._toggleHamburgerActiveState(!1)},height:"auto",closeOnOutsideClick:function(e){return!(0,v.default)(e.target).closest(".".concat(oe)).length},position:{collision:"flipfit",at:"bottom "+n,my:"top "+n,of:this._hamburger.$element()}}}},{key:"_getTreeViewOptions",value:function(){var e=this,t={},n=["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],i=["onItemContextMenu","onSelectionChanged"];return(0,S.each)(n,function(n,i){t[i]=e.option(i)}),(0,S.each)(i,function(n,i){t[i]=function(t){e._actions[i](t)}}),(0,T.extend)(t,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:function(t){e._overlay.repaint(),e._actions.onSubmenuShown(t)},onItemCollapsed:function(t){e._overlay.repaint(),e._actions.onSubmenuHidden(t)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})}},{key:"_initAdaptivity",value:function(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,v.default)("
").addClass(ie);var e=this._renderHamburgerButton();this._treeView=this._createComponent((0,v.default)("
"),W.default,this._getTreeViewOptions()),this._overlay=this._createComponent((0,v.default)("
"),F.default,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(ie).addClass(this.option("cssClass")),this._overlay._wrapper().addClass(ae),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}}},{key:"_getDelay",value:function(e){var t=this.option("showFirstSubmenuMode").delay;return(0,I.isDefined)(t)?(0,I.isObject)(t)?t[e]:t:fe[e]}},{key:"_keyboardHandler",value:function(e){return!!this._visibleSubmenu||l(_(t.prototype),"_keyboardHandler",this).call(this,e)}},{key:"_renderContainer",value:function(){var e=(0,v.default)("
");return e.appendTo(this.$element()).addClass(this._isMenuHorizontal()?q:j),l(_(t.prototype),"_renderContainer",this).call(this,e)}},{key:"_renderSubmenuItems", value:function(e,t){var n=this._createSubmenu(e,t);return this._submenus.push(n),this._renderBorderElement(t),n}},{key:"_createSubmenu",value:function(e,t){var n=(0,v.default)("
").addClass(X).appendTo(t),i=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),o=this._getChildNodes(e),a=this._createComponent(n,H.default,(0,T.extend)(this._getSubmenuOptions(),{_keyboardProcessor:i,_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:o,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,a),a}},{key:"_getSubmenuOptions",value:function(){var e=this,t=(0,v.default)("
"),n=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:t,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:function(t){t.component.option("visible")&&e.option("focusedElement",t.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this.option("onItemRendered"),onLeftFirstItem:n?null:this._moveMainMenuFocus.bind(this,he),onLeftLastItem:n?null:this._moveMainMenuFocus.bind(this,de),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,n?he:null),onExpandLastSubmenu:n?this._moveMainMenuFocus.bind(this,de):null}}},{key:"_getShowFirstSubmenuMode",value:function(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return(0,I.isObject)(e)?e.name:e}},{key:"_moveMainMenuFocus",value:function(e){var t=this._getAvailableItems(),n=t.length,i=t.filter(".".concat(Y)).eq(0),o=t.index(i);this._hideSubmenu(this._visibleSubmenu),o+=e===he?-1:1,o>=n?o=0:o<0&&(o=n-1);var a=t.eq(o);this.option("focusedElement",(0,k.getPublicElement)(a))}},{key:"_nestedItemOnSelectionChangedHandler",value:function(e){var t=e.addedItems.length&&e.addedItems[0],n=H.default.getInstance(e.element),i=this._actions.onSelectionChanged;i(e),t&&this._clearSelectionInSubmenus(t[0],n),this._clearRootSelection(),this._setOptionSilent("selectedItem",t)}},{key:"_clearSelectionInSubmenus",value:function(e,t){var n=this,i=!arguments.length;(0,S.each)(this._submenus,function(e,o){var a=o._itemContainer(),r=!a.is(t&&t._itemContainer()),s=a.find(".".concat(n._selectedItemClass()));if(r&&s.length||i){s.removeClass(n._selectedItemClass());var l=n._getItemData(s);l&&(l.selected=!1),o._clearSelectedItems()}})}},{key:"_clearRootSelection",value:function(){var e=this.$element().find(".".concat(U)).first().children().children().filter(".".concat(this._selectedItemClass()));if(e.length){var t=this._getItemData(e);t.selected=!1,e.removeClass(this._selectedItemClass())}}},{key:"_nestedItemOnItemClickHandler",value:function(e){this._actions.onItemClick(e)}},{key:"_attachSubmenuHandlers",value:function(e,t){var n=this,i=t.getOverlayContent(),o=i.find(".".concat(J)),a=(0,E.addNamespace)(P.default.end,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),(0,S.each)(o,function(t,i){b.default.off(i,a),b.default.on(i,a,null,n._submenuMouseLeaveHandler.bind(n,e))})}},{key:"_submenuOnShowingHandler",value:function(e,t){var n=e.children(".".concat(Z));this._actions.onSubmenuShowing({rootItem:(0,k.getPublicElement)(e),submenu:t}),n.show(),e.addClass(Y)}},{key:"_submenuOnShownHandler",value:function(e,t){this._actions.onSubmenuShown({rootItem:(0,k.getPublicElement)(e),submenu:t})}},{key:"_submenuOnHidingHandler",value:function(e,t,n){var i=e.children(".".concat(Z)),o=n;o.rootItem=(0,k.getPublicElement)(e),o.submenu=t,this._actions.onSubmenuHiding(o),n=o,n.cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),i.hide(),e.removeClass(Y))}},{key:"_submenuOnHiddenHandler",value:function(e,t){this._actions.onSubmenuHidden({rootItem:(0,k.getPublicElement)(e),submenu:t})}},{key:"_submenuMouseLeaveHandler",value:function(e,t){var n=(0,v.default)(t.relatedTarget).parents(".".concat(X))[0],i=this._getSubmenuByRootElement(e).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&n!==i&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}},{key:"_hideSubmenuAfterTimeout",value:function(){if(this._visibleSubmenu){var e=(0,v.default)(this._visibleSubmenu.$element().context).hasClass(te),t=this._visibleSubmenu.getOverlayContent().find(".".concat(te)).length,n=this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover");n||t||e||this._visibleSubmenu.hide()}}},{key:"_getSubmenuByRootElement",value:function(e){if(!e)return!1;var t=e.children(".".concat(X));return t.length&&H.default.getInstance(t)}},{key:"getSubmenuPosition",value:function(e){var t=this._isMenuHorizontal(),n=this.option("submenuDirection").toLowerCase(),i=this.option("rtlEnabled"),o={collision:"flip",of:e};switch(n){case"leftortop":o.at="left top",o.my=t?"left bottom":"right top";break;case"rightorbottom":o.at=t?"left bottom":"right top",o.my="left top";break;default:t?(o.at=i?"right bottom":"left bottom",o.my=i?"right top":"left top"):(o.at=i?"left top":"right top",o.my=i?"right top":"left top")}return o}},{key:"_renderBorderElement",value:function(e){(0,v.default)("
").appendTo(e).addClass(Z).hide()}},{key:"_itemPointerDownHandler",value:function(e){var n=(0,v.default)(e.target),i=n.closest(this._itemElements());return i.hasClass("dx-menu-item-has-submenu")?void this.option("focusedElement",null):void l(_(t.prototype),"_itemPointerDownHandler",this).call(this,e)}},{key:"_hoverStartHandler",value:function(e){var t=(0,E.addNamespace)(O.default.move,this.NAME),n=this._getItemElementByEventArgs(e),i=this._dataAdapter.getNodeByItem(this._getItemData(n)),o=(0,I.isDefined)(e.buttons)&&1===e.buttons||!(0,I.isDefined)(e.buttons)&&1===e.which;if(!this._isItemDisabled(n)){if(b.default.off(n,t),!this._hasChildren(i))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!o){var a=this._getSubmenuByElement(n);this._clearTimeouts(),a.isOverlayVisible()||(b.default.on(n,t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}}},{key:"_hoverEndHandler",value:function(e){var n=this,i=this._getItemElementByEventArgs(e),o=(0,v.default)(e.relatedTarget);l(_(t.prototype),"_hoverEndHandler",this).call(this,e),this._clearTimeouts(),this._isItemDisabled(i)||o.hasClass(Q)||this.option("hideSubmenuOnMouseLeave")&&!o.hasClass(U)&&(this._hideSubmenuTimer=setTimeout(function(){n._hideSubmenuAfterTimeout()},this._getDelay("hide")))}},{key:"_hideVisibleSubmenu",value:function(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}},{key:"_showSubmenu",value:function(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&(t.show(),this.option("focusedElement",t.option("focusedElement"))),this._visibleSubmenu=t,this._hoveredRootItem=e}},{key:"_hideSubmenu",value:function(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null}},{key:"_itemMouseMoveHandler",value:function(e){var t=this;if(!e.pointers||!e.pointers.length){var n=(0,v.default)(e.currentTarget);(0,I.isDefined)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout(function(){var e=t._getSubmenuByElement(n);e&&!e.isOverlayVisible()&&t._showSubmenu(n)},this._getDelay("show")))}}},{key:"_clearTimeouts",value:function(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}},{key:"_getSubmenuByElement",value:function(e,t){var n=this._getSubmenuByRootElement(e);if(n)return n;t=t||this._getItemData(e);var i=this._dataAdapter.getNodeByItem(t);return this._hasChildren(i)&&this._renderSubmenuItems(i,e)}},{key:"_updateSubmenuVisibilityOnClick",value:function(e){var t=e.args.length&&e.args[0];if(t&&!this._disabledGetter(t.itemData)){var n=(0,v.default)(t.itemElement),i=this._getSubmenuByElement(n,t.itemData);if(this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===i)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(i)return i.isOverlayVisible()?void 0:void this._showSubmenu(n)}}},{key:"_optionChanged",value:function(e){switch(e.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(e.name,e.value);break;case"onSubmenuShowing":case"onSubmenuShown":case"onSubmenuHiding":case"onSubmenuHidden":this._initActions();break;case"adaptivityEnabled":e.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(e.name,e.value),this._overlay.option(e.name,e.value)),l(_(t.prototype),"_optionChanged",this).call(this,e),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!e.value),l(_(t.prototype),"_optionChanged",this).call(this,e);break;default:this._isAdaptivityEnabled()&&this._treeView.option(e.name,e.value),l(_(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_changeSubmenusOption",value:function(e,t){(0,S.each)(this._submenus,function(n,i){i.option(e,t)})}},{key:"selectItem",value:function(e){this._hideSubmenu(this._visibleSubmenu),l(_(t.prototype),"selectItem",this).call(this,e)}},{key:"unselectItem",value:function(e){this._hideSubmenu(this._visibleSubmenu),l(_(t.prototype),"selectItem",this).call(this,e)}}]),t}(M.default);(0,w.default)("dxMenu",ge),e.exports=ge},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return["!",e]}var a=n(5),r=i(a),s=n(39),l=i(s),u=n(165),c=i(u),d=n(35),h=i(d),f=n(365),p=n(14),g=i(p),_=n(19),m=i(_),v=n(20),y=n(3),b=n(1),x=n(98),w=n(0),C=n(45),k=n(32),S=i(k),I=n(87),T=n(6),D=n(105),E={month:function(e){return S.default.getMonthNames()[e-1]},quarter:function(e){return S.default.format(new Date(2e3,3*e-1),"quarter")}},A=l.default.ViewController.inherit(function(){var e=function(e,t,n){var i=c.default.getGroupInterval(t),o=h.default.getFormatOptionsByColumn(t,"headerFilter");return i&&(o.groupInterval=i[n],h.default.isDateType(t.dataType)?o.format=E[i[n]]:"number"===t.dataType&&(o.getDisplayFormat=function(){var o={format:t.format,target:"headerFilter"},a=h.default.formatValue(e,o),r=e+i[n],s=h.default.formatValue(r,o);return a&&s?a+" - "+s:""})),o};return{init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(e,t){for(var n=e.length,i="exclude"===t.filterType;n--;){var o=e[n];"items"in e[n]&&this._updateSelectedState(e[n].items,t),(0,f.updateHeaderFilterItemSelectionState)(o,h.default.getIndexByKey(e[n].value,t.filterValues,null)>-1,i)}},_normalizeGroupItem:function(e,t,n){var i,o,a=n.path,r=n.valueSelector,s=n.displaySelector,l=n.column;return r&&s?(i=r(e),o=s(e)):(i=e.key,o=i),e=(0,b.isObject)(e)?(0,w.extend)({},e):{},a.push(i),1===a.length?e.value=a[0]:e.value=a.join("/"),e.text=this.getHeaderItemText(o,l,t,n.headerFilterOptions),e},getHeaderItemText:function(t,n,i,o){var a=h.default.formatValue(t,e(t,n,i));return a||(a=o.texts.emptyValue),a},_processGroupItems:function(e,t,n,i){var o,a,r=this,s=i.column,l=s.lookup,u=i.level;n=n||[],t=t||0,l&&(o=(0,v.compileGetter)(l.displayExpr),a=(0,v.compileGetter)(l.valueExpr));for(var c=0;c1?"tree":"list",remoteFiltering:r,onShowing:function(t){var i=t.component.overlayContent().dxResizable("instance");i&&i.option("onResizeEnd",function(t){var i=n.getController("columns"),o=i.columnOption(e.dataField,"headerFilter");o=o||{},o.width=t.width,o.height=t.height,i.columnOption(e.dataField,"headerFilter",o,!0)})},onHidden:function(){return(0,D.restoreFocus)(t)}}),e.dataSource=n.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),n._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}}()),O=(0,w.extend)({},f.headerFilterMixin,{_renderCellContent:function(e,t){var n,i=this,o=t.column;!o.command&&(0,f.allowHeaderFiltering)(o)&&i.option("headerFilter.visible")&&"header"===t.rowType&&(n=i._applyColumnState({name:"headerFilter",rootElement:e,column:o,showColumnLines:i.option("showColumnLines")}),n&&i._subscribeToIndicatorEvent(n,o,"headerFilter")),i.callBase(e,t)},_subscribeToIndicatorEvent:function(e,t,n){var i=this;"headerFilter"===n&&r.default.on(e,m.default.name,i.createAction(function(e){e.event.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!1)}))},_updateIndicator:function(e,t,n){var i=this.callBase(e,t,n);i&&this._subscribeToIndicatorEvent(i,t,n)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(e){var t=e.optionNames;return h.default.checkChanges(t,["filterValues","filterType"])?void(this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators()):void this.callBase(e)}}),B=(0,w.extend)({},f.headerFilterMixin,{_createGroupPanelItem:function(e,t){var n,i=this,o=i.callBase.apply(i,arguments);return!t.command&&(0,f.allowHeaderFiltering)(t)&&i.option("headerFilter.visible")&&(n=i._applyColumnState({name:"headerFilter",rootElement:o,column:{alignment:(0,x.getDefaultAlignment)(i.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}),n&&r.default.on(n,m.default.name,i.createAction(function(e){var n=e.event;n.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!0)}))),o}}),P={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=this,t=[e.callBase()],n=e._columnsController.getVisibleColumns(),i=e.getController("headerFilter"),o=i.getCurrentColumn();return(0,y.each)(n,function(e,n){var i;if((!o||o.index!==n.index)&&(0,f.allowHeaderFiltering)(n)&&n.calculateFilterExpression&&Array.isArray(n.filterValues)&&n.filterValues.length){var a=[];(0,y.each)(n.filterValues,function(e,t){Array.isArray(t)?i=t:(n.deserializeValue&&!h.default.isDateType(n.dataType)&&"number"!==n.dataType&&(t=n.deserializeValue(t)),i=n.createFilterExpression(t,"=","headerFilter")),i&&(i.columnIndex=n.index),a.push(i)}),a=h.default.combineFilters(a,"or"),t.push("exclude"===n.filterType?["!",a]:a)}}),h.default.combineFilters(t)}};e.exports={invertFilterExpression:o,defaultOptions:function(){return{headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:g.default.format("dxDataGrid-headerFilterEmptyValue"),ok:g.default.format("dxDataGrid-headerFilterOK"),cancel:g.default.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:A},views:{headerFilterView:f.HeaderFilterView},extenders:{controllers:{data:P},views:{columnHeadersView:O,headerPanel:B}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){e=e||[];for(var t=0;t0)return o[0].selector;if((0,f.isFunction)(o)&&!e.remoteFiltering)return o}return e.dataField||e.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(e){var t=this,n=t.element(),i=t.option("headerFilter"),o=e.headerFilter&&e.headerFilter.width||i&&i.width,a=e.headerFilter&&e.headerFilter.height||i&&i.height,r={width:o,height:a,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,closeOnTargetScroll:!1,dragEnabled:!1,closeOnOutsideClick:!0,focusStateEnabled:!1,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.ok,onClick:function(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.cancel,onClick:function(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(n){n.component.$content().parent().addClass("dx-dropdowneditor-overlay"),t._initializeListContainer(e),e.onShowing&&e.onShowing(n)},onShown:function(){t.getListContainer().focus()},onHidden:e.onHidden,onInitialized:function(e){var t=e.component;t.option("animation",t._getDefaultOptions().animation)}};(0,f.isDefined)(t._popupContainer)?t._popupContainer.option(r):t._popupContainer=t._createComponent(n,m.default,r)},_initializeListContainer:function(e){var t=this,n=t._popupContainer.$content(),i={searchEnabled:r(t,e),searchTimeout:t.option("headerFilter.searchTimeout"),searchMode:e.headerFilter&&e.headerFilter.searchMode||"",dataSource:e.dataSource,onContentReady:function(){t.renderCompleted.fire()},itemTemplate:function(t,n,i){var o=(0,l.default)(i);return e.encodeHtml?o.text(t.text):o.html(t.text)}};"tree"===e.type?t._listContainer=t._createComponent((0,l.default)("
").appendTo(n),y.default,(0,g.extend)(i,{showCheckBoxesMode:e.isFilterBuilder?"normal":"selectAll",keyExpr:"id"})):t._listContainer=t._createComponent((0,l.default)("
").appendTo(n),x.default,(0,g.extend)(i,{searchExpr:t._getSearchExpr(e),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:e.isFilterBuilder?"multiple":"all",onSelectionChanged:function(t){var n=t.component.option("items"),i=t.component.option("selectedItems");if(!t.component._selectedItemsUpdating&&!t.component.option("searchValue")&&!e.isFilterBuilder){var o=e.filterValues||[],r="exclude"===e.filterType;0===i.length&&n.length&&(o.length<=1||r&&o.length===n.length-1)?(e.filterType="include",e.filterValues=[]):i.length===n.length&&(e.filterType="exclude",e.filterValues=[])}(0,p.each)(n,function(t,n){var o=h.default.getIndexByKey(n,i,null)>=0,a=!!n.selected;if(a!==o){n.selected=o,e.filterValues=e.filterValues||[];var r=h.default.getIndexByKey(n.value,e.filterValues,null);r>=0&&e.filterValues.splice(r,1),o^"exclude"===e.filterType&&e.filterValues.push(n.value)}}),a(t,e.filterValues)},onContentReady:function(t){var n=t.component,i=n.option("items"),o=[];(0,p.each)(i,function(){this.selected&&o.push(this)}),n._selectedItemsUpdating=!0,n.option("selectedItems",o),n._selectedItemsUpdating=!1,a(t,e.filterValues)}}))},_renderCore:function(){this.element().addClass(C)}});var S=t.allowHeaderFiltering=function(e){return(0,f.isDefined)(e.allowHeaderFiltering)?e.allowHeaderFiltering:e.allowFiltering};t.headerFilterMixin={_applyColumnState:function(e){var t,n=e.rootElement,i=e.column;return"headerFilter"===e.name?(n.find("."+w).remove(),S(i)&&(t=this.callBase(e).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(i)),this.option("useLegacyKeyboardNavigation")||t.attr("tabindex",this.option("tabindex")||0)),t):this.callBase(e)},_isHeaderFilterEmpty:function(e){return!e.filterValues||!e.filterValues.length},_getIndicatorClassName:function(e){return"headerFilter"===e?w:this.callBase(e)},_renderIndicator:function(e){var t=e.container,n=e.indicator;if("headerFilter"===e.name){var i=this.option("rtlEnabled");if(t.children().length&&(!i&&"right"===e.columnAlignment||i&&"left"===e.columnAlignment))return void t.prepend(n)}this.callBase(e)},optionChanged:function(e){if("headerFilter"===e.name){var t="columnHeadersView"===this.name;this._invalidate(t,t),e.handled=!0}else this.callBase(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.dataField||e.name}function a(e){e.forEach(function(e){var t=o(e);if(!(0,r.isDefined)(t)&&e.allowFiltering)throw new h.default.Error("E1049",e.caption)})}var r=n(1),s=n(39),l=i(s),u=n(201),c=i(u),d=n(17),h=i(d),f=n(35),p=i(f),g=n(165),_=i(g),m=n(636),v=i(m),y=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],b="include",x="exclude",w=l.default.Controller.inherit(function(){var e=function(){return{filterType:b,filterValues:void 0}},t=function(e){return!(_.default.getGroupInterval(e)||e.headerFilter&&e.headerFilter.dataSource)},n=function(n,i){if(!n)return e();var o,a=n[1],r=n[2],s=Array.isArray(r);if(!s&&!t(i))return e();switch(a){case"anyof":case"=":o=b;break;case"noneof":case"<>":o=x;break;default:return e()}return{filterType:o,filterValues:s?r:[r]}},i=function(e){var t=e.filterValue;if((0,r.isDefined)(t)){var n=e.selectedFilterOperation||e.defaultFilterOperation||c.default.getDefaultOperation(e),i=[o(e),n,e.filterValue];return i}return null},s=function(e){var n,i,a=e.filterValues;return a?(t(e)&&1===e.filterValues.length&&!Array.isArray(a[0])?(n=e.filterType===x?"<>":"=",i=a[0]):(n=e.filterType===x?"noneof":"anyof",i=a),[o(e),n,i]):null},l=function(e,t,i){var a=n(i,t);e.columnOption(o(t),a)},u=function(e,t,n){var i,a=n&&n[1],s=t.filterOperations||t.defaultFilterOperations;(!s||s.indexOf(a)>=0||a===t.defaultFilterOperation)&&y.indexOf(a)>=0?(a!==t.defaultFilterOperation||(0,r.isDefined)(t.selectedFilterOperation)||(a=t.selectedFilterOperation),i={filterValue:n[2],selectedFilterOperation:a}):i={filterValue:void 0,selectedFilterOperation:void 0},e.columnOption(o(t),i)};return{syncFilterValue:function(){var e=this,t=e.getController("columns"),n=t.getFilteringColumns();this._skipSyncColumnOptions=!0,n.forEach(function(n){var i=c.default.getMatchedConditions(e.option("filterValue"),o(n));if(1===i.length){var a=i[0];l(t,n,a),u(t,n,a)}else(0,r.isDefined)(n.filterValues)&&l(t,n),(0,r.isDefined)(n.filterValue)&&u(t,n)}),this._skipSyncColumnOptions=!1},_initSync:function(){var e=this.getController("columns").getColumns(),t=this.getController("data"),n=t.pageIndex();if(a(e),!this.option("filterValue")){var i=this.getController("columns").getFilteringColumns(),o=this.getFilterValueFromColumns(i);this.option("filterValue",o)}this.syncFilterValue(),t.pageIndex(n)},init:function(){var e=this,t=this.getController("data");t.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():t.dataSourceChanged.add(function(){return e._initSync()}))},_getSyncFilterRow:function(e,t){var n=i(t);return(0,r.isDefined)(n)?c.default.syncFilters(e,n):c.default.removeFieldConditionsFromFilter(e,o(t))},_getSyncHeaderFilter:function(e,t){var n=s(t);return n?c.default.syncFilters(e,n):c.default.removeFieldConditionsFromFilter(e,o(t))},getFilterValueFromColumns:function(e){if(!this.getController("data").isFilterSyncActive())return null;var t=["and"];return e&&e.forEach(function(e){var n=s(e),o=i(e);n&&c.default.addItem(n,t),o&&c.default.addItem(o,t)}),c.default.getNormalizedFilter(t)},syncFilterRow:function(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))},syncHeaderFilter:function(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))},getCustomFilterOperations:function(){var e=this.option("filterBuilder.customOperations")||[];return[v.default.anyOf(this.component),v.default.noneOf(this.component)].concat(e)},publicMethods:function(){return["getCustomFilterOperations"]}}}()),C={isFilterSyncActive:function(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e},skipCalculateColumnFilters:function(){return(0,r.isDefined)(this.option("filterValue"))&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){var e=this;if(e.option("filterPanel.filterEnabled")===!1)return e.callBase();var t=[e.callBase()],n=e.getController("columns").getFilteringColumns(),i=e.option("filterValue");if(e.isFilterSyncActive()){var a=e.getController("headerFilter").getCurrentColumn();a&&i&&(i=c.default.removeFieldConditionsFromFilter(i,o(a)))}var r=e.getController("filterSync").getCustomFilterOperations(),s=c.default.getFilterExpression(i,n,r,"filterBuilder");return s&&t.push(s),p.default.combineFilters(t)},_parseColumnPropertyName:function(e){var t=e.match(/.*\.(.*)/);return t[1]},clearFilter:function(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),this.callBase(e)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this.getController("columns").getColumnByPath(e.fullName),n=this.getController("filterSync");if(t&&!n._skipSyncColumnOptions){var i=this._parseColumnPropertyName(e.fullName);n._skipSyncColumnOptions=!0,"filterType"===i?x!==e.value&&x!==e.previousValue||n.syncHeaderFilter(t):"filterValues"===i?n.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].indexOf(i)>-1&&n.syncFilterRow(t,t.filterValue),n._skipSyncColumnOptions=!1}}this.callBase(e);break;default:this.callBase(e)}}},k={_isHeaderFilterEmpty:function(e){return this.getController("data").isFilterSyncActive()?!c.default.filterHasField(this.option("filterValue"),o(e)):this.callBase(e)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():this.callBase(e)}};e.exports={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:w},extenders:{controllers:{data:C},views:{columnHeadersView:k}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(10),s=i(r),l=n(15),u=i(l),c=n(5),d=i(c),h=n(18),f=i(h),p=n(9),g=i(p),_=n(0),m=n(14),v=i(m),y=n(201),b=i(y),x=n(6),w=i(x),C=n(1),k=n(143),S=i(k),I=n(46),T=i(I),D=n(248),E=n(356),A=i(E),O=n(8),B="dx-filterbuilder",P=B+"-group",R=P+"-item",M=P+"-content",V=P+"-operations",F=P+"-operation",L=B+"-action",H=L+"-icon",z="dx-icon-plus",N="dx-icon-remove",$=B+"-text",W=$+"-part",G=$+"-separator",j=G+"-empty",q=B+"-item-field",K=B+"-item-operation",U=B+"-item-value",Y=B+"-item-value-text",X=B+"-overlay",Z=B+"-operations",Q=B+"-fields",J=B+"-add-condition",ee="dx-state-active",te=B+"-menu-custom-operation",ne="filterBuilder",ie="dx-state-disabled",oe="tab",ae="enter",re="escape",se=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],le={and:"and",or:"or",notAnd:"!and",notOr:"!or"},ue=u.default.inherit(A.default),ce=function(e,t,n){if(Array.isArray(t)){var i=t.length-1;e.empty(),t.forEach(function(t,o){(0,a.default)("").addClass(W).text(t).appendTo(e),o!==i&&(0,a.default)("").addClass(G).text(n&&n.valueSeparator?n.valueSeparator:"|").addClass(j).appendTo(e); })}else t?e.text(t):e.text(v.default.format("dxFilterBuilder-enterValueText"))},de=f.default.inherit({_getDefaultOptions:function(){return(0,_.extend)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],defaultGroupOperation:"and",groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:v.default.format("dxFilterBuilder-and"),or:v.default.format("dxFilterBuilder-or"),notAnd:v.default.format("dxFilterBuilder-notAnd"),notOr:v.default.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:v.default.format("dxFilterBuilder-filterOperationBetween"),equal:v.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:v.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:v.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:v.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:v.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:v.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:v.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:v.default.format("dxFilterBuilder-filterOperationContains"),notContains:v.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:v.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:v.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:v.default.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(e){switch(e.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"defaultGroupOperation":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(e.value!==e.previousValue){var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t}break;default:this.callBase(e)}},getFilterExpression:function(){var e=this._getNormalizedFields(),t=(0,_.extend)(!0,[],this._model);return b.default.getFilterExpression(b.default.getNormalizedFilter(t),e,this._customOperations,ne)},_getNormalizedFields:function(){return b.default.getNormalizedFields(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var e=(0,_.extend)(!0,[],this._model),t=b.default.getNormalizedFilter(e),n=b.default.getNormalizedFilter(this._getModel(this.option("value")));JSON.stringify(n)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new ue},_initCustomOperations:function(){this._customOperations=b.default.getMergedOperations(this.option("customOperations"),this.option("filterOperationDescriptions.between"))},_getModel:function(e){return b.default.convertToInnerStructure(e,this._customOperations)},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var e=this;e._actions={},se.forEach(function(t){e._actions[t.name]=e._createActionByOption(t.name,t.config)})},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},_initMarkup:function(){this.$element().addClass(B),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(e,t){return(0,a.default)("
").addClass(P).append(this._createConditionItem(e,t))},_createGroupElementByCriteria:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._createGroupElement(e,t,n),o=i.find("."+M),a=b.default.getGroupCriteria(e),r=0;r").addClass(R),r=(0,a.default)("
").addClass(M),s=(0,a.default)("
").addClass(P).append(o).append(r);return null!=t&&this._createRemoveButton(function(){b.default.removeItem(t,e),s.remove(),i._updateFilter()}).appendTo(o),this._createGroupOperationButton(e).appendTo(o),this._createAddButton(function(){var t=b.default.createEmptyGroup(i.option("defaultGroupOperation"));b.default.addItem(t,e),i._createGroupElement(t,e,n+1).appendTo(r),i._updateFilter()},function(){var t=i.option("fields")[0],n=b.default.createCondition(t,i._customOperations);b.default.addItem(n,e),i._createConditionElement(n,e).appendTo(r),i._updateFilter()},n).appendTo(o),s},_createButton:function(e){return(0,a.default)("
").text(e)},_createGroupOperationButton:function(e){var t=this,n=this._getGroupOperations(e),i=b.default.getGroupMenuItem(e,n),o=i.text,a=n&&n.length<2?this._createButton(o).addClass(ie):this._createButtonWithMenu({caption:o,menu:{items:n,displayExpr:"text",keyExpr:"value",onItemClick:function(n){i!==n.itemData&&(b.default.setGroupValue(e,n.itemData.value),a.html(n.itemData.text),i=n.itemData,t._updateFilter())},onContentReady:function(e){e.component.selectItem(i)},cssClass:V}});return a.addClass($).addClass(F).attr("tabindex",0)},_createButtonWithMenu:function(e){var t=this,n=function(){t.$element().find("."+ee).removeClass(ee),t.$element().find(".dx-overlay .dx-treeview").remove(),t.$element().find(".dx-overlay").remove()},i=this.option("rtlEnabled"),o=function(e){return function(t){e(t),"dxclick"===t.event.type&&n()}},r=i?"right":"left",s=this._createButton(e.caption);return(0,_.extend)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:o(e.menu.onItemClick),onHiding:function(e){s.removeClass(ee)},position:{my:r+" top",at:r+" bottom",offset:"0 1",of:s,collision:"flip"},animation:null,onHidden:function(){n()},cssClass:X+" "+e.menu.cssClass,rtlEnabled:i}),e.popup={onShown:function(t){var n=(0,a.default)(t.component.content()).find(".dx-treeview"),i=n.dxTreeView("instance");d.default.on(n,"keyup keydown",function(n){var i=(0,O.normalizeKeyName)(n);("keydown"===n.type&&i===oe||"keyup"===n.type&&(i===re||i===ae))&&(t.component.hide(),d.default.trigger(e.menu.position.of,"focus"))}),i.focus(),i.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(s,function(){n(),t._createPopupWithTreeView(e,t.$element()),s.addClass(ee)}),s},_hasValueButton:function(e){var t=b.default.getCustomOperation(this._customOperations,e[1]);return t?t.hasValue!==!1:null!==e[2]},_createOperationButtonWithMenu:function(e,t){var n=this,i=this,o=b.default.getAvailableOperations(t,this.option("filterOperationDescriptions"),this._customOperations),r=b.default.getOperationFromAvailable(b.default.getOperationValue(e),o),s=this._createButtonWithMenu({caption:r.text,menu:{items:o,displayExpr:"text",onItemRendered:function(e){e.itemData.isCustom&&(0,a.default)(e.itemElement).addClass(te)},onContentReady:function(e){e.component.selectItem(r)},onItemClick:function(o){if(r!==o.itemData){r=o.itemData,b.default.updateConditionByOperation(e,r.value,i._customOperations);var a=s.siblings().filter("."+U);i._hasValueButton(e)?(0!==a.length&&a.remove(),i._createValueButton(e,t).appendTo(s.parent())):a.remove(),s.html(r.text),n._updateFilter()}},cssClass:Z}}).addClass($).addClass(K).attr("tabindex",0);return s},_createOperationAndValueButtons:function(e,t,n){this._createOperationButtonWithMenu(e,t).appendTo(n),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(n)},_createFieldButtonWithMenu:function(e,t,n){var i=this,o=this,a=this.option("allowHierarchicalFields"),r=b.default.getItems(e,a),s=b.default.getField(n.name||n.dataField,r),l=function(e,t){return a?b.default.getCaptionWithParents(e,t):e.caption},u=this._createButtonWithMenu({caption:l(s,r),menu:{items:r,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:function(e){if(s!==e.itemData){s=e.itemData,t[0]=s.name||s.dataField,t[2]="object"===s.dataType?null:"",b.default.updateConditionByOperation(t,b.default.getDefaultOperation(s),o._customOperations),u.siblings().filter("."+$).remove(),o._createOperationAndValueButtons(t,s,u.parent());var n=l(s,e.component.option("items"));u.html(n),i._updateFilter()}},onContentReady:function(e){e.component.selectItem(s)},cssClass:Q}}).addClass($).addClass(q).attr("tabindex",0);return u},_createConditionItem:function(e,t){var n=this,i=(0,a.default)("
").addClass(R),o=this._getNormalizedFields(),r=b.default.getField(e[0],o);return this._createRemoveButton(function(){b.default.removeItem(t,e),i.remove(),n._updateFilter()}).appendTo(i),this._createFieldButtonWithMenu(o,e,r).appendTo(i),this._createOperationAndValueButtons(e,r,i),i},_getGroupOperations:function(e){var t=this.option("groupOperations"),n=this.option("groupOperationDescriptions");return t&&t.length||(t=[b.default.getGroupValue(e).replace("!","not")]),t.map(function(e){return{text:n[e],value:le[e]}})},_createRemoveButton:function(e){var t=(0,a.default)("
").addClass(H).addClass(N).addClass(L).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t},_createAddButton:function(e,t,n){var i,o=this.option("maxGroupLevel");return(0,C.isDefined)(o)&&n>=o?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,t)):i=this._createButtonWithMenu({menu:{items:[{caption:v.default.format("dxFilterBuilder-addCondition"),click:t},{caption:v.default.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick:function(e){e.itemData.click()},cssClass:J}}),i.addClass(H).addClass(z).addClass(L).attr("tabindex",0)},_createValueText:function(e,t,n){var i=this,o=(0,a.default)("
").html(" ").addClass(Y).attr("tabindex",0).appendTo(n),r=e[2],s=b.default.getCustomOperation(i._customOperations,e[1]);return!s&&t.lookup?b.default.getCurrentLookupValueText(t,r,function(e){ce(o,e)}):w.default.when(b.default.getCurrentValueText(t,r,s)).done(function(e){ce(o,e,s)}),i._subscribeOnClickAndEnterKey(o,function(o){"keyup"===o.type&&o.stopPropagation(),i._createValueEditorWithEvents(e,t,n)}),o},_updateConditionValue:function(e,t,n){var i=e[2]!==t;i&&(e[2]=t),n(),this._updateFilter()},_addDocumentKeyUp:function(e,t){var n=s.default.getDocument(),i=function(e){return o||a?void(a=!1):void t(e)};d.default.on(n,"keyup",i);var o=!1,a=!1,r=e.find("input");d.default.on(r,"compositionstart",function(){o=!0}),d.default.on(r,"compositionend",function(){o=!1,a=!0}),d.default.on(r,"keydown",function(e){229!==e.which&&(a=!1)}),this._documentKeyUpHandler=i},_addDocumentClick:function(e,t){var n=this,i=s.default.getDocument(),o=function(i){n._isFocusOnEditorParts(e,i.target)||(d.default.trigger(e.find("input"),"change"),t())};d.default.on(i,"dxpointerdown",o),this._documentClickHandler=o},_isFocusOnEditorParts:function(e,t){var n=t||s.default.getActiveElement();return(0,a.default)(n).closest(e.children()).length||(0,a.default)(n).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var e=s.default.getDocument();(0,C.isDefined)(this._documentKeyUpHandler)&&d.default.off(e,"keyup",this._documentKeyUpHandler),(0,C.isDefined)(this._documentClickHandler)&&d.default.off(e,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(e,t,n){var i=this,o=e[2],a=function(){return n.empty(),i._removeEvents(),i._createValueText(e,t,n)},r=function(){i._updateConditionValue(e,o,function(){a()})},s={value:""===o?null:o,filterOperation:b.default.getOperationValue(e),setValue:function(e){o=null===e?"":e},closeEditor:r,text:n.text()};n.empty();var l=this._createValueEditor(n,t,s);d.default.trigger(l.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(l,r),this._addDocumentKeyUp(l,function(t){var r=(0,O.normalizeKeyName)(t);if(r===oe){if(i._isFocusOnEditorParts(l))return;i._updateConditionValue(e,o,function(){a(),t.shiftKey&&d.default.trigger(n.prev(),"focus")})}r===re&&d.default.trigger(a(),"focus"),r===ae&&i._updateConditionValue(e,o,function(){d.default.trigger(a(),"focus")})}),this._fireContentReadyAction()},_createValueButton:function(e,t){var n=(0,a.default)("
").addClass($).addClass(U);return this._createValueText(e,t,n),n},_createValueEditor:function(e,t,n){var i=(0,a.default)("
").attr("tabindex",0).appendTo(e),o=b.default.getCustomOperation(this._customOperations,n.filterOperation),r=o&&o.editorTemplate?o.editorTemplate:t.editorTemplate;if(r){var s=this._getTemplate(r);s.render({model:(0,_.extend)({field:t},n),container:i})}else this._editorFactory.createEditor.call(this,i,(0,_.extend)({},t,n,{parentType:ne}));return i},_createPopupWithTreeView:function(e,t){var n=this,i=(0,a.default)("
").addClass(e.menu.cssClass).appendTo(t);this._createComponent(i,T.default,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate:function(t){var i=(0,a.default)("
").appendTo(t);n._createComponent(i,S.default,e.menu),this.repaint()},maxHeight:function(){return(0,D.getElementMaxHeightByWindow)(e.menu.position.of)},visible:!0,focusStateEnabled:!1,closeOnTargetScroll:this.option("closePopupOnTargetScroll"),closeOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1})},_subscribeOnClickAndEnterKey:function(e,t){d.default.on(e,"dxclick",t),d.default.on(e,"keyup",function(e){(0,O.normalizeKeyName)(e)===ae&&t(e)})}});(0,g.default)("dxFilterBuilder",de),e.exports=de,e.exports.renderValueText=ce},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(39),s=i(r),l=n(0),u=n(369),c=i(u),d=n(14),h=i(d),f=n(162),p=i(f),g=n(46),_=i(g),m=n(105),v=s.default.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),_.default,(0,l.extend)({title:h.default.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(t){return e._getPopupContentTemplate(t)},onOptionChanged:function(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden:function(t){(0,m.restoreFocus)(e),e._disposePopup()}}))},_getPopupContentTemplate:function(e){var t=(0,a.default)(e),n=(0,a.default)("
").appendTo((0,a.default)(e));this._filterBuilder=this._createComponent(n,c.default,(0,l.extend)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(t,p.default,{direction:"both"})},_getPopupToolbarItems:function(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:h.default.format("OK"),onClick:function(t){var n=e._filterBuilder.option("value");e.option("filterValue",n),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:h.default.format("Cancel"),onClick:function(t){e._filterBuilderPopup.hide()}}}]},optionChanged:function(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}});e.exports={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:h.default.format("dxFilterBuilder-and"),or:h.default.format("dxFilterBuilder-or"),notAnd:h.default.format("dxFilterBuilder-notAnd"),notOr:h.default.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:h.default.format("dxFilterBuilder-filterOperationBetween"),equal:h.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:h.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:h.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:h.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:h.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:h.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:h.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:h.default.format("dxFilterBuilder-filterOperationContains"),notContains:h.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:h.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:h.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:h.default.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:v}}},function(e,t,n){e.exports=n(367)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(1),s=n(39),l=i(s),u=n(35),c=i(u),d=n(5),h=i(d),f=n(14),p=i(f),g=n(103),_=i(g),m=n(201),v=i(m),y=n(6),b=n(33),x=i(b),w=n(255),C="filter-panel",k=C+"-text",S=C+"-checkbox",I=C+"-clear-filter",T=C+"-left",D="filterPanel",E=l.default.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){var e=this;this.getController("data").dataSourceChanged.add(function(){return e.render()})},_renderCore:function(){var e=this,t=e.element();t.empty().addClass(e.addWidgetPrefix(C));var n=(0,a.default)("
").addClass(e.addWidgetPrefix(T)).appendTo(t);e.option("filterValue")||e._filterValueBuffer?(n.append(e._getCheckElement()).append(e._getFilterElement()).append(e._getTextElement()),t.append(e._getRemoveButtonElement())):n.append(e._getFilterElement()).append(e._getTextElement())},_getCheckElement:function(){var e=this,t=(0,a.default)("
").addClass(this.addWidgetPrefix(S));return e._createComponent(t,_.default,{value:e.option("filterPanel.filterEnabled"),onValueChanged:function(t){e.option("filterPanel.filterEnabled",t.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t},_getFilterElement:function(){var e=this,t=(0,a.default)("
").addClass("dx-icon-filter");return h.default.on(t,"click",function(){return e._showFilterBuilder()}),(0,w.registerKeyboardAction)("filterPanel",e,t,void 0,function(){return e._showFilterBuilder()}),e._addTabIndexToElement(t),t},_getTextElement:function(){var e,t=this,n=(0,a.default)("
").addClass(t.addWidgetPrefix(k)),i=t.option("filterValue");return i?(0,y.when)(t.getFilterText(i,t.getController("filterSync").getCustomFilterOperations())).done(function(e){var o=t.option("filterPanel.customizeText");if(o){var a=o({component:t.component,filterValue:i,text:e});"string"==typeof a&&(e=a)}n.text(e)}):(e=t.option("filterPanel.texts.createFilter"),n.text(e)),h.default.on(n,"click",function(){return t._showFilterBuilder()}),(0,w.registerKeyboardAction)("filterPanel",t,n,void 0,function(){return t._showFilterBuilder()}),t._addTabIndexToElement(n),n},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var e=this,t=function(){return e.option("filterValue",null)},n=(0,a.default)("
").addClass(e.addWidgetPrefix(I)).text(e.option("filterPanel.texts.clearFilter"));return h.default.on(n,"click",t),(0,w.registerKeyboardAction)("filterPanel",this,n,void 0,t),e._addTabIndexToElement(n),n},_addTabIndexToElement:function(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}},optionChanged:function(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},_getConditionText:function(e,t,n){var i="[".concat(e,"] ").concat(t);return(0,r.isDefined)(n)&&(i+=n),i},_getValueMaskedText:function(e){return Array.isArray(e)?"('".concat(e.join("', '"),"')"):" '".concat(e,"'")},_getValueText:function(e,t,n){var i=this,o=new y.Deferred,a=t&&t.customizeText;if((0,r.isDefined)(n)||a)if(!a&&e.lookup)v.default.getCurrentLookupValueText(e,n,function(e){o.resolve(i._getValueMaskedText(e))});else{var s=Array.isArray(n)?n:c.default.getDisplayValue(e,n);(0,y.when)(v.default.getCurrentValueText(e,s,t,D)).done(function(e){o.resolve(i._getValueMaskedText(e))})}else o.resolve("");return o.promise()},getConditionText:function(e,t){var n,i=this,o=e[1],a=new y.Deferred,r=v.default.getCustomOperation(t.customOperations,o),s=v.default.getField(e[0],t.columns),l=s.caption||"",u=e[2];return n=r?r.caption||x.default.captionize(r.name):null===u?v.default.getCaptionByOperation("="===o?"isblank":"isnotblank",t.filterOperationDescriptions):v.default.getCaptionByOperation(o,t.filterOperationDescriptions),this._getValueText(s,r,u).done(function(e){a.resolve(i._getConditionText(l,n,e))}),a},getGroupText:function(e,t,n){var i=this,o=new y.Deferred,a=[],r=v.default.getGroupValue(e);return e.forEach(function(e){v.default.isCondition(e)?a.push(i.getConditionText(e,t)):v.default.isGroup(e)&&a.push(i.getGroupText(e,t,!0))}),y.when.apply(this,a).done(function(){for(var e,i=arguments.length,a=new Array(i),s=0;s").addClass(n.addWidgetPrefix(v)).appendTo(a);n.getController("editorFactory").createEditor(r,{width:o.width,placeholder:o.placeholder,parentType:"searchPanel",value:n.option("searchPanel.text"),updateValueTimeout:b,setValue:function(e){i.searchByText(e)},editorOptions:{inputAttr:{"aria-label":g.default.format("dxDataGrid-ariaSearchInGrid")}}}),n.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};t.push(a)}return t},getSearchTextEditor:function(){var e=this.element(),t=e.find("."+this.addWidgetPrefix(v)).filter(function(){return(0,s.default)(this).closest(".dx-datagrid-header-panel").is(e)});return t.length?t.dxTextBox("instance"):null},isVisible:function(){var t=e(this);return this.callBase()||t&&t.visible},optionChanged:function(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this.getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else this.callBase(e)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(e,t){var n=a(e,t),i=(0,f.getFormatOptionsByColumn)(e,"search");return(0,f.formatValue)(n,i)},_getStringNormalizer:function(){var e=this.option("searchPanel.highlightCaseSensitive");return function(t){return e?t:t.toLowerCase()}},_findHighlightingTextNodes:function(e,t,n){var i,o=this,a=t.parent(),r=this._getStringNormalizer(),l=r(n);if(a.length){if(e)if(e.groupIndex>=0&&!e.showWhenGrouped)i=t;else{var u=o._columnsController.getVisibleIndex(e.index);i=a.children("td").eq(u).find("*")}}else a=(0,s.default)("
").append(t);return i=i&&i.length?i:a.find("*"),i=i.filter(function(e,t){for(var n=(0,s.default)(t).contents(),i=0;i-1}})},_highlightSearchTextCore:function(e,t){var n=this,i=(0,s.default)("").addClass(n.addWidgetPrefix(y)),o=e.text(),a=e[0],r=this._getStringNormalizer(),l=r(o).indexOf(r(t));if(l>=0)return a.textContent?a.textContent=o.substr(0,l):a.nodeValue=o.substr(0,l),e.after(i.text(o.substr(l,t.length))),e=(0,s.default)(u.default.createTextNode(o.substr(l+t.length))).insertAfter(i),n._highlightSearchTextCore(e,t)},_highlightSearchText:function(e,t,n){var i=this,o=this._getStringNormalizer(),a=i.option("searchPanel.text");if(t&&n&&(a=a&&i._getFormattedSearchText(n,a)),a&&i.option("searchPanel.highlightSearchText")){var r=i._findHighlightingTextNodes(n,e,a);(0,h.each)(r,function(e,n){(0,h.each)((0,s.default)(n).contents(),function(e,n){t?o((0,s.default)(n).text())===o(a)&&(0,s.default)(this).replaceWith((0,s.default)("").addClass(i.addWidgetPrefix(y)).text((0,s.default)(n).text())):i._highlightSearchTextCore((0,s.default)(n),a)})})}},_renderCore:function(){this.callBase.apply(this,arguments),this.option("rowTemplate")&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this._getTableElement())}.bind(this))):this._highlightSearchText(this._getTableElement()))},_updateCell:function(e,t){var n=t.column,i=n.lookup&&n.lookup.dataType||n.dataType,a="string"!==i;o(n)&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(e){this._highlightSearchText.apply(this,e)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([e,a,n])):this._highlightSearchText(e,a,n)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(39),a=i(o),r=n(641),s=i(r),l=n(13),u=n(1),c=n(7),d="pager",h=10,f=a.default.View.inherit({init:function(){var e=this,t=e.getController("data");e._isVisible=!1,t.changed.add(function(n){if(n&&n.repaintChangesOnly){var i=e._getPager();i?i.option({pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):e.render()}else(!n||"update"!==n.changeType&&"updateSelection"!==n.changeType)&&e.render()})},_getPager:function(){var e=this.element();return e&&e.data("dxPager")},_renderCore:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix(d)),n=e.option("pager")||{},i=e.getController("data"),o={maxPagesCount:h,pageIndex:1+(parseInt(i.pageIndex())||0),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,pageSizes:e.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&setTimeout(function(){i.pageIndex(e-1)})},pageSizeChanged:function(e){setTimeout(function(){i.pageSize(e)})},onKeyDown:function(t){var n=e.getController("keyboardNavigation");n&&n.executeAction("onKeyDown",t)},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation")};(0,u.isDefined)(n.infoText)&&(o.infoText=n.infoText),e._createComponent(t,s.default,o)},getPageSizes:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.allowedPageSizes,o=t.pageSize();return(0,u.isDefined)(e._pageSizes)&&(0,l.inArray)(o,e._pageSizes)!==-1||(e._pageSizes=[],n&&(Array.isArray(i)?e._pageSizes=i:i&&o>1&&(e._pageSizes=[Math.floor(o/2),o,2*o]))),e._pageSizes},isVisible:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.visible,o=e.option("scrolling");return!!e._isVisible||("auto"===i&&(i=(!o||"virtual"!==o.mode&&"infinite"!==o.mode)&&(t.pageCount()>1||t.isLoaded()&&!t.hasKnownLastPage())),e._isVisible=i,i)},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=this,n=e.name,i="pager"===n,o="paging"===n,a="dataSource"===n,r="scrolling"===n,s=t.getController("data");if(i||o||r||a){if(e.handled=!0,s.skipProcessingPagingChange(e.fullName))return;(i||o)&&(t._pageSizes=null),(i||o||r)&&(t._isVisible=!1),a||(t._invalidate(),(0,c.hasWindow)()&&i&&t.component&&t.component.resize())}}});e.exports={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:f}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(10),s=i(r),l=n(5),u=i(l),c=n(25),d=i(c),h=n(1),f=i(h),p=n(3),g=n(0),_=n(8),m=n(23),v=i(m),y=n(56),b=i(y),x=n(39),w=i(x),C=n(35),k=i(C),S=n(38),I=i(S),T=n(153),D="columns-separator",E="columns-separator-transparent",A="drag-header",O="text-content",B="drag-action",P="tracker",R="drop-highlight",M="dx-block-separator",V="dx-header-row",F="dx-widget",L="dx-drag-command-cell",H="dxDataGridResizingReordering",z=10,N=5,$=.5,W=function(e){return e.option("allowColumnResizing")||e.getController("columns").isColumnOptionUsed("allowResizing")},G=function(e){return e.option("allowColumnReordering")||e.getController("columns").isColumnOptionUsed("allowReordering"); -},j=w.default.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix(P)),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var e=this;e._positionChanged=function(t){var n=e.element();n&&n.hasClass(e.addWidgetPrefix(P))&&(n.css({top:t.top}),n.height(t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)},optionChanged:function(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return W(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(e){this.element().height(e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),q=w.default.View.inherit({_renderSeparator:function(){},_renderCore:function(e){this.callBase(e),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(e){var t=this.element();if(t){if(!f.default.isDefined(e))return t.height();t.height(e)}},width:function(e){var t=this.element();if(t){if(!f.default.isDefined(e))return t.width();t.width(e)}}}),K=q.inherit({_renderSeparator:function(){this.callBase();var e=this.element();e.addClass(this.addWidgetPrefix(D))},_subscribeToCallback:function(){var e,t=this;t._positionChanged=function(n){e=t.element(),e&&(e.css({top:n.top}),e.height(n.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=W(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(G(this)||W(this))},optionChanged:function(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=W(this),this.hide(!0))),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var e=this,t=this.element();t&&!e._isShown&&(e._isTransparent?t.removeClass(e.addWidgetPrefix(E)):t.show()),this.callBase()},hide:function(e){var t=this.element(),n=this.addWidgetPrefix(E);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(n),t.css("left",""),t.show()):(t.hasClass(n)&&t.removeClass(n),t.hide())),this.callBase()},moveByX:function(e){var t=this.element();t&&t.css("left",e-this._parentElement().offset().left)},changeCursor:function(e){e=f.default.isDefined(e)?e:"";var t=this.element();t&&t.css("cursor",e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),U=q.inherit({init:function(){var e=this;this.callBase(),this.getController("data").loadingChanged.add(function(t){t||e.hide()})},_renderSeparator:function(){this.callBase(),this.element().addClass(M).html(" ")},hide:function(){var e=this,t=this._parentElement(),n=this.element();n&&this._isShown&&n.css("display","none"),t&&!t.children("."+M).length&&t.prepend(e.element()),e.callBase()},isVisible:function(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled},show:function(e){var t=this,n=this.element(),i=function(e){I.default.stop(n,!0),I.default.animate(n,{type:"slide",from:{width:0,display:e.display},to:e,duration:300,easing:"swing"})};if(n&&!t._isShown)switch(e){case"group":i({width:"50px",display:"inline-block"});break;case"columnChooser":i({width:"100%",display:"block"});break;default:n.css("display","")}t.callBase()}}),Y=w.default.View.inherit({_isDragging:!1,_getDraggingPanelByPos:function(e){var t,n=this;return(0,p.each)(n._dragOptions.draggingPanels,function(n,i){if(i){var o=i.getBoundingRect();if(o&&(void 0===o.bottom||e.yo.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.xN||l>N){r.show();var u=i.x-a.deltaX,c=i.y-a.deltaY;r.css({left:u,top:c}),n.dockHeader(i)}t.preventDefault()}},dockHeader:function(e){var t=this,n=t._getDraggingPanelByPos(e),i=t._controller,o=t._dropOptions,r=t._dragOptions;if(n){var s=t.option("rtlEnabled"),l="columnChooser"===n.getName(),u=l?"y":"x",c=n.getName(),d="headers"===c?r.rowIndex:void 0,h=r.sourceColumn,f=n.getColumnElements(d,h&&h.ownerBand)||[],p=r.pointsByTarget=r.pointsByTarget||{},_="columnChooser"===c?[]:p[c]||i._generatePointsByColumns((0,g.extend)({},r,{targetDraggingPanel:n,columns:n.getColumns(d),columnElements:f,isVerticalOrientation:l,startColumnIndex:"headers"===c&&(0,a.default)(f[0]).index()}));if(p[c]=_,o.targetLocation=c,_.length>0)for(var m=0;m<_.length;m++){var v=_[m+1]&&(_[m][u]+_[m+1][u])/2;if(void 0===v||(s&&"x"===u?e[u]>v:e[u]=n&&e<=n+i}}return!1},_pointCreated:function(e,t,n){var i=X(this),o=this.option("rtlEnabled"),a=!i&&o?0:1;if(e.index>=a&&e.index0?o[0].getBoundingClientRect().width:0,nextColumnIndex:i,nextColumnWidth:a&&a.length>0?a[0].getBoundingClientRect().width:0}},_startResizing:function(e){var t=e.event,n=t.data,i=(0,_.eventData)(t),o=n.getController("editing"),a=n.option("editing.mode"),r=o.isEditing()&&("batch"===a||"cell"===a);(0,_.isTouchEvent)(t)&&(n._isHeadersRowArea(i.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),i.x,z),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing&&!r&&(n._setupResizingInfo(i.x),n._isResizing=!0,n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show(),t.preventDefault(),t.stopPropagation())},_generatePointsByColumns:function(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],n=e._columnHeadersView.getColumnElements(),i=[];n&&n.length>0&&(i=k.default.getPointsByColumns(n,function(i){return e._pointCreated(i,n.length,t)})),e._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&u.default.off(s.default.getDocument(),(0,_.addNamespace)(v.default.move,H),this._moveSeparatorHandler),this._startResizingHandler&&u.default.off(this._$parentContainer,(0,_.addNamespace)(v.default.down,H),this._startResizingHandler),this._endResizingHandler&&(u.default.off(this._columnsSeparatorView.element(),(0,_.addNamespace)(v.default.up,H),this._endResizingHandler),u.default.off(s.default.getDocument(),(0,_.addNamespace)(v.default.up,H),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),u.default.on(s.default.getDocument(),(0,_.addNamespace)(v.default.move,H),this,this._moveSeparatorHandler),u.default.on(this._$parentContainer,(0,_.addNamespace)(v.default.down,H),this,this._startResizingHandler),u.default.on(this._columnsSeparatorView.element(),(0,_.addNamespace)(v.default.up,H),this,this._endResizingHandler),u.default.on(s.default.getDocument(),(0,_.addNamespace)(v.default.up,H),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(e){function t(e){return f.default.isString(e)&&"%"===e.slice(-1)}function n(e,n,i,o){if(e){var a=e.width;a&&(o=t(a)),o?(e&&d.columnOption(e.index,"visibleWidth",n),e&&d.columnOption(e.index,"width",(n/i*100).toFixed(3)+"%")):(e&&d.columnOption(e.index,"visibleWidth",null),e&&d.columnOption(e.index,"width",n))}}function i(e,n){var i=n.every(function(e){return e.width});if(i){var o=n.reduce(function(e,n){return t(n.width)&&(e+=parseFloat(n.width)),e},0);o>100&&(e=e/o*100)}return e}var o,a,r,s,l,u=!1,c=this._resizingInfo,d=this._columnsController,h=d.getVisibleColumns(),p=this._columnsSeparatorView.width(),g=this._rowsView.contentWidth(),_=X(this),m=_&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth");o=e-c.startPosX,_&&this.option("rtlEnabled")&&(o=-o),l=c.currentColumnWidth+o;var v=h[c.currentColumnIndex];if(r=v&&v.minWidth||p,u=l>=r,_&&(a=c.nextColumnWidth-o,s=h[c.nextColumnIndex],r=s&&s.minWidth||p,u=u&&a>=r),u){if(d.beginUpdate(),l=Math.floor(l),g=i(g,h),n(v,l,g,m),_)a=Math.floor(a),n(s,a,g,m);else{var y=this._columnHeadersView.getColumnWidths();y[c.currentColumnIndex]=l;var b=y.reduce(function(e,t){return e+t},0)>this._rowsView.contentWidth();if(!b){var x=k.default.getLastResizableColumnIndex(h);x>=0&&d.columnOption(h[x].index,"visibleWidth","auto")}for(var w=0;w=0,s=function(){t._animationColumnIndex!==n&&(t.hideSeparators(),a.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=n,a.show(o))};t._columnHeadersView.element().find("."+V).toggleClass(t.addWidgetPrefix(R),"headers"!==i&&"headers"===o&&!r),a&&(t.allowDrop(e)&&r?"group"===o||"columnChooser"===o?s():(t.hideSeparators("block"),t.getController("tablePosition").update(e.posY),a.moveByX(e.posX-a.width()),a.show()):t.hideSeparators())},drop:function(e){var t=e.sourceColumnElement;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find("."+V).removeClass(this.addWidgetPrefix(R))),this.allowDrop(e)){var n=this._getSeparator(e.targetLocation);n&&n.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}});e.exports={views:{columnsSeparatorView:K,blockSeparatorView:U,draggingHeaderView:Y,trackerView:j},controllers:{draggingHeader:J,tablePosition:Q,columnsResizer:Z},extenders:{views:{rowsView:{_needUpdateRowHeight:function(e){var t=this.option("wordWrapEnabled"),n=this.getController("columnsResizer"),i=n.isResizing();return this.callBase.apply(this,arguments)||e>0&&t&&i}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e&&e.hasClass(H)}function a(e){return e&&e.hasClass(N)}function r(e){return e&&!o(e)&&!a(e)}function s(e){return!e||e.hasClass($)||e.hasClass(W)}function l(e){return e.length&&"TD"===e[0].tagName}function u(e,t){return!e._isRowEditMode()&&t&&t.hasClass(j)}function c(e){return(0,b.isDefined)(e)&&e.length>0}var d=n(2),h=i(d),f=n(10),p=i(f),g=n(5),_=i(g),m=n(39),v=i(m),y=n(35),b=n(1),x=n(13),w=n(65),C=n(3),k=n(159),S=i(k),I=n(8),T=i(I),D=n(23),E=i(D),A=n(4),O=n(105),B=n(26),P=i(B),R="rowsview",M="edit-form",V="group-footer",F="dx-row",L="dx-data-row",H="dx-group-row",z="edit-form-item",N="dx-master-detail-row",$="dx-freespace-row",W="dx-virtual-row",G="dx-master-detail-cell",j="dx-editor-cell",q="dx-edit-row",K="dx-dropdowneditor-overlay",U="dx-command-expand",Y="dx-command-select",X="[class^=dx-command]",Z="dx-cell-focus-disabled",Q="dxDateBox",J="dx-state-focused",ee="dx-widget",te="delete",ne="input:not([type='hidden']), textarea, a, select, [tabindex]",ie=["rowsView"],oe="row",ae="form",re="batch",se="cell",le="row",ue="cell",ce=v.default.ViewController.inherit({_isRowEditMode:function(){var e=this.getController("editing").getEditMode();return e===oe||e===ae},_isCellEditMode:function(){var e=this.getController("editing").getEditMode();return e===se||e===re},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_focusView:function(e,t){this._focusedViews.viewIndex=t,this._focusedView=e},_getInteractiveElement:function(e,t){var n=e.find(ne).filter(":visible");return t?n.last():n.first()},_focusInteractiveElement:function(e,t){if(e){var n=this._getInteractiveElement(e,t);(0,y.focusAndSelectElement)(this,n)}},_updateFocus:function(e){var t=this;setTimeout(function(){var n=t._getFocusedCell(),i=t._editingController.isEditing();if(n&&(!t._isMasterDetailCell(n)||t._isRowEditMode())){if(t._hasSkipRow(n.parent())){var o=t._focusedCellPosition&&t._focusedCellPosition.rowIndex>0?"upArrow":"downArrow";n=t._getNextCell(o)}if(c(n)){if(e&&!i&&t._checkCellOverlapped(n))return;n.is("td")||n.hasClass(t.addWidgetPrefix(z))?(t.getController("editorFactory").focus()?t._focus(n):t._isCellEditMode()?t._focus(n,t._isHiddenFocus):t._isHiddenFocus&&t._focus(n,!0),i&&t._focusInteractiveElement.bind(t)(n)):_.default.trigger(n,"focus")}}})},_checkCellOverlapped:function(e){var t=e.offset(),n=this.component.getScrollable&&this.component.getScrollable(),i=!1;return n&&(t.left<0?i=e.width()+t.left<=0:t.top<0&&(i=e.height()+t.top<=0)),i},_applyTabIndexToElement:function(e){var t=this.option("tabIndex");e.attr("tabIndex",(0,b.isDefined)(t)?t:0)},_isEventInCurrentGrid:function(e){return(0,y.isElementInCurrentGrid)(this,(0,h.default)(e.target))},_clickHandler:function(e){var t=e.event,n=(0,h.default)(t.currentTarget),i=t.data,o=i.view&&i.view.element(),a=n.parent(),r=a.hasClass(q);this._isEventInCurrentGrid(t)&&this._isCellValid(n,!0)?(n=this._isInsideEditForm(n)?(0,h.default)(t.target):n,this._focusView(i.view,i.viewIndex),(0,h.default)(o).removeClass(J),a.hasClass($)?(this._updateFocusedCellPosition(n),this._focusedView.element().attr("tabindex",0),this._focusedView.focus()):this._isMasterDetailCell(n)||r?this._updateFocusedCellPosition(n):this._clickTargetCellHandler(t,n)):n.is("td")&&this._resetFocusedCell()},_allowRowUpdating:function(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")},_clickTargetCellHandler:function(e,t){var n=this.getView("rowsView").getCellIndex(t),i=this._columnsController.getVisibleColumns()[n],o=this._isCellEditMode();this.setCellFocusType();var a=this._fireFocusChangingEvents(e,t,!0);if(t=a.$newCellElement,a.cancel)this.setRowFocusType(),this.setFocusedRowIndex(a.prevRowIndex),t=this._getFocusedCell(),this._editingController.isEditing()&&o&&this._editingController.closeEditCell();else{if(a.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(a.rowIndexChanged&&(t=this._getFocusedCell()),a.isHighlighted||o||this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&o&&i&&i.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{var r=e&&(0,h.default)(e.target),s=r&&r.not(t).is(ne),l=!a.isHighlighted||s;this._focus(t,l,s)}}},_initFocusedViews:function(){var e=this,t=e.createAction(e._clickHandler);e._focusedViews=[],(0,C.each)(ie,function(t,n){var i=e.getView(n);i&&i.isVisible()&&e._focusedViews.push(i)}),(0,C.each)(e._focusedViews,function(n,i){i&&i.renderCompleted.add(function(o){var a=i.element(),r=!o||"refresh"===o.changeType,s=e._focusedView&&e._focusedView.name===i.name,l=!1,u=o&&("append"===o.changeType||"prepend"===o.changeType),c=".".concat(F," > td, .").concat(F),d=(0,h.default)(":focus"),f=!d.length||d.closest(a).length||P.default.msie&&d.is("body");_.default.off(a,T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),t),_.default.on(a,T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),c,{viewIndex:n,view:i},t),e._initKeyDownProcessor(e,a,e._keyDownHandler),e._setRowsViewAttributes(a),s&&f&&(l=e._isNeedFocus?!u:e._isHiddenFocus&&r,l&&e._updateFocus(!0))})})},_setRowsViewAttributes:function(e){var t=!this._dataController.getVisibleRows().length;if(t){var n=this.option("tabindex")||0;e.attr("tabindex",n)}},_initKeyDownProcessor:function(e,t,n){this._keyDownProcessor&&(this._keyDownProcessor.dispose(),this._keyDownProcessor=null),this._keyDownProcessor=new S.default({element:t,context:e,handler:n})},_getCell:function(e){if(this._focusedView&&e)return this._focusedView.getCell({rowIndex:e.rowIndex-this._dataController.getRowIndexOffset(),columnIndex:e.columnIndex})},_getFocusedCell:function(){return(0,h.default)(this._getCell(this._focusedCellPosition))},_getRowIndex:function(e){var t=this,n=t._focusedView,i=-1;return n&&(i=n.getRowIndex(e)),i>=0&&(i+=t._dataController.getRowIndexOffset()),i},_updateFocusedCellPosition:function(e,t){var n=this._getCellPosition(e,t);return n&&(!e.length||n.rowIndex>=0&&n.columnIndex>=0)&&this.setFocusedCellPosition(n.rowIndex,n.columnIndex),n},_updateFocusedCellPositionByTarget:function(e){var t,n=this._getElementType(e);if("row"===n&&(0,b.isDefined)(null===(t=this._focusedCellPosition)||void 0===t?void 0:t.columnIndex)){var i=(0,h.default)(e);this._focusedView&&o(i)&&this.setFocusedRowIndex(this._getRowIndex(i))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(e))},_getCellPosition:function(e,t){var n,i=this,o=c(e)&&e.closest("tr");if(c(o)&&i._focusedView){var a=i._getRowIndex(o);return n=i._focusedView.getCellIndex(e,a),t&&(n="previous"===t?n-1:n+1,n=i._applyColumnIndexBoundaries(n)),{rowIndex:a,columnIndex:n}}},setFocusedCellPosition:function(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)},setFocusedRowIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e},setFocusedColumnIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e},getVisibleRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex?this._focusedCellPosition.rowIndex-this._dataController.getRowIndexOffset():this._focusedCellPosition.rowIndex:null},getVisibleColumnIndex:function(){return this._focusedCellPosition&&(0,b.isDefined)(this._focusedCellPosition.columnIndex)?this._focusedCellPosition.columnIndex:-1},getFocusedColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:null},_applyColumnIndexBoundaries:function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},_isCellValid:function(e,t){if(c(e)){var n=this.getView("rowsView"),i=e.parent(),o=this._columnsController.getVisibleColumns(),s=n.getCellIndex(e),l=o[s],u=this._getVisibleColumnCount(),d=this._editingController,h=a(i),f=l&&l.showWhenGrouped,p=l&&!e.hasClass(U)&&r(i),g=function(){return!h&&l&&(!(0,b.isDefined)(l.groupIndex)||f&&p)||parseInt(e.attr("colspan"))>1};if(this._isMasterDetailCell(e))return!0;if(u>s&&g()){var _=this._dataController.items(),m=n.getRowIndex(i),v=_[m],y=d&&this._isCellEditMode()&&d.isEditing(),x=d&&d.isEditRow(m),w=x||y;return l.command?this._isLegacyNavigation()?!w&&"expand"===l.command:y?!l.command:x?"select"!==l.command:!w:(!y||!v||"data"===v.rowType)&&(!w||l.allowEditing||t)}}},_isCellByPositionValid:function(e){var t=(0,h.default)(this._getCell(e));return this._isCellValid(t)},_focus:function(e,t,n){var i=e&&e.is("td")?e.parent():e;if(!i||!s(i)){var a,r=this._getFocusedCell(),u=this._focusedView,c=u&&u.element();this._isHiddenFocus=t,o(i)||this.isRowFocusType()?(a=i,u&&this.setFocusedRowIndex(this._getRowIndex(i))):l(e)&&(a=e,this._updateFocusedCellPosition(e)),r&&r.is("td")&&r.not(a).removeAttr("tabIndex"),a&&(_.default.one(a,"blur",function(e){e.relatedTarget&&a.removeClass(Z)}),n||(this._applyTabIndexToElement(a),_.default.trigger(a,"focus")),t?(c&&c.find("."+Z+"[tabIndex]").not(a).removeClass(Z).removeAttr("tabIndex"),a.addClass(Z)):(c&&c.find("."+Z+":not(."+G+")").removeClass(Z),this.getController("editorFactory").focus(a)))}},_hasSkipRow:function(e){var t=e&&e.get(0);return t&&("none"===t.style.display||e.hasClass(this.addWidgetPrefix(V))||a(e)&&!e.hasClass(this.addWidgetPrefix(M)))},_f2KeyHandler:function(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(t);!e&&r(n)&&this._startEditing()},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_enterKeyHandler:function(e,t){var n=this._getFocusedCell(),i=this.getVisibleRowIndex(),a=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&o(a)||this.option("masterDetail.enabled")&&n&&n.hasClass(U)){var r=this._dataController.getKeyByRowIndex(i),s=this._dataController.items()[i];void 0!==r&&s&&s.data&&!s.data.isContinuation&&this._dataController.changeRowExpand(r)}else this._processEnterKeyForDataCell(e,t); -},_processEnterKeyForDataCell:function(e,t){var n=this._getEnterKeyDirection(e),i=this._allowEditingOnEnterKey();t||!i&&n?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===n||"previous"===n?this._targetCellTabHandler(e,n):"upArrow"!==n&&"downArrow"!==n||this._navigateNextCell(e.originalEvent,n)):i&&this._startEditing(e)},_getEnterKeyDirection:function(e){var t=this.option("keyboardNavigation.enterKeyDirection"),n=e.shift;return"column"===t?n?"upArrow":"downArrow":"row"===t?n?"previous":"next":void 0},_handleEnterKeyEditingCell:function(e){var t=e.target,n=this._getCellElementFromTarget(t),i=this._isRowEditMode();this._updateFocusedCellPosition(n),i?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(_.default.trigger((0,h.default)(t),"change"),this._editingController.closeEditCell(),e.preventDefault())},_startEditing:function(e,t){var n=this._focusedCellPosition,i=this.getVisibleRowIndex(),o=this._dataController.items()[i],a=this._columnsController.getVisibleColumns()[n.columnIndex],r=this._editingController.allowUpdating({row:o})&&a&&a.allowEditing;r&&(this._isRowEditMode()?this._editingController.editRow(i):n&&this._startEditingCell(e,t))},_startEditingCell:function(e,t){var n=this,i=this.getVisibleRowIndex(),o=this._focusedCellPosition.columnIndex;this._fastEditingStarted=(0,b.isDefined)(t);var a=this._editingController.editCell(i,o);if(this._isFastEditingStarted())if(a===!0)n._editingCellHandler(e,t);else if(a&&a.done){var r=t!==te?t:"";a.done(function(){return n._editingCellHandler(e,r)})}},_editingCellHandler:function(e,t){var n=this._getFocusedCell().find(".dx-texteditor-input").eq(0),i=T.default.createEvent(e,{type:"keydown",target:n.get(0)}),o=T.default.createEvent(e,{type:"keypress",target:n.get(0)}),a=T.default.createEvent(e,{type:"input",target:n.get(0)});_.default.trigger(n,i),i.isDefaultPrevented()||(_.default.trigger(n,o),o.isDefaultPrevented()||setTimeout(function(){n.val(t);var e=n.closest(".".concat(ee));_.default.off(e,"focusout"),_.default.one(e,"focusout",function(){_.default.trigger(n,"change")}),_.default.trigger(n,a)}))},_leftRightKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=e.originalEvent,o=this._focusedView&&this._focusedView.getRow(n),a=this._getDirectionCodeByKey(e.keyName),s=this._isFastEditingStarted(),l=(!t||s)&&r(o);if(l){this.setCellFocusType(),s&&this._editingController.closeEditCell();var u=this._getNextCell(a);c(u)&&this._arrowKeysHandlerFocusCell(i,u),i&&i.preventDefault()}},_upDownKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=this._focusedView&&this._focusedView.getRow(n),o=e.originalEvent,r="upArrow"===e.keyName,s=this._dataController.dataSource(),l=this._isFastEditingStarted(),u=(!t||l)&&i&&!a(i);if(u){if(l&&this._editingController.closeEditCell(),!this._navigateNextCell(o,e.keyName)&&this._isVirtualScrolling()&&r&&s&&!s.isLoading()){var c=i.outerHeight();n=this._focusedCellPosition.rowIndex-1,this._scrollBy(-c,n,o)}o&&o.preventDefault()}},_getDirectionCodeByKey:function(e){var t;return t=this.option("rtlEnabled")?"leftArrow"===e?"nextInRow":"previousInRow":"leftArrow"===e?"previousInRow":"nextInRow"},_navigateNextCell:function(e,t){var n=this._getNextCell(t);return!(!n||!this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(e,n,!0)},_arrowKeysHandlerFocusCell:function(e,t,n){var i=this._fireFocusChangingEvents(e,t,n,!0);return t=i.$newCellElement,!(i.cancel||!this._isCellValid(t))&&(this._focus(t,!i.isHighlighted),!0)},_fireFocusChangingEvents:function(e,t,n,i){var o={},a=this._getCellPosition(t)||{};return this.isCellFocusType()&&(o=this._fireFocusedCellChanging(e,t,i),o.cancel||(a.columnIndex=o.newColumnIndex,a.rowIndex=o.newRowIndex,i=o.isHighlighted,t=(0,h.default)(this._getCell(a)))),!o.cancel&&n&&t&&(o=this._fireFocusedRowChanging(e,t.parent()),o.cancel?e&&e.preventDefault():(a.rowIndex=o.newRowIndex,o.isHighlighted=i)),o.$newCellElement=(0,h.default)(this._getCell(a)),o.$newCellElement.length||(o.$newCellElement=t),o},_isVirtualScrolling:function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},_scrollBy:function(e,t,n){var i=this,o=this.getView("rowsView").getScrollable();if(i._focusedCellPosition){var a=function e(){o.off("scroll",e),setTimeout(i.restoreFocusableElement.bind(i,t,n))};o.on("scroll",a)}o.scrollBy({left:0,top:e})},restoreFocusableElement:function(e,t){var n,i,o=this,a=(0,b.isDefined)(e),r=o.getView("rowsView"),s=r.element(),l=o._focusedCellPosition.columnIndex,u=o._dataController.getRowIndexOffset();e=a?e:r.getTopVisibleItemIndex()+u,a?(i=r.getRow(e-u),n=o._fireFocusedRowChanging(t,i),!n.cancel&&n.rowIndexChanged&&(e=n.newRowIndex)):(o.getController("editorFactory").loseFocus(),o._applyTabIndexToElement(s),_.default.trigger(s,"focus")),a&&n.cancel||o.setFocusedCellPosition(e,l),a&&o._updateFocus()},_pageUpDownKeyHandler:function(e){var t=this._dataController.pageIndex(),n=this._dataController.pageCount(),i=this.option("paging.enabled"),o="pageUp"===e.keyName,a=o?-1:1,r=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(o?t>0:t0},_isMasterDetailCell:function(e){var t=(0,h.default)(e).closest("."+G),n=t.closest("."+this.getWidgetContainerClass()).parent();return t.length&&n.is(this.component.$element())},_processNextCellInMasterDetail:function(e){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},_handleTabKeyOnMasterDetailCell:function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,h.default)(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n),!0}return!1},_tabKeyHandler:function(e,t){var n=this.option("editing"),i=e.shift?"previous":"next",o=!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),a=e.originalEvent.target,r=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(a,i)){if((0,h.default)(r).addClass(J),n&&a&&!o)if((0,h.default)(a).hasClass(this.addWidgetPrefix(R))&&this._resetFocusedCell(),t){if(!this._editingCellTabHandler(e,i))return}else this._targetCellTabHandler(e,i)&&(o=!0);o?(this.getController("editorFactory").loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(),this._editingController.closeEditCell())):e.originalEvent.preventDefault()}},_editingCellTabHandler:function(e,t){var n,i=this.option("editing"),o=e.originalEvent.target,a=this._getCellElementFromTarget(o),r=e.originalEvent,s=this._getElementType(o);if(a.is(X))return!this._targetCellTabHandler(e,t);if(this._updateFocusedCellPosition(a),a=this._getNextCellByTabKey(r,t,s),!a||this._handleTabKeyOnMasterDetailCell(a,t))return!1;var l=this._columnsController.getVisibleColumns()[this.getView("rowsView").getCellIndex(a)],u=this._dataController.items()[this._getRowIndex(a&&a.parent())];if(l.allowEditing){var c=!u||"data"===u.rowType;n=i.allowUpdating?c:u&&u.isNewRow}return n||this._editingController.closeEditCell(),this._focusCell(a)&&(!this._isRowEditMode()&&n?this._editingController.editCell(this.getVisibleRowIndex(),this._focusedCellPosition.columnIndex):this._focusInteractiveElement(a,e.shift)),!0},_targetCellTabHandler:function(e,t){var n,i=e.originalEvent,o=i.target,a=this._getCellElementFromTarget(o),s=this._getInteractiveElement(a,!e.shift),l=!1;if(!u(this,a)&&s.length&&o!==s.get(0))l=!0;else{if(void 0===this._focusedCellPosition.rowIndex&&(0,h.default)(o).hasClass(F)&&this._updateFocusedCellPosition(a),n=this._getElementType(o),this.isRowFocusType()&&(this.setCellFocusType(),"row"===n&&r((0,h.default)(o))&&(o=this.getFirstValidCellInRow((0,h.default)(o)),n=this._getElementType(o))),a=this._getNextCellByTabKey(i,t,n),!a)return!1;if(a=this._checkNewLineTransition(i,a),!a)return!1;this._focusCell(a),u(this,a)||this._focusInteractiveElement(a,e.shift)}return l},_getNextCellByTabKey:function(e,t,n){var i=this._getNextCell(t,n),o=i&&this._fireFocusedCellChanging(e,i,!0);if(o&&!o.cancel)return o.$newCellElement&&(i=o.$newCellElement),i},_checkNewLineTransition:function(e,t){var n=this.getVisibleRowIndex(),i=t.parent();if(n!==this._getRowIndex(i)){var o=this._getCellPosition(t),a=this._fireFocusedRowChanging(e,i);if(a.cancel)return;a.rowIndexChanged&&(this.setFocusedColumnIndex(o.columnIndex),t=this._getFocusedCell())}return t},getFirstValidCellInRow:function(e,t){var n,i,o=this,a=e.find("> td");t=t||0;for(var r=t;r=this._dataController.totalItemsCount()-1:e===this.getController("data").items().length-1},_getNextCell:function(e,t,n){var i,o,a=n||this._focusedCellPosition,r=this.isRowFocusType(),s=r||(0,x.inArray)(e,["next","previous"])>-1,l="previous"===e?this._isFirstValidCell(a):this._isLastValidCell(a);if(this._focusedView&&a){var u=this._getNewPositionByCode(a,t,e);if(i=(0,h.default)(this._getCell(u)),c(i)&&!this._isCellValid(i)&&this._isCellInRow(u,s)&&!l&&(i=r?this.getFirstValidCellInRow(i.parent(),u.columnIndex):this._getNextCell(e,"cell",u)),o=c(i)&&i.parent(),this._hasSkipRow(o)){var d=this._getRowIndex(o);if(this._isLastRow(d))return null;i=this._getNextCell(e,"row",{columnIndex:a.columnIndex,rowIndex:d})}return c(i)?i:null}return null},_getNewPositionByCode:function(e,t,n){var i,o=e.columnIndex,a=e.rowIndex;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i=this._getVisibleColumnCount(),o0&&!this._isFirstValidCell({columnIndex:o,rowIndex:a})&&"row"!==t?o--:a>0&&"previous"===n&&(a--,i=this._getVisibleColumnCount(),o=i-1);break;case"upArrow":a=a>0?a-1:a;break;case"downArrow":a=this._isLastRow(a)?a:a+1}return{columnIndex:o,rowIndex:a}},_isFirstValidCell:function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._haveValidCellBeforePosition(e)),t},_haveValidCellBeforePosition:function(e){for(var t=e.columnIndex,n=!1;t>0&&!n;){var i={columnIndex:--t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(i)}return n},_isLastValidCell:function(e){var t=e.columnIndex>=0?e.columnIndex+1:0,n=e.rowIndex,i={columnIndex:t,rowIndex:n},o=this.getController("data").getVisibleRows(),a=o&&o[n],r=this._isLastRow(n);return!!r&&(!!(a&&"group"===a.rowType&&e.columnIndex>0)||(e.columnIndex===this._getVisibleColumnCount()-1||!this._isCellByPositionValid(i)&&this._isLastValidCell(i)))},_getVisibleColumnCount:function(){return this.getController("columns").getVisibleColumns().length},_isCellInRow:function(e,t){var n=e.columnIndex,i=this._getVisibleColumnCount();return t?n>=0&&n<=i-1:n>0&&n td")):i.children().not("."+U).first()},init:function(){var e=this;e.option("useKeyboard")&&(e._dataController=e.getController("data"),e._selectionController=e.getController("selection"),e._editingController=e.getController("editing"),e._headerPanel=e.getView("headerPanel"),e._columnsController=e.getController("columns"),e.getController("editorFactory").focused.add(function(t){e.setupFocusedView(),e._isNeedScroll&&t.is(":visible")&&e._focusedView&&e._focusedView.getScrollable&&(e._scrollToElement(t),e._isNeedScroll=!1)}),e._fastEditingStarted=!1,e._focusedCellPosition={},e._canceledCellPosition=null,e._initFocusedViews(),e._documentClickHandler=e.createAction(function(t){var n=(0,h.default)(t.event.target),i=e._isEventInCurrentGrid(t.event)&&n.closest("."+e.addWidgetPrefix(R)).length,o=n.closest("."+K).length;i||o||e._resetFocusedCell()}),e.createAction("onKeyDown"),_.default.on(p.default.getDocument(),T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),e._documentClickHandler))},_scrollToElement:function(e,t){var n=this._focusedView.getScrollable();n&&n.update(),n&&n.scrollToElement(e,t)},focus:function(e){var t,n=this.option("focusedRowEnabled"),i=l((0,h.default)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",n||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,h.default)(e),i)},_focusElement:function(e,t){var n=this._getFocusedViewByElement(e),i=this.isRowFocusType(),a={};!n||l(e)&&!this._isCellValid(e)||(this._focusView(n.view,n.viewIndex),this._isNeedFocus=!0,this._isNeedScroll=!0,(l(e)||o(e))&&(this.setCellFocusType(),a=this._fireFocusChangingEvents(null,e,!1,t),e=a.$newCellElement,i&&!a.isHighlighted&&this.setRowFocusType()),this._focus(e,!a.isHighlighted),this._focusInteractiveElement(e))},getFocusedView:function(){return this._focusedView},_getFocusedViewByElement:function(e){var t=function(t){return e&&e.closest(t._$element).length};return this._getFocusedViewByCondition(t)},_getFocusedViewByCondition:function(e){var t;return(0,C.each)(this._focusedViews,function(n,i){if(e(i))return t={viewIndex:n,view:i},!1}),t},isRowFocusType:function(){return this.focusType===le},isCellFocusType:function(){return this.focusType===ue},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType=le)},setCellFocusType:function(){this.focusType=ue},focusViewByName:function(e){var t=this._getFocusedViewByName(e);this._focusView(t.view,t.viewIndex)},setupFocusedView:function(){this.option("useKeyboard")&&!(0,b.isDefined)(this._focusedView)&&this.focusViewByName("rowsView")},_getFocusedViewByName:function(e){var t=function(t){return t.name===e};return this._getFocusedViewByCondition(t)},optionChanged:function(e){var t=this;switch(e.name){case"useKeyboard":case"keyboardNavigation":case"useLegacyKeyboardNavigation":e.handled=!0;break;default:t.callBase(e)}},dispose:function(){this.callBase(),this._focusedView=null,this._focusedViews=null,this._keyDownProcessor&&this._keyDownProcessor.dispose(),_.default.off(p.default.getDocument(),T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_fireFocusedCellChanging:function(e,t,n){var i=this,o=i.option("focusedColumnIndex"),a=i.option("focusedRowIndex"),r=i._getCellPosition(t),s=r?r.columnIndex:-1,l=r?r.rowIndex:-1,u={cellElement:t,prevColumnIndex:o,prevRowIndex:a,newColumnIndex:s,newRowIndex:l,rows:i.getController("data").getVisibleRows(),columns:i.getController("columns").getVisibleColumns(),event:e,isHighlighted:n||!1,cancel:!1};return this._canceledCellPosition=null,i.executeAction("onFocusedCellChanging",u),u.newColumnIndex===s&&u.newRowIndex===l||(u.$newCellElement=(0,h.default)(this._getCell({columnIndex:u.newColumnIndex,rowIndex:u.newRowIndex}))),u.cancel&&(this._canceledCellPosition={rowIndex:l,columnIndex:s}),u},_fireFocusedCellChanged:function(e,t,n){var i=this,o=i.getController("data"),a=i.getView("rowsView").getCellIndex(e),r=this._getRowIndex(e&&e.parent()),s=Math.min(r-o.getRowIndexOffset(),o.items().length-1),l=i.getController("editing").isEditCell(s,a),u=o.items()[s];l||t===a&&n===r||(o=i.getController("data"),i.executeAction("onFocusedCellChanged",{cellElement:e,columnIndex:a,rowIndex:r,row:u,column:i.getController("columns").getVisibleColumns()[a]}))},_fireFocusedRowChanging:function(e,t){var n=this._getRowIndex(t),i=this.getController("data"),o=this.option("focusedRowIndex"),a=i.loadingOperationTypes(),r={rowElement:t,prevRowIndex:o,newRowIndex:n,event:e,rows:this.getController("data").getVisibleRows(),cancel:!1};return!i||i.isLoading()&&(a.reload||a.paging)?(r.cancel=!0,r):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",r),r.cancel||r.newRowIndex===n||(r.resetFocusedRow=r.newRowIndex<0,r.resetFocusedRow||this.setFocusedRowIndex(r.newRowIndex),r.rowIndexChanged=!0)),r)},_fireFocusedRowChanged:function(e){var t,n=this.option("focusedRowIndex");if(this.option("focusedRowEnabled")){if(n>=0){var i=this.getController("data");t=n>=0&&i.getVisibleRows()[n-i.getRowIndexOffset()]}this.executeAction("onFocusedRowChanged",{rowElement:e,rowIndex:n,row:t})}},_processCanceledEditCellPosition:function(e,t){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,n}}});e.exports={defaultOptions:function(){return{useKeyboard:!0,useLegacyKeyboardNavigation:!1,keyboardNavigation:{enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:ce},extenders:{views:{rowsView:{_rowClick:function(e){var t=this.getController("editing").getEditRowIndex();t===e.rowIndex&&this.getController("keyboardNavigation").setCellFocusType(),this.callBase.apply(this,arguments)},renderFocusState:function(){var e=this._dataController,t=this.option("focusedRowIndex")||0,n=this.element();n&&!(0,w.focused)(n)&&n.attr("tabIndex",null),(t<0||t>=e.getVisibleRows().length)&&(t=0);var i=this.getCellElements(t);this.option("useKeyboard")&&i&&this.updateFocusElementTabIndex(i)},updateFocusElementTabIndex:function(e){var t=this,n=e.eq(0).parent(),i=t.option("focusedColumnIndex"),a=t.option("tabIndex");(!i||i<0)&&(i=0),o(n)?n.attr("tabIndex",a):t._updateFocusedCellTabIndex(e,i)},_updateFocusedCellTabIndex:function(e,t){var n,i=this,o=i.option("tabIndex"),a=i.getController("keyboardNavigation"),r=a._focusedView,s=e?e.length:-1;if(a._focusedView=i,s>0){s<=t&&(t=s-1);for(var u=t;u=0){var a=e(o.rowIndex);a&&(o.rowIndex+=a,i.focus(i.focus()))}}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(128),u=i(l),c=n(14),d=i(c),h=n(35),f=i(h),p=n(1),g=n(0),_=n(3),m=n(26),v=i(m),y=n(27),b=i(y),x="content",w="content-fixed",C="dx-master-detail-cell",k="dx-first-cell",S="dx-last-cell",I="dx-state-hover",T="dx-col-fixed",D="dx-fixed-columns",E="dx-pointer-events-target",A="dx-pointer-events-none",O="transparent",B="dx-group-row",P=function(e){var t=-1;return(0,_.each)(e,function(e,n){if(n.command===O)return t=e,!1}),t},R=function(e,t,n){var i=0;if(e&&t&&n)for(var o=0;o=n+i?e-i+1:-1}).filter(function(e){return e>=0})}))},_renderTable:function(e){var t,n=this,i=n.getFixedColumns();n._isFixedColumns=!!i.length;var o=n.callBase(e);if(n._isFixedColumns){n._isFixedTableRendering=!0;var a=e&&e.change,r=a&&a.columnIndices;n._correctColumnIndicesForFixedColumns(i,a),t=n._createTable(i),n._renderRows(t,(0,g.extend)({},e,{columns:i})),n._updateContent(t,a),r&&(a.columnIndices=r),n._isFixedTableRendering=!1}else n._fixedTableElement&&n._fixedTableElement.parent().remove(),n._fixedTableElement=null;return o},_renderRow:function(e,t){var n,i=t.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&i&&i.length){n=0;var o=t.row.cells||[];i=i.slice(),t.row.cells=i;for(var a=0;a0){var u=P(i._columnsController.getFixedColumns());n=s.length-lc?n.eq(e).css("height",u):u=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(i).toggleClass(I,o),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(i).toggleClass(I,o))}))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,n=this,i=n.addWidgetPrefix(x),o=n.element(),r=v.default.mozilla?60:0;if(o&&n._isFixedTableRendering){e=o.children("."+i);var l=n.getScrollable();return!e.length&&l&&(e=(0,a.default)("
").addClass(i),s.default.on(e,"scroll",function(e){clearTimeout(n._fixedScrollTimeout),n._fixedScrollTimeout=setTimeout(function(){t=(0,a.default)(e.target).scrollTop(),l.scrollTo({y:t})},r)}),s.default.on(e,u.default.name,function(e){if(l&&(t=l.scrollTop(),l.scrollTo({y:t-e.delta}),l.scrollTop()>0&&l.scrollTop()+l.clientHeight()0&&e.css("visibility","hidden"),i=o}this.callBase(e,t,n,i)},_getSummaryCellIndex:function(e,t){if(this._isFixedTableRendering){var n=P(t);return e>n&&(e+=t[n].colspan-1),e}return this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e);var t=this._isFixedColumns;this.element().toggleClass(D,t),this.option("hoverStateEnabled")&&t&&this._attachHoverEvents()},setRowsOpacity:function(e,t){this.callBase(e,t);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),e,t)},optionChanged:function(e){var t=this;t.callBase(e),"hoverStateEnabled"===e.name&&t._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t=this._fixedTableElement,n=0;if(t&&e.is("td")&&e.closest(t).length){var i=this.getFixedColumns();return(0,_.each)(i,function(t,i){return t!==e[0].cellIndex&&(i.colspan?void(n+=i.colspan):void n++)}),n}return this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e,t){if(this._fixedTableElement&&this._tableElement){var n,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(e),t&&(n=i.focus(),n&&i.focus(n))}},setScrollerSpacing:function(e,t){var n=this,i={marginBottom:0},o=n.element().children("."+this.addWidgetPrefix(w));if(o.length&&n._fixedTableElement){o.css(i),n._fixedTableElement.css(i),i[n.option("rtlEnabled")?"marginLeft":"marginRight"]=e,i.marginBottom=t;var a=n._scrollable&&n._scrollable.option("useNative");(a?o:n._fixedTableElement).css(i)}},_getElasticScrollTop:function(e){var t=0,n=this.getScrollbarWidth(!0);if(e.scrollOffset.top<0)t=-e.scrollOffset.top;else if(e.reachedBottom){var i=this._findContentElement(),o=e.component._container(),a=Math.max(i.height()+n-o.height(),0);t=a-e.scrollOffset.top}return t},_applyElasticScrolling:function(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?b.default.move(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}},_handleScroll:function(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),this.callBase(e)},_updateContentPosition:function(e){this.callBase.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),L=M;e.exports={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:d.default.format("dxDataGrid-columnFixingFix"),unfix:d.default.format("dxDataGrid-columnFixingUnfix"),leftPosition:d.default.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:d.default.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:V,rowsView:F,footerView:L},controllers:function(){var e=function(e,t,n){var i=P(t),o=e.length-t.length;return(0,_.each)(n,function(e,t){t.index>i&&(t.columnIndex+=o,t.index+=o)}),n};return{draggingHeader:{_generatePointsByColumns:function(t){var n=t.columns,i=t.targetDraggingPanel;if(i&&"headers"===i.getName()&&i.isFixedColumns()&&t.sourceColumn.fixed){t.rowIndex||(t.columnElements=i.getFixedColumnElements(0)),t.columns=i.getFixedColumns(t.rowIndex);var o=this.callBase(t);return e(n,t.columns,o),o}return this.callBase(t)},_pointCreated:function(e,t,n,i){var o=this.callBase.apply(this,arguments),a=this._columnHeadersView.getTransparentColumnElement();if(!o&&"headers"===n&&a&&a.length){var r=a.get(0).getBoundingClientRect();return i&&i.fixed?"right"===i.fixedPosition?e.xr.left:e.xr.right}return o}},columnsResizer:{_generatePointsByColumns:function(){var t=this,n=t._columnsController,i=n&&t._columnsController.getVisibleColumns(),o=n&&t._columnsController.getFixedColumns(),a=t._columnHeadersView.getFixedColumnElements(),r=[];t.callBase(),a&&a.length>0&&(r=f.default.getPointsByColumns(a,function(e){return t._pointCreated(e,a.length,o)}),t._pointsByFixedColumns=e(i,o,r))},_pointCreated:function(e,t,n){var i="widget"===this.option("columnResizingMode");if(e.index>0&&e.index=o.right)return this.callBase(this._pointsByFixedColumns,t,n)}return this.callBase(e,t,n)}},keyboardNavigation:{_scrollToElement:function(e){var t=this.getFocusedView();this.callBase(e,t&&t.getFixedColumnsOffset())}}}}()}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return e._columnsController.getColumnId(t)}function a(e){return e.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}function r(e,t){var n,i=(0,l.default)(e),o=t.component.getController("adaptiveColumns");"data"===t.rowType?(n=(0,l.default)("").addClass(o.addWidgetPrefix(W)),c.default.on(n,h.default.addNamespace(p.default.name,F),o.createAction(function(){o.toggleExpandAdaptiveDetailRow(t.key)})),n.appendTo(i)):I.default.setEmptyText(i)}var s=n(2),l=i(s),u=n(5),c=i(u),d=n(8),h=i(d),f=n(19),p=i(f),g=n(1),_=i(g),m=n(26),v=i(m),y=n(40),b=i(y),x=n(39),w=i(x),C=n(142),k=i(C),S=n(35),I=i(S),T=n(31),D=i(T),E=n(7),A=n(4),O=n(3),B=n(0),P="columnHeadersView",R="rowsView",M="footerView",V=[P,R,M],F="dxDataGridAdaptivity",L="adaptiveHidden",H="detailAdaptive",z="dx-field-item-content",N="dx-item-modified",$="hidden-column",W="adaptive-more",G="dx-command-adaptive",j="dx-command-adaptive-hidden",q="dx-adaptive-detail-row",K="dx-adaptive-item-text",U="dx-master-detail-cell",Y="dx-last-data-cell",X="adaptive",Z="batch",Q="row",J="form",ee="popup",te="revert-tooltip",ne=w.default.ViewController.inherit({_isRowEditMode:function(){var e=this._getEditMode();return e===Q},_isItemModified:function(e,t){var n=this._columnsController.getVisibleIndex(e.column.index),i=this._dataController.getRowIndexByKey(t.key),o=this._dataController.items()[i+1];return o&&o.modifiedValues&&_.default.isDefined(o.modifiedValues[n])},_renderFormViewTemplate:function(e,t,n){var i=this,o=e.column,a=i.createAction(function(){c.default.trigger(n,p.default.name)}),r=o.calculateCellValue(t.data),s=I.default.getDisplayValue(o,r,t.data,t.rowType),l=I.default.formatValue(s,o),u=this._editingController.isCellOrBatchEditMode();if(o.allowEditing&&i.option("useKeyboard")&&(n.attr("tabIndex",i.option("tabIndex")),u&&(c.default.off(n,"focus",a),c.default.on(n,"focus",a))),o.cellTemplate){var d=(0,B.extend)({},t,{value:r,displayValue:s,text:l,column:o});i._rowsView.renderTemplate(n,o.cellTemplate,d,!!n.closest((0,E.getWindow)().document).length)}else{var h=n.get(0);o.encodeHtml?h.textContent=l:h.innerHTML=l,n.addClass(K),_.default.isDefined(l)&&""!==l||n.html(" "),i._isRowEditMode()||i._isItemModified(e,t)&&n.addClass(N)}i.getView("rowsView")._cellPrepared(n,t)},_getTemplate:function(e,t){var n=this,i=e.column,o=this.getController("editing");return function(a,r){var s=(0,l.default)(r),u=n._columnsController.getVisibleIndex(i.visibleIndex),c=(0,B.extend)({},t),d=function(){var r=n._isItemEdited(e);c.value=t.row.values[u],r||i.showEditorAlways?o.renderFormEditTemplate(c,e,a.component,s,!r):(c.column=i,c.columnIndex=u,n._renderFormViewTemplate(e,c,s))};d(),c.watch&&c.watch(function(){return{isItemEdited:n._isItemEdited(e),value:t.row.values[u]}},function(){s.contents().remove(),s.removeClass(K),d()})}},_isVisibleColumnsValid:function(e){var t=function(){for(var t=0,n=0;n0},_getAverageColumnsWidth:function(e,t,n){var i=this,o=0,a=0;return t.forEach(function(r){if(!i._isColumnHidden(r)){var s=r.width;_.default.isDefined(s)&&!isNaN(parseFloat(s))?o+=i._isPercentWidth(s)?i._calculatePercentWidth({visibleIndex:r.visibleIndex,columnsCount:t.length,columnsCanFit:n,bestFitWidth:r.bestFitWidth,columnWidth:s,containerWidth:e}):parseFloat(s):a++}}),(e-o)/a},_calculateColumnWidth:function(e,t,n,i){var a,r=o(this,e),s=this._columnsController.columnOption(r,"width"),l=this._columnsController.columnOption(r,"bestFitWidth"),u=n.length;if(s&&"auto"!==s){if(!this._isPercentWidth(s))return s;a=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:u,columnsCanFit:i,bestFitWidth:l,columnWidth:s,containerWidth:t})}else{var c=this.option("columnAutoWidth");a=c||e.command?l:this._getAverageColumnsWidth(t,n,i)}return a},_calculatePercentWidth:function(e){var t=e.visibleIndex=0&&(i=l.eq(u).children().eq(c),this._isCellValid(i)&&i.addClass(t))}},_getEditMode:function(){return this._editingController.getEditMode()},isFormEditMode:function(){var e=this._getEditMode();return e===J||e===ee},hideRedundantColumns:function(e,t,n){var i=this;if(this._hiddenColumns=[],i._isVisibleColumnsValid(t)&&n.length){var a,r,s,l=0,u=i.component.$element(),c=u.width()-i._getCommandColumnsWidth(),d=function(){var e=this;return t.filter(function(t){return!t.command&&0===e._hiddenColumns.filter(function(e){return e.dataField===t.dataField}).length})}.bind(this),h=d(),f=h.length;do{s=!1,l=0;var p=i._calculatePercentWidths(e,t),g=p<100&&0!==p;for(a=0;au.width()){var w=n.pop(),C=i._columnsController.getVisibleIndex(w.index);c+=i._calculateColumnWidth(w,c,h,g),i._addCssClassToColumn(i.addWidgetPrefix($),C),e[C]=L,this._hiddenColumns.push(w),h=d()}}while(s&&h.length>1&&n.length);f===h.length&&i._hideAdaptiveColumn(e,t)}else i._hideAdaptiveColumn(e,t)},getItemContentByColumnIndex:function(e){for(var t,n=0;n").appendTo(i),k.default,(0,B.extend)(a,o,{customizeItem:function(e){var i=e.column||n._columnsController.columnOption(e.name||e.dataField);i&&(e.label=e.label||{},e.label.text=e.label.text||i.caption,e.column=i,e.template=n._getTemplate(e,t,n.updateForm.bind(n))),o.customizeItem&&o.customizeItem.call(this,e)},onContentReady:function(e){o.onContentReady&&o.onContentReady.call(this,e),n._$itemContents=i.find("."+z)}}))},hasAdaptiveDetailRowExpanded:function(){return _.default.isDefined(this._dataController.adaptiveExpandedKey())},updateForm:function(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&_.default.isDefined(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())},updateHidingQueue:function(e){var t,n,i=this,o=e.filter(function(e){return e.visible&&!e.type&&!e.fixed&&!(_.default.isDefined(e.groupIndex)&&e.groupIndex>=0)});if(i._hidingColumnsQueue=[],i.option("allowColumnResizing")&&"widget"===i.option("columnResizingMode"))return i._hidingColumnsQueue;for(n=0;n=0&&(t=!0,i._hidingColumnsQueue[o[n].hidingPriority]=o[n]);if(t)i._hidingColumnsQueue.reverse();else if(i.option("columnHidingEnabled"))for(n=0;n0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var e=this;e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._columnsController.addCommandColumn({type:X,command:X,visible:!0,adaptiveHidden:!0,cssClass:G,alignment:"center",width:"auto",cellTemplate:r,fixedPosition:"right"}),e._columnsController.columnsChanged.add(function(){var t=!!e.updateHidingQueue(e._columnsController.getColumns()).length;e._columnsController.columnOption("command:adaptive","adaptiveHidden",!t,!0)}),e._editingController=e.getController("editing"),e._hidingColumnsQueue=[],e._hiddenColumns=[],e.createAction("onAdaptiveDetailRowPreparing"),e.callBase()},optionChanged:function(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),this.callBase(e)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(e){return this._dataController.adaptiveExpandedKey()&&(0,A.equalByValue)(this._dataController.adaptiveExpandedKey(),e)},expandAdaptiveDetailRow:function(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}});e.exports={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:ne},extenders:{views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column;return e.rowType===H&&"detail"===n.command?function(e,n){t._adaptiveColumnsController.createFormByHiddenColumns((0,l.default)(e),n)}:t.callBase(e)},_createRow:function(e){var t=this.callBase(e);return e&&e.rowType===H&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass(q),t},_renderCells:function(e,t){this.callBase(e,t);var n=this._adaptiveColumnsController.getHidingColumnsQueue().length,i=this._adaptiveColumnsController.getHiddenColumns().length;n&&!i&&a(e).last().addClass(Y)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+z);if(t.length&&t.closest(this.component.$element()).length){var n=t.length?t.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return this.callBase(e)},_cellPrepared:function(e,t){this.callBase.apply(this,arguments),t.row.rowType!==H&&t.column.visibleWidth===L&&e.addClass(this.addWidgetPrefix($))},_getCellElement:function(e,t){var n=this._dataController.items()[e];return n&&n.rowType===H?this._adaptiveColumnsController.getItemContentByColumnIndex(t):this.callBase(e,t)},getContextMenuItems:function(e){if(e.row&&"detailAdaptive"===e.row.rowType){var t=this.component.getView("columnHeadersView"),n=(0,l.default)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=n?n.column:e.column,t.getContextMenuItems&&t.getContextMenuItems(e)}return this.callBase&&this.callBase(e)},isClickableElement:function(e){var t=!!this.callBase&&this.callBase(e);return t||!!e.closest("."+G).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{"export":{_updateColumnWidth:function(e,t){this.callBase(e,e.visibleWidth===L?e.bestFitWidth:t)}},columnsResizer:{_pointCreated:function(e,t,n){var i=this.callBase(e,t,n),o=n[e.columnIndex]||{},a=this._getNextColumnIndex(e.columnIndex),r=n[a]||{},s=a!==e.columnIndex+1&&r.command,l=o.visibleWidth===L||s;return i||l},_getNextColumnIndex:function(e){for(var t=this._columnsController.getVisibleColumns(),n=this.callBase(e);t[n]&&t[n].visibleWidth===L;)n++;return n}},draggingHeader:{_pointCreated:function(e,t,n,i){var o=this.callBase(e,t,n,i),a=t[e.columnIndex-1]||{},r=a.visibleWidth===L;return o||r}},editing:{_isRowEditMode:function(){return this.getEditMode()===Q},_getFormEditItemTemplate:function(e,t){return this.getEditMode()!==Q&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):this.callBase(e,t)},_closeEditItem:function(e){var t=e.closest("."+z),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=t.length?t.first().data("dx-form-item"):null,o=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(n,o)||this.callBase(e)},_beforeUpdateItems:function(e,t){if(!this._adaptiveController.isFormEditMode()&&this._adaptiveController.hasHiddenColumns()){var n=this._dataController.items(),i=n[t],o=I.default.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),o>=0&&t>o&&this._editRowIndex--,o>=0&&e.push(o+1),e.push(t+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(e){this.callBase(e),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(e.key,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){this.callBase(),this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()&&this.getController("validating").validate(!0)&&this._cancelEditAdaptiveDetailRow()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(e){var t=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===H?e.rowIndex-1:e.rowIndex+1),t},_beforeCloseEditCellInBatchMode:function(e){var t=this._dataController._adaptiveExpandedKey;if(t){var n=I.default.getIndexByKey(t,this._dataController.items());n>-1&&e.unshift(n)}},editRow:function(e){this._adaptiveController.isFormEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},deleteRow:function(e){var t=this._dataController.getKeyByRowIndex(e);this.getEditMode()===Z&&this._adaptiveController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_updateScrollableForIE:function(){var e=this;v.default.msie&&parseInt(v.default.version)<=11&&(this._updateScrollableTimeoutID=setTimeout(function(){e.getView("rowsView")._updateScrollable()}))},_correctColumnWidths:function(e,t){var n=this._adaptiveColumnsController,i=this.option("columnAutoWidth"),o=n.getHiddenColumns(),a=n.updateHidingQueue(this._columnsController.getColumns());n.hideRedundantColumns(e,t,a);var r=n.getHiddenColumns();return n.hasAdaptiveDetailRowExpanded()&&o.length!==r.length&&n.updateForm(r),!r.length&&n.collapseAdaptiveDetailRow(),i&&a.length&&!r.length&&this._updateScrollableForIE(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(e){e&&this._adaptiveColumnsController._removeCssClassesFromColumns(),this.callBase(e)},_needStretch:function(){var e=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(e,t){var n=this,i=t.changeType;if(e=n.callBase.apply(n,arguments),"loadingAll"===i||!_.default.isDefined(n._adaptiveExpandedKey))return e;var o=I.default.getIndexByKey(n._adaptiveExpandedKey,e);if(o>=0){var a=e[o];e.splice(o+1,0,{visible:!0,rowType:H,key:a.key,data:a.data,modifiedValues:a.modifiedValues,isNewRow:a.isNewRow,values:a.values})}else"refresh"===i&&(n._adaptiveExpandedKey=void 0);return e},_getRowIndicesForExpand:function(e){var t=this.callBase.apply(this,arguments);if(this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(e)){var n=t[t.length-1];t.push(n+1)}return t},adaptiveExpandedKey:function(e){return _.default.isDefined(e)?void(this._adaptiveExpandedKey=e):this._adaptiveExpandedKey},toggleExpandAdaptiveDetailRow:function(e,t){var n=this,i=I.default.getIndexByKey(n._adaptiveExpandedKey,n._items),o=I.default.getIndexByKey(e,n._items);i>=0&&i===o&&!t&&(e=void 0,o=-1),n._adaptiveExpandedKey=e,i>=0&&i++,o>=0&&o++;var a=n.getRowIndexDelta();n.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[i-a,o-a]})},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix(te)}},columns:{_isColumnVisible:function(e){return this.callBase(e)&&!e.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(e){return this.callBase.apply(this,arguments)&&!e.hasClass(this.addWidgetPrefix($))},_processNextCellInMasterDetail:function(e){this.callBase(e);var t=this._editingController.isCellOrBatchEditMode();if(!this._isInsideEditForm(e)&&e&&t){var n=function t(){c.default.off(e,"focus",t),c.default.trigger(e,"dxclick")};c.default.on(e,"focus",n)}},_handleTabKeyOnMasterDetailCell:function(e,t){var n=this.callBase(e,t),i=this._getFocusedCell(),o=i&&i.parent();if(!n&&o&&o.length){var r=a(o),s="next"===t?r.last():r.first(),l=o.get(0).rowIndex,u=this._adaptiveController,c=this._dataController.getKeyByRowIndex("next"===t?l:l-1),d=i&&s&&i.get(0)===s.get(0);return u.isAdaptiveDetailRowExpanded(c)&&d}return n},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}}},function(e,t,n){var i=n(7),o=n(378),a=50,r={_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(e){var t=this,n=this.getScrollable(),i=e.scrollOffset.left;t.callBase.apply(t,arguments),t.option("rtlEnabled")&&n&&(i=n.$content().width()-n.$element().width()-i),t._columnsController.setScrollPosition(i)}},s={_renderCore:function(){var e=this,t=e._scrollLeft;e.callBase.apply(e,arguments),e._columnsController.isVirtualMode()&&t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))}},l=function(){var e=function(e){return e.map(function(e){return e.visibleWidth||parseFloat(e.width)||a})},t={init:function(){var e=this;e.callBase(),e._beginPageIndex=0,e._endPageIndex=0,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(t){for(var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0,a=0;a=t)return Math.floor(a/this.getColumnPageSize());o+=i[a]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||this.component.$element().outerWidth()},getEndPageIndex:function(t){var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0;t+=this.getTotalWidth();for(var a=0;a=t)return Math.ceil(a/this.getColumnPageSize());o+=i[a]}return Math.ceil(i.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,length:1}}),this._renderTime=new Date-e},setScrollPosition:function(e){var t=this,n=t.option("scrolling.columnRenderingThreshold");t._renderTime>n?(clearTimeout(t._changedTimeout),t._changedTimeout=setTimeout(function(){t._setScrollPositionCore(e)},t.option("scrolling.timeout"))):t._setScrollPositionCore(e)},isVirtualMode:function(){return(0,i.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){var t=this;if(t.isVirtualMode()){var n=t.getBeginPageIndex(e),i=t.getEndPageIndex(e),o=en:t._endPageIndex1&&"number"==typeof t){ -for(var w=[],C=0;C=a)break}r[n]=c}}function o(e,t,n){var o=[];i(e,function(e,i,r){var s,l=e,u=l.colspan||1,c=i+u-1>=t&&in&&(s=n-i),s!==u&&(l=(0,a.extend)({},l,{colspan:s})),o[r].push(l);else if(i>n)return!1});for(var r=0;r1||a.rowspan>1){for(var s=n._cloneItem(a),l=1;l=o.length&&(t++,i=0),a&&(a.colspan=n._defaultSetter(a.colspan),a.rowspan=n._defaultSetter(a.rowspan)),a}}(e),r=a(),s=0;r;){for(var l=0;l=0)if(this._isLocalRowIndex(e))o();else{var a=Math.floor(e/n.pageSize());(0,h.when)(n.pageIndex(a),n.waitReady()).done(function(){o()})}},_isLocalRowIndex:function(e){var t=this.getController("data"),n=this.getController("keyboardNavigation")._isVirtualScrolling();if(n){var i=Math.floor(e/t.pageSize()),o=t.virtualItemsCount(),a=o?o.begin:-1,r=t.getVisibleRows().length+t.getRowIndexOffset(),s=Math.ceil(r/t.pageSize());return a<=e&&s>i}return!0},_setFocusedRowKeyByIndex:function(e){var t=this.getController("data");if(this._isValidFocusedRowIndex(e)){var n=Math.min(e-t.getRowIndexOffset(),t.items().length-1),i=t.getKeyByRowIndex(n);void 0===i||this.isRowFocused(i)||this.option("focusedRowKey",i)}},_focusRowByKey:function(e){void 0===e?this._resetFocusedRow():this._navigateToRow(e,!0)},_resetFocusedRow:function(){void 0===this.option("focusedRowKey")&&this.option("focusedRowIndex")<0||(this.option("focusedRowKey",void 0),this.getController("keyboardNavigation").setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:void 0}))},_isValidFocusedRowIndex:function(e){var t=this.getController("data"),n=t.getVisibleRows()[e];return!n||"data"===n.rowType||"group"===n.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(e){this._navigateToRow(e)},_navigateToRow:function(e,t){var n=this,i=this.getController("data"),o=this.option("focusedRowIndex"),a=new h.Deferred;if(n.option("skipFocusedRowNavigation",!t),void 0===e||!i.dataSource())return a.reject().promise();var r=n._getFocusedRowIndexByKey(e),s=i.getDataSource().paginate();return!s||o>=0&&o===r?n._navigateTo(e,a,t):i.getPageIndexByKey(e).done(function(o){return o<0?void a.resolve(-1):void(o===i.pageIndex()?i.reload().done(function(){n.isRowFocused(e)?a.resolve(n._getFocusedRowIndexByKey(e)):n._navigateToVisibleRow(e,a,t)}).fail(a.reject):i.pageIndex(o).done(function(){n._navigateTo(e,a,t)}).fail(a.reject))}).always(function(){return n.option("skipFocusedRowNavigation",!1)}).fail(a.reject),a.promise()},_navigateTo:function(e,t,n){var i=this.getController("data").getRowIndexByKey(e),o="virtual"===this.option("scrolling.rowRenderingMode");o&&i<0?this._navigateToVirtualRow(e,t,n):this._navigateToVisibleRow(e,t,n)},_navigateToVisibleRow:function(e,t,n){if(n)this._triggerUpdateFocusedRow(e,t);else{var i=this.getView("rowsView"),o=this.getController("data").getRowIndexByKey(e),a=i.getRow(o);i._scrollToElement(a)}},_navigateToVirtualRow:function(e,t,n){var i=this,o=this.getController("data"),a=o._rowsScrollController,r=(0,u.getIndexByKey)(e,o.items(!0)),s=i.getView("rowsView").getScrollable();if(a&&s&&r>=0){var l=r+o.getRowIndexOffset()-o.getRowIndexDelta(),c=a.getItemOffset(l);if(n){var d=function n(){i.component.off("contentReady",n),i._triggerUpdateFocusedRow(e,t)};i.component.on("contentReady",d)}s.scrollTo({y:c})}},_triggerUpdateFocusedRow:function(e,t){var n=this.getController("data"),i=this._getFocusedRowIndexByKey(e);if(this._isValidFocusedRowIndex(i)){if(this.getController("keyboardNavigation").setFocusedRowIndex(i),this.option("focusedRowEnabled"))n.updateItems({changeType:"updateFocusedRow",focusedRowKey:e});else{var o=n.getRowIndexByKey(e),a=this.getView("rowsView");a._scrollToElement(a.getRow(o))}t&&t.resolve(i)}else t&&t.resolve(-1)},_getFocusedRowIndexByKey:function(e){var t=this.getController("data"),n=t.getRowIndexByKey(e);return n>=0?n+t.getRowIndexOffset():-1},_focusRowByKeyOrIndex:function(){var e=this,t=this.option("focusedRowKey"),n=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),o=this.getController("data");if(void 0!==t){var a=o.getRowIndexByKey(t);a>=0?(i._isVirtualScrolling()&&(n=a+o.getRowIndexOffset()),i.setFocusedRowIndex(n),this._triggerUpdateFocusedRow(t)):this._navigateToRow(t,!0).done(function(t){n>=0&&t<0&&e._focusRowByIndex()})}else n>=0&&this.getController("focus")._focusRowByIndex(n)},isRowFocused:function(e){var t=this.option("focusedRowKey");if(void 0!==t)return(0,c.equalByValue)(e,this.option("focusedRowKey"))},updateFocusedRow:function(e){var t,n,i=this,o=i._dataController.getRowIndexByKey(e.focusedRowKey),r=i.getView("rowsView");(0,l.each)(r.getTableElements(),function(r,s){n=(0,a.default)(s),i._clearPreviousFocusedRow(n,o);var l=0===r;t=i._prepareFocusedRow(e.items[o],n,o),l&&i.getController("keyboardNavigation")._fireFocusedRowChanged(t)})},_clearPreviousFocusedRow:function(e,t){var n=this,i=function(t,i){var o=(0,a.default)(i).closest(".".concat(n.addWidgetPrefix(g)));return e.is(o)},o=e.find(p).filter(i);if(o.removeClass(f).removeClass(_).removeAttr("tabindex"),o.children("td").removeAttr("tabindex"),0!==t){var r=(0,a.default)(this.getView("rowsView").getRowElement(0));r.removeClass(_).removeAttr("tabIndex")}},_prepareFocusedRow:function(e,t,n){var i,o=this.option("tabindex")||0,r=this.getView("rowsView");return!e||"data"!==e.rowType&&"group"!==e.rowType||(i=(0,a.default)(r._getRowElements(t).eq(n)),i.addClass(f).attr("tabindex",o),r._scrollToElement(i)),i}}}()),e.exports={defaultOptions:function(){return{focusedRowEnabled:!1,focusedRowKey:void 0,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:t.FocusController},extenders:{controllers:{keyboardNavigation:{init:function(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,d.isDefined)(e)&&(this._focusedCellPosition.rowIndex=this.option("focusedRowIndex")),(0,d.isDefined)(t)&&(this._focusedCellPosition.columnIndex=this.option("focusedColumnIndex"))},setFocusedRowIndex:function(e){this.callBase(e);var t=this.getController("data").getVisibleRows()[e];t&&t.isNewRow||this.option("focusedRowIndex",e)},setFocusedColumnIndex:function(e){this.callBase(e),this.option("focusedColumnIndex",e)},_escapeKeyHandler:function(e,t){return t||!this.option("focusedRowEnabled")?void this.callBase(e,t):void(this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0)))},_updateFocusedCellPosition:function(e,t){var n=this.option("focusedRowIndex"),i=this.option("focusedColumnIndex");this.callBase(e,t)&&this._fireFocusedCellChanged(e,i,n)}},editorFactory:{renderFocusOverlay:function(e,t){var n,i=this.getController("keyboardNavigation"),o=this.option("focusedRowEnabled"),a=this.getController("editing"),r="row"===i._getElementType(e);o&&i.isRowFocusType()&&!a.isEditing()?o&&r&&!e.hasClass(f)&&(n=i.getFirstValidCellInRow(e),i.focus(n)):this.callBase(e,t)}},columns:{getSortDataSourceParameters:function(){var e=this,t=this.callBase.apply(this,arguments),n=this.getController("data"),i=n._dataSource,o=n.store(),a=o&&o.key(),r=i&&i.remoteOperations()||{},s=Object.keys(r).every(function(e){return!r[e]});if(this.option("focusedRowEnabled")&&a){a=Array.isArray(a)?a:[a];var l=a.filter(function(t){return!e.columnOption(t,"sortOrder")});l.length&&(t=t||[],s?t.push({selector:i.getDataIndexGetter(),desc:!1}):l.forEach(function(e){return t.push({selector:e,desc:!1})}))}return t}},data:{_applyChange:function(e){if(!e||"updateFocusedRow"!==e.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(e){var t,n=this.option("skipFocusedRowNavigation");if(this.option("focusedRowEnabled")&&!n&&this._dataSource){var i="update"===e.changeType&&e.repaintChangesOnly;t=i&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0,t&&this.callBase(e),("refresh"===e.changeType||t)&&this.processUpdateFocusedRow()}t||this.callBase(e)},processUpdateFocusedRow:function(){var e=this._prevPageIndex,t=this.pageIndex(),n=this._prevRenderingPageIndex||0,i=this._rowsScrollController?this._rowsScrollController.pageIndex():0,o=this._dataSource.operationTypes()||{},a=this.getController("focus"),r=o.reload,s=this.getController("keyboardNavigation")._isVirtualScrolling(),l=this.option("focusedRowKey"),u=void 0!==e&&e!==t,c=i!==n;this._prevPageIndex=t,this._prevRenderingPageIndex=i,r&&void 0!==l?a._navigateToRow(l,!0).done(function(e){e<0&&a._focusRowByIndex()}):u?!s&&this.option("focusedRowIndex")>=0&&a._focusRowByIndex():c||a._focusRowByKeyOrIndex()},getPageIndexByKey:function(e){var t=this,n=new h.Deferred;return t.getGlobalRowIndexByKey(e).done(function(e){n.resolve(e>=0?Math.floor(e/t.pageSize()):-1)}).fail(n.reject),n.promise()},getGlobalRowIndexByKey:function(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)},_calculateGlobalRowIndexByFlatData:function(e,t,n){var i=this,o=new h.Deferred,a=i._dataSource,r=i._generateFilterByKey(e);return a.load({filter:i._concatWithCombinedFilter(r),skip:0,take:1}).done(function(s){s.length>0?(r=i._generateOperationFilterByKey(e,s[0],n),a.load({filter:i._concatWithCombinedFilter(r,t),skip:0,take:1,requireTotalCount:!0}).done(function(e,t){o.resolve(t.totalCount)})):o.resolve(-1)}),o.promise()},_concatWithCombinedFilter:function(e,t){var n=this.getCombinedFilter();return(0,u.combineFilters)([e,n,t])},_generateBooleanFilter:function(e,t,n){var i;return t===!1?i=[e,"=",!!n.desc||null]:(t===!0?!n.desc:n.desc)&&(i=[e,"<>",t]),i},_generateOperationFilterByKey:function(e,t,n){var i=this,o=i._dataSource,a=i._generateFilterByKey(e,"<"),r=i._columnsController.getSortDataSourceParameters(!o.remoteOperations().filtering);if(n){var s=i._columnsController.getGroupDataSourceParameters(!o.remoteOperations().filtering);s&&(r=r?s.concat(r):s)}return r&&r.slice().reverse().forEach(function(e){var n,o=e.selector;n="function"==typeof o?o:i._columnsController.columnOption(o,"selector");var r=n?n(t):t[o];if(a=[[o,"=",r],"and",a],null===r||(0,d.isBoolean)(r)){var s=i._generateBooleanFilter(o,r,e);s&&(a=[s,"or",a])}else a=[[o,e.desc?">":"<",r],"or",a]}),a},_generateFilterByKey:function(e,t){var n=this._dataSource.key(),i=[];if(t||(t="="),Array.isArray(n))for(var o=0;o0&&i.push("and"),i.push([n[o],t,a]))}else i=[n,t,e];return i}}},views:{rowsView:{_createRow:function(e){var t=this.callBase(e);return this.option("focusedRowEnabled")&&e&&this.getController("focus").isRowFocused(e.key)&&t.addClass(f),t},_checkRowKeys:function(e){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(e):this.callBase(e)},updateFocusElementTabIndex:function(e){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex():this.callBase(e)},_setFocusedRowElementTabIndex:function(){var e=this,t=e.option("focusedRowKey"),n=e.option("tabIndex")||0,i=e._dataController.getRowIndexByKey(t),o=e.option("focusedColumnIndex"),r=e._findRowElementForTabIndex();if(r&&(e._scrollToFocusOnResize=e._scrollToFocusOnResize||function(){r=e._findRowElementForTabIndex(),r&&(e._scrollToElement(r),e.resizeCompleted.remove(e._scrollToFocusOnResize))},(0,a.default)(r).attr("tabIndex",n),i>=0)){o<0&&(o=0),i+=e.getController("data").getRowIndexOffset(),e.getController("keyboardNavigation").setFocusedCellPosition(i,o);var s=e.component.getController("data")._dataSource,l=s&&s.operationTypes();l&&!l.paging&&(e.resizeCompleted.remove(e._scrollToFocusOnResize),e.resizeCompleted.add(e._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var e=this.option("focusedRowKey"),t=this._dataController.getRowIndexByKey(e);return(0,a.default)(this.getRowElement(t>=0?t:0))},_scrollToElement:function(e){var t=this.getScrollable();t&&t.scrollToElement(e)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(17),s=i(r),l=n(4),u=i(l),c=n(1),d=i(c),h=n(3),f=n(20),p=i(f),g=n(0),_=n(35),m=i(_),v=n(69),y=i(v),b=n(42),x=i(b),w=n(339),C=i(w),k=n(6),S=n(82),I="id",T=function(e){return"fullBranch"===e.option("filterMode")},D=C.default.inherit(function(){var e=function(e,t){var n=[];return t.forEach(function(t){var i=e.getNodeByKey(t);i&&i.children.forEach(function(e){n.push(e.key)})}),n};return{_createKeyGetter:function(){var e=this.getKeyExpr();return p.default.compileGetter(e)},_createKeySetter:function(){var e=this.getKeyExpr();return d.default.isFunction(e)?e:p.default.compileSetter(e)},_createParentIdGetter:function(){return p.default.compileGetter(this.option("parentIdExpr"))},createParentIdSetter:function(){var e=this.option("parentIdExpr");return d.default.isFunction(e)?e:p.default.compileSetter(e)},_createItemsGetter:function(){return p.default.compileGetter(this.option("itemsExpr"))},_createHasItemsGetter:function(){var e=this.option("hasItemsExpr");return e&&p.default.compileGetter(e)},_createHasItemsSetter:function(){var e=this.option("hasItemsExpr");return d.default.isFunction(e)?e:e&&p.default.compileSetter(e)},_updateIndexByKeyObject:function(e){var t=this;t._indexByKey={},(0,h.each)(e,function(e,n){t._indexByKey[n.key]=e})},_calculateHasItems:function(e,t){var n,i=this,o=t.storeLoadOptions.parentIds,a=T(i);return i._hasItemsGetter&&(o||!t.storeLoadOptions.filter||a)&&(n=i._hasItemsGetter(e.data)),void 0===n&&(n=!(i._isChildrenLoaded[e.key]||!t.remoteOperations.filtering||!o&&!a)||(t.loadOptions.filter&&!t.remoteOperations.filtering&&a?e.children.length:e.hasChildren)),!!n},_createVisibleItemsByNodes:function(e,t){for(var n=this,i=[],o=0;of&&(o=function(e){return c[s._keyGetter(e)]},a=h),p=(0,g.extend)({},p,{filter:a?null:o});var b=t.fullData?new y.default(t.fullData):s._dataSource.store();return b.load(p).done(function(r){r.length?(a&&(r=(0,x.default)(r).filter(o).toArray()),s._loadParentsOrChildren(i(r),t,n).done(d.resolve).fail(d.reject)):d.resolve(e)}).fail(d.reject),d},_loadParents:function(e,t){return this._loadParentsOrChildren(e,t)},_loadChildrenIfNeed:function(e,t){return T(this)?this._loadParentsOrChildren(e,t,!0):(0,k.when)(e)},_updateHasItemsMap:function(e){var t=e.storeLoadOptions.parentIds;if(t)for(var n=0;n=0?Math.min(e.index,o.children.length):o.children.length,n.push({type:e.type,data:r,index:s})}}return n},_applyRemove:function(e){var t=[],n=this.getNodeByKey(e.key),i=n&&n.parent;if(i){var o=i.children.indexOf(n);o>=0&&(i.children.splice(o,1),i.children.length||this._setHasItems(i,!1),t.push(e),t=t.concat(this.getChildNodeKeys(e.key).map(function(t){return{type:e.type,key:t}})))}return t},_handleDataLoaded:function(e){var t=e.data=this._convertDataToPlainStructure(e.data);!e.remoteOperations.filtering&&e.loadOptions.filter&&(e.fullData=(0,S.queryByOptions)((0,x.default)(e.data),{sort:e.loadOptions&&e.loadOptions.sort}).toArray()),this._updateHasItemsMap(e),this.callBase(e),t.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(e,t,n,i){var o=T(this);i=i||0;for(var r=0;re.data.length&&(n=e.fullData,t=t||e.data),this._rootNode=this._createNodesByItems(n,t),!this._rootNode)return void(e.data=(new k.Deferred).reject(s.default.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,e,o),this._isNodesInitializing=!0,(e.collapseVisibleNodes||o.length)&&this.option("expandedRowKeys",o),this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1,this._isReload=!1}n=this._createVisibleItemsByNodes(this._rootNode.children,e),e.data=n,this._totalItemsCount=n.length},_handleDataLoadedCore:function(e){var t,n=this,i=e.data,o=n.callBase,a=e.storeLoadOptions.filter||e.loadOptions.filter,r=n.option("filterMode"),s=e.storeLoadOptions.parentIds,l=a&&(!s||!s.length)&&"standard"!==r;if(!e.isCustomLoading){if(l){var u=e.data=new k.Deferred;return"matchOnly"===r&&(t=i),n._loadParents(i,e).done(function(i){n._loadChildrenIfNeed(i,e).done(function(i){e.data=i,n._processTreeStructure(e,t),o.call(n,e),u.resolve(e.data)})}).fail(u.reject)}n._processTreeStructure(e)}n.callBase(e)},_handlePush:function(e){var t=this._dataSource._reshapeOnPush,n=t&&!!e.length;n&&(this._isReload=!0),this.callBase.apply(this,arguments)},init:function(e,t){this.callBase.apply(this,arguments);var n=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this._createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===n&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var e=this.store(),t=e&&e.key(),n=this.option("keyExpr");if(d.default.isDefined(t)&&d.default.isDefined(n)&&!u.default.equalByValue(t,n))throw s.default.Error("E1044");return t||n||I},keyOf:function(e){return this._keyGetter&&this._keyGetter(e)},parentKeyOf:function(e){return this._parentIdGetter&&this._parentIdGetter(e)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount},isRowExpanded:function(e,t){if(t){var n=t.isExpandedByKey;return n||(n=t.isExpandedByKey={},this.option("expandedRowKeys").forEach(function(e){n[e]=!0})),!!n[e]}var i=m.default.getIndexByKey(e,this.option("expandedRowKeys"),null);return i>=0},_changeRowExpandCore:function(e){var t=this.option("expandedRowKeys"),n=m.default.getIndexByKey(e,t,null);n<0?t.push(e):t.splice(n,1),this.option("expandedRowKeys",t)},changeRowExpand:function(e){return this._changeRowExpandCore(e),this._isNodesInitializing?(new k.Deferred).resolve():this.load()},getNodeByKey:function(e){if(this._nodeByKey)return this._nodeByKey[e]},getNodeLeafKeys:function(){var e=this,t=[],n=e._rootNode?[e._rootNode.key]:[];return n.forEach(function(n){var i=e.getNodeByKey(n);i&&a.default.foreachNodes([i],function(e){!e.children.length&&t.push(e.key)})}),t},getChildNodeKeys:function(e){var t=this.getNodeByKey(e),n=[];return t&&a.default.foreachNodes(t.children,function(e){n.push(e.key)}),n},loadDescendants:function(t,n){var i=this,o=new k.Deferred,a=i.remoteOperations();if(t=d.default.isDefined(t)?Array.isArray(t)?t:[t]:i.getNodeLeafKeys(),!a.filtering||!t.length)return o.resolve();var r=i._dataSource._createStoreLoadOptions();return r.parentIds=t,i.load(r).done(function(){if(!n){var a=e(i,t);if(a.length)return void i.loadDescendants(a,n).done(o.resolve).fail(o.reject)}o.resolve()}).fail(o.reject),o.promise()},forEachNode:function(){var e,t=[];if(1===arguments.length){e=arguments[0];var n=this.getRootNode();t=n&&n.children||[]}else 2===arguments.length&&(e=arguments[1],t=arguments[0],t=Array.isArray(t)?t:[t]);a.default.foreachNodes(t,e)}}}());e.exports={extend:function(e){D=D.inherit(e)},create:function(e){return new D(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return l(e)||s(e)||r(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function s(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n{0}",e):""}function n(e,t,n){var i=t?t:e;return"Descendants({"+i+"}, "+n+", SELF_AND_BEFORE)"}function i(e){return(e.hierarchyName||e.dataField)+".[All]"}function a(e){var t=e.dataField+".allMembers",n=e.searchValue;return n&&(n=n.replace(/'/g,"''"),t="Filter("+t+", instr("+e.dataField+".currentmember.member_caption,'"+n+"') > 0)"),t}function r(e){var t=e.join(",");return e.length>1?(0,g.format)(ce,t):t}function s(e){var t=e.join(",");return e.length>1?"Union("+t+")":t}function l(e,t,o,s,l,u,c,d){for(var h,f,p,_=[],m=u[c],v=[],y=s;y<=t;y++){var b=m[y],x=b.dataField,w=m[y-1]&&m[y-1].hierarchyName,C=b.hierarchyName,k=!C||!m[y+1]||m[y+1].hierarchyName!==C,S=e.length+o+s;if(h=null,v.push(b),y=d.length;v--)a[v].hierarchyName&&(o.visibleLevels[a[v].hierarchyName]=o.visibleLevels[a[v].hierarchyName]||[],o.visibleLevels[a[v].hierarchyName].push(a[v].dataField))}if(l.length){var y=s(l);"rows"===t&&e.rowTake&&(y=(0,g.format)(oe,y,e.rowSkip>0?e.rowSkip+1:0,e.rowSkip>0?e.rowTake:e.rowTake+1)),"columns"===t&&e.columnTake&&(y=(0,g.format)(oe,y,e.columnSkip>0?e.columnSkip+1:0,e.columnSkip>0?e.columnTake:e.columnTake+1));var x="[DX_".concat(t,"]");_.push(c(y,i,x)),e.totalsOnly&&_.push(c("COUNT(".concat(x,")"),i,"[DX_".concat(t,"_count]"),"member"))}return"columns"===t&&n.length&&!e.skipValues&&_.push(m),(0,g.format)(ue,r(_),t)}function f(e){ -var t=[];return(0,b.each)(e,function(e,n){var i,o=n.dataField,r=[],s=n.filterValues||[];n.hierarchyName&&(0,y.isNumeric)(n.groupIndex)||((0,b.each)(s,function(e,t){var i=o+"."+H(Array.isArray(t)?t[t.length-1]:t,o);"exclude"===n.filterType&&(r.push(i+".parent"),i="Descendants("+i+")"),r.push(i)}),s.length&&(i=(0,g.format)(de,r.join(",")),"exclude"===n.filterType&&(i="Except("+a(n)+","+i+")"),t.push(i)))}),t.length?r(t):""}function p(e,t,n,i){var o="["+i+"]";return(0,b.each)([e,t,n],function(e,t){t&&(o=(0,g.format)(ie,t+"on 0",o))}),o}function I(e,t,n,i,o,a,r){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l="",u=(t.length?"with "+t.join(" "):"")+" ";if(e.length){var c;if(s.totalsOnly){var d=[];i.length&&d.push("[DX_rows_count]"),n.length&&d.push("[DX_columns_count]"),c="{".concat(d.join(","),"} on columns")}else c=e.join(",");l=u+(0,g.format)(ne,p(f(n),f(i),f(o||[]),r),a.length?(0,g.format)(se,a.join(",")):"",c)}return l}function T(e,t){return(0,b.map)(t,function(t){return(0,y.isString)(t.expression)&&c(t.expression,e,t.dataField,"member"),t.dataField})}function D(e,t,n,i){(0,b.each)(i,function(i,o){var a=t[n][i];a.hierarchyName&&a.hierarchyName===t[n][i+1].hierarchyName||e.push(a.dataField+"."+H(o,a.dataField))})}function E(e,t,n){var i=e.columns||[],o=e.rows||[],a=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],r=[],s=[],l=[],u=T(s,a);return n.measureCount=e.skipValues?1:a.length,n.visibleLevels={},e.headerName&&e.path&&D(r,e,e.headerName,e.path),e.headerName&&e.oppositePath&&D(r,e,"rows"===e.headerName?"columns":"rows",e.oppositePath),(i.length||u.length)&&l.push(h(e,"columns",u,s,n)),o.length&&l.push(h(e,"rows",u,s,n)),I(l,s,i,o,e.filters,r,t,e)}function A(e,t,n){(0,b.each)(n,function(n,i){var o=t[n];o.hierarchyName&&(t[n+1]||{}).hierarchyName===o.hierarchyName||e.push(o.dataField+"."+H(i,o.dataField))})}function O(e,t,n){var i=e.columns||[],o=e.rows||[],a=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],r=[],s=[],l=[],u=T(s,a),c=n.maxRowCount,d=n.customColumns||[],h=d.length>0?" return "+d.join(","):"";A(r,i,n.columnPath||[]),A(r,o,n.rowPath||[]),(i.length||i.length||u.length)&&l.push([(u[n.dataIndex]||u[0])+" on 0"]);var f=I(l,s,i,o,e.filters,r,t);return f?"drillthrough"+(c>0?" maxrows "+c:"")+f+h:f}function B(e){return parseInt(e,10)}function P(e){return(0,y.isNumeric)(e)?parseFloat(e):e}function R(e,t){return(e.getElementsByTagName(t)||[])[0]}function M(e,t){return F(R(e,t))}function V(e,t){var n=[];for((0,b.each)(e.getElementsByTagName("Axis"),function(e,i){var o=i.getAttribute("name"),a=[],r=0;0===o.indexOf("Axis")&&(0,y.isNumeric)(B(o.substr(4)))&&(n.push(a),(0,b.each)(i.getElementsByTagName("Tuple"),function(e,i){var o=i.childNodes,s=0,l=[],u=t?o.length:o.length-1,c=1===n.length;c&&u--,a.push(l);for(var d=u;d>=0;d--){var h=o[d],f=B(M(h,"LNum"));l[d]={caption:M(h,"Caption"),value:P(M(h,"MEMBER_VALUE")),level:f,index:r++,hasValue:!(s||!f&&0!==d),name:M(h,"UName"),hierarchyName:o[d].getAttribute("Hierarchy"),parentName:M(h,"PARENT_UNIQUE_NAME"),levelName:M(h,"LName")},s+=f}}))});n.length<2;)n.push([[{level:0}]]);return n}function F(e){return e&&e&&(e.textContent||e.text||e.innerHTML)||""}function L(e,t,n){for(var i=[],o=[],a=0,r=[],s=e.getElementsByTagName("Cell"),l={},u=0;u0,m=B(c.getAttribute("CellOrdinal"));h.length&&(l[F(h[0].getElementsByTagName("ErrorCode")[0])]=F(h[0].getElementsByTagName("Description")[0])),r[m]={value:g?p:f||null}}return(0,b.each)(t[1],function(){var e=[];i.push(e),(0,b.each)(t[0],function(){var t=a%n;0===t&&(o=[],e.push(o)),o.push(r[a]?r[a].value:null),a++})}),Object.keys(l).forEach(function(e){_.errors.log("W4002",l[e])}),i}function H(e,t){return e&&(e=(0,y.isString)(e)&&e.indexOf("&")!==-1?e:"["+e+"]",t&&0===e.indexOf(t+".")&&(e=e.slice(t.length+1,e.length))),e}function z(e,t,n,i){var o=e[t];return o||(o={},e[t]=o),!(0,y.isDefined)(o.value)&&n&&(o.text=n.caption,o.value=n.value,o.key=t?t:"",o.levelName=n.levelName,o.hierarchyName=n.hierarchyName,o.parentName=n.parentName,o.index=i,o.level=n.level),o}function N(e,t){var n=[],i=e.children&&(e.children.length?e.children:Object.keys(e.children.grandTotalHash||{}).reduce(function(t,n){return t.concat(e.children.grandTotalHash[n].children)},[])),o=i&&i[0];if(o&&(t[o.hierarchyName]&&(0,x.inArray)(o.levelName,t[o.hierarchyName])!==-1||!t[o.hierarchyName]||0===o.level)){var a=i.filter(function(e){return e.hierarchyName===o.hierarchyName});return a.grandTotalHash=i.grandTotalHash,a}if(o)for(var r=0;r").text(i).html(),e(n,(0,g.format)(te,i,n.catalog,t()))}function J(e,t,n){var i=[],a=t.columns||[],r=t.rows||[];a.length&&i.push({}),r.length&&i.push({});var s=L(n,[[{}],[{},{}]],1);if(!a.length&&r.length&&(e.rowCount=Math.max(s[0][0][0]-1,0)),!r.length&&a.length&&(e.columnCount=Math.max(s[0][0][0]-1,0)),r.length&&a.length&&(e.rowCount=Math.max(s[0][0][0]-1,0),e.columnCount=Math.max(s[1][0][0]-1,0)),void 0!==e.rowCount&&t.rowTake){e.rows=o(Array(t.rowSkip)).concat(e.rows),e.rows.length=e.rowCount;for(var l=0;l1&&(t.groupName=t.hierarchyName=t.dataField,u.push.apply(u,d[t.hierarchyName]))}),c.resolve(u)}).fail(c.reject)}).fail(c.reject),c},load:function e(t){var n,i=new C.Deferred,o=this._options,a={skipValues:t.skipValues},r=E(t,o.cube,a);(t.rowSkip||t.rowTake||t.columnTake||t.columnSkip)&&(n=E((0,v.extend)({},t,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),o.cube,{}));var e=function(){r?(0,C.when)(Q(o,r),n&&Q(o,n)).done(function(e,n){var o=j(e)||n&&j(n);if(o)i.reject(o);else{var r=q(e,a);n&&J(r,t,n),i.resolve(r)}}).fail(i.reject):i.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return t.delay?setTimeout(e,t.delay):e(),i},supportPaging:function(){return!0},getDrillDownItems:function(e,t){var n=new C.Deferred,i=this._options,o=O(e,i.cube,t);return o?(0,C.when)(Q(i,o)).done(function(e){var t=j(e);t?n.reject(t):n.resolve(Z(e))}).fail(n.reject):n.resolve([]),n},key:m.noop,filter:m.noop}}()).include(w.storeDrillDownMixin)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=[];if(e.items)for(var i=0;i=0,items:l}):a=l}),a=r.concat(a),a.isMeasure=i):(0,g.each)(e,function(e,t){var n;t.isMeasure===!0&&(n="measure"),t.isMeasure===!1&&(n=t.groupName?"hierarchy":"dimension"),a.push({index:t.index,field:t,key:t.dataField,selected:(0,h.isDefined)(t.area),text:t.caption||t.dataField,icon:n,isMeasure:t.isMeasure,isDefault:t.isDefault})}),a},_createFieldsDataSource:function(e){var t=e&&e.fields()||[];t=t.filter(function(e){return e.visible!==!1&&!(0,h.isDefined)(e.groupIndex)});var n=this._createTreeItems(t,["dimension","displayFolder"]);return(0,y.foreachDataLevel)(n,function(e){e.sort(r)},0,"items"),n},_renderFieldsTreeView:function(e){var t=this,n=t._dataSource,i=t._createComponent(e,x.default,{dataSource:t._createFieldsDataSource(n),showCheckBoxesMode:"normal",searchEnabled:t.option("allowSearch"),searchTimeout:t.option("searchTimeout"),itemTemplate:function(e,t,n){e.icon&&(0,c.getImageContainer)(e.icon).appendTo(n),(0,u.default)("").toggleClass("dx-area-field",!e.items).data("field",e.field).text(e.text).appendTo(n)},onItemCollapsed:function(e){var n=(0,p.inArray)(e.itemData.path,t._expandedPaths);n>=0&&t._expandedPaths.splice(n,1)},onItemExpanded:function(e){var n=(0,p.inArray)(e.itemData.path,t._expandedPaths);n<0&&t._expandedPaths.push(e.itemData.path)},onItemSelectionChanged:function(e){var r,s,l=e.itemData,u=!0;if(l.items){if(l.selected)return void i.unselectItem(l);if(t._processDemandState(function(){r=o(l,n.fields());for(var e=0;e").addClass("dx-area-icon").addClass("dx-area-icon-"+t).appendTo(a),(0,u.default)("").html(" ").appendTo(a),(0,u.default)("").addClass("dx-area-caption").text(r).appendTo(a);var s=(0,u.default)(I).addClass("dx-area-fields").addClass(O).appendTo(o);if("all"!==t){s.attr("group",t).attr("allow-scrolling",!0),n=(0,u.default)(I).addClass("dx-area-field-container").appendTo(s);var l=function(){i._renderAreaFields(n,t)};i._dataChangedHandlers.push(l),l(),s.dxScrollable()}else o.addClass("dx-all-fields"),s.addClass("dx-treeview-border-visible"),i._renderFieldsTreeView(s)},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var e=this.$element().find(".dx-treeview").dxTreeView("instance");e&&(e.option("searchValue",""),e.collapseAll())},applyChanges:function(){var e=this.option("state");(0,h.isDefined)(e)&&this._dataSource.state(e)},cancelChanges:function(){var e=this._dataSource;return!e.isLoading()&&(this.option("state",e.state()),!0)},getDataSource:function(){return this._dataSource},updateDimensions:function(){var e=this.$element().find(".dx-area .dx-scrollable");e.dxScrollable("update")},_visibilityChanged:function(e){e&&T&&this.updateDimensions()}});(0,v.default)("dxPivotGridFieldChooser",P),e.exports=P},function(e,t,n){var i=n(42),o=n(21),a=n(701),r={_displayNames:a.displayNames,_list:a.timezones,getTimezones:function(){return this._list},getDisplayNames:function(){return this._displayNames},queryableTimezones:function(){return i(this.getTimezones())},getTimezoneById:function(e){var t,n=0,i=this.getTimezones();if(e)for(;!t;){if(!i[n])return void o.log("W0009",e);var a=i[n].id;a===e&&(t=i[n]),n++}return t},getTimezoneOffsetById:function(e,t){var n,i,o,a,r=this.getTimezoneById(e);if(r){if(r.link){var s=this.getTimezones()[r.link];n=s.offsets,o=s.untils,i=s.offsetIndices}else n=r.offsets,o=r.untils,i=r.offsetIndices;a=this.getUtcOffset(n,i,o,t)}return a},getUtcOffset:function(e,t,n,i){for(var o=0,a=t.split(""),r=n.split("|").map(function(e){return"Infinity"===e?null:1e3*parseInt(e,36)}),s=0,l=0,u=r.length;l=s))break;o=l}}return r[o+1]&&o++,e[Number(a[o])]},getTimezoneShortDisplayNameById:function(e){var t,n=this.getTimezoneById(e);return n&&(t=n.DisplayName.substring(0,11)),t},getTimezonesDisplayName:function(){return i(this.getDisplayNames()).sortBy().toArray()},getTimezoneDisplayNameById:function(e){var t=this.getTimezoneById(e);return t?this.getDisplayNames()[t.winIndex]:""},getSimilarTimezones:function(e){if(!e)return[];var t=this.getTimezoneById(e);return this.getTimezonesIdsByWinIndex(t.winIndex)},getTimezonesIdsByWinIndex:function(e){return this.queryableTimezones().filter(["winIndex",e]).sortBy("title").toArray().map(function(e){return{id:e.id,displayName:e.title}})},getTimezonesIdsByDisplayName:function(e){var t=this.getDisplayNames().indexOf(e);return this.getTimezonesIdsByWinIndex(t)},getClientTimezoneOffset:function(e){return 6e4*e.getTimezoneOffset()},processDateDependOnTimezone:function(e,t){var n=new Date(e);if(t){var i=t+this.getClientTimezoneOffset(e)/36e5;n=new Date(n.setHours(n.getHours()+i))}return n}};e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n");(0,p.default)(e).append(n),i.list=i._createList(n,t)}},onShown:this._onShown.bind(this)})),this.tooltip.option("visible",!0)}},{key:"_onShown",value:function(){this.list.option("focusStateEnabled",this.scheduler.option("focusStateEnabled"))}},{key:"dispose",value:function(){}},{key:"hide",value:function(){this.tooltip&&this.tooltip.option("visible",!1)}},{key:"_shouldUseTarget",value:function(){return!0}},{key:"_createTooltip",value:function(e,t){}},{key:"_canShowTooltip",value:function(e,t){return!(!t.length||this.tooltip&&this.tooltip.option("visible")&&(0,p.default)(this.tooltip.option("target")).get(0)===(0,p.default)(e).get(0))}},{key:"_createListOption",value:function(e){var t=this;return{dataSource:e,onItemRendered:function(e){return t._onListItemRendered(e)},onItemClick:function(e){return t._onListItemClick(e)},itemTemplate:function(e,n){return t._renderTemplate(t.tooltip.option("target"),e.data,e.currentData||e.data,n,e.color)}}}},{key:"_createList",value:function(e,t){return this.scheduler._createComponent(e,_.default,this._createListOption(t))}},{key:"_onListItemRendered",value:function(e){}},{key:"_getTargetData",value:function(e,t){return this.scheduler.fire("getTargetedAppointmentData",e,t)}},{key:"_renderTemplate",value:function(e,t,n,i,o){this._createTemplate(t,n,o);var a=this.scheduler._getAppointmentTemplate(this._getItemListTemplateName());return this._createFunctionTemplate(a,t,this._getTargetData(t,e),i)}},{key:"_createFunctionTemplate",value:function(e,t,n,i){return I(e,t,n,i)}},{key:"_getItemListTemplateName",value:function(){return"appointmentTooltipTemplate"}},{key:"_getItemListDefaultTemplateName",value:function(){return"appointmentTooltip"}},{key:"_onListItemClick",value:function(e){this.hide(),this._canRaiseClickEvent()?this._raiseClickEventAndShowAppointmentPopup(e):this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"_canRaiseClickEvent",value:function(){return!0}},{key:"_raiseClickEventAndShowAppointmentPopup",value:function(e){var t={itemData:e.itemData.data,itemElement:e.itemElement},n=this.createAppointmentClickAction();n(this.createClickEventArgument(t,e))}},{key:"createAppointmentClickAction",value:function(){var e=this;return this.scheduler._createActionByOption("onAppointmentClick",{afterExecute:function(t){var n=t.args[0];n.event.stopPropagation(),e.scheduler.fire("showEditAppointmentPopup",{data:n.appointmentData})}})}},{key:"createClickEventArgument",value:function(e,t){var n=(0,m.extendFromObject)(this.scheduler.fire("mapAppointmentFields",e),t,!1);return this.trimClickEventArgument(n)}},{key:"trimClickEventArgument",value:function(e){return delete e.itemData,delete e.itemIndex,delete e.itemElement,e}},{key:"_onDeleteButtonClick",value:function(){this.hide()}},{key:"_createTemplate",value:function(e,t,n){var i=this;this.scheduler._defaultTemplates[this._getItemListDefaultTemplateName()]=new h.default(function(o){var a=(0,p.default)(o.container);return a.append(i._createItemListContent(e,t,n)),a})}},{key:"_createItemListContent",value:function(e,t,n){var i=this.scheduler.option("editing"),o=this.scheduler.fire("getField","allDay",e),a=this.scheduler.fire("getField","text",e),r=this.scheduler.fire("getField","startDateTimeZone",e),s=this.scheduler.fire("getField","endDateTimeZone",e),l=this.scheduler.fire("convertDateByTimezone",this.scheduler.fire("getField","startDate",t),r),u=this.scheduler.fire("convertDateByTimezone",this.scheduler.fire("getField","endDate",t),s),c=(0,p.default)("
").addClass(v);return c.append(this._createItemListMarker(n)),c.append(this._createItemListInfo(a,this._formatDate(l,u,o))),(i&&i.allowDeleting===!0||i===!0)&&c.append(this._createDeleteButton(e,t)),c}},{key:"_createItemListMarker",value:function(e){var t=(0,p.default)("
").addClass(w),n=(0,p.default)("
").addClass(C);return t.append(n),e&&e.done(function(e){return n.css("background",e)}),t}},{key:"_createItemListInfo",value:function(e,t){var n=(0,p.default)("
").addClass(y),i=(0,p.default)("
").addClass(b).text(e),o=(0,p.default)("
").addClass(x).text(t);return n.append(i).append(o)}},{key:"_createDeleteButton",value:function(e,t){var n=this,i=(0,p.default)("
").addClass(k),o=(0,p.default)("
").addClass(S);return i.append(o),this.scheduler._createComponent(o,l.default,{icon:"trash",stylingMode:"text",onClick:function(i){n._onDeleteButtonClick(),n.scheduler._checkRecurringAppointment(e,t,t.startDate,function(){return n.scheduler.deleteAppointment(e)},!0),i.event.stopPropagation()}}),i}},{key:"_formatDate",value:function(e,t,n){var i="";return this.scheduler.fire("formatDates",{startDate:e,endDate:t,formatType:this._getTypeFormat(e,t,n),callback:function(e){return i=e}}),i}},{key:"_getTypeFormat",value:function(e,t,n){return n?"DATE":"month"!==this.scheduler.option("currentView")&&c.default.sameDate(e,t)?"TIME":"DATETIME"}}]),e}()},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;no.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.xN||l>N){r.show();var u=i.x-a.deltaX,c=i.y-a.deltaY;r.css({left:u,top:c}),n.dockHeader(i)}t.preventDefault()}},dockHeader:function(e){var t=this,n=t._getDraggingPanelByPos(e),i=t._controller,o=t._dropOptions,r=t._dragOptions;if(n){var s=t.option("rtlEnabled"),l="columnChooser"===n.getName(),u=l?"y":"x",c=n.getName(),d="headers"===c?r.rowIndex:void 0,h=r.sourceColumn,f=n.getColumnElements(d,h&&h.ownerBand)||[],p=r.pointsByTarget=r.pointsByTarget||{},_="columnChooser"===c?[]:p[c]||i._generatePointsByColumns((0,g.extend)({},r,{targetDraggingPanel:n,columns:n.getColumns(d),columnElements:f,isVerticalOrientation:l,startColumnIndex:"headers"===c&&(0,a.default)(f[0]).index()}));if(p[c]=_,o.targetLocation=c,_.length>0)for(var m=0;m<_.length;m++){var v=_[m+1]&&(_[m][u]+_[m+1][u])/2;if(void 0===v||(s&&"x"===u?e[u]>v:e[u]=n&&e<=n+i}}return!1},_pointCreated:function(e,t,n){var i=X(this),o=this.option("rtlEnabled"),a=!i&&o?0:1;if(e.index>=a&&e.index0?o[0].getBoundingClientRect().width:0,nextColumnIndex:i,nextColumnWidth:a&&a.length>0?a[0].getBoundingClientRect().width:0}},_startResizing:function(e){var t=e.event,n=t.data,i=(0,_.eventData)(t),o=n.getController("editing"),a=n.option("editing.mode"),r=o.isEditing()&&("batch"===a||"cell"===a);(0,_.isTouchEvent)(t)&&(n._isHeadersRowArea(i.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),i.x,z),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing&&!r&&(n._setupResizingInfo(i.x),n._isResizing=!0,n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show(),t.preventDefault(),t.stopPropagation())},_generatePointsByColumns:function(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],n=e._columnHeadersView.getColumnElements(),i=[];n&&n.length>0&&(i=k.default.getPointsByColumns(n,function(i){return e._pointCreated(i,n.length,t)})),e._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&u.default.off(s.default.getDocument(),(0,_.addNamespace)(v.default.move,H),this._moveSeparatorHandler),this._startResizingHandler&&u.default.off(this._$parentContainer,(0,_.addNamespace)(v.default.down,H),this._startResizingHandler),this._endResizingHandler&&(u.default.off(this._columnsSeparatorView.element(),(0,_.addNamespace)(v.default.up,H),this._endResizingHandler),u.default.off(s.default.getDocument(),(0,_.addNamespace)(v.default.up,H),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),u.default.on(s.default.getDocument(),(0,_.addNamespace)(v.default.move,H),this,this._moveSeparatorHandler),u.default.on(this._$parentContainer,(0,_.addNamespace)(v.default.down,H),this,this._startResizingHandler),u.default.on(this._columnsSeparatorView.element(),(0,_.addNamespace)(v.default.up,H),this,this._endResizingHandler),u.default.on(s.default.getDocument(),(0,_.addNamespace)(v.default.up,H),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(e){function t(e){return f.default.isString(e)&&"%"===e.slice(-1)}function n(e,n,i,o){if(e){var a=e.width;a&&(o=t(a)),o?(e&&d.columnOption(e.index,"visibleWidth",n),e&&d.columnOption(e.index,"width",(n/i*100).toFixed(3)+"%")):(e&&d.columnOption(e.index,"visibleWidth",null),e&&d.columnOption(e.index,"width",n))}}function i(e,n){var i=n.every(function(e){return e.width});if(i){var o=n.reduce(function(e,n){return t(n.width)&&(e+=parseFloat(n.width)),e},0);o>100&&(e=e/o*100)}return e}var o,a,r,s,l,u=!1,c=this._resizingInfo,d=this._columnsController,h=d.getVisibleColumns(),p=this._columnsSeparatorView.width(),g=this._rowsView.contentWidth(),_=X(this),m=_&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth");o=e-c.startPosX,_&&this.option("rtlEnabled")&&(o=-o),l=c.currentColumnWidth+o;var v=h[c.currentColumnIndex];if(r=v&&v.minWidth||p,u=l>=r,_&&(a=c.nextColumnWidth-o,s=h[c.nextColumnIndex],r=s&&s.minWidth||p,u=u&&a>=r),u){if(d.beginUpdate(),l=Math.floor(l),g=i(g,h),n(v,l,g,m),_)a=Math.floor(a),n(s,a,g,m);else{var y=this._columnHeadersView.getColumnWidths();y[c.currentColumnIndex]=l;var b=y.reduce(function(e,t){return e+t},0)>this._rowsView.contentWidth();if(!b){var x=k.default.getLastResizableColumnIndex(h);x>=0&&d.columnOption(h[x].index,"visibleWidth","auto")}for(var w=0;w=0,s=function(){t._animationColumnIndex!==n&&(t.hideSeparators(),a.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=n,a.show(o))};t._columnHeadersView.element().find("."+V).toggleClass(t.addWidgetPrefix(R),"headers"!==i&&"headers"===o&&!r),a&&(t.allowDrop(e)&&r?"group"===o||"columnChooser"===o?s():(t.hideSeparators("block"),t.getController("tablePosition").update(e.posY),a.moveByX(e.posX-a.width()),a.show()):t.hideSeparators())},drop:function(e){var t=e.sourceColumnElement;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find("."+V).removeClass(this.addWidgetPrefix(R))),this.allowDrop(e)){var n=this._getSeparator(e.targetLocation);n&&n.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}});e.exports={views:{columnsSeparatorView:K,blockSeparatorView:U,draggingHeaderView:Y,trackerView:j},controllers:{draggingHeader:J,tablePosition:Q,columnsResizer:Z},extenders:{views:{rowsView:{_needUpdateRowHeight:function(e){var t=this.option("wordWrapEnabled"),n=this.getController("columnsResizer"),i=n.isResizing();return this.callBase.apply(this,arguments)||e>0&&t&&i}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e&&e.hasClass(H)}function a(e){return e&&e.hasClass(N)}function r(e){return e&&!o(e)&&!a(e)}function s(e){return!e||e.hasClass($)||e.hasClass(W)}function l(e){return e.length&&"TD"===e[0].tagName}function u(e,t){return!e._isRowEditMode()&&t&&t.hasClass(j)}function c(e){return(0,b.isDefined)(e)&&e.length>0}var d=n(2),h=i(d),f=n(10),p=i(f),g=n(5),_=i(g),m=n(39),v=i(m),y=n(35),b=n(1),x=n(13),w=n(65),C=n(3),k=n(159),S=i(k),I=n(8),T=i(I),D=n(23),E=i(D),A=n(4),O=n(105),B=n(26),P=i(B),R="rowsview",M="edit-form",V="group-footer",F="dx-row",L="dx-data-row",H="dx-group-row",z="edit-form-item",N="dx-master-detail-row",$="dx-freespace-row",W="dx-virtual-row",G="dx-master-detail-cell",j="dx-editor-cell",q="dx-edit-row",K="dx-dropdowneditor-overlay",U="dx-command-expand",Y="dx-command-select",X="[class^=dx-command]",Z="dx-cell-focus-disabled",Q="dxDateBox",J="dx-state-focused",ee="dx-widget",te="delete",ne="input:not([type='hidden']), textarea, a, select, [tabindex]",ie=["rowsView"],oe="row",ae="form",re="batch",se="cell",le="row",ue="cell",ce=v.default.ViewController.inherit({_isRowEditMode:function(){var e=this.getController("editing").getEditMode();return e===oe||e===ae},_isCellEditMode:function(){var e=this.getController("editing").getEditMode();return e===se||e===re},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_focusView:function(e,t){this._focusedViews.viewIndex=t,this._focusedView=e},_getInteractiveElement:function(e,t){var n=e.find(ne).filter(":visible");return t?n.last():n.first()},_focusInteractiveElement:function(e,t){if(e){var n=this._getInteractiveElement(e,t);(0,y.focusAndSelectElement)(this,n)}},_updateFocus:function(e){var t=this;setTimeout(function(){var n=t._getFocusedCell(),i=t._editingController.isEditing();if(n&&(!t._isMasterDetailCell(n)||t._isRowEditMode())){if(t._hasSkipRow(n.parent())){var o=t._focusedCellPosition&&t._focusedCellPosition.rowIndex>0?"upArrow":"downArrow";n=t._getNextCell(o)}if(c(n)){if(e&&!i&&t._checkCellOverlapped(n))return;n.is("td")||n.hasClass(t.addWidgetPrefix(z))?(t.getController("editorFactory").focus()?t._focus(n):t._isCellEditMode()?t._focus(n,t._isHiddenFocus):t._isHiddenFocus&&t._focus(n,!0),i&&t._focusInteractiveElement.bind(t)(n)):_.default.trigger(n,"focus")}}})},_checkCellOverlapped:function(e){var t=e.offset(),n=this.component.getScrollable&&this.component.getScrollable(),i=!1;return n&&(t.left<0?i=e.width()+t.left<=0:t.top<0&&(i=e.height()+t.top<=0)),i},_applyTabIndexToElement:function(e){var t=this.option("tabIndex");e.attr("tabIndex",(0,b.isDefined)(t)?t:0)},_isEventInCurrentGrid:function(e){return(0,y.isElementInCurrentGrid)(this,(0,h.default)(e.target))},_clickHandler:function(e){var t=e.event,n=(0,h.default)(t.currentTarget),i=t.data,o=i.view&&i.view.element(),a=n.parent(),r=a.hasClass(q);this._isEventInCurrentGrid(t)&&this._isCellValid(n,!0)?(n=this._isInsideEditForm(n)?(0,h.default)(t.target):n,this._focusView(i.view,i.viewIndex),(0,h.default)(o).removeClass(J),a.hasClass($)?(this._updateFocusedCellPosition(n),this._focusedView.element().attr("tabindex",0),this._focusedView.focus()):this._isMasterDetailCell(n)||r?this._updateFocusedCellPosition(n):this._clickTargetCellHandler(t,n)):n.is("td")&&this._resetFocusedCell()},_allowRowUpdating:function(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")},_clickTargetCellHandler:function(e,t){var n=this.getView("rowsView").getCellIndex(t),i=this._columnsController.getVisibleColumns()[n],o=this._isCellEditMode();this.setCellFocusType();var a=this._fireFocusChangingEvents(e,t,!0);if(t=a.$newCellElement,a.cancel)this.setRowFocusType(),this.setFocusedRowIndex(a.prevRowIndex),t=this._getFocusedCell(),this._editingController.isEditing()&&o&&this._editingController.closeEditCell();else{if(a.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(a.rowIndexChanged&&(t=this._getFocusedCell()),a.isHighlighted||o||this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&o&&i&&i.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{var r=e&&(0,h.default)(e.target),s=r&&r.not(t).is(ne),l=!a.isHighlighted||s;this._focus(t,l,s)}}},_initFocusedViews:function(){var e=this,t=e.createAction(e._clickHandler);e._focusedViews=[],(0,C.each)(ie,function(t,n){var i=e.getView(n);i&&i.isVisible()&&e._focusedViews.push(i)}),(0,C.each)(e._focusedViews,function(n,i){i&&i.renderCompleted.add(function(o){var a=i.element(),r=!o||"refresh"===o.changeType,s=e._focusedView&&e._focusedView.name===i.name,l=!1,u=o&&("append"===o.changeType||"prepend"===o.changeType),c=".".concat(F," > td, .").concat(F),d=(0,h.default)(":focus"),f=!d.length||d.closest(a).length||P.default.msie&&d.is("body");_.default.off(a,T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),t),_.default.on(a,T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),c,{viewIndex:n,view:i},t),e._initKeyDownProcessor(e,a,e._keyDownHandler),e._setRowsViewAttributes(a),s&&f&&(l=e._isNeedFocus?!u:e._isHiddenFocus&&r,l&&e._updateFocus(!0))})})},_setRowsViewAttributes:function(e){var t=!this._dataController.getVisibleRows().length;if(t){var n=this.option("tabindex")||0;e.attr("tabindex",n)}},_initKeyDownProcessor:function(e,t,n){this._keyDownProcessor&&(this._keyDownProcessor.dispose(),this._keyDownProcessor=null),this._keyDownProcessor=new S.default({element:t,context:e,handler:n})},_getCell:function(e){if(this._focusedView&&e)return this._focusedView.getCell({rowIndex:e.rowIndex-this._dataController.getRowIndexOffset(),columnIndex:e.columnIndex})},_getFocusedCell:function(){return(0,h.default)(this._getCell(this._focusedCellPosition))},_getRowIndex:function(e){var t=this,n=t._focusedView,i=-1;return n&&(i=n.getRowIndex(e)),i>=0&&(i+=t._dataController.getRowIndexOffset()),i},_updateFocusedCellPosition:function(e,t){var n=this._getCellPosition(e,t);return n&&(!e.length||n.rowIndex>=0&&n.columnIndex>=0)&&this.setFocusedCellPosition(n.rowIndex,n.columnIndex),n},_updateFocusedCellPositionByTarget:function(e){var t,n=this._getElementType(e);if("row"===n&&(0,b.isDefined)(null===(t=this._focusedCellPosition)||void 0===t?void 0:t.columnIndex)){var i=(0,h.default)(e);this._focusedView&&o(i)&&this.setFocusedRowIndex(this._getRowIndex(i))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(e))},_getCellPosition:function(e,t){var n,i=this,o=c(e)&&e.closest("tr");if(c(o)&&i._focusedView){var a=i._getRowIndex(o);return n=i._focusedView.getCellIndex(e,a),t&&(n="previous"===t?n-1:n+1,n=i._applyColumnIndexBoundaries(n)),{rowIndex:a,columnIndex:n}}},setFocusedCellPosition:function(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)},setFocusedRowIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e},setFocusedColumnIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e},getVisibleRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex?this._focusedCellPosition.rowIndex-this._dataController.getRowIndexOffset():this._focusedCellPosition.rowIndex:null},getVisibleColumnIndex:function(){return this._focusedCellPosition&&(0,b.isDefined)(this._focusedCellPosition.columnIndex)?this._focusedCellPosition.columnIndex:-1},getFocusedColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:null},_applyColumnIndexBoundaries:function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},_isCellValid:function(e,t){if(c(e)){var n=this.getView("rowsView"),i=e.parent(),o=this._columnsController.getVisibleColumns(),s=n.getCellIndex(e),l=o[s],u=this._getVisibleColumnCount(),d=this._editingController,h=a(i),f=l&&l.showWhenGrouped,p=l&&!e.hasClass(U)&&r(i),g=function(){return!h&&l&&(!(0,b.isDefined)(l.groupIndex)||f&&p)||parseInt(e.attr("colspan"))>1};if(this._isMasterDetailCell(e))return!0;if(u>s&&g()){var _=this._dataController.items(),m=n.getRowIndex(i),v=_[m],y=d&&this._isCellEditMode()&&d.isEditing(),x=d&&d.isEditRow(m),w=x||y;return l.command?this._isLegacyNavigation()?!w&&"expand"===l.command:y?!l.command:x?"select"!==l.command:!w:(!y||!v||"data"===v.rowType)&&(!w||l.allowEditing||t)}}},_isCellByPositionValid:function(e){var t=(0,h.default)(this._getCell(e));return this._isCellValid(t)},_focus:function(e,t,n){var i=e&&e.is("td")?e.parent():e;if(!i||!s(i)){var a,r=this._getFocusedCell(),u=this._focusedView,c=u&&u.element();this._isHiddenFocus=t,o(i)||this.isRowFocusType()?(a=i,u&&this.setFocusedRowIndex(this._getRowIndex(i))):l(e)&&(a=e,this._updateFocusedCellPosition(e)),r&&r.is("td")&&r.not(a).removeAttr("tabIndex"),a&&(_.default.one(a,"blur",function(e){e.relatedTarget&&a.removeClass(Z)}),n||(this._applyTabIndexToElement(a),_.default.trigger(a,"focus")),t?(c&&c.find("."+Z+"[tabIndex]").not(a).removeClass(Z).removeAttr("tabIndex"),a.addClass(Z)):(c&&c.find("."+Z+":not(."+G+")").removeClass(Z),this.getController("editorFactory").focus(a)))}},_hasSkipRow:function(e){var t=e&&e.get(0);return t&&("none"===t.style.display||e.hasClass(this.addWidgetPrefix(V))||a(e)&&!e.hasClass(this.addWidgetPrefix(M)))},_f2KeyHandler:function(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(t);!e&&r(n)&&this._startEditing()},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_enterKeyHandler:function(e,t){var n=this._getFocusedCell(),i=this.getVisibleRowIndex(),a=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&o(a)||this.option("masterDetail.enabled")&&n&&n.hasClass(U)){var r=this._dataController.getKeyByRowIndex(i),s=this._dataController.items()[i];void 0!==r&&s&&s.data&&!s.data.isContinuation&&this._dataController.changeRowExpand(r); +}else this._processEnterKeyForDataCell(e,t)},_processEnterKeyForDataCell:function(e,t){var n=this._getEnterKeyDirection(e),i=this._allowEditingOnEnterKey();t||!i&&n?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===n||"previous"===n?this._targetCellTabHandler(e,n):"upArrow"!==n&&"downArrow"!==n||this._navigateNextCell(e.originalEvent,n)):i&&this._startEditing(e)},_getEnterKeyDirection:function(e){var t=this.option("keyboardNavigation.enterKeyDirection"),n=e.shift;return"column"===t?n?"upArrow":"downArrow":"row"===t?n?"previous":"next":void 0},_handleEnterKeyEditingCell:function(e){var t=e.target,n=this._getCellElementFromTarget(t),i=this._isRowEditMode();this._updateFocusedCellPosition(n),i?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(_.default.trigger((0,h.default)(t),"change"),this._editingController.closeEditCell(),e.preventDefault())},_startEditing:function(e,t){var n=this._focusedCellPosition,i=this.getVisibleRowIndex(),o=this._dataController.items()[i],a=this._columnsController.getVisibleColumns()[n.columnIndex],r=this._editingController.allowUpdating({row:o})&&a&&a.allowEditing;r&&(this._isRowEditMode()?this._editingController.editRow(i):n&&this._startEditingCell(e,t))},_startEditingCell:function(e,t){var n=this,i=this.getVisibleRowIndex(),o=this._focusedCellPosition.columnIndex;this._fastEditingStarted=(0,b.isDefined)(t);var a=this._editingController.editCell(i,o);if(this._isFastEditingStarted())if(a===!0)n._editingCellHandler(e,t);else if(a&&a.done){var r=t!==te?t:"";a.done(function(){return n._editingCellHandler(e,r)})}},_editingCellHandler:function(e,t){var n=this._getFocusedCell().find(".dx-texteditor-input").eq(0),i=T.default.createEvent(e,{type:"keydown",target:n.get(0)}),o=T.default.createEvent(e,{type:"keypress",target:n.get(0)}),a=T.default.createEvent(e,{type:"input",target:n.get(0)});_.default.trigger(n,i),i.isDefaultPrevented()||(_.default.trigger(n,o),o.isDefaultPrevented()||setTimeout(function(){n.val(t);var e=n.closest(".".concat(ee));_.default.off(e,"focusout"),_.default.one(e,"focusout",function(){_.default.trigger(n,"change")}),_.default.trigger(n,a)}))},_leftRightKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=e.originalEvent,o=this._focusedView&&this._focusedView.getRow(n),a=this._getDirectionCodeByKey(e.keyName),s=this._isFastEditingStarted(),l=(!t||s)&&r(o);if(l){this.setCellFocusType(),s&&this._editingController.closeEditCell();var u=this._getNextCell(a);c(u)&&this._arrowKeysHandlerFocusCell(i,u),i&&i.preventDefault()}},_upDownKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=this._focusedView&&this._focusedView.getRow(n),o=e.originalEvent,r="upArrow"===e.keyName,s=this._dataController.dataSource(),l=this._isFastEditingStarted(),u=(!t||l)&&i&&!a(i);if(u){if(l&&this._editingController.closeEditCell(),!this._navigateNextCell(o,e.keyName)&&this._isVirtualScrolling()&&r&&s&&!s.isLoading()){var c=i.outerHeight();n=this._focusedCellPosition.rowIndex-1,this._scrollBy(-c,n,o)}o&&o.preventDefault()}},_getDirectionCodeByKey:function(e){var t;return t=this.option("rtlEnabled")?"leftArrow"===e?"nextInRow":"previousInRow":"leftArrow"===e?"previousInRow":"nextInRow"},_navigateNextCell:function(e,t){var n=this._getNextCell(t);return!(!n||!this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(e,n,!0)},_arrowKeysHandlerFocusCell:function(e,t,n){var i=this._fireFocusChangingEvents(e,t,n,!0);return t=i.$newCellElement,!(i.cancel||!this._isCellValid(t))&&(this._focus(t,!i.isHighlighted),!0)},_fireFocusChangingEvents:function(e,t,n,i){var o={},a=this._getCellPosition(t)||{};return this.isCellFocusType()&&(o=this._fireFocusedCellChanging(e,t,i),o.cancel||(a.columnIndex=o.newColumnIndex,a.rowIndex=o.newRowIndex,i=o.isHighlighted,t=(0,h.default)(this._getCell(a)))),!o.cancel&&n&&t&&(o=this._fireFocusedRowChanging(e,t.parent()),o.cancel?e&&e.preventDefault():(a.rowIndex=o.newRowIndex,o.isHighlighted=i)),o.$newCellElement=(0,h.default)(this._getCell(a)),o.$newCellElement.length||(o.$newCellElement=t),o},_isVirtualScrolling:function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},_scrollBy:function(e,t,n){var i=this,o=this.getView("rowsView").getScrollable();if(i._focusedCellPosition){var a=function e(){o.off("scroll",e),setTimeout(i.restoreFocusableElement.bind(i,t,n))};o.on("scroll",a)}o.scrollBy({left:0,top:e})},restoreFocusableElement:function(e,t){var n,i,o=this,a=(0,b.isDefined)(e),r=o.getView("rowsView"),s=r.element(),l=o._focusedCellPosition.columnIndex,u=o._dataController.getRowIndexOffset();e=a?e:r.getTopVisibleItemIndex()+u,a?(i=r.getRow(e-u),n=o._fireFocusedRowChanging(t,i),!n.cancel&&n.rowIndexChanged&&(e=n.newRowIndex)):(o.getController("editorFactory").loseFocus(),o._applyTabIndexToElement(s),_.default.trigger(s,"focus")),a&&n.cancel||o.setFocusedCellPosition(e,l),a&&o._updateFocus()},_pageUpDownKeyHandler:function(e){var t=this._dataController.pageIndex(),n=this._dataController.pageCount(),i=this.option("paging.enabled"),o="pageUp"===e.keyName,a=o?-1:1,r=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(o?t>0:t0},_isMasterDetailCell:function(e){var t=(0,h.default)(e).closest("."+G),n=t.closest("."+this.getWidgetContainerClass()).parent();return t.length&&n.is(this.component.$element())},_processNextCellInMasterDetail:function(e){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},_handleTabKeyOnMasterDetailCell:function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,h.default)(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n),!0}return!1},_tabKeyHandler:function(e,t){var n=this.option("editing"),i=e.shift?"previous":"next",o=!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),a=e.originalEvent.target,r=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(a,i)){if((0,h.default)(r).addClass(J),n&&a&&!o)if((0,h.default)(a).hasClass(this.addWidgetPrefix(R))&&this._resetFocusedCell(),t){if(!this._editingCellTabHandler(e,i))return}else this._targetCellTabHandler(e,i)&&(o=!0);o?(this.getController("editorFactory").loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(),this._editingController.closeEditCell())):e.originalEvent.preventDefault()}},_editingCellTabHandler:function(e,t){var n,i=this.option("editing"),o=e.originalEvent.target,a=this._getCellElementFromTarget(o),r=e.originalEvent,s=this._getElementType(o);if(a.is(X))return!this._targetCellTabHandler(e,t);if(this._updateFocusedCellPosition(a),a=this._getNextCellByTabKey(r,t,s),!a||this._handleTabKeyOnMasterDetailCell(a,t))return!1;var l=this._columnsController.getVisibleColumns()[this.getView("rowsView").getCellIndex(a)],u=this._dataController.items()[this._getRowIndex(a&&a.parent())];if(l.allowEditing){var c=!u||"data"===u.rowType;n=i.allowUpdating?c:u&&u.isNewRow}return n||this._editingController.closeEditCell(),this._focusCell(a)&&(!this._isRowEditMode()&&n?this._editingController.editCell(this.getVisibleRowIndex(),this._focusedCellPosition.columnIndex):this._focusInteractiveElement(a,e.shift)),!0},_targetCellTabHandler:function(e,t){var n,i=e.originalEvent,o=i.target,a=this._getCellElementFromTarget(o),s=this._getInteractiveElement(a,!e.shift),l=!1;if(!u(this,a)&&s.length&&o!==s.get(0))l=!0;else{if(void 0===this._focusedCellPosition.rowIndex&&(0,h.default)(o).hasClass(F)&&this._updateFocusedCellPosition(a),n=this._getElementType(o),this.isRowFocusType()&&(this.setCellFocusType(),"row"===n&&r((0,h.default)(o))&&(o=this.getFirstValidCellInRow((0,h.default)(o)),n=this._getElementType(o))),a=this._getNextCellByTabKey(i,t,n),!a)return!1;if(a=this._checkNewLineTransition(i,a),!a)return!1;this._focusCell(a),u(this,a)||this._focusInteractiveElement(a,e.shift)}return l},_getNextCellByTabKey:function(e,t,n){var i=this._getNextCell(t,n),o=i&&this._fireFocusedCellChanging(e,i,!0);if(o&&!o.cancel)return o.$newCellElement&&(i=o.$newCellElement),i},_checkNewLineTransition:function(e,t){var n=this.getVisibleRowIndex(),i=t.parent();if(n!==this._getRowIndex(i)){var o=this._getCellPosition(t),a=this._fireFocusedRowChanging(e,i);if(a.cancel)return;a.rowIndexChanged&&(this.setFocusedColumnIndex(o.columnIndex),t=this._getFocusedCell())}return t},getFirstValidCellInRow:function(e,t){var n,i,o=this,a=e.find("> td");t=t||0;for(var r=t;r=this._dataController.totalItemsCount()-1:e===this.getController("data").items().length-1},_getNextCell:function(e,t,n){var i,o,a=n||this._focusedCellPosition,r=this.isRowFocusType(),s=r||(0,x.inArray)(e,["next","previous"])>-1,l="previous"===e?this._isFirstValidCell(a):this._isLastValidCell(a);if(this._focusedView&&a){var u=this._getNewPositionByCode(a,t,e);if(i=(0,h.default)(this._getCell(u)),c(i)&&!this._isCellValid(i)&&this._isCellInRow(u,s)&&!l&&(i=r?this.getFirstValidCellInRow(i.parent(),u.columnIndex):this._getNextCell(e,"cell",u)),o=c(i)&&i.parent(),this._hasSkipRow(o)){var d=this._getRowIndex(o);if(this._isLastRow(d))return null;i=this._getNextCell(e,"row",{columnIndex:a.columnIndex,rowIndex:d})}return c(i)?i:null}return null},_getNewPositionByCode:function(e,t,n){var i,o=e.columnIndex,a=e.rowIndex;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i=this._getVisibleColumnCount(),o0&&!this._isFirstValidCell({columnIndex:o,rowIndex:a})&&"row"!==t?o--:a>0&&"previous"===n&&(a--,i=this._getVisibleColumnCount(),o=i-1);break;case"upArrow":a=a>0?a-1:a;break;case"downArrow":a=this._isLastRow(a)?a:a+1}return{columnIndex:o,rowIndex:a}},_isFirstValidCell:function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._haveValidCellBeforePosition(e)),t},_haveValidCellBeforePosition:function(e){for(var t=e.columnIndex,n=!1;t>0&&!n;){var i={columnIndex:--t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(i)}return n},_isLastValidCell:function(e){var t=e.columnIndex>=0?e.columnIndex+1:0,n=e.rowIndex,i={columnIndex:t,rowIndex:n},o=this.getController("data").getVisibleRows(),a=o&&o[n],r=this._isLastRow(n);return!!r&&(!!(a&&"group"===a.rowType&&e.columnIndex>0)||(e.columnIndex===this._getVisibleColumnCount()-1||!this._isCellByPositionValid(i)&&this._isLastValidCell(i)))},_getVisibleColumnCount:function(){return this.getController("columns").getVisibleColumns().length},_isCellInRow:function(e,t){var n=e.columnIndex,i=this._getVisibleColumnCount();return t?n>=0&&n<=i-1:n>0&&n td")):i.children().not("."+U).first()},init:function(){var e=this;e.option("useKeyboard")&&(e._dataController=e.getController("data"),e._selectionController=e.getController("selection"),e._editingController=e.getController("editing"),e._headerPanel=e.getView("headerPanel"),e._columnsController=e.getController("columns"),e.getController("editorFactory").focused.add(function(t){e.setupFocusedView(),e._isNeedScroll&&t.is(":visible")&&e._focusedView&&e._focusedView.getScrollable&&(e._scrollToElement(t),e._isNeedScroll=!1)}),e._fastEditingStarted=!1,e._focusedCellPosition={},e._canceledCellPosition=null,e._initFocusedViews(),e._documentClickHandler=e.createAction(function(t){var n=(0,h.default)(t.event.target),i=e._isEventInCurrentGrid(t.event)&&n.closest("."+e.addWidgetPrefix(R)).length,o=n.closest("."+K).length;i||o||e._resetFocusedCell()}),e.createAction("onKeyDown"),_.default.on(p.default.getDocument(),T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),e._documentClickHandler))},_scrollToElement:function(e,t){var n=this._focusedView.getScrollable();n&&n.update(),n&&n.scrollToElement(e,t)},focus:function(e){var t,n=this.option("focusedRowEnabled"),i=l((0,h.default)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",n||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,h.default)(e),i)},_focusElement:function(e,t){var n=this._getFocusedViewByElement(e),i=this.isRowFocusType(),a={};!n||l(e)&&!this._isCellValid(e)||(this._focusView(n.view,n.viewIndex),this._isNeedFocus=!0,this._isNeedScroll=!0,(l(e)||o(e))&&(this.setCellFocusType(),a=this._fireFocusChangingEvents(null,e,!1,t),e=a.$newCellElement,i&&!a.isHighlighted&&this.setRowFocusType()),this._focus(e,!a.isHighlighted),this._focusInteractiveElement(e))},getFocusedView:function(){return this._focusedView},_getFocusedViewByElement:function(e){var t=function(t){return e&&e.closest(t._$element).length};return this._getFocusedViewByCondition(t)},_getFocusedViewByCondition:function(e){var t;return(0,C.each)(this._focusedViews,function(n,i){if(e(i))return t={viewIndex:n,view:i},!1}),t},isRowFocusType:function(){return this.focusType===le},isCellFocusType:function(){return this.focusType===ue},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType=le)},setCellFocusType:function(){this.focusType=ue},focusViewByName:function(e){var t=this._getFocusedViewByName(e);this._focusView(t.view,t.viewIndex)},setupFocusedView:function(){this.option("useKeyboard")&&!(0,b.isDefined)(this._focusedView)&&this.focusViewByName("rowsView")},_getFocusedViewByName:function(e){var t=function(t){return t.name===e};return this._getFocusedViewByCondition(t)},optionChanged:function(e){var t=this;switch(e.name){case"useKeyboard":case"keyboardNavigation":case"useLegacyKeyboardNavigation":e.handled=!0;break;default:t.callBase(e)}},dispose:function(){this.callBase(),this._focusedView=null,this._focusedViews=null,this._keyDownProcessor&&this._keyDownProcessor.dispose(),_.default.off(p.default.getDocument(),T.default.addNamespace(E.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_fireFocusedCellChanging:function(e,t,n){var i=this,o=i.option("focusedColumnIndex"),a=i.option("focusedRowIndex"),r=i._getCellPosition(t),s=r?r.columnIndex:-1,l=r?r.rowIndex:-1,u={cellElement:t,prevColumnIndex:o,prevRowIndex:a,newColumnIndex:s,newRowIndex:l,rows:i.getController("data").getVisibleRows(),columns:i.getController("columns").getVisibleColumns(),event:e,isHighlighted:n||!1,cancel:!1};return this._canceledCellPosition=null,i.executeAction("onFocusedCellChanging",u),u.newColumnIndex===s&&u.newRowIndex===l||(u.$newCellElement=(0,h.default)(this._getCell({columnIndex:u.newColumnIndex,rowIndex:u.newRowIndex}))),u.cancel&&(this._canceledCellPosition={rowIndex:l,columnIndex:s}),u},_fireFocusedCellChanged:function(e,t,n){var i=this,o=i.getController("data"),a=i.getView("rowsView").getCellIndex(e),r=this._getRowIndex(e&&e.parent()),s=Math.min(r-o.getRowIndexOffset(),o.items().length-1),l=i.getController("editing").isEditCell(s,a),u=o.items()[s];l||t===a&&n===r||(o=i.getController("data"),i.executeAction("onFocusedCellChanged",{cellElement:e,columnIndex:a,rowIndex:r,row:u,column:i.getController("columns").getVisibleColumns()[a]}))},_fireFocusedRowChanging:function(e,t){var n=this._getRowIndex(t),i=this.getController("data"),o=this.option("focusedRowIndex"),a=i.loadingOperationTypes(),r={rowElement:t,prevRowIndex:o,newRowIndex:n,event:e,rows:this.getController("data").getVisibleRows(),cancel:!1};return!i||i.isLoading()&&(a.reload||a.paging)?(r.cancel=!0,r):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",r),r.cancel||r.newRowIndex===n||(r.resetFocusedRow=r.newRowIndex<0,r.resetFocusedRow||this.setFocusedRowIndex(r.newRowIndex),r.rowIndexChanged=!0)),r)},_fireFocusedRowChanged:function(e){var t,n=this.option("focusedRowIndex");if(this.option("focusedRowEnabled")){if(n>=0){var i=this.getController("data");t=n>=0&&i.getVisibleRows()[n-i.getRowIndexOffset()]}this.executeAction("onFocusedRowChanged",{rowElement:e,rowIndex:n,row:t})}},_processCanceledEditCellPosition:function(e,t){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,n}}});e.exports={defaultOptions:function(){return{useKeyboard:!0,useLegacyKeyboardNavigation:!1,keyboardNavigation:{enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:ce},extenders:{views:{rowsView:{_rowClick:function(e){var t=this.getController("editing").getEditRowIndex();t===e.rowIndex&&this.getController("keyboardNavigation").setCellFocusType(),this.callBase.apply(this,arguments)},renderFocusState:function(){var e=this._dataController,t=this.option("focusedRowIndex")||0,n=this.element();n&&!(0,w.focused)(n)&&n.attr("tabIndex",null),(t<0||t>=e.getVisibleRows().length)&&(t=0);var i=this.getCellElements(t);this.option("useKeyboard")&&i&&this.updateFocusElementTabIndex(i)},updateFocusElementTabIndex:function(e){var t=this,n=e.eq(0).parent(),i=t.option("focusedColumnIndex"),a=t.option("tabIndex");(!i||i<0)&&(i=0),o(n)?n.attr("tabIndex",a):t._updateFocusedCellTabIndex(e,i)},_updateFocusedCellTabIndex:function(e,t){var n,i=this,o=i.option("tabIndex"),a=i.getController("keyboardNavigation"),r=a._focusedView,s=e?e.length:-1;if(a._focusedView=i,s>0){s<=t&&(t=s-1);for(var u=t;u=0){var a=e(o.rowIndex);a&&(o.rowIndex+=a,i.focus(i.focus()))}}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(128),u=i(l),c=n(14),d=i(c),h=n(35),f=i(h),p=n(1),g=n(0),_=n(3),m=n(26),v=i(m),y=n(27),b=i(y),x="content",w="content-fixed",C="dx-master-detail-cell",k="dx-first-cell",S="dx-last-cell",I="dx-state-hover",T="dx-col-fixed",D="dx-fixed-columns",E="dx-pointer-events-target",A="dx-pointer-events-none",O="transparent",B="dx-group-row",P=function(e){var t=-1;return(0,_.each)(e,function(e,n){if(n.command===O)return t=e,!1}),t},R=function(e,t,n){var i=0;if(e&&t&&n)for(var o=0;o=n+i?e-i+1:-1}).filter(function(e){return e>=0})}))},_renderTable:function(e){var t,n=this,i=n.getFixedColumns();n._isFixedColumns=!!i.length;var o=n.callBase(e);if(n._isFixedColumns){n._isFixedTableRendering=!0;var a=e&&e.change,r=a&&a.columnIndices;n._correctColumnIndicesForFixedColumns(i,a),t=n._createTable(i),n._renderRows(t,(0,g.extend)({},e,{columns:i})),n._updateContent(t,a),r&&(a.columnIndices=r),n._isFixedTableRendering=!1}else n._fixedTableElement&&n._fixedTableElement.parent().remove(),n._fixedTableElement=null;return o},_renderRow:function(e,t){var n,i=t.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&i&&i.length){n=0;var o=t.row.cells||[];i=i.slice(),t.row.cells=i;for(var a=0;a0){var u=P(i._columnsController.getFixedColumns());n=s.length-lc?n.eq(e).css("height",u):u=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(i).toggleClass(I,o),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(i).toggleClass(I,o))}))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,n=this,i=n.addWidgetPrefix(x),o=n.element(),r=v.default.mozilla?60:0;if(o&&n._isFixedTableRendering){e=o.children("."+i);var l=n.getScrollable();return!e.length&&l&&(e=(0,a.default)("
").addClass(i),s.default.on(e,"scroll",function(e){clearTimeout(n._fixedScrollTimeout),n._fixedScrollTimeout=setTimeout(function(){t=(0,a.default)(e.target).scrollTop(),l.scrollTo({y:t})},r)}),s.default.on(e,u.default.name,function(e){if(l&&(t=l.scrollTop(),l.scrollTo({y:t-e.delta}),l.scrollTop()>0&&l.scrollTop()+l.clientHeight()0&&e.css("visibility","hidden"),i=o}this.callBase(e,t,n,i)},_getSummaryCellIndex:function(e,t){if(this._isFixedTableRendering){var n=P(t);return e>n&&(e+=t[n].colspan-1),e}return this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e);var t=this._isFixedColumns;this.element().toggleClass(D,t),this.option("hoverStateEnabled")&&t&&this._attachHoverEvents()},setRowsOpacity:function(e,t){this.callBase(e,t);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),e,t)},optionChanged:function(e){var t=this;t.callBase(e),"hoverStateEnabled"===e.name&&t._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t=this._fixedTableElement,n=0;if(t&&e.is("td")&&e.closest(t).length){var i=this.getFixedColumns();return(0,_.each)(i,function(t,i){return t!==e[0].cellIndex&&(i.colspan?void(n+=i.colspan):void n++)}),n}return this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e,t){if(this._fixedTableElement&&this._tableElement){var n,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(e),t&&(n=i.focus(),n&&i.focus(n))}},setScrollerSpacing:function(e,t){var n=this,i={marginBottom:0},o=n.element().children("."+this.addWidgetPrefix(w));if(o.length&&n._fixedTableElement){o.css(i),n._fixedTableElement.css(i),i[n.option("rtlEnabled")?"marginLeft":"marginRight"]=e,i.marginBottom=t;var a=n._scrollable&&n._scrollable.option("useNative");(a?o:n._fixedTableElement).css(i)}},_getElasticScrollTop:function(e){var t=0,n=this.getScrollbarWidth(!0);if(e.scrollOffset.top<0)t=-e.scrollOffset.top;else if(e.reachedBottom){var i=this._findContentElement(),o=e.component._container(),a=Math.max(i.height()+n-o.height(),0);t=a-e.scrollOffset.top}return t},_applyElasticScrolling:function(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?b.default.move(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}},_handleScroll:function(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),this.callBase(e)},_updateContentPosition:function(e){this.callBase.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),L=M;e.exports={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:d.default.format("dxDataGrid-columnFixingFix"),unfix:d.default.format("dxDataGrid-columnFixingUnfix"),leftPosition:d.default.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:d.default.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:V,rowsView:F,footerView:L},controllers:function(){var e=function(e,t,n){var i=P(t),o=e.length-t.length;return(0,_.each)(n,function(e,t){t.index>i&&(t.columnIndex+=o,t.index+=o)}),n};return{draggingHeader:{_generatePointsByColumns:function(t){var n=t.columns,i=t.targetDraggingPanel;if(i&&"headers"===i.getName()&&i.isFixedColumns()&&t.sourceColumn.fixed){t.rowIndex||(t.columnElements=i.getFixedColumnElements(0)),t.columns=i.getFixedColumns(t.rowIndex);var o=this.callBase(t);return e(n,t.columns,o),o}return this.callBase(t)},_pointCreated:function(e,t,n,i){var o=this.callBase.apply(this,arguments),a=this._columnHeadersView.getTransparentColumnElement();if(!o&&"headers"===n&&a&&a.length){var r=a.get(0).getBoundingClientRect();return i&&i.fixed?"right"===i.fixedPosition?e.xr.left:e.xr.right}return o}},columnsResizer:{_generatePointsByColumns:function(){var t=this,n=t._columnsController,i=n&&t._columnsController.getVisibleColumns(),o=n&&t._columnsController.getFixedColumns(),a=t._columnHeadersView.getFixedColumnElements(),r=[];t.callBase(),a&&a.length>0&&(r=f.default.getPointsByColumns(a,function(e){return t._pointCreated(e,a.length,o)}),t._pointsByFixedColumns=e(i,o,r))},_pointCreated:function(e,t,n){var i="widget"===this.option("columnResizingMode");if(e.index>0&&e.index=o.right)return this.callBase(this._pointsByFixedColumns,t,n)}return this.callBase(e,t,n)}},keyboardNavigation:{_scrollToElement:function(e){var t=this.getFocusedView();this.callBase(e,t&&t.getFixedColumnsOffset())}}}}()}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return e._columnsController.getColumnId(t)}function a(e){return e.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}function r(e,t){var n,i=(0,l.default)(e),o=t.component.getController("adaptiveColumns");"data"===t.rowType?(n=(0,l.default)("").addClass(o.addWidgetPrefix(W)),c.default.on(n,h.default.addNamespace(p.default.name,F),o.createAction(function(){o.toggleExpandAdaptiveDetailRow(t.key)})),n.appendTo(i)):I.default.setEmptyText(i)}var s=n(2),l=i(s),u=n(5),c=i(u),d=n(8),h=i(d),f=n(19),p=i(f),g=n(1),_=i(g),m=n(26),v=i(m),y=n(40),b=i(y),x=n(39),w=i(x),C=n(142),k=i(C),S=n(35),I=i(S),T=n(31),D=i(T),E=n(7),A=n(4),O=n(3),B=n(0),P="columnHeadersView",R="rowsView",M="footerView",V=[P,R,M],F="dxDataGridAdaptivity",L="adaptiveHidden",H="detailAdaptive",z="dx-field-item-content",N="dx-item-modified",$="hidden-column",W="adaptive-more",G="dx-command-adaptive",j="dx-command-adaptive-hidden",q="dx-adaptive-detail-row",K="dx-adaptive-item-text",U="dx-master-detail-cell",Y="dx-last-data-cell",X="adaptive",Z="batch",Q="row",J="form",ee="popup",te="revert-tooltip",ne=w.default.ViewController.inherit({_isRowEditMode:function(){var e=this._getEditMode();return e===Q},_isItemModified:function(e,t){var n=this._columnsController.getVisibleIndex(e.column.index),i=this._dataController.getRowIndexByKey(t.key),o=this._dataController.items()[i+1];return o&&o.modifiedValues&&_.default.isDefined(o.modifiedValues[n])},_renderFormViewTemplate:function(e,t,n){var i=this,o=e.column,a=i.createAction(function(){c.default.trigger(n,p.default.name)}),r=o.calculateCellValue(t.data),s=I.default.getDisplayValue(o,r,t.data,t.rowType),l=I.default.formatValue(s,o),u=this._editingController.isCellOrBatchEditMode();if(o.allowEditing&&i.option("useKeyboard")&&(n.attr("tabIndex",i.option("tabIndex")),u&&(c.default.off(n,"focus",a),c.default.on(n,"focus",a))),o.cellTemplate){var d=(0,B.extend)({},t,{value:r,displayValue:s,text:l,column:o});i._rowsView.renderTemplate(n,o.cellTemplate,d,!!n.closest((0,E.getWindow)().document).length)}else{var h=n.get(0);o.encodeHtml?h.textContent=l:h.innerHTML=l,n.addClass(K),_.default.isDefined(l)&&""!==l||n.html(" "),i._isRowEditMode()||i._isItemModified(e,t)&&n.addClass(N)}i.getView("rowsView")._cellPrepared(n,t)},_getTemplate:function(e,t){var n=this,i=e.column,o=this.getController("editing");return function(a,r){var s=(0,l.default)(r),u=n._columnsController.getVisibleIndex(i.visibleIndex),c=(0,B.extend)({},t),d=function(){var r=n._isItemEdited(e);c.value=t.row.values[u],r||i.showEditorAlways?o.renderFormEditTemplate(c,e,a.component,s,!r):(c.column=i,c.columnIndex=u,n._renderFormViewTemplate(e,c,s))};d(),c.watch&&c.watch(function(){return{isItemEdited:n._isItemEdited(e),value:t.row.values[u]}},function(){s.contents().remove(),s.removeClass(K),d()})}},_isVisibleColumnsValid:function(e){var t=function(){for(var t=0,n=0;n0},_getAverageColumnsWidth:function(e,t,n){var i=this,o=0,a=0;return t.forEach(function(r){if(!i._isColumnHidden(r)){var s=r.width;_.default.isDefined(s)&&!isNaN(parseFloat(s))?o+=i._isPercentWidth(s)?i._calculatePercentWidth({visibleIndex:r.visibleIndex,columnsCount:t.length,columnsCanFit:n,bestFitWidth:r.bestFitWidth,columnWidth:s,containerWidth:e}):parseFloat(s):a++}}),(e-o)/a},_calculateColumnWidth:function(e,t,n,i){var a,r=o(this,e),s=this._columnsController.columnOption(r,"width"),l=this._columnsController.columnOption(r,"bestFitWidth"),u=n.length;if(s&&"auto"!==s){if(!this._isPercentWidth(s))return s;a=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:u,columnsCanFit:i,bestFitWidth:l,columnWidth:s,containerWidth:t})}else{var c=this.option("columnAutoWidth");a=c||e.command?l:this._getAverageColumnsWidth(t,n,i)}return a},_calculatePercentWidth:function(e){var t=e.visibleIndex=0&&(i=l.eq(u).children().eq(c),this._isCellValid(i)&&i.addClass(t))}},_getEditMode:function(){return this._editingController.getEditMode()},isFormEditMode:function(){var e=this._getEditMode();return e===J||e===ee},hideRedundantColumns:function(e,t,n){var i=this;if(this._hiddenColumns=[],i._isVisibleColumnsValid(t)&&n.length){var a,r,s,l=0,u=i.component.$element(),c=u.width()-i._getCommandColumnsWidth(),d=function(){var e=this;return t.filter(function(t){return!t.command&&0===e._hiddenColumns.filter(function(e){return e.dataField===t.dataField}).length})}.bind(this),h=d(),f=h.length;do{s=!1,l=0;var p=i._calculatePercentWidths(e,t),g=p<100&&0!==p;for(a=0;au.width()){var w=n.pop(),C=i._columnsController.getVisibleIndex(w.index);c+=i._calculateColumnWidth(w,c,h,g),i._addCssClassToColumn(i.addWidgetPrefix($),C),e[C]=L,this._hiddenColumns.push(w),h=d()}}while(s&&h.length>1&&n.length);f===h.length&&i._hideAdaptiveColumn(e,t)}else i._hideAdaptiveColumn(e,t)},getItemContentByColumnIndex:function(e){for(var t,n=0;n").appendTo(i),k.default,(0,B.extend)(a,o,{customizeItem:function(e){var i=e.column||n._columnsController.columnOption(e.name||e.dataField);i&&(e.label=e.label||{},e.label.text=e.label.text||i.caption,e.column=i,e.template=n._getTemplate(e,t,n.updateForm.bind(n))),o.customizeItem&&o.customizeItem.call(this,e)},onContentReady:function(e){o.onContentReady&&o.onContentReady.call(this,e),n._$itemContents=i.find("."+z)}}))},hasAdaptiveDetailRowExpanded:function(){return _.default.isDefined(this._dataController.adaptiveExpandedKey())},updateForm:function(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&_.default.isDefined(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())},updateHidingQueue:function(e){var t,n,i=this,o=e.filter(function(e){return e.visible&&!e.type&&!e.fixed&&!(_.default.isDefined(e.groupIndex)&&e.groupIndex>=0)});if(i._hidingColumnsQueue=[],i.option("allowColumnResizing")&&"widget"===i.option("columnResizingMode"))return i._hidingColumnsQueue;for(n=0;n=0&&(t=!0,i._hidingColumnsQueue[o[n].hidingPriority]=o[n]);if(t)i._hidingColumnsQueue.reverse();else if(i.option("columnHidingEnabled"))for(n=0;n0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var e=this;e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._columnsController.addCommandColumn({type:X,command:X,visible:!0,adaptiveHidden:!0,cssClass:G,alignment:"center",width:"auto",cellTemplate:r,fixedPosition:"right"}),e._columnsController.columnsChanged.add(function(){var t=!!e.updateHidingQueue(e._columnsController.getColumns()).length;e._columnsController.columnOption("command:adaptive","adaptiveHidden",!t,!0)}),e._editingController=e.getController("editing"),e._hidingColumnsQueue=[],e._hiddenColumns=[],e.createAction("onAdaptiveDetailRowPreparing"),e.callBase()},optionChanged:function(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),this.callBase(e)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(e){return this._dataController.adaptiveExpandedKey()&&(0,A.equalByValue)(this._dataController.adaptiveExpandedKey(),e)},expandAdaptiveDetailRow:function(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}});e.exports={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:ne},extenders:{views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column;return e.rowType===H&&"detail"===n.command?function(e,n){t._adaptiveColumnsController.createFormByHiddenColumns((0,l.default)(e),n)}:t.callBase(e)},_createRow:function(e){var t=this.callBase(e);return e&&e.rowType===H&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass(q),t},_renderCells:function(e,t){this.callBase(e,t);var n=this._adaptiveColumnsController.getHidingColumnsQueue().length,i=this._adaptiveColumnsController.getHiddenColumns().length;n&&!i&&a(e).last().addClass(Y)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+z);if(t.length&&t.closest(this.component.$element()).length){var n=t.length?t.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return this.callBase(e)},_cellPrepared:function(e,t){this.callBase.apply(this,arguments),t.row.rowType!==H&&t.column.visibleWidth===L&&e.addClass(this.addWidgetPrefix($))},_getCellElement:function(e,t){var n=this._dataController.items()[e];return n&&n.rowType===H?this._adaptiveColumnsController.getItemContentByColumnIndex(t):this.callBase(e,t)},getContextMenuItems:function(e){if(e.row&&"detailAdaptive"===e.row.rowType){var t=this.component.getView("columnHeadersView"),n=(0,l.default)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=n?n.column:e.column,t.getContextMenuItems&&t.getContextMenuItems(e)}return this.callBase&&this.callBase(e)},isClickableElement:function(e){var t=!!this.callBase&&this.callBase(e);return t||!!e.closest("."+G).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{"export":{_updateColumnWidth:function(e,t){this.callBase(e,e.visibleWidth===L?e.bestFitWidth:t)}},columnsResizer:{_pointCreated:function(e,t,n){var i=this.callBase(e,t,n),o=n[e.columnIndex]||{},a=this._getNextColumnIndex(e.columnIndex),r=n[a]||{},s=a!==e.columnIndex+1&&r.command,l=o.visibleWidth===L||s;return i||l},_getNextColumnIndex:function(e){for(var t=this._columnsController.getVisibleColumns(),n=this.callBase(e);t[n]&&t[n].visibleWidth===L;)n++;return n}},draggingHeader:{_pointCreated:function(e,t,n,i){var o=this.callBase(e,t,n,i),a=t[e.columnIndex-1]||{},r=a.visibleWidth===L;return o||r}},editing:{_isRowEditMode:function(){return this.getEditMode()===Q},_getFormEditItemTemplate:function(e,t){return this.getEditMode()!==Q&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):this.callBase(e,t)},_closeEditItem:function(e){var t=e.closest("."+z),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=t.length?t.first().data("dx-form-item"):null,o=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(n,o)||this.callBase(e)},_beforeUpdateItems:function(e,t){if(!this._adaptiveController.isFormEditMode()&&this._adaptiveController.hasHiddenColumns()){var n=this._dataController.items(),i=n[t],o=I.default.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),o>=0&&t>o&&this._editRowIndex--,o>=0&&e.push(o+1),e.push(t+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(e){this.callBase(e),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(e.key,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){this.callBase(),this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()&&this.getController("validating").validate(!0)&&this._cancelEditAdaptiveDetailRow()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(e){var t=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===H?e.rowIndex-1:e.rowIndex+1),t},_beforeCloseEditCellInBatchMode:function(e){var t=this._dataController._adaptiveExpandedKey;if(t){var n=I.default.getIndexByKey(t,this._dataController.items());n>-1&&e.unshift(n)}},editRow:function(e){this._adaptiveController.isFormEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},deleteRow:function(e){var t=this._dataController.getKeyByRowIndex(e);this.getEditMode()===Z&&this._adaptiveController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_updateScrollableForIE:function(){var e=this;v.default.msie&&parseInt(v.default.version)<=11&&(this._updateScrollableTimeoutID=setTimeout(function(){e.getView("rowsView")._updateScrollable()}))},_correctColumnWidths:function(e,t){var n=this._adaptiveColumnsController,i=this.option("columnAutoWidth"),o=n.getHiddenColumns(),a=n.updateHidingQueue(this._columnsController.getColumns());n.hideRedundantColumns(e,t,a);var r=n.getHiddenColumns();return n.hasAdaptiveDetailRowExpanded()&&o.length!==r.length&&n.updateForm(r),!r.length&&n.collapseAdaptiveDetailRow(),i&&a.length&&!r.length&&this._updateScrollableForIE(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(e){e&&this._adaptiveColumnsController._removeCssClassesFromColumns(),this.callBase(e)},_needStretch:function(){var e=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(e,t){var n=this,i=t.changeType;if(e=n.callBase.apply(n,arguments),"loadingAll"===i||!_.default.isDefined(n._adaptiveExpandedKey))return e;var o=I.default.getIndexByKey(n._adaptiveExpandedKey,e);if(o>=0){var a=e[o];e.splice(o+1,0,{visible:!0,rowType:H,key:a.key,data:a.data,modifiedValues:a.modifiedValues,isNewRow:a.isNewRow,values:a.values})}else"refresh"===i&&(n._adaptiveExpandedKey=void 0);return e},_getRowIndicesForExpand:function(e){var t=this.callBase.apply(this,arguments);if(this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(e)){var n=t[t.length-1];t.push(n+1)}return t},adaptiveExpandedKey:function(e){return _.default.isDefined(e)?void(this._adaptiveExpandedKey=e):this._adaptiveExpandedKey},toggleExpandAdaptiveDetailRow:function(e,t){var n=this,i=I.default.getIndexByKey(n._adaptiveExpandedKey,n._items),o=I.default.getIndexByKey(e,n._items);i>=0&&i===o&&!t&&(e=void 0,o=-1),n._adaptiveExpandedKey=e,i>=0&&i++,o>=0&&o++;var a=n.getRowIndexDelta();n.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[i-a,o-a]})},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix(te)}},columns:{_isColumnVisible:function(e){return this.callBase(e)&&!e.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(e){return this.callBase.apply(this,arguments)&&!e.hasClass(this.addWidgetPrefix($))},_processNextCellInMasterDetail:function(e){this.callBase(e);var t=this._editingController.isCellOrBatchEditMode();if(!this._isInsideEditForm(e)&&e&&t){var n=function t(){c.default.off(e,"focus",t),c.default.trigger(e,"dxclick")};c.default.on(e,"focus",n)}},_handleTabKeyOnMasterDetailCell:function(e,t){var n=this.callBase(e,t),i=this._getFocusedCell(),o=i&&i.parent();if(!n&&o&&o.length){var r=a(o),s="next"===t?r.last():r.first(),l=o.get(0).rowIndex,u=this._adaptiveController,c=this._dataController.getKeyByRowIndex("next"===t?l:l-1),d=i&&s&&i.get(0)===s.get(0);return u.isAdaptiveDetailRowExpanded(c)&&d}return n},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}}},function(e,t,n){var i=n(7),o=n(378),a=50,r={_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(e){var t=this,n=this.getScrollable(),i=e.scrollOffset.left;t.callBase.apply(t,arguments),t.option("rtlEnabled")&&n&&(i=n.$content().width()-n.$element().width()-i),t._columnsController.setScrollPosition(i)}},s={_renderCore:function(){var e=this,t=e._scrollLeft;e.callBase.apply(e,arguments),e._columnsController.isVirtualMode()&&t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))}},l=function(){var e=function(e){return e.map(function(e){return e.visibleWidth||parseFloat(e.width)||a})},t={init:function(){var e=this;e.callBase(),e._beginPageIndex=0,e._endPageIndex=0,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(t){for(var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0,a=0;a=t)return Math.floor(a/this.getColumnPageSize());o+=i[a]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||this.component.$element().outerWidth()},getEndPageIndex:function(t){var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0;t+=this.getTotalWidth();for(var a=0;a=t)return Math.ceil(a/this.getColumnPageSize());o+=i[a]}return Math.ceil(i.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,length:1}}),this._renderTime=new Date-e},setScrollPosition:function(e){var t=this,n=t.option("scrolling.columnRenderingThreshold");t._renderTime>n?(clearTimeout(t._changedTimeout),t._changedTimeout=setTimeout(function(){t._setScrollPositionCore(e)},t.option("scrolling.timeout"))):t._setScrollPositionCore(e)},isVirtualMode:function(){return(0,i.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){var t=this;if(t.isVirtualMode()){var n=t.getBeginPageIndex(e),i=t.getEndPageIndex(e),o=en:t._endPageIndex1&&"number"==typeof t){for(var w=[],C=0;C=a)break}r[n]=c}}function o(e,t,n){var o=[];i(e,function(e,i,r){var s,l=e,u=l.colspan||1,c=i+u-1>=t&&in&&(s=n-i),s!==u&&(l=(0,a.extend)({},l,{colspan:s})),o[r].push(l);else if(i>n)return!1});for(var r=0;r1||a.rowspan>1){for(var s=n._cloneItem(a),l=1;l=o.length&&(t++,i=0),a&&(a.colspan=n._defaultSetter(a.colspan),a.rowspan=n._defaultSetter(a.rowspan)),a}}(e),r=a(),s=0;r;){for(var l=0;l=0)if(this._isLocalRowIndex(e))o();else{var a=Math.floor(e/n.pageSize());(0,h.when)(n.pageIndex(a),n.waitReady()).done(function(){o()})}},_isLocalRowIndex:function(e){var t=this.getController("data"),n=this.getController("keyboardNavigation")._isVirtualScrolling();if(n){var i=Math.floor(e/t.pageSize()),o=t.virtualItemsCount(),a=o?o.begin:-1,r=t.getVisibleRows().length+t.getRowIndexOffset(),s=Math.ceil(r/t.pageSize());return a<=e&&s>i}return!0},_setFocusedRowKeyByIndex:function(e){var t=this.getController("data");if(this._isValidFocusedRowIndex(e)){var n=Math.min(e-t.getRowIndexOffset(),t.items().length-1),i=t.getKeyByRowIndex(n);void 0===i||this.isRowFocused(i)||this.option("focusedRowKey",i)}},_focusRowByKey:function(e){void 0===e?this._resetFocusedRow():this._navigateToRow(e,!0)},_resetFocusedRow:function(){void 0===this.option("focusedRowKey")&&this.option("focusedRowIndex")<0||(this.option("focusedRowKey",void 0),this.getController("keyboardNavigation").setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:void 0}))},_isValidFocusedRowIndex:function(e){var t=this.getController("data"),n=t.getVisibleRows()[e];return!n||"data"===n.rowType||"group"===n.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(e){this._navigateToRow(e)},_navigateToRow:function(e,t){var n=this,i=this.getController("data"),o=this.option("focusedRowIndex"),a=new h.Deferred;if(n.option("skipFocusedRowNavigation",!t),void 0===e||!i.dataSource())return a.reject().promise();var r=n._getFocusedRowIndexByKey(e),s=i.getDataSource().paginate();return!s||o>=0&&o===r?n._navigateTo(e,a,t):i.getPageIndexByKey(e).done(function(o){return o<0?void a.resolve(-1):void(o===i.pageIndex()?i.reload().done(function(){n.isRowFocused(e)?a.resolve(n._getFocusedRowIndexByKey(e)):n._navigateToVisibleRow(e,a,t)}).fail(a.reject):i.pageIndex(o).done(function(){n._navigateTo(e,a,t)}).fail(a.reject))}).always(function(){return n.option("skipFocusedRowNavigation",!1)}).fail(a.reject),a.promise()},_navigateTo:function(e,t,n){var i=this.getController("data").getRowIndexByKey(e),o="virtual"===this.option("scrolling.rowRenderingMode");o&&i<0?this._navigateToVirtualRow(e,t,n):this._navigateToVisibleRow(e,t,n)},_navigateToVisibleRow:function(e,t,n){if(n)this._triggerUpdateFocusedRow(e,t);else{var i=this.getView("rowsView"),o=this.getController("data").getRowIndexByKey(e),a=i.getRow(o);i._scrollToElement(a)}},_navigateToVirtualRow:function(e,t,n){var i=this,o=this.getController("data"),a=o._rowsScrollController,r=(0,u.getIndexByKey)(e,o.items(!0)),s=i.getView("rowsView").getScrollable();if(a&&s&&r>=0){var l=r+o.getRowIndexOffset()-o.getRowIndexDelta(),c=a.getItemOffset(l);if(n){var d=function n(){i.component.off("contentReady",n),i._triggerUpdateFocusedRow(e,t)};i.component.on("contentReady",d)}s.scrollTo({y:c})}},_triggerUpdateFocusedRow:function(e,t){var n=this.getController("data"),i=this._getFocusedRowIndexByKey(e);if(this._isValidFocusedRowIndex(i)){if(this.getController("keyboardNavigation").setFocusedRowIndex(i),this.option("focusedRowEnabled"))n.updateItems({changeType:"updateFocusedRow",focusedRowKey:e});else{var o=n.getRowIndexByKey(e),a=this.getView("rowsView");a._scrollToElement(a.getRow(o))}t&&t.resolve(i)}else t&&t.resolve(-1)},_getFocusedRowIndexByKey:function(e){var t=this.getController("data"),n=t.getRowIndexByKey(e);return n>=0?n+t.getRowIndexOffset():-1},_focusRowByKeyOrIndex:function(){var e=this,t=this.option("focusedRowKey"),n=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),o=this.getController("data");if(void 0!==t){var a=o.getRowIndexByKey(t);a>=0?(i._isVirtualScrolling()&&(n=a+o.getRowIndexOffset()),i.setFocusedRowIndex(n),this._triggerUpdateFocusedRow(t)):this._navigateToRow(t,!0).done(function(t){n>=0&&t<0&&e._focusRowByIndex()})}else n>=0&&this.getController("focus")._focusRowByIndex(n)},isRowFocused:function(e){var t=this.option("focusedRowKey");if(void 0!==t)return(0,c.equalByValue)(e,this.option("focusedRowKey"))},updateFocusedRow:function(e){var t,n,i=this,o=i._dataController.getRowIndexByKey(e.focusedRowKey),r=i.getView("rowsView");(0,l.each)(r.getTableElements(),function(r,s){n=(0,a.default)(s),i._clearPreviousFocusedRow(n,o);var l=0===r;t=i._prepareFocusedRow(e.items[o],n,o),l&&i.getController("keyboardNavigation")._fireFocusedRowChanged(t)})},_clearPreviousFocusedRow:function(e,t){var n=this,i=function(t,i){var o=(0,a.default)(i).closest(".".concat(n.addWidgetPrefix(g)));return e.is(o)},o=e.find(p).filter(i);if(o.removeClass(f).removeClass(_).removeAttr("tabindex"),o.children("td").removeAttr("tabindex"),0!==t){var r=(0,a.default)(this.getView("rowsView").getRowElement(0));r.removeClass(_).removeAttr("tabIndex")}},_prepareFocusedRow:function(e,t,n){var i,o=this.option("tabindex")||0,r=this.getView("rowsView");return!e||"data"!==e.rowType&&"group"!==e.rowType||(i=(0,a.default)(r._getRowElements(t).eq(n)),i.addClass(f).attr("tabindex",o),r._scrollToElement(i)),i}}}()),e.exports={defaultOptions:function(){return{focusedRowEnabled:!1,focusedRowKey:void 0,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:t.FocusController},extenders:{controllers:{keyboardNavigation:{init:function(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,d.isDefined)(e)&&(this._focusedCellPosition.rowIndex=this.option("focusedRowIndex")),(0,d.isDefined)(t)&&(this._focusedCellPosition.columnIndex=this.option("focusedColumnIndex"))},setFocusedRowIndex:function(e){this.callBase(e);var t=this.getController("data").getVisibleRows()[e];t&&t.isNewRow||this.option("focusedRowIndex",e)},setFocusedColumnIndex:function(e){this.callBase(e),this.option("focusedColumnIndex",e)},_escapeKeyHandler:function(e,t){return t||!this.option("focusedRowEnabled")?void this.callBase(e,t):void(this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0)))},_updateFocusedCellPosition:function(e,t){var n=this.option("focusedRowIndex"),i=this.option("focusedColumnIndex");this.callBase(e,t)&&this._fireFocusedCellChanged(e,i,n)}},editorFactory:{renderFocusOverlay:function(e,t){var n,i=this.getController("keyboardNavigation"),o=this.option("focusedRowEnabled"),a=this.getController("editing"),r="row"===i._getElementType(e);o&&i.isRowFocusType()&&!a.isEditing()?o&&r&&!e.hasClass(f)&&(n=i.getFirstValidCellInRow(e),i.focus(n)):this.callBase(e,t)}},columns:{getSortDataSourceParameters:function(){var e=this,t=this.callBase.apply(this,arguments),n=this.getController("data"),i=n._dataSource,o=n.store(),a=o&&o.key(),r=i&&i.remoteOperations()||{},s=Object.keys(r).every(function(e){return!r[e]});if(this.option("focusedRowEnabled")&&a){a=Array.isArray(a)?a:[a];var l=a.filter(function(t){return!e.columnOption(t,"sortOrder")});l.length&&(t=t||[],s?t.push({selector:i.getDataIndexGetter(),desc:!1}):l.forEach(function(e){return t.push({selector:e,desc:!1})}))}return t}},data:{_applyChange:function(e){if(!e||"updateFocusedRow"!==e.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(e){var t,n=this.option("skipFocusedRowNavigation");if(this.option("focusedRowEnabled")&&!n&&this._dataSource){var i="update"===e.changeType&&e.repaintChangesOnly;t=i&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0,t&&this.callBase(e),("refresh"===e.changeType||t)&&this.processUpdateFocusedRow()}t||this.callBase(e)},processUpdateFocusedRow:function(){var e=this._prevPageIndex,t=this.pageIndex(),n=this._prevRenderingPageIndex||0,i=this._rowsScrollController?this._rowsScrollController.pageIndex():0,o=this._dataSource.operationTypes()||{},a=this.getController("focus"),r=o.reload,s=this.getController("keyboardNavigation")._isVirtualScrolling(),l=this.option("focusedRowKey"),u=void 0!==e&&e!==t,c=i!==n;this._prevPageIndex=t,this._prevRenderingPageIndex=i,r&&void 0!==l?a._navigateToRow(l,!0).done(function(e){e<0&&a._focusRowByIndex()}):u?!s&&this.option("focusedRowIndex")>=0&&a._focusRowByIndex():c||a._focusRowByKeyOrIndex()},getPageIndexByKey:function(e){var t=this,n=new h.Deferred;return t.getGlobalRowIndexByKey(e).done(function(e){n.resolve(e>=0?Math.floor(e/t.pageSize()):-1)}).fail(n.reject),n.promise()},getGlobalRowIndexByKey:function(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)},_calculateGlobalRowIndexByFlatData:function(e,t,n){var i=this,o=new h.Deferred,a=i._dataSource,r=i._generateFilterByKey(e);return a.load({filter:i._concatWithCombinedFilter(r),skip:0,take:1}).done(function(s){s.length>0?(r=i._generateOperationFilterByKey(e,s[0],n),a.load({filter:i._concatWithCombinedFilter(r,t),skip:0,take:1,requireTotalCount:!0}).done(function(e,t){o.resolve(t.totalCount)})):o.resolve(-1)}),o.promise()},_concatWithCombinedFilter:function(e,t){var n=this.getCombinedFilter();return(0,u.combineFilters)([e,n,t])},_generateBooleanFilter:function(e,t,n){var i;return t===!1?i=[e,"=",!!n.desc||null]:(t===!0?!n.desc:n.desc)&&(i=[e,"<>",t]),i},_generateOperationFilterByKey:function(e,t,n){var i=this,o=i._dataSource,a=i._generateFilterByKey(e,"<"),r=i._columnsController.getSortDataSourceParameters(!o.remoteOperations().filtering);if(n){var s=i._columnsController.getGroupDataSourceParameters(!o.remoteOperations().filtering);s&&(r=r?s.concat(r):s)}return r&&r.slice().reverse().forEach(function(e){var n,o=e.selector;n="function"==typeof o?o:i._columnsController.columnOption(o,"selector");var r=n?n(t):t[o];if(a=[[o,"=",r],"and",a],null===r||(0,d.isBoolean)(r)){var s=i._generateBooleanFilter(o,r,e);s&&(a=[s,"or",a])}else a=[[o,e.desc?">":"<",r],"or",a]}),a},_generateFilterByKey:function(e,t){var n=this._dataSource.key(),i=[];if(t||(t="="),Array.isArray(n))for(var o=0;o0&&i.push("and"),i.push([n[o],t,a]))}else i=[n,t,e];return i}}},views:{rowsView:{_createRow:function(e){var t=this.callBase(e);return this.option("focusedRowEnabled")&&e&&this.getController("focus").isRowFocused(e.key)&&t.addClass(f),t},_checkRowKeys:function(e){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(e):this.callBase(e)},updateFocusElementTabIndex:function(e){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex():this.callBase(e)},_setFocusedRowElementTabIndex:function(){var e=this,t=e.option("focusedRowKey"),n=e.option("tabIndex")||0,i=e._dataController.getRowIndexByKey(t),o=e.option("focusedColumnIndex"),r=e._findRowElementForTabIndex();if(r&&(e._scrollToFocusOnResize=e._scrollToFocusOnResize||function(){r=e._findRowElementForTabIndex(),r&&(e._scrollToElement(r),e.resizeCompleted.remove(e._scrollToFocusOnResize))},(0,a.default)(r).attr("tabIndex",n),i>=0)){o<0&&(o=0),i+=e.getController("data").getRowIndexOffset(),e.getController("keyboardNavigation").setFocusedCellPosition(i,o);var s=e.component.getController("data")._dataSource,l=s&&s.operationTypes();l&&!l.paging&&(e.resizeCompleted.remove(e._scrollToFocusOnResize),e.resizeCompleted.add(e._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var e=this.option("focusedRowKey"),t=this._dataController.getRowIndexByKey(e);return(0,a.default)(this.getRowElement(t>=0?t:0))},_scrollToElement:function(e){var t=this.getScrollable();t&&t.scrollToElement(e)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(30),a=i(o),r=n(17),s=i(r),l=n(4),u=i(l),c=n(1),d=i(c),h=n(3),f=n(20),p=i(f),g=n(0),_=n(35),m=i(_),v=n(69),y=i(v),b=n(42),x=i(b),w=n(339),C=i(w),k=n(6),S=n(82),I="id",T=function(e){return"fullBranch"===e.option("filterMode")},D=C.default.inherit(function(){var e=function(e,t){var n=[];return t.forEach(function(t){var i=e.getNodeByKey(t);i&&i.children.forEach(function(e){n.push(e.key)})}),n};return{_createKeyGetter:function(){var e=this.getKeyExpr();return p.default.compileGetter(e)},_createKeySetter:function(){var e=this.getKeyExpr();return d.default.isFunction(e)?e:p.default.compileSetter(e)},_createParentIdGetter:function(){return p.default.compileGetter(this.option("parentIdExpr"))},createParentIdSetter:function(){var e=this.option("parentIdExpr");return d.default.isFunction(e)?e:p.default.compileSetter(e)},_createItemsGetter:function(){return p.default.compileGetter(this.option("itemsExpr"))},_createHasItemsGetter:function(){var e=this.option("hasItemsExpr");return e&&p.default.compileGetter(e)},_createHasItemsSetter:function(){var e=this.option("hasItemsExpr");return d.default.isFunction(e)?e:e&&p.default.compileSetter(e)},_updateIndexByKeyObject:function(e){var t=this;t._indexByKey={},(0,h.each)(e,function(e,n){t._indexByKey[n.key]=e})},_calculateHasItems:function(e,t){var n,i=this,o=t.storeLoadOptions.parentIds,a=T(i);return i._hasItemsGetter&&(o||!t.storeLoadOptions.filter||a)&&(n=i._hasItemsGetter(e.data)),void 0===n&&(n=!(i._isChildrenLoaded[e.key]||!t.remoteOperations.filtering||!o&&!a)||(t.loadOptions.filter&&!t.remoteOperations.filtering&&a?e.children.length:e.hasChildren)),!!n},_createVisibleItemsByNodes:function(e,t){for(var n=this,i=[],o=0;of&&(o=function(e){return c[s._keyGetter(e)]},a=h),p=(0,g.extend)({},p,{filter:a?null:o});var b=t.fullData?new y.default(t.fullData):s._dataSource.store();return b.load(p).done(function(r){r.length?(a&&(r=(0,x.default)(r).filter(o).toArray()),s._loadParentsOrChildren(i(r),t,n).done(d.resolve).fail(d.reject)):d.resolve(e)}).fail(d.reject),d},_loadParents:function(e,t){return this._loadParentsOrChildren(e,t)},_loadChildrenIfNeed:function(e,t){return T(this)?this._loadParentsOrChildren(e,t,!0):(0,k.when)(e)},_updateHasItemsMap:function(e){var t=e.storeLoadOptions.parentIds;if(t)for(var n=0;n=0?Math.min(e.index,o.children.length):o.children.length,n.push({type:e.type,data:r,index:s})}}return n},_applyRemove:function(e){var t=[],n=this.getNodeByKey(e.key),i=n&&n.parent;if(i){var o=i.children.indexOf(n);o>=0&&(i.children.splice(o,1),i.children.length||this._setHasItems(i,!1),t.push(e),t=t.concat(this.getChildNodeKeys(e.key).map(function(t){return{type:e.type,key:t}})))}return t},_handleDataLoaded:function(e){var t=e.data=this._convertDataToPlainStructure(e.data);!e.remoteOperations.filtering&&e.loadOptions.filter&&(e.fullData=(0,S.queryByOptions)((0,x.default)(e.data),{sort:e.loadOptions&&e.loadOptions.sort}).toArray()),this._updateHasItemsMap(e),this.callBase(e),t.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(e,t,n,i){var o=T(this);i=i||0;for(var r=0;re.data.length&&(n=e.fullData,t=t||e.data),this._rootNode=this._createNodesByItems(n,t),!this._rootNode)return void(e.data=(new k.Deferred).reject(s.default.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,e,o),this._isNodesInitializing=!0,(e.collapseVisibleNodes||o.length)&&this.option("expandedRowKeys",o),this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1,this._isReload=!1}n=this._createVisibleItemsByNodes(this._rootNode.children,e),e.data=n,this._totalItemsCount=n.length},_handleDataLoadedCore:function(e){var t,n=this,i=e.data,o=n.callBase,a=e.storeLoadOptions.filter||e.loadOptions.filter,r=n.option("filterMode"),s=e.storeLoadOptions.parentIds,l=a&&(!s||!s.length)&&"standard"!==r;if(!e.isCustomLoading){if(l){var u=e.data=new k.Deferred;return"matchOnly"===r&&(t=i),n._loadParents(i,e).done(function(i){n._loadChildrenIfNeed(i,e).done(function(i){e.data=i,n._processTreeStructure(e,t),o.call(n,e),u.resolve(e.data)})}).fail(u.reject)}n._processTreeStructure(e)}n.callBase(e)},_handlePush:function(e){var t=this._dataSource._reshapeOnPush,n=t&&!!e.length;n&&(this._isReload=!0),this.callBase.apply(this,arguments)},init:function(e,t){this.callBase.apply(this,arguments);var n=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this._createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===n&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var e=this.store(),t=e&&e.key(),n=this.option("keyExpr");if(d.default.isDefined(t)&&d.default.isDefined(n)&&!u.default.equalByValue(t,n))throw s.default.Error("E1044");return t||n||I},keyOf:function(e){return this._keyGetter&&this._keyGetter(e)},parentKeyOf:function(e){return this._parentIdGetter&&this._parentIdGetter(e)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount},isRowExpanded:function(e,t){if(t){var n=t.isExpandedByKey;return n||(n=t.isExpandedByKey={},this.option("expandedRowKeys").forEach(function(e){n[e]=!0})),!!n[e]}var i=m.default.getIndexByKey(e,this.option("expandedRowKeys"),null);return i>=0},_changeRowExpandCore:function(e){var t=this.option("expandedRowKeys"),n=m.default.getIndexByKey(e,t,null);n<0?t.push(e):t.splice(n,1),this.option("expandedRowKeys",t)},changeRowExpand:function(e){return this._changeRowExpandCore(e),this._isNodesInitializing?(new k.Deferred).resolve():this.load()},getNodeByKey:function(e){if(this._nodeByKey)return this._nodeByKey[e]},getNodeLeafKeys:function(){var e=this,t=[],n=e._rootNode?[e._rootNode.key]:[];return n.forEach(function(n){var i=e.getNodeByKey(n);i&&a.default.foreachNodes([i],function(e){!e.children.length&&t.push(e.key)})}),t},getChildNodeKeys:function(e){var t=this.getNodeByKey(e),n=[];return t&&a.default.foreachNodes(t.children,function(e){n.push(e.key)}),n},loadDescendants:function(t,n){var i=this,o=new k.Deferred,a=i.remoteOperations();if(t=d.default.isDefined(t)?Array.isArray(t)?t:[t]:i.getNodeLeafKeys(),!a.filtering||!t.length)return o.resolve();var r=i._dataSource._createStoreLoadOptions();return r.parentIds=t,i.load(r).done(function(){if(!n){var a=e(i,t);if(a.length)return void i.loadDescendants(a,n).done(o.resolve).fail(o.reject)}o.resolve()}).fail(o.reject),o.promise()},forEachNode:function(){var e,t=[];if(1===arguments.length){e=arguments[0];var n=this.getRootNode();t=n&&n.children||[]}else 2===arguments.length&&(e=arguments[1],t=arguments[0],t=Array.isArray(t)?t:[t]);a.default.foreachNodes(t,e)}}}());e.exports={extend:function(e){D=D.inherit(e)},create:function(e){return new D(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return l(e)||s(e)||r(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function s(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n{0}",e):""}function n(e,t,n){var i=t?t:e;return"Descendants({"+i+"}, "+n+", SELF_AND_BEFORE)"}function i(e){return(e.hierarchyName||e.dataField)+".[All]"}function a(e){var t=e.dataField+".allMembers",n=e.searchValue;return n&&(n=n.replace(/'/g,"''"),t="Filter("+t+", instr("+e.dataField+".currentmember.member_caption,'"+n+"') > 0)"),t}function r(e){var t=e.join(",");return e.length>1?(0,g.format)(ce,t):t}function s(e){var t=e.join(",");return e.length>1?"Union("+t+")":t}function l(e,t,o,s,l,u,c,d){for(var h,f,p,_=[],m=u[c],v=[],y=s;y<=t;y++){var b=m[y],x=b.dataField,w=m[y-1]&&m[y-1].hierarchyName,C=b.hierarchyName,k=!C||!m[y+1]||m[y+1].hierarchyName!==C,S=e.length+o+s;if(h=null,v.push(b),y=d.length;v--)a[v].hierarchyName&&(o.visibleLevels[a[v].hierarchyName]=o.visibleLevels[a[v].hierarchyName]||[],o.visibleLevels[a[v].hierarchyName].push(a[v].dataField))}if(l.length){var y=s(l);"rows"===t&&e.rowTake&&(y=(0,g.format)(oe,y,e.rowSkip>0?e.rowSkip+1:0,e.rowSkip>0?e.rowTake:e.rowTake+1)),"columns"===t&&e.columnTake&&(y=(0,g.format)(oe,y,e.columnSkip>0?e.columnSkip+1:0,e.columnSkip>0?e.columnTake:e.columnTake+1));var x="[DX_".concat(t,"]");_.push(c(y,i,x)),e.totalsOnly&&_.push(c("COUNT(".concat(x,")"),i,"[DX_".concat(t,"_count]"),"member"))}return"columns"===t&&n.length&&!e.skipValues&&_.push(m),(0,g.format)(ue,r(_),t); +}function f(e){var t=[];return(0,b.each)(e,function(e,n){var i,o=n.dataField,r=[],s=n.filterValues||[];n.hierarchyName&&(0,y.isNumeric)(n.groupIndex)||((0,b.each)(s,function(e,t){var i=o+"."+H(Array.isArray(t)?t[t.length-1]:t,o);"exclude"===n.filterType&&(r.push(i+".parent"),i="Descendants("+i+")"),r.push(i)}),s.length&&(i=(0,g.format)(de,r.join(",")),"exclude"===n.filterType&&(i="Except("+a(n)+","+i+")"),t.push(i)))}),t.length?r(t):""}function p(e,t,n,i){var o="["+i+"]";return(0,b.each)([e,t,n],function(e,t){t&&(o=(0,g.format)(ie,t+"on 0",o))}),o}function I(e,t,n,i,o,a,r){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l="",u=(t.length?"with "+t.join(" "):"")+" ";if(e.length){var c;if(s.totalsOnly){var d=[];i.length&&d.push("[DX_rows_count]"),n.length&&d.push("[DX_columns_count]"),c="{".concat(d.join(","),"} on columns")}else c=e.join(",");l=u+(0,g.format)(ne,p(f(n),f(i),f(o||[]),r),a.length?(0,g.format)(se,a.join(",")):"",c)}return l}function T(e,t){return(0,b.map)(t,function(t){return(0,y.isString)(t.expression)&&c(t.expression,e,t.dataField,"member"),t.dataField})}function D(e,t,n,i){(0,b.each)(i,function(i,o){var a=t[n][i];a.hierarchyName&&a.hierarchyName===t[n][i+1].hierarchyName||e.push(a.dataField+"."+H(o,a.dataField))})}function E(e,t,n){var i=e.columns||[],o=e.rows||[],a=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],r=[],s=[],l=[],u=T(s,a);return n.measureCount=e.skipValues?1:a.length,n.visibleLevels={},e.headerName&&e.path&&D(r,e,e.headerName,e.path),e.headerName&&e.oppositePath&&D(r,e,"rows"===e.headerName?"columns":"rows",e.oppositePath),(i.length||u.length)&&l.push(h(e,"columns",u,s,n)),o.length&&l.push(h(e,"rows",u,s,n)),I(l,s,i,o,e.filters,r,t,e)}function A(e,t,n){(0,b.each)(n,function(n,i){var o=t[n];o.hierarchyName&&(t[n+1]||{}).hierarchyName===o.hierarchyName||e.push(o.dataField+"."+H(i,o.dataField))})}function O(e,t,n){var i=e.columns||[],o=e.rows||[],a=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],r=[],s=[],l=[],u=T(s,a),c=n.maxRowCount,d=n.customColumns||[],h=d.length>0?" return "+d.join(","):"";A(r,i,n.columnPath||[]),A(r,o,n.rowPath||[]),(i.length||i.length||u.length)&&l.push([(u[n.dataIndex]||u[0])+" on 0"]);var f=I(l,s,i,o,e.filters,r,t);return f?"drillthrough"+(c>0?" maxrows "+c:"")+f+h:f}function B(e){return parseInt(e,10)}function P(e){return(0,y.isNumeric)(e)?parseFloat(e):e}function R(e,t){return(e.getElementsByTagName(t)||[])[0]}function M(e,t){return F(R(e,t))}function V(e,t){var n=[];for((0,b.each)(e.getElementsByTagName("Axis"),function(e,i){var o=i.getAttribute("name"),a=[],r=0;0===o.indexOf("Axis")&&(0,y.isNumeric)(B(o.substr(4)))&&(n.push(a),(0,b.each)(i.getElementsByTagName("Tuple"),function(e,i){var o=i.childNodes,s=0,l=[],u=t?o.length:o.length-1,c=1===n.length;c&&u--,a.push(l);for(var d=u;d>=0;d--){var h=o[d],f=B(M(h,"LNum"));l[d]={caption:M(h,"Caption"),value:P(M(h,"MEMBER_VALUE")),level:f,index:r++,hasValue:!(s||!f&&0!==d),name:M(h,"UName"),hierarchyName:o[d].getAttribute("Hierarchy"),parentName:M(h,"PARENT_UNIQUE_NAME"),levelName:M(h,"LName")},s+=f}}))});n.length<2;)n.push([[{level:0}]]);return n}function F(e){return e&&e&&(e.textContent||e.text||e.innerHTML)||""}function L(e,t,n){for(var i=[],o=[],a=0,r=[],s=e.getElementsByTagName("Cell"),l={},u=0;u0,m=B(c.getAttribute("CellOrdinal"));h.length&&(l[F(h[0].getElementsByTagName("ErrorCode")[0])]=F(h[0].getElementsByTagName("Description")[0])),r[m]={value:g?p:f||null}}return(0,b.each)(t[1],function(){var e=[];i.push(e),(0,b.each)(t[0],function(){var t=a%n;0===t&&(o=[],e.push(o)),o.push(r[a]?r[a].value:null),a++})}),Object.keys(l).forEach(function(e){_.errors.log("W4002",l[e])}),i}function H(e,t){return e&&(e=(0,y.isString)(e)&&e.indexOf("&")!==-1?e:"["+e+"]",t&&0===e.indexOf(t+".")&&(e=e.slice(t.length+1,e.length))),e}function z(e,t,n,i){var o=e[t];return o||(o={},e[t]=o),!(0,y.isDefined)(o.value)&&n&&(o.text=n.caption,o.value=n.value,o.key=t?t:"",o.levelName=n.levelName,o.hierarchyName=n.hierarchyName,o.parentName=n.parentName,o.index=i,o.level=n.level),o}function N(e,t){var n=[],i=e.children&&(e.children.length?e.children:Object.keys(e.children.grandTotalHash||{}).reduce(function(t,n){return t.concat(e.children.grandTotalHash[n].children)},[])),o=i&&i[0];if(o&&(t[o.hierarchyName]&&(0,x.inArray)(o.levelName,t[o.hierarchyName])!==-1||!t[o.hierarchyName]||0===o.level)){var a=i.filter(function(e){return e.hierarchyName===o.hierarchyName});return a.grandTotalHash=i.grandTotalHash,a}if(o)for(var r=0;r").text(i).html(),e(n,(0,g.format)(te,i,n.catalog,t()))}function J(e,t,n){var i=[],a=t.columns||[],r=t.rows||[];a.length&&i.push({}),r.length&&i.push({});var s=L(n,[[{}],[{},{}]],1);if(!a.length&&r.length&&(e.rowCount=Math.max(s[0][0][0]-1,0)),!r.length&&a.length&&(e.columnCount=Math.max(s[0][0][0]-1,0)),r.length&&a.length&&(e.rowCount=Math.max(s[0][0][0]-1,0),e.columnCount=Math.max(s[1][0][0]-1,0)),void 0!==e.rowCount&&t.rowTake){e.rows=o(Array(t.rowSkip)).concat(e.rows),e.rows.length=e.rowCount;for(var l=0;l1&&(t.groupName=t.hierarchyName=t.dataField,u.push.apply(u,d[t.hierarchyName]))}),c.resolve(u)}).fail(c.reject)}).fail(c.reject),c},load:function e(t){var n,i=new C.Deferred,o=this._options,a={skipValues:t.skipValues},r=E(t,o.cube,a);(t.rowSkip||t.rowTake||t.columnTake||t.columnSkip)&&(n=E((0,v.extend)({},t,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),o.cube,{}));var e=function(){r?(0,C.when)(Q(o,r),n&&Q(o,n)).done(function(e,n){var o=j(e)||n&&j(n);if(o)i.reject(o);else{var r=q(e,a);n&&J(r,t,n),i.resolve(r)}}).fail(i.reject):i.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return t.delay?setTimeout(e,t.delay):e(),i},supportPaging:function(){return!0},getDrillDownItems:function(e,t){var n=new C.Deferred,i=this._options,o=O(e,i.cube,t);return o?(0,C.when)(Q(i,o)).done(function(e){var t=j(e);t?n.reject(t):n.resolve(Z(e))}).fail(n.reject):n.resolve([]),n},key:m.noop,filter:m.noop}}()).include(w.storeDrillDownMixin)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=[];if(e.items)for(var i=0;i=0,items:l}):a=l}),a=r.concat(a),a.isMeasure=i):(0,g.each)(e,function(e,t){var n;t.isMeasure===!0&&(n="measure"),t.isMeasure===!1&&(n=t.groupName?"hierarchy":"dimension"),a.push({index:t.index,field:t,key:t.dataField,selected:(0,h.isDefined)(t.area),text:t.caption||t.dataField,icon:n,isMeasure:t.isMeasure,isDefault:t.isDefault})}),a},_createFieldsDataSource:function(e){var t=e&&e.fields()||[];t=t.filter(function(e){return e.visible!==!1&&!(0,h.isDefined)(e.groupIndex)});var n=this._createTreeItems(t,["dimension","displayFolder"]);return(0,y.foreachDataLevel)(n,function(e){e.sort(r)},0,"items"),n},_renderFieldsTreeView:function(e){var t=this,n=t._dataSource,i=t._createComponent(e,x.default,{dataSource:t._createFieldsDataSource(n),showCheckBoxesMode:"normal",searchEnabled:t.option("allowSearch"),searchTimeout:t.option("searchTimeout"),itemTemplate:function(e,t,n){e.icon&&(0,c.getImageContainer)(e.icon).appendTo(n),(0,u.default)("").toggleClass("dx-area-field",!e.items).data("field",e.field).text(e.text).appendTo(n)},onItemCollapsed:function(e){var n=(0,p.inArray)(e.itemData.path,t._expandedPaths);n>=0&&t._expandedPaths.splice(n,1)},onItemExpanded:function(e){var n=(0,p.inArray)(e.itemData.path,t._expandedPaths);n<0&&t._expandedPaths.push(e.itemData.path)},onItemSelectionChanged:function(e){var r,s,l=e.itemData,u=!0;if(l.items){if(l.selected)return void i.unselectItem(l);if(t._processDemandState(function(){r=o(l,n.fields());for(var e=0;e").addClass("dx-area-icon").addClass("dx-area-icon-"+t).appendTo(a),(0,u.default)("").html(" ").appendTo(a),(0,u.default)("").addClass("dx-area-caption").text(r).appendTo(a);var s=(0,u.default)(I).addClass("dx-area-fields").addClass(O).appendTo(o);if("all"!==t){s.attr("group",t).attr("allow-scrolling",!0),n=(0,u.default)(I).addClass("dx-area-field-container").appendTo(s);var l=function(){i._renderAreaFields(n,t)};i._dataChangedHandlers.push(l),l(),s.dxScrollable()}else o.addClass("dx-all-fields"),s.addClass("dx-treeview-border-visible"),i._renderFieldsTreeView(s)},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var e=this.$element().find(".dx-treeview").dxTreeView("instance");e&&(e.option("searchValue",""),e.collapseAll())},applyChanges:function(){var e=this.option("state");(0,h.isDefined)(e)&&this._dataSource.state(e)},cancelChanges:function(){var e=this._dataSource;return!e.isLoading()&&(this.option("state",e.state()),!0)},getDataSource:function(){return this._dataSource},updateDimensions:function(){var e=this.$element().find(".dx-area .dx-scrollable");e.dxScrollable("update")},_visibilityChanged:function(e){e&&T&&this.updateDimensions()}});(0,v.default)("dxPivotGridFieldChooser",P),e.exports=P},function(e,t,n){var i=n(42),o=n(21),a=n(701),r={_displayNames:a.displayNames,_list:a.timezones,getTimezones:function(){return this._list},getDisplayNames:function(){return this._displayNames},queryableTimezones:function(){return i(this.getTimezones())},getTimezoneById:function(e){var t,n=0,i=this.getTimezones();if(e)for(;!t;){if(!i[n])return void o.log("W0009",e);var a=i[n].id;a===e&&(t=i[n]),n++}return t},getTimezoneOffsetById:function(e,t){var n,i,o,a,r=this.getTimezoneById(e);if(r){if(r.link){var s=this.getTimezones()[r.link];n=s.offsets,o=s.untils,i=s.offsetIndices}else n=r.offsets,o=r.untils,i=r.offsetIndices;a=this.getUtcOffset(n,i,o,t)}return a},getUtcOffset:function(e,t,n,i){for(var o=0,a=t.split(""),r=n.split("|").map(function(e){return"Infinity"===e?null:1e3*parseInt(e,36)}),s=0,l=0,u=r.length;l=s))break;o=l}}return r[o+1]&&o++,e[Number(a[o])]},getTimezoneShortDisplayNameById:function(e){var t,n=this.getTimezoneById(e);return n&&(t=n.DisplayName.substring(0,11)),t},getTimezonesDisplayName:function(){return i(this.getDisplayNames()).sortBy().toArray()},getTimezoneDisplayNameById:function(e){var t=this.getTimezoneById(e);return t?this.getDisplayNames()[t.winIndex]:""},getSimilarTimezones:function(e){if(!e)return[];var t=this.getTimezoneById(e);return this.getTimezonesIdsByWinIndex(t.winIndex)},getTimezonesIdsByWinIndex:function(e){return this.queryableTimezones().filter(["winIndex",e]).sortBy("title").toArray().map(function(e){return{id:e.id,displayName:e.title}})},getTimezonesIdsByDisplayName:function(e){var t=this.getDisplayNames().indexOf(e);return this.getTimezonesIdsByWinIndex(t)},getClientTimezoneOffset:function(e){return 6e4*e.getTimezoneOffset()},processDateDependOnTimezone:function(e,t){var n=new Date(e);if(t){var i=t+this.getClientTimezoneOffset(e)/36e5;n=new Date(n.setHours(n.getHours()+i))}return n}};e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n");(0,p.default)(e).append(n),i.list=i._createList(n,t)}},onShown:this._onShown.bind(this)})),this.tooltip.option("visible",!0)}},{key:"_onShown",value:function(){this.list.option("focusStateEnabled",this.scheduler.option("focusStateEnabled"))}},{key:"dispose",value:function(){}},{key:"hide",value:function(){this.tooltip&&this.tooltip.option("visible",!1)}},{key:"_shouldUseTarget",value:function(){return!0}},{key:"_createTooltip",value:function(e,t){}},{key:"_canShowTooltip",value:function(e,t){return!(!t.length||this.tooltip&&this.tooltip.option("visible")&&(0,p.default)(this.tooltip.option("target")).get(0)===(0,p.default)(e).get(0))}},{key:"_createListOption",value:function(e){var t=this;return{dataSource:e,onItemRendered:function(e){return t._onListItemRendered(e)},onItemClick:function(e){return t._onListItemClick(e)},itemTemplate:function(e,n){return t._renderTemplate(t.tooltip.option("target"),e.data,e.currentData||e.data,n,e.color)}}}},{key:"_createList",value:function(e,t){return this.scheduler._createComponent(e,_.default,this._createListOption(t))}},{key:"_onListItemRendered",value:function(e){}},{key:"_getTargetData",value:function(e,t){return this.scheduler.fire("getTargetedAppointmentData",e,t)}},{key:"_renderTemplate",value:function(e,t,n,i,o){this._createTemplate(t,n,o);var a=this.scheduler._getAppointmentTemplate(this._getItemListTemplateName());return this._createFunctionTemplate(a,t,this._getTargetData(t,e),i)}},{key:"_createFunctionTemplate",value:function(e,t,n,i){return I(e,t,n,i)}},{key:"_getItemListTemplateName",value:function(){return"appointmentTooltipTemplate"}},{key:"_getItemListDefaultTemplateName",value:function(){return"appointmentTooltip"}},{key:"_onListItemClick",value:function(e){this.hide(),this._canRaiseClickEvent()?this._raiseClickEventAndShowAppointmentPopup(e):this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"_canRaiseClickEvent",value:function(){return!0}},{key:"_raiseClickEventAndShowAppointmentPopup",value:function(e){var t={itemData:e.itemData.data,itemElement:e.itemElement},n=this.createAppointmentClickAction();n(this.createClickEventArgument(t,e))}},{key:"createAppointmentClickAction",value:function(){var e=this;return this.scheduler._createActionByOption("onAppointmentClick",{afterExecute:function(t){var n=t.args[0];n.event.stopPropagation(),e.scheduler.fire("showEditAppointmentPopup",{data:n.appointmentData})}})}},{key:"createClickEventArgument",value:function(e,t){var n=(0,m.extendFromObject)(this.scheduler.fire("mapAppointmentFields",e),t,!1);return this.trimClickEventArgument(n)}},{key:"trimClickEventArgument",value:function(e){return delete e.itemData,delete e.itemIndex,delete e.itemElement,e}},{key:"_onDeleteButtonClick",value:function(){this.hide()}},{key:"_createTemplate",value:function(e,t,n){var i=this;this.scheduler._defaultTemplates[this._getItemListDefaultTemplateName()]=new h.default(function(o){var a=(0,p.default)(o.container);return a.append(i._createItemListContent(e,t,n)),a})}},{key:"_createItemListContent",value:function(e,t,n){var i=this.scheduler.option("editing"),o=this.scheduler.fire("getField","allDay",e),a=this.scheduler.fire("getField","text",e),r=this.scheduler.fire("getField","startDateTimeZone",e),s=this.scheduler.fire("getField","endDateTimeZone",e),l=this.scheduler.fire("convertDateByTimezone",this.scheduler.fire("getField","startDate",t),r),u=this.scheduler.fire("convertDateByTimezone",this.scheduler.fire("getField","endDate",t),s),c=(0,p.default)("
").addClass(v);return c.append(this._createItemListMarker(n)),c.append(this._createItemListInfo(a,this._formatDate(l,u,o))),(i&&i.allowDeleting===!0||i===!0)&&c.append(this._createDeleteButton(e,t)),c}},{key:"_createItemListMarker",value:function(e){var t=(0,p.default)("
").addClass(w),n=(0,p.default)("
").addClass(C);return t.append(n),e&&e.done(function(e){return n.css("background",e)}),t}},{key:"_createItemListInfo",value:function(e,t){var n=(0,p.default)("
").addClass(y),i=(0,p.default)("
").addClass(b).text(e),o=(0,p.default)("
").addClass(x).text(t);return n.append(i).append(o)}},{key:"_createDeleteButton",value:function(e,t){var n=this,i=(0,p.default)("
").addClass(k),o=(0,p.default)("
").addClass(S);return i.append(o),this.scheduler._createComponent(o,l.default,{icon:"trash",stylingMode:"text",onClick:function(i){n._onDeleteButtonClick(),n.scheduler._checkRecurringAppointment(e,t,t.startDate,function(){return n.scheduler.deleteAppointment(e)},!0),i.event.stopPropagation()}}),i}},{key:"_formatDate",value:function(e,t,n){var i="";return this.scheduler.fire("formatDates",{startDate:e,endDate:t,formatType:this._getTypeFormat(e,t,n),callback:function(e){return i=e}}),i}},{key:"_getTypeFormat",value:function(e,t,n){return n?"DATE":"month"!==this.scheduler.option("currentView")&&c.default.sameDate(e,t)?"TIME":"DATETIME"}}]),e}()},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;ns){var l=a;a=s,s=l}if(o=o.slice(a,s+1),this._getGroupCount()>1){var u=[],c=this._getGroupIndexByCell(e);g(o,function(e,t){var n=this._getGroupIndexByCell(r(t));c===n&&u.push(t)}.bind(this)),o=r(u)}return o},_hasAllDayClass:function(e){return e.hasClass(J)},_getGroupIndexByCell:function(e){var t=this._getCellCount(),n=e.index()+1,i=Math.ceil(n/t);return i},_toggleFocusedCellClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(ge,e)},_releaseFocusedCell:function(e){e=e||r(this._focusedCells),w(e)&&e.length&&(this._toggleFocusClass(!1,e),this._toggleFocusedCellClass(!1,e),this.setAria("label",void 0,e)),this.option("selectedCellData",[])},_focusInHandler:function(e){if(r(e.target).is(this._focusTarget())&&this._isCellClick!==!1){delete this._isCellClick,delete this._contextMenuHandled,this.callBase.apply(this,arguments);var t=this._getFocusedCell();this._setFocusedCell(t)}},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._contextMenuHandled||this._releaseFocusedCell()},_focusTarget:function(){return this.$element()},_activeStateUnit:"."+fe+", ."+J,_getDefaultOptions:function(){return p(this.callBase(),{currentDate:new Date,intervalCount:1,startDate:null,firstDayOfWeek:void 0,startDayHour:0,endDayHour:24,hoursInterval:.5,activeStateEnabled:!0,hoverStateEnabled:!0,groups:[],showAllDayPanel:!0,allDayExpanded:!1,onCellClick:null,crossScrollingEnabled:!1,dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,allowMultipleCellSelection:!0,indicatorTime:new Date,indicatorUpdateInterval:5*v("minute"),shadeUntilCurrentTime:!0,groupOrientation:"horizontal",selectedCellData:[],groupByDate:!1})},_optionChanged:function(e){switch(e.name){case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":case"startDayHour":case"endDayHour":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"startDate":this._cleanWorkSpace();break;case"groups":this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint();break;case"groupOrientation":this._initGroupedStrategy(),this._createAllDayPanelElements(),this._removeAllDayElements(),this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"showAllDayPanel":this._isVerticalGroupedWorkSpace()?(this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint()):this._toggleAllDayVisibility();break;case"allDayExpanded":this._changeAllDayVisibility(),this.notifyObserver("allDayPanelToggled"),this._attachTablesEvents(),this.headerPanelOffsetRecalculate(),this._updateScrollable();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onCellClick":this._createCellClickAction();break;case"onCellContextMenu":this._attachContextMenuEvent();break;case"intervalCount":this._cleanWorkSpace(),this._toggleWorkSpaceCountClass(),this._toggleFixedScrollableClass();break;case"groupByDate":this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"crossScrollingEnabled":this._toggleHorizontalScrollClass(),this._dateTableScrollable.option(this._dateTableScrollableConfig());break;case"width":this.callBase(e),this._dimensionChanged();break;case"allowMultipleCellSelection":break;case"selectedCellData":break;default:this.callBase(e)}},_cleanWorkSpace:function(){this._cleanView(),this._toggleGroupedClass(),this._toggleWorkSpaceWithOddCells(),this._renderView()},_init:function(){this._headerSemaphore=new Be,this._sideBarSemaphore=new Be,this._dataTableSemaphore=new Be,this.callBase(),this._initGrouping(),this._toggleHorizontalScrollClass(),this._toggleWorkSpaceCountClass(),this._toggleGroupByDateClass(),this._toggleWorkSpaceWithOddCells(),this._toggleWorkSpaceOverlappingClass(),this.$element().addClass(M).addClass(this._getElementClass())},_initGrouping:function(){this._initGroupedStrategy(),this._toggleGroupingDirectionClass(),this._toggleGroupByDateClass()},_initGroupedStrategy:function(){var e=this.option("groups").length?this.option("groupOrientation"):this._getDefaultGroupStrategy(),t="vertical"===e?B:O;this._groupedStrategy=new t(this)},_getDefaultGroupStrategy:function(){return"horizontal"},_isVerticalGroupedWorkSpace:function(){return!!this.option("groups").length&&"vertical"===this.option("groupOrientation")},_isHorizontalGroupedWorkSpace:function(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")},_toggleHorizontalScrollClass:function(){this.$element().toggleClass(H,this.option("crossScrollingEnabled"))},_toggleGroupByDateClass:function(){this.$element().toggleClass(N,this.isGroupedByDate())},_toggleWorkSpaceCountClass:function(){this.$element().toggleClass(z,this._isWorkSpaceWithCount())},_isWorkSpaceWithCount:function(){return this.option("intervalCount")>1},_toggleWorkSpaceWithOddCells:function(){this.$element().toggleClass($,this._isWorkspaceWithOddCells())},_isWorkspaceWithOddCells:function(){return.5===this.option("hoursInterval")},_toggleWorkSpaceOverlappingClass:function(){this.$element().toggleClass(W,this._isWorkSpaceWithOverlapping())},_isWorkSpaceWithOverlapping:function(){return null!==this.invoke("getMaxAppointmentsPerCell")},_toggleGroupingDirectionClass:function(){this.$element().toggleClass(F,this._isVerticalGroupedWorkSpace())},_getRealGroupOrientation:function(){return this._isVerticalGroupedWorkSpace()?"vertical":"horizontal"},_getTimePanelClass:function(){return G},_getDateTableClass:function(){return he},_getDateTableRowClass:function(){return pe},_getDateTableCellClass:function(e,t){var n=fe+" "+oe+" "+ae;return this._needApplyLastGroupCellClass()?this._groupedStrategy.addAdditionalGroupCellClasses(n,t+1,e,t):n},_needApplyLastGroupCellClass:function(){return!0},_getGroupRowClass:function(){return ue},_getGroupHeaderClass:function(e){var t=ce;return this._groupedStrategy.addAdditionalGroupCellClasses(t,e+1)},_getGroupHeaderContentClass:function(){return de},_initWorkSpaceUnits:function(){this._$headerPanel=r(""),this._$thead=r("").appendTo(this._$headerPanel),this._$fixedContainer=r("
").addClass(Y),this._$allDayContainer=r("
").addClass(X),this._initAllDayPanelElements(),this._createAllDayPanelElements(),this._$timePanel=r("
").addClass(this._getTimePanelClass()),this._$dateTable=r("
"),this._$groupTable=r("
").addClass(L)},_initAllDayPanelElements:function(){this._allDayTitles=[],this._allDayTables=[],this._allDayPanels=[]},_createAllDayPanelElements:function(){var e=this._getGroupCount();if(this._isVerticalGroupedWorkSpace()&&0!==e)for(var t=0;t").addClass(Z).text(_.format("dxScheduler-allDay"));this._allDayTitles.push(n),this._$allDayTable=r("
"),this._allDayTables.push(this._$allDayTable),this._$allDayPanel=r("
").addClass(K).append(this._$allDayTable),this._allDayPanels.push(this._$allDayPanel)}else this._$allDayTitle=r("
").addClass(Z).text(_.format("dxScheduler-allDay")).appendTo(this.$element()),this._$allDayTable=r("
"),this._$allDayPanel=r("
").addClass(K).append(this._$allDayTable)},_initDateTableScrollable:function(){var e=r("
").addClass(ye);this._dateTableScrollable=this._createComponent(e,A,this._dateTableScrollableConfig())},_dateTableScrollableConfig:function(){var e={useKeyboard:!1,useNative:!1,bounceEnabled:!1,updateManually:!0,pushBackValue:0};return this._needCreateCrossScrolling()&&(e=p(e,this._createCrossScrollingConfig())),e},_createCrossScrollingConfig:function(){var e=this,t={};return t.direction="both",t.onScroll=function(t){e._dataTableSemaphore.take(),e._sideBarSemaphore.isFree()&&e._sidebarScrollable&&e._sidebarScrollable.scrollTo({top:t.scrollOffset.top}),e._headerSemaphore.isFree()&&e._headerScrollable&&e._headerScrollable.scrollTo({left:t.scrollOffset.left}),e._dataTableSemaphore.release()},t.onEnd=function(){e.notifyObserver("updateResizableArea",{})},t},_createWorkSpaceElements:function(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().append(this._$allDayContainer,this._$groupTable,this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._dateTableScrollable.$element())):(this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._$allDayContainer,this._$allDayPanel,this._dateTableScrollable.$element()))},_createWorkSpaceScrollableElements:function(){this.$element().append(this._$fixedContainer),this._createHeaderScrollable(),this._createSidebarScrollable(),this.$element().append(this._dateTableScrollable.$element()),this._headerScrollable.$content().append(this._$headerPanel),this._dateTableScrollable.$content().append(this._$dateTable),this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().prepend(this._$allDayContainer),this._sidebarScrollable.$content().append(this._$groupTable,this._$timePanel)):this._headerScrollable.$content().append(this._$allDayContainer,this._$allDayPanel),this._sidebarScrollable.$content().append(this._$timePanel)},_createHeaderScrollable:function(){var e=r("
").addClass(me).appendTo(this.$element());this._headerScrollable=this._createComponent(e,A,this._headerScrollableConfig())},_headerScrollableConfig:function(){var e=this,t={useKeyboard:!1,showScrollbar:!1,direction:"horizontal",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onScroll:function(t){e._headerSemaphore.take(),e._dataTableSemaphore.isFree()&&e._dateTableScrollable.scrollTo({left:t.scrollOffset.left}),e._headerSemaphore.release()}};return t},_createSidebarScrollable:function(){var e=this,t=r("
").addClass(ve).appendTo(this.$element());this._sidebarScrollable=this._createComponent(t,A,{useKeyboard:!1,showScrollbar:!1,direction:"vertical",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onScroll:function(t){e._sideBarSemaphore.take(),e._dataTableSemaphore.isFree()&&e._dateTableScrollable.scrollTo({top:t.scrollOffset.top}),e._sideBarSemaphore.release()}})},_visibilityChanged:function(e){e&&this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight(),e&&this._needCreateCrossScrolling()&&this._setTableSizes()},_attachTableClasses:function(){if(this._addTableClass(this._$dateTable,this._getDateTableClass()),this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t0)},_toggleFixedScrollableClass:x,_renderView:function(){if(this._setFirstViewDate(),this._applyCellTemplates(this._renderGroupHeader()),this._renderDateHeader(),this._renderTimePanel(),this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t0?e:i}return this.option("currentDate")},_getHeaderDate:function(){return this.getStartViewDate()},_getStartViewDate:function(){return this.option("startDate")},_dateInRange:function(e,t,n,i){return i>0?c.dateInRange(e,t,new Date(n.getTime()-1)):c.dateInRange(e,n,t,"date")},_getIntervalDuration:function(){return v("day")*this.option("intervalCount")},_setStartDayHour:function(e){var t=this.option("startDayHour");w(t)&&e.setHours(t,t%1*60,0,0)},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")},_attachEvents:function(){this._createSelectionChangedAction(),this._attachClickEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this,t=this._createAction(function(t){e._pointerDownHandler(t.event)});this._createCellClickAction();var n="."+fe+",."+J,i=this.$element();l.off(i,be),l.off(i,Ce),l.on(i,be,function(e){return k.isMouseEvent(e)&&e.which>1?void e.preventDefault():void t({event:e})}),l.on(i,Ce,n,function(t){var n=r(t.target);e._cellClickAction({event:t,cellElement:f(n),cellData:e.getCellData(n)})})},_createCellClickAction:function(){var e=this;this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:function(t){e._moveToClosestNonStub(t.args[0].event)}})},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_moveToClosestNonStub:function(e){var t=r(e.target);this._showPopup&&this._hasFocusClass(t)&&(delete this._showPopup,this._showAddAppointmentPopup(t))},_pointerDownHandler:function(e){var t=r(e.target);return t.hasClass(fe)||t.hasClass(J)?(this._isCellClick=!0,void(t.hasClass(ge)?this._showPopup=!0:this._setFocusedCell(t))):void(this._isCellClick=!1)},_showAddAppointmentPopup:function(e){var t=this.getCellData(e.first()),n=this.getCellData(e.last()),i={startDate:t.startDate,endDate:n.endDate};w(n.allDay)&&(i.allDay=n.allDay),p(i,n.groups),this.notifyObserver("showAddAppointmentPopup",i)},_attachContextMenuEvent:function(){this._createContextMenuAction();var e="."+fe+",."+J,t=this.$element(),n=k.addNamespace(D.name,this.NAME);l.off(t,n,e),l.on(t,n,e,this._contextMenuHandler.bind(this))},_contextMenuHandler:function(e){var t=r(e.target);this._contextMenuAction({event:e,cellElement:f(t),cellData:this.getCellData(t)}),this._contextMenuHandled=!0},_createContextMenuAction:function(){this._contextMenuAction=this._createActionByOption("onCellContextMenu")},_getGroupHeaderContainer:function(){return this._isVerticalGroupedWorkSpace()?this._$groupTable:this._$thead},_getDateHeaderContainer:function(){return this._$thead},_renderGroupHeader:function(){var e=this._getGroupHeaderContainer(),t=this._getGroupCount(),n=[];if(t){var i=this._makeGroupRows(this.option("groups"),this.option("groupByDate"));this._attachGroupCountAttr(t,i),e.append(i.elements),n=i.cellTemplates}else this._detachGroupCountAttr();return n},_applyCellTemplates:function(e){e.forEach(function(e){e()})},_detachGroupCountAttr:function(){var e=this._groupedStrategy.getGroupCountAttr();this.$element().removeAttr(e.attr)},_attachGroupCountAttr:function(e,t){var n=this._groupedStrategy.getGroupCountAttr(e,t);this.$element().attr(n.attr,n.count)},headerPanelOffsetRecalculate:function(){if(this.option("resourceCellTemplate")||this.option("dateCellTemplate")){var e=this.getHeaderPanelHeight(),t=this.invoke("getHeaderHeight"),n=this.supportAllDayRow()&&this.option("showAllDayPanel")?this._groupedStrategy.getAllDayTableHeight():0;e&&this._headerScrollable&&this._headerScrollable.$element().height(e+n),e&&this._dateTableScrollable.$element().css({paddingBottom:n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),e&&this._sidebarScrollable&&this._sidebarScrollable.$element().css({paddingBottom:n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),this._$allDayTitle&&this._$allDayTitle.css("top",t+e+"px")}},_makeGroupRows:function(e,t){var n=this._isVerticalGroupedWorkSpace()?P.VERTICAL:P.HORIZONTAL;return P.makeGroupedTable(n,e,{groupHeaderRowClass:this._getGroupRowClass(),groupRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getGroupCount(),t)},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_renderDateHeader:function(){var e,t,n=this._getDateHeaderContainer(),i=r("
").addClass(le),o=this._getCellCount(),a=this._getDateHeaderTemplate(),s=this._calculateHeaderCellRepeatCount(),l=[],u=this.option("groupByDate")?this._getGroupCount():1,c=this.option("groupByDate");if(c){for(e=0;e").addClass(this._getHeaderPanelCellClass(t)).attr("title",a);return i&&i.render?o.push(i.render.bind(i,{model:{text:a,date:this._getDateByIndex(t)},index:n,container:f(s)})):s.text(a),e.append(s),s},_getHeaderPanelCellClass:function(e){var t=se+" "+oe;return this._groupedStrategy.addAdditionalGroupCellClasses(t,e+1)},_calculateHeaderCellRepeatCount:function(){return this._groupedStrategy.calculateHeaderCellRepeatCount()},_renderAllDayPanel:function(e){var t=this._getCellCount();this._isVerticalGroupedWorkSpace()||(t*=this._getGroupCount()||1);var n=this._renderTableBody({container:f(this._allDayPanels.length?this._allDayTables[e]:this._$allDayTable),rowCount:1,cellCount:t,cellClass:this._getAllDayPanelCellClass.bind(this),rowClass:ee,cellTemplate:this.option("dataCellTemplate"),getCellData:this._getAllDayCellData.bind(this),groupIndex:e},!0);this._toggleAllDayVisibility(),this._applyCellTemplates(n)},_getAllDayPanelCellClass:function(e,t){var n=J+" "+oe;return this._groupedStrategy.addAdditionalGroupCellClasses(n,t+1)},_getAllDayCellData:function(e,t,n,i){var o=this._getDateByCellIndexes(t,n);o=c.trimTime(o);var a={startDate:o,endDate:new Date(o.getTime()+Ae),allDay:!0},r=this._getCellGroups(i||this._getGroupIndex(t,n));r.length&&(a.groups={});for(var s=0;s=a&&(e=a-1),i.setHours(e,t,0,0),this.getCoordinatesByDate(i)},setCellDataCache:function(e,t,n){var i=this.getCellDataCache(),o=this.getCellData(n),a=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:t});i[a]=o},setCellDataCacheAlias:function(e,t){var n=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:e.groupIndex}),i=JSON.stringify({top:t.top,left:t.left}),o=this.getCellDataCache();o[n]&&(o[i]=o[n])},getCellDataCache:function(e){return this._cache||(this._cache={}),e?this._cache[e]:this._cache},_cleanCellDataCache:function(){delete this._cache},_cleanAllowedPositions:function(){delete this._maxAllowedVerticalPosition,delete this._maxAllowedPosition},supportAllDayRow:function(){return!0},keepOriginalHours:function(){return!1},getFocusedCellData:function(){var e=this._getAllFocusedCells(),t=[];if(e.length>1)t=this._getMultipleCellsData(e);else{var n=this.getCellData(e);n&&t.push(n)}return t},_getMultipleCellsData:function(e){for(var t=[],n=0;n0},getCellIndexByDate:function(e,t){var n=t?864e5:this._getInterval(),i=this._getIntervalBetween(e,t),o=Math.floor(i/n);return t&&(o=this._updateIndex(o)),o<0&&(o=0),o},getPositionShift:function(e){return{top:e*this.getCellHeight(),left:0,cellPosition:0}},getTimeShift:function(e){var t=new Date(e),n=this.getCellDuration(),i=new Date(new Date(e).setHours(this.option("endDayHour"),0,0));e.getTime()<=i.getTime()&&t.setHours(this.option("startDayHour"),0,0,0);var o=e.getTime(),a=t.getTime(),r=this._firstViewDate.getTime();return o>r?(o-a)%n/n:0},getCoordinatesByDateInGroup:function(e,t,n){var i=this._getGroupIndexes(t),o=[];if(i.length)for(var a=0;a0?t=t*this._getGroupCount()-1:t-=1,this._getDateByCellIndexes(e,t,!0)},getCellDuration:function(){return 36e5*this.option("hoursInterval")},getIntervalDuration:function(e){return e?v("day"):this.getCellDuration()},getVisibleDayDuration:function(){return this.option("hoursInterval")*this._getCellCountInDay()*Oe},getGroupBounds:function(e){var t=this._getCellCount(),n=this._getCells(),i=this.getCellWidth(),o=this._groupedStrategy.getGroupBoundsOffset(t,n,i,e);if(this._isRTL()){var a=o.left;o.left=o.right-2*i,o.right=a+2*i}return o},needRecalculateResizableArea:function(){return this._isVerticalGroupedWorkSpace()&&0!==this.getScrollable().scrollTop()},getCellDataByCoordinates:function(e,t){var n=JSON.stringify({top:e.top,left:e.left}),i=this.getCellDataCache(n);if(i)return i;var o=this._getCells(t),a=this.getCellIndexByCoordinates(e,t),r=o.eq(a);return this.getCellData(r)},getVisibleBounds:function(){var e={},t=this.getScrollable().$element(),n=this.getCellHeight(),i=this.getScrollableScrollTop()/n,o=i+t.height()/n;return e.top={hours:Math.floor(i*this.option("hoursInterval"))+this.option("startDayHour"),minutes:i%2?30:0},e.bottom={hours:Math.floor(o*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(o)%2?30:0},e},updateScrollPosition:function(e){e=this.invoke("convertDateByTimezone",e);var t=this.getVisibleBounds(),n=e.getHours(),i=e.getMinutes();this.needUpdateScrollPosition(n,i,t,e)&&this.scrollToTime(n,i,e)},needUpdateScrollPosition:function(e,t,n){var i=!1;return(en.bottom.hours)&&(i=!0),e===n.top.hours&&tn.top.minutes&&(i=!0),i},getGroupWidth:function(e){var t=this._getCellCount()*this.getCellWidth(),n=this.getMaxAllowedPosition(),i=n[e];return n.length&&i&&(t=this._isRTL()?i-n[e+1]:0===e?i:i-n[e-1]),t},restoreScrollTop:function(){this.$element().scrollTop(0)},scrollToTime:function(e,t,n){var i=this.getStartViewDate(),o=this.getEndViewDate();if(no)return void I.log("W1008",n);var a=this._getScrollCoordinates(e,t,n),r=this.getScrollable();r.scrollBy({top:a.top-r.scrollTop(),left:0})},getDistanceBetweenCells:function(e,t){var n=0;return this.$element().find("."+this._getDateTableRowClass()).first().find("."+fe).each(function(i){return it||void(n+=r(this).get(0).getBoundingClientRect().width)}),n},needApplyCollectorOffset:function(){return!1},_supportCompactDropDownAppointments:function(){return!0},_formatWeekday:function(e){return Pe(e)},_formatWeekdayAndDay:function(e){return Pe(e)+" "+m.format(e,"day")}}).include(C);e.exports=Re},function(e,t,n){var i=n(15),o=i.abstract,a="dx-scheduler-last-group-cell",r="dx-scheduler-first-group-cell",s=i.inherit({ctor:function(e){this._workSpace=e},getLastGroupCellClass:function(){return a},getFirstGroupCellClass:function(){return r},_getOffsetByAllDayPanel:function(){return 0},_getGroupTop:function(){return 0},prepareCellIndexes:o,calculateCellIndex:o,getGroupIndex:o,insertAllDayRowsIntoDateTable:o,getTotalCellCount:o,addAdditionalGroupCellClasses:o,getHorizontalMax:o,getVerticalMax:o,calculateTimeCellRepeatCount:o,getWorkSpaceMinWidth:o,getAllDayHeight:o,getGroupCountAttr:o,getLeftOffset:o,shiftIndicator:o,getShaderOffset:o,getShaderTopOffset:o,getShaderMaxHeight:o,getShaderWidth:o,getScrollableScrollTop:o});e.exports=s},function(e,t,n){var i=n(2),o=n(15),a="dx-scheduler-date-time-shader",r=o.inherit({render:function(e){var t=this;this._workspace=e,this._$container=e._dateTableScrollable.$content(),this._$shader=this._createShader(),this._shader=[],this._shader.push(this._$shader),this._renderShader(),this._$shader&&this._workspace.option("crossScrollingEnabled")&&(this._$shader.css("marginTop",-this._$container.get(0).getBoundingClientRect().height),this._$shader.css("height",this._$container.get(0).getBoundingClientRect().height)),this._shader.forEach(function(e,n){t._$container.append(e)})},_createShader:function(){return i("
").addClass(a)},clean:function(){this._$container&&this._$container.find("."+a).remove()}});e.exports=r},function(e,t,n){var i=n(2),o=n(9),a=n(22),r=n(32),s=n(3).each,l=n(203),u="dx-scheduler-work-space-week",c=a.dateToMilliseconds,d=l.inherit({_getElementClass:function(){return u},_getRowCount:function(){return this._getCellCountInDay()},_getCellCount:function(){return 7*this.option("intervalCount")},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekdayAndDay},_getStartViewDate:function(){return a.getFirstWeekDate(this.option("startDate"),this._firstDayOfWeek()||r.firstDayOfWeekIndex())},_getIntervalDuration:function(){return 7*c("day")*this.option("intervalCount")},_getCellsBetween:function(e,t){if(this._hasAllDayClass(t))return this.callBase(e,t);for(var n=this._getCells(),o=e.index(),a=e.parent().index(),r=t.index(),l=t.parent().index(),u=this._getGroupCount(),c=u>0?this._getTotalCellCount(u):this._getCellCount(),d=this._getTotalRowCount(u),h=[],f=0;fy){var b=v;v=y,y=b}if(n=i(h).slice(v,y+1),this._getGroupCount()){var x=[],w=this._getGroupIndexByCell(e);s(n,function(e,t){var n=this._getGroupIndexByCell(i(t));w===n&&x.push(t)}.bind(this)),n=i(x)}return n},_getRightCell:function(e){if(!e)return this.callBase(e);var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=this._isRTL()?0:o-1,r=this._isRTL()?"prev":"next";return n.index()===a||this._isGroupEndCell(n)?t=n:(t=n[r](),t=this._checkForViewBounds(t)),t},_getLeftCell:function(e){if(!e)return this.callBase(e);var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=this._isRTL()?o-1:0,r=this._isRTL()?"next":"prev";return n.index()===a||this._isGroupStartCell(n)?t=n:(t=n[r](),t=this._checkForViewBounds(t)),t}});o("dxSchedulerWorkSpaceWeek",d),e.exports=d},function(e,t,n){var i=n(9),o=n(260),a="dx-scheduler-timeline-week",r="dx-scheduler-header-row",s=o.inherit({_getElementClass:function(){return a},_getCellCount:function(){return this.callBase()*this._getWeekDuration()},_setTableSizes:function(){this.callBase();var e=this.getCellWidth(),t=this.getWorkSpaceMinWidth(),n=this.$element().find("."+r).last().find("th"),i=e*n.length;ix&&(o=x);var a=e.top+e.index*o;return{height:o,width:e.width,top:a,left:e.left}}},{key:"_getOffsets",value:function(){return{unlimited:0,auto:0}}},{key:"_checkLongCompactAppointment",value:function(e,t){var n=this.instance.fire("getMaxAppointmentsPerCell");if(n)return this._splitLongCompactAppointment(e,t),t}},{key:"_getCompactLeftCoordinate",value:function(e,t){var n=this.getDefaultCellWidth()||this.getAppointmentMinSize();return e+n*t}},{key:"_getMaxHeight",value:function(){return this.getDefaultCellHeight()||this.getAppointmentMinSize()}},{key:"_getAppointmentCount",value:function(e,t){return this._getMaxAppointmentCountPerCellByType(!1)}},{key:"_getAppointmentDefaultHeight",value:function(){return w}},{key:"_getAppointmentMinHeight",value:function(){return C}},{key:"_sortCondition",value:function(e,t){return this._columnCondition(e,t)}},{key:"_getOrientation",value:function(){return["left","right","top"]}},{key:"_getMaxAppointmentWidth",value:function(e){var t;return this.instance.fire("getMaxAppointmentWidth",{date:e,callback:function(e){t=e}}),t}},{key:"getDropDownAppointmentWidth",value:function(){return this.getDefaultCellWidth()-2*k}},{key:"getDeltaTime",value:function(e,t){var n=0,i=e.width-t.width;return n=I("minute")*Math.round(i/this.getDefaultCellWidth()*this.instance.getAppointmentDurationInMinutes())}},{key:"isAllDay",value:function(e){return this.instance.fire("getField","allDay",e)}},{key:"needSeparateAppointment",value:function(){return this.instance.fire("isGroupedByDate")}}]),t}(v.default);e.exports=T},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n").addClass(M).appendTo(this.$element()),n={dataStructure:"plain",rootValue:"",createChildren:this._onFilesTreeViewCreateChildren.bind(this),itemTemplate:this._createFilesTreeViewItemTemplate.bind(this),hasItemsExpr:"dataItem.hasSubDirs",onItemClick:this._onFilesTreeViewItemClick.bind(this),onItemExpanded:function(t){var n=t.itemData;return e._model.changeItemExpandState(n,!0)},onItemCollapsed:function(t){var n=t.itemData;return e._model.changeItemExpandState(n,!1)},onItemRendered:function(t){return e._onFilesTreeViewItemRendered(t)}};this._contextMenu&&(this._contextMenu.option("onContextMenuHidden",function(){return e._onContextMenuHidden()}),n.onItemContextMenu=function(t){return e._onFilesTreeViewItemContextMenu(t)},this._createFileActionsButton=function(t,n){return e._createComponent(t,R.default,n)}),this._filesTreeView=this._createComponent(t,D.default,n),b.default.on(t,"click",this._raiseClick.bind(this))}},{key:"_onFilesTreeViewCreateChildren",value:function(e){return this._model.expandAndGetChildren(e&&e.itemData)}},{key:"_onFilesTreeViewItemClick",value:function(e){var t=e.itemElement,n=e.itemData;this._selectedItem&&this._selectedItem.dataItem.equals(n.dataItem)||(this._model.selectItem(n),this._changeSelectedItem(n,(0,v.default)(t)))}},{key:"_onFilesTreeViewItemRendered",value:function(e){var t=e.itemElement,n=e.itemData,i=this._selectedItem&&this._selectedItem.dataItem.equals(n.dataItem);i&&this._updateFocusedElement((0,v.default)(t))}},{key:"_createFilesTreeViewItemTemplate",value:function(e,t,n){var i=this,o=(0,v.default)(n),a=o.closest(this._filesTreeViewItemSelector);a.data("item",e);var r=(0,C.getImageContainer)(e.icon),s=(0,v.default)("").text(e.text).addClass(F),l=(0,v.default)("
");o.append(r,s,l),this._createFileActionsButton(l,{onClick:function(e){return i._onFileItemActionButtonClick(e)}})}},{key:"_onFilesTreeViewItemContextMenu",value:function(e){var t=e.itemElement,n=e.event;n.preventDefault();var i=(0,v.default)(t).data("item");this._contextMenu.showAt([i.dataItem],t,n)}},{key:"_onFileItemActionButtonClick",value:function(e){var t=e.component,n=e.element,i=e.event;i.stopPropagation();var o=t.$element().closest(this._filesTreeViewItemSelector),a=o.data("item");this._contextMenu.showAt([a.dataItem],n),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)}},{key:"_onContextMenuHidden",value:function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}},{key:"_onModelSelectedItemLoaded",value:function(e){var t=this;this._filesTreeView?this._handleModelSelectedItemLoaded(e):setTimeout(function(){return t._handleModelSelectedItemLoaded(e)})}},{key:"_handleModelSelectedItemLoaded",value:function(e){var t=this._getItemElement(e);this._changeSelectedItem(e,t)}},{key:"_changeSelectedItem",value:function(e,t){this._setSelectedItem(e,t),this._raiseCurrentFolderChanged()}},{key:"_setSelectedItem",value:function(e,t){this._selectedItem=e||null,this._updateFocusedElement(t)}},{key:"_updateFocusedElement",value:function(e){this._$focusedElement&&this._$focusedElement.toggleClass(V,!1),this._$focusedElement=e||(0,v.default)(),this._$focusedElement.toggleClass(V,!0)}},{key:"_getItemElement",value:function(e){var t=this._filesTreeView._dataAdapter.getNodeByKey(e.id);if(t){var n=this._filesTreeView._getNodeElement(t);if(n)return n.children(this._filesTreeViewItemSelector)}return null}},{key:"_raiseCurrentFolderChanged",value:function(){this._actions.onCurrentFolderChanged()}},{key:"_raiseClick",value:function(){this._actions.onClick()}},{key:"_initActions",value:function(){this._actions={onCurrentFolderChanged:this._createActionByOption("onCurrentFolderChanged"),onClick:this._createActionByOption("onClick")}}},{key:"_getDefaultOptions",value:function(){return(0,w.extend)(l(_(t.prototype),"_getDefaultOptions",this).call(this),{rootFolderDisplayName:"Files",initialFolder:null,contextMenu:null,getItems:null,onCurrentFolderChanged:null,onClick:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"getItems":case"rootFolderDisplayName":case"initialFolder":case"contextMenu":this.repaint();break;case"onCurrentFolderChanged":case"onClick":this._actions[n]=this._createActionByOption(n);break;default:l(_(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"refreshData",value:function(){var e=this.getCurrentFolderPath();this._setSelectedItem(),this._model.refresh(),this._filesTreeView.option("dataSource",[]);var t=this.getCurrentFolderPath()!==e;t&&this._raiseCurrentFolderChanged()}},{key:"setCurrentFolderPath",value:function(e){var t=this;if(e!==this.getCurrentFolderPath()){var n=new E.FileManagerItem((0,B.getParentPath)(e),(0,B.getName)(e),(!0)),i=n.getParent(),o=this._model.getItemByDataItem(n),a=i?this._model.getItemByDataItem(i):null;this._model.selectItem(o),!a||a.childrenLoaded?this._onModelSelectedItemLoaded(o):this._model.expandAndGetChildren(a).done(function(){a.expanded=!1,t._filesTreeView.expandItem(a)})}}},{key:"getCurrentFolderPath",value:function(){return this.getCurrentFolder()?this.getCurrentFolder().relativeName:null}},{key:"getCurrentFolder",value:function(){return this._selectedItem?this._selectedItem.dataItem:null; }},{key:"_filesTreeViewItemSelector",get:function(){return".".concat(L)}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}]),t}(I.default),z=function(){function e(t){a(this,e),this._options=t,this._expandedDataItems={},this._selectedDataItem=null,this._initState();var n=this._options.initialDir;n&&(this._selectedDataItem=n,this._setTreeLineExpandState(n))}return s(e,[{key:"selectItem",value:function(e){this._selectedDataItem=e.dataItem}},{key:"expandAndGetChildren",value:function(e){return e?e.isRoot?this._expandAndGetChildrenForRootItem():this._expandAndGetChildrenForGeneralItem(e):(this._onItemLoaded(this._rootItem),(new x.Deferred).resolve([this._rootItem]).promise())}},{key:"refresh",value:function(){this._initState()}},{key:"changeItemExpandState",value:function(e,t){t?this._expandedDataItems[e.dataKey]=e.dataItem:delete this._expandedDataItems[e.dataKey],e.expanded=t}},{key:"getItemByDataItem",value:function(e,t){var n=this._itemMap[e.relativeName];return n?t&&(n.dataItem=e):n=this._createItem(e),n}},{key:"_expandAndGetChildrenForRootItem",value:function(){var e=this,t=Object.keys(this._expandedDataItems).filter(function(t){return e._isVisibleAndExpandedItem(t)}).map(function(t){return e._expandedDataItems[t]}),n=t.map(function(t){var n=e.getItemByDataItem(t);return e._expandAndGetChildrenForGeneralItem(n)});return(0,O.default)(n).then(function(){return e._ensureSelectedItemLoaded(),e._rootItem.children})}},{key:"_expandAndGetChildrenForGeneralItem",value:function(e){var t=this;if(e.expanded&&e.childrenLoaded)return(new x.Deferred).resolve(e.children).promise();var n=this._loadMap[e.id];if(n)return n;if(this.changeItemExpandState(e,!0),e.isRoot)n=(new x.Deferred).resolve().promise();else{var i=e.dataItem.getParent(),o=this.getItemByDataItem(i);n=this._expandAndGetChildrenForGeneralItem(o)}n=n.then(function(n){return!n||n.some(function(t){return e.dataItem.equals(t.dataItem)})?t._loadChildren(e):(t._onItemNotFound(e),[])}),this._loadMap[e.id]=n;var a=function(){delete t._loadMap[e.id]};return n.done(a).fail(a),n}},{key:"_loadChildren",value:function(e){var t=this,n=this._options.getItems(e.dataItem);return(0,x.when)(n).then(function(n){return e.children=[],n.forEach(function(n){var i=t.getItemByDataItem(n,!0);e.children.push(i),t._onItemLoaded(i)}),e.childrenLoaded=!0,e.children})}},{key:"_isVisibleAndExpandedItem",value:function(e){var t=this._expandedDataItems[e];if(!t)return!1;if(t.isRoot())return!0;var n=(0,B.getParentPath)(t.relativeName);return this._isVisibleAndExpandedItem(n)}},{key:"_setTreeLineExpandState",value:function(e){var t=this.getItemByDataItem(e);if(this.changeItemExpandState(t,!0),!t.isRoot){var n=e.getParent();this._setTreeLineExpandState(n)}}},{key:"_ensureSelectedItemLoaded",value:function(){var e=this._getSelectedItem();if(!e.isRoot&&!e.childrenLoaded){for(var t in this._itemMap)if(Object.prototype.hasOwnProperty.call(this._itemMap,t)){var n=this._itemMap[t];if(n.childrenLoaded&&n.children.indexOf(e)!==-1)return}this._selectedDataItem=e.dataItem.getParent(),e=this._getSelectedItem(),this._raiseSelectedItemLoaded(e)}}},{key:"_onItemLoaded",value:function(e){this._isSelectedItem(e)&&this._raiseSelectedItemLoaded(e)}},{key:"_onItemNotFound",value:function(e){if(this.changeItemExpandState(e,!1),0===this._selectedDataItem.relativeName.indexOf(e.dataItem.relativeName)){this._selectedDataItem=e.dataItem.getParent();var t=this._getSelectedItem();this._raiseSelectedItemLoaded(t)}}},{key:"_getSelectedItem",value:function(){return this.getItemByDataItem(this._selectedDataItem)}},{key:"_isSelectedItem",value:function(e){return e===this._getSelectedItem()}},{key:"_initState",value:function(){this._itemMap={},this._loadMap={};var e=new E.FileManagerItem("","",(!0));e.name=this._options.rootItemText,this._rootItem=this.getItemByDataItem(e),this.changeItemExpandState(this._rootItem,!0),this._selectedDataItem||(this._selectedDataItem=e)}},{key:"_createItem",value:function(e){var t=e.relativeName,n=!e.relativeName,i=n?"":this._getTreeItemKey(e.parentPath),o=!!this._expandedDataItems[t],a={dataKey:t,childrenLoaded:!1,dataItem:e,isRoot:n,id:this._getTreeItemKey(e.relativeName),parentId:i,text:e.name,expanded:o,icon:"folder"};return this._itemMap[a.dataKey]=a,a}},{key:"_getTreeItemKey",value:function(e){return"TVK_".concat(e)}},{key:"_raiseSelectedItemLoaded",value:function(e){this._options.onSelectedItemLoaded(e)}}]),e}();e.exports=H},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n");this.$element().append(n).addClass(k),this._button=this._createComponent(n,C.default,{text:"⋮",stylingMode:"text",onClick:function(t){return e._raiseClick(t)},template:function(){return(0,v.default)("").html("⋮")}}),l(_(t.prototype),"_initMarkup",this).call(this)}},{key:"_createClickAction",value:function(){this._clickAction=this._createActionByOption("onClick")}},{key:"_raiseClick",value:function(e){this._clickAction(e)}},{key:"_getDefaultOptions",value:function(){return(0,y.extend)(l(_(t.prototype),"_getDefaultOptions",this).call(this),{cssClass:"",onClick:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"cssClass":this.repaint();break;case"onClick":this._createClickAction();break;default:l(_(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"setActive",value:function(e){var t=this;this.$element().toggleClass(S,e),setTimeout(function(){return t._button.$element().toggleClass(I,e)})}}]),t}(x.default);e.exports=T},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n").addClass(S).appendTo(this.$element());e.popupCssClass&&n.addClass(e.popupCssClass),this._popup=this._createComponent(n,C.default,{showTitle:!0,title:e.title,visible:!1,closeOnOutsideClick:!0,contentTemplate:this._createContentTemplate.bind(this),toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:e.buttonText,onClick:this._onButtonClick.bind(this)}}],onHidden:this._onPopupHidden.bind(this),onShown:this._onPopupShown.bind(this)})}},{key:"show",value:function(){this._dialogResult=null,this._popup.show()}},{key:"_getDialogOptions",value:function(){return{title:"Title",buttonText:"ButtonText",contentCssClass:"",popupCssClass:""}}},{key:"_createContentTemplate",value:function(e){this._$contentElement=(0,v.default)("
").appendTo(e).addClass(k);var t=this._getDialogOptions().contentCssClass;t&&this._$contentElement.addClass(t)}},{key:"_getDialogResult",value:function(){return null}},{key:"_onButtonClick",value:function(){var e=this._getDialogResult();e&&(this._dialogResult=e,this._popup.hide())}},{key:"_onPopupHidden",value:function(){this._onClosedAction({dialogResult:this._dialogResult})}},{key:"_onPopupShown",value:function(){}},{key:"_createOnClosedAction",value:function(){this._onClosedAction=this._createActionByOption("onClosed")}},{key:"_getDefaultOptions",value:function(){return(0,y.extend)(l(_(t.prototype),"_getDefaultOptions",this).call(this),{onClosed:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"onClosed":this._createOnPathChangedAction();break;default:l(_(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(x.default);e.exports=I},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n.1||h&&s.cos>=0?i.centerX+t*s.cos:s.cos<-.1||h&&s.cos<0?i.centerX+t*s.cos-o.width:i.centerX+t*s.cos-o.width/2),{x:n,y:r(i.centerY-t*s.sin-o.height/2)}},_correctLabelCoord:function(e,t){var n=this,i=n._label,o=i.getBoundingRect(),a=o.width,r=i.getLayoutOptions(),s=n._getVisibleArea(),l=s.maxX-a,u=s.minX,c=h(n.middleAngle),d=n.centerX,f=r.connectorOffset,p=e.x;return"columns"===r.position?(p=c<=90||c>=270?l:u,e.x=p):"inside"!==r.position&&t&&(c<=90||c>=270?p-fd&&(p=d-a-f),e.x=p),e},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(e){var t=this,n=t._label.getBoundingRect(),i=t._correctLabelCoord(n,e);i=t._checkHorizontalLabelPosition(i,n,t._getVisibleArea()),t._label.shift(r(i.x),r(n.y))},_checkVerticalLabelPosition:function(e,t,n){var i=e.x,o=e.y;return e.y+t.height>n.maxY?o=n.maxY-t.height:e.yn.maxX?i=n.maxX-t.width:e.x0?r=o.maxX-t.centerX-t.radiusLabels:"inside"===a?r>o.maxX-o.minX&&(r=o.maxX-o.minX):e&&i.xt.centerX?r=Math.floor((o.maxX-o.minX)/2):i.x+r>o.maxX?r=o.maxX-i.x:i.xi.radiusOuter||0===r)&&(n=l(o/r)*u*(a>0?-1:1),n<0&&(n+=360),d===h&&c(i.toAngle-i.fromAngle)>1e-4||(d>=h?n<=d&&n>=h:!(n>=d&&n<=h)))}})},function(e,t,n){var i=n(3).each,o=n(0).extend,a=n(4).noop,r=n(272),s=n(121),l=o,u=n(1).isDefined,c=Math,d=c.abs,h=c.min,f=c.max,p=c.round,g=20,_=20;e.exports=l({},s,{deleteLabel:function(){var e=this;e._topLabel.dispose(),e._topLabel=null,e._bottomLabel.dispose(),e._bottomLabel=null},hideMarker:function(e){var t=this.graphic,n=t&&t[e+"Marker"],i=this["_"+e+"Label"];n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var e=this,t=e.graphic,n=t&&t.topMarker,i=t&&t.bottomMarker;n&&n.attr("visibility")&&n.attr({visibility:null}),i&&i.attr("visibility")&&i.attr({visibility:null})},clearMarker:function(){var e=this,t=e.graphic,n=t&&t.topMarker,i=t&&t.bottomMarker,o=e._emptySettings;n&&n.attr(o),i&&i.attr(o)},_getLabelPosition:function(e){var t,n="inside"===this._options.label.position;return t=this._options.rotated?"top"===e^n?"right":"left":"top"===e^n?"top":"bottom"},_getLabelMinFormatObject:function(){var e=this;return{index:0,argument:e.initialArgument,value:e.initialMinValue,seriesName:e.series.name,originalValue:e.originalMinValue,originalArgument:e.originalArgument,point:e}},_updateLabelData:function(){var e=this._getLabelFormatObject();e.index=1,this._topLabel.setData(e),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var e=this,t=this._options.label;(!e._topLabel||!e._bottomLabel)&&e._createLabel(),e._topLabel.setOptions(t),e._bottomLabel.setOptions(t)},_createLabel:function(){var e={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new r.Label(e),this._bottomLabel=new r.Label(e)},_getGraphicBBox:function(e){var t,n=this._options,i=this._getImage(n.image),o="top"===e?this._checkImage(i.top):this._checkImage(i.bottom),a=this._getPositionFromLocation(e);return t=n.visible?o?this._getImageBBox(a.x,a.y):this._getSymbolBBox(a.x,a.y,n.styles.normal.r):{x:a.x,y:a.y,width:0,height:0}},_getPositionFromLocation:function(e){var t,n,i="top"===e;return this._options.rotated?(t=i?f(this.x,this.minX):h(this.x,this.minX),n=this.y):(t=this.x,n=i?h(this.y,this.minY):f(this.y,this.minY)),{x:t,y:n}},_checkOverlay:function(e,t,n){return es&&(l=-(t[i]+t[o]-s),u+=l,c+=l),{coord1:u,coord2:c}},_checkLabelsOverlay:function(e){var t=this,n=t._topLabel.getBoundingRect(),i=t._bottomLabel.getBoundingRect(),o={};t._options.rotated?"top"===e?this._checkOverlay(n.x,i.x,i.width)&&(o=this._getOverlayCorrections(i,n),t._topLabel.shift(o.coord2,n.y),t._bottomLabel.shift(o.coord1,i.y)):this._checkOverlay(i.x,n.x,n.width)&&(o=this._getOverlayCorrections(n,i),t._topLabel.shift(o.coord1,n.y),t._bottomLabel.shift(o.coord2,i.y)):"top"===e?this._checkOverlay(i.y,n.y,n.height)&&(o=this._getOverlayCorrections(n,i), diff --git a/js/dx.aspnet.mvc.js b/js/dx.aspnet.mvc.js index 46ea567e..168434db 100644 --- a/js/dx.aspnet.mvc.js +++ b/js/dx.aspnet.mvc.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.aspnet.mvc.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.cs.js b/js/localization/dx.messages.cs.js index 2fcd3880..d8e8fe2d 100644 --- a/js/localization/dx.messages.cs.js +++ b/js/localization/dx.messages.cs.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.cs.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.de.js b/js/localization/dx.messages.de.js index e6fb592c..3b4315b0 100644 --- a/js/localization/dx.messages.de.js +++ b/js/localization/dx.messages.de.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.de.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.el.js b/js/localization/dx.messages.el.js index 53e53cf3..cf63943d 100644 --- a/js/localization/dx.messages.el.js +++ b/js/localization/dx.messages.el.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.el.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.en.js b/js/localization/dx.messages.en.js index 25b047b5..ed0b7d54 100644 --- a/js/localization/dx.messages.en.js +++ b/js/localization/dx.messages.en.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.en.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.es.js b/js/localization/dx.messages.es.js index b54d033b..fb994327 100644 --- a/js/localization/dx.messages.es.js +++ b/js/localization/dx.messages.es.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.es.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.fi.js b/js/localization/dx.messages.fi.js index b99bfbc4..0889679c 100644 --- a/js/localization/dx.messages.fi.js +++ b/js/localization/dx.messages.fi.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.fi.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.fr.js b/js/localization/dx.messages.fr.js index b402adb5..71adcf4d 100644 --- a/js/localization/dx.messages.fr.js +++ b/js/localization/dx.messages.fr.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.fr.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.hu.js b/js/localization/dx.messages.hu.js index 203661bf..95bf123b 100644 --- a/js/localization/dx.messages.hu.js +++ b/js/localization/dx.messages.hu.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.hu.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.it.js b/js/localization/dx.messages.it.js index c81ccaa0..e6e73e6f 100644 --- a/js/localization/dx.messages.it.js +++ b/js/localization/dx.messages.it.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.it.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.ja.js b/js/localization/dx.messages.ja.js index 4958c12b..f75946ab 100644 --- a/js/localization/dx.messages.ja.js +++ b/js/localization/dx.messages.ja.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.ja.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.nl.js b/js/localization/dx.messages.nl.js index 842d3091..692b04d5 100644 --- a/js/localization/dx.messages.nl.js +++ b/js/localization/dx.messages.nl.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.nl.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.pt.js b/js/localization/dx.messages.pt.js index 825dbab0..24563163 100644 --- a/js/localization/dx.messages.pt.js +++ b/js/localization/dx.messages.pt.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.pt.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.ru.js b/js/localization/dx.messages.ru.js index 2f42035e..f9b8a9a1 100644 --- a/js/localization/dx.messages.ru.js +++ b/js/localization/dx.messages.ru.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.ru.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.sl.js b/js/localization/dx.messages.sl.js index db390271..4492aea4 100644 --- a/js/localization/dx.messages.sl.js +++ b/js/localization/dx.messages.sl.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.sl.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.sv.js b/js/localization/dx.messages.sv.js index ab3827a5..926efe81 100644 --- a/js/localization/dx.messages.sv.js +++ b/js/localization/dx.messages.sv.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.sv.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.tr.js b/js/localization/dx.messages.tr.js index 89f7f8b5..487fc385 100644 --- a/js/localization/dx.messages.tr.js +++ b/js/localization/dx.messages.tr.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.tr.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.vi.js b/js/localization/dx.messages.vi.js index 6b61c2a5..f3fb19db 100644 --- a/js/localization/dx.messages.vi.js +++ b/js/localization/dx.messages.vi.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.vi.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/localization/dx.messages.zh.js b/js/localization/dx.messages.zh.js index 012e13c6..18125543 100644 --- a/js/localization/dx.messages.zh.js +++ b/js/localization/dx.messages.zh.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.messages.zh.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/vectormap-utils/dx.vectormaputils.debug.js b/js/vectormap-utils/dx.vectormaputils.debug.js index ca01491f..5a4a0ce3 100644 --- a/js/vectormap-utils/dx.vectormaputils.debug.js +++ b/js/vectormap-utils/dx.vectormaputils.debug.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.vectormaputils.debug.js) - * Version: 19.1.11 - * Build date: Fri May 15 2020 + * Version: 19.1.11 (build 20155-0314) + * Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/vectormap-utils/dx.vectormaputils.js b/js/vectormap-utils/dx.vectormaputils.js index 5c1370d0..c2961f3f 100644 --- a/js/vectormap-utils/dx.vectormaputils.js +++ b/js/vectormap-utils/dx.vectormaputils.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.vectormaputils.js) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/js/vectormap-utils/dx.vectormaputils.node.js b/js/vectormap-utils/dx.vectormaputils.node.js index c59a4808..11102cb6 100644 --- a/js/vectormap-utils/dx.vectormaputils.node.js +++ b/js/vectormap-utils/dx.vectormaputils.node.js @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.vectormaputils.node.js) - * Version: 19.1.11 - * Build date: Fri May 15 2020 + * Version: 19.1.11 (build 20155-0314) + * Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ diff --git a/ts/dx.all.d.ts b/ts/dx.all.d.ts index 6438c4e7..3cda7968 100644 --- a/ts/dx.all.d.ts +++ b/ts/dx.all.d.ts @@ -1,7 +1,7 @@ /*! * DevExtreme (dx.all.d.ts) -* Version: 19.1.11 -* Build date: Fri May 15 2020 +* Version: 19.1.11 (build 20155-0314) +* Build date: Wed Jun 03 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/