@gisce/react-ooui 2.111.0-alpha.1 → 2.111.0-alpha.3

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,58 +1,58 @@
1
- var sd = Object.defineProperty;
2
- var id = (t, e, n) => e in t ? sd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var Xs = (t, e, n) => (id(t, typeof e != "symbol" ? e + "" : e, n), n);
1
+ var id = Object.defineProperty;
2
+ var ad = (t, e, n) => e in t ? id(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var Xs = (t, e, n) => (ad(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import { jsx as s, jsxs as j, Fragment as we } from "react/jsx-runtime";
5
- import Zt, { useContext as pe, useState as F, useEffect as le, useRef as z, memo as et, useCallback as I, useMemo as Q, forwardRef as Ht, useImperativeHandle as Ut, Fragment as En, createContext as ad, createElement as ld } from "react";
6
- import { Tooltip as Vt, theme as ot, Typography as en, Form as _t, Row as Ze, Col as Ve, Modal as It, Button as Ge, Dropdown as ua, Menu as fa, Space as nt, Spin as rt, Divider as ro, Input as ht, Select as On, Checkbox as gr, Alert as Tt, Timeline as ma, Badge as Dn, message as Qs, Popover as cd, Progress as dd, Avatar as pa, Tag as ms, ColorPicker as ha, DatePicker as ud, TimePicker as fd, InputNumber as oo, Layout as ga, Pagination as md, Empty as ya, Statistic as pd, Card as rr, QRCode as hd, Tabs as va, Radio as Zs, Switch as gd, Steps as ei, Carousel as yd } from "antd";
7
- import { Label as or, Field as zo, Tree as ba, Tags as ti, Reference as ni, Selection as ps, Many2one as wa, Boolean as vd, parseContext as vn, graphProcessor as xa, graphFieldUtils as bd, parseContextFields as wd, parseDomainFields as xd, Integer as Ko, SearchFieldTypes as yn, SearchFilter as Ca, parseGraph as Sa, Container as Cd, Form as Ta, transformDomainForChildWidget as hs, Kanban as Sd, Button as Td } from "@gisce/ooui";
8
- import Fd, { QuestionCircleOutlined as Fa, ExclamationCircleOutlined as so, LoadingOutlined as Wt, DownOutlined as Fr, CloseOutlined as kn, CheckOutlined as sr, TranslationOutlined as Aa, FolderOpenOutlined as gs, DownloadOutlined as ys, ClearOutlined as ir, FormOutlined as yr, TableOutlined as vs, AreaChartOutlined as Ad, CalendarOutlined as Id, BorderOuterOutlined as Ia, FileAddOutlined as io, CloseCircleFilled as Rd, FilterOutlined as qn, EditOutlined as bs, CopyOutlined as Ar, DeleteOutlined as ws, InfoCircleOutlined as ao, ReloadOutlined as Ir, ThunderboltOutlined as lo, PrinterOutlined as co, ExportOutlined as Ra, EnterOutlined as uo, SearchOutlined as Rr, SaveOutlined as Jo, PlusOutlined as Xo, UpOutlined as _d, PlusSquareOutlined as _a, MinusSquareOutlined as Ea, StarFilled as Ed, StarOutlined as Od, LeftOutlined as Oa, RightOutlined as Da, ApiOutlined as Dd, AlignLeftOutlined as kd, EyeOutlined as Md, LinkOutlined as ri, SettingOutlined as Nd } from "@ant-design/icons";
5
+ import Zt, { useContext as pe, useState as F, useEffect as le, useRef as z, memo as et, useCallback as I, useMemo as Q, forwardRef as Bt, useImperativeHandle as Ut, Fragment as En, createContext as ld, createElement as cd } from "react";
6
+ import { Tooltip as Ht, theme as ot, Typography as en, Form as _t, Row as Ze, Col as Ve, Modal as It, Button as Ge, Dropdown as ua, Menu as fa, Space as nt, Spin as rt, Divider as ro, Input as ht, Select as On, Checkbox as gr, Alert as Tt, Timeline as ma, Badge as Dn, message as Qs, Popover as dd, Progress as ud, Avatar as pa, Tag as ms, ColorPicker as ha, DatePicker as fd, TimePicker as md, InputNumber as oo, Layout as ga, Pagination as pd, Empty as ya, Statistic as hd, Card as rr, QRCode as gd, Tabs as va, Radio as Zs, Switch as yd, Steps as ei, Carousel as vd } from "antd";
7
+ import { Label as or, Field as zo, Tree as ba, Tags as ti, Reference as ni, Selection as ps, Many2one as wa, Boolean as bd, parseContext as vn, graphProcessor as xa, graphFieldUtils as wd, parseContextFields as xd, parseDomainFields as Cd, Integer as Ko, SearchFieldTypes as yn, SearchFilter as Ca, parseGraph as Sa, Container as Sd, Form as Ta, transformDomainForChildWidget as hs, Kanban as Td, Button as Fd } from "@gisce/ooui";
8
+ import Ad, { QuestionCircleOutlined as Fa, ExclamationCircleOutlined as so, LoadingOutlined as Wt, DownOutlined as Fr, CloseOutlined as kn, CheckOutlined as sr, TranslationOutlined as Aa, FolderOpenOutlined as gs, DownloadOutlined as ys, ClearOutlined as ir, FormOutlined as yr, TableOutlined as vs, AreaChartOutlined as Id, CalendarOutlined as Rd, BorderOuterOutlined as Ia, FileAddOutlined as io, CloseCircleFilled as _d, FilterOutlined as qn, EditOutlined as bs, CopyOutlined as Ar, DeleteOutlined as ws, InfoCircleOutlined as ao, ReloadOutlined as Ir, ThunderboltOutlined as lo, PrinterOutlined as co, ExportOutlined as Ra, EnterOutlined as uo, SearchOutlined as Rr, SaveOutlined as Jo, PlusOutlined as Xo, UpOutlined as Ed, PlusSquareOutlined as _a, MinusSquareOutlined as Ea, StarFilled as Od, StarOutlined as Dd, LeftOutlined as Oa, RightOutlined as Da, ApiOutlined as kd, AlignLeftOutlined as Md, EyeOutlined as Nd, LinkOutlined as ri, SettingOutlined as Pd } from "@ant-design/icons";
9
9
  import { Interweave as dn } from "interweave";
10
10
  import ft from "dayjs";
11
11
  import { default as J0 } from "dayjs";
12
- import Pd from "dayjs/plugin/advancedFormat";
13
- import $d from "dayjs/plugin/customParseFormat";
14
- import Ld from "dayjs/plugin/isoWeek";
15
- import Vd from "dayjs/plugin/timezone";
16
- import Hd from "dayjs/plugin/duration";
17
- import Bd from "dayjs/plugin/relativeTime";
18
- import jd from "dayjs/plugin/weekday";
19
- import Ud from "dayjs/plugin/localeData";
20
- import { useLocale as xe, Icon as Gr, iconMapper as Mt, useNotificationContext as Wd, FormigaConfigProvider as qd, mergeStrings as Gd, Dropdown as ka, ToggleDropdownButton as Yd, getTablerIcon as Ma, DropdownButton as fn, Many2OneSuffix as zd, Many2OneSuffixModal as oi, DateValue as Kd, DateTimeValue as Jd, useDatePickerLocale as Xd, SkeletonPill as Qd, PaginationHeader as Zd, FieldSet as Na, ExportModal as eu, DateInput as tu, HTMLPreview as nu, FavouriteButton as ru } from "@gisce/react-formiga-components";
21
- import ou from "antd/lib/input/TextArea";
12
+ import $d from "dayjs/plugin/advancedFormat";
13
+ import Ld from "dayjs/plugin/customParseFormat";
14
+ import Vd from "dayjs/plugin/isoWeek";
15
+ import Hd from "dayjs/plugin/timezone";
16
+ import Bd from "dayjs/plugin/duration";
17
+ import jd from "dayjs/plugin/relativeTime";
18
+ import Ud from "dayjs/plugin/weekday";
19
+ import Wd from "dayjs/plugin/localeData";
20
+ import { useLocale as xe, Icon as Gr, iconMapper as Mt, useNotificationContext as qd, FormigaConfigProvider as Gd, mergeStrings as Yd, Dropdown as ka, ToggleDropdownButton as zd, getTablerIcon as Ma, DropdownButton as fn, Many2OneSuffix as Kd, Many2OneSuffixModal as oi, DateValue as Jd, DateTimeValue as Xd, useDatePickerLocale as Qd, SkeletonPill as Zd, PaginationHeader as eu, FieldSet as Na, ExportModal as tu, DateInput as nu, HTMLPreview as ru, FavouriteButton as ou } from "@gisce/react-formiga-components";
21
+ import su from "antd/lib/input/TextArea";
22
22
  import Ot from "styled-components";
23
23
  import xs from "react-measure";
24
- import su from "lodash/debounce";
24
+ import iu from "lodash/debounce";
25
25
  import { nanoid as Cs } from "nanoid";
26
26
  import Qo from "antd/lib/typography/Title";
27
- import { useDeepCompareEffect as He, useDeepCompareCallback as lt, useDeepCompareMemo as jt } from "use-deep-compare";
28
- import { Line as iu, Column as au, Pie as lu } from "@ant-design/plots";
27
+ import { useDeepCompareEffect as He, useDeepCompareCallback as lt, useDeepCompareMemo as Vt } from "use-deep-compare";
28
+ import { Line as au, Column as lu, Pie as cu } from "@ant-design/plots";
29
29
  import { createRoot as Pa } from "react-dom/client";
30
- import { fileTypeFromBuffer as cu } from "file-type-buffer-browser";
31
- import { generate as du } from "@ant-design/colors";
32
- import { InfiniteTable as Ss, Table as uu, PaginatedTable as fu } from "@gisce/react-formiga-table";
30
+ import { fileTypeFromBuffer as du } from "file-type-buffer-browser";
31
+ import { generate as uu } from "@ant-design/colors";
32
+ import { InfiniteTable as Ss, Table as fu, PaginatedTable as mu } from "@gisce/react-formiga-table";
33
33
  import $a from "antd/es/typography/Link";
34
34
  import { isPresetStatusColor as La, isPresetColor as Va } from "antd/lib/_util/colors";
35
- import mu from "validator";
35
+ import pu from "validator";
36
36
  import Xn from "antd/es/alert/ErrorBoundary";
37
37
  import "@gisce/react-formiga-table/style.css";
38
- import { GridUi as pu } from "@gisce/fiber-diagram";
39
- import hu from "tinycolor2";
38
+ import { GridUi as hu } from "@gisce/fiber-diagram";
39
+ import gu from "tinycolor2";
40
40
  import { useHotkeys as Tn } from "react-hotkeys-hook";
41
- import gu from "validator/lib/isURL";
42
- import yu from "validator/lib/isEmail";
43
- import vu from "react-markdown";
44
- import bu from "remark-gfm";
45
- import wu from "@monaco-editor/react";
46
- import xu from "md5";
47
- import { WidthProvider as Cu, Responsive as Su } from "react-grid-layout";
41
+ import yu from "validator/lib/isURL";
42
+ import vu from "validator/lib/isEmail";
43
+ import bu from "react-markdown";
44
+ import wu from "remark-gfm";
45
+ import xu from "@monaco-editor/react";
46
+ import Cu from "md5";
47
+ import { WidthProvider as Su, Responsive as Tu } from "react-grid-layout";
48
48
  import "react-grid-layout/css/styles.css";
49
- import { useDroppable as Tu, useSensors as Ha, useSensor as Zo, PointerSensor as Ba, DndContext as ja, DragOverlay as Fu, KeyboardSensor as Au, closestCenter as Iu } from "@dnd-kit/core";
50
- import { restrictToHorizontalAxis as Ru } from "@dnd-kit/modifiers";
51
- import { useSortable as Ua, SortableContext as Wa, verticalListSortingStrategy as _u, sortableKeyboardCoordinates as Eu, horizontalListSortingStrategy as Ou } from "@dnd-kit/sortable";
52
- import { CSS as Du } from "@dnd-kit/utilities";
53
- import { AnimatePresence as ku, motion as si } from "framer-motion";
54
- import Mu from "focus-trap-react";
55
- const st = Zt.createContext(null), Nu = (t) => {
49
+ import { useDroppable as Fu, useSensors as Ha, useSensor as Zo, PointerSensor as Ba, DndContext as ja, DragOverlay as Au, KeyboardSensor as Iu, closestCenter as Ru } from "@dnd-kit/core";
50
+ import { restrictToHorizontalAxis as _u } from "@dnd-kit/modifiers";
51
+ import { useSortable as Ua, SortableContext as Wa, verticalListSortingStrategy as Eu, sortableKeyboardCoordinates as Ou, horizontalListSortingStrategy as Du } from "@dnd-kit/sortable";
52
+ import { CSS as ku } from "@dnd-kit/utilities";
53
+ import { AnimatePresence as Mu, motion as si } from "framer-motion";
54
+ import Nu from "focus-trap-react";
55
+ const st = Zt.createContext(null), Pu = (t) => {
56
56
  const {
57
57
  children: e,
58
58
  activeId: n,
@@ -232,9 +232,9 @@ var Ga = { exports: {} };
232
232
  };
233
233
  });
234
234
  })(Ga);
235
- var Pu = Ga.exports;
236
- const $u = /* @__PURE__ */ qa(Pu);
237
- var Lu = { exports: {} };
235
+ var $u = Ga.exports;
236
+ const Lu = /* @__PURE__ */ qa($u);
237
+ var Vu = { exports: {} };
238
238
  (function(t, e) {
239
239
  (function(n, r) {
240
240
  t.exports = r(ft);
@@ -247,8 +247,8 @@ var Lu = { exports: {} };
247
247
  } };
248
248
  return o.default.locale(i, null, !0), i;
249
249
  });
250
- })(Lu);
251
- var Vu = { exports: {} };
250
+ })(Vu);
251
+ var Hu = { exports: {} };
252
252
  (function(t, e) {
253
253
  (function(n, r) {
254
254
  t.exports = r();
@@ -258,8 +258,8 @@ var Vu = { exports: {} };
258
258
  return "[" + n + (r[(o - 20) % 10] || r[o] || r[0]) + "]";
259
259
  } };
260
260
  });
261
- })(Vu);
262
- var Hu = { exports: {} };
261
+ })(Hu);
262
+ var Bu = { exports: {} };
263
263
  (function(t, e) {
264
264
  (function(n, r) {
265
265
  t.exports = r(ft);
@@ -272,9 +272,8 @@ var Hu = { exports: {} };
272
272
  } };
273
273
  return o.default.locale(i, null, !0), i;
274
274
  });
275
- })(Hu);
276
- ft.extend($u);
277
- ft.extend(Pd);
275
+ })(Bu);
276
+ ft.extend(Lu);
278
277
  ft.extend($d);
279
278
  ft.extend(Ld);
280
279
  ft.extend(Vd);
@@ -282,7 +281,8 @@ ft.extend(Hd);
282
281
  ft.extend(Bd);
283
282
  ft.extend(jd);
284
283
  ft.extend(Ud);
285
- const { Text: Bu, Title: ju } = en, { useToken: Uu } = ot, Wu = {
284
+ ft.extend(Wd);
285
+ const { Text: ju, Title: Uu } = en, { useToken: Wu } = ot, qu = {
286
286
  left: "justify-start",
287
287
  center: "justify-center",
288
288
  right: "justify-end"
@@ -305,13 +305,13 @@ const { Text: Bu, Title: ju } = en, { useToken: Uu } = ot, Wu = {
305
305
  ) : "", e.humanDate ? u = u ? ft(u).fromNow() : "" : (u = p, p = "");
306
306
  }
307
307
  }
