@gisce/react-ooui 2.4.4-rc.1 → 2.4.4

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,60 +1,60 @@
1
- var Jo = Object.defineProperty;
2
- var Xo = (e, t, n) => t in e ? Jo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var ar = (e, t, n) => (Xo(e, typeof t != "symbol" ? t + "" : t, n), n);
1
+ var Xo = Object.defineProperty;
2
+ var Qo = (e, t, n) => t in e ? Xo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var ar = (e, t, n) => (Qo(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsxs as k, jsx as r, Fragment as Q } from "react/jsx-runtime";
5
- import nt, { useContext as ne, useState as b, useEffect as pe, useRef as ae, createContext as Qo, forwardRef as yt, useImperativeHandle as wt, useCallback as fe, Fragment as Dr, useMemo as De, memo as kr } from "react";
6
- import { Tooltip as gt, theme as He, Typography as Wt, Form as ct, Row as Oe, Col as ue, Modal as Je, Button as ke, Dropdown as Zo, Menu as lr, Spin as $e, Divider as cn, Space as Ue, Input as it, Select as Tt, Checkbox as Bt, Alert as Qe, Timeline as On, Statistic as ei, Card as Pn, Tag as Er, message as xn, DatePicker as Ln, TimePicker as ti, InputNumber as Mr, Progress as ni, Avatar as Nr, Pagination as ri, Badge as oi, Tabs as Pr, Radio as cr, Switch as ii, Steps as dr, Layout as si } from "antd";
7
- import { Label as Et, Field as _n, Tree as Lr, Reference as ai, Selection as $n, Many2one as $r, Boolean as li, Container as ci, parseContext as xt, Form as Br, Integer as In, SearchFieldTypes as pt, SearchFilter as di, parseContextFields as ui, parseDomainFields as fi, transformDomainForChildWidget as Hr, graphProcessor as Kr, parseGraph as Bn, graphFieldUtils as mi } from "@gisce/ooui";
5
+ import nt, { useContext as ne, useState as b, useEffect as pe, useRef as ae, createContext as Zo, forwardRef as yt, useImperativeHandle as wt, useCallback as fe, Fragment as kr, useMemo as De, memo as Er } from "react";
6
+ import { Tooltip as gt, theme as He, Typography as Wt, Form as ct, Row as Oe, Col as ue, Modal as Je, Button as ke, Dropdown as ei, Menu as lr, Spin as $e, Divider as cn, Space as Ue, Input as it, Select as Tt, Checkbox as Bt, Alert as Qe, Timeline as On, Statistic as ti, Card as Pn, Tag as Mr, message as xn, DatePicker as Ln, TimePicker as ni, InputNumber as Nr, Progress as ri, Avatar as Pr, Pagination as oi, Badge as ii, Tabs as Lr, Radio as cr, Switch as si, Steps as dr, Layout as ai } from "antd";
7
+ import { Label as Et, Field as _n, Tree as $r, Reference as li, Selection as $n, Many2one as Br, Boolean as ci, Container as di, parseContext as xt, Form as Hr, Integer as In, SearchFieldTypes as pt, SearchFilter as ui, parseContextFields as fi, parseDomainFields as mi, transformDomainForChildWidget as Kr, graphProcessor as jr, parseGraph as Bn, graphFieldUtils as hi } from "@gisce/ooui";
8
8
  import * as ur from "@ant-design/icons";
9
- import jr, { QuestionCircleOutlined as Wr, ExclamationCircleOutlined as vt, LoadingOutlined as st, DownOutlined as dn, WarningOutlined as Ur, CloseOutlined as Ut, CheckOutlined as Yt, TranslationOutlined as Yr, FolderOpenOutlined as Hn, DownloadOutlined as Kn, ClearOutlined as jn, StarFilled as hi, StarOutlined as pi, UpOutlined as gi, SearchOutlined as Wn, ThunderboltOutlined as Un, PrinterOutlined as Yn, EnterOutlined as Gr, PlusSquareOutlined as yi, MinusSquareOutlined as wi, FileAddOutlined as un, AlignLeftOutlined as vi, ApiOutlined as bi, DeleteOutlined as Gn, LeftOutlined as qr, RightOutlined as zr, EyeOutlined as Ci, FormOutlined as Ht, TableOutlined as qn, AreaChartOutlined as xi, CalendarOutlined as Si, LinkOutlined as fr, SaveOutlined as Ti, CopyOutlined as zn, InfoCircleOutlined as Jr, ReloadOutlined as fn, EditOutlined as Xr, FilterOutlined as Qr, CloseCircleFilled as Fi, BorderOuterOutlined as Ri, SettingOutlined as Oi, ExportOutlined as _i } from "@ant-design/icons";
9
+ import Wr, { QuestionCircleOutlined as Ur, ExclamationCircleOutlined as vt, LoadingOutlined as st, DownOutlined as dn, WarningOutlined as Yr, CloseOutlined as Ut, CheckOutlined as Yt, TranslationOutlined as Gr, FolderOpenOutlined as Hn, DownloadOutlined as Kn, ClearOutlined as jn, StarFilled as pi, StarOutlined as gi, UpOutlined as yi, SearchOutlined as Wn, ThunderboltOutlined as Un, PrinterOutlined as Yn, EnterOutlined as qr, PlusSquareOutlined as wi, MinusSquareOutlined as vi, FileAddOutlined as un, AlignLeftOutlined as bi, ApiOutlined as Ci, DeleteOutlined as Gn, LeftOutlined as zr, RightOutlined as Jr, EyeOutlined as xi, FormOutlined as Ht, TableOutlined as qn, AreaChartOutlined as Si, CalendarOutlined as Ti, LinkOutlined as fr, SaveOutlined as Fi, CopyOutlined as zn, InfoCircleOutlined as Xr, ReloadOutlined as fn, EditOutlined as Qr, FilterOutlined as Zr, CloseCircleFilled as Ri, BorderOuterOutlined as Oi, SettingOutlined as _i, ExportOutlined as Ii } from "@ant-design/icons";
10
10
  import { Interweave as Jn } from "interweave";
11
- import { useLocale as we, Many2OneSuffix as Ii, Many2OneSuffixModal as mr, FieldSet as Vi, ExportModal as Ai, Dropdown as Zr, DropdownButton as Vt, FormigaConfigProvider as Di, mergeStrings as ki, FavouriteButton as Ei } from "@gisce/react-formiga-components";
11
+ import { useLocale as we, Many2OneSuffix as Vi, Many2OneSuffixModal as mr, FieldSet as Ai, ExportModal as Di, Dropdown as eo, DropdownButton as Vt, FormigaConfigProvider as ki, mergeStrings as Ei, FavouriteButton as Mi } from "@gisce/react-formiga-components";
12
12
  import * as hr from "@tabler/icons-react";
13
- import Mi from "antd/lib/input/TextArea";
13
+ import Ni from "antd/lib/input/TextArea";
14
14
  import Mt from "styled-components";
15
15
  import Xn from "react-measure";
16
- import Ni from "lodash/debounce";
16
+ import Pi from "lodash/debounce";
17
17
  import Vn from "antd/lib/typography/Title";
18
18
  import { nanoid as Qn } from "nanoid";
19
- import { Line as Pi, Column as Li, Pie as $i } from "@ant-design/plots";
19
+ import { Line as Li, Column as $i, Pie as Bi } from "@ant-design/plots";
20
20
  import Ze from "dayjs";
21
- import Bi from "dayjs/plugin/advancedFormat";
22
- import Hi from "dayjs/plugin/customParseFormat";
23
- import Ki from "dayjs/plugin/isoWeek";
24
- import ji from "dayjs/plugin/timezone";
25
- import Wi from "dayjs/plugin/duration";
26
- import Ui from "dayjs/plugin/relativeTime";
27
- import Yi from "dayjs/plugin/weekday";
28
- import Gi from "dayjs/plugin/localeData";
21
+ import Hi from "dayjs/plugin/advancedFormat";
22
+ import Ki from "dayjs/plugin/customParseFormat";
23
+ import ji from "dayjs/plugin/isoWeek";
24
+ import Wi from "dayjs/plugin/timezone";
25
+ import Ui from "dayjs/plugin/duration";
26
+ import Yi from "dayjs/plugin/relativeTime";
27
+ import Gi from "dayjs/plugin/weekday";
28
+ import qi from "dayjs/plugin/localeData";
29
29
  import Ft from "use-deep-compare-effect";
30
- import { Table as qi } from "@gisce/react-formiga-table";
31
- import zi from "antd/es/typography/Link";
32
- import { fileTypeFromBuffer as Ji } from "file-type-buffer-browser";
33
- import { isPresetStatusColor as Xi, isPresetColor as Qi } from "antd/lib/_util/colors";
34
- import eo from "antd/es/alert/ErrorBoundary";
35
- import { GridUi as Zi } from "@gisce/fiber-diagram";
36
- import es from "validator/lib/isURL";
37
- import ts from "validator/lib/isEmail";
38
- import { useHotkeys as ns } from "react-hotkeys-hook";
39
- import rs from "react-markdown";
40
- import os from "remark-gfm";
41
- import is from "@monaco-editor/react";
42
- import ss from "md5";
43
- import { WidthProvider as as, Responsive as ls } from "react-grid-layout";
30
+ import { Table as zi } from "@gisce/react-formiga-table";
31
+ import Ji from "antd/es/typography/Link";
32
+ import { fileTypeFromBuffer as Xi } from "file-type-buffer-browser";
33
+ import { isPresetStatusColor as Qi, isPresetColor as Zi } from "antd/lib/_util/colors";
34
+ import to from "antd/es/alert/ErrorBoundary";
35
+ import { GridUi as es } from "@gisce/fiber-diagram";
36
+ import ts from "validator/lib/isURL";
37
+ import ns from "validator/lib/isEmail";
38
+ import { useHotkeys as rs } from "react-hotkeys-hook";
39
+ import os from "react-markdown";
40
+ import is from "remark-gfm";
41
+ import ss from "@monaco-editor/react";
42
+ import as from "md5";
43
+ import { WidthProvider as ls, Responsive as cs } from "react-grid-layout";
44
44
  import "react-grid-layout/css/styles.css";
45
- const { Text: cs, Title: ds } = Wt, { useToken: us } = He, fs = {
45
+ const { Text: ds, Title: us } = Wt, { useToken: fs } = He, ms = {
46
46
  left: "justify-start",
47
47
  center: "justify-center",
48
48
  right: "justify-end"
49
49
  }, mn = (e) => {
50
- const { ooui: t, align: n, responsiveBehaviour: i } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: d } = t, f = a !== null && o.length > 1 ? o + " :" : o, m = n || (a ? i ? "left" : "right" : "left"), { token: p } = us(), h = l === void 0 ? cs : ds;
50
+ const { ooui: t, align: n, responsiveBehaviour: i } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: d } = t, f = a !== null && o.length > 1 ? o + " :" : o, m = n || (a ? i ? "left" : "right" : "left"), { token: p } = fs(), h = l === void 0 ? ds : us;
51
51
  return /* @__PURE__ */ k(
52
52
  "div",
53
53
  {
54
- className: `flex flex-row items-center pb-1 pt-1 ${fs[m]}`,
54
+ className: `flex flex-row items-center pb-1 pt-1 ${ms[m]}`,
55
55
  children: [
56
56
  s && /* @__PURE__ */ r(gt, { title: s, children: /* @__PURE__ */ r(
57
- Wr,
57
+ Ur,
58
58
  {
59
59
  className: "pr-1 text-xs",
60
60
  style: {
@@ -118,12 +118,12 @@ function Ce({
118
118
  h()
119
119
  ] }))();
120
120
  }
121
- const { confirm: ms } = Je, Gt = ({
121
+ const { confirm: hs } = Je, Gt = ({
122
122
  onOk: e,
123
123
  confirmMessage: t,
124
124
  t: n
125
125
  }) => {
126
- ms({
126
+ hs({
127
127
  title: n("confirmation"),
128
128
  icon: /* @__PURE__ */ r(vt, {}),
129
129
  centered: !0,
@@ -132,7 +132,7 @@ const { confirm: ms } = Je, Gt = ({
132
132
  cancelText: n("cancel"),
133
133
  onOk: e
134
134
  });
135
- }, Be = nt.createContext(null), hs = (e) => {
135
+ }, Be = nt.createContext(null), ps = (e) => {
136
136
  const {
137
137
  children: t,
138
138
  activeId: n,
@@ -265,7 +265,7 @@ const { confirm: ms } = Je, Gt = ({
265
265
  STOCK_UNINDENT: "AlignLeft",
266
266
  STOCK_PREFERENCES: "Setting"
267
267
  }, dt = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), pr.hasOwnProperty(e) ? gr(pr[e], t) : gr(e, t));
268
- function ps(e) {
268
+ function gs(e) {
269
269
  return `${e.split("-").map(
270
270
  (t) => t.replace(
271
271
  /\w\S*/g,
@@ -275,7 +275,7 @@ function ps(e) {
275
275
  }
276
276
  function gr(e, t) {
277
277
  let n = e.charAt(0).toUpperCase() + e.slice(1);
278
- n.indexOf("-") !== -1 && (n = ps(n));
278
+ n.indexOf("-") !== -1 && (n = gs(n));
279
279
  const i = `${n}Outlined`;
280
280
  if (ur[i])
281
281
  return () => nt.createElement(ur[i], {
@@ -290,13 +290,13 @@ function gr(e, t) {
290
290
  size: ((l = t == null ? void 0 : t.style) == null ? void 0 : l.fontSize) || 17
291
291
  });
292
292
  };
293
- return () => nt.createElement(jr, {
293
+ return () => nt.createElement(Wr, {
294
294
  component: s,
295
295
  ...t
296
296
  });
297
297
  }
298
298
  }
299
- const to = (e) => {
299
+ const no = (e) => {
300
300
  const { ooui: t } = e, {
301
301
  id: n,
302
302
  label: i,
@@ -344,7 +344,7 @@ const to = (e) => {
344
344
  children: i
345
345
  }
346
346
  ) });
347
- }, gs = (e) => {
347
+ }, ys = (e) => {
348
348
  const { ooui: t } = e, { defaultButton: n, secondaryButtons: i } = t, {
349
349
  id: o,
350
350
  caption: s,
@@ -384,14 +384,14 @@ const to = (e) => {
384
384
  return null;
385
385
  if (t.buttons.length > 1)
386
386
  return /* @__PURE__ */ r(Ce, { ooui: new _n({ ooui: t }), children: /* @__PURE__ */ k(
387
- Zo.Button,
387
+ ei.Button,
388
388
  {
389
389
  disabled: !a || m,
390
390
  onClick: S,
391
391
  icon: /* @__PURE__ */ r(dn, {}),
392
392
  type: f ? "primary" : void 0,
393
393
  overlay: /* @__PURE__ */ r(
394
- ys,
394
+ ws,
395
395
  {
396
396
  ooui: i,
397
397
  executeButtonAction: h
@@ -404,8 +404,8 @@ const to = (e) => {
404
404
  }
405
405
  ) });
406
406
  if (n)
407
- return /* @__PURE__ */ r(to, { ooui: n });
408
- }, ys = (e) => {
407
+ return /* @__PURE__ */ r(no, { ooui: n });
408
+ }, ws = (e) => {
409
409
  const { t } = we(), { ooui: n, executeButtonAction: i } = e;
410
410
  if (!n)
411
411
  return null;
@@ -458,7 +458,7 @@ const to = (e) => {
458
458
  );
459
459
  });
460
460
  return /* @__PURE__ */ r(lr, { children: o });
461
- }, ws = 0.7;
461
+ }, vs = 0.7;
462
462
  function yr() {
463
463
  const { innerWidth: e, innerHeight: t } = window;
464
464
  return {
@@ -476,7 +476,7 @@ function hn() {
476
476
  }
477
477
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
478
478
  }, []), {
479
- modalWidth: e.width * ws,
479
+ modalWidth: e.width * vs,
480
480
  modalHeight: e.height,
481
481
  width: e.width,
482
482
  height: e.height
@@ -494,7 +494,7 @@ const It = class It {
494
494
  };
495
495
  ar(It, "handler");
496
496
  let E = It;
497
- const no = (e) => {
497
+ const ro = (e) => {
498
498
  let t, n, i;
499
499
  if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
500
500
 
@@ -512,15 +512,15 @@ const no = (e) => {
512
512
  message: t,
513
513
  title: i
514
514
  };
515
- }, { error: vs, warning: bs } = Je, Xe = (e) => {
516
- const { message: t, type: n, title: i } = no(e);
517
- (n === "error" ? vs : bs)({
515
+ }, { error: bs, warning: Cs } = Je, Xe = (e) => {
516
+ const { message: t, type: n, title: i } = ro(e);
517
+ (n === "error" ? bs : Cs)({
518
518
  title: i,
519
- icon: n === "error" ? /* @__PURE__ */ r(vt, {}) : /* @__PURE__ */ r(Ur, {}),
519
+ icon: n === "error" ? /* @__PURE__ */ r(vt, {}) : /* @__PURE__ */ r(Yr, {}),
520
520
  centered: !0,
521
521
  content: t
522
522
  });
523
- }, ro = (e) => {
523
+ }, oo = (e) => {
524
524
  const { visible: t, onCloseModal: n, model: i, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = hn(), { t: d } = we(), [u, f] = b([]), [c, m] = b(!1), [p, h] = b(!1), [y, g] = b({}), w = ae();
525
525
  pe(() => {
526
526
  t ? C() : g({});
@@ -563,7 +563,7 @@ const no = (e) => {
563
563
  return u.map((F, T) => /* @__PURE__ */ k(Oe, { style: { paddingBottom: 20 }, children: [
564
564
  /* @__PURE__ */ r(ue, { flex: "8rem", style: { paddingRight: 10 }, children: F.name }),
565
565
  /* @__PURE__ */ r(ue, { flex: "auto", children: /* @__PURE__ */ r(
566
- Mi,
566
+ Ni,
567
567
  {
568
568
  rows: 4,
569
569
  value: y[F.code] || "",
@@ -644,14 +644,14 @@ function ze(e) {
644
644
  const { tooltip: t, ...n } = e;
645
645
  return /* @__PURE__ */ r(gt, { title: t, children: /* @__PURE__ */ r(ke, { ...n }) });
646
646
  }
647
- const { info: Cs } = Je, ht = (e) => {
648
- Cs({
647
+ const { info: xs } = Je, ht = (e) => {
648
+ xs({
649
649
  title: "",
650
650
  centered: !0,
651
651
  content: e
652
652
  });
653
- }, { useToken: xs } = He, oo = (e) => {
654
- const { ooui: t, isSearchField: n = !1 } = e, { id: i, readOnly: o, isPassword: s, required: a, translatable: l } = t, { token: d } = xs(), u = a && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, f = ne(Be), { elementHasLostFocus: c } = f || {};
653
+ }, { useToken: Ss } = He, io = (e) => {
654
+ const { ooui: t, isSearchField: n = !1 } = e, { id: i, readOnly: o, isPassword: s, required: a, translatable: l } = t, { token: d } = Ss(), u = a && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, f = ne(Be), { elementHasLostFocus: c } = f || {};
655
655
  let m = /* @__PURE__ */ r(
656
656
  it,
657
657
  {
@@ -669,8 +669,8 @@ const { info: Cs } = Je, ht = (e) => {
669
669
  id: i,
670
670
  onBlur: c
671
671
  }
672
- )), l && !o && !n && (m = /* @__PURE__ */ r(Ss, { field: i, requiredStyle: u })), /* @__PURE__ */ r(Ce, { required: a, ...e, children: m });
673
- }, Ss = ({
672
+ )), l && !o && !n && (m = /* @__PURE__ */ r(Ts, { field: i, requiredStyle: u })), /* @__PURE__ */ r(Ce, { required: a, ...e, children: m });
673
+ }, Ts = ({
674
674
  value: e,
675
675
  field: t,
676
676
  requiredStyle: n,
@@ -710,7 +710,7 @@ const { info: Cs } = Je, ht = (e) => {
710
710
  }
711
711
  ),
712
712
  /* @__PURE__ */ r(
713
- ro,
713
+ oo,
714
714
  {
715
715
  id: s,
716
716
  model: a,
@@ -741,7 +741,7 @@ const { info: Cs } = Je, ht = (e) => {
741
741
  ze,
742
742
  {
743
743
  tooltip: m("translate"),
744
- icon: /* @__PURE__ */ r(Yr, {}),
744
+ icon: /* @__PURE__ */ r(Gr, {}),
745
745
  onClick: async () => {
746
746
  d != null && d() ? ht(m("saveBeforeTranslate")) : ht(m("enterTextBeforeTranslate"));
747
747
  },
@@ -749,16 +749,16 @@ const { info: Cs } = Je, ht = (e) => {
749
749
  }
750
750
  ) })
751
751
  ] }) });
752
- }, { defaultAlgorithm: Ts, defaultSeed: Fs } = He, Rs = Ts(Fs), { Option: Os } = Tt, io = (e) => {
752
+ }, { defaultAlgorithm: Fs, defaultSeed: Rs } = He, Os = Fs(Rs), { Option: _s } = Tt, so = (e) => {
753
753
  const { ooui: t } = e, { required: n } = t;
754
- return /* @__PURE__ */ r(Ce, { required: n, type: "any", ...e, children: /* @__PURE__ */ r(so, { ...e }) });
755
- }, so = (e) => {
754
+ return /* @__PURE__ */ r(Ce, { required: n, type: "any", ...e, children: /* @__PURE__ */ r(ao, { ...e }) });
755
+ }, ao = (e) => {
756
756
  const { ooui: t, onChange: n, value: i } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), d = l && l.length && l.map((f) => {
757
757
  const [c, m] = f;
758
- return /* @__PURE__ */ r(Os, { value: c, children: m }, c);
758
+ return /* @__PURE__ */ r(_s, { value: c, children: m }, c);
759
759
  });
760
760
  return /* @__PURE__ */ r(
761
- a && !s ? _s : Tt,
761
+ a && !s ? Is : Tt,
762
762
  {
763
763
  disabled: s,
764
764
  onChange: n,
@@ -769,17 +769,17 @@ const { info: Cs } = Je, ht = (e) => {
769
769
  children: d
770
770
  }
771
771
  );
772
- }, _s = Mt(Tt)`
772
+ }, Is = Mt(Tt)`
773
773
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
774
- background-color: ${Rs.colorPrimaryBg};
774
+ background-color: ${Os.colorPrimaryBg};
775
775
  }
776
- `, { defaultAlgorithm: Is, defaultSeed: Vs } = He, wr = Is(Vs), As = (e) => {
776
+ `, { defaultAlgorithm: Vs, defaultSeed: As } = He, wr = Vs(As), Ds = (e) => {
777
777
  const { ooui: t } = e, { id: n, readOnly: i, required: o } = t;
778
- return /* @__PURE__ */ r(Ce, { ...e, valuePropName: "checked", children: /* @__PURE__ */ r(Ds, { id: n, readOnly: i, required: o }) });
779
- }, Ds = (e) => {
778
+ return /* @__PURE__ */ r(Ce, { ...e, valuePropName: "checked", children: /* @__PURE__ */ r(ks, { id: n, readOnly: i, required: o }) });
779
+ }, ks = (e) => {
780
780
  const { required: t, readOnly: n, ...i } = e;
781
- return /* @__PURE__ */ r("div", { className: "flex flex-row", children: /* @__PURE__ */ r(t && !n ? ks : Bt, { disabled: n, ...i }) });
782
- }, ks = Mt(Bt)`
781
+ return /* @__PURE__ */ r("div", { className: "flex flex-row", children: /* @__PURE__ */ r(t && !n ? Es : Bt, { disabled: n, ...i }) });
782
+ }, Es = Mt(Bt)`
783
783
  .ant-checkbox-inner {
784
784
  background-color: ${wr.colorPrimaryBg};
785
785
  }
@@ -788,12 +788,12 @@ const { info: Cs } = Je, ht = (e) => {
788
788
  background-color: ${wr.colorPrimary};
789
789
  }
790
790
  `;
791
- function Es(e) {
791
+ function Ms(e) {
792
792
  const n = Buffer.from(e, "base64").length / 1e3;
793
793
  return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
794
794
  }
795
795
  async function kt(e) {
796
- const t = await Ji(
796
+ const t = await Xi(
797
797
  Buffer.from(e, "base64")
798
798
  );
799
799
  return t || {
@@ -801,7 +801,7 @@ async function kt(e) {
801
801
  ext: "txt"
802
802
  };
803
803
  }
804
- const ao = (e) => new Promise((t, n) => {
804
+ const lo = (e) => new Promise((t, n) => {
805
805
  const i = new FileReader();
806
806
  i.readAsDataURL(e), i.onload = (o) => t(o.target.result.split(",")[1]), i.onerror = (o) => n(o);
807
807
  });
@@ -812,10 +812,10 @@ function pn(e, t) {
812
812
  const o = new Uint8Array(i), s = new Blob([o], { type: t + ";base64" }), a = URL.createObjectURL(s);
813
813
  window.open(a);
814
814
  }
815
- const Ms = (e) => {
815
+ const Ns = (e) => {
816
816
  const { ooui: t } = e, { required: n, id: i } = t, o = dt(i);
817
- return o ? /* @__PURE__ */ r(o, {}) : /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(Ns, { ooui: t }) });
818
- }, Ns = (e) => {
817
+ return o ? /* @__PURE__ */ r(o, {}) : /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(Ps, { ooui: t }) });
818
+ }, Ps = (e) => {
819
819
  const { ooui: t, value: n, onChange: i } = e, { readOnly: o } = t, s = ae(null), { t: a } = we(), l = (c) => {
820
820
  i == null || i(c);
821
821
  };
@@ -825,7 +825,7 @@ const Ms = (e) => {
825
825
  }
826
826
  async function u(c) {
827
827
  c.stopPropagation(), c.preventDefault();
828
- const m = c.target.files[0], p = await ao(m);
828
+ const m = c.target.files[0], p = await lo(m);
829
829
  l(p);
830
830
  }
831
831
  function f() {
@@ -884,10 +884,10 @@ const Ms = (e) => {
884
884
  )
885
885
  ] }) })
886
886
  ] });
887
- }, Ps = (e) => {
888
- const { ooui: t } = e, { required: n } = t;
889
- return /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(Ls, {}) });
890
887
  }, Ls = (e) => {
888
+ const { ooui: t } = e, { required: n } = t;
889
+ return /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r($s, {}) });
890
+ }, $s = (e) => {
891
891
  const { value: t, onChange: n } = e;
892
892
  if (!t)
893
893
  return null;
@@ -897,7 +897,7 @@ const Ms = (e) => {
897
897
  return console.error(i), null;
898
898
  }
899
899
  return /* @__PURE__ */ r(
900
- Zi,
900
+ es,
901
901
  {
902
902
  inputJson: t,
903
903
  onChange: (i) => {
@@ -906,16 +906,16 @@ const Ms = (e) => {
906
906
  }
907
907
  );
908
908
  }, At = (e) => {
909
- const t = e.arch, n = e.fields, i = new Lr(n);
909
+ const t = e.arch, n = e.fields, i = new $r(n);
910
910
  return i.parse(t), i;
911
911
  };
912
- function $s(e) {
912
+ function Bs(e) {
913
913
  return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
914
914
  }
915
- const Bs = (e, t, n) => e.columns.map((o) => {
915
+ const Hs = (e, t, n) => e.columns.map((o) => {
916
916
  const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
917
917
  let d;
918
- return l ? d = (u) => l({ value: u, key: a, ooui: o, context: n }) : d = (u) => $s(u) ? u : /* @__PURE__ */ k("p", { style: { color: "red" }, children: [
918
+ return l ? d = (u) => l({ value: u, key: a, ooui: o, context: n }) : d = (u) => Bs(u) ? u : /* @__PURE__ */ k("p", { style: { color: "red" }, children: [
919
919
  "Unsupported widget value for a Tree cell:",
920
920
  /* @__PURE__ */ r("pre", { children: /* @__PURE__ */ k("strong", { children: [
921
921
  "Type: ",
@@ -934,28 +934,28 @@ const Bs = (e, t, n) => e.columns.map((o) => {
934
934
  return s === "many2one" && (c = ((p = u[a]) == null ? void 0 : p.value) || "", m = ((h = f[a]) == null ? void 0 : h.value) || ""), c < m ? -1 : c > m ? 1 : 0;
935
935
  }
936
936
  };
937
- }), lo = (e, t) => t.map((i) => {
937
+ }), co = (e, t) => t.map((i) => {
938
938
  const o = {};
939
939
  return Object.keys(i).forEach((s) => {
940
940
  if (s === "id")
941
941
  o[s] = i[s];
942
942
  else {
943
943
  const a = e.findById(s);
944
- a instanceof ai || a instanceof $n ? o[s] = i[s] : a instanceof $r ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
944
+ a instanceof li || a instanceof $n ? o[s] = i[s] : a instanceof Br ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
945
945
  model: a.relation,
946
946
  id: i[s][0],
947
947
  value: i[s][1]
948
- } : a instanceof li ? o[s] = i[s] : a ? o[s] = i[s] === !1 ? "" : i[s] : o[s] = i[s];
948
+ } : a instanceof ci ? o[s] = i[s] : a ? o[s] = i[s] === !1 ? "" : i[s] : o[s] = i[s];
949
949
  }
950
950
  }), o;
951
951
  });
952
952
  function nn(e) {
953
- return co(e, "colors");
953
+ return uo(e, "colors");
954
954
  }
955
955
  function vr(e) {
956
- return co(e, "status");
956
+ return uo(e, "status");
957
957
  }
958
- function co(e, t) {
958
+ function uo(e, t) {
959
959
  if (!e)
960
960
  return;
961
961
  const n = {};
@@ -977,7 +977,7 @@ function Dt({
977
977
  };
978
978
  return e.sort(l);
979
979
  }
980
- function Hs(e) {
980
+ function Ks(e) {
981
981
  for (const t in e)
982
982
  if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
983
983
  return !0;
@@ -1035,10 +1035,10 @@ const Zn = async (e) => {
1035
1035
  }).concat(d),
1036
1036
  m
1037
1037
  ];
1038
- }, Ks = (e) => {
1038
+ }, js = (e) => {
1039
1039
  const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
1040
1040
  return t.length === 0 ? -1 : Math.min(...t) - 1;
1041
- }, js = (e, t) => {
1041
+ }, Ws = (e, t) => {
1042
1042
  const n = {};
1043
1043
  return Object.keys(e).forEach((i) => {
1044
1044
  var o;
@@ -1046,7 +1046,7 @@ const Zn = async (e) => {
1046
1046
  (s) => s.operation !== "pendingRemove"
1047
1047
  ) : n[i] = e[i];
1048
1048
  }), n;
1049
- }, Ws = ({
1049
+ }, Us = ({
1050
1050
  values: e,
1051
1051
  fields: t
1052
1052
  }) => {
@@ -1064,7 +1064,7 @@ const Zn = async (e) => {
1064
1064
  } else
1065
1065
  n[i] = e[i];
1066
1066
  }), n;
1067
- }, Us = (e) => {
1067
+ }, Ys = (e) => {
1068
1068
  const { ooui: t } = e, { relation: n, context: i, views: o } = t, [s, a] = b(!0), [l, d] = b(), [u, f] = b(/* @__PURE__ */ new Map()), c = ne(Be), { getContext: m } = c || {};
1069
1069
  Ft(() => {
1070
1070
  h();
@@ -1084,8 +1084,8 @@ const Zn = async (e) => {
1084
1084
  a(!1);
1085
1085
  }
1086
1086
  };
1087
- return s ? /* @__PURE__ */ r($e, {}) : l ? /* @__PURE__ */ r(Qe, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ r(Ce, { type: "array", ...e, children: /* @__PURE__ */ r(Ys, { ooui: t, views: u }) });
1088
- }, Ys = (e) => {
1087
+ return s ? /* @__PURE__ */ r($e, {}) : l ? /* @__PURE__ */ r(Qe, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ r(Ce, { type: "array", ...e, children: /* @__PURE__ */ r(Gs, { ooui: t, views: u }) });
1088
+ }, Gs = (e) => {
1089
1089
  const { value: t, views: n, ooui: i, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = b(!1), [d, u] = b(), [f, c] = b(!1), [m, p] = b(), { relation: h, context: y, readOnly: g, summaryField: w, titleField: C } = i, x = s.filter((F) => F.values), S = ne(Be), { getContext: R } = S || {};
1090
1090
  Ft(() => {
1091
1091
  D();
@@ -1174,17 +1174,17 @@ const Zn = async (e) => {
1174
1174
  }
1175
1175
  )
1176
1176
  ] });
1177
- }, { useToken: Gs } = He, qs = (e) => {
1177
+ }, { useToken: qs } = He, zs = (e) => {
1178
1178
  const { ooui: t } = e;
1179
- return /* @__PURE__ */ r(Ce, { ooui: t, children: /* @__PURE__ */ r(zs, { ooui: t }) });
1180
- }, zs = (e) => {
1181
- const { token: t } = Gs(), { ooui: n, value: i } = e, o = /* @__PURE__ */ k(Q, { children: [
1179
+ return /* @__PURE__ */ r(Ce, { ooui: t, children: /* @__PURE__ */ r(Js, { ooui: t }) });
1180
+ }, Js = (e) => {
1181
+ const { token: t } = qs(), { ooui: n, value: i } = e, o = /* @__PURE__ */ k(Q, { children: [
1182
1182
  /* @__PURE__ */ k("span", { children: [
1183
1183
  n.label,
1184
1184
  " "
1185
1185
  ] }),
1186
1186
  n.tooltip && /* @__PURE__ */ r(gt, { title: n.tooltip, children: /* @__PURE__ */ r(
1187
- Wr,
1187
+ Ur,
1188
1188
  {
1189
1189
  className: "pr-1 text-xs",
1190
1190
  style: { color: t.colorPrimaryBg }
@@ -1194,7 +1194,7 @@ const Zn = async (e) => {
1194
1194
  let a = i;
1195
1195
  n.selectionValues.size ? a = n.selectionValues.get(i) : Array.isArray(i) && (a = i[1]);
1196
1196
  const l = /* @__PURE__ */ r(
1197
- ei,
1197
+ ti,
1198
1198
  {
1199
1199
  title: o,
1200
1200
  prefix: s && /* @__PURE__ */ r(s, {}),
@@ -1203,7 +1203,7 @@ const Zn = async (e) => {
1203
1203
  }
1204
1204
  );
1205
1205
  return n.card ? /* @__PURE__ */ r(Pn, { children: l }) : l;
1206
- }, Js = (e, t) => {
1206
+ }, Xs = (e, t) => {
1207
1207
  if (!t)
1208
1208
  return e;
1209
1209
  const n = {};
@@ -1217,7 +1217,7 @@ const Zn = async (e) => {
1217
1217
  } else
1218
1218
  n[i] = e[i];
1219
1219
  }), n;
1220
- }, _t = (e, t) => Js(e, t), Sn = ({
1220
+ }, _t = (e, t) => Xs(e, t), Sn = ({
1221
1221
  source: e,
1222
1222
  target: t,
1223
1223
  fields: n
@@ -1233,9 +1233,9 @@ const Zn = async (e) => {
1233
1233
  (c) => c.operation !== "original"
1234
1234
  )) || []).length > 0 && (i[o] = t[o]);
1235
1235
  } else if (Array.isArray(t[o]))
1236
- if (e[o] === void 0)
1237
- i[o] = t[o];
1238
- else if (n[o].type === "many2one")
1236
+ if (n[o].type === "many2one") {
1237
+ if (!Cr(e[o]) && !Cr(t[o]))
1238
+ return;
1239
1239
  if (Array.isArray(e[o])) {
1240
1240
  const d = JSON.stringify(e[o]), u = JSON.stringify(t[o]);
1241
1241
  d !== u && (i[o] = t[o]);
@@ -1243,14 +1243,14 @@ const Zn = async (e) => {
1243
1243
  const d = e[o], [u] = t[o];
1244
1244
  d !== u && (i[o] = t[o]);
1245
1245
  }
1246
- else {
1246
+ } else {
1247
1247
  const d = JSON.stringify(e[o]), u = JSON.stringify(t[o]);
1248
1248
  d !== u && (i[o] = t[o]);
1249
1249
  }
1250
1250
  else
1251
- e[o] !== t[o] && (t[o] === void 0 ? i[o] = null : i[o] = t[o]);
1251
+ e[o] === void 0 && t[o] !== void 0 ? i[o] = t[o] : e[o] !== t[o] && (t[o] === void 0 ? i[o] = null : i[o] = t[o]);
1252
1252
  }), i;
1253
- }, Xs = ({
1253
+ }, Qs = ({
1254
1254
  changedFields: e,
1255
1255
  formOoui: t,
1256
1256
  types: n
@@ -1258,7 +1258,7 @@ const Zn = async (e) => {
1258
1258
  var a;
1259
1259
  const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
1260
1260
  return n.includes(s);
1261
- }).some((o) => o === !0), Qs = ({
1261
+ }).some((o) => o === !0), Zs = ({
1262
1262
  fieldsDomain: e,
1263
1263
  fields: t
1264
1264
  }) => {
@@ -1266,12 +1266,12 @@ const Zn = async (e) => {
1266
1266
  return Object.keys(t).forEach((i) => {
1267
1267
  n[i] = t[i], e[i] && (n[i].domain = e[i]);
1268
1268
  }), n;
1269
- }, Zs = (e) => {
1269
+ }, ea = (e) => {
1270
1270
  const t = {};
1271
1271
  return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
1272
1272
  (n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
1273
1273
  }), t);
1274
- }, ea = ({
1274
+ }, ta = ({
1275
1275
  onChangeFieldActionArgs: e,
1276
1276
  values: t,
1277
1277
  parentValues: n = {}
@@ -1295,7 +1295,7 @@ const Zn = async (e) => {
1295
1295
  } else
1296
1296
  i[o] = !1;
1297
1297
  }), i;
1298
- }, uo = (e) => {
1298
+ }, fo = (e) => {
1299
1299
  const t = {
1300
1300
  primary: [],
1301
1301
  secondary: []
@@ -1332,10 +1332,10 @@ const Nt = ({
1332
1332
  n += ("00" + o.toString(16)).slice(-2);
1333
1333
  }
1334
1334
  return n;
1335
- }, ta = (e, t) => e.replace(
1335
+ }, na = (e, t) => e.replace(
1336
1336
  /\{([^}]+)\}/g,
1337
1337
  (n, i) => t[i] !== void 0 ? t[i] : n
1338
- ), na = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(fo, { ...e }) }), fo = (e) => {
1338
+ ), Cr = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), ra = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(mo, { ...e }) }), mo = (e) => {
1339
1339
  const { ooui: t, value: n } = e;
1340
1340
  let i = n, o = n;
1341
1341
  if (t.selectionValues.size ? i = t.selectionValues.get(n) : Array.isArray(n) && (o = n[0], i = n[1]), !n)
@@ -1344,16 +1344,16 @@ const Nt = ({
1344
1344
  return /* @__PURE__ */ r(er, { color: s, children: i });
1345
1345
  }, er = (e) => {
1346
1346
  let { color: t } = e, n = {};
1347
- return !Xi(e.color) && !Qi(e.color) && (n = {
1347
+ return !Qi(e.color) && !Zi(e.color) && (n = {
1348
1348
  color: t,
1349
1349
  borderColor: t,
1350
1350
  borderStyle: "solid",
1351
1351
  borderWidth: "1px"
1352
- }, t = `${t}20`), /* @__PURE__ */ r(Er, { ...e, style: n, color: t, children: e.children });
1353
- }, ra = (e) => {
1354
- const { ooui: t } = e;
1355
- return /* @__PURE__ */ r(Ce, { type: "array", ...e, children: /* @__PURE__ */ r(oa, { ooui: t }) });
1352
+ }, t = `${t}20`), /* @__PURE__ */ r(Mr, { ...e, style: n, color: t, children: e.children });
1356
1353
  }, oa = (e) => {
1354
+ const { ooui: t } = e;
1355
+ return /* @__PURE__ */ r(Ce, { type: "array", ...e, children: /* @__PURE__ */ r(ia, { ooui: t }) });
1356
+ }, ia = (e) => {
1357
1357
  const { value: t, ooui: n, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((V) => V.operation !== "pendingRemove").map((V) => V.id), [a, l] = b([]), [d, u] = b(), [f, c] = b(!1), { relation: m, context: p, readOnly: h, field: y } = n, g = ne(Be), { getContext: w } = g || {};
1358
1358
  Ft(() => {
1359
1359
  x();
@@ -1433,98 +1433,98 @@ const Nt = ({
1433
1433
  loading: f
1434
1434
  }
1435
1435
  ) }) });
1436
- }, ia = (e) => {
1436
+ }, sa = (e) => {
1437
1437
  switch (e) {
1438
1438
  case "form":
1439
1439
  return zt;
1440
1440
  case "tree":
1441
1441
  return Xt;
1442
1442
  case "notebook":
1443
- return ac;
1443
+ return lc;
1444
1444
  case "group":
1445
- return Oo;
1445
+ return _o;
1446
1446
  case "label":
1447
1447
  return mn;
1448
1448
  case "char":
1449
- return oo;
1449
+ return io;
1450
1450
  case "text":
1451
- return cc;
1451
+ return dc;
1452
1452
  case "button":
1453
- return to;
1453
+ return no;
1454
1454
  case "buttonGroup":
1455
- return gs;
1455
+ return ys;
1456
1456
  case "selection":
1457
- return io;
1457
+ return so;
1458
1458
  case "many2one":
1459
- return _l;
1459
+ return Il;
1460
1460
  case "boolean":
1461
- return As;
1461
+ return Ds;
1462
1462
  case "integer":
1463
1463
  return rn;
1464
1464
  case "float":
1465
- return ho;
1465
+ return po;
1466
1466
  case "progressbar":
1467
- return tl;
1467
+ return nl;
1468
1468
  case "date":
1469
- return Cc;
1470
- case "datetime":
1471
1469
  return xc;
1472
- case "time":
1470
+ case "datetime":
1473
1471
  return Sc;
1472
+ case "time":
1473
+ return Tc;
1474
1474
  case "one2many":
1475
1475
  case "one2many_list":
1476
1476
  case "many2many":
1477
- return nc;
1477
+ return rc;
1478
1478
  case "separator":
1479
- return uc;
1479
+ return fc;
1480
1480
  case "reference":
1481
- return Fc;
1481
+ return Rc;
1482
1482
  case "binary":
1483
- return _c;
1483
+ return Ic;
1484
1484
  case "image":
1485
- return Ms;
1485
+ return Ns;
1486
1486
  case "url":
1487
- return Nc;
1488
- case "email":
1489
1487
  return Pc;
1488
+ case "email":
1489
+ return Lc;
1490
1490
  case "float_time":
1491
- return oc;
1491
+ return ic;
1492
1492
  case "fiber_grid":
1493
- return Ps;
1493
+ return Ls;
1494
1494
  case "timeline":
1495
- return Us;
1495
+ return Ys;
1496
1496
  case "indicator":
1497
- return qs;
1497
+ return zs;
1498
1498
  case "tags":
1499
- return ra;
1499
+ return oa;
1500
1500
  case "tag":
1501
- return na;
1501
+ return ra;
1502
1502
  case "multicheckbox":
1503
- return yd;
1503
+ return wd;
1504
1504
  case "markdown":
1505
- return vd;
1505
+ return bd;
1506
1506
  case "radio":
1507
- return Cd;
1507
+ return xd;
1508
1508
  case "switch":
1509
- return Sd;
1509
+ return Td;
1510
1510
  case "steps":
1511
- return Fd;
1511
+ return Rd;
1512
1512
  case "codeeditor":
1513
- return Od;
1513
+ return _d;
1514
1514
  case "comments_timeline":
1515
- return Ed;
1515
+ return Md;
1516
1516
  default:
1517
1517
  return;
1518
1518
  }
1519
- }, sa = (e) => {
1520
- const { ooui: t } = e, { type: n } = t, i = ia(n);
1519
+ }, aa = (e) => {
1520
+ const { ooui: t } = e, { type: n } = t, i = sa(n);
1521
1521
  return i ? nt.createElement(i, e) : null;
1522
- }, aa = ({
1522
+ }, la = ({
1523
1523
  item: e,
1524
1524
  responsiveBehaviour: t
1525
1525
  }) => ({
1526
1526
  gridColumnStart: "span " + (t ? 1 : e.colspan)
1527
- }), la = ({
1527
+ }), ca = ({
1528
1528
  row: e,
1529
1529
  mustFillWithEmpties: t,
1530
1530
  numberOfColumns: n
@@ -1543,36 +1543,36 @@ const Nt = ({
1543
1543
  i.push(new Et({ string: "" }));
1544
1544
  }
1545
1545
  }), i;
1546
- }, ca = ({
1546
+ }, da = ({
1547
1547
  row: e,
1548
1548
  numberOfColumns: t
1549
- }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), da = (e, t) => {
1550
- const n = e.map((i) => i instanceof Et && i.fieldForLabel || i instanceof ci ? "auto" : "1fr");
1549
+ }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), ua = (e, t) => {
1550
+ const n = e.map((i) => i instanceof Et && i.fieldForLabel || i instanceof di ? "auto" : "1fr");
1551
1551
  if (n.length < t) {
1552
1552
  const i = t - n.length;
1553
1553
  for (let o = 0; o < i; o++)
1554
1554
  n.push("1fr");
1555
1555
  }
1556
1556
  return n.join(" ");
1557
- }, ua = (e, t) => {
1557
+ }, fa = (e, t) => {
1558
1558
  const n = t ? "1fr" : "auto", i = "auto";
1559
1559
  let o = "";
1560
1560
  for (let s = 0; s < e; s++)
1561
1561
  o += s % 2 ? n : i, s + 1 < e && (o += " ");
1562
1562
  return o;
1563
- }, fa = (e) => e.map((n) => n.reduce((i, o) => i + o.colspan, 0)).reduce((n, i) => Math.max(n, i)), An = (e) => {
1563
+ }, ma = (e) => e.map((n) => n.reduce((i, o) => i + o.colspan, 0)).reduce((n, i) => Math.max(n, i)), An = (e) => {
1564
1564
  const { container: t, responsiveBehaviour: n } = e, { rows: i } = t;
1565
1565
  let { columns: o } = t;
1566
- const s = fa(i);
1566
+ const s = ma(i);
1567
1567
  s < o && (o = s);
1568
1568
  let a = !1, l = [];
1569
1569
  const d = i.map((c, m) => {
1570
- const p = c.filter((g) => !g.invisible), h = ca({
1570
+ const p = c.filter((g) => !g.invisible), h = da({
1571
1571
  row: p,
1572
1572
  numberOfColumns: o
1573
1573
  });
1574
1574
  let y = h;
1575
- return (m === 0 || !(c.length === 1 && c.some((g) => g.type === "group"))) && (y = la({
1575
+ return (m === 0 || !(c.length === 1 && c.some((g) => g.type === "group"))) && (y = ca({
1576
1576
  row: h,
1577
1577
  numberOfColumns: o,
1578
1578
  mustFillWithEmpties: n
@@ -1580,17 +1580,17 @@ const Nt = ({
1580
1580
  "div",
1581
1581
  {
1582
1582
  style: {
1583
- ...aa({ item: g, responsiveBehaviour: n }),
1583
+ ...la({ item: g, responsiveBehaviour: n }),
1584
1584
  minWidth: 0
1585
1585
  },
1586
- children: sa({
1586
+ children: aa({
1587
1587
  ooui: g,
1588
1588
  responsiveBehaviour: n
1589
1589
  })
1590
1590
  },
1591
1591
  g.key
1592
1592
  )));
1593
- }), u = i.length === 1 ? da(l, o) : ua(o, a);
1593
+ }), u = i.length === 1 ? ua(l, o) : fa(o, a);
1594
1594
  return /* @__PURE__ */ r("div", { style: {
1595
1595
  display: "grid",
1596
1596
  gridTemplateColumns: n ? "auto" : u,
@@ -1598,12 +1598,12 @@ const Nt = ({
1598
1598
  minHeight: 0,
1599
1599
  minWidth: 0
1600
1600
  }, children: d });
1601
- }, { confirm: ma } = Je, qt = ({
1601
+ }, { confirm: ha } = Je, qt = ({
1602
1602
  onOk: e,
1603
1603
  onCancel: t,
1604
1604
  t: n
1605
1605
  }) => {
1606
- ma({
1606
+ ha({
1607
1607
  title: n("unsavedChanges"),
1608
1608
  icon: /* @__PURE__ */ r(vt, {}),
1609
1609
  centered: !0,
@@ -1613,25 +1613,25 @@ const Nt = ({
1613
1613
  onCancel: t,
1614
1614
  cancelText: n("cancel")
1615
1615
  });
1616
- }, { error: ha } = Je, Cr = (e) => {
1617
- ha({
1616
+ }, { error: pa } = Je, xr = (e) => {
1617
+ pa({
1618
1618
  title: e("formHasErrors"),
1619
1619
  icon: /* @__PURE__ */ r(vt, {}),
1620
1620
  centered: !0,
1621
1621
  content: e("fillRequiredFields")
1622
1622
  });
1623
- }, { warning: pa } = Je, ga = (e, t, n) => {
1624
- pa({
1623
+ }, { warning: ga } = Je, ya = (e, t, n) => {
1624
+ ga({
1625
1625
  title: e,
1626
- icon: /* @__PURE__ */ r(Ur, {}),
1626
+ icon: /* @__PURE__ */ r(Yr, {}),
1627
1627
  centered: !0,
1628
1628
  content: t,
1629
1629
  onOk: n
1630
1630
  });
1631
- }, mo = nt.createContext(null), ya = (e) => {
1631
+ }, ho = nt.createContext(null), wa = (e) => {
1632
1632
  const { children: t, setTitle: n } = e;
1633
1633
  return /* @__PURE__ */ r(
1634
- mo.Provider,
1634
+ ho.Provider,
1635
1635
  {
1636
1636
  value: {
1637
1637
  setTitle: n
@@ -1639,9 +1639,9 @@ const Nt = ({
1639
1639
  children: t
1640
1640
  }
1641
1641
  );
1642
- }, St = 80, rt = Qo(
1642
+ }, St = 80, rt = Zo(
1643
1643
  null
1644
- ), wa = (e) => {
1644
+ ), va = (e) => {
1645
1645
  const {
1646
1646
  children: t,
1647
1647
  currentView: n,
@@ -1751,7 +1751,7 @@ const Nt = ({
1751
1751
  children: t
1752
1752
  }
1753
1753
  );
1754
- }, ut = nt.createContext(null), va = (e) => {
1754
+ }, ut = nt.createContext(null), ba = (e) => {
1755
1755
  const {
1756
1756
  children: t,
1757
1757
  openAction: n,
@@ -1783,11 +1783,11 @@ const Nt = ({
1783
1783
  children: t
1784
1784
  }
1785
1785
  );
1786
- }, Pt = nt.createContext(null), xr = async (e) => {
1786
+ }, Pt = nt.createContext(null), Sr = async (e) => {
1787
1787
  var t;
1788
1788
  for (let n = 0; n < e.length; n++)
1789
1789
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
1790
- }, ba = (e, t) => {
1790
+ }, Ca = (e, t) => {
1791
1791
  const { children: n, globalValues: i = {} } = e, o = ae(), s = ae(), [a, l] = b(!1), d = ne(
1792
1792
  ut
1793
1793
  ), { openAction: u } = d || {}, f = ae([]), { t: c } = we();
@@ -1864,7 +1864,7 @@ const Nt = ({
1864
1864
  return await x({ actionData: D, fields: F, values: T, context: _ });
1865
1865
  if (O === "ir.actions.act_url")
1866
1866
  window.open(
1867
- ta(D.url, { ...T, context: _ }),
1867
+ na(D.url, { ...T, context: _ }),
1868
1868
  "_blank"
1869
1869
  );
1870
1870
  else
@@ -1914,7 +1914,7 @@ const Nt = ({
1914
1914
  context: A
1915
1915
  }), {};
1916
1916
  } else {
1917
- const { initialView: B, views: q } = await Ca({
1917
+ const { initialView: B, views: q } = await xa({
1918
1918
  model: v.res_model,
1919
1919
  context: A,
1920
1920
  view_mode: v.view_mode,
@@ -1958,7 +1958,7 @@ const Nt = ({
1958
1958
  }), p(!1), await new Promise((O) => setTimeout(O, 300)), y({ domain: D, model: F, context: _, formView: T, actionData: v }), p(!0);
1959
1959
  }
1960
1960
  async function V() {
1961
- xr(f.current), f.current = [], p(!1), y({
1961
+ Sr(f.current), f.current = [], p(!1), y({
1962
1962
  domain: void 0,
1963
1963
  model: void 0,
1964
1964
  context: {},
@@ -1997,7 +1997,7 @@ const Nt = ({
1997
1997
  visible: m,
1998
1998
  onSubmitSucceed: V,
1999
1999
  onCancel: () => {
2000
- xr(f.current), f.current = [], p(!1), y({
2000
+ Sr(f.current), f.current = [], p(!1), y({
2001
2001
  domain: void 0,
2002
2002
  model: void 0,
2003
2003
  context: {},
@@ -2015,7 +2015,7 @@ const Nt = ({
2015
2015
  }
2016
2016
  ) });
2017
2017
  };
2018
- async function Ca({
2018
+ async function xa({
2019
2019
  views: e,
2020
2020
  view_mode: t,
2021
2021
  model: n,
@@ -2064,7 +2064,7 @@ async function Ca({
2064
2064
  }
2065
2065
  return { views: s, initialView: a };
2066
2066
  }
2067
- const xa = yt(ba), Sa = ({
2067
+ const Sa = yt(Ca), Ta = ({
2068
2068
  error: e,
2069
2069
  className: t
2070
2070
  }) => {
@@ -2072,7 +2072,7 @@ const xa = yt(ba), Sa = ({
2072
2072
  if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
2073
2073
 
2074
2074
  `) !== -1) {
2075
- const { message: o, type: s, title: a } = no(e);
2075
+ const { message: o, type: s, title: a } = ro(e);
2076
2076
  n = /* @__PURE__ */ r(Jn, { content: `${a}<br />${o}` }), i = s;
2077
2077
  } else
2078
2078
  n = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
@@ -2085,8 +2085,8 @@ const xa = yt(ba), Sa = ({
2085
2085
  banner: !0
2086
2086
  }
2087
2087
  );
2088
- }, Ta = 800;
2089
- function Fa(e, t) {
2088
+ }, Fa = 800;
2089
+ function Ra(e, t) {
2090
2090
  const {
2091
2091
  model: n,
2092
2092
  id: i,
@@ -2110,7 +2110,7 @@ function Fa(e, t) {
2110
2110
  defaultValues: R,
2111
2111
  forcedValues: V = {},
2112
2112
  parentWidth: D
2113
- } = e, { t: F } = we(), [T, _] = b(!1), [v, O] = b(), [A, L] = b(), [G] = ct.useForm(), [B, q] = b(), [N, Z] = b(), ee = ne(mo), [oe, U] = b(), [$, I] = b(!1), M = ae(), K = ae({}), le = ae({}), z = ae(!1), re = ae(!1), ve = ae(!1), ce = (D !== void 0 ? D : oe) < Ta, Te = ne(Be), { activeId: Ee, getPlainValues: Me } = Te || {}, Ne = ne(
2113
+ } = e, { t: F } = we(), [T, _] = b(!1), [v, O] = b(), [A, L] = b(), [G] = ct.useForm(), [B, q] = b(), [N, Z] = b(), ee = ne(ho), [oe, U] = b(), [$, I] = b(!1), M = ae(), K = ae({}), le = ae({}), z = ae(!1), re = ae(!1), ve = ae(!1), ce = (D !== void 0 ? D : oe) < Fa, Te = ne(Be), { activeId: Ee, getPlainValues: Me } = Te || {}, Ne = ne(
2114
2114
  rt
2115
2115
  ), {
2116
2116
  setFormIsSaving: me = void 0,
@@ -2248,10 +2248,10 @@ function Fa(e, t) {
2248
2248
  }
2249
2249
  }, lt = async (P) => {
2250
2250
  let H, J, X, be;
2251
- se == null || se(!0), O(void 0), P != null && P.fields ? (J = P.fields, X = P.arch) : (J = N, X = B), p && (P == null ? void 0 : P.forceRefresh) !== !0 ? H = p : { values: H, defaultGetCalled: be } = await No({
2251
+ se == null || se(!0), O(void 0), P != null && P.fields ? (J = P.fields, X = P.arch) : (J = N, X = B), p && (P == null ? void 0 : P.forceRefresh) !== !0 ? H = p : { values: H, defaultGetCalled: be } = await Po({
2252
2252
  fields: J,
2253
2253
  arch: X
2254
- }), C && (H = { ...Zs(C), ...H }), K.current = _t(H, J), ft({
2254
+ }), C && (H = { ...ea(C), ...H }), K.current = _t(H, J), ft({
2255
2255
  values: H,
2256
2256
  fields: J,
2257
2257
  reset: !0,
@@ -2286,16 +2286,16 @@ function Fa(e, t) {
2286
2286
  reset: J,
2287
2287
  isDefaultGet: X = !1
2288
2288
  }) => {
2289
- const Ge = { ...J ? {} : G.getFieldsValue(!0), ...P }, bn = _t(Ge, H), qo = Object.keys(H).map((Cn) => {
2290
- const zo = bn[Cn] !== void 0 ? bn[Cn] : void 0;
2289
+ const Ge = { ...J ? {} : G.getFieldsValue(!0), ...P }, bn = _t(Ge, H), zo = Object.keys(H).map((Cn) => {
2290
+ const Jo = bn[Cn] !== void 0 ? bn[Cn] : void 0;
2291
2291
  return {
2292
2292
  name: Cn,
2293
2293
  touched: !1,
2294
- value: zo
2294
+ value: Jo
2295
2295
  };
2296
2296
  });
2297
- X || (le.current = bn), G.setFields(qo);
2298
- }, No = async ({
2297
+ X || (le.current = bn), G.setFields(zo);
2298
+ }, Po = async ({
2299
2299
  fields: P,
2300
2300
  arch: H
2301
2301
  }) => {
@@ -2352,7 +2352,7 @@ function Fa(e, t) {
2352
2352
  M.current = X, K.current = J;
2353
2353
  }
2354
2354
  y && await y([ie()]), !g && H && (de == null || de(ie(), Ae(), te()));
2355
- }, Po = async (P) => {
2355
+ }, Lo = async (P) => {
2356
2356
  const { callOnSubmitSucceed: H = !0 } = P || {};
2357
2357
  !g && H && (de == null || de(ie(), Ae(), te()));
2358
2358
  }, Zt = async (P) => {
@@ -2371,10 +2371,10 @@ function Fa(e, t) {
2371
2371
  if (!et() && ie() && J)
2372
2372
  return re.current = !1, Fe == null || Fe(!1), he == null || he(), { succeed: !0, id: ie() };
2373
2373
  if (await Qt())
2374
- return re.current = !1, Cr(F), { succeed: !1, id: ie() };
2374
+ return re.current = !1, xr(F), { succeed: !1, id: ie() };
2375
2375
  _(!0), me == null || me(!0);
2376
2376
  try {
2377
- m === "api" ? await ir(P) : await Po(P), c && (M.current = void 0, ft({ values: {}, fields: N, reset: !0 })), await lt({ forceRefresh: !0 }), H = !0, xn.success(F("savedRegisters"));
2377
+ m === "api" ? await ir(P) : await Lo(P), c && (M.current = void 0, ft({ values: {}, fields: N, reset: !0 })), await lt({ forceRefresh: !0 }), H = !0, xn.success(F("savedRegisters"));
2378
2378
  } catch (X) {
2379
2379
  re.current = !1, _(!1), me == null || me(!1), ye == null || ye(X), xn.error(F("errorWhileSavingForm")), O(X != null && X.message ? X.message : X);
2380
2380
  } finally {
@@ -2388,10 +2388,10 @@ function Fa(e, t) {
2388
2388
  operationInProgress: X = !1
2389
2389
  }) => {
2390
2390
  var Ge;
2391
- const be = new Br(P);
2391
+ const be = new Hr(P);
2392
2392
  be.parse(H, {
2393
2393
  readOnly: f || X,
2394
- values: js(
2394
+ values: Ws(
2395
2395
  {
2396
2396
  ...J,
2397
2397
  ...Se()
@@ -2409,7 +2409,7 @@ function Fa(e, t) {
2409
2409
  target: Ye(N),
2410
2410
  fields: N
2411
2411
  }), J = Object.keys(H);
2412
- if (J.length !== 0 && !(Xs({
2412
+ if (J.length !== 0 && !(Qs({
2413
2413
  changedFields: J,
2414
2414
  formOoui: A,
2415
2415
  types: [
@@ -2425,18 +2425,18 @@ function Fa(e, t) {
2425
2425
  ]
2426
2426
  }) && P !== !0)) {
2427
2427
  const X = _t(G.getFieldsValue(!0), N);
2428
- le.current = X, d == null || d(X), Fe == null || Fe(!0), $o(J);
2428
+ le.current = X, d == null || d(X), Fe == null || Fe(!0), Bo(J);
2429
2429
  }
2430
- }, Lo = Ni(wn, 100), $o = async (P) => {
2430
+ }, $o = Pi(wn, 100), Bo = async (P) => {
2431
2431
  try {
2432
2432
  for (let H = 0; H < P.length; H += 1) {
2433
2433
  const J = P[H];
2434
- await Bo(J);
2434
+ await Ho(J);
2435
2435
  }
2436
2436
  } catch (H) {
2437
2437
  Xe(H);
2438
2438
  }
2439
- }, Bo = async (P) => {
2439
+ }, Ho = async (P) => {
2440
2440
  const H = A == null ? void 0 : A.onChangeFields[P];
2441
2441
  if (!H) {
2442
2442
  $t({
@@ -2446,7 +2446,7 @@ function Fa(e, t) {
2446
2446
  });
2447
2447
  return;
2448
2448
  }
2449
- const J = ea({
2449
+ const J = ta({
2450
2450
  values: {
2451
2451
  ...Ye(N),
2452
2452
  context: {
@@ -2467,7 +2467,7 @@ function Fa(e, t) {
2467
2467
  const be = {
2468
2468
  ...Ye(N),
2469
2469
  ...X.value
2470
- }, Ge = Ws({
2470
+ }, Ge = Us({
2471
2471
  values: be,
2472
2472
  fields: N
2473
2473
  });
@@ -2483,12 +2483,12 @@ function Fa(e, t) {
2483
2483
  }
2484
2484
  if (X.warning && X.warning.title && X.warning.message && !z.current) {
2485
2485
  const { title: be, message: Ge } = X.warning;
2486
- z.current = !0, ga(be, Ge, () => {
2486
+ z.current = !0, ya(be, Ge, () => {
2487
2487
  z.current = !1;
2488
2488
  });
2489
2489
  }
2490
2490
  if (X.domain && Object.keys(X.domain).length > 0) {
2491
- const be = Qs({
2491
+ const be = Zs({
2492
2492
  fieldsDomain: X.domain,
2493
2493
  fields: N
2494
2494
  });
@@ -2499,7 +2499,7 @@ function Fa(e, t) {
2499
2499
  }), Z(be);
2500
2500
  }
2501
2501
  };
2502
- async function Ho({
2502
+ async function Ko({
2503
2503
  action: P,
2504
2504
  context: H
2505
2505
  }) {
@@ -2530,7 +2530,7 @@ function Fa(e, t) {
2530
2530
  } else
2531
2531
  await lt({ forceRefresh: !0 });
2532
2532
  }
2533
- async function Ko({ action: P }) {
2533
+ async function jo({ action: P }) {
2534
2534
  const H = await E.getHandler().executeWorkflow({
2535
2535
  model: n,
2536
2536
  action: P,
@@ -2538,7 +2538,7 @@ function Fa(e, t) {
2538
2538
  });
2539
2539
  H.type && H.type === "ir.actions.act_window_close" ? de == null || de(ie(), Ae(), te()) : await lt({ forceRefresh: !0 });
2540
2540
  }
2541
- async function jo({
2541
+ async function Wo({
2542
2542
  action: P,
2543
2543
  context: H
2544
2544
  }) {
@@ -2568,7 +2568,7 @@ function Fa(e, t) {
2568
2568
  })) || {};
2569
2569
  !S && J && (de == null || de(ie(), Ae(), te()));
2570
2570
  }
2571
- function Wo() {
2571
+ function Uo() {
2572
2572
  wn({ elementHasLostFocus: !0 });
2573
2573
  }
2574
2574
  function vn(P) {
@@ -2579,7 +2579,7 @@ function Fa(e, t) {
2579
2579
  operationInProgress: P
2580
2580
  });
2581
2581
  }
2582
- async function Uo({
2582
+ async function Yo({
2583
2583
  type: P,
2584
2584
  action: H,
2585
2585
  context: J
@@ -2589,20 +2589,20 @@ function Fa(e, t) {
2589
2589
  return;
2590
2590
  }
2591
2591
  if (await Qt()) {
2592
- Cr(F);
2592
+ xr(F);
2593
2593
  return;
2594
2594
  }
2595
2595
  let X = !1;
2596
2596
  try {
2597
2597
  !f && (et() || ie() === void 0) && (X = !0, vn(!0), m === "2many" ? (await ir({ callOnSubmitSucceed: !1 }), ve.current = !0) : await Zt({ callOnSubmitSucceed: !1 }));
2598
2598
  const be = ve.current ? xe() : {}, Ge = { ...J, ...be };
2599
- P === "object" ? await Ho({ action: H, context: Ge }) : P === "workflow" ? await Ko({ action: H }) : P === "action" && await jo({ action: H, context: Ge }), X && vn(!1);
2599
+ P === "object" ? await Ko({ action: H, context: Ge }) : P === "workflow" ? await jo({ action: H }) : P === "action" && await Wo({ action: H, context: Ge }), X && vn(!1);
2600
2600
  } catch (be) {
2601
2601
  X && vn(!1), Xe(be);
2602
2602
  }
2603
2603
  }
2604
- const Yo = () => !A && !v ? /* @__PURE__ */ r($e, {}) : !n && !h || !x ? null : /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r(
2605
- hs,
2604
+ const Go = () => !A && !v ? /* @__PURE__ */ r($e, {}) : !n && !h || !x ? null : /* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r(
2605
+ ps,
2606
2606
  {
2607
2607
  getValues: Ae,
2608
2608
  getPlainValues: Y,
@@ -2612,18 +2612,18 @@ function Fa(e, t) {
2612
2612
  activeModel: n,
2613
2613
  setFieldValue: bt,
2614
2614
  getFieldValue: at,
2615
- executeButtonAction: Uo,
2615
+ executeButtonAction: Yo,
2616
2616
  getContext: Re,
2617
2617
  submitForm: Zt,
2618
2618
  fetchValues: lt,
2619
2619
  formHasChanges: et,
2620
- elementHasLostFocus: Wo,
2620
+ elementHasLostFocus: Uo,
2621
2621
  children: /* @__PURE__ */ r(
2622
2622
  ct,
2623
2623
  {
2624
2624
  form: G,
2625
2625
  onFieldsChange: () => {
2626
- Lo({ elementHasLostFocus: !1 });
2626
+ $o({ elementHasLostFocus: !1 });
2627
2627
  },
2628
2628
  component: !1,
2629
2629
  children: A && /* @__PURE__ */ r(
@@ -2636,7 +2636,7 @@ function Fa(e, t) {
2636
2636
  }
2637
2637
  )
2638
2638
  }
2639
- ) }), Go = () => /* @__PURE__ */ k(Q, { children: [
2639
+ ) }), qo = () => /* @__PURE__ */ k(Q, { children: [
2640
2640
  /* @__PURE__ */ r(cn, {}),
2641
2641
  /* @__PURE__ */ r(Oe, { justify: "end", children: /* @__PURE__ */ k(Ue, { children: [
2642
2642
  /* @__PURE__ */ r(
@@ -2674,14 +2674,14 @@ function Fa(e, t) {
2674
2674
  U((H = P.bounds) == null ? void 0 : H.width);
2675
2675
  },
2676
2676
  children: ({ measureRef: P }) => /* @__PURE__ */ k("div", { className: "pb-2", ref: P, children: [
2677
- v && /* @__PURE__ */ r(Sa, { className: "mt-5 mb-10", error: v }),
2678
- Yo(),
2679
- a && Go()
2677
+ v && /* @__PURE__ */ r(Ta, { className: "mt-5 mb-10", error: v }),
2678
+ Go(),
2679
+ a && qo()
2680
2680
  ] })
2681
2681
  }
2682
2682
  ) : null;
2683
2683
  }
2684
- const zt = yt(Fa), Jt = (e) => {
2684
+ const zt = yt(Ra), Jt = (e) => {
2685
2685
  const {
2686
2686
  visible: t,
2687
2687
  id: n,
@@ -2726,7 +2726,7 @@ const zt = yt(Fa), Jt = (e) => {
2726
2726
  ke,
2727
2727
  {
2728
2728
  type: p ? "primary" : "default",
2729
- icon: p ? /* @__PURE__ */ r(hi, { style: { color: "white" } }) : /* @__PURE__ */ r(pi, {}),
2729
+ icon: p ? /* @__PURE__ */ r(pi, { style: { color: "white" } }) : /* @__PURE__ */ r(gi, {}),
2730
2730
  style: { width: 30 },
2731
2731
  onClick: V
2732
2732
  }
@@ -2735,7 +2735,7 @@ const zt = yt(Fa), Jt = (e) => {
2735
2735
  ] });
2736
2736
  }
2737
2737
  const F = f * 0.95;
2738
- return /* @__PURE__ */ r(ya, { setTitle: m, children: /* @__PURE__ */ r(
2738
+ return /* @__PURE__ */ r(wa, { setTitle: m, children: /* @__PURE__ */ r(
2739
2739
  Je,
2740
2740
  {
2741
2741
  title: a ? D() : c,
@@ -2760,7 +2760,7 @@ const zt = yt(Fa), Jt = (e) => {
2760
2760
  )
2761
2761
  }
2762
2762
  ) });
2763
- }, Ra = (e) => /* @__PURE__ */ r(Ce, { ...e, layout: "vertical", children: /* @__PURE__ */ r(
2763
+ }, Oa = (e) => /* @__PURE__ */ r(Ce, { ...e, layout: "vertical", children: /* @__PURE__ */ r(
2764
2764
  Ln.RangePicker,
2765
2765
  {
2766
2766
  allowEmpty: [!0, !0],
@@ -2774,7 +2774,7 @@ const zt = yt(Fa), Jt = (e) => {
2774
2774
  }) => {
2775
2775
  const o = ae(), s = ae(0);
2776
2776
  return /* @__PURE__ */ r(
2777
- ti,
2777
+ ni,
2778
2778
  {
2779
2779
  ...i,
2780
2780
  ref: o,
@@ -2788,7 +2788,7 @@ const zt = yt(Fa), Jt = (e) => {
2788
2788
  }
2789
2789
  }
2790
2790
  );
2791
- }, Oa = (e) => {
2791
+ }, _a = (e) => {
2792
2792
  const { ooui: t, showLabel: n = !1 } = e, { label: i, id: o } = t, s = [
2793
2793
  new _n({
2794
2794
  name: o + "#date",
@@ -2821,10 +2821,10 @@ const zt = yt(Fa), Jt = (e) => {
2821
2821
  format: "DD/MM/YYYY"
2822
2822
  }
2823
2823
  ) }) }),
2824
- /* @__PURE__ */ r(ue, { children: /* @__PURE__ */ r(Ce, { ...e, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ r(_a, {}) }) })
2824
+ /* @__PURE__ */ r(ue, { children: /* @__PURE__ */ r(Ce, { ...e, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ r(Ia, {}) }) })
2825
2825
  ] })
2826
2826
  ] });
2827
- }, _a = ({
2827
+ }, Ia = ({
2828
2828
  value: e,
2829
2829
  onChange: t
2830
2830
  }) => /* @__PURE__ */ k("div", { style: { marginTop: 5 }, children: [
@@ -2852,10 +2852,10 @@ const zt = yt(Fa), Jt = (e) => {
2852
2852
  }
2853
2853
  }
2854
2854
  )
2855
- ] }), { useToken: Ia } = He, ho = (e) => {
2856
- const { ooui: t } = e, { id: n, decimalDigits: i, readOnly: o, required: s } = t, { token: a } = Ia(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = ne(Be), { elementHasLostFocus: u } = d || {};
2855
+ ] }), { useToken: Va } = He, po = (e) => {
2856
+ const { ooui: t } = e, { id: n, decimalDigits: i, readOnly: o, required: s } = t, { token: a } = Va(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = ne(Be), { elementHasLostFocus: u } = d || {};
2857
2857
  return /* @__PURE__ */ r(Ce, { required: s, type: "number", ...e, children: /* @__PURE__ */ r(
2858
- Mr,
2858
+ Nr,
2859
2859
  {
2860
2860
  disabled: o,
2861
2861
  className: "w-full",
@@ -2868,10 +2868,10 @@ const zt = yt(Fa), Jt = (e) => {
2868
2868
  wheel: !1
2869
2869
  }
2870
2870
  ) });
2871
- }, { useToken: Va } = He, rn = (e) => {
2872
- const { ooui: t, onChange: n } = e, { id: i, readOnly: o, required: s } = t, { token: a } = Va(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = ne(Be), { elementHasLostFocus: u } = d || {};
2871
+ }, { useToken: Aa } = He, rn = (e) => {
2872
+ const { ooui: t, onChange: n } = e, { id: i, readOnly: o, required: s } = t, { token: a } = Aa(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = ne(Be), { elementHasLostFocus: u } = d || {};
2873
2873
  return /* @__PURE__ */ r(Ce, { required: s, type: "number", ...e, children: /* @__PURE__ */ r(
2874
- Mr,
2874
+ Nr,
2875
2875
  {
2876
2876
  id: i,
2877
2877
  className: "w-full ",
@@ -2888,8 +2888,8 @@ const zt = yt(Fa), Jt = (e) => {
2888
2888
  }
2889
2889
  ) });
2890
2890
  };
2891
- function Aa(e) {
2892
- const { ooui: t, showLabel: n } = e, { id: i, label: o, tooltip: s } = t, a = t instanceof In ? rn : ho, l = (d) => /* @__PURE__ */ r(
2891
+ function Da(e) {
2892
+ const { ooui: t, showLabel: n } = e, { id: i, label: o, tooltip: s } = t, a = t instanceof In ? rn : po, l = (d) => /* @__PURE__ */ r(
2893
2893
  a,
2894
2894
  {
2895
2895
  ooui: {
@@ -2921,17 +2921,17 @@ function Aa(e) {
2921
2921
  ] })
2922
2922
  ] });
2923
2923
  }
2924
- const { defaultAlgorithm: Da, defaultSeed: ka } = He, Ea = Da(ka), { Option: Ma } = Tt, Na = (e) => {
2924
+ const { defaultAlgorithm: ka, defaultSeed: Ea } = He, Ma = ka(Ea), { Option: Na } = Tt, Pa = (e) => {
2925
2925
  const { ooui: t } = e, { required: n } = t;
2926
- return /* @__PURE__ */ r(Ce, { required: n, type: "any", ...e, children: /* @__PURE__ */ r(Pa, { ...e }) });
2927
- }, Pa = (e) => {
2926
+ return /* @__PURE__ */ r(Ce, { required: n, type: "any", ...e, children: /* @__PURE__ */ r(La, { ...e }) });
2927
+ }, La = (e) => {
2928
2928
  const { ooui: t, onChange: n, value: i } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), d = l && l.length && l.filter((c) => {
2929
2929
  const [m] = c;
2930
2930
  return i ? !i.includes(m) : !0;
2931
2931
  }).map((c) => {
2932
2932
  const [m, p] = c;
2933
- return /* @__PURE__ */ r(Ma, { value: p, children: p }, m);
2934
- }), u = a && !s ? La : Tt;
2933
+ return /* @__PURE__ */ r(Na, { value: p, children: p }, m);
2934
+ }), u = a && !s ? $a : Tt;
2935
2935
  function f(c) {
2936
2936
  const m = c.map((p) => {
2937
2937
  const h = l.find(([y, g]) => p === g);
@@ -2954,12 +2954,12 @@ const { defaultAlgorithm: Da, defaultSeed: ka } = He, Ea = Da(ka), { Option: Ma
2954
2954
  children: d
2955
2955
  }
2956
2956
  );
2957
- }, La = Mt(Tt)`
2957
+ }, $a = Mt(Tt)`
2958
2958
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
2959
- background-color: ${Ea.colorPrimaryBg};
2959
+ background-color: ${Ma.colorPrimaryBg};
2960
2960
  }
2961
2961
  `;
2962
- function $a(e) {
2962
+ function Ba(e) {
2963
2963
  const { field: t } = e;
2964
2964
  t.readOnly = !1, t.required = !1;
2965
2965
  const { t: n } = we();
@@ -2973,28 +2973,28 @@ function $a(e) {
2973
2973
  ["false", n("false")]
2974
2974
  ]
2975
2975
  });
2976
- return /* @__PURE__ */ r(io, { layout: "vertical", ooui: o, showLabel: !0 });
2976
+ return /* @__PURE__ */ r(so, { layout: "vertical", ooui: o, showLabel: !0 });
2977
2977
  }
2978
2978
  case pt.float:
2979
2979
  case pt.progressbar:
2980
2980
  case pt.float_time:
2981
2981
  case pt.integer:
2982
- return /* @__PURE__ */ r(Aa, { ooui: t, showLabel: !0 });
2982
+ return /* @__PURE__ */ r(Da, { ooui: t, showLabel: !0 });
2983
2983
  case pt.date:
2984
- return /* @__PURE__ */ r(Ra, { ooui: t, layout: "vertical", showLabel: !0 });
2985
- case pt.datetime:
2986
2984
  return /* @__PURE__ */ r(Oa, { ooui: t, layout: "vertical", showLabel: !0 });
2985
+ case pt.datetime:
2986
+ return /* @__PURE__ */ r(_a, { ooui: t, layout: "vertical", showLabel: !0 });
2987
2987
  case pt.selection:
2988
- return /* @__PURE__ */ r(Na, { layout: "vertical", ooui: t, showLabel: !0 });
2988
+ return /* @__PURE__ */ r(Pa, { layout: "vertical", ooui: t, showLabel: !0 });
2989
2989
  default:
2990
- return /* @__PURE__ */ r(oo, { ooui: t, layout: "vertical", showLabel: !0, isSearchField: !0 });
2990
+ return /* @__PURE__ */ r(io, { ooui: t, layout: "vertical", showLabel: !0, isSearchField: !0 });
2991
2991
  }
2992
2992
  }
2993
- function Ba(e) {
2993
+ function Ha(e) {
2994
2994
  const { onAdvancedFilterToggle: t, advancedFilter: n, onClear: i, isSearching: o } = e, { t: s } = we();
2995
2995
  return /* @__PURE__ */ k(Oe, { children: [
2996
2996
  /* @__PURE__ */ r(ue, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ k("a", { className: "text-xs", onClick: t, children: [
2997
- n ? /* @__PURE__ */ r(gi, { className: "pr-1" }) : /* @__PURE__ */ r(dn, { className: "pr-1" }),
2997
+ n ? /* @__PURE__ */ r(yi, { className: "pr-1" }) : /* @__PURE__ */ r(dn, { className: "pr-1" }),
2998
2998
  s(n ? "simple_search" : "advanced_search")
2999
2999
  ] }) }),
3000
3000
  /* @__PURE__ */ k(ue, { span: 12, className: "text-right pb-2", children: [
@@ -3013,7 +3013,7 @@ function Ba(e) {
3013
3013
  ] })
3014
3014
  ] });
3015
3015
  }
3016
- function Ha(e) {
3016
+ function Ka(e) {
3017
3017
  const { onLimitChange: t } = e, { t: n } = we(), i = new In({ name: "limit" }), o = new In({ name: "offset" });
3018
3018
  return /* @__PURE__ */ k("div", { className: "pl-2 pt-2", children: [
3019
3019
  /* @__PURE__ */ r(Oe, { children: n("parameters") }, "count_params"),
@@ -3033,15 +3033,15 @@ function Ha(e) {
3033
3033
  ] })
3034
3034
  ] });
3035
3035
  }
3036
- const Sr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Ka = (e, t) => {
3037
- const n = qa(e), i = Ya(n), o = Ga(
3036
+ const Tr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, ja = (e, t) => {
3037
+ const n = za(e), i = Ga(n), o = qa(
3038
3038
  i,
3039
3039
  t
3040
3040
  );
3041
3041
  return [
3042
- ...Object.keys(o).map((l) => ja(l, o[l], t))
3042
+ ...Object.keys(o).map((l) => Wa(l, o[l], t))
3043
3043
  ].reduce((l, d) => Array.isArray(d[0]) ? l.concat(d) : [...l, d], []);
3044
- }, ja = (e, t, n) => {
3044
+ }, Wa = (e, t, n) => {
3045
3045
  var s;
3046
3046
  const i = e.split("#")[0], o = (s = n.findById(i)) == null ? void 0 : s.type;
3047
3047
  if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
@@ -3060,17 +3060,17 @@ const Sr = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
3060
3060
  e,
3061
3061
  "in",
3062
3062
  t.map(
3063
- (a) => Sr(a)
3063
+ (a) => Tr(a)
3064
3064
  )
3065
- ] : [e, "=", Sr(t)];
3066
- }, Wa = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Ua = (e) => {
3065
+ ] : [e, "=", Tr(t)];
3066
+ }, Ua = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Ya = (e) => {
3067
3067
  const t = { ...e };
3068
3068
  return Object.keys(t).forEach(
3069
3069
  (n) => (n.indexOf("#time") !== -1 || n.indexOf("#date") !== -1) && delete t[n]
3070
3070
  ), t;
3071
- }, Ya = (e) => {
3072
- const t = { ...Ua(e) };
3073
- return Wa(e).forEach((i) => {
3071
+ }, Ga = (e) => {
3072
+ const t = { ...Ya(e) };
3073
+ return Ua(e).forEach((i) => {
3074
3074
  const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
3075
3075
  let d, u;
3076
3076
  if (o[0] !== null && (d = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
@@ -3083,7 +3083,7 @@ const Sr = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
3083
3083
  }
3084
3084
  t[s + "#datetime"] = [d, u];
3085
3085
  }), t;
3086
- }, Ga = (e, t) => {
3086
+ }, qa = (e, t) => {
3087
3087
  const n = Object.keys(e).filter((o) => {
3088
3088
  const s = t.findById(o);
3089
3089
  return s && s.type === "date";
@@ -3091,23 +3091,23 @@ const Sr = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
3091
3091
  return n.forEach((o) => {
3092
3092
  delete i[o], e[o][0] !== null && (i[o + "#from"] = e[o][0]), e[o][1] !== null && (i[o + "#to"] = e[o][1]);
3093
3093
  }), i;
3094
- }, qa = (e) => {
3094
+ }, za = (e) => {
3095
3095
  const t = { ...e };
3096
3096
  return Object.keys(t).forEach(
3097
3097
  (n) => (t[n] === void 0 || t[n] === null || t[n] === "") && delete t[n]
3098
3098
  ), t;
3099
- }, za = (e) => {
3099
+ }, Ja = (e) => {
3100
3100
  const t = {};
3101
3101
  return e.forEach((n) => {
3102
3102
  Array.isArray(n) && n[0] ? t[n[0]] = !0 : t[n] = !0;
3103
3103
  }), Object.keys(t);
3104
3104
  }, jt = (e, t) => {
3105
- const n = [...e], i = za(e);
3105
+ const n = [...e], i = Ja(e);
3106
3106
  return t.forEach((o) => {
3107
3107
  Array.isArray(o) && o[0] ? i.includes(o[0]) || n.push(o) : i.includes(o) || n.push(o);
3108
3108
  }), n;
3109
- }, { useToken: Ja } = He;
3110
- function po(e) {
3109
+ }, { useToken: Xa } = He;
3110
+ function go(e) {
3111
3111
  const {
3112
3112
  fields: t,
3113
3113
  searchFields: n = { primary: [], secondary: [] },
@@ -3122,7 +3122,7 @@ function po(e) {
3122
3122
  searchError: c,
3123
3123
  searchValues: m,
3124
3124
  showLimitOptions: p = !0
3125
- } = e, [h, y] = b(), [g, w] = b(), [C, x] = b(!1), S = ae(), { token: R } = Ja(), [V] = ct.useForm();
3125
+ } = e, [h, y] = b(), [g, w] = b(), [C, x] = b(!1), S = ae(), { token: R } = Xa(), [V] = ct.useForm();
3126
3126
  pe(() => {
3127
3127
  V.setFieldsValue(m);
3128
3128
  }, [m]);
@@ -3130,16 +3130,16 @@ function po(e) {
3130
3130
  if (!g)
3131
3131
  return;
3132
3132
  const _ = C ? g : h, v = _ == null ? void 0 : _.rows;
3133
- return v == null ? void 0 : v.map((O, A) => /* @__PURE__ */ r(Oe, { children: O.map((L, G) => /* @__PURE__ */ r(ue, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ r($a, { field: L }) }, G)) }, A));
3133
+ return v == null ? void 0 : v.map((O, A) => /* @__PURE__ */ r(Oe, { children: O.map((L, G) => /* @__PURE__ */ r(ue, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ r(Ba, { field: L }) }, G)) }, A));
3134
3134
  };
3135
3135
  Ft(() => {
3136
- x(!1), S.current = new di(n, t), S.current.parse(), y(S.current._simpleSearchContainer), w(S.current._advancedSearchContainer);
3136
+ x(!1), S.current = new ui(n, t), S.current.parse(), y(S.current._simpleSearchContainer), w(S.current._advancedSearchContainer);
3137
3137
  }, [t, n]);
3138
3138
  const F = D(), T = (_) => {
3139
3139
  var L;
3140
3140
  const { limit: v, offset: O } = _;
3141
3141
  delete _.offset, delete _.limit;
3142
- const A = Ka(
3142
+ const A = ja(
3143
3143
  _,
3144
3144
  (L = S.current) == null ? void 0 : L._advancedSearchContainer
3145
3145
  );
@@ -3164,9 +3164,9 @@ function po(e) {
3164
3164
  initialValues: { offset: a, limit: l },
3165
3165
  children: [
3166
3166
  F,
3167
- C && p && /* @__PURE__ */ r(Ha, { onLimitChange: d }),
3167
+ C && p && /* @__PURE__ */ r(Ka, { onLimitChange: d }),
3168
3168
  /* @__PURE__ */ r(
3169
- Ba,
3169
+ Ha,
3170
3170
  {
3171
3171
  advancedFilter: C,
3172
3172
  onAdvancedFilterToggle: () => {
@@ -3195,23 +3195,23 @@ function po(e) {
3195
3195
  }
3196
3196
  );
3197
3197
  }
3198
- const Tr = (e, t = "14px -apple-system") => {
3198
+ const Fr = (e, t = "14px -apple-system") => {
3199
3199
  const i = document.createElement("canvas").getContext("2d");
3200
3200
  i.font = t;
3201
3201
  const o = i.measureText(e);
3202
3202
  return Math.round((o.width + 80) * 1.5);
3203
- }, Xa = (e, t, n = 500) => {
3203
+ }, Qa = (e, t, n = 500) => {
3204
3204
  if (e.length === 0)
3205
3205
  return { columns: e };
3206
3206
  const i = e.map(
3207
3207
  (s) => Object.assign(s, {
3208
- width: Tr(s.title)
3208
+ width: Fr(s.title)
3209
3209
  })
3210
3210
  );
3211
3211
  t.map((s) => {
3212
3212
  i.map((a, l) => {
3213
3213
  const d = a.width, u = s[a.key] || "";
3214
- let f = Tr(u);
3214
+ let f = Fr(u);
3215
3215
  f < d && (f = d), f > n && (f = n), i[l].width = f;
3216
3216
  });
3217
3217
  });
@@ -3221,11 +3221,11 @@ const Tr = (e, t = "14px -apple-system") => {
3221
3221
  source: t,
3222
3222
  tableWidth: o
3223
3223
  };
3224
- }, Qa = Mt.div`
3224
+ }, Za = Mt.div`
3225
3225
  display: flex;
3226
3226
  align-items: center;
3227
3227
  justify-content: center;
3228
- `, Za = ({
3228
+ `, el = ({
3229
3229
  numberOfVisibleSelectedRows: e,
3230
3230
  totalRecords: t,
3231
3231
  numberOfTotalRows: n,
@@ -3246,7 +3246,7 @@ const Tr = (e, t = "14px -apple-system") => {
3246
3246
  "{numberOfSelectedRows}",
3247
3247
  e.toString()
3248
3248
  ) + " ",
3249
- s ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ r(zi, { onClick: u, style: { fontWeight: 600 }, children: d.selectAllRecords.replace(
3249
+ s ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ r(Ji, { onClick: u, style: { fontWeight: 600 }, children: d.selectAllRecords.replace(
3250
3250
  "{totalRecords}",
3251
3251
  t.toString()
3252
3252
  ) })
@@ -3254,9 +3254,9 @@ const Tr = (e, t = "14px -apple-system") => {
3254
3254
  "{totalRecords}",
3255
3255
  o.toString()
3256
3256
  ) + " " });
3257
- return /* @__PURE__ */ r(Qa, { children: o > n ? c : f });
3257
+ return /* @__PURE__ */ r(Za, { children: o > n ? c : f });
3258
3258
  };
3259
- function el(e) {
3259
+ function tl(e) {
3260
3260
  if (e)
3261
3261
  try {
3262
3262
  if (e.includes(":")) {
@@ -3270,7 +3270,7 @@ function el(e) {
3270
3270
  return 0;
3271
3271
  }
3272
3272
  }
3273
- function go(e) {
3273
+ function yo(e) {
3274
3274
  if (e === void 0)
3275
3275
  return;
3276
3276
  let t, n = Math.floor(Math.abs(e)), i = Math.round(Math.abs(e) % 1 * 100) / 100;
@@ -3286,17 +3286,17 @@ function go(e) {
3286
3286
  });
3287
3287
  return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
3288
3288
  }
3289
- const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo, {}) }), yo = ({ value: e }) => {
3289
+ const nl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(wo, {}) }), wo = ({ value: e }) => {
3290
3290
  const t = `${(e || 0).toLocaleString("en-US", {
3291
3291
  minimumIntegerDigits: 1,
3292
3292
  maximumFractionDigits: 4,
3293
3293
  useGrouping: !1
3294
3294
  })}%`;
3295
3295
  return /* @__PURE__ */ k("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
3296
- /* @__PURE__ */ r(nl, { percent: e }),
3296
+ /* @__PURE__ */ r(rl, { percent: e }),
3297
3297
  /* @__PURE__ */ r("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
3298
3298
  ] });
3299
- }, nl = Mt(ni)`
3299
+ }, rl = Mt(ri)`
3300
3300
  .ant-progress-outer {
3301
3301
  margin-right: 0px;
3302
3302
  padding-right: 0px;
@@ -3304,7 +3304,7 @@ const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
3304
3304
  .ant-progress-text {
3305
3305
  display: none;
3306
3306
  }
3307
- `, rl = ({
3307
+ `, ol = ({
3308
3308
  onRetrieveData: e,
3309
3309
  onItemClick: t,
3310
3310
  onOpenChange: n
@@ -3339,14 +3339,14 @@ const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
3339
3339
  },
3340
3340
  {
3341
3341
  label: l("related"),
3342
- icon: /* @__PURE__ */ r(Gr, {}),
3342
+ icon: /* @__PURE__ */ r(qr, {}),
3343
3343
  items: m
3344
3344
  }
3345
3345
  ];
3346
3346
  }, [l, e]);
3347
- return /* @__PURE__ */ k(Dr, { children: [
3347
+ return /* @__PURE__ */ k(kr, { children: [
3348
3348
  /* @__PURE__ */ r(
3349
- Ii,
3349
+ Vi,
3350
3350
  {
3351
3351
  onRetrieveData: f,
3352
3352
  onItemClick: (c) => {
@@ -3425,7 +3425,7 @@ const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
3425
3425
  context: i
3426
3426
  });
3427
3427
  s(x);
3428
- const S = ol(x);
3428
+ const S = il(x);
3429
3429
  let R = {};
3430
3430
  if (S.length > 0 && (R = { ...(V = await h({
3431
3431
  model: n,
@@ -3474,7 +3474,7 @@ const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
3474
3474
  }
3475
3475
  }
3476
3476
  return /* @__PURE__ */ r(
3477
- rl,
3477
+ ol,
3478
3478
  {
3479
3479
  onRetrieveData: w,
3480
3480
  onItemClick: C,
@@ -3483,24 +3483,24 @@ const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
3483
3483
  }
3484
3484
  }
3485
3485
  );
3486
- }, ol = (e) => {
3486
+ }, il = (e) => {
3487
3487
  const { toolbar: t } = e, i = ["action", "relate", "print"].flatMap((o) => {
3488
3488
  const s = t[o];
3489
3489
  return (s == null ? void 0 : s.flatMap((a) => {
3490
3490
  const l = [];
3491
- return "context" in a && l.push(...ui(a.context)), "domain" in a && l.push(...fi(a.domain)), l;
3491
+ return "context" in a && l.push(...fi(a.context)), "domain" in a && l.push(...mi(a.domain)), l;
3492
3492
  })) || [];
3493
3493
  });
3494
3494
  return [
3495
3495
  ...new Set(i.filter((o) => o in e.fields))
3496
3496
  ];
3497
- }, il = (e) => {
3497
+ }, sl = (e) => {
3498
3498
  const { m2oField: t } = e;
3499
3499
  return t ? /* @__PURE__ */ k(Ue, { children: [
3500
3500
  /* @__PURE__ */ r(Q, { children: t.value }),
3501
3501
  /* @__PURE__ */ r(tr, { id: t.id, model: t.model })
3502
3502
  ] }) : /* @__PURE__ */ r(Q, {});
3503
- }, sl = (e) => {
3503
+ }, al = (e) => {
3504
3504
  const { value: t, context: n, selectionValues: i } = e, [o, s] = b(), [a, l] = b(!1), [d, u] = t ? t.split(",") : [], f = parseInt(u), c = fe(async () => {
3505
3505
  if (!t || t && o)
3506
3506
  return;
@@ -3526,7 +3526,6 @@ const tl = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(yo,
3526
3526
  /* @__PURE__ */ r(tr, { id: f, model: d })
3527
3527
  ] });
3528
3528
  };
3529
- Ze.extend(Bi);
3530
3529
  Ze.extend(Hi);
3531
3530
  Ze.extend(Ki);
3532
3531
  Ze.extend(ji);
@@ -3534,15 +3533,16 @@ Ze.extend(Wi);
3534
3533
  Ze.extend(Ui);
3535
3534
  Ze.extend(Yi);
3536
3535
  Ze.extend(Gi);
3537
- const al = (e) => {
3536
+ Ze.extend(qi);
3537
+ const ll = (e) => {
3538
3538
  const { ooui: t, value: n } = e;
3539
3539
  if (!n)
3540
3540
  return null;
3541
3541
  let i = n;
3542
3542
  t.selectionValues.size ? i = t.selectionValues.get(n) : Array.isArray(n) && (i = n[1]);
3543
3543
  const o = i.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = Kt(i);
3544
- return /* @__PURE__ */ r(gt, { title: i, children: /* @__PURE__ */ r(Nr, { alt: i, style: { backgroundColor: s }, children: o }) });
3545
- }, { useToken: ll } = He, mt = {
3544
+ return /* @__PURE__ */ r(gt, { title: i, children: /* @__PURE__ */ r(Pr, { alt: i, style: { backgroundColor: s }, children: o }) });
3545
+ }, { useToken: cl } = He, mt = {
3546
3546
  date: {
3547
3547
  placeholder: "__/__/____",
3548
3548
  dateDisplayFormat: "DD/MM/YYYY",
@@ -3553,11 +3553,11 @@ const al = (e) => {
3553
3553
  dateDisplayFormat: "DD/MM/YYYY HH:mm:ss",
3554
3554
  dateInternalFormat: "YYYY-MM-DD HH:mm:ss"
3555
3555
  }
3556
- }, wo = (e) => {
3556
+ }, vo = (e) => {
3557
3557
  const { ooui: t, showTime: n = !1 } = e, { required: i } = t;
3558
- return /* @__PURE__ */ r(Ce, { required: i, ...e, children: /* @__PURE__ */ r(cl, { ooui: t, showTime: n }) });
3559
- }, cl = (e) => {
3560
- const { value: t, onChange: n, ooui: i, showTime: o } = e, { id: s, readOnly: a, required: l } = i, { token: d } = ll(), u = l && !a ? { backgroundColor: d.colorPrimaryBg } : void 0, f = o ? "time" : "date", c = (h) => {
3558
+ return /* @__PURE__ */ r(Ce, { required: i, ...e, children: /* @__PURE__ */ r(dl, { ooui: t, showTime: n }) });
3559
+ }, dl = (e) => {
3560
+ const { value: t, onChange: n, ooui: i, showTime: o } = e, { id: s, readOnly: a, required: l } = i, { token: d } = cl(), u = l && !a ? { backgroundColor: d.colorPrimaryBg } : void 0, f = o ? "time" : "date", c = (h) => {
3561
3561
  n == null || n(h);
3562
3562
  }, m = (h) => {
3563
3563
  if (h === null) {
@@ -3583,7 +3583,7 @@ const al = (e) => {
3583
3583
  changeOnBlur: !0
3584
3584
  }
3585
3585
  );
3586
- }, dl = ({
3586
+ }, ul = ({
3587
3587
  value: e
3588
3588
  }) => De(
3589
3589
  () => /* @__PURE__ */ r(
@@ -3598,7 +3598,7 @@ const al = (e) => {
3598
3598
  }
3599
3599
  ),
3600
3600
  [e]
3601
- ), ul = ({ value: e }) => De(() => /* @__PURE__ */ r(il, { m2oField: e }), [e]), fl = ({ value: e }) => De(
3601
+ ), fl = ({ value: e }) => De(() => /* @__PURE__ */ r(sl, { m2oField: e }), [e]), ml = ({ value: e }) => De(
3602
3602
  () => /* @__PURE__ */ r(
3603
3603
  Jn,
3604
3604
  {
@@ -3606,7 +3606,7 @@ const al = (e) => {
3606
3606
  }
3607
3607
  ),
3608
3608
  [e]
3609
- ), ml = ({ value: e }) => De(() => {
3609
+ ), hl = ({ value: e }) => De(() => {
3610
3610
  if (!e || e && e.length === 0)
3611
3611
  return /* @__PURE__ */ r(Q, {});
3612
3612
  const t = Ze(
@@ -3614,7 +3614,7 @@ const al = (e) => {
3614
3614
  mt.date.dateInternalFormat
3615
3615
  ).format(mt.date.dateDisplayFormat);
3616
3616
  return /* @__PURE__ */ r(Q, { children: t });
3617
- }, [e]), hl = ({ value: e }) => De(() => {
3617
+ }, [e]), pl = ({ value: e }) => De(() => {
3618
3618
  if (!e || e && e.length === 0)
3619
3619
  return /* @__PURE__ */ r(Q, {});
3620
3620
  const t = Ze(
@@ -3622,17 +3622,17 @@ const al = (e) => {
3622
3622
  mt.time.dateInternalFormat
3623
3623
  ).format(mt.time.dateDisplayFormat);
3624
3624
  return /* @__PURE__ */ r(Q, { children: t });
3625
- }, [e]), Fr = ({
3625
+ }, [e]), Rr = ({
3626
3626
  value: e
3627
3627
  }) => De(() => {
3628
3628
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
3629
3629
  return /* @__PURE__ */ r(Q, { children: `( ${t} )` });
3630
- }, [e]), pl = ({
3630
+ }, [e]), gl = ({
3631
3631
  value: e
3632
- }) => De(() => /* @__PURE__ */ r(yo, { value: e }), [e]), gl = ({ value: e }) => De(() => /* @__PURE__ */ r(Q, { children: go(e) }), [e]), Rr = ({ value: e }) => De(
3632
+ }) => De(() => /* @__PURE__ */ r(wo, { value: e }), [e]), yl = ({ value: e }) => De(() => /* @__PURE__ */ r(Q, { children: yo(e) }), [e]), Or = ({ value: e }) => De(
3633
3633
  () => /* @__PURE__ */ r("div", { style: { textAlign: "right" }, children: e }),
3634
3634
  [e]
3635
- ), yl = ({ value: e }) => De(
3635
+ ), wl = ({ value: e }) => De(
3636
3636
  () => /* @__PURE__ */ r(
3637
3637
  "img",
3638
3638
  {
@@ -3641,12 +3641,12 @@ const al = (e) => {
3641
3641
  }
3642
3642
  ),
3643
3643
  [e]
3644
- ), wl = ({
3644
+ ), vl = ({
3645
3645
  value: e,
3646
3646
  key: t,
3647
3647
  ooui: n,
3648
3648
  context: i
3649
- }) => De(() => /* @__PURE__ */ r(fo, { ooui: n, value: e }), [n, e]), vl = ({
3649
+ }) => De(() => /* @__PURE__ */ r(mo, { ooui: n, value: e }), [n, e]), bl = ({
3650
3650
  value: e,
3651
3651
  key: t,
3652
3652
  ooui: n,
@@ -3654,14 +3654,14 @@ const al = (e) => {
3654
3654
  }) => De(() => {
3655
3655
  let o = e;
3656
3656
  return Array.isArray(e) && e.length === 2 && (o = e[0]), /* @__PURE__ */ r(Q, { children: n.selectionValues.get(o) });
3657
- }, [n, e]), bl = ({
3657
+ }, [n, e]), Cl = ({
3658
3658
  value: e,
3659
3659
  key: t,
3660
3660
  ooui: n,
3661
3661
  context: i
3662
3662
  }) => De(
3663
3663
  () => /* @__PURE__ */ r(
3664
- sl,
3664
+ al,
3665
3665
  {
3666
3666
  value: e,
3667
3667
  selectionValues: n.selectionValues,
@@ -3669,12 +3669,12 @@ const al = (e) => {
3669
3669
  }
3670
3670
  ),
3671
3671
  [i, n.selectionValues, e]
3672
- ), Cl = ({
3672
+ ), xl = ({
3673
3673
  value: e,
3674
3674
  key: t,
3675
3675
  ooui: n,
3676
3676
  context: i
3677
- }) => De(() => /* @__PURE__ */ r(al, { ooui: n, value: e }), [n, e]), xl = ({
3677
+ }) => De(() => /* @__PURE__ */ r(ll, { ooui: n, value: e }), [n, e]), Sl = ({
3678
3678
  value: e,
3679
3679
  key: t,
3680
3680
  ooui: n,
@@ -3722,25 +3722,25 @@ const al = (e) => {
3722
3722
  children: c
3723
3723
  }
3724
3724
  ), [c, a]);
3725
- }, Sl = {
3726
- boolean: dl,
3727
- many2one: ul,
3728
- text: fl,
3729
- one2many: Fr,
3730
- many2many: Fr,
3731
- progressbar: pl,
3732
- float_time: gl,
3733
- image: yl,
3734
- integer: Rr,
3735
- float: Rr,
3736
- reference: bl,
3737
- tag: wl,
3738
- selection: vl,
3739
- date: ml,
3740
- datetime: hl,
3741
- avatar: Cl,
3742
- tags: xl
3743
- }, vo = yt(
3725
+ }, Tl = {
3726
+ boolean: ul,
3727
+ many2one: fl,
3728
+ text: ml,
3729
+ one2many: Rr,
3730
+ many2many: Rr,
3731
+ progressbar: gl,
3732
+ float_time: yl,
3733
+ image: wl,
3734
+ integer: Or,
3735
+ float: Or,
3736
+ reference: Cl,
3737
+ tag: vl,
3738
+ selection: bl,
3739
+ date: hl,
3740
+ datetime: pl,
3741
+ avatar: xl,
3742
+ tags: Sl
3743
+ }, bo = yt(
3744
3744
  (e, t) => {
3745
3745
  var le;
3746
3746
  const {
@@ -3770,10 +3770,10 @@ const al = (e) => {
3770
3770
  rt
3771
3771
  ), { title: q = void 0, setTitle: N = void 0 } = (S ? B : {}) || {}, Z = De(() => {
3772
3772
  if (O)
3773
- return Bs(
3773
+ return Hs(
3774
3774
  O,
3775
3775
  {
3776
- ...Sl
3776
+ ...Tl
3777
3777
  },
3778
3778
  R
3779
3779
  );
@@ -3790,7 +3790,7 @@ const al = (e) => {
3790
3790
  if (!O)
3791
3791
  return;
3792
3792
  v.current = !1;
3793
- const z = lo(O, a);
3793
+ const z = co(O, a);
3794
3794
  _(z);
3795
3795
  }, [a]), pe(() => {
3796
3796
  G.current = i;
@@ -3803,7 +3803,7 @@ const al = (e) => {
3803
3803
  ).length;
3804
3804
  return d ? null : o === void 0 ? /* @__PURE__ */ r($e, { className: "pb-4" }) : /* @__PURE__ */ k(Oe, { align: "bottom", className: "pb-4", children: [
3805
3805
  /* @__PURE__ */ r(ue, { span: D ? 8 : 12, children: /* @__PURE__ */ r(
3806
- ri,
3806
+ oi,
3807
3807
  {
3808
3808
  total: o,
3809
3809
  pageSize: G.current === 0 ? o : G.current,
@@ -3813,7 +3813,7 @@ const al = (e) => {
3813
3813
  }
3814
3814
  ) }),
3815
3815
  D && /* @__PURE__ */ r(ue, { span: 8, className: "text-center", children: /* @__PURE__ */ r(
3816
- Za,
3816
+ el,
3817
3817
  {
3818
3818
  numberOfVisibleSelectedRows: z,
3819
3819
  numberOfRealSelectedRows: (c == null ? void 0 : c.length) || 0,
@@ -3848,12 +3848,12 @@ const al = (e) => {
3848
3848
  }), /* @__PURE__ */ r("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: re.join(", ") });
3849
3849
  }, [T, c, O]), M = De(() => {
3850
3850
  if (O !== null && Z && Z.length > 0)
3851
- return Xa(Z, T, 600);
3851
+ return Qa(Z, T, 600);
3852
3852
  }, [Z, T, O]), K = De(() => p && (O != null && O.columns.some((z) => z.sum !== void 0)) ? p - 30 : p, [p, O == null ? void 0 : O.columns]);
3853
- return O === null || !M || ((le = M == null ? void 0 : M.columns) == null ? void 0 : le.length) === 0 ? /* @__PURE__ */ r($e, { style: { padding: "2rem" } }) : /* @__PURE__ */ k(eo, { children: [
3853
+ return O === null || !M || ((le = M == null ? void 0 : M.columns) == null ? void 0 : le.length) === 0 ? /* @__PURE__ */ r($e, { style: { padding: "2rem" } }) : /* @__PURE__ */ k(to, { children: [
3854
3854
  $,
3855
3855
  /* @__PURE__ */ r(
3856
- qi,
3856
+ zi,
3857
3857
  {
3858
3858
  ref: F,
3859
3859
  height: K,
@@ -3865,9 +3865,9 @@ const al = (e) => {
3865
3865
  if (h[z.id])
3866
3866
  return { color: h[z.id] };
3867
3867
  },
3868
- onRowStatus: Hs(y) ? (z) => {
3868
+ onRowStatus: Ks(y) ? (z) => {
3869
3869
  if (y[z.id])
3870
- return /* @__PURE__ */ r(oi, { color: y[z.id] });
3870
+ return /* @__PURE__ */ r(ii, { color: y[z.id] });
3871
3871
  } : void 0,
3872
3872
  onRowDoubleClick: u,
3873
3873
  onRowSelectionChange: m,
@@ -3875,8 +3875,8 @@ const al = (e) => {
3875
3875
  sorter: w,
3876
3876
  readonly: V,
3877
3877
  expandableOpts: C ? {
3878
- expandIcon: yi,
3879
- collapseIcon: wi,
3878
+ expandIcon: wi,
3879
+ collapseIcon: vi,
3880
3880
  loadingIcon: st,
3881
3881
  onFetchChildrenForRecord: C,
3882
3882
  childField: x
@@ -3886,10 +3886,10 @@ const al = (e) => {
3886
3886
  I
3887
3887
  ] });
3888
3888
  }
3889
- ), Xt = kr(vo);
3889
+ ), Xt = Er(bo);
3890
3890
  Xt.displayName = "Tree";
3891
- vo.displayName = "UnmemoizedTree";
3892
- const bo = (e) => {
3891
+ bo.displayName = "UnmemoizedTree";
3892
+ const Co = (e) => {
3893
3893
  const {
3894
3894
  model: t,
3895
3895
  setSearchTreeNameSearch: n,
@@ -4085,7 +4085,7 @@ const bo = (e) => {
4085
4085
  fields: c.field_parent ? { ...c.fields, [c.field_parent]: {} } : c.fields,
4086
4086
  context: u
4087
4087
  });
4088
- return re([...ve(), ...We]), lo(At(c), We);
4088
+ return re([...ve(), ...We]), co(At(c), We);
4089
4089
  },
4090
4090
  [c, t, u, ve, re]
4091
4091
  ), Le = fe(async () => await E.getHandler().searchAllIds({
@@ -4114,7 +4114,7 @@ const bo = (e) => {
4114
4114
  getAllIds: Le
4115
4115
  };
4116
4116
  };
4117
- function Tl(e, t) {
4117
+ function Fl(e, t) {
4118
4118
  var lt;
4119
4119
  const {
4120
4120
  model: n,
@@ -4175,7 +4175,7 @@ function Tl(e, t) {
4175
4175
  statusForResults: Ae,
4176
4176
  totalItems: Y,
4177
4177
  getAllIds: te
4178
- } = bo({
4178
+ } = Co({
4179
4179
  model: x,
4180
4180
  setSearchTreeNameSearch: W,
4181
4181
  setSelectedRowItems: me,
@@ -4289,10 +4289,10 @@ function Tl(e, t) {
4289
4289
  [U]
4290
4290
  ), Qt = fe(() => !R || !D ? null : /* @__PURE__ */ k(Q, { children: [
4291
4291
  /* @__PURE__ */ r(
4292
- po,
4292
+ go,
4293
4293
  {
4294
4294
  fields: { ...D.fields, ...R.fields },
4295
- searchFields: uo([
4295
+ searchFields: fo([
4296
4296
  D.search_fields,
4297
4297
  R.search_fields
4298
4298
  ]),
@@ -4368,7 +4368,7 @@ function Tl(e, t) {
4368
4368
  ]), Lt = T || Ke;
4369
4369
  return Lt ? /* @__PURE__ */ r(Qe, { className: "mt-10", message: Lt, type: "error", banner: !0 }) : /* @__PURE__ */ r("div", { style: u ? {} : { display: "none" }, children: p ? /* @__PURE__ */ r($e, {}) : Qt() });
4370
4370
  }
4371
- const Co = yt(Tl), xo = (e) => {
4371
+ const xo = yt(Fl), So = (e) => {
4372
4372
  const {
4373
4373
  visible: t,
4374
4374
  onCloseModal: n,
@@ -4392,7 +4392,7 @@ const Co = yt(Tl), xo = (e) => {
4392
4392
  }
4393
4393
  const C = () => /* @__PURE__ */ k(Q, { children: [
4394
4394
  /* @__PURE__ */ r(
4395
- Co,
4395
+ xo,
4396
4396
  {
4397
4397
  model: o,
4398
4398
  nameSearch: s,
@@ -4460,14 +4460,14 @@ const Co = yt(Tl), xo = (e) => {
4460
4460
  }
4461
4461
  )
4462
4462
  ] });
4463
- }, { error: Fl } = Je, on = (e) => {
4464
- Fl({
4463
+ }, { error: Rl } = Je, on = (e) => {
4464
+ Rl({
4465
4465
  title: "Error",
4466
4466
  icon: /* @__PURE__ */ r(vt, {}),
4467
4467
  centered: !0,
4468
4468
  content: e
4469
4469
  });
4470
- }, { defaultAlgorithm: Rl, defaultSeed: Ol } = He, So = Rl(Ol), _l = (e) => {
4470
+ }, { defaultAlgorithm: Ol, defaultSeed: _l } = He, To = Ol(_l), Il = (e) => {
4471
4471
  const { ooui: t } = e, { required: n } = t;
4472
4472
  return /* @__PURE__ */ r(Ce, { required: n, type: "array", validator: async (o, s) => {
4473
4473
  if (!s)
@@ -4476,8 +4476,8 @@ const Co = yt(Tl), xo = (e) => {
4476
4476
  throw new Error();
4477
4477
  if (Array.isArray(s) && !s[0])
4478
4478
  throw new Error();
4479
- }, ...e, children: /* @__PURE__ */ r(To, { ooui: t }) });
4480
- }, To = (e) => {
4479
+ }, ...e, children: /* @__PURE__ */ r(Fo, { ooui: t }) });
4480
+ }, Fo = (e) => {
4481
4481
  const { value: t, onChange: n, ooui: i } = e, {
4482
4482
  required: o,
4483
4483
  relation: s,
@@ -4485,7 +4485,7 @@ const Co = yt(Tl), xo = (e) => {
4485
4485
  context: l,
4486
4486
  id: d,
4487
4487
  domain: u
4488
- } = i, f = o && !a ? { backgroundColor: So.colorPrimaryBg } : void 0, [c, m] = b(!1), [p, h] = b(!1), [y, g] = b(!1), [w, C] = b(), x = ae(!1), [S, R] = b(""), V = ae(), D = ne(Be), { domain: F, getValues: T, getFields: _, getContext: v, elementHasLostFocus: O } = D || {}, A = ae([]), [L, G] = b([]), B = t && t[0] || void 0, q = t && t[1] || "";
4488
+ } = i, f = o && !a ? { backgroundColor: To.colorPrimaryBg } : void 0, [c, m] = b(!1), [p, h] = b(!1), [y, g] = b(!1), [w, C] = b(), x = ae(!1), [S, R] = b(""), V = ae(), D = ne(Be), { domain: F, getValues: T, getFields: _, getContext: v, elementHasLostFocus: O } = D || {}, A = ae([]), [L, G] = b([]), B = t && t[0] || void 0, q = t && t[1] || "";
4489
4489
  pe(() => {
4490
4490
  !Array.isArray(t) && t && U(t);
4491
4491
  }, [t]), pe(() => {
@@ -4557,7 +4557,7 @@ const Co = yt(Tl), xo = (e) => {
4557
4557
  fields: _(),
4558
4558
  context: v()
4559
4559
  })), F && F.length > 0 && (A.current = A.current.concat(
4560
- Hr({
4560
+ Kr({
4561
4561
  domain: F,
4562
4562
  widgetFieldName: d
4563
4563
  })
@@ -4568,7 +4568,7 @@ const Co = yt(Tl), xo = (e) => {
4568
4568
  }
4569
4569
  return /* @__PURE__ */ k(Oe, { gutter: 8, wrap: !1, children: [
4570
4570
  /* @__PURE__ */ r(ue, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ r(
4571
- o && !a ? Il : it,
4571
+ o && !a ? Vl : it,
4572
4572
  {
4573
4573
  type: "text",
4574
4574
  value: S,
@@ -4616,7 +4616,7 @@ const Co = yt(Tl), xo = (e) => {
4616
4616
  }
4617
4617
  ) }),
4618
4618
  /* @__PURE__ */ r(
4619
- xo,
4619
+ So,
4620
4620
  {
4621
4621
  model: s,
4622
4622
  domain: L,
@@ -4649,19 +4649,19 @@ const Co = yt(Tl), xo = (e) => {
4649
4649
  }
4650
4650
  )
4651
4651
  ] });
4652
- }, Il = Mt(it)`
4652
+ }, Vl = Mt(it)`
4653
4653
  .ant-input {
4654
- background-color: ${So.colorPrimaryBg};
4654
+ background-color: ${To.colorPrimaryBg};
4655
4655
  }
4656
- `, Fo = nt.createContext(
4656
+ `, Ro = nt.createContext(
4657
4657
  null
4658
- ), Vl = ({
4658
+ ), Al = ({
4659
4659
  children: e,
4660
4660
  initialView: t
4661
4661
  }) => {
4662
4662
  const [n, i] = b(t), [o, s] = b(0), [a, l] = b(!1);
4663
4663
  return /* @__PURE__ */ r(
4664
- Fo.Provider,
4664
+ Ro.Provider,
4665
4665
  {
4666
4666
  value: {
4667
4667
  currentView: n,
@@ -4674,7 +4674,7 @@ const Co = yt(Tl), xo = (e) => {
4674
4674
  children: e
4675
4675
  }
4676
4676
  );
4677
- }, { getValueForOperator: Or } = Kr, sn = 0.7, an = 30, Al = (e) => {
4677
+ }, { getValueForOperator: _r } = jr, sn = 0.7, an = 30, Dl = (e) => {
4678
4678
  const {
4679
4679
  model: t,
4680
4680
  domain: n,
@@ -4718,7 +4718,7 @@ const Co = yt(Tl), xo = (e) => {
4718
4718
  fieldsToRetrieve: [u],
4719
4719
  context: i
4720
4720
  });
4721
- return Or({
4721
+ return _r({
4722
4722
  values: M.map((K) => K[u]),
4723
4723
  operator: f
4724
4724
  });
@@ -4741,7 +4741,7 @@ const Co = yt(Tl), xo = (e) => {
4741
4741
  fieldsToRetrieve: [u],
4742
4742
  context: i
4743
4743
  });
4744
- return Or({
4744
+ return _r({
4745
4745
  values: I.map((M) => M[u]),
4746
4746
  operator: f
4747
4747
  });
@@ -4801,7 +4801,7 @@ const Co = yt(Tl), xo = (e) => {
4801
4801
  R(($ = U.bounds) == null ? void 0 : $.height), D((I = U.bounds) == null ? void 0 : I.width);
4802
4802
  },
4803
4803
  children: ({ measureRef: U }) => a ? /* @__PURE__ */ r(
4804
- kl,
4804
+ El,
4805
4805
  {
4806
4806
  value: h,
4807
4807
  total: C,
@@ -4814,7 +4814,7 @@ const Co = yt(Tl), xo = (e) => {
4814
4814
  suffix: d
4815
4815
  }
4816
4816
  ) : /* @__PURE__ */ r(
4817
- Dl,
4817
+ kl,
4818
4818
  {
4819
4819
  value: h,
4820
4820
  total: C,
@@ -4829,11 +4829,11 @@ const Co = yt(Tl), xo = (e) => {
4829
4829
  }
4830
4830
  );
4831
4831
  };
4832
- function Ro(e, t) {
4832
+ function Oo(e, t) {
4833
4833
  const i = document.createElement("canvas").getContext("2d");
4834
4834
  return i.font = t || getComputedStyle(document.body).font, i.measureText(e).width;
4835
4835
  }
4836
- function Dl({
4836
+ function kl({
4837
4837
  measureRef: e,
4838
4838
  width: t,
4839
4839
  height: n,
@@ -4849,7 +4849,7 @@ function Dl({
4849
4849
  });
4850
4850
  let f = i ? `${u}/${i}` : `${u}`;
4851
4851
  l && (f += " " + l);
4852
- let c = Ro(
4852
+ let c = Oo(
4853
4853
  f,
4854
4854
  `bold ${Math.floor(d * 1.03)}px sans-serif`
4855
4855
  );
@@ -4874,7 +4874,7 @@ function Dl({
4874
4874
  }
4875
4875
  );
4876
4876
  }
4877
- function kl({
4877
+ function El({
4878
4878
  measureRef: e,
4879
4879
  height: t,
4880
4880
  width: n,
@@ -4897,7 +4897,7 @@ function kl({
4897
4897
  const p = `${i == null ? void 0 : i.toLocaleString("es-ES", {
4898
4898
  useGrouping: !0
4899
4899
  })}%`;
4900
- let h = Ro(
4900
+ let h = Oo(
4901
4901
  p,
4902
4902
  `bold ${Math.floor(f * 1.03)}px sans-serif`
4903
4903
  );
@@ -4944,22 +4944,22 @@ const Tn = (e) => (t) => {
4944
4944
  });
4945
4945
  return { name: e === "pie" ? t.x : t.type, value: n };
4946
4946
  }, en = (e) => {
4947
- if (typeof e == "string" && El(e))
4947
+ if (typeof e == "string" && Ml(e))
4948
4948
  return parseFloat(e).toLocaleString("es-ES", {
4949
4949
  useGrouping: !0
4950
4950
  });
4951
- if (Ml(e))
4951
+ if (Nl(e))
4952
4952
  return e.toLocaleString("es-ES", {
4953
4953
  useGrouping: !0
4954
4954
  });
4955
- if (Nl(e)) {
4956
- const t = Pl(e);
4955
+ if (Pl(e)) {
4956
+ const t = Ll(e);
4957
4957
  return t === null ? e : Ze(e, ln.input[t]).format(
4958
4958
  ln.output[t]
4959
4959
  );
4960
4960
  } else
4961
4961
  return e;
4962
- }, El = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Ml = (e) => typeof e == "number" && !isNaN(e), _r = {
4962
+ }, Ml = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Nl = (e) => typeof e == "number" && !isNaN(e), Ir = {
4963
4963
  default: {
4964
4964
  padding: "auto",
4965
4965
  xAxis: {
@@ -5041,7 +5041,7 @@ const Tn = (e) => (t) => {
5041
5041
  }
5042
5042
  }
5043
5043
  };
5044
- function Nl(e) {
5044
+ function Pl(e) {
5045
5045
  return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
5046
5046
  }
5047
5047
  const ln = {
@@ -5060,7 +5060,7 @@ const ln = {
5060
5060
  years: "YYYY"
5061
5061
  }
5062
5062
  };
5063
- function Pl(e) {
5063
+ function Ll(e) {
5064
5064
  for (const t in ln.input)
5065
5065
  if (Ze(
5066
5066
  e,
@@ -5070,7 +5070,7 @@ function Pl(e) {
5070
5070
  return t;
5071
5071
  return null;
5072
5072
  }
5073
- const { processGraphData: Ll } = Kr, { getFieldsToRetrieve: $l } = mi, Bl = (e) => {
5073
+ const { processGraphData: $l } = jr, { getFieldsToRetrieve: Bl } = hi, Hl = (e) => {
5074
5074
  const {
5075
5075
  model: t,
5076
5076
  domain: n = [],
@@ -5087,10 +5087,10 @@ const { processGraphData: Ll } = Kr, { getFieldsToRetrieve: $l } = mi, Bl = (e)
5087
5087
  u(!0), c(void 0);
5088
5088
  const V = Bn(o);
5089
5089
  w(V.type || "line");
5090
- const D = $l({ ooui: V });
5090
+ const D = Bl({ ooui: V });
5091
5091
  let F, T;
5092
5092
  try {
5093
- ({ values: F, fields: T } = await Kl({
5093
+ ({ values: F, fields: T } = await jl({
5094
5094
  model: t,
5095
5095
  domain: n,
5096
5096
  context: i,
@@ -5119,7 +5119,7 @@ const { processGraphData: Ll } = Kr, { getFieldsToRetrieve: $l } = mi, Bl = (e)
5119
5119
  fetchData: R
5120
5120
  };
5121
5121
  y(F);
5122
- const _ = Ll({
5122
+ const _ = $l({
5123
5123
  ooui: V,
5124
5124
  values: F,
5125
5125
  fields: T,
@@ -5159,7 +5159,7 @@ const { processGraphData: Ll } = Kr, { getFieldsToRetrieve: $l } = mi, Bl = (e)
5159
5159
  fetchData: R
5160
5160
  };
5161
5161
  };
5162
- async function Hl({
5162
+ async function Kl({
5163
5163
  model: e,
5164
5164
  context: t,
5165
5165
  fields: n,
@@ -5171,7 +5171,7 @@ async function Hl({
5171
5171
  fields: n
5172
5172
  });
5173
5173
  }
5174
- async function Kl({
5174
+ async function jl({
5175
5175
  fields: e,
5176
5176
  model: t,
5177
5177
  domain: n,
@@ -5181,7 +5181,7 @@ async function Kl({
5181
5181
  manualIds: a,
5182
5182
  methods: l
5183
5183
  }) {
5184
- const { getFields: d, readObjects: u, search: f } = l, c = await Hl({
5184
+ const { getFields: d, readObjects: u, search: f } = l, c = await Kl({
5185
5185
  model: t,
5186
5186
  context: i,
5187
5187
  fields: e,
@@ -5211,13 +5211,13 @@ async function Kl({
5211
5211
  fields: c
5212
5212
  };
5213
5213
  }
5214
- const jl = {
5215
- line: Pi,
5216
- bar: Li,
5217
- pie: $i
5218
- }, Wl = (e) => {
5214
+ const Wl = {
5215
+ line: Li,
5216
+ bar: $i,
5217
+ pie: Bi
5218
+ }, Ul = (e) => {
5219
5219
  var C;
5220
- const { model: t, domain: n, context: i, xml: o, limit: s, manualIds: a } = e, { t: l } = we(), { error: d, loading: u, values: f, type: c, evaluatedEntries: m, fetchData: p } = Bl({
5220
+ const { model: t, domain: n, context: i, xml: o, limit: s, manualIds: a } = e, { t: l } = we(), { error: d, loading: u, values: f, type: c, evaluatedEntries: m, fetchData: p } = Hl({
5221
5221
  model: t,
5222
5222
  xml: o,
5223
5223
  limit: s,
@@ -5234,7 +5234,7 @@ const jl = {
5234
5234
  return /* @__PURE__ */ r(Qe, { message: "No data to display", type: "info" });
5235
5235
  if (d)
5236
5236
  return /* @__PURE__ */ r(Qe, { message: d, type: "error", banner: !0 });
5237
- const { data: h, isGroup: y, isStack: g } = f, w = jl[c];
5237
+ const { data: h, isGroup: y, isStack: g } = f, w = Wl[c];
5238
5238
  return w ? /* @__PURE__ */ k("div", { style: { padding: "1rem" }, children: [
5239
5239
  /* @__PURE__ */ r("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(C = m == null ? void 0 : m.length) == null ? void 0 : C.toLocaleString(
5240
5240
  "es-ES",
@@ -5245,7 +5245,7 @@ const jl = {
5245
5245
  /* @__PURE__ */ r(
5246
5246
  w,
5247
5247
  {
5248
- ...Ul({
5248
+ ...Yl({
5249
5249
  type: c,
5250
5250
  data: h,
5251
5251
  isGroup: y,
@@ -5255,12 +5255,12 @@ const jl = {
5255
5255
  )
5256
5256
  ] }) : /* @__PURE__ */ r(Q, { children: `Unknown graph type: ${c}` });
5257
5257
  };
5258
- function Ul(e) {
5258
+ function Yl(e) {
5259
5259
  const { type: t, data: n, isGroup: i, isStack: o } = e;
5260
- let s = { ..._r[t] };
5261
- return s || (s = { ..._r.default }), s.data = n, t === "pie" ? (s.colorField = "x", s.angleField = "value") : (s.xField = "x", s.yField = "value", s.seriesField = "type", s.isGroup = i, o && (s.isStack = !0, s.groupField = "stacked")), s;
5260
+ let s = { ...Ir[t] };
5261
+ return s || (s = { ...Ir.default }), s.data = n, t === "pie" ? (s.colorField = "x", s.angleField = "value") : (s.xField = "x", s.yField = "value", s.seriesField = "type", s.isGroup = i, o && (s.isStack = !0, s.groupField = "stacked")), s;
5262
5262
  }
5263
- const Yl = (e, t) => {
5263
+ const Gl = (e, t) => {
5264
5264
  const { view_id: n, model: i, context: o, domain: s, limit: a, manualIds: l } = e, [d, u] = b(!1), [f, c] = b(), [m, p] = b(), h = ne(
5265
5265
  rt
5266
5266
  ), { setGraphIsLoading: y = void 0 } = h || {}, [g] = tt(E.getHandler().getView);
@@ -5312,7 +5312,7 @@ const Yl = (e, t) => {
5312
5312
  operator: C.operator
5313
5313
  } : {};
5314
5314
  return /* @__PURE__ */ r(
5315
- Al,
5315
+ Dl,
5316
5316
  {
5317
5317
  showPercent: C.showPercent,
5318
5318
  totalDomain: C.totalDomain,
@@ -5331,7 +5331,7 @@ const Yl = (e, t) => {
5331
5331
  case "bar":
5332
5332
  case "pie":
5333
5333
  return /* @__PURE__ */ r(
5334
- Wl,
5334
+ Ul,
5335
5335
  {
5336
5336
  model: i,
5337
5337
  context: o,
@@ -5344,11 +5344,11 @@ const Yl = (e, t) => {
5344
5344
  default:
5345
5345
  return /* @__PURE__ */ r(Q, { children: `Graph ${f.type} not implemented` });
5346
5346
  }
5347
- }, gn = yt(Yl), { confirm: Gl } = Je, ql = ({
5347
+ }, gn = yt(Gl), { confirm: ql } = Je, zl = ({
5348
5348
  onOk: e,
5349
5349
  t
5350
5350
  }) => {
5351
- Gl({
5351
+ ql({
5352
5352
  title: t("removeItems"),
5353
5353
  icon: /* @__PURE__ */ r(vt, {}),
5354
5354
  centered: !0,
@@ -5357,11 +5357,11 @@ const Yl = (e, t) => {
5357
5357
  onOk: e,
5358
5358
  cancelText: t("cancel")
5359
5359
  });
5360
- }, { confirm: zl } = Je, Jl = ({
5360
+ }, { confirm: Jl } = Je, Xl = ({
5361
5361
  onOk: e,
5362
5362
  t
5363
5363
  }) => {
5364
- zl({
5364
+ Jl({
5365
5365
  title: t("unlinkItems"),
5366
5366
  icon: /* @__PURE__ */ r(vt, {}),
5367
5367
  centered: !0,
@@ -5370,7 +5370,7 @@ const Yl = (e, t) => {
5370
5370
  onOk: e,
5371
5371
  cancelText: t("cancel")
5372
5372
  });
5373
- }, { useToken: Xl } = He, Ql = (e) => {
5373
+ }, { useToken: Ql } = He, Zl = (e) => {
5374
5374
  const {
5375
5375
  title: t,
5376
5376
  readOnly: n,
@@ -5387,7 +5387,7 @@ const Yl = (e, t) => {
5387
5387
  selectedRowKeys: p,
5388
5388
  showCreateButton: h,
5389
5389
  showToggleButton: y
5390
- } = e, { token: g } = Xl();
5390
+ } = e, { token: g } = Ql();
5391
5391
  function w() {
5392
5392
  return /* @__PURE__ */ r("div", { className: "inline-block w-3" });
5393
5393
  }
@@ -5409,7 +5409,7 @@ const Yl = (e, t) => {
5409
5409
  ze,
5410
5410
  {
5411
5411
  tooltip: c ? "Unlink" : "Delete",
5412
- icon: c ? /* @__PURE__ */ r(bi, {}) : /* @__PURE__ */ r(Gn, {}),
5412
+ icon: c ? /* @__PURE__ */ r(Ci, {}) : /* @__PURE__ */ r(Gn, {}),
5413
5413
  onClick: a,
5414
5414
  disabled: l === 0 || n || s !== "form" && p.length === 0
5415
5415
  }
@@ -5432,7 +5432,7 @@ const Yl = (e, t) => {
5432
5432
  ze,
5433
5433
  {
5434
5434
  tooltip: "Previous item",
5435
- icon: /* @__PURE__ */ r(qr, {}),
5435
+ icon: /* @__PURE__ */ r(zr, {}),
5436
5436
  onClick: u
5437
5437
  }
5438
5438
  ),
@@ -5441,7 +5441,7 @@ const Yl = (e, t) => {
5441
5441
  ze,
5442
5442
  {
5443
5443
  tooltip: "Next item",
5444
- icon: /* @__PURE__ */ r(zr, {}),
5444
+ icon: /* @__PURE__ */ r(Jr, {}),
5445
5445
  onClick: f
5446
5446
  }
5447
5447
  )
@@ -5476,28 +5476,28 @@ const Yl = (e, t) => {
5476
5476
  ze,
5477
5477
  {
5478
5478
  tooltip: "Toggle view mode",
5479
- icon: /* @__PURE__ */ r(vi, {}),
5479
+ icon: /* @__PURE__ */ r(bi, {}),
5480
5480
  onClick: o
5481
5481
  }
5482
5482
  )
5483
5483
  ] })
5484
5484
  ] });
5485
- }, Zl = {
5486
- form: Br,
5487
- tree: Lr,
5485
+ }, ec = {
5486
+ form: Hr,
5487
+ tree: $r,
5488
5488
  graph: gn
5489
5489
  };
5490
- function ec(e) {
5490
+ function tc(e) {
5491
5491
  const t = e.map((i) => i.id);
5492
5492
  return e.filter((i, o) => {
5493
5493
  const { id: s } = i;
5494
5494
  return !t.includes(s, o + 1);
5495
5495
  });
5496
5496
  }
5497
- const tc = (e) => {
5497
+ const nc = (e) => {
5498
5498
  var Ae;
5499
5499
  const { value: t, onChange: n, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = ne(
5500
- Fo
5500
+ Ro
5501
5501
  ), f = ne(Be), { activeId: c, getFields: m, getValues: p, getContext: h, domain: y } = f || {}, { t: g } = we(), [w, C] = b(!1), [x, S] = b(!1), [R, V] = b(), [D, F] = b(!1), [T, _] = b(!1), [v, O] = b(), [A, L] = b([]), [G, B] = b(!1), q = ae([]), [N, Z] = b(), ee = ae(), [oe, U] = b(void 0), {
5502
5502
  readOnly: $,
5503
5503
  relation: I,
@@ -5523,7 +5523,7 @@ const tc = (e) => {
5523
5523
  var te, Re;
5524
5524
  n == null || n({
5525
5525
  fields: ((te = o.get("form")) == null ? void 0 : te.fields) || ((Re = o.get("tree")) == null ? void 0 : Re.fields),
5526
- items: ec(Y)
5526
+ items: tc(Y)
5527
5527
  });
5528
5528
  }, Te = async () => {
5529
5529
  await Ee(), d > re.length - 1 && d !== 0 && u(0);
@@ -5561,7 +5561,7 @@ const tc = (e) => {
5561
5561
  fields: m(),
5562
5562
  context: h()
5563
5563
  })), y && y.length > 0 && (q.current = q.current.concat(
5564
- Hr({
5564
+ Kr({
5565
5565
  domain: y,
5566
5566
  widgetFieldName: z
5567
5567
  })
@@ -5608,7 +5608,7 @@ const tc = (e) => {
5608
5608
  }) : Y();
5609
5609
  }, _e = () => {
5610
5610
  if (le) {
5611
- Jl({
5611
+ Xl({
5612
5612
  t: g,
5613
5613
  onOk: () => {
5614
5614
  a === "form" ? j() : ge();
@@ -5616,7 +5616,7 @@ const tc = (e) => {
5616
5616
  });
5617
5617
  return;
5618
5618
  }
5619
- ql({
5619
+ zl({
5620
5620
  t: g,
5621
5621
  onOk: () => {
5622
5622
  a === "form" ? j() : ge();
@@ -5679,7 +5679,7 @@ const tc = (e) => {
5679
5679
  treeValues: { ...Re, id: Y }
5680
5680
  } : Ie);
5681
5681
  else {
5682
- const Ie = Ks(s);
5682
+ const Ie = js(s);
5683
5683
  Se = s.concat({
5684
5684
  id: Ie,
5685
5685
  operation: "pendingCreate",
@@ -5724,7 +5724,7 @@ const tc = (e) => {
5724
5724
  }
5725
5725
  };
5726
5726
  function ye() {
5727
- const Y = Zl[a];
5727
+ const Y = ec[a];
5728
5728
  if (a === "graph")
5729
5729
  return Bn(o.get("graph").arch).string;
5730
5730
  {
@@ -5805,7 +5805,7 @@ const tc = (e) => {
5805
5805
  const je = G;
5806
5806
  return x ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ k(Q, { children: [
5807
5807
  /* @__PURE__ */ r(
5808
- Ql,
5808
+ Zl,
5809
5809
  {
5810
5810
  mode: a,
5811
5811
  title: ye(),
@@ -5846,7 +5846,7 @@ const tc = (e) => {
5846
5846
  }
5847
5847
  ),
5848
5848
  /* @__PURE__ */ r(
5849
- xo,
5849
+ So,
5850
5850
  {
5851
5851
  domain: q.current,
5852
5852
  model: I,
@@ -5861,7 +5861,7 @@ const tc = (e) => {
5861
5861
  }
5862
5862
  )
5863
5863
  ] });
5864
- }, nc = (e) => {
5864
+ }, rc = (e) => {
5865
5865
  const { ooui: t } = e, { mode: n, relation: i, views: o, required: s, context: a } = t;
5866
5866
  let l;
5867
5867
  const [d, u] = b(!0), [f, c] = b(), [m, p] = b(/* @__PURE__ */ new Map()), h = ne(Be), { getContext: y } = h || {};
@@ -5891,7 +5891,7 @@ const tc = (e) => {
5891
5891
  u(!1);
5892
5892
  }
5893
5893
  };
5894
- return n && n.length > 0 ? l = n[0] : l = "tree", d ? /* @__PURE__ */ r($e, {}) : f ? /* @__PURE__ */ r(Qe, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ r(Vl, { initialView: l, children: /* @__PURE__ */ r(
5894
+ return n && n.length > 0 ? l = n[0] : l = "tree", d ? /* @__PURE__ */ r($e, {}) : f ? /* @__PURE__ */ r(Qe, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ r(Al, { initialView: l, children: /* @__PURE__ */ r(
5895
5895
  Ce,
5896
5896
  {
5897
5897
  required: s,
@@ -5907,16 +5907,16 @@ const tc = (e) => {
5907
5907
  throw new Error();
5908
5908
  },
5909
5909
  ...e,
5910
- children: /* @__PURE__ */ r(tc, { ooui: t, views: m })
5910
+ children: /* @__PURE__ */ r(nc, { ooui: t, views: m })
5911
5911
  }
5912
5912
  ) });
5913
- }, { useToken: rc } = He, oc = (e) => {
5913
+ }, { useToken: oc } = He, ic = (e) => {
5914
5914
  const { ooui: t } = e, { required: n } = t;
5915
- return /* @__PURE__ */ r(Ce, { required: n, type: "number", ...e, children: /* @__PURE__ */ r(ic, { ooui: t }) });
5916
- }, ic = (e) => {
5917
- const { ooui: t, value: n, onChange: i } = e, { id: o, readOnly: s, required: a } = t, { token: l } = rc(), d = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ae(), [f, c] = b(), m = ne(Be), { elementHasLostFocus: p } = m || {};
5915
+ return /* @__PURE__ */ r(Ce, { required: n, type: "number", ...e, children: /* @__PURE__ */ r(sc, { ooui: t }) });
5916
+ }, sc = (e) => {
5917
+ const { ooui: t, value: n, onChange: i } = e, { id: o, readOnly: s, required: a } = t, { token: l } = oc(), d = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ae(), [f, c] = b(), m = ne(Be), { elementHasLostFocus: p } = m || {};
5918
5918
  pe(() => {
5919
- c(go(n));
5919
+ c(yo(n));
5920
5920
  }, [n]);
5921
5921
  const h = (w) => {
5922
5922
  i == null || i(w);
@@ -5925,7 +5925,7 @@ const tc = (e) => {
5925
5925
  u.current = w.target.value, c(w.target.value);
5926
5926
  }
5927
5927
  async function g() {
5928
- h(el(f)), await new Promise((w) => setTimeout(w, 300)), p == null || p();
5928
+ h(tl(f)), await new Promise((w) => setTimeout(w, 300)), p == null || p();
5929
5929
  }
5930
5930
  return /* @__PURE__ */ r(
5931
5931
  it,
@@ -5941,9 +5941,9 @@ const tc = (e) => {
5941
5941
  }
5942
5942
  );
5943
5943
  };
5944
- function Oo(e) {
5944
+ function _o(e) {
5945
5945
  const { ooui: t, showLabel: n = !0, responsiveBehaviour: i } = e, o = dt(t.icon || "");
5946
- return /* @__PURE__ */ r(Q, { children: (t.label || o) && n ? /* @__PURE__ */ r(Vi, { label: t.label, icon: o, children: /* @__PURE__ */ r(
5946
+ return /* @__PURE__ */ r(Q, { children: (t.label || o) && n ? /* @__PURE__ */ r(Ai, { label: t.label, icon: o, children: /* @__PURE__ */ r(
5947
5947
  An,
5948
5948
  {
5949
5949
  container: t.container,
@@ -5957,8 +5957,8 @@ function Oo(e) {
5957
5957
  }
5958
5958
  ) });
5959
5959
  }
5960
- const { TabPane: sc } = Pr;
5961
- function ac(e) {
5960
+ const { TabPane: ac } = Lr;
5961
+ function lc(e) {
5962
5962
  const { ooui: t, responsiveBehaviour: n } = e, i = t.pages;
5963
5963
  function o(s) {
5964
5964
  if (s) {
@@ -5966,8 +5966,8 @@ function ac(e) {
5966
5966
  return a && /* @__PURE__ */ r(a, {});
5967
5967
  }
5968
5968
  }
5969
- return /* @__PURE__ */ r(Pr, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ r(
5970
- sc,
5969
+ return /* @__PURE__ */ r(Lr, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ r(
5970
+ ac,
5971
5971
  {
5972
5972
  tab: /* @__PURE__ */ k(Q, { children: [
5973
5973
  o(s.icon),
@@ -5975,7 +5975,7 @@ function ac(e) {
5975
5975
  s.label
5976
5976
  ] }),
5977
5977
  children: /* @__PURE__ */ r(
5978
- Oo,
5978
+ _o,
5979
5979
  {
5980
5980
  ooui: s,
5981
5981
  showLabel: !1,
@@ -5986,10 +5986,10 @@ function ac(e) {
5986
5986
  s.label
5987
5987
  )) });
5988
5988
  }
5989
- const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
5990
- const { ooui: t } = e, { id: n, readOnly: i, required: o, height: s, translatable: a } = t, { token: l } = lc(), d = o && !i ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ne(Be), { elementHasLostFocus: f } = u || {};
5989
+ const { useToken: cc } = He, { TextArea: kn } = it, dc = (e) => {
5990
+ const { ooui: t } = e, { id: n, readOnly: i, required: o, height: s, translatable: a } = t, { token: l } = cc(), d = o && !i ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ne(Be), { elementHasLostFocus: f } = u || {};
5991
5991
  return /* @__PURE__ */ r(Ce, { required: o, ...e, children: a ? /* @__PURE__ */ r(
5992
- dc,
5992
+ uc,
5993
5993
  {
5994
5994
  field: n,
5995
5995
  height: s,
@@ -6007,7 +6007,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6007
6007
  onBlur: f
6008
6008
  }
6009
6009
  ) });
6010
- }, dc = ({
6010
+ }, uc = ({
6011
6011
  value: e,
6012
6012
  field: t,
6013
6013
  requiredStyle: n,
@@ -6054,7 +6054,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6054
6054
  }
6055
6055
  ),
6056
6056
  /* @__PURE__ */ r(
6057
- ro,
6057
+ oo,
6058
6058
  {
6059
6059
  id: a,
6060
6060
  model: l,
@@ -6089,7 +6089,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6089
6089
  ze,
6090
6090
  {
6091
6091
  tooltip: p("translate"),
6092
- icon: /* @__PURE__ */ r(Yr, {}),
6092
+ icon: /* @__PURE__ */ r(Gr, {}),
6093
6093
  onClick: async () => {
6094
6094
  u != null && u() ? ht(p("saveBeforeTranslate")) : ht(p("enterTextBeforeTranslate"));
6095
6095
  },
@@ -6097,13 +6097,13 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6097
6097
  }
6098
6098
  ) })
6099
6099
  ] });
6100
- }, uc = (e) => {
6100
+ }, fc = (e) => {
6101
6101
  const { ooui: t } = e, { label: n, icon: i } = t, o = dt(i || "");
6102
6102
  return /* @__PURE__ */ r(cn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ k(Ue, { children: [
6103
6103
  o ? /* @__PURE__ */ r(o, {}) : null,
6104
6104
  n
6105
6105
  ] }) });
6106
- }, fc = ({
6106
+ }, mc = ({
6107
6107
  model: e,
6108
6108
  context: t,
6109
6109
  selectedRegistersToExport: n,
@@ -6123,7 +6123,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6123
6123
  ]);
6124
6124
  const { datas: C } = await E.getHandler().exportData({
6125
6125
  model: e,
6126
- fields: wc({
6126
+ fields: vc({
6127
6127
  keys: g.selectedKeys,
6128
6128
  fields: a.current
6129
6129
  }),
@@ -6143,7 +6143,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6143
6143
  context: t,
6144
6144
  fields: []
6145
6145
  });
6146
- return a.current["/"] = g, Ir({ fields: g });
6146
+ return a.current["/"] = g, Vr({ fields: g });
6147
6147
  }, [e, t, a]), c = fe(
6148
6148
  async (g) => {
6149
6149
  const C = Nn(g, a.current)[Mn(g)], x = C.relation, S = await E.getHandler().getFields({
@@ -6152,18 +6152,18 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6152
6152
  fields: []
6153
6153
  });
6154
6154
  for (const [R, V] of Object.entries(S))
6155
- S[R].string = hc({
6155
+ S[R].string = pc({
6156
6156
  parentTitle: C.string,
6157
6157
  title: V.string
6158
6158
  });
6159
- return a.current[g] = S, Ir({
6159
+ return a.current[g] = S, Vr({
6160
6160
  fields: S,
6161
6161
  parentKey: g
6162
6162
  });
6163
6163
  },
6164
6164
  [t]
6165
6165
  ), m = fe(async () => {
6166
- const g = await pc({ model: e, context: t }), w = await yc({
6166
+ const g = await gc({ model: e, context: t }), w = await wc({
6167
6167
  predefinedExports: g,
6168
6168
  fields: a.current,
6169
6169
  onGetFieldChilds: c
@@ -6237,7 +6237,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6237
6237
  onSavePredefinedExport: y,
6238
6238
  onRemovePredefinedExport: p
6239
6239
  };
6240
- }, Ir = ({
6240
+ }, Vr = ({
6241
6241
  fields: e,
6242
6242
  parentKey: t
6243
6243
  }) => {
@@ -6246,9 +6246,9 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6246
6246
  const o = e[i];
6247
6247
  if (o.relation && o.is_function === !0)
6248
6248
  continue;
6249
- const s = _o(o);
6249
+ const s = Io(o);
6250
6250
  n.push({
6251
- key: mc({ key: i, parentKey: t }),
6251
+ key: hc({ key: i, parentKey: t }),
6252
6252
  title: o.string,
6253
6253
  tooltip: o.help,
6254
6254
  required: o.required,
@@ -6256,7 +6256,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6256
6256
  });
6257
6257
  }
6258
6258
  return n;
6259
- }, _o = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", mc = ({
6259
+ }, Io = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", hc = ({
6260
6260
  parentKey: e,
6261
6261
  key: t
6262
6262
  }) => `${e ? e + "/" : ""}${t}`, En = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Mn = (e) => {
@@ -6264,10 +6264,10 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6264
6264
  return e;
6265
6265
  const t = e.split("/");
6266
6266
  return t[t.length - 1];
6267
- }, Nn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[En(e)], hc = ({
6267
+ }, Nn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[En(e)], pc = ({
6268
6268
  title: e,
6269
6269
  parentTitle: t
6270
- }) => `${t ? t + " → " : ""}${e}`, pc = async ({
6270
+ }) => `${t ? t + " → " : ""}${e}`, gc = async ({
6271
6271
  model: e,
6272
6272
  context: t
6273
6273
  }) => {
@@ -6287,24 +6287,24 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6287
6287
  key: o.find((d) => d.id === a).name
6288
6288
  }))
6289
6289
  }));
6290
- }, gc = ({
6290
+ }, yc = ({
6291
6291
  fields: e,
6292
6292
  keys: t
6293
- }) => vc([
6293
+ }) => bc([
6294
6294
  ...new Set(
6295
6295
  t.filter((n) => {
6296
6296
  var i, o;
6297
6297
  return n.indexOf("/") === -1 ? !((i = e["/"]) != null && i[n]) : !((o = e == null ? void 0 : e[En(n)]) != null && o[n]);
6298
6298
  }).map((n) => En(n))
6299
6299
  )
6300
- ]), yc = async ({
6300
+ ]), wc = async ({
6301
6301
  predefinedExports: e,
6302
6302
  fields: t,
6303
6303
  onGetFieldChilds: n
6304
6304
  }) => {
6305
6305
  const i = e.flatMap(
6306
6306
  (a) => a.fields.map((l) => l.key)
6307
- ), o = gc({
6307
+ ), o = yc({
6308
6308
  fields: t,
6309
6309
  keys: i
6310
6310
  }), s = [];
@@ -6318,13 +6318,13 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6318
6318
  );
6319
6319
  }
6320
6320
  return s;
6321
- }, wc = ({
6321
+ }, vc = ({
6322
6322
  keys: e,
6323
6323
  fields: t
6324
6324
  }) => e.map((n) => {
6325
6325
  const i = Mn(n), s = Nn(n, t)[i];
6326
- return _o(s) ? `${n}/id` : n;
6327
- }), vc = (e) => {
6326
+ return Io(s) ? `${n}/id` : n;
6327
+ }), bc = (e) => {
6328
6328
  const t = /* @__PURE__ */ new Map(), n = [];
6329
6329
  for (const i of e) {
6330
6330
  const o = i.split("/");
@@ -6338,7 +6338,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6338
6338
  const s = i.split("/").length, a = o.split("/").length;
6339
6339
  return s - a;
6340
6340
  }), n;
6341
- }, bc = (e) => {
6341
+ }, Cc = (e) => {
6342
6342
  const {
6343
6343
  visible: t,
6344
6344
  onClose: n,
@@ -6356,7 +6356,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6356
6356
  onGetPredefinedExports: p,
6357
6357
  onSavePredefinedExport: h,
6358
6358
  onRemovePredefinedExport: y
6359
- } = fc({
6359
+ } = mc({
6360
6360
  model: i,
6361
6361
  context: o,
6362
6362
  domain: l,
@@ -6365,7 +6365,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6365
6365
  onClose: n
6366
6366
  });
6367
6367
  return /* @__PURE__ */ r(
6368
- Ai,
6368
+ Di,
6369
6369
  {
6370
6370
  visible: t,
6371
6371
  onSucceed: f,
@@ -6380,16 +6380,16 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6380
6380
  onRemovePredefinedExport: y
6381
6381
  }
6382
6382
  );
6383
- }, Cc = (e) => {
6384
- const { ooui: t } = e;
6385
- return /* @__PURE__ */ r(wo, { ooui: t });
6386
6383
  }, xc = (e) => {
6387
6384
  const { ooui: t } = e;
6388
- return /* @__PURE__ */ r(wo, { ooui: t, showTime: !0 });
6385
+ return /* @__PURE__ */ r(vo, { ooui: t });
6389
6386
  }, Sc = (e) => {
6390
6387
  const { ooui: t } = e;
6391
- return /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(Tc, { ooui: t }) });
6392
- }, Tc = (e) => /* @__PURE__ */ r(
6388
+ return /* @__PURE__ */ r(vo, { ooui: t, showTime: !0 });
6389
+ }, Tc = (e) => {
6390
+ const { ooui: t } = e;
6391
+ return /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(Fc, { ooui: t }) });
6392
+ }, Fc = (e) => /* @__PURE__ */ r(
6393
6393
  Dn,
6394
6394
  {
6395
6395
  onChange: (n, i) => {
@@ -6398,10 +6398,10 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6398
6398
  numberOfSelectsToHide: 3,
6399
6399
  value: e.value ? Ze(e.value, "HH:mm:ss") : void 0
6400
6400
  }
6401
- ), Fc = (e) => {
6401
+ ), Rc = (e) => {
6402
6402
  const { ooui: t } = e, { required: n } = t;
6403
- return /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(Rc, { ooui: t }) });
6404
- }, Rc = (e) => {
6403
+ return /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(Oc, { ooui: t }) });
6404
+ }, Oc = (e) => {
6405
6405
  const { value: t, onChange: n, ooui: i } = e, { required: o, selectionValues: s, readOnly: a } = i, l = t == null ? void 0 : t.split(","), [d, u] = b([]), [f, c] = b();
6406
6406
  return pe(() => {
6407
6407
  if (!t) {
@@ -6412,7 +6412,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6412
6412
  u([p, void 0]), c(m);
6413
6413
  }, [t]), /* @__PURE__ */ k(Oe, { gutter: 8, wrap: !1, children: [
6414
6414
  /* @__PURE__ */ r(ue, { flex: "1", children: /* @__PURE__ */ r(
6415
- so,
6415
+ ao,
6416
6416
  {
6417
6417
  ooui: new $n({
6418
6418
  name: "model_selection",
@@ -6431,9 +6431,9 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6431
6431
  }
6432
6432
  ) }),
6433
6433
  /* @__PURE__ */ r(ue, { flex: "3", children: /* @__PURE__ */ r(
6434
- To,
6434
+ Fo,
6435
6435
  {
6436
- ooui: new $r({
6436
+ ooui: new Br({
6437
6437
  name: "object_value",
6438
6438
  relation: f,
6439
6439
  readonly: a,
@@ -6448,11 +6448,11 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6448
6448
  }
6449
6449
  ) })
6450
6450
  ] });
6451
- }, { useToken: Oc } = He, _c = (e) => {
6451
+ }, { useToken: _c } = He, Ic = (e) => {
6452
6452
  const { ooui: t } = e, { required: n } = t;
6453
- return /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(Ic, { ooui: t }) });
6454
- }, Ic = (e) => {
6455
- const { ooui: t, value: n, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Oc(), d = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ae(null), { setFieldValue: f, getFieldValue: c } = ne(Be) || {}, { t: m } = we(), p = n ? Es(n) : "", h = (x) => {
6453
+ return /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(Vc, { ooui: t }) });
6454
+ }, Vc = (e) => {
6455
+ const { ooui: t, value: n, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = _c(), d = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ae(null), { setFieldValue: f, getFieldValue: c } = ne(Be) || {}, { t: m } = we(), p = n ? Ms(n) : "", h = (x) => {
6456
6456
  i == null || i(x);
6457
6457
  };
6458
6458
  async function y() {
@@ -6465,7 +6465,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6465
6465
  }
6466
6466
  async function w(x) {
6467
6467
  x.stopPropagation(), x.preventDefault();
6468
- const S = x.target.files[0], R = await ao(S);
6468
+ const S = x.target.files[0], R = await lo(S);
6469
6469
  h(R), a && f(a, S.name);
6470
6470
  }
6471
6471
  function C() {
@@ -6505,7 +6505,7 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6505
6505
  children: "Select"
6506
6506
  }
6507
6507
  ),
6508
- /* @__PURE__ */ r(ke, { icon: /* @__PURE__ */ r(Ci, {}), disabled: !n, onClick: g, children: m("open") }),
6508
+ /* @__PURE__ */ r(ke, { icon: /* @__PURE__ */ r(xi, {}), disabled: !n, onClick: g, children: m("open") }),
6509
6509
  /* @__PURE__ */ r(
6510
6510
  ze,
6511
6511
  {
@@ -6529,10 +6529,10 @@ const { useToken: lc } = He, { TextArea: kn } = it, cc = (e) => {
6529
6529
  }, Fn = {
6530
6530
  tree: /* @__PURE__ */ r(qn, {}),
6531
6531
  form: /* @__PURE__ */ r(Ht, {}),
6532
- graph: /* @__PURE__ */ r(xi, {}),
6533
- calendar: /* @__PURE__ */ r(Si, {})
6532
+ graph: /* @__PURE__ */ r(Si, {}),
6533
+ calendar: /* @__PURE__ */ r(Ti, {})
6534
6534
  };
6535
- function Vr(e) {
6535
+ function Ar(e) {
6536
6536
  return e ? (Fn == null ? void 0 : Fn[e.type]) || /* @__PURE__ */ r(Ht, {}) : /* @__PURE__ */ r(Ht, {});
6537
6537
  }
6538
6538
  function nr(e) {
@@ -6551,7 +6551,7 @@ function nr(e) {
6551
6551
  return {
6552
6552
  id: c.view_id || m,
6553
6553
  name: c.title || p,
6554
- icon: Vr(c),
6554
+ icon: Ar(c),
6555
6555
  selected: t.view_id === c.view_id
6556
6556
  };
6557
6557
  })
@@ -6582,7 +6582,7 @@ function nr(e) {
6582
6582
  ze,
6583
6583
  {
6584
6584
  tooltip: a ? l("viewAs") + " " + l(a.type) : "",
6585
- icon: Vr(a),
6585
+ icon: Ar(a),
6586
6586
  style: {
6587
6587
  width: 50,
6588
6588
  borderTopRightRadius: 0,
@@ -6595,7 +6595,7 @@ function nr(e) {
6595
6595
  }
6596
6596
  ),
6597
6597
  /* @__PURE__ */ r(
6598
- Zr,
6598
+ eo,
6599
6599
  {
6600
6600
  onRetrieveData: async () => d,
6601
6601
  onItemClick: f,
@@ -6641,7 +6641,7 @@ function qe(e) {
6641
6641
  }
6642
6642
  );
6643
6643
  }
6644
- function Io(e) {
6644
+ function Vo(e) {
6645
6645
  const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: i } = ne(
6646
6646
  rt
6647
6647
  ), { t: o } = we(), s = () => {
@@ -6666,12 +6666,12 @@ function Io(e) {
6666
6666
  }
6667
6667
  );
6668
6668
  }
6669
- const { confirm: Vc } = Je, Ac = ({
6669
+ const { confirm: Ac } = Je, Dc = ({
6670
6670
  onOk: e,
6671
6671
  onCancel: t,
6672
6672
  t: n
6673
6673
  }) => {
6674
- Vc({
6674
+ Ac({
6675
6675
  title: n("unsavedChanges"),
6676
6676
  icon: /* @__PURE__ */ r(vt, {}),
6677
6677
  centered: !0,
@@ -6682,7 +6682,7 @@ const { confirm: Vc } = Je, Ac = ({
6682
6682
  onCancel: t
6683
6683
  });
6684
6684
  };
6685
- async function Vo(e, t, n) {
6685
+ async function Ao(e, t, n) {
6686
6686
  const i = (await E.getHandler().getLogInfo({
6687
6687
  model: e,
6688
6688
  ids: [t]
@@ -6705,7 +6705,7 @@ async function Vo(e, t, n) {
6705
6705
  ] })
6706
6706
  );
6707
6707
  }
6708
- const Dc = (e) => {
6708
+ const kc = (e) => {
6709
6709
  const {
6710
6710
  numberOfAttachments: t,
6711
6711
  attachments: n = [],
@@ -6720,7 +6720,7 @@ const Dc = (e) => {
6720
6720
  /* @__PURE__ */ r(dn, { style: { fontSize: 12 } })
6721
6721
  ] });
6722
6722
  return /* @__PURE__ */ r(
6723
- Zr,
6723
+ eo,
6724
6724
  {
6725
6725
  ref: u,
6726
6726
  onRetrieveData: async () => [
@@ -6803,7 +6803,7 @@ const Dc = (e) => {
6803
6803
  }
6804
6804
  );
6805
6805
  };
6806
- function kc(e) {
6806
+ function Ec(e) {
6807
6807
  const {
6808
6808
  attachments: t,
6809
6809
  disabled: n = !1,
@@ -6868,7 +6868,7 @@ function kc(e) {
6868
6868
  h();
6869
6869
  }, [h]), /* @__PURE__ */ k(Q, { children: [
6870
6870
  /* @__PURE__ */ r(
6871
- Dc,
6871
+ kc,
6872
6872
  {
6873
6873
  numberOfAttachments: t.length,
6874
6874
  attachments: u,
@@ -6894,7 +6894,7 @@ function kc(e) {
6894
6894
  )
6895
6895
  ] });
6896
6896
  }
6897
- function Ec({ toolbar: e }) {
6897
+ function Mc({ toolbar: e }) {
6898
6898
  const {
6899
6899
  availableViews: t,
6900
6900
  currentView: n,
@@ -6927,7 +6927,7 @@ function Ec({ toolbar: e }) {
6927
6927
  ), { openRelate: A, openDefaultActionForModel: L } = O || {};
6928
6928
  function G(I) {
6929
6929
  if (s) {
6930
- Ac({
6930
+ Dc({
6931
6931
  t: T,
6932
6932
  onOk: () => {
6933
6933
  I();
@@ -7015,7 +7015,7 @@ function Ec({ toolbar: e }) {
7015
7015
  Rt()
7016
7016
  ] }),
7017
7017
  /* @__PURE__ */ r(
7018
- Io,
7018
+ Vo,
7019
7019
  {
7020
7020
  disabled: a || C || h || y
7021
7021
  }
@@ -7023,7 +7023,7 @@ function Ec({ toolbar: e }) {
7023
7023
  /* @__PURE__ */ r(
7024
7024
  qe,
7025
7025
  {
7026
- icon: /* @__PURE__ */ r(Ti, {}),
7026
+ icon: /* @__PURE__ */ r(Fi, {}),
7027
7027
  tooltip: T("save"),
7028
7028
  disabled: !s || U,
7029
7029
  loading: a,
@@ -7054,12 +7054,12 @@ function Ec({ toolbar: e }) {
7054
7054
  /* @__PURE__ */ r(
7055
7055
  qe,
7056
7056
  {
7057
- icon: /* @__PURE__ */ r(Jr, {}),
7057
+ icon: /* @__PURE__ */ r(Xr, {}),
7058
7058
  tooltip: T("showLogs"),
7059
7059
  disabled: a || l === void 0 || h || y || C,
7060
7060
  loading: !1,
7061
7061
  onClick: () => {
7062
- Vo(m, l, T);
7062
+ Ao(m, l, T);
7063
7063
  }
7064
7064
  }
7065
7065
  ),
@@ -7096,7 +7096,7 @@ function Ec({ toolbar: e }) {
7096
7096
  /* @__PURE__ */ r(
7097
7097
  qe,
7098
7098
  {
7099
- icon: /* @__PURE__ */ r(qr, {}),
7099
+ icon: /* @__PURE__ */ r(zr, {}),
7100
7100
  tooltip: T("previous"),
7101
7101
  disabled: U,
7102
7102
  loading: !1,
@@ -7108,7 +7108,7 @@ function Ec({ toolbar: e }) {
7108
7108
  /* @__PURE__ */ r(
7109
7109
  qe,
7110
7110
  {
7111
- icon: /* @__PURE__ */ r(zr, {}),
7111
+ icon: /* @__PURE__ */ r(Jr, {}),
7112
7112
  tooltip: T("next"),
7113
7113
  disabled: U,
7114
7114
  loading: !1,
@@ -7163,7 +7163,7 @@ function Ec({ toolbar: e }) {
7163
7163
  /* @__PURE__ */ r(
7164
7164
  Vt,
7165
7165
  {
7166
- icon: /* @__PURE__ */ r(Gr, {}),
7166
+ icon: /* @__PURE__ */ r(qr, {}),
7167
7167
  disabled: U,
7168
7168
  placement: "bottomRight",
7169
7169
  onRetrieveData: async () => [
@@ -7183,7 +7183,7 @@ function Ec({ toolbar: e }) {
7183
7183
  }
7184
7184
  ),
7185
7185
  /* @__PURE__ */ r(
7186
- kc,
7186
+ Ec,
7187
7187
  {
7188
7188
  disabled: U,
7189
7189
  attachments: x,
@@ -7195,7 +7195,7 @@ function Ec({ toolbar: e }) {
7195
7195
  return;
7196
7196
  const M = I.currentId;
7197
7197
  L({
7198
- ...Ar(m, M),
7198
+ ...Dr(m, M),
7199
7199
  initialViewType: "form"
7200
7200
  });
7201
7201
  },
@@ -7207,7 +7207,7 @@ function Ec({ toolbar: e }) {
7207
7207
  return;
7208
7208
  const M = I.currentId;
7209
7209
  L({
7210
- ...Ar(m, M),
7210
+ ...Dr(m, M),
7211
7211
  initialViewType: "tree"
7212
7212
  });
7213
7213
  },
@@ -7233,7 +7233,7 @@ async function Ot({
7233
7233
  const t = await (e == null ? void 0 : e());
7234
7234
  return t != null && t.succeed ? { succeed: !0, currentId: t.id } : { succeed: !1, currentId: void 0 };
7235
7235
  }
7236
- function Ar(e, t) {
7236
+ function Dr(e, t) {
7237
7237
  return {
7238
7238
  model: "ir.attachment",
7239
7239
  domain: [
@@ -7249,8 +7249,8 @@ function Ar(e, t) {
7249
7249
  }
7250
7250
  };
7251
7251
  }
7252
- const { useToken: Mc } = He, Ao = (e) => {
7253
- const { ooui: t, value: n, onChange: i, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: d } = t, { token: u } = Mc(), f = d && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, c = ne(Be), { elementHasLostFocus: m } = c || {}, [p, h] = b(!1), [y, g] = b(!1);
7252
+ const { useToken: Nc } = He, Do = (e) => {
7253
+ const { ooui: t, value: n, onChange: i, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: d } = t, { token: u } = Nc(), f = d && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, c = ne(Be), { elementHasLostFocus: m } = c || {}, [p, h] = b(!1), [y, g] = b(!1);
7254
7254
  pe(() => {
7255
7255
  l && !p && g(!1), !n && !l && (h(!0), g(!0));
7256
7256
  }, [p, l]);
@@ -7271,7 +7271,7 @@ const { useToken: Mc } = He, Ao = (e) => {
7271
7271
  ) : /* @__PURE__ */ r(
7272
7272
  ke,
7273
7273
  {
7274
- icon: /* @__PURE__ */ r(Xr, {}),
7274
+ icon: /* @__PURE__ */ r(Qr, {}),
7275
7275
  onClick: () => {
7276
7276
  h(!0), g(!0);
7277
7277
  },
@@ -7305,26 +7305,26 @@ const { useToken: Mc } = He, Ao = (e) => {
7305
7305
  }
7306
7306
  ) })
7307
7307
  ] });
7308
- }, Nc = (e) => {
7308
+ }, Pc = (e) => {
7309
7309
  const { ooui: t } = e, { required: n } = t;
7310
7310
  return /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(
7311
- Ao,
7311
+ Do,
7312
7312
  {
7313
7313
  ooui: t,
7314
- valueValidator: (i) => i ? es(i) : !1
7314
+ valueValidator: (i) => i ? ts(i) : !1
7315
7315
  }
7316
7316
  ) });
7317
- }, Pc = (e) => {
7317
+ }, Lc = (e) => {
7318
7318
  const { ooui: t } = e, { required: n } = t;
7319
7319
  return /* @__PURE__ */ r(Ce, { required: n, ...e, children: /* @__PURE__ */ r(
7320
- Ao,
7320
+ Do,
7321
7321
  {
7322
7322
  ooui: t,
7323
7323
  linkPrefix: "mailto:",
7324
- valueValidator: (i) => i ? ts(i) : !1
7324
+ valueValidator: (i) => i ? ns(i) : !1
7325
7325
  }
7326
7326
  ) });
7327
- }, Lc = (e) => {
7327
+ }, $c = (e) => {
7328
7328
  const { visible: t, onIdSubmitted: n, onCancel: i, isSearching: o } = e, { t: s } = we(), a = ae();
7329
7329
  function l(d) {
7330
7330
  const u = d.id.split(",").map((f) => parseInt(f.trim()));
@@ -7386,9 +7386,9 @@ const { useToken: Mc } = He, Ao = (e) => {
7386
7386
  ] })
7387
7387
  }
7388
7388
  );
7389
- }, { useToken: $c } = He;
7390
- function Do(e) {
7391
- const { badgeNumber: t = 0, ...n } = e, { token: i } = $c();
7389
+ }, { useToken: Bc } = He;
7390
+ function ko(e) {
7391
+ const { badgeNumber: t = 0, ...n } = e, { token: i } = Bc();
7392
7392
  return /* @__PURE__ */ k("div", { style: { position: "relative" }, children: [
7393
7393
  t > 0 && /* @__PURE__ */ r("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ r(
7394
7394
  "span",
@@ -7415,7 +7415,7 @@ function Do(e) {
7415
7415
  )
7416
7416
  ] });
7417
7417
  }
7418
- function Bc({ refreshGraph: e }) {
7418
+ function Hc({ refreshGraph: e }) {
7419
7419
  const { t } = we(), {
7420
7420
  availableViews: n,
7421
7421
  currentView: i,
@@ -7429,10 +7429,10 @@ function Bc({ refreshGraph: e }) {
7429
7429
  } = ne(rt);
7430
7430
  return /* @__PURE__ */ k(Ue, { wrap: !0, children: [
7431
7431
  /* @__PURE__ */ r(
7432
- Do,
7432
+ ko,
7433
7433
  {
7434
7434
  icon: /* @__PURE__ */ r(
7435
- Qr,
7435
+ Zr,
7436
7436
  {
7437
7437
  style: { color: a ? "white" : void 0 }
7438
7438
  }
@@ -7472,7 +7472,7 @@ function Bc({ refreshGraph: e }) {
7472
7472
  )
7473
7473
  ] });
7474
7474
  }
7475
- const { useToken: Hc } = He, { Title: Kc, Text: tn } = Wt;
7475
+ const { useToken: Kc } = He, { Title: jc, Text: tn } = Wt;
7476
7476
  function yn(e) {
7477
7477
  const { title: t, children: n } = e, {
7478
7478
  title: i,
@@ -7482,7 +7482,7 @@ function yn(e) {
7482
7482
  results: l,
7483
7483
  totalItems: d,
7484
7484
  selectedRowItems: u
7485
- } = ne(rt), { t: f } = we(), { token: c } = Hc();
7485
+ } = ne(rt), { t: f } = we(), { token: c } = Kc();
7486
7486
  function m() {
7487
7487
  if ((o == null ? void 0 : o.type) === "form")
7488
7488
  return s ? d === 0 ? /* @__PURE__ */ k(Q, { children: [
@@ -7564,7 +7564,7 @@ function yn(e) {
7564
7564
  align: "middle",
7565
7565
  children: [
7566
7566
  /* @__PURE__ */ k(ue, { flex: 2, children: [
7567
- /* @__PURE__ */ r(Kc, { level: 3, style: { marginBottom: 0 }, children: t || i }),
7567
+ /* @__PURE__ */ r(jc, { level: 3, style: { marginBottom: 0 }, children: t || i }),
7568
7568
  m()
7569
7569
  ] }),
7570
7570
  /* @__PURE__ */ r(ue, { flex: 3, children: /* @__PURE__ */ r(Oe, { justify: "end", children: n }) })
@@ -7576,7 +7576,7 @@ function yn(e) {
7576
7576
  }
7577
7577
  );
7578
7578
  }
7579
- const jc = (e) => {
7579
+ const Wc = (e) => {
7580
7580
  const { viewData: t, visible: n, model: i, context: o, domain: s, formView: a, treeView: l } = e, d = ae(), u = ne(
7581
7581
  rt
7582
7582
  ), {
@@ -7606,7 +7606,7 @@ const jc = (e) => {
7606
7606
  }, [T]), pe(() => {
7607
7607
  t.view_id !== O.view_id && L(!0);
7608
7608
  }, [O]);
7609
- const { clear: G, searchFilterLoading: B, searchError: q, offset: N, tableRefreshing: Z } = bo({
7609
+ const { clear: G, searchFilterLoading: B, searchError: q, offset: N, tableRefreshing: Z } = Co({
7610
7610
  model: i,
7611
7611
  setSearchTreeNameSearch: R,
7612
7612
  setSelectedRowItems: h,
@@ -7631,7 +7631,7 @@ const jc = (e) => {
7631
7631
  });
7632
7632
  return !n || !t ? null : /* @__PURE__ */ k(Q, { children: [
7633
7633
  /* @__PURE__ */ r(yn, { title: t.title || t.name, children: /* @__PURE__ */ r(
7634
- Bc,
7634
+ Hc,
7635
7635
  {
7636
7636
  refreshGraph: () => {
7637
7637
  d.current.refresh();
@@ -7639,10 +7639,10 @@ const jc = (e) => {
7639
7639
  }
7640
7640
  ) }),
7641
7641
  /* @__PURE__ */ r(
7642
- po,
7642
+ go,
7643
7643
  {
7644
7644
  fields: { ...l.fields, ...a.fields },
7645
- searchFields: uo([
7645
+ searchFields: fo([
7646
7646
  a.search_fields,
7647
7647
  l.search_fields
7648
7648
  ]),
@@ -7672,7 +7672,7 @@ const jc = (e) => {
7672
7672
  }
7673
7673
  )
7674
7674
  ] });
7675
- }, Wc = (e) => {
7675
+ }, Uc = (e) => {
7676
7676
  const {
7677
7677
  visible: t,
7678
7678
  formRef: n,
@@ -7688,7 +7688,7 @@ const jc = (e) => {
7688
7688
  setCurrentItemIndex: m
7689
7689
  } = e;
7690
7690
  return t ? /* @__PURE__ */ k(Q, { children: [
7691
- /* @__PURE__ */ r(yn, { children: /* @__PURE__ */ r(Ec, { toolbar: a == null ? void 0 : a.toolbar }) }),
7691
+ /* @__PURE__ */ r(yn, { children: /* @__PURE__ */ r(Mc, { toolbar: a == null ? void 0 : a.toolbar }) }),
7692
7692
  /* @__PURE__ */ r(
7693
7693
  zt,
7694
7694
  {
@@ -7708,7 +7708,7 @@ const jc = (e) => {
7708
7708
  )
7709
7709
  ] }) : null;
7710
7710
  };
7711
- function Uc(e) {
7711
+ function Yc(e) {
7712
7712
  const { onSearch: t, disabled: n = !1, searchText: i } = e, { t: o } = we(), [s] = ct.useForm(), [a, l] = b(!1);
7713
7713
  function d(f) {
7714
7714
  t(f.search);
@@ -7730,7 +7730,7 @@ function Uc(e) {
7730
7730
  },
7731
7731
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
7732
7732
  suffix: (a || i && i.length > 0) && /* @__PURE__ */ r(gt, { title: o("clear"), children: /* @__PURE__ */ r(
7733
- Fi,
7733
+ Ri,
7734
7734
  {
7735
7735
  style: { color: "rgba(0,0,0,.45)" },
7736
7736
  onClick: u
@@ -7749,7 +7749,7 @@ function Uc(e) {
7749
7749
  ) })
7750
7750
  ] }) });
7751
7751
  }
7752
- const Yc = {
7752
+ const Gc = {
7753
7753
  true: "Sí",
7754
7754
  false: "No",
7755
7755
  simple_search: "Búsqueda simple",
@@ -7840,7 +7840,7 @@ const Yc = {
7840
7840
  recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta pàgina.",
7841
7841
  selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
7842
7842
  allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
7843
- }, Gc = {
7843
+ }, qc = {
7844
7844
  true: "Yes",
7845
7845
  false: "No",
7846
7846
  simple_search: "Simple search",
@@ -7931,7 +7931,7 @@ const Yc = {
7931
7931
  recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta pàgina.",
7932
7932
  selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
7933
7933
  allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
7934
- }, qc = {
7934
+ }, zc = {
7935
7935
  true: "Sí",
7936
7936
  false: "No",
7937
7937
  simple_search: "Búsqueda simple",
@@ -8022,26 +8022,26 @@ const Yc = {
8022
8022
  recordsSelected: "Hay {numberOfSelectedRows} registros seleccionados en ésta página.",
8023
8023
  selectAllRecords: "Seleccionar todos los {totalRecords} registros.",
8024
8024
  allRecordsSelected: "Hay {totalRecords} registros seleccionados."
8025
- }, zc = {
8026
- ca_ES: Yc,
8027
- en_US: Gc,
8028
- es_ES: qc
8029
8025
  }, Jc = {
8026
+ ca_ES: Gc,
8027
+ en_US: qc,
8028
+ es_ES: zc
8029
+ }, Xc = {
8030
8030
  erpFeatures: {},
8031
8031
  globalValues: {},
8032
8032
  rootContext: {},
8033
8033
  devMode: !1
8034
- }, ko = nt.createContext(Jc), Eo = () => {
8035
- const e = ne(ko);
8034
+ }, Eo = nt.createContext(Xc), Mo = () => {
8035
+ const e = ne(Eo);
8036
8036
  if (!e)
8037
8037
  throw new Error(
8038
8038
  "useConfigContext must be used within a ConfigContextProvider"
8039
8039
  );
8040
8040
  return e;
8041
- }, Xc = (e) => {
8042
- const { erpFeatures: t } = Eo();
8041
+ }, Qc = (e) => {
8042
+ const { erpFeatures: t } = Mo();
8043
8043
  return !!t[e];
8044
- }, Qc = kr(
8044
+ }, Zc = Er(
8045
8045
  ({
8046
8046
  erpFeatures: e,
8047
8047
  locale: t,
@@ -8060,20 +8060,20 @@ const Yc = {
8060
8060
  }),
8061
8061
  [e, i, o, s]
8062
8062
  );
8063
- return /* @__PURE__ */ r(ko.Provider, { value: l, children: /* @__PURE__ */ r(
8064
- Di,
8063
+ return /* @__PURE__ */ r(Eo.Provider, { value: l, children: /* @__PURE__ */ r(
8064
+ ki,
8065
8065
  {
8066
8066
  locale: t,
8067
- localizedStrings: ki(zc, n),
8067
+ localizedStrings: Ei(Jc, n),
8068
8068
  children: a
8069
8069
  }
8070
8070
  ) });
8071
8071
  }
8072
8072
  );
8073
- Qc.displayName = "ConfigContextProvider";
8073
+ Zc.displayName = "ConfigContextProvider";
8074
8074
  var rr = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e))(rr || {});
8075
- const Vu = Object.values(rr);
8076
- function Zc(e) {
8075
+ const Au = Object.values(rr);
8076
+ function ed(e) {
8077
8077
  var U;
8078
8078
  const {
8079
8079
  availableViews: t,
@@ -8099,7 +8099,7 @@ function Zc(e) {
8099
8099
  results: R,
8100
8100
  limit: V,
8101
8101
  totalItems: D
8102
- } = ne(rt), { parentContext: F = {}, treeExpandable: T, toolbar: _ } = e, v = Xc(
8102
+ } = ne(rt), { parentContext: F = {}, treeExpandable: T, toolbar: _ } = e, v = Qc(
8103
8103
  rr.FEATURE_ADVANCED_EXPORT
8104
8104
  ), { t: O } = we(), A = ne(
8105
8105
  Pt
@@ -8170,7 +8170,7 @@ function Zc(e) {
8170
8170
  ] }),
8171
8171
  T ? null : /* @__PURE__ */ k(Q, { children: [
8172
8172
  /* @__PURE__ */ r(
8173
- Uc,
8173
+ Yc,
8174
8174
  {
8175
8175
  disabled: l || a || C,
8176
8176
  searchText: w,
@@ -8180,10 +8180,10 @@ function Zc(e) {
8180
8180
  }
8181
8181
  ),
8182
8182
  !T && /* @__PURE__ */ r(
8183
- Do,
8183
+ ko,
8184
8184
  {
8185
8185
  icon: /* @__PURE__ */ r(
8186
- Qr,
8186
+ Zr,
8187
8187
  {
8188
8188
  style: { color: h ? "white" : void 0 }
8189
8189
  }
@@ -8198,7 +8198,7 @@ function Zc(e) {
8198
8198
  }
8199
8199
  ),
8200
8200
  Ct(),
8201
- /* @__PURE__ */ r(Io, { disabled: C }),
8201
+ /* @__PURE__ */ r(Vo, { disabled: C }),
8202
8202
  /* @__PURE__ */ r(
8203
8203
  qe,
8204
8204
  {
@@ -8224,12 +8224,12 @@ function Zc(e) {
8224
8224
  /* @__PURE__ */ r(
8225
8225
  qe,
8226
8226
  {
8227
- icon: /* @__PURE__ */ r(Jr, {}),
8227
+ icon: /* @__PURE__ */ r(Xr, {}),
8228
8228
  tooltip: O("showLogs"),
8229
8229
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || C,
8230
8230
  loading: !1,
8231
8231
  onClick: () => {
8232
- Vo(u, o[0].id, O);
8232
+ Ao(u, o[0].id, O);
8233
8233
  }
8234
8234
  }
8235
8235
  ),
@@ -8303,7 +8303,7 @@ function Zc(e) {
8303
8303
  {
8304
8304
  placement: "bottomRight",
8305
8305
  icon: /* @__PURE__ */ r(
8306
- jr,
8306
+ Wr,
8307
8307
  {
8308
8308
  component: () => /* @__PURE__ */ k(
8309
8309
  "svg",
@@ -8364,7 +8364,7 @@ function Zc(e) {
8364
8364
  }
8365
8365
  ),
8366
8366
  /* @__PURE__ */ r(
8367
- bc,
8367
+ Cc,
8368
8368
  {
8369
8369
  visible: G,
8370
8370
  onClose: () => B(!1),
@@ -8386,7 +8386,7 @@ function Zc(e) {
8386
8386
  function Ct() {
8387
8387
  return /* @__PURE__ */ r("div", { className: "inline-block w-2" });
8388
8388
  }
8389
- const ed = (e) => {
8389
+ const td = (e) => {
8390
8390
  const {
8391
8391
  visible: t,
8392
8392
  searchTreeRef: n,
@@ -8406,7 +8406,7 @@ const ed = (e) => {
8406
8406
  );
8407
8407
  return t ? /* @__PURE__ */ k(Q, { children: [
8408
8408
  /* @__PURE__ */ r(yn, { children: /* @__PURE__ */ r(
8409
- Zc,
8409
+ ed,
8410
8410
  {
8411
8411
  toolbar: a == null ? void 0 : a.toolbar,
8412
8412
  parentContext: o,
@@ -8414,7 +8414,7 @@ const ed = (e) => {
8414
8414
  }
8415
8415
  ) }),
8416
8416
  /* @__PURE__ */ r(
8417
- Co,
8417
+ xo,
8418
8418
  {
8419
8419
  ref: n,
8420
8420
  rootTree: !0,
@@ -8437,7 +8437,7 @@ const ed = (e) => {
8437
8437
  }
8438
8438
  )
8439
8439
  ] }) : null;
8440
- }, or = nt.createContext(null), td = (e) => {
8440
+ }, or = nt.createContext(null), nd = (e) => {
8441
8441
  const [t, n] = b(!1), [i, o] = b(!1), { children: s, dashboardRef: a, openAction: l } = e;
8442
8442
  return /* @__PURE__ */ r(
8443
8443
  or.Provider,
@@ -8454,14 +8454,14 @@ const ed = (e) => {
8454
8454
  }
8455
8455
  );
8456
8456
  };
8457
- function nd() {
8457
+ function rd() {
8458
8458
  const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: i } = ne(or), { t: o } = we();
8459
8459
  return /* @__PURE__ */ k(Ue, { wrap: !0, children: [
8460
8460
  /* @__PURE__ */ r(
8461
8461
  qe,
8462
8462
  {
8463
8463
  icon: /* @__PURE__ */ r(
8464
- Ri,
8464
+ Oi,
8465
8465
  {
8466
8466
  style: { color: n ? "white" : void 0 }
8467
8467
  }
@@ -8475,11 +8475,11 @@ function nd() {
8475
8475
  }
8476
8476
  }
8477
8477
  ),
8478
- rd(),
8478
+ od(),
8479
8479
  /* @__PURE__ */ r(
8480
8480
  qe,
8481
8481
  {
8482
- icon: /* @__PURE__ */ r(Oi, {}),
8482
+ icon: /* @__PURE__ */ r(_i, {}),
8483
8483
  tooltip: o("configDashboard"),
8484
8484
  disabled: e,
8485
8485
  loading: !1,
@@ -8502,24 +8502,24 @@ function nd() {
8502
8502
  )
8503
8503
  ] });
8504
8504
  }
8505
- function rd() {
8505
+ function od() {
8506
8506
  return /* @__PURE__ */ r("div", { className: "inline-block w-2" });
8507
8507
  }
8508
- const od = (e) => {
8508
+ const id = (e) => {
8509
8509
  const { dashboardData: t, visible: n } = e, i = ae(), o = ne(
8510
8510
  ut
8511
8511
  ), { openShortcut: s } = o || {};
8512
8512
  return !t || !n ? null : /* @__PURE__ */ k(
8513
- td,
8513
+ nd,
8514
8514
  {
8515
8515
  dashboardRef: i,
8516
8516
  openAction: (a) => {
8517
8517
  s(a);
8518
8518
  },
8519
8519
  children: [
8520
- /* @__PURE__ */ r(yn, { children: /* @__PURE__ */ r(nd, {}) }),
8520
+ /* @__PURE__ */ r(yn, { children: /* @__PURE__ */ r(rd, {}) }),
8521
8521
  /* @__PURE__ */ r(
8522
- gd,
8522
+ yd,
8523
8523
  {
8524
8524
  ref: i,
8525
8525
  model: t.model,
@@ -8532,7 +8532,7 @@ const od = (e) => {
8532
8532
  }
8533
8533
  );
8534
8534
  };
8535
- async function id(e) {
8535
+ async function sd(e) {
8536
8536
  const t = await Promise.all(
8537
8537
  e.map(async (i) => {
8538
8538
  try {
@@ -8547,7 +8547,7 @@ async function id(e) {
8547
8547
  info: t[o]
8548
8548
  })).filter((i) => i.info !== null);
8549
8549
  }
8550
- function sd(e, t) {
8550
+ function ad(e, t) {
8551
8551
  const {
8552
8552
  domain: n,
8553
8553
  model: i,
@@ -8576,7 +8576,7 @@ function sd(e, t) {
8576
8576
  openAction: Ee,
8577
8577
  onRemoveTab: Me
8578
8578
  } = re || {};
8579
- ns(
8579
+ rs(
8580
8580
  "ctrl+g,command+g",
8581
8581
  (j) => {
8582
8582
  j.preventDefault(), se();
@@ -8611,7 +8611,7 @@ function sd(e, t) {
8611
8611
  viewTuple: he
8612
8612
  });
8613
8613
  }
8614
- const Ve = await id(ge);
8614
+ const Ve = await sd(ge);
8615
8615
  for (const he of Ve) {
8616
8616
  if (!he)
8617
8617
  continue;
@@ -8735,7 +8735,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8735
8735
  switch (j.type) {
8736
8736
  case "form":
8737
8737
  return /* @__PURE__ */ r(
8738
- Wc,
8738
+ Uc,
8739
8739
  {
8740
8740
  formRef: le,
8741
8741
  currentId: F,
@@ -8754,7 +8754,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8754
8754
  );
8755
8755
  case "tree":
8756
8756
  return /* @__PURE__ */ r(
8757
- ed,
8757
+ td,
8758
8758
  {
8759
8759
  visible: w.type === j.type && w.view_id === j.view_id,
8760
8760
  limit: g,
@@ -8775,7 +8775,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8775
8775
  );
8776
8776
  case "graph":
8777
8777
  return /* @__PURE__ */ r(
8778
- jc,
8778
+ Wc,
8779
8779
  {
8780
8780
  visible: w.type === j.type && w.view_id === j.view_id,
8781
8781
  viewData: j,
@@ -8789,7 +8789,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8789
8789
  );
8790
8790
  case "dashboard":
8791
8791
  return /* @__PURE__ */ r(
8792
- od,
8792
+ id,
8793
8793
  {
8794
8794
  dashboardData: j,
8795
8795
  visible: w.type === j.type && w.view_id === j.view_id
@@ -8811,7 +8811,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8811
8811
  }
8812
8812
  }
8813
8813
  return R ? /* @__PURE__ */ r($e, {}) : w ? /* @__PURE__ */ k(
8814
- wa,
8814
+ va,
8815
8815
  {
8816
8816
  title: a,
8817
8817
  currentView: w,
@@ -8840,7 +8840,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8840
8840
  children: [
8841
8841
  We(),
8842
8842
  /* @__PURE__ */ r(
8843
- Lc,
8843
+ $c,
8844
8844
  {
8845
8845
  visible: ee,
8846
8846
  onIdSubmitted: _e,
@@ -8854,8 +8854,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8854
8854
  }
8855
8855
  ) : null;
8856
8856
  }
8857
- const Mo = yt(sd);
8858
- async function ad({
8857
+ const No = yt(ad);
8858
+ async function ld({
8859
8859
  actionId: e,
8860
8860
  rootContext: t = {},
8861
8861
  globalValues: n = {}
@@ -8907,7 +8907,7 @@ async function ad({
8907
8907
  treeExpandable: p
8908
8908
  };
8909
8909
  }
8910
- const ld = as(ls), cd = (e) => {
8910
+ const cd = ls(cs), dd = (e) => {
8911
8911
  const { children: t = [], onPositionItemsChanged: n } = e, i = nt.Children.map(
8912
8912
  t,
8913
8913
  (o) => {
@@ -8916,7 +8916,7 @@ const ld = as(ls), cd = (e) => {
8916
8916
  }
8917
8917
  );
8918
8918
  return /* @__PURE__ */ r(
8919
- ld,
8919
+ cd,
8920
8920
  {
8921
8921
  className: "layout",
8922
8922
  cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
@@ -8936,8 +8936,8 @@ const ld = as(ls), cd = (e) => {
8936
8936
  children: i
8937
8937
  }
8938
8938
  );
8939
- }, { useToken: dd } = He, { Text: ud } = Wt, fd = (e) => {
8940
- const { title: t, children: n, action: i, openAction: o } = e, { token: s } = dd();
8939
+ }, { useToken: ud } = He, { Text: fd } = Wt, md = (e) => {
8940
+ const { title: t, children: n, action: i, openAction: o } = e, { token: s } = ud();
8941
8941
  return /* @__PURE__ */ k(
8942
8942
  "div",
8943
8943
  {
@@ -8973,11 +8973,11 @@ const ld = as(ls), cd = (e) => {
8973
8973
  cursor: "grab",
8974
8974
  overflow: "hidden"
8975
8975
  },
8976
- children: /* @__PURE__ */ r(ud, { ellipsis: !0, children: t })
8976
+ children: /* @__PURE__ */ r(fd, { ellipsis: !0, children: t })
8977
8977
  }
8978
8978
  ),
8979
8979
  i && /* @__PURE__ */ r(ue, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ r(Oe, { justify: "end", align: "middle", children: /* @__PURE__ */ r(
8980
- _i,
8980
+ Ii,
8981
8981
  {
8982
8982
  style: { cursor: "pointer" },
8983
8983
  onClick: () => {
@@ -8988,12 +8988,12 @@ const ld = as(ls), cd = (e) => {
8988
8988
  ]
8989
8989
  }
8990
8990
  ),
8991
- /* @__PURE__ */ r(eo, { children: n })
8991
+ /* @__PURE__ */ r(to, { children: n })
8992
8992
  ]
8993
8993
  }
8994
8994
  );
8995
8995
  };
8996
- function md(e) {
8996
+ function hd(e) {
8997
8997
  const {
8998
8998
  action: t,
8999
8999
  model: n,
@@ -9105,7 +9105,7 @@ function md(e) {
9105
9105
  ] });
9106
9106
  return N ? /* @__PURE__ */ r(Qe, { className: "mt-10", message: N, type: "error", banner: !0 }) : d ? /* @__PURE__ */ r($e, { style: { padding: "2rem" } }) : ve();
9107
9107
  }
9108
- const hd = (e) => {
9108
+ const pd = (e) => {
9109
9109
  const { model: t } = e, [n, i] = b();
9110
9110
  pe(() => {
9111
9111
  o();
@@ -9120,7 +9120,7 @@ const hd = (e) => {
9120
9120
  }
9121
9121
  return /* @__PURE__ */ r("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ r(zt, { ...e, model: t, id: n, readOnly: !0 }) });
9122
9122
  }, Rn = "line_ids";
9123
- function pd(e, t) {
9123
+ function gd(e, t) {
9124
9124
  const { model: n, context: i = {}, id: o, configAction: s } = e, [a, l] = b([]), [d, u] = b(!1), [f, c] = b(), {
9125
9125
  setIsLoading: m,
9126
9126
  openAction: p,
@@ -9195,7 +9195,7 @@ function pd(e, t) {
9195
9195
  for (const A of v) {
9196
9196
  const { values: L } = A;
9197
9197
  if (L.action_id && L.action_id.length > 0) {
9198
- const G = parseInt(L.action_id[0], 10), B = await ad({
9198
+ const G = parseInt(L.action_id[0], 10), B = await ld({
9199
9199
  actionId: G,
9200
9200
  rootContext: i
9201
9201
  });
@@ -9250,7 +9250,7 @@ function pd(e, t) {
9250
9250
  async function _() {
9251
9251
  p(s);
9252
9252
  }
9253
- return d ? /* @__PURE__ */ r(st, {}) : f ? /* @__PURE__ */ r(Qe, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ r(cd, { onPositionItemsChanged: T, children: a.map((v, O) => {
9253
+ return d ? /* @__PURE__ */ r(st, {}) : f ? /* @__PURE__ */ r(Qe, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ r(dd, { onPositionItemsChanged: T, children: a.map((v, O) => {
9254
9254
  const { actionData: A, values: L } = v, { position: G, id: B } = L, {
9255
9255
  actionId: q,
9256
9256
  actionType: N,
@@ -9284,10 +9284,10 @@ function pd(e, t) {
9284
9284
  }
9285
9285
  );
9286
9286
  else if ((M == null ? void 0 : M.type) === "form")
9287
- z = /* @__PURE__ */ r(hd, { model: U, actionDomain: I });
9287
+ z = /* @__PURE__ */ r(pd, { model: U, actionDomain: I });
9288
9288
  else if ((M == null ? void 0 : M.type) === "tree")
9289
9289
  z = /* @__PURE__ */ r(
9290
- md,
9290
+ hd,
9291
9291
  {
9292
9292
  model: U,
9293
9293
  domain: I,
@@ -9322,7 +9322,7 @@ function pd(e, t) {
9322
9322
  else if (M !== void 0) {
9323
9323
  const W = M && Array.isArray(M.id) ? { ...M, id: M.id[0] } : M;
9324
9324
  z = /* @__PURE__ */ r(
9325
- Mo,
9325
+ No,
9326
9326
  {
9327
9327
  action_id: q,
9328
9328
  action_type: N,
@@ -9363,7 +9363,7 @@ function pd(e, t) {
9363
9363
  };
9364
9364
  }
9365
9365
  return /* @__PURE__ */ r(
9366
- fd,
9366
+ md,
9367
9367
  {
9368
9368
  id: B,
9369
9369
  title: ee,
@@ -9376,10 +9376,10 @@ function pd(e, t) {
9376
9376
  );
9377
9377
  }) });
9378
9378
  }
9379
- const gd = yt(pd), yd = (e) => {
9379
+ const yd = yt(gd), wd = (e) => {
9380
9380
  const { ooui: t } = e;
9381
- return /* @__PURE__ */ r(Ce, { type: "array", ...e, children: /* @__PURE__ */ r(wd, { ooui: t }) });
9382
- }, wd = (e) => {
9381
+ return /* @__PURE__ */ r(Ce, { type: "array", ...e, children: /* @__PURE__ */ r(vd, { ooui: t }) });
9382
+ }, vd = (e) => {
9383
9383
  const { value: t, ooui: n, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((F) => F.operation !== "pendingRemove").map((F) => F.id), [a, l] = b([]), [d, u] = b(), [f, c] = b(!1), { relation: m, context: p, readOnly: h, field: y, columns: g } = n, w = ne(Be), { getContext: C } = w || {};
9384
9384
  Ft(() => {
9385
9385
  S();
@@ -9460,7 +9460,7 @@ const gd = yt(pd), yd = (e) => {
9460
9460
  /* @__PURE__ */ r(ke, { onClick: V, disabled: s.length === 0, children: "Uncheck all" })
9461
9461
  ] })
9462
9462
  ] }) });
9463
- }, vd = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(bd, { ...e }) }), bd = (e) => {
9463
+ }, bd = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(Cd, { ...e }) }), Cd = (e) => {
9464
9464
  const { value: t, ooui: n } = e;
9465
9465
  return /* @__PURE__ */ r(
9466
9466
  "div",
@@ -9470,34 +9470,34 @@ const gd = yt(pd), yd = (e) => {
9470
9470
  overflow: "auto"
9471
9471
  },
9472
9472
  children: /* @__PURE__ */ r(
9473
- rs,
9473
+ os,
9474
9474
  {
9475
- remarkPlugins: [os],
9475
+ remarkPlugins: [is],
9476
9476
  className: "markdown-typography",
9477
9477
  children: t
9478
9478
  }
9479
9479
  )
9480
9480
  }
9481
9481
  );
9482
- }, Cd = (e) => {
9483
- const { ooui: t } = e, { required: n } = t;
9484
- return /* @__PURE__ */ r(Ce, { required: n, type: "any", ...e, children: /* @__PURE__ */ r(xd, { ...e }) });
9485
9482
  }, xd = (e) => {
9483
+ const { ooui: t } = e, { required: n } = t;
9484
+ return /* @__PURE__ */ r(Ce, { required: n, type: "any", ...e, children: /* @__PURE__ */ r(Sd, { ...e }) });
9485
+ }, Sd = (e) => {
9486
9486
  const { ooui: t, onChange: n, value: i } = e, { selectionValues: o, readOnly: s, direction: a } = t, l = Array.from(o.entries()), d = l && l.length && l.map((u) => {
9487
9487
  const [f, c] = u;
9488
9488
  return /* @__PURE__ */ r(cr, { value: f, children: c }, f);
9489
9489
  });
9490
9490
  return /* @__PURE__ */ r(cr.Group, { disabled: s, onChange: n, value: i, children: /* @__PURE__ */ r(Ue, { direction: a, children: d }) });
9491
- }, Sd = (e) => {
9492
- const { ooui: t } = e, { id: n, readOnly: i, required: o } = t;
9493
- return /* @__PURE__ */ r(Ce, { ...e, valuePropName: "checked", children: /* @__PURE__ */ r(Td, { id: n, readOnly: i, required: o }) });
9494
9491
  }, Td = (e) => {
9495
- const { required: t, readOnly: n, ...i } = e;
9496
- return /* @__PURE__ */ r("div", { className: "flex flex-row", children: /* @__PURE__ */ r(ii, { disabled: n, ...i }) });
9492
+ const { ooui: t } = e, { id: n, readOnly: i, required: o } = t;
9493
+ return /* @__PURE__ */ r(Ce, { ...e, valuePropName: "checked", children: /* @__PURE__ */ r(Fd, { id: n, readOnly: i, required: o }) });
9497
9494
  }, Fd = (e) => {
9498
- const { ooui: t } = e, { required: n } = t;
9499
- return /* @__PURE__ */ r(Ce, { required: n, type: "any", ...e, children: /* @__PURE__ */ r(Rd, { ...e }) });
9495
+ const { required: t, readOnly: n, ...i } = e;
9496
+ return /* @__PURE__ */ r("div", { className: "flex flex-row", children: /* @__PURE__ */ r(si, { disabled: n, ...i }) });
9500
9497
  }, Rd = (e) => {
9498
+ const { ooui: t } = e, { required: n } = t;
9499
+ return /* @__PURE__ */ r(Ce, { required: n, type: "any", ...e, children: /* @__PURE__ */ r(Od, { ...e }) });
9500
+ }, Od = (e) => {
9501
9501
  const { ooui: t, value: n } = e, { selectionValues: i, errorField: o } = t, s = ne(Be), a = Array.from(i.entries()), l = a.map((f) => f[0]).indexOf(n);
9502
9502
  let d = "process", u = "";
9503
9503
  return o && (u = s.getFieldValue(o), u && (d = "error")), /* @__PURE__ */ r(dr, { current: l, status: d, children: a.map((f, c) => /* @__PURE__ */ r(
@@ -9507,10 +9507,10 @@ const gd = yt(pd), yd = (e) => {
9507
9507
  description: c === l && d === "error" ? u : null
9508
9508
  }
9509
9509
  )) });
9510
- }, Od = (e) => {
9510
+ }, _d = (e) => {
9511
9511
  const { ooui: t } = e, { lang: n, height: i } = t, o = ne(Be), { elementHasLostFocus: s } = o || {};
9512
9512
  return /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(
9513
- is,
9513
+ ss,
9514
9514
  {
9515
9515
  defaultLanguage: n || "",
9516
9516
  height: i || 300,
@@ -9519,38 +9519,38 @@ const gd = yt(pd), yd = (e) => {
9519
9519
  }
9520
9520
  }
9521
9521
  ) });
9522
- }, { Meta: _d } = Pn, { Text: Id } = Wt, Vd = ({ email: e, size: t = 40, theme: n = "" }) => {
9523
- const i = `https://www.gravatar.com/avatar/${ss(
9522
+ }, { Meta: Id } = Pn, { Text: Vd } = Wt, Ad = ({ email: e, size: t = 40, theme: n = "" }) => {
9523
+ const i = `https://www.gravatar.com/avatar/${as(
9524
9524
  e
9525
9525
  )}?s=${t}&d=${n}`;
9526
- return /* @__PURE__ */ r(Nr, { src: i, size: t });
9526
+ return /* @__PURE__ */ r(Pr, { src: i, size: t });
9527
9527
  };
9528
- function Ad({ text: e }) {
9528
+ function Dd({ text: e }) {
9529
9529
  const t = e.split(`
9530
9530
  `);
9531
- return /* @__PURE__ */ r("div", { children: t.map((n, i) => /* @__PURE__ */ k(Dr, { children: [
9531
+ return /* @__PURE__ */ r("div", { children: t.map((n, i) => /* @__PURE__ */ k(kr, { children: [
9532
9532
  n,
9533
9533
  i !== t.length - 1 && /* @__PURE__ */ r("br", {})
9534
9534
  ] }, i)) });
9535
9535
  }
9536
- const Dd = (e) => {
9536
+ const kd = (e) => {
9537
9537
  const { data: t, style: n } = e, { t: i } = we();
9538
9538
  return /* @__PURE__ */ k(Pn, { style: { ...n, textAlign: "start" }, children: [
9539
9539
  /* @__PURE__ */ r(
9540
- _d,
9540
+ Id,
9541
9541
  {
9542
- avatar: /* @__PURE__ */ r(Vd, { email: t.email, theme: "mp" }),
9542
+ avatar: /* @__PURE__ */ r(Ad, { email: t.email, theme: "mp" }),
9543
9543
  title: t.author,
9544
9544
  description: /* @__PURE__ */ k(Ue, { direction: "horizontal", children: [
9545
9545
  /* @__PURE__ */ r("span", { title: t.date, children: Ze(t.date).fromNow() }),
9546
- t.isAuthor && /* @__PURE__ */ r(Er, { color: "blue", children: i("author") })
9546
+ t.isAuthor && /* @__PURE__ */ r(Mr, { color: "blue", children: i("author") })
9547
9547
  ] }),
9548
9548
  style: { marginBottom: "5px" }
9549
9549
  }
9550
9550
  ),
9551
- /* @__PURE__ */ r(Id, { children: /* @__PURE__ */ r(Ad, { text: t.text }) })
9551
+ /* @__PURE__ */ r(Vd, { children: /* @__PURE__ */ r(Dd, { text: t.text }) })
9552
9552
  ] }, t.id);
9553
- }, kd = (e) => {
9553
+ }, Ed = (e) => {
9554
9554
  const { value: t } = e, n = (t || []).map((i) => {
9555
9555
  if (i.type === "action")
9556
9556
  return {
@@ -9561,22 +9561,22 @@ const Dd = (e) => {
9561
9561
  color: "gray",
9562
9562
  position: i.event.isSender ? "left" : "right",
9563
9563
  label: i.event.date,
9564
- children: /* @__PURE__ */ r(Dd, { data: i.event })
9564
+ children: /* @__PURE__ */ r(kd, { data: i.event })
9565
9565
  };
9566
9566
  });
9567
9567
  return /* @__PURE__ */ r(On, { mode: "alternate", items: n });
9568
- }, Ed = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(kd, {}) }), { Content: Md } = si, { Title: Nd } = Wt;
9569
- function Pd() {
9568
+ }, Md = (e) => /* @__PURE__ */ r(Ce, { ...e, children: /* @__PURE__ */ r(Ed, {}) }), { Content: Nd } = ai, { Title: Pd } = Wt;
9569
+ function Ld() {
9570
9570
  const { t: e } = we();
9571
- return /* @__PURE__ */ r(Md, { className: "m-5 select-none", children: /* @__PURE__ */ r(Nd, { level: 5, children: e("welcome") }) });
9571
+ return /* @__PURE__ */ r(Nd, { className: "m-5 select-none", children: /* @__PURE__ */ r(Pd, { level: 5, children: e("welcome") }) });
9572
9572
  }
9573
- function Ld(e, t) {
9574
- const { children: n } = e, [i, o] = b("welcome"), { t: s } = we(), { globalValues: a, rootContext: l } = Eo(), [d, u] = b([
9573
+ function $d(e, t) {
9574
+ const { children: n } = e, [i, o] = b("welcome"), { t: s } = we(), { globalValues: a, rootContext: l } = Mo(), [d, u] = b([
9575
9575
  {
9576
9576
  title: s("welcome"),
9577
9577
  key: "welcome",
9578
9578
  closable: !0,
9579
- content: /* @__PURE__ */ r(Pd, {})
9579
+ content: /* @__PURE__ */ r(Ld, {})
9580
9580
  }
9581
9581
  ]), f = ae(/* @__PURE__ */ new Map()), c = ae();
9582
9582
  wt(t, () => ({
@@ -9857,7 +9857,7 @@ function Ld(e, t) {
9857
9857
  type: O
9858
9858
  },
9859
9859
  content: /* @__PURE__ */ r(
9860
- Mo,
9860
+ No,
9861
9861
  {
9862
9862
  action_id: v,
9863
9863
  action_type: O,
@@ -9881,7 +9881,7 @@ function Ld(e, t) {
9881
9881
  }
9882
9882
  }
9883
9883
  return /* @__PURE__ */ r(
9884
- va,
9884
+ ba,
9885
9885
  {
9886
9886
  openShortcut: w,
9887
9887
  openAction: x,
@@ -9897,7 +9897,7 @@ function Ld(e, t) {
9897
9897
  o(S);
9898
9898
  },
9899
9899
  children: /* @__PURE__ */ r(
9900
- xa,
9900
+ Sa,
9901
9901
  {
9902
9902
  ref: c,
9903
9903
  globalValues: a,
@@ -9907,9 +9907,9 @@ function Ld(e, t) {
9907
9907
  }
9908
9908
  );
9909
9909
  }
9910
- const Au = yt(Ld), { useToken: $d } = He;
9911
- function Bd(e) {
9912
- const { label: t, onClose: n, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = $d(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
9910
+ const Du = yt($d), { useToken: Bd } = He;
9911
+ function Hd(e) {
9912
+ const { label: t, onClose: n, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = Bd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
9913
9913
  return /* @__PURE__ */ k(
9914
9914
  "div",
9915
9915
  {
@@ -9979,12 +9979,12 @@ function Bd(e) {
9979
9979
  }
9980
9980
  );
9981
9981
  }
9982
- function Du() {
9982
+ function ku() {
9983
9983
  const e = ne(
9984
9984
  ut
9985
9985
  ), { activeKey: t, tabs: n, onRemoveTab: i, onChangeTab: o } = e || {};
9986
9986
  return /* @__PURE__ */ r(Q, { children: n.map((s) => /* @__PURE__ */ r(
9987
- Bd,
9987
+ Hd,
9988
9988
  {
9989
9989
  tabKey: s.key,
9990
9990
  label: s.title,
@@ -9995,7 +9995,7 @@ function Du() {
9995
9995
  s.key
9996
9996
  )) });
9997
9997
  }
9998
- function Hd(e) {
9998
+ function Kd(e) {
9999
9999
  const { tab: t } = e, n = ne(
10000
10000
  ut
10001
10001
  ), { activeKey: i } = n || {}, o = {
@@ -10003,21 +10003,21 @@ function Hd(e) {
10003
10003
  };
10004
10004
  return /* @__PURE__ */ r("div", { style: t.key !== i ? o : void 0, children: t.content });
10005
10005
  }
10006
- const Kd = nt.memo(Hd, () => !0);
10007
- function ku() {
10006
+ const jd = nt.memo(Kd, () => !0);
10007
+ function Eu() {
10008
10008
  const e = ne(
10009
10009
  ut
10010
- ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ r(Kd, { tab: i }, i.key))) || null;
10010
+ ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ r(jd, { tab: i }, i.key))) || null;
10011
10011
  return /* @__PURE__ */ r(Q, { children: n });
10012
10012
  }
10013
- const { useToken: jd } = He, Eu = (e) => {
10013
+ const { useToken: Wd } = He, Mu = (e) => {
10014
10014
  const {
10015
10015
  onRetrieveShortcuts: t,
10016
10016
  onCheckIsFavourite: n,
10017
10017
  onAddFavourite: i,
10018
10018
  onRemoveFavourite: o,
10019
10019
  onDropdownClosed: s
10020
- } = e, [a, l] = b(!1), [d, u] = b(), { t: f } = we(), { token: c } = jd(), m = ae(null), p = ne(
10020
+ } = e, [a, l] = b(!1), [d, u] = b(), { t: f } = we(), { token: c } = Wd(), m = ae(null), p = ne(
10021
10021
  ut
10022
10022
  ), {
10023
10023
  openShortcut: h,
@@ -10112,7 +10112,7 @@ const { useToken: jd } = He, Eu = (e) => {
10112
10112
  y
10113
10113
  ]);
10114
10114
  return /* @__PURE__ */ r(
10115
- Ei,
10115
+ Mi,
10116
10116
  {
10117
10117
  ref: m,
10118
10118
  isFavourite: a,
@@ -10122,7 +10122,7 @@ const { useToken: jd } = He, Eu = (e) => {
10122
10122
  header: /* @__PURE__ */ k("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
10123
10123
  /* @__PURE__ */ r("div", { style: { paddingLeft: 15, color: "#ccc" }, children: f == null ? void 0 : f("favorites").toUpperCase() }),
10124
10124
  /* @__PURE__ */ r("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ r(gt, { title: f == null ? void 0 : f("edit_favorites"), children: /* @__PURE__ */ r(
10125
- Xr,
10125
+ Qr,
10126
10126
  {
10127
10127
  style: { color: c.colorPrimary, cursor: "pointer" },
10128
10128
  onClick: F
@@ -10137,63 +10137,63 @@ const { useToken: jd } = He, Eu = (e) => {
10137
10137
  );
10138
10138
  };
10139
10139
  export {
10140
- Ec as ActionBar,
10141
- Mo as ActionView,
10142
- _c as Binary,
10143
- As as Boolean,
10144
- to as Button,
10145
- gs as ButtonGroup,
10146
- oo as Char,
10147
- Od as CodeEditor,
10148
- Ed as CommentsTimelineField,
10149
- ko as ConfigContext,
10150
- Qc as ConfigContextProvider,
10140
+ Mc as ActionBar,
10141
+ No as ActionView,
10142
+ Ic as Binary,
10143
+ Ds as Boolean,
10144
+ no as Button,
10145
+ ys as ButtonGroup,
10146
+ io as Char,
10147
+ _d as CodeEditor,
10148
+ Md as CommentsTimelineField,
10149
+ Eo as ConfigContext,
10150
+ Zc as ConfigContextProvider,
10151
10151
  E as ConnectionProvider,
10152
- xa as ContentRootProvider,
10153
- ku as CurrentTabContent,
10154
- gd as Dashboard,
10155
- cd as DashboardGrid,
10156
- fd as DashboardGridItem,
10157
- Cc as Date,
10158
- xc as DateTime,
10159
- Pc as Email,
10160
- Vu as ErpAllFeatureKeys,
10152
+ Sa as ContentRootProvider,
10153
+ Eu as CurrentTabContent,
10154
+ yd as Dashboard,
10155
+ dd as DashboardGrid,
10156
+ md as DashboardGridItem,
10157
+ xc as Date,
10158
+ Sc as DateTime,
10159
+ Lc as Email,
10160
+ Au as ErpAllFeatureKeys,
10161
10161
  rr as ErpFeatureKeys,
10162
- bc as ExportModal,
10163
- Eu as FavouriteButton,
10164
- ho as Float,
10165
- oc as FloatTime,
10162
+ Cc as ExportModal,
10163
+ Mu as FavouriteButton,
10164
+ po as Float,
10165
+ ic as FloatTime,
10166
10166
  zt as Form,
10167
10167
  Jt as FormModal,
10168
- Al as GraphIndicator,
10169
- Oo as Group,
10170
- Ms as Image,
10168
+ Dl as GraphIndicator,
10169
+ _o as Group,
10170
+ Ns as Image,
10171
10171
  rn as Integer,
10172
10172
  mn as Label,
10173
- _l as Many2one,
10174
- vd as Markdown,
10175
- yd as MultiCheckbox,
10176
- ac as Notebook,
10177
- nc as One2many,
10178
- tl as ProgressBar,
10179
- Cd as Radio,
10180
- Fc as Reference,
10181
- Au as RootView,
10182
- po as SearchFilter,
10183
- xo as SearchModal,
10184
- Co as SearchTree,
10185
- io as Selection,
10186
- uc as Separator,
10187
- Fd as Steps,
10188
- Sd as Switch,
10189
- Bd as Tab,
10190
- Du as TabSelector,
10191
- na as Tag,
10192
- ra as Tags,
10193
- cc as Text,
10194
- Sc as Time,
10173
+ Il as Many2one,
10174
+ bd as Markdown,
10175
+ wd as MultiCheckbox,
10176
+ lc as Notebook,
10177
+ rc as One2many,
10178
+ nl as ProgressBar,
10179
+ xd as Radio,
10180
+ Rc as Reference,
10181
+ Du as RootView,
10182
+ go as SearchFilter,
10183
+ So as SearchModal,
10184
+ xo as SearchTree,
10185
+ so as Selection,
10186
+ fc as Separator,
10187
+ Rd as Steps,
10188
+ Td as Switch,
10189
+ Hd as Tab,
10190
+ ku as TabSelector,
10191
+ ra as Tag,
10192
+ oa as Tags,
10193
+ dc as Text,
10194
+ Tc as Time,
10195
10195
  Xt as Tree,
10196
- Nc as Url,
10196
+ Pc as Url,
10197
10197
  dt as iconMapper,
10198
10198
  Gt as showConfirmDialog
10199
10199
  };