@gisce/react-ooui 2.42.0 → 2.44.0

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,46 +1,45 @@
1
- var Da = Object.defineProperty;
2
- var Pa = (e, t, n) => t in e ? Da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var xo = (e, t, n) => (Pa(e, typeof t != "symbol" ? t + "" : t, n), n);
1
+ var Pa = Object.defineProperty;
2
+ var ka = (e, t, n) => t in e ? Pa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Io = (e, t, n) => (ka(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsx as i, jsxs as D, Fragment as ae } from "react/jsx-runtime";
5
- import mt, { useContext as ne, useState as x, useEffect as ue, useRef as Q, memo as an, useMemo as me, useCallback as N, createContext as ka, forwardRef as yt, useImperativeHandle as vt, createElement as $a, Fragment as Fn } from "react";
6
- import { Tooltip as Ft, theme as Ge, Typography as _t, Form as pt, Row as ke, Col as we, Modal as ct, Button as je, Dropdown as Na, Menu as Io, Spin as He, Divider as zn, Space as Je, Input as lt, Select as Ut, Checkbox as Cn, Alert as rt, Timeline as Oi, Statistic as Ma, Card as Ur, Tag as Wr, message as mr, App as La, Progress as ja, Avatar as Fi, DatePicker as Gr, TimePicker as Ba, InputNumber as Ai, Layout as Ri, Badge as Jn, Pagination as Ha, Tabs as _i, Radio as To, Switch as Ua, Steps as Oo } from "antd";
7
- import { Label as ln, Field as Or, Tree as Vi, Reference as Wa, Selection as Kr, Many2one as Ei, Boolean as Ga, parseContext as Lt, graphProcessor as Di, graphFieldUtils as Ka, parseGraph as Pi, Container as qa, Form as ki, parseContextFields as Ya, parseDomainFields as za, Integer as Fr, SearchFieldTypes as Tt, SearchFilter as $i, transformDomainForChildWidget as qr } from "@gisce/ooui";
8
- import * as Fo from "@ant-design/icons";
9
- import Ni, { QuestionCircleOutlined as Mi, ExclamationCircleOutlined as Vt, LoadingOutlined as wt, DownOutlined as Qn, WarningOutlined as Li, CloseOutlined as cn, CheckOutlined as Xn, TranslationOutlined as ji, FolderOpenOutlined as Yr, DownloadOutlined as zr, ClearOutlined as Zn, ExportOutlined as Ja, StarFilled as Qa, StarOutlined as Xa, ThunderboltOutlined as Jr, PrinterOutlined as Qr, EnterOutlined as Xr, SearchOutlined as er, UpOutlined as Za, PlusSquareOutlined as el, MinusSquareOutlined as tl, FileAddOutlined as tr, AlignLeftOutlined as nl, ApiOutlined as rl, DeleteOutlined as Zr, LeftOutlined as Bi, RightOutlined as Hi, EyeOutlined as ol, FormOutlined as xn, TableOutlined as eo, AreaChartOutlined as il, CalendarOutlined as sl, LinkOutlined as Ao, SaveOutlined as al, CopyOutlined as to, InfoCircleOutlined as Ui, ReloadOutlined as nr, EditOutlined as Wi, PlusOutlined as ll, FilterOutlined as Gi, CloseCircleFilled as cl, BorderOuterOutlined as dl, SettingOutlined as ul } from "@ant-design/icons";
5
+ import mt, { useContext as ne, useState as x, useEffect as ue, useRef as Q, useMemo as me, memo as an, useCallback as N, createContext as $a, forwardRef as yt, useImperativeHandle as vt, createElement as Na, Fragment as Fn } from "react";
6
+ import { Tooltip as Ft, theme as Ge, Typography as _t, Form as pt, Row as ke, Col as we, Modal as ct, Button as je, Dropdown as Ma, Menu as To, Spin as He, Divider as zn, Space as Je, Input as lt, Select as Ut, Checkbox as Cn, Alert as rt, Timeline as Fi, Statistic as La, Card as Ur, Tag as Wr, message as mr, App as ja, Progress as Ba, Avatar as Ai, DatePicker as Gr, TimePicker as Ha, InputNumber as Ri, Layout as _i, Badge as Jn, Pagination as Ua, Tabs as Vi, Radio as Oo, Switch as Wa, Steps as Fo } from "antd";
7
+ import { Label as ln, Field as Or, Tree as Ei, Reference as Ga, Selection as Kr, Many2one as Di, Boolean as Ka, parseContext as Lt, graphProcessor as Pi, graphFieldUtils as qa, parseGraph as ki, Container as Ya, Form as $i, parseContextFields as za, parseDomainFields as Ja, Integer as Fr, SearchFieldTypes as Tt, SearchFilter as Ni, transformDomainForChildWidget as qr } from "@gisce/ooui";
8
+ import * as Ao from "@ant-design/icons";
9
+ import Mi, { QuestionCircleOutlined as Li, ExclamationCircleOutlined as Vt, LoadingOutlined as wt, DownOutlined as Qn, WarningOutlined as ji, CloseOutlined as cn, CheckOutlined as Xn, TranslationOutlined as Bi, FolderOpenOutlined as Yr, DownloadOutlined as zr, ClearOutlined as Zn, ExportOutlined as Qa, StarFilled as Xa, StarOutlined as Za, ThunderboltOutlined as Jr, PrinterOutlined as Qr, EnterOutlined as Xr, SearchOutlined as er, UpOutlined as el, PlusSquareOutlined as tl, MinusSquareOutlined as nl, FileAddOutlined as tr, AlignLeftOutlined as rl, ApiOutlined as ol, DeleteOutlined as Zr, LeftOutlined as Hi, RightOutlined as Ui, EyeOutlined as il, FormOutlined as xn, TableOutlined as eo, AreaChartOutlined as sl, CalendarOutlined as al, LinkOutlined as Ro, SaveOutlined as ll, CopyOutlined as to, InfoCircleOutlined as Wi, ReloadOutlined as nr, EditOutlined as Gi, PlusOutlined as cl, FilterOutlined as Ki, CloseCircleFilled as dl, BorderOuterOutlined as ul, SettingOutlined as fl } from "@ant-design/icons";
10
10
  import { Interweave as In } from "interweave";
11
- import { useLocale as he, FormigaConfigProvider as fl, mergeStrings as ml, Many2OneSuffix as pl, Many2OneSuffixModal as Ro, FieldSet as hl, ExportModal as gl, Dropdown as Ki, DropdownButton as Zt, HTMLPreview as yl, FavouriteButton as vl } from "@gisce/react-formiga-components";
12
- import * as _o from "@tabler/icons-react";
13
- import wl from "antd/lib/input/TextArea";
11
+ import { useLocale as he, FormigaConfigProvider as ml, mergeStrings as pl, Many2OneSuffix as hl, Many2OneSuffixModal as _o, FieldSet as gl, ExportModal as yl, Dropdown as qi, DropdownButton as Zt, HTMLPreview as vl, FavouriteButton as wl } from "@gisce/react-formiga-components";
12
+ import * as Vo from "@tabler/icons-react";
13
+ import bl from "antd/lib/input/TextArea";
14
14
  import dn from "styled-components";
15
15
  import no from "react-measure";
16
- import bl from "lodash/debounce";
16
+ import Sl from "lodash/debounce";
17
17
  import { nanoid as ro } from "nanoid";
18
18
  import Ar from "antd/lib/typography/Title";
19
19
  import St from "use-deep-compare-effect";
20
- import { Line as Sl, Column as Cl, Pie as xl } from "@ant-design/plots";
20
+ import { Line as Cl, Column as xl, Pie as Il } from "@ant-design/plots";
21
21
  import st from "dayjs";
22
- import { default as _y } from "dayjs";
23
- import Il from "dayjs/plugin/advancedFormat";
24
- import Tl from "dayjs/plugin/customParseFormat";
25
- import Ol from "dayjs/plugin/isoWeek";
26
- import Fl from "dayjs/plugin/timezone";
27
- import Al from "dayjs/plugin/duration";
28
- import Rl from "dayjs/plugin/relativeTime";
29
- import _l from "dayjs/plugin/weekday";
30
- import Vl from "dayjs/plugin/localeData";
31
- import { createRoot as qi } from "react-dom/client";
32
- import { useDeepCompareCallback as ht, useDeepCompareMemo as Tn, useDeepCompareEffect as Yi } from "use-deep-compare";
33
- import { InfiniteTable as zi, Table as El } from "@gisce/react-formiga-table";
34
- import { fileTypeFromBuffer as Dl } from "file-type-buffer-browser";
35
- import { isPresetStatusColor as Ji, isPresetColor as Qi } from "antd/lib/_util/colors";
36
- import Pl from "antd/es/date-picker/locale/en_US";
37
- import kl from "antd/es/date-picker/locale/es_ES";
38
- import $l from "antd/es/date-picker/locale/ca_ES";
39
- import Nl from "validator";
22
+ import { default as Ry } from "dayjs";
23
+ import Tl from "dayjs/plugin/advancedFormat";
24
+ import Ol from "dayjs/plugin/customParseFormat";
25
+ import Fl from "dayjs/plugin/isoWeek";
26
+ import Al from "dayjs/plugin/timezone";
27
+ import Rl from "dayjs/plugin/duration";
28
+ import _l from "dayjs/plugin/relativeTime";
29
+ import Vl from "dayjs/plugin/weekday";
30
+ import El from "dayjs/plugin/localeData";
31
+ import { createRoot as Yi } from "react-dom/client";
32
+ import { useDeepCompareCallback as ht, useDeepCompareMemo as Tn, useDeepCompareEffect as zi } from "use-deep-compare";
33
+ import { InfiniteTable as Ji, Table as Dl } from "@gisce/react-formiga-table";
34
+ import { fileTypeFromBuffer as Pl } from "file-type-buffer-browser";
35
+ import { isPresetStatusColor as Qi, isPresetColor as Xi } from "antd/lib/_util/colors";
36
+ import kl from "antd/es/date-picker/locale/en_US";
37
+ import $l from "antd/es/date-picker/locale/es_ES";
38
+ import Nl from "antd/es/date-picker/locale/ca_ES";
39
+ import Ml from "validator";
40
40
  import "@gisce/react-formiga-table/style.css";
41
- import Ml from "antd/es/typography/Link";
41
+ import Ll from "antd/es/typography/Link";
42
42
  import Ln from "antd/es/alert/ErrorBoundary";
43
- import Ll from "validator/lib/isBase64";
44
43
  import { GridUi as jl } from "@gisce/fiber-diagram";
45
44
  import { useHotkeys as Mt } from "react-hotkeys-hook";
46
45
  import Bl from "validator/lib/isURL";
@@ -51,7 +50,7 @@ import Gl from "@monaco-editor/react";
51
50
  import Kl from "md5";
52
51
  import { WidthProvider as ql, Responsive as Yl } from "react-grid-layout";
53
52
  import "react-grid-layout/css/styles.css";
54
- import { AnimatePresence as zl, motion as Vo } from "framer-motion";
53
+ import { AnimatePresence as zl, motion as Eo } from "framer-motion";
55
54
  const Be = mt.createContext(null), Jl = (e) => {
56
55
  const {
57
56
  children: t,
@@ -109,7 +108,7 @@ const Be = mt.createContext(null), Jl = (e) => {
109
108
  className: `flex flex-row items-center pb-1 pt-1 ${ec[h]}`,
110
109
  children: [
111
110
  s && /* @__PURE__ */ i(Ft, { title: s, children: /* @__PURE__ */ i(
112
- Mi,
111
+ Li,
113
112
  {
114
113
  className: "pr-1 text-xs",
115
114
  style: {
@@ -189,7 +188,7 @@ const { confirm: tc } = ct, At = ({
189
188
  cancelText: r || o("cancel"),
190
189
  onOk: e
191
190
  });
192
- }, Eo = {
191
+ }, Do = {
193
192
  "terp-purchase": "ShoppingCart",
194
193
  "terp-graph": "PieChart",
195
194
  "terp-crm": "Contacts",
@@ -281,7 +280,7 @@ const { confirm: tc } = ct, At = ({
281
280
  STOCK_CLEAR: "CloseSquare",
282
281
  STOCK_UNINDENT: "AlignLeft",
283
282
  STOCK_PREFERENCES: "Setting"
284
- }, dt = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), Eo.hasOwnProperty(e) ? Do(Eo[e], t) : Do(e, t));
283
+ }, dt = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), Do.hasOwnProperty(e) ? Po(Do[e], t) : Po(e, t));
285
284
  function nc(e) {
286
285
  return `${e.split("-").map(
287
286
  (t) => t.replace(
@@ -290,24 +289,24 @@ function nc(e) {
290
289
  )
291
290
  ).join("")}`;
292
291
  }
293
- function Do(e, t) {
292
+ function Po(e, t) {
294
293
  let n = e.charAt(0).toUpperCase() + e.slice(1);
295
294
  n.indexOf("-") !== -1 && (n = nc(n));
296
295
  const r = `${n}Outlined`;
297
- if (Fo[r])
298
- return () => mt.createElement(Fo[r], {
296
+ if (Ao[r])
297
+ return () => mt.createElement(Ao[r], {
299
298
  ...t
300
299
  });
301
300
  const o = `Icon${n}`;
302
- if (_o[o]) {
301
+ if (Vo[o]) {
303
302
  const s = () => {
304
303
  var l;
305
- return mt.createElement(_o[o], {
304
+ return mt.createElement(Vo[o], {
306
305
  fill: "transparent",
307
306
  size: ((l = t == null ? void 0 : t.style) == null ? void 0 : l.fontSize) || 17
308
307
  });
309
308
  };
310
- return () => mt.createElement(Ni, {
309
+ return () => mt.createElement(Mi, {
311
310
  component: s,
312
311
  ...t
313
312
  });
@@ -401,7 +400,7 @@ const oo = (e) => {
401
400
  return null;
402
401
  if (t.buttons.length > 1)
403
402
  return /* @__PURE__ */ i(_e, { ooui: new Or({ defaultButton: n }), children: /* @__PURE__ */ D(
404
- Na.Button,
403
+ Ma.Button,
405
404
  {
406
405
  disabled: !a || p,
407
406
  onClick: C,
@@ -463,7 +462,7 @@ const oo = (e) => {
463
462
  }
464
463
  }
465
464
  return /* @__PURE__ */ i(
466
- Io.Item,
465
+ To.Item,
467
466
  {
468
467
  disabled: !c || h,
469
468
  onClick: w,
@@ -474,9 +473,9 @@ const oo = (e) => {
474
473
  `menuitem-${l}`
475
474
  );
476
475
  });
477
- return /* @__PURE__ */ i(Io, { children: o });
476
+ return /* @__PURE__ */ i(To, { children: o });
478
477
  }, ic = 0.7;
479
- function Po() {
478
+ function ko() {
480
479
  const { innerWidth: e, innerHeight: t } = window;
481
480
  return {
482
481
  width: e,
@@ -485,11 +484,11 @@ function Po() {
485
484
  }
486
485
  function or() {
487
486
  const [e, t] = x(
488
- Po()
487
+ ko()
489
488
  );
490
489
  return ue(() => {
491
490
  function n() {
492
- t(Po());
491
+ t(ko());
493
492
  }
494
493
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
495
494
  }, []), {
@@ -509,9 +508,9 @@ const Xt = class Xt {
509
508
  return Xt.handler;
510
509
  }
511
510
  };
512
- xo(Xt, "handler");
511
+ Io(Xt, "handler");
513
512
  let $ = Xt;
514
- const Xi = (e) => {
513
+ const Zi = (e) => {
515
514
  let t, n, r;
516
515
  if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
517
516
 
@@ -530,14 +529,14 @@ const Xi = (e) => {
530
529
  title: r
531
530
  };
532
531
  }, { error: sc, warning: ac } = ct, it = (e) => {
533
- const { message: t, type: n, title: r } = Xi(e);
532
+ const { message: t, type: n, title: r } = Zi(e);
534
533
  (n === "error" ? sc : ac)({
535
534
  title: r,
536
- icon: n === "error" ? /* @__PURE__ */ i(Vt, {}) : /* @__PURE__ */ i(Li, {}),
535
+ icon: n === "error" ? /* @__PURE__ */ i(Vt, {}) : /* @__PURE__ */ i(ji, {}),
537
536
  centered: !0,
538
537
  content: t
539
538
  });
540
- }, Zi = (e) => {
539
+ }, es = (e) => {
541
540
  const { visible: t, onCloseModal: n, model: r, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = or(), { t: c } = he(), [u, f] = x([]), [d, p] = x(!1), [h, m] = x(!1), [y, g] = x({}), v = Q();
542
541
  ue(() => {
543
542
  t ? w() : g({});
@@ -580,7 +579,7 @@ const Xi = (e) => {
580
579
  return u.map((R, S) => /* @__PURE__ */ D(ke, { style: { paddingBottom: 20 }, children: [
581
580
  /* @__PURE__ */ i(we, { flex: "8rem", style: { paddingRight: 10 }, children: R.name }),
582
581
  /* @__PURE__ */ i(we, { flex: "auto", children: /* @__PURE__ */ i(
583
- wl,
582
+ bl,
584
583
  {
585
584
  rows: 4,
586
585
  value: y[R.code] || "",
@@ -667,7 +666,7 @@ const { info: lc } = ct, xt = (e) => {
667
666
  centered: !0,
668
667
  content: e
669
668
  });
670
- }, { useToken: cc } = Ge, es = (e) => {
669
+ }, { useToken: cc } = Ge, ts = (e) => {
671
670
  const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t, { token: l } = cc(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0;
672
671
  let u = /* @__PURE__ */ i(
673
672
  dc,
@@ -754,7 +753,7 @@ const { info: lc } = ct, xt = (e) => {
754
753
  }
755
754
  ),
756
755
  /* @__PURE__ */ i(
757
- Zi,
756
+ es,
758
757
  {
759
758
  id: s,
760
759
  model: a,
@@ -785,7 +784,7 @@ const { info: lc } = ct, xt = (e) => {
785
784
  nt,
786
785
  {
787
786
  tooltip: p("translate"),
788
- icon: /* @__PURE__ */ i(ji, {}),
787
+ icon: /* @__PURE__ */ i(Bi, {}),
789
788
  onClick: async () => {
790
789
  c != null && c() ? xt(p("saveBeforeTranslate")) : xt(p("enterTextBeforeTranslate"));
791
790
  },
@@ -793,10 +792,10 @@ const { info: lc } = ct, xt = (e) => {
793
792
  }
794
793
  ) })
795
794
  ] }) });
796
- }, { defaultAlgorithm: fc, defaultSeed: mc } = Ge, pc = fc(mc), { Option: hc } = Ut, ts = (e) => {
795
+ }, { defaultAlgorithm: fc, defaultSeed: mc } = Ge, pc = fc(mc), { Option: hc } = Ut, ns = (e) => {
797
796
  const { ooui: t } = e, { required: n } = t;
798
- return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(ns, { ...e }) });
799
- }, ns = (e) => {
797
+ return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(rs, { ...e }) });
798
+ }, rs = (e) => {
800
799
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), c = l && l.length && l.map((f) => {
801
800
  const [d, p] = f;
802
801
  return /* @__PURE__ */ i(hc, { value: d, children: p }, d);
@@ -818,7 +817,7 @@ const { info: lc } = ct, xt = (e) => {
818
817
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
819
818
  background-color: ${pc.colorPrimaryBg};
820
819
  }
821
- `, { defaultAlgorithm: yc, defaultSeed: vc } = Ge, ko = yc(vc), wc = (e) => {
820
+ `, { defaultAlgorithm: yc, defaultSeed: vc } = Ge, $o = yc(vc), wc = (e) => {
822
821
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
823
822
  return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(bc, { id: n, readOnly: r, required: o }) });
824
823
  }, bc = (e) => {
@@ -826,11 +825,11 @@ const { info: lc } = ct, xt = (e) => {
826
825
  return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Sc : Cn, { disabled: n, ...r }) });
827
826
  }, Sc = dn(Cn)`
828
827
  .ant-checkbox-inner {
829
- background-color: ${ko.colorPrimaryBg};
828
+ background-color: ${$o.colorPrimaryBg};
830
829
  }
831
830
 
832
831
  .ant-checkbox-checked .ant-checkbox-inner {
833
- background-color: ${ko.colorPrimary};
832
+ background-color: ${$o.colorPrimary};
834
833
  }
835
834
  `;
836
835
  function Cc(e) {
@@ -838,7 +837,7 @@ function Cc(e) {
838
837
  return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
839
838
  }
840
839
  async function nn(e) {
841
- const t = await Dl(
840
+ const t = await Pl(
842
841
  Buffer.from(e, "base64")
843
842
  );
844
843
  return t || {
@@ -846,7 +845,7 @@ async function nn(e) {
846
845
  ext: "txt"
847
846
  };
848
847
  }
849
- const rs = (e) => new Promise((t, n) => {
848
+ const os = (e) => new Promise((t, n) => {
850
849
  const r = new FileReader();
851
850
  r.readAsDataURL(e), r.onload = (o) => t(o.target.result.split(",")[1]), r.onerror = (o) => n(o);
852
851
  });
@@ -857,17 +856,23 @@ function ir(e, t) {
857
856
  const o = new Uint8Array(r), s = new Blob([o], { type: t + ";base64" }), a = URL.createObjectURL(s);
858
857
  window.open(a);
859
858
  }
860
- const xc = (e) => {
861
- const { ooui: t } = e, { required: n, id: r } = t, o = dt(r);
862
- return o ? /* @__PURE__ */ i(o, {}) : /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Ic, { ooui: t }) });
863
- }, Ic = (e) => {
864
- const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, s = Q(null), { t: a } = he();
865
- if (n) {
866
- const d = dt(n);
867
- if (d)
868
- return /* @__PURE__ */ i(d, { height: 50 });
859
+ const io = (e) => {
860
+ const { value: t, style: n = {} } = e;
861
+ if (t) {
862
+ const r = dt(t);
863
+ return r ? /* @__PURE__ */ i(r, {}) : /* @__PURE__ */ i(
864
+ "img",
865
+ {
866
+ src: `data:image/*;base64,${t}`,
867
+ style: { maxWidth: "100px", ...n }
868
+ }
869
+ );
869
870
  }
870
- const l = (d) => {
871
+ }, xc = (e) => {
872
+ const { ooui: t } = e, { required: n, id: r } = t;
873
+ return dt(r) ? /* @__PURE__ */ i(io, { value: r }) : /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Ic, { ooui: t }) });
874
+ }, Ic = (e) => {
875
+ const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, s = Q(null), { t: a } = he(), l = (d) => {
871
876
  r == null || r(d);
872
877
  };
873
878
  async function c() {
@@ -876,7 +881,7 @@ const xc = (e) => {
876
881
  }
877
882
  async function u(d) {
878
883
  d.stopPropagation(), d.preventDefault();
879
- const p = d.target.files[0], h = await rs(p);
884
+ const p = d.target.files[0], h = await os(p);
880
885
  l(h);
881
886
  }
882
887
  function f() {
@@ -884,12 +889,9 @@ const xc = (e) => {
884
889
  }
885
890
  return /* @__PURE__ */ D(ae, { children: [
886
891
  /* @__PURE__ */ D(ke, { gutter: 8, wrap: !1, justify: "center", children: [
887
- n && Ll(n) && /* @__PURE__ */ i(
888
- "img",
889
- {
890
- src: `data:image/*;base64,${n}`,
891
- style: { maxWidth: "100px" }
892
- }
892
+ me(
893
+ () => /* @__PURE__ */ i(io, { value: n }),
894
+ [n, t]
893
895
  ),
894
896
  /* @__PURE__ */ i(
895
897
  "input",
@@ -957,13 +959,13 @@ const xc = (e) => {
957
959
  }
958
960
  );
959
961
  }, Ot = (e) => {
960
- const t = e.arch, n = e.fields, r = new Vi(n);
962
+ const t = e.arch, n = e.fields, r = new Ei(n);
961
963
  return r.parse(t), r;
962
964
  };
963
965
  function Fc(e) {
964
966
  return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
965
967
  }
966
- const io = (e, t, n) => e.columns.map((o) => {
968
+ const so = (e, t, n) => e.columns.map((o) => {
967
969
  const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
968
970
  let c;
969
971
  return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) => Fc(u) ? u : /* @__PURE__ */ D("p", { style: { color: "red" }, children: [
@@ -993,21 +995,21 @@ const io = (e, t, n) => e.columns.map((o) => {
993
995
  o[s] = r[s];
994
996
  else {
995
997
  const a = e.findById(s);
996
- a instanceof Wa || a instanceof Kr ? o[s] = r[s] : a instanceof Ei ? o[s] = r[s] && Array.isArray(r[s]) && r[s].length === 2 && {
998
+ a instanceof Ga || a instanceof Kr ? o[s] = r[s] : a instanceof Di ? o[s] = r[s] && Array.isArray(r[s]) && r[s].length === 2 && {
997
999
  model: a.relation,
998
1000
  id: r[s][0],
999
1001
  value: r[s][1]
1000
- } : a instanceof Ga ? o[s] = r[s] : a ? o[s] = r[s] === !1 ? "" : r[s] : o[s] = r[s];
1002
+ } : a instanceof Ka ? o[s] = r[s] : a ? o[s] = r[s] === !1 ? "" : r[s] : o[s] = r[s];
1001
1003
  }
1002
1004
  }), o;
1003
1005
  });
1004
1006
  function rn(e) {
1005
- return os(e, "colors");
1007
+ return is(e, "colors");
1006
1008
  }
1007
1009
  function jn(e) {
1008
- return os(e, "status");
1010
+ return is(e, "status");
1009
1011
  }
1010
- function os(e, t) {
1012
+ function is(e, t) {
1011
1013
  if (!e)
1012
1014
  return;
1013
1015
  const n = {};
@@ -1035,18 +1037,18 @@ function Ac(e) {
1035
1037
  return !0;
1036
1038
  return !1;
1037
1039
  }
1038
- const is = (e) => {
1040
+ const ss = (e) => {
1039
1041
  if (e && Object.keys(e).length !== 0)
1040
1042
  return Object.keys(e).map((t) => {
1041
1043
  const n = e[t];
1042
1044
  return `${t} ${n}`;
1043
1045
  }).join(", ");
1044
1046
  };
1045
- function ss(e, t) {
1047
+ function as(e, t) {
1046
1048
  const n = new RegExp(`<tree[^>]*\\s+${t}="([^"]+)"`, "i"), r = e.match(n);
1047
1049
  return r && r[1] ? r[1] : null;
1048
1050
  }
1049
- const so = async (e) => {
1051
+ const ao = async (e) => {
1050
1052
  var y;
1051
1053
  const {
1052
1054
  items: t,
@@ -1098,7 +1100,7 @@ const so = async (e) => {
1098
1100
  }).concat(c),
1099
1101
  p
1100
1102
  ];
1101
- }, as = (e) => {
1103
+ }, ls = (e) => {
1102
1104
  const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
1103
1105
  return t.length === 0 ? -1 : Math.min(...t) - 1;
1104
1106
  }, Rc = (e, t) => {
@@ -1135,7 +1137,7 @@ function Vc(e) {
1135
1137
  return !t.includes(s, o + 1);
1136
1138
  });
1137
1139
  }
1138
- function $o({
1140
+ function No({
1139
1141
  values: e,
1140
1142
  fields: t
1141
1143
  }) {
@@ -1227,7 +1229,7 @@ const Ec = ({
1227
1229
  )) || []).length > 0 && (r[o] = t[o]);
1228
1230
  } else if (Array.isArray(t[o]))
1229
1231
  if (n[o].type === "many2one") {
1230
- if (!Mo(e[o]) && !Mo(t[o]))
1232
+ if (!Lo(e[o]) && !Lo(t[o]))
1231
1233
  return;
1232
1234
  if (Array.isArray(e[o])) {
1233
1235
  const c = JSON.stringify(e[o]), u = JSON.stringify(t[o]);
@@ -1298,11 +1300,11 @@ const Ec = ({
1298
1300
  n.secondary
1299
1301
  ));
1300
1302
  }), {
1301
- primary: t.primary.filter(No),
1302
- secondary: t.secondary.filter(No)
1303
+ primary: t.primary.filter(Mo),
1304
+ secondary: t.secondary.filter(Mo)
1303
1305
  };
1304
1306
  };
1305
- function No(e, t, n) {
1307
+ function Mo(e, t, n) {
1306
1308
  return n.indexOf(e) === t;
1307
1309
  }
1308
1310
  const Wt = ({
@@ -1328,7 +1330,7 @@ const Wt = ({
1328
1330
  }, Uc = (e, t) => e.replace(
1329
1331
  /\{([^}]+)\}/g,
1330
1332
  (n, r) => t[r] !== void 0 ? t[r] : n
1331
- ), Mo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), Wc = (e) => /* @__PURE__ */ D(
1333
+ ), Lo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), Wc = (e) => /* @__PURE__ */ D(
1332
1334
  "div",
1333
1335
  {
1334
1336
  style: { display: "inline-block", cursor: "pointer" },
@@ -1383,7 +1385,7 @@ const Wt = ({
1383
1385
  async function S() {
1384
1386
  l(!0), u(void 0);
1385
1387
  try {
1386
- const [F] = await so({
1388
+ const [F] = await ao({
1387
1389
  treeView: {
1388
1390
  fields: n.get("tree").fields,
1389
1391
  arch: n.get("tree").arch
@@ -1426,10 +1428,10 @@ const Wt = ({
1426
1428
  }
1427
1429
  )
1428
1430
  };
1429
- return (M = F.values) != null && M[I] && (P.dot = V(F.values[I])), (W = F.values) != null && W[C] && (P.color = !Ji(F.values[C]) && !Qi(F.values[C]) && !F.values[C].toString().startsWith("#") ? An(F.values[C]) : F.values[C]), P;
1431
+ return (M = F.values) != null && M[I] && (P.dot = V(F.values[I])), (W = F.values) != null && W[C] && (P.color = !Qi(F.values[C]) && !Xi(F.values[C]) && !F.values[C].toString().startsWith("#") ? An(F.values[C]) : F.values[C]), P;
1430
1432
  });
1431
1433
  return /* @__PURE__ */ D(ae, { children: [
1432
- /* @__PURE__ */ i(Oi, { style: { padding: "1rem" }, items: A }),
1434
+ /* @__PURE__ */ i(Fi, { style: { padding: "1rem" }, items: A }),
1433
1435
  /* @__PURE__ */ i(
1434
1436
  gn,
1435
1437
  {
@@ -1760,15 +1762,15 @@ const Wt = ({
1760
1762
  globalValues: {},
1761
1763
  rootContext: {},
1762
1764
  devMode: !1
1763
- }, ls = mt.createContext(Qc), ao = () => {
1764
- const e = ne(ls);
1765
+ }, cs = mt.createContext(Qc), lo = () => {
1766
+ const e = ne(cs);
1765
1767
  if (!e)
1766
1768
  throw new Error(
1767
1769
  "useConfigContext must be used within a ConfigContextProvider"
1768
1770
  );
1769
1771
  return e;
1770
1772
  }, ar = (e) => {
1771
- const { erpFeatures: t } = ao();
1773
+ const { erpFeatures: t } = lo();
1772
1774
  return !!t[e];
1773
1775
  }, Xc = an(
1774
1776
  ({
@@ -1789,18 +1791,18 @@ const Wt = ({
1789
1791
  }),
1790
1792
  [e, r, o, s]
1791
1793
  );
1792
- return /* @__PURE__ */ i(ls.Provider, { value: l, children: /* @__PURE__ */ i(
1793
- fl,
1794
+ return /* @__PURE__ */ i(cs.Provider, { value: l, children: /* @__PURE__ */ i(
1795
+ ml,
1794
1796
  {
1795
1797
  locale: t,
1796
- localizedStrings: ml(Jc, n),
1798
+ localizedStrings: pl(Jc, n),
1797
1799
  children: a
1798
1800
  }
1799
1801
  ) });
1800
1802
  }
1801
1803
  );
1802
1804
  Xc.displayName = "ConfigContextProvider";
1803
- async function cs({
1805
+ async function ds({
1804
1806
  actionId: e,
1805
1807
  rootContext: t = {},
1806
1808
  globalValues: n = {}
@@ -1853,11 +1855,11 @@ async function cs({
1853
1855
  };
1854
1856
  }
1855
1857
  const Zc = (e) => {
1856
- const [t, n] = x(), [r, o] = x(!0), [s, a] = x(), [l, c] = x(), u = ne(Be), { getContext: f, getPlainValues: d, activeId: p } = u || {}, { globalValues: h, rootContext: m } = ao(), y = me(() => ({ ...f == null ? void 0 : f(), ...m }), [f, m]);
1858
+ const [t, n] = x(), [r, o] = x(!0), [s, a] = x(), [l, c] = x(), u = ne(Be), { getContext: f, getPlainValues: d, activeId: p } = u || {}, { globalValues: h, rootContext: m } = lo(), y = me(() => ({ ...f == null ? void 0 : f(), ...m }), [f, m]);
1857
1859
  return { actionData: s, treeShortcut: l, loading: r, error: t, fetchData: async () => {
1858
1860
  n(void 0), o(!0);
1859
1861
  try {
1860
- const v = await cs({
1862
+ const v = await ds({
1861
1863
  actionId: e,
1862
1864
  rootContext: y,
1863
1865
  globalValues: {
@@ -1909,7 +1911,7 @@ const Zc = (e) => {
1909
1911
  },
1910
1912
  children: /* @__PURE__ */ i(He, {})
1911
1913
  }
1912
- ), ds = ({
1914
+ ), us = ({
1913
1915
  error: e,
1914
1916
  className: t
1915
1917
  }) => {
@@ -1917,7 +1919,7 @@ const Zc = (e) => {
1917
1919
  if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
1918
1920
 
1919
1921
  `) !== -1) {
1920
- const { message: o, type: s, title: a } = Xi(e);
1922
+ const { message: o, type: s, title: a } = Zi(e);
1921
1923
  n = /* @__PURE__ */ i(In, { content: `${a}<br />${o}` }), r = s;
1922
1924
  } else
1923
1925
  n = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
@@ -1955,7 +1957,7 @@ const Zc = (e) => {
1955
1957
  },
1956
1958
  [n, e]
1957
1959
  ), n];
1958
- }, Hn = 0.7, Un = 30, us = (e) => {
1960
+ }, Hn = 0.7, Un = 30, fs = (e) => {
1959
1961
  const [t, n] = x(0), [r, o] = x(0), {
1960
1962
  value: s,
1961
1963
  totalValue: a,
@@ -2006,7 +2008,7 @@ const Zc = (e) => {
2006
2008
  }
2007
2009
  );
2008
2010
  };
2009
- function fs(e, t) {
2011
+ function ms(e, t) {
2010
2012
  const r = document.createElement("canvas").getContext("2d");
2011
2013
  return r.font = t || getComputedStyle(document.body).font, r.measureText(e).width;
2012
2014
  }
@@ -2028,7 +2030,7 @@ function ed({
2028
2030
  });
2029
2031
  let d = r ? `${u}/${f}` : `${u}`;
2030
2032
  l && (d += " " + l);
2031
- let p = fs(
2033
+ let p = ms(
2032
2034
  d,
2033
2035
  `bold ${Math.floor(c * 1.03)}px sans-serif`
2034
2036
  );
@@ -2076,7 +2078,7 @@ function td({
2076
2078
  const h = `${r == null ? void 0 : r.toLocaleString("es-ES", {
2077
2079
  useGrouping: !0
2078
2080
  })}%`;
2079
- let m = fs(
2081
+ let m = ms(
2080
2082
  h,
2081
2083
  `bold ${Math.floor(f * 1.03)}px sans-serif`
2082
2084
  );
@@ -2117,7 +2119,7 @@ function td({
2117
2119
  }
2118
2120
  );
2119
2121
  }
2120
- const { getValueForOperator: Lo } = Di, nd = (e) => {
2122
+ const { getValueForOperator: jo } = Pi, nd = (e) => {
2121
2123
  const {
2122
2124
  model: t,
2123
2125
  domain: n,
@@ -2162,7 +2164,7 @@ const { getValueForOperator: Lo } = Di, nd = (e) => {
2162
2164
  fieldsToRetrieve: [u],
2163
2165
  context: r
2164
2166
  });
2165
- return Lo({
2167
+ return jo({
2166
2168
  values: J.map((H) => H[u]),
2167
2169
  operator: f
2168
2170
  });
@@ -2185,7 +2187,7 @@ const { getValueForOperator: Lo } = Di, nd = (e) => {
2185
2187
  fieldsToRetrieve: [u],
2186
2188
  context: r
2187
2189
  });
2188
- return Lo({
2190
+ return jo({
2189
2191
  values: te.map((J) => J[u]),
2190
2192
  operator: f
2191
2193
  });
@@ -2237,7 +2239,7 @@ const { getValueForOperator: Lo } = Di, nd = (e) => {
2237
2239
  m(!1);
2238
2240
  }
2239
2241
  return h ? /* @__PURE__ */ i(Rn, {}) : S ? /* @__PURE__ */ i(rt, { className: "mt-10", message: S, type: "error", banner: !0 }) : /* @__PURE__ */ i(
2240
- us,
2242
+ fs,
2241
2243
  {
2242
2244
  value: y,
2243
2245
  totalValue: I,
@@ -2249,7 +2251,7 @@ const { getValueForOperator: Lo } = Di, nd = (e) => {
2249
2251
  fixedHeight: p
2250
2252
  }
2251
2253
  );
2252
- }, { processGraphData: rd } = Di, { getFieldsToRetrieve: od } = Ka, id = (e) => {
2254
+ }, { processGraphData: rd } = Pi, { getFieldsToRetrieve: od } = qa, id = (e) => {
2253
2255
  const {
2254
2256
  model: t,
2255
2257
  ooui: n,
@@ -2388,7 +2390,6 @@ async function ad({
2388
2390
  fields: d
2389
2391
  };
2390
2392
  }
2391
- st.extend(Il);
2392
2393
  st.extend(Tl);
2393
2394
  st.extend(Ol);
2394
2395
  st.extend(Fl);
@@ -2396,6 +2397,7 @@ st.extend(Al);
2396
2397
  st.extend(Rl);
2397
2398
  st.extend(_l);
2398
2399
  st.extend(Vl);
2400
+ st.extend(El);
2399
2401
  const hr = (e) => (t) => {
2400
2402
  const n = t.value.toLocaleString("es-ES", {
2401
2403
  useGrouping: !0
@@ -2406,7 +2408,7 @@ const hr = (e) => (t) => {
2406
2408
  return parseFloat(e).toLocaleString("es-ES", {
2407
2409
  useGrouping: !0
2408
2410
  });
2409
- if (ms(e))
2411
+ if (ps(e))
2410
2412
  return e.toLocaleString("es-ES", {
2411
2413
  useGrouping: !0
2412
2414
  });
@@ -2417,7 +2419,7 @@ const hr = (e) => (t) => {
2417
2419
  );
2418
2420
  } else
2419
2421
  return e;
2420
- }, ld = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), ms = (e) => typeof e == "number" && !isNaN(e), jo = {
2422
+ }, ld = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), ps = (e) => typeof e == "number" && !isNaN(e), Bo = {
2421
2423
  default: {
2422
2424
  padding: "auto",
2423
2425
  xAxis: {
@@ -2546,11 +2548,11 @@ const ud = {
2546
2548
  x: a.x,
2547
2549
  percent: r[l]
2548
2550
  }));
2549
- }, { Text: Bo } = _t, ps = 400, md = an(Sl), pd = an(Cl), hd = an(xl), gd = {
2551
+ }, { Text: Ho } = _t, hs = 400, md = an(Cl), pd = an(xl), hd = an(Il), gd = {
2550
2552
  line: md,
2551
2553
  bar: pd,
2552
2554
  pie: hd
2553
- }, hs = ({
2555
+ }, gs = ({
2554
2556
  type: e,
2555
2557
  data: t,
2556
2558
  isGroup: n,
@@ -2617,10 +2619,10 @@ const ud = {
2617
2619
  height: a
2618
2620
  },
2619
2621
  children: [
2620
- /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ i(Bo, { type: "secondary", children: `${l("totalRegisters")} ${o.toLocaleString("es-ES", {
2622
+ /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ i(Ho, { type: "secondary", children: `${l("totalRegisters")} ${o.toLocaleString("es-ES", {
2621
2623
  useGrouping: !0
2622
2624
  })}` }) }),
2623
- c && /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ i(Bo, { type: "secondary", children: `${l("total")} ${c.toLocaleString("es-ES", {
2625
+ c && /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ i(Ho, { type: "secondary", children: `${l("total")} ${c.toLocaleString("es-ES", {
2624
2626
  useGrouping: !0
2625
2627
  })}` }) }),
2626
2628
  /* @__PURE__ */ i("div", { style: { width: "100%", height: "100%", overflow: "hidden" }, children: /* @__PURE__ */ i(h, { ...m }) })
@@ -2639,8 +2641,8 @@ function yd(e) {
2639
2641
  yAxisOpts: l = { mode: "default" },
2640
2642
  fixedHeight: c
2641
2643
  } = e;
2642
- let u = { ...jo[t] };
2643
- if (u || (u = { ...jo.default }), u.data = n, u.height = c, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...ud.inner }, u.legend.itemValue = s, u.label.content = a) : (u.xField = "x", u.yField = "value", u.seriesField = "type", u.isGroup = r, o && (u.isStack = !0, u.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
2644
+ let u = { ...Bo[t] };
2645
+ if (u || (u = { ...Bo.default }), u.data = n, u.height = c, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...ud.inner }, u.legend.itemValue = s, u.label.content = a) : (u.xField = "x", u.yField = "value", u.seriesField = "type", u.isGroup = r, o && (u.isStack = !0, u.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
2644
2646
  const f = l.valueOpts.min, d = l.valueOpts.max;
2645
2647
  u.yAxis = {
2646
2648
  min: f,
@@ -2673,7 +2675,7 @@ const vd = ({
2673
2675
  return /* @__PURE__ */ i(Rn, {});
2674
2676
  const { data: m, isGroup: y, isStack: g, yAxisOpts: v } = f;
2675
2677
  return c ? /* @__PURE__ */ i(rt, { message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(
2676
- hs,
2678
+ gs,
2677
2679
  {
2678
2680
  type: d,
2679
2681
  data: m,
@@ -2684,7 +2686,7 @@ const vd = ({
2684
2686
  fixedHeight: a
2685
2687
  }
2686
2688
  );
2687
- }, Rt = 80, at = ka(
2689
+ }, Rt = 80, at = $a(
2688
2690
  null
2689
2691
  ), wd = (e) => {
2690
2692
  const {
@@ -2804,7 +2806,7 @@ const vd = ({
2804
2806
  children: t
2805
2807
  }
2806
2808
  );
2807
- }, bd = () => !!ne(at), lo = () => {
2809
+ }, bd = () => !!ne(at), co = () => {
2808
2810
  const e = ne(at);
2809
2811
  return e || {
2810
2812
  title: "",
@@ -2912,7 +2914,7 @@ const vd = ({
2912
2914
  id: n,
2913
2915
  type: "graph",
2914
2916
  context: o
2915
- }), w = Pi(v.arch);
2917
+ }), w = ki(v.arch);
2916
2918
  p(w), f(!1), m == null || m(!1);
2917
2919
  } catch (v) {
2918
2920
  return console.error(v), f(!1), m == null || m(!1), /* @__PURE__ */ i(ae, { children: JSON.stringify(v) });
@@ -2956,7 +2958,7 @@ const vd = ({
2956
2958
  ooui: d,
2957
2959
  limit: a,
2958
2960
  manualIds: l,
2959
- fixedHeight: c || ps
2961
+ fixedHeight: c || hs
2960
2962
  }
2961
2963
  );
2962
2964
  default:
@@ -2964,7 +2966,7 @@ const vd = ({
2964
2966
  }
2965
2967
  }, un = yt(Sd);
2966
2968
  var fn = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e))(fn || {});
2967
- const xy = Object.values(fn), Cd = (e) => {
2969
+ const Cy = Object.values(fn), Cd = (e) => {
2968
2970
  const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: s } = e, [a, l] = x(!1), [c, u] = x(), [f, d] = x(), [p] = ze(
2969
2971
  $.getHandler().readForView
2970
2972
  ), h = N(async () => {
@@ -3015,7 +3017,7 @@ const xy = Object.values(fn), Cd = (e) => {
3015
3017
  case "indicator": {
3016
3018
  const { value: m, total: y, percent: g, icon: v, color: w, suffix: I } = p;
3017
3019
  return /* @__PURE__ */ i(
3018
- us,
3020
+ fs,
3019
3021
  {
3020
3022
  value: m,
3021
3023
  totalValue: y,
@@ -3023,7 +3025,7 @@ const xy = Object.values(fn), Cd = (e) => {
3023
3025
  color: w,
3024
3026
  icon: v,
3025
3027
  suffix: I,
3026
- showPercent: ms(g),
3028
+ showPercent: ps(g),
3027
3029
  fixedHeight: l
3028
3030
  }
3029
3031
  );
@@ -3033,7 +3035,7 @@ const xy = Object.values(fn), Cd = (e) => {
3033
3035
  case "pie": {
3034
3036
  const m = p;
3035
3037
  return /* @__PURE__ */ i(
3036
- hs,
3038
+ gs,
3037
3039
  {
3038
3040
  type: m.type,
3039
3041
  data: m.data,
@@ -3041,14 +3043,14 @@ const xy = Object.values(fn), Cd = (e) => {
3041
3043
  isStack: m.isStack,
3042
3044
  numItems: m.num_items,
3043
3045
  yAxisOpts: m.yAxisOpts,
3044
- fixedHeight: l || ps
3046
+ fixedHeight: l || hs
3045
3047
  }
3046
3048
  );
3047
3049
  }
3048
3050
  default:
3049
3051
  return /* @__PURE__ */ i(ae, { children: `Graph ${p.type} not implemented` });
3050
3052
  }
3051
- }, gs = yt(xd), bt = mt.createContext(null), Id = (e) => {
3053
+ }, ys = yt(xd), bt = mt.createContext(null), Id = (e) => {
3052
3054
  const {
3053
3055
  children: t,
3054
3056
  openAction: n,
@@ -3080,7 +3082,7 @@ const xy = Object.values(fn), Cd = (e) => {
3080
3082
  children: t
3081
3083
  }
3082
3084
  );
3083
- }, { useToken: Td } = Ge, { Text: Od } = _t, ys = (e) => {
3085
+ }, { useToken: Td } = Ge, { Text: Od } = _t, vs = (e) => {
3084
3086
  const { title: t, children: n, action: r, openAction: o, parms: s } = e, { token: a } = Td(), l = Object.keys(s).length > 0;
3085
3087
  return /* @__PURE__ */ D(
3086
3088
  "div",
@@ -3121,7 +3123,7 @@ const xy = Object.values(fn), Cd = (e) => {
3121
3123
  }
3122
3124
  ),
3123
3125
  r && /* @__PURE__ */ i(we, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ i(ke, { justify: "end", align: "middle", children: /* @__PURE__ */ i(
3124
- Ja,
3126
+ Qa,
3125
3127
  {
3126
3128
  style: { cursor: "pointer" },
3127
3129
  onClick: () => {
@@ -3147,7 +3149,7 @@ const xy = Object.values(fn), Cd = (e) => {
3147
3149
  " "
3148
3150
  ] }),
3149
3151
  n.tooltip && /* @__PURE__ */ i(Ft, { title: n.tooltip, children: /* @__PURE__ */ i(
3150
- Mi,
3152
+ Li,
3151
3153
  {
3152
3154
  className: "pr-1 text-xs",
3153
3155
  style: { color: t.colorPrimaryBg }
@@ -3157,7 +3159,7 @@ const xy = Object.values(fn), Cd = (e) => {
3157
3159
  let a = r;
3158
3160
  n.selectionValues.size ? a = n.selectionValues.get(r) : Array.isArray(r) && (a = r[1]);
3159
3161
  const l = /* @__PURE__ */ i(
3160
- Ma,
3162
+ La,
3161
3163
  {
3162
3164
  title: o,
3163
3165
  prefix: s && /* @__PURE__ */ i(s, {}),
@@ -3175,10 +3177,10 @@ const xy = Object.values(fn), Cd = (e) => {
3175
3177
  if (ue(() => {
3176
3178
  t && c();
3177
3179
  }, [t]), l)
3178
- return /* @__PURE__ */ i(ds, { error: l });
3179
- const { id: p, model: h, limit: m, domain: y, context: g, initialView: v } = o || {}, w = u ? gs : un;
3180
+ return /* @__PURE__ */ i(us, { error: l });
3181
+ const { id: p, model: h, limit: m, domain: y, context: g, initialView: v } = o || {}, w = u ? ys : un;
3180
3182
  return /* @__PURE__ */ D(
3181
- ys,
3183
+ vs,
3182
3184
  {
3183
3185
  id: p,
3184
3186
  parms: {},
@@ -3205,16 +3207,16 @@ const xy = Object.values(fn), Cd = (e) => {
3205
3207
  function Vd(e) {
3206
3208
  return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
3207
3209
  }
3208
- const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs, { ...e }) }), vs = (e) => {
3210
+ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(ws, { ...e }) }), ws = (e) => {
3209
3211
  const { t } = he(), { ooui: n, value: r } = e;
3210
3212
  let o = r, s = An, a = r;
3211
3213
  if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ? Vd(n.label) : `${t("not")} ${n.label.toLowerCase()}`, s = Hc), !o)
3212
3214
  return null;
3213
3215
  const l = n.colors === "auto" ? s(a) : n.colors[a] || s(a);
3214
- return /* @__PURE__ */ i(co, { color: l, children: o });
3215
- }, co = (e) => {
3216
+ return /* @__PURE__ */ i(uo, { color: l, children: o });
3217
+ }, uo = (e) => {
3216
3218
  let { color: t } = e, n = {};
3217
- return !Ji(e.color) && !Qi(e.color) && (n = {
3219
+ return !Qi(e.color) && !Xi(e.color) && (n = {
3218
3220
  color: t,
3219
3221
  borderColor: t,
3220
3222
  borderStyle: "solid",
@@ -3279,7 +3281,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3279
3281
  F.preventDefault(), F.stopPropagation();
3280
3282
  }, A = An(T);
3281
3283
  return /* @__PURE__ */ i(
3282
- co,
3284
+ uo,
3283
3285
  {
3284
3286
  color: A,
3285
3287
  onMouseDown: V,
@@ -3313,11 +3315,11 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3313
3315
  case "notebook":
3314
3316
  return Jp;
3315
3317
  case "group":
3316
- return pa;
3318
+ return ha;
3317
3319
  case "label":
3318
3320
  return rr;
3319
3321
  case "char":
3320
- return es;
3322
+ return ts;
3321
3323
  case "text":
3322
3324
  return Xp;
3323
3325
  case "button":
@@ -3325,7 +3327,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3325
3327
  case "buttonGroup":
3326
3328
  return rc;
3327
3329
  case "selection":
3328
- return ts;
3330
+ return ns;
3329
3331
  case "many2one":
3330
3332
  return bp;
3331
3333
  case "boolean":
@@ -3333,7 +3335,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3333
3335
  case "integer":
3334
3336
  return Kn;
3335
3337
  case "float":
3336
- return Rs;
3338
+ return _s;
3337
3339
  case "progressbar":
3338
3340
  return nu;
3339
3341
  case "date":
@@ -3398,7 +3400,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3398
3400
  }
3399
3401
  }, $d = (e) => {
3400
3402
  const { ooui: t } = e, { type: n } = t, r = kd(n);
3401
- return r ? $a(r, e) : null;
3403
+ return r ? Na(r, e) : null;
3402
3404
  }, Nd = ({
3403
3405
  item: e,
3404
3406
  responsiveBehaviour: t
@@ -3427,7 +3429,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3427
3429
  row: e,
3428
3430
  numberOfColumns: t
3429
3431
  }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), jd = (e, t) => {
3430
- const n = e.map((r) => r instanceof ln && r.fieldForLabel || r instanceof qa ? "auto" : "1fr");
3432
+ const n = e.map((r) => r instanceof ln && r.fieldForLabel || r instanceof Ya ? "auto" : "1fr");
3431
3433
  if (n.length < t) {
3432
3434
  const r = t - n.length;
3433
3435
  for (let o = 0; o < r; o++)
@@ -3493,7 +3495,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3493
3495
  onCancel: t,
3494
3496
  cancelText: n("cancel")
3495
3497
  });
3496
- }, { error: Wd } = ct, Ho = (e) => {
3498
+ }, { error: Wd } = ct, Uo = (e) => {
3497
3499
  Wd({
3498
3500
  title: e("formHasErrors"),
3499
3501
  icon: /* @__PURE__ */ i(Vt, {}),
@@ -3503,15 +3505,15 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3503
3505
  }, { warning: Gd } = ct, Kd = (e, t, n) => {
3504
3506
  Gd({
3505
3507
  title: e,
3506
- icon: /* @__PURE__ */ i(Li, {}),
3508
+ icon: /* @__PURE__ */ i(ji, {}),
3507
3509
  centered: !0,
3508
3510
  content: t,
3509
3511
  onOk: n
3510
3512
  });
3511
- }, ws = mt.createContext(null), qd = (e) => {
3513
+ }, bs = mt.createContext(null), qd = (e) => {
3512
3514
  const { children: t, setTitle: n } = e;
3513
3515
  return /* @__PURE__ */ i(
3514
- ws.Provider,
3516
+ bs.Provider,
3515
3517
  {
3516
3518
  value: {
3517
3519
  setTitle: n
@@ -3519,7 +3521,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3519
3521
  children: t
3520
3522
  }
3521
3523
  );
3522
- }, pn = mt.createContext(null), Uo = async (e) => {
3524
+ }, pn = mt.createContext(null), Wo = async (e) => {
3523
3525
  var t;
3524
3526
  for (let n = 0; n < e.length; n++)
3525
3527
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
@@ -3694,7 +3696,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3694
3696
  }), h(!1), await new Promise((F) => setTimeout(F, 300)), y({ domain: T, model: R, context: V, formView: S, actionData: A }), h(!0);
3695
3697
  }
3696
3698
  async function O() {
3697
- Uo(f.current), f.current = [], h(!1), y({
3699
+ Wo(f.current), f.current = [], h(!1), y({
3698
3700
  domain: void 0,
3699
3701
  model: void 0,
3700
3702
  context: {},
@@ -3734,7 +3736,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3734
3736
  visible: p,
3735
3737
  onSubmitSucceed: O,
3736
3738
  onCancel: () => {
3737
- Uo(f.current), f.current = [], h(!1), y({
3739
+ Wo(f.current), f.current = [], h(!1), y({
3738
3740
  domain: void 0,
3739
3741
  model: void 0,
3740
3742
  context: {},
@@ -3832,7 +3834,7 @@ function Zd(e, t) {
3832
3834
  forcedValues: O = {},
3833
3835
  parentWidth: T,
3834
3836
  onMustRefreshParent: R
3835
- } = e, { t: S } = he(), [V, A] = x(!1), [F, P] = x(), [_, k] = x(), [M] = pt.useForm(), [W, j] = x(), [E, X] = x(), te = ne(ws), [J, H] = x(), [oe, Z] = x(!1), B = Q(), G = Q({}), L = Q({}), ee = Q(!1), le = Q(!1), K = Q(!1), ve = (T !== void 0 ? T : J) < Xd, $e = ne(Be), { activeId: Le, getPlainValues: Pe } = $e || {}, Fe = Q(!1), qe = ne(
3837
+ } = e, { t: S } = he(), [V, A] = x(!1), [F, P] = x(), [_, k] = x(), [M] = pt.useForm(), [W, j] = x(), [E, X] = x(), te = ne(bs), [J, H] = x(), [oe, Z] = x(!1), B = Q(), G = Q({}), L = Q({}), ee = Q(!1), le = Q(!1), K = Q(!1), ve = (T !== void 0 ? T : J) < Xd, $e = ne(Be), { activeId: Le, getPlainValues: Pe } = $e || {}, Fe = Q(!1), qe = ne(
3836
3838
  at
3837
3839
  ), {
3838
3840
  setFormIsSaving: Ie = void 0,
@@ -4008,15 +4010,15 @@ function Zd(e, t) {
4008
4010
  reset: se,
4009
4011
  isDefaultGet: ce = !1
4010
4012
  }) => {
4011
- const Xe = { ...se ? {} : M.getFieldsValue(!0), ...U }, ur = Jt(Xe, q), Va = Object.keys(q).map((fr) => {
4012
- const Ea = ur[fr] !== void 0 ? ur[fr] : void 0;
4013
+ const Xe = { ...se ? {} : M.getFieldsValue(!0), ...U }, ur = Jt(Xe, q), Ea = Object.keys(q).map((fr) => {
4014
+ const Da = ur[fr] !== void 0 ? ur[fr] : void 0;
4013
4015
  return {
4014
4016
  name: fr,
4015
4017
  touched: !1,
4016
- value: Ea
4018
+ value: Da
4017
4019
  };
4018
4020
  });
4019
- ce || (L.current = ur), M.setFields(Va);
4021
+ ce || (L.current = ur), M.setFields(Ea);
4020
4022
  }, Dt = async ({
4021
4023
  fields: U,
4022
4024
  arch: q
@@ -4098,7 +4100,7 @@ function Zd(e, t) {
4098
4100
  if (!ft() && ge() && se)
4099
4101
  return le.current = !1, de == null || de(!1), Oe == null || Oe(), { succeed: !0, id: ge() };
4100
4102
  if (await Et())
4101
- return le.current = !1, Ho(S), { succeed: !1, id: ge() };
4103
+ return le.current = !1, Uo(S), { succeed: !1, id: ge() };
4102
4104
  A(!0), Ie == null || Ie(!0);
4103
4105
  try {
4104
4106
  p === "api" ? await Pt(U) : await vn(U), d && (B.current = void 0, Qe({ values: {}, fields: E, reset: !0 })), await ie({ forceRefresh: !0 }), q = !0, mr.success(S("savedRegisters"));
@@ -4114,7 +4116,7 @@ function Zd(e, t) {
4114
4116
  values: se,
4115
4117
  operationInProgress: ce = !1
4116
4118
  }) => {
4117
- const xe = new ki(U);
4119
+ const xe = new $i(U);
4118
4120
  return xe.parse(q, {
4119
4121
  readOnly: f || ce,
4120
4122
  values: Rc(
@@ -4165,18 +4167,18 @@ function Zd(e, t) {
4165
4167
  ]
4166
4168
  }) && U !== !0)) {
4167
4169
  const ce = Jt(M.getFieldsValue(!0), E);
4168
- L.current = ce, c == null || c(ce), de == null || de(!0), Ca(se);
4170
+ L.current = ce, c == null || c(ce), de == null || de(!0), xa(se);
4169
4171
  }
4170
- }, $t = bl(bn, 100), Ca = async (U) => {
4172
+ }, $t = Sl(bn, 100), xa = async (U) => {
4171
4173
  try {
4172
4174
  for (let q = 0; q < U.length; q += 1) {
4173
4175
  const se = U[q];
4174
- await xa(se);
4176
+ await Ia(se);
4175
4177
  }
4176
4178
  } catch (q) {
4177
4179
  it(q);
4178
4180
  }
4179
- }, xa = async (U) => {
4181
+ }, Ia = async (U) => {
4180
4182
  const q = _ == null ? void 0 : _.onChangeFields[U];
4181
4183
  if (!q) {
4182
4184
  It({
@@ -4239,7 +4241,7 @@ function Zd(e, t) {
4239
4241
  }), X(xe);
4240
4242
  }
4241
4243
  };
4242
- async function Ia({
4244
+ async function Ta({
4243
4245
  action: U,
4244
4246
  context: q
4245
4247
  }) {
@@ -4263,14 +4265,14 @@ function Zd(e, t) {
4263
4265
  context: se.context,
4264
4266
  fields: E,
4265
4267
  values: z()
4266
- })), await Co({
4268
+ })), await xo({
4267
4269
  actionData: se,
4268
4270
  context: { ...q, ...ce }
4269
4271
  });
4270
4272
  } else
4271
4273
  await ie({ forceRefresh: !0 });
4272
4274
  }
4273
- async function Ta({ action: U }) {
4275
+ async function Oa({ action: U }) {
4274
4276
  const q = await $.getHandler().executeWorkflow({
4275
4277
  model: n,
4276
4278
  action: U,
@@ -4278,7 +4280,7 @@ function Zd(e, t) {
4278
4280
  });
4279
4281
  q.type && q.type === "ir.actions.act_window_close" ? re == null || re(ge(), z(), Re()) : await ie({ forceRefresh: !0 });
4280
4282
  }
4281
- async function Oa({
4283
+ async function Fa({
4282
4284
  action: U,
4283
4285
  context: q
4284
4286
  }) {
@@ -4287,9 +4289,9 @@ function Zd(e, t) {
4287
4289
  ids: [parseInt(U)],
4288
4290
  context: v
4289
4291
  }))[0];
4290
- await Co({ actionData: se, context: q });
4292
+ await xo({ actionData: se, context: q });
4291
4293
  }
4292
- async function Co({
4294
+ async function xo({
4293
4295
  actionData: U,
4294
4296
  context: q
4295
4297
  }) {
@@ -4308,7 +4310,7 @@ function Zd(e, t) {
4308
4310
  })) || {};
4309
4311
  !C && se && (re == null || re(ge(), z(), Re()));
4310
4312
  }
4311
- function Fa() {
4313
+ function Aa() {
4312
4314
  bn({ elementHasLostFocus: !0 });
4313
4315
  }
4314
4316
  function dr(U) {
@@ -4319,7 +4321,7 @@ function Zd(e, t) {
4319
4321
  operationInProgress: U
4320
4322
  });
4321
4323
  }
4322
- async function Aa({
4324
+ async function Ra({
4323
4325
  type: U,
4324
4326
  action: q,
4325
4327
  context: se
@@ -4329,19 +4331,19 @@ function Zd(e, t) {
4329
4331
  return;
4330
4332
  }
4331
4333
  if (await Et()) {
4332
- Ho(S);
4334
+ Uo(S);
4333
4335
  return;
4334
4336
  }
4335
4337
  let ce = !1;
4336
4338
  try {
4337
4339
  !f && (ft() || ge() === void 0) && (ce = !0, dr(!0), p === "2many" ? (await Pt({ callOnSubmitSucceed: !1 }), K.current = !0) : await kt({ callOnSubmitSucceed: !1 }));
4338
4340
  const xe = K.current ? De() : {}, Xe = { ...se, ...xe };
4339
- U === "object" ? await Ia({ action: q, context: Xe }) : U === "workflow" ? await Ta({ action: q }) : U === "action" && await Oa({ action: q, context: Xe }), ce && dr(!1);
4341
+ U === "object" ? await Ta({ action: q, context: Xe }) : U === "workflow" ? await Oa({ action: q }) : U === "action" && await Fa({ action: q, context: Xe }), ce && dr(!1);
4340
4342
  } catch (xe) {
4341
4343
  ce && dr(!1), it(xe);
4342
4344
  }
4343
4345
  }
4344
- const Ra = () => !_ && !F ? /* @__PURE__ */ i(He, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(
4346
+ const _a = () => !_ && !F ? /* @__PURE__ */ i(He, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(
4345
4347
  Jl,
4346
4348
  {
4347
4349
  getValues: z,
@@ -4352,12 +4354,12 @@ function Zd(e, t) {
4352
4354
  activeModel: n,
4353
4355
  setFieldValue: gt,
4354
4356
  getFieldValue: Gt,
4355
- executeButtonAction: Aa,
4357
+ executeButtonAction: Ra,
4356
4358
  getContext: be,
4357
4359
  submitForm: kt,
4358
4360
  fetchValues: ie,
4359
4361
  formHasChanges: ft,
4360
- elementHasLostFocus: Fa,
4362
+ elementHasLostFocus: Aa,
4361
4363
  formView: m,
4362
4364
  children: /* @__PURE__ */ i(
4363
4365
  pt,
@@ -4377,7 +4379,7 @@ function Zd(e, t) {
4377
4379
  }
4378
4380
  )
4379
4381
  }
4380
- ) }), _a = () => /* @__PURE__ */ D(ae, { children: [
4382
+ ) }), Va = () => /* @__PURE__ */ D(ae, { children: [
4381
4383
  /* @__PURE__ */ i(zn, {}),
4382
4384
  /* @__PURE__ */ i(ke, { justify: "end", children: /* @__PURE__ */ D(Je, { children: [
4383
4385
  /* @__PURE__ */ i(
@@ -4415,9 +4417,9 @@ function Zd(e, t) {
4415
4417
  H((q = U.bounds) == null ? void 0 : q.width);
4416
4418
  },
4417
4419
  children: ({ measureRef: U }) => /* @__PURE__ */ D("div", { className: "pb-2", ref: U, children: [
4418
- F && /* @__PURE__ */ i(ds, { className: "mt-5 mb-10", error: F }),
4419
- Ra(),
4420
- a && _a()
4420
+ F && /* @__PURE__ */ i(us, { className: "mt-5 mb-10", error: F }),
4421
+ _a(),
4422
+ a && Va()
4421
4423
  ] })
4422
4424
  }
4423
4425
  ) : null;
@@ -4467,7 +4469,7 @@ const hn = yt(Zd), gn = (e) => {
4467
4469
  je,
4468
4470
  {
4469
4471
  type: h ? "primary" : "default",
4470
- icon: h ? /* @__PURE__ */ i(Qa, { style: { color: "white" } }) : /* @__PURE__ */ i(Xa, {}),
4472
+ icon: h ? /* @__PURE__ */ i(Xa, { style: { color: "white" } }) : /* @__PURE__ */ i(Za, {}),
4471
4473
  style: { width: 30 },
4472
4474
  onClick: O
4473
4475
  }
@@ -4511,8 +4513,8 @@ const hn = yt(Zd), gn = (e) => {
4511
4513
  }, Rr = (e) => {
4512
4514
  const t = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
4513
4515
  Ht(t);
4514
- }, bs = () => {
4515
- const { modal: e } = La.useApp();
4516
+ }, Ss = () => {
4517
+ const { modal: e } = ja.useApp();
4516
4518
  return N(
4517
4519
  (t) => {
4518
4520
  const n = t.message ? JSON.stringify(t.message) : JSON.stringify(t);
@@ -4525,7 +4527,7 @@ const hn = yt(Zd), gn = (e) => {
4525
4527
  },
4526
4528
  [e]
4527
4529
  );
4528
- }, Ss = ({
4530
+ }, Cs = ({
4529
4531
  model: e,
4530
4532
  formViewProps: t,
4531
4533
  treeViewProps: n,
@@ -4573,7 +4575,7 @@ function tu(e) {
4573
4575
  return 0;
4574
4576
  }
4575
4577
  }
4576
- function Cs(e) {
4578
+ function xs(e) {
4577
4579
  if (e === void 0)
4578
4580
  return;
4579
4581
  let t, n = Math.floor(Math.abs(e)), r = Math.round(Math.abs(e) % 1 * 100) / 100;
@@ -4589,7 +4591,7 @@ function Cs(e) {
4589
4591
  });
4590
4592
  return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
4591
4593
  }
4592
- const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs, {}) }), xs = ({ value: e }) => {
4594
+ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Is, {}) }), Is = ({ value: e }) => {
4593
4595
  const t = `${(e || 0).toLocaleString("en-US", {
4594
4596
  minimumIntegerDigits: 1,
4595
4597
  maximumFractionDigits: 4,
@@ -4599,7 +4601,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4599
4601
  /* @__PURE__ */ i(ru, { percent: e }),
4600
4602
  /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
4601
4603
  ] });
4602
- }, ru = dn(ja)`
4604
+ }, ru = dn(Ba)`
4603
4605
  .ant-progress-outer {
4604
4606
  margin-right: 0px;
4605
4607
  padding-right: 0px;
@@ -4649,7 +4651,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4649
4651
  }, [l, e]);
4650
4652
  return /* @__PURE__ */ D(Fn, { children: [
4651
4653
  /* @__PURE__ */ i(
4652
- pl,
4654
+ hl,
4653
4655
  {
4654
4656
  onRetrieveData: f,
4655
4657
  onItemClick: (d) => {
@@ -4661,7 +4663,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4661
4663
  }
4662
4664
  ),
4663
4665
  /* @__PURE__ */ i(
4664
- Ro,
4666
+ _o,
4665
4667
  {
4666
4668
  visible: r,
4667
4669
  items: c == null ? void 0 : c.actionItems,
@@ -4672,7 +4674,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4672
4674
  }
4673
4675
  ),
4674
4676
  /* @__PURE__ */ i(
4675
- Ro,
4677
+ _o,
4676
4678
  {
4677
4679
  visible: s,
4678
4680
  items: c == null ? void 0 : c.printItems,
@@ -4683,7 +4685,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4683
4685
  }
4684
4686
  )
4685
4687
  ] });
4686
- }, uo = (e) => {
4688
+ }, fo = (e) => {
4687
4689
  const { id: t, model: n, context: r = {} } = e, [o, s] = x(), [a, l] = x(), c = ne(
4688
4690
  bt
4689
4691
  ), { openRelate: u } = c || {}, f = ne(
@@ -4765,7 +4767,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4765
4767
  const s = t[o];
4766
4768
  return (s == null ? void 0 : s.flatMap((a) => {
4767
4769
  const l = [];
4768
- return "context" in a && l.push(...Ya(a.context)), "domain" in a && l.push(...za(a.domain)), l;
4770
+ return "context" in a && l.push(...za(a.context)), "domain" in a && l.push(...Ja(a.domain)), l;
4769
4771
  })) || [];
4770
4772
  });
4771
4773
  return [
@@ -4775,7 +4777,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4775
4777
  const { m2oField: t } = e;
4776
4778
  return t ? /* @__PURE__ */ D(Je, { children: [
4777
4779
  /* @__PURE__ */ i(ae, { children: t.value }),
4778
- /* @__PURE__ */ i(uo, { id: t.id, model: t.model })
4780
+ /* @__PURE__ */ i(fo, { id: t.id, model: t.model })
4779
4781
  ] }) : /* @__PURE__ */ i(ae, {});
4780
4782
  }, au = (e) => {
4781
4783
  const { value: t, context: n, selectionValues: r } = e, [o, s] = x(), [a, l] = x(!1), [c, u] = t ? t.split(",") : [], f = parseInt(u), d = N(async () => {
@@ -4800,7 +4802,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4800
4802
  return /* @__PURE__ */ D(Je, { children: [
4801
4803
  /* @__PURE__ */ i(ae, { children: `${p}:` }),
4802
4804
  /* @__PURE__ */ i(ae, { children: o }),
4803
- /* @__PURE__ */ i(uo, { id: f, model: c })
4805
+ /* @__PURE__ */ i(fo, { id: f, model: c })
4804
4806
  ] });
4805
4807
  }, lu = (e) => {
4806
4808
  const { ooui: t, value: n } = e;
@@ -4809,12 +4811,12 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4809
4811
  let r = n;
4810
4812
  t.selectionValues.size ? r = t.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
4811
4813
  const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = An(r);
4812
- return /* @__PURE__ */ i(Ft, { title: r, children: /* @__PURE__ */ i(Fi, { alt: r, style: { backgroundColor: s }, children: o }) });
4814
+ return /* @__PURE__ */ i(Ft, { title: r, children: /* @__PURE__ */ i(Ai, { alt: r, style: { backgroundColor: s }, children: o }) });
4813
4815
  }, cu = {
4814
- en_US: Pl,
4815
- es_ES: kl,
4816
- ca_ES: $l
4817
- }, fo = () => {
4816
+ en_US: kl,
4817
+ es_ES: $l,
4818
+ ca_ES: Nl
4819
+ }, mo = () => {
4818
4820
  const { locale: e } = he();
4819
4821
  return cu[e];
4820
4822
  }, { useToken: du } = Ge, Ct = {
@@ -4828,11 +4830,11 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4828
4830
  dateDisplayFormat: "DD/MM/YYYY HH:mm:ss",
4829
4831
  dateInternalFormat: "YYYY-MM-DD HH:mm:ss"
4830
4832
  }
4831
- }, Is = (e) => {
4833
+ }, Ts = (e) => {
4832
4834
  const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
4833
4835
  return /* @__PURE__ */ i(_e, { required: r, ...e, children: /* @__PURE__ */ i(uu, { ooui: t, showTime: n }) });
4834
4836
  }, uu = (e) => {
4835
- const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: s, readOnly: a, required: l } = r, { token: c } = du(), u = fo(), f = l && !a ? { backgroundColor: c.colorPrimaryBg } : void 0, d = o ? "time" : "date", p = (y) => {
4837
+ const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: s, readOnly: a, required: l } = r, { token: c } = du(), u = mo(), f = l && !a ? { backgroundColor: c.colorPrimaryBg } : void 0, d = o ? "time" : "date", p = (y) => {
4836
4838
  n == null || n(y);
4837
4839
  }, h = (y) => {
4838
4840
  if (y == null) {
@@ -4859,7 +4861,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4859
4861
  locale: u
4860
4862
  }
4861
4863
  );
4862
- }, Ts = ({
4864
+ }, Os = ({
4863
4865
  emails: e,
4864
4866
  handleClose: t
4865
4867
  }) => {
@@ -4870,7 +4872,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4870
4872
  Wr,
4871
4873
  {
4872
4874
  closable: !!t,
4873
- color: Nl.isEmail(r) ? void 0 : "error",
4875
+ color: Ml.isEmail(r) ? void 0 : "error",
4874
4876
  onClose: () => t && t(r),
4875
4877
  children: r
4876
4878
  },
@@ -4924,7 +4926,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4924
4926
  },
4925
4927
  children: [
4926
4928
  /* @__PURE__ */ i(
4927
- Ts,
4929
+ Os,
4928
4930
  {
4929
4931
  emails: s,
4930
4932
  handleClose: r ? void 0 : y
@@ -4973,7 +4975,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4973
4975
  [e]
4974
4976
  ), pu = ({
4975
4977
  value: e
4976
- }) => me(() => /* @__PURE__ */ i(Ts, { emails: e }), [e]), hu = ({ value: e }) => me(() => /* @__PURE__ */ i(su, { m2oField: e }), [e]), gu = ({ value: e }) => me(
4978
+ }) => me(() => /* @__PURE__ */ i(Os, { emails: e }), [e]), hu = ({ value: e }) => me(() => /* @__PURE__ */ i(su, { m2oField: e }), [e]), gu = ({ value: e }) => me(
4977
4979
  () => /* @__PURE__ */ i(
4978
4980
  In,
4979
4981
  {
@@ -4997,31 +4999,25 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4997
4999
  Ct.time.dateInternalFormat
4998
5000
  ).format(Ct.time.dateDisplayFormat);
4999
5001
  return /* @__PURE__ */ i(ae, { children: t });
5000
- }, [e]), Wo = ({
5002
+ }, [e]), Go = ({
5001
5003
  value: e
5002
5004
  }) => me(() => {
5003
5005
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
5004
5006
  return /* @__PURE__ */ i(ae, { children: `( ${t} )` });
5005
5007
  }, [e]), wu = ({
5006
5008
  value: e
5007
- }) => me(() => /* @__PURE__ */ i(xs, { value: e }), [e]), bu = ({ value: e }) => me(() => /* @__PURE__ */ i(ae, { children: Cs(e) }), [e]), Go = ({ value: e }) => me(
5009
+ }) => me(() => /* @__PURE__ */ i(Is, { value: e }), [e]), bu = ({ value: e }) => me(() => /* @__PURE__ */ i(ae, { children: xs(e) }), [e]), Ko = ({ value: e }) => me(
5008
5010
  () => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: e }),
5009
5011
  [e]
5010
5012
  ), Su = ({ value: e }) => me(
5011
- () => /* @__PURE__ */ i(
5012
- "img",
5013
- {
5014
- src: `data:image/*;base64,${e}`,
5015
- style: { maxWidth: "50px", padding: "5px" }
5016
- }
5017
- ),
5013
+ () => /* @__PURE__ */ i(io, { value: e, style: { maxHeight: "30px" } }),
5018
5014
  [e]
5019
5015
  ), Cu = ({
5020
5016
  value: e,
5021
5017
  key: t,
5022
5018
  ooui: n,
5023
5019
  context: r
5024
- }) => me(() => /* @__PURE__ */ i(vs, { ooui: n, value: e }), [n, e]), xu = ({
5020
+ }) => me(() => /* @__PURE__ */ i(ws, { ooui: n, value: e }), [n, e]), xu = ({
5025
5021
  value: e,
5026
5022
  key: t,
5027
5023
  ooui: n,
@@ -5079,7 +5075,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5079
5075
  const d = me(
5080
5076
  () => o.map((p) => {
5081
5077
  const { id: h, name: m } = p, y = An(m);
5082
- return /* @__PURE__ */ i(co, { color: y, children: m }, `${h}`);
5078
+ return /* @__PURE__ */ i(uo, { color: y, children: m }, `${h}`);
5083
5079
  }),
5084
5080
  [o]
5085
5081
  );
@@ -5094,17 +5090,17 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5094
5090
  children: d
5095
5091
  }
5096
5092
  ), [d, a]);
5097
- }, mo = {
5093
+ }, po = {
5098
5094
  boolean: mu,
5099
5095
  many2one: hu,
5100
5096
  text: gu,
5101
- one2many: Wo,
5102
- many2many: Wo,
5097
+ one2many: Go,
5098
+ many2many: Go,
5103
5099
  progressbar: wu,
5104
5100
  float_time: bu,
5105
5101
  image: Su,
5106
- integer: Go,
5107
- float: Go,
5102
+ integer: Ko,
5103
+ float: Ko,
5108
5104
  reference: Iu,
5109
5105
  tag: Cu,
5110
5106
  selection: xu,
@@ -5209,7 +5205,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5209
5205
  [e]
5210
5206
  );
5211
5207
  return { getColumnState: a, updateColumnState: l };
5212
- }, Os = (e) => {
5208
+ }, Fs = (e) => {
5213
5209
  const [t, n] = x(!0), r = Q(void 0), o = Q(!1), { getColumnState: s, updateColumnState: a } = _u(e);
5214
5210
  return ue(() => {
5215
5211
  if (!e) {
@@ -5229,7 +5225,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5229
5225
  }
5230
5226
  })();
5231
5227
  }, [s, e]), { getColumnState: N(() => r.current, []), loading: t, updateColumnState: a };
5232
- }, Vu = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, Ko = ["sum", "count", "max", "min"], Fs = ({
5228
+ }, Vu = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, qo = ["sum", "count", "max", "min"], As = ({
5233
5229
  ooui: e,
5234
5230
  model: t,
5235
5231
  domain: n,
@@ -5241,9 +5237,9 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5241
5237
  if (e)
5242
5238
  return e.columns.filter((h) => Object.keys(h).some((m) => {
5243
5239
  var y;
5244
- return h[m] !== void 0 && ((y = h[m]) == null ? void 0 : y.length) > 0 && Ko.includes(m.slice(1));
5240
+ return h[m] !== void 0 && ((y = h[m]) == null ? void 0 : y.length) > 0 && qo.includes(m.slice(1));
5245
5241
  })).map((h) => {
5246
- const m = Object.keys(h).filter((y) => Ko.includes(y.slice(1))).map((y) => y.slice(1));
5242
+ const m = Object.keys(h).filter((y) => qo.includes(y.slice(1))).map((y) => y.slice(1));
5247
5243
  return {
5248
5244
  [h.id]: m
5249
5245
  };
@@ -5298,7 +5294,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5298
5294
  l(!1);
5299
5295
  }
5300
5296
  }, [n, f, t, e == null ? void 0 : e.columns, c]);
5301
- Yi(() => {
5297
+ zi(() => {
5302
5298
  if (!(!f || Object.keys(f).length === 0))
5303
5299
  return d(), () => {
5304
5300
  u();
@@ -5306,7 +5302,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5306
5302
  }, [f, n]);
5307
5303
  const p = f !== void 0 && Object.keys(f).length > 0;
5308
5304
  return [a, o, p];
5309
- }, As = ({
5305
+ }, Rs = ({
5310
5306
  aggregates: e,
5311
5307
  isLoading: t
5312
5308
  }) => {
@@ -5327,7 +5323,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5327
5323
  ]
5328
5324
  }
5329
5325
  );
5330
- }, { Text: qo } = _t, Eu = ({
5326
+ }, { Text: Yo } = _t, Eu = ({
5331
5327
  totalRows: e,
5332
5328
  selectedRowKeys: t,
5333
5329
  allRowSelectedMode: n
@@ -5358,7 +5354,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5358
5354
  t("selectedRegisters"),
5359
5355
  " - (id:",
5360
5356
  " ",
5361
- /* @__PURE__ */ i(qo, { copyable: !0, children: e[0] }),
5357
+ /* @__PURE__ */ i(Yo, { copyable: !0, children: e[0] }),
5362
5358
  ")"
5363
5359
  ] });
5364
5360
  if (e.length > 1)
@@ -5367,7 +5363,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5367
5363
  " ",
5368
5364
  t("selectedRegisters") + " ",
5369
5365
  /* @__PURE__ */ i(
5370
- qo,
5366
+ Yo,
5371
5367
  {
5372
5368
  copyable: {
5373
5369
  text: e.join(", ")
@@ -5376,7 +5372,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5376
5372
  )
5377
5373
  ] });
5378
5374
  }, Pu = (e) => {
5379
- const t = fo();
5375
+ const t = mo();
5380
5376
  return /* @__PURE__ */ i(_e, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
5381
5377
  Gr.RangePicker,
5382
5378
  {
@@ -5394,7 +5390,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5394
5390
  }) => {
5395
5391
  const o = Q(), s = Q(0);
5396
5392
  return /* @__PURE__ */ i(
5397
- Ba,
5393
+ Ha,
5398
5394
  {
5399
5395
  ...r,
5400
5396
  ref: o,
@@ -5409,7 +5405,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5409
5405
  }
5410
5406
  );
5411
5407
  }, ku = (e) => {
5412
- const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, s = fo(), a = [
5408
+ const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, s = mo(), a = [
5413
5409
  new Or({
5414
5410
  name: o + "#date",
5415
5411
  label: ""
@@ -5473,10 +5469,10 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5473
5469
  }
5474
5470
  }
5475
5471
  )
5476
- ] }), { useToken: Nu } = Ge, Rs = (e) => {
5472
+ ] }), { useToken: Nu } = Ge, _s = (e) => {
5477
5473
  const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: s } = t, { token: a } = Nu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = ne(Be), { elementHasLostFocus: u } = c || {};
5478
5474
  return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
5479
- Ai,
5475
+ Ri,
5480
5476
  {
5481
5477
  disabled: o,
5482
5478
  className: "w-full",
@@ -5492,7 +5488,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5492
5488
  }, { useToken: Mu } = Ge, Kn = (e) => {
5493
5489
  const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } = Mu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = ne(Be), { elementHasLostFocus: u } = c || {};
5494
5490
  return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
5495
- Ai,
5491
+ Ri,
5496
5492
  {
5497
5493
  id: r,
5498
5494
  className: "w-full ",
@@ -5510,7 +5506,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5510
5506
  ) });
5511
5507
  };
5512
5508
  function Lu(e) {
5513
- const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof Fr ? Kn : Rs, l = (c) => /* @__PURE__ */ i(
5509
+ const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof Fr ? Kn : _s, l = (c) => /* @__PURE__ */ i(
5514
5510
  a,
5515
5511
  {
5516
5512
  ooui: {
@@ -5589,7 +5585,7 @@ const { defaultAlgorithm: ju, defaultSeed: Bu } = Ge, Hu = ju(Bu), { Option: Uu
5589
5585
  background-color: ${Hu.colorPrimaryBg};
5590
5586
  }
5591
5587
  `;
5592
- function _s(e) {
5588
+ function Vs(e) {
5593
5589
  const { field: t } = e;
5594
5590
  t.readOnly = !1, t.required = !1;
5595
5591
  const { t: n } = he();
@@ -5603,7 +5599,7 @@ function _s(e) {
5603
5599
  ["false", n("false")]
5604
5600
  ]
5605
5601
  });
5606
- return /* @__PURE__ */ i(ts, { layout: "vertical", ooui: o, showLabel: !0 });
5602
+ return /* @__PURE__ */ i(ns, { layout: "vertical", ooui: o, showLabel: !0 });
5607
5603
  }
5608
5604
  case Tt.float:
5609
5605
  case Tt.progressbar:
@@ -5618,7 +5614,7 @@ function _s(e) {
5618
5614
  return /* @__PURE__ */ i(Wu, { layout: "vertical", ooui: t, showLabel: !0 });
5619
5615
  default:
5620
5616
  return /* @__PURE__ */ i(
5621
- es,
5617
+ ts,
5622
5618
  {
5623
5619
  ooui: t,
5624
5620
  layout: "vertical",
@@ -5628,7 +5624,7 @@ function _s(e) {
5628
5624
  );
5629
5625
  }
5630
5626
  }
5631
- const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Nn = (e, t) => {
5627
+ const zo = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Nn = (e, t) => {
5632
5628
  const n = Xu(e), r = Ju(n), o = Qu(
5633
5629
  r,
5634
5630
  t
@@ -5655,9 +5651,9 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5655
5651
  e,
5656
5652
  "in",
5657
5653
  t.map(
5658
- (a) => Yo(a)
5654
+ (a) => zo(a)
5659
5655
  )
5660
- ] : [e, "=", Yo(t)];
5656
+ ] : [e, "=", zo(t)];
5661
5657
  }, Yu = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), zu = (e) => {
5662
5658
  const t = { ...e };
5663
5659
  return Object.keys(t).forEach(
@@ -5701,7 +5697,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5701
5697
  return t.forEach((o) => {
5702
5698
  Array.isArray(o) && o[0] ? r.includes(o[0]) || n.push(o) : r.includes(o) || n.push(o);
5703
5699
  }), n;
5704
- }, { useToken: ef } = Ge, { Title: tf } = _t, { Header: nf, Content: rf, Footer: of } = Ri, sf = ({
5700
+ }, { useToken: ef } = Ge, { Title: tf } = _t, { Header: nf, Content: rf, Footer: of } = _i, sf = ({
5705
5701
  isOpen: e,
5706
5702
  onClose: t,
5707
5703
  children: n,
@@ -5739,7 +5735,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5739
5735
  };
5740
5736
  return /* @__PURE__ */ i(zl, { children: e && /* @__PURE__ */ D(ae, { children: [
5741
5737
  /* @__PURE__ */ i(
5742
- Vo.div,
5738
+ Eo.div,
5743
5739
  {
5744
5740
  initial: { opacity: 0 },
5745
5741
  animate: { opacity: 1 },
@@ -5758,7 +5754,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5758
5754
  }
5759
5755
  ),
5760
5756
  /* @__PURE__ */ D(
5761
- Vo.div,
5757
+ Eo.div,
5762
5758
  {
5763
5759
  ref: l,
5764
5760
  initial: { x: "100%" },
@@ -5819,17 +5815,17 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5819
5815
  ] }) });
5820
5816
  };
5821
5817
  var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5822
- function Vs(e) {
5818
+ function Es(e) {
5823
5819
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5824
5820
  }
5825
- var af = "Expected a function", zo = 0 / 0, lf = "[object Symbol]", cf = /^\s+|\s+$/g, df = /^[-+]0x[0-9a-f]+$/i, uf = /^0b[01]+$/i, ff = /^0o[0-7]+$/i, mf = parseInt, pf = typeof kn == "object" && kn && kn.Object === Object && kn, hf = typeof self == "object" && self && self.Object === Object && self, gf = pf || hf || Function("return this")(), yf = Object.prototype, vf = yf.toString, wf = Math.max, bf = Math.min, gr = function() {
5821
+ var af = "Expected a function", Jo = 0 / 0, lf = "[object Symbol]", cf = /^\s+|\s+$/g, df = /^[-+]0x[0-9a-f]+$/i, uf = /^0b[01]+$/i, ff = /^0o[0-7]+$/i, mf = parseInt, pf = typeof kn == "object" && kn && kn.Object === Object && kn, hf = typeof self == "object" && self && self.Object === Object && self, gf = pf || hf || Function("return this")(), yf = Object.prototype, vf = yf.toString, wf = Math.max, bf = Math.min, gr = function() {
5826
5822
  return gf.Date.now();
5827
5823
  };
5828
5824
  function Sf(e, t, n) {
5829
5825
  var r, o, s, a, l, c, u = 0, f = !1, d = !1, p = !0;
5830
5826
  if (typeof e != "function")
5831
5827
  throw new TypeError(af);
5832
- t = Jo(t) || 0, Vr(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? wf(Jo(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
5828
+ t = Qo(t) || 0, Vr(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? wf(Qo(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
5833
5829
  function h(O) {
5834
5830
  var T = r, R = o;
5835
5831
  return r = o = void 0, u = O, a = e.apply(R, T), a;
@@ -5882,11 +5878,11 @@ function Cf(e) {
5882
5878
  function xf(e) {
5883
5879
  return typeof e == "symbol" || Cf(e) && vf.call(e) == lf;
5884
5880
  }
5885
- function Jo(e) {
5881
+ function Qo(e) {
5886
5882
  if (typeof e == "number")
5887
5883
  return e;
5888
5884
  if (xf(e))
5889
- return zo;
5885
+ return Jo;
5890
5886
  if (Vr(e)) {
5891
5887
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
5892
5888
  e = Vr(t) ? t + "" : t;
@@ -5895,21 +5891,21 @@ function Jo(e) {
5895
5891
  return e === 0 ? e : +e;
5896
5892
  e = e.replace(cf, "");
5897
5893
  var n = uf.test(e);
5898
- return n || ff.test(e) ? mf(e.slice(2), n ? 2 : 8) : df.test(e) ? zo : +e;
5894
+ return n || ff.test(e) ? mf(e.slice(2), n ? 2 : 8) : df.test(e) ? Jo : +e;
5899
5895
  }
5900
5896
  var If = Sf;
5901
- const Tf = /* @__PURE__ */ Vs(If);
5902
- var Qo = Object.prototype.toString, Es = function(t) {
5903
- var n = Qo.call(t), r = n === "[object Arguments]";
5904
- return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Qo.call(t.callee) === "[object Function]"), r;
5905
- }, yr, Xo;
5897
+ const Tf = /* @__PURE__ */ Es(If);
5898
+ var Xo = Object.prototype.toString, Ds = function(t) {
5899
+ var n = Xo.call(t), r = n === "[object Arguments]";
5900
+ return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Xo.call(t.callee) === "[object Function]"), r;
5901
+ }, yr, Zo;
5906
5902
  function Of() {
5907
- if (Xo)
5903
+ if (Zo)
5908
5904
  return yr;
5909
- Xo = 1;
5905
+ Zo = 1;
5910
5906
  var e;
5911
5907
  if (!Object.keys) {
5912
- var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Es, o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), a = o.call(function() {
5908
+ var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Ds, o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), a = o.call(function() {
5913
5909
  }, "prototype"), l = [
5914
5910
  "toString",
5915
5911
  "toLocaleString",
@@ -5991,9 +5987,9 @@ function Of() {
5991
5987
  }
5992
5988
  return yr = e, yr;
5993
5989
  }
5994
- var Ff = Array.prototype.slice, Af = Es, Zo = Object.keys, Mn = Zo ? function(t) {
5995
- return Zo(t);
5996
- } : Of(), ei = Object.keys;
5990
+ var Ff = Array.prototype.slice, Af = Ds, ei = Object.keys, Mn = ei ? function(t) {
5991
+ return ei(t);
5992
+ } : Of(), ti = Object.keys;
5997
5993
  Mn.shim = function() {
5998
5994
  if (Object.keys) {
5999
5995
  var t = function() {
@@ -6001,13 +5997,13 @@ Mn.shim = function() {
6001
5997
  return n && n.length === arguments.length;
6002
5998
  }(1, 2);
6003
5999
  t || (Object.keys = function(r) {
6004
- return Af(r) ? ei(Ff.call(r)) : ei(r);
6000
+ return Af(r) ? ti(Ff.call(r)) : ti(r);
6005
6001
  });
6006
6002
  } else
6007
6003
  Object.keys = Mn;
6008
6004
  return Object.keys || Mn;
6009
6005
  };
6010
- var Ds = Mn, Ps = function() {
6006
+ var Ps = Mn, ks = function() {
6011
6007
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
6012
6008
  return !1;
6013
6009
  if (typeof Symbol.iterator == "symbol")
@@ -6030,14 +6026,14 @@ var Ds = Mn, Ps = function() {
6030
6026
  return !1;
6031
6027
  }
6032
6028
  return !0;
6033
- }, Rf = Ps, po = function() {
6029
+ }, Rf = ks, ho = function() {
6034
6030
  return Rf() && !!Symbol.toStringTag;
6035
- }, ti = typeof Symbol < "u" && Symbol, _f = Ps, Vf = function() {
6036
- return typeof ti != "function" || typeof Symbol != "function" || typeof ti("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : _f();
6037
- }, ni = {
6031
+ }, ni = typeof Symbol < "u" && Symbol, _f = ks, Vf = function() {
6032
+ return typeof ni != "function" || typeof Symbol != "function" || typeof ni("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : _f();
6033
+ }, ri = {
6038
6034
  foo: {}
6039
6035
  }, Ef = Object, Df = function() {
6040
- return { __proto__: ni }.foo === ni.foo && !({ __proto__: null } instanceof Ef);
6036
+ return { __proto__: ri }.foo === ri.foo && !({ __proto__: null } instanceof Ef);
6041
6037
  }, Pf = "Function.prototype.bind called on incompatible ", vr = Array.prototype.slice, kf = Object.prototype.toString, $f = "[object Function]", Nf = function(t) {
6042
6038
  var n = this;
6043
6039
  if (typeof n != "function" || kf.call(n) !== $f)
@@ -6062,11 +6058,11 @@ var Ds = Mn, Ps = function() {
6062
6058
  u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
6063
6059
  }
6064
6060
  return o;
6065
- }, Mf = Nf, ks = Function.prototype.bind || Mf, ri = {}.hasOwnProperty, wr = Function.prototype.call, Lf = wr.bind ? wr.bind(ri) : function(e, t) {
6066
- return wr.call(ri, e, t);
6067
- }, Ve, sn = SyntaxError, $s = Function, tn = TypeError, br = function(e) {
6061
+ }, Mf = Nf, $s = Function.prototype.bind || Mf, oi = {}.hasOwnProperty, wr = Function.prototype.call, Lf = wr.bind ? wr.bind(oi) : function(e, t) {
6062
+ return wr.call(oi, e, t);
6063
+ }, Ve, sn = SyntaxError, Ns = Function, tn = TypeError, br = function(e) {
6068
6064
  try {
6069
- return $s('"use strict"; return (' + e + ").constructor;")();
6065
+ return Ns('"use strict"; return (' + e + ").constructor;")();
6070
6066
  } catch {
6071
6067
  }
6072
6068
  }, jt = Object.getOwnPropertyDescriptor;
@@ -6118,7 +6114,7 @@ var Sr = function() {
6118
6114
  "%Float32Array%": typeof Float32Array > "u" ? Ve : Float32Array,
6119
6115
  "%Float64Array%": typeof Float64Array > "u" ? Ve : Float64Array,
6120
6116
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Ve : FinalizationRegistry,
6121
- "%Function%": $s,
6117
+ "%Function%": Ns,
6122
6118
  "%GeneratorFunction%": Qt,
6123
6119
  "%Int8Array%": typeof Int8Array > "u" ? Ve : Int8Array,
6124
6120
  "%Int16Array%": typeof Int16Array > "u" ? Ve : Int16Array,
@@ -6182,7 +6178,7 @@ var Wf = function e(t) {
6182
6178
  o && Ze && (n = Ze(o.prototype));
6183
6179
  }
6184
6180
  return Bt[t] = n, n;
6185
- }, oi = {
6181
+ }, ii = {
6186
6182
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
6187
6183
  "%ArrayPrototype%": ["Array", "prototype"],
6188
6184
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -6234,19 +6230,19 @@ var Wf = function e(t) {
6234
6230
  "%URIErrorPrototype%": ["URIError", "prototype"],
6235
6231
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
6236
6232
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
6237
- }, _n = ks, qn = Lf, Gf = _n.call(Function.call, Array.prototype.concat), Kf = _n.call(Function.apply, Array.prototype.splice), ii = _n.call(Function.call, String.prototype.replace), Yn = _n.call(Function.call, String.prototype.slice), qf = _n.call(Function.call, RegExp.prototype.exec), Yf = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, zf = /\\(\\)?/g, Jf = function(t) {
6233
+ }, _n = $s, qn = Lf, Gf = _n.call(Function.call, Array.prototype.concat), Kf = _n.call(Function.apply, Array.prototype.splice), si = _n.call(Function.call, String.prototype.replace), Yn = _n.call(Function.call, String.prototype.slice), qf = _n.call(Function.call, RegExp.prototype.exec), Yf = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, zf = /\\(\\)?/g, Jf = function(t) {
6238
6234
  var n = Yn(t, 0, 1), r = Yn(t, -1);
6239
6235
  if (n === "%" && r !== "%")
6240
6236
  throw new sn("invalid intrinsic syntax, expected closing `%`");
6241
6237
  if (r === "%" && n !== "%")
6242
6238
  throw new sn("invalid intrinsic syntax, expected opening `%`");
6243
6239
  var o = [];
6244
- return ii(t, Yf, function(s, a, l, c) {
6245
- o[o.length] = l ? ii(c, zf, "$1") : a || s;
6240
+ return si(t, Yf, function(s, a, l, c) {
6241
+ o[o.length] = l ? si(c, zf, "$1") : a || s;
6246
6242
  }), o;
6247
6243
  }, Qf = function(t, n) {
6248
6244
  var r = t, o;
6249
- if (qn(oi, r) && (o = oi[r], r = "%" + o[0] + "%"), qn(Bt, r)) {
6245
+ if (qn(ii, r) && (o = ii[r], r = "%" + o[0] + "%"), qn(Bt, r)) {
6250
6246
  var s = Bt[r];
6251
6247
  if (s === Qt && (s = Wf(r)), typeof s > "u" && !n)
6252
6248
  throw new tn("intrinsic " + t + " exists, but is not available. Please file an issue!");
@@ -6287,9 +6283,9 @@ var Wf = function e(t) {
6287
6283
  }
6288
6284
  }
6289
6285
  return l;
6290
- }, Ns = { exports: {} };
6286
+ }, Ms = { exports: {} };
6291
6287
  (function(e) {
6292
- var t = ks, n = Vn, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || t.call(o, r), a = n("%Object.getOwnPropertyDescriptor%", !0), l = n("%Object.defineProperty%", !0), c = n("%Math.max%");
6288
+ var t = $s, n = Vn, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || t.call(o, r), a = n("%Object.getOwnPropertyDescriptor%", !0), l = n("%Object.defineProperty%", !0), c = n("%Math.max%");
6293
6289
  if (l)
6294
6290
  try {
6295
6291
  l({}, "a", { value: 1 });
@@ -6312,19 +6308,19 @@ var Wf = function e(t) {
6312
6308
  return s(t, r, arguments);
6313
6309
  };
6314
6310
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
6315
- })(Ns);
6316
- var ho = Ns.exports, Ms = Vn, Ls = ho, Xf = Ls(Ms("String.prototype.indexOf")), js = function(t, n) {
6317
- var r = Ms(t, !!n);
6318
- return typeof r == "function" && Xf(t, ".prototype.") > -1 ? Ls(r) : r;
6319
- }, Zf = po(), em = js, Er = em("Object.prototype.toString"), lr = function(t) {
6311
+ })(Ms);
6312
+ var go = Ms.exports, Ls = Vn, js = go, Xf = js(Ls("String.prototype.indexOf")), Bs = function(t, n) {
6313
+ var r = Ls(t, !!n);
6314
+ return typeof r == "function" && Xf(t, ".prototype.") > -1 ? js(r) : r;
6315
+ }, Zf = ho(), em = Bs, Er = em("Object.prototype.toString"), lr = function(t) {
6320
6316
  return Zf && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Er(t) === "[object Arguments]";
6321
- }, Bs = function(t) {
6317
+ }, Hs = function(t) {
6322
6318
  return lr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Er(t) !== "[object Array]" && Er(t.callee) === "[object Function]";
6323
6319
  }, tm = function() {
6324
6320
  return lr(arguments);
6325
6321
  }();
6326
- lr.isLegacyArguments = Bs;
6327
- var nm = tm ? lr : Bs, rm = Vn, Dr = rm("%Object.defineProperty%", !0), Pr = function() {
6322
+ lr.isLegacyArguments = Hs;
6323
+ var nm = tm ? lr : Hs, rm = Vn, Dr = rm("%Object.defineProperty%", !0), Pr = function() {
6328
6324
  if (Dr)
6329
6325
  try {
6330
6326
  return Dr({}, "a", { value: 1 }), !0;
@@ -6342,11 +6338,11 @@ Pr.hasArrayLengthDefineBug = function() {
6342
6338
  return !0;
6343
6339
  }
6344
6340
  };
6345
- var go = Pr, Cr, si;
6341
+ var yo = Pr, Cr, ai;
6346
6342
  function om() {
6347
- if (si)
6343
+ if (ai)
6348
6344
  return Cr;
6349
- si = 1;
6345
+ ai = 1;
6350
6346
  var e = Vn, t = e("%Object.getOwnPropertyDescriptor%", !0);
6351
6347
  if (t)
6352
6348
  try {
@@ -6356,7 +6352,7 @@ function om() {
6356
6352
  }
6357
6353
  return Cr = t, Cr;
6358
6354
  }
6359
- var im = go(), yo = Vn, ai = im && yo("%Object.defineProperty%", !0), sm = yo("%SyntaxError%"), qt = yo("%TypeError%"), li = om(), Hs = function(t, n, r) {
6355
+ var im = yo(), vo = Vn, li = im && vo("%Object.defineProperty%", !0), sm = vo("%SyntaxError%"), qt = vo("%TypeError%"), ci = om(), Us = function(t, n, r) {
6360
6356
  if (!t || typeof t != "object" && typeof t != "function")
6361
6357
  throw new qt("`obj` must be an object or a function`");
6362
6358
  if (typeof n != "string" && typeof n != "symbol")
@@ -6369,9 +6365,9 @@ var im = go(), yo = Vn, ai = im && yo("%Object.defineProperty%", !0), sm = yo("%
6369
6365
  throw new qt("`nonConfigurable`, if provided, must be a boolean or null");
6370
6366
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
6371
6367
  throw new qt("`loose`, if provided, must be a boolean");
6372
- var o = arguments.length > 3 ? arguments[3] : null, s = arguments.length > 4 ? arguments[4] : null, a = arguments.length > 5 ? arguments[5] : null, l = arguments.length > 6 ? arguments[6] : !1, c = !!li && li(t, n);
6373
- if (ai)
6374
- ai(t, n, {
6368
+ var o = arguments.length > 3 ? arguments[3] : null, s = arguments.length > 4 ? arguments[4] : null, a = arguments.length > 5 ? arguments[5] : null, l = arguments.length > 6 ? arguments[6] : !1, c = !!ci && ci(t, n);
6369
+ if (li)
6370
+ li(t, n, {
6375
6371
  configurable: a === null && c ? c.configurable : !a,
6376
6372
  enumerable: o === null && c ? c.enumerable : !o,
6377
6373
  value: r,
@@ -6381,9 +6377,9 @@ var im = go(), yo = Vn, ai = im && yo("%Object.defineProperty%", !0), sm = yo("%
6381
6377
  t[n] = r;
6382
6378
  else
6383
6379
  throw new sm("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
6384
- }, am = Ds, lm = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", cm = Object.prototype.toString, dm = Array.prototype.concat, ci = Hs, um = function(e) {
6380
+ }, am = Ps, lm = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", cm = Object.prototype.toString, dm = Array.prototype.concat, di = Us, um = function(e) {
6385
6381
  return typeof e == "function" && cm.call(e) === "[object Function]";
6386
- }, Us = go(), fm = function(e, t, n, r) {
6382
+ }, Ws = yo(), fm = function(e, t, n, r) {
6387
6383
  if (t in e) {
6388
6384
  if (r === !0) {
6389
6385
  if (e[t] === n)
@@ -6391,36 +6387,36 @@ var im = go(), yo = Vn, ai = im && yo("%Object.defineProperty%", !0), sm = yo("%
6391
6387
  } else if (!um(r) || !r())
6392
6388
  return;
6393
6389
  }
6394
- Us ? ci(e, t, n, !0) : ci(e, t, n);
6395
- }, Ws = function(e, t) {
6390
+ Ws ? di(e, t, n, !0) : di(e, t, n);
6391
+ }, Gs = function(e, t) {
6396
6392
  var n = arguments.length > 2 ? arguments[2] : {}, r = am(t);
6397
6393
  lm && (r = dm.call(r, Object.getOwnPropertySymbols(t)));
6398
6394
  for (var o = 0; o < r.length; o += 1)
6399
6395
  fm(e, r[o], t[r[o]], n[r[o]]);
6400
6396
  };
6401
- Ws.supportsDescriptors = !!Us;
6402
- var En = Ws, di = function(e) {
6397
+ Gs.supportsDescriptors = !!Ws;
6398
+ var En = Gs, ui = function(e) {
6403
6399
  return e !== e;
6404
- }, Gs = function(t, n) {
6405
- return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || di(t) && di(n));
6406
- }, mm = Gs, Ks = function() {
6400
+ }, Ks = function(t, n) {
6401
+ return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || ui(t) && ui(n));
6402
+ }, mm = Ks, qs = function() {
6407
6403
  return typeof Object.is == "function" ? Object.is : mm;
6408
- }, pm = Ks, hm = En, gm = function() {
6404
+ }, pm = qs, hm = En, gm = function() {
6409
6405
  var t = pm();
6410
6406
  return hm(Object, { is: t }, {
6411
6407
  is: function() {
6412
6408
  return Object.is !== t;
6413
6409
  }
6414
6410
  }), t;
6415
- }, ym = En, vm = ho, wm = Gs, qs = Ks, bm = gm, Ys = vm(qs(), Object);
6416
- ym(Ys, {
6417
- getPolyfill: qs,
6411
+ }, ym = En, vm = go, wm = Ks, Ys = qs, bm = gm, zs = vm(Ys(), Object);
6412
+ ym(zs, {
6413
+ getPolyfill: Ys,
6418
6414
  implementation: wm,
6419
6415
  shim: bm
6420
6416
  });
6421
- var Sm = Ys, kr = js, zs = po(), Js, Qs, $r, Nr;
6422
- if (zs) {
6423
- Js = kr("Object.prototype.hasOwnProperty"), Qs = kr("RegExp.prototype.exec"), $r = {};
6417
+ var Sm = zs, kr = Bs, Js = ho(), Qs, Xs, $r, Nr;
6418
+ if (Js) {
6419
+ Qs = kr("Object.prototype.hasOwnProperty"), Xs = kr("RegExp.prototype.exec"), $r = {};
6424
6420
  var xr = function() {
6425
6421
  throw $r;
6426
6422
  };
@@ -6429,14 +6425,14 @@ if (zs) {
6429
6425
  valueOf: xr
6430
6426
  }, typeof Symbol.toPrimitive == "symbol" && (Nr[Symbol.toPrimitive] = xr);
6431
6427
  }
6432
- var Cm = kr("Object.prototype.toString"), xm = Object.getOwnPropertyDescriptor, Im = "[object RegExp]", Tm = zs ? function(t) {
6428
+ var Cm = kr("Object.prototype.toString"), xm = Object.getOwnPropertyDescriptor, Im = "[object RegExp]", Tm = Js ? function(t) {
6433
6429
  if (!t || typeof t != "object")
6434
6430
  return !1;
6435
- var n = xm(t, "lastIndex"), r = n && Js(n, "value");
6431
+ var n = xm(t, "lastIndex"), r = n && Qs(n, "value");
6436
6432
  if (!r)
6437
6433
  return !1;
6438
6434
  try {
6439
- Qs(t, Nr);
6435
+ Xs(t, Nr);
6440
6436
  } catch (o) {
6441
6437
  return o === $r;
6442
6438
  }
@@ -6464,17 +6460,17 @@ On.boundFunctionsHaveNames = function() {
6464
6460
  return On() && typeof Om == "function" && (function() {
6465
6461
  }).bind().name !== "";
6466
6462
  };
6467
- var Fm = On, ui = Hs, Am = go(), Rm = Fm.functionsHaveConfigurableNames(), _m = TypeError, Vm = function(t, n) {
6463
+ var Fm = On, fi = Us, Am = yo(), Rm = Fm.functionsHaveConfigurableNames(), _m = TypeError, Vm = function(t, n) {
6468
6464
  if (typeof t != "function")
6469
6465
  throw new _m("`fn` is not a function");
6470
6466
  var r = arguments.length > 2 && !!arguments[2];
6471
- return (!r || Rm) && (Am ? ui(t, "name", n, !0, !0) : ui(t, "name", n)), t;
6472
- }, Em = Vm, Dm = Object, Pm = TypeError, Xs = Em(function() {
6467
+ return (!r || Rm) && (Am ? fi(t, "name", n, !0, !0) : fi(t, "name", n)), t;
6468
+ }, Em = Vm, Dm = Object, Pm = TypeError, Zs = Em(function() {
6473
6469
  if (this != null && this !== Dm(this))
6474
6470
  throw new Pm("RegExp.prototype.flags getter called on non-object");
6475
6471
  var t = "";
6476
6472
  return this.hasIndices && (t += "d"), this.global && (t += "g"), this.ignoreCase && (t += "i"), this.multiline && (t += "m"), this.dotAll && (t += "s"), this.unicode && (t += "u"), this.unicodeSets && (t += "v"), this.sticky && (t += "y"), t;
6477
- }, "get flags", !0), km = Xs, $m = En.supportsDescriptors, Nm = Object.getOwnPropertyDescriptor, Zs = function() {
6473
+ }, "get flags", !0), km = Zs, $m = En.supportsDescriptors, Nm = Object.getOwnPropertyDescriptor, ea = function() {
6478
6474
  if ($m && /a/mig.flags === "gim") {
6479
6475
  var t = Nm(RegExp.prototype, "flags");
6480
6476
  if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
@@ -6492,52 +6488,52 @@ var Fm = On, ui = Hs, Am = go(), Rm = Fm.functionsHaveConfigurableNames(), _m =
6492
6488
  }
6493
6489
  }
6494
6490
  return km;
6495
- }, Mm = En.supportsDescriptors, Lm = Zs, jm = Object.getOwnPropertyDescriptor, Bm = Object.defineProperty, Hm = TypeError, fi = Object.getPrototypeOf, Um = /a/, Wm = function() {
6496
- if (!Mm || !fi)
6491
+ }, Mm = En.supportsDescriptors, Lm = ea, jm = Object.getOwnPropertyDescriptor, Bm = Object.defineProperty, Hm = TypeError, mi = Object.getPrototypeOf, Um = /a/, Wm = function() {
6492
+ if (!Mm || !mi)
6497
6493
  throw new Hm("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6498
- var t = Lm(), n = fi(Um), r = jm(n, "flags");
6494
+ var t = Lm(), n = mi(Um), r = jm(n, "flags");
6499
6495
  return (!r || r.get !== t) && Bm(n, "flags", {
6500
6496
  configurable: !0,
6501
6497
  enumerable: !1,
6502
6498
  get: t
6503
6499
  }), t;
6504
- }, Gm = En, Km = ho, qm = Xs, ea = Zs, Ym = Wm, ta = Km(ea());
6505
- Gm(ta, {
6506
- getPolyfill: ea,
6500
+ }, Gm = En, Km = go, qm = Zs, ta = ea, Ym = Wm, na = Km(ta());
6501
+ Gm(na, {
6502
+ getPolyfill: ta,
6507
6503
  implementation: qm,
6508
6504
  shim: Ym
6509
6505
  });
6510
- var zm = ta, Jm = Date.prototype.getDay, Qm = function(t) {
6506
+ var zm = na, Jm = Date.prototype.getDay, Qm = function(t) {
6511
6507
  try {
6512
6508
  return Jm.call(t), !0;
6513
6509
  } catch {
6514
6510
  return !1;
6515
6511
  }
6516
- }, Xm = Object.prototype.toString, Zm = "[object Date]", ep = po(), tp = function(t) {
6512
+ }, Xm = Object.prototype.toString, Zm = "[object Date]", ep = ho(), tp = function(t) {
6517
6513
  return typeof t != "object" || t === null ? !1 : ep ? Qm(t) : Xm.call(t) === Zm;
6518
- }, mi = Ds, pi = nm, hi = Sm, gi = Tm, yi = zm, vi = tp, wi = Date.prototype.getTime;
6519
- function na(e, t, n) {
6514
+ }, pi = Ps, hi = nm, gi = Sm, yi = Tm, vi = zm, wi = tp, bi = Date.prototype.getTime;
6515
+ function ra(e, t, n) {
6520
6516
  var r = n || {};
6521
- return (r.strict ? hi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? hi(e, t) : e == t : np(e, t, r);
6517
+ return (r.strict ? gi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? gi(e, t) : e == t : np(e, t, r);
6522
6518
  }
6523
- function bi(e) {
6519
+ function Si(e) {
6524
6520
  return e == null;
6525
6521
  }
6526
- function Si(e) {
6522
+ function Ci(e) {
6527
6523
  return !(!e || typeof e != "object" || typeof e.length != "number" || typeof e.copy != "function" || typeof e.slice != "function" || e.length > 0 && typeof e[0] != "number");
6528
6524
  }
6529
6525
  function np(e, t, n) {
6530
6526
  var r, o;
6531
- if (typeof e != typeof t || bi(e) || bi(t) || e.prototype !== t.prototype || pi(e) !== pi(t))
6527
+ if (typeof e != typeof t || Si(e) || Si(t) || e.prototype !== t.prototype || hi(e) !== hi(t))
6532
6528
  return !1;
6533
- var s = gi(e), a = gi(t);
6529
+ var s = yi(e), a = yi(t);
6534
6530
  if (s !== a)
6535
6531
  return !1;
6536
6532
  if (s || a)
6537
- return e.source === t.source && yi(e) === yi(t);
6538
- if (vi(e) && vi(t))
6539
- return wi.call(e) === wi.call(t);
6540
- var l = Si(e), c = Si(t);
6533
+ return e.source === t.source && vi(e) === vi(t);
6534
+ if (wi(e) && wi(t))
6535
+ return bi.call(e) === bi.call(t);
6536
+ var l = Ci(e), c = Ci(t);
6541
6537
  if (l !== c)
6542
6538
  return !1;
6543
6539
  if (l || c) {
@@ -6551,7 +6547,7 @@ function np(e, t, n) {
6551
6547
  if (typeof e != typeof t)
6552
6548
  return !1;
6553
6549
  try {
6554
- var u = mi(e), f = mi(t);
6550
+ var u = pi(e), f = pi(t);
6555
6551
  } catch {
6556
6552
  return !1;
6557
6553
  }
@@ -6561,12 +6557,12 @@ function np(e, t, n) {
6561
6557
  if (u[r] != f[r])
6562
6558
  return !1;
6563
6559
  for (r = u.length - 1; r >= 0; r--)
6564
- if (o = u[r], !na(e[o], t[o], n))
6560
+ if (o = u[r], !ra(e[o], t[o], n))
6565
6561
  return !1;
6566
6562
  return !0;
6567
6563
  }
6568
- var rp = na;
6569
- const ra = /* @__PURE__ */ Vs(rp), op = yt(
6564
+ var rp = ra;
6565
+ const oa = /* @__PURE__ */ Es(rp), op = yt(
6570
6566
  (e, t) => {
6571
6567
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: s } = e, [a] = pt.useForm();
6572
6568
  ue(() => {
@@ -6592,7 +6588,7 @@ const ra = /* @__PURE__ */ Vs(rp), op = yt(
6592
6588
  backgroundColor: w ? "#f0f0f0" : void 0,
6593
6589
  fontWeight: w ? "bold" : void 0
6594
6590
  },
6595
- children: /* @__PURE__ */ i("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ i(_s, { field: g }, v) })
6591
+ children: /* @__PURE__ */ i("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ i(Vs, { field: g }, v) })
6596
6592
  },
6597
6593
  y
6598
6594
  );
@@ -6624,7 +6620,7 @@ const ra = /* @__PURE__ */ Vs(rp), op = yt(
6624
6620
  ue(() => {
6625
6621
  n && h(void 0);
6626
6622
  }, [n]), St(() => {
6627
- l.current = new $i(o, s, 1), l.current.parse(), f(l.current._advancedSearchContainer);
6623
+ l.current = new Ni(o, s, 1), l.current.parse(), f(l.current._advancedSearchContainer);
6628
6624
  }, [s, o, n]);
6629
6625
  const m = N(
6630
6626
  (C) => {
@@ -6643,7 +6639,7 @@ const ra = /* @__PURE__ */ Vs(rp), op = yt(
6643
6639
  (C) => {
6644
6640
  var T;
6645
6641
  const b = Mr(C);
6646
- if (ra(b, a)) {
6642
+ if (oa(b, a)) {
6647
6643
  h([]);
6648
6644
  return;
6649
6645
  }
@@ -6740,7 +6736,7 @@ function ap(e) {
6740
6736
  } = e, { t: a } = he();
6741
6737
  return /* @__PURE__ */ D(ke, { children: [
6742
6738
  !s && /* @__PURE__ */ i(we, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ D("a", { className: "text-xs", onClick: t, children: [
6743
- n ? /* @__PURE__ */ i(Za, { className: "pr-1" }) : /* @__PURE__ */ i(Qn, { className: "pr-1" }),
6739
+ n ? /* @__PURE__ */ i(el, { className: "pr-1" }) : /* @__PURE__ */ i(Qn, { className: "pr-1" }),
6744
6740
  a(n ? "simple_search" : "advanced_search")
6745
6741
  ] }) }),
6746
6742
  /* @__PURE__ */ D(we, { span: s ? 24 : 12, className: "text-right pb-2", children: [
@@ -6780,7 +6776,7 @@ function lp(e) {
6780
6776
  ] });
6781
6777
  }
6782
6778
  const { useToken: cp } = Ge;
6783
- function vo(e) {
6779
+ function wo(e) {
6784
6780
  const {
6785
6781
  fields: t,
6786
6782
  searchFields: n = { primary: [], secondary: [] },
@@ -6803,10 +6799,10 @@ function vo(e) {
6803
6799
  if (!g)
6804
6800
  return;
6805
6801
  const A = w ? g : m, F = A == null ? void 0 : A.rows;
6806
- return F == null ? void 0 : F.map((P, _) => /* @__PURE__ */ i(ke, { children: P.map((k, M) => /* @__PURE__ */ i(we, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(_s, { field: k }) }, M)) }, _));
6802
+ return F == null ? void 0 : F.map((P, _) => /* @__PURE__ */ i(ke, { children: P.map((k, M) => /* @__PURE__ */ i(we, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(Vs, { field: k }) }, M)) }, _));
6807
6803
  };
6808
6804
  St(() => {
6809
- I(!1), C.current = new $i(n, t), C.current.parse(), y(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
6805
+ I(!1), C.current = new Ni(n, t), C.current.parse(), y(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
6810
6806
  }, [t, n]);
6811
6807
  const R = T(), S = (A) => {
6812
6808
  var k;
@@ -6883,7 +6879,7 @@ function vo(e) {
6883
6879
  function dp({
6884
6880
  useLocalState: e = !1
6885
6881
  }) {
6886
- const t = bd() && !e, n = lo(), [r, o] = x(!1), [s, a] = x(!1), [l, c] = x([]), [u, f] = x(0), [d, p] = x([]), [h, m] = x({}), [y, g] = x(), [v, w] = x([]), [I, C] = x(), [b, O] = x(0);
6882
+ const t = bd() && !e, n = co(), [r, o] = x(!1), [s, a] = x(!1), [l, c] = x([]), [u, f] = x(0), [d, p] = x([]), [h, m] = x({}), [y, g] = x(), [v, w] = x([]), [I, C] = x(), [b, O] = x(0);
6887
6883
  return t ? {
6888
6884
  treeIsLoading: n.treeIsLoading ?? !1,
6889
6885
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -6952,10 +6948,10 @@ function mp(e, t) {
6952
6948
  onChangeSelectedRowKeys: f,
6953
6949
  nameSearch: d,
6954
6950
  filterType: p = "side"
6955
- } = e, h = Q({}), m = Q(), y = Q(null), g = Q([]), v = bs(), [w, I] = x(!0), [C, b] = x(), { t: O } = he(), T = Q(null), R = Fu({
6951
+ } = e, h = Q({}), m = Q(), y = Q(null), g = Q([]), v = Ss(), [w, I] = x(!0), [C, b] = x(), { t: O } = he(), T = Q(null), R = Fu({
6956
6952
  elementRef: T,
6957
6953
  offset: up
6958
- }), { treeView: S, formView: V, loading: A } = Ss({
6954
+ }), { treeView: S, formView: V, loading: A } = Cs({
6959
6955
  model: n,
6960
6956
  formViewProps: r,
6961
6957
  treeViewProps: o,
@@ -6990,10 +6986,10 @@ function mp(e, t) {
6990
6986
  return Ot(S);
6991
6987
  }, [S]), pe = Tn(() => {
6992
6988
  if (K)
6993
- return io(
6989
+ return so(
6994
6990
  K,
6995
6991
  {
6996
- ...mo
6992
+ ...po
6997
6993
  },
6998
6994
  u
6999
6995
  );
@@ -7004,7 +7000,7 @@ function mp(e, t) {
7004
7000
  loading: $e,
7005
7001
  getColumnState: Le,
7006
7002
  updateColumnState: Pe
7007
- } = Os(ve), Fe = me(
7003
+ } = Fs(ve), Fe = me(
7008
7004
  () => on(te || [], a),
7009
7005
  [a, te]
7010
7006
  ), qe = N(() => {
@@ -7043,7 +7039,7 @@ function mp(e, t) {
7043
7039
  return [];
7044
7040
  const Qe = {};
7045
7041
  K.colors && (Qe.colors = K.colors), K.status && (Qe.status = K.status);
7046
- const Dt = ee ? a : Fe, Pt = is(tt), { results: vn, attrsEvaluated: kt } = await $.getHandler().searchForTree({
7042
+ const Dt = ee ? a : Fe, Pt = ss(tt), { results: vn, attrsEvaluated: kt } = await $.getHandler().searchForTree({
7047
7043
  params: Dt,
7048
7044
  limit: Me - ie,
7049
7045
  offset: ie,
@@ -7123,7 +7119,7 @@ function mp(e, t) {
7123
7119
  var Me, tt, Qe, Dt;
7124
7120
  if (h.current[(tt = (Me = ie.node) == null ? void 0 : Me.data) == null ? void 0 : tt.id])
7125
7121
  return { color: h.current[(Dt = (Qe = ie.node) == null ? void 0 : Qe.data) == null ? void 0 : Dt.id] };
7126
- }, []), Y = me(() => (j == null ? void 0 : j.map((ie) => ie.id)) || [], [j]), [Ce, Se, Ue] = Fs({
7122
+ }, []), Y = me(() => (j == null ? void 0 : j.map((ie) => ie.id)) || [], [j]), [Ce, Se, Ue] = As({
7127
7123
  ooui: K,
7128
7124
  model: n,
7129
7125
  showEmptyValues: !0,
@@ -7169,7 +7165,7 @@ function mp(e, t) {
7169
7165
  k,
7170
7166
  O,
7171
7167
  C
7172
- ]), re = N(() => W, [W]), Oe = me(() => Ue ? /* @__PURE__ */ i(As, { aggregates: Se, isLoading: Ce }) : null, [Se, Ce, Ue]), Ke = N((ie) => /* @__PURE__ */ i(Jn, { color: ie, style: { marginLeft: 7 } }), []), ge = N(
7168
+ ]), re = N(() => W, [W]), Oe = me(() => Ue ? /* @__PURE__ */ i(Rs, { aggregates: Se, isLoading: Ce }) : null, [Se, Ce, Ue]), Ke = N((ie) => /* @__PURE__ */ i(Jn, { color: ie, style: { marginLeft: 7 } }), []), ge = N(
7173
7169
  (ie) => {
7174
7170
  var Me;
7175
7171
  return (Me = m.current) == null ? void 0 : Me[ie.id];
@@ -7181,7 +7177,7 @@ function mp(e, t) {
7181
7177
  }),
7182
7178
  [O]
7183
7179
  ), z = me(() => !pe || !K ? null : /* @__PURE__ */ i(
7184
- zi,
7180
+ Ji,
7185
7181
  {
7186
7182
  readonly: !1,
7187
7183
  ref: y,
@@ -7224,8 +7220,8 @@ function mp(e, t) {
7224
7220
  K,
7225
7221
  Pe
7226
7222
  ]), ye = Q(te), Re = Q(P), be = Q(), De = Q();
7227
- Yi(() => {
7228
- const ie = !ra(
7223
+ zi(() => {
7224
+ const ie = !oa(
7229
7225
  te,
7230
7226
  ye.current
7231
7227
  ), Me = Re.current && !P;
@@ -7323,7 +7319,7 @@ function mp(e, t) {
7323
7319
  );
7324
7320
  return /* @__PURE__ */ D(Fn, { children: [
7325
7321
  p === "top" && /* @__PURE__ */ i(
7326
- vo,
7322
+ wo,
7327
7323
  {
7328
7324
  ...ft,
7329
7325
  onClear: Ye,
@@ -7349,7 +7345,7 @@ function mp(e, t) {
7349
7345
  /* @__PURE__ */ i("div", { ref: T, style: ut, children: A || $e || w ? /* @__PURE__ */ i(He, {}) : z })
7350
7346
  ] });
7351
7347
  }
7352
- const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7348
+ const ia = yt(mp), xi = (e, t = "14px -apple-system") => {
7353
7349
  const r = document.createElement("canvas").getContext("2d");
7354
7350
  r.font = t;
7355
7351
  const o = r.measureText(e);
@@ -7359,13 +7355,13 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7359
7355
  return { columns: e };
7360
7356
  const r = e.map(
7361
7357
  (s) => Object.assign(s, {
7362
- width: Ci(s.title)
7358
+ width: xi(s.title)
7363
7359
  })
7364
7360
  );
7365
7361
  t.map((s) => {
7366
7362
  r.map((a, l) => {
7367
7363
  const c = a.width, u = s[a.key] || "";
7368
- let f = Ci(u);
7364
+ let f = xi(u);
7369
7365
  f < c && (f = c), f > n && (f = n), r[l].width = f;
7370
7366
  });
7371
7367
  });
@@ -7400,7 +7396,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7400
7396
  "{numberOfSelectedRows}",
7401
7397
  e.toString()
7402
7398
  ) + " ",
7403
- s ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(Ml, { onClick: u, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
7399
+ s ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(Ll, { onClick: u, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
7404
7400
  "{totalRecords}",
7405
7401
  t.toString()
7406
7402
  ) })
@@ -7409,7 +7405,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7409
7405
  o.toString()
7410
7406
  ) + " " });
7411
7407
  return /* @__PURE__ */ i(hp, { children: o > n ? d : f });
7412
- }, ia = yt(
7408
+ }, sa = yt(
7413
7409
  (e, t) => {
7414
7410
  var G;
7415
7411
  const {
@@ -7439,10 +7435,10 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7439
7435
  at
7440
7436
  ), { title: W = void 0, setTitle: j = void 0 } = (C ? M : {}) || {}, E = me(() => {
7441
7437
  if (F)
7442
- return io(
7438
+ return so(
7443
7439
  F,
7444
7440
  {
7445
- ...mo
7441
+ ...po
7446
7442
  },
7447
7443
  b
7448
7444
  );
@@ -7472,7 +7468,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7472
7468
  ).length;
7473
7469
  return c ? null : o === void 0 ? /* @__PURE__ */ i(He, { className: "pb-4" }) : /* @__PURE__ */ D(ke, { align: "bottom", className: "pb-4", children: [
7474
7470
  /* @__PURE__ */ i(we, { span: T ? 8 : 12, children: /* @__PURE__ */ i(
7475
- Ha,
7471
+ Ua,
7476
7472
  {
7477
7473
  total: o,
7478
7474
  pageSize: k.current === 0 ? o : k.current,
@@ -7522,7 +7518,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7522
7518
  return F === null || !Z || ((G = Z == null ? void 0 : Z.columns) == null ? void 0 : G.length) === 0 ? /* @__PURE__ */ i(He, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(Ln, { children: [
7523
7519
  H,
7524
7520
  /* @__PURE__ */ i(
7525
- El,
7521
+ Dl,
7526
7522
  {
7527
7523
  ref: R,
7528
7524
  height: B,
@@ -7544,8 +7540,8 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7544
7540
  sorter: v,
7545
7541
  readonly: O,
7546
7542
  expandableOpts: w ? {
7547
- expandIcon: el,
7548
- collapseIcon: tl,
7543
+ expandIcon: tl,
7544
+ collapseIcon: nl,
7549
7545
  loadingIcon: wt,
7550
7546
  onFetchChildrenForRecord: w,
7551
7547
  childField: I
@@ -7555,10 +7551,10 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7555
7551
  oe
7556
7552
  ] });
7557
7553
  }
7558
- ), Dn = an(ia);
7554
+ ), Dn = an(sa);
7559
7555
  Dn.displayName = "Tree";
7560
- ia.displayName = "UnmemoizedTree";
7561
- const sa = (e) => {
7556
+ sa.displayName = "UnmemoizedTree";
7557
+ const aa = (e) => {
7562
7558
  const {
7563
7559
  model: t,
7564
7560
  setSearchTreeNameSearch: n,
@@ -7844,7 +7840,7 @@ function yp(e, t) {
7844
7840
  statusForResults: ge,
7845
7841
  totalItems: et,
7846
7842
  getAllIds: z
7847
- } = sa({
7843
+ } = aa({
7848
7844
  model: I,
7849
7845
  setSearchTreeNameSearch: K,
7850
7846
  setSelectedRowItems: Fe,
@@ -7958,7 +7954,7 @@ function yp(e, t) {
7958
7954
  [J]
7959
7955
  ), gt = N(() => !b || !T ? null : /* @__PURE__ */ D(ae, { children: [
7960
7956
  /* @__PURE__ */ i(
7961
- vo,
7957
+ wo,
7962
7958
  {
7963
7959
  fields: { ...T.fields, ...b.fields },
7964
7960
  searchFields: Bn([
@@ -8037,7 +8033,7 @@ function yp(e, t) {
8037
8033
  ]), Gt = S || Ae;
8038
8034
  return Gt ? /* @__PURE__ */ i(rt, { className: "mt-10", message: Gt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(He, {}) : gt() });
8039
8035
  }
8040
- const aa = yt(yp), wo = ({
8036
+ const la = yt(yp), bo = ({
8041
8037
  visible: e,
8042
8038
  onCloseModal: t,
8043
8039
  onSelectValues: n,
@@ -8050,13 +8046,13 @@ const aa = yt(yp), wo = ({
8050
8046
  treeView: g,
8051
8047
  formView: v,
8052
8048
  loading: w
8053
- } = Ss({
8049
+ } = Cs({
8054
8050
  model: r,
8055
8051
  formViewProps: void 0,
8056
8052
  treeViewProps: void 0,
8057
8053
  context: a,
8058
8054
  enabled: e
8059
- }), I = me(() => g != null && g.arch ? ss(g.arch, "infinite") === "1" : !1, [g == null ? void 0 : g.arch]), C = N(
8055
+ }), I = me(() => g != null && g.arch ? as(g.arch, "infinite") === "1" : !1, [g == null ? void 0 : g.arch]), C = N(
8060
8056
  async (F) => {
8061
8057
  p(!0);
8062
8058
  try {
@@ -8082,7 +8078,7 @@ const aa = yt(yp), wo = ({
8082
8078
  }
8083
8079
  C(u);
8084
8080
  }, [u, b, C]), R = me(
8085
- () => I ? oa : aa,
8081
+ () => I ? ia : la,
8086
8082
  [I]
8087
8083
  ), S = N(() => {
8088
8084
  c(!0);
@@ -8160,7 +8156,7 @@ const aa = yt(yp), wo = ({
8160
8156
  }
8161
8157
  )
8162
8158
  ] });
8163
- }, { defaultAlgorithm: vp, defaultSeed: wp } = Ge, la = vp(wp), bp = (e) => {
8159
+ }, { defaultAlgorithm: vp, defaultSeed: wp } = Ge, ca = vp(wp), bp = (e) => {
8164
8160
  const { ooui: t } = e, { required: n } = t;
8165
8161
  return /* @__PURE__ */ i(_e, { required: n, type: "array", validator: async (o, s) => {
8166
8162
  if (!s)
@@ -8169,8 +8165,8 @@ const aa = yt(yp), wo = ({
8169
8165
  throw new Error();
8170
8166
  if (Array.isArray(s) && !s[0])
8171
8167
  throw new Error();
8172
- }, ...e, children: /* @__PURE__ */ i(ca, { ooui: t }) });
8173
- }, ca = (e) => {
8168
+ }, ...e, children: /* @__PURE__ */ i(da, { ooui: t }) });
8169
+ }, da = (e) => {
8174
8170
  const { value: t, onChange: n, ooui: r } = e, {
8175
8171
  required: o,
8176
8172
  relation: s,
@@ -8178,7 +8174,7 @@ const aa = yt(yp), wo = ({
8178
8174
  context: l,
8179
8175
  id: c,
8180
8176
  domain: u
8181
- } = r, f = o && !a ? { backgroundColor: la.colorPrimaryBg } : void 0, [d, p] = x(!1), [h, m] = x(!1), [y, g] = x(!1), [v, w] = x(), I = Q(!1), [C, b] = x(""), O = Q(), T = ne(Be), { domain: R, getValues: S, getFields: V, getContext: A, elementHasLostFocus: F } = T || {}, P = Q([]), [_, k] = x([]), M = t && t[0] || void 0, W = t && t[1] || "";
8177
+ } = r, f = o && !a ? { backgroundColor: ca.colorPrimaryBg } : void 0, [d, p] = x(!1), [h, m] = x(!1), [y, g] = x(!1), [v, w] = x(), I = Q(!1), [C, b] = x(""), O = Q(), T = ne(Be), { domain: R, getValues: S, getFields: V, getContext: A, elementHasLostFocus: F } = T || {}, P = Q([]), [_, k] = x([]), M = t && t[0] || void 0, W = t && t[1] || "";
8182
8178
  ue(() => {
8183
8179
  !Array.isArray(t) && t && J(t);
8184
8180
  }, [t]), ue(() => {
@@ -8275,7 +8271,7 @@ const aa = yt(yp), wo = ({
8275
8271
  onBlur: X,
8276
8272
  onKeyDown: oe,
8277
8273
  suffix: /* @__PURE__ */ i(
8278
- uo,
8274
+ fo,
8279
8275
  {
8280
8276
  id: M,
8281
8277
  model: s,
@@ -8309,7 +8305,7 @@ const aa = yt(yp), wo = ({
8309
8305
  }
8310
8306
  ) }),
8311
8307
  /* @__PURE__ */ i(
8312
- wo,
8308
+ bo,
8313
8309
  {
8314
8310
  model: s,
8315
8311
  domain: _,
@@ -8344,7 +8340,7 @@ const aa = yt(yp), wo = ({
8344
8340
  ] });
8345
8341
  }, Sp = dn(lt)`
8346
8342
  .ant-input {
8347
- background-color: ${la.colorPrimaryBg};
8343
+ background-color: ${ca.colorPrimaryBg};
8348
8344
  }
8349
8345
  `, yn = mt.createContext(
8350
8346
  null
@@ -8388,7 +8384,7 @@ const aa = yt(yp), wo = ({
8388
8384
  }, h = () => {
8389
8385
  f(!1);
8390
8386
  const y = document.querySelector("#confirm-modal-container");
8391
- y && (qi(y).unmount(), y.remove());
8387
+ y && (Yi(y).unmount(), y.remove());
8392
8388
  };
8393
8389
  return /* @__PURE__ */ i(
8394
8390
  ct,
@@ -8408,10 +8404,10 @@ const aa = yt(yp), wo = ({
8408
8404
  children: t
8409
8405
  }
8410
8406
  );
8411
- }, da = (e) => {
8407
+ }, ua = (e) => {
8412
8408
  const t = document.createElement("div");
8413
8409
  document.body.appendChild(t);
8414
- const n = qi(t);
8410
+ const n = Yi(t);
8415
8411
  return n.render(
8416
8412
  /* @__PURE__ */ i(
8417
8413
  xp,
@@ -8431,11 +8427,11 @@ const aa = yt(yp), wo = ({
8431
8427
  n.unmount(), t.remove();
8432
8428
  }
8433
8429
  };
8434
- }, ua = ({
8430
+ }, fa = ({
8435
8431
  t: e,
8436
8432
  onOk: t
8437
8433
  }) => {
8438
- da({
8434
+ ua({
8439
8435
  title: e("removeItems"),
8440
8436
  icon: /* @__PURE__ */ i(Vt, {}),
8441
8437
  centered: !0,
@@ -8444,11 +8440,11 @@ const aa = yt(yp), wo = ({
8444
8440
  cancelText: e("cancel"),
8445
8441
  onOk: t
8446
8442
  });
8447
- }, fa = ({
8443
+ }, ma = ({
8448
8444
  t: e,
8449
8445
  onOk: t
8450
8446
  }) => {
8451
- da({
8447
+ ua({
8452
8448
  title: e("unlinkItems"),
8453
8449
  icon: /* @__PURE__ */ i(Vt, {}),
8454
8450
  centered: !0,
@@ -8457,7 +8453,7 @@ const aa = yt(yp), wo = ({
8457
8453
  onOk: t,
8458
8454
  cancelText: e("cancel")
8459
8455
  });
8460
- }, { useToken: Ip } = Ge, ma = (e) => {
8456
+ }, { useToken: Ip } = Ge, pa = (e) => {
8461
8457
  const {
8462
8458
  title: t,
8463
8459
  readOnly: n,
@@ -8496,7 +8492,7 @@ const aa = yt(yp), wo = ({
8496
8492
  nt,
8497
8493
  {
8498
8494
  tooltip: d ? "Unlink" : "Delete",
8499
- icon: d ? /* @__PURE__ */ i(rl, {}) : /* @__PURE__ */ i(Zr, {}),
8495
+ icon: d ? /* @__PURE__ */ i(ol, {}) : /* @__PURE__ */ i(Zr, {}),
8500
8496
  onClick: a,
8501
8497
  danger: !d,
8502
8498
  type: d ? "default" : "primary",
@@ -8521,7 +8517,7 @@ const aa = yt(yp), wo = ({
8521
8517
  nt,
8522
8518
  {
8523
8519
  tooltip: "Previous item",
8524
- icon: /* @__PURE__ */ i(Bi, {}),
8520
+ icon: /* @__PURE__ */ i(Hi, {}),
8525
8521
  onClick: u
8526
8522
  }
8527
8523
  ),
@@ -8530,7 +8526,7 @@ const aa = yt(yp), wo = ({
8530
8526
  nt,
8531
8527
  {
8532
8528
  tooltip: "Next item",
8533
- icon: /* @__PURE__ */ i(Hi, {}),
8529
+ icon: /* @__PURE__ */ i(Ui, {}),
8534
8530
  onClick: f
8535
8531
  }
8536
8532
  )
@@ -8568,15 +8564,15 @@ const aa = yt(yp), wo = ({
8568
8564
  nt,
8569
8565
  {
8570
8566
  tooltip: "Toggle view mode",
8571
- icon: /* @__PURE__ */ i(nl, {}),
8567
+ icon: /* @__PURE__ */ i(rl, {}),
8572
8568
  onClick: o
8573
8569
  }
8574
8570
  )
8575
8571
  ] })
8576
8572
  ] });
8577
8573
  }, Tp = {
8578
- form: ki,
8579
- tree: Vi,
8574
+ form: $i,
8575
+ tree: Ei,
8580
8576
  graph: un
8581
8577
  };
8582
8578
  function Op(e) {
@@ -8630,7 +8626,7 @@ const Fp = (e) => {
8630
8626
  var ye, Re, be;
8631
8627
  b(!0), I(!1), T(void 0);
8632
8628
  try {
8633
- const [De, Ee] = await so({
8629
+ const [De, Ee] = await ao({
8634
8630
  treeView: {
8635
8631
  arch: (ye = o.get("tree")) == null ? void 0 : ye.arch,
8636
8632
  fields: (Re = o.get("tree")) == null ? void 0 : Re.fields
@@ -8707,7 +8703,7 @@ const Fp = (e) => {
8707
8703
  }) : z();
8708
8704
  }, fe = () => {
8709
8705
  if (L) {
8710
- fa({
8706
+ ma({
8711
8707
  t: v,
8712
8708
  onOk: async () => {
8713
8709
  a === "form" ? Ce() : Se();
@@ -8715,7 +8711,7 @@ const Fp = (e) => {
8715
8711
  });
8716
8712
  return;
8717
8713
  }
8718
- ua({
8714
+ fa({
8719
8715
  t: v,
8720
8716
  onOk: async () => {
8721
8717
  a === "form" ? Ce() : Se();
@@ -8778,7 +8774,7 @@ const Fp = (e) => {
8778
8774
  treeValues: { ...Re, id: z }
8779
8775
  } : Ee);
8780
8776
  else {
8781
- const Ee = as(s);
8777
+ const Ee = ls(s);
8782
8778
  De = s.concat({
8783
8779
  id: Ee,
8784
8780
  operation: "pendingCreate",
@@ -8825,7 +8821,7 @@ const Fp = (e) => {
8825
8821
  function Oe() {
8826
8822
  const z = Tp[a];
8827
8823
  if (a === "graph")
8828
- return Pi(o.get("graph").arch).string;
8824
+ return ki(o.get("graph").arch).string;
8829
8825
  {
8830
8826
  const ye = new z(o.get(a).fields);
8831
8827
  return ye.parse(o.get(a).arch), ye.string;
@@ -8904,7 +8900,7 @@ const Fp = (e) => {
8904
8900
  const ge = M;
8905
8901
  return C ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ D(ae, { children: [
8906
8902
  /* @__PURE__ */ i(
8907
- ma,
8903
+ pa,
8908
8904
  {
8909
8905
  mode: a,
8910
8906
  title: Oe(),
@@ -8948,7 +8944,7 @@ const Fp = (e) => {
8948
8944
  }
8949
8945
  ),
8950
8946
  /* @__PURE__ */ i(
8951
- wo,
8947
+ bo,
8952
8948
  {
8953
8949
  domain: j.current,
8954
8950
  model: Z,
@@ -9015,7 +9011,7 @@ const Fp = (e) => {
9015
9011
  endRow: y,
9016
9012
  sortFields: g
9017
9013
  }) => {
9018
- const v = is(g), { realItemsIds: w, otherItems: I } = Ec({
9014
+ const v = ss(g), { realItemsIds: w, otherItems: I } = Ec({
9019
9015
  allItems: h,
9020
9016
  ...v ? {} : { range: { startRow: m, endRow: y } }
9021
9017
  });
@@ -9209,13 +9205,13 @@ const Fp = (e) => {
9209
9205
  }, [n, c, r, u, t]), p = N(async () => l === "form" ? await d() : await f(), [l, d, f]);
9210
9206
  return { showRemoveConfirm: N(() => {
9211
9207
  if (e) {
9212
- fa({
9208
+ ma({
9213
9209
  t: a,
9214
9210
  onOk: p
9215
9211
  });
9216
9212
  return;
9217
9213
  }
9218
- ua({
9214
+ fa({
9219
9215
  t: a,
9220
9216
  onOk: p
9221
9217
  });
@@ -9268,7 +9264,7 @@ const kp = ({
9268
9264
  treeValues: { ...T, id: b }
9269
9265
  } : V);
9270
9266
  else {
9271
- const V = as(o);
9267
+ const V = ls(o);
9272
9268
  S = o.concat({
9273
9269
  id: V,
9274
9270
  operation: "pendingCreate",
@@ -9335,11 +9331,11 @@ const kp = ({
9335
9331
  m.push({
9336
9332
  id: v.id,
9337
9333
  operation: "pendingLink",
9338
- values: $o({
9334
+ values: No({
9339
9335
  values: v,
9340
9336
  fields: ["id", ...Object.keys(s.get("form").fields)]
9341
9337
  }),
9342
- treeValues: $o({
9338
+ treeValues: No({
9343
9339
  values: v,
9344
9340
  fields: ["id", ...Object.keys(s.get("tree").fields)]
9345
9341
  })
@@ -9390,10 +9386,10 @@ const kp = ({
9390
9386
  }
9391
9387
  b.current = e, (k = w == null ? void 0 : w.current) == null || k.refresh(), (M = w == null ? void 0 : w.current) == null || M.unselectAll();
9392
9388
  }, [e]);
9393
- const R = Tn(() => e.length, [e]), S = Tn(() => io(
9389
+ const R = Tn(() => e.length, [e]), S = Tn(() => so(
9394
9390
  o,
9395
9391
  {
9396
- ...mo
9392
+ ...po
9397
9393
  },
9398
9394
  s
9399
9395
  ), [s, o]), V = N(
@@ -9415,14 +9411,14 @@ const kp = ({
9415
9411
  var M, W, j, E;
9416
9412
  if (I.current[(W = (M = k.node) == null ? void 0 : M.data) == null ? void 0 : W.id])
9417
9413
  return { color: I.current[(E = (j = k.node) == null ? void 0 : j.data) == null ? void 0 : E.id] };
9418
- }, []), { loading: F, getColumnState: P, updateColumnState: _ } = Os(
9414
+ }, []), { loading: F, getColumnState: P, updateColumnState: _ } = Fs(
9419
9415
  Np({
9420
9416
  ...h,
9421
9417
  model: u
9422
9418
  })
9423
9419
  );
9424
9420
  return F ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(
9425
- zi,
9421
+ Ji,
9426
9422
  {
9427
9423
  ref: w,
9428
9424
  height: t || Mp,
@@ -9440,7 +9436,7 @@ const kp = ({
9440
9436
  selectedRowKeys: y,
9441
9437
  onSelectionCheckboxClicked: p,
9442
9438
  totalRows: R,
9443
- footer: m && /* @__PURE__ */ i(As, { aggregates: m, isLoading: !1 }),
9439
+ footer: m && /* @__PURE__ */ i(Rs, { aggregates: m, isLoading: !1 }),
9444
9440
  hasStatusColumn: o.status !== null,
9445
9441
  statusComponent: (k) => /* @__PURE__ */ i(Jn, { color: k, style: { marginLeft: 7 } }),
9446
9442
  onRowStatus: (k) => {
@@ -9460,7 +9456,7 @@ const kp = ({
9460
9456
  }) => {
9461
9457
  const o = t.filter((a) => a.id && a.id > 0);
9462
9458
  let s;
9463
- return n.length > 0 ? s = [["id", "in", n]] : o.length > 0 && (s = [["id", "in", o.map((a) => a.id)]]), Fs({
9459
+ return n.length > 0 ? s = [["id", "in", n]] : o.length > 0 && (s = [["id", "in", o.map((a) => a.id)]]), As({
9464
9460
  ooui: e,
9465
9461
  model: r,
9466
9462
  domain: s
@@ -9598,7 +9594,7 @@ const kp = ({
9598
9594
  }, [s]);
9599
9595
  return /* @__PURE__ */ D(ae, { children: [
9600
9596
  /* @__PURE__ */ i(
9601
- ma,
9597
+ pa,
9602
9598
  {
9603
9599
  mode: c,
9604
9600
  title: W,
@@ -9676,7 +9672,7 @@ const kp = ({
9676
9672
  }
9677
9673
  ),
9678
9674
  /* @__PURE__ */ i(
9679
- wo,
9675
+ bo,
9680
9676
  {
9681
9677
  domain: R,
9682
9678
  model: h,
@@ -9768,7 +9764,7 @@ const kp = ({
9768
9764
  }, Yp = (e) => {
9769
9765
  const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: s, required: a } = t, { token: l } = Kp(), c = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = Q(), [f, d] = x(), p = ne(Be), { elementHasLostFocus: h } = p || {};
9770
9766
  ue(() => {
9771
- d(Cs(n));
9767
+ d(xs(n));
9772
9768
  }, [n]);
9773
9769
  const m = (v) => {
9774
9770
  r == null || r(v);
@@ -9793,9 +9789,9 @@ const kp = ({
9793
9789
  }
9794
9790
  );
9795
9791
  };
9796
- function pa(e) {
9792
+ function ha(e) {
9797
9793
  const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = dt(t.icon || "");
9798
- return /* @__PURE__ */ i(ae, { children: (t.label || o) && n ? /* @__PURE__ */ i(hl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
9794
+ return /* @__PURE__ */ i(ae, { children: (t.label || o) && n ? /* @__PURE__ */ i(gl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
9799
9795
  Gn,
9800
9796
  {
9801
9797
  container: t.container,
@@ -9809,7 +9805,7 @@ function pa(e) {
9809
9805
  }
9810
9806
  ) });
9811
9807
  }
9812
- const { TabPane: zp } = _i;
9808
+ const { TabPane: zp } = Vi;
9813
9809
  function Jp(e) {
9814
9810
  const { ooui: t, responsiveBehaviour: n } = e, r = t.pages;
9815
9811
  function o(s) {
@@ -9818,7 +9814,7 @@ function Jp(e) {
9818
9814
  return a && /* @__PURE__ */ i(a, {});
9819
9815
  }
9820
9816
  }
9821
- return /* @__PURE__ */ i(_i, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
9817
+ return /* @__PURE__ */ i(Vi, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
9822
9818
  zp,
9823
9819
  {
9824
9820
  tab: /* @__PURE__ */ D(ae, { children: [
@@ -9827,7 +9823,7 @@ function Jp(e) {
9827
9823
  s.label
9828
9824
  ] }),
9829
9825
  children: /* @__PURE__ */ i(
9830
- pa,
9826
+ ha,
9831
9827
  {
9832
9828
  ooui: s,
9833
9829
  showLabel: !1,
@@ -9908,7 +9904,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
9908
9904
  }
9909
9905
  ),
9910
9906
  /* @__PURE__ */ i(
9911
- Zi,
9907
+ es,
9912
9908
  {
9913
9909
  id: a,
9914
9910
  model: l,
@@ -9943,7 +9939,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
9943
9939
  nt,
9944
9940
  {
9945
9941
  tooltip: h("translate"),
9946
- icon: /* @__PURE__ */ i(ji, {}),
9942
+ icon: /* @__PURE__ */ i(Bi, {}),
9947
9943
  onClick: async () => {
9948
9944
  u != null && u() ? xt(h("saveBeforeTranslate")) : xt(h("enterTextBeforeTranslate"));
9949
9945
  },
@@ -9997,7 +9993,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
9997
9993
  context: t,
9998
9994
  fields: []
9999
9995
  });
10000
- return a.current["/"] = g, xi({ fields: g });
9996
+ return a.current["/"] = g, Ii({ fields: g });
10001
9997
  }, [e, t, a]), d = N(
10002
9998
  async (g) => {
10003
9999
  const w = Hr(g, a.current)[Br(g)], I = w.relation, C = await $.getHandler().getFields({
@@ -10010,7 +10006,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10010
10006
  parentTitle: w.string,
10011
10007
  title: O.string
10012
10008
  });
10013
- return a.current[g] = C, xi({
10009
+ return a.current[g] = C, Ii({
10014
10010
  fields: C,
10015
10011
  parentKey: g
10016
10012
  });
@@ -10091,13 +10087,13 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10091
10087
  onSavePredefinedExport: y,
10092
10088
  onRemovePredefinedExport: h
10093
10089
  };
10094
- }, xi = ({
10090
+ }, Ii = ({
10095
10091
  fields: e,
10096
10092
  parentKey: t
10097
10093
  }) => {
10098
10094
  const n = [];
10099
10095
  for (const r of Object.keys(e)) {
10100
- const o = e[r], s = ha(o), a = o.is_function === !0, l = s && !a;
10096
+ const o = e[r], s = ga(o), a = o.is_function === !0, l = s && !a;
10101
10097
  n.push({
10102
10098
  key: nh({ key: r, parentKey: t }),
10103
10099
  title: o.string,
@@ -10107,7 +10103,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10107
10103
  });
10108
10104
  }
10109
10105
  return n;
10110
- }, ha = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", nh = ({
10106
+ }, ga = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", nh = ({
10111
10107
  parentKey: e,
10112
10108
  key: t
10113
10109
  }) => `${e ? e + "/" : ""}${t}`, jr = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Br = (e) => {
@@ -10173,7 +10169,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10173
10169
  keys: e,
10174
10170
  fields: t
10175
10171
  }) => e.map((n) => {
10176
- const r = Br(n), s = Hr(n, t)[r], a = ha(s), l = s.is_function === !0;
10172
+ const r = Br(n), s = Hr(n, t)[r], a = ga(s), l = s.is_function === !0;
10177
10173
  return a && !l ? `${n}/id` : n;
10178
10174
  }), lh = (e) => {
10179
10175
  const t = /* @__PURE__ */ new Map(), n = [];
@@ -10216,7 +10212,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10216
10212
  onClose: n
10217
10213
  });
10218
10214
  return /* @__PURE__ */ i(
10219
- gl,
10215
+ yl,
10220
10216
  {
10221
10217
  visible: t,
10222
10218
  onSucceed: f,
@@ -10233,10 +10229,10 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10233
10229
  );
10234
10230
  }, dh = (e) => {
10235
10231
  const { ooui: t } = e;
10236
- return /* @__PURE__ */ i(Is, { ooui: t });
10232
+ return /* @__PURE__ */ i(Ts, { ooui: t });
10237
10233
  }, uh = (e) => {
10238
10234
  const { ooui: t } = e;
10239
- return /* @__PURE__ */ i(Is, { ooui: t, showTime: !0 });
10235
+ return /* @__PURE__ */ i(Ts, { ooui: t, showTime: !0 });
10240
10236
  }, fh = (e) => {
10241
10237
  const { ooui: t } = e;
10242
10238
  return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(mh, { ooui: t }) });
@@ -10263,7 +10259,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10263
10259
  f([m, void 0]), p(h);
10264
10260
  }, [t]), /* @__PURE__ */ D(ke, { gutter: 8, wrap: !1, children: [
10265
10261
  /* @__PURE__ */ i(we, { flex: "1", children: /* @__PURE__ */ i(
10266
- ns,
10262
+ rs,
10267
10263
  {
10268
10264
  ooui: new Kr({
10269
10265
  name: "model_selection",
@@ -10282,9 +10278,9 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10282
10278
  }
10283
10279
  ) }),
10284
10280
  /* @__PURE__ */ i(we, { flex: "3", children: /* @__PURE__ */ i(
10285
- ca,
10281
+ da,
10286
10282
  {
10287
- ooui: new Ei({
10283
+ ooui: new Di({
10288
10284
  name: "object_value",
10289
10285
  relation: d,
10290
10286
  readonly: a,
@@ -10317,7 +10313,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10317
10313
  }
10318
10314
  async function v(I) {
10319
10315
  I.stopPropagation(), I.preventDefault();
10320
- const C = I.target.files[0], b = await rs(C);
10316
+ const C = I.target.files[0], b = await os(C);
10321
10317
  m(b), a && f(a, C.name);
10322
10318
  }
10323
10319
  function w() {
@@ -10357,7 +10353,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10357
10353
  children: "Select"
10358
10354
  }
10359
10355
  ),
10360
- /* @__PURE__ */ i(je, { icon: /* @__PURE__ */ i(ol, {}), disabled: !n, onClick: g, children: p("open") }),
10356
+ /* @__PURE__ */ i(je, { icon: /* @__PURE__ */ i(il, {}), disabled: !n, onClick: g, children: p("open") }),
10361
10357
  /* @__PURE__ */ i(
10362
10358
  nt,
10363
10359
  {
@@ -10381,13 +10377,13 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10381
10377
  }, Ir = {
10382
10378
  tree: /* @__PURE__ */ i(eo, {}),
10383
10379
  form: /* @__PURE__ */ i(xn, {}),
10384
- graph: /* @__PURE__ */ i(il, {}),
10385
- calendar: /* @__PURE__ */ i(sl, {})
10380
+ graph: /* @__PURE__ */ i(sl, {}),
10381
+ calendar: /* @__PURE__ */ i(al, {})
10386
10382
  };
10387
- function Ii(e) {
10383
+ function Ti(e) {
10388
10384
  return e ? (Ir == null ? void 0 : Ir[e.type]) || /* @__PURE__ */ i(xn, {}) : /* @__PURE__ */ i(xn, {});
10389
10385
  }
10390
- function bo(e) {
10386
+ function So(e) {
10391
10387
  const {
10392
10388
  currentView: t,
10393
10389
  availableViews: n,
@@ -10403,7 +10399,7 @@ function bo(e) {
10403
10399
  return {
10404
10400
  id: d.view_id || p,
10405
10401
  name: d.title || h,
10406
- icon: Ii(d),
10402
+ icon: Ti(d),
10407
10403
  selected: t.view_id === d.view_id
10408
10404
  };
10409
10405
  })
@@ -10434,7 +10430,7 @@ function bo(e) {
10434
10430
  nt,
10435
10431
  {
10436
10432
  tooltip: a ? l("viewAs") + " " + l(a.type) : "",
10437
- icon: Ii(a),
10433
+ icon: Ti(a),
10438
10434
  style: {
10439
10435
  width: 50,
10440
10436
  borderTopRightRadius: 0,
@@ -10447,7 +10443,7 @@ function bo(e) {
10447
10443
  }
10448
10444
  ),
10449
10445
  /* @__PURE__ */ i(
10450
- Ki,
10446
+ qi,
10451
10447
  {
10452
10448
  onRetrieveData: async () => c,
10453
10449
  onItemClick: f,
@@ -10495,8 +10491,8 @@ function ot(e) {
10495
10491
  }
10496
10492
  );
10497
10493
  }
10498
- const ga = (e) => /* @__PURE__ */ i(ot, { ...e, type: "primary", danger: !0 });
10499
- function ya(e) {
10494
+ const ya = (e) => /* @__PURE__ */ i(ot, { ...e, type: "primary", danger: !0 });
10495
+ function va(e) {
10500
10496
  const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = ne(
10501
10497
  at
10502
10498
  ), { t: o } = he(), s = () => {
@@ -10522,7 +10518,7 @@ function ya(e) {
10522
10518
  }
10523
10519
  );
10524
10520
  }
10525
- async function va(e, t, n) {
10521
+ async function wa(e, t, n) {
10526
10522
  const r = (await $.getHandler().getLogInfo({
10527
10523
  model: e,
10528
10524
  ids: [t]
@@ -10555,18 +10551,18 @@ const wh = (e) => {
10555
10551
  onOpenAttachmentDetail: a,
10556
10552
  onListAllAttachments: l
10557
10553
  } = e, { t: c } = he(), u = Q(null), f = /* @__PURE__ */ D(je, { children: [
10558
- /* @__PURE__ */ i(Ao, {}),
10554
+ /* @__PURE__ */ i(Ro, {}),
10559
10555
  `(${t})`,
10560
10556
  /* @__PURE__ */ i(Qn, { style: { fontSize: 12 } })
10561
10557
  ] });
10562
10558
  return /* @__PURE__ */ i(
10563
- Ki,
10559
+ qi,
10564
10560
  {
10565
10561
  ref: u,
10566
10562
  onRetrieveData: async () => [
10567
10563
  {
10568
10564
  items: n.map((d) => {
10569
- const p = d.link ? Ao : zr, h = /* @__PURE__ */ D(ke, { wrap: !1, align: "middle", gutter: 8, children: [
10565
+ const p = d.link ? Ro : zr, h = /* @__PURE__ */ D(ke, { wrap: !1, align: "middle", gutter: 8, children: [
10570
10566
  /* @__PURE__ */ i(we, { style: { textAlign: "center" }, children: (d.datas_fname || d.link) && /* @__PURE__ */ i(
10571
10567
  Ft,
10572
10568
  {
@@ -10743,13 +10739,13 @@ const Sh = () => {
10743
10739
  setCurrentItemIndex: o,
10744
10740
  results: s,
10745
10741
  searchQuery: a
10746
- } = lo(), [l, c] = ze(
10742
+ } = co(), [l, c] = ze(
10747
10743
  $.getHandler().searchForTree
10748
10744
  );
10749
10745
  ue(() => () => {
10750
10746
  c();
10751
10747
  }, [c]);
10752
- const u = bs(), f = N(
10748
+ const u = Ss(), f = N(
10753
10749
  async (g) => {
10754
10750
  var v;
10755
10751
  try {
@@ -10848,7 +10844,7 @@ function Ch({ toolbar: e }) {
10848
10844
  setPreviousView: F,
10849
10845
  goToResourceId: P,
10850
10846
  isActive: _
10851
- } = lo(), { processAction: k } = t || {}, { openRelate: M, openDefaultActionForModel: W } = n || {}, j = d || I || T || C, E = N(
10847
+ } = co(), { processAction: k } = t || {}, { openRelate: M, openDefaultActionForModel: W } = n || {}, j = d || I || T || C, E = N(
10852
10848
  (H) => {
10853
10849
  f ? mn({ t: r, onOk: H }) : H();
10854
10850
  },
@@ -10935,11 +10931,11 @@ function Ch({ toolbar: e }) {
10935
10931
  Yt(),
10936
10932
  Yt()
10937
10933
  ] }),
10938
- /* @__PURE__ */ i(ya, { disabled: j }),
10934
+ /* @__PURE__ */ i(va, { disabled: j }),
10939
10935
  /* @__PURE__ */ i(
10940
10936
  ot,
10941
10937
  {
10942
- icon: /* @__PURE__ */ i(al, {}),
10938
+ icon: /* @__PURE__ */ i(ll, {}),
10943
10939
  tooltip: r("save"),
10944
10940
  disabled: !f || j,
10945
10941
  loading: d,
@@ -10961,7 +10957,7 @@ function Ch({ toolbar: e }) {
10961
10957
  }
10962
10958
  ),
10963
10959
  /* @__PURE__ */ i(
10964
- ga,
10960
+ ya,
10965
10961
  {
10966
10962
  icon: /* @__PURE__ */ i(Zr, {}),
10967
10963
  tooltip: r("delete"),
@@ -10978,10 +10974,10 @@ function Ch({ toolbar: e }) {
10978
10974
  /* @__PURE__ */ i(
10979
10975
  ot,
10980
10976
  {
10981
- icon: /* @__PURE__ */ i(Ui, {}),
10977
+ icon: /* @__PURE__ */ i(Wi, {}),
10982
10978
  tooltip: r("showLogs"),
10983
10979
  disabled: j || p === void 0,
10984
- onClick: () => va(v, p, r)
10980
+ onClick: () => wa(v, p, r)
10985
10981
  }
10986
10982
  ),
10987
10983
  /* @__PURE__ */ i(
@@ -10995,7 +10991,7 @@ function Ch({ toolbar: e }) {
10995
10991
  ),
10996
10992
  Yt(),
10997
10993
  /* @__PURE__ */ i(
10998
- bo,
10994
+ So,
10999
10995
  {
11000
10996
  currentView: l,
11001
10997
  previousView: A,
@@ -11012,7 +11008,7 @@ function Ch({ toolbar: e }) {
11012
11008
  /* @__PURE__ */ i(
11013
11009
  ot,
11014
11010
  {
11015
- icon: /* @__PURE__ */ i(Bi, {}),
11011
+ icon: /* @__PURE__ */ i(Hi, {}),
11016
11012
  tooltip: r("previous"),
11017
11013
  disabled: j,
11018
11014
  onClick: () => E(s)
@@ -11021,7 +11017,7 @@ function Ch({ toolbar: e }) {
11021
11017
  /* @__PURE__ */ i(
11022
11018
  ot,
11023
11019
  {
11024
- icon: /* @__PURE__ */ i(Hi, {}),
11020
+ icon: /* @__PURE__ */ i(Ui, {}),
11025
11021
  tooltip: r("next"),
11026
11022
  disabled: j,
11027
11023
  onClick: () => E(o)
@@ -11094,7 +11090,7 @@ function Ch({ toolbar: e }) {
11094
11090
  onAddNewAttachment: async () => {
11095
11091
  const H = await zt({ onFormSave: u });
11096
11092
  H.succeed && W({
11097
- ...Ti(
11093
+ ...Oi(
11098
11094
  v,
11099
11095
  H.currentId
11100
11096
  ),
@@ -11104,7 +11100,7 @@ function Ch({ toolbar: e }) {
11104
11100
  onListAllAttachments: async () => {
11105
11101
  const H = await zt({ onFormSave: u });
11106
11102
  H.succeed && W({
11107
- ...Ti(
11103
+ ...Oi(
11108
11104
  v,
11109
11105
  H.currentId
11110
11106
  ),
@@ -11127,7 +11123,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11127
11123
  }) => {
11128
11124
  const t = await (e == null ? void 0 : e());
11129
11125
  return t != null && t.succeed ? { succeed: !0, currentId: t.id } : { succeed: !1, currentId: void 0 };
11130
- }, Ti = (e, t) => ({
11126
+ }, Oi = (e, t) => ({
11131
11127
  model: "ir.attachment",
11132
11128
  domain: [
11133
11129
  ["res_model", "=", e],
@@ -11135,7 +11131,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11135
11131
  ],
11136
11132
  values: { selection_associated_object: `${e},${t}` },
11137
11133
  forced_values: { res_model: e, res_id: t }
11138
- }), { useToken: xh } = Ge, wa = (e) => {
11134
+ }), { useToken: xh } = Ge, ba = (e) => {
11139
11135
  const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } = xh(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = ne(Be), { elementHasLostFocus: p } = d || {}, [h, m] = x(!1), [y, g] = x(!1);
11140
11136
  ue(() => {
11141
11137
  l && !h && g(!1), !n && !l && (m(!0), g(!0));
@@ -11157,7 +11153,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11157
11153
  ) : /* @__PURE__ */ i(
11158
11154
  je,
11159
11155
  {
11160
- icon: /* @__PURE__ */ i(Wi, {}),
11156
+ icon: /* @__PURE__ */ i(Gi, {}),
11161
11157
  onClick: () => {
11162
11158
  m(!0), g(!0);
11163
11159
  },
@@ -11194,7 +11190,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11194
11190
  }, Ih = (e) => {
11195
11191
  const { ooui: t } = e, { required: n } = t;
11196
11192
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
11197
- wa,
11193
+ ba,
11198
11194
  {
11199
11195
  ooui: t,
11200
11196
  valueValidator: (r) => r ? Bl(r) : !1
@@ -11203,7 +11199,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11203
11199
  }, Th = (e) => {
11204
11200
  const { ooui: t } = e, { required: n } = t;
11205
11201
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(fu, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
11206
- wa,
11202
+ ba,
11207
11203
  {
11208
11204
  ooui: t,
11209
11205
  linkPrefix: "mailto:",
@@ -11263,7 +11259,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11263
11259
  tabIndex: 1,
11264
11260
  loading: o,
11265
11261
  style: { marginLeft: 15 },
11266
- icon: /* @__PURE__ */ i(ll, {}),
11262
+ icon: /* @__PURE__ */ i(cl, {}),
11267
11263
  htmlType: "submit",
11268
11264
  disabled: o,
11269
11265
  onClick: () => {
@@ -11293,7 +11289,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11293
11289
  }
11294
11290
  );
11295
11291
  }, { useToken: Fh } = Ge;
11296
- function ba(e) {
11292
+ function Sa(e) {
11297
11293
  const { badgeNumber: t = 0, ...n } = e, { token: r } = Fh();
11298
11294
  return /* @__PURE__ */ D("div", { style: { position: "relative" }, children: [
11299
11295
  t > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
@@ -11335,10 +11331,10 @@ function Ah({ refreshGraph: e }) {
11335
11331
  } = ne(at);
11336
11332
  return /* @__PURE__ */ D(Je, { wrap: !0, children: [
11337
11333
  /* @__PURE__ */ i(
11338
- ba,
11334
+ Sa,
11339
11335
  {
11340
11336
  icon: /* @__PURE__ */ i(
11341
- Gi,
11337
+ Ki,
11342
11338
  {
11343
11339
  style: { color: a ? "white" : void 0 }
11344
11340
  }
@@ -11365,7 +11361,7 @@ function Ah({ refreshGraph: e }) {
11365
11361
  }
11366
11362
  ),
11367
11363
  /* @__PURE__ */ i(
11368
- bo,
11364
+ So,
11369
11365
  {
11370
11366
  currentView: r,
11371
11367
  availableViews: n,
@@ -11513,7 +11509,7 @@ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, cr = ({
11513
11509
  }, [S]), ue(() => {
11514
11510
  t.view_id !== F.view_id && _(!0);
11515
11511
  }, [F]);
11516
- const { clear: k, searchFilterLoading: M, searchError: W, offset: j, tableRefreshing: E } = sa({
11512
+ const { clear: k, searchFilterLoading: M, searchError: W, offset: j, tableRefreshing: E } = aa({
11517
11513
  model: r,
11518
11514
  setSearchTreeNameSearch: b,
11519
11515
  setSelectedRowItems: m,
@@ -11546,7 +11542,7 @@ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, cr = ({
11546
11542
  }
11547
11543
  ) }),
11548
11544
  /* @__PURE__ */ i(
11549
- vo,
11545
+ wo,
11550
11546
  {
11551
11547
  fields: { ...l.fields, ...a.fields },
11552
11548
  searchFields: Bn([
@@ -11637,7 +11633,7 @@ function Dh(e) {
11637
11633
  },
11638
11634
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
11639
11635
  suffix: (a || r && r.length > 0) && /* @__PURE__ */ i(Ft, { title: o("clear"), children: /* @__PURE__ */ i(
11640
- cl,
11636
+ dl,
11641
11637
  {
11642
11638
  style: { color: "rgba(0,0,0,.45)" },
11643
11639
  onClick: u
@@ -11800,10 +11796,10 @@ function Ph(e) {
11800
11796
  }
11801
11797
  ),
11802
11798
  !A && /* @__PURE__ */ i(
11803
- ba,
11799
+ Sa,
11804
11800
  {
11805
11801
  icon: /* @__PURE__ */ i(
11806
- Gi,
11802
+ Ki,
11807
11803
  {
11808
11804
  style: { color: m ? "white" : void 0 }
11809
11805
  }
@@ -11818,7 +11814,7 @@ function Ph(e) {
11818
11814
  }
11819
11815
  ),
11820
11816
  Nt(),
11821
- /* @__PURE__ */ i(ya, { disabled: w }),
11817
+ /* @__PURE__ */ i(va, { disabled: w }),
11822
11818
  /* @__PURE__ */ i(
11823
11819
  ot,
11824
11820
  {
@@ -11830,7 +11826,7 @@ function Ph(e) {
11830
11826
  }
11831
11827
  ),
11832
11828
  /* @__PURE__ */ i(
11833
- ga,
11829
+ ya,
11834
11830
  {
11835
11831
  icon: /* @__PURE__ */ i(Zr, {}),
11836
11832
  tooltip: _("delete"),
@@ -11844,12 +11840,12 @@ function Ph(e) {
11844
11840
  /* @__PURE__ */ i(
11845
11841
  ot,
11846
11842
  {
11847
- icon: /* @__PURE__ */ i(Ui, {}),
11843
+ icon: /* @__PURE__ */ i(Wi, {}),
11848
11844
  tooltip: _("showLogs"),
11849
11845
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || w,
11850
11846
  loading: !1,
11851
11847
  onClick: () => {
11852
- va(u, o[0].id, _);
11848
+ wa(u, o[0].id, _);
11853
11849
  }
11854
11850
  }
11855
11851
  ),
@@ -11869,7 +11865,7 @@ function Ph(e) {
11869
11865
  !A && /* @__PURE__ */ D(ae, { children: [
11870
11866
  Nt(),
11871
11867
  /* @__PURE__ */ i(
11872
- bo,
11868
+ So,
11873
11869
  {
11874
11870
  currentView: n,
11875
11871
  availableViews: t,
@@ -11921,7 +11917,7 @@ function Ph(e) {
11921
11917
  {
11922
11918
  placement: "bottomRight",
11923
11919
  icon: /* @__PURE__ */ i(
11924
- Ni,
11920
+ Mi,
11925
11921
  {
11926
11922
  component: () => /* @__PURE__ */ D(
11927
11923
  "svg",
@@ -12019,7 +12015,7 @@ const kh = (e) => {
12019
12015
  setCurrentView: d,
12020
12016
  availableViews: p,
12021
12017
  searchTreeNameSearch: h
12022
- } = e, m = me(() => !(a != null && a.arch) || a.isExpandable ? !1 : ss(a.arch, "infinite") === "1", [a]);
12018
+ } = e, m = me(() => !(a != null && a.arch) || a.isExpandable ? !1 : as(a.arch, "infinite") === "1", [a]);
12023
12019
  ue(() => {
12024
12020
  v == null || v(m);
12025
12021
  }, [m]);
@@ -12056,7 +12052,7 @@ const kh = (e) => {
12056
12052
  }
12057
12053
  ) }),
12058
12054
  m && /* @__PURE__ */ i(
12059
- oa,
12055
+ ia,
12060
12056
  {
12061
12057
  ref: n,
12062
12058
  rootTree: !0,
@@ -12069,7 +12065,7 @@ const kh = (e) => {
12069
12065
  }
12070
12066
  ),
12071
12067
  !m && /* @__PURE__ */ i(
12072
- aa,
12068
+ la,
12073
12069
  {
12074
12070
  ref: n,
12075
12071
  rootTree: !0,
@@ -12083,10 +12079,10 @@ const kh = (e) => {
12083
12079
  }
12084
12080
  )
12085
12081
  ] }) : null;
12086
- }, So = mt.createContext(null), $h = (e) => {
12082
+ }, Co = mt.createContext(null), $h = (e) => {
12087
12083
  const [t, n] = x(!1), [r, o] = x(!1), { children: s, dashboardRef: a, openAction: l } = e;
12088
12084
  return /* @__PURE__ */ i(
12089
- So.Provider,
12085
+ Co.Provider,
12090
12086
  {
12091
12087
  value: {
12092
12088
  isLoading: t,
@@ -12101,13 +12097,13 @@ const kh = (e) => {
12101
12097
  );
12102
12098
  };
12103
12099
  function Nh() {
12104
- const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = ne(So), { t: o } = he();
12100
+ const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = ne(Co), { t: o } = he();
12105
12101
  return /* @__PURE__ */ D(Je, { wrap: !0, children: [
12106
12102
  /* @__PURE__ */ i(
12107
12103
  ot,
12108
12104
  {
12109
12105
  icon: /* @__PURE__ */ i(
12110
- dl,
12106
+ ul,
12111
12107
  {
12112
12108
  style: { color: n ? "white" : void 0 }
12113
12109
  }
@@ -12125,7 +12121,7 @@ function Nh() {
12125
12121
  /* @__PURE__ */ i(
12126
12122
  ot,
12127
12123
  {
12128
- icon: /* @__PURE__ */ i(ul, {}),
12124
+ icon: /* @__PURE__ */ i(fl, {}),
12129
12125
  tooltip: o("configDashboard"),
12130
12126
  disabled: e,
12131
12127
  loading: !1,
@@ -12509,7 +12505,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12509
12505
  }
12510
12506
  ) : null;
12511
12507
  }
12512
- const Sa = yt(Bh);
12508
+ const Ca = yt(Bh);
12513
12509
  const Hh = ql(Yl), Uh = (e) => {
12514
12510
  const { children: t = [], onPositionItemsChanged: n } = e, r = mt.Children.map(
12515
12511
  t,
@@ -12672,7 +12668,7 @@ function qh(e, t) {
12672
12668
  setIsLoading: p,
12673
12669
  openAction: h,
12674
12670
  moveItemsEnabled: m
12675
- } = ne(So), y = Q(), g = Q(), [v] = ze($.getHandler().getView), [w] = ze(
12671
+ } = ne(Co), y = Q(), g = Q(), [v] = ze($.getHandler().getView), [w] = ze(
12676
12672
  $.getHandler().readObjects
12677
12673
  ), [I] = ze($.getHandler().update), C = ar(
12678
12674
  fn.FEATURE_READFORVIEW
@@ -12717,7 +12713,7 @@ function qh(e, t) {
12717
12713
  type: "form",
12718
12714
  context: _
12719
12715
  })).fields;
12720
- const [k] = await so({
12716
+ const [k] = await ao({
12721
12717
  treeView: {
12722
12718
  fields: y.current
12723
12719
  },
@@ -12744,7 +12740,7 @@ function qh(e, t) {
12744
12740
  for (const k of F) {
12745
12741
  const { values: M } = k;
12746
12742
  if (M.action_id && M.action_id.length > 0) {
12747
- const W = parseInt(M.action_id[0], 10), j = cs({
12743
+ const W = parseInt(M.action_id[0], 10), j = ds({
12748
12744
  actionId: W,
12749
12745
  rootContext: r
12750
12746
  }).then((E) => ({ ...k, actionData: E }));
@@ -12820,7 +12816,7 @@ function qh(e, t) {
12820
12816
  }
12821
12817
  let ee = null;
12822
12818
  if ((B == null ? void 0 : B.type) === "graph") {
12823
- const ve = k.server_action === !0 && C ? gs : un;
12819
+ const ve = k.server_action === !0 && C ? ys : un;
12824
12820
  ee = /* @__PURE__ */ i(
12825
12821
  ve,
12826
12822
  {
@@ -12874,7 +12870,7 @@ function qh(e, t) {
12874
12870
  else if (B !== void 0) {
12875
12871
  const pe = B && Array.isArray(B.id) ? { ...B, id: B.id[0] } : B;
12876
12872
  ee = /* @__PURE__ */ i(
12877
- Sa,
12873
+ Ca,
12878
12874
  {
12879
12875
  action_id: j,
12880
12876
  action_type: E,
@@ -12916,7 +12912,7 @@ function qh(e, t) {
12916
12912
  };
12917
12913
  }
12918
12914
  return /* @__PURE__ */ i(
12919
- ys,
12915
+ vs,
12920
12916
  {
12921
12917
  id: W,
12922
12918
  title: te,
@@ -13038,23 +13034,23 @@ const Yh = yt(qh), zh = (e) => {
13038
13034
  }, eg = (e) => {
13039
13035
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, direction: a } = t, l = Array.from(o.entries()), c = l && l.length && l.map((u) => {
13040
13036
  const [f, d] = u;
13041
- return /* @__PURE__ */ i(To, { value: f, children: d }, f);
13037
+ return /* @__PURE__ */ i(Oo, { value: f, children: d }, f);
13042
13038
  });
13043
- return /* @__PURE__ */ i(To.Group, { disabled: s, onChange: n, value: r, children: /* @__PURE__ */ i(Je, { direction: a, children: c }) });
13039
+ return /* @__PURE__ */ i(Oo.Group, { disabled: s, onChange: n, value: r, children: /* @__PURE__ */ i(Je, { direction: a, children: c }) });
13044
13040
  }, tg = (e) => {
13045
13041
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
13046
13042
  return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(ng, { id: n, readOnly: r, required: o }) });
13047
13043
  }, ng = (e) => {
13048
13044
  const { required: t, readOnly: n, ...r } = e;
13049
- return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(Ua, { disabled: n, ...r }) });
13045
+ return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(Wa, { disabled: n, ...r }) });
13050
13046
  }, rg = (e) => {
13051
13047
  const { ooui: t } = e, { required: n } = t;
13052
13048
  return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(og, { ...e }) });
13053
13049
  }, og = (e) => {
13054
13050
  const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: s } = t, a = ne(Be), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
13055
13051
  let u = "process", f = "";
13056
- return o && (f = a.getFieldValue(o), f && (u = "error")), s && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(Oo, { current: c, status: u, children: l.map((d, p) => /* @__PURE__ */ i(
13057
- Oo.Step,
13052
+ return o && (f = a.getFieldValue(o), f && (u = "error")), s && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(Fo, { current: c, status: u, children: l.map((d, p) => /* @__PURE__ */ i(
13053
+ Fo.Step,
13058
13054
  {
13059
13055
  title: d[1],
13060
13056
  description: p === c && u === "error" ? f : null
@@ -13155,7 +13151,7 @@ const Yh = yt(qh), zh = (e) => {
13155
13151
  const r = `https://www.gravatar.com/avatar/${Kl(
13156
13152
  e
13157
13153
  )}?s=${t}&d=${n}`;
13158
- return /* @__PURE__ */ i(Fi, { src: r, size: t });
13154
+ return /* @__PURE__ */ i(Ai, { src: r, size: t });
13159
13155
  };
13160
13156
  function fg({ text: e }) {
13161
13157
  const t = e.split(`
@@ -13197,7 +13193,7 @@ const mg = (e) => {
13197
13193
  };
13198
13194
  });
13199
13195
  return /* @__PURE__ */ i(
13200
- Oi,
13196
+ Fi,
13201
13197
  {
13202
13198
  mode: "alternate",
13203
13199
  items: r,
@@ -13210,7 +13206,7 @@ const mg = (e) => {
13210
13206
  }
13211
13207
  }
13212
13208
  );
13213
- }, hg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(pg, { ooui: e.ooui }) }), gg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(yl, {}) }), yg = (e) => {
13209
+ }, hg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(pg, { ooui: e.ooui }) }), gg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vl, {}) }), yg = (e) => {
13214
13210
  const { ooui: t } = e, { title: n, text: r, alertType: o, icon: s } = t;
13215
13211
  function a(c) {
13216
13212
  if (c) {
@@ -13233,13 +13229,13 @@ const mg = (e) => {
13233
13229
  }, vg = (e) => {
13234
13230
  const { ooui: t } = e;
13235
13231
  return /* @__PURE__ */ i(He, { tip: t.label, size: "large", spinning: t.loading, children: /* @__PURE__ */ i(Gn, { container: t.container, responsiveBehaviour: !1 }) });
13236
- }, { Content: wg } = Ri, { Title: bg } = _t;
13232
+ }, { Content: wg } = _i, { Title: bg } = _t;
13237
13233
  function Sg() {
13238
13234
  const { t: e } = he();
13239
13235
  return /* @__PURE__ */ i(wg, { className: "m-5 select-none", children: /* @__PURE__ */ i(bg, { level: 5, children: e("welcome") }) });
13240
13236
  }
13241
13237
  function Cg(e, t) {
13242
- const { children: n } = e, [r, o] = x("welcome"), { t: s } = he(), { globalValues: a, rootContext: l } = ao(), [c, u] = x([
13238
+ const { children: n } = e, [r, o] = x("welcome"), { t: s } = he(), { globalValues: a, rootContext: l } = lo(), [c, u] = x([
13243
13239
  {
13244
13240
  title: s("welcome"),
13245
13241
  key: "welcome",
@@ -13530,7 +13526,7 @@ function Cg(e, t) {
13530
13526
  type: F
13531
13527
  },
13532
13528
  content: /* @__PURE__ */ i(
13533
- Sa,
13529
+ Ca,
13534
13530
  {
13535
13531
  action_id: A,
13536
13532
  action_type: F,
@@ -13580,7 +13576,7 @@ function Cg(e, t) {
13580
13576
  }
13581
13577
  );
13582
13578
  }
13583
- const Iy = yt(Cg), { useToken: xg } = Ge;
13579
+ const xy = yt(Cg), { useToken: xg } = Ge;
13584
13580
  function Ig(e) {
13585
13581
  const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = xg(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
13586
13582
  return /* @__PURE__ */ D(
@@ -13652,7 +13648,7 @@ function Ig(e) {
13652
13648
  }
13653
13649
  );
13654
13650
  }
13655
- function Ty() {
13651
+ function Iy() {
13656
13652
  const e = ne(
13657
13653
  bt
13658
13654
  ), { activeKey: t, tabs: n, onRemoveTab: r, onChangeTab: o } = e || {};
@@ -13677,13 +13673,13 @@ function Tg(e) {
13677
13673
  return /* @__PURE__ */ i("div", { style: t.key !== r ? o : void 0, children: t.content });
13678
13674
  }
13679
13675
  const Og = mt.memo(Tg, () => !0);
13680
- function Oy() {
13676
+ function Ty() {
13681
13677
  const e = ne(
13682
13678
  bt
13683
13679
  ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(Og, { tab: r }, r.key))) || null;
13684
13680
  return /* @__PURE__ */ i(ae, { children: n });
13685
13681
  }
13686
- const { useToken: Fg } = Ge, Fy = (e) => {
13682
+ const { useToken: Fg } = Ge, Oy = (e) => {
13687
13683
  const {
13688
13684
  onRetrieveShortcuts: t,
13689
13685
  onCheckIsFavourite: n,
@@ -13785,7 +13781,7 @@ const { useToken: Fg } = Ge, Fy = (e) => {
13785
13781
  y
13786
13782
  ]);
13787
13783
  return /* @__PURE__ */ i(
13788
- vl,
13784
+ wl,
13789
13785
  {
13790
13786
  ref: p,
13791
13787
  isFavourite: a,
@@ -13795,7 +13791,7 @@ const { useToken: Fg } = Ge, Fy = (e) => {
13795
13791
  header: /* @__PURE__ */ D("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
13796
13792
  /* @__PURE__ */ i("div", { style: { paddingLeft: 15, color: "#ccc" }, children: f == null ? void 0 : f("favorites").toUpperCase() }),
13797
13793
  /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ i(Ft, { title: f == null ? void 0 : f("edit_favorites"), children: /* @__PURE__ */ i(
13798
- Wi,
13794
+ Gi,
13799
13795
  {
13800
13796
  style: { color: d.colorPrimary, cursor: "pointer" },
13801
13797
  onClick: R
@@ -13811,37 +13807,37 @@ const { useToken: Fg } = Ge, Fy = (e) => {
13811
13807
  };
13812
13808
  export {
13813
13809
  Ch as ActionBar,
13814
- Sa as ActionView,
13810
+ Ca as ActionView,
13815
13811
  yg as Alert,
13816
13812
  sg as ArrowStepsField,
13817
13813
  yh as Binary,
13818
13814
  wc as Boolean,
13819
13815
  oo as Button,
13820
13816
  rc as ButtonGroup,
13821
- es as Char,
13817
+ ts as Char,
13822
13818
  ag as CodeEditor,
13823
13819
  hg as CommentsTimelineField,
13824
- ls as ConfigContext,
13820
+ cs as ConfigContext,
13825
13821
  Xc as ConfigContextProvider,
13826
13822
  $ as ConnectionProvider,
13827
13823
  Jd as ContentRootProvider,
13828
- Oy as CurrentTabContent,
13824
+ Ty as CurrentTabContent,
13829
13825
  Yh as Dashboard,
13830
13826
  Uh as DashboardGrid,
13831
13827
  dh as Date,
13832
13828
  uh as DateTime,
13833
13829
  Th as Email,
13834
- xy as ErpAllFeatureKeys,
13830
+ Cy as ErpAllFeatureKeys,
13835
13831
  fn as ErpFeatureKeys,
13836
13832
  ch as ExportModal,
13837
- Fy as FavouriteButton,
13838
- Rs as Float,
13833
+ Oy as FavouriteButton,
13834
+ _s as Float,
13839
13835
  qp as FloatTime,
13840
13836
  hn as Form,
13841
13837
  gn as FormModal,
13842
- ys as GraphCard,
13838
+ vs as GraphCard,
13843
13839
  nd as GraphIndicator,
13844
- pa as Group,
13840
+ ha as Group,
13845
13841
  gg as HTMLPreview,
13846
13842
  xc as Image,
13847
13843
  Kn as Integer,
@@ -13854,24 +13850,24 @@ export {
13854
13850
  nu as ProgressBar,
13855
13851
  Zh as Radio,
13856
13852
  ph as Reference,
13857
- Iy as RootView,
13858
- vo as SearchFilter,
13859
- wo as SearchModal,
13860
- aa as SearchTree,
13861
- ts as Selection,
13853
+ xy as RootView,
13854
+ wo as SearchFilter,
13855
+ bo as SearchModal,
13856
+ la as SearchTree,
13857
+ ns as Selection,
13862
13858
  eh as Separator,
13863
13859
  vg as Spinner,
13864
13860
  rg as Steps,
13865
13861
  tg as Switch,
13866
13862
  Ig as Tab,
13867
- Ty as TabSelector,
13863
+ Iy as TabSelector,
13868
13864
  Ed as Tag,
13869
13865
  Dd as Tags,
13870
13866
  Xp as Text,
13871
13867
  fh as Time,
13872
13868
  Dn as Tree,
13873
13869
  Ih as Url,
13874
- _y as dayjs,
13870
+ Ry as dayjs,
13875
13871
  dt as iconMapper,
13876
13872
  At as showConfirmDialog
13877
13873
  };