308
- const m = r ? "left" : "right", g = (e == null ? void 0 : e.align) || n || (a ? m : "left"), { token: h } = Uu(), y = c === void 0 ? Bu : ju;
308
+ const m = r ? "left" : "right", g = (e == null ? void 0 : e.align) || n || (a ? m : "left"), { token: h } = Wu(), y = c === void 0 ? ju : Uu;
309
309
  return /* @__PURE__ */ j(
310
310
  "div",
311
311
  {
312
- className: `flex flex-row items-center pb-1 pt-1 ${Wu[g]}`,
312
+ className: `flex flex-row items-center pb-1 pt-1 ${qu[g]}`,
313
313
  children: [
314
- i && /* @__PURE__ */ s(Vt, { title: i, children: /* @__PURE__ */ s(
314
+ i && /* @__PURE__ */ s(Ht, { title: i, children: /* @__PURE__ */ s(
315
315
  Fa,
316
316
  {
317
317
  className: "pr-1 text-xs",
@@ -380,14 +380,14 @@ function Ye({
380
380
  A()
381
381
  ] }))();
382
382
  }
383
- const { confirm: qu } = It, on = ({
383
+ const { confirm: Gu } = It, on = ({
384
384
  onOk: t,
385
385
  confirmMessage: e,
386
386
  okText: n,
387
387
  cancelText: r,
388
388
  t: o
389
389
  }) => {
390
- qu({
390
+ Gu({
391
391
  title: o("confirmation"),
392
392
  icon: /* @__PURE__ */ s(so, {}),
393
393
  centered: !0,
@@ -444,7 +444,7 @@ const { confirm: qu } = It, on = ({
444
444
  children: r
445
445
  }
446
446
  ) });
447
- }, Gu = (t) => {
447
+ }, Yu = (t) => {
448
448
  const { ooui: e } = t, { defaultButton: n, secondaryButtons: r } = e, {
449
449
  id: o,
450
450
  caption: i,
@@ -491,7 +491,7 @@ const { confirm: qu } = It, on = ({
491
491
  icon: /* @__PURE__ */ s(Fr, {}),
492
492
  type: f ? "primary" : void 0,
493
493
  overlay: /* @__PURE__ */ s(
494
- zu,
494
+ Ku,
495
495
  {
496
496
  ooui: r,
497
497
  executeButtonAction: g
@@ -505,7 +505,7 @@ const { confirm: qu } = It, on = ({
505
505
  ) });
506
506
  if (n)
507
507
  return /* @__PURE__ */ s(Ts, { ooui: n });
508
- }, Yu = (t) => {
508
+ }, zu = (t) => {
509
509
  const { t: e } = xe(), { button: n, executeButtonAction: r } = t, {
510
510
  id: o,
511
511
  caption: i,
@@ -552,12 +552,12 @@ const { confirm: qu } = It, on = ({
552
552
  },
553
553
  `menuitem-${i}`
554
554
  );
555
- }, zu = (t) => {
555
+ }, Ku = (t) => {
556
556
  const { ooui: e, executeButtonAction: n } = t;
557
557
  if (!e)
558
558
  return null;
559
559
  const r = e.map((o) => /* @__PURE__ */ s(
560
- Yu,
560
+ zu,
561
561
  {
562
562
  button: o,
563
563
  executeButtonAction: n
@@ -565,7 +565,7 @@ const { confirm: qu } = It, on = ({
565
565
  o.id
566
566
  ));
567
567
  return /* @__PURE__ */ s(fa, { children: r });
568
- }, Ku = 0.7;
568
+ }, Ju = 0.7;
569
569
  function ii() {
570
570
  const { innerWidth: t, innerHeight: e } = window;
571
571
  return {
@@ -583,7 +583,7 @@ function po() {
583
583
  }
584
584
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
585
585
  }, []), {
586
- modalWidth: t.width * Ku,
586
+ modalWidth: t.width * Ju,
587
587
  modalHeight: t.height,
588
588
  width: t.width,
589
589
  height: t.height
@@ -626,7 +626,7 @@ const Ya = (t) => {
626
626
  }, xt = ({
627
627
  onButtonAction: t
628
628
  } = {}) => {
629
- const { open: e, destroy: n } = Wd();
629
+ const { open: e, destroy: n } = qd();
630
630
  return {
631
631
  showErrorNotification: (o) => {
632
632
  if ((o == null ? void 0 : o.code) !== "ERR_CANCELED") {
@@ -757,7 +757,7 @@ const Ya = (t) => {
757
757
  return d.map((D, _) => /* @__PURE__ */ j(Ze, { style: { paddingBottom: 20 }, children: [
758
758
  /* @__PURE__ */ s(Ve, { flex: "8rem", style: { paddingRight: 10 }, children: D.name }),
759
759
  /* @__PURE__ */ s(Ve, { flex: "auto", children: /* @__PURE__ */ s(
760
- ou,
760
+ su,
761
761
  {
762
762
  rows: 4,
763
763
  value: h[D.code] || "",
@@ -836,20 +836,20 @@ const Ya = (t) => {
836
836
  };
837
837
  function St(t) {
838
838
  const { tooltip: e, ...n } = t;
839
- return /* @__PURE__ */ s(Vt, { title: e, children: /* @__PURE__ */ s(Ge, { ...n }) });
839
+ return /* @__PURE__ */ s(Ht, { title: e, children: /* @__PURE__ */ s(Ge, { ...n }) });
840
840
  }
841
- const { info: Ju } = It, Fn = (t) => {
842
- Ju({
841
+ const { info: Xu } = It, Fn = (t) => {
842
+ Xu({
843
843
  title: "",
844
844
  centered: !0,
845
845
  content: t
846
846
  });
847
- }, { useToken: Xu } = ot, ho = et(({ content: t }) => {
848
- const { token: e } = Xu();
847
+ }, { useToken: Qu } = ot, ho = et(({ content: t }) => {
848
+ const { token: e } = Qu();
849
849
  return /* @__PURE__ */ s("div", { style: { color: e.colorTextDisabled }, children: t });
850
850
  });
851
851
  ho.displayName = "AddonElement";
852
- const { defaultAlgorithm: Qu, defaultSeed: Zu } = ot, Fs = Qu(Zu), vr = et(
852
+ const { defaultAlgorithm: Zu, defaultSeed: ef } = ot, Fs = Zu(ef), vr = et(
853
853
  ({
854
854
  component: t,
855
855
  ooui: e,
@@ -900,7 +900,7 @@ const Ka = (t) => {
900
900
  [r]
901
901
  );
902
902
  if (c) {
903
- const h = u ? nf : ht.Password;
903
+ const h = u ? rf : ht.Password;
904
904
  return /* @__PURE__ */ s(
905
905
  vr,
906
906
  {
@@ -962,7 +962,7 @@ const Xa = et(
962
962
  u(!1), c == null || c({
963
963
  forceRefresh: !0
964
964
  });
965
- }, [c]), C = h ? tf : ef;
965
+ }, [c]), C = h ? nf : tf;
966
966
  return i ? /* @__PURE__ */ j(we, { children: [
967
967
  /* @__PURE__ */ s("div", { onClick: v, children: /* @__PURE__ */ s(
968
968
  vr,
@@ -1012,12 +1012,12 @@ const Xa = et(
1012
1012
  }
1013
1013
  );
1014
1014
  Xa.displayName = "TranslatableCharComp";
1015
- const ef = Ot(ht)`
1015
+ const tf = Ot(ht)`
1016
1016
  &.ant-input {
1017
1017
  cursor: ${(t) => t.disabled ? "pointer" : "text"};
1018
1018
  pointer-events: ${(t) => t.disabled ? "none" : "auto"};
1019
1019
  }
1020
- `, tf = Ot(ht)`
1020
+ `, nf = Ot(ht)`
1021
1021
  &.ant-input {
1022
1022
  background-color: ${Fs.colorPrimaryBg};
1023
1023
  cursor: pointer;
@@ -1027,20 +1027,20 @@ const ef = Ot(ht)`
1027
1027
  &.ant-input {
1028
1028
  background-color: ${Fs.colorPrimaryBg};
1029
1029
  }
1030
- `, nf = Ot(ht.Password)`
1030
+ `, rf = Ot(ht.Password)`
1031
1031
  &.ant-input-affix-wrapper {
1032
1032
  background-color: ${Fs.colorPrimaryBg};
1033
1033
  }
1034
- `, { defaultAlgorithm: rf, defaultSeed: of } = ot, sf = rf(of), { Option: af } = On, Za = (t) => {
1034
+ `, { defaultAlgorithm: of, defaultSeed: sf } = ot, af = of(sf), { Option: lf } = On, Za = (t) => {
1035
1035
  const { ooui: e } = t, { required: n } = e;
1036
1036
  return /* @__PURE__ */ s(Ye, { required: n, type: "any", ...t, children: /* @__PURE__ */ s(el, { ...t }) });
1037
1037
  }, el = (t) => {
1038
1038
  const { ooui: e, onChange: n, value: r } = t, { selectionValues: o, readOnly: i, required: a } = e, c = Array.from(o.entries()), l = c && c.length && c.map((f) => {
1039
1039
  const [u, p] = f;
1040
- return /* @__PURE__ */ s(af, { value: u, children: p }, u);
1040
+ return /* @__PURE__ */ s(lf, { value: u, children: p }, u);
1041
1041
  });
1042
1042
  return /* @__PURE__ */ s(
1043
- a && !i ? lf : On,
1043
+ a && !i ? cf : On,
1044
1044
  {
1045
1045
  disabled: i,
1046
1046
  onChange: n,
@@ -1052,17 +1052,17 @@ const ef = Ot(ht)`
1052
1052
  children: l
1053
1053
  }
1054
1054
  );
1055
- }, lf = Ot(On)`
1055
+ }, cf = Ot(On)`
1056
1056
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
1057
- background-color: ${sf.colorPrimaryBg};
1057
+ background-color: ${af.colorPrimaryBg};
1058
1058
  }
1059
- `, { defaultAlgorithm: cf, defaultSeed: df } = ot, ai = cf(df), uf = (t) => {
1059
+ `, { defaultAlgorithm: df, defaultSeed: uf } = ot, ai = df(uf), ff = (t) => {
1060
1060
  const { ooui: e } = t, { id: n, readOnly: r, required: o } = e;
1061
- return /* @__PURE__ */ s(Ye, { ...t, valuePropName: "checked", children: /* @__PURE__ */ s(ff, { id: n, readOnly: r, required: o }) });
1062
- }, ff = (t) => {
1061
+ return /* @__PURE__ */ s(Ye, { ...t, valuePropName: "checked", children: /* @__PURE__ */ s(mf, { id: n, readOnly: r, required: o }) });
1062
+ }, mf = (t) => {
1063
1063
  const { required: e, readOnly: n, ...r } = t;
1064
- return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(e && !n ? mf : gr, { disabled: n, ...r }) });
1065
- }, mf = Ot(gr)`
1064
+ return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(e && !n ? pf : gr, { disabled: n, ...r }) });
1065
+ }, pf = Ot(gr)`
1066
1066
  .ant-checkbox-inner {
1067
1067
  background-color: ${ai.colorPrimaryBg};
1068
1068
  }
@@ -1071,12 +1071,12 @@ const ef = Ot(ht)`
1071
1071
  background-color: ${ai.colorPrimary};
1072
1072
  }
1073
1073
  `;
1074
- function pf(t) {
1074
+ function hf(t) {
1075
1075
  const n = Buffer.from(t, "base64").length / 1e3;
1076
1076
  return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
1077
1077
  }
1078
1078
  async function Qn(t) {
1079
- const e = await cu(
1079
+ const e = await du(
1080
1080
  Buffer.from(t, "base64")
1081
1081
  );
1082
1082
  return e || {
@@ -1103,51 +1103,53 @@ function rl(t, e) {
1103
1103
  window.open(a);
1104
1104
  }
1105
1105
  const As = (t) => {
1106
- const { value: e, style: n = {} } = t;
1106
+ const { value: e, style: n = {}, width: r, height: o } = t;
1107
1107
  if (e) {
1108
- const r = Mt(e);
1109
- return r ? /* @__PURE__ */ s(r, {}) : /* @__PURE__ */ s(
1110
- "img",
1111
- {
1112
- src: `data:image/*;base64,${e}`,
1113
- style: { maxWidth: "100px", ...n }
1114
- }
1108
+ const i = o || r, c = Mt(
1109
+ e,
1110
+ i ? { style: i ? { fontSize: i } : {} } : void 0
1115
1111
  );
1112
+ if (c)
1113
+ return /* @__PURE__ */ s(c, {});
1114
+ {
1115
+ const l = { ...n };
1116
+ return r && (l.width = `${r}px`), o && (l.height = `${o}px`), !r && !o && (l.maxWidth = "100px"), /* @__PURE__ */ s("img", { src: `data:image/*;base64,${e}`, style: l });
1117
+ }
1116
1118
  }
1117
- }, hf = (t) => {
1118
- const { ooui: e } = t, { required: n, id: r } = e;
1119
- return Mt(r) ? /* @__PURE__ */ s(As, { value: r }) : /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(gf, { ooui: e }) });
1120
1119
  }, gf = (t) => {
1121
- const { ooui: e, value: n, onChange: r } = t, { readOnly: o } = e, i = z(null), { t: a } = xe(), c = (u) => {
1122
- r == null || r(u);
1120
+ const { ooui: e } = t, { required: n, id: r, width: o, height: i } = e;
1121
+ return Mt(r) ? /* @__PURE__ */ s(As, { value: r, width: o, height: i }) : /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(yf, { ooui: e }) });
1122
+ }, yf = (t) => {
1123
+ const { ooui: e, value: n, onChange: r } = t, { readOnly: o, width: i, height: a } = e, c = z(null), { t: l } = xe(), d = (m) => {
1124
+ r == null || r(m);
1123
1125
  };
1124
- async function l() {
1125
- const u = await Qn(n), p = `data:${u == null ? void 0 : u.mime};base64,${n}`, m = document.createElement("a");
1126
- m.href = p, m.download = `image.${u == null ? void 0 : u.ext}`, m.click();
1126
+ async function f() {
1127
+ const m = await Qn(n), g = `data:${m == null ? void 0 : m.mime};base64,${n}`, h = document.createElement("a");
1128
+ h.href = g, h.download = `image.${m == null ? void 0 : m.ext}`, h.click();
1127
1129
  }
1128
- async function d(u) {
1129
- u.stopPropagation(), u.preventDefault();
1130
- const p = u.target.files[0], m = await tl(p);
1131
- c(m);
1130
+ async function u(m) {
1131
+ m.stopPropagation(), m.preventDefault();
1132
+ const g = m.target.files[0], h = await tl(g);
1133
+ d(h);
1132
1134
  }
1133
- function f() {
1134
- c(void 0);
1135
+ function p() {
1136
+ d(void 0);
1135
1137
  }
1136
1138
  return /* @__PURE__ */ j(we, { children: [
1137
1139
  /* @__PURE__ */ j(Ze, { gutter: 8, wrap: !1, justify: "center", children: [
1138
1140
  Q(
1139
- () => /* @__PURE__ */ s(As, { value: n }),
1140
- [n]
1141
+ () => /* @__PURE__ */ s(As, { value: n, width: i, height: a }),
1142
+ [n, i, a]
1141
1143
  ),
1142
1144
  /* @__PURE__ */ s(
1143
1145
  "input",
1144
1146
  {
1145
1147
  type: "file",
1146
1148
  id: "file",
1147
- ref: i,
1149
+ ref: c,
1148
1150
  accept: "image/*",
1149
1151
  style: { display: "none" },
1150
- onChange: d
1152
+ onChange: u
1151
1153
  }
1152
1154
  )
1153
1155
  ] }),
@@ -1155,38 +1157,38 @@ const As = (t) => {
1155
1157
  /* @__PURE__ */ s(
1156
1158
  St,
1157
1159
  {
1158
- tooltip: a("uploadNewImage"),
1160
+ tooltip: l("uploadNewImage"),
1159
1161
  icon: /* @__PURE__ */ s(gs, {}),
1160
1162
  disabled: o,
1161
1163
  onClick: () => {
1162
- i.current.click();
1164
+ c.current.click();
1163
1165
  }
1164
1166
  }
1165
1167
  ),
1166
1168
  /* @__PURE__ */ s(
1167
1169
  St,
1168
1170
  {
1169
- tooltip: a("download"),
1171
+ tooltip: l("download"),
1170
1172
  disabled: !n,
1171
- onClick: l,
1173
+ onClick: f,
1172
1174
  icon: /* @__PURE__ */ s(ys, {})
1173
1175
  }
1174
1176
  ),
1175
1177
  /* @__PURE__ */ s(
1176
1178
  St,
1177
1179
  {
1178
- tooltip: a("clear"),
1180
+ tooltip: l("clear"),
1179
1181
  disabled: o || !n,
1180
- onClick: f,
1182
+ onClick: p,
1181
1183
  icon: /* @__PURE__ */ s(ir, {})
1182
1184
  }
1183
1185
  )
1184
1186
  ] }) })
1185
1187
  ] });
1186
- }, yf = (t) => {
1187
- const { ooui: e } = t, { required: n } = e;
1188
- return /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(vf, {}) });
1189
1188
  }, vf = (t) => {
1189
+ const { ooui: e } = t, { required: n } = e;
1190
+ return /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(bf, {}) });
1191
+ }, bf = (t) => {
1190
1192
  const { value: e, onChange: n } = t;
1191
1193
  if (!e)
1192
1194
  return null;
@@ -1196,7 +1198,7 @@ const As = (t) => {
1196
1198
  return console.error(r), null;
1197
1199
  }
1198
1200
  return /* @__PURE__ */ s(
1199
- pu,
1201
+ hu,
1200
1202
  {
1201
1203
  inputJson: e,
1202
1204
  onChange: (r) => {
@@ -1208,13 +1210,13 @@ const As = (t) => {
1208
1210
  const e = t.arch, n = t.fields, r = new ba(n);
1209
1211
  return r.parse(e), r;
1210
1212
  };
1211
- function bf(t) {
1213
+ function wf(t) {
1212
1214
  return typeof t == "number" || typeof t == "string" || typeof t == "boolean" || t === null || t === void 0 || Array.isArray(t) && t.length === 0;
1213
1215
  }
1214
1216
  const Is = (t, e, n, r = !1) => t.columns.map((i) => {
1215
1217
  const a = i.type, c = i.id, l = e == null ? void 0 : e[a];
1216
1218
  let d;
1217
- return l ? d = (f) => l({ value: f, key: c, ooui: i, context: n }) : d = (f) => bf(f) ? f : /* @__PURE__ */ j("p", { style: { color: "red" }, children: [
1219
+ return l ? d = (f) => l({ value: f, key: c, ooui: i, context: n }) : d = (f) => wf(f) ? f : /* @__PURE__ */ j("p", { style: { color: "red" }, children: [
1218
1220
  "Unsupported widget value for a Tree cell:",
1219
1221
  /* @__PURE__ */ s("pre", { children: /* @__PURE__ */ j("strong", { children: [
1220
1222
  "Type: ",
@@ -1325,7 +1327,7 @@ const Is = (t, e, n, r = !1) => t.columns.map((i) => {
1325
1327
  id: l[f][0],
1326
1328
  value: l[f][1]
1327
1329
  };
1328
- else if (m instanceof vd)
1330
+ else if (m instanceof bd)
1329
1331
  d[f] = l[f];
1330
1332
  else if (m instanceof ti) {
1331
1333
  const g = `${m.relation}_${m.field}`, h = i.get(g) || /* @__PURE__ */ new Map(), y = ((p = (u = l[f]) == null ? void 0 : u.items) == null ? void 0 : p.map((v) => {
@@ -1385,7 +1387,7 @@ function Gn({
1385
1387
  };
1386
1388
  return t.sort(c);
1387
1389
  }
1388
- function wf(t) {
1390
+ function xf(t) {
1389
1391
  for (const e in t)
1390
1392
  if (Object.prototype.hasOwnProperty.call(t, e) && t[e] !== void 0)
1391
1393
  return !0;
@@ -1502,7 +1504,7 @@ const es = (t) => {
1502
1504
  }, al = (t) => {
1503
1505
  const e = t.filter((n) => n.id && n.id < 0).map((n) => n.id);
1504
1506
  return e.length === 0 ? -1 : Math.min(...e) - 1;
1505
- }, xf = (t, e) => {
1507
+ }, Cf = (t, e) => {
1506
1508
  const n = {};
1507
1509
  return Object.keys(t).forEach((r) => {
1508
1510
  var o;
@@ -1510,7 +1512,7 @@ const es = (t) => {
1510
1512
  (i) => i.operation !== "pendingRemove"
1511
1513
  ) : n[r] = t[r];
1512
1514
  }), n;
1513
- }, Cf = ({
1515
+ }, Sf = ({
1514
1516
  values: t,
1515
1517
  fields: e
1516
1518
  }) => {
@@ -1529,7 +1531,7 @@ const es = (t) => {
1529
1531
  n[r] = t[r];
1530
1532
  }), n;
1531
1533
  };
1532
- function Sf(t) {
1534
+ function Tf(t) {
1533
1535
  const e = t.map((r) => r.id);
1534
1536
  return t.filter((r, o) => {
1535
1537
  const { id: i } = r;
@@ -1618,7 +1620,7 @@ const ll = ({
1618
1620
  colors: Zn(d[1] || {}),
1619
1621
  status: Yr(d[1] || {})
1620
1622
  };
1621
- }, Tf = (t, e) => {
1623
+ }, Ff = (t, e) => {
1622
1624
  if (!e)
1623
1625
  return t;
1624
1626
  const n = {};
@@ -1632,7 +1634,7 @@ const ll = ({
1632
1634
  } else
1633
1635
  n[r] = t[r];
1634
1636
  }), n;
1635
- }, jn = (t, e) => Tf(t, e), Io = ({
1637
+ }, jn = (t, e) => Ff(t, e), Io = ({
1636
1638
  source: t,
1637
1639
  target: e,
1638
1640
  fields: n
@@ -1665,7 +1667,7 @@ const ll = ({
1665
1667
  else
1666
1668
  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]);
1667
1669
  }), r;
1668
- }, Ff = ({
1670
+ }, Af = ({
1669
1671
  changedFields: t,
1670
1672
  formOoui: e,
1671
1673
  types: n
@@ -1673,7 +1675,7 @@ const ll = ({
1673
1675
  var a;
1674
1676
  const i = (a = e == null ? void 0 : e.findById(o)) == null ? void 0 : a.type;
1675
1677
  return n.includes(i);
1676
- }).some((o) => o === !0), Af = ({
1678
+ }).some((o) => o === !0), If = ({
1677
1679
  fieldsDomain: t,
1678
1680
  fields: e
1679
1681
  }) => {
@@ -1681,7 +1683,7 @@ const ll = ({
1681
1683
  return Object.keys(e).forEach((r) => {
1682
1684
  n[r] = e[r], t[r] && (n[r].domain = t[r]);
1683
1685
  }), n;
1684
- }, If = (t) => {
1686
+ }, ml = (t) => {
1685
1687
  const e = {};
1686
1688
  return !t || !Array.isArray(t) || (t == null ? void 0 : t.length) === 0 ? {} : (t.forEach((n) => {
1687
1689
  (n == null ? void 0 : n[1]) === "=" && (e[n[0]] = n[2]);
@@ -1751,8 +1753,8 @@ const Mn = ({
1751
1753
  n += ("00" + o.toString(16)).slice(-2);
1752
1754
  }
1753
1755
  return n;
1754
- }, ml = (t, e = 7) => ({
1755
- text: du(t)[e],
1756
+ }, pl = (t, e = 7) => ({
1757
+ text: uu(t)[e],
1756
1758
  background: `${t}40`
1757
1759
  }), Ef = (t, e) => t.replace(
1758
1760
  /\{([^}]+)\}/g,
@@ -2298,7 +2300,7 @@ const Mn = ({
2298
2300
  ca_ES: Mf,
2299
2301
  en_US: Nf,
2300
2302
  es_ES: Pf
2301
- }, pl = 100, Lf = {
2303
+ }, hl = 100, Lf = {
2302
2304
  erpFeatures: {},
2303
2305
  userFeatures: {
2304
2306
  features: {},
@@ -2308,10 +2310,10 @@ const Mn = ({
2308
2310
  globalValues: {},
2309
2311
  rootContext: {},
2310
2312
  devMode: !1,
2311
- treeMaxLimit: pl,
2313
+ treeMaxLimit: hl,
2312
2314
  onActionTriggered: void 0
2313
- }, hl = Zt.createContext(Lf), tn = () => {
2314
- const t = pe(hl);
2315
+ }, gl = Zt.createContext(Lf), tn = () => {
2316
+ const t = pe(gl);
2315
2317
  if (!t)
2316
2318
  throw new Error(
2317
2319
  "useConfigContext must be used within a ConfigContextProvider"
@@ -2336,7 +2338,7 @@ const Mn = ({
2336
2338
  rootContext: o,
2337
2339
  devMode: i,
2338
2340
  title: a,
2339
- treeMaxLimit: c = pl,
2341
+ treeMaxLimit: c = hl,
2340
2342
  children: l,
2341
2343
  userFeatures: d,
2342
2344
  onActionTriggered: f
@@ -2363,19 +2365,19 @@ const Mn = ({
2363
2365
  f
2364
2366
  ]
2365
2367
  );
2366
- return /* @__PURE__ */ s(hl.Provider, { value: u, children: /* @__PURE__ */ s(
2367
- qd,
2368
+ return /* @__PURE__ */ s(gl.Provider, { value: u, children: /* @__PURE__ */ s(
2369
+ Gd,
2368
2370
  {
2369
2371
  locale: e,
2370
- localizedStrings: Gd($f, n),
2372
+ localizedStrings: Yd($f, n),
2371
2373
  children: l
2372
2374
  }
2373
2375
  ) });
2374
2376
  }
2375
2377
  );
2376
2378
  Vf.displayName = "ConfigContextProvider";
2377
- const Et = 80, Rn = "ir.actions.act_window", Hf = "ir.actions.act_window_close", gl = "ir.actions.wizard", ts = "ir.actions.report.xml", Bf = "ir.actions.act_url", jf = "ir.actions.actions", Uf = "ir.act.update_token";
2378
- async function yl({
2379
+ const Et = 80, Rn = "ir.actions.act_window", Hf = "ir.actions.act_window_close", yl = "ir.actions.wizard", ts = "ir.actions.report.xml", Bf = "ir.actions.act_url", jf = "ir.actions.actions", Uf = "ir.act.update_token";
2380
+ async function vl({
2379
2381
  actionId: t,
2380
2382
  rootContext: e = {},
2381
2383
  globalValues: n = {}
@@ -2437,7 +2439,7 @@ const Wf = (t) => {
2437
2439
  return { actionData: a, treeShortcut: l, loading: o, error: n, fetchData: async () => {
2438
2440
  r(void 0), e.current || i(!0);
2439
2441
  try {
2440
- const b = await yl({
2442
+ const b = await vl({
2441
2443
  actionId: t,
2442
2444
  rootContext: y,
2443
2445
  globalValues: {
@@ -2492,7 +2494,7 @@ const Wf = (t) => {
2492
2494
  },
2493
2495
  children: /* @__PURE__ */ s(rt, {})
2494
2496
  }
2495
- ), vl = ({
2497
+ ), bl = ({
2496
2498
  error: t,
2497
2499
  className: e
2498
2500
  }) => {
@@ -2518,7 +2520,7 @@ const Wf = (t) => {
2518
2520
  banner: !0
2519
2521
  }
2520
2522
  );
2521
- }, Ae = (t) => {
2523
+ }, Fe = (t) => {
2522
2524
  const e = z(/* @__PURE__ */ new Map());
2523
2525
  le(() => () => {
2524
2526
  n();
@@ -2543,7 +2545,7 @@ const Wf = (t) => {
2543
2545
  },
2544
2546
  [n, t]
2545
2547
  ), n];
2546
- }, Kr = 0.7, Jr = 30, bl = (t) => {
2548
+ }, Kr = 0.7, Jr = 30, wl = (t) => {
2547
2549
  const [e, n] = F(0), [r, o] = F(0), {
2548
2550
  value: i,
2549
2551
  totalValue: a,
@@ -2594,7 +2596,7 @@ const Wf = (t) => {
2594
2596
  }
2595
2597
  );
2596
2598
  };
2597
- function wl(t, e) {
2599
+ function xl(t, e) {
2598
2600
  const r = document.createElement("canvas").getContext("2d");
2599
2601
  return r.font = e || getComputedStyle(document.body).font, r.measureText(t).width;
2600
2602
  }
@@ -2616,7 +2618,7 @@ function qf({
2616
2618
  });
2617
2619
  let u = r ? `${d}/${f}` : `${d}`;
2618
2620
  c && (u += " " + c);
2619
- let p = wl(
2621
+ let p = xl(
2620
2622
  u,
2621
2623
  `bold ${Math.floor(l * 1.03)}px sans-serif`
2622
2624
  );
@@ -2664,7 +2666,7 @@ function Gf({
2664
2666
  const m = `${r == null ? void 0 : r.toLocaleString("es-ES", {
2665
2667
  useGrouping: !0
2666
2668
  })}%`;
2667
- let g = wl(
2669
+ let g = xl(
2668
2670
  m,
2669
2671
  `bold ${Math.floor(f * 1.03)}px sans-serif`
2670
2672
  );
@@ -2719,15 +2721,15 @@ const { getValueForOperator: ui } = xa, Yf = (t) => {
2719
2721
  operator: f,
2720
2722
  manualIds: u,
2721
2723
  fixedHeight: p
2722
- } = t, [m, g] = F(!1), [h, y] = F(), [v, b] = F(0), [x, C] = F(), [w, A] = F(), [S, R] = F(), [D, _] = F(), [k] = Ae(
2724
+ } = t, [m, g] = F(!1), [h, y] = F(), [v, b] = F(0), [x, C] = F(), [w, A] = F(), [S, R] = F(), [D, _] = F(), [k] = Fe(
2723
2725
  U.getHandler().searchAllIds
2724
- ), [E] = Ae(
2726
+ ), [E] = Fe(
2725
2727
  U.getHandler().readObjects
2726
- ), [T] = Ae(
2728
+ ), [T] = Fe(
2727
2729
  U.getHandler().searchCount
2728
- ), [M] = Ae(
2730
+ ), [M] = Fe(
2729
2731
  U.getHandler().evalDomain
2730
- ), [O] = Ae(
2732
+ ), [O] = Fe(
2731
2733
  U.getHandler().parseCondition
2732
2734
  );
2733
2735
  le(() => {
@@ -2825,7 +2827,7 @@ const { getValueForOperator: ui } = xa, Yf = (t) => {
2825
2827
  g(!1);
2826
2828
  }
2827
2829
  return m ? /* @__PURE__ */ s(Or, {}) : D ? (console.error(D), /* @__PURE__ */ s(Tt, { className: "mt-10", message: D, type: "error", banner: !0 })) : /* @__PURE__ */ s(
2828
- bl,
2830
+ wl,
2829
2831
  {
2830
2832
  value: h,
2831
2833
  totalValue: x,
@@ -2837,7 +2839,7 @@ const { getValueForOperator: ui } = xa, Yf = (t) => {
2837
2839
  fixedHeight: p
2838
2840
  }
2839
2841
  );
2840
- }, { processGraphData: zf } = xa, { getFieldsToRetrieve: Kf } = bd, Jf = (t) => {
2842
+ }, { processGraphData: zf } = xa, { getFieldsToRetrieve: Kf } = wd, Jf = (t) => {
2841
2843
  const {
2842
2844
  model: e,
2843
2845
  ooui: n,
@@ -2846,11 +2848,11 @@ const { getValueForOperator: ui } = xa, Yf = (t) => {
2846
2848
  limit: i,
2847
2849
  uninformedString: a,
2848
2850
  manualIds: c
2849
- } = t, [l, d] = F(!1), [f, u] = F(), [p, m] = F(), [g, h] = F(), [y, v] = F("line"), [b] = Ae(
2851
+ } = t, [l, d] = F(!1), [f, u] = F(), [p, m] = F(), [g, h] = F(), [y, v] = F("line"), [b] = Fe(
2850
2852
  U.getHandler().getFields
2851
- ), [x] = Ae(
2853
+ ), [x] = Fe(
2852
2854
  U.getHandler().readObjects
2853
- ), [C] = Ae(U.getHandler().search), w = I(async () => {
2855
+ ), [C] = Fe(U.getHandler().search), w = I(async () => {
2854
2856
  d(!0), u(void 0), v(n.type || "line");
2855
2857
  const A = Kf({ ooui: n });
2856
2858
  let S, R;
@@ -3041,7 +3043,7 @@ const Ro = (t) => (e) => {
3041
3043
  return parseFloat(t).toLocaleString("es-ES", {
3042
3044
  useGrouping: !0
3043
3045
  });
3044
- if (xl(t))
3046
+ if (Cl(t))
3045
3047
  return t.toLocaleString("es-ES", {
3046
3048
  useGrouping: !0
3047
3049
  });
@@ -3052,7 +3054,7 @@ const Ro = (t) => (e) => {
3052
3054
  );
3053
3055
  } else
3054
3056
  return t;
3055
- }, Zf = (t) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t), xl = (t) => typeof t == "number" && !isNaN(t), mi = {
3057
+ }, Zf = (t) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t), Cl = (t) => typeof t == "number" && !isNaN(t), mi = {
3056
3058
  default: {
3057
3059
  padding: "auto",
3058
3060
  xAxis: {
@@ -3189,11 +3191,11 @@ const nm = {
3189
3191
  x: l.x,
3190
3192
  percent: c[d]
3191
3193
  }));
3192
- }, { Text: pi } = en, om = 400, sm = et(iu), im = et(au), am = et(lu), lm = {
3194
+ }, { Text: pi } = en, om = 400, sm = et(au), im = et(lu), am = et(cu), lm = {
3193
3195
  line: sm,
3194
3196
  bar: im,
3195
3197
  pie: am
3196
- }, Cl = ({
3198
+ }, Sl = ({
3197
3199
  type: t,
3198
3200
  data: e,
3199
3201
  isGroup: n,
@@ -3342,7 +3344,7 @@ const dm = ({
3342
3344
  return /* @__PURE__ */ s(Or, {});
3343
3345
  const { data: g, isGroup: h, isStack: y, yAxisOpts: v } = f;
3344
3346
  return l ? (console.error(l), /* @__PURE__ */ s(Tt, { message: l, type: "error", banner: !0 })) : /* @__PURE__ */ s(
3345
- Cl,
3347
+ Sl,
3346
3348
  {
3347
3349
  type: u,
3348
3350
  data: g,
@@ -3416,10 +3418,10 @@ const dm = ({
3416
3418
  return Object.keys(e).forEach(
3417
3419
  (n) => (e[n] === void 0 || e[n] === null || e[n] === "") && delete e[n]
3418
3420
  ), e;
3419
- }, Sl = (t) => Array.isArray(t) ? t.some((e) => e === "|" ? !0 : Array.isArray(e) ? Sl(e) : !1) : !1, an = (t, e) => !t || t.length === 0 ? e : !e || e.length === 0 ? t : Sl(e) ? ["&", ...t, ...e] : [...t, ...e], Yn = (t) => Object.keys(t).reduce((e, n) => {
3421
+ }, Tl = (t) => Array.isArray(t) ? t.some((e) => e === "|" ? !0 : Array.isArray(e) ? Tl(e) : !1) : !1, an = (t, e) => !t || t.length === 0 ? e : !e || e.length === 0 ? t : Tl(e) ? ["&", ...t, ...e] : [...t, ...e], Yn = (t) => Object.keys(t).reduce((e, n) => {
3420
3422
  const r = t[n];
3421
3423
  return r !== "" && r !== void 0 && (e[n] = r), e;
3422
- }, {}), Tl = (t, e) => {
3424
+ }, {}), Fl = (t, e) => {
3423
3425
  if (!t || !Array.isArray(t) || !e)
3424
3426
  return {};
3425
3427
  const n = t.reduce((r, o) => {
@@ -3456,8 +3458,8 @@ const dm = ({
3456
3458
  }, _o = {
3457
3459
  tree: /* @__PURE__ */ s(vs, {}),
3458
3460
  form: /* @__PURE__ */ s(yr, {}),
3459
- graph: /* @__PURE__ */ s(Ad, {}),
3460
- calendar: /* @__PURE__ */ s(Id, {}),
3461
+ graph: /* @__PURE__ */ s(Id, {}),
3462
+ calendar: /* @__PURE__ */ s(Rd, {}),
3461
3463
  kanban: /* @__PURE__ */ s(Ia, {})
3462
3464
  };
3463
3465
  function gi(t) {
@@ -3571,8 +3573,8 @@ function Rt(t) {
3571
3573
  }
3572
3574
  );
3573
3575
  }
3574
- const Fl = (t) => /* @__PURE__ */ s(Rt, { ...t, type: "primary", danger: !0 });
3575
- function Al(t) {
3576
+ const Al = (t) => /* @__PURE__ */ s(Rt, { ...t, type: "primary", danger: !0 });
3577
+ function Il(t) {
3576
3578
  const { disabled: e = !1 } = t, { formHasChanges: n, onNewClicked: r } = pe(
3577
3579
  Dt
3578
3580
  ), { t: o } = xe(), i = () => {
@@ -3599,7 +3601,7 @@ function Al(t) {
3599
3601
  );
3600
3602
  }
3601
3603
  const { useToken: vm } = ot;
3602
- function Il(t) {
3604
+ function Rl(t) {
3603
3605
  const { badgeNumber: e = 0, ...n } = t, { token: r } = vm();
3604
3606
  return /* @__PURE__ */ j("div", { style: { position: "relative" }, children: [
3605
3607
  e > 0 && /* @__PURE__ */ s("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ s(
@@ -3683,8 +3685,8 @@ function bm(t) {
3683
3685
  disabled: n,
3684
3686
  onChange: p,
3685
3687
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
3686
- suffix: (a || r && r.length > 0) && /* @__PURE__ */ s(Vt, { title: o("clear"), children: /* @__PURE__ */ s(
3687
- Rd,
3688
+ suffix: (a || r && r.length > 0) && /* @__PURE__ */ s(Ht, { title: o("clear"), children: /* @__PURE__ */ s(
3689
+ _d,
3688
3690
  {
3689
3691
  style: { color: "rgba(0,0,0,.45)" },
3690
3692
  onClick: u
@@ -3774,7 +3776,7 @@ const { useToken: xm } = ot, Cm = (t) => {
3774
3776
  setCurrentSavedSearch: w
3775
3777
  } = g || {}, A = go(
3776
3778
  Ft.FEATURE_LOGGABLE_ACTIONS
3777
- ), [S] = Ae(
3779
+ ), [S] = Fe(
3778
3780
  U.getHandler().logAction
3779
3781
  ), R = I(async () => [
3780
3782
  {
@@ -3824,7 +3826,7 @@ const { useToken: xm } = ot, Cm = (t) => {
3824
3826
  const N = V.originalData || V;
3825
3827
  if (N != null && N.domain) {
3826
3828
  w == null || w(N), y == null || y(N.domain);
3827
- const L = Tl(
3829
+ const L = Fl(
3828
3830
  N.domain,
3829
3831
  D
3830
3832
  );
@@ -3859,8 +3861,8 @@ const { useToken: xm } = ot, Cm = (t) => {
3859
3861
  count: (r == null ? void 0 : r.length) || 0,
3860
3862
  color: f.colorPrimary,
3861
3863
  offset: [-70, 2],
3862
- children: /* @__PURE__ */ s(Vt, { title: d == null ? void 0 : d("advanced_search"), children: /* @__PURE__ */ s(
3863
- Yd,
3864
+ children: /* @__PURE__ */ s(Ht, { title: d == null ? void 0 : d("advanced_search"), children: /* @__PURE__ */ s(
3865
+ zd,
3864
3866
  {
3865
3867
  ref: u,
3866
3868
  isActive: e,
@@ -3879,7 +3881,7 @@ const { useToken: xm } = ot, Cm = (t) => {
3879
3881
  children: (M = d == null ? void 0 : d("actions")) == null ? void 0 : M.toUpperCase()
3880
3882
  }
3881
3883
  ),
3882
- /* @__PURE__ */ s("div", { style: { paddingBottom: 5 }, children: /* @__PURE__ */ s(Vt, { title: d == null ? void 0 : d("clear_search"), children: /* @__PURE__ */ j(
3884
+ /* @__PURE__ */ s("div", { style: { paddingBottom: 5 }, children: /* @__PURE__ */ s(Ht, { title: d == null ? void 0 : d("clear_search"), children: /* @__PURE__ */ j(
3883
3885
  "div",
3884
3886
  {
3885
3887
  style: {
@@ -3910,7 +3912,7 @@ const { useToken: xm } = ot, Cm = (t) => {
3910
3912
  ] }),
3911
3913
  /* @__PURE__ */ j("div", { style: { display: "flex" }, children: [
3912
3914
  /* @__PURE__ */ s("div", { style: { paddingLeft: 15, color: "#ccc" }, children: (O = d == null ? void 0 : d("saved_searches")) == null ? void 0 : O.toUpperCase() }),
3913
- /* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(Vt, { title: d == null ? void 0 : d("edit_saved_searches"), children: /* @__PURE__ */ s(
3915
+ /* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(Ht, { title: d == null ? void 0 : d("edit_saved_searches"), children: /* @__PURE__ */ s(
3914
3916
  bs,
3915
3917
  {
3916
3918
  style: { color: f.colorPrimary, cursor: "pointer" },
@@ -3933,7 +3935,7 @@ const { useToken: xm } = ot, Cm = (t) => {
3933
3935
  qt
3934
3936
  ), { openAction: d } = l || {}, f = z([]), { t: u } = xe(), { showErrorNotification: p } = xt(), m = go(
3935
3937
  Ft.FEATURE_LOGGABLE_ACTIONS
3936
- ), [g, h] = Ae(
3938
+ ), [g, h] = Fe(
3937
3939
  U.getHandler().logAction
3938
3940
  );
3939
3941
  le(() => () => {
@@ -4273,7 +4275,7 @@ async function Tm({
4273
4275
  }
4274
4276
  return { views: i, initialView: a };
4275
4277
  }
4276
- const Fm = Ht(Sm), Rl = ({
4278
+ const Fm = Bt(Sm), _l = ({
4277
4279
  selectedRowItems: t,
4278
4280
  onRefreshParentValues: e,
4279
4281
  treeView: n,
@@ -4303,7 +4305,7 @@ const Fm = Ht(Sm), Rl = ({
4303
4305
  },
4304
4306
  [i, t, e, n, r]
4305
4307
  );
4306
- }, _l = ({
4308
+ }, El = ({
4307
4309
  disabled: t = !1,
4308
4310
  parentContext: e = {},
4309
4311
  selectedRowItems: n = [],
@@ -4313,12 +4315,12 @@ const Fm = Ht(Sm), Rl = ({
4313
4315
  treeView: a,
4314
4316
  toolbar: c
4315
4317
  }) => {
4316
- const { t: l } = xe(), d = Rl({
4318
+ const { t: l } = xe(), d = _l({
4317
4319
  selectedRowItems: n,
4318
4320
  onRefreshParentValues: r,
4319
4321
  treeView: a,
4320
4322
  view_id: i
4321
- }), [f, u] = F(null), [p, m] = F(!1), [g] = Ae(
4323
+ }), [f, u] = F(null), [p, m] = F(!1), [g] = Fe(
4322
4324
  U.getHandler().getToolbar
4323
4325
  ), h = c || f, y = I(async () => {
4324
4326
  if (c || f != null && f.action || f != null && f.print)
@@ -4399,7 +4401,7 @@ const Fm = Ht(Sm), Rl = ({
4399
4401
  };
4400
4402
  }, pt = et(() => /* @__PURE__ */ s("div", { className: "inline-block w-2" }));
4401
4403
  pt.displayName = "ActionBarSeparator";
4402
- const Am = "action", Im = ["active_id", "active_ids", "id"], Rm = ["target", "context", "domain", "fields"], El = (t) => {
4404
+ const Am = "action", Im = ["active_id", "active_ids", "id"], Rm = ["target", "context", "domain", "fields"], Ol = (t) => {
4403
4405
  const e = new URL(window.location.origin);
4404
4406
  e.pathname = Am;
4405
4407
  const n = {
@@ -4412,11 +4414,11 @@ const Am = "action", Im = ["active_id", "active_ids", "id"], Rm = ["target", "co
4412
4414
  }, _m = (t) => typeof t == "object" ? JSON.stringify(t) : t.toString(), Em = (t) => {
4413
4415
  const { context: e, domain: n, values: r } = t, o = {};
4414
4416
  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) {
4415
- const i = Ol(r);
4417
+ const i = Dl(r);
4416
4418
  o.values = Object.keys(i).length > 0 ? i : void 0;
4417
4419
  }
4418
4420
  return Object.keys(o).length > 0 ? o : void 0;
4419
- }, Ol = (t) => !t || typeof t != "object" ? {} : Object.fromEntries(
4421
+ }, Dl = (t) => !t || typeof t != "object" ? {} : Object.fromEntries(
4420
4422
  Object.entries(t).filter(([e]) => Im.includes(e))
4421
4423
  ), Om = Ma("IconExternalLink"), Dm = Ma("IconShare2");
4422
4424
  function kr({ res_id: t, searchParams: e }) {
@@ -4449,7 +4451,7 @@ function kr({ res_id: t, searchParams: e }) {
4449
4451
  ...o !== void 0 && { limit: o },
4450
4452
  ...i && i > 1 && { currentPage: i },
4451
4453
  order: a
4452
- }, y = El(h), { type: v } = c || {};
4454
+ }, y = Ol(h), { type: v } = c || {};
4453
4455
  let b = !g;
4454
4456
  v === "form" && (b = !g || !t);
4455
4457
  const x = /* @__PURE__ */ s("div", { style: { padding: 2 }, children: /* @__PURE__ */ j(nt.Compact, { style: { width: "100%" }, children: [
@@ -4489,7 +4491,7 @@ function kr({ res_id: t, searchParams: e }) {
4489
4491
  }
4490
4492
  )
4491
4493
  ] }) });
4492
- return /* @__PURE__ */ s("div", { style: { maxHeight: 28 }, children: /* @__PURE__ */ s(cd, { content: x, trigger: "click", placement: "bottom", children: /* @__PURE__ */ s("div", { ref: n, children: /* @__PURE__ */ s(
4494
+ return /* @__PURE__ */ s("div", { style: { maxHeight: 28 }, children: /* @__PURE__ */ s(dd, { content: x, trigger: "click", placement: "bottom", children: /* @__PURE__ */ s("div", { ref: n, children: /* @__PURE__ */ s(
4493
4495
  Rt,
4494
4496
  {
4495
4497
  style: { height: 28 },
@@ -4545,7 +4547,7 @@ function km({
4545
4547
  (ce = h == null ? void 0 : h.current) == null || ce.refreshResults();
4546
4548
  }, [h]), Y = I(() => {
4547
4549
  C == null || C(!x);
4548
- }, [x, C]), { actionButtonProps: Z, printButtonProps: se } = _l({
4550
+ }, [x, C]), { actionButtonProps: Z, printButtonProps: se } = El({
4549
4551
  toolbar: n,
4550
4552
  model: g,
4551
4553
  view_id: c == null ? void 0 : c.view_id,
@@ -4554,7 +4556,7 @@ function km({
4554
4556
  parentContext: t,
4555
4557
  selectedRowItems: d,
4556
4558
  onRefreshParentValues: W
4557
- }), me = Rl({
4559
+ }), me = _l({
4558
4560
  selectedRowItems: d,
4559
4561
  onRefreshParentValues: W,
4560
4562
  treeView: c,
@@ -4628,8 +4630,8 @@ function km({
4628
4630
  ), de = I(
4629
4631
  (ce) => {
4630
4632
  if (ce.id === "print_screen") {
4631
- let te = (d == null ? void 0 : d.map((Fe) => Fe.id)) || [];
4632
- te.length === 0 && (te = (_ == null ? void 0 : _.map((Fe) => Fe.id)) || []), me(
4633
+ let te = (d == null ? void 0 : d.map((Ae) => Ae.id)) || [];
4634
+ te.length === 0 && (te = (_ == null ? void 0 : _.map((Ae) => Ae.id)) || []), me(
4633
4635
  {
4634
4636
  id: -1,
4635
4637
  model: g,
@@ -4724,7 +4726,7 @@ function km({
4724
4726
  onClearSavedSearch: i
4725
4727
  }
4726
4728
  ) : /* @__PURE__ */ s(
4727
- Il,
4729
+ Rl,
4728
4730
  {
4729
4731
  icon: /* @__PURE__ */ s(
4730
4732
  qn,
@@ -4740,7 +4742,7 @@ function km({
4740
4742
  }
4741
4743
  ),
4742
4744
  /* @__PURE__ */ s(pt, {}),
4743
- /* @__PURE__ */ s(Al, { disabled: S || !(N != null && N.create) }),
4745
+ /* @__PURE__ */ s(Il, { disabled: S || !(N != null && N.create) }),
4744
4746
  /* @__PURE__ */ s(
4745
4747
  Rt,
4746
4748
  {
@@ -4752,7 +4754,7 @@ function km({
4752
4754
  }
4753
4755
  ),
4754
4756
  /* @__PURE__ */ s(
4755
- Fl,
4757
+ Al,
4756
4758
  {
4757
4759
  icon: /* @__PURE__ */ s(ws, {}),
4758
4760
  tooltip: P("delete"),
@@ -4803,7 +4805,7 @@ function km({
4803
4805
  fn,
4804
4806
  {
4805
4807
  placement: "bottomRight",
4806
- icon: /* @__PURE__ */ s(Dl, {}),
4808
+ icon: /* @__PURE__ */ s(kl, {}),
4807
4809
  onRetrieveData: async () => [
4808
4810
  {
4809
4811
  label: P("export"),
@@ -4842,8 +4844,8 @@ function km({
4842
4844
  /* @__PURE__ */ s(kr, { searchParams: b })
4843
4845
  ] });
4844
4846
  }
4845
- const Mm = et(km), Dl = et(() => /* @__PURE__ */ s(
4846
- Fd,
4847
+ const Mm = et(km), kl = et(() => /* @__PURE__ */ s(
4848
+ Ad,
4847
4849
  {
4848
4850
  component: () => /* @__PURE__ */ j(
4849
4851
  "svg",
@@ -4868,7 +4870,7 @@ const Mm = et(km), Dl = et(() => /* @__PURE__ */ s(
4868
4870
  )
4869
4871
  }
4870
4872
  ));
4871
- Dl.displayName = "ExportIcon";
4873
+ kl.displayName = "ExportIcon";
4872
4874
  const { useToken: Nm } = ot, { Title: Pm, Text: Br } = en, Mr = ({
4873
4875
  title: t,
4874
4876
  children: e,
@@ -4983,7 +4985,7 @@ const { useToken: Nm } = ot, { Title: Pm, Text: Br } = en, Mr = ({
4983
4985
  context: r,
4984
4986
  enabled: o = !0
4985
4987
  }) => {
4986
- const [i, a] = F(!0), [c, l] = F(), [d, f] = F(), u = z(!1), [p, m] = Ae(
4988
+ const [i, a] = F(!0), [c, l] = F(), [d, f] = F(), u = z(!1), [p, m] = Fe(
4987
4989
  U.getHandler().getView
4988
4990
  ), { showErrorNotification: g } = xt();
4989
4991
  He(() => (o && h(), () => {
@@ -5031,7 +5033,7 @@ const { useToken: Nm } = ot, { Title: Pm, Text: Br } = en, Mr = ({
5031
5033
  };
5032
5034
  return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
5033
5035
  }, [t, ...n]), Q(() => r, [r]) - e;
5034
- }, kl = (t) => t.model ? `columnState-${t.treeViewId ?? "tree"}-${t.model}` : void 0, $m = (t) => {
5036
+ }, Ml = (t) => t.model ? `columnState-${t.treeViewId ?? "tree"}-${t.model}` : void 0, $m = (t) => {
5035
5037
  const e = lt(async () => {
5036
5038
  if (!t)
5037
5039
  return;
@@ -5048,9 +5050,9 @@ const { useToken: Nm } = ot, { Title: Pm, Text: Br } = en, Mr = ({
5048
5050
  le(() => () => {
5049
5051
  n(), o();
5050
5052
  }, []);
5051
- const [e, n] = Ae(
5053
+ const [e, n] = Fe(
5052
5054
  U.getHandler().readUserViewPrefs
5053
- ), [r, o] = Ae(
5055
+ ), [r, o] = Fe(
5054
5056
  U.getHandler().saveUserViewPrefs
5055
5057
  ), i = lt(async () => {
5056
5058
  if (!t)
@@ -5112,7 +5114,7 @@ const { useToken: Nm } = ot, { Title: Pm, Text: Br } = en, Mr = ({
5112
5114
  [t]
5113
5115
  );
5114
5116
  return { getColumnState: a, updateColumnState: c };
5115
- }, Ml = ({
5117
+ }, Nl = ({
5116
5118
  key: t,
5117
5119
  treeViewFetching: e = !1
5118
5120
  }) => {
@@ -5165,7 +5167,7 @@ function Hm(t) {
5165
5167
  return 0;
5166
5168
  }
5167
5169
  }
5168
- function Nl(t) {
5170
+ function Pl(t) {
5169
5171
  if (t === void 0)
5170
5172
  return;
5171
5173
  let e, n = Math.floor(Math.abs(t)), r = Math.round(Math.abs(t) % 1 * 100) / 100;
@@ -5181,7 +5183,7 @@ function Nl(t) {
5181
5183
  });
5182
5184
  return e = `${o}:${i}`, t < 0 && (e = "-" + e), e;
5183
5185
  }
5184
- const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Pl, {}) }), Pl = ({ value: t }) => {
5186
+ const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l, {}) }), $l = ({ value: t }) => {
5185
5187
  const e = z(0);
5186
5188
  t !== void 0 && (e.current = t);
5187
5189
  const n = t !== void 0 ? t : e.current, r = `${n.toLocaleString("en-US", {
@@ -5198,7 +5200,7 @@ const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Pl,
5198
5200
  align-items: center;
5199
5201
  width: 100%;
5200
5202
  min-width: 0;
5201
- `, Um = Ot(dd)`
5203
+ `, Um = Ot(ud)`
5202
5204
  flex: 1;
5203
5205
  min-width: 0;
5204
5206
  .ant-progress-outer {
@@ -5258,7 +5260,7 @@ const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Pl,
5258
5260
  }, [c, t]);
5259
5261
  return /* @__PURE__ */ j(En, { children: [
5260
5262
  /* @__PURE__ */ s(
5261
- zd,
5263
+ Kd,
5262
5264
  {
5263
5265
  onRetrieveData: f,
5264
5266
  onItemClick: (u) => {
@@ -5297,11 +5299,11 @@ const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Pl,
5297
5299
  qt
5298
5300
  ), { openRelate: d, openAction: f } = l || {}, u = pe(
5299
5301
  bn
5300
- ), { processAction: p } = u || {}, [m, g] = Ae(
5302
+ ), { processAction: p } = u || {}, [m, g] = Fe(
5301
5303
  U.getHandler().getView
5302
- ), [h, y] = Ae(
5304
+ ), [h, y] = Fe(
5303
5305
  U.getHandler().getToolbar
5304
- ), [v, b] = Ae(
5306
+ ), [v, b] = Fe(
5305
5307
  U.getHandler().readObjects
5306
5308
  ), x = Qt(
5307
5309
  Ft.FEATURE_GET_TOOLBAR
@@ -5416,7 +5418,7 @@ const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Pl,
5416
5418
  const i = e[o];
5417
5419
  return (i == null ? void 0 : i.flatMap((a) => {
5418
5420
  const c = [];
5419
- return "context" in a && c.push(...wd(a.context)), "domain" in a && c.push(...xd(a.domain)), c;
5421
+ return "context" in a && c.push(...xd(a.context)), "domain" in a && c.push(...Cd(a.domain)), c;
5420
5422
  })) || [];
5421
5423
  });
5422
5424
  return [...new Set(r.filter((o) => o in t))];
@@ -5452,14 +5454,14 @@ const U0 = Object.values(mn), Ym = (t) => {
5452
5454
  let r = n;
5453
5455
  e.selectionValues.size ? r = e.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
5454
5456
  const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), i = Er(r);
5455
- return /* @__PURE__ */ s(Vt, { title: r, children: /* @__PURE__ */ s(pa, { alt: r, style: { backgroundColor: i }, children: o }) });
5457
+ return /* @__PURE__ */ s(Ht, { title: r, children: /* @__PURE__ */ s(pa, { alt: r, style: { backgroundColor: i }, children: o }) });
5456
5458
  };
5457
5459
  function Jm(t) {
5458
5460
  return t.length === 0 ? t : t.charAt(0).toUpperCase() + t.slice(1);
5459
5461
  }
5460
- const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l, { ...t }) }), $l = (t) => {
5462
+ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Ll, { ...t }) }), Ll = (t) => {
5461
5463
  var m;
5462
- const { t: e } = xe(), [n, r] = Ae(
5464
+ const { t: e } = xe(), [n, r] = Fe(
5463
5465
  U.getHandler().readObjects
5464
5466
  ), { getFieldValue: o } = pe(st) || {}, { ooui: i, value: a } = t, [c, l] = F("default");
5465
5467
  let d = a, f = Er, u = a;
@@ -5502,7 +5504,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5502
5504
  }, Ds = (t) => {
5503
5505
  let { color: e } = t, n = {};
5504
5506
  if (!La(t.color) && !Va(t.color)) {
5505
- const r = ml(e);
5507
+ const r = pl(e);
5506
5508
  n = {
5507
5509
  color: r.text,
5508
5510
  borderColor: r.text,
@@ -5511,7 +5513,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5511
5513
  }, e = r.background;
5512
5514
  }
5513
5515
  return /* @__PURE__ */ s(ms, { ...t, style: n, color: e, children: t.children });
5514
- }, Ll = ({
5516
+ }, Vl = ({
5515
5517
  emails: t,
5516
5518
  handleClose: e
5517
5519
  }) => {
@@ -5522,7 +5524,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5522
5524
  ms,
5523
5525
  {
5524
5526
  closable: !!e,
5525
- color: mu.isEmail(r, { allow_display_name: !0 }) ? void 0 : "error",
5527
+ color: pu.isEmail(r, { allow_display_name: !0 }) ? void 0 : "error",
5526
5528
  onClose: () => e && e(r),
5527
5529
  children: r
5528
5530
  },
@@ -5587,7 +5589,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5587
5589
  },
5588
5590
  children: [
5589
5591
  /* @__PURE__ */ s(
5590
- Ll,
5592
+ Vl,
5591
5593
  {
5592
5594
  emails: i,
5593
5595
  handleClose: r ? void 0 : h
@@ -5641,7 +5643,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5641
5643
  children: t
5642
5644
  }
5643
5645
  );
5644
- }, Vl = () => pe(wn), ep = ({
5646
+ }, Hl = () => pe(wn), ep = ({
5645
5647
  value: t
5646
5648
  }) => Q(
5647
5649
  () => /* @__PURE__ */ s(
@@ -5659,14 +5661,14 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5659
5661
  [t]
5660
5662
  ), tp = ({
5661
5663
  value: t
5662
- }) => Q(() => /* @__PURE__ */ s(Ll, { emails: t }), [t]), np = ({
5664
+ }) => Q(() => /* @__PURE__ */ s(Vl, { emails: t }), [t]), np = ({
5663
5665
  value: t,
5664
5666
  ooui: e
5665
5667
  }) => Q(
5666
5668
  () => /* @__PURE__ */ s(Ym, { m2oField: t, ooui: e }),
5667
5669
  [t, e]
5668
5670
  ), rp = ({ value: t }) => {
5669
- const { treeType: e } = Nt(), { treeType: n } = Vl() || {}, r = (n || e) === "infinite";
5671
+ const { treeType: e } = Nt(), { treeType: n } = Hl() || {}, r = (n || e) === "infinite";
5670
5672
  return Q(() => {
5671
5673
  const o = /* @__PURE__ */ s(
5672
5674
  dn,
@@ -5680,7 +5682,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5680
5682
  }
5681
5683
  );
5682
5684
  return r ? /* @__PURE__ */ s(
5683
- Vt,
5685
+ Ht,
5684
5686
  {
5685
5687
  title: o,
5686
5688
  color: "white",
@@ -5711,20 +5713,20 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5711
5713
  }
5712
5714
  ) : o;
5713
5715
  }, [t, r]);
5714
- }, op = ({ value: t }) => /* @__PURE__ */ s(Kd, { value: t }), sp = ({
5716
+ }, op = ({ value: t }) => /* @__PURE__ */ s(Jd, { value: t }), sp = ({
5715
5717
  value: t,
5716
5718
  ooui: e
5717
5719
  }) => Q(() => t ? e.fieldType === "many2one" ? /* @__PURE__ */ s(we, { children: t[1] }) : /* @__PURE__ */ s(we, { children: t }) : /* @__PURE__ */ s(we, {}), [t, e.fieldType]), ip = ({
5718
5720
  value: t,
5719
5721
  ooui: e
5720
- }) => /* @__PURE__ */ s(Jd, { value: t, timezone: e.timezone }), vi = ({
5722
+ }) => /* @__PURE__ */ s(Xd, { value: t, timezone: e.timezone }), vi = ({
5721
5723
  value: t
5722
5724
  }) => Q(() => {
5723
5725
  const e = Array.isArray(t == null ? void 0 : t.items) ? t == null ? void 0 : t.items.length : 0;
5724
5726
  return /* @__PURE__ */ s(we, { children: `( ${e} )` });
5725
5727
  }, [t]), ap = ({
5726
5728
  value: t
5727
- }) => Q(() => /* @__PURE__ */ s(Pl, { value: t }), [t]), lp = ({ value: t }) => Q(() => /* @__PURE__ */ s(we, { children: Nl(t) }), [t]), bi = ({ value: t }) => Q(
5729
+ }) => Q(() => /* @__PURE__ */ s($l, { value: t }), [t]), lp = ({ value: t }) => Q(() => /* @__PURE__ */ s(we, { children: Pl(t) }), [t]), bi = ({ value: t }) => Q(
5728
5730
  () => /* @__PURE__ */ s("div", { style: { textAlign: "right" }, children: t }),
5729
5731
  [t]
5730
5732
  ), cp = ({ value: t }) => Q(
@@ -5740,7 +5742,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5740
5742
  ), up = ({
5741
5743
  value: t,
5742
5744
  ooui: e
5743
- }) => Q(() => /* @__PURE__ */ s($l, { ooui: e, value: t }), [e, t]), fp = ({
5745
+ }) => Q(() => /* @__PURE__ */ s(Ll, { ooui: e, value: t }), [e, t]), fp = ({
5744
5746
  value: t,
5745
5747
  ooui: e
5746
5748
  }) => Q(() => {
@@ -5761,7 +5763,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5761
5763
  ooui: e,
5762
5764
  context: n
5763
5765
  }) => {
5764
- const r = jt(
5766
+ const r = Vt(
5765
5767
  () => (t == null ? void 0 : t.items) || [],
5766
5768
  [t == null ? void 0 : t.items]
5767
5769
  ), o = Q(
@@ -5865,7 +5867,7 @@ const xr = ({
5865
5867
  tableRef: o
5866
5868
  }), f = Qt(
5867
5869
  Ft.FEATURE_MANY2ONE_SORT
5868
- ), u = jt(() => {
5870
+ ), u = Vt(() => {
5869
5871
  if (t)
5870
5872
  return Is(
5871
5873
  t,
@@ -5873,7 +5875,7 @@ const xr = ({
5873
5875
  e,
5874
5876
  f
5875
5877
  );
5876
- }, [t, e, f]), p = Ml({
5878
+ }, [t, e, f]), p = Nl({
5877
5879
  key: r ? n : void 0
5878
5880
  }), {
5879
5881
  loading: m,
@@ -5951,9 +5953,9 @@ const xr = ({
5951
5953
  domain: n,
5952
5954
  showEmptyValues: r
5953
5955
  }) => {
5954
- const [o, i] = F(), [a, c] = F(!1), [l, d] = Ae(
5956
+ const [o, i] = F(), [a, c] = F(!1), [l, d] = Fe(
5955
5957
  U.getHandler().readAggregates
5956
- ), f = jt(() => {
5958
+ ), f = Vt(() => {
5957
5959
  if (t)
5958
5960
  return t.columns.filter((m) => Object.keys(m).some((g) => {
5959
5961
  var h;
@@ -6024,7 +6026,7 @@ const xr = ({
6024
6026
  }, [f, n]);
6025
6027
  const p = f !== void 0 && Object.keys(f).length > 0;
6026
6028
  return [a, o, p];
6027
- }, Hl = ({
6029
+ }, Bl = ({
6028
6030
  treeOoui: t,
6029
6031
  model: e,
6030
6032
  selectedRowKeys: n = [],
@@ -6104,10 +6106,10 @@ const xr = ({
6104
6106
  changeSelectedRowKeys: d,
6105
6107
  onSelectionCheckboxClicked: f
6106
6108
  };
6107
- }, Bl = (t) => {
6108
- const { className: e = "w-full", layout: n = "vertical" } = t, r = Xd();
6109
+ }, jl = (t) => {
6110
+ const { className: e = "w-full", layout: n = "vertical" } = t, r = Qd();
6109
6111
  return /* @__PURE__ */ s(Ye, { ...t, layout: n, children: /* @__PURE__ */ s(
6110
- ud.RangePicker,
6112
+ fd.RangePicker,
6111
6113
  {
6112
6114
  allowEmpty: [!0, !0],
6113
6115
  format: "DD/MM/YYYY",
@@ -6207,7 +6209,7 @@ const xr = ({
6207
6209
  autocompleteWithZeros: r !== void 0
6208
6210
  });
6209
6211
  return /* @__PURE__ */ s(
6210
- fd,
6212
+ md,
6211
6213
  {
6212
6214
  ...o,
6213
6215
  ref: i,
@@ -6247,7 +6249,7 @@ const xr = ({
6247
6249
  }
6248
6250
  ),
6249
6251
  /* @__PURE__ */ j("div", { className: "flex flex-col gap-2 w-full", children: [
6250
- /* @__PURE__ */ s(Ze, { className: "w-full", children: /* @__PURE__ */ s(Ve, { span: 24, children: /* @__PURE__ */ s(Bl, { ...t, ooui: i[0], showLabel: !1 }) }) }),
6252
+ /* @__PURE__ */ s(Ze, { className: "w-full", children: /* @__PURE__ */ s(Ve, { span: 24, children: /* @__PURE__ */ s(jl, { ...t, ooui: i[0], showLabel: !1 }) }) }),
6251
6253
  /* @__PURE__ */ s(Ze, { className: "w-full", children: /* @__PURE__ */ s(Ve, { span: 24, children: /* @__PURE__ */ s(Ye, { ...t, ooui: i[1], showLabel: !1, children: /* @__PURE__ */ s(Sp, {}) }) }) })
6252
6254
  ] })
6253
6255
  ] });
@@ -6426,7 +6428,7 @@ const { defaultAlgorithm: Mp, defaultSeed: Np } = ot, Pp = Mp(Np), { Option: $p
6426
6428
  background-color: ${Pp.colorPrimaryBg};
6427
6429
  }
6428
6430
  `;
6429
- function jl(t) {
6431
+ function Ul(t) {
6430
6432
  const { field: e } = t;
6431
6433
  e.readOnly = !1, e.required = !1;
6432
6434
  const { t: n } = xe();
@@ -6448,7 +6450,7 @@ function jl(t) {
6448
6450
  case yn.integer:
6449
6451
  return /* @__PURE__ */ s(kp, { ooui: e, showLabel: !0 });
6450
6452
  case yn.date:
6451
- return /* @__PURE__ */ s(Bl, { ooui: e, layout: "vertical", showLabel: !0 });
6453
+ return /* @__PURE__ */ s(jl, { ooui: e, layout: "vertical", showLabel: !0 });
6452
6454
  case yn.datetime:
6453
6455
  return /* @__PURE__ */ s(Cp, { ooui: e, layout: "vertical", showLabel: !0 });
6454
6456
  case yn.selection:
@@ -6516,7 +6518,7 @@ const { useToken: Bp } = ot, { Title: jp } = en, { Header: Up, Content: Wp, Foot
6516
6518
  padding: "0 16px",
6517
6519
  borderBottom: "1px solid #f0f0f0"
6518
6520
  };
6519
- return /* @__PURE__ */ s(ku, { children: t && /* @__PURE__ */ j(we, { children: [
6521
+ return /* @__PURE__ */ s(Mu, { children: t && /* @__PURE__ */ j(we, { children: [
6520
6522
  /* @__PURE__ */ s(
6521
6523
  si.div,
6522
6524
  {
@@ -6537,7 +6539,7 @@ const { useToken: Bp } = ot, { Title: jp } = en, { Header: Up, Content: Wp, Foot
6537
6539
  }
6538
6540
  ),
6539
6541
  /* @__PURE__ */ s(
6540
- Mu,
6542
+ Nu,
6541
6543
  {
6542
6544
  active: t && !l,
6543
6545
  focusTrapOptions: {
@@ -6620,7 +6622,7 @@ const { useToken: Bp } = ot, { Title: jp } = en, { Header: Up, Content: Wp, Foot
6620
6622
  )
6621
6623
  ] }) });
6622
6624
  };
6623
- var xi = Object.prototype.toString, Ul = function(e) {
6625
+ var xi = Object.prototype.toString, Wl = function(e) {
6624
6626
  var n = xi.call(e), r = n === "[object Arguments]";
6625
6627
  return r || (r = n !== "[object Array]" && e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && xi.call(e.callee) === "[object Function]"), r;
6626
6628
  }, Oo, Ci;
@@ -6630,7 +6632,7 @@ function Yp() {
6630
6632
  Ci = 1;
6631
6633
  var t;
6632
6634
  if (!Object.keys) {
6633
- var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Ul, o = Object.prototype.propertyIsEnumerable, i = !o.call({ toString: null }, "toString"), a = o.call(function() {
6635
+ var e = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Wl, o = Object.prototype.propertyIsEnumerable, i = !o.call({ toString: null }, "toString"), a = o.call(function() {
6634
6636
  }, "prototype"), c = [
6635
6637
  "toString",
6636
6638
  "toLocaleString",
@@ -6712,7 +6714,7 @@ function Yp() {
6712
6714
  }
6713
6715
  return Oo = t, Oo;
6714
6716
  }
6715
- var zp = Array.prototype.slice, Kp = Ul, Si = Object.keys, Ur = Si ? function(e) {
6717
+ var zp = Array.prototype.slice, Kp = Wl, Si = Object.keys, Ur = Si ? function(e) {
6716
6718
  return Si(e);
6717
6719
  } : Yp(), Ti = Object.keys;
6718
6720
  Ur.shim = function() {
@@ -6728,7 +6730,7 @@ Ur.shim = function() {
6728
6730
  Object.keys = Ur;
6729
6731
  return Object.keys || Ur;
6730
6732
  };
6731
- var Wl = Ur, ql = function() {
6733
+ var ql = Ur, Gl = function() {
6732
6734
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
6733
6735
  return !1;
6734
6736
  if (typeof Symbol.iterator == "symbol")
@@ -6754,9 +6756,9 @@ var Wl = Ur, ql = function() {
6754
6756
  return !1;
6755
6757
  }
6756
6758
  return !0;
6757
- }, Jp = ql, $s = function() {
6759
+ }, Jp = Gl, $s = function() {
6758
6760
  return Jp() && !!Symbol.toStringTag;
6759
- }, Gl = Object, Xp = Error, Qp = EvalError, Zp = RangeError, eh = ReferenceError, th = SyntaxError, Yl = TypeError, nh = URIError, rh = Math.abs, oh = Math.floor, sh = Math.max, ih = Math.min, ah = Math.pow, lh = Math.round, ch = Number.isNaN || function(e) {
6761
+ }, Yl = Object, Xp = Error, Qp = EvalError, Zp = RangeError, eh = ReferenceError, th = SyntaxError, zl = TypeError, nh = URIError, rh = Math.abs, oh = Math.floor, sh = Math.max, ih = Math.min, ah = Math.pow, lh = Math.round, ch = Number.isNaN || function(e) {
6760
6762
  return e !== e;
6761
6763
  }, dh = ch, uh = function(e) {
6762
6764
  return dh(e) || e === 0 ? e : e < 0 ? -1 : 1;
@@ -6779,21 +6781,21 @@ function ph() {
6779
6781
  if (Fi)
6780
6782
  return Do;
6781
6783
  Fi = 1;
6782
- var t = typeof Symbol < "u" && Symbol, e = ql;
6784
+ var t = typeof Symbol < "u" && Symbol, e = Gl;
6783
6785
  return Do = function() {
6784
6786
  return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
6785
6787
  }, Do;
6786
6788
  }
6787
6789
  var ko, Ai;
6788
- function zl() {
6790
+ function Kl() {
6789
6791
  return Ai || (Ai = 1, ko = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ko;
6790
6792
  }
6791
6793
  var Mo, Ii;
6792
- function Kl() {
6794
+ function Jl() {
6793
6795
  if (Ii)
6794
6796
  return Mo;
6795
6797
  Ii = 1;
6796
- var t = Gl;
6798
+ var t = Yl;
6797
6799
  return Mo = t.getPrototypeOf || null, Mo;
6798
6800
  }
6799
6801
  var hh = "Function.prototype.bind called on incompatible ", gh = Object.prototype.toString, yh = Math.max, vh = "[object Function]", Ri = function(e, n) {
@@ -6839,7 +6841,7 @@ function Vs() {
6839
6841
  return _i || (_i = 1, No = Function.prototype.call), No;
6840
6842
  }
6841
6843
  var Po, Ei;
6842
- function Jl() {
6844
+ function Xl() {
6843
6845
  return Ei || (Ei = 1, Po = Function.prototype.apply), Po;
6844
6846
  }
6845
6847
  var $o, Oi;
@@ -6851,7 +6853,7 @@ function Th() {
6851
6853
  if (Di)
6852
6854
  return Lo;
6853
6855
  Di = 1;
6854
- var t = Nr, e = Jl(), n = Vs(), r = Sh();
6856
+ var t = Nr, e = Xl(), n = Vs(), r = Sh();
6855
6857
  return Lo = r || t.call(n, e), Lo;
6856
6858
  }
6857
6859
  var Vo, ki;
@@ -6859,7 +6861,7 @@ function Fh() {
6859
6861
  if (ki)
6860
6862
  return Vo;
6861
6863
  ki = 1;
6862
- var t = Nr, e = Yl, n = Vs(), r = Th();
6864
+ var t = Nr, e = zl, n = Vs(), r = Th();
6863
6865
  return Vo = function(i) {
6864
6866
  if (i.length < 1 || typeof i[0] != "function")
6865
6867
  throw new e("a function is required");
@@ -6896,7 +6898,7 @@ function Ih() {
6896
6898
  if (Ni)
6897
6899
  return Bo;
6898
6900
  Ni = 1;
6899
- var t = zl(), e = Kl(), n = Ah();
6901
+ var t = Kl(), e = Jl(), n = Ah();
6900
6902
  return Bo = t ? function(o) {
6901
6903
  return t(o);
6902
6904
  } : e ? function(o) {
@@ -6915,9 +6917,9 @@ function Rh() {
6915
6917
  var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Nr;
6916
6918
  return jo = n.call(t, e), jo;
6917
6919
  }
6918
- var Je, _h = Gl, Eh = Xp, Oh = Qp, Dh = Zp, kh = eh, nr = th, Kn = Yl, Mh = nh, Nh = rh, Ph = oh, $h = sh, Lh = ih, Vh = ah, Hh = lh, Bh = uh, Xl = Function, Uo = function(t) {
6920
+ var Je, _h = Yl, Eh = Xp, Oh = Qp, Dh = Zp, kh = eh, nr = th, Kn = zl, Mh = nh, Nh = rh, Ph = oh, $h = sh, Lh = ih, Vh = ah, Hh = lh, Bh = uh, Ql = Function, Uo = function(t) {
6919
6921
  try {
6920
- return Xl('"use strict"; return (' + t + ").constructor;")();
6922
+ return Ql('"use strict"; return (' + t + ").constructor;")();
6921
6923
  } catch {
6922
6924
  }
6923
6925
  }, Sr = Ls, jh = mh, Wo = function() {
@@ -6932,7 +6934,7 @@ var Je, _h = Gl, Eh = Xp, Oh = Qp, Dh = Zp, kh = eh, nr = th, Kn = Yl, Mh = nh,
6932
6934
  return Wo;
6933
6935
  }
6934
6936
  }
6935
- }() : Wo, Hn = ph()(), Ct = Ih(), Wh = Kl(), qh = zl(), Ql = Jl(), Pr = Vs(), Un = {}, Gh = typeof Uint8Array > "u" || !Ct ? Je : Ct(Uint8Array), An = {
6937
+ }() : Wo, Hn = ph()(), Ct = Ih(), Wh = Jl(), qh = Kl(), Zl = Xl(), Pr = Vs(), Un = {}, Gh = typeof Uint8Array > "u" || !Ct ? Je : Ct(Uint8Array), An = {
6936
6938
  __proto__: null,
6937
6939
  "%AggregateError%": typeof AggregateError > "u" ? Je : AggregateError,
6938
6940
  "%Array%": Array,
@@ -6962,7 +6964,7 @@ var Je, _h = Gl, Eh = Xp, Oh = Qp, Dh = Zp, kh = eh, nr = th, Kn = Yl, Mh = nh,
6962
6964
  "%Float32Array%": typeof Float32Array > "u" ? Je : Float32Array,
6963
6965
  "%Float64Array%": typeof Float64Array > "u" ? Je : Float64Array,
6964
6966
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Je : FinalizationRegistry,
6965
- "%Function%": Xl,
6967
+ "%Function%": Ql,
6966
6968
  "%GeneratorFunction%": Un,
6967
6969
  "%Int8Array%": typeof Int8Array > "u" ? Je : Int8Array,
6968
6970
  "%Int16Array%": typeof Int16Array > "u" ? Je : Int16Array,
@@ -7004,7 +7006,7 @@ var Je, _h = Gl, Eh = Xp, Oh = Qp, Dh = Zp, kh = eh, nr = th, Kn = Yl, Mh = nh,
7004
7006
  "%WeakRef%": typeof WeakRef > "u" ? Je : WeakRef,
7005
7007
  "%WeakSet%": typeof WeakSet > "u" ? Je : WeakSet,
7006
7008
  "%Function.prototype.call%": Pr,
7007
- "%Function.prototype.apply%": Ql,
7009
+ "%Function.prototype.apply%": Zl,
7008
7010
  "%Object.defineProperty%": jh,
7009
7011
  "%Object.getPrototypeOf%": Wh,
7010
7012
  "%Math.abs%": Nh,
@@ -7092,7 +7094,7 @@ var zh = function t(e) {
7092
7094
  "%URIErrorPrototype%": ["URIError", "prototype"],
7093
7095
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
7094
7096
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
7095
- }, $r = Nr, Qr = Rh(), Kh = $r.call(Pr, Array.prototype.concat), Jh = $r.call(Ql, Array.prototype.splice), Li = $r.call(Pr, String.prototype.replace), Zr = $r.call(Pr, String.prototype.slice), Xh = $r.call(Pr, RegExp.prototype.exec), Qh = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Zh = /\\(\\)?/g, eg = function(e) {
7097
+ }, $r = Nr, Qr = Rh(), Kh = $r.call(Pr, Array.prototype.concat), Jh = $r.call(Zl, Array.prototype.splice), Li = $r.call(Pr, String.prototype.replace), Zr = $r.call(Pr, String.prototype.slice), Xh = $r.call(Pr, RegExp.prototype.exec), Qh = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Zh = /\\(\\)?/g, eg = function(e) {
7096
7098
  var n = Zr(e, 0, 1), r = Zr(e, -1);
7097
7099
  if (n === "%" && r !== "%")
7098
7100
  throw new nr("invalid intrinsic syntax, expected closing `%`");
@@ -7145,7 +7147,7 @@ var zh = function t(e) {
7145
7147
  }
7146
7148
  }
7147
7149
  return c;
7148
- }, Zl = { exports: {} };
7150
+ }, ec = { exports: {} };
7149
7151
  (function(t) {
7150
7152
  var e = Nr, n = vo, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), i = n("%Reflect.apply%", !0) || e.call(o, r), a = n("%Object.getOwnPropertyDescriptor%", !0), c = n("%Object.defineProperty%", !0), l = n("%Math.max%");
7151
7153
  if (c)
@@ -7170,19 +7172,19 @@ var zh = function t(e) {
7170
7172
  return i(e, r, arguments);
7171
7173
  };
7172
7174
  c ? c(t.exports, "apply", { value: d }) : t.exports.apply = d;
7173
- })(Zl);
7174
- var Hs = Zl.exports, ec = vo, tc = Hs, ng = tc(ec("String.prototype.indexOf")), nc = function(e, n) {
7175
- var r = ec(e, !!n);
7176
- return typeof r == "function" && ng(e, ".prototype.") > -1 ? tc(r) : r;
7177
- }, rg = $s(), og = nc, rs = og("Object.prototype.toString"), bo = function(e) {
7175
+ })(ec);
7176
+ var Hs = ec.exports, tc = vo, nc = Hs, ng = nc(tc("String.prototype.indexOf")), rc = function(e, n) {
7177
+ var r = tc(e, !!n);
7178
+ return typeof r == "function" && ng(e, ".prototype.") > -1 ? nc(r) : r;
7179
+ }, rg = $s(), og = rc, rs = og("Object.prototype.toString"), bo = function(e) {
7178
7180
  return rg && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rs(e) === "[object Arguments]";
7179
- }, rc = function(e) {
7181
+ }, oc = function(e) {
7180
7182
  return bo(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && rs(e) !== "[object Array]" && rs(e.callee) === "[object Function]";
7181
7183
  }, sg = function() {
7182
7184
  return bo(arguments);
7183
7185
  }();
7184
- bo.isLegacyArguments = rc;
7185
- var ig = sg ? bo : rc, ag = vo, os = ag("%Object.defineProperty%", !0), ss = function() {
7186
+ bo.isLegacyArguments = oc;
7187
+ var ig = sg ? bo : oc, ag = vo, os = ag("%Object.defineProperty%", !0), ss = function() {
7186
7188
  if (os)
7187
7189
  try {
7188
7190
  return os({}, "a", { value: 1 }), !0;
@@ -7200,7 +7202,7 @@ ss.hasArrayLengthDefineBug = function() {
7200
7202
  return !0;
7201
7203
  }
7202
7204
  };
7203
- var Bs = ss, lg = Bs(), js = vo, Vi = lg && js("%Object.defineProperty%", !0), cg = js("%SyntaxError%"), Bn = js("%TypeError%"), Hi = Ls, oc = function(e, n, r) {
7205
+ var Bs = ss, lg = Bs(), js = vo, Vi = lg && js("%Object.defineProperty%", !0), cg = js("%SyntaxError%"), Bn = js("%TypeError%"), Hi = Ls, sc = function(e, n, r) {
7204
7206
  if (!e || typeof e != "object" && typeof e != "function")
7205
7207
  throw new Bn("`obj` must be an object or a function`");
7206
7208
  if (typeof n != "string" && typeof n != "symbol")
@@ -7225,9 +7227,9 @@ var Bs = ss, lg = Bs(), js = vo, Vi = lg && js("%Object.defineProperty%", !0), c
7225
7227
  e[n] = r;
7226
7228
  else
7227
7229
  throw new cg("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
7228
- }, dg = Wl, ug = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", fg = Object.prototype.toString, mg = Array.prototype.concat, Bi = oc, pg = function(t) {
7230
+ }, dg = ql, ug = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", fg = Object.prototype.toString, mg = Array.prototype.concat, Bi = sc, pg = function(t) {
7229
7231
  return typeof t == "function" && fg.call(t) === "[object Function]";
7230
- }, sc = Bs(), hg = function(t, e, n, r) {
7232
+ }, ic = Bs(), hg = function(t, e, n, r) {
7231
7233
  if (e in t) {
7232
7234
  if (r === !0) {
7233
7235
  if (t[e] === n)
@@ -7235,36 +7237,36 @@ var Bs = ss, lg = Bs(), js = vo, Vi = lg && js("%Object.defineProperty%", !0), c
7235
7237
  } else if (!pg(r) || !r())
7236
7238
  return;
7237
7239
  }
7238
- sc ? Bi(t, e, n, !0) : Bi(t, e, n);
7239
- }, ic = function(t, e) {
7240
+ ic ? Bi(t, e, n, !0) : Bi(t, e, n);
7241
+ }, ac = function(t, e) {
7240
7242
  var n = arguments.length > 2 ? arguments[2] : {}, r = dg(e);
7241
7243
  ug && (r = mg.call(r, Object.getOwnPropertySymbols(e)));
7242
7244
  for (var o = 0; o < r.length; o += 1)
7243
7245
  hg(t, r[o], e[r[o]], n[r[o]]);
7244
7246
  };
7245
- ic.supportsDescriptors = !!sc;
7246
- var Lr = ic, ji = function(t) {
7247
+ ac.supportsDescriptors = !!ic;
7248
+ var Lr = ac, ji = function(t) {
7247
7249
  return t !== t;
7248
- }, ac = function(e, n) {
7250
+ }, lc = function(e, n) {
7249
7251
  return e === 0 && n === 0 ? 1 / e === 1 / n : !!(e === n || ji(e) && ji(n));
7250
- }, gg = ac, lc = function() {
7252
+ }, gg = lc, cc = function() {
7251
7253
  return typeof Object.is == "function" ? Object.is : gg;
7252
- }, yg = lc, vg = Lr, bg = function() {
7254
+ }, yg = cc, vg = Lr, bg = function() {
7253
7255
  var e = yg();
7254
7256
  return vg(Object, { is: e }, {
7255
7257
  is: function() {
7256
7258
  return Object.is !== e;
7257
7259
  }
7258
7260
  }), e;
7259
- }, wg = Lr, xg = Hs, Cg = ac, cc = lc, Sg = bg, dc = xg(cc(), Object);
7260
- wg(dc, {
7261
- getPolyfill: cc,
7261
+ }, wg = Lr, xg = Hs, Cg = lc, dc = cc, Sg = bg, uc = xg(dc(), Object);
7262
+ wg(uc, {
7263
+ getPolyfill: dc,
7262
7264
  implementation: Cg,
7263
7265
  shim: Sg
7264
7266
  });
7265
- var Tg = dc, is = nc, uc = $s(), fc, mc, as, ls;
7266
- if (uc) {
7267
- fc = is("Object.prototype.hasOwnProperty"), mc = is("RegExp.prototype.exec"), as = {};
7267
+ var Tg = uc, is = rc, fc = $s(), mc, pc, as, ls;
7268
+ if (fc) {
7269
+ mc = is("Object.prototype.hasOwnProperty"), pc = is("RegExp.prototype.exec"), as = {};
7268
7270
  var qo = function() {
7269
7271
  throw as;
7270
7272
  };
@@ -7273,14 +7275,14 @@ if (uc) {
7273
7275
  valueOf: qo
7274
7276
  }, typeof Symbol.toPrimitive == "symbol" && (ls[Symbol.toPrimitive] = qo);
7275
7277
  }
7276
- var Fg = is("Object.prototype.toString"), Ag = Object.getOwnPropertyDescriptor, Ig = "[object RegExp]", Rg = uc ? function(e) {
7278
+ var Fg = is("Object.prototype.toString"), Ag = Object.getOwnPropertyDescriptor, Ig = "[object RegExp]", Rg = fc ? function(e) {
7277
7279
  if (!e || typeof e != "object")
7278
7280
  return !1;
7279
- var n = Ag(e, "lastIndex"), r = n && fc(n, "value");
7281
+ var n = Ag(e, "lastIndex"), r = n && mc(n, "value");
7280
7282
  if (!r)
7281
7283
  return !1;
7282
7284
  try {
7283
- mc(e, ls);
7285
+ pc(e, ls);
7284
7286
  } catch (o) {
7285
7287
  return o === as;
7286
7288
  }
@@ -7308,17 +7310,17 @@ Tr.boundFunctionsHaveNames = function() {
7308
7310
  return Tr() && typeof _g == "function" && (function() {
7309
7311
  }).bind().name !== "";
7310
7312
  };
7311
- var Eg = Tr, Ui = oc, Og = Bs(), Dg = Eg.functionsHaveConfigurableNames(), kg = TypeError, Mg = function(e, n) {
7313
+ var Eg = Tr, Ui = sc, Og = Bs(), Dg = Eg.functionsHaveConfigurableNames(), kg = TypeError, Mg = function(e, n) {
7312
7314
  if (typeof e != "function")
7313
7315
  throw new kg("`fn` is not a function");
7314
7316
  var r = arguments.length > 2 && !!arguments[2];
7315
7317
  return (!r || Dg) && (Og ? Ui(e, "name", n, !0, !0) : Ui(e, "name", n)), e;
7316
- }, Ng = Mg, Pg = Object, $g = TypeError, pc = Ng(function() {
7318
+ }, Ng = Mg, Pg = Object, $g = TypeError, hc = Ng(function() {
7317
7319
  if (this != null && this !== Pg(this))
7318
7320
  throw new $g("RegExp.prototype.flags getter called on non-object");
7319
7321
  var e = "";
7320
7322
  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;
7321
- }, "get flags", !0), Lg = pc, Vg = Lr.supportsDescriptors, Hg = Object.getOwnPropertyDescriptor, hc = function() {
7323
+ }, "get flags", !0), Lg = hc, Vg = Lr.supportsDescriptors, Hg = Object.getOwnPropertyDescriptor, gc = function() {
7322
7324
  if (Vg && /a/mig.flags === "gim") {
7323
7325
  var e = Hg(RegExp.prototype, "flags");
7324
7326
  if (e && typeof e.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
@@ -7336,7 +7338,7 @@ var Eg = Tr, Ui = oc, Og = Bs(), Dg = Eg.functionsHaveConfigurableNames(), kg =
7336
7338
  }
7337
7339
  }
7338
7340
  return Lg;
7339
- }, Bg = Lr.supportsDescriptors, jg = hc, Ug = Object.getOwnPropertyDescriptor, Wg = Object.defineProperty, qg = TypeError, Wi = Object.getPrototypeOf, Gg = /a/, Yg = function() {
7341
+ }, Bg = Lr.supportsDescriptors, jg = gc, Ug = Object.getOwnPropertyDescriptor, Wg = Object.defineProperty, qg = TypeError, Wi = Object.getPrototypeOf, Gg = /a/, Yg = function() {
7340
7342
  if (!Bg || !Wi)
7341
7343
  throw new qg("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
7342
7344
  var e = jg(), n = Wi(Gg), r = Ug(n, "flags");
@@ -7345,13 +7347,13 @@ var Eg = Tr, Ui = oc, Og = Bs(), Dg = Eg.functionsHaveConfigurableNames(), kg =
7345
7347
  enumerable: !1,
7346
7348
  get: e
7347
7349
  }), e;
7348
- }, zg = Lr, Kg = Hs, Jg = pc, gc = hc, Xg = Yg, yc = Kg(gc());
7349
- zg(yc, {
7350
- getPolyfill: gc,
7350
+ }, zg = Lr, Kg = Hs, Jg = hc, yc = gc, Xg = Yg, vc = Kg(yc());
7351
+ zg(vc, {
7352
+ getPolyfill: yc,
7351
7353
  implementation: Jg,
7352
7354
  shim: Xg
7353
7355
  });
7354
- var Qg = yc, Zg = Date.prototype.getDay, ey = function(e) {
7356
+ var Qg = vc, Zg = Date.prototype.getDay, ey = function(e) {
7355
7357
  try {
7356
7358
  return Zg.call(e), !0;
7357
7359
  } catch {
@@ -7359,8 +7361,8 @@ var Qg = yc, Zg = Date.prototype.getDay, ey = function(e) {
7359
7361
  }
7360
7362
  }, ty = Object.prototype.toString, ny = "[object Date]", ry = $s(), oy = function(e) {
7361
7363
  return typeof e != "object" || e === null ? !1 : ry ? ey(e) : ty.call(e) === ny;
7362
- }, qi = Wl, Gi = ig, Yi = Tg, zi = Rg, Ki = Qg, Ji = oy, Xi = Date.prototype.getTime;
7363
- function vc(t, e, n) {
7364
+ }, qi = ql, Gi = ig, Yi = Tg, zi = Rg, Ki = Qg, Ji = oy, Xi = Date.prototype.getTime;
7365
+ function bc(t, e, n) {
7364
7366
  var r = n || {};
7365
7367
  return (r.strict ? Yi(t, e) : t === e) ? !0 : !t || !e || typeof t != "object" && typeof e != "object" ? r.strict ? Yi(t, e) : t == e : sy(t, e, r);
7366
7368
  }
@@ -7405,11 +7407,11 @@ function sy(t, e, n) {
7405
7407
  if (d[r] != f[r])
7406
7408
  return !1;
7407
7409
  for (r = d.length - 1; r >= 0; r--)
7408
- if (o = d[r], !vc(t[o], e[o], n))
7410
+ if (o = d[r], !bc(t[o], e[o], n))
7409
7411
  return !1;
7410
7412
  return !0;
7411
7413
  }
7412
- var iy = vc;
7414
+ var iy = bc;
7413
7415
  const lr = /* @__PURE__ */ qa(iy), { Text: ay } = en, ly = ({
7414
7416
  currentModel: t,
7415
7417
  context: e,
@@ -7428,9 +7430,9 @@ const lr = /* @__PURE__ */ qa(iy), { Text: ay } = en, ly = ({
7428
7430
  setSavedSearches: u
7429
7431
  } = Nt(), [p, m] = F(
7430
7432
  (o == null ? void 0 : o.name) || ""
7431
- ), [g, h] = F(!1), [y, v] = F(!1), [b, x] = F(!1), [C, w] = F(!1), [A, S] = F(""), [R] = Ae(
7433
+ ), [g, h] = F(!1), [y, v] = F(!1), [b, x] = F(!1), [C, w] = F(!1), [A, S] = F(""), [R] = Fe(
7432
7434
  U.getHandler().update
7433
- ), [D] = Ae(
7435
+ ), [D] = Fe(
7434
7436
  U.getHandler().create
7435
7437
  );
7436
7438
  He(() => {
@@ -7734,7 +7736,7 @@ const lr = /* @__PURE__ */ qa(iy), { Text: ay } = en, ly = ({
7734
7736
  shouldShowSaveButtonGroup: $,
7735
7737
  shouldShowSaveAsNew: H
7736
7738
  };
7737
- }, bc = Ht(
7739
+ }, wc = Bt(
7738
7740
  (t, e) => {
7739
7741
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: i, onClear: a } = t, [c] = _t.useForm(), [l, d] = F({}), [f, u] = F(""), { t: p } = xe(), [m, g] = F(0), h = z(null), [y, v] = F([]);
7740
7742
  He(() => {
@@ -7809,7 +7811,7 @@ const lr = /* @__PURE__ */ qa(iy), { Text: ay } = en, ly = ({
7809
7811
  },
7810
7812
  "data-field-id": V,
7811
7813
  children: [
7812
- /* @__PURE__ */ s("div", { style: { flex: 1 }, children: /* @__PURE__ */ s(jl, { field: T }, `sf-${V}`) }),
7814
+ /* @__PURE__ */ s("div", { style: { flex: 1 }, children: /* @__PURE__ */ s(Ul, { field: T }, `sf-${V}`) }),
7813
7815
  M && /* @__PURE__ */ s(
7814
7816
  Ge,
7815
7817
  {
@@ -7971,8 +7973,8 @@ const lr = /* @__PURE__ */ qa(iy), { Text: ay } = en, ly = ({
7971
7973
  ) });
7972
7974
  }
7973
7975
  );
7974
- bc.displayName = "SideSearchFilterComponent";
7975
- const wc = (t) => {
7976
+ wc.displayName = "SideSearchFilterComponent";
7977
+ const xc = (t) => {
7976
7978
  var ae;
7977
7979
  const {
7978
7980
  onSubmit: e,
@@ -7987,7 +7989,7 @@ const wc = (t) => {
7987
7989
  } = t, f = z(), { t: u } = xe(), p = z(), m = z(null), {
7988
7990
  currentSavedSearch: g,
7989
7991
  searchParams: h
7990
- } = Nt(), [y, v] = F([]), [b, x] = F({}), C = jt(() => y, [y]), w = jt(() => `${u("filter")} (${(C == null ? void 0 : C.length) || 0})`, [u, C]), A = jt(() => {
7992
+ } = Nt(), [y, v] = F([]), [b, x] = F({}), C = Vt(() => y, [y]), w = Vt(() => `${u("filter")} (${(C == null ? void 0 : C.length) || 0})`, [u, C]), A = Vt(() => {
7991
7993
  if (!b)
7992
7994
  return 0;
7993
7995
  const X = /* @__PURE__ */ new Set();
@@ -8100,11 +8102,11 @@ const wc = (t) => {
8100
8102
  var ie, J, de, ue, fe;
8101
8103
  if (X) {
8102
8104
  const ce = { ...ee };
8103
- Object.entries(ee).forEach(([Fe]) => {
8104
- Fe.replace(/#.*$/, "") === X.replace(/#.*$/, "") && (ce[Fe] = void 0);
8105
+ Object.entries(ee).forEach(([Ae]) => {
8106
+ Ae.replace(/#.*$/, "") === X.replace(/#.*$/, "") && (ce[Ae] = void 0);
8105
8107
  }), (ie = m.current) == null || ie.setFieldsValue(ce);
8106
8108
  const te = y ? y.filter(
8107
- (Fe) => Fe[0].replace(/#.*$/, "") !== X.replace(/#.*$/, "")
8109
+ (Ae) => Ae[0].replace(/#.*$/, "") !== X.replace(/#.*$/, "")
8108
8110
  ) : [];
8109
8111
  v(te);
8110
8112
  return;
@@ -8112,7 +8114,7 @@ const wc = (t) => {
8112
8114
  (J = m.current) == null || J.resetFields(), (de = m.current) == null || de.setFieldsValue({}), (fe = (ue = m.current) == null ? void 0 : ue.resetInitialValues) == null || fe.call(ue), v([]), x({}), q(), o && o();
8113
8115
  },
8114
8116
  [y, o, q]
8115
- ), G = jt(() => $ ? K ? /* @__PURE__ */ j(nt.Compact, { size: "small", children: [
8117
+ ), G = Vt(() => $ ? K ? /* @__PURE__ */ j(nt.Compact, { size: "small", children: [
8116
8118
  /* @__PURE__ */ s(
8117
8119
  Ge,
8118
8120
  {
@@ -8185,7 +8187,7 @@ const wc = (t) => {
8185
8187
  }
8186
8188
  ),
8187
8189
  children: n && /* @__PURE__ */ s(
8188
- bc,
8190
+ wc,
8189
8191
  {
8190
8192
  ref: m,
8191
8193
  searchFields: p.current,
@@ -8312,7 +8314,7 @@ function uy(t) {
8312
8314
  } = t, { t: a } = xe();
8313
8315
  return /* @__PURE__ */ j(Ze, { children: [
8314
8316
  !i && /* @__PURE__ */ s(Ve, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ j("a", { className: "text-xs", onClick: e, children: [
8315
- n ? /* @__PURE__ */ s(_d, { className: "pr-1" }) : /* @__PURE__ */ s(Fr, { className: "pr-1" }),
8317
+ n ? /* @__PURE__ */ s(Ed, { className: "pr-1" }) : /* @__PURE__ */ s(Fr, { className: "pr-1" }),
8316
8318
  a(n ? "simple_search" : "advanced_search")
8317
8319
  ] }) }),
8318
8320
  /* @__PURE__ */ j(Ve, { span: i ? 24 : 12, className: "text-right pb-2", children: [
@@ -8377,7 +8379,7 @@ function wo(t) {
8377
8379
  if (!y)
8378
8380
  return;
8379
8381
  const k = b ? y : g, E = k == null ? void 0 : k.rows;
8380
- return E == null ? void 0 : E.map((T, M) => /* @__PURE__ */ s(Ze, { children: T.map((O, V) => /* @__PURE__ */ s(Ve, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ s(jl, { field: O }) }, V)) }, M));
8382
+ return E == null ? void 0 : E.map((T, M) => /* @__PURE__ */ s(Ze, { children: T.map((O, V) => /* @__PURE__ */ s(Ve, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ s(Ul, { field: O }) }, V)) }, M));
8381
8383
  };
8382
8384
  He(() => {
8383
8385
  x(!1), C.current = new Ca(n, e), C.current.parse(), h(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
@@ -8454,7 +8456,7 @@ function wo(t) {
8454
8456
  }
8455
8457
  );
8456
8458
  }
8457
- function xc({
8459
+ function Cc({
8458
8460
  useLocalState: t = !1
8459
8461
  }) {
8460
8462
  const e = Ly() && !t, n = Nt(), [r, o] = F(!1), [i, 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, A] = F(), [S, R] = F(0), [D, _] = F(), [k, E] = F(1), [T, M] = F(_n), [O, V] = F(Et);
@@ -8566,7 +8568,7 @@ const cr = () => {
8566
8568
  }) => {
8567
8569
  const [u, p] = F(!1), m = z([]), g = e == null ? void 0 : e.fields, h = (e == null ? void 0 : e.fields_in_conditions) !== void 0, [y, v] = F(
8568
8570
  /* @__PURE__ */ new Set()
8569
- ), b = z(/* @__PURE__ */ new Set()), x = z([]), C = z(null), [w, A] = F(!0), [S, R] = Ae(
8571
+ ), b = z(/* @__PURE__ */ new Set()), x = z([]), C = z(null), [w, A] = F(!0), [S, R] = Fe(
8570
8572
  async ($) => U.getHandler().processSearchResults({
8571
8573
  searchIds: $.searchIds,
8572
8574
  model: t,
@@ -8574,7 +8576,7 @@ const cr = () => {
8574
8576
  context: r,
8575
8577
  fields: g
8576
8578
  })
8577
- ), [D, _] = Ae(
8579
+ ), [D, _] = Fe(
8578
8580
  U.getHandler().parseConditions
8579
8581
  ), k = cr();
8580
8582
  le(() => {
@@ -8754,9 +8756,9 @@ const cr = () => {
8754
8756
  treeView: l,
8755
8757
  results: d,
8756
8758
  onRecordsUpdated: f
8757
- } = t, u = Q(() => 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 = z(null), [g, h] = F(!0), [y, v] = Ae(
8759
+ } = t, u = Q(() => 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 = z(null), [g, h] = F(!0), [y, v] = Fe(
8758
8760
  U.getHandler().readObjects
8759
- ), [b, x] = Ae(
8761
+ ), [b, x] = Fe(
8760
8762
  U.getHandler().parseConditions
8761
8763
  ), C = cr(), w = z({}), A = I(
8762
8764
  (E, T) => T ? o == null ? void 0 : o.some(
@@ -8928,7 +8930,7 @@ const cr = () => {
8928
8930
  f
8929
8931
  ]
8930
8932
  );
8931
- }, Cc = ({
8933
+ }, Sc = ({
8932
8934
  onFilterSearchClick: t
8933
8935
  }) => {
8934
8936
  const { t: e } = xe(), n = (a) => {
@@ -9013,10 +9015,10 @@ const cr = () => {
9013
9015
  record: e,
9014
9016
  column: n,
9015
9017
  isFieldLoading: r
9016
- }) => r != null && r(e, n.key) ? /* @__PURE__ */ s(Qd, {}) : n.render(t, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context)
9018
+ }) => r != null && r(e, n.key) ? /* @__PURE__ */ s(Zd, {}) : n.render(t, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context)
9017
9019
  );
9018
9020
  xo.displayName = "CellRenderer";
9019
- const Sc = ({
9021
+ const Tc = ({
9020
9022
  tableRef: t,
9021
9023
  autoRefresh: e
9022
9024
  }) => {
@@ -9047,11 +9049,11 @@ function Cy(t, e) {
9047
9049
  } = t, b = z(null), x = z([]), C = z(!1), { showErrorNotification: w } = xt(), { setCurrentSavedSearch: A } = Nt(), [S, R] = F(), [D, _] = F(!1), k = z(), E = z(null), T = Os({
9048
9050
  elementRef: E,
9049
9051
  offset: wy
9050
- }), M = y !== void 0 ? y : T, [O, V] = Ae(
9052
+ }), M = y !== void 0 ? y : T, [O, V] = Fe(
9051
9053
  U.getHandler().searchCount
9052
- ), [N, L] = Ae(
9054
+ ), [N, L] = Fe(
9053
9055
  U.getHandler().searchForTree
9054
- ), [q, P] = Ae(
9056
+ ), [q, P] = Fe(
9055
9057
  U.getHandler().searchAllIds
9056
9058
  );
9057
9059
  le(() => () => {
@@ -9080,20 +9082,20 @@ function Cy(t, e) {
9080
9082
  results: fe,
9081
9083
  setSearchQuery: ce,
9082
9084
  setTotalItems: te,
9083
- isActive: Fe,
9085
+ isActive: Ae,
9084
9086
  order: Ce,
9085
9087
  setOrder: Ie
9086
- } = xc({ useLocalState: !l }), he = u || J, ge = z(he), Ne = z(!1), Qe = z(), Oe = z(), We = z(!1), Me = z(he), Xe = z(!1);
9088
+ } = Cc({ useLocalState: !l }), he = u || J, ge = z(he), Ne = z(!1), Qe = z(), Oe = z(), We = z(!1), Me = z(he), Xe = z(!1);
9087
9089
  le(() => {
9088
9090
  var Ue;
9089
9091
  k.current !== void 0 && k.current !== S && (se == null || se(0), !(Me.current !== void 0 && he !== void 0) && !Xe.current && ((Ue = b.current) == null || Ue.refresh()), Xe.current = !1, setTimeout(() => {
9090
- var Bt;
9091
- (Bt = b.current) == null || Bt.scrollToTop();
9092
+ var jt;
9093
+ (jt = b.current) == null || jt.scrollToTop();
9092
9094
  }, 0)), k.current = S, Me.current = he;
9093
9095
  }, [S]), le(() => {
9094
- var wt, ct, Bt, Ln;
9096
+ var wt, ct, jt, Ln;
9095
9097
  const Ue = he && he.trim().length > 0, it = ge.current && typeof ge.current == "string" && ge.current.trim().length > 0;
9096
- Ue && !it || Ue && it && he !== ge.current ? (Ne.current = !0, ae == null || ae([]), ie == null || ie({}), Pt([]), (wt = b.current) == null || wt.unselectAll(), se == null || se(0), (ct = b.current) == null || ct.scrollToTop()) : !Ue && it && (Ne.current = !1, Pt([]), (Bt = b.current) == null || Bt.unselectAll(), se == null || se(0), (Ln = b.current) == null || Ln.scrollToTop(), setTimeout(() => {
9098
+ Ue && !it || Ue && it && he !== ge.current ? (Ne.current = !0, ae == null || ae([]), ie == null || ie({}), Pt([]), (wt = b.current) == null || wt.unselectAll(), se == null || se(0), (ct = b.current) == null || ct.scrollToTop()) : !Ue && it && (Ne.current = !1, Pt([]), (jt = b.current) == null || jt.unselectAll(), se == null || se(0), (Ln = b.current) == null || Ln.scrollToTop(), setTimeout(() => {
9097
9099
  Xe.current = !0, ut();
9098
9100
  }, 0)), ge.current = he;
9099
9101
  }, [he]);
@@ -9116,7 +9118,7 @@ function Cy(t, e) {
9116
9118
  } = ks({
9117
9119
  treeOoui: Le,
9118
9120
  parentContext: d,
9119
- columnStateKey: $ ? kl({
9121
+ columnStateKey: $ ? Ml({
9120
9122
  treeViewId: $.view_id,
9121
9123
  model: n
9122
9124
  }) : void 0,
@@ -9133,7 +9135,7 @@ function Cy(t, e) {
9133
9135
  treeView: $,
9134
9136
  tableRef: b,
9135
9137
  context: d,
9136
- isActive: Fe,
9138
+ isActive: Ae,
9137
9139
  treeOoui: Le,
9138
9140
  updateAttributes: ke,
9139
9141
  results: fe,
@@ -9212,11 +9214,11 @@ function Cy(t, e) {
9212
9214
  Ie == null || Ie(be), ct = br(Ee);
9213
9215
  }
9214
9216
  C.current = !0;
9215
- const Bt = he ? a : Yt, Ln = xr({
9217
+ const jt = he ? a : Yt, Ln = xr({
9216
9218
  treeOoui: Le,
9217
9219
  hasFunctionFieldsToParseConditions: Gt && vt()
9218
9220
  }), { results: gn, attrsEvaluated: Vn } = await N({
9219
- params: Bt,
9221
+ params: jt,
9220
9222
  limit: it - Ue,
9221
9223
  offset: Ue,
9222
9224
  model: n,
@@ -9232,7 +9234,7 @@ function Cy(t, e) {
9232
9234
  });
9233
9235
  if (ce == null || ce({
9234
9236
  model: n,
9235
- params: Bt,
9237
+ params: jt,
9236
9238
  name_search: he,
9237
9239
  context: d,
9238
9240
  order: ct
@@ -9314,7 +9316,7 @@ function Cy(t, e) {
9314
9316
  });
9315
9317
  return B == null || B(!1), ct;
9316
9318
  } catch (ct) {
9317
- throw console.error(ct), R((Bt) => Bt ?? 0), te((Bt) => Bt ?? 0), B == null || B(!1), w(ct), ct;
9319
+ throw console.error(ct), R((jt) => jt ?? 0), te((jt) => jt ?? 0), B == null || B(!1), w(ct), ct;
9318
9320
  }
9319
9321
  },
9320
9322
  [
@@ -9325,7 +9327,7 @@ function Cy(t, e) {
9325
9327
  mt,
9326
9328
  he
9327
9329
  ]
9328
- ), { footerComponent: Kt } = Hl({
9330
+ ), { footerComponent: Kt } = Bl({
9329
9331
  treeOoui: Le,
9330
9332
  model: n,
9331
9333
  selectedRowKeys: ln,
@@ -9333,11 +9335,11 @@ function Cy(t, e) {
9333
9335
  }), Sn = z(me);
9334
9336
  Sn.current = me;
9335
9337
  const $n = I(() => Sn.current, []);
9336
- Sc({
9338
+ Tc({
9337
9339
  tableRef: b,
9338
9340
  autoRefresh: v
9339
9341
  });
9340
- const Te = Ne.current ? Et : void 0, qe = jt(() => !nn || !Le ? null : /* @__PURE__ */ s(
9342
+ const Te = Ne.current ? Et : void 0, qe = Vt(() => !nn || !Le ? null : /* @__PURE__ */ s(
9341
9343
  Ss,
9342
9344
  {
9343
9345
  readonly: !1,
@@ -9509,7 +9511,7 @@ function Cy(t, e) {
9509
9511
  }
9510
9512
  ),
9511
9513
  p === "side" && /* @__PURE__ */ s(
9512
- wc,
9514
+ xc,
9513
9515
  {
9514
9516
  ...ur,
9515
9517
  onClose: hn,
@@ -9522,7 +9524,7 @@ function Cy(t, e) {
9522
9524
  selectedRowKeys: ln,
9523
9525
  totalRows: S,
9524
9526
  customMiddleComponent: To && /* @__PURE__ */ s(
9525
- Cc,
9527
+ Sc,
9526
9528
  {
9527
9529
  onFilterSearchClick: () => Y == null ? void 0 : Y(!0)
9528
9530
  }
@@ -9532,7 +9534,7 @@ function Cy(t, e) {
9532
9534
  /* @__PURE__ */ s("div", { ref: E, style: $t, children: K || ve ? /* @__PURE__ */ s(rt, {}) : qe })
9533
9535
  ] });
9534
9536
  }
9535
- const Ws = Ht(Cy), ta = (t, e = "14px -apple-system") => {
9537
+ const Ws = Bt(Cy), ta = (t, e = "14px -apple-system") => {
9536
9538
  const r = document.createElement("canvas").getContext("2d");
9537
9539
  r.font = e;
9538
9540
  const o = r.measureText(t);
@@ -9654,7 +9656,7 @@ function hr(t, e) {
9654
9656
  }
9655
9657
  return t !== t && e !== e;
9656
9658
  }
9657
- const Tc = Ht(
9659
+ const Fc = Bt(
9658
9660
  (t, e) => {
9659
9661
  var me;
9660
9662
  const {
@@ -9721,7 +9723,7 @@ const Tc = Ht(
9721
9723
  ).length;
9722
9724
  return l ? null : o === void 0 ? /* @__PURE__ */ s(rt, { className: "pb-4" }) : /* @__PURE__ */ j(Ze, { align: "bottom", className: "pb-4", children: [
9723
9725
  /* @__PURE__ */ s(Ve, { span: S ? 8 : 12, children: /* @__PURE__ */ s(
9724
- md,
9726
+ pd,
9725
9727
  {
9726
9728
  total: o,
9727
9729
  pageSize: V.current === 0 ? o : V.current,
@@ -9771,7 +9773,7 @@ const Tc = Ht(
9771
9773
  return T === null || !Z || ((me = Z == null ? void 0 : Z.columns) == null ? void 0 : me.length) === 0 ? /* @__PURE__ */ s(rt, { style: { padding: "2rem" } }) : /* @__PURE__ */ j(Xn, { children: [
9772
9774
  W,
9773
9775
  /* @__PURE__ */ s(
9774
- uu,
9776
+ fu,
9775
9777
  {
9776
9778
  ref: R,
9777
9779
  height: se,
@@ -9783,7 +9785,7 @@ const Tc = Ht(
9783
9785
  if (g[G.id])
9784
9786
  return { color: g[G.id] };
9785
9787
  },
9786
- onRowStatus: wf(h) ? (G) => {
9788
+ onRowStatus: xf(h) ? (G) => {
9787
9789
  if (h[G.id])
9788
9790
  return /* @__PURE__ */ s(Dn, { color: h[G.id] });
9789
9791
  } : void 0,
@@ -9804,10 +9806,10 @@ const Tc = Ht(
9804
9806
  Y
9805
9807
  ] });
9806
9808
  }
9807
- ), Vr = et(Tc);
9809
+ ), Vr = et(Fc);
9808
9810
  Vr.displayName = "Tree";
9809
- Tc.displayName = "UnmemoizedTree";
9810
- const Fc = (t) => {
9811
+ Fc.displayName = "UnmemoizedTree";
9812
+ const Ac = (t) => {
9811
9813
  const {
9812
9814
  model: e,
9813
9815
  setSearchTreeNameSearch: n,
@@ -9847,11 +9849,11 @@ const Fc = (t) => {
9847
9849
  context: d
9848
9850
  });
9849
9851
  if (P(te.length), f == null || f(te.length), te.length > 0) {
9850
- const Fe = te.map((We) => We == null ? void 0 : We[0]), { colors: Ce, status: Ie } = rn(u), he = {};
9852
+ const Ae = te.map((We) => We == null ? void 0 : We[0]), { colors: Ce, status: Ie } = rn(u), he = {};
9851
9853
  Ce && (he.colors = Ce), Ie && (he.status = Ie);
9852
9854
  const ge = await U.getHandler().readEvalUiObjects({
9853
9855
  model: e,
9854
- ids: Fe,
9856
+ ids: Ae,
9855
9857
  arch: u == null ? void 0 : u.arch,
9856
9858
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
9857
9859
  context: d,
@@ -9881,7 +9883,7 @@ const Fc = (t) => {
9881
9883
  f
9882
9884
  ]), X = I(
9883
9885
  async (te) => {
9884
- const { params: Fe, newOffset: Ce } = te || {}, Ie = an(Fe || A, b), { colors: he, status: ge } = rn(u), Ne = {};
9886
+ const { params: Ae, newOffset: Ce } = te || {}, Ie = an(Ae || A, b), { colors: he, status: ge } = rn(u), Ne = {};
9885
9887
  he && (Ne.colors = he), ge && (Ne.status = ge);
9886
9888
  const { totalItems: Qe, results: Oe, attrsEvaluated: We } = await U.getHandler().searchForTree({
9887
9889
  params: Ie,
@@ -9928,8 +9930,8 @@ const Fc = (t) => {
9928
9930
  async (te) => {
9929
9931
  try {
9930
9932
  _(!0), a == null || a(!0), c && !l.current ? await ae() : await X(te), R == null || R();
9931
- } catch (Fe) {
9932
- M(typeof Fe == "string" ? Fe : Fe.message), _(!1);
9933
+ } catch (Ae) {
9934
+ M(typeof Ae == "string" ? Ae : Ae.message), _(!1);
9933
9935
  } finally {
9934
9936
  r == null || r([]), E(!1), a == null || a(!1);
9935
9937
  }
@@ -9948,12 +9950,12 @@ const Fc = (t) => {
9948
9950
  if (JSON.stringify(te) === JSON.stringify(m))
9949
9951
  return;
9950
9952
  g == null || g(te);
9951
- const Fe = te !== void 0 ? Gn({
9953
+ const Ae = te !== void 0 ? Gn({
9952
9954
  resultsToSort: G,
9953
9955
  sorter: te,
9954
9956
  fields: { ...u.fields, ...p.fields }
9955
9957
  }) : [...se.current];
9956
- me(Fe);
9958
+ me(Ae);
9957
9959
  },
9958
9960
  [
9959
9961
  m,
@@ -9965,9 +9967,9 @@ const Fc = (t) => {
9965
9967
  ]
9966
9968
  ), J = I(
9967
9969
  (te) => {
9968
- const { params: Fe, searchValues: Ce, limit: Ie, offset: he } = te;
9969
- D || (n == null || n(void 0), r == null || r([]), S == null || S(Ce), o == null || o(Fe), i == null || i(!1), E(!0), M(void 0), V(1), Ie && (Z.current = Ie, w == null || w(Ie)), he && L(he), ee({
9970
- params: Fe,
9970
+ const { params: Ae, searchValues: Ce, limit: Ie, offset: he } = te;
9971
+ D || (n == null || n(void 0), r == null || r([]), S == null || S(Ce), o == null || o(Ae), i == null || i(!1), E(!0), M(void 0), V(1), Ie && (Z.current = Ie, w == null || w(Ie)), he && L(he), ee({
9972
+ params: Ae,
9971
9973
  newOffset: he
9972
9974
  }));
9973
9975
  },
@@ -9997,9 +9999,9 @@ const Fc = (t) => {
9997
9999
  C
9998
10000
  ]), fe = I(
9999
10001
  async (te) => {
10000
- const Fe = te[(u == null ? void 0 : u.field_parent) || "child_id"], Ce = await U.getHandler().readObjects({
10002
+ const Ae = te[(u == null ? void 0 : u.field_parent) || "child_id"], Ce = await U.getHandler().readObjects({
10001
10003
  model: e,
10002
- ids: Fe,
10004
+ ids: Ae,
10003
10005
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
10004
10006
  context: d
10005
10007
  });
@@ -10079,7 +10081,7 @@ function Ay(t, e) {
10079
10081
  ), {
10080
10082
  submit: ce,
10081
10083
  clear: te,
10082
- fetchResults: Fe,
10084
+ fetchResults: Ae,
10083
10085
  tableRefreshing: Ce,
10084
10086
  searchFilterLoading: Ie,
10085
10087
  searchError: he,
@@ -10094,7 +10096,7 @@ function Ay(t, e) {
10094
10096
  statusForResults: ze,
10095
10097
  totalItems: je,
10096
10098
  getAllIds: Pe
10097
- } = Fc({
10099
+ } = Ac({
10098
10100
  model: x,
10099
10101
  setSearchTreeNameSearch: ae,
10100
10102
  setSelectedRowItems: fe,
@@ -10122,11 +10124,11 @@ function Ay(t, e) {
10122
10124
  });
10123
10125
  Ut(e, () => ({
10124
10126
  refreshResults: () => {
10125
- v.current = !1, Fe();
10127
+ v.current = !1, Ae();
10126
10128
  },
10127
10129
  getFields: () => w == null ? void 0 : w.fields
10128
10130
  })), le(() => {
10129
- h && d && w && (v.current = !1, Fe());
10131
+ h && d && w && (v.current = !1, Ae());
10130
10132
  }, [ge, Qe, h, d, a, w]);
10131
10133
  const Se = async () => {
10132
10134
  y(!1), g(!0), _(void 0), X == null || X(!0);
@@ -10295,7 +10297,7 @@ function Ay(t, e) {
10295
10297
  ]), yt = D || he;
10296
10298
  return yt ? (console.error(yt), /* @__PURE__ */ s(Tt, { className: "mt-10", message: yt, type: "error", banner: !0 })) : /* @__PURE__ */ s("div", { style: d ? {} : { display: "none" }, children: m ? /* @__PURE__ */ s(rt, {}) : Re() });
10297
10299
  }
10298
- const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10300
+ const Ic = Bt(Ay), Iy = Et, Ry = (t) => {
10299
10301
  const {
10300
10302
  treeViewFetching: e,
10301
10303
  treeOoui: n,
@@ -10342,7 +10344,7 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10342
10344
  setOrder: Y,
10343
10345
  limit: Z,
10344
10346
  setLimit: se
10345
- } = xc({ useLocalState: !i }), { treeMaxLimit: me } = tn(), { setCurrentSavedSearch: G } = Nt(), ae = y ? 0 : Math.min(Z, me), [X, ee] = F(!0), [ie, J] = F(), [de, ue] = F([]), [fe, ce] = F(!1), te = a || V, Fe = z(te), Ce = z(M), Ie = z(C), he = z(), ge = z([]), Ne = z(!1), [Qe, Oe] = Ae(
10347
+ } = Cc({ useLocalState: !i }), { treeMaxLimit: me } = tn(), { setCurrentSavedSearch: G } = Nt(), ae = y ? 0 : Math.min(Z, me), [X, ee] = F(!0), [ie, J] = F(), [de, ue] = F([]), [fe, ce] = F(!1), te = a || V, Ae = z(te), Ce = z(M), Ie = z(C), he = z(), ge = z([]), Ne = z(!1), [Qe, Oe] = Fe(
10346
10348
  U.getHandler().parseConditions
10347
10349
  ), We = I((Te) => {
10348
10350
  ge.current = ge.current.map((qe) => {
@@ -10370,11 +10372,11 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10370
10372
  updateAttributes: p,
10371
10373
  results: q,
10372
10374
  autoRefresh: v
10373
- }), { showErrorNotification: Se } = xt(), [Be, ne] = Ae(
10375
+ }), { showErrorNotification: Se } = xt(), [Be, ne] = Fe(
10374
10376
  U.getHandler().searchCount
10375
- ), [ye, _e] = Ae(
10377
+ ), [ye, _e] = Fe(
10376
10378
  U.getHandler().searchForTree
10377
- ), [De, ve] = Ae(
10379
+ ), [De, ve] = Fe(
10378
10380
  U.getHandler().searchAllIds
10379
10381
  ), ke = Q(
10380
10382
  () => an(M || [], l),
@@ -10561,12 +10563,12 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10561
10563
  W
10562
10564
  ]), le(() => {
10563
10565
  var Te;
10564
- if (te !== Fe.current) {
10565
- if (te !== void 0 && Fe.current === void 0 || typeof te == "string" && typeof Fe.current == "string" && te !== Fe.current) {
10566
- E == null || E([]), O == null || O({}), (Te = c.current) == null || Te.unselectAll(), Fe.current = te;
10566
+ if (te !== Ae.current) {
10567
+ if (te !== void 0 && Ae.current === void 0 || typeof te == "string" && typeof Ae.current == "string" && te !== Ae.current) {
10568
+ E == null || E([]), O == null || O({}), (Te = c.current) == null || Te.unselectAll(), Ae.current = te;
10567
10569
  return;
10568
10570
  }
10569
- te === void 0 && Fe.current !== void 0 && ee(!0), Fe.current = te;
10571
+ te === void 0 && Ae.current !== void 0 && ee(!0), Ae.current = te;
10570
10572
  }
10571
10573
  }, [te]), He(() => {
10572
10574
  const Te = !lr(
@@ -10624,7 +10626,7 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10624
10626
  },
10625
10627
  [de, A]
10626
10628
  );
10627
- Sc({
10629
+ Tc({
10628
10630
  tableRef: c,
10629
10631
  autoRefresh: v
10630
10632
  });
@@ -10771,7 +10773,7 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10771
10773
  onSubmit: a
10772
10774
  }
10773
10775
  ) : /* @__PURE__ */ s(
10774
- wc,
10776
+ xc,
10775
10777
  {
10776
10778
  ...p,
10777
10779
  onClose: c,
@@ -10809,7 +10811,7 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10809
10811
  childField: _,
10810
10812
  autoRefresh: k
10811
10813
  }) => !t || !e ? null : /* @__PURE__ */ s(
10812
- fu,
10814
+ mu,
10813
10815
  {
10814
10816
  ref: S,
10815
10817
  strings: n,
@@ -10863,7 +10865,7 @@ const Ey = et(qs), Xt = (t) => {
10863
10865
  }) => {
10864
10866
  const r = z(), o = pe(
10865
10867
  bn
10866
- ), { processAction: i } = o || {}, [a, c] = Ae(
10868
+ ), { processAction: i } = o || {}, [a, c] = Fe(
10867
10869
  U.getHandler().treeButOpen
10868
10870
  ), { showErrorNotification: l } = xt();
10869
10871
  return le(() => () => {
@@ -10945,7 +10947,7 @@ function My(t, e) {
10945
10947
  } = ks({
10946
10948
  treeOoui: _,
10947
10949
  parentContext: d,
10948
- columnStateKey: w ? kl({
10950
+ columnStateKey: w ? Ml({
10949
10951
  treeViewId: w.view_id,
10950
10952
  model: n
10951
10953
  }) : void 0,
@@ -10970,7 +10972,7 @@ function My(t, e) {
10970
10972
  onRequestPageChange: fe,
10971
10973
  treeIsLoading: ce,
10972
10974
  selectAllRecords: te,
10973
- onHeaderCheckboxClick: Fe,
10975
+ onHeaderCheckboxClick: Ae,
10974
10976
  headerCheckboxState: Ce,
10975
10977
  currentPage: Ie,
10976
10978
  limit: he,
@@ -11064,7 +11066,7 @@ function My(t, e) {
11064
11066
  }
11065
11067
  ),
11066
11068
  !$ && !m && /* @__PURE__ */ s(
11067
- Zd,
11069
+ eu,
11068
11070
  {
11069
11071
  total: At,
11070
11072
  totalRowsLoading: ie,
@@ -11078,7 +11080,7 @@ function My(t, e) {
11078
11080
  simpleSummary: Re,
11079
11081
  showAllOptionInPageSizeOptions: p !== void 0,
11080
11082
  customMiddleComponent: yt && /* @__PURE__ */ s(
11081
- Cc,
11083
+ Sc,
11082
11084
  {
11083
11085
  onFilterSearchClick: () => Me(!0)
11084
11086
  }
@@ -11108,7 +11110,7 @@ function My(t, e) {
11108
11110
  onRowStyle: de,
11109
11111
  headerCheckboxState: g ? "unchecked" : Ce,
11110
11112
  onHeaderCheckboxClick: g ? () => {
11111
- } : Fe,
11113
+ } : Ae,
11112
11114
  refresh: Be,
11113
11115
  actionViewSortState: ge,
11114
11116
  onSortChange: Oe,
@@ -11121,7 +11123,7 @@ function My(t, e) {
11121
11123
  ) })
11122
11124
  ] });
11123
11125
  }
11124
- const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11126
+ const Rc = Bt(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11125
11127
  const {
11126
11128
  visible: e,
11127
11129
  searchTreeRef: n,
@@ -11162,9 +11164,9 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11162
11164
  isActive: N
11163
11165
  } = pe(Dt), { token: L } = Ny(), { t: q } = xe(), P = Qt(
11164
11166
  Ft.FEATURE_SAVED_SEARCHES
11165
- ), [$] = Ae(
11167
+ ), [$] = Fe(
11166
11168
  U.getHandler().searchAllIds
11167
- ), [H] = Ae(
11169
+ ), [H] = Fe(
11168
11170
  U.getHandler().readEvalUiObjects
11169
11171
  ), K = I(async () => {
11170
11172
  if (!P || !r)
@@ -11269,7 +11271,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11269
11271
  },
11270
11272
  children: [
11271
11273
  /* @__PURE__ */ s(
11272
- Vt,
11274
+ Ht,
11273
11275
  {
11274
11276
  title: /* @__PURE__ */ j("div", { children: [
11275
11277
  /* @__PURE__ */ s("div", { children: q("openSavedSearchInSidebar") }),
@@ -11316,7 +11318,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11316
11318
  )
11317
11319
  }
11318
11320
  ),
11319
- /* @__PURE__ */ s(Vt, { title: q("clear_search"), children: /* @__PURE__ */ s(
11321
+ /* @__PURE__ */ s(Ht, { title: q("clear_search"), children: /* @__PURE__ */ s(
11320
11322
  kn,
11321
11323
  {
11322
11324
  style: {
@@ -11369,7 +11371,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11369
11371
  }
11370
11372
  ),
11371
11373
  y === "paginated" && /* @__PURE__ */ s(
11372
- Ic,
11374
+ Rc,
11373
11375
  {
11374
11376
  ref: n,
11375
11377
  rootTree: !0,
@@ -11384,7 +11386,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11384
11386
  }
11385
11387
  ),
11386
11388
  y === "legacy" && /* @__PURE__ */ s(
11387
- Ac,
11389
+ Ic,
11388
11390
  {
11389
11391
  ref: n,
11390
11392
  rootTree: !0,
@@ -11398,7 +11400,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11398
11400
  }
11399
11401
  )
11400
11402
  ] }) : null;
11401
- }, Dt = ad(
11403
+ }, Dt = ld(
11402
11404
  null
11403
11405
  ), $y = (t) => {
11404
11406
  const {
@@ -11436,8 +11438,8 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11436
11438
  permissionsError: V
11437
11439
  } = t, [N, L] = F(!1), [q, P] = F(!1), [$, H] = F(!1), [K, B] = F(!0), [W, Y] = F(!0), [Z, se] = F([]), [me, G] = F(!1), [ae, X] = F(
11438
11440
  k || []
11439
- ), [ee, ie] = F(!1), [J, de] = F(!0), [ue, fe] = F(), ce = Q(() => !i || i.length === 0 ? (n == null ? void 0 : n.fields) || {} : i.reduce((ke, Re) => ({ ...ke, ...Re.fields || {} }), {}), [i, n]), [te, Fe] = F(
11440
- Tl(k || [], ce)
11441
+ ), [ee, ie] = F(!1), [J, de] = F(!0), [ue, fe] = F(), ce = Q(() => !i || i.length === 0 ? (n == null ? void 0 : n.fields) || {} : i.reduce((ke, Re) => ({ ...ke, ...Re.fields || {} }), {}), [i, n]), [te, Ae] = F(
11442
+ Fl(k || [], ce)
11441
11443
  ), [Ce, Ie] = F(0), [he, ge] = F(void 0), [Ne, Qe] = F(), [Oe, We] = F(_n), [Me, Xe] = F(
11442
11444
  T
11443
11445
  ), [Le, ze] = F(
@@ -11517,7 +11519,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11517
11519
  setPreviousView: fe,
11518
11520
  goToResourceId: R,
11519
11521
  searchValues: te,
11520
- setSearchValues: Fe,
11522
+ setSearchValues: Ae,
11521
11523
  limit: Le,
11522
11524
  setLimit: ze,
11523
11525
  setTitle: Pe,
@@ -11664,7 +11666,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11664
11666
  viewData: d
11665
11667
  } = t, [f, u] = F(!1), [p, m] = F(), g = pe(
11666
11668
  Dt
11667
- ), { setGraphIsLoading: h = void 0 } = g || {}, [y] = Ae(U.getHandler().getView);
11669
+ ), { setGraphIsLoading: h = void 0 } = g || {}, [y] = Fe(U.getHandler().getView);
11668
11670
  Ut(e, () => ({
11669
11671
  refresh: () => {
11670
11672
  v();
@@ -11730,8 +11732,8 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11730
11732
  default:
11731
11733
  return /* @__PURE__ */ s(we, { children: `Graph ${p.type} not implemented` });
11732
11734
  }
11733
- }, Nn = Ht(Vy), Hy = (t) => {
11734
- const { model: e, domain: n = [], context: r = {}, view_id: o, manualIds: i } = t, [a, c] = F(!1), [l, d] = F(), [f, u] = F(), [p] = Ae(
11735
+ }, Nn = Bt(Vy), Hy = (t) => {
11736
+ const { model: e, domain: n = [], context: r = {}, view_id: o, manualIds: i } = t, [a, c] = F(!1), [l, d] = F(), [f, u] = F(), [p] = Fe(
11735
11737
  U.getHandler().readForView
11736
11738
  ), m = I(async () => {
11737
11739
  c(!0), d(void 0), i && n.push(["id", "in", i]);
@@ -11781,7 +11783,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11781
11783
  case "indicator": {
11782
11784
  const { value: g, total: h, percent: y, icon: v, color: b, suffix: x } = p;
11783
11785
  return /* @__PURE__ */ s(
11784
- bl,
11786
+ wl,
11785
11787
  {
11786
11788
  value: g,
11787
11789
  totalValue: h,
@@ -11789,7 +11791,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11789
11791
  color: b,
11790
11792
  icon: v,
11791
11793
  suffix: x,
11792
- showPercent: xl(y),
11794
+ showPercent: Cl(y),
11793
11795
  fixedHeight: c
11794
11796
  }
11795
11797
  );
@@ -11799,7 +11801,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11799
11801
  case "pie": {
11800
11802
  const g = p;
11801
11803
  return /* @__PURE__ */ s(
11802
- Cl,
11804
+ Sl,
11803
11805
  {
11804
11806
  type: g.type,
11805
11807
  data: g.data,
@@ -11814,7 +11816,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11814
11816
  default:
11815
11817
  return /* @__PURE__ */ s(we, { children: `Graph ${p.type} not implemented` });
11816
11818
  }
11817
- }, Gs = Ht(By), { useToken: jy } = ot, { Text: oa } = en, Rc = (t) => {
11819
+ }, Gs = Bt(By), { useToken: jy } = ot, { Text: oa } = en, _c = (t) => {
11818
11820
  const {
11819
11821
  title: e,
11820
11822
  children: n,
@@ -11860,7 +11862,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11860
11862
  overflow: "hidden"
11861
11863
  },
11862
11864
  children: a ? /* @__PURE__ */ j(we, { children: [
11863
- /* @__PURE__ */ s(Vt, { title: a, children: /* @__PURE__ */ s(ao, { className: "pr-1 text-xs" }) }),
11865
+ /* @__PURE__ */ s(Ht, { title: a, children: /* @__PURE__ */ s(ao, { className: "pr-1 text-xs" }) }),
11864
11866
  /* @__PURE__ */ s(oa, { ellipsis: !0, children: e })
11865
11867
  ] }) : /* @__PURE__ */ s(
11866
11868
  oa,
@@ -11893,9 +11895,9 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11893
11895
  }
11894
11896
  );
11895
11897
  }, Uy = (t) => {
11896
- const [e, n] = Ae(
11898
+ const [e, n] = Fe(
11897
11899
  U.getHandler().execute
11898
- ), [r, o] = Ae(
11900
+ ), [r, o] = Fe(
11899
11901
  U.getHandler().search
11900
11902
  );
11901
11903
  le(() => () => {
@@ -11981,36 +11983,45 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11981
11983
  parseReferenceString: i,
11982
11984
  cancelRequest: c
11983
11985
  };
11984
- }, _c = (t) => {
11985
- const { model: e, view_id: n, fixedHeight: r, autoRefresh: o } = t, [i, a] = F(), c = z(null), l = z(null), { isActive: d } = Nt(), f = cr();
11986
- le(() => {
11987
- u();
11988
- }, [e]), le(() => (l.current && (clearInterval(l.current), l.current = null), o && i && d !== !1 && f && (l.current = setInterval(async () => {
11989
- var p;
11990
- await u(), await new Promise((m) => setTimeout(m, 200)), (p = c.current) == null || p.fetchValues();
11991
- }, o)), () => {
11992
- l.current && (clearInterval(l.current), l.current = null);
11993
- }), [o, i, d, f]);
11994
- async function u() {
11995
- const p = await U.getHandler().search({
11986
+ }, Ec = (t) => {
11987
+ const { model: e, view_id: n, fixedHeight: r, autoRefresh: o, actionDomain: i } = t, [a, c] = F(), l = z(null), d = z(null), { isActive: f } = Nt(), u = cr(), p = Vt(() => ml(i || []), [i]), [m, g] = Fe(
11988
+ U.getHandler().search
11989
+ );
11990
+ le(() => () => {
11991
+ g();
11992
+ }, []);
11993
+ const h = I(async () => {
11994
+ const y = typeof (p == null ? void 0 : p.id) == "number" ? p.id : void 0;
11995
+ if (y) {
11996
+ c(y);
11997
+ return;
11998
+ }
11999
+ const v = await m({
11996
12000
  params: [],
11997
12001
  model: e,
11998
12002
  limit: 1
11999
12003
  });
12000
- p.length > 0 && a(p[0].id);
12001
- }
12002
- return /* @__PURE__ */ s(
12004
+ v.length > 0 && c(v[0].id);
12005
+ }, [p, e, m]);
12006
+ return le(() => {
12007
+ h();
12008
+ }, []), He(() => (d.current && (clearInterval(d.current), d.current = null), o && a && f !== !1 && u && (d.current = setInterval(async () => {
12009
+ var y;
12010
+ await h(), await new Promise((v) => setTimeout(v, 200)), (y = l.current) == null || y.fetchValues();
12011
+ }, o)), () => {
12012
+ d.current && (clearInterval(d.current), d.current = null);
12013
+ }), [o, a, f, u, p]), /* @__PURE__ */ s(
12003
12014
  "div",
12004
12015
  {
12005
12016
  style: { padding: "0.5rem", overflowY: "scroll", height: r },
12006
12017
  children: /* @__PURE__ */ s(
12007
12018
  dr,
12008
12019
  {
12009
- ref: c,
12020
+ ref: l,
12010
12021
  ...t,
12011
12022
  model: e,
12012
12023
  view_id: n,
12013
- id: i,
12024
+ id: a,
12014
12025
  readOnly: !0
12015
12026
  }
12016
12027
  )
@@ -12032,7 +12043,7 @@ function Wy(t) {
12032
12043
  } = t, [u, p] = F(!1), [m, g] = F(!1), [h, y] = F(), [v, b] = F(), [x, C] = F(), [w, A] = F(1), [S, R] = F(0), D = z(Et), _ = z([]), [k, E] = F(0), [T, M] = F([]), [O, V] = F(void 0), [N, L] = F(), [q, P] = F(), [$, H] = F(), [K, B] = F(!1), [W, Y] = F(_n), Z = z([]), { treeMaxLimit: se } = tn(), me = (fe) => {
12033
12044
  B(!0), A(fe), R((fe - 1) * D.current);
12034
12045
  }, G = async () => {
12035
- const fe = Z.current.length > 0 ? Z.current : i, ce = an(_.current, fe), { colors: te } = rn(v), { totalItems: Fe, results: Ce, attrsEvaluated: Ie } = await U.getHandler().searchForTree({
12046
+ const fe = Z.current.length > 0 ? Z.current : i, ce = an(_.current, fe), { colors: te } = rn(v), { totalItems: Ae, results: Ce, attrsEvaluated: Ie } = await U.getHandler().searchForTree({
12036
12047
  params: ce,
12037
12048
  limit: D.current,
12038
12049
  offset: S,
@@ -12048,7 +12059,7 @@ function Wy(t) {
12048
12059
  fields: { ...v.fields, ...x.fields }
12049
12060
  });
12050
12061
  B(!1), M(he);
12051
- const ge = await Fe();
12062
+ const ge = await Ae();
12052
12063
  E(ge);
12053
12064
  }, ae = async () => {
12054
12065
  try {
@@ -12134,7 +12145,7 @@ function Wy(t) {
12134
12145
  }
12135
12146
  ),
12136
12147
  W === "paginated" && /* @__PURE__ */ s(
12137
- Ic,
12148
+ Rc,
12138
12149
  {
12139
12150
  hideHeaders: !0,
12140
12151
  rootTree: !1,
@@ -12179,12 +12190,12 @@ function Wy(t) {
12179
12190
  ] }));
12180
12191
  return $ ? (console.error($), /* @__PURE__ */ s(Tt, { className: "mt-10", message: $, type: "error", banner: !0 })) : u ? /* @__PURE__ */ s(rt, { style: { padding: "2rem" } }) : ue();
12181
12192
  }
12182
- const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12193
+ const Oc = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12183
12194
  const { ooui: e } = t, { refreshCounter: n } = _r(), r = e.actionId !== void 0, o = e.actionField !== void 0;
12184
12195
  return /* @__PURE__ */ s(Ye, { ooui: e, children: r || o ? /* @__PURE__ */ s(Xn, { children: /* @__PURE__ */ s(Ky, { ooui: e }, n) }) : /* @__PURE__ */ s(zy, { ooui: e }, n) });
12185
12196
  }, zy = (t) => {
12186
12197
  var S;
12187
- const { token: e } = qy(), { ooui: n, value: r } = t, { locale: o } = xe(), { getContext: i } = _r(), [a, c] = F(n.icon), [l, d] = F(n.color), [f, u] = F(null), [p, m] = F(!1), [g, h] = Ae(
12198
+ const { token: e } = qy(), { ooui: n, value: r } = t, { locale: o } = xe(), { getContext: i } = _r(), [a, c] = F(n.icon), [l, d] = F(n.color), [f, u] = F(null), [p, m] = F(!1), [g, h] = Fe(
12188
12199
  U.getHandler().parseCondition
12189
12200
  ), { fetchReferenceValues: y } = Uy({
12190
12201
  context: i == null ? void 0 : i()
@@ -12235,7 +12246,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12235
12246
  n.label,
12236
12247
  " "
12237
12248
  ] }),
12238
- n.tooltip && /* @__PURE__ */ s(Vt, { title: n.tooltip, children: /* @__PURE__ */ s(
12249
+ n.tooltip && /* @__PURE__ */ s(Ht, { title: n.tooltip, children: /* @__PURE__ */ s(
12239
12250
  Fa,
12240
12251
  {
12241
12252
  className: "pr-1 text-xs",
@@ -12285,7 +12296,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12285
12296
  console.log("Error formatting number with locale", o), console.error(R);
12286
12297
  }
12287
12298
  const A = /* @__PURE__ */ s(
12288
- pd,
12299
+ hd,
12289
12300
  {
12290
12301
  title: x,
12291
12302
  prefix: C && /* @__PURE__ */ s(C, {}),
@@ -12301,10 +12312,10 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12301
12312
  if (He(() => {
12302
12313
  !e || !a || u();
12303
12314
  }, [e, i, a]), f && f.message !== "active_id_not_found")
12304
- return /* @__PURE__ */ s(vl, { error: f });
12315
+ return /* @__PURE__ */ s(bl, { error: f });
12305
12316
  const { id: m, initialView: g, description: h } = c || {};
12306
12317
  return /* @__PURE__ */ j(
12307
- Rc,
12318
+ _c,
12308
12319
  {
12309
12320
  id: m,
12310
12321
  parms: {},
@@ -12382,7 +12393,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12382
12393
  fixedHeight: e
12383
12394
  }
12384
12395
  ) : r.type === "form" ? /* @__PURE__ */ s(
12385
- _c,
12396
+ Ec,
12386
12397
  {
12387
12398
  model: i,
12388
12399
  actionDomain: a,
@@ -12391,7 +12402,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12391
12402
  },
12392
12403
  r.id
12393
12404
  ) : r.type === "tree" ? /* @__PURE__ */ s(
12394
- Ec,
12405
+ Oc,
12395
12406
  {
12396
12407
  model: i,
12397
12408
  domain: a,
@@ -12403,7 +12414,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12403
12414
  },
12404
12415
  r.id
12405
12416
  ) : /* @__PURE__ */ s(
12406
- vl,
12417
+ bl,
12407
12418
  {
12408
12419
  error: new Error("Unsupported view type: " + r.type)
12409
12420
  }
@@ -12417,9 +12428,9 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12417
12428
  const { ooui: e } = t;
12418
12429
  return /* @__PURE__ */ s(Ye, { type: "array", ...t, children: /* @__PURE__ */ s(Zy, { ooui: e }) });
12419
12430
  }, Zy = (t) => {
12420
- const { value: e, ooui: n, onChange: r } = t, { items: o = [] } = e || {}, i = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [a, c] = F([]), [l, d] = F(), [f, u] = F(!1), { relation: p, context: m, readOnly: g, field: h } = n, y = pe(st), { getContext: v } = y || {}, [b, x] = Ae(
12431
+ const { value: e, ooui: n, onChange: r } = t, { items: o = [] } = e || {}, i = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [a, c] = F([]), [l, d] = F(), [f, u] = F(!1), { relation: p, context: m, readOnly: g, field: h } = n, y = pe(st), { getContext: v } = y || {}, [b, x] = Fe(
12421
12432
  U.getHandler().evalDomain
12422
- ), [C, w] = Ae(
12433
+ ), [C, w] = Fe(
12423
12434
  U.getHandler().search
12424
12435
  );
12425
12436
  le(() => () => {
@@ -12476,7 +12487,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12476
12487
  }, D = (_) => {
12477
12488
  const { label: k, closable: E, onClose: T } = _, M = (N) => {
12478
12489
  N.preventDefault(), N.stopPropagation();
12479
- }, O = Er(k), V = O && ml(O);
12490
+ }, O = Er(k), V = O && pl(O);
12480
12491
  return /* @__PURE__ */ s(
12481
12492
  Ds,
12482
12493
  {
@@ -12580,9 +12591,9 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12580
12591
  formContext: n,
12581
12592
  disabled: r
12582
12593
  }) => {
12583
- const [o, i] = F(!1), [a, c] = Ae(
12594
+ const [o, i] = F(!1), [a, c] = Fe(
12584
12595
  U.getHandler().getActionData
12585
- ), [l, d] = Ae(
12596
+ ), [l, d] = Fe(
12586
12597
  U.getHandler().execute
12587
12598
  );
12588
12599
  le(() => () => {
@@ -12659,7 +12670,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12659
12670
  bordered: n.border !== !1
12660
12671
  };
12661
12672
  return /* @__PURE__ */ j(nt, { direction: "vertical", align: "center", children: [
12662
- /* @__PURE__ */ s(hd, { ...i }),
12673
+ /* @__PURE__ */ s(gd, { ...i }),
12663
12674
  n.showValue && /* @__PURE__ */ s(en.Text, { type: "secondary", children: o })
12664
12675
  ] });
12665
12676
  }, to = (t) => {
@@ -12704,7 +12715,7 @@ const av = (t) => {
12704
12715
  case "notebook":
12705
12716
  return Zv;
12706
12717
  case "group":
12707
- return Jc;
12718
+ return Xc;
12708
12719
  case "label":
12709
12720
  return mo;
12710
12721
  case "char":
@@ -12714,13 +12725,13 @@ const av = (t) => {
12714
12725
  case "button":
12715
12726
  return Ts;
12716
12727
  case "buttonGroup":
12717
- return Gu;
12728
+ return Yu;
12718
12729
  case "selection":
12719
12730
  return Za;
12720
12731
  case "many2one":
12721
12732
  return Av;
12722
12733
  case "boolean":
12723
- return uf;
12734
+ return ff;
12724
12735
  case "integer":
12725
12736
  return Cr;
12726
12737
  case "float":
@@ -12744,7 +12755,7 @@ const av = (t) => {
12744
12755
  case "binary":
12745
12756
  return xb;
12746
12757
  case "image":
12747
- return hf;
12758
+ return gf;
12748
12759
  case "url":
12749
12760
  return _b;
12750
12761
  case "email":
@@ -12752,7 +12763,7 @@ const av = (t) => {
12752
12763
  case "float_time":
12753
12764
  return Kv;
12754
12765
  case "fiber_grid":
12755
- return yf;
12766
+ return vf;
12756
12767
  case "timeline":
12757
12768
  return Df;
12758
12769
  case "indicator":
@@ -12799,7 +12810,7 @@ const av = (t) => {
12799
12810
  }
12800
12811
  }, lv = (t) => {
12801
12812
  const { ooui: e } = t, { type: n } = e, r = av(n);
12802
- return r ? ld(r, t) : null;
12813
+ return r ? cd(r, t) : null;
12803
12814
  }, cv = ({
12804
12815
  item: t,
12805
12816
  responsiveBehaviour: e
@@ -12828,7 +12839,7 @@ const av = (t) => {
12828
12839
  row: t,
12829
12840
  numberOfColumns: e
12830
12841
  }) => t.map((n) => (n._mustExpand && (n.colspan = e), n)), fv = (t, e) => {
12831
- const n = t.map((r) => r instanceof or && r.fieldForLabel || r instanceof Cd ? "auto" : "1fr");
12842
+ const n = t.map((r) => r instanceof or && r.fieldForLabel || r instanceof Sd ? "auto" : "1fr");
12832
12843
  if (n.length < e) {
12833
12844
  const r = e - n.length;
12834
12845
  for (let o = 0; o < r; o++)
@@ -12879,10 +12890,10 @@ const av = (t) => {
12879
12890
  minHeight: 0,
12880
12891
  minWidth: 0
12881
12892
  }, children: l });
12882
- }, Oc = Zt.createContext(null), hv = (t) => {
12893
+ }, Dc = Zt.createContext(null), hv = (t) => {
12883
12894
  const { children: e, setTitle: n } = t;
12884
12895
  return /* @__PURE__ */ s(
12885
- Oc.Provider,
12896
+ Dc.Provider,
12886
12897
  {
12887
12898
  value: {
12888
12899
  setTitle: n
@@ -12904,7 +12915,7 @@ const av = (t) => {
12904
12915
  fieldDefs: i,
12905
12916
  onAutorefreshableFieldsChange: a,
12906
12917
  isActive: c
12907
- } = t, l = z(null), [d, f] = F(!0), [u, p] = Ae(
12918
+ } = t, l = z(null), [d, f] = F(!0), [u, p] = Fe(
12908
12919
  U.getHandler().readObjects
12909
12920
  ), m = cr();
12910
12921
  le(() => {
@@ -13018,7 +13029,7 @@ function xv(t, e) {
13018
13029
  forcedValues: S = {},
13019
13030
  parentWidth: R,
13020
13031
  onMustRefreshParent: D
13021
- } = t, { t: _ } = xe(), [k, E] = F(!1), [T, M] = F(), [O, V] = F(), [N] = _t.useForm(), [L, q] = F(), [P, $] = F(), H = pe(Oc), [K, B] = F(), [W, Y] = F(!1), [Z, se] = F(0), me = z(), G = z({}), ae = z({}), X = z(!1), ee = z(!1), ie = z(!1), de = (R !== void 0 ? R : K) < wv, ue = pe(st), { activeId: fe, getPlainValues: ce } = ue || {}, te = z(!1), Fe = pe(
13032
+ } = t, { t: _ } = xe(), [k, E] = F(!1), [T, M] = F(), [O, V] = F(), [N] = _t.useForm(), [L, q] = F(), [P, $] = F(), H = pe(Dc), [K, B] = F(), [W, Y] = F(!1), [Z, se] = F(0), me = z(), G = z({}), ae = z({}), X = z(!1), ee = z(!1), ie = z(!1), de = (R !== void 0 ? R : K) < wv, ue = pe(st), { activeId: fe, getPlainValues: ce } = ue || {}, te = z(!1), Ae = pe(
13022
13033
  Dt
13023
13034
  ), {
13024
13035
  setFormIsSaving: Ce = void 0,
@@ -13029,7 +13040,7 @@ function xv(t, e) {
13029
13040
  title: Qe = void 0,
13030
13041
  setTitle: Oe = void 0,
13031
13042
  isActive: We = void 0
13032
- } = (w ? Fe : {}) || {}, Me = pe(
13043
+ } = (w ? Ae : {}) || {}, Me = pe(
13033
13044
  bn
13034
13045
  ), { processAction: Xe, globalValues: Le } = Me || {}, { onActionTriggered: ze } = tn(), { showErrorNotification: je } = xt({
13035
13046
  onButtonAction: (oe) => {
@@ -13197,7 +13208,7 @@ function xv(t, e) {
13197
13208
  ge == null || ge(!0), M(void 0), _e(), oe != null && oe.fields ? (be = oe.fields, Ee = oe.arch) : (be = P, Ee = L), g && (oe == null ? void 0 : oe.forceRefresh) !== !0 ? re = g : { values: re, defaultGetCalled: $e } = await qe({
13198
13209
  fields: be,
13199
13210
  arch: Ee
13200
- }), x && (re = { ...If(x), ...re }), G.current = jn(re, be), Te({
13211
+ }), x && (re = { ...ml(x), ...re }), G.current = jn(re, be), Te({
13201
13212
  values: re,
13202
13213
  fields: be,
13203
13214
  reset: !0,
@@ -13234,12 +13245,12 @@ function xv(t, e) {
13234
13245
  reset: be,
13235
13246
  isDefaultGet: Ee = !1
13236
13247
  }) => {
13237
- const gt = { ...be ? {} : N.getFieldsValue(!0), ...oe }, Fo = jn(gt, re), od = Object.keys(re).map((Ao) => ({
13248
+ const gt = { ...be ? {} : N.getFieldsValue(!0), ...oe }, Fo = jn(gt, re), sd = Object.keys(re).map((Ao) => ({
13238
13249
  name: Ao,
13239
13250
  touched: !1,
13240
13251
  value: Fo[Ao] !== void 0 ? Fo[Ao] : void 0
13241
13252
  }));
13242
- Ee || (ae.current = Fo), N.setFields(od);
13253
+ Ee || (ae.current = Fo), N.setFields(sd);
13243
13254
  },
13244
13255
  [N]
13245
13256
  ), qe = async ({
@@ -13351,7 +13362,7 @@ function xv(t, e) {
13351
13362
  const $e = new Ta(oe);
13352
13363
  return $e.parse(re, {
13353
13364
  readOnly: u || Ee,
13354
- values: xf(
13365
+ values: Cf(
13355
13366
  {
13356
13367
  ...be,
13357
13368
  ...nn()
@@ -13388,7 +13399,7 @@ function xv(t, e) {
13388
13399
  target: mt(P),
13389
13400
  fields: P
13390
13401
  }), be = Object.keys(re);
13391
- if (be.length !== 0 && !(Ff({
13402
+ if (be.length !== 0 && !(Af({
13392
13403
  changedFields: be,
13393
13404
  formOoui: O,
13394
13405
  types: [
@@ -13408,7 +13419,7 @@ function xv(t, e) {
13408
13419
  ye($e);
13409
13420
  }), ur(be);
13410
13421
  }
13411
- }, Jt = su(pn, 100), ur = async (oe) => {
13422
+ }, Jt = iu(pn, 100), ur = async (oe) => {
13412
13423
  try {
13413
13424
  for (let re = 0; re < oe.length; re += 1) {
13414
13425
  const be = oe[re];
@@ -13448,7 +13459,7 @@ function xv(t, e) {
13448
13459
  const $e = {
13449
13460
  ...mt(P),
13450
13461
  ...Ee.value
13451
- }, gt = Cf({
13462
+ }, gt = Sf({
13452
13463
  values: $e,
13453
13464
  fields: P
13454
13465
  });
@@ -13480,7 +13491,7 @@ function xv(t, e) {
13480
13491
  }));
13481
13492
  }
13482
13493
  if (Ee.domain && Object.keys(Ee.domain).length > 0) {
13483
- const $e = Af({
13494
+ const $e = If({
13484
13495
  fieldsDomain: Ee.domain,
13485
13496
  fields: P
13486
13497
  });
@@ -13573,7 +13584,7 @@ function xv(t, e) {
13573
13584
  operationInProgress: oe
13574
13585
  });
13575
13586
  }
13576
- const Bt = I(
13587
+ const jt = I(
13577
13588
  (oe) => {
13578
13589
  if (!L)
13579
13590
  return;
@@ -13595,7 +13606,7 @@ function xv(t, e) {
13595
13606
  context: b,
13596
13607
  autorefreshableFields: O == null ? void 0 : O.autorefreshableFields,
13597
13608
  fieldDefs: P,
13598
- onAutorefreshableFieldsChange: Bt,
13609
+ onAutorefreshableFieldsChange: jt,
13599
13610
  isActive: We
13600
13611
  });
13601
13612
  async function Ln({
@@ -13625,7 +13636,7 @@ function xv(t, e) {
13625
13636
  }
13626
13637
  }
13627
13638
  const gn = () => !O && !T ? /* @__PURE__ */ s(rt, {}) : !n && !h || !C ? null : /* @__PURE__ */ s(we, { children: /* @__PURE__ */ s(
13628
- Nu,
13639
+ Pu,
13629
13640
  {
13630
13641
  getValues: bt,
13631
13642
  getPlainValues: Ke,
@@ -13712,7 +13723,7 @@ function xv(t, e) {
13712
13723
  }
13713
13724
  ) : null;
13714
13725
  }
13715
- const dr = Ht(xv), Dc = (t) => {
13726
+ const dr = Bt(xv), kc = (t) => {
13716
13727
  const { visible: e, initialName: n, onSave: r, onCancel: o } = t, { t: i } = xe(), [a, c] = F(n), [l, d] = F(!1);
13717
13728
  le(() => {
13718
13729
  c(n);
@@ -13772,13 +13783,13 @@ const dr = Ht(xv), Dc = (t) => {
13772
13783
  defaultName: r = "",
13773
13784
  onFavouriteAdded: o,
13774
13785
  onFavouriteRemoved: i
13775
- } = t, { t: a } = xe(), [c, l] = F(!1), [d] = Ae(
13786
+ } = t, { t: a } = xe(), [c, l] = F(!1), [d] = Fe(
13776
13787
  U.getHandler().removeFavourite
13777
- ), [f] = Ae(
13788
+ ), [f] = Fe(
13778
13789
  U.getHandler().addFavourite
13779
- ), [u] = Ae(
13790
+ ), [u] = Fe(
13780
13791
  U.getHandler().isShortcutFavorite
13781
- ), [p] = Ae(
13792
+ ), [p] = Fe(
13782
13793
  U.getHandler().update
13783
13794
  ), m = I(() => {
13784
13795
  e && n !== void 0 ? on({
@@ -13898,7 +13909,7 @@ const dr = Ht(xv), Dc = (t) => {
13898
13909
  Ge,
13899
13910
  {
13900
13911
  type: m ? "primary" : "default",
13901
- icon: m ? /* @__PURE__ */ s(Ed, { style: { color: "white" } }) : /* @__PURE__ */ s(Od, {}),
13912
+ icon: m ? /* @__PURE__ */ s(Od, { style: { color: "white" } }) : /* @__PURE__ */ s(Dd, {}),
13902
13913
  style: { width: 30 },
13903
13914
  onClick: S
13904
13915
  }
@@ -13934,7 +13945,7 @@ const dr = Ht(xv), Dc = (t) => {
13934
13945
  }
13935
13946
  ),
13936
13947
  /* @__PURE__ */ s(
13937
- Dc,
13948
+ kc,
13938
13949
  {
13939
13950
  visible: A,
13940
13951
  initialName: _,
@@ -13989,7 +14000,7 @@ const dr = Ht(xv), Dc = (t) => {
13989
14000
  }
13990
14001
  A(f);
13991
14002
  }, [f, S, A]), _ = Q(
13992
- () => w ? Ws : Ac,
14003
+ () => w ? Ws : Ic,
13993
14004
  [w]
13994
14005
  ), k = I(() => {
13995
14006
  d(!0);
@@ -14068,7 +14079,7 @@ const dr = Ht(xv), Dc = (t) => {
14068
14079
  )
14069
14080
  ] });
14070
14081
  }, Sv = () => {
14071
- const [t, e] = Ae(
14082
+ const [t, e] = Fe(
14072
14083
  U.getHandler().checkPermission
14073
14084
  );
14074
14085
  return le(() => () => {
@@ -14123,7 +14134,7 @@ const dr = Ht(xv), Dc = (t) => {
14123
14134
  }),
14124
14135
  [r, i, c]
14125
14136
  );
14126
- }, { defaultAlgorithm: Tv, defaultSeed: Fv } = ot, kc = Tv(Fv), Av = (t) => {
14137
+ }, { defaultAlgorithm: Tv, defaultSeed: Fv } = ot, Mc = Tv(Fv), Av = (t) => {
14127
14138
  const { ooui: e } = t, { required: n } = e;
14128
14139
  return /* @__PURE__ */ s(Ye, { required: n, type: "array", validator: async (o, i) => {
14129
14140
  if (!i)
@@ -14132,8 +14143,8 @@ const dr = Ht(xv), Dc = (t) => {
14132
14143
  throw new Error();
14133
14144
  if (Array.isArray(i) && !i[0])
14134
14145
  throw new Error();
14135
- }, ...t, children: /* @__PURE__ */ s(Mc, { ooui: e }) });
14136
- }, Mc = (t) => {
14146
+ }, ...t, children: /* @__PURE__ */ s(Nc, { ooui: e }) });
14147
+ }, Nc = (t) => {
14137
14148
  const { value: e, onChange: n, ooui: r } = t, {
14138
14149
  required: o,
14139
14150
  relation: i,
@@ -14141,7 +14152,7 @@ const dr = Ht(xv), Dc = (t) => {
14141
14152
  context: c,
14142
14153
  id: l,
14143
14154
  domain: d
14144
- } = r, f = o && !a ? { backgroundColor: kc.colorPrimaryBg } : void 0, [u, p] = F(!1), [m, g] = F(!1), [h, y] = F(!1), [v, b] = F(), x = z(!1), [C, w] = F(""), A = z(), S = pe(st), {
14155
+ } = r, f = o && !a ? { backgroundColor: Mc.colorPrimaryBg } : void 0, [u, p] = F(!1), [m, g] = F(!1), [h, y] = F(!1), [v, b] = F(), x = z(!1), [C, w] = F(""), A = z(), S = pe(st), {
14145
14156
  domain: R,
14146
14157
  getFields: D,
14147
14158
  getContext: _,
@@ -14328,7 +14339,7 @@ const dr = Ht(xv), Dc = (t) => {
14328
14339
  ] });
14329
14340
  }, Iv = Ot(ht)`
14330
14341
  .ant-input {
14331
- background-color: ${kc.colorPrimaryBg};
14342
+ background-color: ${Mc.colorPrimaryBg};
14332
14343
  }
14333
14344
  `, Rv = ({
14334
14345
  title: t,
@@ -14371,7 +14382,7 @@ const dr = Ht(xv), Dc = (t) => {
14371
14382
  children: e
14372
14383
  }
14373
14384
  );
14374
- }, Nc = (t) => {
14385
+ }, Pc = (t) => {
14375
14386
  const e = document.createElement("div");
14376
14387
  document.body.appendChild(e);
14377
14388
  const n = Pa(e);
@@ -14394,11 +14405,11 @@ const dr = Ht(xv), Dc = (t) => {
14394
14405
  n.unmount(), e.remove();
14395
14406
  }
14396
14407
  };
14397
- }, Pc = ({
14408
+ }, $c = ({
14398
14409
  t,
14399
14410
  onOk: e
14400
14411
  }) => {
14401
- Nc({
14412
+ Pc({
14402
14413
  title: t("removeItems"),
14403
14414
  icon: /* @__PURE__ */ s(so, {}),
14404
14415
  centered: !0,
@@ -14407,11 +14418,11 @@ const dr = Ht(xv), Dc = (t) => {
14407
14418
  cancelText: t("cancel"),
14408
14419
  onOk: e
14409
14420
  });
14410
- }, $c = ({
14421
+ }, Lc = ({
14411
14422
  t,
14412
14423
  onOk: e
14413
14424
  }) => {
14414
- Nc({
14425
+ Pc({
14415
14426
  title: t("unlinkItems"),
14416
14427
  icon: /* @__PURE__ */ s(so, {}),
14417
14428
  centered: !0,
@@ -14420,7 +14431,7 @@ const dr = Ht(xv), Dc = (t) => {
14420
14431
  onOk: e,
14421
14432
  cancelText: t("cancel")
14422
14433
  });
14423
- }, Lc = ({
14434
+ }, Vc = ({
14424
14435
  mustDisableButtons: t = !1,
14425
14436
  formRef: e,
14426
14437
  onRefreshParentValues: n,
@@ -14431,7 +14442,7 @@ const dr = Ht(xv), Dc = (t) => {
14431
14442
  bn
14432
14443
  ), c = pe(
14433
14444
  qt
14434
- ), { processAction: l } = a || {}, { openRelate: d } = c || {}, [f, u] = F(null), [p, m] = F(!1), [g] = Ae(
14445
+ ), { processAction: l } = a || {}, { openRelate: d } = c || {}, [f, u] = F(null), [p, m] = F(!1), [g] = Fe(
14435
14446
  U.getHandler().getToolbar
14436
14447
  ), h = o || f, y = I(async () => {
14437
14448
  var S;
@@ -14620,7 +14631,7 @@ function Ov(t) {
14620
14631
  w == null || w();
14621
14632
  },
14622
14633
  context: a === "tree" ? x : (Z = C == null ? void 0 : C.current) == null ? void 0 : Z.getContext()
14623
- }), { actionButtonProps: L, printButtonProps: q, relateButtonProps: P } = Lc({
14634
+ }), { actionButtonProps: L, printButtonProps: q, relateButtonProps: P } = Vc({
14624
14635
  toolbar: v,
14625
14636
  model: o,
14626
14637
  mustDisableButtons: n,
@@ -14629,7 +14640,7 @@ function Ov(t) {
14629
14640
  }), {
14630
14641
  actionButtonProps: $,
14631
14642
  printButtonProps: H
14632
- } = _l({
14643
+ } = El({
14633
14644
  toolbar: v,
14634
14645
  model: o,
14635
14646
  view_id: b == null ? void 0 : b.view_id,
@@ -14640,7 +14651,7 @@ function Ov(t) {
14640
14651
  onRefreshParentValues: w
14641
14652
  }), K = n || !E || !O, B = n || !T, W = l === 0 || n || a !== "form" && g.length === 0 || (p ? !T : !M || !O), Y = n || V || a === "tree" && g.length !== 1 || a === "form" && (A === void 0 || A < 0) || !E || !O;
14642
14653
  return /* @__PURE__ */ j("div", { className: "flex mb-2 pt-3", children: [
14643
- /* @__PURE__ */ s(Vc, { title: e, token: S }),
14654
+ /* @__PURE__ */ s(Hc, { title: e, token: S }),
14644
14655
  /* @__PURE__ */ j("div", { className: "flex-none h-8 pl-2", children: [
14645
14656
  a !== "graph" && h && /* @__PURE__ */ s(
14646
14657
  St,
@@ -14665,7 +14676,7 @@ function Ov(t) {
14665
14676
  ] }),
14666
14677
  a !== "graph" && /* @__PURE__ */ s(cn, {}),
14667
14678
  a !== "graph" && /* @__PURE__ */ s(
14668
- jc,
14679
+ Uc,
14669
14680
  {
14670
14681
  isMany2Many: p,
14671
14682
  selectedRowKeys: n ? [] : g,
@@ -14707,7 +14718,7 @@ function Ov(t) {
14707
14718
  )
14708
14719
  ] }),
14709
14720
  a === "form" && /* @__PURE__ */ s(
14710
- Bc,
14721
+ jc,
14711
14722
  {
14712
14723
  currentItemIndex: d,
14713
14724
  totalItems: l,
@@ -14721,7 +14732,7 @@ function Ov(t) {
14721
14732
  St,
14722
14733
  {
14723
14734
  tooltip: R("toggleViewMode"),
14724
- icon: /* @__PURE__ */ s(kd, {}),
14735
+ icon: /* @__PURE__ */ s(Md, {}),
14725
14736
  onClick: i
14726
14737
  }
14727
14738
  )
@@ -14761,7 +14772,7 @@ function Ov(t) {
14761
14772
  ] })
14762
14773
  ] });
14763
14774
  }
14764
- const Vc = et(({ title: t, token: e }) => /* @__PURE__ */ s(
14775
+ const Hc = et(({ title: t, token: e }) => /* @__PURE__ */ s(
14765
14776
  "div",
14766
14777
  {
14767
14778
  className: "flex flex-grow h-8 text-white",
@@ -14772,10 +14783,10 @@ const Vc = et(({ title: t, token: e }) => /* @__PURE__ */ s(
14772
14783
  children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center h-full", children: /* @__PURE__ */ s("span", { className: "pl-2 font-bold", children: t }) })
14773
14784
  }
14774
14785
  ));
14775
- Vc.displayName = "Title";
14786
+ Hc.displayName = "Title";
14776
14787
  const cn = et(() => /* @__PURE__ */ s("div", { className: "inline-block w-3" }));
14777
14788
  cn.displayName = "Separator";
14778
- const Hc = et(
14789
+ const Bc = et(
14779
14790
  ({
14780
14791
  currentItemIndex: t,
14781
14792
  totalItems: e
@@ -14790,8 +14801,8 @@ const Hc = et(
14790
14801
  ] });
14791
14802
  }
14792
14803
  );
14793
- Hc.displayName = "ItemIndex";
14794
- const Bc = et(
14804
+ Bc.displayName = "ItemIndex";
14805
+ const jc = et(
14795
14806
  ({
14796
14807
  currentItemIndex: t,
14797
14808
  totalItems: e,
@@ -14811,7 +14822,7 @@ const Bc = et(
14811
14822
  }
14812
14823
  ),
14813
14824
  /* @__PURE__ */ s(
14814
- Hc,
14825
+ Bc,
14815
14826
  {
14816
14827
  currentItemIndex: t,
14817
14828
  totalItems: e
@@ -14829,8 +14840,8 @@ const Bc = et(
14829
14840
  ] });
14830
14841
  }
14831
14842
  );
14832
- Bc.displayName = "ItemBrowser";
14833
- const jc = et(
14843
+ jc.displayName = "ItemBrowser";
14844
+ const Uc = et(
14834
14845
  ({
14835
14846
  isMany2Many: t,
14836
14847
  selectedRowKeys: e,
@@ -14842,7 +14853,7 @@ const jc = et(
14842
14853
  St,
14843
14854
  {
14844
14855
  tooltip: o(t ? "unlink" : "delete"),
14845
- icon: t ? /* @__PURE__ */ s(Dd, {}) : /* @__PURE__ */ s(ws, {}),
14856
+ icon: t ? /* @__PURE__ */ s(kd, {}) : /* @__PURE__ */ s(ws, {}),
14846
14857
  onClick: n,
14847
14858
  danger: !t,
14848
14859
  type: t ? "default" : "primary",
@@ -14851,7 +14862,7 @@ const jc = et(
14851
14862
  ) });
14852
14863
  }
14853
14864
  );
14854
- jc.displayName = "DeleteButton";
14865
+ Uc.displayName = "DeleteButton";
14855
14866
  const zs = et(Ov), Dv = {
14856
14867
  form: Ta,
14857
14868
  tree: ba,
@@ -14963,7 +14974,7 @@ const Mv = (t) => {
14963
14974
  l > 0 && (a === "form" ? Ie(() => {
14964
14975
  d(l - 1);
14965
14976
  }) : d(l - 1));
14966
- }, Fe = () => {
14977
+ }, Ae = () => {
14967
14978
  const ne = X.length;
14968
14979
  l < ne - 1 && (a === "form" ? Ie(() => {
14969
14980
  d(l + 1);
@@ -14995,7 +15006,7 @@ const Mv = (t) => {
14995
15006
  }) : ne();
14996
15007
  }, he = () => {
14997
15008
  if (G) {
14998
- $c({
15009
+ Lc({
14999
15010
  t: v,
15000
15011
  onOk: async () => {
15001
15012
  a === "form" ? Qe() : Oe();
@@ -15003,7 +15014,7 @@ const Mv = (t) => {
15003
15014
  });
15004
15015
  return;
15005
15016
  }
15006
- Pc({
15017
+ $c({
15007
15018
  t: v,
15008
15019
  onOk: async () => {
15009
15020
  a === "form" ? Qe() : Oe();
@@ -15209,7 +15220,7 @@ const Mv = (t) => {
15209
15220
  onCreateItem: ge,
15210
15221
  onToggleViewMode: ce,
15211
15222
  onPreviousItem: te,
15212
- onNextItem: Fe,
15223
+ onNextItem: Ae,
15213
15224
  onSearchItem: Ne,
15214
15225
  selectedRowKeys: M,
15215
15226
  showCreateButton: ((Se = o.get("form")) == null ? void 0 : Se.fields) !== void 0,
@@ -15272,7 +15283,7 @@ const Mv = (t) => {
15272
15283
  }
15273
15284
  )
15274
15285
  ] });
15275
- }, Uc = ({
15286
+ }, Wc = ({
15276
15287
  fieldName: t,
15277
15288
  widgetDomain: e
15278
15289
  }) => {
@@ -15378,7 +15389,7 @@ const Mv = (t) => {
15378
15389
  onGetFirstVisibileRowIndex: f,
15379
15390
  onSelectionCheckboxClicked: l
15380
15391
  };
15381
- }, Wc = ({
15392
+ }, qc = ({
15382
15393
  items: t,
15383
15394
  relation: e,
15384
15395
  context: n,
@@ -15451,9 +15462,9 @@ const Mv = (t) => {
15451
15462
  getOriginalItemsWithRestoredItemId: f,
15452
15463
  onFormChanges: u
15453
15464
  };
15454
- }, qc = ({
15465
+ }, Gc = ({
15455
15466
  one2manyItems: t
15456
- }) => jt(() => t.filter((e) => e.operation !== "pendingRemove"), [t]), Ks = Ht(
15467
+ }) => Vt(() => t.filter((e) => e.operation !== "pendingRemove"), [t]), Ks = Bt(
15457
15468
  ({
15458
15469
  formView: t,
15459
15470
  items: e,
@@ -15482,7 +15493,7 @@ const Mv = (t) => {
15482
15493
  values: { ...u, id: p },
15483
15494
  treeValues: { ...u, id: p }
15484
15495
  } : h);
15485
- i(Sf(m));
15496
+ i(Tf(m));
15486
15497
  },
15487
15498
  readOnly: o
15488
15499
  }
@@ -15490,7 +15501,7 @@ const Mv = (t) => {
15490
15501
  }
15491
15502
  );
15492
15503
  Ks.displayName = "One2manyForm";
15493
- const Gc = ({
15504
+ const Yc = ({
15494
15505
  isMany2many: t,
15495
15506
  triggerChange: e,
15496
15507
  items: n,
@@ -15549,13 +15560,13 @@ const Gc = ({
15549
15560
  ]), m = I(async () => c === "form" ? await p() : await u(), [c, p, u]);
15550
15561
  return { showRemoveConfirm: I(() => {
15551
15562
  if (t) {
15552
- $c({
15563
+ Lc({
15553
15564
  t: a,
15554
15565
  onOk: m
15555
15566
  });
15556
15567
  return;
15557
15568
  }
15558
- Pc({
15569
+ $c({
15559
15570
  t: a,
15560
15571
  onOk: m
15561
15572
  });
@@ -15570,7 +15581,7 @@ function Pv({
15570
15581
  o.id && r[o.id] > 0 && (n.push(o), r[o.id] -= 1);
15571
15582
  }), n;
15572
15583
  }
15573
- const Yc = ({
15584
+ const zc = ({
15574
15585
  currentView: t,
15575
15586
  inv_field: e,
15576
15587
  activeId: n,
@@ -15655,7 +15666,7 @@ const Yc = ({
15655
15666
  onFormModalSubmitSucceed: x,
15656
15667
  openItemInFormModal: C
15657
15668
  };
15658
- }, zc = ({
15669
+ }, Kc = ({
15659
15670
  currentView: t,
15660
15671
  showFormChangesDialogIfNeeded: e,
15661
15672
  items: n,
@@ -15713,7 +15724,7 @@ const Yc = ({
15713
15724
  onCloseSearchModal: u,
15714
15725
  onSelectSearchValues: m
15715
15726
  };
15716
- }, Kc = (t) => `columnState-${t.parentViewId}-${t.treeViewId}-${t.one2ManyFieldName}-${t.model}`, sa = 400, $v = ({
15727
+ }, Jc = (t) => `columnState-${t.parentViewId}-${t.treeViewId}-${t.one2ManyFieldName}-${t.model}`, sa = 400, $v = ({
15717
15728
  items: t,
15718
15729
  height: e,
15719
15730
  onRowDoubleClick: n,
@@ -15734,7 +15745,7 @@ const Yc = ({
15734
15745
  treeType: v,
15735
15746
  onChangeTreeType: b
15736
15747
  }) => {
15737
- const x = z(null), C = d || x, w = z(), A = z(t), [S, R] = F(0), [D, _] = F(), [k, E] = F(0), T = z([]), [M, O] = F([]), [V, N] = F(!1), L = jt(() => t.length, [t]), {
15748
+ const x = z(null), C = d || x, w = z(), A = z(t), [S, R] = F(0), [D, _] = F(), [k, E] = F(0), T = z([]), [M, O] = F([]), [V, N] = F(!1), L = Vt(() => t.length, [t]), {
15738
15749
  columns: q,
15739
15750
  strings: P,
15740
15751
  colorsForResults: $,
@@ -15750,12 +15761,12 @@ const Yc = ({
15750
15761
  } = ks({
15751
15762
  treeOoui: o,
15752
15763
  parentContext: a,
15753
- columnStateKey: Kc({
15764
+ columnStateKey: Jc({
15754
15765
  ...g,
15755
15766
  model: f
15756
15767
  }),
15757
15768
  tableRef: C
15758
- }), { footerComponent: ae } = Hl({
15769
+ }), { footerComponent: ae } = Bl({
15759
15770
  treeOoui: o,
15760
15771
  model: f,
15761
15772
  selectedRowKeys: h,
@@ -15870,7 +15881,7 @@ const Yc = ({
15870
15881
  }, [p, S]), ce = Xt(() => D), te = I(
15871
15882
  () => m == null ? void 0 : m(),
15872
15883
  [m]
15873
- ), Fe = I(() => {
15884
+ ), Ae = I(() => {
15874
15885
  var Se;
15875
15886
  G(), v === "paginated" ? E((Be) => Be + 1) : (Se = C == null ? void 0 : C.current) == null || Se.refresh();
15876
15887
  }, [G, v, C]), Ce = Xt(R), Ie = Xt(
@@ -15938,7 +15949,7 @@ const Yc = ({
15938
15949
  onRowStatus: Ne,
15939
15950
  headerCheckboxState: We,
15940
15951
  onHeaderCheckboxClick: te,
15941
- refresh: Fe,
15952
+ refresh: Ae,
15942
15953
  onSortChange: Me,
15943
15954
  onChangeTreeType: b,
15944
15955
  onFetchChildrenForRecord: je,
@@ -15975,7 +15986,7 @@ const Yc = ({
15975
15986
  );
15976
15987
  }, Lv = ["form", "tree", "graph"], Vv = (t) => {
15977
15988
  var ge, Ne, Qe;
15978
- const e = z(null), { value: n, onChange: r, ooui: o, views: i, treeType: a } = t, { items: c = [] } = n || {}, l = qc({ one2manyItems: c }), { currentView: d, setCurrentView: f, itemIndex: u, setItemIndex: p, setTreeType: m } = pe(wn), {
15989
+ const e = z(null), { value: n, onChange: r, ooui: o, views: i, treeType: a } = t, { items: c = [] } = n || {}, l = Gc({ one2manyItems: c }), { currentView: d, setCurrentView: f, itemIndex: u, setItemIndex: p, setTreeType: m } = pe(wn), {
15979
15990
  readOnly: g,
15980
15991
  relation: h,
15981
15992
  context: y,
@@ -15985,7 +15996,7 @@ const Yc = ({
15985
15996
  activeId: C,
15986
15997
  getContext: w,
15987
15998
  fetchValues: A
15988
- } = x || {}, S = z(), R = i.size > 1, D = ((ge = i.get("form")) == null ? void 0 : ge.fields) !== void 0, _ = Q(() => ({ ...w == null ? void 0 : w(), ...y }), [w, y]), k = Uc({
15999
+ } = x || {}, S = z(), R = i.size > 1, D = ((ge = i.get("form")) == null ? void 0 : ge.fields) !== void 0, _ = Q(() => ({ ...w == null ? void 0 : w(), ...y }), [w, y]), k = Wc({
15989
16000
  widgetDomain: v,
15990
16001
  fieldName: b
15991
16002
  }), {
@@ -16019,7 +16030,7 @@ const Yc = ({
16019
16030
  onFormChanges: K,
16020
16031
  showFormChangesDialogIfNeeded: B,
16021
16032
  setFormHasChanges: W
16022
- } = Wc({
16033
+ } = qc({
16023
16034
  items: l,
16024
16035
  formView: i.get("form"),
16025
16036
  treeView: i.get("tree"),
@@ -16034,7 +16045,7 @@ const Yc = ({
16034
16045
  onFormModalSubmitSucceed: G,
16035
16046
  createItem: ae,
16036
16047
  openItemInFormModal: X
16037
- } = Yc({
16048
+ } = zc({
16038
16049
  activeId: C,
16039
16050
  inv_field: o.inv_field,
16040
16051
  showFormChangesDialogIfNeeded: B,
@@ -16051,7 +16062,7 @@ const Yc = ({
16051
16062
  onSelectSearchValues: ie,
16052
16063
  onCloseSearchModal: J,
16053
16064
  searchItem: de
16054
- } = zc({
16065
+ } = Kc({
16055
16066
  showFormChangesDialogIfNeeded: B,
16056
16067
  currentView: d,
16057
16068
  triggerChange: $,
@@ -16059,7 +16070,7 @@ const Yc = ({
16059
16070
  views: i,
16060
16071
  context: _,
16061
16072
  relation: h
16062
- }), { showRemoveConfirm: ue } = Gc({
16073
+ }), { showRemoveConfirm: ue } = Yc({
16063
16074
  isMany2many: P,
16064
16075
  items: l,
16065
16076
  triggerChange: $,
@@ -16082,7 +16093,7 @@ const Yc = ({
16082
16093
  u > 0 && (d === "form" ? B(() => {
16083
16094
  p(u - 1);
16084
16095
  }) : p(u - 1));
16085
- }, [d, u, p, B]), Fe = I(() => {
16096
+ }, [d, u, p, B]), Ae = I(() => {
16086
16097
  const Oe = l.length;
16087
16098
  u < Oe - 1 && (d === "form" ? B(() => {
16088
16099
  p(u + 1);
@@ -16121,7 +16132,7 @@ const Yc = ({
16121
16132
  onCreateItem: ae,
16122
16133
  onToggleViewMode: fe,
16123
16134
  onPreviousItem: te,
16124
- onNextItem: Fe,
16135
+ onNextItem: Ae,
16125
16136
  onSearchItem: de,
16126
16137
  selectedRowKeys: M,
16127
16138
  showCreateButton: D,
@@ -16317,7 +16328,7 @@ const Yc = ({
16317
16328
  }
16318
16329
  w.current = t, (V = b == null ? void 0 : b.current) == null || V.refresh(), (N = b == null ? void 0 : b.current) == null || N.unselectAll();
16319
16330
  }, [t]);
16320
- const D = jt(() => t.length, [t]), _ = jt(() => Is(
16331
+ const D = Vt(() => t.length, [t]), _ = Vt(() => Is(
16321
16332
  o,
16322
16333
  {
16323
16334
  ...zn
@@ -16345,8 +16356,8 @@ const Yc = ({
16345
16356
  var N, L, q, P;
16346
16357
  if (x.current[(L = (N = V.node) == null ? void 0 : N.data) == null ? void 0 : L.id])
16347
16358
  return { color: x.current[(P = (q = V.node) == null ? void 0 : q.data) == null ? void 0 : P.id] };
16348
- }, []), { loading: T, getColumnState: M, updateColumnState: O } = Ml({
16349
- key: Kc({
16359
+ }, []), { loading: T, getColumnState: M, updateColumnState: O } = Nl({
16360
+ key: Jc({
16350
16361
  ...m,
16351
16362
  model: d
16352
16363
  })
@@ -16397,7 +16408,7 @@ const Yc = ({
16397
16408
  });
16398
16409
  }, Wv = ["form", "tree", "graph"], qv = (t) => {
16399
16410
  var Ce, Ie, he;
16400
- const e = z(null), { value: n, onChange: r, ooui: o, views: i } = t, { items: a = [] } = n || {}, c = qc({ one2manyItems: a }), { currentView: l, setCurrentView: d, itemIndex: f, setItemIndex: u } = pe(
16411
+ const e = z(null), { value: n, onChange: r, ooui: o, views: i } = t, { items: a = [] } = n || {}, c = Gc({ one2manyItems: a }), { currentView: l, setCurrentView: d, itemIndex: f, setItemIndex: u } = pe(
16401
16412
  wn
16402
16413
  ), {
16403
16414
  readOnly: p,
@@ -16409,7 +16420,7 @@ const Yc = ({
16409
16420
  activeId: b,
16410
16421
  getContext: x,
16411
16422
  fetchValues: C
16412
- } = v || {}, w = z(), A = i.size > 1, S = ((Ce = i.get("form")) == null ? void 0 : Ce.fields) !== void 0, R = Q(() => ({ ...x == null ? void 0 : x(), ...g }), [x, g]), D = Uc({
16423
+ } = v || {}, w = z(), A = i.size > 1, S = ((Ce = i.get("form")) == null ? void 0 : Ce.fields) !== void 0, R = Q(() => ({ ...x == null ? void 0 : x(), ...g }), [x, g]), D = Wc({
16413
16424
  widgetDomain: h,
16414
16425
  fieldName: y
16415
16426
  }), {
@@ -16448,7 +16459,7 @@ const Yc = ({
16448
16459
  onFormChanges: H,
16449
16460
  showFormChangesDialogIfNeeded: K,
16450
16461
  setFormHasChanges: B
16451
- } = Wc({
16462
+ } = qc({
16452
16463
  items: c,
16453
16464
  formView: i.get("form"),
16454
16465
  treeView: i.get("tree"),
@@ -16463,7 +16474,7 @@ const Yc = ({
16463
16474
  onFormModalSubmitSucceed: me,
16464
16475
  createItem: G,
16465
16476
  openItemInFormModal: ae
16466
- } = Yc({
16477
+ } = zc({
16467
16478
  activeId: b,
16468
16479
  inv_field: o.inv_field,
16469
16480
  showFormChangesDialogIfNeeded: K,
@@ -16480,7 +16491,7 @@ const Yc = ({
16480
16491
  onSelectSearchValues: ee,
16481
16492
  onCloseSearchModal: ie,
16482
16493
  searchItem: J
16483
- } = zc({
16494
+ } = Kc({
16484
16495
  showFormChangesDialogIfNeeded: K,
16485
16496
  currentView: l,
16486
16497
  triggerChange: P,
@@ -16488,7 +16499,7 @@ const Yc = ({
16488
16499
  views: i,
16489
16500
  context: R,
16490
16501
  relation: m
16491
- }), { showRemoveConfirm: de } = Gc({
16502
+ }), { showRemoveConfirm: de } = Yc({
16492
16503
  isMany2many: q,
16493
16504
  items: c,
16494
16505
  triggerChange: P,
@@ -16522,7 +16533,7 @@ const Yc = ({
16522
16533
  c.length,
16523
16534
  u,
16524
16535
  K
16525
- ]), Fe = Q(() => {
16536
+ ]), Ae = Q(() => {
16526
16537
  var ge;
16527
16538
  return ((ge = i.get("form")) == null ? void 0 : ge.fields) !== void 0;
16528
16539
  }, [i]);
@@ -16569,7 +16580,7 @@ const Yc = ({
16569
16580
  ooui: _,
16570
16581
  context: R,
16571
16582
  onRowDoubleClick: fe,
16572
- showPointerCursorInRows: Fe,
16583
+ showPointerCursorInRows: Ae,
16573
16584
  onRowSelectionChange: T,
16574
16585
  relation: m,
16575
16586
  onChangeFirstVisibleRowIndex: M,
@@ -16648,9 +16659,9 @@ const Yc = ({
16648
16659
  var k;
16649
16660
  const { ooui: e } = t, { mode: n, relation: r, views: o, required: i, context: a } = e;
16650
16661
  let c;
16651
- const [l, d] = F(!0), [f, u] = F(), [p, m] = F(/* @__PURE__ */ new Map()), g = pe(st), { getContext: h, formView: y, refreshCounter: v } = g || {}, { view_id: b } = y || {}, [x, C] = Ae(
16662
+ const [l, d] = F(!0), [f, u] = F(), [p, m] = F(/* @__PURE__ */ new Map()), g = pe(st), { getContext: h, formView: y, refreshCounter: v } = g || {}, { view_id: b } = y || {}, [x, C] = Fe(
16652
16663
  U.getHandler().getView
16653
- ), [w, A] = Ae(
16664
+ ), [w, A] = Fe(
16654
16665
  U.getHandler().getToolbar
16655
16666
  );
16656
16667
  He(() => {
@@ -16743,7 +16754,7 @@ const Yc = ({
16743
16754
  }
16744
16755
  ) });
16745
16756
  }, Yv = (t) => {
16746
- const { ooui: e, value: n } = t, { treeType: r, setTreeType: o } = Vl(), i = In(
16757
+ const { ooui: e, value: n } = t, { treeType: r, setTreeType: o } = Hl(), i = In(
16747
16758
  mn.FEATURE_ONE2MANY_ENABLE_NEW_TABLE
16748
16759
  );
16749
16760
  if (He(() => {
@@ -16774,7 +16785,7 @@ const Yc = ({
16774
16785
  }, Jv = (t) => {
16775
16786
  const { ooui: e, value: n, onChange: r } = t, { id: o, readOnly: i, required: a } = e, { token: c } = zv(), l = a && !i ? { backgroundColor: c.colorPrimaryBg } : void 0, d = z(), [f, u] = F(), p = pe(st), { elementHasLostFocus: m } = p || {};
16776
16787
  le(() => {
16777
- u(Nl(n));
16788
+ u(Pl(n));
16778
16789
  }, [n]);
16779
16790
  const g = (v) => {
16780
16791
  r == null || r(v);
@@ -16799,8 +16810,8 @@ const Yc = ({
16799
16810
  }
16800
16811
  );
16801
16812
  };
16802
- function Jc(t) {
16803
- const { ooui: e, showLabel: n = !0, responsiveBehaviour: r } = t, o = Mt(e.icon || ""), { t: i } = xe(), a = e.backgroundColor, c = a ? hu(a).darken(30).toString() : void 0, l = (e.label || o) && n;
16813
+ function Xc(t) {
16814
+ const { ooui: e, showLabel: n = !0, responsiveBehaviour: r } = t, o = Mt(e.icon || ""), { t: i } = xe(), a = e.backgroundColor, c = a ? gu(a).darken(30).toString() : void 0, l = (e.label || o) && n;
16804
16815
  return /* @__PURE__ */ s(
16805
16816
  "div",
16806
16817
  {
@@ -16880,7 +16891,7 @@ function Zv(t) {
16880
16891
  a.label
16881
16892
  ] }),
16882
16893
  children: /* @__PURE__ */ s(
16883
- Jc,
16894
+ Xc,
16884
16895
  {
16885
16896
  ooui: a,
16886
16897
  showLabel: !1,
@@ -17157,7 +17168,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17157
17168
  }) => {
17158
17169
  const n = [];
17159
17170
  for (const r of Object.keys(t)) {
17160
- const o = t[r], i = Xc(o), a = o.is_function === !0, c = i && !a;
17171
+ const o = t[r], i = Qc(o), a = o.is_function === !0, c = i && !a;
17161
17172
  n.push({
17162
17173
  key: sb({ key: r, parentKey: e }),
17163
17174
  title: o.string,
@@ -17167,7 +17178,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17167
17178
  });
17168
17179
  }
17169
17180
  return n;
17170
- }, Xc = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", sb = ({
17181
+ }, Qc = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", sb = ({
17171
17182
  parentKey: t,
17172
17183
  key: e
17173
17184
  }) => `${t ? t + "/" : ""}${e}`, ds = (t) => t.indexOf("/") === -1 ? t : t.split("/").slice(0, -1).join("/"), us = (t) => {
@@ -17233,7 +17244,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17233
17244
  keys: t,
17234
17245
  fields: e
17235
17246
  }) => t.map((n) => {
17236
- const r = us(n), i = fs(n, e)[r], a = Xc(i), c = i.is_function === !0;
17247
+ const r = us(n), i = fs(n, e)[r], a = Qc(i), c = i.is_function === !0;
17237
17248
  return a && !c ? `${n}/id` : n;
17238
17249
  }), ub = (t) => {
17239
17250
  const e = /* @__PURE__ */ new Map(), n = [];
@@ -17276,7 +17287,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17276
17287
  onClose: n
17277
17288
  });
17278
17289
  return /* @__PURE__ */ s(
17279
- eu,
17290
+ tu,
17280
17291
  {
17281
17292
  visible: e,
17282
17293
  onSucceed: f,
@@ -17294,7 +17305,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17294
17305
  }, mb = (t) => {
17295
17306
  const { ooui: e, showTime: n = !1 } = t, { required: r, readOnly: o = !1, timezone: i } = e;
17296
17307
  return /* @__PURE__ */ s(Ye, { required: r, ...t, children: /* @__PURE__ */ s(
17297
- tu,
17308
+ nu,
17298
17309
  {
17299
17310
  id: e._id,
17300
17311
  required: r,
@@ -17303,12 +17314,12 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17303
17314
  timezone: i
17304
17315
  }
17305
17316
  ) });
17306
- }, Qc = et(mb), pb = (t) => {
17317
+ }, Zc = et(mb), pb = (t) => {
17307
17318
  const { ooui: e } = t;
17308
- return /* @__PURE__ */ s(Qc, { ooui: e });
17319
+ return /* @__PURE__ */ s(Zc, { ooui: e });
17309
17320
  }, hb = (t) => {
17310
17321
  const { ooui: e } = t;
17311
- return /* @__PURE__ */ s(Qc, { ooui: e, showTime: !0 });
17322
+ return /* @__PURE__ */ s(Zc, { ooui: e, showTime: !0 });
17312
17323
  }, gb = (t) => {
17313
17324
  const { ooui: e } = t;
17314
17325
  return /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(yb, { ooui: e }) });
@@ -17358,7 +17369,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17358
17369
  }
17359
17370
  ) }),
17360
17371
  /* @__PURE__ */ s(Ve, { flex: "3", children: /* @__PURE__ */ s(
17361
- Mc,
17372
+ Nc,
17362
17373
  {
17363
17374
  ooui: new wa({
17364
17375
  name: "object_value",
@@ -17380,7 +17391,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17380
17391
  const { ooui: e } = t, { required: n } = e;
17381
17392
  return /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(Cb, { ooui: e }) });
17382
17393
  }, Cb = (t) => {
17383
- const { ooui: e, value: n, onChange: r } = t, { readOnly: o, required: i, filenameField: a } = e, { token: c } = wb(), l = i && !o ? { backgroundColor: c.colorPrimaryBg } : void 0, d = z(null), { setFieldValue: f, getFieldValue: u } = pe(st) || {}, { t: p } = xe(), m = n ? pf(n) : "", g = (x) => {
17394
+ const { ooui: e, value: n, onChange: r } = t, { readOnly: o, required: i, filenameField: a } = e, { token: c } = wb(), l = i && !o ? { backgroundColor: c.colorPrimaryBg } : void 0, d = z(null), { setFieldValue: f, getFieldValue: u } = pe(st) || {}, { t: p } = xe(), m = n ? hf(n) : "", g = (x) => {
17384
17395
  r == null || r(x);
17385
17396
  };
17386
17397
  async function h() {
@@ -17433,7 +17444,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17433
17444
  children: "Select"
17434
17445
  }
17435
17446
  ),
17436
- /* @__PURE__ */ s(Ge, { icon: /* @__PURE__ */ s(Md, {}), disabled: !n, onClick: y, children: p("open") }),
17447
+ /* @__PURE__ */ s(Ge, { icon: /* @__PURE__ */ s(Nd, {}), disabled: !n, onClick: y, children: p("open") }),
17437
17448
  /* @__PURE__ */ s(
17438
17449
  St,
17439
17450
  {
@@ -17477,7 +17488,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17477
17488
  items: n.map((u) => {
17478
17489
  const p = u.link ? ri : ys, m = /* @__PURE__ */ j(Ze, { wrap: !1, align: "middle", gutter: 8, children: [
17479
17490
  /* @__PURE__ */ s(Ve, { style: { textAlign: "center" }, children: (u.datas_fname || u.link) && /* @__PURE__ */ s(
17480
- Vt,
17491
+ Ht,
17481
17492
  {
17482
17493
  title: u.link ? l("openAttachmentLink") : l("download"),
17483
17494
  children: /* @__PURE__ */ s(
@@ -17492,7 +17503,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17492
17503
  )
17493
17504
  }
17494
17505
  ) }),
17495
- /* @__PURE__ */ s(Ve, { style: { textAlign: "center" }, children: /* @__PURE__ */ s(Vt, { title: l("openAttachment"), children: /* @__PURE__ */ s(
17506
+ /* @__PURE__ */ s(Ve, { style: { textAlign: "center" }, children: /* @__PURE__ */ s(Ht, { title: l("openAttachment"), children: /* @__PURE__ */ s(
17496
17507
  yr,
17497
17508
  {
17498
17509
  style: { cursor: "pointer" },
@@ -17648,7 +17659,7 @@ const Fb = () => {
17648
17659
  setCurrentItemIndex: o,
17649
17660
  results: i,
17650
17661
  searchQuery: a
17651
- } = Nt(), [c, l] = Ae(
17662
+ } = Nt(), [c, l] = Fe(
17652
17663
  U.getHandler().searchForTree
17653
17664
  );
17654
17665
  le(() => () => {
@@ -17763,7 +17774,7 @@ function Ab({ toolbar: t }) {
17763
17774
  [u, n]
17764
17775
  ), P = I(() => {
17765
17776
  q(() => _.current.fetchValues());
17766
- }, [q, _]), { actionButtonProps: $, printButtonProps: H, relateButtonProps: K } = Lc({
17777
+ }, [q, _]), { actionButtonProps: $, printButtonProps: H, relateButtonProps: K } = Vc({
17767
17778
  toolbar: t,
17768
17779
  model: b,
17769
17780
  mustDisableButtons: L,
@@ -17891,7 +17902,7 @@ function Ab({ toolbar: t }) {
17891
17902
  /* @__PURE__ */ s(pt, {}),
17892
17903
  /* @__PURE__ */ s(pt, {})
17893
17904
  ] }),
17894
- /* @__PURE__ */ s(Al, { disabled: L || !(V != null && V.create) }),
17905
+ /* @__PURE__ */ s(Il, { disabled: L || !(V != null && V.create) }),
17895
17906
  /* @__PURE__ */ s(
17896
17907
  Rt,
17897
17908
  {
@@ -17917,7 +17928,7 @@ function Ab({ toolbar: t }) {
17917
17928
  }
17918
17929
  ),
17919
17930
  /* @__PURE__ */ s(
17920
- Fl,
17931
+ Al,
17921
17932
  {
17922
17933
  icon: /* @__PURE__ */ s(ws, {}),
17923
17934
  tooltip: n("delete"),
@@ -17963,7 +17974,7 @@ function Ab({ toolbar: t }) {
17963
17974
  ),
17964
17975
  /* @__PURE__ */ s(pt, {}),
17965
17976
  /* @__PURE__ */ s(
17966
- Zc,
17977
+ ed,
17967
17978
  {
17968
17979
  disabled: L || i,
17969
17980
  onPreviousClick: o,
@@ -17989,7 +18000,7 @@ function Ab({ toolbar: t }) {
17989
18000
  /* @__PURE__ */ s(kr, { res_id: m })
17990
18001
  ] }) : null;
17991
18002
  }
17992
- const Ib = et(Ab), Zc = et(
18003
+ const Ib = et(Ab), ed = et(
17993
18004
  ({
17994
18005
  disabled: t,
17995
18006
  onPreviousClick: e,
@@ -18019,7 +18030,7 @@ const Ib = et(Ab), Zc = et(
18019
18030
  ] });
18020
18031
  }
18021
18032
  );
18022
- Zc.displayName = "NavigationButtons";
18033
+ ed.displayName = "NavigationButtons";
18023
18034
  const la = (t, e) => ({
18024
18035
  model: "ir.attachment",
18025
18036
  domain: [
@@ -18028,7 +18039,7 @@ const la = (t, e) => ({
18028
18039
  ],
18029
18040
  values: { selection_associated_object: `${t},${e}` },
18030
18041
  forced_values: { res_model: t, res_id: e }
18031
- }), { useToken: Rb } = ot, ed = (t) => {
18042
+ }), { useToken: Rb } = ot, td = (t) => {
18032
18043
  const { ooui: e, value: n, onChange: r, valueValidator: o, linkPrefix: i = "" } = t, { id: a, readOnly: c, required: l } = e, { token: d } = Rb(), f = l && !c ? { backgroundColor: d.colorPrimaryBg } : void 0, u = pe(st), { elementHasLostFocus: p } = u || {}, [m, g] = F(!1), [h, y] = F(!1);
18033
18044
  le(() => {
18034
18045
  c && !m && y(!1), !n && !c && (g(!0), y(!0));
@@ -18087,20 +18098,20 @@ const la = (t, e) => ({
18087
18098
  }, _b = (t) => {
18088
18099
  const { ooui: e } = t, { required: n } = e;
18089
18100
  return /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(
18090
- ed,
18101
+ td,
18091
18102
  {
18092
18103
  ooui: e,
18093
- valueValidator: (r) => r ? gu(r) : !1
18104
+ valueValidator: (r) => r ? yu(r) : !1
18094
18105
  }
18095
18106
  ) });
18096
18107
  }, Eb = (t) => {
18097
18108
  const { ooui: e } = t, { required: n } = e;
18098
18109
  return /* @__PURE__ */ s(Ye, { required: n, ...t, children: e.multi ? /* @__PURE__ */ s(Qm, { readonly: e.readOnly, maxLength: e.size }) : /* @__PURE__ */ s(
18099
- ed,
18110
+ td,
18100
18111
  {
18101
18112
  ooui: e,
18102
18113
  linkPrefix: "mailto:",
18103
- valueValidator: (r) => r ? yu(r, { allow_display_name: !0 }) : !1
18114
+ valueValidator: (r) => r ? vu(r, { allow_display_name: !0 }) : !1
18104
18115
  }
18105
18116
  ) });
18106
18117
  }, Ob = (t) => {
@@ -18200,7 +18211,7 @@ function Db({ refreshGraph: t }) {
18200
18211
  } = pe(Dt);
18201
18212
  return /* @__PURE__ */ j(nt, { wrap: !0, children: [
18202
18213
  /* @__PURE__ */ s(
18203
- Il,
18214
+ Rl,
18204
18215
  {
18205
18216
  icon: /* @__PURE__ */ s(
18206
18217
  qn,
@@ -18285,7 +18296,7 @@ const kb = (t) => {
18285
18296
  le(() => {
18286
18297
  n && P(!0);
18287
18298
  }, [n]);
18288
- const K = jt(
18299
+ const K = Vt(
18289
18300
  () => an(k || [], i),
18290
18301
  [i, k]
18291
18302
  ), B = lt(async () => {
@@ -18332,7 +18343,7 @@ const kb = (t) => {
18332
18343
  le(() => {
18333
18344
  Y && L(!0);
18334
18345
  }, [Y]);
18335
- const { clear: Z, searchFilterLoading: se, searchError: me, offset: G, tableRefreshing: ae } = Fc({
18346
+ const { clear: Z, searchFilterLoading: se, searchError: me, offset: G, tableRefreshing: ae } = Ac({
18336
18347
  model: r,
18337
18348
  setSearchTreeNameSearch: S,
18338
18349
  setSelectedRowItems: y,
@@ -18491,7 +18502,7 @@ function Pb() {
18491
18502
  (o == null ? void 0 : o.write) && /* @__PURE__ */ s(
18492
18503
  Rt,
18493
18504
  {
18494
- icon: /* @__PURE__ */ s(Nd, {}),
18505
+ icon: /* @__PURE__ */ s(Pd, {}),
18495
18506
  tooltip: i("configDashboard"),
18496
18507
  disabled: t,
18497
18508
  loading: !1,
@@ -18601,7 +18612,7 @@ const $b = (t) => {
18601
18612
  id: e.id,
18602
18613
  disabled: !r
18603
18614
  }), x = {
18604
- transform: Du.Transform.toString(y),
18615
+ transform: ku.Transform.toString(y),
18605
18616
  transition: v,
18606
18617
  opacity: b ? 0.5 : 1,
18607
18618
  cursor: "pointer"
@@ -18710,7 +18721,7 @@ const $b = (t) => {
18710
18721
  ]
18711
18722
  }
18712
18723
  ) });
18713
- }, td = et(Bb), { Text: jr } = en, { useToken: jb } = ot, Ub = (t) => {
18724
+ }, nd = et(Bb), { Text: jr } = en, { useToken: jb } = ot, Ub = (t) => {
18714
18725
  const {
18715
18726
  column: e,
18716
18727
  kanbanDef: n,
@@ -18723,7 +18734,7 @@ const $b = (t) => {
18723
18734
  isLoadingAggregates: d = !1,
18724
18735
  onCardClick: f,
18725
18736
  onButtonClick: u
18726
- } = t, { t: p } = xe(), { token: m } = jb(), { setNodeRef: g, isOver: h } = Tu({
18737
+ } = t, { t: p } = xe(), { token: m } = jb(), { setNodeRef: g, isOver: h } = Fu({
18727
18738
  id: e.id
18728
18739
  }), y = e.records.map((x) => x.id), v = a !== void 0 && e.count > a, b = l && Object.keys(l).length > 0 ? Object.values(l).map((x) => `${x.label}: ${x.amount}`).join(", ") : null;
18729
18740
  return /* @__PURE__ */ j(
@@ -18795,12 +18806,12 @@ const $b = (t) => {
18795
18806
  Wa,
18796
18807
  {
18797
18808
  items: y,
18798
- strategy: _u,
18809
+ strategy: Eu,
18799
18810
  disabled: !i,
18800
18811
  children: e.records.map((x) => {
18801
18812
  var C;
18802
18813
  return /* @__PURE__ */ s(
18803
- td,
18814
+ nd,
18804
18815
  {
18805
18816
  color: (C = o == null ? void 0 : o.current) == null ? void 0 : C[x.id],
18806
18817
  record: x,
@@ -18929,7 +18940,7 @@ const $b = (t) => {
18929
18940
  ))
18930
18941
  }
18931
18942
  ),
18932
- /* @__PURE__ */ s(Fu, { children: m ? /* @__PURE__ */ s(
18943
+ /* @__PURE__ */ s(Au, { children: m ? /* @__PURE__ */ s(
18933
18944
  "div",
18934
18945
  {
18935
18946
  style: {
@@ -18938,7 +18949,7 @@ const $b = (t) => {
18938
18949
  transform: "rotate(5deg)"
18939
18950
  },
18940
18951
  children: /* @__PURE__ */ s(
18941
- td,
18952
+ nd,
18942
18953
  {
18943
18954
  record: m,
18944
18955
  kanbanDef: r,
@@ -18966,9 +18977,9 @@ const $b = (t) => {
18966
18977
  le(() => {
18967
18978
  f !== void 0 && f !== S.current && (A.current = !1, S.current = f);
18968
18979
  }, [f]);
18969
- const [R, D] = Ae(
18980
+ const [R, D] = Fe(
18970
18981
  U.getHandler().search
18971
- ), [_, k] = Ae(
18982
+ ), [_, k] = Fe(
18972
18983
  U.getHandler().parseConditions
18973
18984
  );
18974
18985
  le(() => () => {
@@ -19104,9 +19115,9 @@ const $b = (t) => {
19104
19115
  columnIds: i,
19105
19116
  enabled: a = !0
19106
19117
  }) => {
19107
- const [c, l] = F({}), [d, f] = F(!1), [u, p] = Ae(
19118
+ const [c, l] = F({}), [d, f] = F(!1), [u, p] = Fe(
19108
19119
  U.getHandler().readAggregates
19109
- ), m = jt(() => {
19120
+ ), m = Vt(() => {
19110
19121
  if (!(t != null && t.aggregations))
19111
19122
  return;
19112
19123
  const y = t.aggregations;
@@ -19186,7 +19197,7 @@ const $b = (t) => {
19186
19197
  le(() => {
19187
19198
  if (!(!n.arch || !n.fields))
19188
19199
  try {
19189
- const E = new Sd(n.fields);
19200
+ const E = new Td(n.fields);
19190
19201
  E.parse(n.arch), u(E), m(null);
19191
19202
  } catch (E) {
19192
19203
  console.error("Error parsing kanban definition:", E), m(E);
@@ -19293,7 +19304,7 @@ const $b = (t) => {
19293
19304
  }
19294
19305
  );
19295
19306
  }, Jb = et(
19296
- Ht(Kb)
19307
+ Bt(Kb)
19297
19308
  ), Xb = (t) => {
19298
19309
  const { visible: e, kanbanView: n, model: r, context: o, domain: i, availableViews: a } = t, { searchParams: c = [] } = Nt(), [l, d] = F(!1), [f, u] = F(!1), [p, m] = F(), g = z(null), h = z(null), y = Os({
19299
19310
  elementRef: h,
@@ -19385,7 +19396,7 @@ function ew({
19385
19396
  ...o !== void 0 && { limit: o },
19386
19397
  ...i && i > 1 && { currentPage: i },
19387
19398
  order: a
19388
- }, p = El(u), { type: m } = d;
19399
+ }, p = Ol(u), { type: m } = d;
19389
19400
  let g = !!f;
19390
19401
  return m === "form" && (g = !!f && !!r), { shareUrl: p, canShare: g };
19391
19402
  }
@@ -19437,7 +19448,7 @@ function nw(t, e) {
19437
19448
  setCurrentId: fe,
19438
19449
  tabs: ce,
19439
19450
  activeKey: te,
19440
- openAction: Fe,
19451
+ openAction: Ae,
19441
19452
  onRemoveTab: Ce
19442
19453
  } = de || {};
19443
19454
  Tn(
@@ -19636,7 +19647,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
19636
19647
  he(Pe);
19637
19648
  } else {
19638
19649
  const Pe = i.find((Se) => Se[1] === Le);
19639
- Fe({
19650
+ Ae({
19640
19651
  domain: ze,
19641
19652
  context: o,
19642
19653
  model: r,
@@ -19833,8 +19844,8 @@ const rw = ({
19833
19844
  `${v.type}-${v.view_id}`
19834
19845
  );
19835
19846
  }
19836
- })), nd = Ht(nw);
19837
- const ow = Cu(Su), sw = (t) => {
19847
+ })), rd = Bt(nw);
19848
+ const ow = Su(Tu), sw = (t) => {
19838
19849
  const { children: e = [], onPositionItemsChanged: n } = t, r = Zt.Children.map(
19839
19850
  e,
19840
19851
  (o) => {
@@ -19869,9 +19880,9 @@ function iw(t, e) {
19869
19880
  setIsLoading: p,
19870
19881
  openAction: m,
19871
19882
  moveItemsEnabled: g
19872
- } = pe(Js), h = z(), y = z(), [v] = Ae(U.getHandler().getView), [b] = Ae(
19883
+ } = pe(Js), h = z(), y = z(), [v] = Fe(U.getHandler().getView), [b] = Fe(
19873
19884
  U.getHandler().readObjects
19874
- ), [x] = Ae(U.getHandler().update), C = Qt(
19885
+ ), [x] = Fe(U.getHandler().update), C = Qt(
19875
19886
  Ft.FEATURE_READFORVIEW
19876
19887
  );
19877
19888
  le(() => {
@@ -19941,7 +19952,7 @@ function iw(t, e) {
19941
19952
  for (const O of E) {
19942
19953
  const { values: V } = O;
19943
19954
  if (V.action_id && V.action_id.length > 0) {
19944
- const N = parseInt(V.action_id[0], 10), L = yl({
19955
+ const N = parseInt(V.action_id[0], 10), L = vl({
19945
19956
  actionId: N,
19946
19957
  rootContext: r
19947
19958
  }).then((q) => ({ ...O, actionData: q }));
@@ -20034,7 +20045,7 @@ function iw(t, e) {
20034
20045
  );
20035
20046
  } else if ((Z == null ? void 0 : Z.type) === "form")
20036
20047
  G = /* @__PURE__ */ s(
20037
- _c,
20048
+ Ec,
20038
20049
  {
20039
20050
  model: B,
20040
20051
  view_id: K.filter(
@@ -20046,7 +20057,7 @@ function iw(t, e) {
20046
20057
  );
20047
20058
  else if ((Z == null ? void 0 : Z.type) === "tree")
20048
20059
  G = /* @__PURE__ */ s(
20049
- Ec,
20060
+ Oc,
20050
20061
  {
20051
20062
  model: B,
20052
20063
  domain: Y,
@@ -20065,7 +20076,7 @@ function iw(t, e) {
20065
20076
  actionType: fe,
20066
20077
  title: ce,
20067
20078
  model: te
20068
- } = M, Fe = {
20079
+ } = M, Ae = {
20069
20080
  action_id: ue,
20070
20081
  action_type: fe,
20071
20082
  name: ce,
@@ -20074,7 +20085,7 @@ function iw(t, e) {
20074
20085
  view_id: J,
20075
20086
  view_type: de
20076
20087
  };
20077
- m(Fe);
20088
+ m(Ae);
20078
20089
  }
20079
20090
  }
20080
20091
  },
@@ -20083,7 +20094,7 @@ function iw(t, e) {
20083
20094
  else if (Z !== void 0) {
20084
20095
  const ee = Z && Array.isArray(Z.id) ? { ...Z, id: Z.id[0] } : Z;
20085
20096
  G = /* @__PURE__ */ s(
20086
- nd,
20097
+ rd,
20087
20098
  {
20088
20099
  action_id: L,
20089
20100
  action_type: q,
@@ -20125,7 +20136,7 @@ function iw(t, e) {
20125
20136
  };
20126
20137
  }
20127
20138
  return /* @__PURE__ */ s(
20128
- Rc,
20139
+ _c,
20129
20140
  {
20130
20141
  id: N,
20131
20142
  title: $,
@@ -20139,7 +20150,7 @@ function iw(t, e) {
20139
20150
  );
20140
20151
  }) });
20141
20152
  }
20142
- const aw = Ht(iw), lw = (t) => {
20153
+ const aw = Bt(iw), lw = (t) => {
20143
20154
  const { ooui: e } = t;
20144
20155
  return /* @__PURE__ */ s(Ye, { type: "array", ...t, children: /* @__PURE__ */ s(cw, { ooui: e }) });
20145
20156
  }, cw = (t) => {
@@ -20223,7 +20234,7 @@ const aw = Ht(iw), lw = (t) => {
20223
20234
  /* @__PURE__ */ s(Ge, { onClick: A, disabled: i.length === 0, children: "Uncheck all" })
20224
20235
  ] })
20225
20236
  ] }) });
20226
- }, dw = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(rd, {}) }), rd = Ht(
20237
+ }, dw = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(od, {}) }), od = Bt(
20227
20238
  (t, e) => {
20228
20239
  const { value: n = "", onChange: r, ...o } = t, { ooui: i } = o, [a, c] = F(n), l = z(!1);
20229
20240
  le(() => {
@@ -20288,9 +20299,9 @@ const aw = Ht(iw), lw = (t) => {
20288
20299
  overflow: "auto"
20289
20300
  },
20290
20301
  children: /* @__PURE__ */ s(
20291
- vu,
20302
+ bu,
20292
20303
  {
20293
- remarkPlugins: [bu],
20304
+ remarkPlugins: [wu],
20294
20305
  className: "markdown-typography",
20295
20306
  components: {
20296
20307
  input: (f) => f.type === "checkbox" ? /* @__PURE__ */ s(
@@ -20312,7 +20323,7 @@ const aw = Ht(iw), lw = (t) => {
20312
20323
  ) });
20313
20324
  }
20314
20325
  );
20315
- rd.displayName = "MarkdownInput";
20326
+ od.displayName = "MarkdownInput";
20316
20327
  const uw = (t) => {
20317
20328
  const { ooui: e } = t, { required: n } = e;
20318
20329
  return /* @__PURE__ */ s(Ye, { required: n, type: "any", ...t, children: /* @__PURE__ */ s(fw, { ...t }) });
@@ -20327,7 +20338,7 @@ const uw = (t) => {
20327
20338
  return /* @__PURE__ */ s(Ye, { ...t, valuePropName: "checked", children: /* @__PURE__ */ s(pw, { id: n, readOnly: r, required: o }) });
20328
20339
  }, pw = (t) => {
20329
20340
  const { required: e, readOnly: n, ...r } = t;
20330
- return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(gd, { disabled: n, ...r }) });
20341
+ return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(yd, { disabled: n, ...r }) });
20331
20342
  }, hw = (t) => {
20332
20343
  const { ooui: e } = t, { required: n } = e;
20333
20344
  return /* @__PURE__ */ s(Ye, { required: n, type: "any", ...t, children: /* @__PURE__ */ s(gw, { ...t }) });
@@ -20423,7 +20434,7 @@ const uw = (t) => {
20423
20434
  return n;
20424
20435
  }, [o, n]);
20425
20436
  return /* @__PURE__ */ s(
20426
- wu,
20437
+ xu,
20427
20438
  {
20428
20439
  value: f,
20429
20440
  options: {
@@ -20436,7 +20447,7 @@ const uw = (t) => {
20436
20447
  }
20437
20448
  );
20438
20449
  }, { Meta: xw } = rr, { Text: Cw } = en, Sw = ({ email: t, size: e = 40, theme: n = "" }) => {
20439
- const r = `https://www.gravatar.com/avatar/${xu(
20450
+ const r = `https://www.gravatar.com/avatar/${Cu(
20440
20451
  t
20441
20452
  )}?s=${e}&d=${n}`;
20442
20453
  return /* @__PURE__ */ s(pa, { src: r, size: e });
@@ -20499,7 +20510,7 @@ const Fw = (t) => {
20499
20510
  }
20500
20511
  }
20501
20512
  );
20502
- }, Iw = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Aw, { ooui: t.ooui }) }), Rw = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(nu, {}) }), _w = (t) => {
20513
+ }, Iw = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Aw, { ooui: t.ooui }) }), Rw = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(ru, {}) }), _w = (t) => {
20503
20514
  const { ooui: e } = t, n = pe(st);
20504
20515
  let { title: r, text: o, alertType: i, icon: a, buttons: c } = e;
20505
20516
  if (e.fieldType && e.id) {
@@ -20511,7 +20522,7 @@ const Fw = (t) => {
20511
20522
  icon: a = e.icon,
20512
20523
  buttons: c = []
20513
20524
  } = f, c && (c = c.map(
20514
- (u) => new Td({ ...u, readonly: e.readOnly })
20525
+ (u) => new Fd({ ...u, readonly: e.readOnly })
20515
20526
  )), e.buttons && (c = [...e.buttons, ...c])) : console.log(`field value for ${e.id} is not an object`);
20516
20527
  }
20517
20528
  function l(f) {
@@ -20542,7 +20553,7 @@ const Fw = (t) => {
20542
20553
  },
20543
20554
  o
20544
20555
  )) });
20545
- }, kw = Ot(yd)`
20556
+ }, kw = Ot(vd)`
20546
20557
  .slick-dots li button {
20547
20558
  background-color: ${da.colorPrimary};
20548
20559
  }
@@ -20574,7 +20585,7 @@ function Lw() {
20574
20585
  function Vw(t, e) {
20575
20586
  const { children: n } = t, [r, o] = F("welcome"), { t: i } = xe(), { showErrorNotification: a } = xt(), { globalValues: c, rootContext: l } = tn(), d = go(
20576
20587
  Ft.FEATURE_LOGGABLE_ACTIONS
20577
- ), [f, u] = Ae(
20588
+ ), [f, u] = Fe(
20578
20589
  U.getHandler().logAction
20579
20590
  );
20580
20591
  le(() => () => {
@@ -20629,7 +20640,7 @@ function Vw(t, e) {
20629
20640
  model: T.model,
20630
20641
  context: l
20631
20642
  });
20632
- let L = Ol(
20643
+ let L = Dl(
20633
20644
  M == null ? void 0 : M.values
20634
20645
  );
20635
20646
  const q = O || L.active_id || L.id;
@@ -20708,7 +20719,7 @@ function Vw(t, e) {
20708
20719
  action: T,
20709
20720
  context: l
20710
20721
  });
20711
- if (P.type === gl) {
20722
+ if (P.type === yl) {
20712
20723
  a({
20713
20724
  type: "error",
20714
20725
  title: "Error",
@@ -20882,19 +20893,19 @@ function Vw(t, e) {
20882
20893
  limit: ee
20883
20894
  } = K, ie = X === "tree", J = [];
20884
20895
  for (const ce of me) {
20885
- const [te, Fe] = ce;
20896
+ const [te, Ae] = ce;
20886
20897
  if (te)
20887
20898
  J.push(ce);
20888
- else if (Fe === "dashboard")
20899
+ else if (Ae === "dashboard")
20889
20900
  J.push([void 0, "dashboard"]);
20890
20901
  else {
20891
20902
  const { view_id: Ce } = await U.getHandler().getView({
20892
20903
  model: se,
20893
- type: Fe,
20904
+ type: Ae,
20894
20905
  id: te,
20895
20906
  context: { ...l, ...W }
20896
20907
  });
20897
- J.push([Ce, Fe]);
20908
+ J.push([Ce, Ae]);
20898
20909
  }
20899
20910
  }
20900
20911
  let de, ue;
@@ -20999,7 +21010,7 @@ function Vw(t, e) {
20999
21010
  S({
21000
21011
  title: L,
21001
21012
  content: /* @__PURE__ */ s(
21002
- nd,
21013
+ rd,
21003
21014
  {
21004
21015
  action_id: $,
21005
21016
  action_type: H,
@@ -21089,7 +21100,7 @@ function Vw(t, e) {
21089
21100
  }
21090
21101
  );
21091
21102
  }
21092
- const W0 = Ht(Vw), { useToken: Hw } = ot;
21103
+ const W0 = Bt(Vw), { useToken: Hw } = ot;
21093
21104
  function Bw(t) {
21094
21105
  const { label: e, onClose: n, tabKey: r, isActive: o, onSelected: i, onTitleChange: a } = t, { token: c } = Hw(), l = o ? c.colorBgContainer : c.colorPrimaryBg, [d, f] = F(!1), [u, p] = F(e), m = z(null), g = c.colorPrimaryActive, {
21095
21106
  attributes: h,
@@ -21268,8 +21279,8 @@ function q0() {
21268
21279
  distance: 8
21269
21280
  }
21270
21281
  }),
21271
- Zo(Au, {
21272
- coordinateGetter: Eu
21282
+ Zo(Iu, {
21283
+ coordinateGetter: Ou
21273
21284
  })
21274
21285
  ), u = I((v) => {
21275
21286
  if (d(!0), v.activatorEvent && "clientX" in v.activatorEvent) {
@@ -21331,16 +21342,16 @@ function q0() {
21331
21342
  ja,
21332
21343
  {
21333
21344
  sensors: f,
21334
- collisionDetection: Iu,
21345
+ collisionDetection: Ru,
21335
21346
  onDragStart: u,
21336
21347
  onDragEnd: m,
21337
21348
  onDragCancel: p,
21338
- modifiers: [Ru],
21349
+ modifiers: [_u],
21339
21350
  children: /* @__PURE__ */ s(
21340
21351
  Wa,
21341
21352
  {
21342
21353
  items: g,
21343
- strategy: Ou,
21354
+ strategy: Du,
21344
21355
  children: n.map((v) => /* @__PURE__ */ s(
21345
21356
  Bw,
21346
21357
  {
@@ -21414,7 +21425,7 @@ const { useToken: Ww } = ot, Y0 = (t) => {
21414
21425
  }, [D]);
21415
21426
  function _(L) {
21416
21427
  const q = L;
21417
- (q == null ? void 0 : q.action_type) !== gl && b(q);
21428
+ (q == null ? void 0 : q.action_type) !== yl && b(q);
21418
21429
  }
21419
21430
  const k = I(async () => {
21420
21431
  if (!R)
@@ -21522,7 +21533,7 @@ const { useToken: Ww } = ot, Y0 = (t) => {
21522
21533
  );
21523
21534
  return /* @__PURE__ */ j(we, { children: [
21524
21535
  /* @__PURE__ */ s(
21525
- ru,
21536
+ ou,
21526
21537
  {
21527
21538
  ref: y,
21528
21539
  isFavourite: a,
@@ -21531,7 +21542,7 @@ const { useToken: Ww } = ot, Y0 = (t) => {
21531
21542
  placement: "bottomRight",
21532
21543
  header: /* @__PURE__ */ j("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
21533
21544
  /* @__PURE__ */ s("div", { style: { paddingLeft: 15, color: "#ccc" }, children: g("favorites").toUpperCase() }),
21534
- /* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(Vt, { title: g("edit_favorites"), children: /* @__PURE__ */ s(
21545
+ /* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(Ht, { title: g("edit_favorites"), children: /* @__PURE__ */ s(
21535
21546
  bs,
21536
21547
  {
21537
21548
  style: { color: h.colorPrimary, cursor: "pointer" },
@@ -21544,7 +21555,7 @@ const { useToken: Ww } = ot, Y0 = (t) => {
21544
21555
  }
21545
21556
  ),
21546
21557
  /* @__PURE__ */ s(
21547
- Dc,
21558
+ kc,
21548
21559
  {
21549
21560
  visible: f,
21550
21561
  initialName: p,
@@ -21560,23 +21571,23 @@ export {
21560
21571
  Bf as ACTION_TYPE_URL,
21561
21572
  Rn as ACTION_TYPE_WINDOW,
21562
21573
  Hf as ACTION_TYPE_WINDOW_CLOSE,
21563
- gl as ACTION_TYPE_WIZARD,
21574
+ yl as ACTION_TYPE_WIZARD,
21564
21575
  Ib as ActionBar,
21565
- nd as ActionView,
21576
+ rd as ActionView,
21566
21577
  $y as ActionViewProvider,
21567
21578
  _w as Alert,
21568
21579
  vw as ArrowStepsField,
21569
21580
  xb as Binary,
21570
- uf as Boolean,
21581
+ ff as Boolean,
21571
21582
  Ts as Button,
21572
- Gu as ButtonGroup,
21583
+ Yu as ButtonGroup,
21573
21584
  iv as Card,
21574
21585
  Dw as Carousel,
21575
21586
  Ka as Char,
21576
21587
  bw as CodeEditor,
21577
21588
  Mw as ColorPicker,
21578
21589
  Iw as CommentsTimelineField,
21579
- hl as ConfigContext,
21590
+ gl as ConfigContext,
21580
21591
  Vf as ConfigContextProvider,
21581
21592
  U as ConnectionProvider,
21582
21593
  Fm as ContentRootProvider,
@@ -21596,11 +21607,11 @@ export {
21596
21607
  dr as Form,
21597
21608
  Mb as FormActionView,
21598
21609
  xn as FormModal,
21599
- Rc as GraphCard,
21610
+ _c as GraphCard,
21600
21611
  Yf as GraphIndicator,
21601
- Jc as Group,
21612
+ Xc as Group,
21602
21613
  Rw as HTMLPreview,
21603
- hf as Image,
21614
+ gf as Image,
21604
21615
  Cr as Integer,
21605
21616
  mo as Label,
21606
21617
  jf as MODEL_ACTIONS,
@@ -21617,7 +21628,7 @@ export {
21617
21628
  W0 as RootView,
21618
21629
  wo as SearchFilter,
21619
21630
  Co as SearchModal,
21620
- Ac as SearchTree,
21631
+ Ic as SearchTree,
21621
21632
  Za as Selection,
21622
21633
  rb as Separator,
21623
21634
  to as Spinner,