@owp/core 2.5.51 → 2.5.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/dist/_virtual/index16.js +4 -4
  2. package/dist/_virtual/index17.js +4 -4
  3. package/dist/_virtual/index18.js +4 -4
  4. package/dist/_virtual/index19.js +4 -4
  5. package/dist/_virtual/index3.js +2 -2
  6. package/dist/_virtual/index4.js +2 -2
  7. package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js +49 -32
  8. package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
  9. package/dist/components/OwpLoading/OwpLoading.js +7 -6
  10. package/dist/components/OwpLoading/OwpLoading.js.map +1 -1
  11. package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js +100 -28
  12. package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js.map +1 -1
  13. package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js +4 -4
  14. package/dist/components/OwpSuspense/OwpSuspense.js +66 -60
  15. package/dist/components/OwpSuspense/OwpSuspense.js.map +1 -1
  16. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +352 -297
  17. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  18. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +654 -604
  19. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  20. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +516 -425
  21. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  22. package/dist/configs/theme.js +26 -22
  23. package/dist/configs/theme.js.map +1 -1
  24. package/dist/constants/gridTheme.js +40 -29
  25. package/dist/constants/gridTheme.js.map +1 -1
  26. package/dist/contexts/OwpUiProvider.js +37 -34
  27. package/dist/contexts/OwpUiProvider.js.map +1 -1
  28. package/dist/features/themePreview/components/ThemePreviewCanvas.js +8 -8
  29. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +27 -27
  30. package/dist/features/themePreview/components/ThemePreviewColorField.js +4 -4
  31. package/dist/features/themePreview/components/ThemePreviewControls.js +8 -8
  32. package/dist/features/themePreview/configs/grid.js +5 -7
  33. package/dist/features/themePreview/configs/grid.js.map +1 -1
  34. package/dist/features/themePreview/configs/previewStorage.js +26 -32
  35. package/dist/features/themePreview/configs/previewStorage.js.map +1 -1
  36. package/dist/features/themePreview/configs/settings.js +13 -12
  37. package/dist/features/themePreview/configs/settings.js.map +1 -1
  38. package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +5 -5
  39. package/dist/features/themePreview/dialogs/index.js +5 -0
  40. package/dist/features/themePreview/dialogs/index.js.map +1 -0
  41. package/dist/features/themePreview/utils/themePreviewDefinitions.js +4 -12
  42. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
  43. package/dist/features/themePreview/utils/themePreviewExport.js +48 -37
  44. package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -1
  45. package/dist/hooks/internal/useNavigationActiveRouteRemount.js +19 -16
  46. package/dist/hooks/internal/useNavigationActiveRouteRemount.js.map +1 -1
  47. package/dist/hooks/internal/useRouteTransitionLoading.js +49 -0
  48. package/dist/hooks/internal/useRouteTransitionLoading.js.map +1 -0
  49. package/dist/index.js +67 -66
  50. package/dist/layout/Layout.js +107 -34
  51. package/dist/layout/Layout.js.map +1 -1
  52. package/dist/layout/components/navigation/NavBadge.js +8 -8
  53. package/dist/layout/components/navigation/NavBadge.js.map +1 -1
  54. package/dist/layout/components/navigation/NavItem.js +19 -15
  55. package/dist/layout/components/navigation/NavItem.js.map +1 -1
  56. package/dist/layout/components/navigation/Navigation.js +25 -22
  57. package/dist/layout/components/navigation/Navigation.js.map +1 -1
  58. package/dist/layout/components/navigation/NavigationMenu.js +25 -18
  59. package/dist/layout/components/navigation/NavigationMenu.js.map +1 -1
  60. package/dist/layout/components/navigation/vertical/NavVerticalLayout.js +69 -44
  61. package/dist/layout/components/navigation/vertical/NavVerticalLayout.js.map +1 -1
  62. package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js +71 -64
  63. package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js.map +1 -1
  64. package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js +15 -14
  65. package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js.map +1 -1
  66. package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js +16 -14
  67. package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js.map +1 -1
  68. package/dist/layout/components/navigation/vertical/types/NavVerticalLink.js +17 -12
  69. package/dist/layout/components/navigation/vertical/types/NavVerticalLink.js.map +1 -1
  70. package/dist/layout/components/toggles/NavigationSearchToggle.js +164 -165
  71. package/dist/layout/components/toggles/NavigationSearchToggle.js.map +1 -1
  72. package/dist/layout/components/toggles/NavigationShortcutsToggle.js +88 -95
  73. package/dist/layout/components/toggles/NavigationShortcutsToggle.js.map +1 -1
  74. package/dist/layout/components/toggles/ThemePreviewToggle.js +26 -27
  75. package/dist/layout/components/toggles/ThemePreviewToggle.js.map +1 -1
  76. package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
  77. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
  78. package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
  79. package/dist/owp-app.css +1 -1
  80. package/dist/types/components/OwpErrorBoundary/OwpErrorBoundary.d.ts +4 -0
  81. package/dist/types/components/OwpErrorBoundary/index.d.ts +1 -1
  82. package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +2 -2
  83. package/dist/types/components/OwpPicker/internal/DatePickerInput.d.ts +1 -1
  84. package/dist/types/components/OwpSuspense/OwpSuspense.d.ts +1 -0
  85. package/dist/types/components/OwpTable/internal/OwpTableBase.d.ts +1 -1
  86. package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -1
  87. package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -1
  88. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +7 -1
  89. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +2 -0
  90. package/dist/types/configs/theme/index.d.ts +2 -0
  91. package/dist/types/constants/gridTheme.d.ts +4 -0
  92. package/dist/types/contexts/OwpAppContext.d.ts +1 -1
  93. package/dist/types/features/themePreview/configs/grid.d.ts +2 -4
  94. package/dist/types/features/themePreview/configs/settings.d.ts +14 -4
  95. package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +1 -1
  96. package/dist/types/features/themePreview/utils/themePreviewSettings.d.ts +1 -1
  97. package/dist/types/hooks/internal/useRouteTransitionLoading.d.ts +27 -0
  98. package/dist/types/index.d.ts +1 -1
  99. package/dist/types/layout/components/navigation/NavItem.d.ts +2 -3
  100. package/dist/types/layout/components/navigation/NavigationMenu.d.ts +5 -5
  101. package/dist/types/layout/components/navigation/vertical/NavVerticalLayout.d.ts +1 -1
  102. package/dist/types/layout/components/navigation/vertical/types/NavVerticalCollapse.d.ts +1 -1
  103. package/dist/types/layout/components/navigation/vertical/types/NavVerticalGroup.d.ts +1 -1
  104. package/dist/types/layout/components/navigation/vertical/types/NavVerticalItem.d.ts +1 -1
  105. package/dist/types/layout/components/navigation/vertical/types/NavVerticalLink.d.ts +1 -1
  106. package/dist/types/store/atoms/owpSettingsAtoms.d.ts +1 -1
  107. package/dist/types/types/OwpGridThemeTypes.d.ts +4 -0
  108. package/dist/types/types/OwpSettingsTypes.d.ts +7 -0
  109. package/dist/types/types/index.d.ts +1 -1
  110. package/dist/types/utils/internal/navigationSearchUtils.d.ts +22 -0
  111. package/dist/types/utils/internal/navigationUtils.d.ts +22 -27
  112. package/dist/utils/internal/navigationSearchUtils.js +44 -0
  113. package/dist/utils/internal/navigationSearchUtils.js.map +1 -0
  114. package/dist/utils/internal/navigationUtils.js +38 -123
  115. package/dist/utils/internal/navigationUtils.js.map +1 -1
  116. package/dist/utils/treeGridUtil.js +123 -118
  117. package/dist/utils/treeGridUtil.js.map +1 -1
  118. package/package.json +1 -2
  119. package/dist/features/themePreview.js +0 -76
  120. package/dist/features/themePreview.js.map +0 -1
  121. package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +0 -14
  122. package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js.map +0 -1
  123. package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/defaults.js +0 -24
  124. package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/defaults.js.map +0 -1
  125. package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/trim.js +0 -10
  126. package/dist/node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/trim.js.map +0 -1
  127. package/features/themePreview.d.ts +0 -3
  128. package/features/themePreview.js +0 -1
@@ -1,15 +1,15 @@
1
- var $n = Object.defineProperty;
2
- var i = (e, n) => $n(e, "name", { value: n, configurable: !0 });
3
- import { getTreeGridTextResourceUrl as Pn, TREEGRID_CELL_CHANGED_CLASS as Ye, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as Dn } from "../../../constants/treeGrid.js";
4
- import { isTreeGridRowAddedById as w, getTreeGridAddedRowHighlightColumns as te, getTreeGridAddedRowEditableColumns as xe, getTreeGridCellComparableValue as Ee, clearTreeGridCellHighlightById as Ze, highlightTreeGridCellById as qe, normalizeTreeGridExternalRows as vn, getTreeGridAddedRowBaselineValue as Bn, removeTreeGridAddedRowHighlightColumn as Fn, appendTreeGridAddedRowHighlightColumn as Nn } from "../../../utils/treeGridUtil.js";
5
- import { applyTreeGridLayoutToGrid as Un } from "./treeGridLayout.js";
6
- import { resolveTreeGridSelectedRows as kn } from "./treeGridSelection.js";
7
- import { TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as Mn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as be, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as Ie, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as we, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as ye, TREE_GRID_THEME_WRAPPER_CLASS as Vn, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as Xn, TREE_GRID_ERROR_CELL_CLASS as Jn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Wn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as jn } from "./treeGridTheme.js";
8
- import { countTreeGridPerf as Qe, logTreeGridPerf as Kn, measureTreeGridPerf as en } from "./utils/perf.js";
1
+ var Un = Object.defineProperty;
2
+ var i = (e, n) => Un(e, "name", { value: n, configurable: !0 });
3
+ import { getTreeGridTextResourceUrl as Bn, TREEGRID_CELL_CHANGED_CLASS as Qe, TREEGRID_ADDED_ROW_BACKGROUND_COLOR as Fn } from "../../../constants/treeGrid.js";
4
+ import { isTreeGridRowAddedById as y, getTreeGridAddedRowHighlightColumns as te, getTreeGridAddedRowEditableColumns as Ie, getTreeGridCellComparableValue as Se, clearTreeGridCellHighlightById as en, highlightTreeGridCellById as nn, normalizeTreeGridExternalRows as Nn, getTreeGridAddedRowBaselineValue as Vn, removeTreeGridAddedRowHighlightColumn as kn, appendTreeGridAddedRowHighlightColumn as Mn } from "../../../utils/treeGridUtil.js";
5
+ import { applyTreeGridLayoutToGrid as Xn } from "./treeGridLayout.js";
6
+ import { resolveTreeGridSelectedRows as Jn } from "./treeGridSelection.js";
7
+ import { TREE_GRID_HOVER_CELL_BORDER_COLOR_CSS_VARIABLE as Wn, TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as jn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as De, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as ye, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as $e, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as Pe, TREE_GRID_THEME_WRAPPER_CLASS as Hn, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as Kn, TREE_GRID_ERROR_CELL_CLASS as zn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Yn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as Zn } from "./treeGridTheme.js";
8
+ import { countTreeGridPerf as tn, logTreeGridPerf as qn, measureTreeGridPerf as rn } from "./utils/perf.js";
9
9
  import { debounce as ee } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
