(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8951],{90322:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(337033),s=a(r(188761)),c=a(r(827201));t.default=function(e){var t=e.treeDeep,r=e.treeArrowElement,o=e.childComponents,a=e.column.style,d=e.isEditableCell,f=l.getElementCustomization({className:u.default.css.cell+" "+(null!=t?u.default.css.treeCell:""),style:a},e,o.cell),p=f.elementAttributes,g=f.content;return i.createElement("td",n({},p),t?Array(t).fill(void 0).map((function(e,t){return i.createElement("div",{key:t,className:u.default.css.treeCellEmptySpace})})):null,g||i.createElement(i.Fragment,null,r,d?i.createElement(s.default,n({},e)):i.createElement(c.default,n({},e))))}},188761:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(788872),s=r(271398),c=r(337033),d=a(r(404106));t.default=function(e){var t=e.childComponents,r=e.dispatch,o=e.editingMode,a=c.getElementCustomization({className:""+u.default.css.cellEditor},e,t.cellEditor),f=a.elementAttributes,p=a.content;return i.createElement("div",n({},f),p||(o===l.EditingMode.Cell?i.createElement(d.default,n({},e,{dispatch:s.getCellEditorDispatchHandler(r),autoFocus:!0})):i.createElement(d.default,n({},e))))}},743545:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=r(427181),u=o(r(6461)),l=r(79423),s=r(337033);t.default=function(e){var t,r=e.column,o=e.dispatch,c=e.value,d=e.rowKeyValue,f=e.autoFocus,p=e.childComponents,g=s.getElementCustomization({className:""+u.default.css.checkbox,autoFocus:f,type:"checkbox",checked:c||!1,onChange:function(e){return o(i.updateCellValue(d,r.key,e.currentTarget.checked))},
onBlur:function(){return o(i.closeEditor(d,r.key))}},e,null===(t=p)||void 0===t?void 0:t.cellEditorInput),m=g.elementAttributes;return g.content||a.default.createElement("input",n({ref:function(e){return e&&(e.indeterminate=l.isEmpty(c))}},m))}},74883:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=r(788872),u=o(r(743545)),l=o(r(913514)),s=o(r(989234)),c=o(r(671348));t.default=function(e){switch(e.column.dataType){case i.DataType.Boolean:return a.default.createElement(u.default,n({},e));case i.DataType.Date:return a.default.createElement(l.default,n({},e));case i.DataType.Number:return a.default.createElement(s.default,n({},e));default:return a.default.createElement(c.default,n({},e))}}},913514:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=r(427181),u=o(r(6461)),l=r(337033),s=r(299033);t.default=function(e){var t,r=e.column,o=e.dispatch,c=e.value,d=e.rowKeyValue,f=e.autoFocus,p=e.childComponents,g=c&&s.getDateInputValue(c),m=l.getElementCustomization({className:""+u.default.css.dateInput,autoFocus:f,type:"date",value:g||"",onChange:function(e){var t=e.currentTarget.value,n=t?new Date(t):null;o(i.updateCellValue(d,r.key,n))},onBlur:function(){return o(i.closeEditor(d,r.key))}},e,null===(t=p)||void 0===t?void 0:t.cellEditorInput),h=m.elementAttributes;return m.content||a.default.createElement("input",n({},h))}},989234:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=r(427181),u=o(r(6461)),l=r(337033);t.default=function(e){var t,r=e.column,o=e.dispatch,s=e.value,c=e.rowKeyValue,d=e.autoFocus,f=e.childComponents,p=l.getElementCustomization({className:""+u.default.css.numberInput,autoFocus:d,type:"number",value:null==s?"":s,onChange:function(e){var t=""!==e.currentTarget.value?Number(e.currentTarget.value):null;o(i.updateCellValue(c,r.key,t))},onBlur:function(){o(i.closeEditor(c,r.key))}},e,null===(t=f)||void 0===t?void 0:t.cellEditorInput),g=p.elementAttributes;return p.content||a.default.createElement("input",n({},g))}},404106:function(e,t,r){
"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=r(427181),l=r(788872),s=r(563280),c=r(336169),d=r(212490),f=a(r(577017));t.default=function(e){var t=e.column,r=e.dispatch,o=e.editingMode,a=e.rowData,p=e.rowKeyValue,g=e.validation,m=e.value,h=e.validationMessage,y=i.useState(a),v=y[0],w=y[1],_=i.useState(m),b=_[0],E=_[1],C=o===l.EditingMode.Cell;h=C||h?d.getValidationValue(b,v,t,g)||"":h;var O=i.useCallback((function(){r(u.closeEditor(p,t.key))}),[r,t,p]),R=i.useCallback((function(){C&&h||(b!==m&&r(u.updateEditorValue(p,t.key,b)),C&&O())}),[h,r,O,t,b,p,m,C]);i.useEffect((function(){return c.addEscEnterKeyEffect(O,R)}),[O,R]);var S=n(n({},e),{dispatch:function(e){e.type===l.ActionType.CloseEditor?R():e.type===l.ActionType.UpdateCellValue?function(e){var r=s.replaceValue(a,t,e.value);w(r),E(e.value)}(e):r(e)},value:b,editorValue:b,rowData:v,validationMessage:h||void 0});return i.default.createElement(f.default,n({},S))}},671348:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=r(427181),u=o(r(6461)),l=r(337033);t.default=function(e){var t,r=e.column,o=e.dispatch,s=e.value,c=e.rowKeyValue,d=e.autoFocus,f=e.childComponents,p=l.getElementCustomization({className:""+u.default.css.textInput,autoFocus:d,type:"text",value:s||"",onChange:function(e){o(i.updateCellValue(c,r.key,e.currentTarget.value))},onBlur:function(){o(i.closeEditor(c,r.key))}},e,null===(t=f)||void 0===t?void 0:t.cellEditorInput),g=p.elementAttributes;return p.content||a.default.createElement("input",n({},g))}},577017:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=o(r(6461)),u=o(r(74883)),l=o(r(792494));t.default=function(e){var t=e.validationMessage;return a.default.createElement("div",{className:""+(t?i.default.css.kaCellEditorValidationError:"")},a.default.createElement(u.default,n({},e)),t&&a.default.createElement(l.default,{message:t}))}
},792494:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(50959));t.default=function(e){var t=e.message;return o.default.createElement("div",{className:"ka-validation-message-container"},o.default.createElement("div",{className:"ka-validation-message"},t))}},827201:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=r(427181),l=a(r(6461)),s=r(788872),c=r(79423),d=r(337033);t.default=function(e){var t=e.childComponents,r=e.column,o=e.format,a=e.dispatch,f=e.editingMode,p=e.rowKeyValue,g=e.value,m=o&&o({column:r,value:g});m=m||!c.isEmpty(g)&&g.toString();var h=d.getElementCustomization({className:l.default.css.cellText,onClick:function(){f===s.EditingMode.Cell&&a(u.openEditor(p,r.key))}},e,t.cellText),y=h.elementAttributes,v=h.content;return i.createElement("div",n({},y),v||m||i.createElement(i.Fragment,null," "))}},849396:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=o(r(494327)),u=o(r(143756));t.default=function(e){var t=e.isDetailsRowShown;return a.default.createElement(a.default.Fragment,null,a.default.createElement(i.default,n({},e)),t&&a.default.createElement(u.default,n({},e)))}},494327:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=r(427181),u=o(r(6461)),l=r(337033),s=r(828519),c=o(r(403309)),d=o(r(383960));t.default=function(e){var t=e.dispatch,r=e.groupColumnsCount,o=e.isSelectedRow,f=e.rowKeyValue,p=e.rowReordering,g=e.trRef,m=e.childComponents.dataRow;if(p){var h=s.getDraggableProps(f,t,i.reorderRows,u.default.css.draggedRow,u.default.css.dragOverRow);m=l.addElementAttributes(h,e,m)}var y=l.getElementCustomization({className:u.default.css.row+" "+(o?u.default.css.rowSelected:"")},e,m),v=y.elementAttributes,w=y.content
;return a.default.createElement("tr",n({ref:g},v),w?a.default.createElement(a.default.Fragment,null,w):a.default.createElement(a.default.Fragment,null,a.default.createElement(d.default,{count:r}),a.default.createElement(c.default,n({},e))))}},403309:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(50959)),a=r(427181),i=n(r(6461)),u=r(271398),l=r(294349),s=r(563280),c=n(r(90322));t.default=function(e){var t=e.childComponents,r=e.columns,n=e.treeDeep,d=e.dispatch,f=e.editingMode,p=e.format,g=e.isDetailsRowShown,m=e.isSelectedRow,h=e.isTreeExpanded,y=e.isTreeGroup,v=e.rowData,w=e.rowEditableCells,_=e.rowKeyField,b=e.rowKeyValue,E=e.selectedRows,C=e.validation,O=y?[o.default.createElement("div",{onClick:function(){return d(a.updateTreeGroupsExpanded(b))},className:h?i.default.css.iconTreeArrowExpanded:i.default.css.iconTreeArrowCollapsed})]:void 0;return o.default.createElement(o.default.Fragment,null,r.map((function(e,r){var a,i=u.getEditableCell(e,w),h=i&&i.hasOwnProperty("editorValue"),y=i&&i.editorValue,R=h?y:s.getValueByColumn(v,e),S=null!=n&&0===r?n:void 0;return o.default.createElement(c.default,{treeArrowElement:null===(a=O)||void 0===a?void 0:a.pop(),childComponents:t,treeDeep:S,column:e,dispatch:d,editingMode:f,editorValue:y,field:l.getField(e),format:p,hasEditorValue:i&&i.hasOwnProperty("editorValue"),isDetailsRowShown:g,isEditableCell:!!i,isSelectedRow:m,key:e.key,rowData:v,rowKeyField:_,rowKeyValue:b,selectedRows:E,validation:C,validationMessage:i&&i.validationMessage,value:R})})))}},143756:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=o(r(6461)),u=r(337033),l=o(r(383960));t.default=function(e){var t=e.groupColumnsCount,r=e.childComponents,o=e.columns,s=u.getElementCustomization({className:""+i.default.css.detailsRow},e,r.detailsRow),c=s.elementAttributes,d=s.content;return a.default.createElement("tr",n({},c),a.default.createElement(l.default,{count:t}),d&&a.default.createElement("td",{className:i.default.css.cell,colSpan:o.length},d))}},383960:function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461));t.default=function(e){
var t=e.count,r=e.isTh;return i.createElement(i.Fragment,null,n(Array(t)).map((function(e,t){return r?i.createElement("th",{key:t,className:"ka-empty-cell "+u.default.css.theadBackground}):i.createElement("td",{key:t,className:"ka-empty-cell"})})))}},284031:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(337033),s=a(r(196620));t.default=function(e){var t=e.childComponents,r=e.column.style,o=l.getElementCustomization({className:u.default.css.theadCell+" ka-filter-row-cell "+u.default.css.theadBackground,style:r},e,t.filterRowCell),a=o.elementAttributes,c=o.content;return i.createElement("td",n({},a),c||i.createElement(s.default,n({},e)))}},266241:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(50959)),a=r(262512),i=n(r(383960)),u=n(r(284031));t.default=function(e){var t=e.childComponents,r=e.columns,n=e.dispatch,l=e.groupColumnsCount,s=o.default.useRef(null);return o.default.useEffect((function(){a.updateChildrenTop(s)}),[s]),o.default.createElement("tr",{className:"ka-filter-row ka-tr",ref:s},o.default.createElement(i.default,{count:l,isTh:!0}),r.map((function(e){return o.default.createElement(u.default,{key:e.key,column:e,childComponents:t,dispatch:n})})))}},658087:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(50959)),a=r(427181),i=n(r(6461)),u=r(79423);t.default=function(e){var t=e.column,r=e.dispatch,n=t.filterRowValue;return o.default.createElement("input",{className:i.default.css.checkbox,type:"checkbox",ref:function(e){return e&&(e.indeterminate=u.isEmpty(n))},checked:n||!1,onChange:function(e){var o=e.currentTarget.checked;!1===n&&!0===o&&(o=void 0),r(a.updateFilterRowValue(t.key,o))}})}},196620:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=r(788872),u=o(r(658087)),l=o(r(869919)),s=o(r(85947)),c=o(r(599536));t.default=function(e){switch(e.column.dataType){case i.DataType.Boolean:return a.default.createElement(u.default,n({},e));case i.DataType.Date:
return a.default.createElement(l.default,n({},e));case i.DataType.Number:return a.default.createElement(s.default,n({},e));default:return a.default.createElement(c.default,n({},e))}}},869919:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(50959)),a=r(427181),i=n(r(6461)),u=r(299033);t.default=function(e){var t=e.column,r=e.dispatch,n=t.filterRowValue,l=n&&u.getDateInputValue(n);return o.default.createElement("input",{className:i.default.css.dateInput,type:"date",value:l||"",onChange:function(e){var n=e.currentTarget.value,o=n?new Date(n):null;r(a.updateFilterRowValue(t.key,o))}})}},85947:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(50959)),a=r(427181),i=n(r(6461));t.default=function(e){var t=e.column,r=e.dispatch,n=t.filterRowValue;return o.default.createElement("input",{className:i.default.css.numberInput,type:"number",value:null==n?"":n,onChange:function(e){var n=""!==e.currentTarget.value?Number(e.currentTarget.value):null;r(a.updateFilterRowValue(t.key,n))}})}},599536:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(50959)),a=r(427181),i=n(r(6461));t.default=function(e){var t=e.column,r=e.dispatch;return o.default.createElement("input",{type:"text",className:i.default.css.textInput,value:t.filterRowValue||"",onChange:function(e){r(a.updateFilterRowValue(t.key,e.currentTarget.value))}})}},527965:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=o(r(6461)),u=r(337033),l=o(r(138704));t.default=function(e){var t=e.childComponents,r=u.getElementCustomization({className:i.default.css.groupRow},e,t.groupRow),o=r.elementAttributes,s=r.content;return a.default.createElement("tr",n({},o),s||a.default.createElement(l.default,n({},e)))}},138704:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=r(427181),u=o(r(6461)),l=r(337033),s=o(r(383960));t.default=function(e){var t=e.childComponents,r=e.contentColSpan,o=e.dispatch,c=e.groupIndex,d=e.groupKey,f=e.isExpanded,p=e.text,g=l.getElementCustomization({className:u.default.css.groupCell,colSpan:r
},e,t.groupCell),m=g.elementAttributes,h=g.content;return a.default.createElement(a.default.Fragment,null,a.default.createElement(s.default,{count:c}),a.default.createElement("td",n({},m),a.default.createElement("div",{className:"ka-group-cell-content"},a.default.createElement("div",{onClick:function(){o(i.updateGroupsExpanded(d))},className:f?u.default.css.iconGroupArrowExpanded:u.default.css.iconGroupArrowCollapsed}),h||a.default.createElement("div",{className:"ka-group-text"},p))))}},432512:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(337033);t.GroupSummaryCell=function(e){var t,r=e.column.style,o=e.childComponents,a=l.getElementCustomization({className:u.default.css.groupSummaryCell,style:r},e,null===(t=o)||void 0===t?void 0:t.groupSummaryCell),s=a.elementAttributes,c=a.content;return i.createElement("td",n({},s),c)}},634139:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(337033),s=a(r(383960)),c=r(432512);t.GroupSummaryRow=function(e){var t,r=e.childComponents,o=e.columns,a=e.groupColumnsCount,d=l.getElementCustomization({className:u.default.css.groupSummaryRow},e,null===(t=r)||void 0===t?void 0:t.groupSummaryRow),f=d.elementAttributes,p=d.content;return i.createElement("tr",n({},f),p||i.createElement(i.Fragment,null,i.createElement(s.default,{count:a}),o.map((function(t){return i.createElement(c.GroupSummaryCell,n({key:t.key},e,{column:t}))}))))}},20796:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0})
;var i=o(r(50959)),u=r(427181),l=a(r(6461)),s=r(641845),c=r(337033),d=r(828519),f=r(363327),p=a(r(147791)),g=a(r(453693));t.default=function(e){var t=e.columnReordering,r=e.columnResizing,o=e.column,a=e.column,m=a.style,h=a.isResizable,y=a.key,v=e.dispatch,w=e.sortingMode,_=e.childComponents,b=e.childComponents.headCell,E=i.useState(m?m.width:void 0),C=E[0],O=E[1],R=n(n({},m),{width:C}),S=s.headCellDispatchWrapper(O,v);if(t){var A=d.getDraggableProps(y,v,u.reorderColumns,l.default.css.draggedColumn,l.default.css.dragOverColumn);b=c.addElementAttributes(A,e,b)}var M=c.getElementCustomization({className:l.default.css.theadCell+" "+l.default.css.theadBackground+" "+(f.isSortingEnabled(w)?"ka-pointer":""),style:R,scope:"col"},e,b),D=M.elementAttributes,T=M.content;return i.createElement("th",n({},D),i.createElement("div",{className:l.default.css.theadCellWrapper},i.createElement("div",{className:l.default.css.theadCellContentWrapper},T||i.createElement(p.default,n({},e))),s.isCellResizeShown(h,r)&&i.createElement(g.default,{column:o,currentWidth:C,dispatch:S,childComponents:_})))}},147791:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=r(427181),l=a(r(6461)),s=r(788872),c=r(337033),d=r(363327);t.default=function(e){var t=e.column,r=e.dispatch,o=e.sortingMode,a=e.childComponents.headCellContent,f=d.isSortingEnabled(o),p=f?function(){r(u.updateSortDirection(t.key))}:void 0,g=c.getElementCustomization({className:l.default.css.theadCellContent+" "+(f?"ka-pointer":""),onClick:p},e,a),m=g.elementAttributes,h=g.content;return i.createElement("div",n({},m),h||i.createElement("span",null,t.title),t.sortDirection&&f&&i.createElement("span",{className:t.sortDirection===s.SortDirection.Ascend?l.default.css.iconSortArrowUp:l.default.css.iconSortArrowDown},t.sortIndex))}},453693:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=r(427181),l=a(r(6461)),s=r(641845),c=r(337033),d=r(336169);t.default=function(e){
var t=e.column,r=t.key,o=t.style,a=e.dispatch,f=e.currentWidth,p=e.childComponents,g=s.getMinWidth(o),m=c.getElementCustomization({className:l.default.css.theadCellResize,draggable:!1,onMouseDown:function(e){e.preventDefault();var t=e.screenX-(s.isNumberWidth(f)?f:e.currentTarget.parentElement.offsetWidth),n=d.getEventListenerEffect("mousemove",s.getMouseMove(f,g,t,a)),o=d.getEventListenerEffect("mouseup",(function(e){var i=s.getValidatedWidth(e.screenX-t,g);a(u.resizeColumn(r,i)),a({type:s.HeadCellResizeStateAction,width:i}),o(),n()}))}},e,p.headCellResize),h=m.elementAttributes,y=m.content;return i.createElement("div",n({},h),y||i.createElement(i.Fragment,null," "))}},305971:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=o(r(6461)),u=r(337033),l=o(r(383960)),s=o(r(20796));t.default=function(e){var t=e.areAllRowsSelected,r=e.childComponents,o=e.columnReordering,c=e.columnResizing,d=e.columns,f=e.dispatch,p=e.groupColumnsCount,g=e.sortingMode,m=u.getElementCustomization({className:i.default.css.theadRow},e,r.headRow),h=m.elementAttributes,y=m.content;return a.default.createElement("tr",n({},h),y||a.default.createElement(a.default.Fragment,null,a.default.createElement(l.default,{count:p,isTh:!0}),d.map((function(e){return a.default.createElement(s.default,{areAllRowsSelected:t,childComponents:r,columnReordering:o,columnResizing:c,column:e,dispatch:f,key:e.key,sortingMode:g})}))))}},226770:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(50959));t.default=function(e){var t=e.enabled,r=e.text;return t?o.createElement("div",{className:"ka-loading"},o.createElement("div",{className:"ka-loading-icon"}),r&&o.createElement("div",{className:"ka-loading-text"},r)):o.createElement(o.Fragment,null)}},948003:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(50959)),a=r(205833),i=r(788872),u=n(r(494327));t.default=function(e){var t=e.childComponents,r=e.columns,n=e.dispatch,l=e.editableCells,s=e.format,c=e.groupColumnsCount,d=e.rowKeyField,f=e.validation;return o.default.createElement(u.default,{childComponents:t,columns:r,dispatch:n,format:s,editableCells:l,editingMode:i.EditingMode.None,groupColumnsCount:c,isDetailsRowShown:!1,isSelectedRow:!1,rowData:{},rowKeyField:d,rowKeyValue:a.newRowId,rowReordering:!1,validation:f,selectedRows:[],rowEditableCells:l})}},247449:function(e,t,r){"use strict";var n=this&&this.__assign||function(){
return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=r(337033);t.default=function(e){var t=e.childComponents,r=e.columns,o=e.groupColumnsCount,u=i.getElementCustomization({className:"ka-tr ka-no-data-row"},e,t.noDataRow),l=u.elementAttributes,s=u.content;return a.default.createElement("tr",n({},l),a.default.createElement("td",{className:"ka-no-data-cell",colSpan:r.length+o},s))}},195605:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(337033),s=a(r(474478)),c=a(r(817282));t.default=function(e){var t=e.childComponents,r=e.pageSizes,o=l.getElementCustomization({className:u.default.css.paging+" "+(r?"ka-paging-sizes-active":"")},e,t.paging),a=o.elementAttributes,d=o.content;return i.createElement("div",n({},a),d||i.createElement(i.Fragment,null,r&&i.createElement(c.default,n({},e)),i.createElement(s.default,n({},e))))}},840618:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=r(427181),l=a(r(6461)),s=r(337033);t.default=function(e){var t=e.childComponents,r=e.dispatch,o=e.isActive,a=e.pageIndex,c=e.text,d=s.getElementCustomization({className:l.default.css.pagingPageIndex+" "+(o?"ka-paging-page-index-active":""),onClick:function(){return r(u.updatePageIndex(a))}},e,t.pagingIndex),f=d.elementAttributes,p=d.content;return i.createElement("li",n({},f),p||c)}},474478:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0
;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=a(r(50959)),l=r(427181),s=i(r(6461)),c=r(337033),d=r(817746),f=i(r(840618));t.default=function(e){var t=e.childComponents,r=e.dispatch,a=e.pagesCount,i=e.pageIndex,p=void 0===i?0:i,g=e.pages,m=void 0===g?d.getPagesArrayBySize(a):g;u.useEffect((function(){0!==p&&p>=m.length&&r(l.updatePageIndex(0))}),[r,p,m]);var h=p<m.length-d.centerLength&&m.length>d.centerLength+Math.ceil(d.centerLength/2),y=p>=d.centerLength&&m.length>d.centerLength+Math.ceil(d.centerLength/2),v=d.getPagesForCenter(m,y,h,p),w=c.getElementCustomization({className:s.default.css.pagingPages},e,t.pagingPages),_=w.elementAttributes,b=w.content;return u.createElement("ul",n({},_),b||u.createElement(u.Fragment,null,y&&u.createElement(u.Fragment,null,u.createElement(f.default,n({},e,{pageIndex:0,isActive:0===p,text:1})),u.createElement(f.default,n({},e,{pageIndex:v[0]-1,isActive:!1,text:"..."}))),v.map((function(t,r){return u.createElement(f.default,n({},e,{pageIndex:t,isActive:p===t,key:t,text:t+1}))})),h&&u.createElement(u.Fragment,null,u.createElement(f.default,n({},e,{pageIndex:o(v).pop()+1,isActive:!1,text:"..."})),u.createElement(f.default,n({},e,{pageIndex:m[m.length-1],isActive:p===m[m.length-1],text:m[m.length-1]+1})))))}},800361:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=r(427181),l=a(r(6461)),s=r(337033);t.default=function(e){var t=e.childComponents,r=e.dispatch,o=e.pageSize,a=e.value,c=o===a,d=s.getElementCustomization({className:l.default.css.pagingSize+" "+(c?"ka-paging-size-active":""),onClick:function(){return r(u.updatePageSize(a))}},e,t.pagingSize),f=d.elementAttributes,p=d.content;return i.createElement("li",n({},f),p||a)}},817282:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{
default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(337033),s=a(r(800361));t.default=function(e){var t=e.childComponents,r=e.pageSizes,o=void 0===r?[]:r,a=l.getElementCustomization({className:u.default.css.pagingSizes},e,t.pagingSizes),c=a.elementAttributes,d=a.content;return i.createElement("ul",n({},c),d||o.map((function(t){return i.createElement(s.default,n({},e,{key:t,value:t}))})))}},27709:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=r(563280),l=r(69591),s=r(912599),c=r(30493),d=a(r(849396)),f=a(r(527965)),p=r(634139);t.default=function(e){var t=e.childComponents,r=e.columns,o=e.data,a=e.detailsRows,g=void 0===a?[]:a,m=e.dispatch,h=e.editableCells,y=e.format,v=e.groupedColumns,w=e.groups,_=void 0===w?[]:w,b=e.groupsExpanded,E=void 0===b?[]:b,C=e.onFirstRowRendered,O=e.treeGroupsExpanded,R=e.rowKeyField,S=e.rowReordering,A=e.selectedRows,M=e.validation,D=s.getGroupMark(),T=i.useRef(null);i.useEffect((function(){C(T)}),[T,C]);var P=T;return i.default.createElement(i.default.Fragment,null,o.map((function(o){if(o.groupMark===D){var a=o.key.length-1,w=_&&_[a],b=w&&v.find((function(e){return e.key===w.columnKey}));return i.default.createElement(f.default,{childComponents:t,column:b,contentColSpan:r.length-a+_.length,dispatch:m,groupIndex:a,groupKey:o.key,isExpanded:E.some((function(e){return JSON.stringify(e)===JSON.stringify(o.key)})),text:s.getGroupText(o.value,b,y),key:JSON.stringify(o.key)})}if(o.groupSummaryMark===s.groupSummaryMark)return i.default.createElement(p.GroupSummaryRow,n({},e,{groupData:o.groupData,key:o.key,groupIndex:o.groupIndex}));var C=o.treeGroupMark===c.treeGroupMark,T=o.treeDataMark===c.treeDataMark,k=C||T,F=k?o.rowData:o,j=u.getValueByField(F,R),V=C&&(!O||O.includes(j)),K=A.some((function(e){return e===j})),x=g.some((function(e){return e===j})),N=l.getRowEditableCells(j,h),I=i.default.createElement(d.default,{childComponents:e.childComponents,columns:e.columns,dispatch:m,editableCells:e.editableCells,editingMode:e.editingMode,isTreeGroup:C,isTreeExpanded:V,treeDeep:!0===k?o.treeDeep:void 0,format:y,groupColumnsCount:e.groupColumnsCount,isDetailsRowShown:x,isSelectedRow:K,key:j,rowData:F,rowEditableCells:N,rowKeyField:e.rowKeyField,rowKeyValue:j,rowReordering:S,selectedRows:e.selectedRows,trRef:P,validation:M});return P=void 0,I})))}},402953:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){
for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(337033);t.SummaryCell=function(e){var t,r=e.column.style,o=e.childComponents,a=l.getElementCustomization({className:u.default.css.summaryCell,style:r},e,null===(t=o)||void 0===t?void 0:t.summaryCell),s=a.elementAttributes,c=a.content;return i.createElement("td",n({},s),c)}},484607:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(337033),s=a(r(383960)),c=r(402953);t.SummaryRow=function(e){var t,r=e.childComponents,o=e.columns,a=e.groupColumnsCount,d=l.getElementCustomization({className:u.default.css.summaryRow},e,null===(t=r)||void 0===t?void 0:t.summaryRow),f=d.elementAttributes,p=d.content;return i.createElement("tr",n({},f),p||i.createElement(i.Fragment,null,i.createElement(s.default,{count:a}),o.map((function(t){return i.createElement(c.SummaryCell,n({key:t.key},e,{column:t}))}))))}},76968:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=r(427181),l=r(788872),s=r(337033),c=r(817746),d=a(r(226770)),f=r(609482),p=r(728204);t.Table=function(e){var t,r=e.childComponents,o=e.dispatch,a=e.height,g=e.loading,m=e.width,h=e.paging,y=e.singleAction,v=g&&g.enabled?"ka ka-loading-active":"ka",w=s.getElementCustomization({className:v},e,null===(t=r)||void 0===t?void 0:t.rootDiv),_=w.elementAttributes,b=w.content;return _.style=n({width:m,height:a},_.style),i.useEffect((function(){y&&(o(y),o(u.clearSingleAction()))})),
i.createElement("div",n({},_),b||i.createElement(i.Fragment,null,c.isPagingShown(l.PagingPosition.Top,h)&&i.createElement(f.TablePaging,n({},e)),i.createElement(p.TableWrapper,n({},e)),c.isPagingShown(l.PagingPosition.Bottom,h)&&i.createElement(f.TablePaging,n({},e)),i.createElement(d.default,n({},g))))}},66487:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(337033),s=a(r(245720));t.default=function(e){var t=e.childComponents,r=l.getElementCustomization({className:u.default.css.tbody},e,t.tableBody),o=r.elementAttributes,a=r.content;return i.createElement("tbody",n({},o),a||i.createElement(s.default,n({},e)))}},245720:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=r(205833),u=o(r(948003)),l=o(r(247449)),s=o(r(656457));t.default=function(e){var t=e.childComponents,r=e.columns,o=e.data,c=e.dispatch,d=e.editableCells,f=e.format,p=e.groupColumnsCount,g=e.rowKeyField,m=e.validation,h=d&&d.filter((function(e){return e.rowKeyValue===i.newRowId}));return a.default.createElement(a.default.Fragment,null,h&&!!h.length&&a.default.createElement(u.default,{childComponents:t,columns:r,dispatch:c,editableCells:h,format:f,groupColumnsCount:p,rowKeyField:g,validation:m}),o.length?a.default.createElement(s.default,n({},e)):a.default.createElement(l.default,n({},e)))}},342427:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(337033),s=r(484607);t.TableFoot=function(e){var t,r=e.childComponents,o=l.getElementCustomization({className:u.default.css.tfoot},e,null===(t=r)||void 0===t?void 0:t.tableFoot),a=o.elementAttributes,c=o.content
;return i.createElement("tfoot",n({},a),c||i.createElement(s.SummaryRow,n({},e)))}},760129:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(788872),s=r(337033),c=a(r(266241)),d=a(r(305971));t.TableHead=function(e){var t=e.areAllRowsSelected,r=e.childComponents,o=e.columnReordering,a=e.columnResizing,f=e.columns,p=e.dispatch,g=e.filteringMode,m=e.groupColumnsCount,h=e.sortingMode,y=s.getElementCustomization({className:u.default.css.thead},e,r.tableHead),v=y.elementAttributes,w=y.content;return i.createElement("thead",n({},v),w||i.createElement(i.Fragment,null,i.createElement(d.default,{areAllRowsSelected:t,childComponents:r,columnReordering:o,columnResizing:a,columns:f,dispatch:p,groupColumnsCount:m,sortingMode:h}),g===l.FilteringMode.FilterRow&&i.createElement(c.default,{childComponents:r,columns:f,dispatch:p,groupColumnsCount:m})))}},609482:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=r(828519),l=a(r(195605));t.TablePaging=function(e){var t=e.childComponents,r=void 0===t?{}:t,o=e.dispatch,a=e.paging;return i.createElement(l.default,n({},a,{dispatch:o,childComponents:r,pagesCount:u.getPagesCountByProps(e)}))}},728204:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(50959)),u=a(r(6461)),l=r(788872),s=r(337033),c=r(912599),d=r(828519),f=r(156107),p=a(r(66487)),g=r(342427),m=r(760129);t.TableWrapper=function(e){
var t=e.childComponents,r=void 0===t?{}:t,o=e.columnReordering,a=e.columnResizing,h=e.data,y=void 0===h?[]:h,v=e.dispatch,w=e.editableCells,_=void 0===w?[]:w,b=e.editingMode,E=void 0===b?l.EditingMode.None:b,C=e.filteringMode,O=void 0===C?l.FilteringMode.None:C,R=e.groups,S=e.rowReordering,A=void 0!==S&&S,M=e.selectedRows,D=void 0===M?[]:M,T=e.sortingMode,P=void 0===T?l.SortingMode.None:T,k=e.virtualScrolling,F=e.groupsExpanded,j=d.prepareTableOptions(e);R&&!F&&(F=c.getExpandedGroups(j.groupedData));var V=y.length===D.length,K=s.getElementCustomization({className:u.default.css.tableWrapper,onScroll:f.isVirtualScrollingEnabled(k)?function(e){v({scrollTop:e.currentTarget.scrollTop,type:l.ActionType.ScrollTable})}:void 0},e,r.tableWrapper),x=s.getElementCustomization({className:u.default.css.table},e,r.table),N=x.elementAttributes,I=x.content;return i.createElement("div",n({},K.elementAttributes),I||K.content||i.createElement("table",n({},N),i.createElement(m.TableHead,{areAllRowsSelected:V,childComponents:r,columnReordering:o,columnResizing:a,columns:j.columns,dispatch:v,filteringMode:O,groupColumnsCount:j.groupColumnsCount,sortingMode:P}),i.createElement(p.default,n({},e,{childComponents:r,columns:j.columns,data:j.groupedData,editableCells:_,editingMode:E,groupColumnsCount:j.groupColumnsCount,groupedColumns:j.groupedColumns,groupsExpanded:F,rowReordering:A,selectedRows:D})),(r.tableFoot||r.summaryRow||r.summaryCell)&&i.createElement(g.TableFoot,n({},e,{data:y,columns:j.columns,groupColumnsCount:j.groupColumnsCount}))))}},656457:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(50959)),i=o(r(6461)),u=r(788872),l=r(156107),s=o(r(27709));t.default=function(e){var t,r=e.data,o=e.dispatch,c=e.virtualScrolling,d=r;return c&&(d=(t=l.getVirtualized(c,d)).virtualizedData),a.default.createElement(a.default.Fragment,null,t&&a.default.createElement("tr",{style:{height:t.beginHeight}},a.default.createElement("td",{style:{height:t.beginHeight}})),a.default.createElement(s.default,n({},e,{data:d,onFirstRowRendered:function(e){if(e&&e.current&&c&&(!c.itemHeight||!c.tbodyHeight)){var t=e.current.offsetHeight||40,r=e.current.closest("."+i.default.css.root),a=r&&r.offsetHeight||600,l=n({itemHeight:t,tbodyHeight:a},c);o({type:u.ActionType.UpdateVirtualScrolling,virtualScrolling:l})}}})),t&&a.default.createElement("tr",{style:{height:t.endHeight}},a.default.createElement("td",{style:{height:t.endHeight}})))}},414909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){this.root="ka",this.cell="ka-cell",this.treeCell="ka-tree-cell",this.treeCellEmptySpace="ka-tree-empty-space",this.cellEditor="ka-cell-editor",this.cellText="ka-cell-text",
this.groupCell="ka-group-cell",this.groupSummaryRow="ka-group-summary-row",this.detailsRow="ka-tr ka-details-row",this.groupRow="ka-tr ka-group-row",this.groupSummaryCell="ka-cell ka-group-summary-cell",this.kaCellEditorValidationError="ka-cell-editor-validation-error",this.row="ka-tr ka-row",this.rowSelected="ka-row-selected",this.tableWrapper="ka-table-wrapper",this.table="ka-table",this.tbody="ka-tbody",this.tfoot="ka-tfoot",this.thead="ka-thead",this.theadBackground="ka-thead-background",this.theadCell="ka-thead-cell",this.summaryCell="ka-summary-cell",this.summaryRow="ka-summary-row",this.theadCellContent="ka-thead-cell-content",this.theadCellContentWrapper="ka-thead-cell-content-wrapper",this.theadCellResize="ka-thead-cell-resize",this.theadCellWrapper="ka-thead-cell-wrapper",this.theadRow="ka-tr ka-thead-row",this.draggedRow="ka-dragged-row",this.dragOverRow="ka-drag-over-row",this.draggedColumn="ka-dragged-column",this.dragOverColumn="ka-drag-over-column",this.paging="ka-paging",this.pagingPages="ka-paging-pages",this.pagingPageIndex="ka-paging-page-index",this.pagingSize="ka-paging-size",this.pagingSizes="ka-paging-sizes",this.iconClose="ka-icon ka-icon-close",this.iconGroupArrowCollapsed="ka-icon ka-icon-group-arrow ka-icon-group-arrow-collapsed",this.iconGroupArrowExpanded="ka-icon ka-icon-group-arrow ka-icon-group-arrow-expanded",this.iconTreeArrowCollapsed="ka-icon ka-icon-tree-arrow ka-icon-tree-arrow-collapsed",this.iconTreeArrowExpanded="ka-icon ka-icon-tree-arrow ka-icon-tree-arrow-expanded",this.iconSortArrowDown="ka-icon ka-icon-sort ka-icon-sort-arrow-down",this.iconSortArrowUp="ka-icon ka-icon-sort ka-icon-sort-arrow-up",this.checkbox="ka-input",this.dateInput="ka-input",this.numberInput="ka-input",this.textInput="ka-input"};t.CssClasses=r},611750:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};Object.defineProperty(t,"__esModule",{value:!0});var a=r(205833),i=r(788872),u=r(489964),l=r(739130),s=r(271398),c=r(563280),d=r(69591),f=r(912599),p=r(100850),g=r(435260),m=r(828519),h=r(30493),y=function(e,t,r){return e.filter((function(e){return!t.some((function(t){return c.getValueByField(t,r)===e}))}))},v=function(e,t,r){var o,a;if(!(null===(a=null===(o=e)||void 0===o?void 0:o.focused)||void 0===a?void 0:a.cell))return e;var i={cell:r(e.focused.cell,e,t.settings)};return n(n({},e),{focused:i})};t.kaReducer=function(e,t){
var r=e.columns,w=e.data,_=void 0===w?[]:w,b=e.detailsRows,E=void 0===b?[]:b,C=e.editableCells,O=void 0===C?[]:C,R=e.groupsExpanded,S=e.loading,A=e.paging,M=e.treeGroupsExpanded,D=e.rowKeyField,T=e.selectedRows,P=void 0===T?[]:T,k=e.validation,F=e.sortingMode,j=void 0===F?i.SortingMode.None:F,V=e.virtualScrolling;switch(t.type){case i.ActionType.MoveFocusedRight:return v(e,t,g.getRightCell);case i.ActionType.MoveFocusedLeft:return v(e,t,g.getLeftCell);case i.ActionType.MoveFocusedUp:return v(e,t,g.getUpCell);case i.ActionType.MoveFocusedDown:return v(e,t,g.getDownCell);case i.ActionType.SetFocused:return n(n({},e),{focused:t.focused});case i.ActionType.ClearFocused:return n(n({},e),{focused:void 0});case i.ActionType.ClearSingleAction:return n(n({},e),{singleAction:void 0});case i.ActionType.SetSingleAction:return n(n({},e),{singleAction:t.singleAction});case i.ActionType.ShowColumn:var K=(U=o(r)).findIndex((function(e){return e.key===t.columnKey}));return U[K]=n(n({},U[K]),{visible:!0}),n(n({},e),{columns:U});case i.ActionType.HideColumn:K=(U=o(r)).findIndex((function(e){return e.key===t.columnKey}));return U[K]=n(n({},U[K]),{visible:!1}),n(n({},e),{columns:U});case i.ActionType.ReorderRows:var x=c.reorderData(_,(function(e){return c.getValueByField(e,D)}),t.rowKeyValue,t.targetRowKeyValue);return n(n({},e),{data:x});case i.ActionType.ReorderColumns:x=c.reorderData(r,(function(e){return e.key}),t.columnKey,t.targetColumnKey);return n(n({},e),{columns:x});case i.ActionType.ResizeColumn:var N=t.columnKey,I=t.width,z=r.find((function(e){return e.key===N})),B=n(n({},z),{style:n(n({},z.style),{width:I})}),U=l.getCopyOfArrayAndInsertOrReplaceItem(B,"key",r);return n(n({},e),{columns:U});case i.ActionType.UpdatePageIndex:return n(n({},e),{paging:n(n({},A),{pageIndex:t.pageIndex})});case i.ActionType.UpdatePageSize:return n(n({},e),{paging:n(n({},A),{pageSize:t.pageSize})});case i.ActionType.UpdatePagesCount:return n(n({},e),{paging:n(n({},A),{pagesCount:t.pagesCount})});case i.ActionType.HideLoading:return n(n({},e),{loading:n(n({},S),{enabled:!1})});case i.ActionType.ShowLoading:var G=n(n({},S),{enabled:!0});return void 0!==t.text&&(G.text=t.text),n(n({},e),{loading:G});case i.ActionType.ShowDetailsRow:return(L=o(E)).push(t.rowKeyValue),n(n({},e),{detailsRows:L});case i.ActionType.HideDetailsRow:var L=E.filter((function(e){return e!==t.rowKeyValue}));return n(n({},e),{detailsRows:L});case i.ActionType.OpenEditor:var H=s.addItemToEditableCells(t,O);return n(n({},e),{editableCells:H});case i.ActionType.CloseEditor:H=s.removeItemFromEditableCells(t,O);return n(n({},e),{editableCells:H});case i.ActionType.UpdateFilterRowValue:z=r.find((function(e){return e.key===t.columnKey})),B=n(n({},z),{filterRowValue:t.filterRowValue}),U=l.getCopyOfArrayAndInsertOrReplaceItem(B,"key",r);return n(n({},e),{columns:U});case i.ActionType.UpdateFilterRowOperator:z=r.find((function(e){return e.key===t.columnKey})),B=n(n({},z),{filterRowOperator:t.filterRowOperator}),U=l.getCopyOfArrayAndInsertOrReplaceItem(B,"key",r);return n(n({},e),{columns:U
});case i.ActionType.UpdateEditorValue:var W=(H=o(O)).findIndex((function(e){return e.columnKey===t.columnKey&&e.rowKeyValue===t.rowKeyValue})),J=n(n({},H[W]),{editorValue:t.value});return H[W]=J,n(n({},e),{editableCells:H});case i.ActionType.UpdateCellValue:var q=_.find((function(e){return c.getValueByField(e,D)===t.rowKeyValue})),X=(z=r.find((function(e){return e.key===t.columnKey})),c.replaceValue(q,z,t.value));x=l.getCopyOfArrayAndInsertOrReplaceItem(X,D,_);return n(n({},e),{data:x});case i.ActionType.DeleteRow:x=_.filter((function(e){return c.getValueByField(e,D)!==t.rowKeyValue}));return n(n({},e),{data:x});case i.ActionType.SelectAllRows:var Q=_.map((function(e){return c.getValueByField(e,D)}));return n(n({},e),{selectedRows:Q});case i.ActionType.SelectAllFilteredRows:x=d.filterAndSearchData(e),Q=y(P,x,D);return Q=o(Q,x.map((function(e){return c.getValueByField(e,D)}))),n(n({},e),{selectedRows:Q});case i.ActionType.SelectAllVisibleRows:x=m.getData(e),Q=y(P,x,D);return Q=o(Q,x.map((function(e){return c.getValueByField(e,D)}))),n(n({},e),{selectedRows:Q});case i.ActionType.Search:return n(n({},e),{searchText:t.searchText});case i.ActionType.SelectSingleRow:Q=[t.rowKeyValue];return n(n({},e),{selectedRows:Q});case i.ActionType.DeselectAllRows:return n(n({},e),{selectedRows:[]});case i.ActionType.DeselectAllFilteredRows:x=d.filterAndSearchData(e),Q=y(P,x,D);return n(n({},e),{selectedRows:Q});case i.ActionType.DeselectAllVisibleRows:x=m.getData(e),Q=y(P,x,D);return n(n({},e),{selectedRows:Q});case i.ActionType.SelectRow:return n(n({},e),{selectedRows:o(P,[t.rowKeyValue])});case i.ActionType.SelectRowsRange:var Y=t.rowKeyValueTo;if(Y){var Z=u.kaPropsUtils.getData(e),$=Z.findIndex((function(e){return c.getValueByField(e,D)===Y})),ee=Z.findIndex((function(e){return c.getValueByField(e,D)===t.rowKeyValueFrom}));if(null!=$&&null!=ee){for(var te=$>ee?[ee,$]:[$,ee],re=te[1],ne=[],oe=te[0];oe<=re;oe++){var ae=c.getValueByField(Z[oe],D);P.includes(ae)||ne.push(ae)}return n(n({},e),{selectedRows:o(P,ne)})}}return n(n({},e),{selectedRows:o(P,[t.rowKeyValueFrom])});case i.ActionType.DeselectRow:Q=o(P).filter((function(e){return e!==t.rowKeyValue}));return n(n({},e),{selectedRows:Q});case i.ActionType.UpdateSortDirection:var ie=p.getUpdatedSortedColumns(r,t.columnKey,j);return n(n({},e),{columns:ie});case i.ActionType.UpdateVirtualScrolling:return n(n({},e),{virtualScrolling:t.virtualScrolling});case i.ActionType.UpdateData:return n(n({},e),{data:t.data});case i.ActionType.ScrollTable:var ue=t.scrollTop;return n(n({},e),{virtualScrolling:n(n({},V),{scrollTop:ue})});case i.ActionType.UpdateGroupsExpanded:var le=R;if(!le){var se=m.prepareTableOptions(e);le=f.getExpandedGroups(se.groupedData)}var ce=f.updateExpandedGroups(le,t.groupKey);return n(n({},e),{groupsExpanded:ce});case i.ActionType.ShowNewRow:case i.ActionType.OpenRowEditors:var de=t.type===i.ActionType.ShowNewRow?a.newRowId:t.rowKeyValue;H=function(e,t,r){var n=o(e);return t.forEach((function(e){!1===e.isEditable||n.some((function(t){
return t.columnKey===e.key&&t.rowKeyValue===r}))||n.push({columnKey:e.key,rowKeyValue:r})})),n}(O,r,de);return n(n({},e),{editableCells:H});case i.ActionType.HideNewRow:case i.ActionType.CloseRowEditors:var fe=t.type===i.ActionType.HideNewRow?a.newRowId:t.rowKeyValue;H=O.filter((function(e){return e.rowKeyValue!==fe}));return n(n({},e),{editableCells:H});case i.ActionType.SaveRowEditors:case i.ActionType.SaveNewRow:var pe=t.type===i.ActionType.SaveNewRow,ge=pe?a.newRowId:t.rowKeyValue,me=_.find((function(e){return c.getValueByField(e,D)===ge})),he=O.filter((function(e){return e.rowKeyValue===ge&&(pe||e.hasOwnProperty("editorValue"))}));if(t.validate){var ye=!0;if(he.forEach((function(e){var t=r.find((function(t){return t.key===e.columnKey}));e.validationMessage=k&&k({column:t,value:e.editorValue,rowData:me}),ye=ye&&!e.validationMessage})),!ye)return n(n({},e),{editableCells:o(O)})}H=O.filter((function(e){return e.rowKeyValue!==ge}));he.forEach((function(e){var t=r.find((function(t){return t.key===e.columnKey}));me=c.replaceValue(me,t,e.editorValue)}));x=void 0;return pe?(me[D]=t.rowKeyValue,x=o([me],_)):x=l.getCopyOfArrayAndInsertOrReplaceItem(me,D,_),n(n({},e),{data:x,editableCells:H});case i.ActionType.UpdateRow:x=l.getCopyOfArrayAndInsertOrReplaceItem(t.rowData,D,_);return n(n({},e),{data:x});case i.ActionType.UpdateTreeGroupsExpanded:var ve=t.rowKeyValue;if(ae=!!M&&!M.some((function(e){return e===ve})))return n(n({},e),{treeGroupsExpanded:o(M||[],[ve])});var we=M;if(!we){se=m.prepareTableOptions(e);we=h.getExpandedParents(se.groupedData,D)}return n(n({},e),{treeGroupsExpanded:we.filter((function(e){return e!==ve}))})}return e}},739130:function(e,t){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};Object.defineProperty(t,"__esModule",{value:!0}),t.getCopyOfArrayAndAddItem=function(e,t){return void 0===t&&(t=[]),t.concat([e])},t.getCopyOfArrayAndDeleteItem=function(e,t,r){var n=e[t];return r.filter((function(e){return e[t]!==n}))},t.getCopyOfArrayAndInsertOrReplaceItem=function(e,t,n){var o=r(n),a=e[t],i=o.findIndex((function(e){return e[t]===a}));return i>=0?o.splice(i,1,e):o.push(e),o}},641845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadCellResizeStateAction="HeadCellResizeStateAction",t.isCellResizeShown=function(e,t){return!(!1===e||!t&&!e)},t.getMouseMove=function(e,r,n,o){return function(a){var i=a.screenX-n;i!==e&&(i=t.getValidatedWidth(i,r),o({type:t.HeadCellResizeStateAction,width:i}))}},t.getValidatedWidth=function(e,t){return e<t?t:e},t.isNumberWidth=function(e){return e&&"number"==typeof e},t.getMinWidth=function(e){var r=20,n=e&&e.minWidth;return t.isNumberWidth(n)&&(r=n),r},t.headCellDispatchWrapper=function(e,r){return function(n){n.type===t.HeadCellResizeStateAction?e(n.width):r(n)}}},271398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;var n=r(427181),o=r(788872),a=r(739130);t.isEditableCell=function(e,t,r){return void 0!==t.isEditable?t.isEditable:!!r.find((function(e){return e.columnKey===t.key}))},t.getEditableCell=function(e,t){if(!1!==e.isEditable)return t.find((function(t){return t.columnKey===e.key}))},t.addItemToEditableCells=function(e,t){return a.getCopyOfArrayAndAddItem(e,t)},t.getCellEditorDispatchHandler=function(e){return function(t){t.type===o.ActionType.UpdateEditorValue?e(n.updateCellValue(t.rowKeyValue,t.columnKey,t.value)):e(t)}},t.removeItemFromEditableCells=function(e,t){return t.filter((function(t){return t.columnKey!==e.columnKey||t.rowKeyValue!==e.rowKeyValue}))}},294349:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(6461));t.getField=function(e){return e.field||e.key},t.getLastField=function(e){return o.default.fieldDelimiter?e.split(o.default.fieldDelimiter).pop():e},t.getFieldParts=function(e){return o.default.fieldDelimiter?e.split(o.default.fieldDelimiter):[e]},t.getLastFieldParents=function(e){if(o.default.fieldDelimiter){var t=e.split(o.default.fieldDelimiter);return t.pop(),t}return[]}},79423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=function(e){return null==e||0===e.length}},337033:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=r(828519);t.getElementCustomization=function(e,t,r){var n=o.extendProps(e,t,r);return{content:r&&r.content&&r.content(t),elementAttributes:n}},t.addElementAttributes=function(e,t,r){var o=n({},r),a=o.elementAttributes&&o.elementAttributes(t);return o.elementAttributes=function(){return n(n({},a),e)},o}},563280:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};Object.defineProperty(t,"__esModule",{value:!0});var a=r(294349);t.getParentValue=function(e,t){var r=t.reduce((function(e,t){var r=e&&e[t];return void 0!==r?r:void 0}),e);return r?n({},r):void 0},t.createObjByFields=function(e,t,r){var o={};return e.length?e.reduce((function(n,o,a){var i={};return n[o]=i,a===e.length-1&&(i[t]=r),i}),o):o[t]=r,n({},o)},t.getValueByColumn=function(e,r){return t.getValueByField(e,a.getField(r))},t.getValueByField=function(e,t){for(var r=n({},e),o=a.getFieldParts(t),i=0,u=o.length;i<u;++i){var l=o[i];if(!(l in r))return;r=r[l]}return r};var i=function(e,r,a,u){
var l=n({},e);if(u&&u.length){var s=t.getParentValue(l,u)||{};s[r]=a;var c=o(u),d=c.pop();l=i(l,d,s,c)}else l[r]=a;return l};t.replaceValue=function(e,t,r){var n=a.getField(t);return i(e,a.getLastField(n),r,a.getLastFieldParents(n))},t.reorderData=function(e,t,r,n){var o=e.find((function(e){return t(e)===r})),a=e.filter((function(e){return t(e)!==r})),i=e.findIndex((function(e){return t(e)===n}));return a.splice(i,0,o),a}},299033:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDateInputValue=function(e){return new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString().split("T")[0]}},262512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateChildrenTop=function(e){if(e&&e.current&&e.current.previousSibling&&e.current.childNodes){var t=e.current.previousSibling.getBoundingClientRect();if(t){var r=t.height+"px";r!==e.current.style.top&&(e.current.childNodes.forEach((function(e){e.style.top=r})),e.current.style.top=r)}}}},336169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(788872);t.addEscEnterKeyEffect=function(e,r){return t.getEventListenerEffect("keyup",(function(t){t.keyCode===n.KeyboardEnum.Esc&&e(),t.keyCode===n.KeyboardEnum.Enter&&r()}))},t.getEventListenerEffect=function(e,t){return window.addEventListener(e,t),function(){window.removeEventListener(e,t)}}},69591:function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(6461)),i=r(788872),u=r(79423),l=r(563280),s=r(945220);t.getRowEditableCells=function(e,t){return t.filter((function(t){return t.rowKeyValue===e}))},t.searchData=function(e,t,r,n){var o=e.reduce((function(e,o){return e.concat(t.filter((function(t){if(e.indexOf(t)>=0)return!1;var a=n&&n({column:o,searchText:r,rowData:t});if(null!=a)return a;var i=l.getValueByColumn(t,o);return null!=i&&i.toString().toLowerCase().includes(r.toLowerCase())})))}),[]);return t.filter((function(e){return o.indexOf(e)>=0}))},t.filterAndSearchData=function(e){var r=e.extendedFilter,o=e.searchText,a=e.columns,i=e.search,u=e.filter,l=e.data,c=void 0===l?[]:l;return c=n(c),c=r?r(c):c,c=o?t.searchData(a,c,o,i):c,c=s.convertToColumnTypes(c,a),c=t.filterData(c,a,u)};t.filterData=function(e,r,n){return r.reduce((function(e,r){var o;if(u.isEmpty(r.filterRowValue)&&r.filterRowOperator!==i.FilterOperatorName.IsEmpty&&r.filterRowOperator!==i.FilterOperatorName.IsNotEmpty)return e;var s=(null===(o=n)||void 0===o?void 0:o({column:r}))||function(e){var r=e.filterRowOperator||t.getDefaultOperatorForType(e.dataType||a.default.columnDataType),n=t.predefinedFilterOperators.find((function(e){return r===e.name}))
;if(!n)throw new Error("'"+e.filterRowOperator+"' has not found in predefinedFilterOperators array, available operators: "+t.predefinedFilterOperators.map((function(e){return e.name})).join(", "));return n.compare}(r);return e.filter((function(e){var t=l.getValueByColumn(e,r),n=r.filterRowValue;return r.dataType===i.DataType.Date&&(t=null==t?t:new Date(t).setHours(0,0,0,0),n=null==n?n:new Date(n).setHours(0,0,0,0)),s(t,n)}))}),e)},t.getDefaultOperatorForType=function(e){var r=t.predefinedFilterOperators.find((function(t){return t.defaultForTypes&&t.defaultForTypes.includes(e)}));return r&&r.name||"="},t.predefinedFilterOperators=[{compare:function(e,t){return e===t},defaultForTypes:[i.DataType.Boolean,i.DataType.Number,i.DataType.Date],name:i.FilterOperatorName.Equal},{compare:function(e,t){return e>t},name:i.FilterOperatorName.MoreThan},{compare:function(e,t){return e<t},name:i.FilterOperatorName.LessThan},{compare:function(e,t){return e>=t},name:i.FilterOperatorName.MoreThanOrEqual},{compare:function(e,t){return e<=t},name:i.FilterOperatorName.LessThanOrEqual},{compare:function(e,t){return null!=e&&e.toString().toLowerCase().includes(t.toString().toLowerCase())},defaultForTypes:[i.DataType.String],name:i.FilterOperatorName.Contains},{compare:function(e){return u.isEmpty(e)},name:i.FilterOperatorName.IsEmpty},{compare:function(e){return!u.isEmpty(e)},name:i.FilterOperatorName.IsNotEmpty}]},912599:function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};Object.defineProperty(t,"__esModule",{value:!0});var o=r(563280);t.groupMark={},t.groupSummaryMark={};var a=function(e,r,n){return{groupData:e,groupSummaryMark:t.groupSummaryMark,key:JSON.stringify([r,"--:+summary--"]),groupIndex:n}};t.updateExpandedGroups=function(e,t){var r=e.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)}));return r.length===e.length&&r.push(t),r},t.getExpandedGroups=function(e){return e.filter((function(e){return e.groupMark===t.groupMark})).map((function(e){return e.key}))},t.getGroupedData=function(e,r,n,o){var a=t.getGroupedStructure(e,r,n,0,o);return t.convertToFlat(a)},t.convertToFlat=function(e,r){void 0===r&&(r=[]);var o=[];return e.forEach((function(e,a){if(a===t.groupSummaryMark)o.push(e);else{var i=n(r);i.push(a),o.push({groupMark:t.groupMark,key:i,value:a}),o=n(o,Array.isArray(e)?e:t.convertToFlat(e,i))}})),o},t.getGroupedStructure=function(e,r,i,u,l,s){void 0===u&&(u=0),void 0===s&&(s=[]);var c=(r=n(r)).shift();if(c){var d=i&&i.find((function(e){return e.key===c.columnKey}));if(d){var f=t.groupBy(e,(function(e){return o.getValueByColumn(e,d)}));return f.forEach((function(e,o){var d=l&&l.filter((function(e){return e[u]===o}));if(!d||d.some((function(e){return e.length===u+1}))){var p=n(s,[o]),g=t.getGroupedStructure(e,r,i,u+1,d&&d.filter((function(e){return e.length>u+1})),p);g?(c.enableSummary&&g.set(t.groupSummaryMark,a(e,p,u)),
f.set(o,g)):c.enableSummary&&e.push(a(n(e),p,u))}else f.set(o,[])})),f}}},t.groupBy=function(e,t,r){void 0===r&&(r=!1);var n=new Map;return e.forEach((function(e){var o=t(e);if(r)n.set(o,[]);else{var a=n.get(o);a?a.push(e):n.set(o,[e])}})),n},t.getGroupMark=function(){return t.groupMark},t.getGroupText=function(e,t,r){return r?r({column:t,value:e}):(t&&t.title?t.title+": ":"")+e}},100850:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(r(6461)),i=r(788872),u=r(363327);t.getUpdatedSortedColumns=function(e,r,o){var i=e.map((function(e){return n({},e)})),l=i.find((function(e){return e.key===r}));if(l){var s=t.getNextSortDirection(l.sortDirection);if(u.isTripleStateSorting(o)&&l.sortDirection&&s===a.default.columnSortDirection&&(s=void 0),u.isMultipleSorting(o)||i.forEach((function(e){delete e.sortDirection,delete e.sortIndex})),s){if(l.sortDirection=s,u.isMultipleSorting(o)&&!l.sortIndex){var c=i.filter((function(e){return e.sortDirection}));l.sortIndex=c.length+1}}else delete l.sortDirection,delete l.sortIndex;if(u.isMultipleSorting(o))(c=u.sortColumns(i)).forEach((function(e,t){e.sortIndex=t+1}))}return i},t.getNextSortDirection=function(e){return e?e===i.SortDirection.Ascend?i.SortDirection.Descend:i.SortDirection.Ascend:a.default.columnSortDirection}},435260:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(563280),o=r(828519);t.getRightCell=function(e,t,r){var n,o,a;if(null===(n=r)||void 0===n?void 0:n.end)a=null===(o=t.columns[t.columns.length-1])||void 0===o?void 0:o.key;else{var i=t.columns.findIndex((function(t){return t.key===e.columnKey}));a=i<t.columns.length-1?t.columns[i+1].key:e.columnKey}return{columnKey:a,rowKeyValue:e.rowKeyValue}},t.getLeftCell=function(e,t,r){var n,o,a;if(null===(n=r)||void 0===n?void 0:n.end)a=null===(o=t.columns[0])||void 0===o?void 0:o.key;else{var i=t.columns.findIndex((function(t){return t.key===e.columnKey}));a=0<i?t.columns[i-1].key:e.columnKey}return{columnKey:a,rowKeyValue:e.rowKeyValue}},t.getUpCell=function(e,t,r){var a,i,u=e.rowKeyValue,l=o.getData(t);if(null===(a=r)||void 0===a?void 0:a.end){var s=l[0];u=n.getValueByField(s,t.rowKeyField)}else{var c=null===(i=l)||void 0===i?void 0:i.findIndex((function(r){return n.getValueByField(r,t.rowKeyField)===e.rowKeyValue}));if(c>0){s=l[c-1];u=n.getValueByField(s,t.rowKeyField)}}return{columnKey:e.columnKey,rowKeyValue:u}},t.getDownCell=function(e,t,r){var a,i,u=e.rowKeyValue,l=o.getData(t);if(null===(a=r)||void 0===a?void 0:a.end){var s=l[l.length-1];u=n.getValueByField(s,t.rowKeyField)}else{var c=null===(i=l)||void 0===i?void 0:i.findIndex((function(r){return n.getValueByField(r,t.rowKeyField)===e.rowKeyValue}));if(c<l.length-1){s=l[c+1]
;u=n.getValueByField(s,t.rowKeyField)}}return{columnKey:e.columnKey,rowKeyValue:u}}},817746:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(788872);t.centerLength=5;t.getPagesCount=function(e,t){return t&&t.enabled?t.pagesCount?t.pagesCount:Math.ceil(e.length/(t&&t.pageSize||10)):1},t.getPageData=function(e,t){if(!t||!t.enabled||t.pagesCount)return e;var r=t.pageSize||10,n=r*(t.pageIndex||0);return e.slice(n,n+r)},t.getPagesForCenter=function(e,r,n,o){return r&&!n?e.filter((function(r){return r>=e.length-t.centerLength-1})):!r&&n?e.filter((function(e){return e<=t.centerLength})):r&&n?e.filter((function(e){return e>=o-Math.floor(t.centerLength/2)&&e<=o+Math.floor(t.centerLength/2)})):e},t.getPagesArrayBySize=function(e){return new Array(e).fill(void 0).map((function(e,t){return t}))},t.isPagingShown=function(e,t){var r;return!(!(null===(r=t)||void 0===r?void 0:r.enabled)||(t.position?e!==t.position&&t.position!==n.PagingPosition.TopAndBottom:e!==n.PagingPosition.Bottom))}},828519:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};Object.defineProperty(t,"__esModule",{value:!0});var a=r(788872),i=r(563280),u=r(69591),l=r(912599),s=r(817746),c=r(363327),d=r(30493);t.extendProps=function(e,t,r){var n=e,o=r&&r.elementAttributes&&r.elementAttributes(t);return o&&(n=p(e,t,o,t.dispatch)),n};var f=function(){};function p(e,t,r,o){var a={},i=function(n){if(r.hasOwnProperty(n)){var i=n,u=r[i],l=e[i]||f;"function"==typeof u&&(a[n]=function(r){u(r,{baseFunc:l,childElementAttributes:e,childProps:t,dispatch:o})})}};for(var u in r)i(u);return n(n(n(n({},e),r),a),{className:(e.className||"")+" "+(r.className||""),style:n(n({},e.style),r.style)})}t.mergeProps=p,t.areAllFilteredRowsSelected=function(e){var t=e.selectedRows,r=void 0===t?[]:t,n=e.rowKeyField;return u.filterAndSearchData(e).every((function(e){return r.includes(i.getValueByField(e,n))}))},t.areAllVisibleRowsSelected=function(e){var r=e.selectedRows,n=void 0===r?[]:r,o=e.rowKeyField;return t.getData(e).every((function(e){return n.includes(i.getValueByField(e,o))}))},t.getData=function(e){var t=e.columns,r=e.groups,n=e.groupsExpanded,i=e.paging,f=e.treeGroupKeyField,p=e.treeGroupsExpanded,g=e.rowKeyField,m=e.sort,h=e.sortingMode,y=void 0===h?a.SortingMode.None:h,v=e.data,w=void 0===v?[]:v,_=o(w);_=u.filterAndSearchData(e),c.isRemoteSorting(y)||(_=c.sortData(t,_,m));var b=r?t.filter((function(e){return r.some((function(t){return t.columnKey===e.key}))})):[];return _=r?l.getGroupedData(_,r,b,n):_,_=f?d.getTreeData({data:_,rowKeyField:g,treeGroupKeyField:f,treeGroupsExpanded:p,originalData:w}):_,_=s.getPageData(_,i)},
t.getSelectedData=function(e){var t=e.data,r=e.selectedRows,n=e.rowKeyField;return t?t.filter((function(e){var t,o=i.getValueByField(e,n);return null===(t=r)||void 0===t?void 0:t.some((function(e){return e===o}))})):[]},t.getSortedColumns=function(e){return c.sortColumns(e.columns)},t.getPagesCountByProps=function(e){var t=e.paging,r=1;if(t&&t.enabled){var n=u.filterAndSearchData(e),o=e.rowKeyField,a=e.treeGroupKeyField,i=e.treeGroupsExpanded;n=a?d.getTreeData({data:n,rowKeyField:o,treeGroupKeyField:a,treeGroupsExpanded:i,originalData:e.data||[]}):n,r=s.getPagesCount(n,t)}return r},t.prepareTableOptions=function(e){var r=e.groups,n=e.columns,o=t.getData(e),a=0,i=[];return r&&(a=r.length,i=n.filter((function(e){return r.some((function(t){return t.columnKey===e.key}))})),n=n.filter((function(e){return!r.some((function(t){return t.columnKey===e.key}))}))),{columns:n=n.filter((function(e){return!1!==e.visible})),groupColumnsCount:a,groupedColumns:i,groupedData:o}},t.getDraggableProps=function(e,t,r,n,o){var a=0;return{draggable:!0,onDragStart:function(t){a=0,t.dataTransfer.setData("ka-draggableKeyValue",JSON.stringify(e)),t.currentTarget.classList.add(n),t.dataTransfer.effectAllowed="move"},onDragEnd:function(e){e.currentTarget.classList.remove(n)},onDrop:function(n){n.currentTarget.classList.remove(o);var a=JSON.parse(n.dataTransfer.getData("ka-draggableKeyValue"));t(r(a,e))},onDragEnter:function(e){a++,e.currentTarget.classList.contains(o)||e.currentTarget.classList.add(o),e.preventDefault()},onDragLeave:function(e){0===--a&&e.currentTarget.classList.remove(o)},onDragOver:function(e){e.currentTarget.classList.contains(o)||e.currentTarget.classList.add(o),e.preventDefault()}}}},363327:function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};Object.defineProperty(t,"__esModule",{value:!0});var o=r(788872),a=r(563280);t.sortColumns=function(e){return e.filter((function(e){return e.sortDirection})).sort((function(e,t){return e.sortIndex===t.sortIndex?0:e.sortIndex?t.sortIndex&&e.sortIndex<t.sortIndex?-1:1:-1}))},t.sortData=function(e,t,r){var l=e.find((function(e){return e.sortDirection}));if(!l)return t;var s=r&&r({column:l}),c=s&&function(e,t){return s(a.getValueByColumn(e,l),a.getValueByColumn(t,l))}||(l.sortDirection===o.SortDirection.Ascend?i(l):u(l));return n(t).sort(c)};var i=function(e){return function(t,r){var n=a.getValueByColumn(t,e),o=a.getValueByColumn(r,e);return n===o?0:null==n?-1:null==o?1:n<o?-1:1}},u=function(e){return function(t,r){var n=a.getValueByColumn(t,e),o=a.getValueByColumn(r,e);return n===o?0:null==n?1:null==o||n>o?-1:1}};t.isTripleStateSorting=function(e){return e===o.SortingMode.MultipleTripleStateRemote||e===o.SortingMode.SingleTripleState||e===o.SortingMode.SingleTripleStateRemote},t.isMultipleSorting=function(e){return e===o.SortingMode.MultipleTripleStateRemote||e===o.SortingMode.MultipleRemote},
t.isRemoteSorting=function(e){return e===o.SortingMode.SingleRemote||e===o.SortingMode.MultipleTripleStateRemote||e===o.SortingMode.SingleTripleStateRemote||e===o.SortingMode.MultipleRemote},t.isSortingEnabled=function(e){return e!==o.SortingMode.None}},30493:function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};Object.defineProperty(t,"__esModule",{value:!0});var o=r(563280);t.treeGroupMark={},t.treeDataMark={},t.getExpandedParents=function(e,r){return e.filter((function(e){return e.treeGroupMark===t.treeGroupMark})).map((function(e){return o.getValueByField(e.rowData,r)}))};var a=function(e,r,n,i){void 0===i&&(i=0);var u=r[o.getValueByField(e,n)];if(!u)return[{treeDataMark:t.treeDataMark,rowData:e,treeDeep:i+1}];var l=[{treeGroupMark:t.treeGroupMark,rowData:e,treeDeep:i}];return u.forEach((function(e){var t=a(e,r,n,i+1);l.push.apply(l,t)})),l};t.getTreeGroupChain=function(e,r,a,i,u){void 0===u&&(u=[]);var l=r[e],s=u;i.includes(e)||(i.push(e),s=n(u,[l]));var c=o.getValueByField(l,a);return c?t.getTreeGroupChain(c,r,a,i,s):s},t.restoreFilteredData=function(e){var r=e.data,a=e.originalData,i=e.rowKeyField,u=e.treeGroupKeyField,l=(e.treeGroupsExpanded,[]),s=r.map((function(e){return o.getValueByField(e,i)})),c=a.reduce((function(e,t){return e[o.getValueByField(t,i)]=t,e}),{});return r.forEach((function(e){var r=o.getValueByField(e,u);if(s.includes(r)||!r)l.push(e);else{var a=t.getTreeGroupChain(r,c,u,s);l=n(l,a,[e])}})),l};t.getTreeData=function(e){var r=e.data,n=e.originalData,i=e.rowKeyField,u=e.treeGroupKeyField,l=e.treeGroupsExpanded;r.length!==n.length&&(r=t.restoreFilteredData({data:r,originalData:n,rowKeyField:i,treeGroupKeyField:u,treeGroupsExpanded:l}));var s=function(e){var t=e.data,r=e.treeGroupKeyField,n=e.treeGroupsExpanded,a={},i=[];return t.forEach((function(e){var t,u=null!=(t=o.getValueByField(e,r))?t:void 0;u?(a[u]||(a[u]=[]),n&&!n.includes(u)||a[u].push(e)):i.push(e)})),{dataHash:a,rootElements:i}}({data:r,treeGroupKeyField:u,treeGroupsExpanded:l}),c=s.dataHash,d=s.rootElements,f=[];return d.forEach((function(e){f.push.apply(f,a(e,c,i))})),f}},945220:function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n};Object.defineProperty(t,"__esModule",{value:!0});var o=r(788872),a=r(563280);t.convertToColumnTypes=function(e,r){var i=n(r),u=n(e);return i.forEach((function(e){if(e.dataType&&e.dataType!==o.DataType.Object)for(var r=0;r<u.length;r++){var n=a.getValueByColumn(u[r],e);if(null!=n){switch(e.dataType){case o.DataType.String:if(n.constructor!==String){u[r]=a.replaceValue(u[r],e,n.toString());continue}break;case o.DataType.Number:if(n.constructor!==Number){u[r]=a.replaceValue(u[r],e,Number(n));continue}break;case o.DataType.Date:
if(n.constructor!==Date){u[r]=a.replaceValue(u[r],e,new Date(n));continue}break;case o.DataType.Boolean:if(n.constructor!==Boolean){u[r]=a.replaceValue(u[r],e,t.toBoolean(n));continue}}break}}})),u},t.toBoolean=function(e){if("string"==typeof e)switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case null:return!1}return Boolean(e)}},212490:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getValidationValue=function(e,t,r,n){if(n)return n({value:e,rowData:t,column:r})}},156107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isVirtualScrollingEnabled=function(e){return e&&!1!==e.enabled},t.getVirtualized=function(e,t){var r=[],n=e.scrollTop,o=void 0===n?0:n,a=e.tbodyHeight,i=void 0===a?600:a,u=0,l=0;return t.reduce((function(t,n){var a=e.itemHeight?"number"==typeof e.itemHeight?e.itemHeight:e.itemHeight(n):40;return t>=o-a?i>=-5*a?(i-=a,r.push(n)):l+=a:u=t+a,t+a}),0),{beginHeight:u,endHeight:l,virtualizedData:r}}},427181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(788872);t.updateFilterRowValue=function(e,t){return{columnKey:e,filterRowValue:t,type:n.ActionType.UpdateFilterRowValue}},t.updateFilterRowOperator=function(e,t){return{columnKey:e,filterRowOperator:t,type:n.ActionType.UpdateFilterRowOperator}},t.updateEditorValue=function(e,t,r){return{columnKey:t,rowKeyValue:e,type:n.ActionType.UpdateEditorValue,value:r}},t.updateCellValue=function(e,t,r){return{columnKey:t,rowKeyValue:e,type:n.ActionType.UpdateCellValue,value:r}},t.updateSortDirection=function(e){return{columnKey:e,type:n.ActionType.UpdateSortDirection}},t.closeEditor=function(e,t){return{columnKey:t,rowKeyValue:e,type:n.ActionType.CloseEditor}},t.deleteRow=function(e){return{rowKeyValue:e,type:n.ActionType.DeleteRow}},t.deselectAllRows=function(){return{type:n.ActionType.DeselectAllRows}},t.deselectAllFilteredRows=function(){return{type:n.ActionType.DeselectAllFilteredRows}},t.deselectAllVisibleRows=function(){return{type:n.ActionType.DeselectAllVisibleRows}},t.deselectRow=function(e){return{rowKeyValue:e,type:n.ActionType.DeselectRow}},t.openEditor=function(e,t){return{columnKey:t,rowKeyValue:e,type:n.ActionType.OpenEditor}},t.search=function(e){return{searchText:e,type:n.ActionType.Search}},t.selectAllRows=function(){return{type:n.ActionType.SelectAllRows}},t.selectAllFilteredRows=function(){return{type:n.ActionType.SelectAllFilteredRows}},t.selectAllVisibleRows=function(){return{type:n.ActionType.SelectAllVisibleRows}},t.selectSingleRow=function(e){return{rowKeyValue:e,type:n.ActionType.SelectSingleRow}},t.selectRow=function(e){return{rowKeyValue:e,type:n.ActionType.SelectRow}},t.selectRowsRange=function(e,t){return{rowKeyValueFrom:e,rowKeyValueTo:t,type:n.ActionType.SelectRowsRange}},t.updateGroupsExpanded=function(e){return{groupKey:e,type:n.ActionType.UpdateGroupsExpanded}},t.updateData=function(e){return{data:e,type:n.ActionType.UpdateData}},t.showLoading=function(e){return{text:e,type:n.ActionType.ShowLoading}},
t.hideLoading=function(){return{type:n.ActionType.HideLoading}},t.showNewRow=function(){return{type:n.ActionType.ShowNewRow}},t.hideNewRow=function(){return{type:n.ActionType.HideNewRow}},t.showDetailsRow=function(e){return{rowKeyValue:e,type:n.ActionType.ShowDetailsRow}},t.hideDetailsRow=function(e){return{rowKeyValue:e,type:n.ActionType.HideDetailsRow}},t.saveNewRow=function(e,t){return{rowKeyValue:e,validate:t&&t.validate,type:n.ActionType.SaveNewRow}},t.openRowEditors=function(e){return{rowKeyValue:e,type:n.ActionType.OpenRowEditors}},t.closeRowEditors=function(e){return{rowKeyValue:e,type:n.ActionType.CloseRowEditors}},t.saveRowEditors=function(e,t){return{rowKeyValue:e,validate:t&&t.validate,type:n.ActionType.SaveRowEditors}},t.updateRow=function(e){return{type:n.ActionType.UpdateRow,rowData:e}},t.updatePageIndex=function(e){return{pageIndex:e,type:n.ActionType.UpdatePageIndex}},t.updatePageSize=function(e){return{pageSize:e,type:n.ActionType.UpdatePageSize}},t.updatePagesCount=function(e){return{pagesCount:e,type:n.ActionType.UpdatePagesCount}},t.resizeColumn=function(e,t){return{type:n.ActionType.ResizeColumn,columnKey:e,width:t}},t.reorderRows=function(e,t){return{type:n.ActionType.ReorderRows,rowKeyValue:e,targetRowKeyValue:t}},t.reorderColumns=function(e,t){return{type:n.ActionType.ReorderColumns,columnKey:e,targetColumnKey:t}},t.showColumn=function(e){return{columnKey:e,type:n.ActionType.ShowColumn}},t.hideColumn=function(e){return{columnKey:e,type:n.ActionType.HideColumn}},t.loadData=function(){return{type:n.ActionType.LoadData}},t.clearSingleAction=function(){return{type:n.ActionType.ClearSingleAction}},t.setSingleAction=function(e){return{singleAction:e,type:n.ActionType.SetSingleAction}},t.clearFocused=function(){return{type:n.ActionType.ClearFocused}},t.setFocused=function(e){return{focused:e,type:n.ActionType.SetFocused}},t.moveFocusedRight=function(e){return{settings:e,type:n.ActionType.MoveFocusedRight}},t.moveFocusedLeft=function(e){return{settings:e,type:n.ActionType.MoveFocusedLeft}},t.moveFocusedUp=function(e){return{settings:e,type:n.ActionType.MoveFocusedUp}},t.moveFocusedDown=function(e){return{settings:e,type:n.ActionType.MoveFocusedDown}},t.updateTreeGroupsExpanded=function(e){return{rowKeyValue:e,type:n.ActionType.UpdateTreeGroupsExpanded}}},205833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.newRowId={}},6461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(788872),o=r(414909),a=new function(){this.columnDataType=n.DataType.String,this.columnSortDirection=n.SortDirection.Ascend,this.css=new o.CssClasses,this.fieldDelimiter="."};t.default=a},788872:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Bottom="bottom",e.Top="top",e.TopAndBottom="topAndBottom"}(t.PagingPosition||(t.PagingPosition={})),function(e){e.Boolean="boolean",e.Date="date",e.Number="number",e.Object="object",e.String="string"}(t.DataType||(t.DataType={})),function(e){e.None="none",e.Cell="cell"
}(t.EditingMode||(t.EditingMode={})),function(e){e.ClearFocused="ClearFocused",e.ClearSingleAction="ClearSingleAction",e.CloseEditor="CloseEditor",e.CloseRowEditors="CloseRowEditors",e.DeleteRow="DeleteRow",e.DeselectAllFilteredRows="DeselectAllFilteredRows",e.DeselectAllRows="DeselectAllRows",e.DeselectAllVisibleRows="DeselectAllVisibleRows",e.DeselectRow="DeselectRow",e.HideColumn="HideColumn",e.HideDetailsRow="HideDetailsRow",e.HideLoading="HideLoading",e.HideNewRow="HideNewRow",e.LoadData="LoadData",e.MoveFocusedDown="MoveFocusedDown",e.MoveFocusedLeft="MoveFocusedLeft",e.MoveFocusedRight="MoveFocusedRight",e.MoveFocusedUp="MoveFocusedUp",e.OpenEditor="OpenEditor",e.OpenRowEditors="OpenRowEditors",e.ReorderColumns="ReorderColumns",e.ReorderRows="ReorderRows",e.ResizeColumn="ResizeColumn",e.SaveNewRow="SaveNewRow",e.SaveRowEditors="SaveRowEditors",e.ScrollTable="ScrollTable",e.Search="Search",e.SelectAllFilteredRows="SelectAllFilteredRows",e.SelectAllRows="SelectAllRows",e.SelectAllVisibleRows="SelectAllVisibleRows",e.SelectRow="SelectRow",e.SelectRowsRange="SelectRowsRange",e.SelectSingleRow="SelectSingleRow",e.SetFocused="SetFocused",e.SetSingleAction="SetSingleAction",e.ShowColumn="ShowColumn",e.ShowDetailsRow="ShowDetailsRow",e.ShowLoading="ShowLoading",e.ShowNewRow="ShowNewRow",e.UpdateCellValue="UpdateCellValue",e.UpdateData="UpdateData",e.UpdateEditorValue="UpdateEditorValue",e.UpdateFilterRowOperator="UpdateFilterRowOperator",e.UpdateFilterRowValue="UpdateFilterRowValue",e.UpdateGroupsExpanded="UpdateGroupsExpanded",e.UpdatePageIndex="UpdatePageIndex",e.UpdatePageSize="UpdatePageSize",e.UpdatePagesCount="UpdatePagesCount",e.UpdateRow="UpdateRow",e.UpdateSortDirection="UpdateSortDirection",e.UpdateTreeGroupsExpanded="UpdateTreeGroupsExpanded ",e.UpdateVirtualScrolling="UpdateVirtualScrolling"}(t.ActionType||(t.ActionType={})),function(e){e[e.Esc=27]="Esc",e[e.Enter=13]="Enter"}(t.KeyboardEnum||(t.KeyboardEnum={})),function(e){e.Ascend="ascend",e.Descend="descend"}(t.SortDirection||(t.SortDirection={})),function(e){e.None="none",e.Single="single",e.SingleTripleState="singleTripleState",e.SingleRemote="singleRemote",e.SingleTripleStateRemote="singleTripleStateRemote",e.MultipleRemote="multipleRemote",e.MultipleTripleStateRemote="multipleTripleStateRemote"}(t.SortingMode||(t.SortingMode={})),function(e){e.None="none",e.FilterRow="filterRow"}(t.FilteringMode||(t.FilteringMode={})),function(e){e.Equal="=",e.MoreThan=">",e.LessThan="<",e.MoreThanOrEqual=">=",e.LessThanOrEqual="<=",e.Contains="contains",e.IsEmpty="IsEmpty",e.IsNotEmpty="IsNotEmpty"}(t.FilterOperatorName||(t.FilterOperatorName={}))},692831:(e,t,r)=>{"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(76968)),n(r(611750))},489964:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0
});var o=n(r(294349));t.kaColumnUtils=o;var a=n(r(299033));t.kaDateUtils=a;var i=n(r(828519));t.kaPropsUtils=i;var u=n(r(945220));t.kaTypeUtils=u},936902:e=>{e.exports={}},721153:(e,t,r)=>{"use strict";function n(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}r.d(t,{compose:()=>s,createStore:()=>l});var o="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function u(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t,r){var a;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(n(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(n(1));return r(l)(e,t)}if("function"!=typeof e)throw new Error(n(2));var s=e,c=t,d=[],f=d,p=!1;function g(){f===d&&(f=d.slice())}function m(){if(p)throw new Error(n(3));return c}function h(e){if("function"!=typeof e)throw new Error(n(4));if(p)throw new Error(n(5));var t=!0;return g(),f.push(e),function(){if(t){if(p)throw new Error(n(6));t=!1,g();var r=f.indexOf(e);f.splice(r,1),d=null}}}function y(e){if(!u(e))throw new Error(n(7));if(void 0===e.type)throw new Error(n(8));if(p)throw new Error(n(9));try{p=!0,c=s(c,e)}finally{p=!1}for(var t=d=f,r=0;r<t.length;r++){(0,t[r])()}return e}function v(e){if("function"!=typeof e)throw new Error(n(10));s=e,y({type:i.REPLACE})}function w(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(n(11));function r(){e.next&&e.next(m())}return r(),{unsubscribe:t(r)}}})[o]=function(){return this},e}return y({type:i.INIT}),(a={dispatch:y,subscribe:h,getState:m,replaceReducer:v})[o]=w,a}function s(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}}}]);