@owp/core 2.5.55 → 2.5.57

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