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

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 || {
@@ -1114,10 +1114,10 @@ const As = (t) => {
1114
1114
  }
1115
1115
  );
1116
1116
  }
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
1117
  }, gf = (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(yf, { ooui: e }) });
1120
+ }, yf = (t) => {
1121
1121
  const { ooui: e, value: n, onChange: r } = t, { readOnly: o } = e, i = z(null), { t: a } = xe(), c = (u) => {
1122
1122
  r == null || r(u);
1123
1123
  };
@@ -1183,10 +1183,10 @@ const As = (t) => {
1183
1183
  )
1184
1184
  ] }) })
1185
1185
  ] });
1186
- }, yf = (t) => {
1187
- const { ooui: e } = t, { required: n } = e;
1188
- return /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(vf, {}) });
1189
1186
  }, vf = (t) => {
1187
+ const { ooui: e } = t, { required: n } = e;
1188
+ return /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(bf, {}) });
1189
+ }, bf = (t) => {
1190
1190
  const { value: e, onChange: n } = t;
1191
1191
  if (!e)
1192
1192
  return null;
@@ -1196,7 +1196,7 @@ const As = (t) => {
1196
1196
  return console.error(r), null;
1197
1197
  }
1198
1198
  return /* @__PURE__ */ s(
1199
- pu,
1199
+ hu,
1200
1200
  {
1201
1201
  inputJson: e,
1202
1202
  onChange: (r) => {
@@ -1208,13 +1208,13 @@ const As = (t) => {
1208
1208
  const e = t.arch, n = t.fields, r = new ba(n);
1209
1209
  return r.parse(e), r;
1210
1210
  };
1211
- function bf(t) {
1211
+ function wf(t) {
1212
1212
  return typeof t == "number" || typeof t == "string" || typeof t == "boolean" || t === null || t === void 0 || Array.isArray(t) && t.length === 0;
1213
1213
  }
1214
1214
  const Is = (t, e, n, r = !1) => t.columns.map((i) => {
1215
1215
  const a = i.type, c = i.id, l = e == null ? void 0 : e[a];
1216
1216
  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: [
1217
+ 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
1218
  "Unsupported widget value for a Tree cell:",
1219
1219
  /* @__PURE__ */ s("pre", { children: /* @__PURE__ */ j("strong", { children: [
1220
1220
  "Type: ",
@@ -1325,7 +1325,7 @@ const Is = (t, e, n, r = !1) => t.columns.map((i) => {
1325
1325
  id: l[f][0],
1326
1326
  value: l[f][1]
1327
1327
  };
1328
- else if (m instanceof vd)
1328
+ else if (m instanceof bd)
1329
1329
  d[f] = l[f];
1330
1330
  else if (m instanceof ti) {
1331
1331
  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 +1385,7 @@ function Gn({
1385
1385
  };
1386
1386
  return t.sort(c);
1387
1387
  }
1388
- function wf(t) {
1388
+ function xf(t) {
1389
1389
  for (const e in t)
1390
1390
  if (Object.prototype.hasOwnProperty.call(t, e) && t[e] !== void 0)
1391
1391
  return !0;
@@ -1502,7 +1502,7 @@ const es = (t) => {
1502
1502
  }, al = (t) => {
1503
1503
  const e = t.filter((n) => n.id && n.id < 0).map((n) => n.id);
1504
1504
  return e.length === 0 ? -1 : Math.min(...e) - 1;
1505
- }, xf = (t, e) => {
1505
+ }, Cf = (t, e) => {
1506
1506
  const n = {};
1507
1507
  return Object.keys(t).forEach((r) => {
1508
1508
  var o;
@@ -1510,7 +1510,7 @@ const es = (t) => {
1510
1510
  (i) => i.operation !== "pendingRemove"
1511
1511
  ) : n[r] = t[r];
1512
1512
  }), n;
1513
- }, Cf = ({
1513
+ }, Sf = ({
1514
1514
  values: t,
1515
1515
  fields: e
1516
1516
  }) => {
@@ -1529,7 +1529,7 @@ const es = (t) => {
1529
1529
  n[r] = t[r];
1530
1530
  }), n;
1531
1531
  };
1532
- function Sf(t) {
1532
+ function Tf(t) {
1533
1533
  const e = t.map((r) => r.id);
1534
1534
  return t.filter((r, o) => {
1535
1535
  const { id: i } = r;
@@ -1618,7 +1618,7 @@ const ll = ({
1618
1618
  colors: Zn(d[1] || {}),
1619
1619
  status: Yr(d[1] || {})
1620
1620
  };
1621
- }, Tf = (t, e) => {
1621
+ }, Ff = (t, e) => {
1622
1622
  if (!e)
1623
1623
  return t;
1624
1624
  const n = {};
@@ -1632,7 +1632,7 @@ const ll = ({
1632
1632
  } else
1633
1633
  n[r] = t[r];
1634
1634
  }), n;
1635
- }, jn = (t, e) => Tf(t, e), Io = ({
1635
+ }, jn = (t, e) => Ff(t, e), Io = ({
1636
1636
  source: t,
1637
1637
  target: e,
1638
1638
  fields: n
@@ -1665,7 +1665,7 @@ const ll = ({
1665
1665
  else
1666
1666
  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
1667
  }), r;
1668
- }, Ff = ({
1668
+ }, Af = ({
1669
1669
  changedFields: t,
1670
1670
  formOoui: e,
1671
1671
  types: n
@@ -1673,7 +1673,7 @@ const ll = ({
1673
1673
  var a;
1674
1674
  const i = (a = e == null ? void 0 : e.findById(o)) == null ? void 0 : a.type;
1675
1675
  return n.includes(i);
1676
- }).some((o) => o === !0), Af = ({
1676
+ }).some((o) => o === !0), If = ({
1677
1677
  fieldsDomain: t,
1678
1678
  fields: e
1679
1679
  }) => {
@@ -1681,7 +1681,7 @@ const ll = ({
1681
1681
  return Object.keys(e).forEach((r) => {
1682
1682
  n[r] = e[r], t[r] && (n[r].domain = t[r]);
1683
1683
  }), n;
1684
- }, If = (t) => {
1684
+ }, ml = (t) => {
1685
1685
  const e = {};
1686
1686
  return !t || !Array.isArray(t) || (t == null ? void 0 : t.length) === 0 ? {} : (t.forEach((n) => {
1687
1687
  (n == null ? void 0 : n[1]) === "=" && (e[n[0]] = n[2]);
@@ -1751,8 +1751,8 @@ const Mn = ({
1751
1751
  n += ("00" + o.toString(16)).slice(-2);
1752
1752
  }
1753
1753
  return n;
1754
- }, ml = (t, e = 7) => ({
1755
- text: du(t)[e],
1754
+ }, pl = (t, e = 7) => ({
1755
+ text: uu(t)[e],
1756
1756
  background: `${t}40`
1757
1757
  }), Ef = (t, e) => t.replace(
1758
1758
  /\{([^}]+)\}/g,
@@ -2298,7 +2298,7 @@ const Mn = ({
2298
2298
  ca_ES: Mf,
2299
2299
  en_US: Nf,
2300
2300
  es_ES: Pf
2301
- }, pl = 100, Lf = {
2301
+ }, hl = 100, Lf = {
2302
2302
  erpFeatures: {},
2303
2303
  userFeatures: {
2304
2304
  features: {},
@@ -2308,10 +2308,10 @@ const Mn = ({
2308
2308
  globalValues: {},
2309
2309
  rootContext: {},
2310
2310
  devMode: !1,
2311
- treeMaxLimit: pl,
2311
+ treeMaxLimit: hl,
2312
2312
  onActionTriggered: void 0
2313
- }, hl = Zt.createContext(Lf), tn = () => {
2314
- const t = pe(hl);
2313
+ }, gl = Zt.createContext(Lf), tn = () => {
2314
+ const t = pe(gl);
2315
2315
  if (!t)
2316
2316
  throw new Error(
2317
2317
  "useConfigContext must be used within a ConfigContextProvider"
@@ -2336,7 +2336,7 @@ const Mn = ({
2336
2336
  rootContext: o,
2337
2337
  devMode: i,
2338
2338
  title: a,
2339
- treeMaxLimit: c = pl,
2339
+ treeMaxLimit: c = hl,
2340
2340
  children: l,
2341
2341
  userFeatures: d,
2342
2342
  onActionTriggered: f
@@ -2363,19 +2363,19 @@ const Mn = ({
2363
2363
  f
2364
2364
  ]
2365
2365
  );
2366
- return /* @__PURE__ */ s(hl.Provider, { value: u, children: /* @__PURE__ */ s(
2367
- qd,
2366
+ return /* @__PURE__ */ s(gl.Provider, { value: u, children: /* @__PURE__ */ s(
2367
+ Gd,
2368
2368
  {
2369
2369
  locale: e,
2370
- localizedStrings: Gd($f, n),
2370
+ localizedStrings: Yd($f, n),
2371
2371
  children: l
2372
2372
  }
2373
2373
  ) });
2374
2374
  }
2375
2375
  );
2376
2376
  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({
2377
+ 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";
2378
+ async function vl({
2379
2379
  actionId: t,
2380
2380
  rootContext: e = {},
2381
2381
  globalValues: n = {}
@@ -2437,7 +2437,7 @@ const Wf = (t) => {
2437
2437
  return { actionData: a, treeShortcut: l, loading: o, error: n, fetchData: async () => {
2438
2438
  r(void 0), e.current || i(!0);
2439
2439
  try {
2440
- const b = await yl({
2440
+ const b = await vl({
2441
2441
  actionId: t,
2442
2442
  rootContext: y,
2443
2443
  globalValues: {
@@ -2492,7 +2492,7 @@ const Wf = (t) => {
2492
2492
  },
2493
2493
  children: /* @__PURE__ */ s(rt, {})
2494
2494
  }
2495
- ), vl = ({
2495
+ ), bl = ({
2496
2496
  error: t,
2497
2497
  className: e
2498
2498
  }) => {
@@ -2518,7 +2518,7 @@ const Wf = (t) => {
2518
2518
  banner: !0
2519
2519
  }
2520
2520
  );
2521
- }, Ae = (t) => {
2521
+ }, Fe = (t) => {
2522
2522
  const e = z(/* @__PURE__ */ new Map());
2523
2523
  le(() => () => {
2524
2524
  n();
@@ -2543,7 +2543,7 @@ const Wf = (t) => {
2543
2543
  },
2544
2544
  [n, t]
2545
2545
  ), n];
2546
- }, Kr = 0.7, Jr = 30, bl = (t) => {
2546
+ }, Kr = 0.7, Jr = 30, wl = (t) => {
2547
2547
  const [e, n] = F(0), [r, o] = F(0), {
2548
2548
  value: i,
2549
2549
  totalValue: a,
@@ -2594,7 +2594,7 @@ const Wf = (t) => {
2594
2594
  }
2595
2595
  );
2596
2596
  };
2597
- function wl(t, e) {
2597
+ function xl(t, e) {
2598
2598
  const r = document.createElement("canvas").getContext("2d");
2599
2599
  return r.font = e || getComputedStyle(document.body).font, r.measureText(t).width;
2600
2600
  }
@@ -2616,7 +2616,7 @@ function qf({
2616
2616
  });
2617
2617
  let u = r ? `${d}/${f}` : `${d}`;
2618
2618
  c && (u += " " + c);
2619
- let p = wl(
2619
+ let p = xl(
2620
2620
  u,
2621
2621
  `bold ${Math.floor(l * 1.03)}px sans-serif`
2622
2622
  );
@@ -2664,7 +2664,7 @@ function Gf({
2664
2664
  const m = `${r == null ? void 0 : r.toLocaleString("es-ES", {
2665
2665
  useGrouping: !0
2666
2666
  })}%`;
2667
- let g = wl(
2667
+ let g = xl(
2668
2668
  m,
2669
2669
  `bold ${Math.floor(f * 1.03)}px sans-serif`
2670
2670
  );
@@ -2719,15 +2719,15 @@ const { getValueForOperator: ui } = xa, Yf = (t) => {
2719
2719
  operator: f,
2720
2720
  manualIds: u,
2721
2721
  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(
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] = Fe(
2723
2723
  U.getHandler().searchAllIds
2724
- ), [E] = Ae(
2724
+ ), [E] = Fe(
2725
2725
  U.getHandler().readObjects
2726
- ), [T] = Ae(
2726
+ ), [T] = Fe(
2727
2727
  U.getHandler().searchCount
2728
- ), [M] = Ae(
2728
+ ), [M] = Fe(
2729
2729
  U.getHandler().evalDomain
2730
- ), [O] = Ae(
2730
+ ), [O] = Fe(
2731
2731
  U.getHandler().parseCondition
2732
2732
  );
2733
2733
  le(() => {
@@ -2825,7 +2825,7 @@ const { getValueForOperator: ui } = xa, Yf = (t) => {
2825
2825
  g(!1);
2826
2826
  }
2827
2827
  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,
2828
+ wl,
2829
2829
  {
2830
2830
  value: h,
2831
2831
  totalValue: x,
@@ -2837,7 +2837,7 @@ const { getValueForOperator: ui } = xa, Yf = (t) => {
2837
2837
  fixedHeight: p
2838
2838
  }
2839
2839
  );
2840
- }, { processGraphData: zf } = xa, { getFieldsToRetrieve: Kf } = bd, Jf = (t) => {
2840
+ }, { processGraphData: zf } = xa, { getFieldsToRetrieve: Kf } = wd, Jf = (t) => {
2841
2841
  const {
2842
2842
  model: e,
2843
2843
  ooui: n,
@@ -2846,11 +2846,11 @@ const { getValueForOperator: ui } = xa, Yf = (t) => {
2846
2846
  limit: i,
2847
2847
  uninformedString: a,
2848
2848
  manualIds: c
2849
- } = t, [l, d] = F(!1), [f, u] = F(), [p, m] = F(), [g, h] = F(), [y, v] = F("line"), [b] = Ae(
2849
+ } = t, [l, d] = F(!1), [f, u] = F(), [p, m] = F(), [g, h] = F(), [y, v] = F("line"), [b] = Fe(
2850
2850
  U.getHandler().getFields
2851
- ), [x] = Ae(
2851
+ ), [x] = Fe(
2852
2852
  U.getHandler().readObjects
2853
- ), [C] = Ae(U.getHandler().search), w = I(async () => {
2853
+ ), [C] = Fe(U.getHandler().search), w = I(async () => {
2854
2854
  d(!0), u(void 0), v(n.type || "line");
2855
2855
  const A = Kf({ ooui: n });
2856
2856
  let S, R;
@@ -3041,7 +3041,7 @@ const Ro = (t) => (e) => {
3041
3041
  return parseFloat(t).toLocaleString("es-ES", {
3042
3042
  useGrouping: !0
3043
3043
  });
3044
- if (xl(t))
3044
+ if (Cl(t))
3045
3045
  return t.toLocaleString("es-ES", {
3046
3046
  useGrouping: !0
3047
3047
  });
@@ -3052,7 +3052,7 @@ const Ro = (t) => (e) => {
3052
3052
  );
3053
3053
  } else
3054
3054
  return t;
3055
- }, Zf = (t) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t), xl = (t) => typeof t == "number" && !isNaN(t), mi = {
3055
+ }, Zf = (t) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t), Cl = (t) => typeof t == "number" && !isNaN(t), mi = {
3056
3056
  default: {
3057
3057
  padding: "auto",
3058
3058
  xAxis: {
@@ -3189,11 +3189,11 @@ const nm = {
3189
3189
  x: l.x,
3190
3190
  percent: c[d]
3191
3191
  }));
3192
- }, { Text: pi } = en, om = 400, sm = et(iu), im = et(au), am = et(lu), lm = {
3192
+ }, { Text: pi } = en, om = 400, sm = et(au), im = et(lu), am = et(cu), lm = {
3193
3193
  line: sm,
3194
3194
  bar: im,
3195
3195
  pie: am
3196
- }, Cl = ({
3196
+ }, Sl = ({
3197
3197
  type: t,
3198
3198
  data: e,
3199
3199
  isGroup: n,
@@ -3342,7 +3342,7 @@ const dm = ({
3342
3342
  return /* @__PURE__ */ s(Or, {});
3343
3343
  const { data: g, isGroup: h, isStack: y, yAxisOpts: v } = f;
3344
3344
  return l ? (console.error(l), /* @__PURE__ */ s(Tt, { message: l, type: "error", banner: !0 })) : /* @__PURE__ */ s(
3345
- Cl,
3345
+ Sl,
3346
3346
  {
3347
3347
  type: u,
3348
3348
  data: g,
@@ -3416,10 +3416,10 @@ const dm = ({
3416
3416
  return Object.keys(e).forEach(
3417
3417
  (n) => (e[n] === void 0 || e[n] === null || e[n] === "") && delete e[n]
3418
3418
  ), 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) => {
3419
+ }, 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
3420
  const r = t[n];
3421
3421
  return r !== "" && r !== void 0 && (e[n] = r), e;
3422
- }, {}), Tl = (t, e) => {
3422
+ }, {}), Fl = (t, e) => {
3423
3423
  if (!t || !Array.isArray(t) || !e)
3424
3424
  return {};
3425
3425
  const n = t.reduce((r, o) => {
@@ -3456,8 +3456,8 @@ const dm = ({
3456
3456
  }, _o = {
3457
3457
  tree: /* @__PURE__ */ s(vs, {}),
3458
3458
  form: /* @__PURE__ */ s(yr, {}),
3459
- graph: /* @__PURE__ */ s(Ad, {}),
3460
- calendar: /* @__PURE__ */ s(Id, {}),
3459
+ graph: /* @__PURE__ */ s(Id, {}),
3460
+ calendar: /* @__PURE__ */ s(Rd, {}),
3461
3461
  kanban: /* @__PURE__ */ s(Ia, {})
3462
3462
  };
3463
3463
  function gi(t) {
@@ -3571,8 +3571,8 @@ function Rt(t) {
3571
3571
  }
3572
3572
  );
3573
3573
  }
3574
- const Fl = (t) => /* @__PURE__ */ s(Rt, { ...t, type: "primary", danger: !0 });
3575
- function Al(t) {
3574
+ const Al = (t) => /* @__PURE__ */ s(Rt, { ...t, type: "primary", danger: !0 });
3575
+ function Il(t) {
3576
3576
  const { disabled: e = !1 } = t, { formHasChanges: n, onNewClicked: r } = pe(
3577
3577
  Dt
3578
3578
  ), { t: o } = xe(), i = () => {
@@ -3599,7 +3599,7 @@ function Al(t) {
3599
3599
  );
3600
3600
  }
3601
3601
  const { useToken: vm } = ot;
3602
- function Il(t) {
3602
+ function Rl(t) {
3603
3603
  const { badgeNumber: e = 0, ...n } = t, { token: r } = vm();
3604
3604
  return /* @__PURE__ */ j("div", { style: { position: "relative" }, children: [
3605
3605
  e > 0 && /* @__PURE__ */ s("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ s(
@@ -3683,8 +3683,8 @@ function bm(t) {
3683
3683
  disabled: n,
3684
3684
  onChange: p,
3685
3685
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
3686
- suffix: (a || r && r.length > 0) && /* @__PURE__ */ s(Vt, { title: o("clear"), children: /* @__PURE__ */ s(
3687
- Rd,
3686
+ suffix: (a || r && r.length > 0) && /* @__PURE__ */ s(Ht, { title: o("clear"), children: /* @__PURE__ */ s(
3687
+ _d,
3688
3688
  {
3689
3689
  style: { color: "rgba(0,0,0,.45)" },
3690
3690
  onClick: u
@@ -3774,7 +3774,7 @@ const { useToken: xm } = ot, Cm = (t) => {
3774
3774
  setCurrentSavedSearch: w
3775
3775
  } = g || {}, A = go(
3776
3776
  Ft.FEATURE_LOGGABLE_ACTIONS
3777
- ), [S] = Ae(
3777
+ ), [S] = Fe(
3778
3778
  U.getHandler().logAction
3779
3779
  ), R = I(async () => [
3780
3780
  {
@@ -3824,7 +3824,7 @@ const { useToken: xm } = ot, Cm = (t) => {
3824
3824
  const N = V.originalData || V;
3825
3825
  if (N != null && N.domain) {
3826
3826
  w == null || w(N), y == null || y(N.domain);
3827
- const L = Tl(
3827
+ const L = Fl(
3828
3828
  N.domain,
3829
3829
  D
3830
3830
  );
@@ -3859,8 +3859,8 @@ const { useToken: xm } = ot, Cm = (t) => {
3859
3859
  count: (r == null ? void 0 : r.length) || 0,
3860
3860
  color: f.colorPrimary,
3861
3861
  offset: [-70, 2],
3862
- children: /* @__PURE__ */ s(Vt, { title: d == null ? void 0 : d("advanced_search"), children: /* @__PURE__ */ s(
3863
- Yd,
3862
+ children: /* @__PURE__ */ s(Ht, { title: d == null ? void 0 : d("advanced_search"), children: /* @__PURE__ */ s(
3863
+ zd,
3864
3864
  {
3865
3865
  ref: u,
3866
3866
  isActive: e,
@@ -3879,7 +3879,7 @@ const { useToken: xm } = ot, Cm = (t) => {
3879
3879
  children: (M = d == null ? void 0 : d("actions")) == null ? void 0 : M.toUpperCase()
3880
3880
  }
3881
3881
  ),
3882
- /* @__PURE__ */ s("div", { style: { paddingBottom: 5 }, children: /* @__PURE__ */ s(Vt, { title: d == null ? void 0 : d("clear_search"), children: /* @__PURE__ */ j(
3882
+ /* @__PURE__ */ s("div", { style: { paddingBottom: 5 }, children: /* @__PURE__ */ s(Ht, { title: d == null ? void 0 : d("clear_search"), children: /* @__PURE__ */ j(
3883
3883
  "div",
3884
3884
  {
3885
3885
  style: {
@@ -3910,7 +3910,7 @@ const { useToken: xm } = ot, Cm = (t) => {
3910
3910
  ] }),
3911
3911
  /* @__PURE__ */ j("div", { style: { display: "flex" }, children: [
3912
3912
  /* @__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(
3913
+ /* @__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
3914
  bs,
3915
3915
  {
3916
3916
  style: { color: f.colorPrimary, cursor: "pointer" },
@@ -3933,7 +3933,7 @@ const { useToken: xm } = ot, Cm = (t) => {
3933
3933
  qt
3934
3934
  ), { openAction: d } = l || {}, f = z([]), { t: u } = xe(), { showErrorNotification: p } = xt(), m = go(
3935
3935
  Ft.FEATURE_LOGGABLE_ACTIONS
3936
- ), [g, h] = Ae(
3936
+ ), [g, h] = Fe(
3937
3937
  U.getHandler().logAction
3938
3938
  );
3939
3939
  le(() => () => {
@@ -4273,7 +4273,7 @@ async function Tm({
4273
4273
  }
4274
4274
  return { views: i, initialView: a };
4275
4275
  }
4276
- const Fm = Ht(Sm), Rl = ({
4276
+ const Fm = Bt(Sm), _l = ({
4277
4277
  selectedRowItems: t,
4278
4278
  onRefreshParentValues: e,
4279
4279
  treeView: n,
@@ -4303,7 +4303,7 @@ const Fm = Ht(Sm), Rl = ({
4303
4303
  },
4304
4304
  [i, t, e, n, r]
4305
4305
  );
4306
- }, _l = ({
4306
+ }, El = ({
4307
4307
  disabled: t = !1,
4308
4308
  parentContext: e = {},
4309
4309
  selectedRowItems: n = [],
@@ -4313,12 +4313,12 @@ const Fm = Ht(Sm), Rl = ({
4313
4313
  treeView: a,
4314
4314
  toolbar: c
4315
4315
  }) => {
4316
- const { t: l } = xe(), d = Rl({
4316
+ const { t: l } = xe(), d = _l({
4317
4317
  selectedRowItems: n,
4318
4318
  onRefreshParentValues: r,
4319
4319
  treeView: a,
4320
4320
  view_id: i
4321
- }), [f, u] = F(null), [p, m] = F(!1), [g] = Ae(
4321
+ }), [f, u] = F(null), [p, m] = F(!1), [g] = Fe(
4322
4322
  U.getHandler().getToolbar
4323
4323
  ), h = c || f, y = I(async () => {
4324
4324
  if (c || f != null && f.action || f != null && f.print)
@@ -4399,7 +4399,7 @@ const Fm = Ht(Sm), Rl = ({
4399
4399
  };
4400
4400
  }, pt = et(() => /* @__PURE__ */ s("div", { className: "inline-block w-2" }));
4401
4401
  pt.displayName = "ActionBarSeparator";
4402
- const Am = "action", Im = ["active_id", "active_ids", "id"], Rm = ["target", "context", "domain", "fields"], El = (t) => {
4402
+ const Am = "action", Im = ["active_id", "active_ids", "id"], Rm = ["target", "context", "domain", "fields"], Ol = (t) => {
4403
4403
  const e = new URL(window.location.origin);
4404
4404
  e.pathname = Am;
4405
4405
  const n = {
@@ -4412,11 +4412,11 @@ const Am = "action", Im = ["active_id", "active_ids", "id"], Rm = ["target", "co
4412
4412
  }, _m = (t) => typeof t == "object" ? JSON.stringify(t) : t.toString(), Em = (t) => {
4413
4413
  const { context: e, domain: n, values: r } = t, o = {};
4414
4414
  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);
4415
+ const i = Dl(r);
4416
4416
  o.values = Object.keys(i).length > 0 ? i : void 0;
4417
4417
  }
4418
4418
  return Object.keys(o).length > 0 ? o : void 0;
4419
- }, Ol = (t) => !t || typeof t != "object" ? {} : Object.fromEntries(
4419
+ }, Dl = (t) => !t || typeof t != "object" ? {} : Object.fromEntries(
4420
4420
  Object.entries(t).filter(([e]) => Im.includes(e))
4421
4421
  ), Om = Ma("IconExternalLink"), Dm = Ma("IconShare2");
4422
4422
  function kr({ res_id: t, searchParams: e }) {
@@ -4449,7 +4449,7 @@ function kr({ res_id: t, searchParams: e }) {
4449
4449
  ...o !== void 0 && { limit: o },
4450
4450
  ...i && i > 1 && { currentPage: i },
4451
4451
  order: a
4452
- }, y = El(h), { type: v } = c || {};
4452
+ }, y = Ol(h), { type: v } = c || {};
4453
4453
  let b = !g;
4454
4454
  v === "form" && (b = !g || !t);
4455
4455
  const x = /* @__PURE__ */ s("div", { style: { padding: 2 }, children: /* @__PURE__ */ j(nt.Compact, { style: { width: "100%" }, children: [
@@ -4489,7 +4489,7 @@ function kr({ res_id: t, searchParams: e }) {
4489
4489
  }
4490
4490
  )
4491
4491
  ] }) });
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(
4492
+ 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
4493
  Rt,
4494
4494
  {
4495
4495
  style: { height: 28 },
@@ -4545,7 +4545,7 @@ function km({
4545
4545
  (ce = h == null ? void 0 : h.current) == null || ce.refreshResults();
4546
4546
  }, [h]), Y = I(() => {
4547
4547
  C == null || C(!x);
4548
- }, [x, C]), { actionButtonProps: Z, printButtonProps: se } = _l({
4548
+ }, [x, C]), { actionButtonProps: Z, printButtonProps: se } = El({
4549
4549
  toolbar: n,
4550
4550
  model: g,
4551
4551
  view_id: c == null ? void 0 : c.view_id,
@@ -4554,7 +4554,7 @@ function km({
4554
4554
  parentContext: t,
4555
4555
  selectedRowItems: d,
4556
4556
  onRefreshParentValues: W
4557
- }), me = Rl({
4557
+ }), me = _l({
4558
4558
  selectedRowItems: d,
4559
4559
  onRefreshParentValues: W,
4560
4560
  treeView: c,
@@ -4628,8 +4628,8 @@ function km({
4628
4628
  ), de = I(
4629
4629
  (ce) => {
4630
4630
  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(
4631
+ let te = (d == null ? void 0 : d.map((Ae) => Ae.id)) || [];
4632
+ te.length === 0 && (te = (_ == null ? void 0 : _.map((Ae) => Ae.id)) || []), me(
4633
4633
  {
4634
4634
  id: -1,
4635
4635
  model: g,
@@ -4724,7 +4724,7 @@ function km({
4724
4724
  onClearSavedSearch: i
4725
4725
  }
4726
4726
  ) : /* @__PURE__ */ s(
4727
- Il,
4727
+ Rl,
4728
4728
  {
4729
4729
  icon: /* @__PURE__ */ s(
4730
4730
  qn,
@@ -4740,7 +4740,7 @@ function km({
4740
4740
  }
4741
4741
  ),
4742
4742
  /* @__PURE__ */ s(pt, {}),
4743
- /* @__PURE__ */ s(Al, { disabled: S || !(N != null && N.create) }),
4743
+ /* @__PURE__ */ s(Il, { disabled: S || !(N != null && N.create) }),
4744
4744
  /* @__PURE__ */ s(
4745
4745
  Rt,
4746
4746
  {
@@ -4752,7 +4752,7 @@ function km({
4752
4752
  }
4753
4753
  ),
4754
4754
  /* @__PURE__ */ s(
4755
- Fl,
4755
+ Al,
4756
4756
  {
4757
4757
  icon: /* @__PURE__ */ s(ws, {}),
4758
4758
  tooltip: P("delete"),
@@ -4803,7 +4803,7 @@ function km({
4803
4803
  fn,
4804
4804
  {
4805
4805
  placement: "bottomRight",
4806
- icon: /* @__PURE__ */ s(Dl, {}),
4806
+ icon: /* @__PURE__ */ s(kl, {}),
4807
4807
  onRetrieveData: async () => [
4808
4808
  {
4809
4809
  label: P("export"),
@@ -4842,8 +4842,8 @@ function km({
4842
4842
  /* @__PURE__ */ s(kr, { searchParams: b })
4843
4843
  ] });
4844
4844
  }
4845
- const Mm = et(km), Dl = et(() => /* @__PURE__ */ s(
4846
- Fd,
4845
+ const Mm = et(km), kl = et(() => /* @__PURE__ */ s(
4846
+ Ad,
4847
4847
  {
4848
4848
  component: () => /* @__PURE__ */ j(
4849
4849
  "svg",
@@ -4868,7 +4868,7 @@ const Mm = et(km), Dl = et(() => /* @__PURE__ */ s(
4868
4868
  )
4869
4869
  }
4870
4870
  ));
4871
- Dl.displayName = "ExportIcon";
4871
+ kl.displayName = "ExportIcon";
4872
4872
  const { useToken: Nm } = ot, { Title: Pm, Text: Br } = en, Mr = ({
4873
4873
  title: t,
4874
4874
  children: e,
@@ -4983,7 +4983,7 @@ const { useToken: Nm } = ot, { Title: Pm, Text: Br } = en, Mr = ({
4983
4983
  context: r,
4984
4984
  enabled: o = !0
4985
4985
  }) => {
4986
- const [i, a] = F(!0), [c, l] = F(), [d, f] = F(), u = z(!1), [p, m] = Ae(
4986
+ const [i, a] = F(!0), [c, l] = F(), [d, f] = F(), u = z(!1), [p, m] = Fe(
4987
4987
  U.getHandler().getView
4988
4988
  ), { showErrorNotification: g } = xt();
4989
4989
  He(() => (o && h(), () => {
@@ -5031,7 +5031,7 @@ const { useToken: Nm } = ot, { Title: Pm, Text: Br } = en, Mr = ({
5031
5031
  };
5032
5032
  return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
5033
5033
  }, [t, ...n]), Q(() => r, [r]) - e;
5034
- }, kl = (t) => t.model ? `columnState-${t.treeViewId ?? "tree"}-${t.model}` : void 0, $m = (t) => {
5034
+ }, Ml = (t) => t.model ? `columnState-${t.treeViewId ?? "tree"}-${t.model}` : void 0, $m = (t) => {
5035
5035
  const e = lt(async () => {
5036
5036
  if (!t)
5037
5037
  return;
@@ -5048,9 +5048,9 @@ const { useToken: Nm } = ot, { Title: Pm, Text: Br } = en, Mr = ({
5048
5048
  le(() => () => {
5049
5049
  n(), o();
5050
5050
  }, []);
5051
- const [e, n] = Ae(
5051
+ const [e, n] = Fe(
5052
5052
  U.getHandler().readUserViewPrefs
5053
- ), [r, o] = Ae(
5053
+ ), [r, o] = Fe(
5054
5054
  U.getHandler().saveUserViewPrefs
5055
5055
  ), i = lt(async () => {
5056
5056
  if (!t)
@@ -5112,7 +5112,7 @@ const { useToken: Nm } = ot, { Title: Pm, Text: Br } = en, Mr = ({
5112
5112
  [t]
5113
5113
  );
5114
5114
  return { getColumnState: a, updateColumnState: c };
5115
- }, Ml = ({
5115
+ }, Nl = ({
5116
5116
  key: t,
5117
5117
  treeViewFetching: e = !1
5118
5118
  }) => {
@@ -5165,7 +5165,7 @@ function Hm(t) {
5165
5165
  return 0;
5166
5166
  }
5167
5167
  }
5168
- function Nl(t) {
5168
+ function Pl(t) {
5169
5169
  if (t === void 0)
5170
5170
  return;
5171
5171
  let e, n = Math.floor(Math.abs(t)), r = Math.round(Math.abs(t) % 1 * 100) / 100;
@@ -5181,7 +5181,7 @@ function Nl(t) {
5181
5181
  });
5182
5182
  return e = `${o}:${i}`, t < 0 && (e = "-" + e), e;
5183
5183
  }
5184
- const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Pl, {}) }), Pl = ({ value: t }) => {
5184
+ const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l, {}) }), $l = ({ value: t }) => {
5185
5185
  const e = z(0);
5186
5186
  t !== void 0 && (e.current = t);
5187
5187
  const n = t !== void 0 ? t : e.current, r = `${n.toLocaleString("en-US", {
@@ -5198,7 +5198,7 @@ const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Pl,
5198
5198
  align-items: center;
5199
5199
  width: 100%;
5200
5200
  min-width: 0;
5201
- `, Um = Ot(dd)`
5201
+ `, Um = Ot(ud)`
5202
5202
  flex: 1;
5203
5203
  min-width: 0;
5204
5204
  .ant-progress-outer {
@@ -5258,7 +5258,7 @@ const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Pl,
5258
5258
  }, [c, t]);
5259
5259
  return /* @__PURE__ */ j(En, { children: [
5260
5260
  /* @__PURE__ */ s(
5261
- zd,
5261
+ Kd,
5262
5262
  {
5263
5263
  onRetrieveData: f,
5264
5264
  onItemClick: (u) => {
@@ -5297,11 +5297,11 @@ const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Pl,
5297
5297
  qt
5298
5298
  ), { openRelate: d, openAction: f } = l || {}, u = pe(
5299
5299
  bn
5300
- ), { processAction: p } = u || {}, [m, g] = Ae(
5300
+ ), { processAction: p } = u || {}, [m, g] = Fe(
5301
5301
  U.getHandler().getView
5302
- ), [h, y] = Ae(
5302
+ ), [h, y] = Fe(
5303
5303
  U.getHandler().getToolbar
5304
- ), [v, b] = Ae(
5304
+ ), [v, b] = Fe(
5305
5305
  U.getHandler().readObjects
5306
5306
  ), x = Qt(
5307
5307
  Ft.FEATURE_GET_TOOLBAR
@@ -5416,7 +5416,7 @@ const Bm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Pl,
5416
5416
  const i = e[o];
5417
5417
  return (i == null ? void 0 : i.flatMap((a) => {
5418
5418
  const c = [];
5419
- return "context" in a && c.push(...wd(a.context)), "domain" in a && c.push(...xd(a.domain)), c;
5419
+ return "context" in a && c.push(...xd(a.context)), "domain" in a && c.push(...Cd(a.domain)), c;
5420
5420
  })) || [];
5421
5421
  });
5422
5422
  return [...new Set(r.filter((o) => o in t))];
@@ -5452,14 +5452,14 @@ const U0 = Object.values(mn), Ym = (t) => {
5452
5452
  let r = n;
5453
5453
  e.selectionValues.size ? r = e.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
5454
5454
  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 }) });
5455
+ return /* @__PURE__ */ s(Ht, { title: r, children: /* @__PURE__ */ s(pa, { alt: r, style: { backgroundColor: i }, children: o }) });
5456
5456
  };
5457
5457
  function Jm(t) {
5458
5458
  return t.length === 0 ? t : t.charAt(0).toUpperCase() + t.slice(1);
5459
5459
  }
5460
- const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l, { ...t }) }), $l = (t) => {
5460
+ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Ll, { ...t }) }), Ll = (t) => {
5461
5461
  var m;
5462
- const { t: e } = xe(), [n, r] = Ae(
5462
+ const { t: e } = xe(), [n, r] = Fe(
5463
5463
  U.getHandler().readObjects
5464
5464
  ), { getFieldValue: o } = pe(st) || {}, { ooui: i, value: a } = t, [c, l] = F("default");
5465
5465
  let d = a, f = Er, u = a;
@@ -5502,7 +5502,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5502
5502
  }, Ds = (t) => {
5503
5503
  let { color: e } = t, n = {};
5504
5504
  if (!La(t.color) && !Va(t.color)) {
5505
- const r = ml(e);
5505
+ const r = pl(e);
5506
5506
  n = {
5507
5507
  color: r.text,
5508
5508
  borderColor: r.text,
@@ -5511,7 +5511,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5511
5511
  }, e = r.background;
5512
5512
  }
5513
5513
  return /* @__PURE__ */ s(ms, { ...t, style: n, color: e, children: t.children });
5514
- }, Ll = ({
5514
+ }, Vl = ({
5515
5515
  emails: t,
5516
5516
  handleClose: e
5517
5517
  }) => {
@@ -5522,7 +5522,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5522
5522
  ms,
5523
5523
  {
5524
5524
  closable: !!e,
5525
- color: mu.isEmail(r, { allow_display_name: !0 }) ? void 0 : "error",
5525
+ color: pu.isEmail(r, { allow_display_name: !0 }) ? void 0 : "error",
5526
5526
  onClose: () => e && e(r),
5527
5527
  children: r
5528
5528
  },
@@ -5587,7 +5587,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5587
5587
  },
5588
5588
  children: [
5589
5589
  /* @__PURE__ */ s(
5590
- Ll,
5590
+ Vl,
5591
5591
  {
5592
5592
  emails: i,
5593
5593
  handleClose: r ? void 0 : h
@@ -5641,7 +5641,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5641
5641
  children: t
5642
5642
  }
5643
5643
  );
5644
- }, Vl = () => pe(wn), ep = ({
5644
+ }, Hl = () => pe(wn), ep = ({
5645
5645
  value: t
5646
5646
  }) => Q(
5647
5647
  () => /* @__PURE__ */ s(
@@ -5659,14 +5659,14 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5659
5659
  [t]
5660
5660
  ), tp = ({
5661
5661
  value: t
5662
- }) => Q(() => /* @__PURE__ */ s(Ll, { emails: t }), [t]), np = ({
5662
+ }) => Q(() => /* @__PURE__ */ s(Vl, { emails: t }), [t]), np = ({
5663
5663
  value: t,
5664
5664
  ooui: e
5665
5665
  }) => Q(
5666
5666
  () => /* @__PURE__ */ s(Ym, { m2oField: t, ooui: e }),
5667
5667
  [t, e]
5668
5668
  ), rp = ({ value: t }) => {
5669
- const { treeType: e } = Nt(), { treeType: n } = Vl() || {}, r = (n || e) === "infinite";
5669
+ const { treeType: e } = Nt(), { treeType: n } = Hl() || {}, r = (n || e) === "infinite";
5670
5670
  return Q(() => {
5671
5671
  const o = /* @__PURE__ */ s(
5672
5672
  dn,
@@ -5680,7 +5680,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5680
5680
  }
5681
5681
  );
5682
5682
  return r ? /* @__PURE__ */ s(
5683
- Vt,
5683
+ Ht,
5684
5684
  {
5685
5685
  title: o,
5686
5686
  color: "white",
@@ -5711,20 +5711,20 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5711
5711
  }
5712
5712
  ) : o;
5713
5713
  }, [t, r]);
5714
- }, op = ({ value: t }) => /* @__PURE__ */ s(Kd, { value: t }), sp = ({
5714
+ }, op = ({ value: t }) => /* @__PURE__ */ s(Jd, { value: t }), sp = ({
5715
5715
  value: t,
5716
5716
  ooui: e
5717
5717
  }) => Q(() => t ? e.fieldType === "many2one" ? /* @__PURE__ */ s(we, { children: t[1] }) : /* @__PURE__ */ s(we, { children: t }) : /* @__PURE__ */ s(we, {}), [t, e.fieldType]), ip = ({
5718
5718
  value: t,
5719
5719
  ooui: e
5720
- }) => /* @__PURE__ */ s(Jd, { value: t, timezone: e.timezone }), vi = ({
5720
+ }) => /* @__PURE__ */ s(Xd, { value: t, timezone: e.timezone }), vi = ({
5721
5721
  value: t
5722
5722
  }) => Q(() => {
5723
5723
  const e = Array.isArray(t == null ? void 0 : t.items) ? t == null ? void 0 : t.items.length : 0;
5724
5724
  return /* @__PURE__ */ s(we, { children: `( ${e} )` });
5725
5725
  }, [t]), ap = ({
5726
5726
  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(
5727
+ }) => Q(() => /* @__PURE__ */ s($l, { value: t }), [t]), lp = ({ value: t }) => Q(() => /* @__PURE__ */ s(we, { children: Pl(t) }), [t]), bi = ({ value: t }) => Q(
5728
5728
  () => /* @__PURE__ */ s("div", { style: { textAlign: "right" }, children: t }),
5729
5729
  [t]
5730
5730
  ), cp = ({ value: t }) => Q(
@@ -5740,7 +5740,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5740
5740
  ), up = ({
5741
5741
  value: t,
5742
5742
  ooui: e
5743
- }) => Q(() => /* @__PURE__ */ s($l, { ooui: e, value: t }), [e, t]), fp = ({
5743
+ }) => Q(() => /* @__PURE__ */ s(Ll, { ooui: e, value: t }), [e, t]), fp = ({
5744
5744
  value: t,
5745
5745
  ooui: e
5746
5746
  }) => Q(() => {
@@ -5761,7 +5761,7 @@ const Xm = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($l,
5761
5761
  ooui: e,
5762
5762
  context: n
5763
5763
  }) => {
5764
- const r = jt(
5764
+ const r = Vt(
5765
5765
  () => (t == null ? void 0 : t.items) || [],
5766
5766
  [t == null ? void 0 : t.items]
5767
5767
  ), o = Q(
@@ -5865,7 +5865,7 @@ const xr = ({
5865
5865
  tableRef: o
5866
5866
  }), f = Qt(
5867
5867
  Ft.FEATURE_MANY2ONE_SORT
5868
- ), u = jt(() => {
5868
+ ), u = Vt(() => {
5869
5869
  if (t)
5870
5870
  return Is(
5871
5871
  t,
@@ -5873,7 +5873,7 @@ const xr = ({
5873
5873
  e,
5874
5874
  f
5875
5875
  );
5876
- }, [t, e, f]), p = Ml({
5876
+ }, [t, e, f]), p = Nl({
5877
5877
  key: r ? n : void 0
5878
5878
  }), {
5879
5879
  loading: m,
@@ -5951,9 +5951,9 @@ const xr = ({
5951
5951
  domain: n,
5952
5952
  showEmptyValues: r
5953
5953
  }) => {
5954
- const [o, i] = F(), [a, c] = F(!1), [l, d] = Ae(
5954
+ const [o, i] = F(), [a, c] = F(!1), [l, d] = Fe(
5955
5955
  U.getHandler().readAggregates
5956
- ), f = jt(() => {
5956
+ ), f = Vt(() => {
5957
5957
  if (t)
5958
5958
  return t.columns.filter((m) => Object.keys(m).some((g) => {
5959
5959
  var h;
@@ -6024,7 +6024,7 @@ const xr = ({
6024
6024
  }, [f, n]);
6025
6025
  const p = f !== void 0 && Object.keys(f).length > 0;
6026
6026
  return [a, o, p];
6027
- }, Hl = ({
6027
+ }, Bl = ({
6028
6028
  treeOoui: t,
6029
6029
  model: e,
6030
6030
  selectedRowKeys: n = [],
@@ -6104,10 +6104,10 @@ const xr = ({
6104
6104
  changeSelectedRowKeys: d,
6105
6105
  onSelectionCheckboxClicked: f
6106
6106
  };
6107
- }, Bl = (t) => {
6108
- const { className: e = "w-full", layout: n = "vertical" } = t, r = Xd();
6107
+ }, jl = (t) => {
6108
+ const { className: e = "w-full", layout: n = "vertical" } = t, r = Qd();
6109
6109
  return /* @__PURE__ */ s(Ye, { ...t, layout: n, children: /* @__PURE__ */ s(
6110
- ud.RangePicker,
6110
+ fd.RangePicker,
6111
6111
  {
6112
6112
  allowEmpty: [!0, !0],
6113
6113
  format: "DD/MM/YYYY",
@@ -6207,7 +6207,7 @@ const xr = ({
6207
6207
  autocompleteWithZeros: r !== void 0
6208
6208
  });
6209
6209
  return /* @__PURE__ */ s(
6210
- fd,
6210
+ md,
6211
6211
  {
6212
6212
  ...o,
6213
6213
  ref: i,
@@ -6247,7 +6247,7 @@ const xr = ({
6247
6247
  }
6248
6248
  ),
6249
6249
  /* @__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 }) }) }),
6250
+ /* @__PURE__ */ s(Ze, { className: "w-full", children: /* @__PURE__ */ s(Ve, { span: 24, children: /* @__PURE__ */ s(jl, { ...t, ooui: i[0], showLabel: !1 }) }) }),
6251
6251
  /* @__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
6252
  ] })
6253
6253
  ] });
@@ -6426,7 +6426,7 @@ const { defaultAlgorithm: Mp, defaultSeed: Np } = ot, Pp = Mp(Np), { Option: $p
6426
6426
  background-color: ${Pp.colorPrimaryBg};
6427
6427
  }
6428
6428
  `;
6429
- function jl(t) {
6429
+ function Ul(t) {
6430
6430
  const { field: e } = t;
6431
6431
  e.readOnly = !1, e.required = !1;
6432
6432
  const { t: n } = xe();
@@ -6448,7 +6448,7 @@ function jl(t) {
6448
6448
  case yn.integer:
6449
6449
  return /* @__PURE__ */ s(kp, { ooui: e, showLabel: !0 });
6450
6450
  case yn.date:
6451
- return /* @__PURE__ */ s(Bl, { ooui: e, layout: "vertical", showLabel: !0 });
6451
+ return /* @__PURE__ */ s(jl, { ooui: e, layout: "vertical", showLabel: !0 });
6452
6452
  case yn.datetime:
6453
6453
  return /* @__PURE__ */ s(Cp, { ooui: e, layout: "vertical", showLabel: !0 });
6454
6454
  case yn.selection:
@@ -6516,7 +6516,7 @@ const { useToken: Bp } = ot, { Title: jp } = en, { Header: Up, Content: Wp, Foot
6516
6516
  padding: "0 16px",
6517
6517
  borderBottom: "1px solid #f0f0f0"
6518
6518
  };
6519
- return /* @__PURE__ */ s(ku, { children: t && /* @__PURE__ */ j(we, { children: [
6519
+ return /* @__PURE__ */ s(Mu, { children: t && /* @__PURE__ */ j(we, { children: [
6520
6520
  /* @__PURE__ */ s(
6521
6521
  si.div,
6522
6522
  {
@@ -6537,7 +6537,7 @@ const { useToken: Bp } = ot, { Title: jp } = en, { Header: Up, Content: Wp, Foot
6537
6537
  }
6538
6538
  ),
6539
6539
  /* @__PURE__ */ s(
6540
- Mu,
6540
+ Nu,
6541
6541
  {
6542
6542
  active: t && !l,
6543
6543
  focusTrapOptions: {
@@ -6620,7 +6620,7 @@ const { useToken: Bp } = ot, { Title: jp } = en, { Header: Up, Content: Wp, Foot
6620
6620
  )
6621
6621
  ] }) });
6622
6622
  };
6623
- var xi = Object.prototype.toString, Ul = function(e) {
6623
+ var xi = Object.prototype.toString, Wl = function(e) {
6624
6624
  var n = xi.call(e), r = n === "[object Arguments]";
6625
6625
  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
6626
  }, Oo, Ci;
@@ -6630,7 +6630,7 @@ function Yp() {
6630
6630
  Ci = 1;
6631
6631
  var t;
6632
6632
  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() {
6633
+ 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
6634
  }, "prototype"), c = [
6635
6635
  "toString",
6636
6636
  "toLocaleString",
@@ -6712,7 +6712,7 @@ function Yp() {
6712
6712
  }
6713
6713
  return Oo = t, Oo;
6714
6714
  }
6715
- var zp = Array.prototype.slice, Kp = Ul, Si = Object.keys, Ur = Si ? function(e) {
6715
+ var zp = Array.prototype.slice, Kp = Wl, Si = Object.keys, Ur = Si ? function(e) {
6716
6716
  return Si(e);
6717
6717
  } : Yp(), Ti = Object.keys;
6718
6718
  Ur.shim = function() {
@@ -6728,7 +6728,7 @@ Ur.shim = function() {
6728
6728
  Object.keys = Ur;
6729
6729
  return Object.keys || Ur;
6730
6730
  };
6731
- var Wl = Ur, ql = function() {
6731
+ var ql = Ur, Gl = function() {
6732
6732
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
6733
6733
  return !1;
6734
6734
  if (typeof Symbol.iterator == "symbol")
@@ -6754,9 +6754,9 @@ var Wl = Ur, ql = function() {
6754
6754
  return !1;
6755
6755
  }
6756
6756
  return !0;
6757
- }, Jp = ql, $s = function() {
6757
+ }, Jp = Gl, $s = function() {
6758
6758
  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) {
6759
+ }, 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
6760
  return e !== e;
6761
6761
  }, dh = ch, uh = function(e) {
6762
6762
  return dh(e) || e === 0 ? e : e < 0 ? -1 : 1;
@@ -6779,21 +6779,21 @@ function ph() {
6779
6779
  if (Fi)
6780
6780
  return Do;
6781
6781
  Fi = 1;
6782
- var t = typeof Symbol < "u" && Symbol, e = ql;
6782
+ var t = typeof Symbol < "u" && Symbol, e = Gl;
6783
6783
  return Do = function() {
6784
6784
  return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
6785
6785
  }, Do;
6786
6786
  }
6787
6787
  var ko, Ai;
6788
- function zl() {
6788
+ function Kl() {
6789
6789
  return Ai || (Ai = 1, ko = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ko;
6790
6790
  }
6791
6791
  var Mo, Ii;
6792
- function Kl() {
6792
+ function Jl() {
6793
6793
  if (Ii)
6794
6794
  return Mo;
6795
6795
  Ii = 1;
6796
- var t = Gl;
6796
+ var t = Yl;
6797
6797
  return Mo = t.getPrototypeOf || null, Mo;
6798
6798
  }
6799
6799
  var hh = "Function.prototype.bind called on incompatible ", gh = Object.prototype.toString, yh = Math.max, vh = "[object Function]", Ri = function(e, n) {
@@ -6839,7 +6839,7 @@ function Vs() {
6839
6839
  return _i || (_i = 1, No = Function.prototype.call), No;
6840
6840
  }
6841
6841
  var Po, Ei;
6842
- function Jl() {
6842
+ function Xl() {
6843
6843
  return Ei || (Ei = 1, Po = Function.prototype.apply), Po;
6844
6844
  }
6845
6845
  var $o, Oi;
@@ -6851,7 +6851,7 @@ function Th() {
6851
6851
  if (Di)
6852
6852
  return Lo;
6853
6853
  Di = 1;
6854
- var t = Nr, e = Jl(), n = Vs(), r = Sh();
6854
+ var t = Nr, e = Xl(), n = Vs(), r = Sh();
6855
6855
  return Lo = r || t.call(n, e), Lo;
6856
6856
  }
6857
6857
  var Vo, ki;
@@ -6859,7 +6859,7 @@ function Fh() {
6859
6859
  if (ki)
6860
6860
  return Vo;
6861
6861
  ki = 1;
6862
- var t = Nr, e = Yl, n = Vs(), r = Th();
6862
+ var t = Nr, e = zl, n = Vs(), r = Th();
6863
6863
  return Vo = function(i) {
6864
6864
  if (i.length < 1 || typeof i[0] != "function")
6865
6865
  throw new e("a function is required");
@@ -6896,7 +6896,7 @@ function Ih() {
6896
6896
  if (Ni)
6897
6897
  return Bo;
6898
6898
  Ni = 1;
6899
- var t = zl(), e = Kl(), n = Ah();
6899
+ var t = Kl(), e = Jl(), n = Ah();
6900
6900
  return Bo = t ? function(o) {
6901
6901
  return t(o);
6902
6902
  } : e ? function(o) {
@@ -6915,9 +6915,9 @@ function Rh() {
6915
6915
  var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Nr;
6916
6916
  return jo = n.call(t, e), jo;
6917
6917
  }
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) {
6918
+ 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
6919
  try {
6920
- return Xl('"use strict"; return (' + t + ").constructor;")();
6920
+ return Ql('"use strict"; return (' + t + ").constructor;")();
6921
6921
  } catch {
6922
6922
  }
6923
6923
  }, Sr = Ls, jh = mh, Wo = function() {
@@ -6932,7 +6932,7 @@ var Je, _h = Gl, Eh = Xp, Oh = Qp, Dh = Zp, kh = eh, nr = th, Kn = Yl, Mh = nh,
6932
6932
  return Wo;
6933
6933
  }
6934
6934
  }
6935
- }() : Wo, Hn = ph()(), Ct = Ih(), Wh = Kl(), qh = zl(), Ql = Jl(), Pr = Vs(), Un = {}, Gh = typeof Uint8Array > "u" || !Ct ? Je : Ct(Uint8Array), An = {
6935
+ }() : Wo, Hn = ph()(), Ct = Ih(), Wh = Jl(), qh = Kl(), Zl = Xl(), Pr = Vs(), Un = {}, Gh = typeof Uint8Array > "u" || !Ct ? Je : Ct(Uint8Array), An = {
6936
6936
  __proto__: null,
6937
6937
  "%AggregateError%": typeof AggregateError > "u" ? Je : AggregateError,
6938
6938
  "%Array%": Array,
@@ -6962,7 +6962,7 @@ var Je, _h = Gl, Eh = Xp, Oh = Qp, Dh = Zp, kh = eh, nr = th, Kn = Yl, Mh = nh,
6962
6962
  "%Float32Array%": typeof Float32Array > "u" ? Je : Float32Array,
6963
6963
  "%Float64Array%": typeof Float64Array > "u" ? Je : Float64Array,
6964
6964
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Je : FinalizationRegistry,
6965
- "%Function%": Xl,
6965
+ "%Function%": Ql,
6966
6966
  "%GeneratorFunction%": Un,
6967
6967
  "%Int8Array%": typeof Int8Array > "u" ? Je : Int8Array,
6968
6968
  "%Int16Array%": typeof Int16Array > "u" ? Je : Int16Array,
@@ -7004,7 +7004,7 @@ var Je, _h = Gl, Eh = Xp, Oh = Qp, Dh = Zp, kh = eh, nr = th, Kn = Yl, Mh = nh,
7004
7004
  "%WeakRef%": typeof WeakRef > "u" ? Je : WeakRef,
7005
7005
  "%WeakSet%": typeof WeakSet > "u" ? Je : WeakSet,
7006
7006
  "%Function.prototype.call%": Pr,
7007
- "%Function.prototype.apply%": Ql,
7007
+ "%Function.prototype.apply%": Zl,
7008
7008
  "%Object.defineProperty%": jh,
7009
7009
  "%Object.getPrototypeOf%": Wh,
7010
7010
  "%Math.abs%": Nh,
@@ -7092,7 +7092,7 @@ var zh = function t(e) {
7092
7092
  "%URIErrorPrototype%": ["URIError", "prototype"],
7093
7093
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
7094
7094
  "%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) {
7095
+ }, $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
7096
  var n = Zr(e, 0, 1), r = Zr(e, -1);
7097
7097
  if (n === "%" && r !== "%")
7098
7098
  throw new nr("invalid intrinsic syntax, expected closing `%`");
@@ -7145,7 +7145,7 @@ var zh = function t(e) {
7145
7145
  }
7146
7146
  }
7147
7147
  return c;
7148
- }, Zl = { exports: {} };
7148
+ }, ec = { exports: {} };
7149
7149
  (function(t) {
7150
7150
  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
7151
  if (c)
@@ -7170,19 +7170,19 @@ var zh = function t(e) {
7170
7170
  return i(e, r, arguments);
7171
7171
  };
7172
7172
  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) {
7173
+ })(ec);
7174
+ var Hs = ec.exports, tc = vo, nc = Hs, ng = nc(tc("String.prototype.indexOf")), rc = function(e, n) {
7175
+ var r = tc(e, !!n);
7176
+ return typeof r == "function" && ng(e, ".prototype.") > -1 ? nc(r) : r;
7177
+ }, rg = $s(), og = rc, rs = og("Object.prototype.toString"), bo = function(e) {
7178
7178
  return rg && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rs(e) === "[object Arguments]";
7179
- }, rc = function(e) {
7179
+ }, oc = function(e) {
7180
7180
  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
7181
  }, sg = function() {
7182
7182
  return bo(arguments);
7183
7183
  }();
7184
- bo.isLegacyArguments = rc;
7185
- var ig = sg ? bo : rc, ag = vo, os = ag("%Object.defineProperty%", !0), ss = function() {
7184
+ bo.isLegacyArguments = oc;
7185
+ var ig = sg ? bo : oc, ag = vo, os = ag("%Object.defineProperty%", !0), ss = function() {
7186
7186
  if (os)
7187
7187
  try {
7188
7188
  return os({}, "a", { value: 1 }), !0;
@@ -7200,7 +7200,7 @@ ss.hasArrayLengthDefineBug = function() {
7200
7200
  return !0;
7201
7201
  }
7202
7202
  };
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) {
7203
+ 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
7204
  if (!e || typeof e != "object" && typeof e != "function")
7205
7205
  throw new Bn("`obj` must be an object or a function`");
7206
7206
  if (typeof n != "string" && typeof n != "symbol")
@@ -7225,9 +7225,9 @@ var Bs = ss, lg = Bs(), js = vo, Vi = lg && js("%Object.defineProperty%", !0), c
7225
7225
  e[n] = r;
7226
7226
  else
7227
7227
  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) {
7228
+ }, dg = ql, ug = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", fg = Object.prototype.toString, mg = Array.prototype.concat, Bi = sc, pg = function(t) {
7229
7229
  return typeof t == "function" && fg.call(t) === "[object Function]";
7230
- }, sc = Bs(), hg = function(t, e, n, r) {
7230
+ }, ic = Bs(), hg = function(t, e, n, r) {
7231
7231
  if (e in t) {
7232
7232
  if (r === !0) {
7233
7233
  if (t[e] === n)
@@ -7235,36 +7235,36 @@ var Bs = ss, lg = Bs(), js = vo, Vi = lg && js("%Object.defineProperty%", !0), c
7235
7235
  } else if (!pg(r) || !r())
7236
7236
  return;
7237
7237
  }
7238
- sc ? Bi(t, e, n, !0) : Bi(t, e, n);
7239
- }, ic = function(t, e) {
7238
+ ic ? Bi(t, e, n, !0) : Bi(t, e, n);
7239
+ }, ac = function(t, e) {
7240
7240
  var n = arguments.length > 2 ? arguments[2] : {}, r = dg(e);
7241
7241
  ug && (r = mg.call(r, Object.getOwnPropertySymbols(e)));
7242
7242
  for (var o = 0; o < r.length; o += 1)
7243
7243
  hg(t, r[o], e[r[o]], n[r[o]]);
7244
7244
  };
7245
- ic.supportsDescriptors = !!sc;
7246
- var Lr = ic, ji = function(t) {
7245
+ ac.supportsDescriptors = !!ic;
7246
+ var Lr = ac, ji = function(t) {
7247
7247
  return t !== t;
7248
- }, ac = function(e, n) {
7248
+ }, lc = function(e, n) {
7249
7249
  return e === 0 && n === 0 ? 1 / e === 1 / n : !!(e === n || ji(e) && ji(n));
7250
- }, gg = ac, lc = function() {
7250
+ }, gg = lc, cc = function() {
7251
7251
  return typeof Object.is == "function" ? Object.is : gg;
7252
- }, yg = lc, vg = Lr, bg = function() {
7252
+ }, yg = cc, vg = Lr, bg = function() {
7253
7253
  var e = yg();
7254
7254
  return vg(Object, { is: e }, {
7255
7255
  is: function() {
7256
7256
  return Object.is !== e;
7257
7257
  }
7258
7258
  }), e;
7259
- }, wg = Lr, xg = Hs, Cg = ac, cc = lc, Sg = bg, dc = xg(cc(), Object);
7260
- wg(dc, {
7261
- getPolyfill: cc,
7259
+ }, wg = Lr, xg = Hs, Cg = lc, dc = cc, Sg = bg, uc = xg(dc(), Object);
7260
+ wg(uc, {
7261
+ getPolyfill: dc,
7262
7262
  implementation: Cg,
7263
7263
  shim: Sg
7264
7264
  });
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 = {};
7265
+ var Tg = uc, is = rc, fc = $s(), mc, pc, as, ls;
7266
+ if (fc) {
7267
+ mc = is("Object.prototype.hasOwnProperty"), pc = is("RegExp.prototype.exec"), as = {};
7268
7268
  var qo = function() {
7269
7269
  throw as;
7270
7270
  };
@@ -7273,14 +7273,14 @@ if (uc) {
7273
7273
  valueOf: qo
7274
7274
  }, typeof Symbol.toPrimitive == "symbol" && (ls[Symbol.toPrimitive] = qo);
7275
7275
  }
7276
- var Fg = is("Object.prototype.toString"), Ag = Object.getOwnPropertyDescriptor, Ig = "[object RegExp]", Rg = uc ? function(e) {
7276
+ var Fg = is("Object.prototype.toString"), Ag = Object.getOwnPropertyDescriptor, Ig = "[object RegExp]", Rg = fc ? function(e) {
7277
7277
  if (!e || typeof e != "object")
7278
7278
  return !1;
7279
- var n = Ag(e, "lastIndex"), r = n && fc(n, "value");
7279
+ var n = Ag(e, "lastIndex"), r = n && mc(n, "value");
7280
7280
  if (!r)
7281
7281
  return !1;
7282
7282
  try {
7283
- mc(e, ls);
7283
+ pc(e, ls);
7284
7284
  } catch (o) {
7285
7285
  return o === as;
7286
7286
  }
@@ -7308,17 +7308,17 @@ Tr.boundFunctionsHaveNames = function() {
7308
7308
  return Tr() && typeof _g == "function" && (function() {
7309
7309
  }).bind().name !== "";
7310
7310
  };
7311
- var Eg = Tr, Ui = oc, Og = Bs(), Dg = Eg.functionsHaveConfigurableNames(), kg = TypeError, Mg = function(e, n) {
7311
+ var Eg = Tr, Ui = sc, Og = Bs(), Dg = Eg.functionsHaveConfigurableNames(), kg = TypeError, Mg = function(e, n) {
7312
7312
  if (typeof e != "function")
7313
7313
  throw new kg("`fn` is not a function");
7314
7314
  var r = arguments.length > 2 && !!arguments[2];
7315
7315
  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() {
7316
+ }, Ng = Mg, Pg = Object, $g = TypeError, hc = Ng(function() {
7317
7317
  if (this != null && this !== Pg(this))
7318
7318
  throw new $g("RegExp.prototype.flags getter called on non-object");
7319
7319
  var e = "";
7320
7320
  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() {
7321
+ }, "get flags", !0), Lg = hc, Vg = Lr.supportsDescriptors, Hg = Object.getOwnPropertyDescriptor, gc = function() {
7322
7322
  if (Vg && /a/mig.flags === "gim") {
7323
7323
  var e = Hg(RegExp.prototype, "flags");
7324
7324
  if (e && typeof e.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
@@ -7336,7 +7336,7 @@ var Eg = Tr, Ui = oc, Og = Bs(), Dg = Eg.functionsHaveConfigurableNames(), kg =
7336
7336
  }
7337
7337
  }
7338
7338
  return Lg;
7339
- }, Bg = Lr.supportsDescriptors, jg = hc, Ug = Object.getOwnPropertyDescriptor, Wg = Object.defineProperty, qg = TypeError, Wi = Object.getPrototypeOf, Gg = /a/, Yg = function() {
7339
+ }, Bg = Lr.supportsDescriptors, jg = gc, Ug = Object.getOwnPropertyDescriptor, Wg = Object.defineProperty, qg = TypeError, Wi = Object.getPrototypeOf, Gg = /a/, Yg = function() {
7340
7340
  if (!Bg || !Wi)
7341
7341
  throw new qg("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
7342
7342
  var e = jg(), n = Wi(Gg), r = Ug(n, "flags");
@@ -7345,13 +7345,13 @@ var Eg = Tr, Ui = oc, Og = Bs(), Dg = Eg.functionsHaveConfigurableNames(), kg =
7345
7345
  enumerable: !1,
7346
7346
  get: e
7347
7347
  }), e;
7348
- }, zg = Lr, Kg = Hs, Jg = pc, gc = hc, Xg = Yg, yc = Kg(gc());
7349
- zg(yc, {
7350
- getPolyfill: gc,
7348
+ }, zg = Lr, Kg = Hs, Jg = hc, yc = gc, Xg = Yg, vc = Kg(yc());
7349
+ zg(vc, {
7350
+ getPolyfill: yc,
7351
7351
  implementation: Jg,
7352
7352
  shim: Xg
7353
7353
  });
7354
- var Qg = yc, Zg = Date.prototype.getDay, ey = function(e) {
7354
+ var Qg = vc, Zg = Date.prototype.getDay, ey = function(e) {
7355
7355
  try {
7356
7356
  return Zg.call(e), !0;
7357
7357
  } catch {
@@ -7359,8 +7359,8 @@ var Qg = yc, Zg = Date.prototype.getDay, ey = function(e) {
7359
7359
  }
7360
7360
  }, ty = Object.prototype.toString, ny = "[object Date]", ry = $s(), oy = function(e) {
7361
7361
  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) {
7362
+ }, qi = ql, Gi = ig, Yi = Tg, zi = Rg, Ki = Qg, Ji = oy, Xi = Date.prototype.getTime;
7363
+ function bc(t, e, n) {
7364
7364
  var r = n || {};
7365
7365
  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
7366
  }
@@ -7405,11 +7405,11 @@ function sy(t, e, n) {
7405
7405
  if (d[r] != f[r])
7406
7406
  return !1;
7407
7407
  for (r = d.length - 1; r >= 0; r--)
7408
- if (o = d[r], !vc(t[o], e[o], n))
7408
+ if (o = d[r], !bc(t[o], e[o], n))
7409
7409
  return !1;
7410
7410
  return !0;
7411
7411
  }
7412
- var iy = vc;
7412
+ var iy = bc;
7413
7413
  const lr = /* @__PURE__ */ qa(iy), { Text: ay } = en, ly = ({
7414
7414
  currentModel: t,
7415
7415
  context: e,
@@ -7428,9 +7428,9 @@ const lr = /* @__PURE__ */ qa(iy), { Text: ay } = en, ly = ({
7428
7428
  setSavedSearches: u
7429
7429
  } = Nt(), [p, m] = F(
7430
7430
  (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(
7431
+ ), [g, h] = F(!1), [y, v] = F(!1), [b, x] = F(!1), [C, w] = F(!1), [A, S] = F(""), [R] = Fe(
7432
7432
  U.getHandler().update
7433
- ), [D] = Ae(
7433
+ ), [D] = Fe(
7434
7434
  U.getHandler().create
7435
7435
  );
7436
7436
  He(() => {
@@ -7734,7 +7734,7 @@ const lr = /* @__PURE__ */ qa(iy), { Text: ay } = en, ly = ({
7734
7734
  shouldShowSaveButtonGroup: $,
7735
7735
  shouldShowSaveAsNew: H
7736
7736
  };
7737
- }, bc = Ht(
7737
+ }, wc = Bt(
7738
7738
  (t, e) => {
7739
7739
  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
7740
  He(() => {
@@ -7809,7 +7809,7 @@ const lr = /* @__PURE__ */ qa(iy), { Text: ay } = en, ly = ({
7809
7809
  },
7810
7810
  "data-field-id": V,
7811
7811
  children: [
7812
- /* @__PURE__ */ s("div", { style: { flex: 1 }, children: /* @__PURE__ */ s(jl, { field: T }, `sf-${V}`) }),
7812
+ /* @__PURE__ */ s("div", { style: { flex: 1 }, children: /* @__PURE__ */ s(Ul, { field: T }, `sf-${V}`) }),
7813
7813
  M && /* @__PURE__ */ s(
7814
7814
  Ge,
7815
7815
  {
@@ -7971,8 +7971,8 @@ const lr = /* @__PURE__ */ qa(iy), { Text: ay } = en, ly = ({
7971
7971
  ) });
7972
7972
  }
7973
7973
  );
7974
- bc.displayName = "SideSearchFilterComponent";
7975
- const wc = (t) => {
7974
+ wc.displayName = "SideSearchFilterComponent";
7975
+ const xc = (t) => {
7976
7976
  var ae;
7977
7977
  const {
7978
7978
  onSubmit: e,
@@ -7987,7 +7987,7 @@ const wc = (t) => {
7987
7987
  } = t, f = z(), { t: u } = xe(), p = z(), m = z(null), {
7988
7988
  currentSavedSearch: g,
7989
7989
  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(() => {
7990
+ } = 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
7991
  if (!b)
7992
7992
  return 0;
7993
7993
  const X = /* @__PURE__ */ new Set();
@@ -8100,11 +8100,11 @@ const wc = (t) => {
8100
8100
  var ie, J, de, ue, fe;
8101
8101
  if (X) {
8102
8102
  const ce = { ...ee };
8103
- Object.entries(ee).forEach(([Fe]) => {
8104
- Fe.replace(/#.*$/, "") === X.replace(/#.*$/, "") && (ce[Fe] = void 0);
8103
+ Object.entries(ee).forEach(([Ae]) => {
8104
+ Ae.replace(/#.*$/, "") === X.replace(/#.*$/, "") && (ce[Ae] = void 0);
8105
8105
  }), (ie = m.current) == null || ie.setFieldsValue(ce);
8106
8106
  const te = y ? y.filter(
8107
- (Fe) => Fe[0].replace(/#.*$/, "") !== X.replace(/#.*$/, "")
8107
+ (Ae) => Ae[0].replace(/#.*$/, "") !== X.replace(/#.*$/, "")
8108
8108
  ) : [];
8109
8109
  v(te);
8110
8110
  return;
@@ -8112,7 +8112,7 @@ const wc = (t) => {
8112
8112
  (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
8113
  },
8114
8114
  [y, o, q]
8115
- ), G = jt(() => $ ? K ? /* @__PURE__ */ j(nt.Compact, { size: "small", children: [
8115
+ ), G = Vt(() => $ ? K ? /* @__PURE__ */ j(nt.Compact, { size: "small", children: [
8116
8116
  /* @__PURE__ */ s(
8117
8117
  Ge,
8118
8118
  {
@@ -8185,7 +8185,7 @@ const wc = (t) => {
8185
8185
  }
8186
8186
  ),
8187
8187
  children: n && /* @__PURE__ */ s(
8188
- bc,
8188
+ wc,
8189
8189
  {
8190
8190
  ref: m,
8191
8191
  searchFields: p.current,
@@ -8312,7 +8312,7 @@ function uy(t) {
8312
8312
  } = t, { t: a } = xe();
8313
8313
  return /* @__PURE__ */ j(Ze, { children: [
8314
8314
  !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" }),
8315
+ n ? /* @__PURE__ */ s(Ed, { className: "pr-1" }) : /* @__PURE__ */ s(Fr, { className: "pr-1" }),
8316
8316
  a(n ? "simple_search" : "advanced_search")
8317
8317
  ] }) }),
8318
8318
  /* @__PURE__ */ j(Ve, { span: i ? 24 : 12, className: "text-right pb-2", children: [
@@ -8377,7 +8377,7 @@ function wo(t) {
8377
8377
  if (!y)
8378
8378
  return;
8379
8379
  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));
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(Ul, { field: O }) }, V)) }, M));
8381
8381
  };
8382
8382
  He(() => {
8383
8383
  x(!1), C.current = new Ca(n, e), C.current.parse(), h(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
@@ -8454,7 +8454,7 @@ function wo(t) {
8454
8454
  }
8455
8455
  );
8456
8456
  }
8457
- function xc({
8457
+ function Cc({
8458
8458
  useLocalState: t = !1
8459
8459
  }) {
8460
8460
  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 +8566,7 @@ const cr = () => {
8566
8566
  }) => {
8567
8567
  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
8568
  /* @__PURE__ */ new Set()
8569
- ), b = z(/* @__PURE__ */ new Set()), x = z([]), C = z(null), [w, A] = F(!0), [S, R] = Ae(
8569
+ ), b = z(/* @__PURE__ */ new Set()), x = z([]), C = z(null), [w, A] = F(!0), [S, R] = Fe(
8570
8570
  async ($) => U.getHandler().processSearchResults({
8571
8571
  searchIds: $.searchIds,
8572
8572
  model: t,
@@ -8574,7 +8574,7 @@ const cr = () => {
8574
8574
  context: r,
8575
8575
  fields: g
8576
8576
  })
8577
- ), [D, _] = Ae(
8577
+ ), [D, _] = Fe(
8578
8578
  U.getHandler().parseConditions
8579
8579
  ), k = cr();
8580
8580
  le(() => {
@@ -8754,9 +8754,9 @@ const cr = () => {
8754
8754
  treeView: l,
8755
8755
  results: d,
8756
8756
  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(
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] = Fe(
8758
8758
  U.getHandler().readObjects
8759
- ), [b, x] = Ae(
8759
+ ), [b, x] = Fe(
8760
8760
  U.getHandler().parseConditions
8761
8761
  ), C = cr(), w = z({}), A = I(
8762
8762
  (E, T) => T ? o == null ? void 0 : o.some(
@@ -8928,7 +8928,7 @@ const cr = () => {
8928
8928
  f
8929
8929
  ]
8930
8930
  );
8931
- }, Cc = ({
8931
+ }, Sc = ({
8932
8932
  onFilterSearchClick: t
8933
8933
  }) => {
8934
8934
  const { t: e } = xe(), n = (a) => {
@@ -9013,10 +9013,10 @@ const cr = () => {
9013
9013
  record: e,
9014
9014
  column: n,
9015
9015
  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)
9016
+ }) => 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
9017
  );
9018
9018
  xo.displayName = "CellRenderer";
9019
- const Sc = ({
9019
+ const Tc = ({
9020
9020
  tableRef: t,
9021
9021
  autoRefresh: e
9022
9022
  }) => {
@@ -9047,11 +9047,11 @@ function Cy(t, e) {
9047
9047
  } = 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
9048
  elementRef: E,
9049
9049
  offset: wy
9050
- }), M = y !== void 0 ? y : T, [O, V] = Ae(
9050
+ }), M = y !== void 0 ? y : T, [O, V] = Fe(
9051
9051
  U.getHandler().searchCount
9052
- ), [N, L] = Ae(
9052
+ ), [N, L] = Fe(
9053
9053
  U.getHandler().searchForTree
9054
- ), [q, P] = Ae(
9054
+ ), [q, P] = Fe(
9055
9055
  U.getHandler().searchAllIds
9056
9056
  );
9057
9057
  le(() => () => {
@@ -9080,20 +9080,20 @@ function Cy(t, e) {
9080
9080
  results: fe,
9081
9081
  setSearchQuery: ce,
9082
9082
  setTotalItems: te,
9083
- isActive: Fe,
9083
+ isActive: Ae,
9084
9084
  order: Ce,
9085
9085
  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);
9086
+ } = 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
9087
  le(() => {
9088
9088
  var Ue;
9089
9089
  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();
9090
+ var jt;
9091
+ (jt = b.current) == null || jt.scrollToTop();
9092
9092
  }, 0)), k.current = S, Me.current = he;
9093
9093
  }, [S]), le(() => {
9094
- var wt, ct, Bt, Ln;
9094
+ var wt, ct, jt, Ln;
9095
9095
  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(() => {
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([]), (jt = b.current) == null || jt.unselectAll(), se == null || se(0), (Ln = b.current) == null || Ln.scrollToTop(), setTimeout(() => {
9097
9097
  Xe.current = !0, ut();
9098
9098
  }, 0)), ge.current = he;
9099
9099
  }, [he]);
@@ -9116,7 +9116,7 @@ function Cy(t, e) {
9116
9116
  } = ks({
9117
9117
  treeOoui: Le,
9118
9118
  parentContext: d,
9119
- columnStateKey: $ ? kl({
9119
+ columnStateKey: $ ? Ml({
9120
9120
  treeViewId: $.view_id,
9121
9121
  model: n
9122
9122
  }) : void 0,
@@ -9133,7 +9133,7 @@ function Cy(t, e) {
9133
9133
  treeView: $,
9134
9134
  tableRef: b,
9135
9135
  context: d,
9136
- isActive: Fe,
9136
+ isActive: Ae,
9137
9137
  treeOoui: Le,
9138
9138
  updateAttributes: ke,
9139
9139
  results: fe,
@@ -9212,11 +9212,11 @@ function Cy(t, e) {
9212
9212
  Ie == null || Ie(be), ct = br(Ee);
9213
9213
  }
9214
9214
  C.current = !0;
9215
- const Bt = he ? a : Yt, Ln = xr({
9215
+ const jt = he ? a : Yt, Ln = xr({
9216
9216
  treeOoui: Le,
9217
9217
  hasFunctionFieldsToParseConditions: Gt && vt()
9218
9218
  }), { results: gn, attrsEvaluated: Vn } = await N({
9219
- params: Bt,
9219
+ params: jt,
9220
9220
  limit: it - Ue,
9221
9221
  offset: Ue,
9222
9222
  model: n,
@@ -9232,7 +9232,7 @@ function Cy(t, e) {
9232
9232
  });
9233
9233
  if (ce == null || ce({
9234
9234
  model: n,
9235
- params: Bt,
9235
+ params: jt,
9236
9236
  name_search: he,
9237
9237
  context: d,
9238
9238
  order: ct
@@ -9314,7 +9314,7 @@ function Cy(t, e) {
9314
9314
  });
9315
9315
  return B == null || B(!1), ct;
9316
9316
  } catch (ct) {
9317
- throw console.error(ct), R((Bt) => Bt ?? 0), te((Bt) => Bt ?? 0), B == null || B(!1), w(ct), ct;
9317
+ throw console.error(ct), R((jt) => jt ?? 0), te((jt) => jt ?? 0), B == null || B(!1), w(ct), ct;
9318
9318
  }
9319
9319
  },
9320
9320
  [
@@ -9325,7 +9325,7 @@ function Cy(t, e) {
9325
9325
  mt,
9326
9326
  he
9327
9327
  ]
9328
- ), { footerComponent: Kt } = Hl({
9328
+ ), { footerComponent: Kt } = Bl({
9329
9329
  treeOoui: Le,
9330
9330
  model: n,
9331
9331
  selectedRowKeys: ln,
@@ -9333,11 +9333,11 @@ function Cy(t, e) {
9333
9333
  }), Sn = z(me);
9334
9334
  Sn.current = me;
9335
9335
  const $n = I(() => Sn.current, []);
9336
- Sc({
9336
+ Tc({
9337
9337
  tableRef: b,
9338
9338
  autoRefresh: v
9339
9339
  });
9340
- const Te = Ne.current ? Et : void 0, qe = jt(() => !nn || !Le ? null : /* @__PURE__ */ s(
9340
+ const Te = Ne.current ? Et : void 0, qe = Vt(() => !nn || !Le ? null : /* @__PURE__ */ s(
9341
9341
  Ss,
9342
9342
  {
9343
9343
  readonly: !1,
@@ -9509,7 +9509,7 @@ function Cy(t, e) {
9509
9509
  }
9510
9510
  ),
9511
9511
  p === "side" && /* @__PURE__ */ s(
9512
- wc,
9512
+ xc,
9513
9513
  {
9514
9514
  ...ur,
9515
9515
  onClose: hn,
@@ -9522,7 +9522,7 @@ function Cy(t, e) {
9522
9522
  selectedRowKeys: ln,
9523
9523
  totalRows: S,
9524
9524
  customMiddleComponent: To && /* @__PURE__ */ s(
9525
- Cc,
9525
+ Sc,
9526
9526
  {
9527
9527
  onFilterSearchClick: () => Y == null ? void 0 : Y(!0)
9528
9528
  }
@@ -9532,7 +9532,7 @@ function Cy(t, e) {
9532
9532
  /* @__PURE__ */ s("div", { ref: E, style: $t, children: K || ve ? /* @__PURE__ */ s(rt, {}) : qe })
9533
9533
  ] });
9534
9534
  }
9535
- const Ws = Ht(Cy), ta = (t, e = "14px -apple-system") => {
9535
+ const Ws = Bt(Cy), ta = (t, e = "14px -apple-system") => {
9536
9536
  const r = document.createElement("canvas").getContext("2d");
9537
9537
  r.font = e;
9538
9538
  const o = r.measureText(t);
@@ -9654,7 +9654,7 @@ function hr(t, e) {
9654
9654
  }
9655
9655
  return t !== t && e !== e;
9656
9656
  }
9657
- const Tc = Ht(
9657
+ const Fc = Bt(
9658
9658
  (t, e) => {
9659
9659
  var me;
9660
9660
  const {
@@ -9721,7 +9721,7 @@ const Tc = Ht(
9721
9721
  ).length;
9722
9722
  return l ? null : o === void 0 ? /* @__PURE__ */ s(rt, { className: "pb-4" }) : /* @__PURE__ */ j(Ze, { align: "bottom", className: "pb-4", children: [
9723
9723
  /* @__PURE__ */ s(Ve, { span: S ? 8 : 12, children: /* @__PURE__ */ s(
9724
- md,
9724
+ pd,
9725
9725
  {
9726
9726
  total: o,
9727
9727
  pageSize: V.current === 0 ? o : V.current,
@@ -9771,7 +9771,7 @@ const Tc = Ht(
9771
9771
  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
9772
  W,
9773
9773
  /* @__PURE__ */ s(
9774
- uu,
9774
+ fu,
9775
9775
  {
9776
9776
  ref: R,
9777
9777
  height: se,
@@ -9783,7 +9783,7 @@ const Tc = Ht(
9783
9783
  if (g[G.id])
9784
9784
  return { color: g[G.id] };
9785
9785
  },
9786
- onRowStatus: wf(h) ? (G) => {
9786
+ onRowStatus: xf(h) ? (G) => {
9787
9787
  if (h[G.id])
9788
9788
  return /* @__PURE__ */ s(Dn, { color: h[G.id] });
9789
9789
  } : void 0,
@@ -9804,10 +9804,10 @@ const Tc = Ht(
9804
9804
  Y
9805
9805
  ] });
9806
9806
  }
9807
- ), Vr = et(Tc);
9807
+ ), Vr = et(Fc);
9808
9808
  Vr.displayName = "Tree";
9809
- Tc.displayName = "UnmemoizedTree";
9810
- const Fc = (t) => {
9809
+ Fc.displayName = "UnmemoizedTree";
9810
+ const Ac = (t) => {
9811
9811
  const {
9812
9812
  model: e,
9813
9813
  setSearchTreeNameSearch: n,
@@ -9847,11 +9847,11 @@ const Fc = (t) => {
9847
9847
  context: d
9848
9848
  });
9849
9849
  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 = {};
9850
+ const Ae = te.map((We) => We == null ? void 0 : We[0]), { colors: Ce, status: Ie } = rn(u), he = {};
9851
9851
  Ce && (he.colors = Ce), Ie && (he.status = Ie);
9852
9852
  const ge = await U.getHandler().readEvalUiObjects({
9853
9853
  model: e,
9854
- ids: Fe,
9854
+ ids: Ae,
9855
9855
  arch: u == null ? void 0 : u.arch,
9856
9856
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
9857
9857
  context: d,
@@ -9881,7 +9881,7 @@ const Fc = (t) => {
9881
9881
  f
9882
9882
  ]), X = I(
9883
9883
  async (te) => {
9884
- const { params: Fe, newOffset: Ce } = te || {}, Ie = an(Fe || A, b), { colors: he, status: ge } = rn(u), Ne = {};
9884
+ const { params: Ae, newOffset: Ce } = te || {}, Ie = an(Ae || A, b), { colors: he, status: ge } = rn(u), Ne = {};
9885
9885
  he && (Ne.colors = he), ge && (Ne.status = ge);
9886
9886
  const { totalItems: Qe, results: Oe, attrsEvaluated: We } = await U.getHandler().searchForTree({
9887
9887
  params: Ie,
@@ -9928,8 +9928,8 @@ const Fc = (t) => {
9928
9928
  async (te) => {
9929
9929
  try {
9930
9930
  _(!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);
9931
+ } catch (Ae) {
9932
+ M(typeof Ae == "string" ? Ae : Ae.message), _(!1);
9933
9933
  } finally {
9934
9934
  r == null || r([]), E(!1), a == null || a(!1);
9935
9935
  }
@@ -9948,12 +9948,12 @@ const Fc = (t) => {
9948
9948
  if (JSON.stringify(te) === JSON.stringify(m))
9949
9949
  return;
9950
9950
  g == null || g(te);
9951
- const Fe = te !== void 0 ? Gn({
9951
+ const Ae = te !== void 0 ? Gn({
9952
9952
  resultsToSort: G,
9953
9953
  sorter: te,
9954
9954
  fields: { ...u.fields, ...p.fields }
9955
9955
  }) : [...se.current];
9956
- me(Fe);
9956
+ me(Ae);
9957
9957
  },
9958
9958
  [
9959
9959
  m,
@@ -9965,9 +9965,9 @@ const Fc = (t) => {
9965
9965
  ]
9966
9966
  ), J = I(
9967
9967
  (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,
9968
+ const { params: Ae, searchValues: Ce, limit: Ie, offset: he } = te;
9969
+ 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({
9970
+ params: Ae,
9971
9971
  newOffset: he
9972
9972
  }));
9973
9973
  },
@@ -9997,9 +9997,9 @@ const Fc = (t) => {
9997
9997
  C
9998
9998
  ]), fe = I(
9999
9999
  async (te) => {
10000
- const Fe = te[(u == null ? void 0 : u.field_parent) || "child_id"], Ce = await U.getHandler().readObjects({
10000
+ const Ae = te[(u == null ? void 0 : u.field_parent) || "child_id"], Ce = await U.getHandler().readObjects({
10001
10001
  model: e,
10002
- ids: Fe,
10002
+ ids: Ae,
10003
10003
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
10004
10004
  context: d
10005
10005
  });
@@ -10079,7 +10079,7 @@ function Ay(t, e) {
10079
10079
  ), {
10080
10080
  submit: ce,
10081
10081
  clear: te,
10082
- fetchResults: Fe,
10082
+ fetchResults: Ae,
10083
10083
  tableRefreshing: Ce,
10084
10084
  searchFilterLoading: Ie,
10085
10085
  searchError: he,
@@ -10094,7 +10094,7 @@ function Ay(t, e) {
10094
10094
  statusForResults: ze,
10095
10095
  totalItems: je,
10096
10096
  getAllIds: Pe
10097
- } = Fc({
10097
+ } = Ac({
10098
10098
  model: x,
10099
10099
  setSearchTreeNameSearch: ae,
10100
10100
  setSelectedRowItems: fe,
@@ -10122,11 +10122,11 @@ function Ay(t, e) {
10122
10122
  });
10123
10123
  Ut(e, () => ({
10124
10124
  refreshResults: () => {
10125
- v.current = !1, Fe();
10125
+ v.current = !1, Ae();
10126
10126
  },
10127
10127
  getFields: () => w == null ? void 0 : w.fields
10128
10128
  })), le(() => {
10129
- h && d && w && (v.current = !1, Fe());
10129
+ h && d && w && (v.current = !1, Ae());
10130
10130
  }, [ge, Qe, h, d, a, w]);
10131
10131
  const Se = async () => {
10132
10132
  y(!1), g(!0), _(void 0), X == null || X(!0);
@@ -10295,7 +10295,7 @@ function Ay(t, e) {
10295
10295
  ]), yt = D || he;
10296
10296
  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
10297
  }
10298
- const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10298
+ const Ic = Bt(Ay), Iy = Et, Ry = (t) => {
10299
10299
  const {
10300
10300
  treeViewFetching: e,
10301
10301
  treeOoui: n,
@@ -10342,7 +10342,7 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10342
10342
  setOrder: Y,
10343
10343
  limit: Z,
10344
10344
  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(
10345
+ } = 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
10346
  U.getHandler().parseConditions
10347
10347
  ), We = I((Te) => {
10348
10348
  ge.current = ge.current.map((qe) => {
@@ -10370,11 +10370,11 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10370
10370
  updateAttributes: p,
10371
10371
  results: q,
10372
10372
  autoRefresh: v
10373
- }), { showErrorNotification: Se } = xt(), [Be, ne] = Ae(
10373
+ }), { showErrorNotification: Se } = xt(), [Be, ne] = Fe(
10374
10374
  U.getHandler().searchCount
10375
- ), [ye, _e] = Ae(
10375
+ ), [ye, _e] = Fe(
10376
10376
  U.getHandler().searchForTree
10377
- ), [De, ve] = Ae(
10377
+ ), [De, ve] = Fe(
10378
10378
  U.getHandler().searchAllIds
10379
10379
  ), ke = Q(
10380
10380
  () => an(M || [], l),
@@ -10561,12 +10561,12 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10561
10561
  W
10562
10562
  ]), le(() => {
10563
10563
  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;
10564
+ if (te !== Ae.current) {
10565
+ if (te !== void 0 && Ae.current === void 0 || typeof te == "string" && typeof Ae.current == "string" && te !== Ae.current) {
10566
+ E == null || E([]), O == null || O({}), (Te = c.current) == null || Te.unselectAll(), Ae.current = te;
10567
10567
  return;
10568
10568
  }
10569
- te === void 0 && Fe.current !== void 0 && ee(!0), Fe.current = te;
10569
+ te === void 0 && Ae.current !== void 0 && ee(!0), Ae.current = te;
10570
10570
  }
10571
10571
  }, [te]), He(() => {
10572
10572
  const Te = !lr(
@@ -10624,7 +10624,7 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10624
10624
  },
10625
10625
  [de, A]
10626
10626
  );
10627
- Sc({
10627
+ Tc({
10628
10628
  tableRef: c,
10629
10629
  autoRefresh: v
10630
10630
  });
@@ -10771,7 +10771,7 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10771
10771
  onSubmit: a
10772
10772
  }
10773
10773
  ) : /* @__PURE__ */ s(
10774
- wc,
10774
+ xc,
10775
10775
  {
10776
10776
  ...p,
10777
10777
  onClose: c,
@@ -10809,7 +10809,7 @@ const Ac = Ht(Ay), Iy = Et, Ry = (t) => {
10809
10809
  childField: _,
10810
10810
  autoRefresh: k
10811
10811
  }) => !t || !e ? null : /* @__PURE__ */ s(
10812
- fu,
10812
+ mu,
10813
10813
  {
10814
10814
  ref: S,
10815
10815
  strings: n,
@@ -10863,7 +10863,7 @@ const Ey = et(qs), Xt = (t) => {
10863
10863
  }) => {
10864
10864
  const r = z(), o = pe(
10865
10865
  bn
10866
- ), { processAction: i } = o || {}, [a, c] = Ae(
10866
+ ), { processAction: i } = o || {}, [a, c] = Fe(
10867
10867
  U.getHandler().treeButOpen
10868
10868
  ), { showErrorNotification: l } = xt();
10869
10869
  return le(() => () => {
@@ -10945,7 +10945,7 @@ function My(t, e) {
10945
10945
  } = ks({
10946
10946
  treeOoui: _,
10947
10947
  parentContext: d,
10948
- columnStateKey: w ? kl({
10948
+ columnStateKey: w ? Ml({
10949
10949
  treeViewId: w.view_id,
10950
10950
  model: n
10951
10951
  }) : void 0,
@@ -10970,7 +10970,7 @@ function My(t, e) {
10970
10970
  onRequestPageChange: fe,
10971
10971
  treeIsLoading: ce,
10972
10972
  selectAllRecords: te,
10973
- onHeaderCheckboxClick: Fe,
10973
+ onHeaderCheckboxClick: Ae,
10974
10974
  headerCheckboxState: Ce,
10975
10975
  currentPage: Ie,
10976
10976
  limit: he,
@@ -11064,7 +11064,7 @@ function My(t, e) {
11064
11064
  }
11065
11065
  ),
11066
11066
  !$ && !m && /* @__PURE__ */ s(
11067
- Zd,
11067
+ eu,
11068
11068
  {
11069
11069
  total: At,
11070
11070
  totalRowsLoading: ie,
@@ -11078,7 +11078,7 @@ function My(t, e) {
11078
11078
  simpleSummary: Re,
11079
11079
  showAllOptionInPageSizeOptions: p !== void 0,
11080
11080
  customMiddleComponent: yt && /* @__PURE__ */ s(
11081
- Cc,
11081
+ Sc,
11082
11082
  {
11083
11083
  onFilterSearchClick: () => Me(!0)
11084
11084
  }
@@ -11108,7 +11108,7 @@ function My(t, e) {
11108
11108
  onRowStyle: de,
11109
11109
  headerCheckboxState: g ? "unchecked" : Ce,
11110
11110
  onHeaderCheckboxClick: g ? () => {
11111
- } : Fe,
11111
+ } : Ae,
11112
11112
  refresh: Be,
11113
11113
  actionViewSortState: ge,
11114
11114
  onSortChange: Oe,
@@ -11121,7 +11121,7 @@ function My(t, e) {
11121
11121
  ) })
11122
11122
  ] });
11123
11123
  }
11124
- const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11124
+ const Rc = Bt(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11125
11125
  const {
11126
11126
  visible: e,
11127
11127
  searchTreeRef: n,
@@ -11162,9 +11162,9 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11162
11162
  isActive: N
11163
11163
  } = pe(Dt), { token: L } = Ny(), { t: q } = xe(), P = Qt(
11164
11164
  Ft.FEATURE_SAVED_SEARCHES
11165
- ), [$] = Ae(
11165
+ ), [$] = Fe(
11166
11166
  U.getHandler().searchAllIds
11167
- ), [H] = Ae(
11167
+ ), [H] = Fe(
11168
11168
  U.getHandler().readEvalUiObjects
11169
11169
  ), K = I(async () => {
11170
11170
  if (!P || !r)
@@ -11269,7 +11269,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11269
11269
  },
11270
11270
  children: [
11271
11271
  /* @__PURE__ */ s(
11272
- Vt,
11272
+ Ht,
11273
11273
  {
11274
11274
  title: /* @__PURE__ */ j("div", { children: [
11275
11275
  /* @__PURE__ */ s("div", { children: q("openSavedSearchInSidebar") }),
@@ -11316,7 +11316,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11316
11316
  )
11317
11317
  }
11318
11318
  ),
11319
- /* @__PURE__ */ s(Vt, { title: q("clear_search"), children: /* @__PURE__ */ s(
11319
+ /* @__PURE__ */ s(Ht, { title: q("clear_search"), children: /* @__PURE__ */ s(
11320
11320
  kn,
11321
11321
  {
11322
11322
  style: {
@@ -11369,7 +11369,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11369
11369
  }
11370
11370
  ),
11371
11371
  y === "paginated" && /* @__PURE__ */ s(
11372
- Ic,
11372
+ Rc,
11373
11373
  {
11374
11374
  ref: n,
11375
11375
  rootTree: !0,
@@ -11384,7 +11384,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11384
11384
  }
11385
11385
  ),
11386
11386
  y === "legacy" && /* @__PURE__ */ s(
11387
- Ac,
11387
+ Ic,
11388
11388
  {
11389
11389
  ref: n,
11390
11390
  rootTree: !0,
@@ -11398,7 +11398,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11398
11398
  }
11399
11399
  )
11400
11400
  ] }) : null;
11401
- }, Dt = ad(
11401
+ }, Dt = ld(
11402
11402
  null
11403
11403
  ), $y = (t) => {
11404
11404
  const {
@@ -11436,8 +11436,8 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11436
11436
  permissionsError: V
11437
11437
  } = 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
11438
  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)
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, Ae] = F(
11440
+ Fl(k || [], ce)
11441
11441
  ), [Ce, Ie] = F(0), [he, ge] = F(void 0), [Ne, Qe] = F(), [Oe, We] = F(_n), [Me, Xe] = F(
11442
11442
  T
11443
11443
  ), [Le, ze] = F(
@@ -11517,7 +11517,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11517
11517
  setPreviousView: fe,
11518
11518
  goToResourceId: R,
11519
11519
  searchValues: te,
11520
- setSearchValues: Fe,
11520
+ setSearchValues: Ae,
11521
11521
  limit: Le,
11522
11522
  setLimit: ze,
11523
11523
  setTitle: Pe,
@@ -11664,7 +11664,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11664
11664
  viewData: d
11665
11665
  } = t, [f, u] = F(!1), [p, m] = F(), g = pe(
11666
11666
  Dt
11667
- ), { setGraphIsLoading: h = void 0 } = g || {}, [y] = Ae(U.getHandler().getView);
11667
+ ), { setGraphIsLoading: h = void 0 } = g || {}, [y] = Fe(U.getHandler().getView);
11668
11668
  Ut(e, () => ({
11669
11669
  refresh: () => {
11670
11670
  v();
@@ -11730,8 +11730,8 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11730
11730
  default:
11731
11731
  return /* @__PURE__ */ s(we, { children: `Graph ${p.type} not implemented` });
11732
11732
  }
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(
11733
+ }, Nn = Bt(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] = Fe(
11735
11735
  U.getHandler().readForView
11736
11736
  ), m = I(async () => {
11737
11737
  c(!0), d(void 0), i && n.push(["id", "in", i]);
@@ -11781,7 +11781,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11781
11781
  case "indicator": {
11782
11782
  const { value: g, total: h, percent: y, icon: v, color: b, suffix: x } = p;
11783
11783
  return /* @__PURE__ */ s(
11784
- bl,
11784
+ wl,
11785
11785
  {
11786
11786
  value: g,
11787
11787
  totalValue: h,
@@ -11789,7 +11789,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11789
11789
  color: b,
11790
11790
  icon: v,
11791
11791
  suffix: x,
11792
- showPercent: xl(y),
11792
+ showPercent: Cl(y),
11793
11793
  fixedHeight: c
11794
11794
  }
11795
11795
  );
@@ -11799,7 +11799,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11799
11799
  case "pie": {
11800
11800
  const g = p;
11801
11801
  return /* @__PURE__ */ s(
11802
- Cl,
11802
+ Sl,
11803
11803
  {
11804
11804
  type: g.type,
11805
11805
  data: g.data,
@@ -11814,7 +11814,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11814
11814
  default:
11815
11815
  return /* @__PURE__ */ s(we, { children: `Graph ${p.type} not implemented` });
11816
11816
  }
11817
- }, Gs = Ht(By), { useToken: jy } = ot, { Text: oa } = en, Rc = (t) => {
11817
+ }, Gs = Bt(By), { useToken: jy } = ot, { Text: oa } = en, _c = (t) => {
11818
11818
  const {
11819
11819
  title: e,
11820
11820
  children: n,
@@ -11860,7 +11860,7 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11860
11860
  overflow: "hidden"
11861
11861
  },
11862
11862
  children: a ? /* @__PURE__ */ j(we, { children: [
11863
- /* @__PURE__ */ s(Vt, { title: a, children: /* @__PURE__ */ s(ao, { className: "pr-1 text-xs" }) }),
11863
+ /* @__PURE__ */ s(Ht, { title: a, children: /* @__PURE__ */ s(ao, { className: "pr-1 text-xs" }) }),
11864
11864
  /* @__PURE__ */ s(oa, { ellipsis: !0, children: e })
11865
11865
  ] }) : /* @__PURE__ */ s(
11866
11866
  oa,
@@ -11893,9 +11893,9 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11893
11893
  }
11894
11894
  );
11895
11895
  }, Uy = (t) => {
11896
- const [e, n] = Ae(
11896
+ const [e, n] = Fe(
11897
11897
  U.getHandler().execute
11898
- ), [r, o] = Ae(
11898
+ ), [r, o] = Fe(
11899
11899
  U.getHandler().search
11900
11900
  );
11901
11901
  le(() => () => {
@@ -11981,36 +11981,45 @@ const Ic = Ht(My), { useToken: Ny } = ot, _n = "legacy", Py = (t) => {
11981
11981
  parseReferenceString: i,
11982
11982
  cancelRequest: c
11983
11983
  };
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({
11984
+ }, Ec = (t) => {
11985
+ 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(
11986
+ U.getHandler().search
11987
+ );
11988
+ le(() => () => {
11989
+ g();
11990
+ }, []);
11991
+ const h = I(async () => {
11992
+ const y = typeof (p == null ? void 0 : p.id) == "number" ? p.id : void 0;
11993
+ if (y) {
11994
+ c(y);
11995
+ return;
11996
+ }
11997
+ const v = await m({
11996
11998
  params: [],
11997
11999
  model: e,
11998
12000
  limit: 1
11999
12001
  });
12000
- p.length > 0 && a(p[0].id);
12001
- }
12002
- return /* @__PURE__ */ s(
12002
+ v.length > 0 && c(v[0].id);
12003
+ }, [p, e, m]);
12004
+ return le(() => {
12005
+ h();
12006
+ }, []), He(() => (d.current && (clearInterval(d.current), d.current = null), o && a && f !== !1 && u && (d.current = setInterval(async () => {
12007
+ var y;
12008
+ await h(), await new Promise((v) => setTimeout(v, 200)), (y = l.current) == null || y.fetchValues();
12009
+ }, o)), () => {
12010
+ d.current && (clearInterval(d.current), d.current = null);
12011
+ }), [o, a, f, u, p]), /* @__PURE__ */ s(
12003
12012
  "div",
12004
12013
  {
12005
12014
  style: { padding: "0.5rem", overflowY: "scroll", height: r },
12006
12015
  children: /* @__PURE__ */ s(
12007
12016
  dr,
12008
12017
  {
12009
- ref: c,
12018
+ ref: l,
12010
12019
  ...t,
12011
12020
  model: e,
12012
12021
  view_id: n,
12013
- id: i,
12022
+ id: a,
12014
12023
  readOnly: !0
12015
12024
  }
12016
12025
  )
@@ -12032,7 +12041,7 @@ function Wy(t) {
12032
12041
  } = 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
12042
  B(!0), A(fe), R((fe - 1) * D.current);
12034
12043
  }, 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({
12044
+ 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
12045
  params: ce,
12037
12046
  limit: D.current,
12038
12047
  offset: S,
@@ -12048,7 +12057,7 @@ function Wy(t) {
12048
12057
  fields: { ...v.fields, ...x.fields }
12049
12058
  });
12050
12059
  B(!1), M(he);
12051
- const ge = await Fe();
12060
+ const ge = await Ae();
12052
12061
  E(ge);
12053
12062
  }, ae = async () => {
12054
12063
  try {
@@ -12134,7 +12143,7 @@ function Wy(t) {
12134
12143
  }
12135
12144
  ),
12136
12145
  W === "paginated" && /* @__PURE__ */ s(
12137
- Ic,
12146
+ Rc,
12138
12147
  {
12139
12148
  hideHeaders: !0,
12140
12149
  rootTree: !1,
@@ -12179,12 +12188,12 @@ function Wy(t) {
12179
12188
  ] }));
12180
12189
  return $ ? (console.error($), /* @__PURE__ */ s(Tt, { className: "mt-10", message: $, type: "error", banner: !0 })) : u ? /* @__PURE__ */ s(rt, { style: { padding: "2rem" } }) : ue();
12181
12190
  }
12182
- const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12191
+ const Oc = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12183
12192
  const { ooui: e } = t, { refreshCounter: n } = _r(), r = e.actionId !== void 0, o = e.actionField !== void 0;
12184
12193
  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
12194
  }, zy = (t) => {
12186
12195
  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(
12196
+ 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
12197
  U.getHandler().parseCondition
12189
12198
  ), { fetchReferenceValues: y } = Uy({
12190
12199
  context: i == null ? void 0 : i()
@@ -12235,7 +12244,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12235
12244
  n.label,
12236
12245
  " "
12237
12246
  ] }),
12238
- n.tooltip && /* @__PURE__ */ s(Vt, { title: n.tooltip, children: /* @__PURE__ */ s(
12247
+ n.tooltip && /* @__PURE__ */ s(Ht, { title: n.tooltip, children: /* @__PURE__ */ s(
12239
12248
  Fa,
12240
12249
  {
12241
12250
  className: "pr-1 text-xs",
@@ -12285,7 +12294,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12285
12294
  console.log("Error formatting number with locale", o), console.error(R);
12286
12295
  }
12287
12296
  const A = /* @__PURE__ */ s(
12288
- pd,
12297
+ hd,
12289
12298
  {
12290
12299
  title: x,
12291
12300
  prefix: C && /* @__PURE__ */ s(C, {}),
@@ -12301,10 +12310,10 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12301
12310
  if (He(() => {
12302
12311
  !e || !a || u();
12303
12312
  }, [e, i, a]), f && f.message !== "active_id_not_found")
12304
- return /* @__PURE__ */ s(vl, { error: f });
12313
+ return /* @__PURE__ */ s(bl, { error: f });
12305
12314
  const { id: m, initialView: g, description: h } = c || {};
12306
12315
  return /* @__PURE__ */ j(
12307
- Rc,
12316
+ _c,
12308
12317
  {
12309
12318
  id: m,
12310
12319
  parms: {},
@@ -12382,7 +12391,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12382
12391
  fixedHeight: e
12383
12392
  }
12384
12393
  ) : r.type === "form" ? /* @__PURE__ */ s(
12385
- _c,
12394
+ Ec,
12386
12395
  {
12387
12396
  model: i,
12388
12397
  actionDomain: a,
@@ -12391,7 +12400,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12391
12400
  },
12392
12401
  r.id
12393
12402
  ) : r.type === "tree" ? /* @__PURE__ */ s(
12394
- Ec,
12403
+ Oc,
12395
12404
  {
12396
12405
  model: i,
12397
12406
  domain: a,
@@ -12403,7 +12412,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12403
12412
  },
12404
12413
  r.id
12405
12414
  ) : /* @__PURE__ */ s(
12406
- vl,
12415
+ bl,
12407
12416
  {
12408
12417
  error: new Error("Unsupported view type: " + r.type)
12409
12418
  }
@@ -12417,9 +12426,9 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12417
12426
  const { ooui: e } = t;
12418
12427
  return /* @__PURE__ */ s(Ye, { type: "array", ...t, children: /* @__PURE__ */ s(Zy, { ooui: e }) });
12419
12428
  }, 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(
12429
+ 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
12430
  U.getHandler().evalDomain
12422
- ), [C, w] = Ae(
12431
+ ), [C, w] = Fe(
12423
12432
  U.getHandler().search
12424
12433
  );
12425
12434
  le(() => () => {
@@ -12476,7 +12485,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12476
12485
  }, D = (_) => {
12477
12486
  const { label: k, closable: E, onClose: T } = _, M = (N) => {
12478
12487
  N.preventDefault(), N.stopPropagation();
12479
- }, O = Er(k), V = O && ml(O);
12488
+ }, O = Er(k), V = O && pl(O);
12480
12489
  return /* @__PURE__ */ s(
12481
12490
  Ds,
12482
12491
  {
@@ -12580,9 +12589,9 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12580
12589
  formContext: n,
12581
12590
  disabled: r
12582
12591
  }) => {
12583
- const [o, i] = F(!1), [a, c] = Ae(
12592
+ const [o, i] = F(!1), [a, c] = Fe(
12584
12593
  U.getHandler().getActionData
12585
- ), [l, d] = Ae(
12594
+ ), [l, d] = Fe(
12586
12595
  U.getHandler().execute
12587
12596
  );
12588
12597
  le(() => () => {
@@ -12659,7 +12668,7 @@ const Ec = et(Wy), { useToken: qy } = ot, Gy = 3 * 1e3, Yy = (t) => {
12659
12668
  bordered: n.border !== !1
12660
12669
  };
12661
12670
  return /* @__PURE__ */ j(nt, { direction: "vertical", align: "center", children: [
12662
- /* @__PURE__ */ s(hd, { ...i }),
12671
+ /* @__PURE__ */ s(gd, { ...i }),
12663
12672
  n.showValue && /* @__PURE__ */ s(en.Text, { type: "secondary", children: o })
12664
12673
  ] });
12665
12674
  }, to = (t) => {
@@ -12704,7 +12713,7 @@ const av = (t) => {
12704
12713
  case "notebook":
12705
12714
  return Zv;
12706
12715
  case "group":
12707
- return Jc;
12716
+ return Xc;
12708
12717
  case "label":
12709
12718
  return mo;
12710
12719
  case "char":
@@ -12714,13 +12723,13 @@ const av = (t) => {
12714
12723
  case "button":
12715
12724
  return Ts;
12716
12725
  case "buttonGroup":
12717
- return Gu;
12726
+ return Yu;
12718
12727
  case "selection":
12719
12728
  return Za;
12720
12729
  case "many2one":
12721
12730
  return Av;
12722
12731
  case "boolean":
12723
- return uf;
12732
+ return ff;
12724
12733
  case "integer":
12725
12734
  return Cr;
12726
12735
  case "float":
@@ -12744,7 +12753,7 @@ const av = (t) => {
12744
12753
  case "binary":
12745
12754
  return xb;
12746
12755
  case "image":
12747
- return hf;
12756
+ return gf;
12748
12757
  case "url":
12749
12758
  return _b;
12750
12759
  case "email":
@@ -12752,7 +12761,7 @@ const av = (t) => {
12752
12761
  case "float_time":
12753
12762
  return Kv;
12754
12763
  case "fiber_grid":
12755
- return yf;
12764
+ return vf;
12756
12765
  case "timeline":
12757
12766
  return Df;
12758
12767
  case "indicator":
@@ -12799,7 +12808,7 @@ const av = (t) => {
12799
12808
  }
12800
12809
  }, lv = (t) => {
12801
12810
  const { ooui: e } = t, { type: n } = e, r = av(n);
12802
- return r ? ld(r, t) : null;
12811
+ return r ? cd(r, t) : null;
12803
12812
  }, cv = ({
12804
12813
  item: t,
12805
12814
  responsiveBehaviour: e
@@ -12828,7 +12837,7 @@ const av = (t) => {
12828
12837
  row: t,
12829
12838
  numberOfColumns: e
12830
12839
  }) => 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");
12840
+ const n = t.map((r) => r instanceof or && r.fieldForLabel || r instanceof Sd ? "auto" : "1fr");
12832
12841
  if (n.length < e) {
12833
12842
  const r = e - n.length;
12834
12843
  for (let o = 0; o < r; o++)
@@ -12879,10 +12888,10 @@ const av = (t) => {
12879
12888
  minHeight: 0,
12880
12889
  minWidth: 0
12881
12890
  }, children: l });
12882
- }, Oc = Zt.createContext(null), hv = (t) => {
12891
+ }, Dc = Zt.createContext(null), hv = (t) => {
12883
12892
  const { children: e, setTitle: n } = t;
12884
12893
  return /* @__PURE__ */ s(
12885
- Oc.Provider,
12894
+ Dc.Provider,
12886
12895
  {
12887
12896
  value: {
12888
12897
  setTitle: n
@@ -12904,7 +12913,7 @@ const av = (t) => {
12904
12913
  fieldDefs: i,
12905
12914
  onAutorefreshableFieldsChange: a,
12906
12915
  isActive: c
12907
- } = t, l = z(null), [d, f] = F(!0), [u, p] = Ae(
12916
+ } = t, l = z(null), [d, f] = F(!0), [u, p] = Fe(
12908
12917
  U.getHandler().readObjects
12909
12918
  ), m = cr();
12910
12919
  le(() => {
@@ -13018,7 +13027,7 @@ function xv(t, e) {
13018
13027
  forcedValues: S = {},
13019
13028
  parentWidth: R,
13020
13029
  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(
13030
+ } = 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
13031
  Dt
13023
13032
  ), {
13024
13033
  setFormIsSaving: Ce = void 0,
@@ -13029,7 +13038,7 @@ function xv(t, e) {
13029
13038
  title: Qe = void 0,
13030
13039
  setTitle: Oe = void 0,
13031
13040
  isActive: We = void 0
13032
- } = (w ? Fe : {}) || {}, Me = pe(
13041
+ } = (w ? Ae : {}) || {}, Me = pe(
13033
13042
  bn
13034
13043
  ), { processAction: Xe, globalValues: Le } = Me || {}, { onActionTriggered: ze } = tn(), { showErrorNotification: je } = xt({
13035
13044
  onButtonAction: (oe) => {
@@ -13197,7 +13206,7 @@ function xv(t, e) {
13197
13206
  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
13207
  fields: be,
13199
13208
  arch: Ee
13200
- }), x && (re = { ...If(x), ...re }), G.current = jn(re, be), Te({
13209
+ }), x && (re = { ...ml(x), ...re }), G.current = jn(re, be), Te({
13201
13210
  values: re,
13202
13211
  fields: be,
13203
13212
  reset: !0,
@@ -13234,12 +13243,12 @@ function xv(t, e) {
13234
13243
  reset: be,
13235
13244
  isDefaultGet: Ee = !1
13236
13245
  }) => {
13237
- const gt = { ...be ? {} : N.getFieldsValue(!0), ...oe }, Fo = jn(gt, re), od = Object.keys(re).map((Ao) => ({
13246
+ const gt = { ...be ? {} : N.getFieldsValue(!0), ...oe }, Fo = jn(gt, re), sd = Object.keys(re).map((Ao) => ({
13238
13247
  name: Ao,
13239
13248
  touched: !1,
13240
13249
  value: Fo[Ao] !== void 0 ? Fo[Ao] : void 0
13241
13250
  }));
13242
- Ee || (ae.current = Fo), N.setFields(od);
13251
+ Ee || (ae.current = Fo), N.setFields(sd);
13243
13252
  },
13244
13253
  [N]
13245
13254
  ), qe = async ({
@@ -13351,7 +13360,7 @@ function xv(t, e) {
13351
13360
  const $e = new Ta(oe);
13352
13361
  return $e.parse(re, {
13353
13362
  readOnly: u || Ee,
13354
- values: xf(
13363
+ values: Cf(
13355
13364
  {
13356
13365
  ...be,
13357
13366
  ...nn()
@@ -13388,7 +13397,7 @@ function xv(t, e) {
13388
13397
  target: mt(P),
13389
13398
  fields: P
13390
13399
  }), be = Object.keys(re);
13391
- if (be.length !== 0 && !(Ff({
13400
+ if (be.length !== 0 && !(Af({
13392
13401
  changedFields: be,
13393
13402
  formOoui: O,
13394
13403
  types: [
@@ -13408,7 +13417,7 @@ function xv(t, e) {
13408
13417
  ye($e);
13409
13418
  }), ur(be);
13410
13419
  }
13411
- }, Jt = su(pn, 100), ur = async (oe) => {
13420
+ }, Jt = iu(pn, 100), ur = async (oe) => {
13412
13421
  try {
13413
13422
  for (let re = 0; re < oe.length; re += 1) {
13414
13423
  const be = oe[re];
@@ -13448,7 +13457,7 @@ function xv(t, e) {
13448
13457
  const $e = {
13449
13458
  ...mt(P),
13450
13459
  ...Ee.value
13451
- }, gt = Cf({
13460
+ }, gt = Sf({
13452
13461
  values: $e,
13453
13462
  fields: P
13454
13463
  });
@@ -13480,7 +13489,7 @@ function xv(t, e) {
13480
13489
  }));
13481
13490
  }
13482
13491
  if (Ee.domain && Object.keys(Ee.domain).length > 0) {
13483
- const $e = Af({
13492
+ const $e = If({
13484
13493
  fieldsDomain: Ee.domain,
13485
13494
  fields: P
13486
13495
  });
@@ -13573,7 +13582,7 @@ function xv(t, e) {
13573
13582
  operationInProgress: oe
13574
13583
  });
13575
13584
  }
13576
- const Bt = I(
13585
+ const jt = I(
13577
13586
  (oe) => {
13578
13587
  if (!L)
13579
13588
  return;
@@ -13595,7 +13604,7 @@ function xv(t, e) {
13595
13604
  context: b,
13596
13605
  autorefreshableFields: O == null ? void 0 : O.autorefreshableFields,
13597
13606
  fieldDefs: P,
13598
- onAutorefreshableFieldsChange: Bt,
13607
+ onAutorefreshableFieldsChange: jt,
13599
13608
  isActive: We
13600
13609
  });
13601
13610
  async function Ln({
@@ -13625,7 +13634,7 @@ function xv(t, e) {
13625
13634
  }
13626
13635
  }
13627
13636
  const gn = () => !O && !T ? /* @__PURE__ */ s(rt, {}) : !n && !h || !C ? null : /* @__PURE__ */ s(we, { children: /* @__PURE__ */ s(
13628
- Nu,
13637
+ Pu,
13629
13638
  {
13630
13639
  getValues: bt,
13631
13640
  getPlainValues: Ke,
@@ -13712,7 +13721,7 @@ function xv(t, e) {
13712
13721
  }
13713
13722
  ) : null;
13714
13723
  }
13715
- const dr = Ht(xv), Dc = (t) => {
13724
+ const dr = Bt(xv), kc = (t) => {
13716
13725
  const { visible: e, initialName: n, onSave: r, onCancel: o } = t, { t: i } = xe(), [a, c] = F(n), [l, d] = F(!1);
13717
13726
  le(() => {
13718
13727
  c(n);
@@ -13772,13 +13781,13 @@ const dr = Ht(xv), Dc = (t) => {
13772
13781
  defaultName: r = "",
13773
13782
  onFavouriteAdded: o,
13774
13783
  onFavouriteRemoved: i
13775
- } = t, { t: a } = xe(), [c, l] = F(!1), [d] = Ae(
13784
+ } = t, { t: a } = xe(), [c, l] = F(!1), [d] = Fe(
13776
13785
  U.getHandler().removeFavourite
13777
- ), [f] = Ae(
13786
+ ), [f] = Fe(
13778
13787
  U.getHandler().addFavourite
13779
- ), [u] = Ae(
13788
+ ), [u] = Fe(
13780
13789
  U.getHandler().isShortcutFavorite
13781
- ), [p] = Ae(
13790
+ ), [p] = Fe(
13782
13791
  U.getHandler().update
13783
13792
  ), m = I(() => {
13784
13793
  e && n !== void 0 ? on({
@@ -13898,7 +13907,7 @@ const dr = Ht(xv), Dc = (t) => {
13898
13907
  Ge,
13899
13908
  {
13900
13909
  type: m ? "primary" : "default",
13901
- icon: m ? /* @__PURE__ */ s(Ed, { style: { color: "white" } }) : /* @__PURE__ */ s(Od, {}),
13910
+ icon: m ? /* @__PURE__ */ s(Od, { style: { color: "white" } }) : /* @__PURE__ */ s(Dd, {}),
13902
13911
  style: { width: 30 },
13903
13912
  onClick: S
13904
13913
  }
@@ -13934,7 +13943,7 @@ const dr = Ht(xv), Dc = (t) => {
13934
13943
  }
13935
13944
  ),
13936
13945
  /* @__PURE__ */ s(
13937
- Dc,
13946
+ kc,
13938
13947
  {
13939
13948
  visible: A,
13940
13949
  initialName: _,
@@ -13989,7 +13998,7 @@ const dr = Ht(xv), Dc = (t) => {
13989
13998
  }
13990
13999
  A(f);
13991
14000
  }, [f, S, A]), _ = Q(
13992
- () => w ? Ws : Ac,
14001
+ () => w ? Ws : Ic,
13993
14002
  [w]
13994
14003
  ), k = I(() => {
13995
14004
  d(!0);
@@ -14068,7 +14077,7 @@ const dr = Ht(xv), Dc = (t) => {
14068
14077
  )
14069
14078
  ] });
14070
14079
  }, Sv = () => {
14071
- const [t, e] = Ae(
14080
+ const [t, e] = Fe(
14072
14081
  U.getHandler().checkPermission
14073
14082
  );
14074
14083
  return le(() => () => {
@@ -14123,7 +14132,7 @@ const dr = Ht(xv), Dc = (t) => {
14123
14132
  }),
14124
14133
  [r, i, c]
14125
14134
  );
14126
- }, { defaultAlgorithm: Tv, defaultSeed: Fv } = ot, kc = Tv(Fv), Av = (t) => {
14135
+ }, { defaultAlgorithm: Tv, defaultSeed: Fv } = ot, Mc = Tv(Fv), Av = (t) => {
14127
14136
  const { ooui: e } = t, { required: n } = e;
14128
14137
  return /* @__PURE__ */ s(Ye, { required: n, type: "array", validator: async (o, i) => {
14129
14138
  if (!i)
@@ -14132,8 +14141,8 @@ const dr = Ht(xv), Dc = (t) => {
14132
14141
  throw new Error();
14133
14142
  if (Array.isArray(i) && !i[0])
14134
14143
  throw new Error();
14135
- }, ...t, children: /* @__PURE__ */ s(Mc, { ooui: e }) });
14136
- }, Mc = (t) => {
14144
+ }, ...t, children: /* @__PURE__ */ s(Nc, { ooui: e }) });
14145
+ }, Nc = (t) => {
14137
14146
  const { value: e, onChange: n, ooui: r } = t, {
14138
14147
  required: o,
14139
14148
  relation: i,
@@ -14141,7 +14150,7 @@ const dr = Ht(xv), Dc = (t) => {
14141
14150
  context: c,
14142
14151
  id: l,
14143
14152
  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), {
14153
+ } = 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
14154
  domain: R,
14146
14155
  getFields: D,
14147
14156
  getContext: _,
@@ -14328,7 +14337,7 @@ const dr = Ht(xv), Dc = (t) => {
14328
14337
  ] });
14329
14338
  }, Iv = Ot(ht)`
14330
14339
  .ant-input {
14331
- background-color: ${kc.colorPrimaryBg};
14340
+ background-color: ${Mc.colorPrimaryBg};
14332
14341
  }
14333
14342
  `, Rv = ({
14334
14343
  title: t,
@@ -14371,7 +14380,7 @@ const dr = Ht(xv), Dc = (t) => {
14371
14380
  children: e
14372
14381
  }
14373
14382
  );
14374
- }, Nc = (t) => {
14383
+ }, Pc = (t) => {
14375
14384
  const e = document.createElement("div");
14376
14385
  document.body.appendChild(e);
14377
14386
  const n = Pa(e);
@@ -14394,11 +14403,11 @@ const dr = Ht(xv), Dc = (t) => {
14394
14403
  n.unmount(), e.remove();
14395
14404
  }
14396
14405
  };
14397
- }, Pc = ({
14406
+ }, $c = ({
14398
14407
  t,
14399
14408
  onOk: e
14400
14409
  }) => {
14401
- Nc({
14410
+ Pc({
14402
14411
  title: t("removeItems"),
14403
14412
  icon: /* @__PURE__ */ s(so, {}),
14404
14413
  centered: !0,
@@ -14407,11 +14416,11 @@ const dr = Ht(xv), Dc = (t) => {
14407
14416
  cancelText: t("cancel"),
14408
14417
  onOk: e
14409
14418
  });
14410
- }, $c = ({
14419
+ }, Lc = ({
14411
14420
  t,
14412
14421
  onOk: e
14413
14422
  }) => {
14414
- Nc({
14423
+ Pc({
14415
14424
  title: t("unlinkItems"),
14416
14425
  icon: /* @__PURE__ */ s(so, {}),
14417
14426
  centered: !0,
@@ -14420,7 +14429,7 @@ const dr = Ht(xv), Dc = (t) => {
14420
14429
  onOk: e,
14421
14430
  cancelText: t("cancel")
14422
14431
  });
14423
- }, Lc = ({
14432
+ }, Vc = ({
14424
14433
  mustDisableButtons: t = !1,
14425
14434
  formRef: e,
14426
14435
  onRefreshParentValues: n,
@@ -14431,7 +14440,7 @@ const dr = Ht(xv), Dc = (t) => {
14431
14440
  bn
14432
14441
  ), c = pe(
14433
14442
  qt
14434
- ), { processAction: l } = a || {}, { openRelate: d } = c || {}, [f, u] = F(null), [p, m] = F(!1), [g] = Ae(
14443
+ ), { processAction: l } = a || {}, { openRelate: d } = c || {}, [f, u] = F(null), [p, m] = F(!1), [g] = Fe(
14435
14444
  U.getHandler().getToolbar
14436
14445
  ), h = o || f, y = I(async () => {
14437
14446
  var S;
@@ -14620,7 +14629,7 @@ function Ov(t) {
14620
14629
  w == null || w();
14621
14630
  },
14622
14631
  context: a === "tree" ? x : (Z = C == null ? void 0 : C.current) == null ? void 0 : Z.getContext()
14623
- }), { actionButtonProps: L, printButtonProps: q, relateButtonProps: P } = Lc({
14632
+ }), { actionButtonProps: L, printButtonProps: q, relateButtonProps: P } = Vc({
14624
14633
  toolbar: v,
14625
14634
  model: o,
14626
14635
  mustDisableButtons: n,
@@ -14629,7 +14638,7 @@ function Ov(t) {
14629
14638
  }), {
14630
14639
  actionButtonProps: $,
14631
14640
  printButtonProps: H
14632
- } = _l({
14641
+ } = El({
14633
14642
  toolbar: v,
14634
14643
  model: o,
14635
14644
  view_id: b == null ? void 0 : b.view_id,
@@ -14640,7 +14649,7 @@ function Ov(t) {
14640
14649
  onRefreshParentValues: w
14641
14650
  }), 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
14651
  return /* @__PURE__ */ j("div", { className: "flex mb-2 pt-3", children: [
14643
- /* @__PURE__ */ s(Vc, { title: e, token: S }),
14652
+ /* @__PURE__ */ s(Hc, { title: e, token: S }),
14644
14653
  /* @__PURE__ */ j("div", { className: "flex-none h-8 pl-2", children: [
14645
14654
  a !== "graph" && h && /* @__PURE__ */ s(
14646
14655
  St,
@@ -14665,7 +14674,7 @@ function Ov(t) {
14665
14674
  ] }),
14666
14675
  a !== "graph" && /* @__PURE__ */ s(cn, {}),
14667
14676
  a !== "graph" && /* @__PURE__ */ s(
14668
- jc,
14677
+ Uc,
14669
14678
  {
14670
14679
  isMany2Many: p,
14671
14680
  selectedRowKeys: n ? [] : g,
@@ -14707,7 +14716,7 @@ function Ov(t) {
14707
14716
  )
14708
14717
  ] }),
14709
14718
  a === "form" && /* @__PURE__ */ s(
14710
- Bc,
14719
+ jc,
14711
14720
  {
14712
14721
  currentItemIndex: d,
14713
14722
  totalItems: l,
@@ -14721,7 +14730,7 @@ function Ov(t) {
14721
14730
  St,
14722
14731
  {
14723
14732
  tooltip: R("toggleViewMode"),
14724
- icon: /* @__PURE__ */ s(kd, {}),
14733
+ icon: /* @__PURE__ */ s(Md, {}),
14725
14734
  onClick: i
14726
14735
  }
14727
14736
  )
@@ -14761,7 +14770,7 @@ function Ov(t) {
14761
14770
  ] })
14762
14771
  ] });
14763
14772
  }
14764
- const Vc = et(({ title: t, token: e }) => /* @__PURE__ */ s(
14773
+ const Hc = et(({ title: t, token: e }) => /* @__PURE__ */ s(
14765
14774
  "div",
14766
14775
  {
14767
14776
  className: "flex flex-grow h-8 text-white",
@@ -14772,10 +14781,10 @@ const Vc = et(({ title: t, token: e }) => /* @__PURE__ */ s(
14772
14781
  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
14782
  }
14774
14783
  ));
14775
- Vc.displayName = "Title";
14784
+ Hc.displayName = "Title";
14776
14785
  const cn = et(() => /* @__PURE__ */ s("div", { className: "inline-block w-3" }));
14777
14786
  cn.displayName = "Separator";
14778
- const Hc = et(
14787
+ const Bc = et(
14779
14788
  ({
14780
14789
  currentItemIndex: t,
14781
14790
  totalItems: e
@@ -14790,8 +14799,8 @@ const Hc = et(
14790
14799
  ] });
14791
14800
  }
14792
14801
  );
14793
- Hc.displayName = "ItemIndex";
14794
- const Bc = et(
14802
+ Bc.displayName = "ItemIndex";
14803
+ const jc = et(
14795
14804
  ({
14796
14805
  currentItemIndex: t,
14797
14806
  totalItems: e,
@@ -14811,7 +14820,7 @@ const Bc = et(
14811
14820
  }
14812
14821
  ),
14813
14822
  /* @__PURE__ */ s(
14814
- Hc,
14823
+ Bc,
14815
14824
  {
14816
14825
  currentItemIndex: t,
14817
14826
  totalItems: e
@@ -14829,8 +14838,8 @@ const Bc = et(
14829
14838
  ] });
14830
14839
  }
14831
14840
  );
14832
- Bc.displayName = "ItemBrowser";
14833
- const jc = et(
14841
+ jc.displayName = "ItemBrowser";
14842
+ const Uc = et(
14834
14843
  ({
14835
14844
  isMany2Many: t,
14836
14845
  selectedRowKeys: e,
@@ -14842,7 +14851,7 @@ const jc = et(
14842
14851
  St,
14843
14852
  {
14844
14853
  tooltip: o(t ? "unlink" : "delete"),
14845
- icon: t ? /* @__PURE__ */ s(Dd, {}) : /* @__PURE__ */ s(ws, {}),
14854
+ icon: t ? /* @__PURE__ */ s(kd, {}) : /* @__PURE__ */ s(ws, {}),
14846
14855
  onClick: n,
14847
14856
  danger: !t,
14848
14857
  type: t ? "default" : "primary",
@@ -14851,7 +14860,7 @@ const jc = et(
14851
14860
  ) });
14852
14861
  }
14853
14862
  );
14854
- jc.displayName = "DeleteButton";
14863
+ Uc.displayName = "DeleteButton";
14855
14864
  const zs = et(Ov), Dv = {
14856
14865
  form: Ta,
14857
14866
  tree: ba,
@@ -14963,7 +14972,7 @@ const Mv = (t) => {
14963
14972
  l > 0 && (a === "form" ? Ie(() => {
14964
14973
  d(l - 1);
14965
14974
  }) : d(l - 1));
14966
- }, Fe = () => {
14975
+ }, Ae = () => {
14967
14976
  const ne = X.length;
14968
14977
  l < ne - 1 && (a === "form" ? Ie(() => {
14969
14978
  d(l + 1);
@@ -14995,7 +15004,7 @@ const Mv = (t) => {
14995
15004
  }) : ne();
14996
15005
  }, he = () => {
14997
15006
  if (G) {
14998
- $c({
15007
+ Lc({
14999
15008
  t: v,
15000
15009
  onOk: async () => {
15001
15010
  a === "form" ? Qe() : Oe();
@@ -15003,7 +15012,7 @@ const Mv = (t) => {
15003
15012
  });
15004
15013
  return;
15005
15014
  }
15006
- Pc({
15015
+ $c({
15007
15016
  t: v,
15008
15017
  onOk: async () => {
15009
15018
  a === "form" ? Qe() : Oe();
@@ -15209,7 +15218,7 @@ const Mv = (t) => {
15209
15218
  onCreateItem: ge,
15210
15219
  onToggleViewMode: ce,
15211
15220
  onPreviousItem: te,
15212
- onNextItem: Fe,
15221
+ onNextItem: Ae,
15213
15222
  onSearchItem: Ne,
15214
15223
  selectedRowKeys: M,
15215
15224
  showCreateButton: ((Se = o.get("form")) == null ? void 0 : Se.fields) !== void 0,
@@ -15272,7 +15281,7 @@ const Mv = (t) => {
15272
15281
  }
15273
15282
  )
15274
15283
  ] });
15275
- }, Uc = ({
15284
+ }, Wc = ({
15276
15285
  fieldName: t,
15277
15286
  widgetDomain: e
15278
15287
  }) => {
@@ -15378,7 +15387,7 @@ const Mv = (t) => {
15378
15387
  onGetFirstVisibileRowIndex: f,
15379
15388
  onSelectionCheckboxClicked: l
15380
15389
  };
15381
- }, Wc = ({
15390
+ }, qc = ({
15382
15391
  items: t,
15383
15392
  relation: e,
15384
15393
  context: n,
@@ -15451,9 +15460,9 @@ const Mv = (t) => {
15451
15460
  getOriginalItemsWithRestoredItemId: f,
15452
15461
  onFormChanges: u
15453
15462
  };
15454
- }, qc = ({
15463
+ }, Gc = ({
15455
15464
  one2manyItems: t
15456
- }) => jt(() => t.filter((e) => e.operation !== "pendingRemove"), [t]), Ks = Ht(
15465
+ }) => Vt(() => t.filter((e) => e.operation !== "pendingRemove"), [t]), Ks = Bt(
15457
15466
  ({
15458
15467
  formView: t,
15459
15468
  items: e,
@@ -15482,7 +15491,7 @@ const Mv = (t) => {
15482
15491
  values: { ...u, id: p },
15483
15492
  treeValues: { ...u, id: p }
15484
15493
  } : h);
15485
- i(Sf(m));
15494
+ i(Tf(m));
15486
15495
  },
15487
15496
  readOnly: o
15488
15497
  }
@@ -15490,7 +15499,7 @@ const Mv = (t) => {
15490
15499
  }
15491
15500
  );
15492
15501
  Ks.displayName = "One2manyForm";
15493
- const Gc = ({
15502
+ const Yc = ({
15494
15503
  isMany2many: t,
15495
15504
  triggerChange: e,
15496
15505
  items: n,
@@ -15549,13 +15558,13 @@ const Gc = ({
15549
15558
  ]), m = I(async () => c === "form" ? await p() : await u(), [c, p, u]);
15550
15559
  return { showRemoveConfirm: I(() => {
15551
15560
  if (t) {
15552
- $c({
15561
+ Lc({
15553
15562
  t: a,
15554
15563
  onOk: m
15555
15564
  });
15556
15565
  return;
15557
15566
  }
15558
- Pc({
15567
+ $c({
15559
15568
  t: a,
15560
15569
  onOk: m
15561
15570
  });
@@ -15570,7 +15579,7 @@ function Pv({
15570
15579
  o.id && r[o.id] > 0 && (n.push(o), r[o.id] -= 1);
15571
15580
  }), n;
15572
15581
  }
15573
- const Yc = ({
15582
+ const zc = ({
15574
15583
  currentView: t,
15575
15584
  inv_field: e,
15576
15585
  activeId: n,
@@ -15655,7 +15664,7 @@ const Yc = ({
15655
15664
  onFormModalSubmitSucceed: x,
15656
15665
  openItemInFormModal: C
15657
15666
  };
15658
- }, zc = ({
15667
+ }, Kc = ({
15659
15668
  currentView: t,
15660
15669
  showFormChangesDialogIfNeeded: e,
15661
15670
  items: n,
@@ -15713,7 +15722,7 @@ const Yc = ({
15713
15722
  onCloseSearchModal: u,
15714
15723
  onSelectSearchValues: m
15715
15724
  };
15716
- }, Kc = (t) => `columnState-${t.parentViewId}-${t.treeViewId}-${t.one2ManyFieldName}-${t.model}`, sa = 400, $v = ({
15725
+ }, Jc = (t) => `columnState-${t.parentViewId}-${t.treeViewId}-${t.one2ManyFieldName}-${t.model}`, sa = 400, $v = ({
15717
15726
  items: t,
15718
15727
  height: e,
15719
15728
  onRowDoubleClick: n,
@@ -15734,7 +15743,7 @@ const Yc = ({
15734
15743
  treeType: v,
15735
15744
  onChangeTreeType: b
15736
15745
  }) => {
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]), {
15746
+ 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
15747
  columns: q,
15739
15748
  strings: P,
15740
15749
  colorsForResults: $,
@@ -15750,12 +15759,12 @@ const Yc = ({
15750
15759
  } = ks({
15751
15760
  treeOoui: o,
15752
15761
  parentContext: a,
15753
- columnStateKey: Kc({
15762
+ columnStateKey: Jc({
15754
15763
  ...g,
15755
15764
  model: f
15756
15765
  }),
15757
15766
  tableRef: C
15758
- }), { footerComponent: ae } = Hl({
15767
+ }), { footerComponent: ae } = Bl({
15759
15768
  treeOoui: o,
15760
15769
  model: f,
15761
15770
  selectedRowKeys: h,
@@ -15870,7 +15879,7 @@ const Yc = ({
15870
15879
  }, [p, S]), ce = Xt(() => D), te = I(
15871
15880
  () => m == null ? void 0 : m(),
15872
15881
  [m]
15873
- ), Fe = I(() => {
15882
+ ), Ae = I(() => {
15874
15883
  var Se;
15875
15884
  G(), v === "paginated" ? E((Be) => Be + 1) : (Se = C == null ? void 0 : C.current) == null || Se.refresh();
15876
15885
  }, [G, v, C]), Ce = Xt(R), Ie = Xt(
@@ -15938,7 +15947,7 @@ const Yc = ({
15938
15947
  onRowStatus: Ne,
15939
15948
  headerCheckboxState: We,
15940
15949
  onHeaderCheckboxClick: te,
15941
- refresh: Fe,
15950
+ refresh: Ae,
15942
15951
  onSortChange: Me,
15943
15952
  onChangeTreeType: b,
15944
15953
  onFetchChildrenForRecord: je,
@@ -15975,7 +15984,7 @@ const Yc = ({
15975
15984
  );
15976
15985
  }, Lv = ["form", "tree", "graph"], Vv = (t) => {
15977
15986
  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), {
15987
+ 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
15988
  readOnly: g,
15980
15989
  relation: h,
15981
15990
  context: y,
@@ -15985,7 +15994,7 @@ const Yc = ({
15985
15994
  activeId: C,
15986
15995
  getContext: w,
15987
15996
  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({
15997
+ } = 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
15998
  widgetDomain: v,
15990
15999
  fieldName: b
15991
16000
  }), {
@@ -16019,7 +16028,7 @@ const Yc = ({
16019
16028
  onFormChanges: K,
16020
16029
  showFormChangesDialogIfNeeded: B,
16021
16030
  setFormHasChanges: W
16022
- } = Wc({
16031
+ } = qc({
16023
16032
  items: l,
16024
16033
  formView: i.get("form"),
16025
16034
  treeView: i.get("tree"),
@@ -16034,7 +16043,7 @@ const Yc = ({
16034
16043
  onFormModalSubmitSucceed: G,
16035
16044
  createItem: ae,
16036
16045
  openItemInFormModal: X
16037
- } = Yc({
16046
+ } = zc({
16038
16047
  activeId: C,
16039
16048
  inv_field: o.inv_field,
16040
16049
  showFormChangesDialogIfNeeded: B,
@@ -16051,7 +16060,7 @@ const Yc = ({
16051
16060
  onSelectSearchValues: ie,
16052
16061
  onCloseSearchModal: J,
16053
16062
  searchItem: de
16054
- } = zc({
16063
+ } = Kc({
16055
16064
  showFormChangesDialogIfNeeded: B,
16056
16065
  currentView: d,
16057
16066
  triggerChange: $,
@@ -16059,7 +16068,7 @@ const Yc = ({
16059
16068
  views: i,
16060
16069
  context: _,
16061
16070
  relation: h
16062
- }), { showRemoveConfirm: ue } = Gc({
16071
+ }), { showRemoveConfirm: ue } = Yc({
16063
16072
  isMany2many: P,
16064
16073
  items: l,
16065
16074
  triggerChange: $,
@@ -16082,7 +16091,7 @@ const Yc = ({
16082
16091
  u > 0 && (d === "form" ? B(() => {
16083
16092
  p(u - 1);
16084
16093
  }) : p(u - 1));
16085
- }, [d, u, p, B]), Fe = I(() => {
16094
+ }, [d, u, p, B]), Ae = I(() => {
16086
16095
  const Oe = l.length;
16087
16096
  u < Oe - 1 && (d === "form" ? B(() => {
16088
16097
  p(u + 1);
@@ -16121,7 +16130,7 @@ const Yc = ({
16121
16130
  onCreateItem: ae,
16122
16131
  onToggleViewMode: fe,
16123
16132
  onPreviousItem: te,
16124
- onNextItem: Fe,
16133
+ onNextItem: Ae,
16125
16134
  onSearchItem: de,
16126
16135
  selectedRowKeys: M,
16127
16136
  showCreateButton: D,
@@ -16317,7 +16326,7 @@ const Yc = ({
16317
16326
  }
16318
16327
  w.current = t, (V = b == null ? void 0 : b.current) == null || V.refresh(), (N = b == null ? void 0 : b.current) == null || N.unselectAll();
16319
16328
  }, [t]);
16320
- const D = jt(() => t.length, [t]), _ = jt(() => Is(
16329
+ const D = Vt(() => t.length, [t]), _ = Vt(() => Is(
16321
16330
  o,
16322
16331
  {
16323
16332
  ...zn
@@ -16345,8 +16354,8 @@ const Yc = ({
16345
16354
  var N, L, q, P;
16346
16355
  if (x.current[(L = (N = V.node) == null ? void 0 : N.data) == null ? void 0 : L.id])
16347
16356
  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({
16357
+ }, []), { loading: T, getColumnState: M, updateColumnState: O } = Nl({
16358
+ key: Jc({
16350
16359
  ...m,
16351
16360
  model: d
16352
16361
  })
@@ -16397,7 +16406,7 @@ const Yc = ({
16397
16406
  });
16398
16407
  }, Wv = ["form", "tree", "graph"], qv = (t) => {
16399
16408
  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(
16409
+ 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
16410
  wn
16402
16411
  ), {
16403
16412
  readOnly: p,
@@ -16409,7 +16418,7 @@ const Yc = ({
16409
16418
  activeId: b,
16410
16419
  getContext: x,
16411
16420
  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({
16421
+ } = 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
16422
  widgetDomain: h,
16414
16423
  fieldName: y
16415
16424
  }), {
@@ -16448,7 +16457,7 @@ const Yc = ({
16448
16457
  onFormChanges: H,
16449
16458
  showFormChangesDialogIfNeeded: K,
16450
16459
  setFormHasChanges: B
16451
- } = Wc({
16460
+ } = qc({
16452
16461
  items: c,
16453
16462
  formView: i.get("form"),
16454
16463
  treeView: i.get("tree"),
@@ -16463,7 +16472,7 @@ const Yc = ({
16463
16472
  onFormModalSubmitSucceed: me,
16464
16473
  createItem: G,
16465
16474
  openItemInFormModal: ae
16466
- } = Yc({
16475
+ } = zc({
16467
16476
  activeId: b,
16468
16477
  inv_field: o.inv_field,
16469
16478
  showFormChangesDialogIfNeeded: K,
@@ -16480,7 +16489,7 @@ const Yc = ({
16480
16489
  onSelectSearchValues: ee,
16481
16490
  onCloseSearchModal: ie,
16482
16491
  searchItem: J
16483
- } = zc({
16492
+ } = Kc({
16484
16493
  showFormChangesDialogIfNeeded: K,
16485
16494
  currentView: l,
16486
16495
  triggerChange: P,
@@ -16488,7 +16497,7 @@ const Yc = ({
16488
16497
  views: i,
16489
16498
  context: R,
16490
16499
  relation: m
16491
- }), { showRemoveConfirm: de } = Gc({
16500
+ }), { showRemoveConfirm: de } = Yc({
16492
16501
  isMany2many: q,
16493
16502
  items: c,
16494
16503
  triggerChange: P,
@@ -16522,7 +16531,7 @@ const Yc = ({
16522
16531
  c.length,
16523
16532
  u,
16524
16533
  K
16525
- ]), Fe = Q(() => {
16534
+ ]), Ae = Q(() => {
16526
16535
  var ge;
16527
16536
  return ((ge = i.get("form")) == null ? void 0 : ge.fields) !== void 0;
16528
16537
  }, [i]);
@@ -16569,7 +16578,7 @@ const Yc = ({
16569
16578
  ooui: _,
16570
16579
  context: R,
16571
16580
  onRowDoubleClick: fe,
16572
- showPointerCursorInRows: Fe,
16581
+ showPointerCursorInRows: Ae,
16573
16582
  onRowSelectionChange: T,
16574
16583
  relation: m,
16575
16584
  onChangeFirstVisibleRowIndex: M,
@@ -16648,9 +16657,9 @@ const Yc = ({
16648
16657
  var k;
16649
16658
  const { ooui: e } = t, { mode: n, relation: r, views: o, required: i, context: a } = e;
16650
16659
  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(
16660
+ 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
16661
  U.getHandler().getView
16653
- ), [w, A] = Ae(
16662
+ ), [w, A] = Fe(
16654
16663
  U.getHandler().getToolbar
16655
16664
  );
16656
16665
  He(() => {
@@ -16743,7 +16752,7 @@ const Yc = ({
16743
16752
  }
16744
16753
  ) });
16745
16754
  }, Yv = (t) => {
16746
- const { ooui: e, value: n } = t, { treeType: r, setTreeType: o } = Vl(), i = In(
16755
+ const { ooui: e, value: n } = t, { treeType: r, setTreeType: o } = Hl(), i = In(
16747
16756
  mn.FEATURE_ONE2MANY_ENABLE_NEW_TABLE
16748
16757
  );
16749
16758
  if (He(() => {
@@ -16774,7 +16783,7 @@ const Yc = ({
16774
16783
  }, Jv = (t) => {
16775
16784
  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
16785
  le(() => {
16777
- u(Nl(n));
16786
+ u(Pl(n));
16778
16787
  }, [n]);
16779
16788
  const g = (v) => {
16780
16789
  r == null || r(v);
@@ -16799,8 +16808,8 @@ const Yc = ({
16799
16808
  }
16800
16809
  );
16801
16810
  };
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;
16811
+ function Xc(t) {
16812
+ 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
16813
  return /* @__PURE__ */ s(
16805
16814
  "div",
16806
16815
  {
@@ -16880,7 +16889,7 @@ function Zv(t) {
16880
16889
  a.label
16881
16890
  ] }),
16882
16891
  children: /* @__PURE__ */ s(
16883
- Jc,
16892
+ Xc,
16884
16893
  {
16885
16894
  ooui: a,
16886
16895
  showLabel: !1,
@@ -17157,7 +17166,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17157
17166
  }) => {
17158
17167
  const n = [];
17159
17168
  for (const r of Object.keys(t)) {
17160
- const o = t[r], i = Xc(o), a = o.is_function === !0, c = i && !a;
17169
+ const o = t[r], i = Qc(o), a = o.is_function === !0, c = i && !a;
17161
17170
  n.push({
17162
17171
  key: sb({ key: r, parentKey: e }),
17163
17172
  title: o.string,
@@ -17167,7 +17176,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17167
17176
  });
17168
17177
  }
17169
17178
  return n;
17170
- }, Xc = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", sb = ({
17179
+ }, Qc = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", sb = ({
17171
17180
  parentKey: t,
17172
17181
  key: e
17173
17182
  }) => `${t ? t + "/" : ""}${e}`, ds = (t) => t.indexOf("/") === -1 ? t : t.split("/").slice(0, -1).join("/"), us = (t) => {
@@ -17233,7 +17242,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17233
17242
  keys: t,
17234
17243
  fields: e
17235
17244
  }) => t.map((n) => {
17236
- const r = us(n), i = fs(n, e)[r], a = Xc(i), c = i.is_function === !0;
17245
+ const r = us(n), i = fs(n, e)[r], a = Qc(i), c = i.is_function === !0;
17237
17246
  return a && !c ? `${n}/id` : n;
17238
17247
  }), ub = (t) => {
17239
17248
  const e = /* @__PURE__ */ new Map(), n = [];
@@ -17276,7 +17285,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17276
17285
  onClose: n
17277
17286
  });
17278
17287
  return /* @__PURE__ */ s(
17279
- eu,
17288
+ tu,
17280
17289
  {
17281
17290
  visible: e,
17282
17291
  onSucceed: f,
@@ -17294,7 +17303,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17294
17303
  }, mb = (t) => {
17295
17304
  const { ooui: e, showTime: n = !1 } = t, { required: r, readOnly: o = !1, timezone: i } = e;
17296
17305
  return /* @__PURE__ */ s(Ye, { required: r, ...t, children: /* @__PURE__ */ s(
17297
- tu,
17306
+ nu,
17298
17307
  {
17299
17308
  id: e._id,
17300
17309
  required: r,
@@ -17303,12 +17312,12 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17303
17312
  timezone: i
17304
17313
  }
17305
17314
  ) });
17306
- }, Qc = et(mb), pb = (t) => {
17315
+ }, Zc = et(mb), pb = (t) => {
17307
17316
  const { ooui: e } = t;
17308
- return /* @__PURE__ */ s(Qc, { ooui: e });
17317
+ return /* @__PURE__ */ s(Zc, { ooui: e });
17309
17318
  }, hb = (t) => {
17310
17319
  const { ooui: e } = t;
17311
- return /* @__PURE__ */ s(Qc, { ooui: e, showTime: !0 });
17320
+ return /* @__PURE__ */ s(Zc, { ooui: e, showTime: !0 });
17312
17321
  }, gb = (t) => {
17313
17322
  const { ooui: e } = t;
17314
17323
  return /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(yb, { ooui: e }) });
@@ -17358,7 +17367,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17358
17367
  }
17359
17368
  ) }),
17360
17369
  /* @__PURE__ */ s(Ve, { flex: "3", children: /* @__PURE__ */ s(
17361
- Mc,
17370
+ Nc,
17362
17371
  {
17363
17372
  ooui: new wa({
17364
17373
  name: "object_value",
@@ -17380,7 +17389,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17380
17389
  const { ooui: e } = t, { required: n } = e;
17381
17390
  return /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(Cb, { ooui: e }) });
17382
17391
  }, 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) => {
17392
+ 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
17393
  r == null || r(x);
17385
17394
  };
17386
17395
  async function h() {
@@ -17433,7 +17442,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17433
17442
  children: "Select"
17434
17443
  }
17435
17444
  ),
17436
- /* @__PURE__ */ s(Ge, { icon: /* @__PURE__ */ s(Md, {}), disabled: !n, onClick: y, children: p("open") }),
17445
+ /* @__PURE__ */ s(Ge, { icon: /* @__PURE__ */ s(Nd, {}), disabled: !n, onClick: y, children: p("open") }),
17437
17446
  /* @__PURE__ */ s(
17438
17447
  St,
17439
17448
  {
@@ -17477,7 +17486,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17477
17486
  items: n.map((u) => {
17478
17487
  const p = u.link ? ri : ys, m = /* @__PURE__ */ j(Ze, { wrap: !1, align: "middle", gutter: 8, children: [
17479
17488
  /* @__PURE__ */ s(Ve, { style: { textAlign: "center" }, children: (u.datas_fname || u.link) && /* @__PURE__ */ s(
17480
- Vt,
17489
+ Ht,
17481
17490
  {
17482
17491
  title: u.link ? l("openAttachmentLink") : l("download"),
17483
17492
  children: /* @__PURE__ */ s(
@@ -17492,7 +17501,7 @@ const { useToken: eb } = ot, { TextArea: cs } = ht, tb = (t) => {
17492
17501
  )
17493
17502
  }
17494
17503
  ) }),
17495
- /* @__PURE__ */ s(Ve, { style: { textAlign: "center" }, children: /* @__PURE__ */ s(Vt, { title: l("openAttachment"), children: /* @__PURE__ */ s(
17504
+ /* @__PURE__ */ s(Ve, { style: { textAlign: "center" }, children: /* @__PURE__ */ s(Ht, { title: l("openAttachment"), children: /* @__PURE__ */ s(
17496
17505
  yr,
17497
17506
  {
17498
17507
  style: { cursor: "pointer" },
@@ -17648,7 +17657,7 @@ const Fb = () => {
17648
17657
  setCurrentItemIndex: o,
17649
17658
  results: i,
17650
17659
  searchQuery: a
17651
- } = Nt(), [c, l] = Ae(
17660
+ } = Nt(), [c, l] = Fe(
17652
17661
  U.getHandler().searchForTree
17653
17662
  );
17654
17663
  le(() => () => {
@@ -17763,7 +17772,7 @@ function Ab({ toolbar: t }) {
17763
17772
  [u, n]
17764
17773
  ), P = I(() => {
17765
17774
  q(() => _.current.fetchValues());
17766
- }, [q, _]), { actionButtonProps: $, printButtonProps: H, relateButtonProps: K } = Lc({
17775
+ }, [q, _]), { actionButtonProps: $, printButtonProps: H, relateButtonProps: K } = Vc({
17767
17776
  toolbar: t,
17768
17777
  model: b,
17769
17778
  mustDisableButtons: L,
@@ -17891,7 +17900,7 @@ function Ab({ toolbar: t }) {
17891
17900
  /* @__PURE__ */ s(pt, {}),
17892
17901
  /* @__PURE__ */ s(pt, {})
17893
17902
  ] }),
17894
- /* @__PURE__ */ s(Al, { disabled: L || !(V != null && V.create) }),
17903
+ /* @__PURE__ */ s(Il, { disabled: L || !(V != null && V.create) }),
17895
17904
  /* @__PURE__ */ s(
17896
17905
  Rt,
17897
17906
  {
@@ -17917,7 +17926,7 @@ function Ab({ toolbar: t }) {
17917
17926
  }
17918
17927
  ),
17919
17928
  /* @__PURE__ */ s(
17920
- Fl,
17929
+ Al,
17921
17930
  {
17922
17931
  icon: /* @__PURE__ */ s(ws, {}),
17923
17932
  tooltip: n("delete"),
@@ -17963,7 +17972,7 @@ function Ab({ toolbar: t }) {
17963
17972
  ),
17964
17973
  /* @__PURE__ */ s(pt, {}),
17965
17974
  /* @__PURE__ */ s(
17966
- Zc,
17975
+ ed,
17967
17976
  {
17968
17977
  disabled: L || i,
17969
17978
  onPreviousClick: o,
@@ -17989,7 +17998,7 @@ function Ab({ toolbar: t }) {
17989
17998
  /* @__PURE__ */ s(kr, { res_id: m })
17990
17999
  ] }) : null;
17991
18000
  }
17992
- const Ib = et(Ab), Zc = et(
18001
+ const Ib = et(Ab), ed = et(
17993
18002
  ({
17994
18003
  disabled: t,
17995
18004
  onPreviousClick: e,
@@ -18019,7 +18028,7 @@ const Ib = et(Ab), Zc = et(
18019
18028
  ] });
18020
18029
  }
18021
18030
  );
18022
- Zc.displayName = "NavigationButtons";
18031
+ ed.displayName = "NavigationButtons";
18023
18032
  const la = (t, e) => ({
18024
18033
  model: "ir.attachment",
18025
18034
  domain: [
@@ -18028,7 +18037,7 @@ const la = (t, e) => ({
18028
18037
  ],
18029
18038
  values: { selection_associated_object: `${t},${e}` },
18030
18039
  forced_values: { res_model: t, res_id: e }
18031
- }), { useToken: Rb } = ot, ed = (t) => {
18040
+ }), { useToken: Rb } = ot, td = (t) => {
18032
18041
  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
18042
  le(() => {
18034
18043
  c && !m && y(!1), !n && !c && (g(!0), y(!0));
@@ -18087,20 +18096,20 @@ const la = (t, e) => ({
18087
18096
  }, _b = (t) => {
18088
18097
  const { ooui: e } = t, { required: n } = e;
18089
18098
  return /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(
18090
- ed,
18099
+ td,
18091
18100
  {
18092
18101
  ooui: e,
18093
- valueValidator: (r) => r ? gu(r) : !1
18102
+ valueValidator: (r) => r ? yu(r) : !1
18094
18103
  }
18095
18104
  ) });
18096
18105
  }, Eb = (t) => {
18097
18106
  const { ooui: e } = t, { required: n } = e;
18098
18107
  return /* @__PURE__ */ s(Ye, { required: n, ...t, children: e.multi ? /* @__PURE__ */ s(Qm, { readonly: e.readOnly, maxLength: e.size }) : /* @__PURE__ */ s(
18099
- ed,
18108
+ td,
18100
18109
  {
18101
18110
  ooui: e,
18102
18111
  linkPrefix: "mailto:",
18103
- valueValidator: (r) => r ? yu(r, { allow_display_name: !0 }) : !1
18112
+ valueValidator: (r) => r ? vu(r, { allow_display_name: !0 }) : !1
18104
18113
  }
18105
18114
  ) });
18106
18115
  }, Ob = (t) => {
@@ -18200,7 +18209,7 @@ function Db({ refreshGraph: t }) {
18200
18209
  } = pe(Dt);
18201
18210
  return /* @__PURE__ */ j(nt, { wrap: !0, children: [
18202
18211
  /* @__PURE__ */ s(
18203
- Il,
18212
+ Rl,
18204
18213
  {
18205
18214
  icon: /* @__PURE__ */ s(
18206
18215
  qn,
@@ -18285,7 +18294,7 @@ const kb = (t) => {
18285
18294
  le(() => {
18286
18295
  n && P(!0);
18287
18296
  }, [n]);
18288
- const K = jt(
18297
+ const K = Vt(
18289
18298
  () => an(k || [], i),
18290
18299
  [i, k]
18291
18300
  ), B = lt(async () => {
@@ -18332,7 +18341,7 @@ const kb = (t) => {
18332
18341
  le(() => {
18333
18342
  Y && L(!0);
18334
18343
  }, [Y]);
18335
- const { clear: Z, searchFilterLoading: se, searchError: me, offset: G, tableRefreshing: ae } = Fc({
18344
+ const { clear: Z, searchFilterLoading: se, searchError: me, offset: G, tableRefreshing: ae } = Ac({
18336
18345
  model: r,
18337
18346
  setSearchTreeNameSearch: S,
18338
18347
  setSelectedRowItems: y,
@@ -18491,7 +18500,7 @@ function Pb() {
18491
18500
  (o == null ? void 0 : o.write) && /* @__PURE__ */ s(
18492
18501
  Rt,
18493
18502
  {
18494
- icon: /* @__PURE__ */ s(Nd, {}),
18503
+ icon: /* @__PURE__ */ s(Pd, {}),
18495
18504
  tooltip: i("configDashboard"),
18496
18505
  disabled: t,
18497
18506
  loading: !1,
@@ -18601,7 +18610,7 @@ const $b = (t) => {
18601
18610
  id: e.id,
18602
18611
  disabled: !r
18603
18612
  }), x = {
18604
- transform: Du.Transform.toString(y),
18613
+ transform: ku.Transform.toString(y),
18605
18614
  transition: v,
18606
18615
  opacity: b ? 0.5 : 1,
18607
18616
  cursor: "pointer"
@@ -18710,7 +18719,7 @@ const $b = (t) => {
18710
18719
  ]
18711
18720
  }
18712
18721
  ) });
18713
- }, td = et(Bb), { Text: jr } = en, { useToken: jb } = ot, Ub = (t) => {
18722
+ }, nd = et(Bb), { Text: jr } = en, { useToken: jb } = ot, Ub = (t) => {
18714
18723
  const {
18715
18724
  column: e,
18716
18725
  kanbanDef: n,
@@ -18723,7 +18732,7 @@ const $b = (t) => {
18723
18732
  isLoadingAggregates: d = !1,
18724
18733
  onCardClick: f,
18725
18734
  onButtonClick: u
18726
- } = t, { t: p } = xe(), { token: m } = jb(), { setNodeRef: g, isOver: h } = Tu({
18735
+ } = t, { t: p } = xe(), { token: m } = jb(), { setNodeRef: g, isOver: h } = Fu({
18727
18736
  id: e.id
18728
18737
  }), 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
18738
  return /* @__PURE__ */ j(
@@ -18795,12 +18804,12 @@ const $b = (t) => {
18795
18804
  Wa,
18796
18805
  {
18797
18806
  items: y,
18798
- strategy: _u,
18807
+ strategy: Eu,
18799
18808
  disabled: !i,
18800
18809
  children: e.records.map((x) => {
18801
18810
  var C;
18802
18811
  return /* @__PURE__ */ s(
18803
- td,
18812
+ nd,
18804
18813
  {
18805
18814
  color: (C = o == null ? void 0 : o.current) == null ? void 0 : C[x.id],
18806
18815
  record: x,
@@ -18929,7 +18938,7 @@ const $b = (t) => {
18929
18938
  ))
18930
18939
  }
18931
18940
  ),
18932
- /* @__PURE__ */ s(Fu, { children: m ? /* @__PURE__ */ s(
18941
+ /* @__PURE__ */ s(Au, { children: m ? /* @__PURE__ */ s(
18933
18942
  "div",
18934
18943
  {
18935
18944
  style: {
@@ -18938,7 +18947,7 @@ const $b = (t) => {
18938
18947
  transform: "rotate(5deg)"
18939
18948
  },
18940
18949
  children: /* @__PURE__ */ s(
18941
- td,
18950
+ nd,
18942
18951
  {
18943
18952
  record: m,
18944
18953
  kanbanDef: r,
@@ -18966,9 +18975,9 @@ const $b = (t) => {
18966
18975
  le(() => {
18967
18976
  f !== void 0 && f !== S.current && (A.current = !1, S.current = f);
18968
18977
  }, [f]);
18969
- const [R, D] = Ae(
18978
+ const [R, D] = Fe(
18970
18979
  U.getHandler().search
18971
- ), [_, k] = Ae(
18980
+ ), [_, k] = Fe(
18972
18981
  U.getHandler().parseConditions
18973
18982
  );
18974
18983
  le(() => () => {
@@ -19104,9 +19113,9 @@ const $b = (t) => {
19104
19113
  columnIds: i,
19105
19114
  enabled: a = !0
19106
19115
  }) => {
19107
- const [c, l] = F({}), [d, f] = F(!1), [u, p] = Ae(
19116
+ const [c, l] = F({}), [d, f] = F(!1), [u, p] = Fe(
19108
19117
  U.getHandler().readAggregates
19109
- ), m = jt(() => {
19118
+ ), m = Vt(() => {
19110
19119
  if (!(t != null && t.aggregations))
19111
19120
  return;
19112
19121
  const y = t.aggregations;
@@ -19186,7 +19195,7 @@ const $b = (t) => {
19186
19195
  le(() => {
19187
19196
  if (!(!n.arch || !n.fields))
19188
19197
  try {
19189
- const E = new Sd(n.fields);
19198
+ const E = new Td(n.fields);
19190
19199
  E.parse(n.arch), u(E), m(null);
19191
19200
  } catch (E) {
19192
19201
  console.error("Error parsing kanban definition:", E), m(E);
@@ -19293,7 +19302,7 @@ const $b = (t) => {
19293
19302
  }
19294
19303
  );
19295
19304
  }, Jb = et(
19296
- Ht(Kb)
19305
+ Bt(Kb)
19297
19306
  ), Xb = (t) => {
19298
19307
  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
19308
  elementRef: h,
@@ -19385,7 +19394,7 @@ function ew({
19385
19394
  ...o !== void 0 && { limit: o },
19386
19395
  ...i && i > 1 && { currentPage: i },
19387
19396
  order: a
19388
- }, p = El(u), { type: m } = d;
19397
+ }, p = Ol(u), { type: m } = d;
19389
19398
  let g = !!f;
19390
19399
  return m === "form" && (g = !!f && !!r), { shareUrl: p, canShare: g };
19391
19400
  }
@@ -19437,7 +19446,7 @@ function nw(t, e) {
19437
19446
  setCurrentId: fe,
19438
19447
  tabs: ce,
19439
19448
  activeKey: te,
19440
- openAction: Fe,
19449
+ openAction: Ae,
19441
19450
  onRemoveTab: Ce
19442
19451
  } = de || {};
19443
19452
  Tn(
@@ -19636,7 +19645,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
19636
19645
  he(Pe);
19637
19646
  } else {
19638
19647
  const Pe = i.find((Se) => Se[1] === Le);
19639
- Fe({
19648
+ Ae({
19640
19649
  domain: ze,
19641
19650
  context: o,
19642
19651
  model: r,
@@ -19833,8 +19842,8 @@ const rw = ({
19833
19842
  `${v.type}-${v.view_id}`
19834
19843
  );
19835
19844
  }
19836
- })), nd = Ht(nw);
19837
- const ow = Cu(Su), sw = (t) => {
19845
+ })), rd = Bt(nw);
19846
+ const ow = Su(Tu), sw = (t) => {
19838
19847
  const { children: e = [], onPositionItemsChanged: n } = t, r = Zt.Children.map(
19839
19848
  e,
19840
19849
  (o) => {
@@ -19869,9 +19878,9 @@ function iw(t, e) {
19869
19878
  setIsLoading: p,
19870
19879
  openAction: m,
19871
19880
  moveItemsEnabled: g
19872
- } = pe(Js), h = z(), y = z(), [v] = Ae(U.getHandler().getView), [b] = Ae(
19881
+ } = pe(Js), h = z(), y = z(), [v] = Fe(U.getHandler().getView), [b] = Fe(
19873
19882
  U.getHandler().readObjects
19874
- ), [x] = Ae(U.getHandler().update), C = Qt(
19883
+ ), [x] = Fe(U.getHandler().update), C = Qt(
19875
19884
  Ft.FEATURE_READFORVIEW
19876
19885
  );
19877
19886
  le(() => {
@@ -19941,7 +19950,7 @@ function iw(t, e) {
19941
19950
  for (const O of E) {
19942
19951
  const { values: V } = O;
19943
19952
  if (V.action_id && V.action_id.length > 0) {
19944
- const N = parseInt(V.action_id[0], 10), L = yl({
19953
+ const N = parseInt(V.action_id[0], 10), L = vl({
19945
19954
  actionId: N,
19946
19955
  rootContext: r
19947
19956
  }).then((q) => ({ ...O, actionData: q }));
@@ -20034,7 +20043,7 @@ function iw(t, e) {
20034
20043
  );
20035
20044
  } else if ((Z == null ? void 0 : Z.type) === "form")
20036
20045
  G = /* @__PURE__ */ s(
20037
- _c,
20046
+ Ec,
20038
20047
  {
20039
20048
  model: B,
20040
20049
  view_id: K.filter(
@@ -20046,7 +20055,7 @@ function iw(t, e) {
20046
20055
  );
20047
20056
  else if ((Z == null ? void 0 : Z.type) === "tree")
20048
20057
  G = /* @__PURE__ */ s(
20049
- Ec,
20058
+ Oc,
20050
20059
  {
20051
20060
  model: B,
20052
20061
  domain: Y,
@@ -20065,7 +20074,7 @@ function iw(t, e) {
20065
20074
  actionType: fe,
20066
20075
  title: ce,
20067
20076
  model: te
20068
- } = M, Fe = {
20077
+ } = M, Ae = {
20069
20078
  action_id: ue,
20070
20079
  action_type: fe,
20071
20080
  name: ce,
@@ -20074,7 +20083,7 @@ function iw(t, e) {
20074
20083
  view_id: J,
20075
20084
  view_type: de
20076
20085
  };
20077
- m(Fe);
20086
+ m(Ae);
20078
20087
  }
20079
20088
  }
20080
20089
  },
@@ -20083,7 +20092,7 @@ function iw(t, e) {
20083
20092
  else if (Z !== void 0) {
20084
20093
  const ee = Z && Array.isArray(Z.id) ? { ...Z, id: Z.id[0] } : Z;
20085
20094
  G = /* @__PURE__ */ s(
20086
- nd,
20095
+ rd,
20087
20096
  {
20088
20097
  action_id: L,
20089
20098
  action_type: q,
@@ -20125,7 +20134,7 @@ function iw(t, e) {
20125
20134
  };
20126
20135
  }
20127
20136
  return /* @__PURE__ */ s(
20128
- Rc,
20137
+ _c,
20129
20138
  {
20130
20139
  id: N,
20131
20140
  title: $,
@@ -20139,7 +20148,7 @@ function iw(t, e) {
20139
20148
  );
20140
20149
  }) });
20141
20150
  }
20142
- const aw = Ht(iw), lw = (t) => {
20151
+ const aw = Bt(iw), lw = (t) => {
20143
20152
  const { ooui: e } = t;
20144
20153
  return /* @__PURE__ */ s(Ye, { type: "array", ...t, children: /* @__PURE__ */ s(cw, { ooui: e }) });
20145
20154
  }, cw = (t) => {
@@ -20223,7 +20232,7 @@ const aw = Ht(iw), lw = (t) => {
20223
20232
  /* @__PURE__ */ s(Ge, { onClick: A, disabled: i.length === 0, children: "Uncheck all" })
20224
20233
  ] })
20225
20234
  ] }) });
20226
- }, dw = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(rd, {}) }), rd = Ht(
20235
+ }, dw = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(od, {}) }), od = Bt(
20227
20236
  (t, e) => {
20228
20237
  const { value: n = "", onChange: r, ...o } = t, { ooui: i } = o, [a, c] = F(n), l = z(!1);
20229
20238
  le(() => {
@@ -20288,9 +20297,9 @@ const aw = Ht(iw), lw = (t) => {
20288
20297
  overflow: "auto"
20289
20298
  },
20290
20299
  children: /* @__PURE__ */ s(
20291
- vu,
20300
+ bu,
20292
20301
  {
20293
- remarkPlugins: [bu],
20302
+ remarkPlugins: [wu],
20294
20303
  className: "markdown-typography",
20295
20304
  components: {
20296
20305
  input: (f) => f.type === "checkbox" ? /* @__PURE__ */ s(
@@ -20312,7 +20321,7 @@ const aw = Ht(iw), lw = (t) => {
20312
20321
  ) });
20313
20322
  }
20314
20323
  );
20315
- rd.displayName = "MarkdownInput";
20324
+ od.displayName = "MarkdownInput";
20316
20325
  const uw = (t) => {
20317
20326
  const { ooui: e } = t, { required: n } = e;
20318
20327
  return /* @__PURE__ */ s(Ye, { required: n, type: "any", ...t, children: /* @__PURE__ */ s(fw, { ...t }) });
@@ -20327,7 +20336,7 @@ const uw = (t) => {
20327
20336
  return /* @__PURE__ */ s(Ye, { ...t, valuePropName: "checked", children: /* @__PURE__ */ s(pw, { id: n, readOnly: r, required: o }) });
20328
20337
  }, pw = (t) => {
20329
20338
  const { required: e, readOnly: n, ...r } = t;
20330
- return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(gd, { disabled: n, ...r }) });
20339
+ return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(yd, { disabled: n, ...r }) });
20331
20340
  }, hw = (t) => {
20332
20341
  const { ooui: e } = t, { required: n } = e;
20333
20342
  return /* @__PURE__ */ s(Ye, { required: n, type: "any", ...t, children: /* @__PURE__ */ s(gw, { ...t }) });
@@ -20423,7 +20432,7 @@ const uw = (t) => {
20423
20432
  return n;
20424
20433
  }, [o, n]);
20425
20434
  return /* @__PURE__ */ s(
20426
- wu,
20435
+ xu,
20427
20436
  {
20428
20437
  value: f,
20429
20438
  options: {
@@ -20436,7 +20445,7 @@ const uw = (t) => {
20436
20445
  }
20437
20446
  );
20438
20447
  }, { Meta: xw } = rr, { Text: Cw } = en, Sw = ({ email: t, size: e = 40, theme: n = "" }) => {
20439
- const r = `https://www.gravatar.com/avatar/${xu(
20448
+ const r = `https://www.gravatar.com/avatar/${Cu(
20440
20449
  t
20441
20450
  )}?s=${e}&d=${n}`;
20442
20451
  return /* @__PURE__ */ s(pa, { src: r, size: e });
@@ -20499,7 +20508,7 @@ const Fw = (t) => {
20499
20508
  }
20500
20509
  }
20501
20510
  );
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) => {
20511
+ }, 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
20512
  const { ooui: e } = t, n = pe(st);
20504
20513
  let { title: r, text: o, alertType: i, icon: a, buttons: c } = e;
20505
20514
  if (e.fieldType && e.id) {
@@ -20511,7 +20520,7 @@ const Fw = (t) => {
20511
20520
  icon: a = e.icon,
20512
20521
  buttons: c = []
20513
20522
  } = f, c && (c = c.map(
20514
- (u) => new Td({ ...u, readonly: e.readOnly })
20523
+ (u) => new Fd({ ...u, readonly: e.readOnly })
20515
20524
  )), e.buttons && (c = [...e.buttons, ...c])) : console.log(`field value for ${e.id} is not an object`);
20516
20525
  }
20517
20526
  function l(f) {
@@ -20542,7 +20551,7 @@ const Fw = (t) => {
20542
20551
  },
20543
20552
  o
20544
20553
  )) });
20545
- }, kw = Ot(yd)`
20554
+ }, kw = Ot(vd)`
20546
20555
  .slick-dots li button {
20547
20556
  background-color: ${da.colorPrimary};
20548
20557
  }
@@ -20574,7 +20583,7 @@ function Lw() {
20574
20583
  function Vw(t, e) {
20575
20584
  const { children: n } = t, [r, o] = F("welcome"), { t: i } = xe(), { showErrorNotification: a } = xt(), { globalValues: c, rootContext: l } = tn(), d = go(
20576
20585
  Ft.FEATURE_LOGGABLE_ACTIONS
20577
- ), [f, u] = Ae(
20586
+ ), [f, u] = Fe(
20578
20587
  U.getHandler().logAction
20579
20588
  );
20580
20589
  le(() => () => {
@@ -20629,7 +20638,7 @@ function Vw(t, e) {
20629
20638
  model: T.model,
20630
20639
  context: l
20631
20640
  });
20632
- let L = Ol(
20641
+ let L = Dl(
20633
20642
  M == null ? void 0 : M.values
20634
20643
  );
20635
20644
  const q = O || L.active_id || L.id;
@@ -20708,7 +20717,7 @@ function Vw(t, e) {
20708
20717
  action: T,
20709
20718
  context: l
20710
20719
  });
20711
- if (P.type === gl) {
20720
+ if (P.type === yl) {
20712
20721
  a({
20713
20722
  type: "error",
20714
20723
  title: "Error",
@@ -20882,19 +20891,19 @@ function Vw(t, e) {
20882
20891
  limit: ee
20883
20892
  } = K, ie = X === "tree", J = [];
20884
20893
  for (const ce of me) {
20885
- const [te, Fe] = ce;
20894
+ const [te, Ae] = ce;
20886
20895
  if (te)
20887
20896
  J.push(ce);
20888
- else if (Fe === "dashboard")
20897
+ else if (Ae === "dashboard")
20889
20898
  J.push([void 0, "dashboard"]);
20890
20899
  else {
20891
20900
  const { view_id: Ce } = await U.getHandler().getView({
20892
20901
  model: se,
20893
- type: Fe,
20902
+ type: Ae,
20894
20903
  id: te,
20895
20904
  context: { ...l, ...W }
20896
20905
  });
20897
- J.push([Ce, Fe]);
20906
+ J.push([Ce, Ae]);
20898
20907
  }
20899
20908
  }
20900
20909
  let de, ue;
@@ -20999,7 +21008,7 @@ function Vw(t, e) {
20999
21008
  S({
21000
21009
  title: L,
21001
21010
  content: /* @__PURE__ */ s(
21002
- nd,
21011
+ rd,
21003
21012
  {
21004
21013
  action_id: $,
21005
21014
  action_type: H,
@@ -21089,7 +21098,7 @@ function Vw(t, e) {
21089
21098
  }
21090
21099
  );
21091
21100
  }
21092
- const W0 = Ht(Vw), { useToken: Hw } = ot;
21101
+ const W0 = Bt(Vw), { useToken: Hw } = ot;
21093
21102
  function Bw(t) {
21094
21103
  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
21104
  attributes: h,
@@ -21268,8 +21277,8 @@ function q0() {
21268
21277
  distance: 8
21269
21278
  }
21270
21279
  }),
21271
- Zo(Au, {
21272
- coordinateGetter: Eu
21280
+ Zo(Iu, {
21281
+ coordinateGetter: Ou
21273
21282
  })
21274
21283
  ), u = I((v) => {
21275
21284
  if (d(!0), v.activatorEvent && "clientX" in v.activatorEvent) {
@@ -21331,16 +21340,16 @@ function q0() {
21331
21340
  ja,
21332
21341
  {
21333
21342
  sensors: f,
21334
- collisionDetection: Iu,
21343
+ collisionDetection: Ru,
21335
21344
  onDragStart: u,
21336
21345
  onDragEnd: m,
21337
21346
  onDragCancel: p,
21338
- modifiers: [Ru],
21347
+ modifiers: [_u],
21339
21348
  children: /* @__PURE__ */ s(
21340
21349
  Wa,
21341
21350
  {
21342
21351
  items: g,
21343
- strategy: Ou,
21352
+ strategy: Du,
21344
21353
  children: n.map((v) => /* @__PURE__ */ s(
21345
21354
  Bw,
21346
21355
  {
@@ -21414,7 +21423,7 @@ const { useToken: Ww } = ot, Y0 = (t) => {
21414
21423
  }, [D]);
21415
21424
  function _(L) {
21416
21425
  const q = L;
21417
- (q == null ? void 0 : q.action_type) !== gl && b(q);
21426
+ (q == null ? void 0 : q.action_type) !== yl && b(q);
21418
21427
  }
21419
21428
  const k = I(async () => {
21420
21429
  if (!R)
@@ -21522,7 +21531,7 @@ const { useToken: Ww } = ot, Y0 = (t) => {
21522
21531
  );
21523
21532
  return /* @__PURE__ */ j(we, { children: [
21524
21533
  /* @__PURE__ */ s(
21525
- ru,
21534
+ ou,
21526
21535
  {
21527
21536
  ref: y,
21528
21537
  isFavourite: a,
@@ -21531,7 +21540,7 @@ const { useToken: Ww } = ot, Y0 = (t) => {
21531
21540
  placement: "bottomRight",
21532
21541
  header: /* @__PURE__ */ j("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
21533
21542
  /* @__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(
21543
+ /* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(Ht, { title: g("edit_favorites"), children: /* @__PURE__ */ s(
21535
21544
  bs,
21536
21545
  {
21537
21546
  style: { color: h.colorPrimary, cursor: "pointer" },
@@ -21544,7 +21553,7 @@ const { useToken: Ww } = ot, Y0 = (t) => {
21544
21553
  }
21545
21554
  ),
21546
21555
  /* @__PURE__ */ s(
21547
- Dc,
21556
+ kc,
21548
21557
  {
21549
21558
  visible: f,
21550
21559
  initialName: p,
@@ -21560,23 +21569,23 @@ export {
21560
21569
  Bf as ACTION_TYPE_URL,
21561
21570
  Rn as ACTION_TYPE_WINDOW,
21562
21571
  Hf as ACTION_TYPE_WINDOW_CLOSE,
21563
- gl as ACTION_TYPE_WIZARD,
21572
+ yl as ACTION_TYPE_WIZARD,
21564
21573
  Ib as ActionBar,
21565
- nd as ActionView,
21574
+ rd as ActionView,
21566
21575
  $y as ActionViewProvider,
21567
21576
  _w as Alert,
21568
21577
  vw as ArrowStepsField,
21569
21578
  xb as Binary,
21570
- uf as Boolean,
21579
+ ff as Boolean,
21571
21580
  Ts as Button,
21572
- Gu as ButtonGroup,
21581
+ Yu as ButtonGroup,
21573
21582
  iv as Card,
21574
21583
  Dw as Carousel,
21575
21584
  Ka as Char,
21576
21585
  bw as CodeEditor,
21577
21586
  Mw as ColorPicker,
21578
21587
  Iw as CommentsTimelineField,
21579
- hl as ConfigContext,
21588
+ gl as ConfigContext,
21580
21589
  Vf as ConfigContextProvider,
21581
21590
  U as ConnectionProvider,
21582
21591
  Fm as ContentRootProvider,
@@ -21596,11 +21605,11 @@ export {
21596
21605
  dr as Form,
21597
21606
  Mb as FormActionView,
21598
21607
  xn as FormModal,
21599
- Rc as GraphCard,
21608
+ _c as GraphCard,
21600
21609
  Yf as GraphIndicator,
21601
- Jc as Group,
21610
+ Xc as Group,
21602
21611
  Rw as HTMLPreview,
21603
- hf as Image,
21612
+ gf as Image,
21604
21613
  Cr as Integer,
21605
21614
  mo as Label,
21606
21615
  jf as MODEL_ACTIONS,
@@ -21617,7 +21626,7 @@ export {
21617
21626
  W0 as RootView,
21618
21627
  wo as SearchFilter,
21619
21628
  Co as SearchModal,
21620
- Ac as SearchTree,
21629
+ Ic as SearchTree,
21621
21630
  Za as Selection,
21622
21631
  rb as Separator,
21623
21632
  to as Spinner,