@owp/core 2.5.53 → 2.5.55

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