@owp/core 2.5.52 → 2.5.54

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