@gisce/react-ooui 2.111.0 → 2.111.1

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.
@@ -1,57 +1,57 @@
1
- var Kc = Object.defineProperty;
2
- var Jc = (t, e, n) => e in t ? Kc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var zs = (t, e, n) => (Jc(t, typeof e != "symbol" ? e + "" : e, n), n);
1
+ var Jc = Object.defineProperty;
2
+ var Xc = (t, e, n) => e in t ? Jc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var zs = (t, e, n) => (Xc(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import { jsx as i, jsxs as B, Fragment as we } from "react/jsx-runtime";
5
- import Xt, { useContext as he, useState as F, useEffect as le, useRef as K, memo as at, useCallback as A, useMemo as ee, forwardRef as Bt, useImperativeHandle as Qt, Fragment as er, createContext as Xc, createElement as Qc } from "react";
6
- import { Tooltip as Vt, theme as rt, Typography as cn, Form as It, Row as Ze, Col as Le, Modal as At, Button as ze, Dropdown as ca, Menu as da, Space as it, Spin as ot, Divider as Xr, Input as pt, Select as _n, Checkbox as pr, Alert as Dt, Timeline as ua, Badge as tr, message as Ks, Popover as Zc, Progress as ed, Avatar as fa, Tag as cs, ColorPicker as ma, DatePicker as td, TimePicker as nd, InputNumber as Qr, Layout as pa, Pagination as rd, Empty as ha, Statistic as od, Card as Zr, QRCode as sd, Tabs as ga, Radio as Js, Switch as id, Steps as Xs, Carousel as ad } from "antd";
7
- import { Label as nr, Field as qo, Tree as ya, Tags as Qs, Reference as Zs, Selection as ds, Many2one as va, Boolean as ld, parseContext as vn, graphProcessor as ba, graphFieldUtils as cd, parseContextFields as dd, parseDomainFields as ud, Integer as Go, SearchFieldTypes as yn, SearchFilter as wa, parseGraph as xa, Container as fd, Form as Ca, transformDomainForChildWidget as us, Button as md } from "@gisce/ooui";
8
- import pd, { QuestionCircleOutlined as Sa, ExclamationCircleOutlined as eo, LoadingOutlined as Zt, DownOutlined as Sr, CloseOutlined as En, CheckOutlined as rr, TranslationOutlined as Ta, FolderOpenOutlined as fs, DownloadOutlined as ms, ClearOutlined as or, FormOutlined as hr, TableOutlined as ps, AreaChartOutlined as hd, CalendarOutlined as gd, FileAddOutlined as to, CloseCircleFilled as yd, FilterOutlined as Un, EditOutlined as hs, CopyOutlined as Tr, DeleteOutlined as gs, InfoCircleOutlined as no, ReloadOutlined as ro, ThunderboltOutlined as oo, PrinterOutlined as so, ExportOutlined as Fa, EnterOutlined as io, SearchOutlined as Fr, SaveOutlined as Yo, PlusOutlined as zo, UpOutlined as vd, PlusSquareOutlined as Aa, MinusSquareOutlined as Ia, StarFilled as bd, StarOutlined as wd, LeftOutlined as Ra, RightOutlined as _a, ApiOutlined as xd, AlignLeftOutlined as Cd, EyeOutlined as Sd, LinkOutlined as ei, BorderOuterOutlined as Td, SettingOutlined as Fd } from "@ant-design/icons";
5
+ import Xt, { useContext as he, useState as F, useEffect as le, useRef as K, memo as at, useCallback as A, useMemo as ee, forwardRef as jt, useImperativeHandle as Qt, Fragment as er, createContext as Qc, createElement as Zc } from "react";
6
+ import { Tooltip as Vt, theme as rt, Typography as cn, Form as It, Row as Ze, Col as Le, Modal as At, Button as ze, Dropdown as ca, Menu as da, Space as it, Spin as ot, Divider as Xr, Input as pt, Select as _n, Checkbox as pr, Alert as Dt, Timeline as ua, Badge as tr, message as Ks, Popover as ed, Progress as td, Avatar as fa, Tag as cs, ColorPicker as ma, DatePicker as nd, TimePicker as rd, InputNumber as Qr, Layout as pa, Pagination as od, Empty as ha, Statistic as sd, Card as Zr, QRCode as id, Tabs as ga, Radio as Js, Switch as ad, Steps as Xs, Carousel as ld } from "antd";
7
+ import { Label as nr, Field as qo, Tree as ya, Tags as Qs, Reference as Zs, Selection as ds, Many2one as va, Boolean as cd, parseContext as vn, graphProcessor as ba, graphFieldUtils as dd, parseContextFields as ud, parseDomainFields as fd, Integer as Go, SearchFieldTypes as yn, SearchFilter as wa, parseGraph as xa, Container as md, Form as Ca, transformDomainForChildWidget as us, Button as pd } from "@gisce/ooui";
8
+ import hd, { QuestionCircleOutlined as Sa, ExclamationCircleOutlined as eo, LoadingOutlined as Zt, DownOutlined as Sr, CloseOutlined as En, CheckOutlined as rr, TranslationOutlined as Ta, FolderOpenOutlined as fs, DownloadOutlined as ms, ClearOutlined as or, FormOutlined as hr, TableOutlined as ps, AreaChartOutlined as gd, CalendarOutlined as yd, FileAddOutlined as to, CloseCircleFilled as vd, FilterOutlined as Un, EditOutlined as hs, CopyOutlined as Tr, DeleteOutlined as gs, InfoCircleOutlined as no, ReloadOutlined as ro, ThunderboltOutlined as oo, PrinterOutlined as so, ExportOutlined as Fa, EnterOutlined as io, SearchOutlined as Fr, SaveOutlined as Yo, PlusOutlined as zo, UpOutlined as bd, PlusSquareOutlined as Aa, MinusSquareOutlined as Ia, StarFilled as wd, StarOutlined as xd, LeftOutlined as Ra, RightOutlined as _a, ApiOutlined as Cd, AlignLeftOutlined as Sd, EyeOutlined as Td, LinkOutlined as ei, BorderOuterOutlined as Fd, SettingOutlined as Ad } from "@ant-design/icons";
9
9
  import { Interweave as ln } from "interweave";
10
10
  import ft from "dayjs";
11
11
  import { default as F0 } from "dayjs";
12
- import Ad from "dayjs/plugin/advancedFormat";
13
- import Id from "dayjs/plugin/customParseFormat";
14
- import Rd from "dayjs/plugin/isoWeek";
15
- import _d from "dayjs/plugin/timezone";
16
- import Ed from "dayjs/plugin/duration";
17
- import Od from "dayjs/plugin/relativeTime";
18
- import Dd from "dayjs/plugin/weekday";
19
- import kd from "dayjs/plugin/localeData";
20
- import { useLocale as xe, Icon as Hr, iconMapper as kt, useNotificationContext as Nd, FormigaConfigProvider as Md, mergeStrings as Pd, Dropdown as Ea, ToggleDropdownButton as $d, getTablerIcon as Oa, DropdownButton as un, Many2OneSuffix as Vd, Many2OneSuffixModal as ti, DateValue as Ld, DateTimeValue as Hd, useDatePickerLocale as Bd, SkeletonPill as jd, PaginationHeader as Ud, FieldSet as Da, ExportModal as Wd, DateInput as qd, HTMLPreview as Gd, FavouriteButton as Yd } from "@gisce/react-formiga-components";
21
- import zd from "antd/lib/input/TextArea";
12
+ import Id from "dayjs/plugin/advancedFormat";
13
+ import Rd from "dayjs/plugin/customParseFormat";
14
+ import _d from "dayjs/plugin/isoWeek";
15
+ import Ed from "dayjs/plugin/timezone";
16
+ import Od from "dayjs/plugin/duration";
17
+ import Dd from "dayjs/plugin/relativeTime";
18
+ import kd from "dayjs/plugin/weekday";
19
+ import Nd from "dayjs/plugin/localeData";
20
+ import { useLocale as xe, Icon as Hr, iconMapper as kt, useNotificationContext as Md, FormigaConfigProvider as Pd, mergeStrings as $d, Dropdown as Ea, ToggleDropdownButton as Vd, getTablerIcon as Oa, DropdownButton as un, Many2OneSuffix as Ld, Many2OneSuffixModal as ti, DateValue as Hd, DateTimeValue as Bd, useDatePickerLocale as jd, SkeletonPill as Ud, PaginationHeader as Wd, FieldSet as Da, ExportModal as qd, DateInput as Gd, HTMLPreview as Yd, FavouriteButton as zd } from "@gisce/react-formiga-components";
21
+ import Kd from "antd/lib/input/TextArea";
22
22
  import _t from "styled-components";
23
23
  import ys from "react-measure";
24
- import Kd from "lodash/debounce";
24
+ import Jd from "lodash/debounce";
25
25
  import { nanoid as vs } from "nanoid";
26
26
  import Ko from "antd/lib/typography/Title";
27
- import { useDeepCompareEffect as Be, useDeepCompareCallback as ct, useDeepCompareMemo as jt } from "use-deep-compare";
28
- import { Line as Jd, Column as Xd, Pie as Qd } from "@ant-design/plots";
27
+ import { useDeepCompareEffect as Be, useDeepCompareCallback as ct, useDeepCompareMemo as Bt } from "use-deep-compare";
28
+ import { Line as Xd, Column as Qd, Pie as Zd } from "@ant-design/plots";
29
29
  import { createRoot as ka } from "react-dom/client";
30
- import { fileTypeFromBuffer as Zd } from "file-type-buffer-browser";
31
- import { generate as eu } from "@ant-design/colors";
32
- import { InfiniteTable as bs, Table as tu, PaginatedTable as nu } from "@gisce/react-formiga-table";
30
+ import { fileTypeFromBuffer as eu } from "file-type-buffer-browser";
31
+ import { generate as tu } from "@ant-design/colors";
32
+ import { InfiniteTable as bs, Table as nu, PaginatedTable as ru } from "@gisce/react-formiga-table";
33
33
  import Na from "antd/es/typography/Link";
34
34
  import { isPresetStatusColor as Ma, isPresetColor as Pa } from "antd/lib/_util/colors";
35
- import ru from "validator";
35
+ import ou from "validator";
36
36
  import zn from "antd/es/alert/ErrorBoundary";
37
37
  import "@gisce/react-formiga-table/style.css";
38
- import { GridUi as ou } from "@gisce/fiber-diagram";
39
- import su from "tinycolor2";
38
+ import { GridUi as su } from "@gisce/fiber-diagram";
39
+ import iu from "tinycolor2";
40
40
  import { useHotkeys as Sn } from "react-hotkeys-hook";
41
- import iu from "validator/lib/isURL";
42
- import au from "validator/lib/isEmail";
43
- import lu from "react-markdown";
44
- import cu from "remark-gfm";
45
- import du from "@monaco-editor/react";
46
- import uu from "md5";
47
- import { WidthProvider as fu, Responsive as mu } from "react-grid-layout";
41
+ import au from "validator/lib/isURL";
42
+ import lu from "validator/lib/isEmail";
43
+ import cu from "react-markdown";
44
+ import du from "remark-gfm";
45
+ import uu from "@monaco-editor/react";
46
+ import fu from "md5";
47
+ import { WidthProvider as mu, Responsive as pu } from "react-grid-layout";
48
48
  import "react-grid-layout/css/styles.css";
49
- import { useSensors as pu, useSensor as ni, PointerSensor as hu, KeyboardSensor as gu, DndContext as yu, closestCenter as vu } from "@dnd-kit/core";
50
- import { restrictToHorizontalAxis as bu } from "@dnd-kit/modifiers";
51
- import { useSortable as wu, sortableKeyboardCoordinates as xu, SortableContext as Cu, horizontalListSortingStrategy as Su } from "@dnd-kit/sortable";
52
- import { AnimatePresence as Tu, motion as ri } from "framer-motion";
53
- import Fu from "focus-trap-react";
54
- const tt = Xt.createContext(null), Au = (t) => {
49
+ import { useSensors as hu, useSensor as ni, PointerSensor as gu, KeyboardSensor as yu, DndContext as vu, closestCenter as bu } from "@dnd-kit/core";
50
+ import { restrictToHorizontalAxis as wu } from "@dnd-kit/modifiers";
51
+ import { useSortable as xu, sortableKeyboardCoordinates as Cu, SortableContext as Su, horizontalListSortingStrategy as Tu } from "@dnd-kit/sortable";
52
+ import { AnimatePresence as Fu, motion as ri } from "framer-motion";
53
+ import Au from "focus-trap-react";
54
+ const tt = Xt.createContext(null), Iu = (t) => {
55
55
  const {
56
56
  children: e,
57
57
  activeId: n,
@@ -231,9 +231,9 @@ var Va = { exports: {} };
231
231
  };
232
232
  });
233
233
  })(Va);
234
- var Iu = Va.exports;
235
- const Ru = /* @__PURE__ */ $a(Iu);
236
- var _u = { exports: {} };
234
+ var Ru = Va.exports;
235
+ const _u = /* @__PURE__ */ $a(Ru);
236
+ var Eu = { exports: {} };
237
237
  (function(t, e) {
238
238
  (function(n, r) {
239
239
  t.exports = r(ft);
@@ -246,8 +246,8 @@ var _u = { exports: {} };
246
246
  } };
247
247
  return o.default.locale(s, null, !0), s;
248
248
  });
249
- })(_u);
250
- var Eu = { exports: {} };
249
+ })(Eu);
250
+ var Ou = { exports: {} };
251
251
  (function(t, e) {
252
252
  (function(n, r) {
253
253
  t.exports = r();
@@ -257,8 +257,8 @@ var Eu = { exports: {} };
257
257
  return "[" + n + (r[(o - 20) % 10] || r[o] || r[0]) + "]";
258
258
  } };
259
259
  });
260
- })(Eu);
261
- var Ou = { exports: {} };
260
+ })(Ou);
261
+ var Du = { exports: {} };
262
262
  (function(t, e) {
263
263
  (function(n, r) {
264
264
  t.exports = r(ft);
@@ -271,9 +271,8 @@ var Ou = { exports: {} };
271
271
  } };
272
272
  return o.default.locale(s, null, !0), s;
273
273
  });
274
- })(Ou);
275
- ft.extend(Ru);
276
- ft.extend(Ad);
274
+ })(Du);
275
+ ft.extend(_u);
277
276
  ft.extend(Id);
278
277
  ft.extend(Rd);
279
278
  ft.extend(_d);
@@ -281,7 +280,8 @@ ft.extend(Ed);
281
280
  ft.extend(Od);
282
281
  ft.extend(Dd);
283
282
  ft.extend(kd);
284
- const { Text: Du, Title: ku } = cn, { useToken: Nu } = rt, Mu = {
283
+ ft.extend(Nd);
284
+ const { Text: ku, Title: Nu } = cn, { useToken: Mu } = rt, Pu = {
285
285
  left: "justify-start",
286
286
  center: "justify-center",
287
287
  right: "justify-end"
@@ -304,11 +304,11 @@ const { Text: Du, Title: ku } = cn, { useToken: Nu } = rt, Mu = {
304
304
  ) : "", e.humanDate ? u = u ? ft(u).fromNow() : "" : (u = p, p = "");
305
305
  }
306
306
  }