10
- import { isEmpty as Hn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
11
- import { get as zn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
- const ui = 300, Yn = 3, Zn = {
10
+ import { isEmpty as Qn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
11
+ import { get as et } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
+ const Ci = 300, nt = 3, tt = {
13
13
  1: {
14
14
  onEnter: "TabDownEdit",
15
15
  onEnterEdit: "AcceptEdit AND TabDownEdit,1"
@@ -26,38 +26,38 @@ const ui = 300, Yn = 3, Zn = {
26
26
  onEnter: "TabRightEditAdd",
27
27
  onEnterEdit: "AcceptEdit AND TabRightEditAdd,1"
28
28
  }
29
- }, qn = [240, 240, 240], Qn = [248, 248, 248], et = [255, 255, 255], nt = [255, 255, 254], tt = [242, 242, 242], rt = [
29
+ }, rt = [240, 240, 240], it = [248, 248, 248], st = [191, 221, 242], ot = [255, 255, 255], ct = [255, 255, 254], lt = [242, 242, 242], dt = [
30
30
  [255, 210, 210],
31
31
  [249, 209, 209],
32
32
  [115, 16, 11]
33
- ], it = "transparent", $e = "Button", st = /* @__PURE__ */ new Set(["Panel"]), Pe = Ye.split(/\s+/).filter(
33
+ ], ft = "transparent", ve = "Button", ut = /* @__PURE__ */ new Set(["Panel"]), Ue = Qe.split(/\s+/).filter(
34
34
  Boolean
35
- ), ot = /* @__PURE__ */ new Set([
35
+ ), at = /* @__PURE__ */ new Set([
36
36
  "Text",
37
37
  "Lines",
38
38
  "Int",
39
39
  "Float",
40
40
  "Date",
41
41
  "Pass"
42
- ]), De = /* @__PURE__ */ i((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), ct = {
42
+ ]), Be = /* @__PURE__ */ i((e) => !!(e && /\b(?:EnterMode|OnEnterEdit|OnEnter)\s*[:=]/.test(e)), "hasTreeGridExplicitEnterMode"), Tt = {
43
43
  CustomScroll: "1",
44
44
  TouchScroll: "1"
45
- }, lt = {
45
+ }, St = {
46
46
  Visible: "1",
47
47
  CanHide: "0",
48
48
  Delete: "1",
49
49
  Width: "33"
50
- }, dt = {
50
+ }, pt = {
51
51
  Spanned: "1"
52
- }, H = {
52
+ }, K = {
53
53
  OnClickCell: "Focus"
54
54
  }, z = {
55
55
  OnClickPanelSelectAll: "SelectAll OR DeselectAll"
56
- }, I = {
56
+ }, D = {
57
57
  LoadPage: "",
58
58
  RenderPage: "",
59
59
  RenderProgressText: ""
60
- }, ut = {
60
+ }, Et = {
61
61
  EditFrom: "",
62
62
  EditTo: "#OwpSoftChange 240ms",
63
63
  ChangeFrom: "",
@@ -66,21 +66,39 @@ const ui = 300, Yn = 3, Zn = {
66
66
  UndoChangeTo: "#OwpSoftRevert 280ms",
67
67
  RedoChangeFrom: "",
68
68
  RedoChangeTo: "#OwpSoftChange 240ms"
69
- }, ft = {
69
+ }, Rt = {
70
+ Select: "#OwpSoftRowSelect 140ms",
71
+ SelectRows: "#OwpSoftRowSelect 140ms",
72
+ RedoSelect: "#OwpSoftRowSelect 140ms",
73
+ UndoDeselect: "#OwpSoftRowSelect 140ms",
74
+ Deselect: "#OwpSoftRowDeselect 120ms",
75
+ DeselectRows: "#OwpSoftRowDeselect 120ms",
76
+ UndoSelect: "#OwpSoftRowDeselect 120ms",
77
+ RedoDeselect: "#OwpSoftRowDeselect 120ms",
70
78
  Add: "#OwpSoftRowAdd 220ms",
71
79
  AddRows: "#OwpSoftRowAdd 220ms",
72
80
  RedoAdd: "#OwpSoftRowAdd 220ms",
73
- Delete: "#OwpSoftRowRemove 220ms",
74
- DeleteRows: "#OwpSoftRowRemove 220ms",
75
- DeleteVisible: "#OwpSoftRowRemove 220ms",
76
- DeleteVisibleRows: "#OwpSoftRowRemove 220ms",
77
- UndoAdd: "#OwpSoftRowRemove 220ms",
78
- RedoDelete: "#OwpSoftRowRemove 220ms",
79
- RedoDeleteVisible: "#OwpSoftRowRemove 220ms"
80
- }, U = {
81
- ...ut,
82
- ...ft
83
- }, nn = "Panel", tn = ["Formula", "FormulaFormula"], at = /<Grid\b[^>]*>/i, Tt = /<\/Grid\s*>/i, Et = /<Toolbar\b[^>]*\/?>/i, pt = [
81
+ Undelete: "#OwpSoftRowAdd 220ms",
82
+ UndeleteRows: "#OwpSoftRowAdd 220ms",
83
+ UndeleteVisible: "#OwpSoftRowAdd 220ms",
84
+ UndeleteVisibleRows: "#OwpSoftRowAdd 220ms",
85
+ UndoDelete: "#OwpSoftRowAdd 220ms",
86
+ UndoDeleteVisible: "#OwpSoftRowAdd 220ms",
87
+ RedoUndelete: "#OwpSoftRowAdd 220ms",
88
+ RedoUndeleteVisible: "#OwpSoftRowAdd 220ms",
89
+ Delete: "#OwpSoftRowRemove 120ms",
90
+ DeleteRows: "#OwpSoftRowRemove 120ms",
91
+ DeleteVisible: "#OwpSoftRowRemove 120ms",
92
+ DeleteVisibleRows: "#OwpSoftRowRemove 120ms",
93
+ UndoAdd: "#OwpSoftRowRemove 120ms",
94
+ RedoDelete: "#OwpSoftRowRemove 120ms",
95
+ RedoDeleteVisible: "#OwpSoftRowRemove 120ms",
96
+ UndoUndelete: "#OwpSoftRowRemove 120ms",
97
+ UndoUndeleteVisible: "#OwpSoftRowRemove 120ms"
98
+ }, N = {
99
+ ...Et,
100
+ ...Rt
101
+ }, sn = "Panel", on = ["Formula", "FormulaFormula"], Ct = /<Grid\b[^>]*>/i, Gt = /<\/Grid\s*>/i, gt = /<Toolbar\b[^>]*\/?>/i, ht = [
84
102
  "CustomScroll",
85
103
  "CustomHScroll",
86
104
  "Undo",
@@ -89,11 +107,11 @@ const ui = 300, Yn = 3, Zn = {
89
107
  "SelectingSingle",
90
108
  "SuppressCfg",
91
109
  "TouchScroll"
92
- ], rn = [
110
+ ], cn = [
93
111
  "CustomScroll",
94
112
  "CustomHScroll",
95
113
  "TouchScroll"
96
- ], Ct = {
114
+ ], At = {
97
115
  addRow: ["Add", "AddRows", "AddChildren", "AddRowsChildren"],
98
116
  deleteRow: [
99
117
  "Delete",
@@ -113,75 +131,84 @@ const ui = 300, Yn = 3, Zn = {
113
131
  "UndeleteRowsChildren",
114
132
  "UndeleteVisibleRowsChildren"
115
133
  ],
116
- selectRow: ["Select", "SelectRows", "Deselect", "DeselectRows"]
117
- }, re = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), ve = /* @__PURE__ */ i((e, n) => {
134
+ selectRow: [
135
+ "Select",
136
+ "SelectRows",
137
+ "RedoSelect",
138
+ "UndoDeselect",
139
+ "Deselect",
140
+ "DeselectRows",
141
+ "UndoSelect",
142
+ "RedoDeselect"
143
+ ]
144
+ }, re = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ i((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), Fe = /* @__PURE__ */ i((e, n) => {
118
145
  Object.entries(n).forEach(([t, r]) => {
119
146
  t in e || (e[t] = r);
120
147
  });
121
- }, "assignMissingTreeGridJsonRecordFields"), P = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ie = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), St = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), M = /* @__PURE__ */ i((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), pe = /* @__PURE__ */ i((e, n) => !P(e) && !ie(n), "isTreeGridCheckboxSelectionMode"), sn = /* @__PURE__ */ i((e) => {
148
+ }, "assignMissingTreeGridJsonRecordFields"), P = /* @__PURE__ */ i((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), ie = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), mt = /* @__PURE__ */ i((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), k = /* @__PURE__ */ i((e, n) => String(e ?? "").trim().toLowerCase() === n.toLowerCase(), "isTreeGridConfigValue"), pe = /* @__PURE__ */ i((e, n) => !P(e) && !ie(n), "isTreeGridCheckboxSelectionMode"), ln = /* @__PURE__ */ i((e) => {
122
149
  const n = e.Cfg;
123
- return Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [];
150
+ return Array.isArray(n) ? n.filter(R) : R(n) ? [n] : [];
124
151
  }, "getTreeGridJsonCfgRecords"), Z = /* @__PURE__ */ i((e, n) => {
125
152
  let t;
126
- return sn(e).forEach((r) => {
153
+ return ln(e).forEach((r) => {
127
154
  n in r && (t = r[n]);
128
155
  }), t;
129
- }, "getTreeGridJsonCfgValue"), Gt = /* @__PURE__ */ i((e, n) => {
156
+ }, "getTreeGridJsonCfgValue"), _t = /* @__PURE__ */ i((e, n) => {
130
157
  const t = {};
131
158
  return n.forEach((r) => {
132
159
  const s = Z(e, r);
133
160
  s !== void 0 && (t[r] = s);
134
161
  }), t;
135
- }, "getTreeGridJsonCfgValues"), Rt = /* @__PURE__ */ i((e) => String(e).trim() === "1", "isTreeGridStandardScrollbarValue"), gt = /* @__PURE__ */ i((e) => rn.every((n) => {
162
+ }, "getTreeGridJsonCfgValues"), Ot = /* @__PURE__ */ i((e) => String(e).trim() === "1", "isTreeGridStandardScrollbarValue"), Lt = /* @__PURE__ */ i((e) => cn.every((n) => {
136
163
  const t = e[n];
137
- return t === void 0 || Rt(t);
138
- }), "canApplyTreeGridStableScrollbarDefaults"), on = /* @__PURE__ */ i((e) => {
164
+ return t === void 0 || Ot(t);
165
+ }), "canApplyTreeGridStableScrollbarDefaults"), dn = /* @__PURE__ */ i((e) => {
139
166
  const n = {};
140
- return gt(e) && Object.entries(ct).forEach(
167
+ return Lt(e) && Object.entries(Tt).forEach(
141
168
  ([t, r]) => {
142
169
  e[t] === void 0 && (n[t] = r);
143
170
  }
144
171
  ), n;
145
- }, "getTreeGridStableScrollbarDefaultAttributes"), cn = /* @__PURE__ */ i((e) => Object.keys(e).length > 0, "hasTreeGridDefaultAttributes"), ln = /* @__PURE__ */ i((e, n) => {
172
+ }, "getTreeGridStableScrollbarDefaultAttributes"), fn = /* @__PURE__ */ i((e) => Object.keys(e).length > 0, "hasTreeGridDefaultAttributes"), un = /* @__PURE__ */ i((e, n) => {
146
173
  const t = new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i").exec(
147
174
  e
148
175
  );
149
176
  return t == null ? void 0 : t[2];
150
- }, "getTreeGridXmlTagAttributeValue"), k = /* @__PURE__ */ i((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), dn = /* @__PURE__ */ i((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), V = /* @__PURE__ */ i((e, n, t) => {
177
+ }, "getTreeGridXmlTagAttributeValue"), V = /* @__PURE__ */ i((e, n) => new RegExp(`\\b${n}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), an = /* @__PURE__ */ i((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), M = /* @__PURE__ */ i((e, n, t) => {
151
178
  const r = e.endsWith("/>") ? e.length - 2 : e.length - 1;
152
- return `${e.slice(0, r)} ${n}="${dn(
179
+ return `${e.slice(0, r)} ${n}="${an(
153
180
  t
154
181
  )}"${e.slice(r)}`;
155
- }, "appendTreeGridXmlTagAttribute"), se = /* @__PURE__ */ i((e, n, t) => k(e, n) ? e.replace(
182
+ }, "appendTreeGridXmlTagAttribute"), se = /* @__PURE__ */ i((e, n, t) => V(e, n) ? e.replace(
156
183
  new RegExp(`\\b${n}\\s*=\\s*(['"])(.*?)\\1`, "i"),
157
- () => `${n}="${dn(t)}"`
158
- ) : V(e, n, t), "setTreeGridXmlTagAttribute"), X = /* @__PURE__ */ i((e, n) => {
184
+ () => `${n}="${an(t)}"`
185
+ ) : M(e, n, t), "setTreeGridXmlTagAttribute"), X = /* @__PURE__ */ i((e, n) => {
159
186
  let t = e;
160
187
  return Object.entries(n).forEach(([r, s]) => {
161
188
  t = se(t, r, s);
162
189
  }), t;
163
- }, "setTreeGridXmlTagAttributes"), D = /* @__PURE__ */ i((e, n) => {
190
+ }, "setTreeGridXmlTagAttributes"), v = /* @__PURE__ */ i((e, n) => {
164
191
  let t = e;
165
192
  return Object.entries(n).forEach(([r, s]) => {
166
- k(t, r) || (t = V(t, r, s));
193
+ V(t, r) || (t = M(t, r, s));
167
194
  }), t;
168
- }, "appendMissingTreeGridXmlTagAttributes"), L = /* @__PURE__ */ i((e) => {
169
- var f;
195
+ }, "appendMissingTreeGridXmlTagAttributes"), O = /* @__PURE__ */ i((e) => {
196
+ var u;
170
197
  const n = /<!--[\s\S]*?-->|<\?[\s\S]*?\?>|<!\[CDATA\[[\s\S]*?\]\]>|<\/?([A-Za-z][\w:-]*)\b[^>]*>/g, t = {
171
198
  cfgValues: {}
172
199
  };
173
200
  let r, s = 0, c = !1;
174
201
  for (; r = n.exec(e); ) {
175
- const a = r[0], T = (f = r[1]) == null ? void 0 : f.toLowerCase();
202
+ const a = r[0], T = (u = r[1]) == null ? void 0 : u.toLowerCase();
176
203
  if (!T || a.startsWith("<!--") || a.startsWith("<?") || a.startsWith("<!"))
177
204
  continue;
178
- !t.hasFastPanel && k(a, "FastPanel") && (t.hasFastPanel = !0);
179
- const G = a.startsWith("</"), R = /\/>\s*$/.test(a);
205
+ !t.hasFastPanel && V(a, "FastPanel") && (t.hasFastPanel = !0);
206
+ const C = a.startsWith("</"), G = /\/>\s*$/.test(a);
180
207
  if (!c) {
181
- !G && T === "grid" && (c = !0, t.gridOpenTagEndIndex = r.index + a.length, s = R ? 0 : 1);
208
+ !C && T === "grid" && (c = !0, t.gridOpenTagEndIndex = r.index + a.length, s = G ? 0 : 1);
182
209
  continue;
183
210
  }
184
- if (G) {
211
+ if (C) {
185
212
  if (s = Math.max(0, s - 1), T === "grid" && s === 0)
186
213
  break;
187
214
  continue;
@@ -189,25 +216,25 @@ const ui = 300, Yn = 3, Zn = {
189
216
  s === 1 && (T === "cfg" ? (t.defaultCfgTag || (t.defaultCfgTag = {
190
217
  index: r.index,
191
218
  tag: a
192
- }), pt.forEach((h) => {
193
- const _ = ln(a, h);
194
- _ !== void 0 && (t.cfgValues[h] = _);
219
+ }), ht.forEach((A) => {
220
+ const _ = un(a, A);
221
+ _ !== void 0 && (t.cfgValues[A] = _);
195
222
  }), t.lastCfgEndIndex = r.index + a.length) : T === "actions" && !t.defaultActionsTag ? t.defaultActionsTag = {
196
223
  index: r.index,
197
224
  tag: a
198
- } : T === "panel" ? (t.hasTopLevelPanelTag = !0, !t.defaultPanelTag && ht(a) && (t.defaultPanelTag = {
225
+ } : T === "panel" ? (t.hasTopLevelPanelTag = !0, !t.defaultPanelTag && wt(a) && (t.defaultPanelTag = {
199
226
  index: r.index,
200
227
  tag: a
201
228
  })) : T === "animations" && !t.animationsTag && (t.animationsTag = {
202
229
  index: r.index,
203
230
  tag: a
204
- })), R || (s += 1);
231
+ })), G || (s += 1);
205
232
  }
206
233
  return t;
207
- }, "scanTreeGridXmlDefaultLayout"), ht = /* @__PURE__ */ i((e) => {
208
- const n = ln(e, "Name");
234
+ }, "scanTreeGridXmlDefaultLayout"), wt = /* @__PURE__ */ i((e) => {
235
+ const n = un(e, "Name");
209
236
  return n === void 0 || n === "" || n.toLowerCase() === "panel";
210
- }, "isTreeGridXmlDefaultPanelTag"), At = /* @__PURE__ */ i((e) => {
237
+ }, "isTreeGridXmlDefaultPanelTag"), xt = /* @__PURE__ */ i((e) => {
211
238
  const n = /<([A-Za-z][\w:-]*)\b[^>]*(?:\/>|>)/g, t = [];
212
239
  let r;
213
240
  for (; r = n.exec(e); ) {
@@ -222,21 +249,21 @@ const ui = 300, Yn = 3, Zn = {
222
249
  });
223
250
  }
224
251
  return t;
225
- }, "getLeadingTreeGridXmlHeaderTags"), mt = /* @__PURE__ */ i((e) => {
226
- const n = At(e);
252
+ }, "getLeadingTreeGridXmlHeaderTags"), bt = /* @__PURE__ */ i((e) => {
253
+ const n = xt(e);
227
254
  if (n.length <= 1)
228
255
  return {
229
256
  headContent: e,
230
257
  isApplied: !1
231
258
  };
232
259
  const [t, ...r] = n;
233
- if (k(t.tag, "PanelRowSpan") || r.some(({ tag: c }) => /\bPanel[A-Za-z0-9_]*\s*=/i.test(c)))
260
+ if (V(t.tag, "PanelRowSpan") || r.some(({ tag: c }) => /\bPanel[A-Za-z0-9_]*\s*=/i.test(c)))
234
261
  return {
235
262
  headContent: e,
236
263
  isApplied: !1
237
264
  };
238
265
  let s = t.tag;
239
- return k(s, "Spanned") || (s = V(s, "Spanned", 1)), s = V(
266
+ return V(s, "Spanned") || (s = M(s, "Spanned", 1)), s = M(
240
267
  s,
241
268
  "PanelRowSpan",
242
269
  n.length
@@ -246,78 +273,78 @@ const ui = 300, Yn = 3, Zn = {
246
273
  )}`,
247
274
  isApplied: !0
248
275
  };
249
- }, "applyTreeGridXmlHeadPanelRowSpanDefault"), _t = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), un = /* @__PURE__ */ i((e) => pn(e.cfgValues) && (!!e.defaultPanelTag || !e.hasTopLevelPanelTag), "isTreeGridXmlSelectionPanelSpannedDefaultLayout"), fn = /* @__PURE__ */ i((e) => un(e) || Cn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), an = /* @__PURE__ */ i((e, n) => {
250
- if (n.gridOpenTagEndIndex === void 0 || !fn(n))
276
+ }, "applyTreeGridXmlHeadPanelRowSpanDefault"), It = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlPanelSpannedInsertionIndex"), Tn = /* @__PURE__ */ i((e) => Cn(e.cfgValues) && (!!e.defaultPanelTag || !e.hasTopLevelPanelTag), "isTreeGridXmlSelectionPanelSpannedDefaultLayout"), Sn = /* @__PURE__ */ i((e) => Tn(e) || Gn(e.cfgValues), "isTreeGridXmlPanelSpannedDefaultLayout"), pn = /* @__PURE__ */ i((e, n) => {
277
+ if (n.gridOpenTagEndIndex === void 0 || !Sn(n))
251
278
  return e;
252
279
  const t = n.defaultPanelTag;
253
280
  if (t) {
254
- const s = D(
281
+ const s = v(
255
282
  t.tag,
256
- dt
283
+ pt
257
284
  );
258
285
  return s === t.tag ? e : `${e.slice(0, t.index)}${s}${e.slice(
259
286
  t.index + t.tag.length
260
287
  )}`;
261
288
  }
262
- const r = _t(n);
289
+ const r = It(n);
263
290
  return r === void 0 ? e : `${e.slice(0, r)}
264
291
  <Panel Spanned="1" />${e.slice(
265
292
  r
266
293
  )}`;
267
- }, "applyTreeGridXmlDefaultPanelSpannedLayout"), Lt = /* @__PURE__ */ i((e, n) => un(n) ? an(e, n) : e, "applyTreeGridXmlDefaultSelectionPanelSpannedLayout"), Ot = /* @__PURE__ */ i((e) => {
294
+ }, "applyTreeGridXmlDefaultPanelSpannedLayout"), Dt = /* @__PURE__ */ i((e, n) => Tn(n) ? pn(e, n) : e, "applyTreeGridXmlDefaultSelectionPanelSpannedLayout"), yt = /* @__PURE__ */ i((e) => {
268
295
  const n = e.trim();
269
- return !n || n.startsWith("{") ? e : Lt(
296
+ return !n || n.startsWith("{") ? e : Dt(
270
297
  e,
271
- L(e)
298
+ O(e)
272
299
  );
273
- }, "applyTreeGridDefaultPanelSpannedLayout"), xt = /* @__PURE__ */ i((e) => {
300
+ }, "applyTreeGridDefaultPanelSpannedLayout"), $t = /* @__PURE__ */ i((e) => {
274
301
  if (!/<Head\b/i.test(e))
275
302
  return e;
276
- const n = L(e);
277
- if (n.gridOpenTagEndIndex === void 0 || !fn(n))
303
+ const n = O(e);
304
+ if (n.gridOpenTagEndIndex === void 0 || !Sn(n))
278
305
  return e;
279
306
  let t = !1;
280
307
  const r = e.replace(
281
308
  /(<Head\b[^>]*>)([\s\S]*?)(<\/Head>)/i,
282
- (s, c, f, a) => {
283
- const T = mt(f);
309
+ (s, c, u, a) => {
310
+ const T = bt(u);
284
311
  return T.isApplied ? (t = !0, `${c}${T.headContent}${a}`) : s;
285
312
  }
286
313
  );
287
- return t ? an(
314
+ return t ? pn(
288
315
  r,
289
- L(r)
316
+ O(r)
290
317
  ) : e;
291
- }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), Tn = /* @__PURE__ */ i((e) => pe(
318
+ }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), En = /* @__PURE__ */ i((e) => pe(
292
319
  Z(e, "Selecting"),
293
320
  Z(e, "SelectingSingle")
294
- ), "isTreeGridJsonCheckboxSelectionLayout"), En = /* @__PURE__ */ i((e) => pe(
321
+ ), "isTreeGridJsonCheckboxSelectionLayout"), Rn = /* @__PURE__ */ i((e) => pe(
295
322
  e.Selecting,
296
323
  e.SelectingSingle
297
- ), "isTreeGridXmlCheckboxSelectionLayout"), pn = /* @__PURE__ */ i((e) => !P(e.Selecting), "isTreeGridXmlSelectingLayout"), Cn = /* @__PURE__ */ i((e) => M(e.Undo, "1") && M(e.Deleting, "2") && M(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), bt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), It = /* @__PURE__ */ i((e, n) => {
298
- if (n.gridOpenTagEndIndex === void 0 || !pn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
324
+ ), "isTreeGridXmlCheckboxSelectionLayout"), Cn = /* @__PURE__ */ i((e) => !P(e.Selecting), "isTreeGridXmlSelectingLayout"), Gn = /* @__PURE__ */ i((e) => k(e.Undo, "1") && k(e.Deleting, "2") && k(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), Pt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), vt = /* @__PURE__ */ i((e, n) => {
325
+ if (n.gridOpenTagEndIndex === void 0 || !Cn(n.cfgValues) || /\bOnClickCell\s*=/i.test(e))
299
326
  return e;
300
327
  const t = n.defaultActionsTag;
301
328
  if (t) {
302
- const s = D(
329
+ const s = v(
303
330
  t.tag,
304
- H
331
+ K
305
332
  );
306
333
  return s === t.tag ? e : `${e.slice(0, t.index)}${s}${e.slice(
307
334
  t.index + t.tag.length
308
335
  )}`;
309
336
  }
310
- const r = bt(n);
337
+ const r = Pt(n);
311
338
  return r === void 0 ? e : `${e.slice(0, r)}
312
339
  <Actions OnClickCell="Focus" />${e.slice(
313
340
  r
314
341
  )}`;
315
- }, "applyTreeGridXmlDefaultCellClickActionLayout"), wt = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), yt = /* @__PURE__ */ i((e, n) => {
316
- if (n.gridOpenTagEndIndex === void 0 || !En(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
342
+ }, "applyTreeGridXmlDefaultCellClickActionLayout"), Ut = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlSelectAllPanelActionInsertionIndex"), Bt = /* @__PURE__ */ i((e, n) => {
343
+ if (n.gridOpenTagEndIndex === void 0 || !Rn(n.cfgValues) || /\bOnClickPanelSelectAll\s*=/i.test(e))
317
344
  return e;
318
345
  const t = n.defaultActionsTag;
319
346
  if (t) {
320
- const s = D(
347
+ const s = v(
321
348
  t.tag,
322
349
  z
323
350
  );
@@ -325,7 +352,7 @@ const ui = 300, Yn = 3, Zn = {
325
352
  t.index + t.tag.length
326
353
  )}`;
327
354
  }
328
- const r = wt(n);
355
+ const r = Ut(n);
329
356
  return r === void 0 ? e : `${e.slice(
330
357
  0,
331
358
  r
@@ -333,137 +360,137 @@ const ui = 300, Yn = 3, Zn = {
333
360
  <Actions OnClickPanelSelectAll="SelectAll OR DeselectAll" />${e.slice(
334
361
  r
335
362
  )}`;
336
- }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), $t = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), Pt = /* @__PURE__ */ i((e, n) => {
337
- if (n.gridOpenTagEndIndex === void 0 || !Cn(n.cfgValues))
363
+ }, "applyTreeGridXmlDefaultSelectAllPanelActionLayout"), Ft = /* @__PURE__ */ i((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlDeletePanelInsertionIndex"), Nt = /* @__PURE__ */ i((e, n) => {
364
+ if (n.gridOpenTagEndIndex === void 0 || !Gn(n.cfgValues))
338
365
  return e;
339
366
  const t = n.defaultPanelTag;
340
367
  if (t) {
341
- const c = D(
368
+ const c = v(
342
369
  t.tag,
343
- lt
370
+ St
344
371
  );
345
372
  return c === t.tag ? e : `${e.slice(0, t.index)}${c}${e.slice(
346
373
  t.index + t.tag.length
347
374
  )}`;
348
375
  }
349
- const r = $t(n);
376
+ const r = Ft(n);
350
377
  return r === void 0 ? e : `${e.slice(0, r)}
351
378
  <Panel Visible="1" CanHide="0" Delete="1" Width="33" />${e.slice(
352
379
  r
353
380
  )}`;
354
- }, "applyTreeGridXmlDefaultDeletePanelLayout"), Dt = /* @__PURE__ */ i((e, n) => {
355
- if (n.hasFastPanel || !En(n.cfgValues))
381
+ }, "applyTreeGridXmlDefaultDeletePanelLayout"), Vt = /* @__PURE__ */ i((e, n) => {
382
+ if (n.hasFastPanel || !Rn(n.cfgValues))
356
383
  return e;
357
384
  const t = n.gridOpenTagEndIndex;
358
385
  return t === void 0 ? e : `${e.slice(0, t)}
359
386
  <Cfg FastPanel="0" />${e.slice(
360
387
  t
361
388
  )}`;
362
- }, "applyTreeGridXmlDefaultFastPanelLayout"), vt = /* @__PURE__ */ i((e) => {
389
+ }, "applyTreeGridXmlDefaultFastPanelLayout"), kt = /* @__PURE__ */ i((e) => {
363
390
  const n = e.Cfg;
364
391
  if (Array.isArray(n)) {
365
- n.some((t) => S(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
392
+ n.some((t) => R(t) && "FastPanel" in t) || (e.Cfg = [{ FastPanel: 0 }, ...n]);
366
393
  return;
367
394
  }
368
- if (S(n)) {
395
+ if (R(n)) {
369
396
  "FastPanel" in n || (n.FastPanel = 0);
370
397
  return;
371
398
  }
372
399
  e.Cfg = { FastPanel: 0 };
373
- }, "applyTreeGridJsonFastPanelDefault"), Bt = /* @__PURE__ */ i((e) => {
400
+ }, "applyTreeGridJsonFastPanelDefault"), Mt = /* @__PURE__ */ i((e) => {
374
401
  const n = e.Actions;
375
402
  if (Array.isArray(n)) {
376
403
  n.some(
377
- (t) => S(t) && "OnClickPanelSelectAll" in t
404
+ (t) => R(t) && "OnClickPanelSelectAll" in t
378
405
  ) || (e.Actions = [{ ...z }, ...n]);
379
406
  return;
380
407
  }
381
- if (S(n)) {
408
+ if (R(n)) {
382
409
  "OnClickPanelSelectAll" in n || (n.OnClickPanelSelectAll = z.OnClickPanelSelectAll);
383
410
  return;
384
411
  }
385
412
  n === void 0 && (e.Actions = { ...z });
386
- }, "applyTreeGridJsonSelectAllPanelActionDefault"), Ft = /* @__PURE__ */ i((e) => {
413
+ }, "applyTreeGridJsonSelectAllPanelActionDefault"), Xt = /* @__PURE__ */ i((e) => {
387
414
  const n = e.Actions;
388
415
  if (Array.isArray(n)) {
389
- n.some((t) => S(t) && "OnClickCell" in t) || (e.Actions = [{ ...H }, ...n]);
416
+ n.some((t) => R(t) && "OnClickCell" in t) || (e.Actions = [{ ...K }, ...n]);
390
417
  return;
391
418
  }
392
- if (S(n)) {
393
- "OnClickCell" in n || (n.OnClickCell = H.OnClickCell);
419
+ if (R(n)) {
420
+ "OnClickCell" in n || (n.OnClickCell = K.OnClickCell);
394
421
  return;
395
422
  }
396
- n === void 0 && (e.Actions = { ...H });
397
- }, "applyTreeGridJsonCellClickActionDefault"), Nt = /* @__PURE__ */ i((e) => {
423
+ n === void 0 && (e.Actions = { ...K });
424
+ }, "applyTreeGridJsonCellClickActionDefault"), Jt = /* @__PURE__ */ i((e) => {
398
425
  try {
399
426
  const n = JSON.parse(e);
400
- return !S(n) || P(Z(n, "Selecting")) ? e : (Ft(n), JSON.stringify(n));
427
+ return !R(n) || P(Z(n, "Selecting")) ? e : (Xt(n), JSON.stringify(n));
401
428
  } catch {
402
429
  return e;
403
430
  }
404
- }, "applyTreeGridJsonDefaultCellClickActionLayout"), Be = /* @__PURE__ */ i((e, n) => {
431
+ }, "applyTreeGridJsonDefaultCellClickActionLayout"), Ne = /* @__PURE__ */ i((e, n) => {
405
432
  const t = e.trim();
406
- return t ? t.startsWith("{") ? Nt(e) : It(
433
+ return t ? t.startsWith("{") ? Jt(e) : vt(
407
434
  e,
408
- n ?? L(e)
435
+ n ?? O(e)
409
436
  ) : e;
410
- }, "applyTreeGridDefaultCellClickActionLayout"), Ut = /* @__PURE__ */ i((e) => {
437
+ }, "applyTreeGridDefaultCellClickActionLayout"), Wt = /* @__PURE__ */ i((e) => {
411
438
  try {
412
439
  const n = JSON.parse(e);
413
- return !S(n) || !Tn(n) ? e : (Bt(n), JSON.stringify(n));
440
+ return !R(n) || !En(n) ? e : (Mt(n), JSON.stringify(n));
414
441
  } catch {
415
442
  return e;
416
443
  }
417
- }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), Fe = /* @__PURE__ */ i((e, n) => {
444
+ }, "applyTreeGridJsonDefaultSelectAllPanelActionLayout"), Ve = /* @__PURE__ */ i((e, n) => {
418
445
  const t = e.trim();
419
- return t ? t.startsWith("{") ? Ut(e) : yt(
446
+ return t ? t.startsWith("{") ? Wt(e) : Bt(
420
447
  e,
421
- n ?? L(e)
448
+ n ?? O(e)
422
449
  ) : e;
423
- }, "applyTreeGridDefaultSelectAllPanelActionLayout"), kt = /* @__PURE__ */ i((e) => {
424
- const n = on(
425
- Gt(e, rn)
450
+ }, "applyTreeGridDefaultSelectAllPanelActionLayout"), jt = /* @__PURE__ */ i((e) => {
451
+ const n = dn(
452
+ _t(e, cn)
426
453
  );
427
- if (!cn(n))
454
+ if (!fn(n))
428
455
  return;
429
456
  const t = e.Cfg;
430
457
  if (Array.isArray(t)) {
431
- const r = t.find(S);
458
+ const r = t.find(R);
432
459
  r ? Object.assign(r, n) : e.Cfg = [n, ...t];
433
460
  return;
434
461
  }
435
- if (S(t)) {
462
+ if (R(t)) {
436
463
  Object.assign(t, n);
437
464
  return;
438
465
  }
439
466
  e.Cfg = n;
440
- }, "applyTreeGridJsonStableScrollbarDefaults"), Mt = /* @__PURE__ */ i((e) => {
467
+ }, "applyTreeGridJsonStableScrollbarDefaults"), Ht = /* @__PURE__ */ i((e) => {
441
468
  try {
442
469
  const n = JSON.parse(e);
443
- return S(n) ? (kt(n), JSON.stringify(n)) : e;
470
+ return R(n) ? (jt(n), JSON.stringify(n)) : e;
444
471
  } catch {
445
472
  return e;
446
473
  }
447
- }, "applyTreeGridJsonStableScrollbarDefaultLayout"), Vt = /* @__PURE__ */ i((e, n) => {
448
- const t = on(
474
+ }, "applyTreeGridJsonStableScrollbarDefaultLayout"), Kt = /* @__PURE__ */ i((e, n) => {
475
+ const t = dn(
449
476
  n.cfgValues
450
477
  );
451
- if (!cn(t))
478
+ if (!fn(t))
452
479
  return e;
453
480
  const r = n.defaultCfgTag;
454
481
  if (r) {
455
- const f = D(
482
+ const u = v(
456
483
  r.tag,
457
484
  t
458
485
  );
459
- return `${e.slice(0, r.index)}${f}${e.slice(
486
+ return `${e.slice(0, r.index)}${u}${e.slice(
460
487
  r.index + r.tag.length
461
488
  )}`;
462
489
  }
463
490
  const s = n.gridOpenTagEndIndex;
464
491
  if (s === void 0)
465
492
  return e;
466
- const c = D(
493
+ const c = v(
467
494
  "<Cfg />",
468
495
  t
469
496
  );
@@ -471,94 +498,94 @@ const ui = 300, Yn = 3, Zn = {
471
498
  ${c}${e.slice(
472
499
  s
473
500
  )}`;
474
- }, "applyTreeGridXmlStableScrollbarDefaultLayout"), Xt = /* @__PURE__ */ i((e) => {
501
+ }, "applyTreeGridXmlStableScrollbarDefaultLayout"), zt = /* @__PURE__ */ i((e) => {
475
502
  const n = e.trim();
476
- return n ? n.startsWith("{") ? Mt(e) : Vt(
503
+ return n ? n.startsWith("{") ? Ht(e) : Kt(
477
504
  e,
478
- L(e)
505
+ O(e)
479
506
  ) : e;
480
- }, "applyTreeGridStableScrollbarDefaultLayout"), Ne = /* @__PURE__ */ i((e) => {
507
+ }, "applyTreeGridStableScrollbarDefaultLayout"), ke = /* @__PURE__ */ i((e) => {
481
508
  const n = e.Text;
482
509
  if (Array.isArray(n)) {
483
- const t = n.find(S);
484
- t ? Object.assign(t, I) : e.Text = [{ ...I }, ...n];
510
+ const t = n.find(R);
511
+ t ? Object.assign(t, D) : e.Text = [{ ...D }, ...n];
485
512
  return;
486
513
  }
487
- if (S(n)) {
488
- Object.assign(n, I);
514
+ if (R(n)) {
515
+ Object.assign(n, D);
489
516
  return;
490
517
  }
491
- e.Text = { ...I };
492
- }, "applyTreeGridJsonLangPageMessageTextDefaults"), Jt = /* @__PURE__ */ i((e) => {
518
+ e.Text = { ...D };
519
+ }, "applyTreeGridJsonLangPageMessageTextDefaults"), Yt = /* @__PURE__ */ i((e) => {
493
520
  const n = e.Lang;
494
521
  if (Array.isArray(n)) {
495
- const t = n.find(S);
496
- t ? Ne(t) : e.Lang = [{ Text: { ...I } }, ...n];
522
+ const t = n.find(R);
523
+ t ? ke(t) : e.Lang = [{ Text: { ...D } }, ...n];
497
524
  return;
498
525
  }
499
- if (S(n)) {
500
- Ne(n);
526
+ if (R(n)) {
527
+ ke(n);
501
528
  return;
502
529
  }
503
- e.Lang = { Text: { ...I } };
504
- }, "applyTreeGridJsonPageMessageTextDefaults"), Wt = /* @__PURE__ */ i((e) => {
530
+ e.Lang = { Text: { ...D } };
531
+ }, "applyTreeGridJsonPageMessageTextDefaults"), Zt = /* @__PURE__ */ i((e) => {
505
532
  try {
506
533
  const n = JSON.parse(e);
507
- return S(n) ? (Jt(n), JSON.stringify(n)) : e;
534
+ return R(n) ? (Yt(n), JSON.stringify(n)) : e;
508
535
  } catch {
509
536
  return e;
510
537
  }
511
- }, "applyTreeGridJsonPageMessageTextLayout"), oe = /* @__PURE__ */ i(() => X("<Text />", I), "createTreeGridXmlPageMessageTextTag"), jt = /* @__PURE__ */ i((e) => {
538
+ }, "applyTreeGridJsonPageMessageTextLayout"), oe = /* @__PURE__ */ i(() => X("<Text />", D), "createTreeGridXmlPageMessageTextTag"), qt = /* @__PURE__ */ i((e) => {
512
539
  let n = !1;
513
540
  const t = e.replace(
514
541
  /(<Lang\b[^>]*>)([\s\S]*?)(<\/Lang>)/i,
515
- (r, s, c, f) => {
542
+ (r, s, c, u) => {
516
543
  if (n = !0, /<Text\b/i.test(c)) {
517
544
  const a = c.replace(
518
545
  /<Text\b[^>]*(?:\/>|>)/i,
519
- (T) => X(T, I)
546
+ (T) => X(T, D)
520
547
  );
521
- return `${s}${a}${f}`;
548
+ return `${s}${a}${u}`;
522
549
  }
523
550
  return `${s}
524
- ${oe()}${c}${f}`;
551
+ ${oe()}${c}${u}`;
525
552
  }
526
553
  );
527
554
  return n ? t : e.replace(/<Lang\b[^>]*\/>/i, (r) => (n = !0, `${r.replace(/\s*\/>$/, ">")}
528
555
  ${oe()}
529
556
  </Lang>`));
530
- }, "applyTreeGridXmlPageMessageTextToLangLayout"), Kt = /* @__PURE__ */ i((e) => {
531
- const n = jt(e);
557
+ }, "applyTreeGridXmlPageMessageTextToLangLayout"), Qt = /* @__PURE__ */ i((e) => {
558
+ const n = qt(e);
532
559
  if (n !== e)
533
560
  return n;
534
- const t = L(e), r = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
561
+ const t = O(e), r = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
535
562
  return r === void 0 ? e : `${e.slice(0, r)}
536
563
  <Lang>
537
564
  ${oe()}
538
565
  </Lang>${e.slice(
539
566
  r
540
567
  )}`;
541
- }, "applyTreeGridXmlPageMessageTextLayout"), Ht = /* @__PURE__ */ i((e) => {
568
+ }, "applyTreeGridXmlPageMessageTextLayout"), er = /* @__PURE__ */ i((e) => {
542
569
  const n = e.trim();
543
- return n ? n.startsWith("{") ? Wt(e) : Kt(e) : e;
544
- }, "applyTreeGridPageMessageTextLayout"), zt = /* @__PURE__ */ i((e, n) => {
570
+ return n ? n.startsWith("{") ? Zt(e) : Qt(e) : e;
571
+ }, "applyTreeGridPageMessageTextLayout"), nr = /* @__PURE__ */ i((e, n) => {
545
572
  if (n === void 0)
546
573
  return e;
547
574
  try {
548
575
  const t = JSON.parse(e);
549
- if (!S(t))
576
+ if (!R(t))
550
577
  return e;
551
- const r = sn(t);
578
+ const r = ln(t);
552
579
  return r.some((s) => "SuppressCfg" in s) ? e : (r[0] ? r[0].SuppressCfg = n : t.Cfg = { SuppressCfg: n }, JSON.stringify(t));
553
580
  } catch {
554
581
  return e;
555
582
  }
556
- }, "applyTreeGridJsonDefaultSuppressCfgLayout"), Yt = /* @__PURE__ */ i((e, n, t) => {
583
+ }, "applyTreeGridJsonDefaultSuppressCfgLayout"), tr = /* @__PURE__ */ i((e, n, t) => {
557
584
  if (t === void 0 || n.cfgValues.SuppressCfg !== void 0)
558
585
  return e;
559
586
  const r = n.defaultCfgTag;
560
587
  if (r) {
561
- const c = V(r.tag, "SuppressCfg", t);
588
+ const c = M(r.tag, "SuppressCfg", t);
562
589
  return `${e.slice(0, r.index)}${c}${e.slice(
563
590
  r.index + r.tag.length
564
591
  )}`;
@@ -568,124 +595,124 @@ const ui = 300, Yn = 3, Zn = {
568
595
  <Cfg SuppressCfg="${t}" />${e.slice(
569
596
  s
570
597
  )}`;
571
- }, "applyTreeGridXmlDefaultSuppressCfgLayout"), Zt = /* @__PURE__ */ i((e, n) => {
598
+ }, "applyTreeGridXmlDefaultSuppressCfgLayout"), rr = /* @__PURE__ */ i((e, n) => {
572
599
  const t = e.trim();
573
- return n === void 0 || !t ? e : t.startsWith("{") ? zt(e, n) : Yt(
600
+ return n === void 0 || !t ? e : t.startsWith("{") ? nr(e, n) : tr(
574
601
  e,
575
- L(e),
602
+ O(e),
576
603
  n
577
604
  );
578
- }, "applyTreeGridDefaultSuppressCfgLayout"), qt = /* @__PURE__ */ i((e) => tn.some((n) => n in e), "hasTreeGridToolbarFormulaField"), Qt = /* @__PURE__ */ i((e) => {
579
- const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(S) : S(n) ? [n] : [], s = Array.isArray(t) ? t.filter(
580
- (c) => S(c) && M(c.Kind, "Toolbar")
581
- ) : S(t) && M(t.Kind, "Toolbar") ? [t] : [];
605
+ }, "applyTreeGridDefaultSuppressCfgLayout"), ir = /* @__PURE__ */ i((e) => on.some((n) => n in e), "hasTreeGridToolbarFormulaField"), sr = /* @__PURE__ */ i((e) => {
606
+ const n = e.Toolbar, t = e.Solid, r = Array.isArray(n) ? n.filter(R) : R(n) ? [n] : [], s = Array.isArray(t) ? t.filter(
607
+ (c) => R(c) && k(c.Kind, "Toolbar")
608
+ ) : R(t) && k(t.Kind, "Toolbar") ? [t] : [];
582
609
  return [...r, ...s];
583
- }, "getTreeGridJsonToolbarRecords"), er = /* @__PURE__ */ i((e, n) => {
610
+ }, "getTreeGridJsonToolbarRecords"), or = /* @__PURE__ */ i((e, n) => {
584
611
  if (!n)
585
612
  return e;
586
613
  try {
587
614
  const t = JSON.parse(e);
588
- if (!S(t))
615
+ if (!R(t))
589
616
  return e;
590
- const r = Qt(t);
591
- return r.some(qt) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
617
+ const r = sr(t);
618
+ return r.some(ir) ? e : (r[0] ? r[0].FormulaFormula = n : t.Toolbar = { FormulaFormula: n }, JSON.stringify(t));
592
619
  } catch {
593
620
  return e;
594
621
  }
595
- }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), nr = /* @__PURE__ */ i((e) => tn.some(
596
- (n) => k(e, n)
597
- ), "hasTreeGridXmlToolbarFormulaAttribute"), tr = /* @__PURE__ */ i((e, n) => {
622
+ }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), cr = /* @__PURE__ */ i((e) => on.some(
623
+ (n) => V(e, n)
624
+ ), "hasTreeGridXmlToolbarFormulaAttribute"), lr = /* @__PURE__ */ i((e, n) => {
598
625
  if (!n)
599
626
  return e;
600
- const t = Et.exec(e);
627
+ const t = gt.exec(e);
601
628
  if (t) {
602
- const f = t[0];
603
- if (nr(f))
629
+ const u = t[0];
630
+ if (cr(u))
604
631
  return e;
605
632
  const a = se(
606
- f,
633
+ u,
607
634
  "Formula",
608
635
  n
609
636
  );
610
637
  return `${e.slice(0, t.index)}${a}${e.slice(
611
- t.index + f.length
638
+ t.index + u.length
612
639
  )}`;
613
640
  }
614
641
  const r = se(
615
642
  "<Toolbar />",
616
643
  "Formula",
617
644
  n
618
- ), s = Tt.exec(e);
645
+ ), s = Gt.exec(e);
619
646
  if (s)
620
647
  return `${e.slice(0, s.index)} ${r}
621
648
  ${e.slice(
622
649
  s.index
623
650
  )}`;
624
- const c = at.exec(e);
651
+ const c = Ct.exec(e);
625
652
  return c ? `${e.slice(
626
653
  0,
627
654
  c.index + c[0].length
628
655
  )}
629
656
  ${r}${e.slice(c.index + c[0].length)}` : e;
630
- }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), rr = /* @__PURE__ */ i((e, n) => {
657
+ }, "applyTreeGridXmlDefaultToolbarTotalCountLayout"), dr = /* @__PURE__ */ i((e, n) => {
631
658
  const t = e.trim();
632
- return !n || !t ? e : t.startsWith("{") ? er(
659
+ return !n || !t ? e : t.startsWith("{") ? or(
633
660
  e,
634
661
  n
635
- ) : tr(e, n);
636
- }, "applyTreeGridDefaultToolbarTotalCountLayout"), ir = /* @__PURE__ */ i((e) => {
662
+ ) : lr(e, n);
663
+ }, "applyTreeGridDefaultToolbarTotalCountLayout"), fr = /* @__PURE__ */ i((e) => {
637
664
  try {
638
665
  const n = JSON.parse(e);
639
- return !S(n) || !Tn(n) ? e : (vt(n), JSON.stringify(n));
666
+ return !R(n) || !En(n) ? e : (kt(n), JSON.stringify(n));
640
667
  } catch {
641
668
  return e;
642
669
  }
643
- }, "applyTreeGridJsonDefaultFastPanelLayout"), Ue = /* @__PURE__ */ i((e, n) => {
670
+ }, "applyTreeGridJsonDefaultFastPanelLayout"), Me = /* @__PURE__ */ i((e, n) => {
644
671
  const t = e.trim();
645
- return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : ir(e) : Dt(
672
+ return t ? t.startsWith("{") ? /\bFastPanel\s*[:=]/i.test(e) ? e : fr(e) : Vt(
646
673
  e,
647
- n ?? L(e)
674
+ n ?? O(e)
648
675
  ) : e;
649
- }, "applyTreeGridDefaultFastPanelLayout"), sr = /* @__PURE__ */ i((e) => {
676
+ }, "applyTreeGridDefaultFastPanelLayout"), ur = /* @__PURE__ */ i((e) => {
650
677
  const n = e.Animations;
651
678
  if (Array.isArray(n)) {
652
- const t = n.find(S);
653
- t ? ve(
679
+ const t = n.find(R);
680
+ t ? Fe(
654
681
  t,
655
- U
682
+ N
656
683
  ) : e.Animations = [
657
- { ...U },
684
+ { ...N },
658
685
  ...n
659
686
  ];
660
687
  return;
661
688
  }
662
- if (S(n)) {
663
- ve(
689
+ if (R(n)) {
690
+ Fe(
664
691
  n,
665
- U
692
+ N
666
693
  );
667
694
  return;
668
695
  }
669
- n === void 0 && (e.Animations = { ...U });
670
- }, "applyTreeGridJsonDefaultAnimationDefaults"), or = /* @__PURE__ */ i((e) => {
696
+ n === void 0 && (e.Animations = { ...N });
697
+ }, "applyTreeGridJsonDefaultAnimationDefaults"), ar = /* @__PURE__ */ i((e) => {
671
698
  try {
672
699
  const n = JSON.parse(e);
673
- return S(n) ? (sr(n), JSON.stringify(n)) : e;
700
+ return R(n) ? (ur(n), JSON.stringify(n)) : e;
674
701
  } catch {
675
702
  return e;
676
703
  }
677
- }, "applyTreeGridJsonDefaultAnimationLayout"), cr = /* @__PURE__ */ i(() => X(
704
+ }, "applyTreeGridJsonDefaultAnimationLayout"), Tr = /* @__PURE__ */ i(() => X(
678
705
  "<Animations />",
679
- U
680
- ), "createTreeGridDefaultAnimationsTag"), lr = /* @__PURE__ */ i((e, n) => {
681
- const t = L(e);
706
+ N
707
+ ), "createTreeGridDefaultAnimationsTag"), Sr = /* @__PURE__ */ i((e, n) => {
708
+ const t = O(e);
682
709
  if (t.gridOpenTagEndIndex === void 0)
683
710
  return e;
684
711
  const r = t.animationsTag;
685
712
  if (r) {
686
- const c = D(
713
+ const c = v(
687
714
  r.tag,
688
- U
715
+ N
689
716
  );
690
717
  return c === r.tag ? e : `${e.slice(0, r.index)}${c}${e.slice(
691
718
  r.index + r.tag.length
@@ -693,30 +720,30 @@ ${e.slice(
693
720
  }
694
721
  const s = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
695
722
  return `${e.slice(0, s)}
696
- ${cr()}${e.slice(
723
+ ${Tr()}${e.slice(
697
724
  s
698
725
  )}`;
699
- }, "applyTreeGridXmlDefaultAnimationLayout"), ke = /* @__PURE__ */ i((e, n) => {
726
+ }, "applyTreeGridXmlDefaultAnimationLayout"), Xe = /* @__PURE__ */ i((e, n) => {
700
727
  const t = e.trim();
701
- return t ? t.startsWith("{") ? or(e) : lr(e) : e;
702
- }, "applyTreeGridDefaultAnimationLayout"), dr = /* @__PURE__ */ i((e) => {
728
+ return t ? t.startsWith("{") ? ar(e) : Sr(e) : e;
729
+ }, "applyTreeGridDefaultAnimationLayout"), pr = /* @__PURE__ */ i((e) => {
703
730
  const n = {};
704
731
  return e == null || e.forEach((t) => {
705
732
  var r;
706
- (r = Ct[t]) == null || r.forEach((s) => {
733
+ (r = At[t]) == null || r.forEach((s) => {
707
734
  n[s] = "";
708
735
  });
709
736
  }), n;
710
- }, "getTreeGridDisabledAnimationAttributes"), ur = /* @__PURE__ */ i((e, n) => {
737
+ }, "getTreeGridDisabledAnimationAttributes"), Er = /* @__PURE__ */ i((e, n) => {
711
738
  try {
712
739
  const t = JSON.parse(e);
713
- if (!S(t))
740
+ if (!R(t))
714
741
  return e;
715
742
  const r = t.Animations;
716
743
  if (Array.isArray(r)) {
717
- const s = r.find(S);
744
+ const s = r.find(R);
718
745
  s ? Object.assign(s, n) : r.unshift({ ...n });
719
- } else if (S(r))
746
+ } else if (R(r))
720
747
  Object.assign(r, n);
721
748
  else if (r === void 0)
722
749
  t.Animations = n;
@@ -726,8 +753,8 @@ ${e.slice(
726
753
  } catch {
727
754
  return e;
728
755
  }
729
- }, "applyTreeGridJsonDisabledAnimationsLayout"), fr = /* @__PURE__ */ i((e) => X("<Animations />", e), "createTreeGridDisabledAnimationsTag"), ar = /* @__PURE__ */ i((e, n) => {
730
- const t = L(e);
756
+ }, "applyTreeGridJsonDisabledAnimationsLayout"), Rr = /* @__PURE__ */ i((e) => X("<Animations />", e), "createTreeGridDisabledAnimationsTag"), Cr = /* @__PURE__ */ i((e, n) => {
757
+ const t = O(e);
731
758
  if (t.gridOpenTagEndIndex === void 0)
732
759
  return e;
733
760
  const r = t.animationsTag;
@@ -739,22 +766,22 @@ ${e.slice(
739
766
  }
740
767
  const s = t.lastCfgEndIndex ?? t.gridOpenTagEndIndex;
741
768
  return `${e.slice(0, s)}
742
- ${fr(
769
+ ${Rr(
743
770
  n
744
771
  )}${e.slice(s)}`;
745
- }, "applyTreeGridXmlDisabledAnimationsLayout"), Me = /* @__PURE__ */ i((e, n) => {
746
- const t = dr(n);
772
+ }, "applyTreeGridXmlDisabledAnimationsLayout"), Je = /* @__PURE__ */ i((e, n) => {
773
+ const t = pr(n);
747
774
  if (!Object.keys(t).length)
748
775
  return e;
749
776
  const r = e.trim();
750
- return r ? r.startsWith("{") ? ur(e, t) : ar(e, t) : e;
777
+ return r ? r.startsWith("{") ? Er(e, t) : Cr(e, t) : e;
751
778
  }, "applyTreeGridDisabledAnimationsLayout"), ce = /* @__PURE__ */ i((e, n, t, r) => {
752
- const s = rr(
753
- Ht(
754
- Ot(
755
- xt(
756
- Xt(
757
- Zt(e, r)
779
+ const s = dr(
780
+ er(
781
+ yt(
782
+ $t(
783
+ zt(
784
+ rr(e, r)
758
785
  )
759
786
  )
760
787
  )
@@ -762,76 +789,79 @@ ${e.slice(
762
789
  t
763
790
  ), c = s.trim();
764
791
  if (!c || c.startsWith("{"))
765
- return Me(
766
- ke(
767
- Ue(
768
- Be(
769
- Fe(s)
792
+ return Je(
793
+ Xe(
794
+ Me(
795
+ Ne(
796
+ Ve(s)
770
797
  )
771
798
  )
772
799
  ),
773
800
  n
774
801
  );
775
- const f = L(s), a = Fe(
802
+ const u = O(s), a = Ve(
776
803
  s,
777
- f
778
- ), T = a === s ? f : L(a), G = Be(
804
+ u
805
+ ), T = a === s ? u : O(a), C = Ne(
779
806
  a,
780
807
  T
781
- ), R = G === a ? T : L(G);
782
- return Me(
783
- ke(
784
- Pt(
785
- Ue(
786
- G,
787
- R
808
+ ), G = C === a ? T : O(C);
809
+ return Je(
810
+ Xe(
811
+ Nt(
812
+ Me(
813
+ C,
814
+ G
788
815
  ),
789
- R
816
+ G
790
817
  )
791
818
  ),
792
819
  n
793
820
  );
794
- }, "applyTreeGridDefaultLayout"), Tr = /* @__PURE__ */ i((e) => {
821
+ }, "applyTreeGridDefaultLayout"), Gr = /* @__PURE__ */ i((e) => {
795
822
  var n;
796
- return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${Vn}`)) ?? null;
797
- }, "getTreeGridWrapperElement"), Er = /* @__PURE__ */ i((e) => {
823
+ return typeof document > "u" ? null : ((n = document.getElementById(e)) == null ? void 0 : n.closest(`.${Hn}`)) ?? null;
824
+ }, "getTreeGridWrapperElement"), gr = /* @__PURE__ */ i((e, n) => {
825
+ var t;
826
+ typeof document > "u" || !n || (document.documentElement.style.setProperty(e, n), (t = document.body) == null || t.style.setProperty(e, n));
827
+ }, "setTreeGridFloatingLayerCssVariable"), hr = /* @__PURE__ */ i((e) => {
798
828
  if (ie(e.AllSelected))
799
829
  return "checked";
800
830
  if (P(e.AllSelected))
801
831
  return "unchecked";
802
832
  let n = 0, t = 0;
803
833
  return J(e).forEach((r) => {
804
- !A(r) || P(r.CanSelect) || (n += 1, ie(e.IsSelected(r)) && (t += 1));
834
+ !h(r) || P(r.CanSelect) || (n += 1, ie(e.IsSelected(r)) && (t += 1));
805
835
  }), t ? n > 0 && t >= n ? "checked" : "indeterminate" : "unchecked";
806
836
  }, "getTreeGridSelectAllState"), le = /* @__PURE__ */ i((e, n) => {
807
- const t = Tr(n), r = !P(e.Selecting), s = pe(
837
+ const t = Gr(n), r = !P(e.Selecting), s = pe(
808
838
  e.Selecting,
809
839
  e.SelectingSingle
810
840
  ), c = e.Header;
811
841
  if (t == null || t.classList.toggle(
812
- Mn,
842
+ jn,
813
843
  s
814
844
  ), !s)
815
845
  t == null || t.classList.remove(
816
- be,
817
- Ie,
818
- we
846
+ De,
847
+ ye,
848
+ $e
819
849
  );
820
850
  else {
821
- const f = Er(e);
851
+ const u = hr(e);
822
852
  t == null || t.classList.toggle(
823
- be,
824
- f === "checked"
853
+ De,
854
+ u === "checked"
825
855
  ), t == null || t.classList.toggle(
826
- Ie,
827
- f === "indeterminate"
856
+ ye,
857
+ u === "indeterminate"
828
858
  ), t == null || t.classList.toggle(
829
- we,
830
- f === "unchecked"
859
+ $e,
860
+ u === "unchecked"
831
861
  );
832
862
  }
833
863
  c && r && (c.CanSelect = s ? 1 : 0);
834
- }, "syncTreeGridSelectionPanelState"), ne = /* @__PURE__ */ new Map(), Ve = /* @__PURE__ */ i((e, n) => {
864
+ }, "syncTreeGridSelectionPanelState"), ne = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ i((e, n) => {
835
865
  if (typeof window > "u")
836
866
  return;
837
867
  const t = ne.get(n);
@@ -840,52 +870,52 @@ ${e.slice(
840
870
  ne.delete(n), le(e, n);
841
871
  }, 0);
842
872
  ne.set(n, r);
843
- }, "scheduleTreeGridSelectionPanelStateSync"), pr = /* @__PURE__ */ i((e, n) => {
873
+ }, "scheduleTreeGridSelectionPanelStateSync"), Ar = /* @__PURE__ */ i((e, n) => {
844
874
  e.EnterMode = n;
845
- const t = Zn[n];
875
+ const t = tt[n];
846
876
  if (!t)
847
877
  return;
848
878
  const r = e;
849
879
  r.Actions ?? (r.Actions = {}), r.Actions.OnEnter = t.onEnter, r.Actions.OnEnterEdit = t.onEnterEdit;
850
- }, "applyTreeGridDefaultEnterMode"), Sn = /* @__PURE__ */ i((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Xe = /* @__PURE__ */ new Map(), Cr = /* @__PURE__ */ i((e) => {
880
+ }, "applyTreeGridDefaultEnterMode"), gn = /* @__PURE__ */ i((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), je = /* @__PURE__ */ new Map(), mr = /* @__PURE__ */ i((e) => {
851
881
  if (!e || !e.startsWith("data:"))
852
882
  return e;
853
- const n = Xe.get(e);
883
+ const n = je.get(e);
854
884
  if (n)
855
885
  return n;
856
886
  try {
857
- const [t, r = ""] = e.split(",", 2), s = /^data:([^;]*)(;base64)?$/i.exec(t), c = (s == null ? void 0 : s[1]) || "application/octet-stream", f = s != null && s[2] ? atob(r) : decodeURIComponent(r), a = new Uint8Array(f.length);
858
- for (let G = 0; G < f.length; G += 1)
859
- a[G] = f.charCodeAt(G);
887
+ const [t, r = ""] = e.split(",", 2), s = /^data:([^;]*)(;base64)?$/i.exec(t), c = (s == null ? void 0 : s[1]) || "application/octet-stream", u = s != null && s[2] ? atob(r) : decodeURIComponent(r), a = new Uint8Array(u.length);
888
+ for (let C = 0; C < u.length; C += 1)
889
+ a[C] = u.charCodeAt(C);
860
890
  const T = URL.createObjectURL(new Blob([a], { type: c }));
861
- return Xe.set(e, T), T;
891
+ return je.set(e, T), T;
862
892
  } catch {
863
893
  return e;
864
894
  }
865
895
  }, "resolveTreeGridInlineUrl"), de = /* @__PURE__ */ i((e) => {
866
- if (!e || Sn(e))
867
- return Cr(e);
896
+ if (!e || gn(e))
897
+ return mr(e);
868
898
  const n = e.indexOf("#"), [t, r] = n >= 0 ? [e.slice(0, n), e.slice(n)] : [e, ""], s = t.includes("?") ? "&" : "?";
869
899
  return `${t}${s}noCache=${Date.now()}${r}`;
870
- }, "appendNoCacheQuery"), Je = /* @__PURE__ */ i((e, n, t) => {
900
+ }, "appendNoCacheQuery"), He = /* @__PURE__ */ i((e, n, t) => {
871
901
  if (!e)
872
902
  return;
873
- const r = t.canEdit, s = t.editableColumns ?? [], c = t.editableCanEdit, f = t.highlightColumns ?? [], a = t.highlightBackgroundColor;
874
- if (!(r === void 0 && c === void 0 && !f.length)) {
903
+ const r = t.canEdit, s = t.editableColumns ?? [], c = t.editableCanEdit, u = t.highlightColumns ?? [], a = t.highlightBackgroundColor;
904
+ if (!(r === void 0 && c === void 0 && !u.length)) {
875
905
  typeof e.StartUpdate == "function" && e.StartUpdate();
876
906
  try {
877
907
  if (r !== void 0 && (n.CanEdit = r), c !== void 0) {
878
908
  const T = n;
879
- s.forEach((G) => {
880
- var R;
881
- !G || !((R = e.Cols) != null && R[G]) || (T[`${G}CanEdit`] = c);
909
+ s.forEach((C) => {
910
+ var G;
911
+ !C || !((G = e.Cols) != null && G[C]) || (T[`${C}CanEdit`] = c);
882
912
  });
883
913
  }
884
- f.forEach((T) => {
914
+ u.forEach((T) => {
885
915
  T && (e.SetValue(
886
916
  n,
887
917
  `${T}Class`,
888
- a ? Ye : "",
918
+ a ? Qe : "",
889
919
  0
890
920
  ), e.SetValue(n, `${T}Color`, a ?? "", 0));
891
921
  });
@@ -894,27 +924,37 @@ ${e.slice(
894
924
  }
895
925
  typeof e.RefreshRow == "function" && e.RefreshRow(n);
896
926
  }
897
- }, "syncTreeGridDeletedRowState"), Sr = /* @__PURE__ */ i((e) => e ? Sn(e) || e.includes("assets") ? de(e) : de(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Gr = /* @__PURE__ */ i((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Rr = /* @__PURE__ */ i((e, n, t, r) => {
927
+ }, "syncTreeGridDeletedRowState"), _r = /* @__PURE__ */ i((e) => e ? gn(e) || e.includes("assets") ? de(e) : de(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), Or = /* @__PURE__ */ i((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), Lr = /* @__PURE__ */ i((e, n, t) => {
928
+ let r = !1;
929
+ const s = /* @__PURE__ */ i(() => {
930
+ r || (r = !0, e.RemoveRow(n), t(e));
931
+ }, "removeRow");
932
+ try {
933
+ e.AnimateRow(n, "DeleteVisible", void 0, s);
934
+ } catch {
935
+ s();
936
+ }
937
+ }, "removeTreeGridRowAfterDeleteAnimation"), wr = /* @__PURE__ */ i((e, n, t, r) => {
898
938
  if (!(!e || t === "cancel")) {
899
939
  if (t === "remove") {
900
- e.RemoveRow(n), r(e);
940
+ Lr(e, n, r);
901
941
  return;
902
942
  }
903
943
  e.DeleteRowT(n, 3);
904
944
  }
905
- }, "applyTreeGridBeforeRowUndeleteAction"), gr = /* @__PURE__ */ i((e, n, t) => e ? { Url: Sr(n) } : { Data: { Body: [Hn(t) ? [] : t] } }, "buildTreeGridDataSource"), fi = /* @__PURE__ */ i(({
945
+ }, "applyTreeGridBeforeRowUndeleteAction"), xr = /* @__PURE__ */ i((e, n, t) => e ? { Url: _r(n) } : { Data: { Body: [Qn(t) ? [] : t] } }, "buildTreeGridDataSource"), Gi = /* @__PURE__ */ i(({
906
946
  id: e,
907
947
  layoutUrl: n,
908
948
  layoutData: t,
909
949
  toolbarTotalCountFormula: r,
910
950
  suppressCfg: s,
911
951
  disabledAnimations: c,
912
- dataUrl: f,
952
+ dataUrl: u,
913
953
  bodyData: a,
914
954
  useDataUrl: T,
915
- width: G,
916
- height: R,
917
- languageId: h
955
+ width: C,
956
+ height: G,
957
+ languageId: A
918
958
  }) => ({
919
959
  id: e,
920
960
  Layout: t ? {
@@ -925,14 +965,14 @@ ${e.slice(
925
965
  s
926
966
  )
927
967
  } : { Url: de(n ?? "") },
928
- Data: gr(T, f, a),
968
+ Data: xr(T, u, a),
929
969
  Text: {
930
- Url: Pn(h)
970
+ Url: Bn(A)
931
971
  },
932
- width: G,
933
- height: R,
972
+ width: C,
973
+ height: G,
934
974
  Debug: "Error"
935
- }), "buildTreeGridInitializationOptions"), We = /* @__PURE__ */ i((e) => zn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), je = /* @__PURE__ */ i((e) => {
975
+ }), "buildTreeGridInitializationOptions"), Ke = /* @__PURE__ */ i((e) => et(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), ze = /* @__PURE__ */ i((e) => {
936
976
  if (typeof e == "number")
937
977
  return Number.isFinite(e) && e > 0 ? e : void 0;
938
978
  if (typeof e != "string")
@@ -942,100 +982,100 @@ ${e.slice(
942
982
  return;
943
983
  const t = Number(n);
944
984
  return Number.isFinite(t) && t > 0 ? t : void 0;
945
- }, "parseTreeGridPositiveNumber"), ue = /* @__PURE__ */ i((e, n, t, r) => {
985
+ }, "parseTreeGridPositiveNumber"), fe = /* @__PURE__ */ i((e, n, t, r) => {
946
986
  if (!n || !t)
947
987
  return;
948
- const s = e.GetAttribute(n, t, r), c = je(s);
949
- return c !== void 0 ? c : je(
988
+ const s = e.GetAttribute(n, t, r), c = ze(s);
989
+ return c !== void 0 ? c : ze(
950
990
  n[`${t}${r}`]
951
991
  );
952
- }, "getTreeGridHeaderCellSpanAttribute"), hr = /* @__PURE__ */ i((e, n, t) => !n || !t || n.Fixed !== "Head" || (ue(e, n, t, "Span") ?? 1) <= 1 ? !1 : (ue(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Ke = /* @__PURE__ */ i((e, n, t) => {
992
+ }, "getTreeGridHeaderCellSpanAttribute"), br = /* @__PURE__ */ i((e, n, t) => !n || !t || n.Fixed !== "Head" || (fe(e, n, t, "Span") ?? 1) <= 1 ? !1 : (fe(e, n, t, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), Ye = /* @__PURE__ */ i((e, n, t) => {
953
993
  const r = e.get(n);
954
994
  if (r) {
955
995
  r.add(t);
956
996
  return;
957
997
  }
958
998
  e.set(n, /* @__PURE__ */ new Set([t]));
959
- }, "addTreeGridHeaderButtonAttributeTarget"), Gn = /* @__PURE__ */ i((e, n, t, r) => {
999
+ }, "addTreeGridHeaderButtonAttributeTarget"), hn = /* @__PURE__ */ i((e, n, t, r) => {
960
1000
  const s = /* @__PURE__ */ new Map();
961
- return n.forEach((c, f) => {
1001
+ return n.forEach((c, u) => {
962
1002
  t.forEach((a, T) => {
963
- if (!hr(e, c, a) || (Ke(s, c, a), !r))
1003
+ if (!br(e, c, a) || (Ye(s, c, a), !r))
964
1004
  return;
965
- const G = Math.floor(ue(e, c, a, "Span") ?? 1), R = Math.min(t.length, T + G);
966
- for (let h = f + 1; h < n.length; h += 1) {
967
- const _ = n[h];
968
- for (let O = T; O < R; O += 1)
969
- Ke(s, _, t[O]);
1005
+ const C = Math.floor(fe(e, c, a, "Span") ?? 1), G = Math.min(t.length, T + C);
1006
+ for (let A = u + 1; A < n.length; A += 1) {
1007
+ const _ = n[A];
1008
+ for (let L = T; L < G; L += 1)
1009
+ Ye(s, _, t[L]);
970
1010
  }
971
1011
  });
972
1012
  }), s;
973
- }, "getTreeGridGroupHeaderSortButtonTargets"), Ar = /* @__PURE__ */ i((e, n, t, r) => {
974
- var f;
1013
+ }, "getTreeGridGroupHeaderSortButtonTargets"), Ir = /* @__PURE__ */ i((e, n, t, r) => {
1014
+ var u;
975
1015
  if (!n || !t || n.Fixed !== "Head")
976
1016
  return !1;
977
1017
  const s = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((a) => a.Fixed === "Head") : [], c = typeof e.GetCols == "function" ? e.GetCols() : [];
978
- return !s.length || !c.length ? !1 : ((f = Gn(
1018
+ return !s.length || !c.length ? !1 : ((u = hn(
979
1019
  e,
980
1020
  s,
981
1021
  c,
982
1022
  r
983
- ).get(n)) == null ? void 0 : f.has(t)) === !0;
984
- }, "isTreeGridGroupHeaderSortButtonTarget"), He = /* @__PURE__ */ i((e, n, t = !1, r = !0) => {
985
- const s = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((R) => R.Fixed === "Head") : [], f = typeof e.GetCols == "function" ? e.GetCols() : [];
986
- if (!c.length || !f.length)
1023
+ ).get(n)) == null ? void 0 : u.has(t)) === !0;
1024
+ }, "isTreeGridGroupHeaderSortButtonTarget"), Ze = /* @__PURE__ */ i((e, n, t = !1, r = !0) => {
1025
+ const s = typeof performance < "u" ? performance.now() : Date.now(), c = typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((G) => G.Fixed === "Head") : [], u = typeof e.GetCols == "function" ? e.GetCols() : [];
1026
+ if (!c.length || !u.length)
987
1027
  return;
988
1028
  const a = /* @__PURE__ */ new Set();
989
1029
  let T = 0;
990
- const G = Gn(
1030
+ const C = hn(
991
1031
  e,
992
1032
  c,
993
- f,
1033
+ u,
994
1034
  r
995
1035
  );
996
- if (G.size) {
1036
+ if (C.size) {
997
1037
  typeof e.StartUpdate == "function" && e.StartUpdate();
998
1038
  try {
999
- G.forEach((R, h) => {
1000
- R.forEach((_) => {
1001
- e.GetAttribute(h, _, $e) !== "" && (e.SetAttribute(h, _, $e, "", 0, 0), a.add(h), T += 1);
1039
+ C.forEach((G, A) => {
1040
+ G.forEach((_) => {
1041
+ e.GetAttribute(A, _, ve) !== "" && (e.SetAttribute(A, _, ve, "", 0, 0), a.add(A), T += 1);
1002
1042
  });
1003
1043
  });
1004
1044
  } finally {
1005
1045
  typeof e.EndUpdate == "function" && e.EndUpdate();
1006
1046
  }
1007
- a.size && (t && a.forEach((R) => {
1008
- typeof e.RefreshRow == "function" && e.RefreshRow(R);
1009
- }), Qe(n, "group header button attribute apply"), en(n, "group header button attribute apply", s, {
1047
+ a.size && (t && a.forEach((G) => {
1048
+ typeof e.RefreshRow == "function" && e.RefreshRow(G);
1049
+ }), tn(n, "group header button attribute apply"), rn(n, "group header button attribute apply", s, {
1010
1050
  updatedCellCount: T,
1011
1051
  updatedRowCount: a.size
1012
1052
  }));
1013
1053
  }
1014
- }, "applyTreeGridGroupHeaderSortButtonAttributes"), mr = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), _r = /* @__PURE__ */ i((e) => {
1054
+ }, "applyTreeGridGroupHeaderSortButtonAttributes"), Dr = /* @__PURE__ */ i((e) => Array.isArray(e) ? e.length : 0, "getTreeGridBodyDataCount"), yr = /* @__PURE__ */ i((e) => {
1015
1055
  const n = e == null ? void 0 : e.Visible;
1016
1056
  return !!e && n !== 0 && n !== !1 && n !== "0";
1017
- }, "isVisibleTreeGridRow"), v = /* @__PURE__ */ i((e) => {
1057
+ }, "isVisibleTreeGridRow"), U = /* @__PURE__ */ i((e) => {
1018
1058
  const n = e == null ? void 0 : e.Added;
1019
1059
  return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
1020
- }, "isAddedTreeGridRow"), Rn = /* @__PURE__ */ i((e) => {
1060
+ }, "isAddedTreeGridRow"), An = /* @__PURE__ */ i((e) => {
1021
1061
  const n = e == null ? void 0 : e.Deleted;
1022
1062
  return !!e && n !== 0 && n !== !1 && n !== "0" && n !== void 0;
1023
- }, "isDeletedTreeGridRow"), A = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !_r(e) ? !1 : e.Kind === "Data" || v(e), "isDisplayTreeGridRow"), q = /* @__PURE__ */ i((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Lr = /* @__PURE__ */ i((e, n) => {
1063
+ }, "isDeletedTreeGridRow"), h = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !yr(e) ? !1 : e.Kind === "Data" || U(e), "isDisplayTreeGridRow"), q = /* @__PURE__ */ i((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), $r = /* @__PURE__ */ i((e, n) => {
1024
1064
  var r;
1025
1065
  const t = (r = e.Cols) == null ? void 0 : r[n];
1026
- return !!t && !P(t.Visible) && !St(t.Hidden);
1027
- }, "isVisibleTreeGridColumn"), K = /* @__PURE__ */ i((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), Or = /* @__PURE__ */ i((e) => {
1066
+ return !!t && !P(t.Visible) && !mt(t.Hidden);
1067
+ }, "isVisibleTreeGridColumn"), H = /* @__PURE__ */ i((e, n) => typeof e == "number" && Number.isFinite(e) ? e : n, "resolveTreeGridColumnOrderValue"), Pr = /* @__PURE__ */ i((e) => {
1028
1068
  const n = re.get(e);
1029
1069
  if (n)
1030
1070
  return n;
1031
1071
  const t = new Map(
1032
- q(e).map((c, f) => [c, f])
1072
+ q(e).map((c, u) => [c, u])
1033
1073
  ), r = [...t.keys()].filter(
1034
- (c) => !st.has(c) && Lr(e, c)
1035
- ).sort((c, f) => {
1036
- var O, y;
1037
- const a = (O = e.Cols) == null ? void 0 : O[c], T = (y = e.Cols) == null ? void 0 : y[f], G = t.get(c) ?? 0, R = t.get(f) ?? 0, h = K(a == null ? void 0 : a.Sec, G) - K(T == null ? void 0 : T.Sec, R);
1038
- return h !== 0 ? h : K(a == null ? void 0 : a.Pos, G) - K(T == null ? void 0 : T.Pos, R) || G - R;
1074
+ (c) => !ut.has(c) && $r(e, c)
1075
+ ).sort((c, u) => {
1076
+ var L, b;
1077
+ const a = (L = e.Cols) == null ? void 0 : L[c], T = (b = e.Cols) == null ? void 0 : b[u], C = t.get(c) ?? 0, G = t.get(u) ?? 0, A = H(a == null ? void 0 : a.Sec, C) - H(T == null ? void 0 : T.Sec, G);
1078
+ return A !== 0 ? A : H(a == null ? void 0 : a.Pos, C) - H(T == null ? void 0 : T.Pos, G) || C - G;
1039
1079
  }), s = {
1040
1080
  columnSet: new Set(r),
1041
1081
  firstColumn: r[0],
@@ -1053,68 +1093,68 @@ ${e.slice(
1053
1093
  return n;
1054
1094
  }
1055
1095
  return Object.values(e.Rows ?? {});
1056
- }, "getTreeGridRows"), fe = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ i((e) => {
1057
- e && fe.delete(e);
1058
- }, "clearTreeGridSelectionRowSpanAnchorRowMap"), gn = /* @__PURE__ */ i((e, n) => {
1096
+ }, "getTreeGridRows"), ue = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ i((e) => {
1097
+ e && ue.delete(e);
1098
+ }, "clearTreeGridSelectionRowSpanAnchorRowMap"), mn = /* @__PURE__ */ i((e, n) => {
1059
1099
  const t = e, r = t == null ? void 0 : t[`${n}RowSpan`], s = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
1060
1100
  return Number.isFinite(s) && s > 1 ? Math.floor(s) : 1;
1061
- }, "getTreeGridRowSpanCount"), xr = /* @__PURE__ */ i((e) => {
1101
+ }, "getTreeGridRowSpanCount"), vr = /* @__PURE__ */ i((e) => {
1062
1102
  const n = /* @__PURE__ */ new WeakMap();
1063
1103
  let t = null, r = -1;
1064
1104
  return J(e).forEach((s, c) => {
1065
- if (!A(s)) {
1105
+ if (!h(s)) {
1066
1106
  n.set(s, null);
1067
1107
  return;
1068
1108
  }
1069
- const f = gn(s, nn);
1070
- if (f > 1) {
1071
- t = s, r = c + f - 1, n.set(s, s);
1109
+ const u = mn(s, sn);
1110
+ if (u > 1) {
1111
+ t = s, r = c + u - 1, n.set(s, s);
1072
1112
  return;
1073
1113
  }
1074
1114
  n.set(s, t && c <= r ? t : null), c >= r && (t = null, r = -1);
1075
1115
  }), n;
1076
- }, "createTreeGridSelectionRowSpanAnchorRowMap"), Ce = /* @__PURE__ */ i((e, n) => {
1077
- if (!n || !A(n))
1116
+ }, "createTreeGridSelectionRowSpanAnchorRowMap"), Ee = /* @__PURE__ */ i((e, n) => {
1117
+ if (!n || !h(n))
1078
1118
  return null;
1079
- let t = fe.get(e);
1080
- return t != null && t.has(n) || (t = xr(e), fe.set(e, t)), t.get(n) ?? null;
1081
- }, "getTreeGridSelectionRowSpanAnchorRow"), hn = /* @__PURE__ */ i((e, n) => {
1082
- const t = Ce(e, n);
1119
+ let t = ue.get(e);
1120
+ return t != null && t.has(n) || (t = vr(e), ue.set(e, t)), t.get(n) ?? null;
1121
+ }, "getTreeGridSelectionRowSpanAnchorRow"), _n = /* @__PURE__ */ i((e, n) => {
1122
+ const t = Ee(e, n);
1083
1123
  if (!t)
1084
1124
  return [];
1085
- const r = gn(t, nn), s = [];
1125
+ const r = mn(t, sn), s = [];
1086
1126
  let c = t;
1087
- for (let f = 0; c && f < r; f += 1)
1088
- A(c) && s.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
1127
+ for (let u = 0; c && u < r; u += 1)
1128
+ h(c) && s.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
1089
1129
  return s;
1090
- }, "getTreeGridSelectionRowSpanRows"), br = /* @__PURE__ */ i((e) => {
1130
+ }, "getTreeGridSelectionRowSpanRows"), Ur = /* @__PURE__ */ i((e) => {
1091
1131
  const n = /* @__PURE__ */ new Set();
1092
1132
  return (e.GetSelRows() ?? []).forEach((t) => {
1093
- hn(e, t).forEach((r) => {
1133
+ _n(e, t).forEach((r) => {
1094
1134
  n.add(r);
1095
1135
  });
1096
1136
  }), [...n];
1097
- }, "getTreeGridSelectedRowSpanRows"), Ir = /* @__PURE__ */ i((e, n) => {
1137
+ }, "getTreeGridSelectedRowSpanRows"), Br = /* @__PURE__ */ i((e, n) => {
1098
1138
  if (!e)
1099
1139
  return;
1100
1140
  const t = q(e);
1101
1141
  J(e).forEach((r) => {
1102
- A(r) && n.set(
1142
+ h(r) && n.set(
1103
1143
  r,
1104
- new Map(t.map((s) => [s, Ee(e, r, s)]))
1144
+ new Map(t.map((s) => [s, Se(e, r, s)]))
1105
1145
  );
1106
1146
  });
1107
- }, "captureTreeGridChangeBaselines"), ae = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), wr = /* @__PURE__ */ i((e, n, t) => {
1147
+ }, "captureTreeGridChangeBaselines"), ae = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Fr = /* @__PURE__ */ i((e, n, t) => {
1108
1148
  const r = n;
1109
1149
  return q(e).some((s) => s !== t && ae(r[`${s}Changed`]));
1110
- }, "hasOtherTreeGridChangedCells"), An = /* @__PURE__ */ i((e, n, t) => {
1150
+ }, "hasOtherTreeGridChangedCells"), On = /* @__PURE__ */ i((e, n, t) => {
1111
1151
  const r = n;
1112
- r[`${t}Changed`] = 0, !v(n) && !w(n) && !wr(e, n, t) && (r.Changed = 0);
1113
- }, "clearTreeGridCellChangedState"), yr = /* @__PURE__ */ i((e, n, t) => {
1152
+ r[`${t}Changed`] = 0, !U(n) && !y(n) && !Fr(e, n, t) && (r.Changed = 0);
1153
+ }, "clearTreeGridCellChangedState"), Nr = /* @__PURE__ */ i((e, n, t) => {
1114
1154
  const r = e.get(n);
1115
1155
  if (r != null && r.has(t))
1116
1156
  return r.get(t);
1117
- }, "resolveTreeGridCellBaselineValue"), $r = /* @__PURE__ */ i(({
1157
+ }, "resolveTreeGridCellBaselineValue"), Vr = /* @__PURE__ */ i(({
1118
1158
  gridId: e,
1119
1159
  grid: n,
1120
1160
  row: t,
@@ -1122,80 +1162,80 @@ ${e.slice(
1122
1162
  backgroundColor: s,
1123
1163
  highlightRefresh: c
1124
1164
  }) => {
1125
- if (!v(t) && !w(t))
1165
+ if (!U(t) && !y(t))
1126
1166
  return !1;
1127
1167
  if (n.CanEdit(t, r) !== 1)
1128
1168
  return !0;
1129
- const f = Bn(t, r), a = te(t).includes(r);
1130
- return f === void 0 ? !0 : Ee(n, t, r) === f ? (Fn(t, r), a && Ze(e, { row: t, col: r }), An(n, t, r), !0) : (Nn(t, r), qe(e, {
1169
+ const u = Vn(t, r), a = te(t).includes(r);
1170
+ return u === void 0 ? !0 : Se(n, t, r) === u ? (kn(t, r), a && en(e, { row: t, col: r }), On(n, t, r), !0) : (Mn(t, r), nn(e, {
1131
1171
  row: t,
1132
1172
  col: r,
1133
1173
  backgroundColor: s,
1134
1174
  refresh: c
1135
1175
  }), !0);
1136
- }, "syncTreeGridAddedRowChangedCellHighlight"), Pr = /* @__PURE__ */ i(({
1176
+ }, "syncTreeGridAddedRowChangedCellHighlight"), kr = /* @__PURE__ */ i(({
1137
1177
  gridId: e,
1138
1178
  grid: n,
1139
1179
  row: t,
1140
1180
  col: r,
1141
1181
  backgroundColor: s,
1142
1182
  baselineMap: c,
1143
- highlightRefresh: f
1183
+ highlightRefresh: u
1144
1184
  }) => {
1145
- if (!A(t) || $r({
1185
+ if (!h(t) || Vr({
1146
1186
  gridId: e,
1147
1187
  grid: n,
1148
1188
  row: t,
1149
1189
  col: r,
1150
1190
  backgroundColor: s,
1151
- highlightRefresh: f
1191
+ highlightRefresh: u
1152
1192
  }))
1153
1193
  return;
1154
- const a = yr(c, t, r), T = Ee(n, t, r);
1194
+ const a = Nr(c, t, r), T = Se(n, t, r);
1155
1195
  if (a !== void 0 && T === a) {
1156
- Ze(e, { row: t, col: r }), An(n, t, r);
1196
+ en(e, { row: t, col: r }), On(n, t, r);
1157
1197
  return;
1158
1198
  }
1159
- qe(e, {
1199
+ nn(e, {
1160
1200
  row: t,
1161
1201
  col: r,
1162
1202
  backgroundColor: s,
1163
- refresh: f
1203
+ refresh: u
1164
1204
  });
1165
- }, "syncTreeGridChangedCellHighlight"), Dr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), mn = /* @__PURE__ */ i((e, n, t) => {
1205
+ }, "syncTreeGridChangedCellHighlight"), Mr = /* @__PURE__ */ i((e, n, t) => !n || !t || !h(n) ? !1 : e.CanEdit(n, t) === 1, "isEditableTreeGridCell"), Ln = /* @__PURE__ */ i((e, n, t) => {
1166
1206
  const r = e.GetAttribute(n, t, "Color");
1167
1207
  if (typeof r == "number")
1168
- return Ln(r);
1208
+ return xn(r);
1169
1209
  if (typeof r == "string")
1170
1210
  return r.trim() || void 0;
1171
- }, "getExplicitTreeGridCellColor"), vr = /* @__PURE__ */ i((e, n, t) => mn(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Se = /* @__PURE__ */ i((e, n, t) => {
1172
- if (!n || !t || !A(n))
1211
+ }, "getExplicitTreeGridCellColor"), Xr = /* @__PURE__ */ i((e, n, t) => Ln(e, n, t) !== void 0, "hasExplicitTreeGridCellColor"), Re = /* @__PURE__ */ i((e, n, t) => {
1212
+ if (!n || !t || !h(n))
1173
1213
  return !1;
1174
1214
  const r = typeof e.IsFocused == "function" ? e.IsFocused(n, t) : e.FRow === n && e.FCol === t;
1175
1215
  return r !== 0 && r !== !1 && r !== void 0 && r !== null;
1176
1216
  }, "isTreeGridFocusedCellState"), W = /* @__PURE__ */ i((e, n, t) => {
1177
- if (!n || !t || !A(n))
1217
+ if (!n || !t || !h(n))
1178
1218
  return !1;
1179
1219
  const r = e.IsSelected(n, t);
1180
1220
  if (r !== 0 && r !== !1 && r !== void 0 && r !== null)
1181
1221
  return !0;
1182
- const s = Ce(e, n);
1222
+ const s = Ee(e, n);
1183
1223
  if (!s || s === n)
1184
1224
  return !1;
1185
1225
  const c = e.IsSelected(s, t);
1186
1226
  return c !== 0 && c !== !1 && c !== void 0 && c !== null;
1187
- }, "isTreeGridSelectedCellState"), Ge = /* @__PURE__ */ i((e) => {
1188
- if (!Pe.length)
1227
+ }, "isTreeGridSelectedCellState"), Ce = /* @__PURE__ */ i((e) => {
1228
+ if (!Ue.length)
1189
1229
  return !1;
1190
1230
  const n = e.split(/\s+/).filter(Boolean);
1191
- return Pe.every(
1231
+ return Ue.every(
1192
1232
  (t) => n.includes(t)
1193
1233
  );
1194
- }, "hasTreeGridChangedCellDisplayClass"), Br = /* @__PURE__ */ i((e) => {
1195
- if (!(!e || e.split(/\s+/).includes(ye) || !Ge(e)))
1196
- return `${e} ${ye}`;
1197
- }, "appendTreeGridSelectedChangedCellDisplayClass"), Fr = /* @__PURE__ */ i((e) => !e || !A(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ge(t)), "hasTreeGridChangedCellDisplayClassInRow"), Nr = /* @__PURE__ */ i((e, n) => {
1198
- if (!n || !Fr(n) || typeof e.RefreshRow != "function")
1234
+ }, "hasTreeGridChangedCellDisplayClass"), Jr = /* @__PURE__ */ i((e) => {
1235
+ if (!(!e || e.split(/\s+/).includes(Pe) || !Ce(e)))
1236
+ return `${e} ${Pe}`;
1237
+ }, "appendTreeGridSelectedChangedCellDisplayClass"), Wr = /* @__PURE__ */ i((e) => !e || !h(e) ? !1 : Object.entries(e).some(([n, t]) => n.endsWith("Class") && typeof t == "string" && Ce(t)), "hasTreeGridChangedCellDisplayClassInRow"), jr = /* @__PURE__ */ i((e, n) => {
1238
+ if (!n || !Wr(n) || typeof e.RefreshRow != "function")
1199
1239
  return;
1200
1240
  const t = n;
1201
1241
  window.setTimeout(() => {
@@ -1210,30 +1250,30 @@ ${e.slice(
1210
1250
  e.RefreshRow(r);
1211
1251
  });
1212
1252
  }, 0);
1213
- }, "scheduleTreeGridRowsRefresh"), Ur = /* @__PURE__ */ i((e, n) => {
1253
+ }, "scheduleTreeGridRowsRefresh"), Hr = /* @__PURE__ */ i((e, n) => {
1214
1254
  if (!n)
1215
1255
  return;
1216
- const t = hn(e, n);
1256
+ const t = _n(e, n);
1217
1257
  t.length <= 1 || j(e, t);
1218
- }, "scheduleTreeGridSelectionRowSpanRefresh"), kr = /* @__PURE__ */ i((e) => {
1219
- const n = J(e).filter((t) => A(t) && Ce(e, t));
1258
+ }, "scheduleTreeGridSelectionRowSpanRefresh"), Kr = /* @__PURE__ */ i((e) => {
1259
+ const n = J(e).filter((t) => h(t) && Ee(e, t));
1220
1260
  j(e, n);
1221
- }, "scheduleTreeGridSelectionRowSpanRefreshAll"), _n = /* @__PURE__ */ i((e, n, t, r) => {
1222
- if (!(!n || r === void 0 || !Dr(e, n, t) || Se(e, n, t) || W(e, n, t) || vr(e, n, t)))
1261
+ }, "scheduleTreeGridSelectionRowSpanRefreshAll"), wn = /* @__PURE__ */ i((e, n, t, r) => {
1262
+ if (!(!n || r === void 0 || !Mr(e, n, t) || Re(e, n, t) || W(e, n, t) || Xr(e, n, t)))
1223
1263
  return r;
1224
- }, "getEditableTreeGridCellDefaultColor"), N = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), Mr = /* @__PURE__ */ i((e, n, t) => rt.some(
1225
- (r) => N(e, n, t, r)
1226
- ), "isTreeGridNativeErrorBackgroundColor"), Ln = /* @__PURE__ */ i((e) => {
1264
+ }, "getEditableTreeGridCellDefaultColor"), $ = /* @__PURE__ */ i((e, n, t, r) => e === r[0] && n === r[1] && t === r[2], "matchesTreeGridRgbColor"), zr = /* @__PURE__ */ i((e, n, t) => dt.some(
1265
+ (r) => $(e, n, t, r)
1266
+ ), "isTreeGridNativeErrorBackgroundColor"), xn = /* @__PURE__ */ i((e) => {
1227
1267
  if (!(e === void 0 || !Number.isFinite(e)))
1228
1268
  return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
1229
- }, "toTreeGridCssHexColor"), Te = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), Re = /* @__PURE__ */ i((e, n, t) => Te(e, n, t) !== "", "hasTreeGridCellError"), Vr = /* @__PURE__ */ i((e, n) => {
1269
+ }, "toTreeGridCssHexColor"), Te = /* @__PURE__ */ i((e, n, t) => !n || !t || !h(n) ? "" : e.GetAttribute(n, t, "Error") ?? "", "getTreeGridCellError"), Ge = /* @__PURE__ */ i((e, n, t) => Te(e, n, t) !== "", "hasTreeGridCellError"), Yr = /* @__PURE__ */ i((e, n) => {
1230
1270
  if (!n)
1231
1271
  return;
1232
1272
  let t = !1;
1233
1273
  q(e).forEach((r) => {
1234
- Re(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
1274
+ Ge(e, n, r) && (e.SetAttribute(n, r, "Error", "", 0), t = !0);
1235
1275
  }), t && e.RefreshRow(n);
1236
- }, "clearTreeGridRowErrors"), Xr = /* @__PURE__ */ i((e) => {
1276
+ }, "clearTreeGridRowErrors"), Zr = /* @__PURE__ */ i((e) => {
1237
1277
  const n = e == null ? void 0 : e.target;
1238
1278
  if (typeof HTMLElement > "u" || typeof Element > "u" || typeof Node > "u")
1239
1279
  return null;
@@ -1243,60 +1283,60 @@ ${e.slice(
1243
1283
  return c instanceof HTMLElement ? c : s instanceof HTMLElement ? s : null;
1244
1284
  }
1245
1285
  return null;
1246
- }, "getTreeGridMouseEventAnchorElement"), Jr = /* @__PURE__ */ i((e, n) => {
1247
- if (!e || !n || !A(e))
1286
+ }, "getTreeGridMouseEventAnchorElement"), qr = /* @__PURE__ */ i((e, n) => {
1287
+ if (!e || !n || !h(e))
1248
1288
  return !1;
1249
- const t = e, r = t[`${n}Class`], s = ae(t[`${n}Changed`]) || typeof r == "string" && Ge(r);
1250
- return v(e) || w(e) ? s : s || ae(t.Changed);
1251
- }, "isChangedTreeGridRowOrCell"), Wr = /* @__PURE__ */ i((e, n, t) => ot.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), jr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), Kr = /* @__PURE__ */ i((e, n, t) => !n || !t || !A(n) || e.ARow !== n || e.ACol !== t ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), Hr = /* @__PURE__ */ i((e, n) => !!n && A(n) && e.FRow === n, "isTreeGridFocusedRowState"), zr = /* @__PURE__ */ i(({
1289
+ const t = e, r = t[`${n}Class`], s = ae(t[`${n}Changed`]) || typeof r == "string" && Ce(r);
1290
+ return U(e) || y(e) ? s : s || ae(t.Changed);
1291
+ }, "isChangedTreeGridRowOrCell"), Qr = /* @__PURE__ */ i((e, n, t) => at.has(e.GetType(n, t)), "isTreeGridNativeInputEditType"), ge = /* @__PURE__ */ i((e, n, t) => !!n && !!t && h(n) && e.ARow === n && e.ACol === t, "isTreeGridHoveredCellState"), ei = /* @__PURE__ */ i((e, n, t) => !ge(e, n, t) || !n ? !1 : e.CanEdit(n, t) === 0, "isTreeGridReadonlyHoveredCellState"), ni = /* @__PURE__ */ i((e, n, t) => !ge(e, n, t) || !n ? !1 : e.CanEdit(n, t) === 2, "isTreeGridPreviewHoveredCellState"), ti = /* @__PURE__ */ i((e, n) => !!n && h(n) && e.FRow === n, "isTreeGridFocusedRowState"), ri = /* @__PURE__ */ i(({
1252
1292
  grid: e,
1253
1293
  row: n,
1254
1294
  col: t,
1255
1295
  r,
1256
1296
  g: s,
1257
1297
  b: c,
1258
- focusedCellBackgroundColor: f,
1298
+ focusedCellBackgroundColor: u,
1259
1299
  selectedCellBackgroundColor: a,
1260
1300
  hoverCellBackgroundColor: T,
1261
- changedCellBackgroundColor: G,
1262
- editableCellBackgroundColorValue: R
1301
+ changedCellBackgroundColor: C,
1302
+ editableCellBackgroundColorValue: G
1263
1303
  }) => {
1264
- if (Se(e, n, t))
1265
- return f;
1304
+ if (Re(e, n, t))
1305
+ return u;
1266
1306
  if (W(e, n, t))
1267
1307
  return a;
1268
- if (jr(e, n, t) && (N(r, s, c, qn) || N(r, s, c, Qn)) || Kr(e, n, t) && (N(r, s, c, et) || N(r, s, c, nt) || N(r, s, c, tt)))
1308
+ if (ge(e, n, t) && $(r, s, c, st) || ei(e, n, t) && ($(r, s, c, rt) || $(r, s, c, it)) || ni(e, n, t) && ($(r, s, c, ot) || $(r, s, c, ct) || $(r, s, c, lt)))
1269
1309
  return T;
1270
- if (Rn(n))
1310
+ if (An(n))
1271
1311
  return;
1272
- const h = v(n) || w(n), _ = Re(e, n, t) && Mr(r, s, c);
1273
- if (!_ && !h)
1312
+ const A = U(n) || y(n), _ = Ge(e, n, t) && zr(r, s, c);
1313
+ if (!_ && !A)
1274
1314
  return;
1275
- const O = mn(e, n, t);
1276
- if (_ && O)
1277
- return O;
1278
- if (Jr(n, t))
1279
- return G;
1280
- const y = _n(
1315
+ const L = Ln(e, n, t);
1316
+ if (_ && L)
1317
+ return L;
1318
+ if (qr(n, t))
1319
+ return C;
1320
+ const b = wn(
1281
1321
  e,
1282
1322
  n,
1283
1323
  t,
1284
- R
1324
+ G
1285
1325
  );
1286
- return y !== void 0 ? Ln(y) : h ? O ?? Dn : it;
1326
+ return b !== void 0 ? xn(b) : A ? L ?? Fn : ft;
1287
1327
  }, "resolveTreeGridStateBackgroundColor"), Y = /* @__PURE__ */ i((e, n) => {
1288
1328
  const t = e.split(/\s+/).filter(Boolean);
1289
1329
  return t.includes(n) ? e : [...t, n].join(" ");
1290
- }, "appendTreeGridClassToken"), Yr = /* @__PURE__ */ i((e, n, t, r) => !Re(e, n, t) || !n ? r : Y(r, Jn), "appendTreeGridErrorCellDisplayClass"), Zr = /* @__PURE__ */ i((e, n, t, r) => {
1291
- if (!A(n) || Rn(n) || !v(n) && !w(n) || Hr(e, n) || W(e, n, t))
1330
+ }, "appendTreeGridClassToken"), ii = /* @__PURE__ */ i((e, n, t, r) => !Ge(e, n, t) || !n ? r : Y(r, zn), "appendTreeGridErrorCellDisplayClass"), si = /* @__PURE__ */ i((e, n, t, r) => {
1331
+ if (!h(n) || An(n) || !U(n) && !y(n) || ti(e, n) || W(e, n, t))
1292
1332
  return r;
1293
- const s = Or(e);
1333
+ const s = Pr(e);
1294
1334
  if (!s.columnSet.has(t))
1295
1335
  return r;
1296
- let c = Y(r, Xn);
1297
- return t === s.firstColumn && (c = Y(c, Wn)), t === s.lastColumn && (c = Y(c, jn)), c;
1298
- }, "appendTreeGridAddedRowBoxDisplayClass"), qr = /* @__PURE__ */ i((e, n, t, r) => {
1299
- const s = Yr(e, n, t, r), c = Zr(
1336
+ let c = Y(r, Kn);
1337
+ return t === s.firstColumn && (c = Y(c, Yn)), t === s.lastColumn && (c = Y(c, Zn)), c;
1338
+ }, "appendTreeGridAddedRowBoxDisplayClass"), oi = /* @__PURE__ */ i((e, n, t, r) => {
1339
+ const s = ii(e, n, t, r), c = si(
1300
1340
  e,
1301
1341
  n,
1302
1342
  t,
@@ -1304,72 +1344,75 @@ ${e.slice(
1304
1344
  );
1305
1345
  if (!W(e, n, t))
1306
1346
  return c === r ? void 0 : c;
1307
- const f = Br(c) ?? c;
1308
- return f === r ? void 0 : f;
1309
- }, "resolveTreeGridCellDisplayClass"), On = /* @__PURE__ */ i((e) => A(e) && (v(e) || w(e)), "isTreeGridAddedRowBoxDisplayRow"), ze = /* @__PURE__ */ i((e, n) => {
1310
- const t = n.filter(On);
1347
+ const u = Jr(c) ?? c;
1348
+ return u === r ? void 0 : u;
1349
+ }, "resolveTreeGridCellDisplayClass"), bn = /* @__PURE__ */ i((e) => h(e) && (U(e) || y(e)), "isTreeGridAddedRowBoxDisplayRow"), qe = /* @__PURE__ */ i((e, n) => {
1350
+ const t = n.filter(bn);
1311
1351
  t.length && j(e, t);
1312
- }, "scheduleTreeGridAddedRowBoxRowsRefresh"), Qr = /* @__PURE__ */ i((e) => {
1313
- j(e, J(e).filter(On));
1314
- }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), ai = /* @__PURE__ */ i((e) => {
1352
+ }, "scheduleTreeGridAddedRowBoxRowsRefresh"), ci = /* @__PURE__ */ i((e) => {
1353
+ j(e, J(e).filter(bn));
1354
+ }, "scheduleTreeGridAddedRowBoxRowsRefreshAll"), gi = /* @__PURE__ */ i((e) => {
1315
1355
  if (!e)
1316
1356
  return !1;
1317
1357
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
1318
1358
  let n = e.GetFirst();
1319
1359
  for (; n; ) {
1320
- if (A(n))
1360
+ if (h(n))
1321
1361
  return !0;
1322
1362
  n = e.GetNext(n);
1323
1363
  }
1324
1364
  return !1;
1325
1365
  }
1326
- return Object.values(e.Rows ?? {}).some((n) => A(n));
1327
- }, "hasTreeGridDisplayDataRows"), Ti = /* @__PURE__ */ i((e, n, t) => {
1366
+ return Object.values(e.Rows ?? {}).some((n) => h(n));
1367
+ }, "hasTreeGridDisplayDataRows"), hi = /* @__PURE__ */ i((e, n, t) => {
1328
1368
  var s;
1329
- b(e);
1369
+ x(e);
1330
1370
  const r = (s = e.Data) == null ? void 0 : s.Data;
1331
1371
  e.Data.Data = {
1332
1372
  ...r,
1333
1373
  Data: { Body: [n || []] },
1334
1374
  Url: ""
1335
1375
  }, e.ReloadBody(t);
1336
- }, "replaceTreeGridBodyData"), Ei = /* @__PURE__ */ i(({
1376
+ }, "replaceTreeGridBodyData"), Ai = /* @__PURE__ */ i(({
1337
1377
  id: e,
1338
1378
  latestEventHandlersRef: n,
1339
1379
  layoutHasExplicitEnterModeRef: t,
1340
1380
  highlightEditableCellsRef: r,
1341
1381
  highlightChangedCellsRef: s,
1342
1382
  syncDeletedRowCanEditRef: c,
1343
- editableCellBackgroundColorValueRef: f,
1383
+ editableCellBackgroundColorValueRef: u,
1344
1384
  changedCellBackgroundColorRef: a,
1345
1385
  focusedCellBackgroundColorRef: T,
1346
- selectedCellBackgroundColorRef: G,
1347
- hoverCellBackgroundColorRef: R,
1348
- changedCellBaselineRef: h,
1349
- treeGridInstanceRef: _,
1350
- treeGridInitStartedAtRef: O,
1351
- latestLayoutOverridesRef: y,
1352
- latestToolbarTotalCountFormulaRef: ge,
1353
- latestSuppressCfgRef: he,
1386
+ selectedCellBackgroundColorRef: C,
1387
+ hoverCellBackgroundColorRef: G,
1388
+ hoverCellBorderColorRef: A,
1389
+ changedCellBaselineRef: _,
1390
+ treeGridInstanceRef: L,
1391
+ treeGridInitStartedAtRef: b,
1392
+ latestLayoutOverridesRef: In,
1393
+ latestToolbarTotalCountFormulaRef: he,
1394
+ latestSuppressCfgRef: Ae,
1354
1395
  latestHideChildHeaderSortButtonsRef: Q,
1355
- latestSelectionScopeRef: xn,
1356
- latestDisabledAnimationsRef: Ae,
1357
- appliedLayoutOverridesRef: bn,
1358
- appliedBodyDataPropRef: In,
1359
- hasAppliedInitialLayoutRef: me,
1396
+ latestSelectionScopeRef: Dn,
1397
+ latestDisabledAnimationsRef: me,
1398
+ appliedLayoutOverridesRef: yn,
1399
+ appliedBodyDataPropRef: $n,
1400
+ hasAppliedInitialLayoutRef: _e,
1360
1401
  syncHasDisplayDataRows: B,
1361
- setIsTreeGridReady: wn,
1362
- showErrorTooltip: yn,
1363
- hideErrorTooltip: $
1402
+ setIsTreeGridReady: Pn,
1403
+ setCanRenderTreeGridOverlays: Oe,
1404
+ setHasTreeGridSizeError: Le,
1405
+ showErrorTooltip: vn,
1406
+ hideErrorTooltip: I
1364
1407
  }) => {
1365
1408
  const m = n.current;
1366
1409
  if (window.TGSetEvent("OnRowAdd", e, (o, l) => {
1367
- var d, u;
1368
- b(o), l.CanEdit = 1, l.CanDelete = 1, (u = (d = n.current) == null ? void 0 : d.onRowAdd) == null || u.call(d, o, l);
1410
+ var d, f;
1411
+ x(o), l.CanEdit = 1, l.CanDelete = 1, (f = (d = n.current) == null ? void 0 : d.onRowAdd) == null || f.call(d, o, l);
1369
1412
  }), window.TGSetEvent("OnRowAdded", e, (o) => {
1370
- b(o), B(o);
1413
+ x(o), B(o);
1371
1414
  }), window.TGSetEvent("OnRowRemove", e, (o) => {
1372
- b(o), $(), B(o);
1415
+ x(o), I(), B(o);
1373
1416
  }), window.TGSetEvent("OnColShow", e, (o) => {
1374
1417
  F(o);
1375
1418
  }), window.TGSetEvent("OnAfterColumnsChanged", e, (o) => {
@@ -1382,31 +1425,31 @@ ${e.slice(
1382
1425
  F(o);
1383
1426
  }), window.TGSetEvent("OnColUndelete", e, (o) => {
1384
1427
  F(o);
1385
- }), window.TGSetEvent("OnMouseOver", e, (o, l, d, u, E, C) => {
1428
+ }), window.TGSetEvent("OnMouseOver", e, (o, l, d, f, S, E) => {
1386
1429
  const p = Te(o, l, d);
1387
1430
  if (!p) {
1388
- $();
1431
+ I();
1389
1432
  return;
1390
1433
  }
1391
- const g = Xr(C);
1434
+ const g = Zr(E);
1392
1435
  if (!g) {
1393
- $();
1436
+ I();
1394
1437
  return;
1395
1438
  }
1396
- o.HideTip(), yn({ anchorEl: g, row: l, col: d, message: p });
1397
- }), window.TGSetEvent("OnFocus", e, (o, l, d, u) => {
1398
- l !== u && ze(o, [l, u]);
1399
- }), window.TGSetEvent("OnTip", e, (o, l, d, u) => Te(o, l, d) ? "" : u), window.TGSetEvent("OnCanRowDelete", e, (o, l, d) => {
1400
- var C;
1439
+ o.HideTip(), vn({ anchorEl: g, row: l, col: d, message: p });
1440
+ }), window.TGSetEvent("OnFocus", e, (o, l, d, f) => {
1441
+ l !== f && qe(o, [l, f]);
1442
+ }), window.TGSetEvent("OnTip", e, (o, l, d, f) => Te(o, l, d) ? "" : f), window.TGSetEvent("OnCanRowDelete", e, (o, l, d) => {
1443
+ var E;
1401
1444
  if (d !== 3)
1402
1445
  return d;
1403
- const u = (C = n.current) == null ? void 0 : C.onBeforeRowUndelete;
1404
- if (typeof u != "function")
1446
+ const f = (E = n.current) == null ? void 0 : E.onBeforeRowUndelete;
1447
+ if (typeof f != "function")
1405
1448
  return d;
1406
- const E = /* @__PURE__ */ i((p) => {
1449
+ const S = /* @__PURE__ */ i((p) => {
1407
1450
  window.setTimeout(() => {
1408
- Rr(
1409
- _.current ?? o,
1451
+ wr(
1452
+ L.current ?? o,
1410
1453
  l,
1411
1454
  p,
1412
1455
  B
@@ -1414,96 +1457,96 @@ ${e.slice(
1414
1457
  }, 0);
1415
1458
  }, "scheduleAction");
1416
1459
  try {
1417
- const p = u(o, l);
1418
- return Gr(p) ? (p.then(E).catch(() => {
1419
- E("undelete");
1420
- }), 0) : (E(p), 0);
1460
+ const p = f(o, l);
1461
+ return Or(p) ? (p.then(S).catch(() => {
1462
+ S("undelete");
1463
+ }), 0) : (S(p), 0);
1421
1464
  } catch {
1422
- return E("undelete"), 0;
1465
+ return S("undelete"), 0;
1423
1466
  }
1424
1467
  }), typeof (m == null ? void 0 : m.onRowClick) == "function" || typeof (m == null ? void 0 : m.onInternalCellClick) == "function") {
1425
- const o = ee((l, d, u, E, C, p) => {
1426
- var g, x;
1427
- (x = (g = n.current) == null ? void 0 : g.onRowClick) == null || x.call(
1468
+ const o = ee((l, d, f, S, E, p) => {
1469
+ var g, w;
1470
+ (w = (g = n.current) == null ? void 0 : g.onRowClick) == null || w.call(
1428
1471
  g,
1429
1472
  l,
1430
1473
  d,
1431
- u,
1474
+ f,
1475
+ S,
1432
1476
  E,
1433
- C,
1434
1477
  p
1435
1478
  );
1436
1479
  }, 300);
1437
- window.TGSetEvent("OnClick", e, (l, d, u, E, C, p) => {
1438
- var x, Le, Oe;
1439
- const g = (Le = (x = n.current) == null ? void 0 : x.onInternalCellClick) == null ? void 0 : Le.call(
1440
- x,
1480
+ window.TGSetEvent("OnClick", e, (l, d, f, S, E, p) => {
1481
+ var w, xe, be;
1482
+ const g = (xe = (w = n.current) == null ? void 0 : w.onInternalCellClick) == null ? void 0 : xe.call(
1483
+ w,
1441
1484
  l,
1442
1485
  d,
1443
- u,
1486
+ f,
1487
+ S,
1444
1488
  E,
1445
- C,
1446
1489
  p
1447
1490
  );
1448
1491
  if (g !== void 0)
1449
1492
  return g;
1450
- typeof ((Oe = n.current) == null ? void 0 : Oe.onRowClick) == "function" && o(l, d, u, E, C, p);
1493
+ typeof ((be = n.current) == null ? void 0 : be.onRowClick) == "function" && o(l, d, f, S, E, p);
1451
1494
  });
1452
1495
  }
1453
1496
  (typeof (m == null ? void 0 : m.onClickButton) == "function" || typeof (m == null ? void 0 : m.onInternalButtonClick) == "function") && window.TGSetEvent(
1454
1497
  "OnClickButton",
1455
1498
  e,
1456
- (o, l, d, u) => {
1457
- var C, p, g, x;
1458
- const E = (p = (C = n.current) == null ? void 0 : C.onInternalButtonClick) == null ? void 0 : p.call(
1459
- C,
1499
+ (o, l, d, f) => {
1500
+ var E, p, g, w;
1501
+ const S = (p = (E = n.current) == null ? void 0 : E.onInternalButtonClick) == null ? void 0 : p.call(
1502
+ E,
1460
1503
  o,
1461
1504
  l,
1462
1505
  d,
1463
- u
1506
+ f
1464
1507
  );
1465
- if (E !== void 0)
1466
- return E;
1467
- (x = (g = n.current) == null ? void 0 : g.onClickButton) == null || x.call(
1508
+ if (S !== void 0)
1509
+ return S;
1510
+ (w = (g = n.current) == null ? void 0 : g.onClickButton) == null || w.call(
1468
1511
  g,
1469
1512
  o,
1470
1513
  l,
1471
1514
  d,
1472
- u
1515
+ f
1473
1516
  );
1474
1517
  }
1475
1518
  ), typeof (m == null ? void 0 : m.onInternalKeyDown) == "function" && (window.TGSetEvent(
1476
1519
  "OnKeyDown",
1477
1520
  e,
1478
- (o, l, d, u, E) => {
1479
- var C, p;
1480
- return (p = (C = n.current) == null ? void 0 : C.onInternalKeyDown) == null ? void 0 : p.call(C, o, l, d, u, E);
1521
+ (o, l, d, f, S) => {
1522
+ var E, p;
1523
+ return (p = (E = n.current) == null ? void 0 : E.onInternalKeyDown) == null ? void 0 : p.call(E, o, l, d, f, S);
1481
1524
  }
1482
1525
  ), window.TGSetEvent(
1483
1526
  "OnKeyPress",
1484
1527
  e,
1485
- (o, l, d, u, E) => {
1486
- var C, p;
1487
- return (p = (C = n.current) == null ? void 0 : C.onInternalKeyDown) == null ? void 0 : p.call(C, o, l, d, u, E);
1528
+ (o, l, d, f, S) => {
1529
+ var E, p;
1530
+ return (p = (E = n.current) == null ? void 0 : E.onInternalKeyDown) == null ? void 0 : p.call(E, o, l, d, f, S);
1488
1531
  }
1489
1532
  )), window.TGSetEvent("OnStartEdit", e, (o, l, d) => {
1490
- var u, E;
1491
- return $(), (E = (u = n.current) == null ? void 0 : u.onInternalStartEdit) == null ? void 0 : E.call(
1492
- u,
1533
+ var f, S;
1534
+ return I(), (S = (f = n.current) == null ? void 0 : f.onInternalStartEdit) == null ? void 0 : S.call(
1535
+ f,
1493
1536
  o,
1494
1537
  l,
1495
1538
  d
1496
1539
  );
1497
1540
  }), window.TGSetEvent("OnRowDelete", e, (o, l, d) => {
1498
- var g, x;
1499
- b(o), $(), Vr(o, l), o.SelectRow(l, 0);
1500
- const u = w(l), E = u ? te(l) : [], C = u ? xe(l) : [], p = c.current !== !1;
1501
- Je(o, l, {
1541
+ var g, w;
1542
+ x(o), I(), Yr(o, l), o.SelectRow(l, 0);
1543
+ const f = y(l), S = f ? te(l) : [], E = f ? Ie(l) : [], p = c.current !== !1;
1544
+ He(o, l, {
1502
1545
  canEdit: p ? 2 : void 0,
1503
- editableColumns: C,
1504
- editableCanEdit: p && C.length ? 2 : void 0,
1505
- highlightColumns: E
1506
- }), B(o), (x = (g = n.current) == null ? void 0 : g.onRowDelete) == null || x.call(
1546
+ editableColumns: E,
1547
+ editableCanEdit: p && E.length ? 2 : void 0,
1548
+ highlightColumns: S
1549
+ }), B(o), (w = (g = n.current) == null ? void 0 : g.onRowDelete) == null || w.call(
1507
1550
  g,
1508
1551
  o,
1509
1552
  l,
@@ -1511,133 +1554,140 @@ ${e.slice(
1511
1554
  );
1512
1555
  }), window.TGSetEvent("OnRowUndelete", e, (o, l) => {
1513
1556
  var p, g;
1514
- b(o), $();
1515
- const d = w(l), u = d ? te(l) : [], E = d ? xe(l) : [], C = c.current !== !1;
1516
- Je(o, l, {
1517
- canEdit: C ? 1 : void 0,
1518
- editableColumns: E,
1519
- editableCanEdit: C && E.length ? 1 : void 0,
1520
- highlightColumns: u,
1521
- highlightBackgroundColor: u.length ? a.current : void 0
1557
+ x(o), I();
1558
+ const d = y(l), f = d ? te(l) : [], S = d ? Ie(l) : [], E = c.current !== !1;
1559
+ He(o, l, {
1560
+ canEdit: E ? 1 : void 0,
1561
+ editableColumns: S,
1562
+ editableCanEdit: E && S.length ? 1 : void 0,
1563
+ highlightColumns: f,
1564
+ highlightBackgroundColor: f.length ? a.current : void 0
1522
1565
  }), B(o), (g = (p = n.current) == null ? void 0 : p.onRowUndelete) == null || g.call(p, o, l);
1523
1566
  }), window.TGSetEvent("OnGetDefaultColor", e, (o, l, d) => {
1524
- if (!(!r.current || !A(l)))
1525
- return _n(
1567
+ if (!(!r.current || !h(l)))
1568
+ return wn(
1526
1569
  o,
1527
1570
  l,
1528
1571
  d,
1529
- f.current
1572
+ u.current
1530
1573
  );
1531
- }), window.TGSetEvent("OnGetColor", e, (o, l, d, u, E, C, p) => {
1574
+ }), window.TGSetEvent("OnGetColor", e, (o, l, d, f, S, E, p) => {
1532
1575
  if (!p)
1533
- return zr({
1576
+ return ri({
1534
1577
  grid: o,
1535
1578
  row: l,
1536
1579
  col: d,
1537
- r: u,
1538
- g: E,
1539
- b: C,
1580
+ r: f,
1581
+ g: S,
1582
+ b: E,
1540
1583
  focusedCellBackgroundColor: T.current,
1541
- selectedCellBackgroundColor: G.current,
1542
- hoverCellBackgroundColor: R.current,
1584
+ selectedCellBackgroundColor: C.current,
1585
+ hoverCellBackgroundColor: G.current,
1543
1586
  changedCellBackgroundColor: a.current,
1544
- editableCellBackgroundColorValue: f.current
1587
+ editableCellBackgroundColorValue: u.current
1545
1588
  });
1546
- }), window.TGSetEvent("OnGetClass", e, (o, l, d, u) => qr(o, l, d, typeof u == "string" ? u : "")), window.TGSetEvent("OnAfterValueChanged", e, (o, l, d, u) => {
1547
- var C, p;
1548
- if ($(), s.current && A(l)) {
1549
- const g = !Wr(o, l, d) || W(o, l, d) && !Se(o, l, d);
1550
- Pr({
1589
+ }), window.TGSetEvent("OnHint", e, () => {
1590
+ gr(
1591
+ Wn,
1592
+ A.current
1593
+ );
1594
+ }), window.TGSetEvent("OnGetClass", e, (o, l, d, f) => oi(o, l, d, typeof f == "string" ? f : "")), window.TGSetEvent("OnAfterValueChanged", e, (o, l, d, f) => {
1595
+ var E, p;
1596
+ if (I(), s.current && h(l)) {
1597
+ const g = !Qr(o, l, d) || W(o, l, d) && !Re(o, l, d);
1598
+ kr({
1551
1599
  gridId: e,
1552
1600
  grid: o,
1553
1601
  row: l,
1554
1602
  col: d,
1555
1603
  backgroundColor: a.current,
1556
- baselineMap: h.current,
1604
+ baselineMap: _.current,
1557
1605
  highlightRefresh: g
1558
1606
  });
1559
1607
  }
1560
- const E = ((C = n.current) == null ? void 0 : C.onAfterValueChanged) ?? ((p = n.current) == null ? void 0 : p.onRowChange);
1561
- E == null || E(o, l, d, u);
1608
+ const S = ((E = n.current) == null ? void 0 : E.onAfterValueChanged) ?? ((p = n.current) == null ? void 0 : p.onRowChange);
1609
+ S == null || S(o, l, d, f);
1562
1610
  });
1563
- const _e = ee((o) => {
1564
- var u, E;
1565
- const l = o.GetSelRows() ?? [], d = kn(o, l, {
1566
- selectionScope: xn.current
1611
+ const we = ee((o) => {
1612
+ var f, S;
1613
+ const l = o.GetSelRows() ?? [], d = Jn(o, l, {
1614
+ selectionScope: Dn.current
1567
1615
  });
1568
- (E = (u = n.current) == null ? void 0 : u.onSelect) == null || E.call(
1569
- u,
1570
- vn(o, d)
1616
+ (S = (f = n.current) == null ? void 0 : f.onSelect) == null || S.call(
1617
+ f,
1618
+ Nn(o, d)
1571
1619
  );
1572
1620
  }, 100);
1573
- window.TGSetEvent("OnSelect", e, (o, l, d, u, E) => {
1621
+ window.TGSetEvent("OnSelect", e, (o, l, d, f, S) => {
1574
1622
  var p;
1575
- if (E)
1623
+ if (S)
1576
1624
  return;
1577
- const C = br(o);
1578
- Nr(o, l), ze(o, [l]), j(o, C), Ur(o, l), Ve(o, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && _e(o);
1579
- }), window.TGSetEvent("OnSelectAll", e, (o, l, d, u) => {
1580
- var E;
1581
- u || (kr(o), Qr(o), Ve(o, e), typeof ((E = n.current) == null ? void 0 : E.onSelect) == "function" && _e(o));
1625
+ const E = Ur(o);
1626
+ jr(o, l), qe(o, [l]), j(o, E), Hr(o, l), We(o, e), typeof ((p = n.current) == null ? void 0 : p.onSelect) == "function" && we(o);
1627
+ }), window.TGSetEvent("OnSelectAll", e, (o, l, d, f) => {
1628
+ var S;
1629
+ f || (Kr(o), ci(o), We(o, e), typeof ((S = n.current) == null ? void 0 : S.onSelect) == "function" && we(o));
1582
1630
  }), typeof (m == null ? void 0 : m.onSave) == "function" && window.TGSetEvent("OnSave", e, (o, l, d) => {
1583
- var u, E;
1584
- (E = (u = n.current) == null ? void 0 : u.onSave) == null || E.call(
1585
- u,
1631
+ var f, S;
1632
+ (S = (f = n.current) == null ? void 0 : f.onSave) == null || S.call(
1633
+ f,
1586
1634
  o,
1587
1635
  l,
1588
1636
  d
1589
1637
  );
1590
1638
  }), window.TGSetEvent("OnSort", e, (o, l) => {
1591
1639
  var d;
1592
- if (!(!l || !Ar(
1640
+ if (!(!l || !Ir(
1593
1641
  o,
1594
1642
  o.ARow,
1595
1643
  l,
1596
1644
  Q.current !== !1
1597
1645
  )))
1598
- return Qe(e, "group header sort blocked"), Kn(e, "group header sort blocked", {
1646
+ return tn(e, "group header sort blocked"), qn(e, "group header sort blocked", {
1599
1647
  rowId: (d = o.ARow) == null ? void 0 : d.id,
1600
1648
  col: l
1601
1649
  }), -1;
1602
1650
  }), window.TGSetEvent("OnSortFinish", e, (o) => {
1603
- b(o);
1651
+ x(o);
1604
1652
  }), window.TGSetEvent("OnFilterFinish", e, (o) => {
1605
- b(o);
1653
+ x(o);
1606
1654
  }), window.TGSetEvent("OnGroupFinish", e, (o) => {
1607
- b(o);
1655
+ x(o);
1608
1656
  }), window.TGSetEvent("OnSearchFinish", e, (o) => {
1609
- b(o);
1657
+ x(o);
1610
1658
  }), window.TGSetEvent("OnRenderStart", e, (o) => {
1611
- b(o), le(o, e), He(
1659
+ x(o), le(o, e), Ze(
1612
1660
  o,
1613
1661
  e,
1614
1662
  !1,
1615
1663
  Q.current !== !1
1616
1664
  );
1617
1665
  }), window.TGSetEvent("OnRenderFinish", e, (o) => {
1618
- le(o, e);
1666
+ Le((l) => l && !1), Oe((l) => l || !0), le(o, e);
1667
+ }), window.TGSetEvent("OnSizeError", e, () => {
1668
+ I(), Oe((o) => o && !1), Le((o) => o || !0);
1619
1669
  }), window.TGSetEvent("OnDataGet", e, (o, l, d) => {
1620
1670
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1621
- t.current = De(d);
1622
- const u = ce(
1671
+ t.current = Be(d);
1672
+ const f = ce(
1623
1673
  d,
1624
- Ae.current,
1625
- ge.current,
1626
- he.current
1674
+ me.current,
1675
+ he.current,
1676
+ Ae.current
1627
1677
  );
1628
- return u === d ? null : u;
1678
+ return f === d ? null : f;
1629
1679
  }
1630
1680
  return null;
1631
1681
  }), window.TGSetEvent("OnDataParse", e, (o, l, d) => {
1632
1682
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof d == "string") {
1633
- t.current = De(d);
1634
- const u = ce(
1683
+ t.current = Be(d);
1684
+ const f = ce(
1635
1685
  d,
1636
- Ae.current,
1637
- ge.current,
1638
- he.current
1686
+ me.current,
1687
+ he.current,
1688
+ Ae.current
1639
1689
  );
1640
- return u === d ? null : u;
1690
+ return f === d ? null : f;
1641
1691
  }
1642
1692
  return null;
1643
1693
  }), window.TGSetEvent(
@@ -1645,31 +1695,31 @@ ${e.slice(
1645
1695
  e,
1646
1696
  ee((o) => {
1647
1697
  var l, d;
1648
- if (!me.current) {
1649
- const u = y.current;
1650
- me.current = !0, !t.current && (o.EnterMode === void 0 || o.EnterMode === null || o.EnterMode === 0) && pr(o, Yn), Un(o, u), _.current = o, bn.current = u, In.current = We(o), h.current = /* @__PURE__ */ new WeakMap(), Ir(o, h.current), B(o), wn(!0), He(
1698
+ if (!_e.current) {
1699
+ const f = In.current;
1700
+ _e.current = !0, !t.current && (o.EnterMode === void 0 || o.EnterMode === null || o.EnterMode === 0) && Ar(o, nt), Xn(o, f), L.current = o, yn.current = f, $n.current = Ke(o), _.current = /* @__PURE__ */ new WeakMap(), Br(o, _.current), B(o), Pn(!0), Ze(
1651
1701
  o,
1652
1702
  e,
1653
1703
  !0,
1654
1704
  Q.current !== !1
1655
- ), en(e, "TreeGrid init ready", O.current, {
1656
- bodyRowCount: mr(
1657
- We(o)
1705
+ ), rn(e, "TreeGrid init ready", b.current, {
1706
+ bodyRowCount: Dr(
1707
+ Ke(o)
1658
1708
  )
1659
- }), O.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, o);
1709
+ }), b.current = null, (d = (l = n.current) == null ? void 0 : l.onReady) == null || d.call(l, o);
1660
1710
  }
1661
1711
  }, 100)
1662
1712
  );
1663
1713
  }, "bindTreeGridEvents");
1664
1714
  export {
1665
- ui as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1666
- Ei as bindTreeGridEvents,
1667
- fi as buildTreeGridInitializationOptions,
1668
- Ir as captureTreeGridChangeBaselines,
1669
- mr as getTreeGridBodyDataCount,
1670
- ai as hasTreeGridDisplayDataRows,
1671
- De as hasTreeGridExplicitEnterMode,
1672
- Ti as replaceTreeGridBodyData,
1673
- Pr as syncTreeGridChangedCellHighlight
1715
+ Ci as TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS,
1716
+ Ai as bindTreeGridEvents,
1717
+ Gi as buildTreeGridInitializationOptions,
1718
+ Br as captureTreeGridChangeBaselines,
1719
+ Dr as getTreeGridBodyDataCount,
1720
+ gi as hasTreeGridDisplayDataRows,
1721
+ Be as hasTreeGridExplicitEnterMode,
1722
+ hi as replaceTreeGridBodyData,
1723
+ kr as syncTreeGridChangedCellHighlight
1674
1724
  };
1675
1725
  //# sourceMappingURL=treeGridRuntime.js.map