").attr("aria-label",t).appendTo(e);this._toolbar=this._createComponent(n,u.default,this._toolbarOptions)}},_columnOptionChanged:o.noop,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,t){var n=this._toolbar;if(n){var i=(n.option("items")||[]).findIndex((function(t){return t.name===e}));if(!(i<0)){var o=n.option("items[".concat(i,"]"));n.option("items[".concat(i,"].disabled"),t),o.options&&n.option("items[".concat(i,"].options.disabled"),t)}}},updateToolbarDimensions:function(){var e;null===(e=this._toolbar)||void 0===e||e.updateDimensions()},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){if("onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),"toolbar"===e.name&&(e.handled=!0,this._toolbar)){var t=(0,a.getPathParts)(e.fullName),n=e.fullName.replace(/^toolbar\./,"");if(1===t.length){var i=this._getToolbarOptions();this._toolbar.option(i)}else if("items"===t[1])if(2===t.length){var o=this._getToolbarOptions();this._toolbar.option("items",o.items)}else if(3===t.length){var r=this._normalizeToolbarItems(this._getToolbarItems(),e.value);this._toolbar.option(n,r)}else t.length>=4&&this._toolbar.option(n,e.value);else this._toolbar.option(n,e.value)}this.callBase(e)},isVisible:function(){return!(!this._toolbarOptions||!this._toolbarOptions.visible)},allowDragging:o.noop,hasGroupedColumns:o.noop},g={defaultOptions:function(){return{}},views:{headerPanel:d.ColumnsView.inherit(p)},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}};t.headerPanelModule=g},67004:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WIDGET_CLASS=t.VIRTUAL_ROW_CLASS=t.ROW_CLASS=t.ROWS_VIEW_CLASS=t.REVERT_BUTTON_CLASS=t.NON_FOCUSABLE_ELEMENTS_SELECTOR=t.MASTER_DETAIL_ROW_CLASS=t.MASTER_DETAIL_CELL_CLASS=t.INTERACTIVE_ELEMENTS_SELECTOR=t.HEADER_ROW_CLASS=t.GROUP_ROW_CLASS=t.GROUP_FOOTER_CLASS=t.FUNCTIONAL_KEYS=t.FREESPACE_ROW_CLASS=t.FOCUS_TYPE_ROW=t.FOCUS_TYPE_CELL=t.FOCUS_STATE_CLASS=t.FOCUSED_CLASS=t.FAST_EDITING_DELETE_KEY=t.EDIT_MODE_FORM=t.EDIT_FORM_ITEM_CLASS=t.EDIT_FORM_CLASS=t.EDITOR_CELL_CLASS=t.DROPDOWN_EDITOR_OVERLAY_CLASS=t.DATEBOX_WIDGET_NAME=t.DATA_ROW_CLASS=t.COMMAND_SELECT_CLASS=t.COMMAND_EXPAND_CLASS=t.COMMAND_EDIT_CLASS=t.COMMAND_CELL_SELECTOR=t.COLUMN_HEADERS_VIEW=t.CELL_FOCUS_DISABLED_CLASS=t.ATTRIBUTES=void 0;t.ATTRIBUTES={ariaColIndex:"aria-colindex",dragCell:"dx-drag-cell"};t.ROWS_VIEW_CLASS="rowsview";t.EDIT_FORM_CLASS="edit-form";t.GROUP_FOOTER_CLASS="group-footer";t.ROW_CLASS="dx-row";t.DATA_ROW_CLASS="dx-data-row";t.GROUP_ROW_CLASS="dx-group-row";t.HEADER_ROW_CLASS="dx-header-row";t.EDIT_FORM_ITEM_CLASS="edit-form-item";t.MASTER_DETAIL_ROW_CLASS="dx-master-detail-row";t.FREESPACE_ROW_CLASS="dx-freespace-row";t.VIRTUAL_ROW_CLASS="dx-virtual-row";t.MASTER_DETAIL_CELL_CLASS="dx-master-detail-cell";t.EDITOR_CELL_CLASS="dx-editor-cell";t.DROPDOWN_EDITOR_OVERLAY_CLASS="dx-dropdowneditor-overlay";t.COMMAND_EXPAND_CLASS="dx-command-expand";t.COMMAND_SELECT_CLASS="dx-command-select";t.COMMAND_EDIT_CLASS="dx-command-edit";t.COMMAND_CELL_SELECTOR="[class^=dx-command]";t.CELL_FOCUS_DISABLED_CLASS="dx-cell-focus-disabled";t.DATEBOX_WIDGET_NAME="dxDateBox";t.FOCUS_STATE_CLASS="dx-state-focused";t.WIDGET_CLASS="dx-widget";t.REVERT_BUTTON_CLASS="dx-revert-button";t.FOCUSED_CLASS="dx-focused";t.FAST_EDITING_DELETE_KEY="delete";t.INTERACTIVE_ELEMENTS_SELECTOR="input:not([type='hidden']), textarea, a, select, button, [tabindex], .dx-checkbox";var n="".concat("input:not([type='hidden']), textarea, a, select, button, [tabindex], .dx-checkbox",", .dx-dropdowneditor-icon");t.NON_FOCUSABLE_ELEMENTS_SELECTOR=n;t.EDIT_MODE_FORM="form";t.FOCUS_TYPE_ROW="row";t.FOCUS_TYPE_CELL="cell";t.COLUMN_HEADERS_VIEW="columnHeadersView";t.FUNCTIONAL_KEYS=["shift","control","alt"]},83066:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GridCoreKeyboardNavigationDom=void 0;var i=n(67004),o={isDragCell:function(e){return void 0!==e.attr(i.ATTRIBUTES.dragCell)},getCellToFocus:function(e,t){return e.filter("[".concat(i.ATTRIBUTES.ariaColIndex,'="').concat(t+1,'"]:not([').concat(i.ATTRIBUTES.dragCell,"])")).first()}};t.GridCoreKeyboardNavigationDom=o},31822:function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.keyboardNavigationModule=t.KeyboardNavigationController=void 0;var o=n(20576),a=I(n(73349)),r=n(6415),s=I(n(68374)),l=I(n(47810)),u=n(62754),d=n(58664),c=n(35922),h=n(95429),f=I(n(55994)),p=I(n(93786)),g=n(72918),m=n(39611),_=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=D(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}o.default=e,n&&n.set(e,o);return o}(n(56756)),v=n(31421),y=n(18945),b=n(72313),x=I(n(15943)),w=I(n(60082)),C=n(67004),S=n(83066),k=n(67250);function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(D=function(e){return e?n:t})(e)}function I(e){return e&&e.__esModule?e:{default:e}}function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var E=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,T(t,n);var o=i.prototype;return o.init=function(){var e=this;if(this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._editingController=this.getController("editing"),this._headerPanel=this.getView("headerPanel"),this._rowsView=this.getView("rowsView"),this._columnsController=this.getController("columns"),this._editorFactory=this.getController("editorFactory"),this._focusController=this.getController("focus"),this._memoFireFocusedCellChanged=(0,y.memoize)(this._memoFireFocusedCellChanged.bind(this),{compareType:"value"}),this._memoFireFocusedRowChanged=(0,y.memoize)(this._memoFireFocusedRowChanged.bind(this),{compareType:"value"}),this.isKeyboardEnabled()){_.subscribeVisibilityChange(),this._updateFocusTimeout=null,this._fastEditingStarted=!1,this._focusedCellPosition={},this._canceledCellPosition=null;this._editorFactory.focused.add((function(t){e.setupFocusedView(),e._isNeedScroll&&t.is(":visible")&&e._focusedView&&e._focusedView.getScrollable&&(e._focusedView._scrollToElement(t),e._isNeedScroll=!1)})),this._initViewHandlers(),this._initDocumentHandlers(),this.createAction("onKeyDown")}},o._initViewHandlers=function(){var e=this,t=function(t){var n,i=(0,s.default)(t.target),o=(0,s.default)(t.relatedTarget).closest(e._rowsView.element()).length,a=i.is("a");if(t.relatedTarget&&a&&!o&&e._isEventInCurrentGrid(t)){var r=e._getFocusedCell();r=(0,k.isElementDefined)(r)?r:e._rowsView.getCellElements(0).filter("[tabindex]").eq(0),i.closest(r).length||(t.preventDefault(),f.default.trigger(r,"focus"))}var l=i.is("td"),u=(null!==(n=e.option("focusedRowIndex"))&&void 0!==n?n:-1)<0;l&&u&&e._updateFocusedCellPosition(i)};this._rowsView.renderCompleted.add((function(n){var i=e._rowsView.element(),o=!n||"refresh"===n.changeType,r=e._focusedView&&e._focusedView.name===e._rowsView.name,l=n&&("append"===n.changeType||"prepend"===n.changeType),u=(0,s.default)(a.default.getRootNode(i.get&&i.get(0))).find(":focus"),d=!u.length||u.closest(i).length;f.default.off(i,"focusin",t),f.default.on(i,"focusin",t),e._initPointerEventHandler(),e._initKeyDownHandler(),e._setRowsViewAttributes(),r&&d&&(e._isNeedFocus?!l:e._isHiddenFocus&&o&&!(null==n?void 0:n.virtualColumnsScrolling))&&e._updateFocus(!0)}))},o._initDocumentHandlers=function(){var e=this,t=a.default.getDocument();this._documentClickHandler=this.createAction((function(t){var n=(0,s.default)(t.event.target),i=e._isEventInCurrentGrid(t.event)&&n.closest(".".concat(e.addWidgetPrefix(C.ROWS_VIEW_CLASS))).length,o=n.closest(".".concat(C.DROPDOWN_EDITOR_OVERLAY_CLASS)).length,a=e.getController("columnsResizer"),r=!!a&&a.isResizing();i||o||r||(!(!!e._focusedView&&n.parents().filter(e._focusedView.element()).length>0)&&e._resetFocusedCell(!0),e._resetFocusedView())})),f.default.on(t,(0,m.addNamespace)(p.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},o._setRowsViewAttributes=function(){var e=this._getRowsViewElement();!this._dataController.getVisibleRows().length&&this._applyTabIndexToElement(e)},o._initPointerEventHandler=function(){var e=(0,k.isMobile)()?h.name:p.default.down,t=".".concat(b.ROW_CLASS," > td, .").concat(b.ROW_CLASS),n=this._getRowsViewElement();(0,c.isDefined)(this._pointerEventAction)||(this._pointerEventAction=this.createAction(this._pointerEventHandler)),f.default.off(n,(0,m.addNamespace)(e,"dxDataGridKeyboardNavigation"),this._pointerEventAction),f.default.on(n,(0,m.addNamespace)(e,"dxDataGridKeyboardNavigation"),t,this._pointerEventAction)},o._initKeyDownHandler=function(){var e=this,t=this._getRowsViewElement();g.keyboard.off(this._keyDownListener),this._keyDownListener=g.keyboard.on(t,null,(function(t){return e._keyDownHandler(t)}))},o.dispose=function(){e.prototype.dispose.call(this),this._resetFocusedView(),g.keyboard.off(this._keyDownListener),f.default.off(a.default.getDocument(),(0,m.addNamespace)(p.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),clearTimeout(this._updateFocusTimeout),_.unsubscribeVisibilityChange()},o.optionChanged=function(t){switch(t.name){case"keyboardNavigation":case"useLegacyKeyboardNavigation":t.handled=!0;break;default:e.prototype.optionChanged.call(this,t)}},o.isRowFocusType=function(){return this.focusType===C.FOCUS_TYPE_ROW},o.isCellFocusType=function(){return this.focusType===C.FOCUS_TYPE_CELL},o.setRowFocusType=function(){this.option("focusedRowEnabled")&&(this.focusType=C.FOCUS_TYPE_ROW)},o.setCellFocusType=function(){this.focusType=C.FOCUS_TYPE_CELL},o._keyDownHandler=function(e){var t,n=!0;this._isNeedFocus=!0,this._isNeedScroll=!0;var i=this._processOnKeyDown(e),o=null===(t=this._editingController)||void 0===t?void 0:t.isEditing(),a=e.originalEvent;if(a.isDefaultPrevented())return this._isNeedFocus=!1,void(this._isNeedScroll=!1);if(!C.FUNCTIONAL_KEYS.includes(e.keyName)&&this._updateFocusedCellPositionByTarget(a.target),!i){switch(e.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(e,o),i=!0;break;case"upArrow":case"downArrow":e.ctrl?_.selectView("rowsView",this,a):this._upDownKeysHandler(e,o),i=!0;break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(e),i=!0;break;case"space":i=this._spaceKeyHandler(e,o);break;case"A":(0,m.isCommandKeyPressed)(e.originalEvent)?(this._ctrlAKeyHandler(e,o),i=!0):i=this._beginFastEditing(e.originalEvent);break;case"tab":this._tabKeyHandler(e,o),i=!0;break;case"enter":this._enterKeyHandler(e,o),i=!0;break;case"escape":this._escapeKeyHandler(e,o),i=!0;break;case"F":(0,m.isCommandKeyPressed)(e.originalEvent)?(this._ctrlFKeyHandler(e),i=!0):i=this._beginFastEditing(e.originalEvent);break;case"F2":this._f2KeyHandler(),i=!0;break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&(i=this._beginFastEditing(a,!0))}i||this._beginFastEditing(a)||(this._isNeedFocus=!1,this._isNeedScroll=!1,n=!1),n&&a.stopPropagation()}},o._processOnKeyDown=function(e){var t=e.originalEvent,n={handled:!1,event:t};return this.executeAction("onKeyDown",n),e.ctrl=t.ctrlKey,e.alt=t.altKey,e.shift=t.shiftKey,!!n.handled},o._closeEditCell=function(){var e=this;setTimeout((function(){e._editingController.closeEditCell()}))},o._leftRightKeysHandler=function(e,t){var n=this.getVisibleRowIndex(),i=e.originalEvent,o=this._focusedView&&this._focusedView.getRow(n),a=this._getDirectionCodeByKey(e.keyName),r=this._isFastEditingStarted();if((!t||r)&&(0,k.isDataRow)(o)){this.setCellFocusType(),r&&this._closeEditCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(a);var s=this._getNextCell(a);(0,k.isElementDefined)(s)&&this._arrowKeysHandlerFocusCell(i,s,a),i&&i.preventDefault()}},o._upDownKeysHandler=function(e,t){var n,i,o=this.getVisibleRowIndex(),a=this._focusedView&&this._focusedView.getRow(o),r=e.originalEvent,s="upArrow"===e.keyName,l=this._dataController.dataSource(),u=null===(i=null===(n=this._editingController)||void 0===n?void 0:n.isEditRowByIndex)||void 0===i?void 0:i.call(n,o),c=this._isFastEditingStarted();if((!u||!t||c)&&a&&!(0,k.isDetailRow)(a)){if(c&&this._closeEditCell(),!this._navigateNextCell(r,e.keyName)&&this._isVirtualRowRender()&&s&&l&&!l.isLoading()){var h=(0,d.getOuterHeight)(a),f=this._focusedCellPosition.rowIndex-1;this._scrollBy(0,-h,f,r)}r&&r.preventDefault()}},o._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._rowsView.getScrollable();i&&!this._isVirtualScrolling()?(o?t>0:t
=0),o},o._isFixedColumn=function(e){var t=this._columnsController.getVisibleColumns(null,!0)[e];return!!t&&!!t.fixed},o._isColumnVirtual=function(e){var t=e-this._columnsController.getColumnIndexOffset(),n=this._columnsController.getVisibleColumns()[t];return!!n&&"virtual"===n.command},o._processVirtualHorizontalPosition=function(e){var t,n=this.component.getScrollable(),i=this.getColumnIndex(),o=0,a=!1;switch(e){case"next":case"nextInRow":var r=this._getVisibleColumnCount();t=i+1,o=this.option("rtlEnabled")?this._getMaxHorizontalOffset():0,a="next"===e?r===t||this._isFixedColumn(i)&&!this._isColumnRendered(t):r>t&&this._isFixedColumn(i)&&!this._isColumnRendered(t);break;case"previous":case"previousInRow":if(t=i-1,o=this.option("rtlEnabled")?0:this._getMaxHorizontalOffset(),"previous"===e){var s=this._columnsController.getColumnIndexOffset();a=t<0&&0===s||this._isFixedColumn(i)&&!this._isColumnRendered(t)}else a=t>=0&&this._isFixedColumn(i)&&!this._isColumnRendered(t)}a?n.scrollTo({left:o}):(0,c.isDefined)(t)&&(0,c.isDefined)(e)&&this._isColumnVirtual(t)&&0!==(o=this._getHorizontalScrollPositionOffset(e))&&n.scrollBy({left:o,top:0})},o._getHorizontalScrollPositionOffset=function(e){var t=0,n=this._getCell(this._focusedCellPosition),i=n&&(0,d.getOuterWidth)(n);if(i>0){var o=this.option("rtlEnabled")?-1:1;t="nextInRow"===e||"next"===e?i*o:i*o*-1}return t},o._editingCellTabHandler=function(e,t){var n,i=e.originalEvent.target,o=this._getCellElementFromTarget(i),a=e.originalEvent,r=this._getElementType(i);if(o.is(C.COMMAND_CELL_SELECTOR))return!this._targetCellTabHandler(e,t);this._updateFocusedCellPosition(o);var s=this._getNextCellByTabKey(a,t,r);if(!(o=s.$cell)||this._handleTabKeyOnMasterDetailCell(o,t))return!1;var l=this._columnsController,u=this._rowsView.getCellIndex(o)+l.getColumnIndexOffset(),d=l.getVisibleColumns(null,!0)[u],c=o.parent(),h=this._getRowIndex(c),f=this._dataController.items()[h],p=this._editingController;if(d&&d.allowEditing){var g=!f||"data"===f.rowType;n=p.allowUpdating({row:f})?g:f&&f.isNewRow}return n||this._closeEditCell(),this._focusCell(o,!s.isHighlighted)&&(!this._isRowEditMode()&&n?this._editFocusedCell():this._focusInteractiveElement(o,e.shift)),!0},o._targetCellTabHandler=function(e,t){var n,i=e.originalEvent,o=i.target,a=this._getCellElementFromTarget(o),r=this._getInteractiveElement(a,!e.shift),l=!1;if(!(0,k.isEditorCell)(this,a)&&r.length&&o!==r.get(0))l=!0;else{void 0===this._focusedCellPosition.rowIndex&&(0,s.default)(o).hasClass(b.ROW_CLASS)&&this._updateFocusedCellPosition(a),n=this._getElementType(o),this.isRowFocusType()&&(this.setCellFocusType(),"row"===n&&(0,k.isDataRow)((0,s.default)(o))&&(o=this.getFirstValidCellInRow((0,s.default)(o)),n=this._getElementType(o)));var u=this._getNextCellByTabKey(i,t,n);if(!(a=u.$cell))return!1;if(!(a=this._checkNewLineTransition(i,a)))return!1;this._focusCell(a,!u.isHighlighted),(0,k.isEditorCell)(this,a)||this._focusInteractiveElement(a,e.shift)}return l},o._getNextCellByTabKey=function(e,t,n){var i=this._getNextCell(t,n),o=i&&this._fireFocusedCellChanging(e,i,!0);return!o||o.cancel?{}:(o.$newCellElement&&(i=o.$newCellElement),{$cell:i,isHighlighted:o.isHighlighted})},o._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&&o&&(this.setFocusedColumnIndex(o.columnIndex),t=this._getFocusedCell())}return t},o._enterKeyHandler=function(e,t){var n=this._getFocusedCell(),i=this.getVisibleRowIndex(),o=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&(0,k.isGroupRow)(o)||this.option("masterDetail.enabled")&&n&&n.hasClass(C.COMMAND_EXPAND_CLASS)){var a=this._dataController.getKeyByRowIndex(i),r=this._dataController.items()[i];void 0!==a&&r&&r.data&&!r.data.isContinuation&&this._dataController.changeRowExpand(a)}else this._processEnterKeyForDataCell(e,t)},o._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)},o._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},o._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))):(f.default.trigger((0,s.default)(t),"change"),this._closeEditCell(),e.preventDefault())},o._escapeKeyHandler=function(e,t){var n=this._getCellElementFromTarget(e.originalEvent.target);t&&(this._updateFocusedCellPosition(n),this._isRowEditMode()?(this._focusEditFormCell(n),this._editingController.cancelEditData(),0===this._dataController.items().length&&(this._resetFocusedCell(),this._editorFactory.loseFocus())):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),e.originalEvent.preventDefault())},o._ctrlFKeyHandler=function(e){if(this.option("searchPanel.visible")){var t=this._headerPanel.getSearchTextEditor();t&&(t.focus(),e.originalEvent.preventDefault())}},o._f2KeyHandler=function(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(t);!e&&(0,k.isDataRow)(n)&&this._startEditing()},o._navigateNextCell=function(e,t){var n=this._getNextCell(t),i=this._getDirectionCodeByKey(t);return!!(n&&this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(e,n,i)},o._arrowKeysHandlerFocusCell=function(e,t,n){var i="prevRow"===n||"nextRow"===n,o=this._fireFocusChangingEvents(e,t,i,!0);return t=o.$newCellElement,!(o.cancel||!this._isCellValid(t))&&(this._focus(t,!o.isHighlighted),!0)},o._beginFastEditing=function(e,t){if(!this._isFastEditingAllowed()||e.altKey||e.ctrlKey||this._editingController.isEditing())return!1;if(t)this._startEditing(e,C.FAST_EDITING_DELETE_KEY);else{var n=e.key,i=e.keyCode||e.which,o=n||i&&String.fromCharCode(i);!o||1!==o.length&&o!==C.FAST_EDITING_DELETE_KEY||this._startEditing(e,o)}return!0},o._pointerEventHandler=function(e){var t,n=e.event||e,i=(0,s.default)(n.currentTarget),o=null===(t=this._rowsView)||void 0===t?void 0:t.element(),a=i.parent(),r=(0,s.default)(n.target).is(C.INTERACTIVE_ELEMENTS_SELECTOR),l=!!(0,s.default)(n.target).closest(".".concat(C.REVERT_BUTTON_CLASS)).length,u=i.hasClass(C.COMMAND_EXPAND_CLASS);this._isEventInCurrentGrid(n)&&(l||!this._isCellValid(i,!r)&&!u?i.is("td")&&this._resetFocusedCell():(i=this._isInsideEditForm(i)?(0,s.default)(n.target):i,this._focusView(),(0,s.default)(o).removeClass(C.FOCUS_STATE_CLASS),a.hasClass(C.FREESPACE_ROW_CLASS)?(this._updateFocusedCellPosition(i),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus(!0)):this._isMasterDetailCell(i)?this._updateFocusedCellPosition(i):this._clickTargetCellHandler(n,i)))},o._clickTargetCellHandler=function(e,t){var n=this._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),this._editingController.isEditing()&&o&&this._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{t=this._getFocusedCell();var r=e&&(0,s.default)(e.target).closest("".concat(C.NON_FOCUSABLE_ELEMENTS_SELECTOR,", td")),l=r&&r.not(t).is(C.NON_FOCUSABLE_ELEMENTS_SELECTOR),u=!(!!i&&!i.command&&t.hasClass(b.EDITOR_CELL_CLASS))&&(!a.isHighlighted||l);this._focus(t,u,l)}}},o._allowRowUpdating=function(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")},o.focus=function(e){var t,n=this.option("focusedRowEnabled"),i=this._isCellElement((0,s.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,s.default)(e),i)},o.getFocusedView=function(){return this._focusedView},o.setupFocusedView=function(){this.isKeyboardEnabled()&&!(0,c.isDefined)(this._focusedView)&&this._focusView()},o._focusElement=function(e,t){var n=(0,s.default)(this._getRowsViewElement()),i=e.closest(n),o=this.isRowFocusType(),a={};!i.length||this._isCellElement(e)&&!this._isCellValid(e)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(this._isCellElement(e)||(0,k.isGroupRow)(e))&&(this.setCellFocusType(),e=(a=this._fireFocusChangingEvents(null,e,!0,t)).$newCellElement,o&&!a.isHighlighted&&this.setRowFocusType()),a.cancel||(this._focus(e,!a.isHighlighted),this._focusInteractiveElement(e)))},o._getFocusedViewByElement=function(e){var t=this.getFocusedView(),n=t&&(0,s.default)(t.element());return e&&0!==e.closest(n).length},o._focusView=function(){this._focusedView=this._rowsView},o._resetFocusedView=function(){this.setRowFocusType(),this._focusedView=null},o._focusInteractiveElement=function(e,t){if(e){var n=this._getInteractiveElement(e,t);w.default.focusAndSelectElement(this,n)}},o._focus=function(e,t,n){var i=e&&!e.hasClass(b.ROW_CLASS)?e.closest(".".concat(b.ROW_CLASS)):e;if(!i||!(0,k.isNotFocusedRow)(i)){var o,a=this._focusedView,r=a&&a.element();this._isHiddenFocus=t;var s=(0,k.isGroupRow)(i)||(0,k.isGroupFooterRow)(i)||this.isRowFocusType();s?(o=i,a&&this.setFocusedRowIndex(this._getRowIndex(i))):this._isCellElement(e)&&(o=e,this._updateFocusedCellPosition(e)),o&&(r&&r.find(".dx-row[tabindex], .dx-row > td[tabindex]").not(o).removeClass(C.CELL_FOCUS_DISABLED_CLASS).removeClass(C.FOCUSED_CLASS).removeAttr("tabindex"),f.default.one(o,"blur",(function(e){e.relatedTarget&&o.removeClass(C.CELL_FOCUS_DISABLED_CLASS).removeClass(C.FOCUSED_CLASS)})),n||(this._applyTabIndexToElement(o),f.default.trigger(o,"focus")),t?(o.addClass(C.CELL_FOCUS_DISABLED_CLASS),s&&e.addClass(C.CELL_FOCUS_DISABLED_CLASS)):this._editorFactory.focus(o))}},o._updateFocus=function(e){var t=this;this._updateFocusTimeout=setTimeout((function(){var n=t._editingController,i=n.getEditMode()===b.EDIT_MODE_CELL,o=n.getEditMode()===b.EDIT_MODE_BATCH;if(i&&n.hasChanges()||o&&n.isNewRowInEditMode())n._focusEditingCell();else{var a=t._getFocusedCell(),r=n.isEditing();if(a&&(!t._isMasterDetailCell(a)||t._isRowEditMode())){if(t._hasSkipRow(a.parent())){var s=t._focusedCellPosition&&t._focusedCellPosition.rowIndex>0?"upArrow":"downArrow";a=t._getNextCell(s)}if((0,k.isElementDefined)(a))if(a.is("td")||a.hasClass(t.addWidgetPrefix(C.EDIT_FORM_ITEM_CLASS))){var l=a.is(C.COMMAND_CELL_SELECTOR),u=a.find(":focus"),d=(0,k.isElementDefined)(u);if(!e&&l||!t._editorFactory.focus())d||!t._isNeedFocus&&!t._isHiddenFocus||t._focus(a,t._isHiddenFocus);else{if(l&&d)return void w.default.focusAndSelectElement(t,u);!d&&t._focus(a)}r&&t._focusInteractiveElement.bind(t)(a)}else f.default.trigger(a,"focus")}}}))},o._getFocusedCell=function(){return(0,s.default)(this._getCell(this._focusedCellPosition))},o._updateFocusedCellPositionByTarget=function(e){var t;if("row"===this._getElementType(e)&&(0,c.isDefined)(null===(t=this._focusedCellPosition)||void 0===t?void 0:t.columnIndex)){var n=(0,s.default)(e);this._focusedView&&(0,k.isGroupRow)(n)&&this.setFocusedRowIndex(this._getRowIndex(n))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(e))},o._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},o._getFocusedColumnIndexOffset=function(e){var t=0,n=this._columnsController.getVisibleColumns()[e];return n&&n.fixed?t=this._getFixedColumnIndexOffset(n):e>=0&&(t=this._columnsController.getColumnIndexOffset()),t},o._getFixedColumnIndexOffset=function(e){return(0,k.isFixedColumnIndexOffsetRequired)(this,e)?this._getVisibleColumnCount()-this._columnsController.getVisibleColumns().length:0},o._getCellPosition=function(e,t){var n,i=(0,k.isElementDefined)(e)&&e.closest("tr");if((0,k.isElementDefined)(i)){var o=this._getRowIndex(i);return n=this._rowsView.getCellIndex(e,o),n+=this._getFocusedColumnIndexOffset(n),t&&(n="previous"===t?n-1:n+1,n=this._applyColumnIndexBoundaries(n)),{rowIndex:o,columnIndex:n}}},o._focusCell=function(e,t){if(this._isCellValid(e))return this._focus(e,t),!0},o._focusEditFormCell=function(e){e.hasClass(C.MASTER_DETAIL_CELL_CLASS)&&this._editorFactory.focus(e,!0)},o._resetFocusedCell=function(e){var t,n=this._getFocusedCell();(0,k.isElementDefined)(n)&&n.removeAttr("tabindex"),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={},clearTimeout(this._updateFocusTimeout),null===(t=this._focusedView)||void 0===t||t.renderFocusState({preventScroll:e})},o.restoreFocusableElement=function(e,t){var n,i,o=(0,c.isDefined)(e),a=this._rowsView.element(),r=this._focusedCellPosition.columnIndex,s=this._dataController.getRowIndexOffset();e=o?e:this._rowsView.getTopVisibleItemIndex()+s,o?(i=this._rowsView.getRow(e-s),!(n=this._fireFocusedRowChanging(t,i)).cancel&&n.rowIndexChanged&&(e=n.newRowIndex)):(this._editorFactory.loseFocus(),this._applyTabIndexToElement(a),f.default.trigger(a,"focus")),o&&n.cancel||this.setFocusedCellPosition(e,r),o&&this._updateFocus()},o._getNewPositionByCode=function(e,t,n){var i=e.columnIndex,o=e.rowIndex;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i0&&"row"!==t&&this._hasValidCellBeforePosition({columnIndex:i,rowIndex:o})?i--:o>0&&"previous"===n&&(o--,i=this._getVisibleColumnCount()-1);break;case"upArrow":o=o>0?o-1:o;break;case"downArrow":o=this._isLastRow(o)?o:o+1}return{columnIndex:i,rowIndex:o}},o.setFocusedCellPosition=function(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)},o.setFocusedRowIndex=function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e},o.setFocusedColumnIndex=function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e},o.getRowIndex=function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex:-1},o.getColumnIndex=function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:-1},o.getVisibleRowIndex=function(){var e,t=null===(e=this._focusedCellPosition)||void 0===e?void 0:e.rowIndex;return!(0,c.isDefined)(t)||t<0?-1:t-this._dataController.getRowIndexOffset()},o.getVisibleColumnIndex=function(){var e,t=null===(e=this._focusedCellPosition)||void 0===e?void 0:e.columnIndex;return(0,c.isDefined)(t)?t-this._columnsController.getColumnIndexOffset():-1},o._applyColumnIndexBoundaries=function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},o._isCellByPositionValid=function(e){var t=(0,s.default)(this._getCell(e));return this._isCellValid(t)},o._isLastRow=function(e){var t=this._dataController,n=t.items().filter((function(e){return!1!==e.visible}));return this._isVirtualRowRender()?e>=t.getMaxRowIndex():e===n.length-1},o._isFirstValidCell=function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._hasValidCellBeforePosition(e)),t},o._hasValidCellBeforePosition=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},o._hasValidCellAfterPosition=function(e){for(var t=e.columnIndex,n=!1,i=this._getVisibleColumnCount();t=0?e.columnIndex+1:0,n=e.rowIndex,i={columnIndex:t,rowIndex:n},o=this._dataController.getVisibleRows(),a=o&&o[n];return!!this._isLastRow(n)&&(!!(a&&"group"===a.rowType&&e.columnIndex>0)||(e.columnIndex===this._getVisibleColumnCount()-1||!this._isCellByPositionValid(i)&&this._isLastValidCell(i)))},o._isCellValid=function(e,t){if((0,k.isElementDefined)(e)){var n=e.parent(),i=this._columnsController,o=this._rowsView.getCellIndex(e)+i.getColumnIndexOffset(),a=i.getVisibleColumns(null,!0)[o],r=this._getVisibleColumnCount(),s=this._editingController,l=(0,k.isDetailRow)(n),u=a&&a.showWhenGrouped,d=a&&!e.hasClass(C.COMMAND_EXPAND_CLASS)&&(0,k.isDataRow)(n);if(S.GridCoreKeyboardNavigationDom.isDragCell(e))return!1;if(this._isMasterDetailCell(e))return!0;if(r>o&&(!l&&a&&(!(0,c.isDefined)(a.groupIndex)||u&&d)||parseInt(e.attr("colspan"),10)>1)){var h=this._dataController.items(),f=this._rowsView.getRowIndex(n),p=h[f],g=s&&this._isCellEditMode()&&s.isEditing(),m=s&&s.isEditRow(f),_=m||g;return a.command?this._isLegacyNavigation()?!_&&"expand"===a.command:!g&&(m?"select"!==a.command:!_):(!g||!p||"data"===p.rowType)&&(!_||a.allowEditing||t)}}},o.getFirstValidCellInRow=function(e,t){for(var n,i,o=e.find("> td"),a=t=t||0;a=0?e.rowIndex-t:-1,a=e.columnIndex>=0?e.columnIndex-i:-1;return this._focusedView.getCell({rowIndex:o,columnIndex:a})}},o._getRowIndex=function(e){var t=this._rowsView.getRowIndex(e);return t>=0&&(t+=this._dataController.getRowIndexOffset()),t},o._hasSkipRow=function(e){var t=e&&e.get(0);return t&&("none"===t.style.display||(0,k.isDetailRow)(e)&&!e.hasClass(this.addWidgetPrefix(b.EDIT_FORM_CLASS)))},o._allowEditingOnEnterKey=function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},o._isLegacyNavigation=function(){return this.option("useLegacyKeyboardNavigation")},o._getDirectionCodeByKey=function(e){var t;switch(e){case"upArrow":t="prevRow";break;case"downArrow":t="nextRow";break;case"leftArrow":t=this.option("rtlEnabled")?"nextInRow":"previousInRow";break;case"rightArrow":t=this.option("rtlEnabled")?"previousInRow":"nextInRow"}return t},o._isVirtualScrolling=function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},o._isVirtualRowRender=function(){return this._isVirtualScrolling()||w.default.isVirtualRowRendering(this)},o._isVirtualColumnRender=function(){return"virtual"===this.option("scrolling.columnRenderingMode")},o._scrollBy=function(e,t,n,i){var o=this,a=this._rowsView.getScrollable();if(o._focusedCellPosition){a.on("scroll",(function e(){a.off("scroll",e),setTimeout(o.restoreFocusableElement.bind(o,n,i))}))}return a.scrollBy({left:e,top:t})},o._isInsideEditForm=function(e){var t=(0,s.default)(e).closest(".".concat(this.addWidgetPrefix(b.EDIT_FORM_CLASS)));return t.length&&this.elementIsInsideGrid(t)},o._isMasterDetailCell=function(e){var t=(0,s.default)(e).closest(".".concat(C.MASTER_DETAIL_CELL_CLASS));return t.length&&this.elementIsInsideGrid(t)},o._processNextCellInMasterDetail=function(e,t){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},o._handleTabKeyOnMasterDetailCell=function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,s.default)(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n,(0,s.default)(e)),!0}return!1},o._getElementType=function(e){return(0,s.default)(e).is("tr")?"row":"cell"},o._isFastEditingStarted=function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},o._getVisibleColumnCount=function(){return this._columnsController.getVisibleColumns(null,!0).length},o._isCellInRow=function(e,t){var n=e.columnIndex,i=this._getVisibleColumnCount();return t?n>=0&&n<=i-1:n>0&&n td")):n.children().not(".".concat(C.COMMAND_EXPAND_CLASS)).first()},o._getRowsViewElement=function(){var e;return null===(e=this._rowsView)||void 0===e?void 0:e.element()},o.isKeyboardEnabled=function(){return this.option("keyboardNavigation.enabled")},o._processCanceledEditCellPosition=function(e,t){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,n}},o.updateFocusedRowIndex=function(){var e=this._dataController,t=this.getVisibleRowIndex(),n=e.items(),i=n.length?n.length-1:-1,o=e.getRowIndexOffset();i>=0&&t>i&&this.setFocusedRowIndex(i+o)},i}(x.default.ViewController);t.KeyboardNavigationController=E;var O={defaultOptions:function(){return{useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:E},extenders:{views:{rowsView:{_rowClick:function(e){var t=this.getController("editing").getEditRowIndex(),n=this.getController("keyboardNavigation"),i=n.isKeyboardEnabled();t===e.rowIndex&&n.setCellFocusType();var o=((0,k.isMobile)()||!i)&&this.option("focusedRowEnabled");o&&this._triggerPointerDownEventHandler(e,!i),this.callBase.apply(this,arguments)},_triggerPointerDownEventHandler:function(e,t){var n=e.event.originalEvent;if(n){var i=this.getController("keyboardNavigation"),o=(0,s.default)(n.target),a=this.getCellIndex(o),r=this.getController("columns").getVisibleColumns()[a],l=this.getController("data").items()[e.rowIndex];if(i._isAllowEditing(l,r)||t){var u=(0,m.createEvent)(n,{currentTarget:n.target});i._pointerEventHandler(u)}}},renderFocusState:function(e){var t=null!=e?e:{},n=t.preventScroll,i=t.pageSizeChanged,o=this.getController("keyboardNavigation"),a=this.element();a&&!(0,v.focused)(a)&&a.attr("tabindex",null),i&&o.updateFocusedRowIndex();var r=o.getVisibleRowIndex();(!(0,c.isDefined)(r)||r<0)&&(r=0);var s=this.getCellElements(r);o.isKeyboardEnabled()&&(null==s?void 0:s.length)&&this.updateFocusElementTabIndex(s,n)},updateFocusElementTabIndex:function(e){var t=this.getController("keyboardNavigation"),n=e.eq(0).parent();if((0,k.isGroupRow)(n))t._applyTabIndexToElement(n);else{var i=t.getColumnIndex();(!(0,c.isDefined)(i)||i<0)&&(i=0),this._updateFocusedCellTabIndex(e,i)}},_updateFocusedCellTabIndex:function(e,t){var n=this.getController("keyboardNavigation"),i=e?e.length:-1,o=function(e){var t=n._isMasterDetailCell(e),i=n._isCellValid(e);if(!t&&i&&n._isCellElement(e))return n._applyTabIndexToElement(e),n.setCellFocusType(),!0},a=S.GridCoreKeyboardNavigationDom.getCellToFocus(e,t);if(a.length)o(a);else{i<=t&&(t=i-1);for(var r=t;r=0){var a=e(o.rowIndex);a&&(o.rowIndex+=a,i.refocus())}},getMaxRowIndex:function(){var e=this.items().length-1,t=this.virtualItemsCount();t&&(e+=this.getRowIndexOffset()+t.end);return e}},adaptiveColumns:{_showHiddenCellsInView:function(e){var t=e.viewName,n=e.$cells,i=e.isCommandColumn;this.callBase.apply(this,arguments),t===C.COLUMN_HEADERS_VIEW&&!i&&n.each((function(e,t){var n=(0,s.default)(t);(0,k.isCellInHeaderRow)(n)&&n.attr("tabindex",0)}))},_hideVisibleCellInView:function(e){var t=e.viewName,n=e.$cell,i=e.isCommandColumn;this.callBase.apply(this,arguments),t===C.COLUMN_HEADERS_VIEW&&!i&&(0,k.isCellInHeaderRow)(n)&&n.removeAttr("tabindex")}}}}};t.keyboardNavigationModule=O},67250:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isCellInHeaderRow=function(e){return!!e.parent(".".concat(s.HEADER_ROW_CLASS)).length},t.isDataRow=function(e){return e&&e.hasClass(s.DATA_ROW_CLASS)},t.isDetailRow=function(e){return e&&e.hasClass(s.MASTER_DETAIL_ROW_CLASS)},t.isEditorCell=function(e,t){return!e._isRowEditMode()&&t&&!t.hasClass(s.COMMAND_SELECT_CLASS)&&t.hasClass(r.EDITOR_CELL_CLASS)},t.isElementDefined=function(e){return(0,a.isDefined)(e)&&e.length>0},t.isFixedColumnIndexOffsetRequired=function(e,t){if(e.option("rtlEnabled"))return!("right"===t.fixedPosition||(0,a.isDefined)(t.command)&&!(0,a.isDefined)(t.fixedPosition));return!(!(0,a.isDefined)(t.fixedPosition)||"left"===t.fixedPosition)},t.isGroupFooterRow=function(e){return e&&e.hasClass("dx-datagrid-group-footer")},t.isGroupRow=function(e){return e&&e.hasClass(s.GROUP_ROW_CLASS)},t.isMobile=function(){return"desktop"!==o.default.current().deviceType},t.isNotFocusedRow=function(e){return!e||e.hasClass(s.FREESPACE_ROW_CLASS)||e.hasClass(s.VIRTUAL_ROW_CLASS)},t.shouldPreventScroll=function(e){var t=e.getController("keyboardNavigation");return!!t._isVirtualScrolling()&&e.option("focusedRowIndex")===t.getRowIndex()};var i,o=(i=n(20530))&&i.__esModule?i:{default:i},a=n(35922),r=n(72313),s=n(67004)},9130:function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.registerKeyboardAction=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=r?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(56756));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.registerKeyboardAction=function(e,t,n,i,a){var r=t.getController("keyboardNavigation");if(!(t.option("useLegacyKeyboardNavigation")||r&&!r.isKeyboardEnabled())){t.createAction("onKeyDown"),o.registerKeyboardAction(e,t,n,i,a,(function(e){t.executeAction("onKeyDown",e)}))}}},1229:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.prepareItems=function(e,t){var n=function(e){return e||1},o=[],a=(e[0]||[]).reduce((function(e,t){return e+n(t.colspan)}),0),r=function(e){var t=0,i=0;return function(){var o=e[t]||[],a=o[i++];return i>=o.length&&(t++,i=0),a&&(a.colspan=n(a.colspan),a.rowspan=n(a.rowspan)),a}}(e),s=function e(n,a,r){if((o[n]=o[n]||[])[a]=r,r.colspan>1||r.rowspan>1){for(var s=function(e){return(0,i.extend)({},e,t)}(r),l=1;le.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},_silentOption:function(e,t){var n=this.component,i=n._optionCache;return i&&(i[e]=t),n._setOptionWithoutOptionChange(e,t)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=d.default.format(e)),t[e]):d.default.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),o="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(o+e,t):n.attr(o+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){if((0,l.isFunction)(e)){var n=this.component._createAction(e.bind(this),t);return function(e){n({event:e})}}this._actions[e]=this.component._createActionByOption(e,t),this._actionConfigs[e]=t},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;(0,s.each)(e.callbackNames()||[],(function(){e[this].empty()}))},addWidgetPrefix:function(e){var t=this.component.NAME;return"dx-".concat(t.slice(2).toLowerCase()).concat(e?"-".concat(e):"")},getWidgetContainerClass:function(){var e="dxDataGrid"===this.component.NAME?null:"container";return this.addWidgetPrefix(e)},elementIsInsideGrid:function(e){return e.closest(".".concat(this.getWidgetContainerClass())).parent().is(this.component.$element())}}),_=m,v=_.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),y=m.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=(0,u.hasWindow)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=(0,a.default)(),this.resizeCompleted=(0,a.default)()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0;return e.get(0).offsetHeight+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this,i=this._$element,a=this.isVisible();if((i||e)&&(this._requireReady=!1,i||(i=this._$element=(0,o.default)("").appendTo(e),this._$parent=e),i.toggleClass("dx-hidden",!a),a)){this.component._optionCache={};var r=this._renderCore(t);this.component._optionCache=void 0,r?r.done((function(){n.renderCompleted.fire(t)})):this.renderCompleted.fire(t)}},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(e){this.element().get(0).focus({preventScroll:e})}});function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.entries(t).forEach((function(t){var i=p(t,2),o=i[0],a=i[1],r=e[o];if(r)if((0,l.isFunction)(a))n[o]=a(r);else{var s=r;n[o]=s.inherit(a)}})),n}function x(e,t){var n=t.modules,i=t.modulesOrder;function o(t){var n={};return(0,s.each)(t,(function(t,i){var o=new i(e);o.name=t,function(e,t,n){var i=n.publicMethods();i&&(0,s.each)(i,(function(i,o){if(!n[o])throw c.default.Error("E1006",t,o);if(e[o])throw c.default.Error("E1005",o);e[o]=function(){return n[o].apply(n,arguments)}}))}(e,t,o),n[t]=o})),n}i&&n.sort((function(e,t){var n=i.indexOf(e.name),o=i.indexOf(t.name);return n<0&&(n=1e6),o<0&&(o=1e6),n-o}));var a={},r={};n.forEach((function(e){var t=e.name,n=e.controllers,i=void 0===n?{}:n,o=e.views,s=void 0===o?{}:o;Object.entries(i).forEach((function(e){var n,i=p(e,2),o=i[0],r=i[1];if(a[o])throw c.default.Error("E1001",t,o);if(!(null===(n=null==r?void 0:r.subclassOf)||void 0===n?void 0:n.call(r,_)))throw c.default.Error("E1002",t,o);a[o]=r})),Object.entries(s).forEach((function(e){var n,i=p(e,2),o=i[0],a=i[1];if(r[o])throw c.default.Error("E1003",t,o);if(!(null===(n=null==a?void 0:a.subclassOf)||void 0===n?void 0:n.call(a,y)))throw c.default.Error("E1004",t,o);r[o]=a}))}));var l=n.filter((function(e){return!!e.extenders})),u=l.reduce((function(e,t){var n=t.extenders;return f(f({},e),b(e,null==n?void 0:n.controllers))}),a),d=l.reduce((function(e,t){var n=t.extenders;return f(f({},e),b(e,null==n?void 0:n.views))}),r);e._controllers=o(u),e._views=o(d)}var w={modules:[],View:y,ViewController:v,Controller:_,registerModule:function(e,t){for(var n=this.modules,i=0;i
").addClass(t).appendTo(e)),o&&!a?n.removeClass("dx-hidden").text(this._getNoDataText()):n.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var o;this._loadPanel&&this._loadPanel.$element().remove(),(o=this.option("loadPanel"))&&("auto"===o.enabled?!n:o.enabled)?(o=(0,s.extend)({shading:!1,message:o.text,container:t},o),this._loadPanel=this._createComponent((0,i.default)("").appendTo(t),b.default,o)):this._loadPanel=null},calculateLoadPanelPosition:function(e){var t=(0,i.default)((0,p.getWindow)());return(0,d.getHeight)(e)>(0,d.getHeight)(t)?{of:t,boundary:e,collision:"fit"}:{of:e}},getIndexByKey:function(e,t,n){var i=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var a=0;a
=0&&(0,h.isFunction)(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex&&(0,a.toComparable)(t.filterValue)===(0,a.toComparable)(n.filterValue)&&(0,a.toComparable)(t.selectedFilterOperation)===(0,a.toComparable)(n.selectedFilterOperation):(0,a.toComparable)(t)==(0,a.toComparable)(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:E,getFormatOptionsByColumn:function(e,t){return{format:e.format,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(e,t){for(var n="(",i=0;i0?", ":"")+O(o,t)}return n+")"},getSummaryText:O,normalizeSortingInfo:T,getFormatByDataType:function(e){switch(e){case"date":return"shortDate";case"datetime":return"shortDateShortTime";default:return}},getHeaderFilterGroupParameters:function(e,t){var n=[],i=e.dataField||e.name,o=x.default.getGroupInterval(e);return o?((0,l.each)(o,(function(a,r){n.push(t?{selector:i,groupInterval:r,isExpanded:a0){var p=e.eq(h-1).offset();p.top").addClass(t.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(n),o.setAria("label",t.value?o.localize("dxDataGrid-ariaCollapse"):o.localize("dxDataGrid-ariaExpand"),n)}}}},setEmptyText:I,isDateType:D,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(e){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(e){}},focusAndSelectElement:function(e,t){var n=t.is(":focus");v.default.trigger(t,"focus");var i=e.option("editing.selectTextOnEditStart"),o=t.get(0);if(!n&&i&&t.is(".dx-texteditor-input")&&!t.is("[readonly]")){var a=A(t.closest(".dx-texteditor"));(0,r.when)(a&&a._loadItemDeferred).done((function(){o.select()}))}},getWidgetInstance:A,getLastResizableColumnIndex:function(e,t){var n,i=e.some((function(e){return e&&!e.command&&!e.fixed&&!1!==e.allowResizing}));for(n=e.length-1;e[n];n--){var o=e[n],a=t&&t[n],r=!i||!1!==o.allowResizing;if(!o.command&&!o.fixed&&"adaptiveHidden"!==a&&r)break}return n},isElementInCurrentGrid:function(e,t){return!(!t||!t.length)&&t.closest(".".concat(e.getWidgetContainerClass())).parent().is(e.component.$element())},isVirtualRowRendering:function(e){var t=e.option("scrolling.rowRenderingMode"),n="virtual"===e.option("scrolling.mode"),i="infinite"===e.option("scrolling.mode");return!(!1!==e.option("scrolling.legacyMode")||!n&&!i)||"virtual"===t},getPixelRatio:function(e){return e.devicePixelRatio||1},getContentHeightLimit:function(e){return e.mozilla?8e6:15e6/this.getPixelRatio((0,p.getWindow)())},normalizeLookupDataSource:function(e){var t;return e.items?t=e.items:(t=e.dataSource,(0,h.isFunction)(t)&&!f.default.isWrapped(t)&&(t=t({}))),(0,m.normalizeDataSourceOptions)(t)},getWrappedLookupDataSource:function(e,t,n){var i=this;if(!t)return[];var o=this.normalizeLookupDataSource(e.lookup);if(e.calculateCellValue!==e.defaultCalculateCellValue)return o;var a,s,l,u=t.remoteOperations().groupPaging,d=e.displayField&&(0,h.isString)(e.displayField),c=function(e,t){var n,i=null!==(n=t.skip)&&void 0!==n?n:0,o=t.take?i+t.take:e.length;return e.slice(i,o)},f=function(i){var o=function(e){return Array.isArray(e)||(e=[e]),e.map((function(t,n){return(0,h.isString)(t)?{selector:t,isExpanded:n=0&&t._expandedItems[n].visible))},_getRowIndicesForExpand:function(e){var t=this.getRowIndexByKey(e);return[t,t+1]},_changeRowExpandCore:function(e){var t,n=this;if(Array.isArray(e))t=n.callBase.apply(n,arguments);else{var i=u.default.getIndexByKey(e,n._expandedItems);if(i>=0){var o=n._expandedItems[i].visible;n._expandedItems[i].visible=!o}else n._expandedItems.push({key:e,visible:!0});n.updateItems({changeType:"update",rowIndices:n._getRowIndicesForExpand(e)}),t=(new a.Deferred).resolve()}return t},_processDataItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return i.isExpanded=n.isRowExpanded(i.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,(0,r.each)(t.visibleColumns,(function(e,n){if("expand"===n.command&&!(0,l.isDefined)(n.groupIndex))return t.detailColumnIndex=e,!1}))),t.detailColumnIndex>=0&&(i.values[t.detailColumnIndex]=i.isExpanded),i},_processItems:function(e,t){var n=this,i=t.changeType,a=[];return e=n.callBase.apply(n,arguments),"loadingAll"===i?e:("refresh"===i&&(n._expandedItems=(0,o.grep)(n._expandedItems,(function(e){return e.visible}))),(0,r.each)(e,(function(e,t){a.push(t);var i=u.default.getIndexByKey(t.key,n._expandedItems);"data"===t.rowType&&(t.isExpanded||i>=0)&&!t.isNewRow&&a.push({visible:t.isExpanded,rowType:"detail",key:t.key,data:t.data,values:[]})})),a)},optionChanged:function(e){var t,n;if("masterDetail"===e.name){switch(e.name="dataSource",e.fullName){case"masterDetail":var i=e.value||{},o=e.previousValue||{};t=i.enabled!==o.enabled,n=i.autoExpandAll!==o.autoExpandAll;break;case"masterDetail.template":c(this);break;case"masterDetail.enabled":t=!0;break;case"masterDetail.autoExpandAll":n=!0}(t||n)&&c(this)}this.callBase(e)}}),resizing:{fireContentReadyAction:function(){this.callBase.apply(this,arguments),this._updateParentDataGrids(this.component.$element())},_updateParentDataGrids:function(e){var t=this,n=e.closest(".".concat("dx-master-detail-row"));n.length&&(0,a.when)(this._updateMasterDataGrid(n,e)).done((function(){t._updateParentDataGrids(n.parent())}))},_updateMasterDataGrid:function(e,t){var n=(0,i.default)(e).data("options"),o=(0,i.default)(e).closest(".".concat(this.getWidgetContainerClass())).parent().data("dxDataGrid");if(n&&o)return this._updateMasterDataGridCore(o,n)},_updateMasterDataGridCore:function(e,t){var n=(0,a.Deferred)();if(e.getView("rowsView").isFixedColumns())this._updateFixedMasterDetailGrids(e,t.rowIndex,(0,i.default)(t.rowElement)).done(n.resolve);else{if(!0===e.option("scrolling.useNative"))return void e.updateDimensions().done((function(){return n.resolve(!0)}));var o=e.getScrollable();o?null==o||o.update().done((function(){return n.resolve()})):n.resolve()}return n.promise()},_updateFixedMasterDetailGrids:function(e,t,n){var o=this,r=(0,a.Deferred)(),l=(0,i.default)(e.getRowElement(t)),u=(0,i.default)(e.getView("rowsView").getTableElements()),d=2===(null==l?void 0:l.length)&&(0,s.getHeight)(l.eq(0))!==(0,s.getHeight)(l.eq(1)),c=2===(null==u?void 0:u.length)&&(0,s.getHeight)(u.eq(0))!==(0,s.getHeight)(u.eq(1));if(d||c){var h=(0,s.getWidth)(n);return e.updateDimensions().done((function(){var t=o.option("columnAutoWidth")&&!0===e.option("scrolling.useNative"),i=t&&h!==(0,s.getWidth)(n);t&&i?o.updateDimensions().done((function(){return r.resolve(!0)})):r.resolve(!0)})),r.promise()}return(0,a.Deferred)().resolve()},_toggleBestFitMode:function(e){if(this.callBase.apply(this,arguments),this.option("masterDetail.template")){var t=this._rowsView.getTableElement();t&&t.find(".dx-master-detail-cell").css("maxWidth",e?0:"")}}}},views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column,i=t.getController("editing"),o=i&&i.isEditRow(e.rowIndex);return"detail"!==n.command||o?t.callBase.apply(t,arguments):t.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:t._getDefaultTemplate(n)}},_isDetailRow:function(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")},_createRow:function(e){var t=this.callBase.apply(this,arguments);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass("dx-row-lines"),t.addClass("dx-master-detail-row"),(0,l.isDefined)(e.visible)&&t.toggle(e.visible)),t},_renderCells:function(e,t){var n=t.row,i=this._columnsController.getVisibleColumns();n.rowType&&this._isDetailRow(n)?this._needRenderCell(0,t.columnIndices)&&this._renderCell(e,{value:null,row:n,rowIndex:n.rowIndex,column:{command:"detail"},columnIndex:0,change:t.change}).addClass("dx-cell-focus-disabled").addClass("dx-master-detail-cell").attr("colSpan",i.length):this.callBase.apply(this,arguments)}}}}};t.masterDetailModule=h},3990:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.pagerModule=void 0;var i=n(35922),o=n(58201),a=l(n(28109)),r=l(n(79383)),s=l(n(15943));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return 1+(parseInt(e.pageIndex())||0)},d={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto",label:a.default.format("dxPager-ariaLabel")}}},views:{pagerView:s.default.View.inherit({init:function(){var e=this,t=this.getController("data");t.changed.add((function(n){if(n&&n.repaintChangesOnly){var i=e._pager;i?i.option({pageIndex:u(t),pageSize:t.pageSize(),pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):e.render()}else(!n||"update"!==n.changeType&&"updateSelection"!==n.changeType&&"updateFocusedRow"!==n.changeType)&&(e._pager=null,e.render())}))},_renderCore:function(){var e=this.element().addClass(this.addWidgetPrefix("pager")),t=this.option("pager")||{},n=this.getController("data"),a=this.getController("keyboardNavigation"),s={maxPagesCount:10,pageIndex:u(n),pageCount:n.pageCount(),pageSize:n.pageSize(),showPageSizes:t.showPageSizeSelector,showInfo:t.showInfo,displayMode:t.displayMode,pagesNavigatorVisible:t.visible,showNavigationButtons:t.showNavigationButtons,label:t.label,pageSizes:this.getPageSizes(),totalCount:n.totalCount(),hasKnownLastPage:n.hasKnownLastPage(),pageIndexChanged:function(e){n.pageIndex()!==e-1&&n.pageIndex(e-1)},pageSizeChanged:function(e){n.pageSize(e)},onKeyDown:function(e){return a&&a.executeAction("onKeyDown",e)},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,i.isDefined)(t.infoText)&&(s.infoText=t.infoText),this._pager?this._pager.repaint():(0,o.hasWindow)()?this._pager=this._createComponent(e,r.default,s):e.addClass("dx-pager").html('')},getPager:function(){return this._pager},getPageSizes:function(){var e=this.getController("data"),t=this.option("pager"),n=t&&t.allowedPageSizes,o=e.pageSize();return(0,i.isDefined)(this._pageSizes)&&this._pageSizes.includes(o)||(this._pageSizes=[],t&&(Array.isArray(n)?this._pageSizes=n:n&&o>1&&(this._pageSizes=[Math.floor(o/2),o,2*o]))),this._pageSizes},isVisible:function(){var e=this.getController("data"),t=this.option("pager"),n=t&&t.visible,i=this.option("scrolling");return"auto"===n&&(n=(!i||"virtual"!==i.mode&&"infinite"!==i.mode)&&(e.pageCount()>1||e.isLoaded()&&!e.hasKnownLastPage())),n},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=e.name,n="pager"===t,i="paging"===t,a="dataSource"===t,r="scrolling"===t,s=this.getController("data");if(n||i||r||a){if(e.handled=!0,s.skipProcessingPagingChange(e.fullName))return;(n||i)&&(this._pageSizes=null),a||(this._pager=null,this._invalidate(),(0,o.hasWindow)()&&n&&this.component&&this.component.resize())}},dispose:function(){this._pager=null}})}};t.pagerModule=d},92794:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CLASSES=t.ATTRIBUTES=void 0;t.ATTRIBUTES={dragCell:"dx-drag-cell"};t.CLASSES={cellFocusDisabled:"dx-cell-focus-disabled",handleIcon:"drag-icon",commandDrag:"dx-command-drag",sortableWithoutHandle:"dx-sortable-without-handle",rowsView:"rowsview"}},5172:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GridCoreRowDraggingDom=void 0;var i=r(n(68374)),o=r(n(60082)),a=n(92794);function r(e){return e&&e.__esModule?e:{default:e}}var s={createHandleTemplateFunc:function(e){return function(t,n){var r=(0,i.default)(t);if(r.attr(a.ATTRIBUTES.dragCell,""),"data"===n.rowType)return r.addClass(a.CLASSES.cellFocusDisabled),(0,i.default)("").addClass(e(a.CLASSES.handleIcon));o.default.setEmptyText(r)}}};t.GridCoreRowDraggingDom=s},88351:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.rowDraggingModule=void 0;var i=c(n(68374)),o=n(13306),a=n(20576),r=n(58664),s=c(n(66843)),l=c(n(60082)),u=n(92794),d=n(5172);function c(e){return e&&e.__esModule?e:{default:e}}var h={defaultOptions:function(){return{rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}},extenders:{views:{rowsView:{init:function(){this.callBase.apply(this,arguments),this._updateHandleColumn()},_allowReordering:function(){var e=this.option("rowDragging");return!(!e||!(e.allowReordering||e.allowDropInsideItem||e.group))},_updateHandleColumn:function(){var e=this.option("rowDragging"),t=this._allowReordering(),n=this._columnsController,i=t&&e.showDragIcons;n&&n.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",cssClass:u.CLASSES.commandDrag,width:"auto",cellTemplate:this._getHandleTemplate(),visible:i}),n.columnOption("type:drag","visible",i)},_renderContent:function(){var e=this,t=this.option("rowDragging"),n=this._allowReordering(),a=this.callBase.apply(this,arguments),r=this._isFixedTableRendering,l="_sortable",d="_sortableFixed",c=r?d:l,h=r?l:d,f=function(t){var n;null===(n=e[d])||void 0===n||n.$element().css("pointerEvents",t?"auto":"")},p=".dx-row:not(.dx-freespace-row):not(.dx-virtual-row):not(.dx-header-row):not(.dx-footer-row)",g=this.option("dataRowTemplate")?"> table > tbody".concat(p):"> table > tbody > ".concat(p);return(n||this[c])&&a.length&&(this[c]=this._createComponent(a,s.default,(0,o.extend)({component:this.component,contentTemplate:null,filter:g,cursorOffset:function(t){var n=t.event,o=(0,i.default)(e.element()).offset();return{x:n.pageX-o.left}},onDraggableElementShown:function(n){if(!t.dragTemplate){var o=(0,i.default)(n.dragElement).children(".dx-widget").data(e.component.NAME);e._synchronizeScrollLeftPosition(o)}},dragTemplate:this._getDraggableRowTemplate(),handle:t.showDragIcons&&".".concat(u.CLASSES.commandDrag),dropFeedbackMode:"indicate"},t,{onDragStart:function(i){var o,a;null===(o=e.getController("keyboardNavigation"))||void 0===o||o._resetFocusedCell();var r=i.component.getVisibleRows()[i.fromIndex];i.itemData=r&&r.data;var s=r&&"data"===r.rowType;i.cancel=!n||!s,null===(a=t.onDragStart)||void 0===a||a.call(t,i)},onDragEnter:function(){f(!0)},onDragLeave:function(){f(!1)},onDragEnd:function(e){var n;f(!1),null===(n=t.onDragEnd)||void 0===n||n.call(t,e)},onAdd:function(e){var n;f(!1),null===(n=t.onAdd)||void 0===n||n.call(t,e)},dropFeedbackMode:t.dropFeedbackMode,onOptionChanged:function(t){e[d]&&("fromIndex"!==t.name&&"toIndex"!==t.name||e[h].option(t.name,t.value))}})),a.toggleClass("dx-scrollable-container",r),a.toggleClass(u.CLASSES.sortableWithoutHandle,n&&!t.showDragIcons)),a},_renderCore:function(e){var t=this;this.callBase.apply(this,arguments),e&&"update"===e.changeType&&e.repaintChangesOnly&&l.default.isVirtualRowRendering(this)&&(0,a.deferUpdate)((function(){t._updateSortable()}))},_updateSortable:function(){var e=this._dataController.getRowIndexOffset();[this._sortable,this._sortableFixed].forEach((function(t){null==t||t.option("offset",e),null==t||t.update()}))},_resizeCore:function(){this.callBase.apply(this,arguments),this._updateSortable()},_getDraggableGridOptions:function(e){var t=this.option(),n=this.getColumns(),o=(0,i.default)(this.getRowElement(e.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:"never"},pager:{visible:!1},loadingTimeout:null,columnFixing:t.columnFixing,columnAutoWidth:t.columnAutoWidth,showColumnLines:t.showColumnLines,columns:n.map((function(e){return{width:e.width||e.visibleWidth,fixed:e.fixed,fixedPosition:e.fixedPosition}})),onRowPrepared:function(e){var t=e.component.getView("rowsView");(0,i.default)(e.rowElement).replaceWith(o.eq(t._isFixedTableRendering?1:0).clone())}}},_synchronizeScrollLeftPosition:function(e){var t=null==e?void 0:e.getScrollable();null==t||t.scrollTo({x:this._scrollLeft})},_getDraggableRowTemplate:function(){var e=this;return function(t){var n=e.component.$element(),o=(0,i.default)("");(0,r.setWidth)(o,(0,r.getWidth)(n));var a=e._dataController.items(),s=a&&a[t.fromIndex],l=e._getDraggableGridOptions(s);return e._createComponent(o,e.component.NAME,l),o.find(".dx-gridbase-container").children(":not(.".concat(e.addWidgetPrefix(u.CLASSES.rowsView),")")).hide(),o}},_getHandleTemplate:function(){var e=this;return d.GridCoreRowDraggingDom.createHandleTemplateFunc((function(t){return e.addWidgetPrefix(t)}))},optionChanged:function(e){"rowDragging"===e.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),e.handled=!0),this.callBase.apply(this,arguments)}}}}};t.rowDraggingModule=h},92021:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.searchModule=void 0;var i=d(n(73349)),o=d(n(68374)),a=n(47617),r=n(35922),s=d(n(96687)),l=d(n(28109)),u=d(n(60082));function d(e){return e&&e.__esModule?e:{default:e}}function c(e){return(0,r.isDefined)(e.allowSearch)?e.allowSearch:e.allowFiltering}function h(e,t){var n=e.lookup;return e.parseValue?n?e.parseValue.call(n,t):e.parseValue(t):t}var f,p={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:l.default.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var e=this.callBase(),t=function(e,t){var n,i,o,r=e._columnsController.getColumns(),l=e.option("searchPanel.searchVisibleColumnsOnly"),d=[];if(!t)return null;function f(e){for(var t=(0,a.compileGetter)(o.valueExpr),n=0;n
").addClass(t.addWidgetPrefix("search-panel")).appendTo(r);t.getController("editorFactory").createEditor(s,{width:i.width,placeholder:i.placeholder,parentType:"searchPanel",value:t.option("searchPanel.text"),updateValueTimeout:700,setValue:function(e){n.searchByText(e)},editorOptions:{inputAttr:{"aria-label":l.default.format("".concat(t.component.NAME,"-ariaSearchInGrid"))}}}),t.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};e.push(a)}return e},getSearchTextEditor:function(){var e=this,t=e.element(),n=t.find(".".concat(e.addWidgetPrefix("search-panel"))).filter((function(){return(0,o.default)(this).closest(".".concat(e.addWidgetPrefix("header-panel"))).is(t)}));return n.length?n.dxTextBox("instance"):null},isVisible:function(){var e=f(this);return this.callBase()||e&&e.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=[],this._dataController=this.getController("data")},_getFormattedSearchText:function(e,t){var n=h(e,t),i=u.default.getFormatOptionsByColumn(e,"search");return u.default.formatValue(n,i)},_getStringNormalizer:function(){var e,t,n,i,o=this.option("searchPanel.highlightCaseSensitive"),r=null===(t=null===(e=this._dataController)||void 0===e?void 0:e.getDataSource)||void 0===t?void 0:t.call(e),s=null===(i=null===(n=null==r?void 0:r.loadOptions)||void 0===n?void 0:n.call(r))||void 0===i?void 0:i.langParams;return function(e){return(0,a.toComparable)(e,o,s)}},_findHighlightingTextNodes:function(e,t,n){var i,a=t.parent(),r=this._getStringNormalizer(),s=r(n),l=[];if(a.length){if(e)if(e.groupIndex>=0&&!e.showWhenGrouped)i=t;else{var u=this._columnsController.getVisibleIndex(e.index);i=a.children("td").eq(u).find("*")}}else a=(0,o.default)("").append(t);return(i=(null==i?void 0:i.length)?i:a.find("*")).each((function(e,t){for(var n=(0,o.default)(t).contents(),i=0;i
-1&&l.push(a)}})),l},_highlightSearchTextCore:function(e,t){var n=(0,o.default)("").addClass(this.addWidgetPrefix("search-text")),a=e.text(),r=e[0],s=this._getStringNormalizer(),l=s(a).indexOf(s(t));if(l>=0)return r.textContent?r.textContent=a.substr(0,l):r.nodeValue=a.substr(0,l),e.after(n.text(a.substr(l,t.length))),e=(0,o.default)(i.default.createTextNode(a.substr(l+t.length))).insertAfter(n),this._highlightSearchTextCore(e,t)},_highlightSearchText:function(e,t,n){var i=this,a=this._getStringNormalizer(),r=i.option("searchPanel.text");(t&&n&&(r=r&&i._getFormattedSearchText(n,r)),r&&i.option("searchPanel.highlightSearchText"))&&i._findHighlightingTextNodes(n,e,r).forEach((function(e){t?a((0,o.default)(e).text())===a(r)&&(0,o.default)(e).replaceWith((0,o.default)("").addClass(i.addWidgetPrefix("search-text")).text((0,o.default)(e).text())):i._highlightSearchTextCore((0,o.default)(e),r)}))},_renderCore:function(){var e=this,t=this.callBase.apply(this,arguments);return(this.option().rowTemplate||this.option("dataRowTemplate"))&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout((function(){e._highlightSearchText(e.getTableElement())}))):this._highlightSearchText(this.getTableElement())),t},_updateCell:function(e,t){var n=this,i=t.column,o="string"!==(i.lookup&&i.lookup.dataType||i.dataType);c(i)&&!t.isOnForm&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout((function(){n._searchParams.forEach((function(e){n._highlightSearchText.apply(n,e)})),n._searchParams=[]}))),this._searchParams.push([e,o,i])):this._highlightSearchText(e,o,i)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}};t.searchModule=p},17969:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.selectionModule=t.SelectionController=void 0;var i=b(n(68374)),o=n(20576),a=n(62754),r=n(13306),s=n(95479),l=n(60137),u=n(35922),d=n(60637),c=n(95429),h=b(n(55994)),f=b(n(11699)),p=n(39611),g=b(n(28109)),m=b(n(68198)),_=b(n(96688)),v=b(n(15943)),y=b(n(60082));function b(e){return e&&e.__esModule?e:{default:e}}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var w="selection.showCheckBoxesMode",C=function(e,t){var n=e.getController("selection"),o=e.getView("rowsView"),a=(0,i.default)(t.target).closest(".".concat("dx-data-row")),r=o.getRowIndex(a);r<0||("onLongTap"===e.option(w)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===e.option(w)&&n.startSelectionWithCheckboxes(),"always"!==e.option(w)&&n.changeItemSelection(r,{control:!0})))},S=function(e,t){var n=t.component,o=n.getView("rowsView");n.option("renderAsync")&&!n.option("selection.deferred")&&(t.value=n.isRowSelected(t.row.key)),o.renderSelectCheckBoxContainer((0,i.default)(e),t)},k=function(e,t){var n=t.column,o=(0,i.default)(e),a=t.component.getView("columnHeadersView");o.addClass("dx-editor-cell"),a._renderSelectAllCheckBox(o,n),a._attachSelectAllCheckBoxClickEvent(o)},D=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,x(t,n);var r=i.prototype;return r.init=function(){var e,t=null!==(e=this.option("selection"))&&void 0!==e?e:{},n=t.deferred,i=t.selectAllMode,o=t.mode;"infinite"!==this.option("scrolling.mode")||n||"multiple"!==o||"allPages"!==i||_.default.log("W1018"),this._dataController=this.getController("data"),this._selectionMode=o,this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]}),this._dataPushedHandler||(this._dataPushedHandler=this._handleDataPushed.bind(this),this._dataController.pushed.add(this._dataPushedHandler))},r._handleDataPushed=function(e){this._deselectRemovedOnPush(e),this._updateSelectedOnPush(e)},r._deselectRemovedOnPush=function(e){var t=this.option("selection.deferred"),n=e.filter((function(e){return"remove"===e.type})).map((function(e){return e.key}));if(t){var i=this._dataController.items().filter((function(e){return e.isSelected})).map((function(e){return e.key}));n=n.filter((function(e){return i.find((function(t){return(0,o.equalByValue)(t,e)}))}))}n.length&&this.deselectRows(n)},r._updateSelectedOnPush=function(e){if(!this.option("selection.deferred")){var t=e.filter((function(e){return"update"===e.type})),n=this.getSelectedRowsData();(0,d.applyBatch)({keyInfo:this._selection.options,data:n,changes:t})}},r._getSelectionConfig=function(){var e,t=this._dataController,n=this.getController("columns"),i=null!==(e=this.option("selection"))&&void 0!==e?e:{},o=i.deferred,r=this.option("scrolling.mode"),s="virtual"===r||"infinite"===r,l=this.option("selection.allowSelectAll"),d=this.option("scrolling.legacyMode");return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:o,maxFilterLengthInRequest:i.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),ignoreDisabledItems:!0,allowLoadByRange:function(){var e=n.getGroupColumns().length>0;return s&&!d&&!e&&l&&!o},key:function(){return null==t?void 0:t.key()},keyOf:function(e){return null==t?void 0:t.keyOf(e)},dataFields:function(){var e;return null===(e=t.dataSource())||void 0===e?void 0:e.select()},load:function(e){var n;return(null===(n=t.dataSource())||void 0===n?void 0:n.load(e))||(new a.Deferred).resolve([])},plainItems:function(){return t.items(!0)},isItemSelected:function(e){return e.selected},isSelectableItem:function(e){return"data"===(null==e?void 0:e.rowType)&&!e.isNewRow},getItemData:function(e){return(0,u.isDefined)(null==e?void 0:e.rowType)?(null==e?void 0:e.oldData)||(null==e?void 0:e.data):e},filter:function(){return t.getCombinedFilter(o)},totalCount:function(){return t.totalCount()},getLoadOptions:function(e,n,i){var o,a,r=null!==(a=null===(o=t.dataSource())||void 0===o?void 0:o.lastLoadOptions())&&void 0!==a?a:{},s=r.sort,l=r.filter,d=Math.min(e,n),c=Math.max(e,n);return(0,u.isDefined)(i)&&(d=Math.min(i,d),c=Math.max(i,c)),{skip:d,take:c-d+1,filter:l,sort:s}},onSelectionChanged:this._updateSelectedItems.bind(this)}},r._updateSelectColumn=function(){var e=this.getController("columns"),t=this.isSelectColumnVisible();e.addCommandColumn({type:"selection",command:"select",visible:t,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:"dx-command-select",width:"auto",cellTemplate:S,headerCellTemplate:k}),e.columnOption("command:select","visible",t)},r._createSelection=function(){var e=this._getSelectionConfig();return new m.default(e)},r._fireSelectionChanged=function(e){var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t),e&&this.executeAction("onSelectionChanged",e)},r._updateCheckboxesState=function(e){var t=e.isDeferredMode,n=e.selectionFilter,i=e.selectedItemKeys,o=e.removedItemKeys;"onClick"===this.option(w)&&((t?n&&function(e,t){var n=0,i=e._dataController.store(),o=i&&i.key(),a=Array.isArray(o);if(!t.length)return!1;if(a&&Array.isArray(t[0])&&"and"===t[1]){for(var r=0;r1)?this.startSelectionWithCheckboxes():(t?n&&!n.length:0===i.length&&o.length)&&this.stopSelectionWithCheckboxes())},r._updateSelectedItems=function(e){var t,n=this.option("selection.deferred"),i=this._selection.selectionFilter(),o=this._dataController,a=o.items(!0),r=o.items();if(a){var s=this.isSelectionWithCheckboxes(),l=this.getChangedItemIndexes(a),u=this.getChangedItemIndexes(r);this._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:i,isDeferredMode:n}),(l.length||s!==this.isSelectionWithCheckboxes())&&o.updateItems({changeType:"updateSelection",itemIndexes:u}),n?(this.option("selectionFilter",i),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(this._selectedItemsInternalChange=!0,this.option("selectedRowKeys",e.selectedItemKeys.slice(0)),this._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),this._fireSelectionChanged(t)}},r.getChangedItemIndexes=function(e){for(var t=[],n=this.option("selection.deferred"),i=0,o=e.length;i1&&(a=[a[0]]):"multiple"!==o&&(a=[])),this.selectRows(a).always((function(){n._fireSelectionChanged()}))}this.getController("columns").updateColumns(),t.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(t.value),t.handled=!0;break;case"selectedRowKeys":var r=t.value||[];!Array.isArray(r)||this._selectedItemsInternalChange||!this.component.getDataSource()&&r.length||this.selectRows(r),t.handled=!0}},r.publicMethods=function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},r.isRowSelected=function(e){return this._selection.isItemSelected(e)},r.isSelectColumnVisible=function(){return"multiple"===this.option("selection.mode")&&("always"===this.option(w)||"onClick"===this.option(w)||this._isSelectionWithCheckboxes)},r._isOnePageSelectAll=function(){return"page"===this.option("selection.selectAllMode")},r.isSelectAll=function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},r.selectAll=function(){return"onClick"===this.option(w)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},r.deselectAll=function(){return this._selection.deselectAll(this._isOnePageSelectAll())},r.clearSelection=function(){return this.selectedItemKeys([])},r.refresh=function(){var e,t=null!==(e=this.option("selectedRowKeys"))&&void 0!==e?e:[];return!this.option("selection.deferred")&&t.length?this.selectedItemKeys(t):(new a.Deferred).resolve().promise()},r.selectedItemKeys=function(e,t,n,i){return this._selection.selectedItemKeys(e,t,n,i)},r.getSelectedRowKeys=function(){return this._selection.getSelectedItemKeys()},r.selectRows=function(e,t){return this.selectedItemKeys(e,t)},r.deselectRows=function(e){return this.selectedItemKeys(e,!0,!0)},r.selectRowsByIndexes=function(e){var t=this._dataController.items(),n=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),(0,s.each)(e,(function(){var e=t[this];e&&"data"===e.rowType&&n.push(e.key)})),this.selectRows(n)},r.getSelectedRowsData=function(){return this._selection.getSelectedItems()},r.loadSelectedItemsWithFilter=function(){return this._selection.loadSelectedItemsWithFilter()},r.changeItemSelection=function(e,t,n){t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0);var i=e+this._dataController.getRowIndexOffset()-this._dataController.getRowIndexOffset(!0);return this._selection.changeItemSelection(i,t,n)},r.focusedItemIndex=function(e){if(!(0,u.isDefined)(e))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=e},r.isSelectionWithCheckboxes=function(){return"multiple"===this.option("selection.mode")&&("always"===this.option(w)||this._isSelectionWithCheckboxes)},r.startSelectionWithCheckboxes=function(){return"multiple"===this.option("selection.mode")&&!this.isSelectionWithCheckboxes()&&(this._isSelectionWithCheckboxes=!0,this._updateSelectColumn(),!0)},r.stopSelectionWithCheckboxes=function(){return!!this._isSelectionWithCheckboxes&&(this._isSelectionWithCheckboxes=!1,this._updateSelectColumn(),!0)},i}(v.default.Controller);t.SelectionController=D;var I={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:D},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),t=this.option("selection.deferred");this.callBase.apply(this,arguments),t&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().always((function(){e.getController("selection").refresh()}))},_processDataItem:function(e,t){var n=this,i=n.getController("selection"),o=i.isSelectColumnVisible(),a=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,r=this.callBase.apply(this,arguments);if(r.isSelected=i.isRowSelected(a?r.data:r.key),o&&r.values)for(var s=0;s1&&e.every((function(e){return"updateSelection"===e.changeType}));if(t){var n=e.map((function(e){return e.itemIndexes||[]})).reduce((function(e,t){return e.concat(t)}));this._changes=[{changeType:"updateSelection",itemIndexes:n}]}this.callBase.apply(this,arguments)}},contextMenu:{_contextMenuPrepared:function(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||C(this,t)}}},views:{columnHeadersView:{init:function(){this.callBase(),this.getController("selection").selectionChanged.add(this._updateSelectAllValue.bind(this))},_updateSelectAllValue:function(){var e=this.element(),t=e&&e.find(".".concat("dx-select-checkbox"));if(e&&t.length&&"multiple"===this.option("selection.mode")){var n=this.getController("selection").isSelectAll(),i=!1!==n,o=this.option("selection.allowSelectAll")?!this.getController("data").isEmpty():i;t.dxCheckBox("instance").option({visible:o,value:n})}},_handleDataChanged:function(e){var t=this;this.callBase(e),(!e||"refresh"===e.changeType||e.repaintChangesOnly&&"update"===e.changeType)&&this.waitAsyncTemplates().done((function(){t._updateSelectAllValue()}))},_renderSelectAllCheckBox:function(e,t){var n=this,o=n.getController("selection"),a=n.getController("data").isEmpty(),s=(0,i.default)("").appendTo(e).addClass("dx-select-checkbox");return n.setAria("label",g.default.format("dxDataGrid-ariaSelectAll"),s),n.getController("editorFactory").createEditor(s,(0,r.extend)({},t,{parentType:"headerRow",dataType:"boolean",value:o.isSelectAll(),editorOptions:{visible:!a&&(n.option("selection.allowSelectAll")||!1!==o.isSelectAll())},tabIndex:n.option("useLegacyKeyboardNavigation")?-1:n.option("tabIndex")||0,setValue:function(e,t){var i=n.option("selection.allowSelectAll");t.component.option("visible",i||!1!==t.component.option("value")),t.event&&o.isSelectAll()!==e&&(t.value&&!i?t.component.option("value",!1):t.value?o.selectAll():o.deselectAll(),t.event.preventDefault())}})),s},_attachSelectAllCheckBoxClickEvent:function(e){h.default.on(e,c.name,this.createAction((function(e){var t=e.event;(0,i.default)(t.target).closest(".".concat("dx-select-checkbox")).length||h.default.trigger((0,i.default)(t.currentTarget).children(".".concat("dx-select-checkbox")),c.name),t.preventDefault()})))}},rowsView:{renderSelectCheckBoxContainer:function(e,t){"data"!==t.rowType||t.row.isNewRow?y.default.setEmptyText(e):(e.addClass("dx-editor-cell"),this._attachCheckBoxClickEvent(e),this._renderSelectCheckBox(e,t))},_renderSelectCheckBox:function(e,t){var n=(0,i.default)("
").addClass("dx-select-checkbox").appendTo(e);return this.setAria("label",g.default.format("dxDataGrid-ariaSelectRow"),n),this.getController("editorFactory").createEditor(n,(0,r.extend)({},t.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:t.value,setValue:function(e,t){var n;"keydown"===(null===(n=null==t?void 0:t.event)||void 0===n?void 0:n.type)&&h.default.trigger(t.element,c.name,t)},row:t.row})),n},_attachCheckBoxClickEvent:function(e){h.default.on(e,c.name,this.createAction((function(e){var t=this.getController("selection"),n=e.event,o=this.getRowIndex((0,i.default)(n.currentTarget).closest(".".concat("dx-row")));o>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(o,{shift:n.shiftKey}),(0,i.default)(n.target).closest(".".concat("dx-select-checkbox")).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[o]}))})))},_update:function(e){var t=this,n=t.getTableElements();"updateSelection"===e.changeType?n.length>0&&((0,s.each)(n,(function(n,o){(0,s.each)(e.itemIndexes||[],(function(n,a){var r;if(e.items[a]&&(r=t._getRowElements((0,i.default)(o)).eq(a)).length){var s=e.items[a].isSelected;r.toggleClass("dx-selection",void 0!==s&&s).find(".".concat("dx-select-checkbox")).dxCheckBox("option","value",s),t.setAria("selected",s,r)}}))})),t._updateCheckboxesClass()):t.callBase(e)},_createTable:function(){var e=this,t=e.option("selection.mode"),n=e.callBase.apply(e,arguments);return"none"!==t&&("onLongTap"!==e.option(w)&&l.touch||h.default.on(n,(0,p.addNamespace)(f.default.name,"dxDataGridRowsView"),".".concat("dx-data-row"),e.createAction((function(t){C(e.component,t.event),t.event.stopPropagation()}))),h.default.on(n,"mousedown selectstart",e.createAction((function(e){var t=e.event;t.shiftKey&&t.preventDefault()})))),n},_createRow:function(e){var t=this.callBase.apply(this,arguments);if(e){var n=e.isSelected;n&&t.addClass("dx-selection");var i=this.option("selection.mode");"none"!==i&&this.setAria("selected",n,t)}return t},_rowClick:function(e){var t=e.event,n=(0,i.default)(t.target).closest(".".concat("dx-selection-disabled")).length;this.isClickableElement((0,i.default)(t.target))||(n||"multiple"===this.option("selection.mode")&&"always"===this.option(w)||this.getController("selection").changeItemSelection(e.rowIndex,{control:(0,p.isCommandKeyPressed)(t),shift:t.shiftKey})&&(t.preventDefault(),e.handled=!0),this.callBase(e))},isClickableElement:function(e){return!!e.closest(".".concat("dx-command-select")).length},_renderCore:function(e){var t=this.callBase(e);return this._updateCheckboxesClass(),t},_updateCheckboxesClass:function(){var e=this.getTableElements(),t=this.getController("selection"),n=t.isSelectColumnVisible()&&!t.isSelectionWithCheckboxes();(0,s.each)(e,(function(e,t){(0,i.default)(t).toggleClass("dx-select-checkboxes-hidden",n)}))}}}}};t.selectionModule=I},11590:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sortingModule=void 0;var i=c(n(68374)),o=n(13306),a=n(35922),r=n(95429),s=c(n(55994)),l=n(39611),u=c(n(28109)),d=c(n(62930));function c(e){return e&&e.__esModule?e:{default:e}}var h={defaultOptions:function(){return{sorting:{mode:"single",ascendingText:u.default.format("dxDataGrid-sortingAscendingText"),descendingText:u.default.format("dxDataGrid-sortingDescendingText"),clearText:u.default.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}},extenders:{views:{columnHeadersView:(0,o.extend)({},d.default,{_createRow:function(e){var t=this,n=this.callBase(e);return"header"===e.rowType&&s.default.on(n,(0,l.addNamespace)(r.name,"dxDataGridColumnHeadersView"),"td",this.createAction((function(e){t._processHeaderAction(e.event,n)}))),n},_processHeaderAction:function(e,t){if((0,i.default)(e.currentTarget).parent().get(0)===t.get(0)){var n=this,o=null,r=(0,i.default)(e.currentTarget),s=r.parent().index(),u=-1;[].slice.call(n.getCellElements(s)).some((function(e,t){if(e===r.get(0))return u=t,!0}));var d=n._columnsController.getVisibleColumns(s)[u],c=n.getController("editing"),h=n.option("editing.mode");!(c&&c.isEditing()&&("batch"===h||"cell"===h))&&n._isSortableElement((0,i.default)(e.target))&&(!d||(0,a.isDefined)(d.groupIndex)||d.command||(e.shiftKey?o="shift":(0,l.isCommandKeyPressed)(e)&&(o="ctrl"),setTimeout((function(){n._columnsController.changeSortOrder(d.index,o)}))))}},_renderCellContent:function(e,t){var n=this,i=t.column;i.command||"header"!==t.rowType||n._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:n.option("showColumnLines")}),this.callBase.apply(this,arguments)},_columnOptionChanged:function(e){var t=e.changeTypes;1===t.length&&t.sorting?this._updateIndicators("sort"):this.callBase(e)},optionChanged:function(e){switch(e.name){case"sorting":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}}),headerPanel:(0,o.extend)({},d.default,{_createGroupPanelItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return s.default.on(i,(0,l.addNamespace)(r.name,"dxDataGridHeaderPanel"),n.createAction((function(){n._processGroupItemAction(t.index)}))),n._applyColumnState({name:"sort",rootElement:i,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:!0}),i},_processGroupItemAction:function(e){var t=this;setTimeout((function(){return t.getController("columns").changeSortOrder(e)}))},optionChanged:function(e){switch(e.name){case"sorting":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}})}}};t.sortingModule=h},62930:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(68374))&&i.__esModule?i:{default:i},a=n(35922);var r={_applyColumnState:function(e){var t,n,i=this.option("sorting.mode"),r=e.rootElement,s=e.column,l=this._getIndicatorContainer(r);if("sort"===e.name){r.find(".".concat("dx-sort")).remove(),!l.children().length&&l.remove();var u="none"!==i&&s.allowSorting;if(!(0,a.isDefined)(s.groupIndex)&&(u||(0,a.isDefined)(s.sortOrder)))t="asc"===s.sortOrder?"ascending":"descending",n=this.callBase(e).toggleClass("dx-sort-up","asc"===s.sortOrder).toggleClass("dx-sort-down","desc"===s.sortOrder),this.getController&&!!this.getController("columns").columnOption("sortIndex:1")&&this.option("sorting.showSortIndexes")&&s.sortIndex>=0&&((0,o.default)("
").addClass("dx-sort-index-icon").text(s.sortIndex+1).appendTo(n),n.addClass("dx-sort-index")),u&&e.rootElement.addClass(this.addWidgetPrefix("action"));return(0,a.isDefined)(s.sortOrder)?this.setAria("sort",t,r):this.setAria("sort","none",r),n}return this.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?"dx-sort":"sortIndex"===e?"dx-sort-index-icon":this.callBase(e)},_renderIndicator:function(e){var t=e.column,n=e.container,i=e.indicator;if("sort"===e.name){var o=this.option("rtlEnabled");if((0,a.isDefined)(t.sortOrder)||i&&i.addClass("dx-sort-none"),n.children().length&&(!o&&"left"===e.columnAlignment||o&&"right"===e.columnAlignment))return void n.prepend(i)}this.callBase(e)},_updateIndicator:function(e,t,n){if("sort"!==n||!(0,a.isDefined)(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var n=this.callBase(e);return t?n:n&&n.not(".".concat("dx-sort-none"))}};t.default=r},12440:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.stateStoringModule=void 0;var i,o=n(20576),a=n(62754),r=n(13306),s=n(35922),l=(i=n(84651))&&i.__esModule?i:{default:i};var u=function(e){var t=e.getController("columns"),n=e.getController("selection"),i=e.getController("export"),o=e.getController("data");t&&t.columnsChanged.add((function(){e.updateState({columns:t.getUserState()})})),n&&n.selectionChanged.add((function(t){e.updateState({selectedRowKeys:t.selectedRowKeys,selectionFilter:t.selectionFilter})})),o&&(e._initialPageSize=e.option("paging.pageSize"),e._initialFilterValue=e.option("filterValue"),o.changed.add((function(){var t=function(e){var t=e.getView("pagerView"),n=e.getController("data"),i={allowedPageSizes:t?t.getPageSizes():void 0,filterPanel:{filterEnabled:e.option("filterPanel.filterEnabled")},filterValue:e.option("filterValue"),focusedRowKey:e.option("focusedRowEnabled")?e.option("focusedRowKey"):void 0};return(0,r.extend)(i,n.getUserState())}(e);e.updateState(t)}))),i&&i.selectionOnlyChanged.add((function(){e.updateState({exportSelectionOnly:i.selectionOnly()})}))},d={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:l.default.StateStoringController},extenders:{views:{rowsView:{init:function(){var e=this,t=e.getController("data");e.callBase(),t.stateLoaded.add((function(){if(t.isLoaded()&&!t.getDataSource()){e.setLoading(!1),e.renderNoDataText();var n=e.component.getView("columnHeadersView");n&&n.render(),e.component._fireContentReadyAction()}}))}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),u(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var t=this.callBase.apply(this,arguments);return void 0!==e&&this.applyState((0,r.extend)(!0,{},e)),t},updateState:function(e){if(this.isEnabled()){var t=this.state(),n=(0,r.extend)({},t,e),i=(0,o.getKeyHash)(t),a=(0,o.getKeyHash)(n);(0,o.equalByValue)(i,a)||(e=(0,r.extend)(!0,{},e),(0,r.extend)(this._state,e),this.save())}else(0,r.extend)(this._state,e)},applyState:function(e){var t,n=e.allowedPageSizes,i=e.searchText,o=e.selectedRowKeys,a=e.selectionFilter,r=this.getController("export"),l=this.getController("columns"),u=this.getController("data"),d=this.option("scrolling.mode"),c="virtual"===d||"infinite"===d,h=!0===this.option("pager.visible")&&this.option("pager.showPageSizeSelector"),f=null===(t=this.getView("rowsView"))||void 0===t?void 0:t.hasHeight();this.component.beginUpdate(),l&&l.setUserState(e.columns),r&&r.selectionOnly(e.exportSelectionOnly),this.option("selection.deferred")||this.option("selectedRowKeys",o||[]),this.option("selectionFilter",a),n&&"auto"===this.option("pager.allowedPageSizes")&&(this.option("pager").allowedPageSizes=n),this.option("focusedRowEnabled")&&(this.option("focusedRowIndex",-1),this.option("focusedRowKey",e.focusedRowKey||null)),this.component.endUpdate(),this.option("searchPanel.text",i||""),this.option("filterValue",function(e,t){var n=e.getController("filterSync"),i=e.getController("columns"),o=t.columns||void 0!==t.filterValue;return n?o?t.filterValue||n.getFilterValueFromColumns(t.columns):e._initialFilterValue||n.getFilterValueFromColumns(i.getColumns()):null}(this,e)),this.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),this.option("paging.pageIndex",(!c||f)&&e.pageIndex||0),this.option("paging.pageSize",c&&!h||!(0,s.isDefined)(e.pageSize)?this._initialPageSize:e.pageSize),u&&u.reset()}},columns:{_shouldReturnVisibleColumns:function(){var e=this.callBase.apply(this,arguments),t=this.getController("stateStoring");return e&&(!t.isEnabled()||t.isLoaded())}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this,t=this.callBase,n=this.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var i=new a.Deferred;return this._restoreStateTimeoutID=setTimeout((function(){n.load().always((function(){e._restoreStateTimeoutID=null})).done((function(){t.call(e),e.stateLoaded.fire(),i.resolve()})).fail((function(t){e.stateLoaded.fire(),e._handleLoadError(t||"Unknown error"),i.reject()}))})),i.promise()}this.isStateLoading()||t.call(this)},isLoading:function(){var e=this.getController("stateStoring");return this.callBase()||e.isLoading()},isStateLoading:function(){return(0,s.isDefined)(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}},selection:{_fireSelectionChanged:function(e){var t=this.getController("stateStoring"),n=this.option("selection.deferred");t.isLoading()&&n||this.callBase.apply(this,arguments)}}}}};t.stateStoringModule=d},84651:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(62754),o=n(13306),a=n(95479),r=n(36613),s=n(35922),l=n(58201),u=h(n(55994)),d=h(n(96688)),c=h(n(15943));function h(e){return e&&e.__esModule?e:{default:e}}var f,p,g=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,m=function e(t){t&&(0,a.each)(t,(function(n,i){if((0,s.isPlainObject)(i)||Array.isArray(i))e(i);else if("string"==typeof i){var o=g.exec(i);o&&(t[n]=new Date(Date.UTC(+o[1],+o[2]-1,+o[3],+o[4],+o[5],+o[6])))}}))},_={StateStoringController:c.default.ViewController.inherit((f=function(e){var t="sessionStorage"===e.type?(0,r.sessionStorage)():(0,l.getWindow)().localStorage;if(!t)throw new Error("E1007");return t},p=function(e){return(0,s.isDefined)(e.storageKey)?e.storageKey:"storage"},{_loadState:function(){var e=this.option("stateStoring");if("custom"===e.type)return e.customLoad&&e.customLoad();try{return JSON.parse(f(e).getItem(p(e)))}catch(e){d.default.log("W1022","State storing",e.message)}},_saveState:function(e){var t=this.option("stateStoring");if("custom"!==t.type)try{f(t).setItem(p(t),JSON.stringify(e))}catch(e){d.default.log(e.message)}else t.customSave&&t.customSave(e)},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},u.default.on((0,l.getWindow)(),"unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){var e=this;this._isLoading=!0;var t=(0,i.fromPromise)(this._loadState());return t.always((function(){e._isLoaded=!0,e._isLoading=!1})).done((function(t){null===t||(0,s.isEmptyObject)(t)||e.state(t)})),t},state:function(e){var t=this;if(!arguments.length)return(0,o.extend)(!0,{},t._state);t._state=(0,o.extend)({},e),m(t._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout((function(){e._saveState(e.state()),e._savingTimeoutID=void 0}),e.option("stateStoring.savingTimeout"))},optionChanged:function(e){switch(e.name){case"stateStoring":this.isEnabled()&&!this.isLoading()&&this.load(),e.handled=!0;break;default:this.callBase(e)}},dispose:function(){clearTimeout(this._savingTimeoutID),u.default.off((0,l.getWindow)(),"unload",this._windowUnloadHandler)}}))};t.default=_},39830:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.validatingModule=void 0;var i=k(n(68374)),o=k(n(47810)),a=n(20576),r=n(62754),s=n(13306),l=n(95479),u=n(58664),d=n(68752),c=n(35922),h=n(60637),f=k(n(55994)),p=k(n(93786)),g=k(n(28109)),m=k(n(63008)),_=k(n(2492)),v=k(n(89799)),y=k(n(90964)),b=k(n(39562)),x=n(31421),w=k(n(96688)),C=k(n(15943)),S=k(n(60082));function k(e){return e&&e.__esModule?e:{default:e}}function D(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(e)||function(){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 I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n").appendTo(n).addClass("dx-pending-indicator"),this._createComponent(t,_.default),e.addClass("dx-validation-pending")}},disposeCellPendingIndicator:function(e){var t=e.find(".".concat("dx-pending-indicator"));if(t.length){var n=_.default.getInstance(t);n&&(n.dispose(),n.$element().remove()),e.removeClass("dx-validation-pending")}},validationStatusChanged:function(e){var t=e.validator,n=t.option("validationGroup"),i=t.option("dataGetter")().column;this.updateCellValidationResult({rowKey:n.key,columnIndex:i.index,validationResult:e})},validatorInitialized:function(e){e.component.on("validating",this.validationStatusChanged.bind(this)),e.component.on("validated",this.validationStatusChanged.bind(this))},validatorDisposing:function(e){var t=e.component,n=t.option("validationGroup"),i=t.option("dataGetter")().column,o=this.getCellValidationResult({rowKey:null==n?void 0:n.key,columnIndex:i.index});P(o)&&o.status===A&&this.cancelCellValidationResult({change:n,columnIndex:i.index})},applyValidationResult:function(e,t){var n=t.validator,i=n.option("validationGroup"),o=n.option("dataGetter")().column;if(t.brokenRules&&t.brokenRules.forEach((function(e){e.columnIndex=o.index,e.column=o})),e){var a=this.getCellValidationResult({rowKey:i.key,columnIndex:o.index}),r=P(a)&&a.disabledPendingId===t.id;if(this._disableApplyValidationResults||r)return;if(t.status===O){var s=e.find(":focus");(0,x.focused)(s)||(f.default.trigger(s,"focus"),f.default.trigger(s,p.default.down))}var l=!o.editCellTemplate&&this.getController("editorFactory").getEditorInstance(e);t.status===A?l?l.option("validationStatus",A):this.renderCellPendingIndicator(e):l?l.option("validationStatus",E):this.disposeCellPendingIndicator(e),e.toggleClass(this.addWidgetPrefix("invalid"),t.status===O)}},_syncInternalEditingData:function(e){var t,n=this._editingController,i=n.getChangeByKey(e.key),o=n._getOldData(e.key),a=null===(t=e.row)||void 0===t?void 0:t.oldData;i&&a&&!o&&n._addInternalData({key:e.key,oldData:a})},createValidator:function(e,t){var n,o,r=this,l=this._editingController,u=e.column,d=u.showEditorAlways;if(!(0,c.isDefined)(u.command)&&u.validationRules&&Array.isArray(u.validationRules)&&u.validationRules.length){var f=l.getIndexByKey(e.key,l.getChanges())>-1;if(!f){if(!d){var p=this.getController("columns");d=((null==p?void 0:p.getVisibleColumns())||[]).some((function(e){return e.showEditorAlways}))}var g=(0,a.equalByValue)(this.option("editing.editRowKey"),e.key),m=l.isCellOrBatchEditMode()&&l.allowUpdating({row:e.row});f=g||m&&d,m&&d&&l._addInternalData({key:e.key,oldData:null!==(o=null===(n=e.row)||void 0===n?void 0:n.oldData)&&void 0!==o?o:e.data})}if(f){if(t&&!t.length)return void w.default.log("E1050");this._syncInternalEditingData(e);var _=this._getValidationData(e.key,!0),v=function(){var t=l.getChangeByKey(null==_?void 0:_.key),n=u.calculateCellValue((null==t?void 0:t.data)||{});return void 0!==n?n:e.value},y=t&&t.hasClass("dx-widget");t&&t.addClass(this.addWidgetPrefix("validator"));var x=new b.default(t||(0,i.default)(""),{name:u.caption,validationRules:(0,s.extend)(!0,[],u.validationRules),validationGroup:_,adapter:y?null:{getValue:v,applyValidationResults:function(e){r.applyValidationResult(t,e)}},dataGetter:function(){var e=null==_?void 0:_.key,t=l.getChangeByKey(e),n=l._getOldData(e);return{data:(0,h.createObjectWithChanges)(n,null==t?void 0:t.data),column:u}},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(y){var C=x.option("adapter");if(C){var S=C.bypass;C.getValue=v,C.validationRequestsCallbacks=[],C.bypass=function(){return S.call(C)||e.row.isNewRow&&!r._isValidationInProgress&&!l.isCellModified(e)}}}return x}}},setDisableApplyValidationResults:function(e){this._disableApplyValidationResults=e},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults},isCurrentValidatorProcessing:function(e){var t=e.rowKey,n=e.columnIndex;return this._currentCellValidator&&(0,a.equalByValue)(this._currentCellValidator.option("validationGroup").key,t)&&this._currentCellValidator.option("dataGetter")().column.index===n},validateCell:function(e){var t={rowKey:e.option("validationGroup").key,columnIndex:e.option("dataGetter")().column.index},n=this.getCellValidationResult(t),i=P(n),o=e.option("adapter");if(i){var s=o.getValue();(0,a.equalByValue)(s,n.value)||(n=e.validate())}else n=e.validate();var l=new r.Deferred;return i&&n.status===A&&(this.updateCellValidationResult(t),o.applyValidationResults(n)),(0,r.when)(n.complete||n).done((function(e){i&&o.applyValidationResults(e),l.resolve(e)})),l.promise()},updateCellValidationResult:function(e){var t=e.rowKey,n=e.columnIndex,i=e.validationResult,o=this._getValidationData(t);if(o){var a;if(o.validationResults||(o.validationResults={}),i){if(a=(0,s.extend)({},i),o.validationResults[n]=a,i.status===A&&("cell"===this._editingController.getEditMode()&&(a.deferred=new r.Deferred,a.complete.always((function(){a.deferred.resolve()})),this._editingController.addDeferred(a.deferred)),this._disableApplyValidationResults))return void(a.disabledPendingId=i.id)}else a=o.validationResults[n];a&&a.disabledPendingId&&delete a.disabledPendingId}},getCellValidationResult:function(e){var t,n=e.rowKey,i=e.columnIndex,o=this._getValidationData(n,!0);return null===(t=null==o?void 0:o.validationResults)||void 0===t?void 0:t[i]},removeCellValidationResult:function(e){var t=e.change,n=e.columnIndex,i=this._getValidationData(null==t?void 0:t.key);i&&i.validationResults&&(this.cancelCellValidationResult({change:t,columnIndex:n}),delete i.validationResults[n])},cancelCellValidationResult:function(e){var t=e.change,n=e.columnIndex,i=this._getValidationData(t.key);if(t&&i.validationResults){var o=i.validationResults[n];o&&(o.deferred&&o.deferred.reject("cancel"),i.validationResults[n]="cancel")}},resetRowValidationResults:function(e){e&&(e.validationResults&&delete e.validationResults,delete e.validated)},isInvalidCell:function(e){var t=e.rowKey,n=e.columnIndex,i=this.getCellValidationResult({rowKey:t,columnIndex:n});return P(i)&&i.status===O},getCellValidator:function(e){var t=e.rowKey,n=e.columnIndex,i=this._getValidationData(t),o=i&&y.default.getGroupConfig(i),a=o&&o.validators;return a&&a.filter((function(e){var t=e.option("dataGetter")().column;return!!t&&t.index===n}))[0]},setCellValidationStatus:function(e){var t=this.getCellValidationResult({rowKey:e.key,columnIndex:e.column.index});(0,c.isDefined)(t)?e.validationStatus="cancel"!==t?t.status:"cancel":delete e.validationStatus}})},extenders:{controllers:{editing:{_addChange:function(e){var t=this.callBase.apply(this,arguments),n=this.getController("validating");return t&&"remove"!==e.type&&n.updateValidationState(t),t},_handleChangesChange:function(e){this.callBase.apply(this,arguments);var t=this.getController("validating");e.value.forEach((function(e){void 0===t._getValidationData(e.key)&&t.updateValidationState(e)}))},_updateRowAndPageIndices:function(){var e=this,t=this,n=t.getView("rowsView").getTopVisibleItemIndex(),i=n;(0,l.each)(t.getChanges(),(function(o,a){var r=a.key,s=a.type,l=e.getController("validating")._getValidationData(r);l&&!l.isValid&&l.pageIndex!==t._pageIndex&&(l.pageIndex=t._pageIndex,l.rowIndex="insert"===s?n:i,i++)}))},_getValidationGroupsInForm:function(e){return{validationGroup:this.getController("validating")._getValidationData(e.key,!0)}},_validateEditFormAfterUpdate:function(e,t){t&&this._editForm&&this._editForm.validate(),this.callBase.apply(this,arguments)},_prepareEditCell:function(e){var t=this.callBase.apply(this,arguments),n=this.getController("validating");return t&&e.column.showEditorAlways&&n.updateValidationState({key:e.key}),t},processItems:function(e,t){var n=this,i=this.getChanges(),o=this.getController("data"),r=this.getController("validating"),s=(e=this.callBase(e,t)).length,u=function(t,n){var i={key:t.key};if(!(function(e,t){var n=-1,i="insert"===e.type,r=e.key;return(0,l.each)(t,(function(e,t){if((0,a.equalByValue)(r,i?t.key:o.keyOf(t)))return n=e,!1})),n}(t,e)>=0)){n.rowIndex=n.rowIndex>s?n.rowIndex%s:n.rowIndex;var r=n.rowIndex;i.__DX_INSERT_INDEX__=1,e.splice(r,0,i)}};return"batch"===this.getEditMode()&&"prepend"!==t&&"append"!==t&&i.forEach((function(e){var t=e.key,i=r._getValidationData(t);i&&e.type&&i.pageIndex===n._pageIndex&&(null==e?void 0:e.pageIndex)!==n._pageIndex&&u(e,i)})),e},processDataItem:function(e){var t=e.data.__DX_INSERT_INDEX__,n=t?e.data.key:e.key,i=this.getEditMode();if("batch"===i&&t&&n){var o=this.getChanges(),a=S.default.getIndexByKey(n,o);if(a>=0){var r=o[a];if("insert"!==r.type){var l=this._getOldData(r.key);e.data=(0,s.extend)(!0,{},l,r.data),e.key=n}}}this.callBase.apply(this,arguments)},_createInvisibleColumnValidators:function(e){var t=this,n=this,i=this.getController("validating"),o=this.getController("columns"),a=o.getColumns(),r=o.getInvisibleColumns().filter((function(e){return!e.isBand})),s=o.getGroupColumns().filter((function(e){return!e.showWhenGrouped&&-1===r.indexOf(e)})),u=[];return r.push.apply(r,D(s)),T.includes(this.getEditMode())||(0,l.each)(a,(function(o,a){e.forEach((function(e){var o;if(!function(e,n){return t._dataController.getRowIndexByKey(n)>=0&&r.indexOf(e)<0}(a,e.key)){if("insert"===e.type)o=e.data;else if("update"===e.type){var s=n._getOldData(e.key);if(!(0,c.isDefined)(s))return;o=(0,h.createObjectWithChanges)(s,e.data)}if(o){var l=i.createValidator({column:a,key:e.key,value:a.calculateCellValue(o)});l&&u.push(l)}}}))})),function(){u.forEach((function(e){e.dispose()}))}},_beforeSaveEditData:function(e,t){var n=this,i=this.callBase.apply(this,arguments),o=this.getController("validating"),a=o._getValidationData(null==e?void 0:e.key);if(e){var s="remove"===e.type||a.isValid;i=i||!s}else{var l=this._createInvisibleColumnValidators(this.getChanges());i=new r.Deferred,this.executeOperation(i,(function(){o.validate(!0).done((function(e){switch(l(),n._updateRowAndPageIndices(),n.getEditMode()){case"cell":e||n._focusEditingCell();break;case"batch":e||(n._resetEditRowKey(),n._resetEditColumnName(),n.getController("data").updateItems())}i.resolve(!e)}))}))}return i.promise?i.promise():i},_beforeEditCell:function(e,t,n){var i=this.callBase(e,t,n);if("cell"===this.getEditMode()){var o=this._rowsView._getCellElement(e,t),a=o&&o.data("dxValidator"),s=o&&o.closest(".dx-row").data("options"),l=a&&a.option("adapter").getValue();if(a&&M(l,s)){var u=this.getController("validating"),d=new r.Deferred;return(0,r.when)(u.validateCell(a),i).done((function(e,t){d.resolve(e.status===E&&t)})),d.promise()}if(!a)return i}},_afterSaveEditData:function(e){var t,n=this,i="cell"===this.getEditMode();if((0,l.each)(this.getChanges(),(function(e,i){var o=n._showErrorRow(i);t=t||o})),t){var o=this._rowsView.getScrollable();o&&(o.update(),o.scrollToElement(t))}if(e&&i&&this._needUpdateRow()){var a=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[a]}),this._focusEditingCell()}else if(!e){var r=!0;if(i)r=!(this.getController("columns").getColumns().filter((function(e){var t;return e.showEditorAlways&&(null===(t=e.validationRules)||void 0===t?void 0:t.length)>0})).length>0);r&&this.getController("validating").initValidationState()}},_handleDataChanged:function(e){var t=this.getController("validating")._validationState;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===e.changeType&&(0,l.each)(t,(function(t,n){n.rowIndex+=e.items.length})),this.callBase(e)},resetRowAndPageIndices:function(){var e=this,t=this.getController("validating")._validationState;(0,l.each)(t,(function(t,n){n.pageIndex!==e._pageIndex&&(delete n.pageIndex,delete n.rowIndex)}))},_beforeCancelEditData:function(){this.getController("validating").initValidationState(),this.callBase()},_showErrorRow:function(e){var t,n=this.getController("errorHandling"),i=this.getController("data").items(),o=this.getIndexByKey(e.key,i),a=this.getController("validating")._getValidationData(e.key);if(!(null==a?void 0:a.isValid)&&(null==a?void 0:a.errorText)&&o>=0)return t=this.getPopupContent(),n&&n.renderErrorRow(null==a?void 0:a.errorText,o,t)},updateFieldValue:function(e){var t=this,n=this.getController("validating"),i=new r.Deferred;return n.removeCellValidationResult({change:this.getChangeByKey(e.key),columnIndex:e.column.index}),this.callBase.apply(this,arguments).done((function(){var o=n.getCellValidator({rowKey:e.key,columnIndex:e.column.index});(0,r.when)(o&&n.validateCell(o)).done((function(e){t.getController("editorFactory").refocus(),i.resolve(e)}))})),i.promise()},highlightDataCell:function(e,t){this.callBase.apply(this,arguments);var n=this.getController("validating");n.setCellValidationStatus(t);var i=!!t.setValue,o=this.isCellModified(t),a=(0,c.isDefined)(t.validationStatus),s=o&&t.column.setCellValue||i&&!o&&!(t.row.isNewRow||!a);if(s){var l=e.data("dxValidator");l&&(0,r.when)(this.getController("validating").validateCell(l)).done((function(){n.setCellValidationStatus(t)}))}},getChangeByKey:function(e){var t=this.getChanges();return t[S.default.getIndexByKey(e,t)]},isCellModified:function(e){var t=this.callBase(e),n=this.getChangeByKey(e.key),i=!!e.row&&this.getController("validating").isInvalidCell({rowKey:e.key,columnIndex:e.column.index});return t||this.getController("validating")._rowIsValidated(n)&&i}},editorFactory:{_showRevertButton:function(e){var t,n=this,o=null===(t=this._revertTooltip)||void 0===t?void 0:t.$element();if(!e||!e.length)return null==o||o.remove(),void(this._revertTooltip=void 0);if(!e.find(o).length){var a=e.closest(".".concat(this.addWidgetPrefix("content"))),r=this.addWidgetPrefix("revert-tooltip");null==o||o.remove(),o=(0,i.default)("
").addClass(r).appendTo(e);var s={animation:null,visible:!0,width:"auto",height:"auto",shading:!1,container:a,propagateOutsideClick:!0,hideOnOutsideClick:!1,wrapperAttr:{class:r},contentTemplate:function(){var e=(0,i.default)("
").addClass("dx-revert-button"),t={icon:"revert",hint:n.option("editing.texts.validationCancelChanges"),onClick:function(){n._editingController.cancelEditData()}};return new m.default(e,t).$element()},position:{my:"left top",at:"right top",offset:"1 0",collision:"flip",boundaryOffset:"0 0",boundary:this._rowsView.element(),of:e},onPositioned:this._positionedHandler.bind(this)};this._revertTooltip=new v.default(o,s)}},_hideFixedGroupCell:function(e,t){var n,o,a=this._rowsView.isFixedColumns(),r=this._editingController.isFormOrPopupEditMode();if(a&&!r){var s=e.closest(".dx-row").next().data("options");s&&"group"===s.rowType&&(n=(0,i.default)(this._rowsView.getRowElement(s.rowIndex)).last(),(o=n.find(".".concat("dx-group-cell"))).length&&"hidden"!==o.get(0).style.visibility&&(o.css("visibility","hidden"),t.onDisposing=function(){o.css("visibility","")}))}},_positionedHandler:function(e,t){if(!e.component.__skipPositionProcessing){var n=(0,i.default)(e.element).hasClass(this.addWidgetPrefix("revert-tooltip")),o=!n&&this._rowsView.updateFreeSpaceRowHeight(),a=this._normalizeValidationMessagePositionAndMaxWidth(e,n,t);e.component.__skipPositionProcessing=!(!o&&!a),a?e.component.option(a):o&&e.component.repaint()}},_showValidationMessage:function(e,t,n){var a,r=this,s=e.find(".dx-dropdowneditor-overlay").data("dxPopup"),l=s&&s.option("visible"),u=l?"top right":"top ".concat(n),c=l?"top left":"bottom ".concat(n),h=(null===(a=this._columnsController.getFixedColumns())||void 0===a?void 0:a.length)>0?this.getView("rowsView").element():e.closest(".".concat(this.addWidgetPrefix("content"))),f="";t&&t.forEach((function(e){f+=(f.length?"
":"")+(0,d.encodeHtml)(e)}));var p=this.addWidgetPrefix("invalid-message");this._rowsView.element().find(".".concat(p)).remove();var g=(0,i.default)("
").addClass("dx-invalid-message").addClass("dx-invalid-message-always").addClass(p).html(f).appendTo(e),m={container:h,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,hideOnOutsideClick:!1,wrapperAttr:{class:"".concat("dx-invalid-message"," ").concat("dx-invalid-message-always"," ").concat(p)},position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",offset:{x:0,y:!l&&o.default.mozilla?-1:0},my:u,at:c,of:e},onPositioned:function(t){r._positionedHandler(t,l),r._shiftValidationMessageIfNeed(t.component.$content(),e)}};this._hideFixedGroupCell(e,m),new v.default(g,m)},_hideValidationMessage:function(){var e,t=null===(e=this._rowsView.element())||void 0===e?void 0:e.find(this._getValidationMessagesSelector());null==t||t.remove()},_normalizeValidationMessagePositionAndMaxWidth:function(e,t,n){var o=this._columnsController.getFixedColumns();if(o&&o.length){var a,r,s,l,d,c=!t&&(r=this,s=e.element,l=(0,i.default)(s).closest("tr").index(),d=(0,i.default)(r._rowsView.getRowElement(l)).first().children().filter(":not(.dx-hidden-cell)"),r._rowsView._getWidths(d).reduce((function(e,t){return e+t}),0)),h=e.component.$content(),f=(0,u.getOuterWidth)(h,!0),p=!t&&f>c,g=this._rowsView.getCellIndex((0,i.default)(e.element).closest("td")),m=function(e){var t,n;return e.some((function(i,o){if("transparent"===i.command)return t=0===o?-1:o,n=o===e.length-1?-1:o+i.colspan-1,!0})),{startColumnIndex:t,endColumnIndex:n}}(o);return t||g!==m.startColumnIndex&&!p?g===m.endColumnIndex&&(a={collision:"none flip",my:"top right",at:t||n?"top left":"bottom right"},t&&(a.offset="-1 0")):a={collision:"none flip",my:"top left",at:n?"top right":"bottom left"},a&&{position:a,maxWidth:p?c-2:void 0}}},_shiftValidationMessageIfNeed:function(e,t){var n=this._revertTooltip&&this._revertTooltip.$content();if(n){var i=e.offset(),o=n.offset();if(i.top===o.top&&i.left+(0,u.getWidth)(e)>o.left){var a=(0,u.getWidth)(n)+2;e.css("left",o.left
(0,u.getOuterHeight)(n))))return i.show(),(0,u.setHeight)(i,(0,u.getOuterHeight)(a)),!0},_formItemPrepared:function(e,t){var n=this;this.callBase.apply(this,arguments),(0,a.deferUpdate)((function(){var i=t.find(".dx-widget").first();i.length&&!i.children().length||n.getController("validating").createValidator(e,i)}))},_cellPrepared:function(e,t){this.getController("editing").isFormOrPopupEditMode()||this.getController("validating").createValidator(t,e),this.callBase.apply(this,arguments)},_restoreErrorRow:function(e){var t=this.getController("editing");t&&t.hasChanges()&&this._getRowElements(e).each((function(e,n){var o=(0,i.default)(n).data("options");if(o){var a=t.getChangeByKey(o.key);a&&t._showErrorRow(a)}}))}}}}};t.validatingModule=R},57318:function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnsView=void 0;var o=T(n(73349)),a=n(6415),r=n(97906),s=T(n(68374)),l=T(n(47810)),u=n(20576),d=n(62754),c=n(13306),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=I(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}o.default=e,n&&n.set(e,o);return o}(n(95479)),f=n(37518),p=n(58664),g=n(80968),m=n(60137),_=n(35922),v=n(58201),y=n(95429),b=T(n(55994)),x=n(85272),w=T(n(93786)),C=n(29007),S=T(n(51255)),k=T(n(15943)),D=T(n(60082));function I(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(I=function(e){return e?n:t})(e)}function T(e){return e&&e.__esModule?e:{default:e}}function E(e,t){return(E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var O={render:function(e){e.container.append(e.content)}},A=function(e){return"auto"===e?"":(0,_.isNumeric)(e)?"".concat(e,"px"):e},P=function(e,t,n){e.style.width=e.style.maxWidth="auto"===t.width?"":n},M=function(e){e.resolve()},R=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,E(t,n);var S=i.prototype;return S._createScrollableOptions=function(){var e=this.option("scrolling"),t=this.option("scrolling.useNative"),n=(0,c.extend)({},e,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===t&&(t=!0),"auto"===t?(delete n.useNative,delete n.useSimulatedScrollbar):(n.useNative=!!t,n.useSimulatedScrollbar=!t),n},S._updateCell=function(e,t){t.rowType&&this._cellPrepared(e,t)},S._createCell=function(e){var t=e.column,n=t.alignment||(0,f.getDefaultAlignment)(this.option("rtlEnabled")),i=o.default.createElement("td");i.style.textAlign=n;var a=(0,s.default)(i);return"data"===e.rowType&&t.headerId&&!t.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",t.headerId,a),t.cssClass&&a.addClass(t.cssClass),"expand"===t.command&&(a.addClass(t.cssClass),a.addClass(this.addWidgetPrefix("group-space"))),t.colspan>1?a.attr("colSpan",t.colspan):!t.isBand&&"auto"!==t.visibleWidth&&this.option("columnAutoWidth")&&((t.width||t.minWidth)&&(i.style.minWidth=A(t.minWidth||t.width)),t.width&&P(i,t,A(t.width))),a},S._createRow=function(e,t){t=t||"tr";var n=(0,s.default)("<".concat(t,">")).addClass("dx-row");return this.setAria("role","row",n),n},S._isAltRow=function(e){return e&&e.dataIndex%2==1},S._createTable=function(e,t){var n=this,i=(0,s.default)("").addClass(n.addWidgetPrefix("table")).addClass(n.addWidgetPrefix("table-fixed"));if(e&&!t?(i.append(n._createColGroup(e)),l.default.safari&&i.append((0,s.default)("").append(""))):n.setAria("hidden",!0,i),this.setAria("role","presentation",(0,s.default)("
").appendTo(i)),t)return i;l.default.mozilla&&b.default.on(i,"mousedown","td",(function(e){e.ctrlKey&&e.preventDefault()})),n.option("cellHintEnabled")&&b.default.on(i,"mousemove",".dx-row > td",this.createAction((function(e){var t=e.event,i=(0,s.default)(t.target),o=(0,s.default)(t.currentTarget),a=o.parent(),r=n._columnsController.getVisibleColumns(),l=a.data("options"),u=o.index(),d=l&&l.cells&&l.cells[u],c=d?d.column:r[u],h=a.hasClass("dx-header-row"),f=a.hasClass("dx-data-row"),p=a.hasClass("dx-master-detail-row"),g=a.hasClass("dx-group-row"),m=a.hasClass(n.addWidgetPrefix("filter-row")),v=f&&(!c||c.cellTemplate),y=f&&d&&(l.isEditing||d.isEditing||(null==c?void 0:c.showEditorAlways)),b=h&&(!c||c.headerCellTemplate),x=g&&(!c||c.groupIndex&&c.groupCellTemplate);p||m||y||v||b||x||(i.data("dxCellHintVisible")&&(i.removeAttr("title"),i.data("dxCellHintVisible",!1)),i[0].scrollWidth-i[0].clientWidth>0&&!(0,_.isDefined)(i.attr("title"))&&(i.attr("title",i.text()),i.data("dxCellHintVisible",!0)))})));var o=function(e){var t=(0,s.default)(e.currentTarget),i=(0,s.default)(e.target).closest(".".concat("dx-field-item-content")),o=t.parent(),r=o.data("options"),l=r&&r.cells&&r.cells[t.index()];if(t.closest("table").is(e.delegateTarget)){var u=(0,c.extend)({},l,{cellElement:(0,a.getPublicElement)(t),event:e,eventType:e.type});if(u.rowIndex=n.getRowIndex(o),i.length){var d=i.data("dx-form-item");d.column&&(u.column=d.column,u.columnIndex=n._columnsController.getVisibleIndex(u.column.index))}return u}};return b.default.on(i,"mouseover",".dx-row > td",(function(e){var t=o(e);t&&n.executeAction("onCellHoverChanged",t)})),b.default.on(i,"mouseout",".dx-row > td",(function(e){var t=o(e);t&&n.executeAction("onCellHoverChanged",t)})),b.default.on(i,y.name,".dx-row > td",(function(e){var t=o(e);t&&n.executeAction("onCellClick",t)})),b.default.on(i,x.name,".dx-row > td",(function(e){var t=o(e);t&&n.executeAction("onCellDblClick",t)})),function(e,t){var n,i,o;function r(e){return setTimeout((function(){n=i=null}),e)}b.default.on(t,"touchstart touchend",".dx-row",(function(e){clearTimeout(o),"touchstart"===e.type?(n=e.target,i=e.currentTarget,o=r(1e3)):o=r()})),b.default.on(t,[y.name,x.name,w.default.down].join(" "),".dx-row",e.createAction((function(t){var o=t.event;n&&(o.target=n,o.currentTarget=i),(0,s.default)(o.target).closest("a").length||(t.rowIndex=e.getRowIndex(o.currentTarget),t.rowIndex>=0&&(t.rowElement=(0,a.getPublicElement)((0,s.default)(o.currentTarget)),t.columns=e.getColumns(),o.type===w.default.down?e._rowPointerDown(t):o.type===y.name?e._rowClick(t):e._rowDblClick(t)))})))}(n,i),i},S._rowPointerDown=function(){},S._rowClick=function(){},S._rowDblClick=function(){},S._createColGroup=function(e){for(var t=(0,s.default)(""),n=0;n");return(0,g.setWidth)(n,t),n},S.renderDelayedTemplates=function(e){var t=this._delayedTemplates,n=t.filter((function(e){return!e.async})),i=t.filter((function(e){return e.async}));this._delayedTemplates=[],this._renderDelayedTemplatesCore(n,!1,e),this._renderDelayedTemplatesCoreAsync(i)},S._renderDelayedTemplatesCoreAsync=function(e){var t=this;if(e.length){var n=(0,v.getWindow)().setTimeout((function(){t._templateTimeouts.delete(n),t._renderDelayedTemplatesCore(e,!0)}));this._templateTimeouts.add(n)}},S._renderDelayedTemplatesCore=function(e,t,n){for(var i=new Date;e.length;){var a=e.shift(),r=a.options,l=o.default.getRootNode((0,s.default)(r.container).get(0)),u=this.needWaitAsyncTemplates();if((!t||(0,s.default)(r.container).closest(l).length||u)&&(n&&(r.change=n),a.template.render(r)),t&&new Date-i>30){this._renderDelayedTemplatesCoreAsync(e);break}}!e.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()},S._processTemplate=function(e,t){var n;if(e&&e.render&&!(0,_.isRenderer)(e))n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model,t.change),t.deferred&&t.deferred.resolve()}};else if((0,_.isFunction)(e))n={render:function(t){var n=e((0,a.getPublicElement)(t.container),t.model,t.change);n&&(n.nodeType||(0,_.isRenderer)(n))&&t.container.append(n),t.deferred&&t.deferred.resolve()}};else{var i=(0,_.isString)(e)?e:(0,s.default)(e).attr("id");i?(this._templatesCache[i]||(this._templatesCache[i]=this.getTemplate(e)),n=this._templatesCache[i]):n=this.getTemplate(e)}return n},S.renderTemplate=function(e,t,n,i,o){var a,r=this,s=this._processTemplate(t,n),l=n.column,u="data"===n.rowType,c=new d.Deferred,h={container:e,model:n,deferred:c,onRendered:function(){r.isDisposed()?c.reject():c.resolve()}};if(s){n.component=this.component;var f=l&&(l.renderAsync&&u||this.option("renderAsync")&&(!1!==l.renderAsync&&(l.command||l.showEditorAlways)&&u||"filter"===n.rowType)),p=null!==(a=n.renderAsync)&&void 0!==a?a:f;!s.allowRenderToDetachedContainer&&!i||p?this._delayedTemplates.push({template:s,options:h,async:p}):s.render(h),this._templateDeferreds.add(c),b.default.on(e,C.removeEvent,M.bind(null,c))}else c.reject();return c.promise().always((function(){r._templateDeferreds.delete(c)}))},S._getBodies=function(e){return(0,s.default)(e).children("tbody").not(".dx-header").not(".dx-footer")},S._needWrapRow=function(e){var t;return!!this.option().rowTemplate&&!!(null===(t=this._getBodies(e))||void 0===t?void 0:t.filter(".".concat("dx-row")).length)},S._wrapRowIfNeed=function(e,t,n){var i=n?e||this._tableElement:this._tableElement||e;if(this._needWrapRow(i)){var o=(0,s.default)("").addClass(t.attr("class"));return this.setAria("role","presentation",o),o.append(t)}return t},S._appendRow=function(e,t,n){(n=n||O).render({content:t,container:e})},S._resizeCore=function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},S._renderCore=function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},S._renderTable=function(e){(e=e||{}).columns=this._columnsController.getVisibleColumns();var t=e.change&&e.change.changeType,n=this._createTable(e.columns,"append"===t||"prepend"===t||"update"===t);return this._renderRows(n,e),n},S._renderRows=function(e,t){for(var n=this._getRows(t.change),i=t.change&&t.change.columnIndices||[],o=t.change&&t.change.changeTypes||[],a=0;a=0},S._renderCells=function(e,t){for(var n=0,i=t.row,o=t.columns,a=0;a1?n+=o[a].colspan:n++},S._updateCells=function(e,t,n){var i=e.children(),o=t.children(),a=this.option("highlightChanges"),r=this.addWidgetPrefix("cell-updated-animation");n.forEach((function(e,t){var n=i.eq(e),s=o.eq(t);n.replaceWith(s),a&&!s.hasClass("dx-command-expand")&&s.addClass(r)})),function(e,t){if(e&&t){var n,i=e.attributes,o=t.attributes;for(n=0;n=0&&n.splice(e,1)}},t.update=t.update||function(t,i){t&&(this.data=e.data=t.data,this.rowIndex=e.rowIndex=t.rowIndex,this.dataIndex=e.dataIndex=t.dataIndex,this.isExpanded=e.isExpanded=t.isExpanded,e.row&&!i&&(e.row=t)),n.forEach((function(e){e(t)}))},t!==e&&(e.watch=t.watch.bind(t)),e}},S._cellPrepared=function(e,t){t.cellElement=(0,a.getPublicElement)((0,s.default)(e)),this.executeAction("onCellPrepared",t)},S._rowPrepared=function(e,t,n){(0,r.data)(e.get(0),"options",t),t.rowElement=(0,a.getPublicElement)(e),this.executeAction("onRowPrepared",t)},S._columnOptionChanged=function(e){var t=e.optionNames;if(D.default.checkChanges(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=h.map(n,(function(e){var t=e.visibleWidth||e.width;return(0,_.isDefined)(t)?t:"auto"}));this.setColumnWidths({widths:i,optionNames:t})}else this._requireReady||this.render()},S.getCellIndex=function(e){return e.length?e[0].cellIndex:-1},S.getTableElements=function(){return this._tableElement||(0,s.default)()},S.getTableElement=function(e){return this._tableElement},S.setTableElement=function(e,t){this._tableElement=e},S.optionChanged=function(t){switch(e.prototype.optionChanged.call(this,t),t.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),t.handled=!0}},S.init=function(){var e=this;this._scrollLeft=-1,this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._delayedTemplates=[],this._templateDeferreds=new Set,this._templatesCache={},this._templateTimeouts=new Set,this.createAction("onCellClick"),this.createAction("onRowClick"),this.createAction("onCellDblClick"),this.createAction("onRowDblClick"),this.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),this._columnsController.columnsChanged.add(this._columnOptionChanged.bind(this)),this._dataController&&this._dataController.changed.add(this._handleDataChanged.bind(this))},S._afterRowPrepared=function(e){},S._handleDataChanged=function(){},S.callbackNames=function(){return["scrollChanged"]},S._updateScrollLeftPosition=function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},S.scrollTo=function(e){var t=this.element(),n=t&&t.children(".".concat(this.addWidgetPrefix("scroll-container"))).not(".".concat(this.addWidgetPrefix("content-fixed")));(0,_.isDefined)(e)&&(0,_.isDefined)(e.left)&&this._scrollLeft!==e.left&&(this._scrollLeft=e.left,n&&n.scrollLeft(e.left))},S._getContent=function(e){var t;return null===(t=this._tableElement)||void 0===t?void 0:t.parent()},S._removeContent=function(e){var t=this._getContent(e);(null==t?void 0:t.length)&&t.remove()},S._wrapTableInScrollContainer=function(e,t){var n=this,i=(0,s.default)(""),o=this.option("scrolling.useNative");return(!1===o||"auto"===o&&!m.nativeScrolling)&&i.addClass(this.addWidgetPrefix("scrollable-simulated")),b.default.on(i,"scroll",(function(){var e=i.scrollLeft();e!==n._scrollLeft&&n.scrollChanged.fire({left:e},n.name)})),i.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix("scroll-container")).append(e).appendTo(this.element()),this.setAria("role","presentation",i),i},S.needWaitAsyncTemplates=function(){return this.option("templatesRenderAsynchronously")&&!1===this.option("renderAsync")},S.waitAsyncTemplates=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=new d.Deferred,i=t||this.needWaitAsyncTemplates();if(!i)return n.resolve();var o=function t(){return d.when.apply(e,Array.from(e._templateDeferreds)).done((function(){e.isDisposed()?n.reject():e._templateDeferreds.size>0?t():n.resolve()})).fail(n.reject)};return o(),n.promise()},S._updateContent=function(e,t,n){var i=this;return this.waitAsyncTemplates().done((function(){i._removeContent(n),i.setTableElement(e,n),i._wrapTableInScrollContainer(e,n)}))},S._findContentElement=function(){},S._getWidths=function(e){var t,n=[];return e&&h.each(e,(function(e,i){if(t=i.offsetWidth,i.getBoundingClientRect){var o=(0,f.getBoundingRect)(i);o.width>t-1&&(t=o.width)}n.push(t)})),n},S.getColumnWidths=function(e){var t,n,i=[];if((this.option("forceApplyBindings")||u.noop)(),e=e||this.getTableElement()){t=e.children("tbody:not(.dx-header)").children();for(var o=0;o
0?o:void 0}},S._getRowElement=function(e){var t=this,n=(0,s.default)(),i=t.getTableElements();if(h.each(i,(function(i,o){n=n.add(t._getRowElements((0,s.default)(o)).eq(e))})),n.length)return n},S.getCellElement=function(e,t){var n=this._getCellElement(e,t);if(n)return(0,a.getPublicElement)(n)},S.getRowElement=function(e){var t=this._getRowElement(e),n=[];if(t&&!(0,a.getPublicElement)(t).get)for(var i=0;i0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&"virtual"!==this.option("scrolling.rowRenderingMode")&&(e.rowIndex=e.rowIndex0))return i.eq(i.length>e.columnIndex?e.columnIndex:i.length-1)},S.getRowsCount=function(){var e=this.getTableElement();return e&&1===e.length?e[0].rows.length:0},S._getRowElementsCore=function(e){if(e=e||this.getTableElement()){var t=(this.option().rowTemplate||this.option("dataRowTemplate"))&&e.find("> tbody.".concat("dx-row"));return t&&t.length?t:e.find("> tbody > "+".".concat("dx-row",", > .").concat("dx-row"))}return(0,s.default)()},S._getRowElements=function(e){return this._getRowElementsCore(e)},S.getRowIndex=function(e){return this._getRowElements().index(e)},S.getBoundingRect=function(){},S.getName=function(){},S.setScrollerSpacing=function(e){var t=this.element(),n=this.option("rtlEnabled");t&&t.css({paddingLeft:n?e:"",paddingRight:n?"":e})},S.isScrollbarVisible=function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?(0,p.getOuterWidth)(n)-(0,p.getWidth)(t)>0:(0,p.getOuterHeight)(n)-(0,p.getHeight)(t)>0)},S.isDisposed=function(){var e;return null===(e=this.component)||void 0===e?void 0:e._disposed},S.dispose=function(){var e,t;if((0,v.hasWindow)()){var n=(0,v.getWindow)();null===(e=this._templateTimeouts)||void 0===e||e.forEach((function(e){return n.clearTimeout(e)})),null===(t=this._templateTimeouts)||void 0===t||t.clear()}},i}(k.default.View.inherit(S.default));t.ColumnsView=R},28016:function(e,t,n){function i(e){return(i="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.gridViewModule=void 0;var o=y(n(73349)),a=y(n(68374)),r=y(n(47810)),s=n(20576),l=n(62754),u=n(95479),d=n(37518),c=n(58664),h=n(35922),f=n(58201),p=y(n(28109)),g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}o.default=e,n&&n.set(e,o);return o}(n(56756)),m=y(n(15943)),_=y(n(60082));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}var b=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],x=function(e){return(0,h.isString)(e)&&e.endsWith("%")},w=function(e,t){var n=e._rowsView.contentWidth();return n-e._getTotalWidth(t,n)},C={_initPostRenderHandlers:function(){var e=this,t=this._dataController;this._refreshSizesHandler||(this._refreshSizesHandler=function(n){t.changed.remove(e._refreshSizesHandler),e._refreshSizes(n)},t.changed.add((function(){t.changed.add(e._refreshSizesHandler)})))},_refreshSizes:function(e){var t,n,i=this,o=e&&e.changeType,a=e&&e.isDelayed,r=i._dataController.items();if(e&&"refresh"!==o&&"prepend"!==o&&"append"!==o){if("update"===o){if(0===(null===(t=e.changeTypes)||void 0===t?void 0:t.length))return;!(r.length>1||"insert"!==e.changeTypes[0])||0===r.length&&"remove"===e.changeTypes[0]||e.needUpdateDimensions?n=i.resize():(n=new l.Deferred,this._waitAsyncTemplates().done((function(){(0,s.deferUpdate)((function(){return(0,s.deferRender)((function(){return(0,s.deferUpdate)((function(){i._setScrollerSpacing(),i._rowsView.resize(),n.resolve()}))}))}))})).fail(n.reject))}}else a||(n=i.resize());o&&"updateSelection"!==o&&"updateFocusedRow"!==o&&"pageIndex"!==o&&!a&&(0,l.when)(n).done((function(){i._setAriaLabel(),i.fireContentReadyAction()}))},fireContentReadyAction:function(){this.component._fireContentReadyAction()},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},_setAriaLabel:function(){this.component.setAria("label",p.default.format(this._getWidgetAriaLabel(),this._dataController.totalItemsCount(),this.component.columnCount()),this.component.$element().children(".".concat("dx-gridbase-container")))},_getBestFitWidths:function(){var e,t=this._rowsView,n=this._columnHeadersView,i=t.getColumnWidths();if(!(null==i?void 0:i.length)){var o=n.getTableElement();n.setTableElement(null===(e=t.getTableElement())||void 0===e?void 0:e.children(".dx-header")),i=n.getColumnWidths(),n.setTableElement(o)}return i},_setVisibleWidths:function(e,t){var n=this._columnsController;n.beginUpdate(),(0,u.each)(e,(function(e,i){var o=n.getColumnId(i);n.columnOption(o,"visibleWidth",t[e])})),n.endUpdate()},_toggleBestFitModeForView:function(e,t,n){var i=this;if(e&&e.isVisible()){var o=this._rowsView.getTableElements(),r=e.getTableElements();(0,u.each)(o,(function(e,o){var s,l=(0,a.default)(o),u=r.eq(e);u&&u.length&&((s=n?u.children("tbody").appendTo(l):l.children(".".concat(t)).appendTo(u)).toggleClass(t,n),s.toggleClass(i.addWidgetPrefix("best-fit"),n))}))}},_toggleBestFitMode:function(e){var t=this._rowsView.getTableElement(),n=this._rowsView.getTableElements().eq(1);t&&(t.css("tableLayout",e?"auto":"fixed"),t.children("colgroup").css("display",e?"none":""),(0,u.each)(n.find("tr.dx-group-row"),(function(t,n){(0,a.default)(n).css("display",e?"none":"")})),n.toggleClass(this.addWidgetPrefix("table-fixed"),!e),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",e),this._toggleBestFitModeForView(this._footerView,"dx-footer",e),this._needStretch()&&(t.get(0).style.width=e?"auto":""))},_toggleContentMinHeight:function(e){var t=this._rowsView.getScrollable(),n=this._rowsView._findContentElement();!1===(null==t?void 0:t.option("useNative"))&&n.css({minHeight:e?_.default.getContentHeightLimit(r.default):""})},_synchronizeColumns:function(){var e,t,n,i=this,a=this._columnsController,r=a.getVisibleColumns(),l=this.option("columnAutoWidth"),c=this.option("wordWrapEnabled"),f=this._needBestFit(),p=!1,m=!1,v=[];!f&&(0,u.each)(r,(function(e,t){if("auto"===t.width)return f=!0,!1})),(0,u.each)(r,(function(e,t){if(t.minWidth)return p=!0,!1})),this._setVisibleWidths(r,[]);var y=this.component.$element();f&&(t=o.default.getActiveElement(y.get(0)),n=_.default.getSelectionRange(t),this._toggleBestFitMode(!0),e=!0),this._toggleContentMinHeight(c),y&&y.get(0)&&this._maxWidth&&(delete this._maxWidth,y[0].style.maxWidth=""),(0,s.deferUpdate)((function(){var y;(f?(v=i._getBestFitWidths(),(0,u.each)(r,(function(e,t){var n=a.getColumnId(t);a.columnOption(n,"bestFitWidth",v[e],!0)}))):p&&(v=i._getBestFitWidths()),(0,u.each)(r,(function(e){var t=this.width;"auto"!==t&&((0,h.isDefined)(t)?v[e]=(0,h.isNumeric)(t)||function(e){return(0,h.isString)(e)&&e.endsWith("px")}(t)?parseFloat(t):t:l||(v[e]=void 0))})),e)&&(i._toggleBestFitMode(!1),e=!1,t&&t!==o.default.getActiveElement()&&((0,d.getBoundingRect)(t).bottom<0||function(e,t){g.hiddenFocus(e),_.default.setSelectionRange(e,t)}(t,n)));m=i._correctColumnWidths(v,r),l&&((0,u.each)(r,(function(e,t){"groupExpand"===t.type&&(y=v[e])})),(0,u.each)(r,(function(e,t){"groupExpand"===t.type&&y&&(v[e]=y)})),i._needStretch()&&i._processStretch(v,r)),(0,s.deferRender)((function(){(f||m)&&i._setVisibleWidths(r,v),c&&i._toggleContentMinHeight(!1)}))}))},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this._columnsController.getVisibleColumns().some((function(e){return"auto"===e.width&&!e.command}))},_getAverageColumnsWidth:function(e){return w(this,e)/e.filter((function(e){return void 0===e})).length},_correctColumnWidths:function(e,t){var n,i=this,o=!1,a=!1,r=!1,s=i.component.$element(),l=i._hasWidth,u=function(){var s=n,l=t[s],u="adaptiveHidden"===e[s],d=e[s],c=l.minWidth;if(c)if(void 0===d){var f=i._getAverageColumnsWidth(e);d=f}else if(x(d)){(function(e,t,n,i){return w(e,i.map((function(e,i){return i===t?n:e})))})(i,s,c,e)<0&&(d=-1)}var p=i._getRealColumnWidth(s,e.map((function(e,t){return s===t?d:e})));c&&!u&&p=0&&(e[m]="auto",r=!0,!1===l&&!o)){var v=i.option("showBorders")?Math.ceil((0,c.getOuterWidth)(d)-(0,c.getInnerWidth)(d)):0;i._maxWidth=g+p+v,s.css("maxWidth",i._maxWidth)}}}return r},_processStretch:function(e,t){var n=this._rowsView.contentWidth(),i=this._getTotalWidth(e,n),o={length:0};if(e.length){(0,u.each)(t,(function(t){(this.width||"adaptiveHidden"===e[t])&&(o[t]=!0,o.length++)}));var a=n-i,r=Math.floor(a/(e.length-o.length)),s=a-r*(e.length-o.length);if(a>=0)for(var l=0;l0&&(s<1?(e[l]+=s,s=0):(e[l]++,s--)))}},_getRealColumnWidth:function(e,t,n){var i=1,o=t[e];if(!x(o))return parseFloat(o);var a=t.reduce((function(e,t,n){return x(t)?e+parseFloat(t):e}),0),r=t.reduce((function(e,t){return!t||"adaptiveHidden"===t||x(t)?e:e+parseFloat(t)}),0),s=(n=n||this._rowsView.contentWidth())-r,l=a*n/100;return r>0&&l+r>=n&&(i=l>s?s/l:1),parseFloat(o)*n*i/100},_getTotalWidth:function(e,t){for(var n=0,i=0;i=f,g=r&&r.scrollHeight===r.offsetHeight;e.updateSize(o),(0,s.deferRender)((function(){var l=e._hasHeight||!!f||h;i.hasHeight(l),p&&!g&&(0,a.default)(r).css("height",f),t.isLoaded()?(0,s.deferUpdate)((function(){e._updateLastSizes(o),e._setScrollerSpacing(),(0,u.each)(b,(function(t,n){var i=e.getView(n);i&&i.resize()})),n&&n.resize()})):i.setLoading(t.isLoading())}))},_updateLastSizes:function(e){this._lastWidth=(0,c.getWidth)(e),this._lastHeight=(0,c.getHeight)(e),this._devicePixelRatio=(0,f.getWindow)().devicePixelRatio},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"renderAsync":return void(e.handled=!0);default:this.callBase(e)}},init:function(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._footerView=this.getView("footerView"),this._rowsView=this.getView("rowsView")}},S={defaultOptions:function(){return{showBorders:!1,renderAsync:!1}},controllers:{resizing:m.default.ViewController.inherit(C),synchronizeScrolling:m.default.ViewController.inherit({_scrollChangedHandler:function(e,t,n){for(var i=0;i").addClass(this.getWidgetContainerClass());n.addClass("dx-gridbase-container"),n.toggleClass(this.addWidgetPrefix("borders"),!!this.option("showBorders")),this.setAria("role","presentation",e),this.component.setAria("role",this._getTableRoleName(),n),this._rootElement=e||this._rootElement,t&&(this._groupElement=n,(0,f.hasWindow)()&&this.getController("resizing").updateSize(e),n.appendTo(e)),this._renderViews(n)},update:function(){var e=this._rootElement,t=this._groupElement,n=this.getController("resizing");e&&t&&(n.resize(),this._dataController.isLoaded()&&this._resizingController.fireContentReadyAction())}})},VIEW_NAMES:b};t.gridViewModule=S},35095:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.rowsModule=void 0;var i=x(n(68374)),o=x(n(47810)),a=n(20576),r=n(47617),s=n(13306),l=n(95479),u=n(37518),d=n(58664),c=n(68752),h=n(80968),f=n(35922),p=n(58201),g=x(n(55994)),m=n(29007),_=x(n(28109)),v=x(n(41183)),y=x(n(60082)),b=n(57318);function x(e){return e&&e.__esModule?e:{default:e}}function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t"),!e&&this._loadPanel||this._renderLoadPanel(t,t.parent(),this._dataController.isLocalStore()),(e||!this.getScrollable())&&this._dataController.isLoaded()){for(var n=this.getColumns(),i=!0,o=0;o0&&!this._rowHeight},_._getRowsHeight=function(e){return(e=e||this._tableElement).children("tbody").children().not(".dx-virtual-row").not(".".concat("dx-freespace-row")).toArray().reduce((function(e,t){return e+(0,u.getBoundingRect)(t).height}),0)},_._updateRowHeight=function(){var e=this.getTableElement(),t=this._dataController.items().length;if(e&&this._needUpdateRowHeight(t)){var n=this._getRowsHeight(e);this._rowHeight=n/t}},_._findContentElement=function(e){var t=this.element(),n=this.getScrollable();if(t)return n&&(t=(0,i.default)(n.content())),t.children().first()},_._getRowElements=function(t){var n=e.prototype._getRowElements.call(this,t);return n&&n.not(".".concat("dx-freespace-row"))},_._getFreeSpaceRowElements=function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children(".".concat("dx-freespace-row"))},_._getNoDataText=function(){return this.option("noDataText")},_._rowClick=function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",(0,s.extend)({evaluate:function(e){return(0,r.compileGetter)(e)(t.data)}},e,t))},_._rowDblClick=function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",(0,s.extend)({},e,t))},_._getColumnsCountBeforeGroups=function(e){for(var t=0;t1&&(h.colspan=l.colspan),this._needRenderCell(l.columnIndex+1,t.columnIndices)&&this._renderCell(e,{value:o.values[o.groupIndex],row:o,rowIndex:r,column:h,columnIndex:l.columnIndex+1,columnIndices:t.columnIndices,change:t.change})},_._renderRows=function(t,n){var i=this.option("scrolling.mode");e.prototype._renderRows.call(this,t,(0,s.extend)({scrollingMode:i},n)),this._checkRowKeys(n.change),this._renderFreeSpaceRow(t,n.change),this._hasHeight||this.updateFreeSpaceRowHeight(t)},_._renderDataRowByTemplate=function(e,t,n){var i=t.row,o=(0,s.extend)({columns:t.columns},i),a=this._createRow(i,"tbody");a.appendTo(e),this.renderTemplate(a,n,o,!0,t.change),this._rowPrepared(a,o,t.row)},_._renderRow=function(t,n){var i=n.row,o=this.option().rowTemplate,a=this.option("dataRowTemplate");"data"===i.rowType&&a?this._renderDataRowByTemplate(t,n,a):"data"!==i.rowType&&"group"!==i.rowType||(0,f.isDefined)(i.groupIndex)||!o?e.prototype._renderRow.call(this,t,n):this.renderTemplate(t,o,(0,s.extend)({columns:n.columns},i),!0)},_._renderTable=function(t){var n=this,i=e.prototype._renderTable.call(this,t);return(0,f.isDefined)(n.getTableElement())?n._renderScrollable():(n.setTableElement(i),n._renderScrollable(!0),n.resizeCompleted.add((function e(){var t=n.getScrollable();t&&n.element().closest((0,p.getWindow)().document).length&&(n.resizeCompleted.remove(e),t._visibilityChanged(!0))}))),i},_._createTable=function(){var t=e.prototype._createTable.apply(this,arguments);return(this.option().rowTemplate||this.option().dataRowTemplate)&&t.appendTo(this.component.$element()),t},_._renderCore=function(t){var n=this.element();n.addClass(this.addWidgetPrefix("rowsview")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")),n.toggleClass("dx-empty",this._dataController.isEmpty()),this.setAria("role","presentation",n);var i=this._renderTable({change:t}),o=this._updateContent(i,t);return e.prototype._renderCore.call(this,t),this._lastColumnWidths=null,o},_._getRows=function(e){return e&&e.items||this._dataController.items()},_._getCellOptions=function(t){var n=t.column,i=t.row,o=i.data,a=i&&i.summaryCells,r=t.value,s=y.default.getDisplayValue(n,r,o,i.rowType),l=e.prototype._getCellOptions.call(this,t);if(l.value=r,l.oldValue=t.oldValue,l.displayValue=s,l.row=i,l.key=i.key,l.data=o,l.rowType=i.rowType,l.values=i.values,l.text=n.command?"":y.default.formatValue(s,n),l.rowIndex=i.rowIndex,l.summaryItems=a&&a[t.columnIndex],l.resized=n.resizedCallbacks,(0,f.isDefined)(n.groupIndex)&&!n.command){var u=this.option("grouping.texts"),d=this.option("scrolling.mode");"virtual"!==d&&"infinite"!==d&&(l.groupContinuesMessage=o&&o.isContinuationOnNextPage&&u&&u.groupContinuesMessage,l.groupContinuedMessage=o&&o.isContinuation&&u&&u.groupContinuedMessage)}return l},_._setRowsOpacityCore=function(e,t,n,o){var a=this._columnsController,r=a.getColumns(),s=r&&r[n],u=s&&s.isBand&&s.index;(0,l.each)(e,(function(r,s){if(!(0,i.default)(s).hasClass("dx-group-row"))for(var l=0;l=0){var t=this._getRowElements();if(t.length>e)return(0,i.default)(t[e])}},_.updateFreeSpaceRowHeight=function(e){var t=this,n=this._dataController,i=n.items(!0).length,o=this._findContentElement(),r=this._getFreeSpaceRowElements(e);if(r&&o&&n.totalCount()>=0){var s=!1;if(i>0)if(this._hasHeight)r.hide(),(0,a.deferUpdate)((function(){var n=t.getScrollbarWidth(!0),i=(0,d.getHeight)(t.element())-n,l=i-(0,d.getOuterHeight)(o)>0,u=t._getRowsHeight(o.children().first()),c=e||t.getTableElements(),h=i-u-Math.ceil(parseFloat(c.css("borderTopWidth")))-t._getHeightCorrection();l&&(0,a.deferRender)((function(){r.css("height",h),s=!0,r.show()})),(0,a.deferRender)((function(){return t._updateLastRowBorder(s)}))}));else{var l=n.pageSize()-i,u=this.option("scrolling.mode");l>0&&n.pageCount()>1&&"virtual"!==u&&"infinite"!==u&&((0,h.setHeight)(r,l*this._rowHeight),s=!0),!s&&e?(0,h.setHeight)(r,0):r.toggle(s),this._updateLastRowBorder(s)}else r.css("height",0),r.show(),this._updateLastRowBorder(!0)}},_._getHeightCorrection=function(){var e=o.default.webkit&&this._getDevicePixelRatio()>=2,t=o.default.chrome&&o.default.version>=91,n=o.default.mozilla&&o.default.version>=70&&!this.option("showRowLines");return e||n||t?1:0},_._columnOptionChanged=function(t){var n=t.optionNames;t.changeTypes.grouping||(n.width||n.visibleWidth)&&(e.prototype._columnOptionChanged.call(this,t),this._fireColumnResizedCallbacks())},_.getScrollable=function(){return this._scrollable},_.init=function(){var t=this,n=this,i=n.getController("data");e.prototype.init.call(this),n._editorFactoryController=n.getController("editorFactory"),n._rowHeight=0,n._scrollTop=0,n._scrollLeft=-1,n._scrollRight=0,n._hasHeight=!1,n._contentChanges=[],i.loadingChanged.add((function(e,t){n.setLoading(e,t)})),i.dataSourceChanged.add((function(){t._scrollLeft>=0&&!t._dataController.isLoading()&&t._handleScroll({component:t.getScrollable(),forceUpdateScrollPosition:!0,scrollOffset:{top:t._scrollTop,left:t._scrollLeft}})}))},_._handleDataChanged=function(e){switch(e.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,e);break;default:this._update(e)}},_.publicMethods=function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},_.contentWidth=function(){return(0,d.getWidth)(this.element())-this.getScrollbarWidth()},_.getScrollbarWidth=function(e){var t,n=this._scrollableContainer&&this._scrollableContainer.get(0),o=0;return n&&(e?(o=n.clientHeight?n.offsetHeight-n.clientHeight:0,o+=(t=this.getScrollable())?Math.ceil(parseFloat((0,i.default)(t.content()).css("paddingBottom"))):0):o=n.clientWidth?n.offsetWidth-n.clientWidth:0),o>0?o:0},_._fireColumnResizedCallbacks=function(){for(var e=this._lastColumnWidths||[],t=[],n=this.getColumns(),i=0;i=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_._resizeCore=function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),(0,a.deferRender)((function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),(0,a.deferUpdate)((function(){e._updateScrollable()}))}))},_.scrollTo=function(e){var t=this.element(),n=t&&v.default.getInstance(t);n&&n.scrollTo(e)},_.height=function(e){var t=this,n=this.element();if(0===arguments.length)return n?(0,d.getOuterHeight)(n,!0):0;(0,f.isDefined)(e)&&n&&(t.hasHeight("auto"!==e),(0,h.setHeight)(n,e))},_.hasHeight=function(e){if(0===arguments.length)return!!this._hasHeight;this._hasHeight=e},_.setLoading=function(e,t){var n=this._loadPanel,i=this._dataController,o=this.option("loadPanel")||{},a=i.isLoaded()?o.animation:null,r=this.element();if((0,p.hasWindow)()&&(!n&&void 0!==t&&i.isLocalStore()&&"auto"===o.enabled&&r&&(this._renderLoadPanel(r,r.parent()),n=this._loadPanel),n)){var s={message:t||o.text,animation:a,visible:e};e&&(s.position=y.default.calculateLoadPanelPosition(r)),clearTimeout(this._hideLoadingTimeoutID),n.option("visible")&&!e?this._hideLoadingTimeoutID=setTimeout((function(){n.option(s)}),200):n.option(s)}},_.setRowsOpacity=function(e,t){var n=this._getRowElements().not(".".concat("dx-group-row"))||[];this._setRowsOpacityCore(n,this.getColumns(),e,t)},_._getCellElementsCore=function(t){var n=e.prototype._getCellElementsCore.apply(this,arguments);if(n){var i=n.filter(".".concat("dx-group-cell")).index();if(i>=0&&n.length>i+1)return n.slice(0,i+1)}return n},_._getBoundaryVisibleItemIndex=function(e,t){var n=0,o=0,a=0,r=this._scrollTop,s=this._findContentElement(),l=s&&s.offset().top,u=this.getController("data").items(),c=this.getTableElement();if(u.length&&c){var h=this._getRowElements(c).filter(":visible");if(!e)r+=(0,d.getOuterHeight)(this._hasHeight?this.element():(0,p.getWindow)());for(n=0;nr)){n&&(t||2*r=e)return Math.floor(a/this.getColumnPageSize());o+=n[a]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||(0,o.getOuterWidth)(this.component.$element())},getEndPageIndex:function(e){var t=this.getVisibleColumns(void 0,!0),n=i(t),o=0;e+=this.getTotalWidth();for(var a=0;a=e)return Math.ceil(a/this.getColumnPageSize());o+=n[a]}return Math.ceil(n.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,virtualColumnsScrolling:!0,length:2}}),this._renderTime=new Date-e},getScrollingTimeout:function(){var e=this.option("scrolling.columnRenderingThreshold"),t=this.option("scrolling.renderAsync"),n=0;return(!(0,a.isDefined)(t)&&this._renderTime>e||t)&&(n=this.option("scrolling.timeout")),n},setScrollPosition:function(e){var t=this,n=this.getScrollingTimeout();n>0?(clearTimeout(this._changedTimeout),this._changedTimeout=setTimeout((function(){t._setScrollPositionCore(e)}),n)):this._setScrollPositionCore(e)},isVirtualMode:function(){return(0,r.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){if(this.isVirtualMode()){var t=this.getBeginPageIndex(e),n=this.getEndPageIndex(e),i=et:this._endPageIndex1&&"number"==typeof e){for(var S=[],k=0;k<=d;k++)S.push(this.callBase(k));_=(0,s.createColumnsInfo)(S,0,_.length)[e]||[],x=(0,s.createColumnsInfo)(S,u.length-x.length,u.length)[e]||[],u=(0,s.createColumnsInfo)(S,h,f)[e]||[]}else u=u.slice(h,f);return y&&(u.unshift({command:"virtual",width:y}),u=_.concat(u)),C&&(u.push({command:"virtual",width:C}),u=u.concat(x)),this._virtualVisibleColumns[l]=u,u},getColumnIndexOffset:function(){var e=0;if(this._beginPageIndex>0){var t=this.getFixedColumns().map((function(e){return e.command})).indexOf("transparent"),n=t>=0?t:0;e=this._beginPageIndex*this.getColumnPageSize()-n-1}return e>0?e:0},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}})},views:{columnHeadersView:{_renderCore:function(){var e=this.callBase.apply(this,arguments);return this._columnsController.isVirtualMode()&&this._updateScrollLeftPosition(),e}},rowsView:{_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=(0,o.getWidth)(n.$content())-(0,o.getWidth)(n.$element())-i),t._columnsController.setScrollPosition(i)},_restoreScrollTop:function(){var e=this.getScrollable(),t=null==e?void 0:e.scrollTop();this._scrollTop>0&&t!==this._scrollTop&&e.scrollTo({y:this._scrollTop})},_renderCore:function(e){var t=this;if(null==e?void 0:e.virtualColumnsScrolling){var n=function e(){t.resizeCompleted.remove(e),t._restoreScrollTop()};this.resizeCompleted.add(n)}return this.callBase.apply(this,arguments)}}}}};t.virtualColumnsModule=l},44980:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createColumnsInfo=function(e,t,n){var a=[];o(e,(function(e,o,r){var s,l=e,u=l.colspan||1,d=o+u-1>=t&&on&&(s=n-o),s!==u&&(l=(0,i.extend)({},l,{colspan:s})),a[r].push(l);else if(o>n)return!1}));for(var r=0;r=a)break}r[n]=s}}},20488:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualDataLoader=void 0;var i=n(62754),o=n(35922),a=function(e){return e.option("scrolling.loadTwoPagesOnStart")||e._controller.isVirtual()||e._controller.getViewportItemIndex()>0},r=function(e){return e._cache.length?e._cache[0].pageIndex:-1},s=function(e){return e._cache.length?e._cache[e._cache.length-1].pageIndex:-1},l=function(e,t,n){e._isChangedFiring=!0,t(n),e._isChangedFiring=!1},u=function(e,t,n){if(e._isDelayChanged)return e._isDelayChanged=!1,l(e,t,n),!0},d=function(e,t){var n=e.option("scrolling.preloadEnabled"),i=function(e){var t=e._dataOptions.pageSize();if(e.option("scrolling.preventPreload"))return 0;var n=e._controller.viewportSize();if(e._controller.isVirtualMode()&&e.option("scrolling.removeInvisiblePages")){n=0;for(var i=e._controller.viewportSize()*e._controller.viewportItemSize(),o=e._controller.getContentOffset(),a=e._controller.getViewportPosition(),r=e._controller.virtualItemsCount(),s=e._dataOptions.totalItemsCount(),l=r.begin;l=a+i);l++){(o+=e._controller.getItemSizes()[l]||e._controller.viewportItemSize())>=a&&n++}}return t&&n>0?Math.ceil(n/t):1}(e),o=e._controller.isAppendMode();return i&&(t?i=n?1:0:(n&&i++,!o&&a(e)||i--)),i},c=function(e,t,n,i,a){var r=e._dataOptions,s=r.items().slice(),u=(0,o.isObject)(n)?n:void 0,d="prepend"===n,c=r.viewportItems();n&&(0,o.isString)(n)&&!e._isDelayChanged&&(u={changeType:n,items:s},a&&(u.removeCount=a.itemsCount,u.removeCount&&r.correctCount&&(u.removeCount=r.correctCount(c,u.removeCount,d))));var h=a?a.itemsLength:0;h&&r.correctCount&&(h=r.correctCount(c,h,d)),"append"===n?(c.push.apply(c,s),a&&c.splice(0,h)):d?(c.unshift.apply(c,s),a&&c.splice(-h)):e._dataOptions.viewportItems(s),r.updateLoading(),e._lastPageIndex=e.pageIndex(),e._isDelayChanged=i,i||l(e,t,u)},h=function(){function e(e,t){this._dataOptions=t,this._controller=e,this._pageIndex=this._lastPageIndex=t.pageIndex(),this._cache=[],this._loadingPageIndexes={}}var t=e.prototype;return t.option=function(){return this._controller.option.apply(this._controller,arguments)},t.viewportItemIndexChanged=function(e){var t,n=this._dataOptions.pageSize(),i=this._dataOptions.pageCount(),o=this._controller.isVirtualMode(),a=this._controller.isAppendMode(),r=this._dataOptions.totalItemsCount();if(n&&(o||a)&&r>=0){var s=this._controller.viewportSize();if(s&&e+s>=r&&!this._controller.isVirtual())if(this._dataOptions.hasKnownLastPage()){var l=r%n;(t=i-1)>0&&l>0&&l0?e:this._lastPageIndex},t.pageSize=function(){return this._dataOptions.pageSize()},t.load=function(){var e,t=this,n=this._dataOptions,o=this._controller.isVirtualMode(),a=this._controller.isAppendMode();if(!1!==this.option("scrolling.legacyMode")&&(o||a)){var l=function(e){var t=-1,n=r(e),i=e._dataOptions;if(n<0)t=e._pageIndex;else if(e._cache[e._pageIndex-n]){if(n>=0&&e._controller.viewportSize()>=0){if(n>0)(s(e)+1===i.pageCount()&&e._cache.length=0){var u=function(e,t){var n=e._dataOptions;if(t===e.pageIndex()||!n.isLoading()&&t0?this._controller._setViewportPositionCore(n):this.load()}},t.handleDataChanged=function(e,t){var n,i,o=this,h=this._dataOptions,f=this._cache.length,p=this._controller.isVirtualMode(),g=this._controller.isAppendMode();if(t&&t.changes)l(this,e,t);else if(!1!==this.option("scrolling.legacyMode")&&(p||g)){var m=r(this);if(m>=0&&(p&&m+this._cache.length!==h.pageIndex()&&m-1!==h.pageIndex()&&(f=0,this._cache=[]),g))if(0===h.pageIndex())this._cache=[];else if(h.pageIndex()Math.max(d(this)+(this.option("scrolling.preloadEnabled")?1:0),2):u(this,e,{isDelayed:!0}),m===h.pageIndex()+1?(i&&(_=this._cache.pop()),n="prepend",this._cache.unshift(v)):(i&&(_=this._cache.shift()),n="append",this._cache.push(v));var y=p&&0===f&&a(this);c(this,e,this._cache.length>1?n:void 0,y,_),this._delayDeferred=this.load().done((function(){u(o,e)&&o.load()}))}else c(this,e,t)},t.getDelayDeferred=function(){return this._delayDeferred},t.itemsCount=function(e){var t=0,n=this._controller.isVirtualMode();return!e&&n?this._cache.forEach((function(e){t+=e.itemsCount})):t=this._dataOptions.itemsCount(),t},t.virtualItemsCount=function(){var e=r(this);e<0&&(e=this._dataOptions.pageIndex());var t=e*this._dataOptions.pageSize(),n=this._cache.length*this._dataOptions.pageSize();return{begin:t,end:Math.max(0,this._dataOptions.totalItemsCount()-n-t)}},t.reset=function(){this._loadingPageIndexes={},this._cache=[]},e}();t.VirtualDataLoader=h},92018:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.virtualScrollingModule=void 0;var i=g(n(68374)),o=g(n(47810)),a=n(62754),r=n(3532),s=n(95479),l=n(37518),u=n(58664),d=n(35922),c=n(58201),h=g(n(2492)),f=g(n(60082)),p=n(86770);function g(e){return e&&e.__esModule?e:{default:e}}var m,_,v,y,b="scrolling.legacyMode",x=function(e){return"virtual"===e.option("scrolling.mode")},w=function(e){return"infinite"===e.option("scrolling.mode")},C=function(e){return x(e)||w(e)},S=function(e,t,n,i){for(var o=0;o=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()=this.option("scrolling.renderingThreshold")),!(x(this)||w(this)&&n)||t.reload||!t.skip&&!n||i||(e.delay=void 0),this.callBase.apply(this,arguments)},items:function(){return this._items},_dataSourceTotalCount:function(e){return!1===this.option(b)&&x(this)&&!e?this._totalCount:this.callBase()},itemsCount:function(e){return e||!1===this.option(b)?this.callBase():this._virtualScrollController.itemsCount()},load:function(e){return!1===this.option(b)||e?this.callBase(e):this._virtualScrollController.load()},isLoading:function(){return!1===this.option(b)?this._dataSource.isLoading():this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},resetPagesCache:function(e){e||this._virtualScrollController.reset(!0),this.callBase.apply(this,arguments)},_changeRowExpandCore:function(){var e=this.callBase.apply(this,arguments);return!1===this.option(b)||(this.resetPagesCache(),m(this)),e},reload:function(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(!1!==this.option(b)&&e){var t=new a.Deferred;return this.callBase.apply(this,arguments).done((function(n){var i=e.getDelayDeferred();i?i.done(t.resolve).fail(t.reject):t.resolve(n)})).fail(t.reject),t}return this.callBase.apply(this,arguments)},refresh:function(e,t){if(!1!==this.option(b)){var n=e.storeLoadOptions,i=this._dataSource;t.reload?(this._virtualScrollController.reset(),i.items().length=0,this._isLoaded=!1,m(this),this._isLoaded=!0,w(this)?(this.pageIndex(0),i.pageIndex(0),n.pageIndex=0,e.pageIndex=0,n.skip=0):(i.pageIndex(this.pageIndex()),i.paginate()&&(e.pageIndex=this.pageIndex(),n.skip=this.pageIndex()*this.pageSize()))):w(this)&&n.skip&&this._totalCountCorrection<0&&(n.skip+=this._totalCountCorrection)}return this.callBase.apply(this,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)},loadPageCount:function(e){if(!(0,d.isDefined)(e))return this._loadPageCount;this._loadPageCount=e},_handleDataLoading:function(e){var t=this.loadPageCount(),n=this.pageSize(),i=!1===this.option(b),o=e.storeLoadOptions,a=(0,d.isDefined)(o.take);e.loadPageCount=t,!e.isCustomLoading&&i&&a&&t>1&&n>0&&(o.take=t*n),this.callBase.apply(this,arguments)},_loadPageSize:function(){return this.callBase.apply(this,arguments)*this.loadPageCount()}},["beginPageIndex","endPageIndex","pageIndex"].forEach((function(e){_[e]=function(){if(!1===this.option(b)){var t=this._dataSource;return t.pageIndex.apply(t,arguments)}var n=this._virtualScrollController;return n[e].apply(n,arguments)}})),["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentItemSizes","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","loadIfNeed"].forEach((function(e){_[e]=function(){var t=this._virtualScrollController;return t[e].apply(t,arguments)}})),_),T=(v=function(e,t){var n=e.toArray().map((function(e){return(0,i.default)(e).parent(".".concat(t)).get(0)})).filter((function(e){return e}));n.length&&(e=(0,i.default)(n));for(var o="dx-freespace-row"===t?e.length-1:e.length,a=0;a0&&this.resizeCompleted.add((function n(){e.resizeCompleted.remove(n),e.scrollToPage(t.pageIndex())}))},scrollToPage:function(e){var t,n=this._dataController,i=n?n.pageSize():0;if(x(this)||w(this)){var o=n.getItemSize(),a=n.getItemSizes(),r=e*i;for(var s in t=r*o,a)parseInt(s)0&&!1!==this.option(b)?i._renderTime=(new Date-t)*a/o:i._renderTime=new Date-t}return n},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not(".".concat("dx-virtual-row"))},_removeRowsElements:function(e,t,n){var o=this._getRowElements(e).toArray();o="append"===n?o.slice(0,t):o.slice(-t);var a=this.getController("errorHandling");o.map((function(e){var t=(0,i.default)(e);a&&a.removeErrorRow(t.next()),t.remove()}))},_updateContent:function(e,t){var n,i=this,o=this._findContentElement(),r=t&&t.changeType,s=(0,a.Deferred)(),l=o.children().first();return"append"===r||"prepend"===r?this.waitAsyncTemplates().done((function(){var o=i._getBodies(e);1===o.length?i._getBodies(l)["append"===r?"append":"prepend"](o.children()):o["append"===r?"appendTo":"prependTo"](l),e.remove(),n=i._getFreeSpaceRowElements(l),v(n,"dx-freespace-row"),t.removeCount&&i._removeRowsElements(l,t.removeCount,r),i._restoreErrorRow(l),s.resolve()})).fail(s.reject):this.callBase.apply(this,arguments).done((function(){"update"===r&&i._restoreErrorRow(l),s.resolve()})).fail(s.reject),s.promise().done((function(){i._updateBottomLoading()}))},_addVirtualRow:function(e,t,n,i){if(i){var o=this._createEmptyRow("dx-virtual-row",t,i);o=this._wrapRowIfNeed(e,o),this._appendEmptyRow(e,o,n)}},_updateContentItemSizes:function(){var e=this._getRowHeights(),t=this._correctRowHeights(e);this._dataController.setContentItemSizes(t)},_updateViewportSize:function(e,t){(0,d.isDefined)(e)||(e=this._hasHeight?(0,u.getOuterHeight)(this.element()):(0,u.getOuterHeight)((0,c.getWindow)())),this._dataController.viewportHeight(e,t)},_getRowHeights:function(){var e,t,n=null===(t=null===(e=this.getController("editing"))||void 0===e?void 0:e.isPopupEditMode)||void 0===t?void 0:t.call(e),o=this._getRowElements(this._tableElement).toArray();return n&&(o=o.filter((function(e){return!(0,i.default)(e).hasClass("dx-row-inserted")}))),o.map((function(e){return(0,l.getBoundingRect)(e).height}))},_correctRowHeights:function(e){for(var t=this._dataController,n=t._dataSource,i=[],o=t.getVisibleRows(),a=0,r=!0,s=-1,l=0;l=0&&s!==u.loadIndex&&(i.push(a),a=0),s=u.loadIndex):k(u,n)&&(r?r=!1:(i.push(a),a=0)),a+=e[l])}return a>0&&i.push(a),i},_updateContentPosition:function(e){var t=this,n=this._dataController,o=this._rowHeight||20;if(n.viewportItemSize(o),x(this)||f.default.isVirtualRowRendering(this)){e||this._updateContentItemSizes();var a=n.getContentOffset("begin"),r=n.getContentOffset("end"),s=this.getTableElements(),l=s.children("tbody").children(".".concat("dx-virtual-row"));v(l,"dx-virtual-row"),s.each((function(e,n){var o=e>0,s=t._isFixedTableRendering;t._isFixedTableRendering=o,t._addVirtualRow((0,i.default)(n),o,"top",a),t._addVirtualRow((0,i.default)(n),o,"bottom",r),t._isFixedTableRendering=s}))}},_isTableLinesDisplaysCorrect:function(e){return e.find(".".concat("dx-column-lines")).length>0===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var n=e.length===t.length;return n&&(0,s.each)(e,(function(e,i){if(i.style.width!==t[e].style.width)return n=!1})),n},_getCellClasses:function(e){var t=[],n=e.cssClass,i="expand"===e.command;return n&&t.push(n),i&&t.push(this.addWidgetPrefix("group-space")),t},_findBottomLoadPanel:function(e){var t=e||this.element(),n=t&&t.find(".".concat(this.addWidgetPrefix("bottom-load-panel")));if(n&&n.length)return n},_updateBottomLoading:function(){var e=x(this),t=w(this),n=!this._dataController.hasKnownLastPage()&&this._dataController.isLoaded()&&(e||t),o=this._findContentElement(),a=this._findBottomLoadPanel(o);n?a||(0,i.default)("