307
- const m = r ? "left" : "right", g = (e == null ? void 0 : e.align) || n || (a ? m : "left"), { token: h } = Nu(), y = c === void 0 ? Du : ku;
307
+ const m = r ? "left" : "right", g = (e == null ? void 0 : e.align) || n || (a ? m : "left"), { token: h } = Mu(), y = c === void 0 ? ku : Nu;
308
308
  return /* @__PURE__ */ B(
309
309
  "div",
310
310
  {
311
- className: `flex flex-row items-center pb-1 pt-1 ${Mu[g]}`,
311
+ className: `flex flex-row items-center pb-1 pt-1 ${Pu[g]}`,
312
312
  children: [
313
313
  s && /* @__PURE__ */ i(Vt, { title: s, children: /* @__PURE__ */ i(
314
314
  Sa,
@@ -379,14 +379,14 @@ function Ge({
379
379
  _()
380
380
  ] }))();
381
381
  }
382
- const { confirm: Pu } = At, rn = ({
382
+ const { confirm: $u } = At, rn = ({
383
383
  onOk: t,
384
384
  confirmMessage: e,
385
385
  okText: n,
386
386
  cancelText: r,
387
387
  t: o
388
388
  }) => {
389
- Pu({
389
+ $u({
390
390
  title: o("confirmation"),
391
391
  icon: /* @__PURE__ */ i(eo, {}),
392
392
  centered: !0,
@@ -443,7 +443,7 @@ const { confirm: Pu } = At, rn = ({
443
443
  children: r
444
444
  }
445
445
  ) });
446
- }, $u = (t) => {
446
+ }, Vu = (t) => {
447
447
  const { ooui: e } = t, { defaultButton: n, secondaryButtons: r } = e, {
448
448
  id: o,
449
449
  caption: s,
@@ -490,7 +490,7 @@ const { confirm: Pu } = At, rn = ({
490
490
  icon: /* @__PURE__ */ i(Sr, {}),
491
491
  type: f ? "primary" : void 0,
492
492
  overlay: /* @__PURE__ */ i(
493
- Lu,
493
+ Hu,
494
494
  {
495
495
  ooui: r,
496
496
  executeButtonAction: g
@@ -504,7 +504,7 @@ const { confirm: Pu } = At, rn = ({
504
504
  ) });
505
505
  if (n)
506
506
  return /* @__PURE__ */ i(ws, { ooui: n });
507
- }, Vu = (t) => {
507
+ }, Lu = (t) => {
508
508
  const { t: e } = xe(), { button: n, executeButtonAction: r } = t, {
509
509
  id: o,
510
510
  caption: s,
@@ -551,12 +551,12 @@ const { confirm: Pu } = At, rn = ({
551
551
  },
552
552
  `menuitem-${s}`
553
553
  );
554
- }, Lu = (t) => {
554
+ }, Hu = (t) => {
555
555
  const { ooui: e, executeButtonAction: n } = t;
556
556
  if (!e)
557
557
  return null;
558
558
  const r = e.map((o) => /* @__PURE__ */ i(
559
- Vu,
559
+ Lu,
560
560
  {
561
561
  button: o,
562
562
  executeButtonAction: n
@@ -564,7 +564,7 @@ const { confirm: Pu } = At, rn = ({
564
564
  o.id
565
565
  ));
566
566
  return /* @__PURE__ */ i(da, { children: r });
567
- }, Hu = 0.7;
567
+ }, Bu = 0.7;
568
568
  function oi() {
569
569
  const { innerWidth: t, innerHeight: e } = window;
570
570
  return {
@@ -582,7 +582,7 @@ function co() {
582
582
  }
583
583
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
584
584
  }, []), {
585
- modalWidth: t.width * Hu,
585
+ modalWidth: t.width * Bu,
586
586
  modalHeight: t.height,
587
587
  width: t.width,
588
588
  height: t.height
@@ -625,7 +625,7 @@ const La = (t) => {
625
625
  }, xt = ({
626
626
  onButtonAction: t
627
627
  } = {}) => {
628
- const { open: e, destroy: n } = Nd();
628
+ const { open: e, destroy: n } = Md();
629
629
  return {
630
630
  showErrorNotification: (o) => {
631
631
  if ((o == null ? void 0 : o.code) !== "ERR_CANCELED") {
@@ -756,7 +756,7 @@ const La = (t) => {
756
756
  return d.map((D, E) => /* @__PURE__ */ B(Ze, { style: { paddingBottom: 20 }, children: [
757
757
  /* @__PURE__ */ i(Le, { flex: "8rem", style: { paddingRight: 10 }, children: D.name }),
758
758
  /* @__PURE__ */ i(Le, { flex: "auto", children: /* @__PURE__ */ i(
759
- zd,
759
+ Kd,
760
760
  {
761
761
  rows: 4,
762
762
  value: h[D.code] || "",
@@ -837,18 +837,18 @@ function St(t) {
837
837
  const { tooltip: e, ...n } = t;
838
838
  return /* @__PURE__ */ i(Vt, { title: e, children: /* @__PURE__ */ i(ze, { ...n }) });
839
839
  }
840
- const { info: Bu } = At, Tn = (t) => {
841
- Bu({
840
+ const { info: ju } = At, Tn = (t) => {
841
+ ju({
842
842
  title: "",
843
843
  centered: !0,
844
844
  content: t
845
845
  });
846
- }, { useToken: ju } = rt, uo = at(({ content: t }) => {
847
- const { token: e } = ju();
846
+ }, { useToken: Uu } = rt, uo = at(({ content: t }) => {
847
+ const { token: e } = Uu();
848
848
  return /* @__PURE__ */ i("div", { style: { color: e.colorTextDisabled }, children: t });
849
849
  });
850
850
  uo.displayName = "AddonElement";
851
- const { defaultAlgorithm: Uu, defaultSeed: Wu } = rt, xs = Uu(Wu), gr = at(
851
+ const { defaultAlgorithm: Wu, defaultSeed: qu } = rt, xs = Wu(qu), gr = at(
852
852
  ({
853
853
  component: t,
854
854
  ooui: e,
@@ -899,7 +899,7 @@ const Ba = (t) => {
899
899
  [r]
900
900
  );
901
901
  if (c) {
902
- const h = u ? Yu : pt.Password;
902
+ const h = u ? zu : pt.Password;
903
903
  return /* @__PURE__ */ i(
904
904
  gr,
905
905
  {
@@ -961,7 +961,7 @@ const Ua = at(
961
961
  u(!1), c == null || c({
962
962
  forceRefresh: !0
963
963
  });
964
- }, [c]), C = h ? Gu : qu;
964
+ }, [c]), C = h ? Yu : Gu;
965
965
  return s ? /* @__PURE__ */ B(we, { children: [
966
966
  /* @__PURE__ */ i("div", { onClick: v, children: /* @__PURE__ */ i(
967
967
  gr,
@@ -1011,12 +1011,12 @@ const Ua = at(
1011
1011
  }
1012
1012
  );
1013
1013
  Ua.displayName = "TranslatableCharComp";
1014
- const qu = _t(pt)`
1014
+ const Gu = _t(pt)`
1015
1015
  &.ant-input {
1016
1016
  cursor: ${(t) => t.disabled ? "pointer" : "text"};
1017
1017
  pointer-events: ${(t) => t.disabled ? "none" : "auto"};
1018
1018
  }
1019
- `, Gu = _t(pt)`
1019
+ `, Yu = _t(pt)`
1020
1020
  &.ant-input {
1021
1021
  background-color: ${xs.colorPrimaryBg};
1022
1022
  cursor: pointer;
@@ -1026,20 +1026,20 @@ const qu = _t(pt)`
1026
1026
  &.ant-input {
1027
1027
  background-color: ${xs.colorPrimaryBg};
1028
1028
  }
1029
- `, Yu = _t(pt.Password)`
1029
+ `, zu = _t(pt.Password)`
1030
1030
  &.ant-input-affix-wrapper {
1031
1031
  background-color: ${xs.colorPrimaryBg};
1032
1032
  }
1033
- `, { defaultAlgorithm: zu, defaultSeed: Ku } = rt, Ju = zu(Ku), { Option: Xu } = _n, qa = (t) => {
1033
+ `, { defaultAlgorithm: Ku, defaultSeed: Ju } = rt, Xu = Ku(Ju), { Option: Qu } = _n, qa = (t) => {
1034
1034
  const { ooui: e } = t, { required: n } = e;
1035
1035
  return /* @__PURE__ */ i(Ge, { required: n, type: "any", ...t, children: /* @__PURE__ */ i(Ga, { ...t }) });
1036
1036
  }, Ga = (t) => {
1037
1037
  const { ooui: e, onChange: n, value: r } = t, { selectionValues: o, readOnly: s, required: a } = e, c = Array.from(o.entries()), l = c && c.length && c.map((f) => {
1038
1038
  const [u, p] = f;
1039
- return /* @__PURE__ */ i(Xu, { value: u, children: p }, u);
1039
+ return /* @__PURE__ */ i(Qu, { value: u, children: p }, u);
1040
1040
  });
1041
1041
  return /* @__PURE__ */ i(
1042
- a && !s ? Qu : _n,
1042
+ a && !s ? Zu : _n,
1043
1043
  {
1044
1044
  disabled: s,
1045
1045
  onChange: n,
@@ -1051,17 +1051,17 @@ const qu = _t(pt)`
1051
1051
  children: l
1052
1052
  }
1053
1053
  );
1054
- }, Qu = _t(_n)`
1054
+ }, Zu = _t(_n)`
1055
1055
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
1056
- background-color: ${Ju.colorPrimaryBg};
1056
+ background-color: ${Xu.colorPrimaryBg};
1057
1057
  }
1058
- `, { defaultAlgorithm: Zu, defaultSeed: ef } = rt, si = Zu(ef), tf = (t) => {
1058
+ `, { defaultAlgorithm: ef, defaultSeed: tf } = rt, si = ef(tf), nf = (t) => {
1059
1059
  const { ooui: e } = t, { id: n, readOnly: r, required: o } = e;
1060
- return /* @__PURE__ */ i(Ge, { ...t, valuePropName: "checked", children: /* @__PURE__ */ i(nf, { id: n, readOnly: r, required: o }) });
1061
- }, nf = (t) => {
1060
+ return /* @__PURE__ */ i(Ge, { ...t, valuePropName: "checked", children: /* @__PURE__ */ i(rf, { id: n, readOnly: r, required: o }) });
1061
+ }, rf = (t) => {
1062
1062
  const { required: e, readOnly: n, ...r } = t;
1063
- return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(e && !n ? rf : pr, { disabled: n, ...r }) });
1064
- }, rf = _t(pr)`
1063
+ return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(e && !n ? of : pr, { disabled: n, ...r }) });
1064
+ }, of = _t(pr)`
1065
1065
  .ant-checkbox-inner {
1066
1066
  background-color: ${si.colorPrimaryBg};
1067
1067
  }
@@ -1070,12 +1070,12 @@ const qu = _t(pt)`
1070
1070
  background-color: ${si.colorPrimary};
1071
1071
  }
1072
1072
  `;
1073
- function of(t) {
1073
+ function sf(t) {
1074
1074
  const n = Buffer.from(t, "base64").length / 1e3;
1075
1075
  return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
1076
1076
  }
1077
1077
  async function Kn(t) {
1078
- const e = await Zd(
1078
+ const e = await eu(
1079
1079
  Buffer.from(t, "base64")
1080
1080
  );
1081
1081
  return e || {
@@ -1108,10 +1108,10 @@ const Cs = (t) => {
1108
1108
  return r && o ? (l.width = `${r}px`, l.height = `${o}px`) : r ? (l.width = `${r}px`, l.height = "auto") : o ? (l.height = `${o}px`, l.width = "auto") : l.maxWidth = "100px", /* @__PURE__ */ i("img", { src: `data:image/*;base64,${e}`, style: l });
1109
1109
  }
1110
1110
  }
1111
- }, sf = (t) => {
1112
- const { ooui: e } = t, { required: n, id: r, width: o, height: s } = e;
1113
- return kt(r) ? /* @__PURE__ */ i(Cs, { value: r, width: o, height: s }) : /* @__PURE__ */ i(Ge, { required: n, ...t, children: /* @__PURE__ */ i(af, { ooui: e }) });
1114
1111
  }, af = (t) => {
1112
+ const { ooui: e } = t, { required: n, id: r, width: o, height: s } = e;
1113
+ return kt(r) ? /* @__PURE__ */ i(Cs, { value: r, width: o, height: s }) : /* @__PURE__ */ i(Ge, { required: n, ...t, children: /* @__PURE__ */ i(lf, { ooui: e }) });
1114
+ }, lf = (t) => {
1115
1115
  const { ooui: e, value: n, onChange: r } = t, { readOnly: o, width: s, height: a } = e, c = K(null), { t: l } = xe(), d = (m) => {
1116
1116
  r == null || r(m);
1117
1117
  };
@@ -1177,10 +1177,10 @@ const Cs = (t) => {
1177
1177
  )
1178
1178
  ] }) })
1179
1179
  ] });
1180
- }, lf = (t) => {
1181
- const { ooui: e } = t, { required: n } = e;
1182
- return /* @__PURE__ */ i(Ge, { required: n, ...t, children: /* @__PURE__ */ i(cf, {}) });
1183
1180
  }, cf = (t) => {
1181
+ const { ooui: e } = t, { required: n } = e;
1182
+ return /* @__PURE__ */ i(Ge, { required: n, ...t, children: /* @__PURE__ */ i(df, {}) });
1183
+ }, df = (t) => {
1184
1184
  const { value: e, onChange: n } = t;
1185
1185
  if (!e)
1186
1186
  return null;
@@ -1190,7 +1190,7 @@ const Cs = (t) => {
1190
1190
  return console.error(r), null;
1191
1191
  }
1192
1192
  return /* @__PURE__ */ i(
1193
- ou,
1193
+ su,
1194
1194
  {
1195
1195
  inputJson: e,
1196
1196
  onChange: (r) => {
@@ -1202,13 +1202,13 @@ const Cs = (t) => {
1202
1202
  const e = t.arch, n = t.fields, r = new ya(n);
1203
1203
  return r.parse(e), r;
1204
1204
  };
1205
- function df(t) {
1205
+ function uf(t) {
1206
1206
  return typeof t == "number" || typeof t == "string" || typeof t == "boolean" || t === null || t === void 0 || Array.isArray(t) && t.length === 0;
1207
1207
  }
1208
1208
  const Ss = (t, e, n, r = !1) => t.columns.map((s) => {
1209
1209
  const a = s.type, c = s.id, l = e == null ? void 0 : e[a];
1210
1210
  let d;
1211
- return l ? d = (f) => l({ value: f, key: c, ooui: s, context: n }) : d = (f) => df(f) ? f : /* @__PURE__ */ B("p", { style: { color: "red" }, children: [
1211
+ return l ? d = (f) => l({ value: f, key: c, ooui: s, context: n }) : d = (f) => uf(f) ? f : /* @__PURE__ */ B("p", { style: { color: "red" }, children: [
1212
1212
  "Unsupported widget value for a Tree cell:",
1213
1213
  /* @__PURE__ */ i("pre", { children: /* @__PURE__ */ B("strong", { children: [
1214
1214
  "Type: ",
@@ -1319,7 +1319,7 @@ const Ss = (t, e, n, r = !1) => t.columns.map((s) => {
1319
1319
  id: l[f][0],
1320
1320
  value: l[f][1]
1321
1321
  };
1322
- else if (m instanceof ld)
1322
+ else if (m instanceof cd)
1323
1323
  d[f] = l[f];
1324
1324
  else if (m instanceof Qs) {
1325
1325
  const g = `${m.relation}_${m.field}`, h = s.get(g) || /* @__PURE__ */ new Map(), y = ((p = (u = l[f]) == null ? void 0 : u.items) == null ? void 0 : p.map((v) => {
@@ -1379,7 +1379,7 @@ function Wn({
1379
1379
  };
1380
1380
  return t.sort(c);
1381
1381
  }
1382
- function uf(t) {
1382
+ function ff(t) {
1383
1383
  for (const e in t)
1384
1384
  if (Object.prototype.hasOwnProperty.call(t, e) && t[e] !== void 0)
1385
1385
  return !0;
@@ -1496,7 +1496,7 @@ const Jo = (t) => {
1496
1496
  }, Xa = (t) => {
1497
1497
  const e = t.filter((n) => n.id && n.id < 0).map((n) => n.id);
1498
1498
  return e.length === 0 ? -1 : Math.min(...e) - 1;
1499
- }, ff = (t, e) => {
1499
+ }, mf = (t, e) => {
1500
1500
  const n = {};
1501
1501
  return Object.keys(t).forEach((r) => {
1502
1502
  var o;
@@ -1504,7 +1504,7 @@ const Jo = (t) => {
1504
1504
  (s) => s.operation !== "pendingRemove"
1505
1505
  ) : n[r] = t[r];
1506
1506
  }), n;
1507
- }, mf = ({
1507
+ }, pf = ({
1508
1508
  values: t,
1509
1509
  fields: e
1510
1510
  }) => {
@@ -1523,7 +1523,7 @@ const Jo = (t) => {
1523
1523
  n[r] = t[r];
1524
1524
  }), n;
1525
1525
  };
1526
- function pf(t) {
1526
+ function hf(t) {
1527
1527
  const e = t.map((r) => r.id);
1528
1528
  return t.filter((r, o) => {
1529
1529
  const { id: s } = r;
@@ -1612,7 +1612,7 @@ const Qa = ({
1612
1612
  colors: Jn(d[1] || {}),
1613
1613
  status: Br(d[1] || {})
1614
1614
  };
1615
- }, hf = (t, e) => {
1615
+ }, gf = (t, e) => {
1616
1616
  if (!e)
1617
1617
  return t;
1618
1618
  const n = {};
@@ -1626,7 +1626,7 @@ const Qa = ({
1626
1626
  } else
1627
1627
  n[r] = t[r];
1628
1628
  }), n;
1629
- }, Hn = (t, e) => hf(t, e), Fo = ({
1629
+ }, Hn = (t, e) => gf(t, e), Fo = ({
1630
1630
  source: t,
1631
1631
  target: e,
1632
1632
  fields: n
@@ -1659,7 +1659,7 @@ const Qa = ({
1659
1659
  else
1660
1660
  t[o] === void 0 && e[o] !== void 0 ? r[o] = e[o] : t[o] !== e[o] && (e[o] === void 0 ? r[o] = null : r[o] = e[o]);
1661
1661
  }), r;
1662
- }, gf = ({
1662
+ }, yf = ({
1663
1663
  changedFields: t,
1664
1664
  formOoui: e,
1665
1665
  types: n
@@ -1667,7 +1667,7 @@ const Qa = ({
1667
1667
  var a;
1668
1668
  const s = (a = e == null ? void 0 : e.findById(o)) == null ? void 0 : a.type;
1669
1669
  return n.includes(s);
1670
- }).some((o) => o === !0), yf = ({
1670
+ }).some((o) => o === !0), vf = ({
1671
1671
  fieldsDomain: t,
1672
1672
  fields: e
1673
1673
  }) => {
@@ -1675,7 +1675,7 @@ const Qa = ({
1675
1675
  return Object.keys(e).forEach((r) => {
1676
1676
  n[r] = e[r], t[r] && (n[r].domain = t[r]);
1677
1677
  }), n;
1678
- }, vf = (t) => {
1678
+ }, rl = (t) => {
1679
1679
  const e = {};
1680
1680
  return !t || !Array.isArray(t) || (t == null ? void 0 : t.length) === 0 ? {} : (t.forEach((n) => {
1681
1681
  (n == null ? void 0 : n[1]) === "=" && (e[n[0]] = n[2]);
@@ -1745,8 +1745,8 @@ const On = ({
1745
1745
  n += ("00" + o.toString(16)).slice(-2);
1746
1746
  }
1747
1747
  return n;
1748
- }, rl = (t, e = 7) => ({
1749
- text: eu(t)[e],
1748
+ }, ol = (t, e = 7) => ({
1749
+ text: tu(t)[e],
1750
1750
  background: `${t}40`
1751
1751
  }), xf = (t, e) => t.replace(
1752
1752
  /\{([^}]+)\}/g,
@@ -2262,7 +2262,7 @@ const On = ({
2262
2262
  ca_ES: Ff,
2263
2263
  en_US: Af,
2264
2264
  es_ES: If
2265
- }, ol = 100, _f = {
2265
+ }, sl = 100, _f = {
2266
2266
  erpFeatures: {},
2267
2267
  userFeatures: {
2268
2268
  features: {},
@@ -2272,10 +2272,10 @@ const On = ({
2272
2272
  globalValues: {},
2273
2273
  rootContext: {},
2274
2274
  devMode: !1,
2275
- treeMaxLimit: ol,
2275
+ treeMaxLimit: sl,
2276
2276
  onActionTriggered: void 0
2277
- }, sl = Xt.createContext(_f), en = () => {
2278
- const t = he(sl);
2277
+ }, il = Xt.createContext(_f), en = () => {
2278
+ const t = he(il);
2279
2279
  if (!t)
2280
2280
  throw new Error(
2281
2281
  "useConfigContext must be used within a ConfigContextProvider"
@@ -2300,7 +2300,7 @@ const On = ({
2300
2300
  rootContext: o,
2301
2301
  devMode: s,
2302
2302
  title: a,
2303
- treeMaxLimit: c = ol,
2303
+ treeMaxLimit: c = sl,
2304
2304
  children: l,
2305
2305
  userFeatures: d,
2306
2306
  onActionTriggered: f
@@ -2327,19 +2327,19 @@ const On = ({
2327
2327
  f
2328
2328
  ]
2329
2329
  );
2330
- return /* @__PURE__ */ i(sl.Provider, { value: u, children: /* @__PURE__ */ i(
2331
- Md,
2330
+ return /* @__PURE__ */ i(il.Provider, { value: u, children: /* @__PURE__ */ i(
2331
+ Pd,
2332
2332
  {
2333
2333
  locale: e,
2334
- localizedStrings: Pd(Rf, n),
2334
+ localizedStrings: $d(Rf, n),
2335
2335
  children: l
2336
2336
  }
2337
2337
  ) });
2338
2338
  }
2339
2339
  );
2340
2340
  Ef.displayName = "ConfigContextProvider";
2341
- const Rt = 80, In = "ir.actions.act_window", Of = "ir.actions.act_window_close", il = "ir.actions.wizard", Xo = "ir.actions.report.xml", Df = "ir.actions.act_url", kf = "ir.actions.actions", Nf = "ir.act.update_token";
2342
- async function al({
2341
+ const Rt = 80, In = "ir.actions.act_window", Of = "ir.actions.act_window_close", al = "ir.actions.wizard", Xo = "ir.actions.report.xml", Df = "ir.actions.act_url", kf = "ir.actions.actions", Nf = "ir.act.update_token";
2342
+ async function ll({
2343
2343
  actionId: t,
2344
2344
  rootContext: e = {},
2345
2345
  globalValues: n = {}
@@ -2401,7 +2401,7 @@ const Mf = (t) => {
2401
2401
  return { actionData: a, treeShortcut: l, loading: o, error: n, fetchData: async () => {
2402
2402
  r(void 0), e.current || s(!0);
2403
2403
  try {
2404
- const b = await al({
2404
+ const b = await ll({
2405
2405
  actionId: t,
2406
2406
  rootContext: y,
2407
2407
  globalValues: {
@@ -2456,7 +2456,7 @@ const Mf = (t) => {
2456
2456
  },
2457
2457
  children: /* @__PURE__ */ i(ot, {})
2458
2458
  }
2459
- ), ll = ({
2459
+ ), cl = ({
2460
2460
  error: t,
2461
2461
  className: e
2462
2462
  }) => {
@@ -2482,7 +2482,7 @@ const Mf = (t) => {
2482
2482
  banner: !0
2483
2483
  }
2484
2484
  );
2485
- }, Ee = (t) => {
2485
+ }, Re = (t) => {
2486
2486
  const e = K(/* @__PURE__ */ new Map());
2487
2487
  le(() => () => {
2488
2488
  n();
@@ -2507,7 +2507,7 @@ const Mf = (t) => {
2507
2507
  },
2508
2508
  [n, t]
2509
2509
  ), n];
2510
- }, Ur = 0.7, Wr = 30, cl = (t) => {
2510
+ }, Ur = 0.7, Wr = 30, dl = (t) => {
2511
2511
  const [e, n] = F(0), [r, o] = F(0), {
2512
2512
  value: s,
2513
2513
  totalValue: a,
@@ -2558,7 +2558,7 @@ const Mf = (t) => {
2558
2558
  }
2559
2559
  );
2560
2560
  };
2561
- function dl(t, e) {
2561
+ function ul(t, e) {
2562
2562
  const r = document.createElement("canvas").getContext("2d");
2563
2563
  return r.font = e || getComputedStyle(document.body).font, r.measureText(t).width;
2564
2564
  }
@@ -2580,7 +2580,7 @@ function Pf({
2580
2580
  });
2581
2581
  let u = r ? `${d}/${f}` : `${d}`;
2582
2582
  c && (u += " " + c);
2583
- let p = dl(
2583
+ let p = ul(
2584
2584
  u,
2585
2585
  `bold ${Math.floor(l * 1.03)}px sans-serif`
2586
2586
  );
@@ -2628,7 +2628,7 @@ function $f({
2628
2628
  const m = `${r == null ? void 0 : r.toLocaleString("es-ES", {
2629
2629
  useGrouping: !0
2630
2630
  })}%`;
2631
- let g = dl(
2631
+ let g = ul(
2632
2632
  m,
2633
2633
  `bold ${Math.floor(f * 1.03)}px sans-serif`
2634
2634
  );
@@ -2683,15 +2683,15 @@ const { getValueForOperator: ci } = ba, Vf = (t) => {
2683
2683
  operator: f,
2684
2684
  manualIds: u,
2685
2685
  fixedHeight: p
2686
- } = t, [m, g] = F(!1), [h, y] = F(), [v, b] = F(0), [x, C] = F(), [w, _] = F(), [S, I] = F(), [D, E] = F(), [k] = Ee(
2686
+ } = t, [m, g] = F(!1), [h, y] = F(), [v, b] = F(0), [x, C] = F(), [w, _] = F(), [S, I] = F(), [D, E] = F(), [k] = Re(
2687
2687
  j.getHandler().searchAllIds
2688
- ), [O] = Ee(
2688
+ ), [O] = Re(
2689
2689
  j.getHandler().readObjects
2690
- ), [T] = Ee(
2690
+ ), [T] = Re(
2691
2691
  j.getHandler().searchCount
2692
- ), [N] = Ee(
2692
+ ), [N] = Re(
2693
2693
  j.getHandler().evalDomain
2694
- ), [R] = Ee(
2694
+ ), [R] = Re(
2695
2695
  j.getHandler().parseCondition
2696
2696
  );
2697
2697
  le(() => {
@@ -2789,7 +2789,7 @@ const { getValueForOperator: ci } = ba, Vf = (t) => {
2789
2789
  g(!1);
2790
2790
  }
2791
2791
  return m ? /* @__PURE__ */ i(Rr, {}) : D ? (console.error(D), /* @__PURE__ */ i(Dt, { className: "mt-10", message: D, type: "error", banner: !0 })) : /* @__PURE__ */ i(
2792
- cl,
2792
+ dl,
2793
2793
  {
2794
2794
  value: h,
2795
2795
  totalValue: x,
@@ -2801,7 +2801,7 @@ const { getValueForOperator: ci } = ba, Vf = (t) => {
2801
2801
  fixedHeight: p
2802
2802
  }
2803
2803
  );
2804
- }, { processGraphData: Lf } = ba, { getFieldsToRetrieve: Hf } = cd, Bf = (t) => {
2804
+ }, { processGraphData: Lf } = ba, { getFieldsToRetrieve: Hf } = dd, Bf = (t) => {
2805
2805
  const {
2806
2806
  model: e,
2807
2807
  ooui: n,
@@ -2810,11 +2810,11 @@ const { getValueForOperator: ci } = ba, Vf = (t) => {
2810
2810
  limit: s,
2811
2811
  uninformedString: a,
2812
2812
  manualIds: c
2813
- } = t, [l, d] = F(!1), [f, u] = F(), [p, m] = F(), [g, h] = F(), [y, v] = F("line"), [b] = Ee(
2813
+ } = t, [l, d] = F(!1), [f, u] = F(), [p, m] = F(), [g, h] = F(), [y, v] = F("line"), [b] = Re(
2814
2814
  j.getHandler().getFields
2815
- ), [x] = Ee(
2815
+ ), [x] = Re(
2816
2816
  j.getHandler().readObjects
2817
- ), [C] = Ee(j.getHandler().search), w = A(async () => {
2817
+ ), [C] = Re(j.getHandler().search), w = A(async () => {
2818
2818
  d(!0), u(void 0), v(n.type || "line");
2819
2819
  const _ = Hf({ ooui: n });
2820
2820
  let S, I;
@@ -3005,7 +3005,7 @@ const Ao = (t) => (e) => {
3005
3005
  return parseFloat(t).toLocaleString("es-ES", {
3006
3006
  useGrouping: !0
3007
3007
  });
3008
- if (ul(t))
3008
+ if (fl(t))
3009
3009
  return t.toLocaleString("es-ES", {
3010
3010
  useGrouping: !0
3011
3011
  });
@@ -3016,7 +3016,7 @@ const Ao = (t) => (e) => {
3016
3016
  );
3017
3017
  } else
3018
3018
  return t;
3019
- }, Wf = (t) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t), ul = (t) => typeof t == "number" && !isNaN(t), ui = {
3019
+ }, Wf = (t) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t), fl = (t) => typeof t == "number" && !isNaN(t), ui = {
3020
3020
  default: {
3021
3021
  padding: "auto",
3022
3022
  xAxis: {
@@ -3153,11 +3153,11 @@ const Yf = {
3153
3153
  x: l.x,
3154
3154
  percent: c[d]
3155
3155
  }));
3156
- }, { Text: fi } = cn, Kf = 400, Jf = at(Jd), Xf = at(Xd), Qf = at(Qd), Zf = {
3156
+ }, { Text: fi } = cn, Kf = 400, Jf = at(Xd), Xf = at(Qd), Qf = at(Zd), Zf = {
3157
3157
  line: Jf,
3158
3158
  bar: Xf,
3159
3159
  pie: Qf
3160
- }, fl = ({
3160
+ }, ml = ({
3161
3161
  type: t,
3162
3162
  data: e,
3163
3163
  isGroup: n,
@@ -3306,7 +3306,7 @@ const tm = ({
3306
3306
  return /* @__PURE__ */ i(Rr, {});
3307
3307
  const { data: g, isGroup: h, isStack: y, yAxisOpts: v } = f;
3308
3308
  return l ? (console.error(l), /* @__PURE__ */ i(Dt, { message: l, type: "error", banner: !0 })) : /* @__PURE__ */ i(
3309
- fl,
3309
+ ml,
3310
3310
  {
3311
3311
  type: u,
3312
3312
  data: g,
@@ -3380,10 +3380,10 @@ const tm = ({
3380
3380
  return Object.keys(e).forEach(
3381
3381
  (n) => (e[n] === void 0 || e[n] === null || e[n] === "") && delete e[n]
3382
3382
  ), e;
3383
- }, ml = (t) => Array.isArray(t) ? t.some((e) => e === "|" ? !0 : Array.isArray(e) ? ml(e) : !1) : !1, fn = (t, e) => !t || t.length === 0 ? e : !e || e.length === 0 ? t : ml(e) ? ["&", ...t, ...e] : [...t, ...e], qn = (t) => Object.keys(t).reduce((e, n) => {
3383
+ }, pl = (t) => Array.isArray(t) ? t.some((e) => e === "|" ? !0 : Array.isArray(e) ? pl(e) : !1) : !1, fn = (t, e) => !t || t.length === 0 ? e : !e || e.length === 0 ? t : pl(e) ? ["&", ...t, ...e] : [...t, ...e], qn = (t) => Object.keys(t).reduce((e, n) => {
3384
3384
  const r = t[n];
3385
3385
  return r !== "" && r !== void 0 && (e[n] = r), e;
3386
- }, {}), pl = (t, e) => {
3386
+ }, {}), hl = (t, e) => {
3387
3387
  if (!t || !Array.isArray(t) || !e)
3388
3388
  return {};
3389
3389
  const n = t.reduce((r, o) => {
@@ -3420,8 +3420,8 @@ const tm = ({
3420
3420
  }, Io = {
3421
3421
  tree: /* @__PURE__ */ i(ps, {}),
3422
3422
  form: /* @__PURE__ */ i(hr, {}),
3423
- graph: /* @__PURE__ */ i(hd, {}),
3424
- calendar: /* @__PURE__ */ i(gd, {})
3423
+ graph: /* @__PURE__ */ i(gd, {}),
3424
+ calendar: /* @__PURE__ */ i(yd, {})
3425
3425
  };
3426
3426
  function pi(t) {
3427
3427
  return t ? (Io == null ? void 0 : Io[t.type]) || /* @__PURE__ */ i(hr, {}) : /* @__PURE__ */ i(hr, {});
@@ -3534,8 +3534,8 @@ function Ot(t) {
3534
3534
  }
3535
3535
  );
3536
3536
  }
3537
- const hl = (t) => /* @__PURE__ */ i(Ot, { ...t, type: "primary", danger: !0 });
3538
- function gl(t) {
3537
+ const gl = (t) => /* @__PURE__ */ i(Ot, { ...t, type: "primary", danger: !0 });
3538
+ function yl(t) {
3539
3539
  const { disabled: e = !1 } = t, { formHasChanges: n, onNewClicked: r } = he(
3540
3540
  Nt
3541
3541
  ), { t: o } = xe(), s = () => {
@@ -3562,7 +3562,7 @@ function gl(t) {
3562
3562
  );
3563
3563
  }
3564
3564
  const { useToken: cm } = rt;
3565
- function yl(t) {
3565
+ function vl(t) {
3566
3566
  const { badgeNumber: e = 0, ...n } = t, { token: r } = cm();
3567
3567
  return /* @__PURE__ */ B("div", { style: { position: "relative" }, children: [
3568
3568
  e > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
@@ -3647,7 +3647,7 @@ function dm(t) {
3647
3647
  onChange: p,
3648
3648
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
3649
3649
  suffix: (a || r && r.length > 0) && /* @__PURE__ */ i(Vt, { title: o("clear"), children: /* @__PURE__ */ i(
3650
- yd,
3650
+ vd,
3651
3651
  {
3652
3652
  style: { color: "rgba(0,0,0,.45)" },
3653
3653
  onClick: u
@@ -3737,7 +3737,7 @@ const { useToken: fm } = rt, mm = (t) => {
3737
3737
  setCurrentSavedSearch: w
3738
3738
  } = g || {}, _ = mo(
3739
3739
  Tt.FEATURE_LOGGABLE_ACTIONS
3740
- ), [S] = Ee(
3740
+ ), [S] = Re(
3741
3741
  j.getHandler().logAction
3742
3742
  ), I = A(async () => [
3743
3743
  {
@@ -3787,7 +3787,7 @@ const { useToken: fm } = rt, mm = (t) => {
3787
3787
  const M = V.originalData || V;
3788
3788
  if (M != null && M.domain) {
3789
3789
  w == null || w(M), y == null || y(M.domain);
3790
- const L = pl(
3790
+ const L = hl(
3791
3791
  M.domain,
3792
3792
  D
3793
3793
  );
@@ -3823,7 +3823,7 @@ const { useToken: fm } = rt, mm = (t) => {
3823
3823
  color: f.colorPrimary,
3824
3824
  offset: [-70, 2],
3825
3825
  children: /* @__PURE__ */ i(Vt, { title: d == null ? void 0 : d("advanced_search"), children: /* @__PURE__ */ i(
3826
- $d,
3826
+ Vd,
3827
3827
  {
3828
3828
  ref: u,
3829
3829
  isActive: e,
@@ -3896,7 +3896,7 @@ const { useToken: fm } = rt, mm = (t) => {
3896
3896
  Ut
3897
3897
  ), { openAction: d } = l || {}, f = K([]), { t: u } = xe(), { showErrorNotification: p } = xt(), m = mo(
3898
3898
  Tt.FEATURE_LOGGABLE_ACTIONS
3899
- ), [g, h] = Ee(
3899
+ ), [g, h] = Re(
3900
3900
  j.getHandler().logAction
3901
3901
  );
3902
3902
  le(() => () => {
@@ -4236,7 +4236,7 @@ async function hm({
4236
4236
  }
4237
4237
  return { views: s, initialView: a };
4238
4238
  }
4239
- const gm = Bt(pm), vl = ({
4239
+ const gm = jt(pm), bl = ({
4240
4240
  selectedRowItems: t,
4241
4241
  onRefreshParentValues: e,
4242
4242
  treeView: n,
@@ -4266,7 +4266,7 @@ const gm = Bt(pm), vl = ({
4266
4266
  },
4267
4267
  [s, t, e, n, r]
4268
4268
  );
4269
- }, bl = ({
4269
+ }, wl = ({
4270
4270
  disabled: t = !1,
4271
4271
  parentContext: e = {},
4272
4272
  selectedRowItems: n = [],
@@ -4276,12 +4276,12 @@ const gm = Bt(pm), vl = ({
4276
4276
  treeView: a,
4277
4277
  toolbar: c
4278
4278
  }) => {
4279
- const { t: l } = xe(), d = vl({
4279
+ const { t: l } = xe(), d = bl({
4280
4280
  selectedRowItems: n,
4281
4281
  onRefreshParentValues: r,
4282
4282
  treeView: a,
4283
4283
  view_id: s
4284
- }), [f, u] = F(null), [p, m] = F(!1), [g] = Ee(
4284
+ }), [f, u] = F(null), [p, m] = F(!1), [g] = Re(
4285
4285
  j.getHandler().getToolbar
4286
4286
  ), h = c || f, y = A(async () => {
4287
4287
  if (c || f != null && f.action || f != null && f.print)
@@ -4362,7 +4362,7 @@ const gm = Bt(pm), vl = ({
4362
4362
  };
4363
4363
  }, wt = at(() => /* @__PURE__ */ i("div", { className: "inline-block w-2" }));
4364
4364
  wt.displayName = "ActionBarSeparator";
4365
- const ym = "action", vm = ["active_id", "active_ids", "id"], bm = ["target", "context", "domain", "fields"], wl = (t) => {
4365
+ const ym = "action", vm = ["active_id", "active_ids", "id"], bm = ["target", "context", "domain", "fields"], xl = (t) => {
4366
4366
  const e = new URL(window.location.origin);
4367
4367
  e.pathname = ym;
4368
4368
  const n = {
@@ -4375,11 +4375,11 @@ const ym = "action", vm = ["active_id", "active_ids", "id"], bm = ["target", "co
4375
4375
  }, wm = (t) => typeof t == "object" ? JSON.stringify(t) : t.toString(), xm = (t) => {
4376
4376
  const { context: e, domain: n, values: r } = t, o = {};
4377
4377
  if (e && (typeof e == "string" ? e !== "{}" && (o.context = e) : typeof e == "object" && Object.keys(e).length > 0 && (o.context = e)), n && (Array.isArray(n) ? n.length > 0 && (o.domain = n) : n !== "false" && (o.domain = n)), (o.domain || o.context) && r && typeof r == "object" && Object.keys(r).length > 0) {
4378
- const s = xl(r);
4378
+ const s = Cl(r);
4379
4379
  o.values = Object.keys(s).length > 0 ? s : void 0;
4380
4380
  }
4381
4381
  return Object.keys(o).length > 0 ? o : void 0;
4382
- }, xl = (t) => !t || typeof t != "object" ? {} : Object.fromEntries(
4382
+ }, Cl = (t) => !t || typeof t != "object" ? {} : Object.fromEntries(
4383
4383
  Object.entries(t).filter(([e]) => vm.includes(e))
4384
4384
  ), Cm = Oa("IconExternalLink"), Sm = Oa("IconShare2");
4385
4385
  function po({ res_id: t, searchParams: e }) {
@@ -4412,7 +4412,7 @@ function po({ res_id: t, searchParams: e }) {
4412
4412
  ...o !== void 0 && { limit: o },
4413
4413
  ...s && s > 1 && { currentPage: s },
4414
4414
  order: a
4415
- }, y = wl(h), { type: v } = c || {};
4415
+ }, y = xl(h), { type: v } = c || {};
4416
4416
  let b = !g;
4417
4417
  v === "form" && (b = !g || !t);
4418
4418
  const x = /* @__PURE__ */ i("div", { style: { padding: 2 }, children: /* @__PURE__ */ B(it.Compact, { style: { width: "100%" }, children: [
@@ -4452,7 +4452,7 @@ function po({ res_id: t, searchParams: e }) {
4452
4452
  }
4453
4453
  )
4454
4454
  ] }) });
4455
- return /* @__PURE__ */ i("div", { style: { maxHeight: 28 }, children: /* @__PURE__ */ i(Zc, { content: x, trigger: "click", placement: "bottom", children: /* @__PURE__ */ i("div", { ref: n, children: /* @__PURE__ */ i(
4455
+ return /* @__PURE__ */ i("div", { style: { maxHeight: 28 }, children: /* @__PURE__ */ i(ed, { content: x, trigger: "click", placement: "bottom", children: /* @__PURE__ */ i("div", { ref: n, children: /* @__PURE__ */ i(
4456
4456
  Ot,
4457
4457
  {
4458
4458
  style: { height: 28 },
@@ -4508,7 +4508,7 @@ function Tm({
4508
4508
  (ce = h == null ? void 0 : h.current) == null || ce.refreshResults();
4509
4509
  }, [h]), X = A(() => {
4510
4510
  C == null || C(!x);
4511
- }, [x, C]), { actionButtonProps: Z, printButtonProps: se } = bl({
4511
+ }, [x, C]), { actionButtonProps: Z, printButtonProps: se } = wl({
4512
4512
  toolbar: n,
4513
4513
  model: g,
4514
4514
  view_id: c == null ? void 0 : c.view_id,
@@ -4517,7 +4517,7 @@ function Tm({
4517
4517
  parentContext: t,
4518
4518
  selectedRowItems: d,
4519
4519
  onRefreshParentValues: q
4520
- }), me = vl({
4520
+ }), me = bl({
4521
4521
  selectedRowItems: d,
4522
4522
  onRefreshParentValues: q,
4523
4523
  treeView: c,
@@ -4687,7 +4687,7 @@ function Tm({
4687
4687
  onClearSavedSearch: s
4688
4688
  }
4689
4689
  ) : /* @__PURE__ */ i(
4690
- yl,
4690
+ vl,
4691
4691
  {
4692
4692
  icon: /* @__PURE__ */ i(
4693
4693
  Un,
@@ -4703,7 +4703,7 @@ function Tm({
4703
4703
  }
4704
4704
  ),
4705
4705
  /* @__PURE__ */ i(wt, {}),
4706
- /* @__PURE__ */ i(gl, { disabled: S || !(M != null && M.create) }),
4706
+ /* @__PURE__ */ i(yl, { disabled: S || !(M != null && M.create) }),
4707
4707
  /* @__PURE__ */ i(
4708
4708
  Ot,
4709
4709
  {
@@ -4715,7 +4715,7 @@ function Tm({
4715
4715
  }
4716
4716
  ),
4717
4717
  /* @__PURE__ */ i(
4718
- hl,
4718
+ gl,
4719
4719
  {
4720
4720
  icon: /* @__PURE__ */ i(gs, {}),
4721
4721
  tooltip: $("delete"),
@@ -4766,7 +4766,7 @@ function Tm({
4766
4766
  un,
4767
4767
  {
4768
4768
  placement: "bottomRight",
4769
- icon: /* @__PURE__ */ i(Cl, {}),
4769
+ icon: /* @__PURE__ */ i(Sl, {}),
4770
4770
  onRetrieveData: async () => [
4771
4771
  {
4772
4772
  label: $("export"),
@@ -4805,8 +4805,8 @@ function Tm({
4805
4805
  /* @__PURE__ */ i(po, { searchParams: b })
4806
4806
  ] });
4807
4807
  }
4808
- const Fm = at(Tm), Cl = at(() => /* @__PURE__ */ i(
4809
- pd,
4808
+ const Fm = at(Tm), Sl = at(() => /* @__PURE__ */ i(
4809
+ hd,
4810
4810
  {
4811
4811
  component: () => /* @__PURE__ */ B(
4812
4812
  "svg",
@@ -4831,7 +4831,7 @@ const Fm = at(Tm), Cl = at(() => /* @__PURE__ */ i(
4831
4831
  )
4832
4832
  }
4833
4833
  ));
4834
- Cl.displayName = "ExportIcon";
4834
+ Sl.displayName = "ExportIcon";
4835
4835
  const { useToken: Am } = rt, { Title: Im, Text: Pr } = cn, ho = ({
4836
4836
  title: t,
4837
4837
  children: e,
@@ -4946,7 +4946,7 @@ const { useToken: Am } = rt, { Title: Im, Text: Pr } = cn, ho = ({
4946
4946
  context: r,
4947
4947
  enabled: o = !0
4948
4948
  }) => {
4949
- const [s, a] = F(!0), [c, l] = F(), [d, f] = F(), u = K(!1), [p, m] = Ee(
4949
+ const [s, a] = F(!0), [c, l] = F(), [d, f] = F(), u = K(!1), [p, m] = Re(
4950
4950
  j.getHandler().getView
4951
4951
  ), { showErrorNotification: g } = xt();
4952
4952
  Be(() => (o && h(), () => {
@@ -4979,7 +4979,7 @@ const { useToken: Am } = rt, { Title: Im, Text: Pr } = cn, ho = ({
4979
4979
  n
4980
4980
  ]);
4981
4981
  return { loading: s, treeView: c, formView: d };
4982
- }, Sl = ({
4982
+ }, Tl = ({
4983
4983
  elementRef: t,
4984
4984
  offset: e = 0,
4985
4985
  dependencies: n = []
@@ -4994,7 +4994,7 @@ const { useToken: Am } = rt, { Title: Im, Text: Pr } = cn, ho = ({
4994
4994
  };
4995
4995
  return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
4996
4996
  }, [t, ...n]), ee(() => r, [r]) - e;
4997
- }, Tl = (t) => t.model ? `columnState-${t.treeViewId ?? "tree"}-${t.model}` : void 0, Rm = (t) => {
4997
+ }, Fl = (t) => t.model ? `columnState-${t.treeViewId ?? "tree"}-${t.model}` : void 0, Rm = (t) => {
4998
4998
  const e = ct(async () => {
4999
4999
  if (!t)
5000
5000
  return;
@@ -5011,9 +5011,9 @@ const { useToken: Am } = rt, { Title: Im, Text: Pr } = cn, ho = ({
5011
5011
  le(() => () => {
5012
5012
  n(), o();
5013
5013
  }, []);
5014
- const [e, n] = Ee(
5014
+ const [e, n] = Re(
5015
5015
  j.getHandler().readUserViewPrefs
5016
- ), [r, o] = Ee(
5016
+ ), [r, o] = Re(
5017
5017
  j.getHandler().saveUserViewPrefs
5018
5018
  ), s = ct(async () => {
5019
5019
  if (!t)
@@ -5075,7 +5075,7 @@ const { useToken: Am } = rt, { Title: Im, Text: Pr } = cn, ho = ({
5075
5075
  [t]
5076
5076
  );
5077
5077
  return { getColumnState: a, updateColumnState: c };
5078
- }, Fl = ({
5078
+ }, Al = ({
5079
5079
  key: t,
5080
5080
  treeViewFetching: e = !1
5081
5081
  }) => {
@@ -5128,7 +5128,7 @@ function Om(t) {
5128
5128
  return 0;
5129
5129
  }
5130
5130
  }
5131
- function Al(t) {
5131
+ function Il(t) {
5132
5132
  if (t === void 0)
5133
5133
  return;
5134
5134
  let e, n = Math.floor(Math.abs(t)), r = Math.round(Math.abs(t) % 1 * 100) / 100;
@@ -5144,7 +5144,7 @@ function Al(t) {
5144
5144
  });
5145
5145
  return e = `${o}:${s}`, t < 0 && (e = "-" + e), e;
5146
5146
  }
5147
- const Dm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Il, {}) }), Il = ({ value: t }) => {
5147
+ const Dm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl, {}) }), Rl = ({ value: t }) => {
5148
5148
  const e = K(0);
5149
5149
  t !== void 0 && (e.current = t);
5150
5150
  const n = t !== void 0 ? t : e.current, r = `${n.toLocaleString("en-US", {
@@ -5161,7 +5161,7 @@ const Dm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Il,
5161
5161
  align-items: center;
5162
5162
  width: 100%;
5163
5163
  min-width: 0;
5164
- `, Nm = _t(ed)`
5164
+ `, Nm = _t(td)`
5165
5165
  flex: 1;
5166
5166
  min-width: 0;
5167
5167
  .ant-progress-outer {
@@ -5221,7 +5221,7 @@ const Dm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Il,
5221
5221
  }, [c, t]);
5222
5222
  return /* @__PURE__ */ B(er, { children: [
5223
5223
  /* @__PURE__ */ i(
5224
- Vd,
5224
+ Ld,
5225
5225
  {
5226
5226
  onRetrieveData: f,
5227
5227
  onItemClick: (u) => {
@@ -5260,11 +5260,11 @@ const Dm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Il,
5260
5260
  Ut
5261
5261
  ), { openRelate: d, openAction: f } = l || {}, u = he(
5262
5262
  bn
5263
- ), { processAction: p } = u || {}, [m, g] = Ee(
5263
+ ), { processAction: p } = u || {}, [m, g] = Re(
5264
5264
  j.getHandler().getView
5265
- ), [h, y] = Ee(
5265
+ ), [h, y] = Re(
5266
5266
  j.getHandler().getToolbar
5267
- ), [v, b] = Ee(
5267
+ ), [v, b] = Re(
5268
5268
  j.getHandler().readObjects
5269
5269
  ), x = Jt(
5270
5270
  Tt.FEATURE_GET_TOOLBAR
@@ -5379,7 +5379,7 @@ const Dm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Il,
5379
5379
  const s = e[o];
5380
5380
  return (s == null ? void 0 : s.flatMap((a) => {
5381
5381
  const c = [];
5382
- return "context" in a && c.push(...dd(a.context)), "domain" in a && c.push(...ud(a.domain)), c;
5382
+ return "context" in a && c.push(...ud(a.context)), "domain" in a && c.push(...fd(a.domain)), c;
5383
5383
  })) || [];
5384
5384
  });
5385
5385
  return [...new Set(r.filter((o) => o in t))];
@@ -5420,9 +5420,9 @@ const v0 = Object.values(mn), Vm = (t) => {
5420
5420
  function Bm(t) {
5421
5421
  return t.length === 0 ? t : t.charAt(0).toUpperCase() + t.slice(1);
5422
5422
  }
5423
- const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl, { ...t }) }), Rl = (t) => {
5423
+ const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(_l, { ...t }) }), _l = (t) => {
5424
5424
  var m;
5425
- const { t: e } = xe(), [n, r] = Ee(
5425
+ const { t: e } = xe(), [n, r] = Re(
5426
5426
  j.getHandler().readObjects
5427
5427
  ), { getFieldValue: o } = he(tt) || {}, { ooui: s, value: a } = t, [c, l] = F("default");
5428
5428
  let d = a, f = Ir, u = a;
@@ -5465,7 +5465,7 @@ const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl,
5465
5465
  }, Rs = (t) => {
5466
5466
  let { color: e } = t, n = {};
5467
5467
  if (!Ma(t.color) && !Pa(t.color)) {
5468
- const r = rl(e);
5468
+ const r = ol(e);
5469
5469
  n = {
5470
5470
  color: r.text,
5471
5471
  borderColor: r.text,
@@ -5474,7 +5474,7 @@ const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl,
5474
5474
  }, e = r.background;
5475
5475
  }
5476
5476
  return /* @__PURE__ */ i(cs, { ...t, style: n, color: e, children: t.children });
5477
- }, _l = ({
5477
+ }, El = ({
5478
5478
  emails: t,
5479
5479
  handleClose: e
5480
5480
  }) => {
@@ -5485,7 +5485,7 @@ const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl,
5485
5485
  cs,
5486
5486
  {
5487
5487
  closable: !!e,
5488
- color: ru.isEmail(r, { allow_display_name: !0 }) ? void 0 : "error",
5488
+ color: ou.isEmail(r, { allow_display_name: !0 }) ? void 0 : "error",
5489
5489
  onClose: () => e && e(r),
5490
5490
  children: r
5491
5491
  },
@@ -5550,7 +5550,7 @@ const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl,
5550
5550
  },
5551
5551
  children: [
5552
5552
  /* @__PURE__ */ i(
5553
- _l,
5553
+ El,
5554
5554
  {
5555
5555
  emails: s,
5556
5556
  handleClose: r ? void 0 : h
@@ -5604,7 +5604,7 @@ const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl,
5604
5604
  children: t
5605
5605
  }
5606
5606
  );
5607
- }, El = () => he(wn), qm = ({
5607
+ }, Ol = () => he(wn), qm = ({
5608
5608
  value: t
5609
5609
  }) => ee(
5610
5610
  () => /* @__PURE__ */ i(
@@ -5622,14 +5622,14 @@ const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl,
5622
5622
  [t]
5623
5623
  ), Gm = ({
5624
5624
  value: t
5625
- }) => ee(() => /* @__PURE__ */ i(_l, { emails: t }), [t]), Ym = ({
5625
+ }) => ee(() => /* @__PURE__ */ i(El, { emails: t }), [t]), Ym = ({
5626
5626
  value: t,
5627
5627
  ooui: e
5628
5628
  }) => ee(
5629
5629
  () => /* @__PURE__ */ i(Vm, { m2oField: t, ooui: e }),
5630
5630
  [t, e]
5631
5631
  ), zm = ({ value: t }) => {
5632
- const { treeType: e } = Lt(), { treeType: n } = El() || {}, r = (n || e) === "infinite";
5632
+ const { treeType: e } = Lt(), { treeType: n } = Ol() || {}, r = (n || e) === "infinite";
5633
5633
  return ee(() => {
5634
5634
  const o = /* @__PURE__ */ i(
5635
5635
  ln,
@@ -5674,20 +5674,20 @@ const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl,
5674
5674
  }
5675
5675
  ) : o;
5676
5676
  }, [t, r]);
5677
- }, Km = ({ value: t }) => /* @__PURE__ */ i(Ld, { value: t }), Jm = ({
5677
+ }, Km = ({ value: t }) => /* @__PURE__ */ i(Hd, { value: t }), Jm = ({
5678
5678
  value: t,
5679
5679
  ooui: e
5680
5680
  }) => ee(() => t ? e.fieldType === "many2one" ? /* @__PURE__ */ i(we, { children: t[1] }) : /* @__PURE__ */ i(we, { children: t }) : /* @__PURE__ */ i(we, {}), [t, e.fieldType]), Xm = ({
5681
5681
  value: t,
5682
5682
  ooui: e
5683
- }) => /* @__PURE__ */ i(Hd, { value: t, timezone: e.timezone }), gi = ({
5683
+ }) => /* @__PURE__ */ i(Bd, { value: t, timezone: e.timezone }), gi = ({
5684
5684
  value: t
5685
5685
  }) => ee(() => {
5686
5686
  const e = Array.isArray(t == null ? void 0 : t.items) ? t == null ? void 0 : t.items.length : 0;
5687
5687
  return /* @__PURE__ */ i(we, { children: `( ${e} )` });
5688
5688
  }, [t]), Qm = ({
5689
5689
  value: t
5690
- }) => ee(() => /* @__PURE__ */ i(Il, { value: t }), [t]), Zm = ({ value: t }) => ee(() => /* @__PURE__ */ i(we, { children: Al(t) }), [t]), yi = ({ value: t }) => ee(
5690
+ }) => ee(() => /* @__PURE__ */ i(Rl, { value: t }), [t]), Zm = ({ value: t }) => ee(() => /* @__PURE__ */ i(we, { children: Il(t) }), [t]), yi = ({ value: t }) => ee(
5691
5691
  () => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: t }),
5692
5692
  [t]
5693
5693
  ), ep = ({ value: t }) => ee(
@@ -5703,7 +5703,7 @@ const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl,
5703
5703
  ), np = ({
5704
5704
  value: t,
5705
5705
  ooui: e
5706
- }) => ee(() => /* @__PURE__ */ i(Rl, { ooui: e, value: t }), [e, t]), rp = ({
5706
+ }) => ee(() => /* @__PURE__ */ i(_l, { ooui: e, value: t }), [e, t]), rp = ({
5707
5707
  value: t,
5708
5708
  ooui: e
5709
5709
  }) => ee(() => {
@@ -5724,7 +5724,7 @@ const jm = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Rl,
5724
5724
  ooui: e,
5725
5725
  context: n
5726
5726
  }) => {
5727
- const r = jt(
5727
+ const r = Bt(
5728
5728
  () => (t == null ? void 0 : t.items) || [],
5729
5729
  [t == null ? void 0 : t.items]
5730
5730
  ), o = ee(
@@ -5828,7 +5828,7 @@ const br = ({
5828
5828
  tableRef: o
5829
5829
  }), f = Jt(
5830
5830
  Tt.FEATURE_MANY2ONE_SORT
5831
- ), u = jt(() => {
5831
+ ), u = Bt(() => {
5832
5832
  if (t)
5833
5833
  return Ss(
5834
5834
  t,
@@ -5836,7 +5836,7 @@ const br = ({
5836
5836
  e,
5837
5837
  f
5838
5838
  );
5839
- }, [t, e, f]), p = Fl({
5839
+ }, [t, e, f]), p = Al({
5840
5840
  key: r ? n : void 0
5841
5841
  }), {
5842
5842
  loading: m,
@@ -5914,9 +5914,9 @@ const br = ({
5914
5914
  domain: n,
5915
5915
  showEmptyValues: r
5916
5916
  }) => {
5917
- const [o, s] = F(), [a, c] = F(!1), [l, d] = Ee(
5917
+ const [o, s] = F(), [a, c] = F(!1), [l, d] = Re(
5918
5918
  j.getHandler().readAggregates
5919
- ), f = jt(() => {
5919
+ ), f = Bt(() => {
5920
5920
  if (t)
5921
5921
  return t.columns.filter((m) => Object.keys(m).some((g) => {
5922
5922
  var h;
@@ -5987,7 +5987,7 @@ const br = ({
5987
5987
  }, [f, n]);
5988
5988
  const p = f !== void 0 && Object.keys(f).length > 0;
5989
5989
  return [a, o, p];
5990
- }, Ol = ({
5990
+ }, Dl = ({
5991
5991
  treeOoui: t,
5992
5992
  model: e,
5993
5993
  selectedRowKeys: n = [],
@@ -6067,10 +6067,10 @@ const br = ({
6067
6067
  changeSelectedRowKeys: d,
6068
6068
  onSelectionCheckboxClicked: f
6069
6069
  };
6070
- }, Dl = (t) => {
6071
- const { className: e = "w-full", layout: n = "vertical" } = t, r = Bd();
6070
+ }, kl = (t) => {
6071
+ const { className: e = "w-full", layout: n = "vertical" } = t, r = jd();
6072
6072
  return /* @__PURE__ */ i(Ge, { ...t, layout: n, children: /* @__PURE__ */ i(
6073
- td.RangePicker,
6073
+ nd.RangePicker,
6074
6074
  {
6075
6075
  allowEmpty: [!0, !0],
6076
6076
  format: "DD/MM/YYYY",
@@ -6170,7 +6170,7 @@ const br = ({
6170
6170
  autocompleteWithZeros: r !== void 0
6171
6171
  });
6172
6172
  return /* @__PURE__ */ i(
6173
- nd,
6173
+ rd,
6174
6174
  {
6175
6175
  ...o,
6176
6176
  ref: s,
@@ -6210,7 +6210,7 @@ const br = ({
6210
6210
  }
6211
6211
  ),
6212
6212
  /* @__PURE__ */ B("div", { className: "flex flex-col gap-2 w-full", children: [
6213
- /* @__PURE__ */ i(Ze, { className: "w-full", children: /* @__PURE__ */ i(Le, { span: 24, children: /* @__PURE__ */ i(Dl, { ...t, ooui: s[0], showLabel: !1 }) }) }),
6213
+ /* @__PURE__ */ i(Ze, { className: "w-full", children: /* @__PURE__ */ i(Le, { span: 24, children: /* @__PURE__ */ i(kl, { ...t, ooui: s[0], showLabel: !1 }) }) }),
6214
6214
  /* @__PURE__ */ i(Ze, { className: "w-full", children: /* @__PURE__ */ i(Le, { span: 24, children: /* @__PURE__ */ i(Ge, { ...t, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ i(pp, {}) }) }) })
6215
6215
  ] })
6216
6216
  ] });
@@ -6389,7 +6389,7 @@ const { defaultAlgorithm: Fp, defaultSeed: Ap } = rt, Ip = Fp(Ap), { Option: Rp
6389
6389
  background-color: ${Ip.colorPrimaryBg};
6390
6390
  }
6391
6391
  `;
6392
- function kl(t) {
6392
+ function Nl(t) {
6393
6393
  const { field: e } = t;
6394
6394
  e.readOnly = !1, e.required = !1;
6395
6395
  const { t: n } = xe();
@@ -6411,7 +6411,7 @@ function kl(t) {
6411
6411
  case yn.integer:
6412
6412
  return /* @__PURE__ */ i(Tp, { ooui: e, showLabel: !0 });
6413
6413
  case yn.date:
6414
- return /* @__PURE__ */ i(Dl, { ooui: e, layout: "vertical", showLabel: !0 });
6414
+ return /* @__PURE__ */ i(kl, { ooui: e, layout: "vertical", showLabel: !0 });
6415
6415
  case yn.datetime:
6416
6416
  return /* @__PURE__ */ i(mp, { ooui: e, layout: "vertical", showLabel: !0 });
6417
6417
  case yn.selection:
@@ -6479,7 +6479,7 @@ const { useToken: Dp } = rt, { Title: kp } = cn, { Header: Np, Content: Mp, Foot
6479
6479
  padding: "0 16px",
6480
6480
  borderBottom: "1px solid #f0f0f0"
6481
6481
  };
6482
- return /* @__PURE__ */ i(Tu, { children: t && /* @__PURE__ */ B(we, { children: [
6482
+ return /* @__PURE__ */ i(Fu, { children: t && /* @__PURE__ */ B(we, { children: [
6483
6483
  /* @__PURE__ */ i(
6484
6484
  ri.div,
6485
6485
  {
@@ -6500,7 +6500,7 @@ const { useToken: Dp } = rt, { Title: kp } = cn, { Header: Np, Content: Mp, Foot
6500
6500
  }
6501
6501
  ),
6502
6502
  /* @__PURE__ */ i(
6503
- Fu,
6503
+ Au,
6504
6504
  {
6505
6505
  active: t && !l,
6506
6506
  focusTrapOptions: {
@@ -6583,7 +6583,7 @@ const { useToken: Dp } = rt, { Title: kp } = cn, { Header: Np, Content: Mp, Foot
6583
6583
  )
6584
6584
  ] }) });
6585
6585
  };
6586
- var bi = Object.prototype.toString, Nl = function(e) {
6586
+ var bi = Object.prototype.toString, Ml = function(e) {
6587
6587
  var n = bi.call(e), r = n === "[object Arguments]";
6588
6588
  return r || (r = n !== "[object Array]" && e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && bi.call(e.callee) === "[object Function]"), r;
6589
6589
  }, _o, wi;
@@ -6593,7 +6593,7 @@ function Vp() {
6593
6593
  wi = 1;
6594
6594
  var t;
6595
6595
  if (!Object.keys) {
6596
- var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Nl, o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), a = o.call(function() {
6596
+ var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Ml, o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), a = o.call(function() {
6597
6597
  }, "prototype"), c = [
6598
6598
  "toString",
6599
6599
  "toLocaleString",
@@ -6675,7 +6675,7 @@ function Vp() {
6675
6675
  }
6676
6676
  return _o = t, _o;
6677
6677
  }
6678
- var Lp = Array.prototype.slice, Hp = Nl, xi = Object.keys, $r = xi ? function(e) {
6678
+ var Lp = Array.prototype.slice, Hp = Ml, xi = Object.keys, $r = xi ? function(e) {
6679
6679
  return xi(e);
6680
6680
  } : Vp(), Ci = Object.keys;
6681
6681
  $r.shim = function() {
@@ -6691,7 +6691,7 @@ $r.shim = function() {
6691
6691
  Object.keys = $r;
6692
6692
  return Object.keys || $r;
6693
6693
  };
6694
- var Ml = $r, Pl = function() {
6694
+ var Pl = $r, $l = function() {
6695
6695
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
6696
6696
  return !1;
6697
6697
  if (typeof Symbol.iterator == "symbol")
@@ -6717,9 +6717,9 @@ var Ml = $r, Pl = function() {
6717
6717
  return !1;
6718
6718
  }
6719
6719
  return !0;
6720
- }, Bp = Pl, Ns = function() {
6720
+ }, Bp = $l, Ns = function() {
6721
6721
  return Bp() && !!Symbol.toStringTag;
6722
- }, $l = Object, jp = Error, Up = EvalError, Wp = RangeError, qp = ReferenceError, Gp = SyntaxError, Vl = TypeError, Yp = URIError, zp = Math.abs, Kp = Math.floor, Jp = Math.max, Xp = Math.min, Qp = Math.pow, Zp = Math.round, eh = Number.isNaN || function(e) {
6722
+ }, Vl = Object, jp = Error, Up = EvalError, Wp = RangeError, qp = ReferenceError, Gp = SyntaxError, Ll = TypeError, Yp = URIError, zp = Math.abs, Kp = Math.floor, Jp = Math.max, Xp = Math.min, Qp = Math.pow, Zp = Math.round, eh = Number.isNaN || function(e) {
6723
6723
  return e !== e;
6724
6724
  }, th = eh, nh = function(e) {
6725
6725
  return th(e) || e === 0 ? e : e < 0 ? -1 : 1;
@@ -6742,21 +6742,21 @@ function sh() {
6742
6742
  if (Si)
6743
6743
  return Eo;
6744
6744
  Si = 1;
6745
- var t = typeof Symbol < "u" && Symbol, e = Pl;
6745
+ var t = typeof Symbol < "u" && Symbol, e = $l;
6746
6746
  return Eo = function() {
6747
6747
  return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
6748
6748
  }, Eo;
6749
6749
  }
6750
6750
  var Oo, Ti;
6751
- function Ll() {
6751
+ function Hl() {
6752
6752
  return Ti || (Ti = 1, Oo = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Oo;
6753
6753
  }
6754
6754
  var Do, Fi;
6755
- function Hl() {
6755
+ function Bl() {
6756
6756
  if (Fi)
6757
6757
  return Do;
6758
6758
  Fi = 1;
6759
- var t = $l;
6759
+ var t = Vl;
6760
6760
  return Do = t.getPrototypeOf || null, Do;
6761
6761
  }
6762
6762
  var ih = "Function.prototype.bind called on incompatible ", ah = Object.prototype.toString, lh = Math.max, ch = "[object Function]", Ai = function(e, n) {
@@ -6802,7 +6802,7 @@ function Ps() {
6802
6802
  return Ii || (Ii = 1, ko = Function.prototype.call), ko;
6803
6803
  }
6804
6804
  var No, Ri;
6805
- function Bl() {
6805
+ function jl() {
6806
6806
  return Ri || (Ri = 1, No = Function.prototype.apply), No;
6807
6807
  }
6808
6808
  var Mo, _i;
@@ -6814,7 +6814,7 @@ function hh() {
6814
6814
  if (Ei)
6815
6815
  return Po;
6816
6816
  Ei = 1;
6817
- var t = Er, e = Bl(), n = Ps(), r = ph();
6817
+ var t = Er, e = jl(), n = Ps(), r = ph();
6818
6818
  return Po = r || t.call(n, e), Po;
6819
6819
  }
6820
6820
  var $o, Oi;
@@ -6822,7 +6822,7 @@ function gh() {
6822
6822
  if (Oi)
6823
6823
  return $o;
6824
6824
  Oi = 1;
6825
- var t = Er, e = Vl, n = Ps(), r = hh();
6825
+ var t = Er, e = Ll, n = Ps(), r = hh();
6826
6826
  return $o = function(s) {
6827
6827
  if (s.length < 1 || typeof s[0] != "function")
6828
6828
  throw new e("a function is required");
@@ -6859,7 +6859,7 @@ function vh() {
6859
6859
  if (ki)
6860
6860
  return Lo;
6861
6861
  ki = 1;
6862
- var t = Ll(), e = Hl(), n = yh();
6862
+ var t = Hl(), e = Bl(), n = yh();
6863
6863
  return Lo = t ? function(o) {
6864
6864
  return t(o);
6865
6865
  } : e ? function(o) {
@@ -6878,9 +6878,9 @@ function bh() {
6878
6878
  var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Er;
6879
6879
  return Ho = n.call(t, e), Ho;
6880
6880
  }
6881
- var Je, wh = $l, xh = jp, Ch = Up, Sh = Wp, Th = qp, Zn = Gp, Gn = Vl, Fh = Yp, Ah = zp, Ih = Kp, Rh = Jp, _h = Xp, Eh = Qp, Oh = Zp, Dh = nh, jl = Function, Bo = function(t) {
6881
+ var Je, wh = Vl, xh = jp, Ch = Up, Sh = Wp, Th = qp, Zn = Gp, Gn = Ll, Fh = Yp, Ah = zp, Ih = Kp, Rh = Jp, _h = Xp, Eh = Qp, Oh = Zp, Dh = nh, Ul = Function, Bo = function(t) {
6882
6882
  try {
6883
- return jl('"use strict"; return (' + t + ").constructor;")();
6883
+ return Ul('"use strict"; return (' + t + ").constructor;")();
6884
6884
  } catch {
6885
6885
  }
6886
6886
  }, xr = Ms, kh = oh, jo = function() {
@@ -6895,7 +6895,7 @@ var Je, wh = $l, xh = jp, Ch = Up, Sh = Wp, Th = qp, Zn = Gp, Gn = Vl, Fh = Yp,
6895
6895
  return jo;
6896
6896
  }
6897
6897
  }
6898
- }() : jo, Vn = sh()(), Ct = vh(), Mh = Hl(), Ph = Ll(), Ul = Bl(), Or = Ps(), Bn = {}, $h = typeof Uint8Array > "u" || !Ct ? Je : Ct(Uint8Array), Fn = {
6898
+ }() : jo, Vn = sh()(), Ct = vh(), Mh = Bl(), Ph = Hl(), Wl = jl(), Or = Ps(), Bn = {}, $h = typeof Uint8Array > "u" || !Ct ? Je : Ct(Uint8Array), Fn = {
6899
6899
  __proto__: null,
6900
6900
  "%AggregateError%": typeof AggregateError > "u" ? Je : AggregateError,
6901
6901
  "%Array%": Array,
@@ -6925,7 +6925,7 @@ var Je, wh = $l, xh = jp, Ch = Up, Sh = Wp, Th = qp, Zn = Gp, Gn = Vl, Fh = Yp,
6925
6925
  "%Float32Array%": typeof Float32Array > "u" ? Je : Float32Array,
6926
6926
  "%Float64Array%": typeof Float64Array > "u" ? Je : Float64Array,
6927
6927
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Je : FinalizationRegistry,
6928
- "%Function%": jl,
6928
+ "%Function%": Ul,
6929
6929
  "%GeneratorFunction%": Bn,
6930
6930
  "%Int8Array%": typeof Int8Array > "u" ? Je : Int8Array,
6931
6931
  "%Int16Array%": typeof Int16Array > "u" ? Je : Int16Array,
@@ -6967,7 +6967,7 @@ var Je, wh = $l, xh = jp, Ch = Up, Sh = Wp, Th = qp, Zn = Gp, Gn = Vl, Fh = Yp,
6967
6967
  "%WeakRef%": typeof WeakRef > "u" ? Je : WeakRef,
6968
6968
  "%WeakSet%": typeof WeakSet > "u" ? Je : WeakSet,
6969
6969
  "%Function.prototype.call%": Or,
6970
- "%Function.prototype.apply%": Ul,
6970
+ "%Function.prototype.apply%": Wl,
6971
6971
  "%Object.defineProperty%": kh,
6972
6972
  "%Object.getPrototypeOf%": Mh,
6973
6973
  "%Math.abs%": Ah,
@@ -7055,7 +7055,7 @@ var Lh = function t(e) {
7055
7055
  "%URIErrorPrototype%": ["URIError", "prototype"],
7056
7056
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
7057
7057
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
7058
- }, Dr = Er, Gr = bh(), Hh = Dr.call(Or, Array.prototype.concat), Bh = Dr.call(Ul, Array.prototype.splice), Pi = Dr.call(Or, String.prototype.replace), Yr = Dr.call(Or, String.prototype.slice), jh = Dr.call(Or, RegExp.prototype.exec), Uh = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Wh = /\\(\\)?/g, qh = function(e) {
7058
+ }, Dr = Er, Gr = bh(), Hh = Dr.call(Or, Array.prototype.concat), Bh = Dr.call(Wl, Array.prototype.splice), Pi = Dr.call(Or, String.prototype.replace), Yr = Dr.call(Or, String.prototype.slice), jh = Dr.call(Or, RegExp.prototype.exec), Uh = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Wh = /\\(\\)?/g, qh = function(e) {
7059
7059
  var n = Yr(e, 0, 1), r = Yr(e, -1);
7060
7060
  if (n === "%" && r !== "%")
7061
7061
  throw new Zn("invalid intrinsic syntax, expected closing `%`");
@@ -7108,7 +7108,7 @@ var Lh = function t(e) {
7108
7108
  }
7109
7109
  }
7110
7110
  return c;
7111
- }, Wl = { exports: {} };
7111
+ }, ql = { exports: {} };
7112
7112
  (function(t) {
7113
7113
  var e = Er, n = go, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(o, r), a = n("%Object.getOwnPropertyDescriptor%", !0), c = n("%Object.defineProperty%", !0), l = n("%Math.max%");
7114
7114
  if (c)
@@ -7133,19 +7133,19 @@ var Lh = function t(e) {
7133
7133
  return s(e, r, arguments);
7134
7134
  };
7135
7135
  c ? c(t.exports, "apply", { value: d }) : t.exports.apply = d;
7136
- })(Wl);
7137
- var $s = Wl.exports, ql = go, Gl = $s, Yh = Gl(ql("String.prototype.indexOf")), Yl = function(e, n) {
7138
- var r = ql(e, !!n);
7139
- return typeof r == "function" && Yh(e, ".prototype.") > -1 ? Gl(r) : r;
7140
- }, zh = Ns(), Kh = Yl, Zo = Kh("Object.prototype.toString"), yo = function(e) {
7136
+ })(ql);
7137
+ var $s = ql.exports, Gl = go, Yl = $s, Yh = Yl(Gl("String.prototype.indexOf")), zl = function(e, n) {
7138
+ var r = Gl(e, !!n);
7139
+ return typeof r == "function" && Yh(e, ".prototype.") > -1 ? Yl(r) : r;
7140
+ }, zh = Ns(), Kh = zl, Zo = Kh("Object.prototype.toString"), yo = function(e) {
7141
7141
  return zh && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : Zo(e) === "[object Arguments]";
7142
- }, zl = function(e) {
7142
+ }, Kl = function(e) {
7143
7143
  return yo(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && Zo(e) !== "[object Array]" && Zo(e.callee) === "[object Function]";
7144
7144
  }, Jh = function() {
7145
7145
  return yo(arguments);
7146
7146
  }();
7147
- yo.isLegacyArguments = zl;
7148
- var Xh = Jh ? yo : zl, Qh = go, es = Qh("%Object.defineProperty%", !0), ts = function() {
7147
+ yo.isLegacyArguments = Kl;
7148
+ var Xh = Jh ? yo : Kl, Qh = go, es = Qh("%Object.defineProperty%", !0), ts = function() {
7149
7149
  if (es)
7150
7150
  try {
7151
7151
  return es({}, "a", { value: 1 }), !0;
@@ -7163,7 +7163,7 @@ ts.hasArrayLengthDefineBug = function() {
7163
7163
  return !0;
7164
7164
  }
7165
7165
  };
7166
- var Vs = ts, Zh = Vs(), Ls = go, $i = Zh && Ls("%Object.defineProperty%", !0), eg = Ls("%SyntaxError%"), Ln = Ls("%TypeError%"), Vi = Ms, Kl = function(e, n, r) {
7166
+ var Vs = ts, Zh = Vs(), Ls = go, $i = Zh && Ls("%Object.defineProperty%", !0), eg = Ls("%SyntaxError%"), Ln = Ls("%TypeError%"), Vi = Ms, Jl = function(e, n, r) {
7167
7167
  if (!e || typeof e != "object" && typeof e != "function")
7168
7168
  throw new Ln("`obj` must be an object or a function`");
7169
7169
  if (typeof n != "string" && typeof n != "symbol")
@@ -7188,9 +7188,9 @@ var Vs = ts, Zh = Vs(), Ls = go, $i = Zh && Ls("%Object.defineProperty%", !0), e
7188
7188
  e[n] = r;
7189
7189
  else
7190
7190
  throw new eg("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
7191
- }, tg = Ml, ng = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", rg = Object.prototype.toString, og = Array.prototype.concat, Li = Kl, sg = function(t) {
7191
+ }, tg = Pl, ng = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", rg = Object.prototype.toString, og = Array.prototype.concat, Li = Jl, sg = function(t) {
7192
7192
  return typeof t == "function" && rg.call(t) === "[object Function]";
7193
- }, Jl = Vs(), ig = function(t, e, n, r) {
7193
+ }, Xl = Vs(), ig = function(t, e, n, r) {
7194
7194
  if (e in t) {
7195
7195
  if (r === !0) {
7196
7196
  if (t[e] === n)
@@ -7198,36 +7198,36 @@ var Vs = ts, Zh = Vs(), Ls = go, $i = Zh && Ls("%Object.defineProperty%", !0), e
7198
7198
  } else if (!sg(r) || !r())
7199
7199
  return;
7200
7200
  }
7201
- Jl ? Li(t, e, n, !0) : Li(t, e, n);
7202
- }, Xl = function(t, e) {
7201
+ Xl ? Li(t, e, n, !0) : Li(t, e, n);
7202
+ }, Ql = function(t, e) {
7203
7203
  var n = arguments.length > 2 ? arguments[2] : {}, r = tg(e);
7204
7204
  ng && (r = og.call(r, Object.getOwnPropertySymbols(e)));
7205
7205
  for (var o = 0; o < r.length; o += 1)
7206
7206
  ig(t, r[o], e[r[o]], n[r[o]]);
7207
7207
  };
7208
- Xl.supportsDescriptors = !!Jl;
7209
- var kr = Xl, Hi = function(t) {
7208
+ Ql.supportsDescriptors = !!Xl;
7209
+ var kr = Ql, Hi = function(t) {
7210
7210
  return t !== t;
7211
- }, Ql = function(e, n) {
7211
+ }, Zl = function(e, n) {
7212
7212
  return e === 0 && n === 0 ? 1 / e === 1 / n : !!(e === n || Hi(e) && Hi(n));
7213
- }, ag = Ql, Zl = function() {
7213
+ }, ag = Zl, ec = function() {
7214
7214
  return typeof Object.is == "function" ? Object.is : ag;
7215
- }, lg = Zl, cg = kr, dg = function() {
7215
+ }, lg = ec, cg = kr, dg = function() {
7216
7216
  var e = lg();
7217
7217
  return cg(Object, { is: e }, {
7218
7218
  is: function() {
7219
7219
  return Object.is !== e;
7220
7220
  }
7221
7221
  }), e;
7222
- }, ug = kr, fg = $s, mg = Ql, ec = Zl, pg = dg, tc = fg(ec(), Object);
7223
- ug(tc, {
7224
- getPolyfill: ec,
7222
+ }, ug = kr, fg = $s, mg = Zl, tc = ec, pg = dg, nc = fg(tc(), Object);
7223
+ ug(nc, {
7224
+ getPolyfill: tc,
7225
7225
  implementation: mg,
7226
7226
  shim: pg
7227
7227
  });
7228
- var hg = tc, ns = Yl, nc = Ns(), rc, oc, rs, os;
7229
- if (nc) {
7230
- rc = ns("Object.prototype.hasOwnProperty"), oc = ns("RegExp.prototype.exec"), rs = {};
7228
+ var hg = nc, ns = zl, rc = Ns(), oc, sc, rs, os;
7229
+ if (rc) {
7230
+ oc = ns("Object.prototype.hasOwnProperty"), sc = ns("RegExp.prototype.exec"), rs = {};
7231
7231
  var Uo = function() {
7232
7232
  throw rs;
7233
7233
  };
@@ -7236,14 +7236,14 @@ if (nc) {
7236
7236
  valueOf: Uo
7237
7237
  }, typeof Symbol.toPrimitive == "symbol" && (os[Symbol.toPrimitive] = Uo);
7238
7238
  }
7239
- var gg = ns("Object.prototype.toString"), yg = Object.getOwnPropertyDescriptor, vg = "[object RegExp]", bg = nc ? function(e) {
7239
+ var gg = ns("Object.prototype.toString"), yg = Object.getOwnPropertyDescriptor, vg = "[object RegExp]", bg = rc ? function(e) {
7240
7240
  if (!e || typeof e != "object")
7241
7241
  return !1;
7242
- var n = yg(e, "lastIndex"), r = n && rc(n, "value");
7242
+ var n = yg(e, "lastIndex"), r = n && oc(n, "value");
7243
7243
  if (!r)
7244
7244
  return !1;
7245
7245
  try {
7246
- oc(e, os);
7246
+ sc(e, os);
7247
7247
  } catch (o) {
7248
7248
  return o === rs;
7249
7249
  }
@@ -7271,17 +7271,17 @@ Cr.boundFunctionsHaveNames = function() {
7271
7271
  return Cr() && typeof wg == "function" && (function() {
7272
7272
  }).bind().name !== "";
7273
7273
  };
7274
- var xg = Cr, Bi = Kl, Cg = Vs(), Sg = xg.functionsHaveConfigurableNames(), Tg = TypeError, Fg = function(e, n) {
7274
+ var xg = Cr, Bi = Jl, Cg = Vs(), Sg = xg.functionsHaveConfigurableNames(), Tg = TypeError, Fg = function(e, n) {
7275
7275
  if (typeof e != "function")
7276
7276
  throw new Tg("`fn` is not a function");
7277
7277
  var r = arguments.length > 2 && !!arguments[2];
7278
7278
  return (!r || Sg) && (Cg ? Bi(e, "name", n, !0, !0) : Bi(e, "name", n)), e;
7279
- }, Ag = Fg, Ig = Object, Rg = TypeError, sc = Ag(function() {
7279
+ }, Ag = Fg, Ig = Object, Rg = TypeError, ic = Ag(function() {
7280
7280
  if (this != null && this !== Ig(this))
7281
7281
  throw new Rg("RegExp.prototype.flags getter called on non-object");
7282
7282
  var e = "";
7283
7283
  return this.hasIndices && (e += "d"), this.global && (e += "g"), this.ignoreCase && (e += "i"), this.multiline && (e += "m"), this.dotAll && (e += "s"), this.unicode && (e += "u"), this.unicodeSets && (e += "v"), this.sticky && (e += "y"), e;
7284
- }, "get flags", !0), _g = sc, Eg = kr.supportsDescriptors, Og = Object.getOwnPropertyDescriptor, ic = function() {
7284
+ }, "get flags", !0), _g = ic, Eg = kr.supportsDescriptors, Og = Object.getOwnPropertyDescriptor, ac = function() {
7285
7285
  if (Eg && /a/mig.flags === "gim") {
7286
7286
  var e = Og(RegExp.prototype, "flags");
7287
7287
  if (e && typeof e.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
@@ -7299,7 +7299,7 @@ var xg = Cr, Bi = Kl, Cg = Vs(), Sg = xg.functionsHaveConfigurableNames(), Tg =
7299
7299
  }
7300
7300
  }
7301
7301
  return _g;
7302
- }, Dg = kr.supportsDescriptors, kg = ic, Ng = Object.getOwnPropertyDescriptor, Mg = Object.defineProperty, Pg = TypeError, ji = Object.getPrototypeOf, $g = /a/, Vg = function() {
7302
+ }, Dg = kr.supportsDescriptors, kg = ac, Ng = Object.getOwnPropertyDescriptor, Mg = Object.defineProperty, Pg = TypeError, ji = Object.getPrototypeOf, $g = /a/, Vg = function() {
7303
7303
  if (!Dg || !ji)
7304
7304
  throw new Pg("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
7305
7305
  var e = kg(), n = ji($g), r = Ng(n, "flags");
@@ -7308,13 +7308,13 @@ var xg = Cr, Bi = Kl, Cg = Vs(), Sg = xg.functionsHaveConfigurableNames(), Tg =
7308
7308
  enumerable: !1,
7309
7309
  get: e
7310
7310
  }), e;
7311
- }, Lg = kr, Hg = $s, Bg = sc, ac = ic, jg = Vg, lc = Hg(ac());
7312
- Lg(lc, {
7313
- getPolyfill: ac,
7311
+ }, Lg = kr, Hg = $s, Bg = ic, lc = ac, jg = Vg, cc = Hg(lc());
7312
+ Lg(cc, {
7313
+ getPolyfill: lc,
7314
7314
  implementation: Bg,
7315
7315
  shim: jg
7316
7316
  });
7317
- var Ug = lc, Wg = Date.prototype.getDay, qg = function(e) {
7317
+ var Ug = cc, Wg = Date.prototype.getDay, qg = function(e) {
7318
7318
  try {
7319
7319
  return Wg.call(e), !0;
7320
7320
  } catch {
@@ -7322,8 +7322,8 @@ var Ug = lc, Wg = Date.prototype.getDay, qg = function(e) {
7322
7322
  }
7323
7323
  }, Gg = Object.prototype.toString, Yg = "[object Date]", zg = Ns(), Kg = function(e) {
7324
7324
  return typeof e != "object" || e === null ? !1 : zg ? qg(e) : Gg.call(e) === Yg;
7325
- }, Ui = Ml, Wi = Xh, qi = hg, Gi = bg, Yi = Ug, zi = Kg, Ki = Date.prototype.getTime;
7326
- function cc(t, e, n) {
7325
+ }, Ui = Pl, Wi = Xh, qi = hg, Gi = bg, Yi = Ug, zi = Kg, Ki = Date.prototype.getTime;
7326
+ function dc(t, e, n) {
7327
7327
  var r = n || {};
7328
7328
  return (r.strict ? qi(t, e) : t === e) ? !0 : !t || !e || typeof t != "object" && typeof e != "object" ? r.strict ? qi(t, e) : t == e : Jg(t, e, r);
7329
7329
  }
@@ -7368,11 +7368,11 @@ function Jg(t, e, n) {
7368
7368
  if (d[r] != f[r])
7369
7369
  return !1;
7370
7370
  for (r = d.length - 1; r >= 0; r--)
7371
- if (o = d[r], !cc(t[o], e[o], n))
7371
+ if (o = d[r], !dc(t[o], e[o], n))
7372
7372
  return !1;
7373
7373
  return !0;
7374
7374
  }
7375
- var Xg = cc;
7375
+ var Xg = dc;
7376
7376
  const ir = /* @__PURE__ */ $a(Xg), { Text: Qg } = cn, Zg = ({
7377
7377
  currentModel: t,
7378
7378
  context: e,
@@ -7391,9 +7391,9 @@ const ir = /* @__PURE__ */ $a(Xg), { Text: Qg } = cn, Zg = ({
7391
7391
  setSavedSearches: u
7392
7392
  } = Lt(), [p, m] = F(
7393
7393
  (o == null ? void 0 : o.name) || ""
7394
- ), [g, h] = F(!1), [y, v] = F(!1), [b, x] = F(!1), [C, w] = F(!1), [_, S] = F(""), [I] = Ee(
7394
+ ), [g, h] = F(!1), [y, v] = F(!1), [b, x] = F(!1), [C, w] = F(!1), [_, S] = F(""), [I] = Re(
7395
7395
  j.getHandler().update
7396
- ), [D] = Ee(
7396
+ ), [D] = Re(
7397
7397
  j.getHandler().create
7398
7398
  );
7399
7399
  Be(() => {
@@ -7697,7 +7697,7 @@ const ir = /* @__PURE__ */ $a(Xg), { Text: Qg } = cn, Zg = ({
7697
7697
  shouldShowSaveButtonGroup: P,
7698
7698
  shouldShowSaveAsNew: H
7699
7699
  };
7700
- }, dc = Bt(
7700
+ }, uc = jt(
7701
7701
  (t, e) => {
7702
7702
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: s, onClear: a } = t, [c] = It.useForm(), [l, d] = F({}), [f, u] = F(""), { t: p } = xe(), [m, g] = F(0), h = K(null), [y, v] = F([]);
7703
7703
  Be(() => {
@@ -7772,7 +7772,7 @@ const ir = /* @__PURE__ */ $a(Xg), { Text: Qg } = cn, Zg = ({
7772
7772
  },
7773
7773
  "data-field-id": V,
7774
7774
  children: [
7775
- /* @__PURE__ */ i("div", { style: { flex: 1 }, children: /* @__PURE__ */ i(kl, { field: T }, `sf-${V}`) }),
7775
+ /* @__PURE__ */ i("div", { style: { flex: 1 }, children: /* @__PURE__ */ i(Nl, { field: T }, `sf-${V}`) }),
7776
7776
  N && /* @__PURE__ */ i(
7777
7777
  ze,
7778
7778
  {
@@ -7934,8 +7934,8 @@ const ir = /* @__PURE__ */ $a(Xg), { Text: Qg } = cn, Zg = ({
7934
7934
  ) });
7935
7935
  }
7936
7936
  );
7937
- dc.displayName = "SideSearchFilterComponent";
7938
- const uc = (t) => {
7937
+ uc.displayName = "SideSearchFilterComponent";
7938
+ const fc = (t) => {
7939
7939
  var ae;
7940
7940
  const {
7941
7941
  onSubmit: e,
@@ -7950,7 +7950,7 @@ const uc = (t) => {
7950
7950
  } = t, f = K(), { t: u } = xe(), p = K(), m = K(null), {
7951
7951
  currentSavedSearch: g,
7952
7952
  searchParams: h
7953
- } = Lt(), [y, v] = F([]), [b, x] = F({}), C = jt(() => y, [y]), w = jt(() => `${u("filter")} (${(C == null ? void 0 : C.length) || 0})`, [u, C]), _ = jt(() => {
7953
+ } = Lt(), [y, v] = F([]), [b, x] = F({}), C = Bt(() => y, [y]), w = Bt(() => `${u("filter")} (${(C == null ? void 0 : C.length) || 0})`, [u, C]), _ = Bt(() => {
7954
7954
  if (!b)
7955
7955
  return 0;
7956
7956
  const J = /* @__PURE__ */ new Set();
@@ -8075,7 +8075,7 @@ const uc = (t) => {
8075
8075
  (Y = m.current) == null || Y.resetFields(), (de = m.current) == null || de.setFieldsValue({}), (fe = (ue = m.current) == null ? void 0 : ue.resetInitialValues) == null || fe.call(ue), v([]), x({}), G(), o && o();
8076
8076
  },
8077
8077
  [y, o, G]
8078
- ), W = jt(() => P ? z ? /* @__PURE__ */ B(it.Compact, { size: "small", children: [
8078
+ ), W = Bt(() => P ? z ? /* @__PURE__ */ B(it.Compact, { size: "small", children: [
8079
8079
  /* @__PURE__ */ i(
8080
8080
  ze,
8081
8081
  {
@@ -8148,7 +8148,7 @@ const uc = (t) => {
8148
8148
  }
8149
8149
  ),
8150
8150
  children: n && /* @__PURE__ */ i(
8151
- dc,
8151
+ uc,
8152
8152
  {
8153
8153
  ref: m,
8154
8154
  searchFields: p.current,
@@ -8275,7 +8275,7 @@ function ny(t) {
8275
8275
  } = t, { t: a } = xe();
8276
8276
  return /* @__PURE__ */ B(Ze, { children: [
8277
8277
  !s && /* @__PURE__ */ i(Le, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ B("a", { className: "text-xs", onClick: e, children: [
8278
- n ? /* @__PURE__ */ i(vd, { className: "pr-1" }) : /* @__PURE__ */ i(Sr, { className: "pr-1" }),
8278
+ n ? /* @__PURE__ */ i(bd, { className: "pr-1" }) : /* @__PURE__ */ i(Sr, { className: "pr-1" }),
8279
8279
  a(n ? "simple_search" : "advanced_search")
8280
8280
  ] }) }),
8281
8281
  /* @__PURE__ */ B(Le, { span: s ? 24 : 12, className: "text-right pb-2", children: [
@@ -8340,7 +8340,7 @@ function vo(t) {
8340
8340
  if (!y)
8341
8341
  return;
8342
8342
  const k = b ? y : g, O = k == null ? void 0 : k.rows;
8343
- return O == null ? void 0 : O.map((T, N) => /* @__PURE__ */ i(Ze, { children: T.map((R, V) => /* @__PURE__ */ i(Le, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(kl, { field: R }) }, V)) }, N));
8343
+ return O == null ? void 0 : O.map((T, N) => /* @__PURE__ */ i(Ze, { children: T.map((R, V) => /* @__PURE__ */ i(Le, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(Nl, { field: R }) }, V)) }, N));
8344
8344
  };
8345
8345
  Be(() => {
8346
8346
  x(!1), C.current = new wa(n, e), C.current.parse(), h(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
@@ -8417,7 +8417,7 @@ function vo(t) {
8417
8417
  }
8418
8418
  );
8419
8419
  }
8420
- function fc({
8420
+ function mc({
8421
8421
  useLocalState: t = !1
8422
8422
  }) {
8423
8423
  const e = _y() && !t, n = Lt(), [r, o] = F(!1), [s, a] = F(!1), [c, l] = F([]), [d, f] = F(0), [u, p] = F(void 0), [m, g] = F([]), [h, y] = F({}), [v, b] = F(), [x, C] = F([]), [w, _] = F(), [S, I] = F(0), [D, E] = F(), [k, O] = F(1), [T, N] = F(Rn), [R, V] = F(Rt);
@@ -8529,7 +8529,7 @@ const ar = () => {
8529
8529
  }) => {
8530
8530
  const [u, p] = F(!1), m = K([]), g = e == null ? void 0 : e.fields, h = (e == null ? void 0 : e.fields_in_conditions) !== void 0, [y, v] = F(
8531
8531
  /* @__PURE__ */ new Set()
8532
- ), b = K(/* @__PURE__ */ new Set()), x = K([]), C = K(null), [w, _] = F(!0), [S, I] = Ee(
8532
+ ), b = K(/* @__PURE__ */ new Set()), x = K([]), C = K(null), [w, _] = F(!0), [S, I] = Re(
8533
8533
  async (P) => j.getHandler().processSearchResults({
8534
8534
  searchIds: P.searchIds,
8535
8535
  model: t,
@@ -8537,7 +8537,7 @@ const ar = () => {
8537
8537
  context: r,
8538
8538
  fields: g
8539
8539
  })
8540
- ), [D, E] = Ee(
8540
+ ), [D, E] = Re(
8541
8541
  j.getHandler().parseConditions
8542
8542
  ), k = ar();
8543
8543
  le(() => {
@@ -8717,9 +8717,9 @@ const ar = () => {
8717
8717
  treeView: l,
8718
8718
  results: d,
8719
8719
  onRecordsUpdated: f
8720
- } = t, u = ee(() => l != null && l.field_parent ? { ...l == null ? void 0 : l.fields, [l == null ? void 0 : l.field_parent]: {} } : l == null ? void 0 : l.fields, [l]), p = (l == null ? void 0 : l.fields_in_conditions) !== void 0, m = K(null), [g, h] = F(!0), [y, v] = Ee(
8720
+ } = t, u = ee(() => l != null && l.field_parent ? { ...l == null ? void 0 : l.fields, [l == null ? void 0 : l.field_parent]: {} } : l == null ? void 0 : l.fields, [l]), p = (l == null ? void 0 : l.fields_in_conditions) !== void 0, m = K(null), [g, h] = F(!0), [y, v] = Re(
8721
8721
  j.getHandler().readObjects
8722
- ), [b, x] = Ee(
8722
+ ), [b, x] = Re(
8723
8723
  j.getHandler().parseConditions
8724
8724
  ), C = ar(), w = K({}), _ = A(
8725
8725
  (O, T) => T ? o == null ? void 0 : o.some(
@@ -8891,7 +8891,7 @@ const ar = () => {
8891
8891
  f
8892
8892
  ]
8893
8893
  );
8894
- }, mc = ({
8894
+ }, pc = ({
8895
8895
  onFilterSearchClick: t
8896
8896
  }) => {
8897
8897
  const { t: e } = xe(), n = (a) => {
@@ -8976,10 +8976,10 @@ const ar = () => {
8976
8976
  record: e,
8977
8977
  column: n,
8978
8978
  isFieldLoading: r
8979
- }) => r != null && r(e, n.key) ? /* @__PURE__ */ i(jd, {}) : n.render(t, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context)
8979
+ }) => r != null && r(e, n.key) ? /* @__PURE__ */ i(Ud, {}) : n.render(t, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context)
8980
8980
  );
8981
8981
  bo.displayName = "CellRenderer";
8982
- const pc = ({
8982
+ const hc = ({
8983
8983
  tableRef: t,
8984
8984
  autoRefresh: e
8985
8985
  }) => {
@@ -9007,14 +9007,14 @@ function my(t, e) {
9007
9007
  hideSelectionColumn: h = !1,
9008
9008
  fixedHeight: y,
9009
9009
  autoRefresh: v
9010
- } = t, b = K(null), x = K([]), C = K(!1), { showErrorNotification: w } = xt(), { setCurrentSavedSearch: _ } = Lt(), [S, I] = F(), [D, E] = F(!1), k = K(), O = K(null), T = Sl({
9010
+ } = t, b = K(null), x = K([]), C = K(!1), { showErrorNotification: w } = xt(), { setCurrentSavedSearch: _ } = Lt(), [S, I] = F(), [D, E] = F(!1), k = K(), O = K(null), T = Tl({
9011
9011
  elementRef: O,
9012
9012
  offset: uy
9013
- }), N = y !== void 0 ? y : T, [R, V] = Ee(
9013
+ }), N = y !== void 0 ? y : T, [R, V] = Re(
9014
9014
  j.getHandler().searchCount
9015
- ), [M, L] = Ee(
9015
+ ), [M, L] = Re(
9016
9016
  j.getHandler().searchForTree
9017
- ), [G, $] = Ee(
9017
+ ), [G, $] = Re(
9018
9018
  j.getHandler().searchAllIds
9019
9019
  );
9020
9020
  le(() => () => {
@@ -9046,7 +9046,7 @@ function my(t, e) {
9046
9046
  isActive: Te,
9047
9047
  order: Ce,
9048
9048
  setOrder: Ae
9049
- } = fc({ useLocalState: !l }), pe = u || Y, ge = K(pe), Me = K(!1), Qe = K(), Oe = K(), We = K(!1), Ne = K(pe), Xe = K(!1);
9049
+ } = mc({ useLocalState: !l }), pe = u || Y, ge = K(pe), Me = K(!1), Qe = K(), Oe = K(), We = K(!1), Ne = K(pe), Xe = K(!1);
9050
9050
  le(() => {
9051
9051
  var Ue;
9052
9052
  k.current !== void 0 && k.current !== S && (se == null || se(0), !(Ne.current !== void 0 && pe !== void 0) && !Xe.current && ((Ue = b.current) == null || Ue.refresh()), Xe.current = !1, setTimeout(() => {
@@ -9071,7 +9071,7 @@ function my(t, e) {
9071
9071
  onRowStyle: He,
9072
9072
  statusComponent: ne,
9073
9073
  onRowStatus: ye,
9074
- getColumnState: Re,
9074
+ getColumnState: _e,
9075
9075
  updateColumnState: De,
9076
9076
  isColumnStateLoading: ve,
9077
9077
  updateAttributes: ke,
@@ -9079,7 +9079,7 @@ function my(t, e) {
9079
9079
  } = Es({
9080
9080
  treeOoui: $e,
9081
9081
  parentContext: d,
9082
- columnStateKey: P ? Tl({
9082
+ columnStateKey: P ? Fl({
9083
9083
  treeViewId: P.view_id,
9084
9084
  model: n
9085
9085
  }) : void 0,
@@ -9169,10 +9169,10 @@ function my(t, e) {
9169
9169
  sort: Pe.sort || void 0,
9170
9170
  sortIndex: Pe.sortIndex || void 0,
9171
9171
  colId: Pe.colId
9172
- })), be = re && (re == null ? void 0 : re.length) > 0 ? re : void 0, _e = Xn({
9172
+ })), be = re && (re == null ? void 0 : re.length) > 0 ? re : void 0, Ee = Xn({
9173
9173
  state: be
9174
9174
  });
9175
- Ae == null || Ae(be), lt = yr(_e);
9175
+ Ae == null || Ae(be), lt = yr(Ee);
9176
9176
  }
9177
9177
  C.current = !0;
9178
9178
  const Ht = pe ? a : qt, Pn = br({
@@ -9288,7 +9288,7 @@ function my(t, e) {
9288
9288
  mt,
9289
9289
  pe
9290
9290
  ]
9291
- ), { footerComponent: Yt } = Ol({
9291
+ ), { footerComponent: Yt } = Dl({
9292
9292
  treeOoui: $e,
9293
9293
  model: n,
9294
9294
  selectedRowKeys: sn,
@@ -9296,11 +9296,11 @@ function my(t, e) {
9296
9296
  }), Cn = K(me);
9297
9297
  Cn.current = me;
9298
9298
  const Mn = A(() => Cn.current, []);
9299
- pc({
9299
+ hc({
9300
9300
  tableRef: b,
9301
9301
  autoRefresh: v
9302
9302
  });
9303
- const Se = Me.current ? Rt : void 0, qe = jt(() => !tn || !$e ? null : /* @__PURE__ */ i(
9303
+ const Se = Me.current ? Rt : void 0, qe = Bt(() => !tn || !$e ? null : /* @__PURE__ */ i(
9304
9304
  bs,
9305
9305
  {
9306
9306
  readonly: !1,
@@ -9312,7 +9312,7 @@ function my(t, e) {
9312
9312
  onRowStyle: He,
9313
9313
  onRowSelectionChange: h ? void 0 : Nn,
9314
9314
  onColumnChanged: De,
9315
- onGetColumnsState: Re,
9315
+ onGetColumnsState: _e,
9316
9316
  onChangeFirstVisibleRowIndex: se,
9317
9317
  onGetFirstVisibleRowIndex: Mn,
9318
9318
  selectedRowKeys: h ? void 0 : sn,
@@ -9338,7 +9338,7 @@ function my(t, e) {
9338
9338
  h,
9339
9339
  Nn,
9340
9340
  De,
9341
- Re,
9341
+ _e,
9342
9342
  se,
9343
9343
  Mn,
9344
9344
  sn,
@@ -9472,7 +9472,7 @@ function my(t, e) {
9472
9472
  }
9473
9473
  ),
9474
9474
  p === "side" && /* @__PURE__ */ i(
9475
- uc,
9475
+ fc,
9476
9476
  {
9477
9477
  ...cr,
9478
9478
  onClose: hn,
@@ -9485,7 +9485,7 @@ function my(t, e) {
9485
9485
  selectedRowKeys: sn,
9486
9486
  totalRows: S,
9487
9487
  customMiddleComponent: Co && /* @__PURE__ */ i(
9488
- mc,
9488
+ pc,
9489
9489
  {
9490
9490
  onFilterSearchClick: () => X == null ? void 0 : X(!0)
9491
9491
  }
@@ -9495,7 +9495,7 @@ function my(t, e) {
9495
9495
  /* @__PURE__ */ i("div", { ref: O, style: Pt, children: z || ve ? /* @__PURE__ */ i(ot, {}) : qe })
9496
9496
  ] });
9497
9497
  }
9498
- const Bs = Bt(my), Zi = (t, e = "14px -apple-system") => {
9498
+ const Bs = jt(my), Zi = (t, e = "14px -apple-system") => {
9499
9499
  const r = document.createElement("canvas").getContext("2d");
9500
9500
  r.font = e;
9501
9501
  const o = r.measureText(t);
@@ -9617,7 +9617,7 @@ function mr(t, e) {
9617
9617
  }
9618
9618
  return t !== t && e !== e;
9619
9619
  }
9620
- const hc = Bt(
9620
+ const gc = jt(
9621
9621
  (t, e) => {
9622
9622
  var me;
9623
9623
  const {
@@ -9684,7 +9684,7 @@ const hc = Bt(
9684
9684
  ).length;
9685
9685
  return l ? null : o === void 0 ? /* @__PURE__ */ i(ot, { className: "pb-4" }) : /* @__PURE__ */ B(Ze, { align: "bottom", className: "pb-4", children: [
9686
9686
  /* @__PURE__ */ i(Le, { span: S ? 8 : 12, children: /* @__PURE__ */ i(
9687
- rd,
9687
+ od,
9688
9688
  {
9689
9689
  total: o,
9690
9690
  pageSize: V.current === 0 ? o : V.current,
@@ -9734,7 +9734,7 @@ const hc = Bt(
9734
9734
  return T === null || !Z || ((me = Z == null ? void 0 : Z.columns) == null ? void 0 : me.length) === 0 ? /* @__PURE__ */ i(ot, { style: { padding: "2rem" } }) : /* @__PURE__ */ B(zn, { children: [
9735
9735
  q,
9736
9736
  /* @__PURE__ */ i(
9737
- tu,
9737
+ nu,
9738
9738
  {
9739
9739
  ref: I,
9740
9740
  height: se,
@@ -9746,7 +9746,7 @@ const hc = Bt(
9746
9746
  if (g[W.id])
9747
9747
  return { color: g[W.id] };
9748
9748
  },
9749
- onRowStatus: uf(h) ? (W) => {
9749
+ onRowStatus: ff(h) ? (W) => {
9750
9750
  if (h[W.id])
9751
9751
  return /* @__PURE__ */ i(tr, { color: h[W.id] });
9752
9752
  } : void 0,
@@ -9767,10 +9767,10 @@ const hc = Bt(
9767
9767
  X
9768
9768
  ] });
9769
9769
  }
9770
- ), Nr = at(hc);
9770
+ ), Nr = at(gc);
9771
9771
  Nr.displayName = "Tree";
9772
- hc.displayName = "UnmemoizedTree";
9773
- const gc = (t) => {
9772
+ gc.displayName = "UnmemoizedTree";
9773
+ const yc = (t) => {
9774
9774
  const {
9775
9775
  model: e,
9776
9776
  setSearchTreeNameSearch: n,
@@ -10057,7 +10057,7 @@ function yy(t, e) {
10057
10057
  statusForResults: Ye,
10058
10058
  totalItems: je,
10059
10059
  getAllIds: Ve
10060
- } = gc({
10060
+ } = yc({
10061
10061
  model: x,
10062
10062
  setSearchTreeNameSearch: ae,
10063
10063
  setSelectedRowItems: fe,
@@ -10145,7 +10145,7 @@ function yy(t, e) {
10145
10145
  }));
10146
10146
  },
10147
10147
  [x, u, V, w]
10148
- ), Re = A(
10148
+ ), _e = A(
10149
10149
  async (Ke) => {
10150
10150
  const { id: dt } = Ke;
10151
10151
  if (w != null && w.isExpandable) {
@@ -10210,7 +10210,7 @@ function yy(t, e) {
10210
10210
  results: Oe,
10211
10211
  onRequestPageChange: We,
10212
10212
  loading: Ce,
10213
- onRowClicked: Re,
10213
+ onRowClicked: _e,
10214
10214
  scrollY: c || ve,
10215
10215
  colorsForResults: $e,
10216
10216
  statusForResults: Ye,
@@ -10236,7 +10236,7 @@ function yy(t, e) {
10236
10236
  Y,
10237
10237
  Me,
10238
10238
  Qe,
10239
- Re,
10239
+ _e,
10240
10240
  ne,
10241
10241
  ge,
10242
10242
  u,
@@ -10258,7 +10258,7 @@ function yy(t, e) {
10258
10258
  ]), gt = D || pe;
10259
10259
  return gt ? (console.error(gt), /* @__PURE__ */ i(Dt, { className: "mt-10", message: gt, type: "error", banner: !0 })) : /* @__PURE__ */ i("div", { style: d ? {} : { display: "none" }, children: m ? /* @__PURE__ */ i(ot, {}) : Ie() });
10260
10260
  }
10261
- const yc = Bt(yy), vy = Rt, by = (t) => {
10261
+ const vc = jt(yy), vy = Rt, by = (t) => {
10262
10262
  const {
10263
10263
  treeViewFetching: e,
10264
10264
  treeOoui: n,
@@ -10305,7 +10305,7 @@ const yc = Bt(yy), vy = Rt, by = (t) => {
10305
10305
  setOrder: X,
10306
10306
  limit: Z,
10307
10307
  setLimit: se
10308
- } = fc({ useLocalState: !s }), { treeMaxLimit: me } = en(), { setCurrentSavedSearch: W } = Lt(), ae = y ? 0 : Math.min(Z, me), [J, Q] = F(!0), [ie, Y] = F(), [de, ue] = F([]), [fe, ce] = F(!1), te = a || V, Te = K(te), Ce = K(N), Ae = K(C), pe = K(), ge = K([]), Me = K(!1), [Qe, Oe] = Ee(
10308
+ } = mc({ useLocalState: !s }), { treeMaxLimit: me } = en(), { setCurrentSavedSearch: W } = Lt(), ae = y ? 0 : Math.min(Z, me), [J, Q] = F(!0), [ie, Y] = F(), [de, ue] = F([]), [fe, ce] = F(!1), te = a || V, Te = K(te), Ce = K(N), Ae = K(C), pe = K(), ge = K([]), Me = K(!1), [Qe, Oe] = Re(
10309
10309
  j.getHandler().parseConditions
10310
10310
  ), We = A((Se) => {
10311
10311
  ge.current = ge.current.map((qe) => {
@@ -10333,11 +10333,11 @@ const yc = Bt(yy), vy = Rt, by = (t) => {
10333
10333
  updateAttributes: p,
10334
10334
  results: G,
10335
10335
  autoRefresh: v
10336
- }), { showErrorNotification: Fe } = xt(), [He, ne] = Ee(
10336
+ }), { showErrorNotification: Fe } = xt(), [He, ne] = Re(
10337
10337
  j.getHandler().searchCount
10338
- ), [ye, Re] = Ee(
10338
+ ), [ye, _e] = Re(
10339
10339
  j.getHandler().searchForTree
10340
- ), [De, ve] = Ee(
10340
+ ), [De, ve] = Re(
10341
10341
  j.getHandler().searchAllIds
10342
10342
  ), ke = ee(
10343
10343
  () => fn(N || [], l),
@@ -10508,7 +10508,7 @@ const yc = Bt(yy), vy = Rt, by = (t) => {
10508
10508
  le(() => {
10509
10509
  if (!e)
10510
10510
  return () => {
10511
- ne(), Re(), ve();
10511
+ ne(), _e(), ve();
10512
10512
  };
10513
10513
  }, [e]), le(() => () => {
10514
10514
  Oe();
@@ -10587,7 +10587,7 @@ const yc = Bt(yy), vy = Rt, by = (t) => {
10587
10587
  },
10588
10588
  [de, _]
10589
10589
  );
10590
- pc({
10590
+ hc({
10591
10591
  tableRef: c,
10592
10592
  autoRefresh: v
10593
10593
  });
@@ -10734,7 +10734,7 @@ const yc = Bt(yy), vy = Rt, by = (t) => {
10734
10734
  onSubmit: a
10735
10735
  }
10736
10736
  ) : /* @__PURE__ */ i(
10737
- uc,
10737
+ fc,
10738
10738
  {
10739
10739
  ...p,
10740
10740
  onClose: c,
@@ -10772,7 +10772,7 @@ const yc = Bt(yy), vy = Rt, by = (t) => {
10772
10772
  childField: E,
10773
10773
  autoRefresh: k
10774
10774
  }) => !t || !e ? null : /* @__PURE__ */ i(
10775
- nu,
10775
+ ru,
10776
10776
  {
10777
10777
  ref: S,
10778
10778
  strings: n,
@@ -10826,7 +10826,7 @@ const xy = at(js), Kt = (t) => {
10826
10826
  }) => {
10827
10827
  const r = K(), o = he(
10828
10828
  bn
10829
- ), { processAction: s } = o || {}, [a, c] = Ee(
10829
+ ), { processAction: s } = o || {}, [a, c] = Re(
10830
10830
  j.getHandler().treeButOpen
10831
10831
  ), { showErrorNotification: l } = xt();
10832
10832
  return le(() => () => {
@@ -10889,7 +10889,7 @@ function Fy(t, e) {
10889
10889
  formViewProps: r,
10890
10890
  treeViewProps: o,
10891
10891
  context: d
10892
- }), I = Sl({
10892
+ }), I = Tl({
10893
10893
  elementRef: b,
10894
10894
  offset: w != null && w.isExpandable ? Ty : Sy
10895
10895
  }), D = h !== void 0 ? h : I, E = ee(() => {
@@ -10908,7 +10908,7 @@ function Fy(t, e) {
10908
10908
  } = Es({
10909
10909
  treeOoui: E,
10910
10910
  parentContext: d,
10911
- columnStateKey: w ? Tl({
10911
+ columnStateKey: w ? Fl({
10912
10912
  treeViewId: w.view_id,
10913
10913
  model: n
10914
10914
  }) : void 0,
@@ -10985,7 +10985,7 @@ function Fy(t, e) {
10985
10985
  parentContext: d
10986
10986
  }), Fe = Kt((dt) => {
10987
10987
  P ? Ve(dt) : x(dt);
10988
- }), He = Kt(q), [ne, ye, Re] = Ds({
10988
+ }), He = Kt(q), [ne, ye, _e] = Ds({
10989
10989
  ooui: E,
10990
10990
  model: n,
10991
10991
  showEmptyValues: !0,
@@ -10998,7 +10998,7 @@ function Fy(t, e) {
10998
10998
  refreshResults: q,
10999
10999
  getFields: () => w == null ? void 0 : w.fields
11000
11000
  }));
11001
- const De = ee(() => Re ? /* @__PURE__ */ i(Os, { aggregates: ye, isLoading: ne }) : null, [ye, ne, Re]), ve = A(
11001
+ const De = ee(() => _e ? /* @__PURE__ */ i(Os, { aggregates: ye, isLoading: ne }) : null, [ye, ne, _e]), ve = A(
11002
11002
  (dt) => /* @__PURE__ */ i(tr, { color: dt, style: { marginLeft: 7 } }),
11003
11003
  []
11004
11004
  ), ke = ee(
@@ -11027,7 +11027,7 @@ function Fy(t, e) {
11027
11027
  }
11028
11028
  ),
11029
11029
  !P && !m && /* @__PURE__ */ i(
11030
- Ud,
11030
+ Wd,
11031
11031
  {
11032
11032
  total: Ft,
11033
11033
  totalRowsLoading: ie,
@@ -11041,7 +11041,7 @@ function Fy(t, e) {
11041
11041
  simpleSummary: Ie,
11042
11042
  showAllOptionInPageSizeOptions: p !== void 0,
11043
11043
  customMiddleComponent: gt && /* @__PURE__ */ i(
11044
- mc,
11044
+ pc,
11045
11045
  {
11046
11046
  onFilterSearchClick: () => Ne(!0)
11047
11047
  }
@@ -11084,7 +11084,7 @@ function Fy(t, e) {
11084
11084
  ) })
11085
11085
  ] });
11086
11086
  }
11087
- const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11087
+ const bc = jt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11088
11088
  const {
11089
11089
  visible: e,
11090
11090
  searchTreeRef: n,
@@ -11125,9 +11125,9 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11125
11125
  isActive: M
11126
11126
  } = he(Nt), { token: L } = Ay(), { t: G } = xe(), $ = Jt(
11127
11127
  Tt.FEATURE_SAVED_SEARCHES
11128
- ), [P] = Ee(
11128
+ ), [P] = Re(
11129
11129
  j.getHandler().searchAllIds
11130
- ), [H] = Ee(
11130
+ ), [H] = Re(
11131
11131
  j.getHandler().readEvalUiObjects
11132
11132
  ), z = A(async () => {
11133
11133
  if (!$ || !r)
@@ -11332,7 +11332,7 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11332
11332
  }
11333
11333
  ),
11334
11334
  y === "paginated" && /* @__PURE__ */ i(
11335
- vc,
11335
+ bc,
11336
11336
  {
11337
11337
  ref: n,
11338
11338
  rootTree: !0,
@@ -11347,7 +11347,7 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11347
11347
  }
11348
11348
  ),
11349
11349
  y === "legacy" && /* @__PURE__ */ i(
11350
- yc,
11350
+ vc,
11351
11351
  {
11352
11352
  ref: n,
11353
11353
  rootTree: !0,
@@ -11361,7 +11361,7 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11361
11361
  }
11362
11362
  )
11363
11363
  ] }) : null;
11364
- }, Nt = Xc(
11364
+ }, Nt = Qc(
11365
11365
  null
11366
11366
  ), Ry = (t) => {
11367
11367
  const {
@@ -11400,14 +11400,14 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11400
11400
  } = t, [M, L] = F(!1), [G, $] = F(!1), [P, H] = F(!1), [z, U] = F(!0), [q, X] = F(!0), [Z, se] = F([]), [me, W] = F(!1), [ae, J] = F(
11401
11401
  k || []
11402
11402
  ), [Q, ie] = F(!1), [Y, de] = F(!0), [ue, fe] = F(), ce = ee(() => !s || s.length === 0 ? (n == null ? void 0 : n.fields) || {} : s.reduce((ke, Ie) => ({ ...ke, ...Ie.fields || {} }), {}), [s, n]), [te, Te] = F(
11403
- pl(k || [], ce)
11403
+ hl(k || [], ce)
11404
11404
  ), [Ce, Ae] = F(0), [pe, ge] = F(void 0), [Me, Qe] = F(), [Oe, We] = F(Rn), [Ne, Xe] = F(
11405
11405
  T
11406
11406
  ), [$e, Ye] = F(
11407
11407
  D !== void 0 ? D : Rt
11408
11408
  ), [je, Ve] = F(r), [Fe, He] = F(
11409
11409
  O || 1
11410
- ), [ne, ye] = F(null), [Re, De] = F([]);
11410
+ ), [ne, ye] = F(null), [_e, De] = F([]);
11411
11411
  le(() => {
11412
11412
  p && p.length > 0 && !m && (g == null || g(0), f == null || f(p[0].id));
11413
11413
  }, [p]), le(() => {
@@ -11499,7 +11499,7 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11499
11499
  setCurrentPage: He,
11500
11500
  currentSavedSearch: ne,
11501
11501
  setCurrentSavedSearch: ye,
11502
- savedSearches: Re,
11502
+ savedSearches: _e,
11503
11503
  setSavedSearches: De,
11504
11504
  permissions: N,
11505
11505
  permissionsLoading: R,
@@ -11627,7 +11627,7 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11627
11627
  viewData: d
11628
11628
  } = t, [f, u] = F(!1), [p, m] = F(), g = he(
11629
11629
  Nt
11630
- ), { setGraphIsLoading: h = void 0 } = g || {}, [y] = Ee(j.getHandler().getView);
11630
+ ), { setGraphIsLoading: h = void 0 } = g || {}, [y] = Re(j.getHandler().getView);
11631
11631
  Qt(e, () => ({
11632
11632
  refresh: () => {
11633
11633
  v();
@@ -11693,8 +11693,8 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11693
11693
  default:
11694
11694
  return /* @__PURE__ */ i(we, { children: `Graph ${p.type} not implemented` });
11695
11695
  }
11696
- }, Dn = Bt(Ey), Oy = (t) => {
11697
- const { model: e, domain: n = [], context: r = {}, view_id: o, manualIds: s } = t, [a, c] = F(!1), [l, d] = F(), [f, u] = F(), [p] = Ee(
11696
+ }, Dn = jt(Ey), Oy = (t) => {
11697
+ const { model: e, domain: n = [], context: r = {}, view_id: o, manualIds: s } = t, [a, c] = F(!1), [l, d] = F(), [f, u] = F(), [p] = Re(
11698
11698
  j.getHandler().readForView
11699
11699
  ), m = A(async () => {
11700
11700
  c(!0), d(void 0), s && n.push(["id", "in", s]);
@@ -11744,7 +11744,7 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11744
11744
  case "indicator": {
11745
11745
  const { value: g, total: h, percent: y, icon: v, color: b, suffix: x } = p;
11746
11746
  return /* @__PURE__ */ i(
11747
- cl,
11747
+ dl,
11748
11748
  {
11749
11749
  value: g,
11750
11750
  totalValue: h,
@@ -11752,7 +11752,7 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11752
11752
  color: b,
11753
11753
  icon: v,
11754
11754
  suffix: x,
11755
- showPercent: ul(y),
11755
+ showPercent: fl(y),
11756
11756
  fixedHeight: c
11757
11757
  }
11758
11758
  );
@@ -11762,7 +11762,7 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11762
11762
  case "pie": {
11763
11763
  const g = p;
11764
11764
  return /* @__PURE__ */ i(
11765
- fl,
11765
+ ml,
11766
11766
  {
11767
11767
  type: g.type,
11768
11768
  data: g.data,
@@ -11777,7 +11777,7 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11777
11777
  default:
11778
11778
  return /* @__PURE__ */ i(we, { children: `Graph ${p.type} not implemented` });
11779
11779
  }
11780
- }, Us = Bt(Dy), { useToken: ky } = rt, { Text: na } = cn, bc = (t) => {
11780
+ }, Us = jt(Dy), { useToken: ky } = rt, { Text: na } = cn, wc = (t) => {
11781
11781
  const {
11782
11782
  title: e,
11783
11783
  children: n,
@@ -11856,9 +11856,9 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11856
11856
  }
11857
11857
  );
11858
11858
  }, Ny = (t) => {
11859
- const [e, n] = Ee(
11859
+ const [e, n] = Re(
11860
11860
  j.getHandler().execute
11861
- ), [r, o] = Ee(
11861
+ ), [r, o] = Re(
11862
11862
  j.getHandler().search
11863
11863
  );
11864
11864
  le(() => () => {
@@ -11944,36 +11944,45 @@ const vc = Bt(Fy), { useToken: Ay } = rt, Rn = "legacy", Iy = (t) => {
11944
11944
  parseReferenceString: s,
11945
11945
  cancelRequest: c
11946
11946
  };
11947
- }, wc = (t) => {
11948
- const { model: e, view_id: n, fixedHeight: r, autoRefresh: o } = t, [s, a] = F(), c = K(null), l = K(null), { isActive: d } = Lt(), f = ar();
11949
- le(() => {
11950
- u();
11951
- }, [e]), le(() => (l.current && (clearInterval(l.current), l.current = null), o && s && d !== !1 && f && (l.current = setInterval(async () => {
11952
- var p;
11953
- await u(), await new Promise((m) => setTimeout(m, 200)), (p = c.current) == null || p.fetchValues();
11954
- }, o)), () => {
11955
- l.current && (clearInterval(l.current), l.current = null);
11956
- }), [o, s, d, f]);
11957
- async function u() {
11958
- const p = await j.getHandler().search({
11947
+ }, xc = (t) => {
11948
+ const { model: e, view_id: n, fixedHeight: r, autoRefresh: o, actionDomain: s } = t, [a, c] = F(), l = K(null), d = K(null), { isActive: f } = Lt(), u = ar(), p = Bt(() => rl(s || []), [s]), [m, g] = Re(
11949
+ j.getHandler().search
11950
+ );
11951
+ le(() => () => {
11952
+ g();
11953
+ }, []);
11954
+ const h = A(async () => {
11955
+ const y = typeof (p == null ? void 0 : p.id) == "number" ? p.id : void 0;
11956
+ if (y) {
11957
+ c(y);
11958
+ return;
11959
+ }
11960
+ const v = await m({
11959
11961
  params: [],
11960
11962
  model: e,
11961
11963
  limit: 1
11962
11964
  });
11963
- p.length > 0 && a(p[0].id);
11964
- }
11965
- return /* @__PURE__ */ i(
11965
+ v.length > 0 && c(v[0].id);
11966
+ }, [p, e, m]);
11967
+ return le(() => {
11968
+ h();
11969
+ }, []), Be(() => (d.current && (clearInterval(d.current), d.current = null), o && a && f !== !1 && u && (d.current = setInterval(async () => {
11970
+ var y;
11971
+ await h(), await new Promise((v) => setTimeout(v, 200)), (y = l.current) == null || y.fetchValues();
11972
+ }, o)), () => {
11973
+ d.current && (clearInterval(d.current), d.current = null);
11974
+ }), [o, a, f, u, p]), /* @__PURE__ */ i(
11966
11975
  "div",
11967
11976
  {
11968
11977
  style: { padding: "0.5rem", overflowY: "scroll", height: r },
11969
11978
  children: /* @__PURE__ */ i(
11970
11979
  lr,
11971
11980
  {
11972
- ref: c,
11981
+ ref: l,
11973
11982
  ...t,
11974
11983
  model: e,
11975
11984
  view_id: n,
11976
- id: s,
11985
+ id: a,
11977
11986
  readOnly: !0
11978
11987
  }
11979
11988
  )
@@ -12097,7 +12106,7 @@ function My(t) {
12097
12106
  }
12098
12107
  ),
12099
12108
  q === "paginated" && /* @__PURE__ */ i(
12100
- vc,
12109
+ bc,
12101
12110
  {
12102
12111
  hideHeaders: !0,
12103
12112
  rootTree: !1,
@@ -12142,12 +12151,12 @@ function My(t) {
12142
12151
  ] }));
12143
12152
  return P ? (console.error(P), /* @__PURE__ */ i(Dt, { className: "mt-10", message: P, type: "error", banner: !0 })) : u ? /* @__PURE__ */ i(ot, { style: { padding: "2rem" } }) : ue();
12144
12153
  }
12145
- const xc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12154
+ const Cc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12146
12155
  const { ooui: e } = t, { refreshCounter: n } = Ar(), r = e.actionId !== void 0, o = e.actionField !== void 0;
12147
12156
  return /* @__PURE__ */ i(Ge, { ooui: e, children: r || o ? /* @__PURE__ */ i(zn, { children: /* @__PURE__ */ i(Hy, { ooui: e }, n) }) : /* @__PURE__ */ i(Ly, { ooui: e }, n) });
12148
12157
  }, Ly = (t) => {
12149
12158
  var S;
12150
- const { token: e } = Py(), { ooui: n, value: r } = t, { locale: o } = xe(), { getContext: s } = Ar(), [a, c] = F(n.icon), [l, d] = F(n.color), [f, u] = F(null), [p, m] = F(!1), [g, h] = Ee(
12159
+ const { token: e } = Py(), { ooui: n, value: r } = t, { locale: o } = xe(), { getContext: s } = Ar(), [a, c] = F(n.icon), [l, d] = F(n.color), [f, u] = F(null), [p, m] = F(!1), [g, h] = Re(
12151
12160
  j.getHandler().parseCondition
12152
12161
  ), { fetchReferenceValues: y } = Ny({
12153
12162
  context: s == null ? void 0 : s()
@@ -12248,7 +12257,7 @@ const xc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12248
12257
  console.log("Error formatting number with locale", o), console.error(I);
12249
12258
  }
12250
12259
  const _ = /* @__PURE__ */ i(
12251
- od,
12260
+ sd,
12252
12261
  {
12253
12262
  title: x,
12254
12263
  prefix: C && /* @__PURE__ */ i(C, {}),
@@ -12264,10 +12273,10 @@ const xc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12264
12273
  if (Be(() => {
12265
12274
  !e || !a || u();
12266
12275
  }, [e, s, a]), f && f.message !== "active_id_not_found")
12267
- return /* @__PURE__ */ i(ll, { error: f });
12276
+ return /* @__PURE__ */ i(cl, { error: f });
12268
12277
  const { id: m, initialView: g, description: h } = c || {};
12269
12278
  return /* @__PURE__ */ B(
12270
- bc,
12279
+ wc,
12271
12280
  {
12272
12281
  id: m,
12273
12282
  parms: {},
@@ -12345,7 +12354,7 @@ const xc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12345
12354
  fixedHeight: e
12346
12355
  }
12347
12356
  ) : r.type === "form" ? /* @__PURE__ */ i(
12348
- wc,
12357
+ xc,
12349
12358
  {
12350
12359
  model: s,
12351
12360
  actionDomain: a,
@@ -12354,7 +12363,7 @@ const xc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12354
12363
  },
12355
12364
  r.id
12356
12365
  ) : r.type === "tree" ? /* @__PURE__ */ i(
12357
- xc,
12366
+ Cc,
12358
12367
  {
12359
12368
  model: s,
12360
12369
  domain: a,
@@ -12366,7 +12375,7 @@ const xc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12366
12375
  },
12367
12376
  r.id
12368
12377
  ) : /* @__PURE__ */ i(
12369
- ll,
12378
+ cl,
12370
12379
  {
12371
12380
  error: new Error("Unsupported view type: " + r.type)
12372
12381
  }
@@ -12380,9 +12389,9 @@ const xc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12380
12389
  const { ooui: e } = t;
12381
12390
  return /* @__PURE__ */ i(Ge, { type: "array", ...t, children: /* @__PURE__ */ i(Wy, { ooui: e }) });
12382
12391
  }, Wy = (t) => {
12383
- const { value: e, ooui: n, onChange: r } = t, { items: o = [] } = e || {}, s = o.filter((E) => E.operation !== "pendingRemove").map((E) => E.id), [a, c] = F([]), [l, d] = F(), [f, u] = F(!1), { relation: p, context: m, readOnly: g, field: h } = n, y = he(tt), { getContext: v } = y || {}, [b, x] = Ee(
12392
+ const { value: e, ooui: n, onChange: r } = t, { items: o = [] } = e || {}, s = o.filter((E) => E.operation !== "pendingRemove").map((E) => E.id), [a, c] = F([]), [l, d] = F(), [f, u] = F(!1), { relation: p, context: m, readOnly: g, field: h } = n, y = he(tt), { getContext: v } = y || {}, [b, x] = Re(
12384
12393
  j.getHandler().evalDomain
12385
- ), [C, w] = Ee(
12394
+ ), [C, w] = Re(
12386
12395
  j.getHandler().search
12387
12396
  );
12388
12397
  le(() => () => {
@@ -12439,7 +12448,7 @@ const xc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12439
12448
  }, D = (E) => {
12440
12449
  const { label: k, closable: O, onClose: T } = E, N = (M) => {
12441
12450
  M.preventDefault(), M.stopPropagation();
12442
- }, R = Ir(k), V = R && rl(R);
12451
+ }, R = Ir(k), V = R && ol(R);
12443
12452
  return /* @__PURE__ */ i(
12444
12453
  Rs,
12445
12454
  {
@@ -12543,9 +12552,9 @@ const xc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12543
12552
  formContext: n,
12544
12553
  disabled: r
12545
12554
  }) => {
12546
- const [o, s] = F(!1), [a, c] = Ee(
12555
+ const [o, s] = F(!1), [a, c] = Re(
12547
12556
  j.getHandler().getActionData
12548
- ), [l, d] = Ee(
12557
+ ), [l, d] = Re(
12549
12558
  j.getHandler().execute
12550
12559
  );
12551
12560
  le(() => () => {
@@ -12622,7 +12631,7 @@ const xc = at(My), { useToken: Py } = rt, $y = 3 * 1e3, Vy = (t) => {
12622
12631
  bordered: n.border !== !1
12623
12632
  };
12624
12633
  return /* @__PURE__ */ B(it, { direction: "vertical", align: "center", children: [
12625
- /* @__PURE__ */ i(sd, { ...s }),
12634
+ /* @__PURE__ */ i(id, { ...s }),
12626
12635
  n.showValue && /* @__PURE__ */ i(cn.Text, { type: "secondary", children: o })
12627
12636
  ] });
12628
12637
  }, Kr = (t) => {
@@ -12667,7 +12676,7 @@ const Qy = (t) => {
12667
12676
  case "notebook":
12668
12677
  return Wv;
12669
12678
  case "group":
12670
- return Bc;
12679
+ return jc;
12671
12680
  case "label":
12672
12681
  return lo;
12673
12682
  case "char":
@@ -12677,13 +12686,13 @@ const Qy = (t) => {
12677
12686
  case "button":
12678
12687
  return ws;
12679
12688
  case "buttonGroup":
12680
- return $u;
12689
+ return Vu;
12681
12690
  case "selection":
12682
12691
  return qa;
12683
12692
  case "many2one":
12684
12693
  return yv;
12685
12694
  case "boolean":
12686
- return tf;
12695
+ return nf;
12687
12696
  case "integer":
12688
12697
  return wr;
12689
12698
  case "float":
@@ -12707,7 +12716,7 @@ const Qy = (t) => {
12707
12716
  case "binary":
12708
12717
  return fb;
12709
12718
  case "image":
12710
- return sf;
12719
+ return af;
12711
12720
  case "url":
12712
12721
  return wb;
12713
12722
  case "email":
@@ -12715,7 +12724,7 @@ const Qy = (t) => {
12715
12724
  case "float_time":
12716
12725
  return Hv;
12717
12726
  case "fiber_grid":
12718
- return lf;
12727
+ return cf;
12719
12728
  case "timeline":
12720
12729
  return Sf;
12721
12730
  case "indicator":
@@ -12762,7 +12771,7 @@ const Qy = (t) => {
12762
12771
  }
12763
12772
  }, Zy = (t) => {
12764
12773
  const { ooui: e } = t, { type: n } = e, r = Qy(n);
12765
- return r ? Qc(r, t) : null;
12774
+ return r ? Zc(r, t) : null;
12766
12775
  }, ev = ({
12767
12776
  item: t,
12768
12777
  responsiveBehaviour: e
@@ -12791,7 +12800,7 @@ const Qy = (t) => {
12791
12800
  row: t,
12792
12801
  numberOfColumns: e
12793
12802
  }) => t.map((n) => (n._mustExpand && (n.colspan = e), n)), rv = (t, e) => {
12794
- const n = t.map((r) => r instanceof nr && r.fieldForLabel || r instanceof fd ? "auto" : "1fr");
12803
+ const n = t.map((r) => r instanceof nr && r.fieldForLabel || r instanceof md ? "auto" : "1fr");
12795
12804
  if (n.length < e) {
12796
12805
  const r = e - n.length;
12797
12806
  for (let o = 0; o < r; o++)
@@ -12842,10 +12851,10 @@ const Qy = (t) => {
12842
12851
  minHeight: 0,
12843
12852
  minWidth: 0
12844
12853
  }, children: l });
12845
- }, Cc = Xt.createContext(null), iv = (t) => {
12854
+ }, Sc = Xt.createContext(null), iv = (t) => {
12846
12855
  const { children: e, setTitle: n } = t;
12847
12856
  return /* @__PURE__ */ i(
12848
- Cc.Provider,
12857
+ Sc.Provider,
12849
12858
  {
12850
12859
  value: {
12851
12860
  setTitle: n
@@ -12867,7 +12876,7 @@ const Qy = (t) => {
12867
12876
  fieldDefs: s,
12868
12877
  onAutorefreshableFieldsChange: a,
12869
12878
  isActive: c
12870
- } = t, l = K(null), [d, f] = F(!0), [u, p] = Ee(
12879
+ } = t, l = K(null), [d, f] = F(!0), [u, p] = Re(
12871
12880
  j.getHandler().readObjects
12872
12881
  ), m = ar();
12873
12882
  le(() => {
@@ -12981,7 +12990,7 @@ function fv(t, e) {
12981
12990
  forcedValues: S = {},
12982
12991
  parentWidth: I,
12983
12992
  onMustRefreshParent: D
12984
- } = t, { t: E } = xe(), [k, O] = F(!1), [T, N] = F(), [R, V] = F(), [M] = It.useForm(), [L, G] = F(), [$, P] = F(), H = he(Cc), [z, U] = F(), [q, X] = F(!1), [Z, se] = F(0), me = K(), W = K({}), ae = K({}), J = K(!1), Q = K(!1), ie = K(!1), de = (I !== void 0 ? I : z) < uv, ue = he(tt), { activeId: fe, getPlainValues: ce } = ue || {}, te = K(!1), Te = he(
12993
+ } = t, { t: E } = xe(), [k, O] = F(!1), [T, N] = F(), [R, V] = F(), [M] = It.useForm(), [L, G] = F(), [$, P] = F(), H = he(Sc), [z, U] = F(), [q, X] = F(!1), [Z, se] = F(0), me = K(), W = K({}), ae = K({}), J = K(!1), Q = K(!1), ie = K(!1), de = (I !== void 0 ? I : z) < uv, ue = he(tt), { activeId: fe, getPlainValues: ce } = ue || {}, te = K(!1), Te = he(
12985
12994
  Nt
12986
12995
  ), {
12987
12996
  setFormIsSaving: Ce = void 0,
@@ -13004,7 +13013,7 @@ function fv(t, e) {
13004
13013
  getFieldMessage: He,
13005
13014
  getFieldMessageType: ne,
13006
13015
  clearFieldMessage: ye,
13007
- clearAllFieldMessages: Re,
13016
+ clearAllFieldMessages: _e,
13008
13017
  setFieldMessagesArray: De
13009
13018
  } = dv();
13010
13019
  Qt(e, () => ({
@@ -13019,7 +13028,7 @@ function fv(t, e) {
13019
13028
  me.current = void 0, V(void 0), xn();
13020
13029
  }
13021
13030
  })), le(() => {
13022
- if (N(void 0), Re(), !(!n && !h)) {
13031
+ if (N(void 0), _e(), !(!n && !h)) {
13023
13032
  if (!C) {
13024
13033
  me.current = void 0, V(void 0);
13025
13034
  return;
@@ -13042,8 +13051,8 @@ function fv(t, e) {
13042
13051
  ), je(T);
13043
13052
  }
13044
13053
  }, [T]);
13045
- const ve = (oe, re, be, _e) => {
13046
- Ae == null || Ae(!1), Ce == null || Ce(!1), a == null || a(oe, re, be, _e), pe == null || pe(oe), te.current && (D == null || D());
13054
+ const ve = (oe, re, be, Ee) => {
13055
+ Ae == null || Ae(!1), Ce == null || Ce(!1), a == null || a(oe, re, be, Ee), pe == null || pe(oe), te.current && (D == null || D());
13047
13056
  }, ke = (oe) => {
13048
13057
  Ce == null || Ce(!1), f == null || f(oe);
13049
13058
  }, Ie = A(() => r || me.current, [r]), gt = r || me.current;
@@ -13052,9 +13061,9 @@ function fv(t, e) {
13052
13061
  }
13053
13062
  function Ke() {
13054
13063
  const oe = vt(), re = Ft(), be = {};
13055
- return Object.keys(oe).forEach((_e) => {
13056
- const Pe = oe[_e];
13057
- re[_e] && re[_e].type === "many2one" && Pe && Array.isArray(Pe) && Pe.length === 2 ? be[_e] = Pe[0] : re[_e] && (re[_e].type === "one2many" || re[_e].type === "many2many") && Pe && Pe.items ? be[_e] = Pe.items.filter((ht) => ht.operation !== "pendingRemove").map((ht) => ht.id) : be[_e] = Pe;
13064
+ return Object.keys(oe).forEach((Ee) => {
13065
+ const Pe = oe[Ee];
13066
+ re[Ee] && re[Ee].type === "many2one" && Pe && Array.isArray(Pe) && Pe.length === 2 ? be[Ee] = Pe[0] : re[Ee] && (re[Ee].type === "one2many" || re[Ee].type === "many2many") && Pe && Pe.items ? be[Ee] = Pe.items.filter((ht) => ht.operation !== "pendingRemove").map((ht) => ht.id) : be[Ee] = Pe;
13058
13067
  }), {
13059
13068
  ...tn(),
13060
13069
  ...be
@@ -13142,7 +13151,7 @@ function fv(t, e) {
13142
13151
  }
13143
13152
  }
13144
13153
  const xn = async () => {
13145
- N(void 0), Re(), ge == null || ge(!0);
13154
+ N(void 0), _e(), ge == null || ge(!0);
13146
13155
  let oe;
13147
13156
  try {
13148
13157
  h ? oe = { arch: h.arch, fields: h.fields } : oe = await Mn();
@@ -13156,16 +13165,16 @@ function fv(t, e) {
13156
13165
  }
13157
13166
  }, Yt = async (oe) => {
13158
13167
  se((ht) => ht + 1);
13159
- let re, be, _e, Pe;
13160
- ge == null || ge(!0), N(void 0), Re(), oe != null && oe.fields ? (be = oe.fields, _e = oe.arch) : (be = $, _e = L), g && (oe == null ? void 0 : oe.forceRefresh) !== !0 ? re = g : { values: re, defaultGetCalled: Pe } = await qe({
13168
+ let re, be, Ee, Pe;
13169
+ ge == null || ge(!0), N(void 0), _e(), oe != null && oe.fields ? (be = oe.fields, Ee = oe.arch) : (be = $, Ee = L), g && (oe == null ? void 0 : oe.forceRefresh) !== !0 ? re = g : { values: re, defaultGetCalled: Pe } = await qe({
13161
13170
  fields: be,
13162
- arch: _e
13163
- }), x && (re = { ...vf(x), ...re }), W.current = Hn(re, be), Se({
13171
+ arch: Ee
13172
+ }), x && (re = { ...rl(x), ...re }), W.current = Hn(re, be), Se({
13164
13173
  values: re,
13165
13174
  fields: be,
13166
13175
  reset: !0,
13167
13176
  isDefaultGet: Pe
13168
- }), $t({ fields: be, arch: _e, values: re }), ge == null || ge(!1), Ae == null || Ae(!1), Pe && X(!0);
13177
+ }), $t({ fields: be, arch: Ee, values: re }), ge == null || ge(!1), Ae == null || Ae(!1), Pe && X(!0);
13169
13178
  }, Cn = async () => new Promise(async (oe) => {
13170
13179
  Gt() ? sr({
13171
13180
  t: E,
@@ -13195,21 +13204,21 @@ function fv(t, e) {
13195
13204
  values: oe,
13196
13205
  fields: re,
13197
13206
  reset: be,
13198
- isDefaultGet: _e = !1
13207
+ isDefaultGet: Ee = !1
13199
13208
  }) => {
13200
- const ht = { ...be ? {} : M.getFieldsValue(!0), ...oe }, So = Hn(ht, re), zc = Object.keys(re).map((To) => ({
13209
+ const ht = { ...be ? {} : M.getFieldsValue(!0), ...oe }, So = Hn(ht, re), Kc = Object.keys(re).map((To) => ({
13201
13210
  name: To,
13202
13211
  touched: !1,
13203
13212
  value: So[To] !== void 0 ? So[To] : void 0
13204
13213
  }));
13205
- _e || (ae.current = So), M.setFields(zc);
13214
+ Ee || (ae.current = So), M.setFields(Kc);
13206
13215
  },
13207
13216
  [M]
13208
13217
  ), qe = async ({
13209
13218
  fields: oe,
13210
13219
  arch: re
13211
13220
  }) => {
13212
- let be = {}, _e = !1;
13221
+ let be = {}, Ee = !1;
13213
13222
  if (Ie()) {
13214
13223
  const Pe = R || Pt({
13215
13224
  arch: re,
@@ -13222,7 +13231,7 @@ function fv(t, e) {
13222
13231
  fields: av(oe, Pe == null ? void 0 : Pe.contextForFields),
13223
13232
  context: b
13224
13233
  }))[0], v)
13225
- return { values: be, defaultGetCalled: _e };
13234
+ return { values: be, defaultGetCalled: Ee };
13226
13235
  const ht = await j.getHandler().search({
13227
13236
  params: [
13228
13237
  ["res_model", "=", n],
@@ -13234,8 +13243,8 @@ function fv(t, e) {
13234
13243
  });
13235
13244
  Me == null || Me(ht);
13236
13245
  } else
13237
- Me == null || Me([]), be = await qt(oe), be.id && (me.current = be.id), _e = !0;
13238
- return { values: be, defaultGetCalled: _e };
13246
+ Me == null || Me([]), be = await qt(oe), be.id && (me.current = be.id), Ee = !0;
13247
+ return { values: be, defaultGetCalled: Ee };
13239
13248
  }, et = async (oe) => {
13240
13249
  const { callOnSubmitSucceed: re = !0 } = oe || {};
13241
13250
  if (Ie()) {
@@ -13255,7 +13264,7 @@ function fv(t, e) {
13255
13264
  }
13256
13265
  }), W.current = mt($);
13257
13266
  } else {
13258
- const be = mt($), _e = await j.getHandler().create({
13267
+ const be = mt($), Ee = await j.getHandler().create({
13259
13268
  model: n,
13260
13269
  values: { ...be, ...S },
13261
13270
  fields: $,
@@ -13264,7 +13273,7 @@ function fv(t, e) {
13264
13273
  ...R == null ? void 0 : R.context
13265
13274
  }
13266
13275
  });
13267
- me.current = _e, W.current = be;
13276
+ me.current = Ee, W.current = be;
13268
13277
  }
13269
13278
  y && await y([Ie()]), !v && re && (ve == null || ve(Ie(), vt(), yt()));
13270
13279
  }, st = async (oe) => {
@@ -13273,15 +13282,15 @@ function fv(t, e) {
13273
13282
  }, ut = async (oe) => {
13274
13283
  let re = !1;
13275
13284
  const { callOnSubmitSucceed: be = !0 } = oe || {};
13276
- if (Q.current = !0, N(void 0), Re(), ie.current && !Gt() && Ie() && be) {
13285
+ if (Q.current = !0, N(void 0), _e(), ie.current && !Gt() && Ie() && be) {
13277
13286
  Q.current = !1, Ae == null || Ae(!1), ve == null || ve(
13278
13287
  Ie(),
13279
13288
  vt(),
13280
13289
  yt(),
13281
13290
  ie.current
13282
13291
  ), ie.current = !1;
13283
- const _e = Ie();
13284
- return p && (me.current = void 0, Se({ values: {}, fields: $, reset: !0 })), { succeed: !0, id: _e };
13292
+ const Ee = Ie();
13293
+ return p && (me.current = void 0, Se({ values: {}, fields: $, reset: !0 })), { succeed: !0, id: Ee };
13285
13294
  }
13286
13295
  if (!Gt() && Ie() && be)
13287
13296
  return Q.current = !1, Ae == null || Ae(!1), Et == null || Et(), { succeed: !0, id: Ie() };
@@ -13298,8 +13307,8 @@ function fv(t, e) {
13298
13307
  title: E("savedRegisters"),
13299
13308
  duration: 3
13300
13309
  });
13301
- } catch (_e) {
13302
- Q.current = !1, O(!1), Ce == null || Ce(!1), ke == null || ke(_e), N(_e);
13310
+ } catch (Ee) {
13311
+ Q.current = !1, O(!1), Ce == null || Ce(!1), ke == null || ke(Ee), N(Ee);
13303
13312
  } finally {
13304
13313
  Q.current = !1, Ce == null || Ce(!1), O(!1);
13305
13314
  }
@@ -13309,12 +13318,12 @@ function fv(t, e) {
13309
13318
  fields: oe,
13310
13319
  arch: re,
13311
13320
  values: be,
13312
- operationInProgress: _e = !1
13321
+ operationInProgress: Ee = !1
13313
13322
  }) => {
13314
13323
  const Pe = new Ca(oe);
13315
13324
  return Pe.parse(re, {
13316
- readOnly: u || _e,
13317
- values: ff(
13325
+ readOnly: u || Ee,
13326
+ values: mf(
13318
13327
  {
13319
13328
  ...be,
13320
13329
  ...tn()
@@ -13329,14 +13338,14 @@ function fv(t, e) {
13329
13338
  fields: oe,
13330
13339
  arch: re,
13331
13340
  values: be,
13332
- operationInProgress: _e = !1
13341
+ operationInProgress: Ee = !1
13333
13342
  }) => {
13334
13343
  var ht;
13335
13344
  const Pe = Pt({
13336
13345
  arch: re,
13337
13346
  fields: oe,
13338
13347
  values: be,
13339
- operationInProgress: _e
13348
+ operationInProgress: Ee
13340
13349
  });
13341
13350
  V(Pe), Pe.string && Pe.string !== Qe && (Oe == null || Oe(Pe.string)), H && Pe.string && ((ht = H.setTitle) == null || ht.call(H, Pe.string));
13342
13351
  },
@@ -13351,7 +13360,7 @@ function fv(t, e) {
13351
13360
  target: mt($),
13352
13361
  fields: $
13353
13362
  }), be = Object.keys(re);
13354
- if (be.length !== 0 && !(gf({
13363
+ if (be.length !== 0 && !(yf({
13355
13364
  changedFields: be,
13356
13365
  formOoui: R,
13357
13366
  types: [
@@ -13366,12 +13375,12 @@ function fv(t, e) {
13366
13375
  "many2one"
13367
13376
  ]
13368
13377
  }) && oe !== !0)) {
13369
- const _e = Hn(M.getFieldsValue(!0), $);
13370
- ae.current = _e, d == null || d(_e), Ae == null || Ae(!0), Object.keys(_e).forEach((Pe) => {
13378
+ const Ee = Hn(M.getFieldsValue(!0), $);
13379
+ ae.current = Ee, d == null || d(Ee), Ae == null || Ae(!0), Object.keys(Ee).forEach((Pe) => {
13371
13380
  ye(Pe);
13372
13381
  }), cr(be);
13373
13382
  }
13374
- }, zt = Kd(pn, 100), cr = async (oe) => {
13383
+ }, zt = Jd(pn, 100), cr = async (oe) => {
13375
13384
  try {
13376
13385
  for (let re = 0; re < oe.length; re += 1) {
13377
13386
  const be = oe[re];
@@ -13400,18 +13409,18 @@ function fv(t, e) {
13400
13409
  },
13401
13410
  parentValues: ce == null ? void 0 : ce(),
13402
13411
  onChangeFieldActionArgs: re.args
13403
- }), _e = await j.getHandler().executeOnChange({
13412
+ }), Ee = await j.getHandler().executeOnChange({
13404
13413
  model: n,
13405
13414
  action: re.method,
13406
13415
  ids: Ie() ? [Ie()] : [],
13407
13416
  payload: be,
13408
13417
  fields: $
13409
13418
  });
13410
- if (_e.value) {
13419
+ if (Ee.value) {
13411
13420
  const Pe = {
13412
13421
  ...mt($),
13413
- ..._e.value
13414
- }, ht = mf({
13422
+ ...Ee.value
13423
+ }, ht = pf({
13415
13424
  values: Pe,
13416
13425
  fields: $
13417
13426
  });
@@ -13425,15 +13434,15 @@ function fv(t, e) {
13425
13434
  reset: !1
13426
13435
  });
13427
13436
  }
13428
- if (_e.warning && _e.warning.title && _e.warning.message && !J.current) {
13429
- const { title: Pe, message: ht } = _e.warning;
13437
+ if (Ee.warning && Ee.warning.title && Ee.warning.message && !J.current) {
13438
+ const { title: Pe, message: ht } = Ee.warning;
13430
13439
  De([
13431
13440
  {
13432
13441
  field: oe,
13433
13442
  message: ht,
13434
13443
  type: "warning"
13435
13444
  }
13436
- ]), (_e.warning.popup === !0 || _e.warning.popup === void 0) && (J.current = !0, je({
13445
+ ]), (Ee.warning.popup === !0 || Ee.warning.popup === void 0) && (J.current = !0, je({
13437
13446
  type: "warning",
13438
13447
  title: Pe,
13439
13448
  body: ht,
@@ -13442,9 +13451,9 @@ function fv(t, e) {
13442
13451
  }
13443
13452
  }));
13444
13453
  }
13445
- if (_e.domain && Object.keys(_e.domain).length > 0) {
13446
- const Pe = yf({
13447
- fieldsDomain: _e.domain,
13454
+ if (Ee.domain && Object.keys(Ee.domain).length > 0) {
13455
+ const Pe = vf({
13456
+ fieldsDomain: Ee.domain,
13448
13457
  fields: $
13449
13458
  });
13450
13459
  $t({
@@ -13475,14 +13484,14 @@ function fv(t, e) {
13475
13484
  else if (be.type && be.type === Nf)
13476
13485
  Ye == null || Ye(be);
13477
13486
  else if (be.type) {
13478
- let _e = {};
13479
- be.context && (_e = vn({
13487
+ let Ee = {};
13488
+ be.context && (Ee = vn({
13480
13489
  context: be.context,
13481
13490
  fields: $,
13482
13491
  values: vt()
13483
13492
  })), await nt({
13484
13493
  actionData: be,
13485
- context: { ...re, ..._e }
13494
+ context: { ...re, ...Ee }
13486
13495
  });
13487
13496
  } else
13488
13497
  await Yt({ forceRefresh: !0 });
@@ -13578,17 +13587,17 @@ function fv(t, e) {
13578
13587
  });
13579
13588
  return;
13580
13589
  }
13581
- let _e = !1;
13590
+ let Ee = !1;
13582
13591
  try {
13583
- !u && (Gt() || Ie() === void 0) && (_e = !0, lt(!0), m === "2many" ? (await et({ callOnSubmitSucceed: !1 }), ie.current = !0) : await ut({ callOnSubmitSucceed: !1 }));
13592
+ !u && (Gt() || Ie() === void 0) && (Ee = !0, lt(!0), m === "2many" ? (await et({ callOnSubmitSucceed: !1 }), ie.current = !0) : await ut({ callOnSubmitSucceed: !1 }));
13584
13593
  const Pe = ie.current ? sn() : {}, ht = { ...be, ...Pe };
13585
- oe === "object" ? await xo({ action: re, context: ht }) : oe === "workflow" ? await Co({ action: re }) : oe === "action" && await Ue({ action: re, context: ht }), _e && lt(!1);
13594
+ oe === "object" ? await xo({ action: re, context: ht }) : oe === "workflow" ? await Co({ action: re }) : oe === "action" && await Ue({ action: re, context: ht }), Ee && lt(!1);
13586
13595
  } catch (Pe) {
13587
- _e && lt(!1), je(Pe);
13596
+ Ee && lt(!1), je(Pe);
13588
13597
  }
13589
13598
  }
13590
13599
  const gn = () => !R && !T ? /* @__PURE__ */ i(ot, {}) : !n && !h || !C ? null : /* @__PURE__ */ i(we, { children: /* @__PURE__ */ i(
13591
- Au,
13600
+ Iu,
13592
13601
  {
13593
13602
  getValues: vt,
13594
13603
  getPlainValues: Ke,
@@ -13611,7 +13620,7 @@ function fv(t, e) {
13611
13620
  getFieldMessage: He,
13612
13621
  getFieldMessageType: ne,
13613
13622
  clearFieldMessage: ye,
13614
- clearAllFieldMessages: Re,
13623
+ clearAllFieldMessages: _e,
13615
13624
  refreshCounter: Z,
13616
13625
  children: /* @__PURE__ */ i(
13617
13626
  It,
@@ -13675,7 +13684,7 @@ function fv(t, e) {
13675
13684
  }
13676
13685
  ) : null;
13677
13686
  }
13678
- const lr = Bt(fv), Sc = (t) => {
13687
+ const lr = jt(fv), Tc = (t) => {
13679
13688
  const { visible: e, initialName: n, onSave: r, onCancel: o } = t, { t: s } = xe(), [a, c] = F(n), [l, d] = F(!1);
13680
13689
  le(() => {
13681
13690
  c(n);
@@ -13735,13 +13744,13 @@ const lr = Bt(fv), Sc = (t) => {
13735
13744
  defaultName: r = "",
13736
13745
  onFavouriteAdded: o,
13737
13746
  onFavouriteRemoved: s
13738
- } = t, { t: a } = xe(), [c, l] = F(!1), [d] = Ee(
13747
+ } = t, { t: a } = xe(), [c, l] = F(!1), [d] = Re(
13739
13748
  j.getHandler().removeFavourite
13740
- ), [f] = Ee(
13749
+ ), [f] = Re(
13741
13750
  j.getHandler().addFavourite
13742
- ), [u] = Ee(
13751
+ ), [u] = Re(
13743
13752
  j.getHandler().isShortcutFavorite
13744
- ), [p] = Ee(
13753
+ ), [p] = Re(
13745
13754
  j.getHandler().update
13746
13755
  ), m = A(() => {
13747
13756
  e && n !== void 0 ? rn({
@@ -13861,7 +13870,7 @@ const lr = Bt(fv), Sc = (t) => {
13861
13870
  ze,
13862
13871
  {
13863
13872
  type: m ? "primary" : "default",
13864
- icon: m ? /* @__PURE__ */ i(bd, { style: { color: "white" } }) : /* @__PURE__ */ i(wd, {}),
13873
+ icon: m ? /* @__PURE__ */ i(wd, { style: { color: "white" } }) : /* @__PURE__ */ i(xd, {}),
13865
13874
  style: { width: 30 },
13866
13875
  onClick: S
13867
13876
  }
@@ -13897,7 +13906,7 @@ const lr = Bt(fv), Sc = (t) => {
13897
13906
  }
13898
13907
  ),
13899
13908
  /* @__PURE__ */ i(
13900
- Sc,
13909
+ Tc,
13901
13910
  {
13902
13911
  visible: _,
13903
13912
  initialName: E,
@@ -13952,7 +13961,7 @@ const lr = Bt(fv), Sc = (t) => {
13952
13961
  }
13953
13962
  _(f);
13954
13963
  }, [f, S, _]), E = ee(
13955
- () => w ? Bs : yc,
13964
+ () => w ? Bs : vc,
13956
13965
  [w]
13957
13966
  ), k = A(() => {
13958
13967
  d(!0);
@@ -14031,7 +14040,7 @@ const lr = Bt(fv), Sc = (t) => {
14031
14040
  )
14032
14041
  ] });
14033
14042
  }, pv = () => {
14034
- const [t, e] = Ee(
14043
+ const [t, e] = Re(
14035
14044
  j.getHandler().checkPermission
14036
14045
  );
14037
14046
  return le(() => () => {
@@ -14086,7 +14095,7 @@ const lr = Bt(fv), Sc = (t) => {
14086
14095
  }),
14087
14096
  [r, s, c]
14088
14097
  );
14089
- }, { defaultAlgorithm: hv, defaultSeed: gv } = rt, Tc = hv(gv), yv = (t) => {
14098
+ }, { defaultAlgorithm: hv, defaultSeed: gv } = rt, Fc = hv(gv), yv = (t) => {
14090
14099
  const { ooui: e } = t, { required: n } = e;
14091
14100
  return /* @__PURE__ */ i(Ge, { required: n, type: "array", validator: async (o, s) => {
14092
14101
  if (!s)
@@ -14095,8 +14104,8 @@ const lr = Bt(fv), Sc = (t) => {
14095
14104
  throw new Error();
14096
14105
  if (Array.isArray(s) && !s[0])
14097
14106
  throw new Error();
14098
- }, ...t, children: /* @__PURE__ */ i(Fc, { ooui: e }) });
14099
- }, Fc = (t) => {
14107
+ }, ...t, children: /* @__PURE__ */ i(Ac, { ooui: e }) });
14108
+ }, Ac = (t) => {
14100
14109
  const { value: e, onChange: n, ooui: r } = t, {
14101
14110
  required: o,
14102
14111
  relation: s,
@@ -14104,7 +14113,7 @@ const lr = Bt(fv), Sc = (t) => {
14104
14113
  context: c,
14105
14114
  id: l,
14106
14115
  domain: d
14107
- } = r, f = o && !a ? { backgroundColor: Tc.colorPrimaryBg } : void 0, [u, p] = F(!1), [m, g] = F(!1), [h, y] = F(!1), [v, b] = F(), x = K(!1), [C, w] = F(""), _ = K(), S = he(tt), {
14116
+ } = r, f = o && !a ? { backgroundColor: Fc.colorPrimaryBg } : void 0, [u, p] = F(!1), [m, g] = F(!1), [h, y] = F(!1), [v, b] = F(), x = K(!1), [C, w] = F(""), _ = K(), S = he(tt), {
14108
14117
  domain: I,
14109
14118
  getFields: D,
14110
14119
  getContext: E,
@@ -14291,7 +14300,7 @@ const lr = Bt(fv), Sc = (t) => {
14291
14300
  ] });
14292
14301
  }, vv = _t(pt)`
14293
14302
  .ant-input {
14294
- background-color: ${Tc.colorPrimaryBg};
14303
+ background-color: ${Fc.colorPrimaryBg};
14295
14304
  }
14296
14305
  `, bv = ({
14297
14306
  title: t,
@@ -14334,7 +14343,7 @@ const lr = Bt(fv), Sc = (t) => {
14334
14343
  children: e
14335
14344
  }
14336
14345
  );
14337
- }, Ac = (t) => {
14346
+ }, Ic = (t) => {
14338
14347
  const e = document.createElement("div");
14339
14348
  document.body.appendChild(e);
14340
14349
  const n = ka(e);
@@ -14357,11 +14366,11 @@ const lr = Bt(fv), Sc = (t) => {
14357
14366
  n.unmount(), e.remove();
14358
14367
  }
14359
14368
  };
14360
- }, Ic = ({
14369
+ }, Rc = ({
14361
14370
  t,
14362
14371
  onOk: e
14363
14372
  }) => {
14364
- Ac({
14373
+ Ic({
14365
14374
  title: t("removeItems"),
14366
14375
  icon: /* @__PURE__ */ i(eo, {}),
14367
14376
  centered: !0,
@@ -14370,11 +14379,11 @@ const lr = Bt(fv), Sc = (t) => {
14370
14379
  cancelText: t("cancel"),
14371
14380
  onOk: e
14372
14381
  });
14373
- }, Rc = ({
14382
+ }, _c = ({
14374
14383
  t,
14375
14384
  onOk: e
14376
14385
  }) => {
14377
- Ac({
14386
+ Ic({
14378
14387
  title: t("unlinkItems"),
14379
14388
  icon: /* @__PURE__ */ i(eo, {}),
14380
14389
  centered: !0,
@@ -14383,7 +14392,7 @@ const lr = Bt(fv), Sc = (t) => {
14383
14392
  onOk: e,
14384
14393
  cancelText: t("cancel")
14385
14394
  });
14386
- }, _c = ({
14395
+ }, Ec = ({
14387
14396
  mustDisableButtons: t = !1,
14388
14397
  formRef: e,
14389
14398
  onRefreshParentValues: n,
@@ -14394,7 +14403,7 @@ const lr = Bt(fv), Sc = (t) => {
14394
14403
  bn
14395
14404
  ), c = he(
14396
14405
  Ut
14397
- ), { processAction: l } = a || {}, { openRelate: d } = c || {}, [f, u] = F(null), [p, m] = F(!1), [g] = Ee(
14406
+ ), { processAction: l } = a || {}, { openRelate: d } = c || {}, [f, u] = F(null), [p, m] = F(!1), [g] = Re(
14398
14407
  j.getHandler().getToolbar
14399
14408
  ), h = o || f, y = A(async () => {
14400
14409
  var S;
@@ -14583,7 +14592,7 @@ function Cv(t) {
14583
14592
  w == null || w();
14584
14593
  },
14585
14594
  context: a === "tree" ? x : (Z = C == null ? void 0 : C.current) == null ? void 0 : Z.getContext()
14586
- }), { actionButtonProps: L, printButtonProps: G, relateButtonProps: $ } = _c({
14595
+ }), { actionButtonProps: L, printButtonProps: G, relateButtonProps: $ } = Ec({
14587
14596
  toolbar: v,
14588
14597
  model: o,
14589
14598
  mustDisableButtons: n,
@@ -14592,7 +14601,7 @@ function Cv(t) {
14592
14601
  }), {
14593
14602
  actionButtonProps: P,
14594
14603
  printButtonProps: H
14595
- } = bl({
14604
+ } = wl({
14596
14605
  toolbar: v,
14597
14606
  model: o,
14598
14607
  view_id: b == null ? void 0 : b.view_id,
@@ -14603,7 +14612,7 @@ function Cv(t) {
14603
14612
  onRefreshParentValues: w
14604
14613
  }), z = n || !O || !R, U = n || !T, q = l === 0 || n || a !== "form" && g.length === 0 || (p ? !T : !N || !R), X = n || V || a === "tree" && g.length !== 1 || a === "form" && (_ === void 0 || _ < 0) || !O || !R;
14605
14614
  return /* @__PURE__ */ B("div", { className: "flex mb-2 pt-3", children: [
14606
- /* @__PURE__ */ i(Ec, { title: e, token: S }),
14615
+ /* @__PURE__ */ i(Oc, { title: e, token: S }),
14607
14616
  /* @__PURE__ */ B("div", { className: "flex-none h-8 pl-2", children: [
14608
14617
  a !== "graph" && h && /* @__PURE__ */ i(
14609
14618
  St,
@@ -14628,7 +14637,7 @@ function Cv(t) {
14628
14637
  ] }),
14629
14638
  a !== "graph" && /* @__PURE__ */ i(an, {}),
14630
14639
  a !== "graph" && /* @__PURE__ */ i(
14631
- kc,
14640
+ Nc,
14632
14641
  {
14633
14642
  isMany2Many: p,
14634
14643
  selectedRowKeys: n ? [] : g,
@@ -14670,7 +14679,7 @@ function Cv(t) {
14670
14679
  )
14671
14680
  ] }),
14672
14681
  a === "form" && /* @__PURE__ */ i(
14673
- Dc,
14682
+ kc,
14674
14683
  {
14675
14684
  currentItemIndex: d,
14676
14685
  totalItems: l,
@@ -14684,7 +14693,7 @@ function Cv(t) {
14684
14693
  St,
14685
14694
  {
14686
14695
  tooltip: I("toggleViewMode"),
14687
- icon: /* @__PURE__ */ i(Cd, {}),
14696
+ icon: /* @__PURE__ */ i(Sd, {}),
14688
14697
  onClick: s
14689
14698
  }
14690
14699
  )
@@ -14724,7 +14733,7 @@ function Cv(t) {
14724
14733
  ] })
14725
14734
  ] });
14726
14735
  }
14727
- const Ec = at(({ title: t, token: e }) => /* @__PURE__ */ i(
14736
+ const Oc = at(({ title: t, token: e }) => /* @__PURE__ */ i(
14728
14737
  "div",
14729
14738
  {
14730
14739
  className: "flex flex-grow h-8 text-white",
@@ -14735,10 +14744,10 @@ const Ec = at(({ title: t, token: e }) => /* @__PURE__ */ i(
14735
14744
  children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center h-full", children: /* @__PURE__ */ i("span", { className: "pl-2 font-bold", children: t }) })
14736
14745
  }
14737
14746
  ));
14738
- Ec.displayName = "Title";
14747
+ Oc.displayName = "Title";
14739
14748
  const an = at(() => /* @__PURE__ */ i("div", { className: "inline-block w-3" }));
14740
14749
  an.displayName = "Separator";
14741
- const Oc = at(
14750
+ const Dc = at(
14742
14751
  ({
14743
14752
  currentItemIndex: t,
14744
14753
  totalItems: e
@@ -14753,8 +14762,8 @@ const Oc = at(
14753
14762
  ] });
14754
14763
  }
14755
14764
  );
14756
- Oc.displayName = "ItemIndex";
14757
- const Dc = at(
14765
+ Dc.displayName = "ItemIndex";
14766
+ const kc = at(
14758
14767
  ({
14759
14768
  currentItemIndex: t,
14760
14769
  totalItems: e,
@@ -14774,7 +14783,7 @@ const Dc = at(
14774
14783
  }
14775
14784
  ),
14776
14785
  /* @__PURE__ */ i(
14777
- Oc,
14786
+ Dc,
14778
14787
  {
14779
14788
  currentItemIndex: t,
14780
14789
  totalItems: e
@@ -14792,8 +14801,8 @@ const Dc = at(
14792
14801
  ] });
14793
14802
  }
14794
14803
  );
14795
- Dc.displayName = "ItemBrowser";
14796
- const kc = at(
14804
+ kc.displayName = "ItemBrowser";
14805
+ const Nc = at(
14797
14806
  ({
14798
14807
  isMany2Many: t,
14799
14808
  selectedRowKeys: e,
@@ -14805,7 +14814,7 @@ const kc = at(
14805
14814
  St,
14806
14815
  {
14807
14816
  tooltip: o(t ? "unlink" : "delete"),
14808
- icon: t ? /* @__PURE__ */ i(xd, {}) : /* @__PURE__ */ i(gs, {}),
14817
+ icon: t ? /* @__PURE__ */ i(Cd, {}) : /* @__PURE__ */ i(gs, {}),
14809
14818
  onClick: n,
14810
14819
  danger: !t,
14811
14820
  type: t ? "default" : "primary",
@@ -14814,7 +14823,7 @@ const kc = at(
14814
14823
  ) });
14815
14824
  }
14816
14825
  );
14817
- kc.displayName = "DeleteButton";
14826
+ Nc.displayName = "DeleteButton";
14818
14827
  const qs = at(Cv), Sv = {
14819
14828
  form: Ca,
14820
14829
  tree: ya,
@@ -14860,21 +14869,21 @@ const Fv = (t) => {
14860
14869
  fe();
14861
14870
  }, [g]);
14862
14871
  const Y = (ne) => {
14863
- var ye, Re;
14872
+ var ye, _e;
14864
14873
  n == null || n({
14865
- fields: ((ye = o.get("form")) == null ? void 0 : ye.fields) || ((Re = o.get("tree")) == null ? void 0 : Re.fields),
14874
+ fields: ((ye = o.get("form")) == null ? void 0 : ye.fields) || ((_e = o.get("tree")) == null ? void 0 : _e.fields),
14866
14875
  items: Tv(ne)
14867
14876
  });
14868
14877
  }, de = async () => {
14869
14878
  await ue(), l > J.length - 1 && l !== 0 && d(0);
14870
14879
  }, ue = async (ne) => {
14871
- var ye, Re, De;
14880
+ var ye, _e, De;
14872
14881
  w(!0), x(!1), S(void 0);
14873
14882
  try {
14874
14883
  const [ve, ke] = await Ts({
14875
14884
  treeView: {
14876
14885
  arch: (ye = o.get("tree")) == null ? void 0 : ye.arch,
14877
- fields: (Re = o.get("tree")) == null ? void 0 : Re.fields
14886
+ fields: (_e = o.get("tree")) == null ? void 0 : _e.fields
14878
14887
  },
14879
14888
  formView: {
14880
14889
  fields: ((De = o.get("form")) == null ? void 0 : De.fields) || {}
@@ -14937,7 +14946,7 @@ const Fv = (t) => {
14937
14946
  ids: [ne],
14938
14947
  fields: o.get("form").fields,
14939
14948
  context: { ...m == null ? void 0 : m(), ...se }
14940
- }))[0], Re = (await j.getHandler().readObjects({
14949
+ }))[0], _e = (await j.getHandler().readObjects({
14941
14950
  model: Z,
14942
14951
  ids: [ne],
14943
14952
  fields: o.get("tree").fields,
@@ -14946,7 +14955,7 @@ const Fv = (t) => {
14946
14955
  ...ve,
14947
14956
  operation: "original",
14948
14957
  values: ye,
14949
- treeValues: Re
14958
+ treeValues: _e
14950
14959
  } : ve);
14951
14960
  Y(De);
14952
14961
  }, Ae = (ne) => {
@@ -14958,7 +14967,7 @@ const Fv = (t) => {
14958
14967
  }) : ne();
14959
14968
  }, pe = () => {
14960
14969
  if (W) {
14961
- Rc({
14970
+ _c({
14962
14971
  t: v,
14963
14972
  onOk: async () => {
14964
14973
  a === "form" ? Qe() : Oe();
@@ -14966,7 +14975,7 @@ const Fv = (t) => {
14966
14975
  });
14967
14976
  return;
14968
14977
  }
14969
- Ic({
14978
+ Rc({
14970
14979
  t: v,
14971
14980
  onOk: async () => {
14972
14981
  a === "form" ? Qe() : Oe();
@@ -15003,51 +15012,51 @@ const Fv = (t) => {
15003
15012
  const ne = J.filter((ye) => N.includes(ye.id));
15004
15013
  w(!0), x(!1), S(void 0);
15005
15014
  try {
15006
- const ye = ne.map((De) => De.id), Re = s.filter((De) => !(ye.includes(De.id) && De.id < 0)).map((De) => ye.includes(De.id) ? {
15015
+ const ye = ne.map((De) => De.id), _e = s.filter((De) => !(ye.includes(De.id) && De.id < 0)).map((De) => ye.includes(De.id) ? {
15007
15016
  ...De,
15008
15017
  operation: "pendingRemove"
15009
15018
  } : De);
15010
- Y(Re);
15019
+ Y(_e);
15011
15020
  } catch (ye) {
15012
15021
  S(ye);
15013
15022
  }
15014
15023
  d(0), w(!1);
15015
- }, We = (ne, ye, Re, De = !1) => {
15024
+ }, We = (ne, ye, _e, De = !1) => {
15016
15025
  let ve;
15017
15026
  if (De)
15018
15027
  ve = s.concat({
15019
15028
  id: ne,
15020
15029
  operation: "pendingLink",
15021
- values: { ...Re, id: ne },
15022
- treeValues: { ...Re, id: ne }
15030
+ values: { ..._e, id: ne },
15031
+ treeValues: { ..._e, id: ne }
15023
15032
  });
15024
15033
  else if (ne)
15025
15034
  ve = s.map((ke) => ke.id === ne ? {
15026
15035
  id: ne,
15027
15036
  operation: ne > 0 ? "pendingUpdate" : "pendingCreate",
15028
- values: { ...Re, id: ne },
15029
- treeValues: { ...Re, id: ne }
15037
+ values: { ..._e, id: ne },
15038
+ treeValues: { ..._e, id: ne }
15030
15039
  } : ke);
15031
15040
  else {
15032
15041
  const ke = Xa(s);
15033
15042
  ve = s.concat({
15034
15043
  id: ke,
15035
15044
  operation: "pendingCreate",
15036
- values: { ...Re, id: ke },
15037
- treeValues: { ...Re, id: ke }
15045
+ values: { ..._e, id: ke },
15046
+ treeValues: { ..._e, id: ke }
15038
15047
  });
15039
15048
  }
15040
15049
  Y(ve), V || D(!1);
15041
15050
  }, Ne = async (ne) => {
15042
15051
  const { id: ye } = ne;
15043
- let Re = s;
15052
+ let _e = s;
15044
15053
  const De = s.find((ve) => ve.id === ye);
15045
- (De == null ? void 0 : De.values) === void 0 && (Re = await ue("form")), T(Re.find((ve) => ve.id === ye)), M(!1), D(!0);
15054
+ (De == null ? void 0 : De.values) === void 0 && (_e = await ue("form")), T(_e.find((ve) => ve.id === ye)), M(!1), D(!0);
15046
15055
  }, Xe = async (ne) => {
15047
15056
  w(!0);
15048
- const ye = s, Re = ne.filter((De) => !s.find((ve) => ve.id === De));
15057
+ const ye = s, _e = ne.filter((De) => !s.find((ve) => ve.id === De));
15049
15058
  try {
15050
- for (const De of Re) {
15059
+ for (const De of _e) {
15051
15060
  const ve = (await j.getHandler().readObjects({
15052
15061
  model: Z,
15053
15062
  ids: [De],
@@ -15083,7 +15092,7 @@ const Fv = (t) => {
15083
15092
  }
15084
15093
  }
15085
15094
  const Ye = () => {
15086
- var ye, Re, De, ve;
15095
+ var ye, _e, De, ve;
15087
15096
  if (a === "form")
15088
15097
  return J.length === 0 ? v("noCurrentEntries") : a !== Q.current && s.some((ke) => !ke.values) ? /* @__PURE__ */ i(ot, {}) : /* @__PURE__ */ i(
15089
15098
  lr,
@@ -15093,7 +15102,7 @@ const Fv = (t) => {
15093
15102
  values: (ye = J[l]) == null ? void 0 : ye.values,
15094
15103
  parentContext: { ...m == null ? void 0 : m(), ...se },
15095
15104
  model: Z,
15096
- id: (Re = J[l]) == null ? void 0 : Re.id,
15105
+ id: (_e = J[l]) == null ? void 0 : _e.id,
15097
15106
  submitMode: "values",
15098
15107
  onFieldsChange: (ke) => {
15099
15108
  var Ft;
@@ -15202,11 +15211,11 @@ const Fv = (t) => {
15202
15211
  onCancel: (ne) => {
15203
15212
  if (M(!1), ne != null && ne.id && (ne != null && ne.values)) {
15204
15213
  const ye = s.map(
15205
- (Re) => Re.id === ne.id ? {
15206
- ...Re,
15207
- values: { ...Re.values, ...ne.values },
15208
- treeValues: { ...Re.treeValues, ...ne.values }
15209
- } : Re
15214
+ (_e) => _e.id === ne.id ? {
15215
+ ..._e,
15216
+ values: { ..._e.values, ...ne.values },
15217
+ treeValues: { ..._e.treeValues, ...ne.values }
15218
+ } : _e
15210
15219
  );
15211
15220
  Y(ye);
15212
15221
  }
@@ -15235,7 +15244,7 @@ const Fv = (t) => {
15235
15244
  }
15236
15245
  )
15237
15246
  ] });
15238
- }, Nc = ({
15247
+ }, Mc = ({
15239
15248
  fieldName: t,
15240
15249
  widgetDomain: e
15241
15250
  }) => {
@@ -15341,7 +15350,7 @@ const Fv = (t) => {
15341
15350
  onGetFirstVisibileRowIndex: f,
15342
15351
  onSelectionCheckboxClicked: l
15343
15352
  };
15344
- }, Mc = ({
15353
+ }, Pc = ({
15345
15354
  items: t,
15346
15355
  relation: e,
15347
15356
  context: n,
@@ -15414,9 +15423,9 @@ const Fv = (t) => {
15414
15423
  getOriginalItemsWithRestoredItemId: f,
15415
15424
  onFormChanges: u
15416
15425
  };
15417
- }, Pc = ({
15426
+ }, $c = ({
15418
15427
  one2manyItems: t
15419
- }) => jt(() => t.filter((e) => e.operation !== "pendingRemove"), [t]), Gs = Bt(
15428
+ }) => Bt(() => t.filter((e) => e.operation !== "pendingRemove"), [t]), Gs = jt(
15420
15429
  ({
15421
15430
  formView: t,
15422
15431
  items: e,
@@ -15445,7 +15454,7 @@ const Fv = (t) => {
15445
15454
  values: { ...u, id: p },
15446
15455
  treeValues: { ...u, id: p }
15447
15456
  } : h);
15448
- s(pf(m));
15457
+ s(hf(m));
15449
15458
  },
15450
15459
  readOnly: o
15451
15460
  }
@@ -15453,7 +15462,7 @@ const Fv = (t) => {
15453
15462
  }
15454
15463
  );
15455
15464
  Gs.displayName = "One2manyForm";
15456
- const $c = ({
15465
+ const Vc = ({
15457
15466
  isMany2many: t,
15458
15467
  triggerChange: e,
15459
15468
  items: n,
@@ -15512,13 +15521,13 @@ const $c = ({
15512
15521
  ]), m = A(async () => c === "form" ? await p() : await u(), [c, p, u]);
15513
15522
  return { showRemoveConfirm: A(() => {
15514
15523
  if (t) {
15515
- Rc({
15524
+ _c({
15516
15525
  t: a,
15517
15526
  onOk: m
15518
15527
  });
15519
15528
  return;
15520
15529
  }
15521
- Ic({
15530
+ Rc({
15522
15531
  t: a,
15523
15532
  onOk: m
15524
15533
  });
@@ -15533,7 +15542,7 @@ function Iv({
15533
15542
  o.id && r[o.id] > 0 && (n.push(o), r[o.id] -= 1);
15534
15543
  }), n;
15535
15544
  }
15536
- const Vc = ({
15545
+ const Lc = ({
15537
15546
  currentView: t,
15538
15547
  inv_field: e,
15539
15548
  activeId: n,
@@ -15618,7 +15627,7 @@ const Vc = ({
15618
15627
  onFormModalSubmitSucceed: x,
15619
15628
  openItemInFormModal: C
15620
15629
  };
15621
- }, Lc = ({
15630
+ }, Hc = ({
15622
15631
  currentView: t,
15623
15632
  showFormChangesDialogIfNeeded: e,
15624
15633
  items: n,
@@ -15676,7 +15685,7 @@ const Vc = ({
15676
15685
  onCloseSearchModal: u,
15677
15686
  onSelectSearchValues: m
15678
15687
  };
15679
- }, Hc = (t) => `columnState-${t.parentViewId}-${t.treeViewId}-${t.one2ManyFieldName}-${t.model}`, ra = 400, Rv = ({
15688
+ }, Bc = (t) => `columnState-${t.parentViewId}-${t.treeViewId}-${t.one2ManyFieldName}-${t.model}`, ra = 400, Rv = ({
15680
15689
  items: t,
15681
15690
  height: e,
15682
15691
  onRowDoubleClick: n,
@@ -15697,7 +15706,7 @@ const Vc = ({
15697
15706
  treeType: v,
15698
15707
  onChangeTreeType: b
15699
15708
  }) => {
15700
- const x = K(null), C = d || x, w = K(), _ = K(t), [S, I] = F(0), [D, E] = F(), [k, O] = F(0), T = K([]), [N, R] = F([]), [V, M] = F(!1), L = jt(() => t.length, [t]), {
15709
+ const x = K(null), C = d || x, w = K(), _ = K(t), [S, I] = F(0), [D, E] = F(), [k, O] = F(0), T = K([]), [N, R] = F([]), [V, M] = F(!1), L = Bt(() => t.length, [t]), {
15701
15710
  columns: G,
15702
15711
  strings: $,
15703
15712
  colorsForResults: P,
@@ -15713,12 +15722,12 @@ const Vc = ({
15713
15722
  } = Es({
15714
15723
  treeOoui: o,
15715
15724
  parentContext: a,
15716
- columnStateKey: Hc({
15725
+ columnStateKey: Bc({
15717
15726
  ...g,
15718
15727
  model: f
15719
15728
  }),
15720
15729
  tableRef: C
15721
- }), { footerComponent: ae } = Ol({
15730
+ }), { footerComponent: ae } = Dl({
15722
15731
  treeOoui: o,
15723
15732
  model: f,
15724
15733
  selectedRowKeys: h,
@@ -15755,22 +15764,22 @@ const Vc = ({
15755
15764
  endRow: He,
15756
15765
  state: ne
15757
15766
  }) => {
15758
- const ye = Xn({ state: ne }), { results: Re, colors: De, status: ve } = await c({
15767
+ const ye = Xn({ state: ne }), { results: _e, colors: De, status: ve } = await c({
15759
15768
  allItems: _.current,
15760
15769
  startRow: Fe,
15761
15770
  endRow: He,
15762
15771
  sortFields: ye
15763
15772
  });
15764
15773
  if (De && (P.current = { ...P.current, ...De }), ve && (H.current || (H.current = {}), H.current = { ...H.current, ...ve }), De || ve) {
15765
- const Ie = Re.map((gt) => ({
15774
+ const Ie = _e.map((gt) => ({
15766
15775
  id: gt.id,
15767
15776
  colors: De == null ? void 0 : De[gt.id],
15768
15777
  status: ve == null ? void 0 : ve[gt.id]
15769
15778
  }));
15770
15779
  me(Ie, o);
15771
15780
  }
15772
- const ke = Re.map((Ie) => Ie.id).filter(Boolean);
15773
- return ke.length > 0 && ie(ke), Re;
15781
+ const ke = _e.map((Ie) => Ie.id).filter(Boolean);
15782
+ return ke.length > 0 && ie(ke), _e;
15774
15783
  },
15775
15784
  [
15776
15785
  P,
@@ -15801,8 +15810,8 @@ const Vc = ({
15801
15810
  }));
15802
15811
  me(De, o);
15803
15812
  }
15804
- const Re = He.map((De) => De.id).filter(Boolean);
15805
- return Re.length > 0 && ie(Re), He;
15813
+ const _e = He.map((De) => De.id).filter(Boolean);
15814
+ return _e.length > 0 && ie(_e), He;
15806
15815
  } finally {
15807
15816
  M(!1);
15808
15817
  }
@@ -15938,7 +15947,7 @@ const Vc = ({
15938
15947
  );
15939
15948
  }, _v = ["form", "tree", "graph"], Ev = (t) => {
15940
15949
  var ge, Me, Qe;
15941
- const e = K(null), { value: n, onChange: r, ooui: o, views: s, treeType: a } = t, { items: c = [] } = n || {}, l = Pc({ one2manyItems: c }), { currentView: d, setCurrentView: f, itemIndex: u, setItemIndex: p, setTreeType: m } = he(wn), {
15950
+ const e = K(null), { value: n, onChange: r, ooui: o, views: s, treeType: a } = t, { items: c = [] } = n || {}, l = $c({ one2manyItems: c }), { currentView: d, setCurrentView: f, itemIndex: u, setItemIndex: p, setTreeType: m } = he(wn), {
15942
15951
  readOnly: g,
15943
15952
  relation: h,
15944
15953
  context: y,
@@ -15948,7 +15957,7 @@ const Vc = ({
15948
15957
  activeId: C,
15949
15958
  getContext: w,
15950
15959
  fetchValues: _
15951
- } = x || {}, S = K(), I = s.size > 1, D = ((ge = s.get("form")) == null ? void 0 : ge.fields) !== void 0, E = ee(() => ({ ...w == null ? void 0 : w(), ...y }), [w, y]), k = Nc({
15960
+ } = x || {}, S = K(), I = s.size > 1, D = ((ge = s.get("form")) == null ? void 0 : ge.fields) !== void 0, E = ee(() => ({ ...w == null ? void 0 : w(), ...y }), [w, y]), k = Mc({
15952
15961
  widgetDomain: v,
15953
15962
  fieldName: b
15954
15963
  }), {
@@ -15982,7 +15991,7 @@ const Vc = ({
15982
15991
  onFormChanges: z,
15983
15992
  showFormChangesDialogIfNeeded: U,
15984
15993
  setFormHasChanges: q
15985
- } = Mc({
15994
+ } = Pc({
15986
15995
  items: l,
15987
15996
  formView: s.get("form"),
15988
15997
  treeView: s.get("tree"),
@@ -15997,7 +16006,7 @@ const Vc = ({
15997
16006
  onFormModalSubmitSucceed: W,
15998
16007
  createItem: ae,
15999
16008
  openItemInFormModal: J
16000
- } = Vc({
16009
+ } = Lc({
16001
16010
  activeId: C,
16002
16011
  inv_field: o.inv_field,
16003
16012
  showFormChangesDialogIfNeeded: U,
@@ -16014,7 +16023,7 @@ const Vc = ({
16014
16023
  onSelectSearchValues: ie,
16015
16024
  onCloseSearchModal: Y,
16016
16025
  searchItem: de
16017
- } = Lc({
16026
+ } = Hc({
16018
16027
  showFormChangesDialogIfNeeded: U,
16019
16028
  currentView: d,
16020
16029
  triggerChange: P,
@@ -16022,7 +16031,7 @@ const Vc = ({
16022
16031
  views: s,
16023
16032
  context: E,
16024
16033
  relation: h
16025
- }), { showRemoveConfirm: ue } = $c({
16034
+ }), { showRemoveConfirm: ue } = Vc({
16026
16035
  isMany2many: $,
16027
16036
  items: l,
16028
16037
  triggerChange: P,
@@ -16280,7 +16289,7 @@ const Vc = ({
16280
16289
  }
16281
16290
  w.current = t, (V = b == null ? void 0 : b.current) == null || V.refresh(), (M = b == null ? void 0 : b.current) == null || M.unselectAll();
16282
16291
  }, [t]);
16283
- const D = jt(() => t.length, [t]), E = jt(() => Ss(
16292
+ const D = Bt(() => t.length, [t]), E = Bt(() => Ss(
16284
16293
  o,
16285
16294
  {
16286
16295
  ..._s
@@ -16308,8 +16317,8 @@ const Vc = ({
16308
16317
  var M, L, G, $;
16309
16318
  if (x.current[(L = (M = V.node) == null ? void 0 : M.data) == null ? void 0 : L.id])
16310
16319
  return { color: x.current[($ = (G = V.node) == null ? void 0 : G.data) == null ? void 0 : $.id] };
16311
- }, []), { loading: T, getColumnState: N, updateColumnState: R } = Fl({
16312
- key: Hc({
16320
+ }, []), { loading: T, getColumnState: N, updateColumnState: R } = Al({
16321
+ key: Bc({
16313
16322
  ...m,
16314
16323
  model: d
16315
16324
  })
@@ -16360,7 +16369,7 @@ const Vc = ({
16360
16369
  });
16361
16370
  }, Mv = ["form", "tree", "graph"], Pv = (t) => {
16362
16371
  var Ce, Ae, pe;
16363
- const e = K(null), { value: n, onChange: r, ooui: o, views: s } = t, { items: a = [] } = n || {}, c = Pc({ one2manyItems: a }), { currentView: l, setCurrentView: d, itemIndex: f, setItemIndex: u } = he(
16372
+ const e = K(null), { value: n, onChange: r, ooui: o, views: s } = t, { items: a = [] } = n || {}, c = $c({ one2manyItems: a }), { currentView: l, setCurrentView: d, itemIndex: f, setItemIndex: u } = he(
16364
16373
  wn
16365
16374
  ), {
16366
16375
  readOnly: p,
@@ -16372,7 +16381,7 @@ const Vc = ({
16372
16381
  activeId: b,
16373
16382
  getContext: x,
16374
16383
  fetchValues: C
16375
- } = v || {}, w = K(), _ = s.size > 1, S = ((Ce = s.get("form")) == null ? void 0 : Ce.fields) !== void 0, I = ee(() => ({ ...x == null ? void 0 : x(), ...g }), [x, g]), D = Nc({
16384
+ } = v || {}, w = K(), _ = s.size > 1, S = ((Ce = s.get("form")) == null ? void 0 : Ce.fields) !== void 0, I = ee(() => ({ ...x == null ? void 0 : x(), ...g }), [x, g]), D = Mc({
16376
16385
  widgetDomain: h,
16377
16386
  fieldName: y
16378
16387
  }), {
@@ -16411,7 +16420,7 @@ const Vc = ({
16411
16420
  onFormChanges: H,
16412
16421
  showFormChangesDialogIfNeeded: z,
16413
16422
  setFormHasChanges: U
16414
- } = Mc({
16423
+ } = Pc({
16415
16424
  items: c,
16416
16425
  formView: s.get("form"),
16417
16426
  treeView: s.get("tree"),
@@ -16426,7 +16435,7 @@ const Vc = ({
16426
16435
  onFormModalSubmitSucceed: me,
16427
16436
  createItem: W,
16428
16437
  openItemInFormModal: ae
16429
- } = Vc({
16438
+ } = Lc({
16430
16439
  activeId: b,
16431
16440
  inv_field: o.inv_field,
16432
16441
  showFormChangesDialogIfNeeded: z,
@@ -16443,7 +16452,7 @@ const Vc = ({
16443
16452
  onSelectSearchValues: Q,
16444
16453
  onCloseSearchModal: ie,
16445
16454
  searchItem: Y
16446
- } = Lc({
16455
+ } = Hc({
16447
16456
  showFormChangesDialogIfNeeded: z,
16448
16457
  currentView: l,
16449
16458
  triggerChange: $,
@@ -16451,7 +16460,7 @@ const Vc = ({
16451
16460
  views: s,
16452
16461
  context: I,
16453
16462
  relation: m
16454
- }), { showRemoveConfirm: de } = $c({
16463
+ }), { showRemoveConfirm: de } = Vc({
16455
16464
  isMany2many: G,
16456
16465
  items: c,
16457
16466
  triggerChange: $,
@@ -16611,9 +16620,9 @@ const Vc = ({
16611
16620
  var k;
16612
16621
  const { ooui: e } = t, { mode: n, relation: r, views: o, required: s, context: a } = e;
16613
16622
  let c;
16614
- const [l, d] = F(!0), [f, u] = F(), [p, m] = F(/* @__PURE__ */ new Map()), g = he(tt), { getContext: h, formView: y, refreshCounter: v } = g || {}, { view_id: b } = y || {}, [x, C] = Ee(
16623
+ const [l, d] = F(!0), [f, u] = F(), [p, m] = F(/* @__PURE__ */ new Map()), g = he(tt), { getContext: h, formView: y, refreshCounter: v } = g || {}, { view_id: b } = y || {}, [x, C] = Re(
16615
16624
  j.getHandler().getView
16616
- ), [w, _] = Ee(
16625
+ ), [w, _] = Re(
16617
16626
  j.getHandler().getToolbar
16618
16627
  );
16619
16628
  Be(() => {
@@ -16706,7 +16715,7 @@ const Vc = ({
16706
16715
  }
16707
16716
  ) });
16708
16717
  }, Vv = (t) => {
16709
- const { ooui: e, value: n } = t, { treeType: r, setTreeType: o } = El(), s = An(
16718
+ const { ooui: e, value: n } = t, { treeType: r, setTreeType: o } = Ol(), s = An(
16710
16719
  mn.FEATURE_ONE2MANY_ENABLE_NEW_TABLE
16711
16720
  );
16712
16721
  if (Be(() => {
@@ -16737,7 +16746,7 @@ const Vc = ({
16737
16746
  }, Bv = (t) => {
16738
16747
  const { ooui: e, value: n, onChange: r } = t, { id: o, readOnly: s, required: a } = e, { token: c } = Lv(), l = a && !s ? { backgroundColor: c.colorPrimaryBg } : void 0, d = K(), [f, u] = F(), p = he(tt), { elementHasLostFocus: m } = p || {};
16739
16748
  le(() => {
16740
- u(Al(n));
16749
+ u(Il(n));
16741
16750
  }, [n]);
16742
16751
  const g = (v) => {
16743
16752
  r == null || r(v);
@@ -16762,8 +16771,8 @@ const Vc = ({
16762
16771
  }
16763
16772
  );
16764
16773
  };
16765
- function Bc(t) {
16766
- const { ooui: e, showLabel: n = !0, responsiveBehaviour: r } = t, o = kt(e.icon || ""), { t: s } = xe(), a = e.backgroundColor, c = a ? su(a).darken(30).toString() : void 0, l = (e.label || o) && n;
16774
+ function jc(t) {
16775
+ const { ooui: e, showLabel: n = !0, responsiveBehaviour: r } = t, o = kt(e.icon || ""), { t: s } = xe(), a = e.backgroundColor, c = a ? iu(a).darken(30).toString() : void 0, l = (e.label || o) && n;
16767
16776
  return /* @__PURE__ */ i(
16768
16777
  "div",
16769
16778
  {
@@ -16843,7 +16852,7 @@ function Wv(t) {
16843
16852
  a.label
16844
16853
  ] }),
16845
16854
  children: /* @__PURE__ */ i(
16846
- Bc,
16855
+ jc,
16847
16856
  {
16848
16857
  ooui: a,
16849
16858
  showLabel: !1,
@@ -17120,7 +17129,7 @@ const { useToken: qv } = rt, { TextArea: ss } = pt, Gv = (t) => {
17120
17129
  }) => {
17121
17130
  const n = [];
17122
17131
  for (const r of Object.keys(t)) {
17123
- const o = t[r], s = jc(o), a = o.is_function === !0, c = s && !a;
17132
+ const o = t[r], s = Uc(o), a = o.is_function === !0, c = s && !a;
17124
17133
  n.push({
17125
17134
  key: Jv({ key: r, parentKey: e }),
17126
17135
  title: o.string,
@@ -17130,7 +17139,7 @@ const { useToken: qv } = rt, { TextArea: ss } = pt, Gv = (t) => {
17130
17139
  });
17131
17140
  }
17132
17141
  return n;
17133
- }, jc = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", Jv = ({
17142
+ }, Uc = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", Jv = ({
17134
17143
  parentKey: t,
17135
17144
  key: e
17136
17145
  }) => `${t ? t + "/" : ""}${e}`, is = (t) => t.indexOf("/") === -1 ? t : t.split("/").slice(0, -1).join("/"), as = (t) => {
@@ -17196,7 +17205,7 @@ const { useToken: qv } = rt, { TextArea: ss } = pt, Gv = (t) => {
17196
17205
  keys: t,
17197
17206
  fields: e
17198
17207
  }) => t.map((n) => {
17199
- const r = as(n), s = ls(n, e)[r], a = jc(s), c = s.is_function === !0;
17208
+ const r = as(n), s = ls(n, e)[r], a = Uc(s), c = s.is_function === !0;
17200
17209
  return a && !c ? `${n}/id` : n;
17201
17210
  }), nb = (t) => {
17202
17211
  const e = /* @__PURE__ */ new Map(), n = [];
@@ -17239,7 +17248,7 @@ const { useToken: qv } = rt, { TextArea: ss } = pt, Gv = (t) => {
17239
17248
  onClose: n
17240
17249
  });
17241
17250
  return /* @__PURE__ */ i(
17242
- Wd,
17251
+ qd,
17243
17252
  {
17244
17253
  visible: e,
17245
17254
  onSucceed: f,
@@ -17257,7 +17266,7 @@ const { useToken: qv } = rt, { TextArea: ss } = pt, Gv = (t) => {
17257
17266
  }, ob = (t) => {
17258
17267
  const { ooui: e, showTime: n = !1 } = t, { required: r, readOnly: o = !1, timezone: s } = e;
17259
17268
  return /* @__PURE__ */ i(Ge, { required: r, ...t, children: /* @__PURE__ */ i(
17260
- qd,
17269
+ Gd,
17261
17270
  {
17262
17271
  id: e._id,
17263
17272
  required: r,
@@ -17266,12 +17275,12 @@ const { useToken: qv } = rt, { TextArea: ss } = pt, Gv = (t) => {
17266
17275
  timezone: s
17267
17276
  }
17268
17277
  ) });
17269
- }, Uc = at(ob), sb = (t) => {
17278
+ }, Wc = at(ob), sb = (t) => {
17270
17279
  const { ooui: e } = t;
17271
- return /* @__PURE__ */ i(Uc, { ooui: e });
17280
+ return /* @__PURE__ */ i(Wc, { ooui: e });
17272
17281
  }, ib = (t) => {
17273
17282
  const { ooui: e } = t;
17274
- return /* @__PURE__ */ i(Uc, { ooui: e, showTime: !0 });
17283
+ return /* @__PURE__ */ i(Wc, { ooui: e, showTime: !0 });
17275
17284
  }, ab = (t) => {
17276
17285
  const { ooui: e } = t;
17277
17286
  return /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(lb, { ooui: e }) });
@@ -17321,7 +17330,7 @@ const { useToken: qv } = rt, { TextArea: ss } = pt, Gv = (t) => {
17321
17330
  }
17322
17331
  ) }),
17323
17332
  /* @__PURE__ */ i(Le, { flex: "3", children: /* @__PURE__ */ i(
17324
- Fc,
17333
+ Ac,
17325
17334
  {
17326
17335
  ooui: new va({
17327
17336
  name: "object_value",
@@ -17343,7 +17352,7 @@ const { useToken: qv } = rt, { TextArea: ss } = pt, Gv = (t) => {
17343
17352
  const { ooui: e } = t, { required: n } = e;
17344
17353
  return /* @__PURE__ */ i(Ge, { required: n, ...t, children: /* @__PURE__ */ i(mb, { ooui: e }) });
17345
17354
  }, mb = (t) => {
17346
- const { ooui: e, value: n, onChange: r } = t, { readOnly: o, required: s, filenameField: a } = e, { token: c } = ub(), l = s && !o ? { backgroundColor: c.colorPrimaryBg } : void 0, d = K(null), { setFieldValue: f, getFieldValue: u } = he(tt) || {}, { t: p } = xe(), m = n ? of(n) : "", g = (x) => {
17355
+ const { ooui: e, value: n, onChange: r } = t, { readOnly: o, required: s, filenameField: a } = e, { token: c } = ub(), l = s && !o ? { backgroundColor: c.colorPrimaryBg } : void 0, d = K(null), { setFieldValue: f, getFieldValue: u } = he(tt) || {}, { t: p } = xe(), m = n ? sf(n) : "", g = (x) => {
17347
17356
  r == null || r(x);
17348
17357
  };
17349
17358
  async function h() {
@@ -17396,7 +17405,7 @@ const { useToken: qv } = rt, { TextArea: ss } = pt, Gv = (t) => {
17396
17405
  children: "Select"
17397
17406
  }
17398
17407
  ),
17399
- /* @__PURE__ */ i(ze, { icon: /* @__PURE__ */ i(Sd, {}), disabled: !n, onClick: y, children: p("open") }),
17408
+ /* @__PURE__ */ i(ze, { icon: /* @__PURE__ */ i(Td, {}), disabled: !n, onClick: y, children: p("open") }),
17400
17409
  /* @__PURE__ */ i(
17401
17410
  St,
17402
17411
  {
@@ -17611,7 +17620,7 @@ const gb = () => {
17611
17620
  setCurrentItemIndex: o,
17612
17621
  results: s,
17613
17622
  searchQuery: a
17614
- } = Lt(), [c, l] = Ee(
17623
+ } = Lt(), [c, l] = Re(
17615
17624
  j.getHandler().searchForTree
17616
17625
  );
17617
17626
  le(() => () => {
@@ -17726,7 +17735,7 @@ function yb({ toolbar: t }) {
17726
17735
  [u, n]
17727
17736
  ), $ = A(() => {
17728
17737
  G(() => E.current.fetchValues());
17729
- }, [G, E]), { actionButtonProps: P, printButtonProps: H, relateButtonProps: z } = _c({
17738
+ }, [G, E]), { actionButtonProps: P, printButtonProps: H, relateButtonProps: z } = Ec({
17730
17739
  toolbar: t,
17731
17740
  model: b,
17732
17741
  mustDisableButtons: L,
@@ -17854,7 +17863,7 @@ function yb({ toolbar: t }) {
17854
17863
  /* @__PURE__ */ i(wt, {}),
17855
17864
  /* @__PURE__ */ i(wt, {})
17856
17865
  ] }),
17857
- /* @__PURE__ */ i(gl, { disabled: L || !(V != null && V.create) }),
17866
+ /* @__PURE__ */ i(yl, { disabled: L || !(V != null && V.create) }),
17858
17867
  /* @__PURE__ */ i(
17859
17868
  Ot,
17860
17869
  {
@@ -17880,7 +17889,7 @@ function yb({ toolbar: t }) {
17880
17889
  }
17881
17890
  ),
17882
17891
  /* @__PURE__ */ i(
17883
- hl,
17892
+ gl,
17884
17893
  {
17885
17894
  icon: /* @__PURE__ */ i(gs, {}),
17886
17895
  tooltip: n("delete"),
@@ -17926,7 +17935,7 @@ function yb({ toolbar: t }) {
17926
17935
  ),
17927
17936
  /* @__PURE__ */ i(wt, {}),
17928
17937
  /* @__PURE__ */ i(
17929
- Wc,
17938
+ qc,
17930
17939
  {
17931
17940
  disabled: L || s,
17932
17941
  onPreviousClick: o,
@@ -17952,7 +17961,7 @@ function yb({ toolbar: t }) {
17952
17961
  /* @__PURE__ */ i(po, { res_id: m })
17953
17962
  ] }) : null;
17954
17963
  }
17955
- const vb = at(yb), Wc = at(
17964
+ const vb = at(yb), qc = at(
17956
17965
  ({
17957
17966
  disabled: t,
17958
17967
  onPreviousClick: e,
@@ -17982,7 +17991,7 @@ const vb = at(yb), Wc = at(
17982
17991
  ] });
17983
17992
  }
17984
17993
  );
17985
- Wc.displayName = "NavigationButtons";
17994
+ qc.displayName = "NavigationButtons";
17986
17995
  const ia = (t, e) => ({
17987
17996
  model: "ir.attachment",
17988
17997
  domain: [
@@ -17991,7 +18000,7 @@ const ia = (t, e) => ({
17991
18000
  ],
17992
18001
  values: { selection_associated_object: `${t},${e}` },
17993
18002
  forced_values: { res_model: t, res_id: e }
17994
- }), { useToken: bb } = rt, qc = (t) => {
18003
+ }), { useToken: bb } = rt, Gc = (t) => {
17995
18004
  const { ooui: e, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = t, { id: a, readOnly: c, required: l } = e, { token: d } = bb(), f = l && !c ? { backgroundColor: d.colorPrimaryBg } : void 0, u = he(tt), { elementHasLostFocus: p } = u || {}, [m, g] = F(!1), [h, y] = F(!1);
17996
18005
  le(() => {
17997
18006
  c && !m && y(!1), !n && !c && (g(!0), y(!0));
@@ -18050,20 +18059,20 @@ const ia = (t, e) => ({
18050
18059
  }, wb = (t) => {
18051
18060
  const { ooui: e } = t, { required: n } = e;
18052
18061
  return /* @__PURE__ */ i(Ge, { required: n, ...t, children: /* @__PURE__ */ i(
18053
- qc,
18062
+ Gc,
18054
18063
  {
18055
18064
  ooui: e,
18056
- valueValidator: (r) => r ? iu(r) : !1
18065
+ valueValidator: (r) => r ? au(r) : !1
18057
18066
  }
18058
18067
  ) });
18059
18068
  }, xb = (t) => {
18060
18069
  const { ooui: e } = t, { required: n } = e;
18061
18070
  return /* @__PURE__ */ i(Ge, { required: n, ...t, children: e.multi ? /* @__PURE__ */ i(Um, { readonly: e.readOnly, maxLength: e.size }) : /* @__PURE__ */ i(
18062
- qc,
18071
+ Gc,
18063
18072
  {
18064
18073
  ooui: e,
18065
18074
  linkPrefix: "mailto:",
18066
- valueValidator: (r) => r ? au(r, { allow_display_name: !0 }) : !1
18075
+ valueValidator: (r) => r ? lu(r, { allow_display_name: !0 }) : !1
18067
18076
  }
18068
18077
  ) });
18069
18078
  }, Cb = (t) => {
@@ -18163,7 +18172,7 @@ function Sb({ refreshGraph: t }) {
18163
18172
  } = he(Nt);
18164
18173
  return /* @__PURE__ */ B(it, { wrap: !0, children: [
18165
18174
  /* @__PURE__ */ i(
18166
- yl,
18175
+ vl,
18167
18176
  {
18168
18177
  icon: /* @__PURE__ */ i(
18169
18178
  Un,
@@ -18248,7 +18257,7 @@ const Tb = (t) => {
18248
18257
  le(() => {
18249
18258
  n && $(!0);
18250
18259
  }, [n]);
18251
- const z = jt(
18260
+ const z = Bt(
18252
18261
  () => fn(k || [], s),
18253
18262
  [s, k]
18254
18263
  ), U = ct(async () => {
@@ -18295,7 +18304,7 @@ const Tb = (t) => {
18295
18304
  le(() => {
18296
18305
  X && L(!0);
18297
18306
  }, [X]);
18298
- const { clear: Z, searchFilterLoading: se, searchError: me, offset: W, tableRefreshing: ae } = gc({
18307
+ const { clear: Z, searchFilterLoading: se, searchError: me, offset: W, tableRefreshing: ae } = yc({
18299
18308
  model: r,
18300
18309
  setSearchTreeNameSearch: S,
18301
18310
  setSelectedRowItems: y,
@@ -18436,7 +18445,7 @@ function Ib() {
18436
18445
  Ot,
18437
18446
  {
18438
18447
  icon: /* @__PURE__ */ i(
18439
- Td,
18448
+ Fd,
18440
18449
  {
18441
18450
  style: { color: n ? "white" : void 0 }
18442
18451
  }
@@ -18454,7 +18463,7 @@ function Ib() {
18454
18463
  (o == null ? void 0 : o.write) && /* @__PURE__ */ i(
18455
18464
  Ot,
18456
18465
  {
18457
- icon: /* @__PURE__ */ i(Fd, {}),
18466
+ icon: /* @__PURE__ */ i(Ad, {}),
18458
18467
  tooltip: s("configDashboard"),
18459
18468
  disabled: t,
18460
18469
  loading: !1,
@@ -18538,7 +18547,7 @@ function Eb({
18538
18547
  ...o !== void 0 && { limit: o },
18539
18548
  ...s && s > 1 && { currentPage: s },
18540
18549
  order: a
18541
- }, p = wl(u), { type: m } = d;
18550
+ }, p = xl(u), { type: m } = d;
18542
18551
  let g = !!f;
18543
18552
  return m === "form" && (g = !!f && !!r), { shareUrl: p, canShare: g };
18544
18553
  }
@@ -18638,8 +18647,8 @@ function Db(t, e) {
18638
18647
  switch (Ve) {
18639
18648
  case "dashboard": {
18640
18649
  const He = s.find((ye) => {
18641
- const [, Re] = ye;
18642
- return Re === "form";
18650
+ const [, _e] = ye;
18651
+ return _e === "form";
18643
18652
  });
18644
18653
  let ne;
18645
18654
  He && (ne = {
@@ -18965,8 +18974,8 @@ const kb = ({
18965
18974
  `${v.type}-${v.view_id}`
18966
18975
  );
18967
18976
  }
18968
- })), Gc = Bt(Db);
18969
- const Nb = fu(mu), Mb = (t) => {
18977
+ })), Yc = jt(Db);
18978
+ const Nb = mu(pu), Mb = (t) => {
18970
18979
  const { children: e = [], onPositionItemsChanged: n } = t, r = Xt.Children.map(
18971
18980
  e,
18972
18981
  (o) => {
@@ -19001,9 +19010,9 @@ function Pb(t, e) {
19001
19010
  setIsLoading: p,
19002
19011
  openAction: m,
19003
19012
  moveItemsEnabled: g
19004
- } = he(Ys), h = K(), y = K(), [v] = Ee(j.getHandler().getView), [b] = Ee(
19013
+ } = he(Ys), h = K(), y = K(), [v] = Re(j.getHandler().getView), [b] = Re(
19005
19014
  j.getHandler().readObjects
19006
- ), [x] = Ee(j.getHandler().update), C = Jt(
19015
+ ), [x] = Re(j.getHandler().update), C = Jt(
19007
19016
  Tt.FEATURE_READFORVIEW
19008
19017
  );
19009
19018
  le(() => {
@@ -19073,7 +19082,7 @@ function Pb(t, e) {
19073
19082
  for (const R of O) {
19074
19083
  const { values: V } = R;
19075
19084
  if (V.action_id && V.action_id.length > 0) {
19076
- const M = parseInt(V.action_id[0], 10), L = al({
19085
+ const M = parseInt(V.action_id[0], 10), L = ll({
19077
19086
  actionId: M,
19078
19087
  rootContext: r
19079
19088
  }).then((G) => ({ ...R, actionData: G }));
@@ -19166,7 +19175,7 @@ function Pb(t, e) {
19166
19175
  );
19167
19176
  } else if ((Z == null ? void 0 : Z.type) === "form")
19168
19177
  W = /* @__PURE__ */ i(
19169
- wc,
19178
+ xc,
19170
19179
  {
19171
19180
  model: U,
19172
19181
  view_id: z.filter(
@@ -19178,7 +19187,7 @@ function Pb(t, e) {
19178
19187
  );
19179
19188
  else if ((Z == null ? void 0 : Z.type) === "tree")
19180
19189
  W = /* @__PURE__ */ i(
19181
- xc,
19190
+ Cc,
19182
19191
  {
19183
19192
  model: U,
19184
19193
  domain: X,
@@ -19215,7 +19224,7 @@ function Pb(t, e) {
19215
19224
  else if (Z !== void 0) {
19216
19225
  const Q = Z && Array.isArray(Z.id) ? { ...Z, id: Z.id[0] } : Z;
19217
19226
  W = /* @__PURE__ */ i(
19218
- Gc,
19227
+ Yc,
19219
19228
  {
19220
19229
  action_id: L,
19221
19230
  action_type: G,
@@ -19257,7 +19266,7 @@ function Pb(t, e) {
19257
19266
  };
19258
19267
  }
19259
19268
  return /* @__PURE__ */ i(
19260
- bc,
19269
+ wc,
19261
19270
  {
19262
19271
  id: M,
19263
19272
  title: P,
@@ -19271,7 +19280,7 @@ function Pb(t, e) {
19271
19280
  );
19272
19281
  }) });
19273
19282
  }
19274
- const $b = Bt(Pb), Vb = (t) => {
19283
+ const $b = jt(Pb), Vb = (t) => {
19275
19284
  const { ooui: e } = t;
19276
19285
  return /* @__PURE__ */ i(Ge, { type: "array", ...t, children: /* @__PURE__ */ i(Lb, { ooui: e }) });
19277
19286
  }, Lb = (t) => {
@@ -19355,7 +19364,7 @@ const $b = Bt(Pb), Vb = (t) => {
19355
19364
  /* @__PURE__ */ i(ze, { onClick: _, disabled: s.length === 0, children: "Uncheck all" })
19356
19365
  ] })
19357
19366
  ] }) });
19358
- }, Hb = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Yc, {}) }), Yc = Bt(
19367
+ }, Hb = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(zc, {}) }), zc = jt(
19359
19368
  (t, e) => {
19360
19369
  const { value: n = "", onChange: r, ...o } = t, { ooui: s } = o, [a, c] = F(n), l = K(!1);
19361
19370
  le(() => {
@@ -19420,9 +19429,9 @@ const $b = Bt(Pb), Vb = (t) => {
19420
19429
  overflow: "auto"
19421
19430
  },
19422
19431
  children: /* @__PURE__ */ i(
19423
- lu,
19432
+ cu,
19424
19433
  {
19425
- remarkPlugins: [cu],
19434
+ remarkPlugins: [du],
19426
19435
  className: "markdown-typography",
19427
19436
  components: {
19428
19437
  input: (f) => f.type === "checkbox" ? /* @__PURE__ */ i(
@@ -19444,7 +19453,7 @@ const $b = Bt(Pb), Vb = (t) => {
19444
19453
  ) });
19445
19454
  }
19446
19455
  );
19447
- Yc.displayName = "MarkdownInput";
19456
+ zc.displayName = "MarkdownInput";
19448
19457
  const Bb = (t) => {
19449
19458
  const { ooui: e } = t, { required: n } = e;
19450
19459
  return /* @__PURE__ */ i(Ge, { required: n, type: "any", ...t, children: /* @__PURE__ */ i(jb, { ...t }) });
@@ -19459,7 +19468,7 @@ const Bb = (t) => {
19459
19468
  return /* @__PURE__ */ i(Ge, { ...t, valuePropName: "checked", children: /* @__PURE__ */ i(Wb, { id: n, readOnly: r, required: o }) });
19460
19469
  }, Wb = (t) => {
19461
19470
  const { required: e, readOnly: n, ...r } = t;
19462
- return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(id, { disabled: n, ...r }) });
19471
+ return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(ad, { disabled: n, ...r }) });
19463
19472
  }, qb = (t) => {
19464
19473
  const { ooui: e } = t, { required: n } = e;
19465
19474
  return /* @__PURE__ */ i(Ge, { required: n, type: "any", ...t, children: /* @__PURE__ */ i(Gb, { ...t }) });
@@ -19555,7 +19564,7 @@ const Bb = (t) => {
19555
19564
  return n;
19556
19565
  }, [o, n]);
19557
19566
  return /* @__PURE__ */ i(
19558
- du,
19567
+ uu,
19559
19568
  {
19560
19569
  value: f,
19561
19570
  options: {
@@ -19568,7 +19577,7 @@ const Bb = (t) => {
19568
19577
  }
19569
19578
  );
19570
19579
  }, { Meta: Xb } = Zr, { Text: Qb } = cn, Zb = ({ email: t, size: e = 40, theme: n = "" }) => {
19571
- const r = `https://www.gravatar.com/avatar/${uu(
19580
+ const r = `https://www.gravatar.com/avatar/${fu(
19572
19581
  t
19573
19582
  )}?s=${e}&d=${n}`;
19574
19583
  return /* @__PURE__ */ i(fa, { src: r, size: e });
@@ -19631,7 +19640,7 @@ const tw = (t) => {
19631
19640
  }
19632
19641
  }
19633
19642
  );
19634
- }, rw = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(nw, { ooui: t.ooui }) }), ow = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Gd, {}) }), sw = (t) => {
19643
+ }, rw = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(nw, { ooui: t.ooui }) }), ow = (t) => /* @__PURE__ */ i(Ge, { ...t, children: /* @__PURE__ */ i(Yd, {}) }), sw = (t) => {
19635
19644
  const { ooui: e } = t, n = he(tt);
19636
19645
  let { title: r, text: o, alertType: s, icon: a, buttons: c } = e;
19637
19646
  if (e.fieldType && e.id) {
@@ -19643,7 +19652,7 @@ const tw = (t) => {
19643
19652
  icon: a = e.icon,
19644
19653
  buttons: c = []
19645
19654
  } = f, c && (c = c.map(
19646
- (u) => new md({ ...u, readonly: e.readOnly })
19655
+ (u) => new pd({ ...u, readonly: e.readOnly })
19647
19656
  )), e.buttons && (c = [...e.buttons, ...c])) : console.log(`field value for ${e.id} is not an object`);
19648
19657
  }
19649
19658
  function l(f) {
@@ -19674,7 +19683,7 @@ const tw = (t) => {
19674
19683
  },
19675
19684
  o
19676
19685
  )) });
19677
- }, cw = _t(ad)`
19686
+ }, cw = _t(ld)`
19678
19687
  .slick-dots li button {
19679
19688
  background-color: ${la.colorPrimary};
19680
19689
  }
@@ -19706,7 +19715,7 @@ function pw() {
19706
19715
  function hw(t, e) {
19707
19716
  const { children: n } = t, [r, o] = F("welcome"), { t: s } = xe(), { showErrorNotification: a } = xt(), { globalValues: c, rootContext: l } = en(), d = mo(
19708
19717
  Tt.FEATURE_LOGGABLE_ACTIONS
19709
- ), [f, u] = Ee(
19718
+ ), [f, u] = Re(
19710
19719
  j.getHandler().logAction
19711
19720
  );
19712
19721
  le(() => () => {
@@ -19761,7 +19770,7 @@ function hw(t, e) {
19761
19770
  model: T.model,
19762
19771
  context: l
19763
19772
  });
19764
- let L = xl(
19773
+ let L = Cl(
19765
19774
  N == null ? void 0 : N.values
19766
19775
  );
19767
19776
  const G = R || L.active_id || L.id;
@@ -19840,7 +19849,7 @@ function hw(t, e) {
19840
19849
  action: T,
19841
19850
  context: l
19842
19851
  });
19843
- if ($.type === il) {
19852
+ if ($.type === al) {
19844
19853
  a({
19845
19854
  type: "error",
19846
19855
  title: "Error",
@@ -20131,7 +20140,7 @@ function hw(t, e) {
20131
20140
  S({
20132
20141
  title: L,
20133
20142
  content: /* @__PURE__ */ i(
20134
- Gc,
20143
+ Yc,
20135
20144
  {
20136
20145
  action_id: P,
20137
20146
  action_type: H,
@@ -20221,7 +20230,7 @@ function hw(t, e) {
20221
20230
  }
20222
20231
  );
20223
20232
  }
20224
- const b0 = Bt(hw), { useToken: gw } = rt;
20233
+ const b0 = jt(hw), { useToken: gw } = rt;
20225
20234
  function yw(t) {
20226
20235
  const { label: e, onClose: n, tabKey: r, isActive: o, onSelected: s, onTitleChange: a } = t, { token: c } = gw(), l = o ? c.colorBgContainer : c.colorPrimaryBg, [d, f] = F(!1), [u, p] = F(e), m = K(null), g = c.colorPrimaryActive, {
20227
20236
  attributes: h,
@@ -20230,7 +20239,7 @@ function yw(t) {
20230
20239
  transform: b,
20231
20240
  transition: x,
20232
20241
  isDragging: C
20233
- } = wu({ id: r }), w = ee(
20242
+ } = xu({ id: r }), w = ee(
20234
20243
  () => ({
20235
20244
  transform: b ? `translateX(${b.x}px) translateY(0px)` : void 0,
20236
20245
  transition: x,
@@ -20394,14 +20403,14 @@ function w0() {
20394
20403
  onChangeTab: o,
20395
20404
  onReorderTabs: s,
20396
20405
  onUpdateTabTitle: a
20397
- } = t || {}, c = K(null), [l, d] = F(!1), f = pu(
20398
- ni(hu, {
20406
+ } = t || {}, c = K(null), [l, d] = F(!1), f = hu(
20407
+ ni(gu, {
20399
20408
  activationConstraint: {
20400
20409
  distance: 8
20401
20410
  }
20402
20411
  }),
20403
- ni(gu, {
20404
- coordinateGetter: xu
20412
+ ni(yu, {
20413
+ coordinateGetter: Cu
20405
20414
  })
20406
20415
  ), u = A((v) => {
20407
20416
  if (d(!0), v.activatorEvent && "clientX" in v.activatorEvent) {
@@ -20460,19 +20469,19 @@ function w0() {
20460
20469
  [l]
20461
20470
  );
20462
20471
  return /* @__PURE__ */ i("div", { style: h, children: /* @__PURE__ */ i("div", { style: y, children: /* @__PURE__ */ i(
20463
- yu,
20472
+ vu,
20464
20473
  {
20465
20474
  sensors: f,
20466
- collisionDetection: vu,
20475
+ collisionDetection: bu,
20467
20476
  onDragStart: u,
20468
20477
  onDragEnd: m,
20469
20478
  onDragCancel: p,
20470
- modifiers: [bu],
20479
+ modifiers: [wu],
20471
20480
  children: /* @__PURE__ */ i(
20472
- Cu,
20481
+ Su,
20473
20482
  {
20474
20483
  items: g,
20475
- strategy: Su,
20484
+ strategy: Tu,
20476
20485
  children: n.map((v) => /* @__PURE__ */ i(
20477
20486
  yw,
20478
20487
  {
@@ -20546,7 +20555,7 @@ const { useToken: ww } = rt, C0 = (t) => {
20546
20555
  }, [D]);
20547
20556
  function E(L) {
20548
20557
  const G = L;
20549
- (G == null ? void 0 : G.action_type) !== il && b(G);
20558
+ (G == null ? void 0 : G.action_type) !== al && b(G);
20550
20559
  }
20551
20560
  const k = A(async () => {
20552
20561
  if (!I)
@@ -20654,7 +20663,7 @@ const { useToken: ww } = rt, C0 = (t) => {
20654
20663
  );
20655
20664
  return /* @__PURE__ */ B(we, { children: [
20656
20665
  /* @__PURE__ */ i(
20657
- Yd,
20666
+ zd,
20658
20667
  {
20659
20668
  ref: y,
20660
20669
  isFavourite: a,
@@ -20676,7 +20685,7 @@ const { useToken: ww } = rt, C0 = (t) => {
20676
20685
  }
20677
20686
  ),
20678
20687
  /* @__PURE__ */ i(
20679
- Sc,
20688
+ Tc,
20680
20689
  {
20681
20690
  visible: f,
20682
20691
  initialName: p,
@@ -20692,23 +20701,23 @@ export {
20692
20701
  Df as ACTION_TYPE_URL,
20693
20702
  In as ACTION_TYPE_WINDOW,
20694
20703
  Of as ACTION_TYPE_WINDOW_CLOSE,
20695
- il as ACTION_TYPE_WIZARD,
20704
+ al as ACTION_TYPE_WIZARD,
20696
20705
  vb as ActionBar,
20697
- Gc as ActionView,
20706
+ Yc as ActionView,
20698
20707
  Ry as ActionViewProvider,
20699
20708
  sw as Alert,
20700
20709
  zb as ArrowStepsField,
20701
20710
  fb as Binary,
20702
- tf as Boolean,
20711
+ nf as Boolean,
20703
20712
  ws as Button,
20704
- $u as ButtonGroup,
20713
+ Vu as ButtonGroup,
20705
20714
  Xy as Card,
20706
20715
  lw as Carousel,
20707
20716
  Ba as Char,
20708
20717
  Kb as CodeEditor,
20709
20718
  dw as ColorPicker,
20710
20719
  rw as CommentsTimelineField,
20711
- sl as ConfigContext,
20720
+ il as ConfigContext,
20712
20721
  Ef as ConfigContextProvider,
20713
20722
  j as ConnectionProvider,
20714
20723
  gm as ContentRootProvider,
@@ -20728,11 +20737,11 @@ export {
20728
20737
  lr as Form,
20729
20738
  Fb as FormActionView,
20730
20739
  kn as FormModal,
20731
- bc as GraphCard,
20740
+ wc as GraphCard,
20732
20741
  Vf as GraphIndicator,
20733
- Bc as Group,
20742
+ jc as Group,
20734
20743
  ow as HTMLPreview,
20735
- sf as Image,
20744
+ af as Image,
20736
20745
  wr as Integer,
20737
20746
  lo as Label,
20738
20747
  kf as MODEL_ACTIONS,
@@ -20749,7 +20758,7 @@ export {
20749
20758
  b0 as RootView,
20750
20759
  vo as SearchFilter,
20751
20760
  wo as SearchModal,
20752
- yc as SearchTree,
20761
+ vc as SearchTree,
20753
20762
  qa as Selection,
20754
20763
  zv as Separator,
20755
20764
  Kr as Spinner,