@owp/core 2.5.59 → 2.5.61

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