@owp/core 2.5.54 → 2.5.55

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