@gisce/react-ooui 2.41.0 → 2.43.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 We, Divider as Yn, 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 fr, App as La, Progress as ja, Avatar as Fi, DatePicker as Gr, TimePicker as Ba, InputNumber as Ai, Layout as Ri, Badge as zn, Pagination as Ha, Tabs as _i, Radio as To, Switch as Ua, Steps as Oo } from "antd";
7
- import { Label as ln, Field as Tr, 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 Or, 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 Jn, WarningOutlined as Li, CloseOutlined as cn, CheckOutlined as Qn, TranslationOutlined as ji, FolderOpenOutlined as Yr, DownloadOutlined as zr, ClearOutlined as Xn, ExportOutlined as Ja, StarFilled as Qa, StarOutlined as Xa, ThunderboltOutlined as Jr, PrinterOutlined as Qr, EnterOutlined as Xr, SearchOutlined as Zn, UpOutlined as Za, PlusSquareOutlined as el, MinusSquareOutlined as tl, FileAddOutlined as er, 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 tr, 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
- import Fr from "antd/lib/typography/Title";
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
22
  import { default as Ry } 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";
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,
@@ -98,7 +97,7 @@ const Be = mt.createContext(null), Jl = (e) => {
98
97
  left: "justify-start",
99
98
  center: "justify-center",
100
99
  right: "justify-end"
101
- }, nr = (e) => {
100
+ }, rr = (e) => {
102
101
  const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: c } = t, u = ne(Be);
103
102
  let d = a !== null && o.length > 1 ? o + " :" : o;
104
103
  !t.fieldForLabel && t._id && (d = u.getFieldValue(t._id));
@@ -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: {
@@ -154,7 +153,7 @@ function _e({
154
153
  if (!o)
155
154
  return m();
156
155
  const y = /* @__PURE__ */ i(
157
- nr,
156
+ rr,
158
157
  {
159
158
  ooui: new ln({
160
159
  name: u + "_label",
@@ -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
  });
@@ -400,12 +399,12 @@ const oo = (e) => {
400
399
  if (t.buttons.length === 0)
401
400
  return null;
402
401
  if (t.buttons.length > 1)
403
- return /* @__PURE__ */ i(_e, { ooui: new Tr({ defaultButton: n }), children: /* @__PURE__ */ D(
404
- Na.Button,
402
+ return /* @__PURE__ */ i(_e, { ooui: new Or({ defaultButton: n }), children: /* @__PURE__ */ D(
403
+ Ma.Button,
405
404
  {
406
405
  disabled: !a || p,
407
406
  onClick: C,
408
- icon: /* @__PURE__ */ i(Jn, {}),
407
+ icon: /* @__PURE__ */ i(Qn, {}),
409
408
  type: f ? "primary" : void 0,
410
409
  overlay: /* @__PURE__ */ i(
411
410
  oc,
@@ -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,22 +473,22 @@ 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,
483
482
  height: t
484
483
  };
485
484
  }
486
- function rr() {
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,15 +529,15 @@ 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) => {
541
- const { visible: t, onCloseModal: n, model: r, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = rr(), { t: c } = he(), [u, f] = x([]), [d, p] = x(!1), [h, m] = x(!1), [y, g] = x({}), v = Q();
539
+ }, es = (e) => {
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({});
544
543
  }, [t]);
@@ -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] || "",
@@ -614,9 +613,9 @@ const Xi = (e) => {
614
613
  m(!1), a();
615
614
  }
616
615
  function T() {
617
- return d ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ D(ae, { children: [
616
+ return d ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ D(ae, { children: [
618
617
  b(),
619
- /* @__PURE__ */ i(Yn, {}),
618
+ /* @__PURE__ */ i(zn, {}),
620
619
  /* @__PURE__ */ i(ke, { justify: "end", children: /* @__PURE__ */ D(Je, { children: [
621
620
  /* @__PURE__ */ i(
622
621
  je,
@@ -630,7 +629,7 @@ const Xi = (e) => {
630
629
  /* @__PURE__ */ i(
631
630
  je,
632
631
  {
633
- icon: h ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(Qn, {}),
632
+ icon: h ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(Xn, {}),
634
633
  disabled: h,
635
634
  onClick: O,
636
635
  style: { marginLeft: 15 },
@@ -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,28 +845,34 @@ 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
  });
853
- function or(e, t) {
852
+ function ir(e, t) {
854
853
  const n = atob(e), r = new Array(n.length);
855
854
  for (let l = 0; l < n.length; l++)
856
855
  r[l] = n.charCodeAt(l);
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",
@@ -930,7 +932,7 @@ const xc = (e) => {
930
932
  tooltip: a("clear"),
931
933
  disabled: o || !n,
932
934
  onClick: f,
933
- icon: /* @__PURE__ */ i(Xn, {})
935
+ icon: /* @__PURE__ */ i(Zn, {})
934
936
  }
935
937
  )
936
938
  ] }) })
@@ -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: [
@@ -986,28 +988,28 @@ const io = (e, t, n) => e.columns.map((o) => {
986
988
  },
987
989
  isSortable: s !== "one2many" && s !== "many2one" && !o.isFunction
988
990
  };
989
- }), ir = (e, t) => t.map((r) => {
991
+ }), sr = (e, t) => t.map((r) => {
990
992
  const o = {};
991
993
  return Object.keys(r).forEach((s) => {
992
994
  if (s === "id")
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
  }) {
@@ -1192,7 +1194,7 @@ const Ec = ({
1192
1194
  attrs: o
1193
1195
  });
1194
1196
  return {
1195
- items: ir(s, a[0]),
1197
+ items: sr(s, a[0]),
1196
1198
  colors: rn(a[1]),
1197
1199
  status: jn(a[1])
1198
1200
  };
@@ -1210,7 +1212,7 @@ const Ec = ({
1210
1212
  } else
1211
1213
  n[r] = e[r];
1212
1214
  }), n;
1213
- }, Jt = (e, t) => Nc(e, t), mr = ({
1215
+ }, Jt = (e, t) => Nc(e, t), pr = ({
1214
1216
  source: e,
1215
1217
  target: t,
1216
1218
  fields: n
@@ -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" },
@@ -1361,7 +1363,7 @@ const Wt = ({
1361
1363
  a(!1);
1362
1364
  }
1363
1365
  };
1364
- return s ? /* @__PURE__ */ i(We, {}) : l ? /* @__PURE__ */ i(rt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Kc, { ooui: t, views: u }) });
1366
+ return s ? /* @__PURE__ */ i(He, {}) : l ? /* @__PURE__ */ i(rt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Kc, { ooui: t, views: u }) });
1365
1367
  }, Kc = (e) => {
1366
1368
  const { value: t, views: n, ooui: r, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = x(!1), [c, u] = x(), [f, d] = x(!1), [p, h] = x(), {
1367
1369
  relation: m,
@@ -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
@@ -1406,7 +1408,7 @@ const Wt = ({
1406
1408
  if (c)
1407
1409
  return /* @__PURE__ */ i(rt, { className: "mt-10", message: c, type: "error", banner: !0 });
1408
1410
  if (a)
1409
- return /* @__PURE__ */ i(We, {});
1411
+ return /* @__PURE__ */ i(He, {});
1410
1412
  const V = (F) => {
1411
1413
  const P = dt(F);
1412
1414
  return P && /* @__PURE__ */ i(P, {});
@@ -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
- }, sr = (e) => {
1771
- const { erpFeatures: t } = ao();
1772
+ }, ar = (e) => {
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: {
@@ -1907,9 +1909,9 @@ const Zc = (e) => {
1907
1909
  justifyContent: "center",
1908
1910
  alignItems: "center"
1909
1911
  },
1910
- children: /* @__PURE__ */ i(We, {})
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
  );
@@ -2046,7 +2048,7 @@ function ed({
2046
2048
  justifyContent: "center",
2047
2049
  overflow: "hidden"
2048
2050
  },
2049
- children: /* @__PURE__ */ D(Fr, { style: { fontSize: c, margin: 0, color: s }, children: [
2051
+ children: /* @__PURE__ */ D(Ar, { style: { fontSize: c, margin: 0, color: s }, children: [
2050
2052
  h && /* @__PURE__ */ i(h, { style: { fontSize: c * 0.7 } }),
2051
2053
  h ? ` ${d}` : d
2052
2054
  ] })
@@ -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
  );
@@ -2099,9 +2101,9 @@ function td({
2099
2101
  children: /* @__PURE__ */ D(ke, { align: "middle", children: [
2100
2102
  y && /* @__PURE__ */ i(we, { style: { fontSize: f * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ i(y, {}) }),
2101
2103
  /* @__PURE__ */ D(we, { children: [
2102
- /* @__PURE__ */ i(Fr, { style: { fontSize: f * 0.8, margin: 0, color: a }, children: y ? ` ${r}%` : `${r}%` }),
2104
+ /* @__PURE__ */ i(Ar, { style: { fontSize: f * 0.8, margin: 0, color: a }, children: y ? ` ${r}%` : `${r}%` }),
2103
2105
  /* @__PURE__ */ i(
2104
- Fr,
2106
+ Ar,
2105
2107
  {
2106
2108
  style: {
2107
2109
  fontSize: f * 0.4,
@@ -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,7 +2397,8 @@ st.extend(Al);
2396
2397
  st.extend(Rl);
2397
2398
  st.extend(_l);
2398
2399
  st.extend(Vl);
2399
- const pr = (e) => (t) => {
2400
+ st.extend(El);
2401
+ const hr = (e) => (t) => {
2400
2402
  const n = t.value.toLocaleString("es-ES", {
2401
2403
  useGrouping: !0
2402
2404
  });
@@ -2406,7 +2408,7 @@ const pr = (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 pr = (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: {
@@ -2436,7 +2438,7 @@ const pr = (e) => (t) => {
2436
2438
  maxItemWidth: 1e3
2437
2439
  },
2438
2440
  tooltip: {
2439
- formatter: pr("default")
2441
+ formatter: hr("default")
2440
2442
  }
2441
2443
  },
2442
2444
  pie: {
@@ -2449,7 +2451,7 @@ const pr = (e) => (t) => {
2449
2451
  maxItemWidth: 1e3
2450
2452
  },
2451
2453
  tooltip: {
2452
- formatter: pr("pie")
2454
+ formatter: hr("pie")
2453
2455
  },
2454
2456
  interactions: [
2455
2457
  {
@@ -2464,7 +2466,7 @@ const pr = (e) => (t) => {
2464
2466
  maxItemWidth: 1e3
2465
2467
  },
2466
2468
  tooltip: {
2467
- formatter: pr("barGrouped")
2469
+ formatter: hr("barGrouped")
2468
2470
  },
2469
2471
  xAxis: {
2470
2472
  label: {
@@ -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:
@@ -3015,7 +3017,7 @@ const Cy = 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 Cy = 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 Cy = 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 Cy = 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 Cy = 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 Cy = 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 Cy = 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 Cy = 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, {}),
@@ -3167,7 +3169,7 @@ const Cy = Object.values(fn), Cd = (e) => {
3167
3169
  );
3168
3170
  return n.card ? /* @__PURE__ */ i(Ur, { children: l }) : l;
3169
3171
  }, _d = (e) => {
3170
- const { ooui: t } = e, { actionId: n, height: r } = t, { actionData: o, treeShortcut: s, loading: a, error: l, fetchData: c } = Zc(n), u = sr(
3172
+ const { ooui: t } = e, { actionId: n, height: r } = t, { actionData: o, treeShortcut: s, loading: a, error: l, fetchData: c } = Zc(n), u = ar(
3171
3173
  fn.FEATURE_READFORVIEW
3172
3174
  ), f = ne(
3173
3175
  bt
@@ -3175,10 +3177,10 @@ const Cy = 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 Cy = 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
- return nr;
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,15 +3327,15 @@ 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":
3332
3334
  return wc;
3333
3335
  case "integer":
3334
- return Gn;
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":
@@ -3391,12 +3393,14 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3391
3393
  return gg;
3392
3394
  case "alert":
3393
3395
  return yg;
3396
+ case "spinner":
3397
+ return vg;
3394
3398
  default:
3395
3399
  return;
3396
3400
  }
3397
3401
  }, $d = (e) => {
3398
3402
  const { ooui: t } = e, { type: n } = t, r = kd(n);
3399
- return r ? $a(r, e) : null;
3403
+ return r ? Na(r, e) : null;
3400
3404
  }, Nd = ({
3401
3405
  item: e,
3402
3406
  responsiveBehaviour: t
@@ -3425,7 +3429,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3425
3429
  row: e,
3426
3430
  numberOfColumns: t
3427
3431
  }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), jd = (e, t) => {
3428
- 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");
3429
3433
  if (n.length < t) {
3430
3434
  const r = t - n.length;
3431
3435
  for (let o = 0; o < r; o++)
@@ -3438,7 +3442,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3438
3442
  for (let s = 0; s < e; s++)
3439
3443
  o += s % 2 ? n : r, s + 1 < e && (o += " ");
3440
3444
  return o;
3441
- }, Hd = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), Ar = (e) => {
3445
+ }, Hd = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), Gn = (e) => {
3442
3446
  const { container: t, responsiveBehaviour: n } = e, { rows: r } = t;
3443
3447
  let { columns: o } = t;
3444
3448
  const s = Hd(r);
@@ -3491,7 +3495,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3491
3495
  onCancel: t,
3492
3496
  cancelText: n("cancel")
3493
3497
  });
3494
- }, { error: Wd } = ct, Ho = (e) => {
3498
+ }, { error: Wd } = ct, Uo = (e) => {
3495
3499
  Wd({
3496
3500
  title: e("formHasErrors"),
3497
3501
  icon: /* @__PURE__ */ i(Vt, {}),
@@ -3501,15 +3505,15 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3501
3505
  }, { warning: Gd } = ct, Kd = (e, t, n) => {
3502
3506
  Gd({
3503
3507
  title: e,
3504
- icon: /* @__PURE__ */ i(Li, {}),
3508
+ icon: /* @__PURE__ */ i(ji, {}),
3505
3509
  centered: !0,
3506
3510
  content: t,
3507
3511
  onOk: n
3508
3512
  });
3509
- }, ws = mt.createContext(null), qd = (e) => {
3513
+ }, bs = mt.createContext(null), qd = (e) => {
3510
3514
  const { children: t, setTitle: n } = e;
3511
3515
  return /* @__PURE__ */ i(
3512
- ws.Provider,
3516
+ bs.Provider,
3513
3517
  {
3514
3518
  value: {
3515
3519
  setTitle: n
@@ -3517,7 +3521,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3517
3521
  children: t
3518
3522
  }
3519
3523
  );
3520
- }, pn = mt.createContext(null), Uo = async (e) => {
3524
+ }, pn = mt.createContext(null), Wo = async (e) => {
3521
3525
  var t;
3522
3526
  for (let n = 0; n < e.length; n++)
3523
3527
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
@@ -3573,7 +3577,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3573
3577
  }), R.state && s.current === !0) {
3574
3578
  s.current = !1, clearInterval(o.current), l(!1);
3575
3579
  const S = await nn(R.result);
3576
- or(R.result, S.mime);
3580
+ ir(R.result, S.mime);
3577
3581
  }
3578
3582
  } catch (S) {
3579
3583
  s.current = !1, clearInterval(o.current), l(!1), it(S.exception || S);
@@ -3692,7 +3696,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3692
3696
  }), h(!1), await new Promise((F) => setTimeout(F, 300)), y({ domain: T, model: R, context: V, formView: S, actionData: A }), h(!0);
3693
3697
  }
3694
3698
  async function O() {
3695
- Uo(f.current), f.current = [], h(!1), y({
3699
+ Wo(f.current), f.current = [], h(!1), y({
3696
3700
  domain: void 0,
3697
3701
  model: void 0,
3698
3702
  context: {},
@@ -3719,7 +3723,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3719
3723
  closable: !1,
3720
3724
  centered: !0,
3721
3725
  maskClosable: !1,
3722
- children: /* @__PURE__ */ i(We, {})
3726
+ children: /* @__PURE__ */ i(He, {})
3723
3727
  }
3724
3728
  ),
3725
3729
  /* @__PURE__ */ i(
@@ -3732,7 +3736,7 @@ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3732
3736
  visible: p,
3733
3737
  onSubmitSucceed: O,
3734
3738
  onCancel: () => {
3735
- Uo(f.current), f.current = [], h(!1), y({
3739
+ Wo(f.current), f.current = [], h(!1), y({
3736
3740
  domain: void 0,
3737
3741
  model: void 0,
3738
3742
  context: {},
@@ -3830,7 +3834,7 @@ function Zd(e, t) {
3830
3834
  forcedValues: O = {},
3831
3835
  parentWidth: T,
3832
3836
  onMustRefreshParent: R
3833
- } = 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(
3834
3838
  at
3835
3839
  ), {
3836
3840
  setFormIsSaving: Ie = void 0,
@@ -3842,7 +3846,7 @@ function Zd(e, t) {
3842
3846
  setTitle: Ce = void 0
3843
3847
  } = (C ? qe : {}) || {}, Se = ne(
3844
3848
  pn
3845
- ), { processAction: He, globalValues: Ne } = Se || {};
3849
+ ), { processAction: Ue, globalValues: Ne } = Se || {};
3846
3850
  vt(t, () => ({
3847
3851
  submitForm: kt,
3848
3852
  getFields: et,
@@ -3852,7 +3856,7 @@ function Zd(e, t) {
3852
3856
  fetchValues: ie,
3853
3857
  cancelUnsavedChanges: Me,
3854
3858
  clearAndReload: () => {
3855
- B.current = void 0, k(void 0), Ue();
3859
+ B.current = void 0, k(void 0), We();
3856
3860
  }
3857
3861
  })), ue(() => {
3858
3862
  if (P(void 0), !(!n && !m)) {
@@ -3860,7 +3864,7 @@ function Zd(e, t) {
3860
3864
  B.current = void 0, k(void 0);
3861
3865
  return;
3862
3866
  }
3863
- (r === void 0 && E || r !== void 0 && E && r < 0) && (B.current = void 0, k(void 0)), Ue();
3867
+ (r === void 0 && E || r !== void 0 && E && r < 0) && (B.current = void 0, k(void 0)), We();
3864
3868
  }
3865
3869
  }, [r, n, h, m, I]), ue(() => {
3866
3870
  oe && (bn({
@@ -3928,7 +3932,7 @@ function Zd(e, t) {
3928
3932
  extraValues: b
3929
3933
  });
3930
3934
  }, ft = () => Object.keys(
3931
- mr({
3935
+ pr({
3932
3936
  source: G.current,
3933
3937
  target: Ye(E),
3934
3938
  fields: E
@@ -3950,10 +3954,10 @@ function Zd(e, t) {
3950
3954
  try {
3951
3955
  return await M.validateFields(), !1;
3952
3956
  } catch {
3953
- return fr.error(S("fillRequiredFields")), !0;
3957
+ return mr.error(S("fillRequiredFields")), !0;
3954
3958
  }
3955
3959
  }
3956
- const Ue = async () => {
3960
+ const We = async () => {
3957
3961
  P(void 0), fe == null || fe(!0);
3958
3962
  let U;
3959
3963
  try {
@@ -4006,15 +4010,15 @@ function Zd(e, t) {
4006
4010
  reset: se,
4007
4011
  isDefaultGet: ce = !1
4008
4012
  }) => {
4009
- const Xe = { ...se ? {} : M.getFieldsValue(!0), ...U }, dr = Jt(Xe, q), Va = Object.keys(q).map((ur) => {
4010
- const Ea = dr[ur] !== void 0 ? dr[ur] : 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;
4011
4015
  return {
4012
- name: ur,
4016
+ name: fr,
4013
4017
  touched: !1,
4014
- value: Ea
4018
+ value: Da
4015
4019
  };
4016
4020
  });
4017
- ce || (L.current = dr), M.setFields(Va);
4021
+ ce || (L.current = ur), M.setFields(Ea);
4018
4022
  }, Dt = async ({
4019
4023
  fields: U,
4020
4024
  arch: q
@@ -4049,7 +4053,7 @@ function Zd(e, t) {
4049
4053
  }, Pt = async (U) => {
4050
4054
  const { callOnSubmitSucceed: q = !0 } = U || {};
4051
4055
  if (ge()) {
4052
- const se = mr({
4056
+ const se = pr({
4053
4057
  source: G.current,
4054
4058
  target: Ye(E),
4055
4059
  fields: E
@@ -4096,12 +4100,12 @@ function Zd(e, t) {
4096
4100
  if (!ft() && ge() && se)
4097
4101
  return le.current = !1, de == null || de(!1), Oe == null || Oe(), { succeed: !0, id: ge() };
4098
4102
  if (await Et())
4099
- return le.current = !1, Ho(S), { succeed: !1, id: ge() };
4103
+ return le.current = !1, Uo(S), { succeed: !1, id: ge() };
4100
4104
  A(!0), Ie == null || Ie(!0);
4101
4105
  try {
4102
- 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, fr.success(S("savedRegisters"));
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"));
4103
4107
  } catch (ce) {
4104
- le.current = !1, A(!1), Ie == null || Ie(!1), Ke == null || Ke(ce), fr.error(S("errorWhileSavingForm")), P(ce != null && ce.message ? ce.message : ce);
4108
+ le.current = !1, A(!1), Ie == null || Ie(!1), Ke == null || Ke(ce), mr.error(S("errorWhileSavingForm")), P(ce != null && ce.message ? ce.message : ce);
4105
4109
  } finally {
4106
4110
  le.current = !1, Ie == null || Ie(!1), A(!1);
4107
4111
  }
@@ -4112,7 +4116,7 @@ function Zd(e, t) {
4112
4116
  values: se,
4113
4117
  operationInProgress: ce = !1
4114
4118
  }) => {
4115
- const xe = new ki(U);
4119
+ const xe = new $i(U);
4116
4120
  return xe.parse(q, {
4117
4121
  readOnly: f || ce,
4118
4122
  values: Rc(
@@ -4142,7 +4146,7 @@ function Zd(e, t) {
4142
4146
  }) => {
4143
4147
  if (le.current)
4144
4148
  return;
4145
- const q = mr({
4149
+ const q = pr({
4146
4150
  source: L.current,
4147
4151
  target: Ye(E),
4148
4152
  fields: E
@@ -4163,18 +4167,18 @@ function Zd(e, t) {
4163
4167
  ]
4164
4168
  }) && U !== !0)) {
4165
4169
  const ce = Jt(M.getFieldsValue(!0), E);
4166
- 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);
4167
4171
  }
4168
- }, $t = bl(bn, 100), Ca = async (U) => {
4172
+ }, $t = Sl(bn, 100), xa = async (U) => {
4169
4173
  try {
4170
4174
  for (let q = 0; q < U.length; q += 1) {
4171
4175
  const se = U[q];
4172
- await xa(se);
4176
+ await Ia(se);
4173
4177
  }
4174
4178
  } catch (q) {
4175
4179
  it(q);
4176
4180
  }
4177
- }, xa = async (U) => {
4181
+ }, Ia = async (U) => {
4178
4182
  const q = _ == null ? void 0 : _.onChangeFields[U];
4179
4183
  if (!q) {
4180
4184
  It({
@@ -4237,7 +4241,7 @@ function Zd(e, t) {
4237
4241
  }), X(xe);
4238
4242
  }
4239
4243
  };
4240
- async function Ia({
4244
+ async function Ta({
4241
4245
  action: U,
4242
4246
  context: q
4243
4247
  }) {
@@ -4261,14 +4265,14 @@ function Zd(e, t) {
4261
4265
  context: se.context,
4262
4266
  fields: E,
4263
4267
  values: z()
4264
- })), await Co({
4268
+ })), await xo({
4265
4269
  actionData: se,
4266
4270
  context: { ...q, ...ce }
4267
4271
  });
4268
4272
  } else
4269
4273
  await ie({ forceRefresh: !0 });
4270
4274
  }
4271
- async function Ta({ action: U }) {
4275
+ async function Oa({ action: U }) {
4272
4276
  const q = await $.getHandler().executeWorkflow({
4273
4277
  model: n,
4274
4278
  action: U,
@@ -4276,7 +4280,7 @@ function Zd(e, t) {
4276
4280
  });
4277
4281
  q.type && q.type === "ir.actions.act_window_close" ? re == null || re(ge(), z(), Re()) : await ie({ forceRefresh: !0 });
4278
4282
  }
4279
- async function Oa({
4283
+ async function Fa({
4280
4284
  action: U,
4281
4285
  context: q
4282
4286
  }) {
@@ -4285,13 +4289,13 @@ function Zd(e, t) {
4285
4289
  ids: [parseInt(U)],
4286
4290
  context: v
4287
4291
  }))[0];
4288
- await Co({ actionData: se, context: q });
4292
+ await xo({ actionData: se, context: q });
4289
4293
  }
4290
- async function Co({
4294
+ async function xo({
4291
4295
  actionData: U,
4292
4296
  context: q
4293
4297
  }) {
4294
- const { closeParent: se } = await (He == null ? void 0 : He({
4298
+ const { closeParent: se } = await (Ue == null ? void 0 : Ue({
4295
4299
  actionData: U,
4296
4300
  fields: E,
4297
4301
  values: z(),
@@ -4306,10 +4310,10 @@ function Zd(e, t) {
4306
4310
  })) || {};
4307
4311
  !C && se && (re == null || re(ge(), z(), Re()));
4308
4312
  }
4309
- function Fa() {
4313
+ function Aa() {
4310
4314
  bn({ elementHasLostFocus: !0 });
4311
4315
  }
4312
- function cr(U) {
4316
+ function dr(U) {
4313
4317
  It({
4314
4318
  fields: E,
4315
4319
  arch: W,
@@ -4317,7 +4321,7 @@ function Zd(e, t) {
4317
4321
  operationInProgress: U
4318
4322
  });
4319
4323
  }
4320
- async function Aa({
4324
+ async function Ra({
4321
4325
  type: U,
4322
4326
  action: q,
4323
4327
  context: se
@@ -4327,19 +4331,19 @@ function Zd(e, t) {
4327
4331
  return;
4328
4332
  }
4329
4333
  if (await Et()) {
4330
- Ho(S);
4334
+ Uo(S);
4331
4335
  return;
4332
4336
  }
4333
4337
  let ce = !1;
4334
4338
  try {
4335
- !f && (ft() || ge() === void 0) && (ce = !0, cr(!0), p === "2many" ? (await Pt({ callOnSubmitSucceed: !1 }), K.current = !0) : await kt({ callOnSubmitSucceed: !1 }));
4339
+ !f && (ft() || ge() === void 0) && (ce = !0, dr(!0), p === "2many" ? (await Pt({ callOnSubmitSucceed: !1 }), K.current = !0) : await kt({ callOnSubmitSucceed: !1 }));
4336
4340
  const xe = K.current ? De() : {}, Xe = { ...se, ...xe };
4337
- U === "object" ? await Ia({ action: q, context: Xe }) : U === "workflow" ? await Ta({ action: q }) : U === "action" && await Oa({ action: q, context: Xe }), ce && cr(!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);
4338
4342
  } catch (xe) {
4339
- ce && cr(!1), it(xe);
4343
+ ce && dr(!1), it(xe);
4340
4344
  }
4341
4345
  }
4342
- const Ra = () => !_ && !F ? /* @__PURE__ */ i(We, {}) : !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(
4343
4347
  Jl,
4344
4348
  {
4345
4349
  getValues: z,
@@ -4350,12 +4354,12 @@ function Zd(e, t) {
4350
4354
  activeModel: n,
4351
4355
  setFieldValue: gt,
4352
4356
  getFieldValue: Gt,
4353
- executeButtonAction: Aa,
4357
+ executeButtonAction: Ra,
4354
4358
  getContext: be,
4355
4359
  submitForm: kt,
4356
4360
  fetchValues: ie,
4357
4361
  formHasChanges: ft,
4358
- elementHasLostFocus: Fa,
4362
+ elementHasLostFocus: Aa,
4359
4363
  formView: m,
4360
4364
  children: /* @__PURE__ */ i(
4361
4365
  pt,
@@ -4366,7 +4370,7 @@ function Zd(e, t) {
4366
4370
  },
4367
4371
  component: !1,
4368
4372
  children: _ && /* @__PURE__ */ i(
4369
- Ar,
4373
+ Gn,
4370
4374
  {
4371
4375
  container: _.container,
4372
4376
  responsiveBehaviour: ve
@@ -4375,8 +4379,8 @@ function Zd(e, t) {
4375
4379
  }
4376
4380
  )
4377
4381
  }
4378
- ) }), _a = () => /* @__PURE__ */ D(ae, { children: [
4379
- /* @__PURE__ */ i(Yn, {}),
4382
+ ) }), Va = () => /* @__PURE__ */ D(ae, { children: [
4383
+ /* @__PURE__ */ i(zn, {}),
4380
4384
  /* @__PURE__ */ i(ke, { justify: "end", children: /* @__PURE__ */ D(Je, { children: [
4381
4385
  /* @__PURE__ */ i(
4382
4386
  je,
@@ -4394,7 +4398,7 @@ function Zd(e, t) {
4394
4398
  {
4395
4399
  disabled: V || f,
4396
4400
  loading: V,
4397
- icon: /* @__PURE__ */ i(Qn, {}),
4401
+ icon: /* @__PURE__ */ i(Xn, {}),
4398
4402
  onClick: async () => {
4399
4403
  await kt();
4400
4404
  },
@@ -4413,9 +4417,9 @@ function Zd(e, t) {
4413
4417
  H((q = U.bounds) == null ? void 0 : q.width);
4414
4418
  },
4415
4419
  children: ({ measureRef: U }) => /* @__PURE__ */ D("div", { className: "pb-2", ref: U, children: [
4416
- F && /* @__PURE__ */ i(ds, { className: "mt-5 mb-10", error: F }),
4417
- Ra(),
4418
- a && _a()
4420
+ F && /* @__PURE__ */ i(us, { className: "mt-5 mb-10", error: F }),
4421
+ _a(),
4422
+ a && Va()
4419
4423
  ] })
4420
4424
  }
4421
4425
  ) : null;
@@ -4430,7 +4434,7 @@ const hn = yt(Zd), gn = (e) => {
4430
4434
  isMenuAction: a = !1,
4431
4435
  actionData: l,
4432
4436
  ...c
4433
- } = e, { model: u } = c, { modalWidth: f } = rr(), [d, p] = x(r), [h, m] = x(!1), [y, g] = x(), { action_id: v, res_id: w, action_type: I, view_id: C } = l || {};
4437
+ } = e, { model: u } = c, { modalWidth: f } = or(), [d, p] = x(r), [h, m] = x(!1), [y, g] = x(), { action_id: v, res_id: w, action_type: I, view_id: C } = l || {};
4434
4438
  ue(() => {
4435
4439
  a && b();
4436
4440
  }, [l, a]);
@@ -4465,7 +4469,7 @@ const hn = yt(Zd), gn = (e) => {
4465
4469
  je,
4466
4470
  {
4467
4471
  type: h ? "primary" : "default",
4468
- icon: h ? /* @__PURE__ */ i(Qa, { style: { color: "white" } }) : /* @__PURE__ */ i(Xa, {}),
4472
+ icon: h ? /* @__PURE__ */ i(Xa, { style: { color: "white" } }) : /* @__PURE__ */ i(Za, {}),
4469
4473
  style: { width: 30 },
4470
4474
  onClick: O
4471
4475
  }
@@ -4509,8 +4513,8 @@ const hn = yt(Zd), gn = (e) => {
4509
4513
  }, Rr = (e) => {
4510
4514
  const t = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
4511
4515
  Ht(t);
4512
- }, bs = () => {
4513
- const { modal: e } = La.useApp();
4516
+ }, Ss = () => {
4517
+ const { modal: e } = ja.useApp();
4514
4518
  return N(
4515
4519
  (t) => {
4516
4520
  const n = t.message ? JSON.stringify(t.message) : JSON.stringify(t);
@@ -4523,7 +4527,7 @@ const hn = yt(Zd), gn = (e) => {
4523
4527
  },
4524
4528
  [e]
4525
4529
  );
4526
- }, Ss = ({
4530
+ }, Cs = ({
4527
4531
  model: e,
4528
4532
  formViewProps: t,
4529
4533
  treeViewProps: n,
@@ -4571,7 +4575,7 @@ function tu(e) {
4571
4575
  return 0;
4572
4576
  }
4573
4577
  }
4574
- function Cs(e) {
4578
+ function xs(e) {
4575
4579
  if (e === void 0)
4576
4580
  return;
4577
4581
  let t, n = Math.floor(Math.abs(e)), r = Math.round(Math.abs(e) % 1 * 100) / 100;
@@ -4587,7 +4591,7 @@ function Cs(e) {
4587
4591
  });
4588
4592
  return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
4589
4593
  }
4590
- 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 }) => {
4591
4595
  const t = `${(e || 0).toLocaleString("en-US", {
4592
4596
  minimumIntegerDigits: 1,
4593
4597
  maximumFractionDigits: 4,
@@ -4597,7 +4601,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4597
4601
  /* @__PURE__ */ i(ru, { percent: e }),
4598
4602
  /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
4599
4603
  ] });
4600
- }, ru = dn(ja)`
4604
+ }, ru = dn(Ba)`
4601
4605
  .ant-progress-outer {
4602
4606
  margin-right: 0px;
4603
4607
  padding-right: 0px;
@@ -4647,7 +4651,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4647
4651
  }, [l, e]);
4648
4652
  return /* @__PURE__ */ D(Fn, { children: [
4649
4653
  /* @__PURE__ */ i(
4650
- pl,
4654
+ hl,
4651
4655
  {
4652
4656
  onRetrieveData: f,
4653
4657
  onItemClick: (d) => {
@@ -4659,7 +4663,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4659
4663
  }
4660
4664
  ),
4661
4665
  /* @__PURE__ */ i(
4662
- Ro,
4666
+ _o,
4663
4667
  {
4664
4668
  visible: r,
4665
4669
  items: c == null ? void 0 : c.actionItems,
@@ -4670,7 +4674,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4670
4674
  }
4671
4675
  ),
4672
4676
  /* @__PURE__ */ i(
4673
- Ro,
4677
+ _o,
4674
4678
  {
4675
4679
  visible: s,
4676
4680
  items: c == null ? void 0 : c.printItems,
@@ -4681,7 +4685,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4681
4685
  }
4682
4686
  )
4683
4687
  ] });
4684
- }, uo = (e) => {
4688
+ }, fo = (e) => {
4685
4689
  const { id: t, model: n, context: r = {} } = e, [o, s] = x(), [a, l] = x(), c = ne(
4686
4690
  bt
4687
4691
  ), { openRelate: u } = c || {}, f = ne(
@@ -4763,7 +4767,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4763
4767
  const s = t[o];
4764
4768
  return (s == null ? void 0 : s.flatMap((a) => {
4765
4769
  const l = [];
4766
- 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;
4767
4771
  })) || [];
4768
4772
  });
4769
4773
  return [
@@ -4773,7 +4777,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4773
4777
  const { m2oField: t } = e;
4774
4778
  return t ? /* @__PURE__ */ D(Je, { children: [
4775
4779
  /* @__PURE__ */ i(ae, { children: t.value }),
4776
- /* @__PURE__ */ i(uo, { id: t.id, model: t.model })
4780
+ /* @__PURE__ */ i(fo, { id: t.id, model: t.model })
4777
4781
  ] }) : /* @__PURE__ */ i(ae, {});
4778
4782
  }, au = (e) => {
4779
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 () => {
@@ -4798,7 +4802,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4798
4802
  return /* @__PURE__ */ D(Je, { children: [
4799
4803
  /* @__PURE__ */ i(ae, { children: `${p}:` }),
4800
4804
  /* @__PURE__ */ i(ae, { children: o }),
4801
- /* @__PURE__ */ i(uo, { id: f, model: c })
4805
+ /* @__PURE__ */ i(fo, { id: f, model: c })
4802
4806
  ] });
4803
4807
  }, lu = (e) => {
4804
4808
  const { ooui: t, value: n } = e;
@@ -4807,12 +4811,12 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4807
4811
  let r = n;
4808
4812
  t.selectionValues.size ? r = t.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
4809
4813
  const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = An(r);
4810
- 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 }) });
4811
4815
  }, cu = {
4812
- en_US: Pl,
4813
- es_ES: kl,
4814
- ca_ES: $l
4815
- }, fo = () => {
4816
+ en_US: kl,
4817
+ es_ES: $l,
4818
+ ca_ES: Nl
4819
+ }, mo = () => {
4816
4820
  const { locale: e } = he();
4817
4821
  return cu[e];
4818
4822
  }, { useToken: du } = Ge, Ct = {
@@ -4826,11 +4830,11 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4826
4830
  dateDisplayFormat: "DD/MM/YYYY HH:mm:ss",
4827
4831
  dateInternalFormat: "YYYY-MM-DD HH:mm:ss"
4828
4832
  }
4829
- }, Is = (e) => {
4833
+ }, Ts = (e) => {
4830
4834
  const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
4831
4835
  return /* @__PURE__ */ i(_e, { required: r, ...e, children: /* @__PURE__ */ i(uu, { ooui: t, showTime: n }) });
4832
4836
  }, uu = (e) => {
4833
- 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) => {
4834
4838
  n == null || n(y);
4835
4839
  }, h = (y) => {
4836
4840
  if (y == null) {
@@ -4857,7 +4861,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4857
4861
  locale: u
4858
4862
  }
4859
4863
  );
4860
- }, Ts = ({
4864
+ }, Os = ({
4861
4865
  emails: e,
4862
4866
  handleClose: t
4863
4867
  }) => {
@@ -4868,7 +4872,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4868
4872
  Wr,
4869
4873
  {
4870
4874
  closable: !!t,
4871
- color: Nl.isEmail(r) ? void 0 : "error",
4875
+ color: Ml.isEmail(r) ? void 0 : "error",
4872
4876
  onClose: () => t && t(r),
4873
4877
  children: r
4874
4878
  },
@@ -4922,7 +4926,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4922
4926
  },
4923
4927
  children: [
4924
4928
  /* @__PURE__ */ i(
4925
- Ts,
4929
+ Os,
4926
4930
  {
4927
4931
  emails: s,
4928
4932
  handleClose: r ? void 0 : y
@@ -4971,7 +4975,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4971
4975
  [e]
4972
4976
  ), pu = ({
4973
4977
  value: e
4974
- }) => 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(
4975
4979
  () => /* @__PURE__ */ i(
4976
4980
  In,
4977
4981
  {
@@ -4995,31 +4999,25 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4995
4999
  Ct.time.dateInternalFormat
4996
5000
  ).format(Ct.time.dateDisplayFormat);
4997
5001
  return /* @__PURE__ */ i(ae, { children: t });
4998
- }, [e]), Wo = ({
5002
+ }, [e]), Go = ({
4999
5003
  value: e
5000
5004
  }) => me(() => {
5001
5005
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
5002
5006
  return /* @__PURE__ */ i(ae, { children: `( ${t} )` });
5003
5007
  }, [e]), wu = ({
5004
5008
  value: e
5005
- }) => 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(
5006
5010
  () => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: e }),
5007
5011
  [e]
5008
5012
  ), Su = ({ value: e }) => me(
5009
- () => /* @__PURE__ */ i(
5010
- "img",
5011
- {
5012
- src: `data:image/*;base64,${e}`,
5013
- style: { maxWidth: "50px", padding: "5px" }
5014
- }
5015
- ),
5013
+ () => /* @__PURE__ */ i(io, { value: e, style: { maxHeight: "30px" } }),
5016
5014
  [e]
5017
5015
  ), Cu = ({
5018
5016
  value: e,
5019
5017
  key: t,
5020
5018
  ooui: n,
5021
5019
  context: r
5022
- }) => me(() => /* @__PURE__ */ i(vs, { ooui: n, value: e }), [n, e]), xu = ({
5020
+ }) => me(() => /* @__PURE__ */ i(ws, { ooui: n, value: e }), [n, e]), xu = ({
5023
5021
  value: e,
5024
5022
  key: t,
5025
5023
  ooui: n,
@@ -5077,11 +5075,11 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5077
5075
  const d = me(
5078
5076
  () => o.map((p) => {
5079
5077
  const { id: h, name: m } = p, y = An(m);
5080
- return /* @__PURE__ */ i(co, { color: y, children: m }, `${h}`);
5078
+ return /* @__PURE__ */ i(uo, { color: y, children: m }, `${h}`);
5081
5079
  }),
5082
5080
  [o]
5083
5081
  );
5084
- return me(() => a ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ i(
5082
+ return me(() => a ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(
5085
5083
  "div",
5086
5084
  {
5087
5085
  style: {
@@ -5092,17 +5090,17 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5092
5090
  children: d
5093
5091
  }
5094
5092
  ), [d, a]);
5095
- }, mo = {
5093
+ }, po = {
5096
5094
  boolean: mu,
5097
5095
  many2one: hu,
5098
5096
  text: gu,
5099
- one2many: Wo,
5100
- many2many: Wo,
5097
+ one2many: Go,
5098
+ many2many: Go,
5101
5099
  progressbar: wu,
5102
5100
  float_time: bu,
5103
5101
  image: Su,
5104
- integer: Go,
5105
- float: Go,
5102
+ integer: Ko,
5103
+ float: Ko,
5106
5104
  reference: Iu,
5107
5105
  tag: Cu,
5108
5106
  selection: xu,
@@ -5174,7 +5172,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5174
5172
  );
5175
5173
  return { getColumnState: s, updateColumnState: a };
5176
5174
  }, _u = (e) => {
5177
- const t = sr(
5175
+ const t = ar(
5178
5176
  fn.FEATURE_USERVIEWPREFS
5179
5177
  ), {
5180
5178
  getColumnState: n,
@@ -5207,7 +5205,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5207
5205
  [e]
5208
5206
  );
5209
5207
  return { getColumnState: a, updateColumnState: l };
5210
- }, Os = (e) => {
5208
+ }, Fs = (e) => {
5211
5209
  const [t, n] = x(!0), r = Q(void 0), o = Q(!1), { getColumnState: s, updateColumnState: a } = _u(e);
5212
5210
  return ue(() => {
5213
5211
  if (!e) {
@@ -5227,7 +5225,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5227
5225
  }
5228
5226
  })();
5229
5227
  }, [s, e]), { getColumnState: N(() => r.current, []), loading: t, updateColumnState: a };
5230
- }, 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 = ({
5231
5229
  ooui: e,
5232
5230
  model: t,
5233
5231
  domain: n,
@@ -5239,9 +5237,9 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5239
5237
  if (e)
5240
5238
  return e.columns.filter((h) => Object.keys(h).some((m) => {
5241
5239
  var y;
5242
- 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));
5243
5241
  })).map((h) => {
5244
- 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));
5245
5243
  return {
5246
5244
  [h.id]: m
5247
5245
  };
@@ -5296,7 +5294,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5296
5294
  l(!1);
5297
5295
  }
5298
5296
  }, [n, f, t, e == null ? void 0 : e.columns, c]);
5299
- Yi(() => {
5297
+ zi(() => {
5300
5298
  if (!(!f || Object.keys(f).length === 0))
5301
5299
  return d(), () => {
5302
5300
  u();
@@ -5304,7 +5302,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5304
5302
  }, [f, n]);
5305
5303
  const p = f !== void 0 && Object.keys(f).length > 0;
5306
5304
  return [a, o, p];
5307
- }, As = ({
5305
+ }, Rs = ({
5308
5306
  aggregates: e,
5309
5307
  isLoading: t
5310
5308
  }) => {
@@ -5325,7 +5323,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5325
5323
  ]
5326
5324
  }
5327
5325
  );
5328
- }, { Text: qo } = _t, Eu = ({
5326
+ }, { Text: Yo } = _t, Eu = ({
5329
5327
  totalRows: e,
5330
5328
  selectedRowKeys: t,
5331
5329
  allRowSelectedMode: n
@@ -5340,7 +5338,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5340
5338
  children: [
5341
5339
  /* @__PURE__ */ i(we, { span: 12, children: n ? /* @__PURE__ */ i("span", { children: `${t.length} ${r("selectedRegisters")}` }) : /* @__PURE__ */ i(Du, { selectedRowKeys: t }) }),
5342
5340
  /* @__PURE__ */ D(we, { span: 12, style: { paddingRight: 10 }, className: "text-right", children: [
5343
- e === void 0 && /* @__PURE__ */ i(We, {}),
5341
+ e === void 0 && /* @__PURE__ */ i(He, {}),
5344
5342
  e != null && `${r("totalRegisters")} ${e}`
5345
5343
  ] })
5346
5344
  ]
@@ -5356,7 +5354,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5356
5354
  t("selectedRegisters"),
5357
5355
  " - (id:",
5358
5356
  " ",
5359
- /* @__PURE__ */ i(qo, { copyable: !0, children: e[0] }),
5357
+ /* @__PURE__ */ i(Yo, { copyable: !0, children: e[0] }),
5360
5358
  ")"
5361
5359
  ] });
5362
5360
  if (e.length > 1)
@@ -5365,7 +5363,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5365
5363
  " ",
5366
5364
  t("selectedRegisters") + " ",
5367
5365
  /* @__PURE__ */ i(
5368
- qo,
5366
+ Yo,
5369
5367
  {
5370
5368
  copyable: {
5371
5369
  text: e.join(", ")
@@ -5374,7 +5372,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5374
5372
  )
5375
5373
  ] });
5376
5374
  }, Pu = (e) => {
5377
- const t = fo();
5375
+ const t = mo();
5378
5376
  return /* @__PURE__ */ i(_e, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
5379
5377
  Gr.RangePicker,
5380
5378
  {
@@ -5392,7 +5390,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5392
5390
  }) => {
5393
5391
  const o = Q(), s = Q(0);
5394
5392
  return /* @__PURE__ */ i(
5395
- Ba,
5393
+ Ha,
5396
5394
  {
5397
5395
  ...r,
5398
5396
  ref: o,
@@ -5407,19 +5405,19 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5407
5405
  }
5408
5406
  );
5409
5407
  }, ku = (e) => {
5410
- const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, s = fo(), a = [
5411
- new Tr({
5408
+ const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, s = mo(), a = [
5409
+ new Or({
5412
5410
  name: o + "#date",
5413
5411
  label: ""
5414
5412
  }),
5415
- new Tr({
5413
+ new Or({
5416
5414
  name: o + "#time",
5417
5415
  label: ""
5418
5416
  })
5419
5417
  ];
5420
5418
  return /* @__PURE__ */ D(ae, { children: [
5421
5419
  n && /* @__PURE__ */ i(
5422
- nr,
5420
+ rr,
5423
5421
  {
5424
5422
  ooui: new ln({
5425
5423
  name: o + "_label",
@@ -5471,10 +5469,10 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5471
5469
  }
5472
5470
  }
5473
5471
  )
5474
- ] }), { useToken: Nu } = Ge, Rs = (e) => {
5472
+ ] }), { useToken: Nu } = Ge, _s = (e) => {
5475
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 || {};
5476
5474
  return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
5477
- Ai,
5475
+ Ri,
5478
5476
  {
5479
5477
  disabled: o,
5480
5478
  className: "w-full",
@@ -5487,10 +5485,10 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5487
5485
  wheel: !1
5488
5486
  }
5489
5487
  ) });
5490
- }, { useToken: Mu } = Ge, Gn = (e) => {
5488
+ }, { useToken: Mu } = Ge, Kn = (e) => {
5491
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 || {};
5492
5490
  return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
5493
- Ai,
5491
+ Ri,
5494
5492
  {
5495
5493
  id: r,
5496
5494
  className: "w-full ",
@@ -5508,7 +5506,7 @@ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5508
5506
  ) });
5509
5507
  };
5510
5508
  function Lu(e) {
5511
- const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof Or ? Gn : 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(
5512
5510
  a,
5513
5511
  {
5514
5512
  ooui: {
@@ -5522,7 +5520,7 @@ function Lu(e) {
5522
5520
  );
5523
5521
  return /* @__PURE__ */ D("div", { style: { width: "100%" }, children: [
5524
5522
  n && /* @__PURE__ */ i(
5525
- nr,
5523
+ rr,
5526
5524
  {
5527
5525
  ooui: new ln({
5528
5526
  name: r + "_label",
@@ -5587,7 +5585,7 @@ const { defaultAlgorithm: ju, defaultSeed: Bu } = Ge, Hu = ju(Bu), { Option: Uu
5587
5585
  background-color: ${Hu.colorPrimaryBg};
5588
5586
  }
5589
5587
  `;
5590
- function _s(e) {
5588
+ function Vs(e) {
5591
5589
  const { field: t } = e;
5592
5590
  t.readOnly = !1, t.required = !1;
5593
5591
  const { t: n } = he();
@@ -5601,7 +5599,7 @@ function _s(e) {
5601
5599
  ["false", n("false")]
5602
5600
  ]
5603
5601
  });
5604
- return /* @__PURE__ */ i(ts, { layout: "vertical", ooui: o, showLabel: !0 });
5602
+ return /* @__PURE__ */ i(ns, { layout: "vertical", ooui: o, showLabel: !0 });
5605
5603
  }
5606
5604
  case Tt.float:
5607
5605
  case Tt.progressbar:
@@ -5616,7 +5614,7 @@ function _s(e) {
5616
5614
  return /* @__PURE__ */ i(Wu, { layout: "vertical", ooui: t, showLabel: !0 });
5617
5615
  default:
5618
5616
  return /* @__PURE__ */ i(
5619
- es,
5617
+ ts,
5620
5618
  {
5621
5619
  ooui: t,
5622
5620
  layout: "vertical",
@@ -5626,7 +5624,7 @@ function _s(e) {
5626
5624
  );
5627
5625
  }
5628
5626
  }
5629
- 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) => {
5630
5628
  const n = Xu(e), r = Ju(n), o = Qu(
5631
5629
  r,
5632
5630
  t
@@ -5653,9 +5651,9 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5653
5651
  e,
5654
5652
  "in",
5655
5653
  t.map(
5656
- (a) => Yo(a)
5654
+ (a) => zo(a)
5657
5655
  )
5658
- ] : [e, "=", Yo(t)];
5656
+ ] : [e, "=", zo(t)];
5659
5657
  }, Yu = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), zu = (e) => {
5660
5658
  const t = { ...e };
5661
5659
  return Object.keys(t).forEach(
@@ -5699,7 +5697,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5699
5697
  return t.forEach((o) => {
5700
5698
  Array.isArray(o) && o[0] ? r.includes(o[0]) || n.push(o) : r.includes(o) || n.push(o);
5701
5699
  }), n;
5702
- }, { 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 = ({
5703
5701
  isOpen: e,
5704
5702
  onClose: t,
5705
5703
  children: n,
@@ -5737,7 +5735,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5737
5735
  };
5738
5736
  return /* @__PURE__ */ i(zl, { children: e && /* @__PURE__ */ D(ae, { children: [
5739
5737
  /* @__PURE__ */ i(
5740
- Vo.div,
5738
+ Eo.div,
5741
5739
  {
5742
5740
  initial: { opacity: 0 },
5743
5741
  animate: { opacity: 1 },
@@ -5756,7 +5754,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5756
5754
  }
5757
5755
  ),
5758
5756
  /* @__PURE__ */ D(
5759
- Vo.div,
5757
+ Eo.div,
5760
5758
  {
5761
5759
  ref: l,
5762
5760
  initial: { x: "100%" },
@@ -5817,17 +5815,17 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5817
5815
  ] }) });
5818
5816
  };
5819
5817
  var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5820
- function Vs(e) {
5818
+ function Es(e) {
5821
5819
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5822
5820
  }
5823
- 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, hr = 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() {
5824
5822
  return gf.Date.now();
5825
5823
  };
5826
5824
  function Sf(e, t, n) {
5827
5825
  var r, o, s, a, l, c, u = 0, f = !1, d = !1, p = !0;
5828
5826
  if (typeof e != "function")
5829
5827
  throw new TypeError(af);
5830
- 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);
5831
5829
  function h(O) {
5832
5830
  var T = r, R = o;
5833
5831
  return r = o = void 0, u = O, a = e.apply(R, T), a;
@@ -5844,7 +5842,7 @@ function Sf(e, t, n) {
5844
5842
  return c === void 0 || T >= t || T < 0 || d && R >= s;
5845
5843
  }
5846
5844
  function v() {
5847
- var O = hr();
5845
+ var O = gr();
5848
5846
  if (g(O))
5849
5847
  return w(O);
5850
5848
  l = setTimeout(v, y(O));
@@ -5856,10 +5854,10 @@ function Sf(e, t, n) {
5856
5854
  l !== void 0 && clearTimeout(l), u = 0, r = c = o = l = void 0;
5857
5855
  }
5858
5856
  function C() {
5859
- return l === void 0 ? a : w(hr());
5857
+ return l === void 0 ? a : w(gr());
5860
5858
  }
5861
5859
  function b() {
5862
- var O = hr(), T = g(O);
5860
+ var O = gr(), T = g(O);
5863
5861
  if (r = arguments, o = this, c = O, T) {
5864
5862
  if (l === void 0)
5865
5863
  return m(c);
@@ -5880,11 +5878,11 @@ function Cf(e) {
5880
5878
  function xf(e) {
5881
5879
  return typeof e == "symbol" || Cf(e) && vf.call(e) == lf;
5882
5880
  }
5883
- function Jo(e) {
5881
+ function Qo(e) {
5884
5882
  if (typeof e == "number")
5885
5883
  return e;
5886
5884
  if (xf(e))
5887
- return zo;
5885
+ return Jo;
5888
5886
  if (Vr(e)) {
5889
5887
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
5890
5888
  e = Vr(t) ? t + "" : t;
@@ -5893,21 +5891,21 @@ function Jo(e) {
5893
5891
  return e === 0 ? e : +e;
5894
5892
  e = e.replace(cf, "");
5895
5893
  var n = uf.test(e);
5896
- 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;
5897
5895
  }
5898
5896
  var If = Sf;
5899
- const Tf = /* @__PURE__ */ Vs(If);
5900
- var Qo = Object.prototype.toString, Es = function(t) {
5901
- var n = Qo.call(t), r = n === "[object Arguments]";
5902
- 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;
5903
- }, gr, 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;
5904
5902
  function Of() {
5905
- if (Xo)
5906
- return gr;
5907
- Xo = 1;
5903
+ if (Zo)
5904
+ return yr;
5905
+ Zo = 1;
5908
5906
  var e;
5909
5907
  if (!Object.keys) {
5910
- 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() {
5911
5909
  }, "prototype"), l = [
5912
5910
  "toString",
5913
5911
  "toLocaleString",
@@ -5987,11 +5985,11 @@ function Of() {
5987
5985
  return w;
5988
5986
  };
5989
5987
  }
5990
- return gr = e, gr;
5988
+ return yr = e, yr;
5991
5989
  }
5992
- var Ff = Array.prototype.slice, Af = Es, Zo = Object.keys, Mn = Zo ? function(t) {
5993
- return Zo(t);
5994
- } : 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;
5995
5993
  Mn.shim = function() {
5996
5994
  if (Object.keys) {
5997
5995
  var t = function() {
@@ -5999,13 +5997,13 @@ Mn.shim = function() {
5999
5997
  return n && n.length === arguments.length;
6000
5998
  }(1, 2);
6001
5999
  t || (Object.keys = function(r) {
6002
- return Af(r) ? ei(Ff.call(r)) : ei(r);
6000
+ return Af(r) ? ti(Ff.call(r)) : ti(r);
6003
6001
  });
6004
6002
  } else
6005
6003
  Object.keys = Mn;
6006
6004
  return Object.keys || Mn;
6007
6005
  };
6008
- var Ds = Mn, Ps = function() {
6006
+ var Ps = Mn, ks = function() {
6009
6007
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
6010
6008
  return !1;
6011
6009
  if (typeof Symbol.iterator == "symbol")
@@ -6028,29 +6026,29 @@ var Ds = Mn, Ps = function() {
6028
6026
  return !1;
6029
6027
  }
6030
6028
  return !0;
6031
- }, Rf = Ps, po = function() {
6029
+ }, Rf = ks, ho = function() {
6032
6030
  return Rf() && !!Symbol.toStringTag;
6033
- }, ti = typeof Symbol < "u" && Symbol, _f = Ps, Vf = function() {
6034
- return typeof ti != "function" || typeof Symbol != "function" || typeof ti("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : _f();
6035
- }, 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 = {
6036
6034
  foo: {}
6037
6035
  }, Ef = Object, Df = function() {
6038
- return { __proto__: ni }.foo === ni.foo && !({ __proto__: null } instanceof Ef);
6039
- }, Pf = "Function.prototype.bind called on incompatible ", yr = Array.prototype.slice, kf = Object.prototype.toString, $f = "[object Function]", Nf = function(t) {
6036
+ return { __proto__: ri }.foo === ri.foo && !({ __proto__: null } instanceof Ef);
6037
+ }, Pf = "Function.prototype.bind called on incompatible ", vr = Array.prototype.slice, kf = Object.prototype.toString, $f = "[object Function]", Nf = function(t) {
6040
6038
  var n = this;
6041
6039
  if (typeof n != "function" || kf.call(n) !== $f)
6042
6040
  throw new TypeError(Pf + n);
6043
- for (var r = yr.call(arguments, 1), o, s = function() {
6041
+ for (var r = vr.call(arguments, 1), o, s = function() {
6044
6042
  if (this instanceof o) {
6045
6043
  var f = n.apply(
6046
6044
  this,
6047
- r.concat(yr.call(arguments))
6045
+ r.concat(vr.call(arguments))
6048
6046
  );
6049
6047
  return Object(f) === f ? f : this;
6050
6048
  } else
6051
6049
  return n.apply(
6052
6050
  t,
6053
- r.concat(yr.call(arguments))
6051
+ r.concat(vr.call(arguments))
6054
6052
  );
6055
6053
  }, a = Math.max(0, n.length - r.length), l = [], c = 0; c < a; c++)
6056
6054
  l.push("$" + c);
@@ -6060,11 +6058,11 @@ var Ds = Mn, Ps = function() {
6060
6058
  u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
6061
6059
  }
6062
6060
  return o;
6063
- }, Mf = Nf, ks = Function.prototype.bind || Mf, ri = {}.hasOwnProperty, vr = Function.prototype.call, Lf = vr.bind ? vr.bind(ri) : function(e, t) {
6064
- return vr.call(ri, e, t);
6065
- }, Ve, sn = SyntaxError, $s = Function, tn = TypeError, wr = 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) {
6066
6064
  try {
6067
- return $s('"use strict"; return (' + e + ").constructor;")();
6065
+ return Ns('"use strict"; return (' + e + ").constructor;")();
6068
6066
  } catch {
6069
6067
  }
6070
6068
  }, jt = Object.getOwnPropertyDescriptor;
@@ -6074,19 +6072,19 @@ if (jt)
6074
6072
  } catch {
6075
6073
  jt = null;
6076
6074
  }
6077
- var br = function() {
6075
+ var Sr = function() {
6078
6076
  throw new tn();
6079
6077
  }, jf = jt ? function() {
6080
6078
  try {
6081
- return arguments.callee, br;
6079
+ return arguments.callee, Sr;
6082
6080
  } catch {
6083
6081
  try {
6084
6082
  return jt(arguments, "callee").get;
6085
6083
  } catch {
6086
- return br;
6084
+ return Sr;
6087
6085
  }
6088
6086
  }
6089
- }() : br, Kt = Vf(), Bf = Df(), Ze = Object.getPrototypeOf || (Bf ? function(e) {
6087
+ }() : Sr, Kt = Vf(), Bf = Df(), Ze = Object.getPrototypeOf || (Bf ? function(e) {
6090
6088
  return e.__proto__;
6091
6089
  } : null), Qt = {}, Hf = typeof Uint8Array > "u" || !Ze ? Ve : Ze(Uint8Array), Bt = {
6092
6090
  "%AggregateError%": typeof AggregateError > "u" ? Ve : AggregateError,
@@ -6116,7 +6114,7 @@ var br = function() {
6116
6114
  "%Float32Array%": typeof Float32Array > "u" ? Ve : Float32Array,
6117
6115
  "%Float64Array%": typeof Float64Array > "u" ? Ve : Float64Array,
6118
6116
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Ve : FinalizationRegistry,
6119
- "%Function%": $s,
6117
+ "%Function%": Ns,
6120
6118
  "%GeneratorFunction%": Qt,
6121
6119
  "%Int8Array%": typeof Int8Array > "u" ? Ve : Int8Array,
6122
6120
  "%Int16Array%": typeof Int16Array > "u" ? Ve : Int16Array,
@@ -6167,11 +6165,11 @@ if (Ze)
6167
6165
  var Wf = function e(t) {
6168
6166
  var n;
6169
6167
  if (t === "%AsyncFunction%")
6170
- n = wr("async function () {}");
6168
+ n = br("async function () {}");
6171
6169
  else if (t === "%GeneratorFunction%")
6172
- n = wr("function* () {}");
6170
+ n = br("function* () {}");
6173
6171
  else if (t === "%AsyncGeneratorFunction%")
6174
- n = wr("async function* () {}");
6172
+ n = br("async function* () {}");
6175
6173
  else if (t === "%AsyncGenerator%") {
6176
6174
  var r = e("%AsyncGeneratorFunction%");
6177
6175
  r && (n = r.prototype);
@@ -6180,7 +6178,7 @@ var Wf = function e(t) {
6180
6178
  o && Ze && (n = Ze(o.prototype));
6181
6179
  }
6182
6180
  return Bt[t] = n, n;
6183
- }, oi = {
6181
+ }, ii = {
6184
6182
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
6185
6183
  "%ArrayPrototype%": ["Array", "prototype"],
6186
6184
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -6232,19 +6230,19 @@ var Wf = function e(t) {
6232
6230
  "%URIErrorPrototype%": ["URIError", "prototype"],
6233
6231
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
6234
6232
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
6235
- }, _n = ks, Kn = 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), qn = _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) {
6236
- var n = qn(t, 0, 1), r = qn(t, -1);
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) {
6234
+ var n = Yn(t, 0, 1), r = Yn(t, -1);
6237
6235
  if (n === "%" && r !== "%")
6238
6236
  throw new sn("invalid intrinsic syntax, expected closing `%`");
6239
6237
  if (r === "%" && n !== "%")
6240
6238
  throw new sn("invalid intrinsic syntax, expected opening `%`");
6241
6239
  var o = [];
6242
- return ii(t, Yf, function(s, a, l, c) {
6243
- 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;
6244
6242
  }), o;
6245
6243
  }, Qf = function(t, n) {
6246
6244
  var r = t, o;
6247
- if (Kn(oi, r) && (o = oi[r], r = "%" + o[0] + "%"), Kn(Bt, r)) {
6245
+ if (qn(ii, r) && (o = ii[r], r = "%" + o[0] + "%"), qn(Bt, r)) {
6248
6246
  var s = Bt[r];
6249
6247
  if (s === Qt && (s = Wf(r)), typeof s > "u" && !n)
6250
6248
  throw new tn("intrinsic " + t + " exists, but is not available. Please file an issue!");
@@ -6265,10 +6263,10 @@ var Wf = function e(t) {
6265
6263
  var r = Jf(t), o = r.length > 0 ? r[0] : "", s = Qf("%" + o + "%", n), a = s.name, l = s.value, c = !1, u = s.alias;
6266
6264
  u && (o = u[0], Kf(r, Gf([0, 1], u)));
6267
6265
  for (var f = 1, d = !0; f < r.length; f += 1) {
6268
- var p = r[f], h = qn(p, 0, 1), m = qn(p, -1);
6266
+ var p = r[f], h = Yn(p, 0, 1), m = Yn(p, -1);
6269
6267
  if ((h === '"' || h === "'" || h === "`" || m === '"' || m === "'" || m === "`") && h !== m)
6270
6268
  throw new sn("property names with quotes must have matching quotes");
6271
- if ((p === "constructor" || !d) && (c = !0), o += "." + p, a = "%" + o + "%", Kn(Bt, a))
6269
+ if ((p === "constructor" || !d) && (c = !0), o += "." + p, a = "%" + o + "%", qn(Bt, a))
6272
6270
  l = Bt[a];
6273
6271
  else if (l != null) {
6274
6272
  if (!(p in l)) {
@@ -6280,14 +6278,14 @@ var Wf = function e(t) {
6280
6278
  var y = jt(l, p);
6281
6279
  d = !!y, d && "get" in y && !("originalValue" in y.get) ? l = y.get : l = l[p];
6282
6280
  } else
6283
- d = Kn(l, p), l = l[p];
6281
+ d = qn(l, p), l = l[p];
6284
6282
  d && !c && (Bt[a] = l);
6285
6283
  }
6286
6284
  }
6287
6285
  return l;
6288
- }, Ns = { exports: {} };
6286
+ }, Ms = { exports: {} };
6289
6287
  (function(e) {
6290
- 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%");
6291
6289
  if (l)
6292
6290
  try {
6293
6291
  l({}, "a", { value: 1 });
@@ -6310,19 +6308,19 @@ var Wf = function e(t) {
6310
6308
  return s(t, r, arguments);
6311
6309
  };
6312
6310
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
6313
- })(Ns);
6314
- var ho = Ns.exports, Ms = Vn, Ls = ho, Xf = Ls(Ms("String.prototype.indexOf")), js = function(t, n) {
6315
- var r = Ms(t, !!n);
6316
- return typeof r == "function" && Xf(t, ".prototype.") > -1 ? Ls(r) : r;
6317
- }, Zf = po(), em = js, Er = em("Object.prototype.toString"), ar = 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) {
6318
6316
  return Zf && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Er(t) === "[object Arguments]";
6319
- }, Bs = function(t) {
6320
- return ar(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Er(t) !== "[object Array]" && Er(t.callee) === "[object Function]";
6317
+ }, Hs = function(t) {
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]";
6321
6319
  }, tm = function() {
6322
- return ar(arguments);
6320
+ return lr(arguments);
6323
6321
  }();
6324
- ar.isLegacyArguments = Bs;
6325
- var nm = tm ? ar : 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() {
6326
6324
  if (Dr)
6327
6325
  try {
6328
6326
  return Dr({}, "a", { value: 1 }), !0;
@@ -6340,11 +6338,11 @@ Pr.hasArrayLengthDefineBug = function() {
6340
6338
  return !0;
6341
6339
  }
6342
6340
  };
6343
- var go = Pr, Sr, si;
6341
+ var yo = Pr, Cr, ai;
6344
6342
  function om() {
6345
- if (si)
6346
- return Sr;
6347
- si = 1;
6343
+ if (ai)
6344
+ return Cr;
6345
+ ai = 1;
6348
6346
  var e = Vn, t = e("%Object.getOwnPropertyDescriptor%", !0);
6349
6347
  if (t)
6350
6348
  try {
@@ -6352,9 +6350,9 @@ function om() {
6352
6350
  } catch {
6353
6351
  t = null;
6354
6352
  }
6355
- return Sr = t, Sr;
6353
+ return Cr = t, Cr;
6356
6354
  }
6357
- 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) {
6358
6356
  if (!t || typeof t != "object" && typeof t != "function")
6359
6357
  throw new qt("`obj` must be an object or a function`");
6360
6358
  if (typeof n != "string" && typeof n != "symbol")
@@ -6367,9 +6365,9 @@ var im = go(), yo = Vn, ai = im && yo("%Object.defineProperty%", !0), sm = yo("%
6367
6365
  throw new qt("`nonConfigurable`, if provided, must be a boolean or null");
6368
6366
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
6369
6367
  throw new qt("`loose`, if provided, must be a boolean");
6370
- 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);
6371
- if (ai)
6372
- 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, {
6373
6371
  configurable: a === null && c ? c.configurable : !a,
6374
6372
  enumerable: o === null && c ? c.enumerable : !o,
6375
6373
  value: r,
@@ -6379,9 +6377,9 @@ var im = go(), yo = Vn, ai = im && yo("%Object.defineProperty%", !0), sm = yo("%
6379
6377
  t[n] = r;
6380
6378
  else
6381
6379
  throw new sm("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
6382
- }, 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) {
6383
6381
  return typeof e == "function" && cm.call(e) === "[object Function]";
6384
- }, Us = go(), fm = function(e, t, n, r) {
6382
+ }, Ws = yo(), fm = function(e, t, n, r) {
6385
6383
  if (t in e) {
6386
6384
  if (r === !0) {
6387
6385
  if (e[t] === n)
@@ -6389,52 +6387,52 @@ var im = go(), yo = Vn, ai = im && yo("%Object.defineProperty%", !0), sm = yo("%
6389
6387
  } else if (!um(r) || !r())
6390
6388
  return;
6391
6389
  }
6392
- Us ? ci(e, t, n, !0) : ci(e, t, n);
6393
- }, Ws = function(e, t) {
6390
+ Ws ? di(e, t, n, !0) : di(e, t, n);
6391
+ }, Gs = function(e, t) {
6394
6392
  var n = arguments.length > 2 ? arguments[2] : {}, r = am(t);
6395
6393
  lm && (r = dm.call(r, Object.getOwnPropertySymbols(t)));
6396
6394
  for (var o = 0; o < r.length; o += 1)
6397
6395
  fm(e, r[o], t[r[o]], n[r[o]]);
6398
6396
  };
6399
- Ws.supportsDescriptors = !!Us;
6400
- var En = Ws, di = function(e) {
6397
+ Gs.supportsDescriptors = !!Ws;
6398
+ var En = Gs, ui = function(e) {
6401
6399
  return e !== e;
6402
- }, Gs = function(t, n) {
6403
- return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || di(t) && di(n));
6404
- }, 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() {
6405
6403
  return typeof Object.is == "function" ? Object.is : mm;
6406
- }, pm = Ks, hm = En, gm = function() {
6404
+ }, pm = qs, hm = En, gm = function() {
6407
6405
  var t = pm();
6408
6406
  return hm(Object, { is: t }, {
6409
6407
  is: function() {
6410
6408
  return Object.is !== t;
6411
6409
  }
6412
6410
  }), t;
6413
- }, ym = En, vm = ho, wm = Gs, qs = Ks, bm = gm, Ys = vm(qs(), Object);
6414
- ym(Ys, {
6415
- getPolyfill: qs,
6411
+ }, ym = En, vm = go, wm = Ks, Ys = qs, bm = gm, zs = vm(Ys(), Object);
6412
+ ym(zs, {
6413
+ getPolyfill: Ys,
6416
6414
  implementation: wm,
6417
6415
  shim: bm
6418
6416
  });
6419
- var Sm = Ys, kr = js, zs = po(), Js, Qs, $r, Nr;
6420
- if (zs) {
6421
- Js = kr("Object.prototype.hasOwnProperty"), Qs = kr("RegExp.prototype.exec"), $r = {};
6422
- var Cr = function() {
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 = {};
6420
+ var xr = function() {
6423
6421
  throw $r;
6424
6422
  };
6425
6423
  Nr = {
6426
- toString: Cr,
6427
- valueOf: Cr
6428
- }, typeof Symbol.toPrimitive == "symbol" && (Nr[Symbol.toPrimitive] = Cr);
6424
+ toString: xr,
6425
+ valueOf: xr
6426
+ }, typeof Symbol.toPrimitive == "symbol" && (Nr[Symbol.toPrimitive] = xr);
6429
6427
  }
6430
- 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) {
6431
6429
  if (!t || typeof t != "object")
6432
6430
  return !1;
6433
- var n = xm(t, "lastIndex"), r = n && Js(n, "value");
6431
+ var n = xm(t, "lastIndex"), r = n && Qs(n, "value");
6434
6432
  if (!r)
6435
6433
  return !1;
6436
6434
  try {
6437
- Qs(t, Nr);
6435
+ Xs(t, Nr);
6438
6436
  } catch (o) {
6439
6437
  return o === $r;
6440
6438
  }
@@ -6462,17 +6460,17 @@ On.boundFunctionsHaveNames = function() {
6462
6460
  return On() && typeof Om == "function" && (function() {
6463
6461
  }).bind().name !== "";
6464
6462
  };
6465
- 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) {
6466
6464
  if (typeof t != "function")
6467
6465
  throw new _m("`fn` is not a function");
6468
6466
  var r = arguments.length > 2 && !!arguments[2];
6469
- return (!r || Rm) && (Am ? ui(t, "name", n, !0, !0) : ui(t, "name", n)), t;
6470
- }, 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() {
6471
6469
  if (this != null && this !== Dm(this))
6472
6470
  throw new Pm("RegExp.prototype.flags getter called on non-object");
6473
6471
  var t = "";
6474
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;
6475
- }, "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() {
6476
6474
  if ($m && /a/mig.flags === "gim") {
6477
6475
  var t = Nm(RegExp.prototype, "flags");
6478
6476
  if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
@@ -6490,52 +6488,52 @@ var Fm = On, ui = Hs, Am = go(), Rm = Fm.functionsHaveConfigurableNames(), _m =
6490
6488
  }
6491
6489
  }
6492
6490
  return km;
6493
- }, Mm = En.supportsDescriptors, Lm = Zs, jm = Object.getOwnPropertyDescriptor, Bm = Object.defineProperty, Hm = TypeError, fi = Object.getPrototypeOf, Um = /a/, Wm = function() {
6494
- 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)
6495
6493
  throw new Hm("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6496
- var t = Lm(), n = fi(Um), r = jm(n, "flags");
6494
+ var t = Lm(), n = mi(Um), r = jm(n, "flags");
6497
6495
  return (!r || r.get !== t) && Bm(n, "flags", {
6498
6496
  configurable: !0,
6499
6497
  enumerable: !1,
6500
6498
  get: t
6501
6499
  }), t;
6502
- }, Gm = En, Km = ho, qm = Xs, ea = Zs, Ym = Wm, ta = Km(ea());
6503
- Gm(ta, {
6504
- getPolyfill: ea,
6500
+ }, Gm = En, Km = go, qm = Zs, ta = ea, Ym = Wm, na = Km(ta());
6501
+ Gm(na, {
6502
+ getPolyfill: ta,
6505
6503
  implementation: qm,
6506
6504
  shim: Ym
6507
6505
  });
6508
- var zm = ta, Jm = Date.prototype.getDay, Qm = function(t) {
6506
+ var zm = na, Jm = Date.prototype.getDay, Qm = function(t) {
6509
6507
  try {
6510
6508
  return Jm.call(t), !0;
6511
6509
  } catch {
6512
6510
  return !1;
6513
6511
  }
6514
- }, 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) {
6515
6513
  return typeof t != "object" || t === null ? !1 : ep ? Qm(t) : Xm.call(t) === Zm;
6516
- }, mi = Ds, pi = nm, hi = Sm, gi = Tm, yi = zm, vi = tp, wi = Date.prototype.getTime;
6517
- 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) {
6518
6516
  var r = n || {};
6519
- 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);
6520
6518
  }
6521
- function bi(e) {
6519
+ function Si(e) {
6522
6520
  return e == null;
6523
6521
  }
6524
- function Si(e) {
6522
+ function Ci(e) {
6525
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");
6526
6524
  }
6527
6525
  function np(e, t, n) {
6528
6526
  var r, o;
6529
- 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))
6530
6528
  return !1;
6531
- var s = gi(e), a = gi(t);
6529
+ var s = yi(e), a = yi(t);
6532
6530
  if (s !== a)
6533
6531
  return !1;
6534
6532
  if (s || a)
6535
- return e.source === t.source && yi(e) === yi(t);
6536
- if (vi(e) && vi(t))
6537
- return wi.call(e) === wi.call(t);
6538
- 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);
6539
6537
  if (l !== c)
6540
6538
  return !1;
6541
6539
  if (l || c) {
@@ -6549,7 +6547,7 @@ function np(e, t, n) {
6549
6547
  if (typeof e != typeof t)
6550
6548
  return !1;
6551
6549
  try {
6552
- var u = mi(e), f = mi(t);
6550
+ var u = pi(e), f = pi(t);
6553
6551
  } catch {
6554
6552
  return !1;
6555
6553
  }
@@ -6559,12 +6557,12 @@ function np(e, t, n) {
6559
6557
  if (u[r] != f[r])
6560
6558
  return !1;
6561
6559
  for (r = u.length - 1; r >= 0; r--)
6562
- if (o = u[r], !na(e[o], t[o], n))
6560
+ if (o = u[r], !ra(e[o], t[o], n))
6563
6561
  return !1;
6564
6562
  return !0;
6565
6563
  }
6566
- var rp = na;
6567
- const ra = /* @__PURE__ */ Vs(rp), op = yt(
6564
+ var rp = ra;
6565
+ const oa = /* @__PURE__ */ Es(rp), op = yt(
6568
6566
  (e, t) => {
6569
6567
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: s } = e, [a] = pt.useForm();
6570
6568
  ue(() => {
@@ -6590,7 +6588,7 @@ const ra = /* @__PURE__ */ Vs(rp), op = yt(
6590
6588
  backgroundColor: w ? "#f0f0f0" : void 0,
6591
6589
  fontWeight: w ? "bold" : void 0
6592
6590
  },
6593
- 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) })
6594
6592
  },
6595
6593
  y
6596
6594
  );
@@ -6622,7 +6620,7 @@ const ra = /* @__PURE__ */ Vs(rp), op = yt(
6622
6620
  ue(() => {
6623
6621
  n && h(void 0);
6624
6622
  }, [n]), St(() => {
6625
- 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);
6626
6624
  }, [s, o, n]);
6627
6625
  const m = N(
6628
6626
  (C) => {
@@ -6641,7 +6639,7 @@ const ra = /* @__PURE__ */ Vs(rp), op = yt(
6641
6639
  (C) => {
6642
6640
  var T;
6643
6641
  const b = Mr(C);
6644
- if (ra(b, a)) {
6642
+ if (oa(b, a)) {
6645
6643
  h([]);
6646
6644
  return;
6647
6645
  }
@@ -6703,7 +6701,7 @@ const ra = /* @__PURE__ */ Vs(rp), op = yt(
6703
6701
  /* @__PURE__ */ i(
6704
6702
  je,
6705
6703
  {
6706
- icon: /* @__PURE__ */ i(Zn, {}),
6704
+ icon: /* @__PURE__ */ i(er, {}),
6707
6705
  size: "large",
6708
6706
  type: "primary",
6709
6707
  onClick: t,
@@ -6714,7 +6712,7 @@ const ra = /* @__PURE__ */ Vs(rp), op = yt(
6714
6712
  /* @__PURE__ */ i(
6715
6713
  je,
6716
6714
  {
6717
- icon: /* @__PURE__ */ i(Xn, {}),
6715
+ icon: /* @__PURE__ */ i(Zn, {}),
6718
6716
  size: "large",
6719
6717
  onClick: e,
6720
6718
  style: { width: "80px" },
@@ -6738,15 +6736,15 @@ function ap(e) {
6738
6736
  } = e, { t: a } = he();
6739
6737
  return /* @__PURE__ */ D(ke, { children: [
6740
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: [
6741
- n ? /* @__PURE__ */ i(Za, { className: "pr-1" }) : /* @__PURE__ */ i(Jn, { className: "pr-1" }),
6739
+ n ? /* @__PURE__ */ i(el, { className: "pr-1" }) : /* @__PURE__ */ i(Qn, { className: "pr-1" }),
6742
6740
  a(n ? "simple_search" : "advanced_search")
6743
6741
  ] }) }),
6744
6742
  /* @__PURE__ */ D(we, { span: s ? 24 : 12, className: "text-right pb-2", children: [
6745
- /* @__PURE__ */ i(je, { className: "mr-5", icon: /* @__PURE__ */ i(Xn, {}), onClick: r, children: a("clear") }),
6743
+ /* @__PURE__ */ i(je, { className: "mr-5", icon: /* @__PURE__ */ i(Zn, {}), onClick: r, children: a("clear") }),
6746
6744
  /* @__PURE__ */ i(
6747
6745
  je,
6748
6746
  {
6749
- icon: /* @__PURE__ */ i(Zn, {}),
6747
+ icon: /* @__PURE__ */ i(er, {}),
6750
6748
  loading: o,
6751
6749
  className: "mr-2",
6752
6750
  type: "primary",
@@ -6758,13 +6756,13 @@ function ap(e) {
6758
6756
  ] });
6759
6757
  }
6760
6758
  function lp(e) {
6761
- const { onLimitChange: t } = e, { t: n } = he(), r = new Or({ name: "limit" }), o = new Or({ name: "offset" });
6759
+ const { onLimitChange: t } = e, { t: n } = he(), r = new Fr({ name: "limit" }), o = new Fr({ name: "offset" });
6762
6760
  return /* @__PURE__ */ D("div", { className: "pl-2 pt-2", children: [
6763
6761
  /* @__PURE__ */ i(ke, { children: n("parameters") }, "count_params"),
6764
6762
  /* @__PURE__ */ D(Je, { align: "center", children: [
6765
6763
  n("limit") + " :",
6766
6764
  /* @__PURE__ */ i(
6767
- Gn,
6765
+ Kn,
6768
6766
  {
6769
6767
  ooui: r,
6770
6768
  onChange: (s) => {
@@ -6773,12 +6771,12 @@ function lp(e) {
6773
6771
  }
6774
6772
  ),
6775
6773
  n("first") + " :",
6776
- /* @__PURE__ */ i(Gn, { ooui: o })
6774
+ /* @__PURE__ */ i(Kn, { ooui: o })
6777
6775
  ] })
6778
6776
  ] });
6779
6777
  }
6780
6778
  const { useToken: cp } = Ge;
6781
- function vo(e) {
6779
+ function wo(e) {
6782
6780
  const {
6783
6781
  fields: t,
6784
6782
  searchFields: n = { primary: [], secondary: [] },
@@ -6801,10 +6799,10 @@ function vo(e) {
6801
6799
  if (!g)
6802
6800
  return;
6803
6801
  const A = w ? g : m, F = A == null ? void 0 : A.rows;
6804
- 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)) }, _));
6805
6803
  };
6806
6804
  St(() => {
6807
- 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);
6808
6806
  }, [t, n]);
6809
6807
  const R = T(), S = (A) => {
6810
6808
  var k;
@@ -6881,7 +6879,7 @@ function vo(e) {
6881
6879
  function dp({
6882
6880
  useLocalState: e = !1
6883
6881
  }) {
6884
- 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);
6885
6883
  return t ? {
6886
6884
  treeIsLoading: n.treeIsLoading ?? !1,
6887
6885
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -6950,10 +6948,10 @@ function mp(e, t) {
6950
6948
  onChangeSelectedRowKeys: f,
6951
6949
  nameSearch: d,
6952
6950
  filterType: p = "side"
6953
- } = 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({
6954
6952
  elementRef: T,
6955
6953
  offset: up
6956
- }), { treeView: S, formView: V, loading: A } = Ss({
6954
+ }), { treeView: S, formView: V, loading: A } = Cs({
6957
6955
  model: n,
6958
6956
  formViewProps: r,
6959
6957
  treeViewProps: o,
@@ -6988,10 +6986,10 @@ function mp(e, t) {
6988
6986
  return Ot(S);
6989
6987
  }, [S]), pe = Tn(() => {
6990
6988
  if (K)
6991
- return io(
6989
+ return so(
6992
6990
  K,
6993
6991
  {
6994
- ...mo
6992
+ ...po
6995
6993
  },
6996
6994
  u
6997
6995
  );
@@ -7002,7 +7000,7 @@ function mp(e, t) {
7002
7000
  loading: $e,
7003
7001
  getColumnState: Le,
7004
7002
  updateColumnState: Pe
7005
- } = Os(ve), Fe = me(
7003
+ } = Fs(ve), Fe = me(
7006
7004
  () => on(te || [], a),
7007
7005
  [a, te]
7008
7006
  ), qe = N(() => {
@@ -7041,7 +7039,7 @@ function mp(e, t) {
7041
7039
  return [];
7042
7040
  const Qe = {};
7043
7041
  K.colors && (Qe.colors = K.colors), K.status && (Qe.status = K.status);
7044
- 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({
7045
7043
  params: Dt,
7046
7044
  limit: Me - ie,
7047
7045
  offset: ie,
@@ -7066,7 +7064,7 @@ function mp(e, t) {
7066
7064
  }
7067
7065
  if (De.current = Pt, vn.length === 0)
7068
7066
  return g.current = [], b(0), L(0), [];
7069
- const It = ir(K, vn), bn = rn(kt);
7067
+ const It = sr(K, vn), bn = rn(kt);
7070
7068
  if (h.current = {
7071
7069
  ...h.current,
7072
7070
  ...bn
@@ -7121,7 +7119,7 @@ function mp(e, t) {
7121
7119
  var Me, tt, Qe, Dt;
7122
7120
  if (h.current[(tt = (Me = ie.node) == null ? void 0 : Me.data) == null ? void 0 : tt.id])
7123
7121
  return { color: h.current[(Dt = (Qe = ie.node) == null ? void 0 : Qe.data) == null ? void 0 : Dt.id] };
7124
- }, []), Y = me(() => (j == null ? void 0 : j.map((ie) => ie.id)) || [], [j]), [Ce, Se, He] = Fs({
7122
+ }, []), Y = me(() => (j == null ? void 0 : j.map((ie) => ie.id)) || [], [j]), [Ce, Se, Ue] = As({
7125
7123
  ooui: K,
7126
7124
  model: n,
7127
7125
  showEmptyValues: !0,
@@ -7167,7 +7165,7 @@ function mp(e, t) {
7167
7165
  k,
7168
7166
  O,
7169
7167
  C
7170
- ]), re = N(() => W, [W]), Oe = me(() => He ? /* @__PURE__ */ i(As, { aggregates: Se, isLoading: Ce }) : null, [Se, Ce, He]), Ke = N((ie) => /* @__PURE__ */ i(zn, { 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(
7171
7169
  (ie) => {
7172
7170
  var Me;
7173
7171
  return (Me = m.current) == null ? void 0 : Me[ie.id];
@@ -7179,7 +7177,7 @@ function mp(e, t) {
7179
7177
  }),
7180
7178
  [O]
7181
7179
  ), z = me(() => !pe || !K ? null : /* @__PURE__ */ i(
7182
- zi,
7180
+ Ji,
7183
7181
  {
7184
7182
  readonly: !1,
7185
7183
  ref: y,
@@ -7222,8 +7220,8 @@ function mp(e, t) {
7222
7220
  K,
7223
7221
  Pe
7224
7222
  ]), ye = Q(te), Re = Q(P), be = Q(), De = Q();
7225
- Yi(() => {
7226
- const ie = !ra(
7223
+ zi(() => {
7224
+ const ie = !oa(
7227
7225
  te,
7228
7226
  ye.current
7229
7227
  ), Me = Re.current && !P;
@@ -7306,7 +7304,7 @@ function mp(e, t) {
7306
7304
  ), Et = N(
7307
7305
  () => _ == null ? void 0 : _(!1),
7308
7306
  [_]
7309
- ), Ue = N(
7307
+ ), We = N(
7310
7308
  ({ params: ie, values: Me }) => {
7311
7309
  var tt;
7312
7310
  k == null || k([]), (tt = y.current) == null || tt.unselectAll(), oe == null || oe(void 0), E == null || E(ie), J == null || J(Me), _ == null || _(!1);
@@ -7321,7 +7319,7 @@ function mp(e, t) {
7321
7319
  );
7322
7320
  return /* @__PURE__ */ D(Fn, { children: [
7323
7321
  p === "top" && /* @__PURE__ */ i(
7324
- vo,
7322
+ wo,
7325
7323
  {
7326
7324
  ...ft,
7327
7325
  onClear: Ye,
@@ -7333,7 +7331,7 @@ function mp(e, t) {
7333
7331
  {
7334
7332
  ...Gt,
7335
7333
  onClose: Et,
7336
- onSubmit: Ue
7334
+ onSubmit: We
7337
7335
  }
7338
7336
  ),
7339
7337
  /* @__PURE__ */ i(
@@ -7344,10 +7342,10 @@ function mp(e, t) {
7344
7342
  totalRows: C
7345
7343
  }
7346
7344
  ),
7347
- /* @__PURE__ */ i("div", { ref: T, style: ut, children: A || $e || w ? /* @__PURE__ */ i(We, {}) : z })
7345
+ /* @__PURE__ */ i("div", { ref: T, style: ut, children: A || $e || w ? /* @__PURE__ */ i(He, {}) : z })
7348
7346
  ] });
7349
7347
  }
7350
- const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7348
+ const ia = yt(mp), xi = (e, t = "14px -apple-system") => {
7351
7349
  const r = document.createElement("canvas").getContext("2d");
7352
7350
  r.font = t;
7353
7351
  const o = r.measureText(e);
@@ -7357,13 +7355,13 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7357
7355
  return { columns: e };
7358
7356
  const r = e.map(
7359
7357
  (s) => Object.assign(s, {
7360
- width: Ci(s.title)
7358
+ width: xi(s.title)
7361
7359
  })
7362
7360
  );
7363
7361
  t.map((s) => {
7364
7362
  r.map((a, l) => {
7365
7363
  const c = a.width, u = s[a.key] || "";
7366
- let f = Ci(u);
7364
+ let f = xi(u);
7367
7365
  f < c && (f = c), f > n && (f = n), r[l].width = f;
7368
7366
  });
7369
7367
  });
@@ -7398,7 +7396,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7398
7396
  "{numberOfSelectedRows}",
7399
7397
  e.toString()
7400
7398
  ) + " ",
7401
- s ? /* @__PURE__ */ i(We, {}) : /* @__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(
7402
7400
  "{totalRecords}",
7403
7401
  t.toString()
7404
7402
  ) })
@@ -7407,7 +7405,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7407
7405
  o.toString()
7408
7406
  ) + " " });
7409
7407
  return /* @__PURE__ */ i(hp, { children: o > n ? d : f });
7410
- }, ia = yt(
7408
+ }, sa = yt(
7411
7409
  (e, t) => {
7412
7410
  var G;
7413
7411
  const {
@@ -7437,10 +7435,10 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7437
7435
  at
7438
7436
  ), { title: W = void 0, setTitle: j = void 0 } = (C ? M : {}) || {}, E = me(() => {
7439
7437
  if (F)
7440
- return io(
7438
+ return so(
7441
7439
  F,
7442
7440
  {
7443
- ...mo
7441
+ ...po
7444
7442
  },
7445
7443
  b
7446
7444
  );
@@ -7457,7 +7455,7 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7457
7455
  if (!F)
7458
7456
  return;
7459
7457
  A.current = !1;
7460
- const L = ir(F, a);
7458
+ const L = sr(F, a);
7461
7459
  V(L);
7462
7460
  }, [a]), ue(() => {
7463
7461
  k.current = r;
@@ -7468,9 +7466,9 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7468
7466
  const L = S == null ? void 0 : S.filter(
7469
7467
  (ee) => d && d.includes(ee.id)
7470
7468
  ).length;
7471
- return c ? null : o === void 0 ? /* @__PURE__ */ i(We, { className: "pb-4" }) : /* @__PURE__ */ D(ke, { align: "bottom", className: "pb-4", children: [
7469
+ return c ? null : o === void 0 ? /* @__PURE__ */ i(He, { className: "pb-4" }) : /* @__PURE__ */ D(ke, { align: "bottom", className: "pb-4", children: [
7472
7470
  /* @__PURE__ */ i(we, { span: T ? 8 : 12, children: /* @__PURE__ */ i(
7473
- Ha,
7471
+ Ua,
7474
7472
  {
7475
7473
  total: o,
7476
7474
  pageSize: k.current === 0 ? o : k.current,
@@ -7517,24 +7515,24 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7517
7515
  if (F !== null && E && E.length > 0)
7518
7516
  return pp(E, S, 600);
7519
7517
  }, [E, S, F]), B = me(() => h && (F != null && F.columns.some((L) => L.sum !== void 0)) ? h - 30 : h, [h, F == null ? void 0 : F.columns]);
7520
- return F === null || !Z || ((G = Z == null ? void 0 : Z.columns) == null ? void 0 : G.length) === 0 ? /* @__PURE__ */ i(We, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(Ln, { children: [
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: [
7521
7519
  H,
7522
7520
  /* @__PURE__ */ i(
7523
- El,
7521
+ Dl,
7524
7522
  {
7525
7523
  ref: R,
7526
7524
  height: B,
7527
7525
  columns: Z.columns,
7528
7526
  dataSource: S,
7529
7527
  loading: c,
7530
- loadingComponent: /* @__PURE__ */ i(We, {}),
7528
+ loadingComponent: /* @__PURE__ */ i(He, {}),
7531
7529
  onRowStyle: (L) => {
7532
7530
  if (m[L.id])
7533
7531
  return { color: m[L.id] };
7534
7532
  },
7535
7533
  onRowStatus: Ac(y) ? (L) => {
7536
7534
  if (y[L.id])
7537
- return /* @__PURE__ */ i(zn, { color: y[L.id] });
7535
+ return /* @__PURE__ */ i(Jn, { color: y[L.id] });
7538
7536
  } : void 0,
7539
7537
  onRowDoubleClick: u,
7540
7538
  onRowSelectionChange: p,
@@ -7542,8 +7540,8 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7542
7540
  sorter: v,
7543
7541
  readonly: O,
7544
7542
  expandableOpts: w ? {
7545
- expandIcon: el,
7546
- collapseIcon: tl,
7543
+ expandIcon: tl,
7544
+ collapseIcon: nl,
7547
7545
  loadingIcon: wt,
7548
7546
  onFetchChildrenForRecord: w,
7549
7547
  childField: I
@@ -7553,10 +7551,10 @@ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7553
7551
  oe
7554
7552
  ] });
7555
7553
  }
7556
- ), Dn = an(ia);
7554
+ ), Dn = an(sa);
7557
7555
  Dn.displayName = "Tree";
7558
- ia.displayName = "UnmemoizedTree";
7559
- const sa = (e) => {
7556
+ sa.displayName = "UnmemoizedTree";
7557
+ const aa = (e) => {
7560
7558
  const {
7561
7559
  model: t,
7562
7560
  setSearchTreeNameSearch: n,
@@ -7607,12 +7605,12 @@ const sa = (e) => {
7607
7605
  attrs: Y
7608
7606
  }), Se = Ce[0];
7609
7607
  L.current = [...Se], oe(rn(Ce[1])), B(jn(Ce[1]));
7610
- const He = Se.map((re) => re.id), Ne = h !== void 0 ? en({
7608
+ const Ue = Se.map((re) => re.id), Ne = h !== void 0 ? en({
7611
7609
  resultsToSort: Se,
7612
7610
  sorter: h,
7613
7611
  fields: { ...d.fields, ...p.fields }
7614
7612
  }) : [...L.current];
7615
- ee(Ne), He.length > 0 ? y == null || y(0) : y == null || y(void 0);
7613
+ ee(Ne), Ue.length > 0 ? y == null || y(0) : y == null || y(void 0);
7616
7614
  } else
7617
7615
  ee([]), y == null || y(void 0);
7618
7616
  V(!1), c.current = !0;
@@ -7632,7 +7630,7 @@ const sa = (e) => {
7632
7630
  async (de) => {
7633
7631
  const { params: Te, newOffset: fe } = de || {}, Ae = on(Te || O, w), { colors: Y, status: Ce } = Ot(d), Se = {};
7634
7632
  Y && (Se.colors = Y), Ce && (Se.status = Ce);
7635
- const { totalItems: He, results: Ne, attrsEvaluated: re } = await $.getHandler().searchForTree({
7633
+ const { totalItems: Ue, results: Ne, attrsEvaluated: re } = await $.getHandler().searchForTree({
7636
7634
  params: Ae,
7637
7635
  limit: G.current,
7638
7636
  offset: fe || W,
@@ -7655,7 +7653,7 @@ const sa = (e) => {
7655
7653
  } else
7656
7654
  y == null || y(void 0);
7657
7655
  V(!1);
7658
- const Ke = await He();
7656
+ const Ke = await Ue();
7659
7657
  X(Ke), f == null || f(Ke);
7660
7658
  },
7661
7659
  [
@@ -7752,7 +7750,7 @@ const sa = (e) => {
7752
7750
  fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
7753
7751
  context: u
7754
7752
  });
7755
- return ee([...le(), ...fe]), ir(Ot(d), fe);
7753
+ return ee([...le(), ...fe]), sr(Ot(d), fe);
7756
7754
  },
7757
7755
  [d, t, u, le, ee]
7758
7756
  ), Ie = N(async () => await $.getHandler().searchAllIds({
@@ -7795,7 +7793,7 @@ function yp(e, t) {
7795
7793
  rootTree: f = !1,
7796
7794
  parentContext: d = {},
7797
7795
  onChangeSelectedRowKeys: p
7798
- } = e, [h, m] = x(!1), [y, g] = x(!1), v = Q(!1), w = Q(null), [I, C] = x(), [b, O] = x(), [T, R] = x(), [S, V] = x(), [A, F] = x(200), P = Q(), { height: _ } = rr(), k = ne(
7796
+ } = e, [h, m] = x(!1), [y, g] = x(!1), v = Q(!1), w = Q(null), [I, C] = x(), [b, O] = x(), [T, R] = x(), [S, V] = x(), [A, F] = x(200), P = Q(), { height: _ } = or(), k = ne(
7799
7797
  pn
7800
7798
  ), { processAction: M } = k || {}, W = ne(
7801
7799
  at
@@ -7820,8 +7818,8 @@ function yp(e, t) {
7820
7818
  limit: Le = Rt,
7821
7819
  setLimit: Pe = void 0
7822
7820
  } = (f ? W : {}) || {}, Fe = N(
7823
- (Ue) => {
7824
- H == null || H(Ue.map((ie) => ({ id: ie }))), p == null || p(Ue);
7821
+ (We) => {
7822
+ H == null || H(We.map((ie) => ({ id: ie }))), p == null || p(We);
7825
7823
  },
7826
7824
  [p, H]
7827
7825
  ), {
@@ -7834,7 +7832,7 @@ function yp(e, t) {
7834
7832
  page: Y,
7835
7833
  limit: Ce,
7836
7834
  offset: Se,
7837
- getResults: He,
7835
+ getResults: Ue,
7838
7836
  requestPageChange: Ne,
7839
7837
  changeSort: re,
7840
7838
  fetchChildrenForRecord: Oe,
@@ -7842,7 +7840,7 @@ function yp(e, t) {
7842
7840
  statusForResults: ge,
7843
7841
  totalItems: et,
7844
7842
  getAllIds: z
7845
- } = sa({
7843
+ } = aa({
7846
7844
  model: I,
7847
7845
  setSearchTreeNameSearch: K,
7848
7846
  setSelectedRowItems: Fe,
@@ -7881,15 +7879,15 @@ function yp(e, t) {
7881
7879
  g(!1), m(!0), V(void 0), pe == null || pe(!0);
7882
7880
  try {
7883
7881
  await Re(), g(!0);
7884
- } catch (Ue) {
7885
- V(Ue), pe == null || pe(!1);
7882
+ } catch (We) {
7883
+ V(We), pe == null || pe(!1);
7886
7884
  } finally {
7887
7885
  m(!1);
7888
7886
  }
7889
7887
  }, Re = async () => {
7890
7888
  C(n);
7891
- let Ue = r;
7892
- r || (Ue = await $.getHandler().getView({
7889
+ let We = r;
7890
+ r || (We = await $.getHandler().getView({
7893
7891
  model: n,
7894
7892
  type: "form",
7895
7893
  context: d
@@ -7899,19 +7897,19 @@ function yp(e, t) {
7899
7897
  model: n,
7900
7898
  type: "tree",
7901
7899
  context: d
7902
- })), R(Ue), O(ie);
7900
+ })), R(We), O(ie);
7903
7901
  };
7904
7902
  ue(() => {
7905
7903
  ye();
7906
7904
  }, [n]);
7907
7905
  const be = N(
7908
- (Ue) => {
7909
- Pe == null || Pe(Ue);
7906
+ (We) => {
7907
+ Pe == null || Pe(We);
7910
7908
  },
7911
7909
  [Pe]
7912
7910
  ), De = N(
7913
- async (Ue) => {
7914
- const { id: ie } = Ue;
7911
+ async (We) => {
7912
+ const { id: ie } = We;
7915
7913
  P.current || (P.current = await $.getHandler().treeButOpen({
7916
7914
  id: b.view_id,
7917
7915
  model: I,
@@ -7923,18 +7921,18 @@ function yp(e, t) {
7923
7921
  fields: b.fields,
7924
7922
  values: {
7925
7923
  active_id: ie,
7926
- ...Ue
7924
+ ...We
7927
7925
  },
7928
7926
  context: d
7929
7927
  }));
7930
7928
  },
7931
7929
  [I, d, M, b]
7932
7930
  ), Ee = N(
7933
- async (Ue) => {
7934
- const { id: ie } = Ue;
7931
+ async (We) => {
7932
+ const { id: ie } = We;
7935
7933
  if (b != null && b.isExpandable) {
7936
7934
  try {
7937
- await De(Ue);
7935
+ await De(We);
7938
7936
  } catch (Me) {
7939
7937
  it(Me);
7940
7938
  }
@@ -7949,14 +7947,14 @@ function yp(e, t) {
7949
7947
  },
7950
7948
  [I, T, s, De, b]
7951
7949
  ), ut = N(async () => {
7952
- const Ue = await z();
7953
- H == null || H(Ue.map((ie) => ({ id: ie }))), p == null || p(Ue);
7950
+ const We = await z();
7951
+ H == null || H(We.map((ie) => ({ id: ie }))), p == null || p(We);
7954
7952
  }, [z, p, H]), ft = me(() => b != null && b.isExpandable ? _ - 160 : _ - (A + 240), [_, A, b == null ? void 0 : b.isExpandable]), Ye = me(
7955
- () => J == null ? void 0 : J.map((Ue) => Ue.id),
7953
+ () => J == null ? void 0 : J.map((We) => We.id),
7956
7954
  [J]
7957
7955
  ), gt = N(() => !b || !T ? null : /* @__PURE__ */ D(ae, { children: [
7958
7956
  /* @__PURE__ */ i(
7959
- vo,
7957
+ wo,
7960
7958
  {
7961
7959
  fields: { ...T.fields, ...b.fields },
7962
7960
  searchFields: Bn([
@@ -7984,7 +7982,7 @@ function yp(e, t) {
7984
7982
  limit: Ce,
7985
7983
  page: Y,
7986
7984
  treeView: b,
7987
- results: He(),
7985
+ results: Ue(),
7988
7986
  onRequestPageChange: Ne,
7989
7987
  loading: Te,
7990
7988
  onRowClicked: Ee,
@@ -8009,7 +8007,7 @@ function yp(e, t) {
8009
8007
  Ke,
8010
8008
  Oe,
8011
8009
  T,
8012
- He,
8010
+ Ue,
8013
8011
  Le,
8014
8012
  Ce,
8015
8013
  Se,
@@ -8033,9 +8031,9 @@ function yp(e, t) {
8033
8031
  l,
8034
8032
  b
8035
8033
  ]), Gt = S || Ae;
8036
- 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(We, {}) : gt() });
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() });
8037
8035
  }
8038
- const aa = yt(yp), wo = ({
8036
+ const la = yt(yp), bo = ({
8039
8037
  visible: e,
8040
8038
  onCloseModal: t,
8041
8039
  onSelectValues: n,
@@ -8044,17 +8042,17 @@ const aa = yt(yp), wo = ({
8044
8042
  domain: s,
8045
8043
  context: a = {}
8046
8044
  }) => {
8047
- const [l, c] = x(!1), [u, f] = x([]), [d, p] = x(!1), { modalWidth: h, modalHeight: m } = rr(), { t: y } = he(), {
8045
+ const [l, c] = x(!1), [u, f] = x([]), [d, p] = x(!1), { modalWidth: h, modalHeight: m } = or(), { t: y } = he(), {
8048
8046
  treeView: g,
8049
8047
  formView: v,
8050
8048
  loading: w
8051
- } = Ss({
8049
+ } = Cs({
8052
8050
  model: r,
8053
8051
  formViewProps: void 0,
8054
8052
  treeViewProps: void 0,
8055
8053
  context: a,
8056
8054
  enabled: e
8057
- }), 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(
8058
8056
  async (F) => {
8059
8057
  p(!0);
8060
8058
  try {
@@ -8080,7 +8078,7 @@ const aa = yt(yp), wo = ({
8080
8078
  }
8081
8079
  C(u);
8082
8080
  }, [u, b, C]), R = me(
8083
- () => I ? oa : aa,
8081
+ () => I ? ia : la,
8084
8082
  [I]
8085
8083
  ), S = N(() => {
8086
8084
  c(!0);
@@ -8121,13 +8119,13 @@ const aa = yt(yp), wo = ({
8121
8119
  filterType: "top"
8122
8120
  }
8123
8121
  ),
8124
- /* @__PURE__ */ i(Yn, {}),
8122
+ /* @__PURE__ */ i(zn, {}),
8125
8123
  /* @__PURE__ */ i(ke, { justify: "end", children: /* @__PURE__ */ D(Je, { children: [
8126
8124
  /* @__PURE__ */ i(
8127
8125
  je,
8128
8126
  {
8129
8127
  disabled: d,
8130
- icon: /* @__PURE__ */ i(er, {}),
8128
+ icon: /* @__PURE__ */ i(tr, {}),
8131
8129
  onClick: S,
8132
8130
  children: y("new")
8133
8131
  }
@@ -8136,7 +8134,7 @@ const aa = yt(yp), wo = ({
8136
8134
  je,
8137
8135
  {
8138
8136
  disabled: d,
8139
- icon: d ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(Qn, {}),
8137
+ icon: d ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(Xn, {}),
8140
8138
  onClick: T,
8141
8139
  type: "primary",
8142
8140
  children: y("ok")
@@ -8158,7 +8156,7 @@ const aa = yt(yp), wo = ({
8158
8156
  }
8159
8157
  )
8160
8158
  ] });
8161
- }, { defaultAlgorithm: vp, defaultSeed: wp } = Ge, la = vp(wp), bp = (e) => {
8159
+ }, { defaultAlgorithm: vp, defaultSeed: wp } = Ge, ca = vp(wp), bp = (e) => {
8162
8160
  const { ooui: t } = e, { required: n } = t;
8163
8161
  return /* @__PURE__ */ i(_e, { required: n, type: "array", validator: async (o, s) => {
8164
8162
  if (!s)
@@ -8167,8 +8165,8 @@ const aa = yt(yp), wo = ({
8167
8165
  throw new Error();
8168
8166
  if (Array.isArray(s) && !s[0])
8169
8167
  throw new Error();
8170
- }, ...e, children: /* @__PURE__ */ i(ca, { ooui: t }) });
8171
- }, ca = (e) => {
8168
+ }, ...e, children: /* @__PURE__ */ i(da, { ooui: t }) });
8169
+ }, da = (e) => {
8172
8170
  const { value: t, onChange: n, ooui: r } = e, {
8173
8171
  required: o,
8174
8172
  relation: s,
@@ -8176,7 +8174,7 @@ const aa = yt(yp), wo = ({
8176
8174
  context: l,
8177
8175
  id: c,
8178
8176
  domain: u
8179
- } = 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] || "";
8180
8178
  ue(() => {
8181
8179
  !Array.isArray(t) && t && J(t);
8182
8180
  }, [t]), ue(() => {
@@ -8273,7 +8271,7 @@ const aa = yt(yp), wo = ({
8273
8271
  onBlur: X,
8274
8272
  onKeyDown: oe,
8275
8273
  suffix: /* @__PURE__ */ i(
8276
- uo,
8274
+ fo,
8277
8275
  {
8278
8276
  id: M,
8279
8277
  model: s,
@@ -8297,7 +8295,7 @@ const aa = yt(yp), wo = ({
8297
8295
  /* @__PURE__ */ i(we, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ i(
8298
8296
  je,
8299
8297
  {
8300
- icon: y ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(Zn, {}),
8298
+ icon: y ? /* @__PURE__ */ i(wt, {}) : /* @__PURE__ */ i(er, {}),
8301
8299
  disabled: a || y,
8302
8300
  onClick: () => {
8303
8301
  I.current = !0, te(W);
@@ -8307,7 +8305,7 @@ const aa = yt(yp), wo = ({
8307
8305
  }
8308
8306
  ) }),
8309
8307
  /* @__PURE__ */ i(
8310
- wo,
8308
+ bo,
8311
8309
  {
8312
8310
  model: s,
8313
8311
  domain: _,
@@ -8342,7 +8340,7 @@ const aa = yt(yp), wo = ({
8342
8340
  ] });
8343
8341
  }, Sp = dn(lt)`
8344
8342
  .ant-input {
8345
- background-color: ${la.colorPrimaryBg};
8343
+ background-color: ${ca.colorPrimaryBg};
8346
8344
  }
8347
8345
  `, yn = mt.createContext(
8348
8346
  null
@@ -8386,7 +8384,7 @@ const aa = yt(yp), wo = ({
8386
8384
  }, h = () => {
8387
8385
  f(!1);
8388
8386
  const y = document.querySelector("#confirm-modal-container");
8389
- y && (qi(y).unmount(), y.remove());
8387
+ y && (Yi(y).unmount(), y.remove());
8390
8388
  };
8391
8389
  return /* @__PURE__ */ i(
8392
8390
  ct,
@@ -8406,10 +8404,10 @@ const aa = yt(yp), wo = ({
8406
8404
  children: t
8407
8405
  }
8408
8406
  );
8409
- }, da = (e) => {
8407
+ }, ua = (e) => {
8410
8408
  const t = document.createElement("div");
8411
8409
  document.body.appendChild(t);
8412
- const n = qi(t);
8410
+ const n = Yi(t);
8413
8411
  return n.render(
8414
8412
  /* @__PURE__ */ i(
8415
8413
  xp,
@@ -8429,11 +8427,11 @@ const aa = yt(yp), wo = ({
8429
8427
  n.unmount(), t.remove();
8430
8428
  }
8431
8429
  };
8432
- }, ua = ({
8430
+ }, fa = ({
8433
8431
  t: e,
8434
8432
  onOk: t
8435
8433
  }) => {
8436
- da({
8434
+ ua({
8437
8435
  title: e("removeItems"),
8438
8436
  icon: /* @__PURE__ */ i(Vt, {}),
8439
8437
  centered: !0,
@@ -8442,11 +8440,11 @@ const aa = yt(yp), wo = ({
8442
8440
  cancelText: e("cancel"),
8443
8441
  onOk: t
8444
8442
  });
8445
- }, fa = ({
8443
+ }, ma = ({
8446
8444
  t: e,
8447
8445
  onOk: t
8448
8446
  }) => {
8449
- da({
8447
+ ua({
8450
8448
  title: e("unlinkItems"),
8451
8449
  icon: /* @__PURE__ */ i(Vt, {}),
8452
8450
  centered: !0,
@@ -8455,7 +8453,7 @@ const aa = yt(yp), wo = ({
8455
8453
  onOk: t,
8456
8454
  cancelText: e("cancel")
8457
8455
  });
8458
- }, { useToken: Ip } = Ge, ma = (e) => {
8456
+ }, { useToken: Ip } = Ge, pa = (e) => {
8459
8457
  const {
8460
8458
  title: t,
8461
8459
  readOnly: n,
@@ -8490,11 +8488,11 @@ const aa = yt(yp), wo = ({
8490
8488
  );
8491
8489
  }
8492
8490
  function I() {
8493
- return /* @__PURE__ */ i(zn, { count: h.length, children: /* @__PURE__ */ i(
8491
+ return /* @__PURE__ */ i(Jn, { count: h.length, children: /* @__PURE__ */ i(
8494
8492
  nt,
8495
8493
  {
8496
8494
  tooltip: d ? "Unlink" : "Delete",
8497
- icon: d ? /* @__PURE__ */ i(rl, {}) : /* @__PURE__ */ i(Zr, {}),
8495
+ icon: d ? /* @__PURE__ */ i(ol, {}) : /* @__PURE__ */ i(Zr, {}),
8498
8496
  onClick: a,
8499
8497
  danger: !d,
8500
8498
  type: d ? "default" : "primary",
@@ -8519,7 +8517,7 @@ const aa = yt(yp), wo = ({
8519
8517
  nt,
8520
8518
  {
8521
8519
  tooltip: "Previous item",
8522
- icon: /* @__PURE__ */ i(Bi, {}),
8520
+ icon: /* @__PURE__ */ i(Hi, {}),
8523
8521
  onClick: u
8524
8522
  }
8525
8523
  ),
@@ -8528,7 +8526,7 @@ const aa = yt(yp), wo = ({
8528
8526
  nt,
8529
8527
  {
8530
8528
  tooltip: "Next item",
8531
- icon: /* @__PURE__ */ i(Hi, {}),
8529
+ icon: /* @__PURE__ */ i(Ui, {}),
8532
8530
  onClick: f
8533
8531
  }
8534
8532
  )
@@ -8541,7 +8539,7 @@ const aa = yt(yp), wo = ({
8541
8539
  nt,
8542
8540
  {
8543
8541
  tooltip: "Create new item",
8544
- icon: /* @__PURE__ */ i(er, {}),
8542
+ icon: /* @__PURE__ */ i(tr, {}),
8545
8543
  disabled: n,
8546
8544
  onClick: r
8547
8545
  }
@@ -8552,7 +8550,7 @@ const aa = yt(yp), wo = ({
8552
8550
  nt,
8553
8551
  {
8554
8552
  tooltip: "Search existing item",
8555
- icon: /* @__PURE__ */ i(Zn, {}),
8553
+ icon: /* @__PURE__ */ i(er, {}),
8556
8554
  disabled: n,
8557
8555
  onClick: p
8558
8556
  }
@@ -8566,15 +8564,15 @@ const aa = yt(yp), wo = ({
8566
8564
  nt,
8567
8565
  {
8568
8566
  tooltip: "Toggle view mode",
8569
- icon: /* @__PURE__ */ i(nl, {}),
8567
+ icon: /* @__PURE__ */ i(rl, {}),
8570
8568
  onClick: o
8571
8569
  }
8572
8570
  )
8573
8571
  ] })
8574
8572
  ] });
8575
8573
  }, Tp = {
8576
- form: ki,
8577
- tree: Vi,
8574
+ form: $i,
8575
+ tree: Ei,
8578
8576
  graph: un
8579
8577
  };
8580
8578
  function Op(e) {
@@ -8628,7 +8626,7 @@ const Fp = (e) => {
8628
8626
  var ye, Re, be;
8629
8627
  b(!0), I(!1), T(void 0);
8630
8628
  try {
8631
- const [De, Ee] = await so({
8629
+ const [De, Ee] = await ao({
8632
8630
  treeView: {
8633
8631
  arch: (ye = o.get("tree")) == null ? void 0 : ye.arch,
8634
8632
  fields: (Re = o.get("tree")) == null ? void 0 : Re.fields
@@ -8705,7 +8703,7 @@ const Fp = (e) => {
8705
8703
  }) : z();
8706
8704
  }, fe = () => {
8707
8705
  if (L) {
8708
- fa({
8706
+ ma({
8709
8707
  t: v,
8710
8708
  onOk: async () => {
8711
8709
  a === "form" ? Ce() : Se();
@@ -8713,7 +8711,7 @@ const Fp = (e) => {
8713
8711
  });
8714
8712
  return;
8715
8713
  }
8716
- ua({
8714
+ fa({
8717
8715
  t: v,
8718
8716
  onOk: async () => {
8719
8717
  a === "form" ? Ce() : Se();
@@ -8759,7 +8757,7 @@ const Fp = (e) => {
8759
8757
  T(ye);
8760
8758
  }
8761
8759
  u(0), b(!1);
8762
- }, He = (z, ye, Re, be = !1) => {
8760
+ }, Ue = (z, ye, Re, be = !1) => {
8763
8761
  let De;
8764
8762
  if (be)
8765
8763
  De = s.concat({
@@ -8776,7 +8774,7 @@ const Fp = (e) => {
8776
8774
  treeValues: { ...Re, id: z }
8777
8775
  } : Ee);
8778
8776
  else {
8779
- const Ee = as(s);
8777
+ const Ee = ls(s);
8780
8778
  De = s.concat({
8781
8779
  id: Ee,
8782
8780
  operation: "pendingCreate",
@@ -8823,7 +8821,7 @@ const Fp = (e) => {
8823
8821
  function Oe() {
8824
8822
  const z = Tp[a];
8825
8823
  if (a === "graph")
8826
- return Pi(o.get("graph").arch).string;
8824
+ return ki(o.get("graph").arch).string;
8827
8825
  {
8828
8826
  const ye = new z(o.get(a).fields);
8829
8827
  return ye.parse(o.get(a).arch), ye.string;
@@ -8832,7 +8830,7 @@ const Fp = (e) => {
8832
8830
  const Ke = () => {
8833
8831
  var ye, Re, be, De;
8834
8832
  if (a === "form")
8835
- return le.length === 0 ? v("noCurrentEntries") : a !== K.current && s.some((Ee) => !Ee.values) ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ i(
8833
+ return le.length === 0 ? v("noCurrentEntries") : a !== K.current && s.some((Ee) => !Ee.values) ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(
8836
8834
  hn,
8837
8835
  {
8838
8836
  formView: o.get("form"),
@@ -8900,9 +8898,9 @@ const Fp = (e) => {
8900
8898
  if (O)
8901
8899
  return /* @__PURE__ */ i(rt, { className: "mt-10", message: O, type: "error", banner: !0 });
8902
8900
  const ge = M;
8903
- return C ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ D(ae, { children: [
8901
+ return C ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ D(ae, { children: [
8904
8902
  /* @__PURE__ */ i(
8905
- ma,
8903
+ pa,
8906
8904
  {
8907
8905
  mode: a,
8908
8906
  title: Oe(),
@@ -8933,7 +8931,7 @@ const Fp = (e) => {
8933
8931
  values: F == null ? void 0 : F.values,
8934
8932
  defaultValues: F == null ? void 0 : F.defaultValues,
8935
8933
  visible: R,
8936
- onSubmitSucceed: He,
8934
+ onSubmitSucceed: Ue,
8937
8935
  parentContext: { ...m == null ? void 0 : m(), ...B },
8938
8936
  onCancel: () => {
8939
8937
  W(!1), S(!1);
@@ -8946,7 +8944,7 @@ const Fp = (e) => {
8946
8944
  }
8947
8945
  ),
8948
8946
  /* @__PURE__ */ i(
8949
- wo,
8947
+ bo,
8950
8948
  {
8951
8949
  domain: j.current,
8952
8950
  model: Z,
@@ -9013,7 +9011,7 @@ const Fp = (e) => {
9013
9011
  endRow: y,
9014
9012
  sortFields: g
9015
9013
  }) => {
9016
- const v = is(g), { realItemsIds: w, otherItems: I } = Ec({
9014
+ const v = ss(g), { realItemsIds: w, otherItems: I } = Ec({
9017
9015
  allItems: h,
9018
9016
  ...v ? {} : { range: { startRow: m, endRow: y } }
9019
9017
  });
@@ -9207,13 +9205,13 @@ const Fp = (e) => {
9207
9205
  }, [n, c, r, u, t]), p = N(async () => l === "form" ? await d() : await f(), [l, d, f]);
9208
9206
  return { showRemoveConfirm: N(() => {
9209
9207
  if (e) {
9210
- fa({
9208
+ ma({
9211
9209
  t: a,
9212
9210
  onOk: p
9213
9211
  });
9214
9212
  return;
9215
9213
  }
9216
- ua({
9214
+ fa({
9217
9215
  t: a,
9218
9216
  onOk: p
9219
9217
  });
@@ -9266,7 +9264,7 @@ const kp = ({
9266
9264
  treeValues: { ...T, id: b }
9267
9265
  } : V);
9268
9266
  else {
9269
- const V = as(o);
9267
+ const V = ls(o);
9270
9268
  S = o.concat({
9271
9269
  id: V,
9272
9270
  operation: "pendingCreate",
@@ -9333,11 +9331,11 @@ const kp = ({
9333
9331
  m.push({
9334
9332
  id: v.id,
9335
9333
  operation: "pendingLink",
9336
- values: $o({
9334
+ values: No({
9337
9335
  values: v,
9338
9336
  fields: ["id", ...Object.keys(s.get("form").fields)]
9339
9337
  }),
9340
- treeValues: $o({
9338
+ treeValues: No({
9341
9339
  values: v,
9342
9340
  fields: ["id", ...Object.keys(s.get("tree").fields)]
9343
9341
  })
@@ -9388,10 +9386,10 @@ const kp = ({
9388
9386
  }
9389
9387
  b.current = e, (k = w == null ? void 0 : w.current) == null || k.refresh(), (M = w == null ? void 0 : w.current) == null || M.unselectAll();
9390
9388
  }, [e]);
9391
- const R = Tn(() => e.length, [e]), S = Tn(() => io(
9389
+ const R = Tn(() => e.length, [e]), S = Tn(() => so(
9392
9390
  o,
9393
9391
  {
9394
- ...mo
9392
+ ...po
9395
9393
  },
9396
9394
  s
9397
9395
  ), [s, o]), V = N(
@@ -9413,14 +9411,14 @@ const kp = ({
9413
9411
  var M, W, j, E;
9414
9412
  if (I.current[(W = (M = k.node) == null ? void 0 : M.data) == null ? void 0 : W.id])
9415
9413
  return { color: I.current[(E = (j = k.node) == null ? void 0 : j.data) == null ? void 0 : E.id] };
9416
- }, []), { loading: F, getColumnState: P, updateColumnState: _ } = Os(
9414
+ }, []), { loading: F, getColumnState: P, updateColumnState: _ } = Fs(
9417
9415
  Np({
9418
9416
  ...h,
9419
9417
  model: u
9420
9418
  })
9421
9419
  );
9422
- return F ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ i(
9423
- zi,
9420
+ return F ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(
9421
+ Ji,
9424
9422
  {
9425
9423
  ref: w,
9426
9424
  height: t || Mp,
@@ -9438,9 +9436,9 @@ const kp = ({
9438
9436
  selectedRowKeys: y,
9439
9437
  onSelectionCheckboxClicked: p,
9440
9438
  totalRows: R,
9441
- footer: m && /* @__PURE__ */ i(As, { aggregates: m, isLoading: !1 }),
9439
+ footer: m && /* @__PURE__ */ i(Rs, { aggregates: m, isLoading: !1 }),
9442
9440
  hasStatusColumn: o.status !== null,
9443
- statusComponent: (k) => /* @__PURE__ */ i(zn, { color: k, style: { marginLeft: 7 } }),
9441
+ statusComponent: (k) => /* @__PURE__ */ i(Jn, { color: k, style: { marginLeft: 7 } }),
9444
9442
  onRowStatus: (k) => {
9445
9443
  var M;
9446
9444
  return (M = C.current) == null ? void 0 : M[k.id];
@@ -9458,7 +9456,7 @@ const kp = ({
9458
9456
  }) => {
9459
9457
  const o = t.filter((a) => a.id && a.id > 0);
9460
9458
  let s;
9461
- 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({
9462
9460
  ooui: e,
9463
9461
  model: r,
9464
9462
  domain: s
@@ -9596,7 +9594,7 @@ const kp = ({
9596
9594
  }, [s]);
9597
9595
  return /* @__PURE__ */ D(ae, { children: [
9598
9596
  /* @__PURE__ */ i(
9599
- ma,
9597
+ pa,
9600
9598
  {
9601
9599
  mode: c,
9602
9600
  title: W,
@@ -9674,7 +9672,7 @@ const kp = ({
9674
9672
  }
9675
9673
  ),
9676
9674
  /* @__PURE__ */ i(
9677
- wo,
9675
+ bo,
9678
9676
  {
9679
9677
  domain: R,
9680
9678
  model: h,
@@ -9730,7 +9728,7 @@ const kp = ({
9730
9728
  u(!1);
9731
9729
  }
9732
9730
  };
9733
- return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(We, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Cp, { initialView: l, children: /* @__PURE__ */ i(
9731
+ return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(He, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Cp, { initialView: l, children: /* @__PURE__ */ i(
9734
9732
  _e,
9735
9733
  {
9736
9734
  required: s,
@@ -9766,7 +9764,7 @@ const kp = ({
9766
9764
  }, Yp = (e) => {
9767
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 || {};
9768
9766
  ue(() => {
9769
- d(Cs(n));
9767
+ d(xs(n));
9770
9768
  }, [n]);
9771
9769
  const m = (v) => {
9772
9770
  r == null || r(v);
@@ -9791,23 +9789,23 @@ const kp = ({
9791
9789
  }
9792
9790
  );
9793
9791
  };
9794
- function pa(e) {
9792
+ function ha(e) {
9795
9793
  const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = dt(t.icon || "");
9796
- return /* @__PURE__ */ i(ae, { children: (t.label || o) && n ? /* @__PURE__ */ i(hl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
9797
- Ar,
9794
+ return /* @__PURE__ */ i(ae, { children: (t.label || o) && n ? /* @__PURE__ */ i(gl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
9795
+ Gn,
9798
9796
  {
9799
9797
  container: t.container,
9800
9798
  responsiveBehaviour: r
9801
9799
  }
9802
9800
  ) }) : /* @__PURE__ */ i(
9803
- Ar,
9801
+ Gn,
9804
9802
  {
9805
9803
  container: t.container,
9806
9804
  responsiveBehaviour: r
9807
9805
  }
9808
9806
  ) });
9809
9807
  }
9810
- const { TabPane: zp } = _i;
9808
+ const { TabPane: zp } = Vi;
9811
9809
  function Jp(e) {
9812
9810
  const { ooui: t, responsiveBehaviour: n } = e, r = t.pages;
9813
9811
  function o(s) {
@@ -9816,7 +9814,7 @@ function Jp(e) {
9816
9814
  return a && /* @__PURE__ */ i(a, {});
9817
9815
  }
9818
9816
  }
9819
- 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(
9820
9818
  zp,
9821
9819
  {
9822
9820
  tab: /* @__PURE__ */ D(ae, { children: [
@@ -9825,7 +9823,7 @@ function Jp(e) {
9825
9823
  s.label
9826
9824
  ] }),
9827
9825
  children: /* @__PURE__ */ i(
9828
- pa,
9826
+ ha,
9829
9827
  {
9830
9828
  ooui: s,
9831
9829
  showLabel: !1,
@@ -9906,7 +9904,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
9906
9904
  }
9907
9905
  ),
9908
9906
  /* @__PURE__ */ i(
9909
- Zi,
9907
+ es,
9910
9908
  {
9911
9909
  id: a,
9912
9910
  model: l,
@@ -9941,7 +9939,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
9941
9939
  nt,
9942
9940
  {
9943
9941
  tooltip: h("translate"),
9944
- icon: /* @__PURE__ */ i(ji, {}),
9942
+ icon: /* @__PURE__ */ i(Bi, {}),
9945
9943
  onClick: async () => {
9946
9944
  u != null && u() ? xt(h("saveBeforeTranslate")) : xt(h("enterTextBeforeTranslate"));
9947
9945
  },
@@ -9951,7 +9949,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
9951
9949
  ] });
9952
9950
  }, eh = (e) => {
9953
9951
  const { ooui: t } = e, { label: n, icon: r } = t, o = dt(r || "");
9954
- return /* @__PURE__ */ i(Yn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ D(Je, { children: [
9952
+ return /* @__PURE__ */ i(zn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ D(Je, { children: [
9955
9953
  o ? /* @__PURE__ */ i(o, {}) : null,
9956
9954
  n
9957
9955
  ] }) });
@@ -9986,7 +9984,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
9986
9984
  });
9987
9985
  s(), await new Promise((C) => setTimeout(C, 200));
9988
9986
  const I = await nn(w);
9989
- or(w, I.mime);
9987
+ ir(w, I.mime);
9990
9988
  },
9991
9989
  [r, n, e, o, t, s, c]
9992
9990
  ), f = N(async () => {
@@ -9995,7 +9993,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
9995
9993
  context: t,
9996
9994
  fields: []
9997
9995
  });
9998
- return a.current["/"] = g, xi({ fields: g });
9996
+ return a.current["/"] = g, Ii({ fields: g });
9999
9997
  }, [e, t, a]), d = N(
10000
9998
  async (g) => {
10001
9999
  const w = Hr(g, a.current)[Br(g)], I = w.relation, C = await $.getHandler().getFields({
@@ -10008,7 +10006,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10008
10006
  parentTitle: w.string,
10009
10007
  title: O.string
10010
10008
  });
10011
- return a.current[g] = C, xi({
10009
+ return a.current[g] = C, Ii({
10012
10010
  fields: C,
10013
10011
  parentKey: g
10014
10012
  });
@@ -10089,13 +10087,13 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10089
10087
  onSavePredefinedExport: y,
10090
10088
  onRemovePredefinedExport: h
10091
10089
  };
10092
- }, xi = ({
10090
+ }, Ii = ({
10093
10091
  fields: e,
10094
10092
  parentKey: t
10095
10093
  }) => {
10096
10094
  const n = [];
10097
10095
  for (const r of Object.keys(e)) {
10098
- 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;
10099
10097
  n.push({
10100
10098
  key: nh({ key: r, parentKey: t }),
10101
10099
  title: o.string,
@@ -10105,7 +10103,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10105
10103
  });
10106
10104
  }
10107
10105
  return n;
10108
- }, 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 = ({
10109
10107
  parentKey: e,
10110
10108
  key: t
10111
10109
  }) => `${e ? e + "/" : ""}${t}`, jr = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Br = (e) => {
@@ -10171,7 +10169,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10171
10169
  keys: e,
10172
10170
  fields: t
10173
10171
  }) => e.map((n) => {
10174
- 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;
10175
10173
  return a && !l ? `${n}/id` : n;
10176
10174
  }), lh = (e) => {
10177
10175
  const t = /* @__PURE__ */ new Map(), n = [];
@@ -10214,7 +10212,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10214
10212
  onClose: n
10215
10213
  });
10216
10214
  return /* @__PURE__ */ i(
10217
- gl,
10215
+ yl,
10218
10216
  {
10219
10217
  visible: t,
10220
10218
  onSucceed: f,
@@ -10231,10 +10229,10 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10231
10229
  );
10232
10230
  }, dh = (e) => {
10233
10231
  const { ooui: t } = e;
10234
- return /* @__PURE__ */ i(Is, { ooui: t });
10232
+ return /* @__PURE__ */ i(Ts, { ooui: t });
10235
10233
  }, uh = (e) => {
10236
10234
  const { ooui: t } = e;
10237
- return /* @__PURE__ */ i(Is, { ooui: t, showTime: !0 });
10235
+ return /* @__PURE__ */ i(Ts, { ooui: t, showTime: !0 });
10238
10236
  }, fh = (e) => {
10239
10237
  const { ooui: t } = e;
10240
10238
  return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(mh, { ooui: t }) });
@@ -10261,7 +10259,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10261
10259
  f([m, void 0]), p(h);
10262
10260
  }, [t]), /* @__PURE__ */ D(ke, { gutter: 8, wrap: !1, children: [
10263
10261
  /* @__PURE__ */ i(we, { flex: "1", children: /* @__PURE__ */ i(
10264
- ns,
10262
+ rs,
10265
10263
  {
10266
10264
  ooui: new Kr({
10267
10265
  name: "model_selection",
@@ -10280,9 +10278,9 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10280
10278
  }
10281
10279
  ) }),
10282
10280
  /* @__PURE__ */ i(we, { flex: "3", children: /* @__PURE__ */ i(
10283
- ca,
10281
+ da,
10284
10282
  {
10285
- ooui: new Ei({
10283
+ ooui: new Di({
10286
10284
  name: "object_value",
10287
10285
  relation: d,
10288
10286
  readonly: a,
@@ -10311,11 +10309,11 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10311
10309
  }
10312
10310
  async function g() {
10313
10311
  const I = await nn(n);
10314
- or(n, I.mime);
10312
+ ir(n, I.mime);
10315
10313
  }
10316
10314
  async function v(I) {
10317
10315
  I.stopPropagation(), I.preventDefault();
10318
- const C = I.target.files[0], b = await rs(C);
10316
+ const C = I.target.files[0], b = await os(C);
10319
10317
  m(b), a && f(a, C.name);
10320
10318
  }
10321
10319
  function w() {
@@ -10355,7 +10353,7 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10355
10353
  children: "Select"
10356
10354
  }
10357
10355
  ),
10358
- /* @__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") }),
10359
10357
  /* @__PURE__ */ i(
10360
10358
  nt,
10361
10359
  {
@@ -10371,21 +10369,21 @@ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
10371
10369
  tooltip: p("clear"),
10372
10370
  disabled: o || !n,
10373
10371
  onClick: w,
10374
- icon: /* @__PURE__ */ i(Xn, {})
10372
+ icon: /* @__PURE__ */ i(Zn, {})
10375
10373
  }
10376
10374
  )
10377
10375
  ] }) })
10378
10376
  ] });
10379
- }, xr = {
10377
+ }, Ir = {
10380
10378
  tree: /* @__PURE__ */ i(eo, {}),
10381
10379
  form: /* @__PURE__ */ i(xn, {}),
10382
- graph: /* @__PURE__ */ i(il, {}),
10383
- calendar: /* @__PURE__ */ i(sl, {})
10380
+ graph: /* @__PURE__ */ i(sl, {}),
10381
+ calendar: /* @__PURE__ */ i(al, {})
10384
10382
  };
10385
- function Ii(e) {
10386
- return e ? (xr == null ? void 0 : xr[e.type]) || /* @__PURE__ */ i(xn, {}) : /* @__PURE__ */ i(xn, {});
10383
+ function Ti(e) {
10384
+ return e ? (Ir == null ? void 0 : Ir[e.type]) || /* @__PURE__ */ i(xn, {}) : /* @__PURE__ */ i(xn, {});
10387
10385
  }
10388
- function bo(e) {
10386
+ function So(e) {
10389
10387
  const {
10390
10388
  currentView: t,
10391
10389
  availableViews: n,
@@ -10401,7 +10399,7 @@ function bo(e) {
10401
10399
  return {
10402
10400
  id: d.view_id || p,
10403
10401
  name: d.title || h,
10404
- icon: Ii(d),
10402
+ icon: Ti(d),
10405
10403
  selected: t.view_id === d.view_id
10406
10404
  };
10407
10405
  })
@@ -10432,7 +10430,7 @@ function bo(e) {
10432
10430
  nt,
10433
10431
  {
10434
10432
  tooltip: a ? l("viewAs") + " " + l(a.type) : "",
10435
- icon: Ii(a),
10433
+ icon: Ti(a),
10436
10434
  style: {
10437
10435
  width: 50,
10438
10436
  borderTopRightRadius: 0,
@@ -10445,7 +10443,7 @@ function bo(e) {
10445
10443
  }
10446
10444
  ),
10447
10445
  /* @__PURE__ */ i(
10448
- Ki,
10446
+ qi,
10449
10447
  {
10450
10448
  onRetrieveData: async () => c,
10451
10449
  onItemClick: f,
@@ -10459,7 +10457,7 @@ function bo(e) {
10459
10457
  borderTopLeftRadius: 0,
10460
10458
  borderBottomLeftRadius: 0
10461
10459
  },
10462
- icon: /* @__PURE__ */ i(Jn, { style: { fontSize: "0.5em" } }),
10460
+ icon: /* @__PURE__ */ i(Qn, { style: { fontSize: "0.5em" } }),
10463
10461
  onClick: (d) => d.preventDefault()
10464
10462
  }
10465
10463
  )
@@ -10493,8 +10491,8 @@ function ot(e) {
10493
10491
  }
10494
10492
  );
10495
10493
  }
10496
- const ga = (e) => /* @__PURE__ */ i(ot, { ...e, type: "primary", danger: !0 });
10497
- function ya(e) {
10494
+ const ya = (e) => /* @__PURE__ */ i(ot, { ...e, type: "primary", danger: !0 });
10495
+ function va(e) {
10498
10496
  const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = ne(
10499
10497
  at
10500
10498
  ), { t: o } = he(), s = () => {
@@ -10512,7 +10510,7 @@ function ya(e) {
10512
10510
  return /* @__PURE__ */ i(
10513
10511
  ot,
10514
10512
  {
10515
- icon: /* @__PURE__ */ i(er, {}),
10513
+ icon: /* @__PURE__ */ i(tr, {}),
10516
10514
  tooltip: o("new"),
10517
10515
  onClick: s,
10518
10516
  disabled: t,
@@ -10520,7 +10518,7 @@ function ya(e) {
10520
10518
  }
10521
10519
  );
10522
10520
  }
10523
- async function va(e, t, n) {
10521
+ async function wa(e, t, n) {
10524
10522
  const r = (await $.getHandler().getLogInfo({
10525
10523
  model: e,
10526
10524
  ids: [t]
@@ -10553,18 +10551,18 @@ const wh = (e) => {
10553
10551
  onOpenAttachmentDetail: a,
10554
10552
  onListAllAttachments: l
10555
10553
  } = e, { t: c } = he(), u = Q(null), f = /* @__PURE__ */ D(je, { children: [
10556
- /* @__PURE__ */ i(Ao, {}),
10554
+ /* @__PURE__ */ i(Ro, {}),
10557
10555
  `(${t})`,
10558
- /* @__PURE__ */ i(Jn, { style: { fontSize: 12 } })
10556
+ /* @__PURE__ */ i(Qn, { style: { fontSize: 12 } })
10559
10557
  ] });
10560
10558
  return /* @__PURE__ */ i(
10561
- Ki,
10559
+ qi,
10562
10560
  {
10563
10561
  ref: u,
10564
10562
  onRetrieveData: async () => [
10565
10563
  {
10566
10564
  items: n.map((d) => {
10567
- 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: [
10568
10566
  /* @__PURE__ */ i(we, { style: { textAlign: "center" }, children: (d.datas_fname || d.link) && /* @__PURE__ */ i(
10569
10567
  Ft,
10570
10568
  {
@@ -10630,7 +10628,7 @@ const wh = (e) => {
10630
10628
  (d = u.current) == null || d.close(), o();
10631
10629
  },
10632
10630
  children: [
10633
- /* @__PURE__ */ i(er, {}),
10631
+ /* @__PURE__ */ i(tr, {}),
10634
10632
  " ",
10635
10633
  c("addNewAttachment")
10636
10634
  ]
@@ -10691,7 +10689,7 @@ function bh(e) {
10691
10689
  if (p(!1), !!w)
10692
10690
  if (w.datas) {
10693
10691
  const I = await nn(w.datas);
10694
- or(w.datas, I.mime);
10692
+ ir(w.datas, I.mime);
10695
10693
  } else
10696
10694
  s(w);
10697
10695
  },
@@ -10727,7 +10725,7 @@ function bh(e) {
10727
10725
  closable: !1,
10728
10726
  centered: !0,
10729
10727
  maskClosable: !1,
10730
- children: /* @__PURE__ */ i(We, {})
10728
+ children: /* @__PURE__ */ i(He, {})
10731
10729
  }
10732
10730
  )
10733
10731
  ] });
@@ -10741,13 +10739,13 @@ const Sh = () => {
10741
10739
  setCurrentItemIndex: o,
10742
10740
  results: s,
10743
10741
  searchQuery: a
10744
- } = lo(), [l, c] = ze(
10742
+ } = co(), [l, c] = ze(
10745
10743
  $.getHandler().searchForTree
10746
10744
  );
10747
10745
  ue(() => () => {
10748
10746
  c();
10749
10747
  }, [c]);
10750
- const u = bs(), f = N(
10748
+ const u = Ss(), f = N(
10751
10749
  async (g) => {
10752
10750
  var v;
10753
10751
  try {
@@ -10846,7 +10844,7 @@ function Ch({ toolbar: e }) {
10846
10844
  setPreviousView: F,
10847
10845
  goToResourceId: P,
10848
10846
  isActive: _
10849
- } = 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(
10850
10848
  (H) => {
10851
10849
  f ? mn({ t: r, onOk: H }) : H();
10852
10850
  },
@@ -10929,15 +10927,15 @@ function Ch({ toolbar: e }) {
10929
10927
  [_, A, l, F, c]
10930
10928
  ), l ? /* @__PURE__ */ D(Je, { wrap: !0, children: [
10931
10929
  T && /* @__PURE__ */ D(ae, { children: [
10932
- /* @__PURE__ */ i(We, {}),
10930
+ /* @__PURE__ */ i(He, {}),
10933
10931
  Yt(),
10934
10932
  Yt()
10935
10933
  ] }),
10936
- /* @__PURE__ */ i(ya, { disabled: j }),
10934
+ /* @__PURE__ */ i(va, { disabled: j }),
10937
10935
  /* @__PURE__ */ i(
10938
10936
  ot,
10939
10937
  {
10940
- icon: /* @__PURE__ */ i(al, {}),
10938
+ icon: /* @__PURE__ */ i(ll, {}),
10941
10939
  tooltip: r("save"),
10942
10940
  disabled: !f || j,
10943
10941
  loading: d,
@@ -10959,7 +10957,7 @@ function Ch({ toolbar: e }) {
10959
10957
  }
10960
10958
  ),
10961
10959
  /* @__PURE__ */ i(
10962
- ga,
10960
+ ya,
10963
10961
  {
10964
10962
  icon: /* @__PURE__ */ i(Zr, {}),
10965
10963
  tooltip: r("delete"),
@@ -10976,16 +10974,16 @@ function Ch({ toolbar: e }) {
10976
10974
  /* @__PURE__ */ i(
10977
10975
  ot,
10978
10976
  {
10979
- icon: /* @__PURE__ */ i(Ui, {}),
10977
+ icon: /* @__PURE__ */ i(Wi, {}),
10980
10978
  tooltip: r("showLogs"),
10981
10979
  disabled: j || p === void 0,
10982
- onClick: () => va(v, p, r)
10980
+ onClick: () => wa(v, p, r)
10983
10981
  }
10984
10982
  ),
10985
10983
  /* @__PURE__ */ i(
10986
10984
  ot,
10987
10985
  {
10988
- icon: /* @__PURE__ */ i(tr, {}),
10986
+ icon: /* @__PURE__ */ i(nr, {}),
10989
10987
  tooltip: r("refresh"),
10990
10988
  disabled: j || p === void 0,
10991
10989
  onClick: () => E(() => S.current.fetchValues())
@@ -10993,7 +10991,7 @@ function Ch({ toolbar: e }) {
10993
10991
  ),
10994
10992
  Yt(),
10995
10993
  /* @__PURE__ */ i(
10996
- bo,
10994
+ So,
10997
10995
  {
10998
10996
  currentView: l,
10999
10997
  previousView: A,
@@ -11010,7 +11008,7 @@ function Ch({ toolbar: e }) {
11010
11008
  /* @__PURE__ */ i(
11011
11009
  ot,
11012
11010
  {
11013
- icon: /* @__PURE__ */ i(Bi, {}),
11011
+ icon: /* @__PURE__ */ i(Hi, {}),
11014
11012
  tooltip: r("previous"),
11015
11013
  disabled: j,
11016
11014
  onClick: () => E(s)
@@ -11019,7 +11017,7 @@ function Ch({ toolbar: e }) {
11019
11017
  /* @__PURE__ */ i(
11020
11018
  ot,
11021
11019
  {
11022
- icon: /* @__PURE__ */ i(Hi, {}),
11020
+ icon: /* @__PURE__ */ i(Ui, {}),
11023
11021
  tooltip: r("next"),
11024
11022
  disabled: j,
11025
11023
  onClick: () => E(o)
@@ -11092,7 +11090,7 @@ function Ch({ toolbar: e }) {
11092
11090
  onAddNewAttachment: async () => {
11093
11091
  const H = await zt({ onFormSave: u });
11094
11092
  H.succeed && W({
11095
- ...Ti(
11093
+ ...Oi(
11096
11094
  v,
11097
11095
  H.currentId
11098
11096
  ),
@@ -11102,7 +11100,7 @@ function Ch({ toolbar: e }) {
11102
11100
  onListAllAttachments: async () => {
11103
11101
  const H = await zt({ onFormSave: u });
11104
11102
  H.succeed && W({
11105
- ...Ti(
11103
+ ...Oi(
11106
11104
  v,
11107
11105
  H.currentId
11108
11106
  ),
@@ -11125,7 +11123,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11125
11123
  }) => {
11126
11124
  const t = await (e == null ? void 0 : e());
11127
11125
  return t != null && t.succeed ? { succeed: !0, currentId: t.id } : { succeed: !1, currentId: void 0 };
11128
- }, Ti = (e, t) => ({
11126
+ }, Oi = (e, t) => ({
11129
11127
  model: "ir.attachment",
11130
11128
  domain: [
11131
11129
  ["res_model", "=", e],
@@ -11133,7 +11131,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11133
11131
  ],
11134
11132
  values: { selection_associated_object: `${e},${t}` },
11135
11133
  forced_values: { res_model: e, res_id: t }
11136
- }), { useToken: xh } = Ge, wa = (e) => {
11134
+ }), { useToken: xh } = Ge, ba = (e) => {
11137
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);
11138
11136
  ue(() => {
11139
11137
  l && !h && g(!1), !n && !l && (m(!0), g(!0));
@@ -11145,7 +11143,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11145
11143
  l ? null : /* @__PURE__ */ i(we, { flex: "none", children: h ? /* @__PURE__ */ i(
11146
11144
  je,
11147
11145
  {
11148
- icon: /* @__PURE__ */ i(Qn, {}),
11146
+ icon: /* @__PURE__ */ i(Xn, {}),
11149
11147
  onClick: () => {
11150
11148
  o(n) && (m(!1), g(!1));
11151
11149
  },
@@ -11155,7 +11153,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11155
11153
  ) : /* @__PURE__ */ i(
11156
11154
  je,
11157
11155
  {
11158
- icon: /* @__PURE__ */ i(Wi, {}),
11156
+ icon: /* @__PURE__ */ i(Gi, {}),
11159
11157
  onClick: () => {
11160
11158
  m(!0), g(!0);
11161
11159
  },
@@ -11192,7 +11190,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11192
11190
  }, Ih = (e) => {
11193
11191
  const { ooui: t } = e, { required: n } = t;
11194
11192
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
11195
- wa,
11193
+ ba,
11196
11194
  {
11197
11195
  ooui: t,
11198
11196
  valueValidator: (r) => r ? Bl(r) : !1
@@ -11201,7 +11199,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11201
11199
  }, Th = (e) => {
11202
11200
  const { ooui: t } = e, { required: n } = t;
11203
11201
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(fu, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
11204
- wa,
11202
+ ba,
11205
11203
  {
11206
11204
  ooui: t,
11207
11205
  linkPrefix: "mailto:",
@@ -11261,7 +11259,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11261
11259
  tabIndex: 1,
11262
11260
  loading: o,
11263
11261
  style: { marginLeft: 15 },
11264
- icon: /* @__PURE__ */ i(ll, {}),
11262
+ icon: /* @__PURE__ */ i(cl, {}),
11265
11263
  htmlType: "submit",
11266
11264
  disabled: o,
11267
11265
  onClick: () => {
@@ -11291,7 +11289,7 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11291
11289
  }
11292
11290
  );
11293
11291
  }, { useToken: Fh } = Ge;
11294
- function ba(e) {
11292
+ function Sa(e) {
11295
11293
  const { badgeNumber: t = 0, ...n } = e, { token: r } = Fh();
11296
11294
  return /* @__PURE__ */ D("div", { style: { position: "relative" }, children: [
11297
11295
  t > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
@@ -11333,10 +11331,10 @@ function Ah({ refreshGraph: e }) {
11333
11331
  } = ne(at);
11334
11332
  return /* @__PURE__ */ D(Je, { wrap: !0, children: [
11335
11333
  /* @__PURE__ */ i(
11336
- ba,
11334
+ Sa,
11337
11335
  {
11338
11336
  icon: /* @__PURE__ */ i(
11339
- Gi,
11337
+ Ki,
11340
11338
  {
11341
11339
  style: { color: a ? "white" : void 0 }
11342
11340
  }
@@ -11353,7 +11351,7 @@ function Ah({ refreshGraph: e }) {
11353
11351
  /* @__PURE__ */ i(
11354
11352
  ot,
11355
11353
  {
11356
- icon: /* @__PURE__ */ i(tr, {}),
11354
+ icon: /* @__PURE__ */ i(nr, {}),
11357
11355
  tooltip: t("refresh"),
11358
11356
  disabled: c,
11359
11357
  loading: !1,
@@ -11363,7 +11361,7 @@ function Ah({ refreshGraph: e }) {
11363
11361
  }
11364
11362
  ),
11365
11363
  /* @__PURE__ */ i(
11366
- bo,
11364
+ So,
11367
11365
  {
11368
11366
  currentView: r,
11369
11367
  availableViews: n,
@@ -11376,7 +11374,7 @@ function Ah({ refreshGraph: e }) {
11376
11374
  )
11377
11375
  ] });
11378
11376
  }
11379
- const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, lr = ({
11377
+ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, cr = ({
11380
11378
  title: e,
11381
11379
  children: t,
11382
11380
  showSummary: n = !0
@@ -11511,7 +11509,7 @@ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, lr = ({
11511
11509
  }, [S]), ue(() => {
11512
11510
  t.view_id !== F.view_id && _(!0);
11513
11511
  }, [F]);
11514
- 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({
11515
11513
  model: r,
11516
11514
  setSearchTreeNameSearch: b,
11517
11515
  setSelectedRowItems: m,
@@ -11535,7 +11533,7 @@ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, lr = ({
11535
11533
  setLimit: R
11536
11534
  });
11537
11535
  return !n || !t ? null : /* @__PURE__ */ D(ae, { children: [
11538
- /* @__PURE__ */ i(lr, { title: t.title || t.name, children: /* @__PURE__ */ i(
11536
+ /* @__PURE__ */ i(cr, { title: t.title || t.name, children: /* @__PURE__ */ i(
11539
11537
  Ah,
11540
11538
  {
11541
11539
  refreshGraph: () => {
@@ -11544,7 +11542,7 @@ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, lr = ({
11544
11542
  }
11545
11543
  ) }),
11546
11544
  /* @__PURE__ */ i(
11547
- vo,
11545
+ wo,
11548
11546
  {
11549
11547
  fields: { ...l.fields, ...a.fields },
11550
11548
  searchFields: Bn([
@@ -11564,7 +11562,7 @@ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, lr = ({
11564
11562
  showLimitOptions: !1
11565
11563
  }
11566
11564
  ),
11567
- E ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ i(
11565
+ E ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(
11568
11566
  un,
11569
11567
  {
11570
11568
  ref: c,
@@ -11593,7 +11591,7 @@ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, lr = ({
11593
11591
  setCurrentItemIndex: p
11594
11592
  } = e;
11595
11593
  return t ? /* @__PURE__ */ D(ae, { children: [
11596
- /* @__PURE__ */ i(lr, { children: /* @__PURE__ */ i(Ch, { toolbar: a == null ? void 0 : a.toolbar }) }),
11594
+ /* @__PURE__ */ i(cr, { children: /* @__PURE__ */ i(Ch, { toolbar: a == null ? void 0 : a.toolbar }) }),
11597
11595
  /* @__PURE__ */ i(
11598
11596
  hn,
11599
11597
  {
@@ -11635,7 +11633,7 @@ function Dh(e) {
11635
11633
  },
11636
11634
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
11637
11635
  suffix: (a || r && r.length > 0) && /* @__PURE__ */ i(Ft, { title: o("clear"), children: /* @__PURE__ */ i(
11638
- cl,
11636
+ dl,
11639
11637
  {
11640
11638
  style: { color: "rgba(0,0,0,.45)" },
11641
11639
  onClick: u
@@ -11682,7 +11680,7 @@ function Ph(e) {
11682
11680
  totalItems: T,
11683
11681
  isActive: R,
11684
11682
  isInfiniteTree: S
11685
- } = ne(at), { parentContext: V = {}, treeExpandable: A, toolbar: F } = e, P = sr(
11683
+ } = ne(at), { parentContext: V = {}, treeExpandable: A, toolbar: F } = e, P = ar(
11686
11684
  fn.FEATURE_ADVANCED_EXPORT
11687
11685
  ), { t: _ } = he(), k = ne(
11688
11686
  pn
@@ -11781,7 +11779,7 @@ function Ph(e) {
11781
11779
  }
11782
11780
  return /* @__PURE__ */ D(Je, { wrap: !0, children: [
11783
11781
  w && /* @__PURE__ */ D(ae, { children: [
11784
- /* @__PURE__ */ i(We, {}),
11782
+ /* @__PURE__ */ i(He, {}),
11785
11783
  Nt(),
11786
11784
  Nt()
11787
11785
  ] }),
@@ -11798,10 +11796,10 @@ function Ph(e) {
11798
11796
  }
11799
11797
  ),
11800
11798
  !A && /* @__PURE__ */ i(
11801
- ba,
11799
+ Sa,
11802
11800
  {
11803
11801
  icon: /* @__PURE__ */ i(
11804
- Gi,
11802
+ Ki,
11805
11803
  {
11806
11804
  style: { color: m ? "white" : void 0 }
11807
11805
  }
@@ -11816,7 +11814,7 @@ function Ph(e) {
11816
11814
  }
11817
11815
  ),
11818
11816
  Nt(),
11819
- /* @__PURE__ */ i(ya, { disabled: w }),
11817
+ /* @__PURE__ */ i(va, { disabled: w }),
11820
11818
  /* @__PURE__ */ i(
11821
11819
  ot,
11822
11820
  {
@@ -11828,7 +11826,7 @@ function Ph(e) {
11828
11826
  }
11829
11827
  ),
11830
11828
  /* @__PURE__ */ i(
11831
- ga,
11829
+ ya,
11832
11830
  {
11833
11831
  icon: /* @__PURE__ */ i(Zr, {}),
11834
11832
  tooltip: _("delete"),
@@ -11842,19 +11840,19 @@ function Ph(e) {
11842
11840
  /* @__PURE__ */ i(
11843
11841
  ot,
11844
11842
  {
11845
- icon: /* @__PURE__ */ i(Ui, {}),
11843
+ icon: /* @__PURE__ */ i(Wi, {}),
11846
11844
  tooltip: _("showLogs"),
11847
11845
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || w,
11848
11846
  loading: !1,
11849
11847
  onClick: () => {
11850
- va(u, o[0].id, _);
11848
+ wa(u, o[0].id, _);
11851
11849
  }
11852
11850
  }
11853
11851
  ),
11854
11852
  /* @__PURE__ */ i(
11855
11853
  ot,
11856
11854
  {
11857
- icon: /* @__PURE__ */ i(tr, {}),
11855
+ icon: /* @__PURE__ */ i(nr, {}),
11858
11856
  tooltip: _("refresh"),
11859
11857
  disabled: l || a || w,
11860
11858
  loading: !1,
@@ -11867,7 +11865,7 @@ function Ph(e) {
11867
11865
  !A && /* @__PURE__ */ D(ae, { children: [
11868
11866
  Nt(),
11869
11867
  /* @__PURE__ */ i(
11870
- bo,
11868
+ So,
11871
11869
  {
11872
11870
  currentView: n,
11873
11871
  availableViews: t,
@@ -11919,7 +11917,7 @@ function Ph(e) {
11919
11917
  {
11920
11918
  placement: "bottomRight",
11921
11919
  icon: /* @__PURE__ */ i(
11922
- Ni,
11920
+ Mi,
11923
11921
  {
11924
11922
  component: () => /* @__PURE__ */ D(
11925
11923
  "svg",
@@ -12017,7 +12015,7 @@ const kh = (e) => {
12017
12015
  setCurrentView: d,
12018
12016
  availableViews: p,
12019
12017
  searchTreeNameSearch: h
12020
- } = 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]);
12021
12019
  ue(() => {
12022
12020
  v == null || v(m);
12023
12021
  }, [m]);
@@ -12045,7 +12043,7 @@ const kh = (e) => {
12045
12043
  ]
12046
12044
  );
12047
12045
  return t ? /* @__PURE__ */ D(Fn, { children: [
12048
- /* @__PURE__ */ i(lr, { showSummary: !m, children: /* @__PURE__ */ i(
12046
+ /* @__PURE__ */ i(cr, { showSummary: !m, children: /* @__PURE__ */ i(
12049
12047
  Ph,
12050
12048
  {
12051
12049
  toolbar: a == null ? void 0 : a.toolbar,
@@ -12054,7 +12052,7 @@ const kh = (e) => {
12054
12052
  }
12055
12053
  ) }),
12056
12054
  m && /* @__PURE__ */ i(
12057
- oa,
12055
+ ia,
12058
12056
  {
12059
12057
  ref: n,
12060
12058
  rootTree: !0,
@@ -12067,7 +12065,7 @@ const kh = (e) => {
12067
12065
  }
12068
12066
  ),
12069
12067
  !m && /* @__PURE__ */ i(
12070
- aa,
12068
+ la,
12071
12069
  {
12072
12070
  ref: n,
12073
12071
  rootTree: !0,
@@ -12081,10 +12079,10 @@ const kh = (e) => {
12081
12079
  }
12082
12080
  )
12083
12081
  ] }) : null;
12084
- }, So = mt.createContext(null), $h = (e) => {
12082
+ }, Co = mt.createContext(null), $h = (e) => {
12085
12083
  const [t, n] = x(!1), [r, o] = x(!1), { children: s, dashboardRef: a, openAction: l } = e;
12086
12084
  return /* @__PURE__ */ i(
12087
- So.Provider,
12085
+ Co.Provider,
12088
12086
  {
12089
12087
  value: {
12090
12088
  isLoading: t,
@@ -12099,13 +12097,13 @@ const kh = (e) => {
12099
12097
  );
12100
12098
  };
12101
12099
  function Nh() {
12102
- 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();
12103
12101
  return /* @__PURE__ */ D(Je, { wrap: !0, children: [
12104
12102
  /* @__PURE__ */ i(
12105
12103
  ot,
12106
12104
  {
12107
12105
  icon: /* @__PURE__ */ i(
12108
- dl,
12106
+ ul,
12109
12107
  {
12110
12108
  style: { color: n ? "white" : void 0 }
12111
12109
  }
@@ -12123,7 +12121,7 @@ function Nh() {
12123
12121
  /* @__PURE__ */ i(
12124
12122
  ot,
12125
12123
  {
12126
- icon: /* @__PURE__ */ i(ul, {}),
12124
+ icon: /* @__PURE__ */ i(fl, {}),
12127
12125
  tooltip: o("configDashboard"),
12128
12126
  disabled: e,
12129
12127
  loading: !1,
@@ -12135,7 +12133,7 @@ function Nh() {
12135
12133
  /* @__PURE__ */ i(
12136
12134
  ot,
12137
12135
  {
12138
- icon: /* @__PURE__ */ i(tr, {}),
12136
+ icon: /* @__PURE__ */ i(nr, {}),
12139
12137
  tooltip: o("refresh"),
12140
12138
  disabled: e,
12141
12139
  loading: !1,
@@ -12161,7 +12159,7 @@ const Lh = (e) => {
12161
12159
  s(a);
12162
12160
  },
12163
12161
  children: [
12164
- /* @__PURE__ */ i(lr, { children: /* @__PURE__ */ i(Nh, {}) }),
12162
+ /* @__PURE__ */ i(cr, { children: /* @__PURE__ */ i(Nh, {}) }),
12165
12163
  /* @__PURE__ */ i(
12166
12164
  Yh,
12167
12165
  {
@@ -12309,15 +12307,15 @@ function Bh(e, t) {
12309
12307
  }
12310
12308
  }
12311
12309
  }
12312
- let He;
12313
- !u && Y.find((Ne) => Ne.type === "tree") ? He = Y.find(
12310
+ let Ue;
12311
+ !u && Y.find((Ne) => Ne.type === "tree") ? Ue = Y.find(
12314
12312
  (re) => re.type === "tree"
12315
- ) : u ? He = Y.find((re) => u.id ? re.type === u.type && re.view_id === u.id : re.type === u.type) : He = Y.find(
12313
+ ) : u ? Ue = Y.find((re) => u.id ? re.type === u.type && re.view_id === u.id : re.type === u.type) : Ue = Y.find(
12316
12314
  (re) => re.type === "form"
12317
- ), He || (it(
12315
+ ), Ue || (it(
12318
12316
  `Error determining the first view to show for model ${r}.
12319
12317
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
12320
- ), Le == null || Le(c)), Fe(He), C(Y), O(!1);
12318
+ ), Le == null || Le(c)), Fe(Ue), C(Y), O(!1);
12321
12319
  };
12322
12320
  l({ tabKey: c, canWeClose: Ie }), ue(() => {
12323
12321
  const Y = I.find((Se) => Se.type === "tree"), Ce = I.find((Se) => u.id ? Se.type === u.type && Se.view_id === u.id : Se.type === u.type);
@@ -12338,9 +12336,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12338
12336
  async function Te(Y, Ce) {
12339
12337
  var Ne;
12340
12338
  H(!0);
12341
- let Se, He;
12339
+ let Se, Ue;
12342
12340
  if (Y.length === 1) {
12343
- Se = "form", He = [];
12341
+ Se = "form", Ue = [];
12344
12342
  const re = Y[0], Oe = _.findIndex((ge) => ge.id === re);
12345
12343
  let Ke;
12346
12344
  if (Oe === -1) {
@@ -12359,7 +12357,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12359
12357
  } else
12360
12358
  Ke = _[Oe];
12361
12359
  } else
12362
- Se = "tree", He = [["id", "in", Y]];
12360
+ Se = "tree", Ue = [["id", "in", Y]];
12363
12361
  if (H(!1), te(!1), Ce && Se === "form") {
12364
12362
  Pe(Y[0]);
12365
12363
  const re = I.find(
@@ -12369,7 +12367,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12369
12367
  } else {
12370
12368
  const re = s.find((Oe) => Oe[1] === Se);
12371
12369
  $e({
12372
- domain: He,
12370
+ domain: Ue,
12373
12371
  context: o,
12374
12372
  model: r,
12375
12373
  views: s,
@@ -12462,7 +12460,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12462
12460
  Fe(Y);
12463
12461
  }
12464
12462
  }
12465
- return b ? /* @__PURE__ */ i(We, {}) : v ? /* @__PURE__ */ D(
12463
+ return b ? /* @__PURE__ */ i(He, {}) : v ? /* @__PURE__ */ D(
12466
12464
  wd,
12467
12465
  {
12468
12466
  title: a,
@@ -12507,7 +12505,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12507
12505
  }
12508
12506
  ) : null;
12509
12507
  }
12510
- const Sa = yt(Bh);
12508
+ const Ca = yt(Bh);
12511
12509
  const Hh = ql(Yl), Uh = (e) => {
12512
12510
  const { children: t = [], onPositionItemsChanged: n } = e, r = mt.Children.map(
12513
12511
  t,
@@ -12648,7 +12646,7 @@ function Wh(e) {
12648
12646
  }
12649
12647
  )
12650
12648
  ] });
12651
- return j ? /* @__PURE__ */ i(rt, { className: "mt-10", message: j, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(We, { style: { padding: "2rem" } }) : le();
12649
+ return j ? /* @__PURE__ */ i(rt, { className: "mt-10", message: j, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(He, { style: { padding: "2rem" } }) : le();
12652
12650
  }
12653
12651
  const Gh = an(Wh), Kh = (e) => {
12654
12652
  const { model: t } = e, [n, r] = x();
@@ -12664,15 +12662,15 @@ const Gh = an(Wh), Kh = (e) => {
12664
12662
  s.length > 0 && r(s[0].id);
12665
12663
  }
12666
12664
  return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(hn, { ...e, model: t, id: n, readOnly: !0 }) });
12667
- }, Ir = "line_ids";
12665
+ }, Tr = "line_ids";
12668
12666
  function qh(e, t) {
12669
12667
  const { model: n, context: r = {}, id: o, configAction: s } = e, [a, l] = x([]), [c, u] = x(!1), [f, d] = x(), {
12670
12668
  setIsLoading: p,
12671
12669
  openAction: h,
12672
12670
  moveItemsEnabled: m
12673
- } = 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(
12674
12672
  $.getHandler().readObjects
12675
- ), [I] = ze($.getHandler().update), C = sr(
12673
+ ), [I] = ze($.getHandler().update), C = ar(
12676
12674
  fn.FEATURE_READFORVIEW
12677
12675
  );
12678
12676
  ue(() => {
@@ -12686,7 +12684,7 @@ function qh(e, t) {
12686
12684
  async function b() {
12687
12685
  u(!0), p(!0), d(void 0);
12688
12686
  try {
12689
- const F = await O(), P = await R(F), _ = F.fields[Ir].relation, k = P[Ir].items;
12687
+ const F = await O(), P = await R(F), _ = F.fields[Tr].relation, k = P[Tr].items;
12690
12688
  g.current = F.fields;
12691
12689
  const M = await T({
12692
12690
  items: k,
@@ -12715,7 +12713,7 @@ function qh(e, t) {
12715
12713
  type: "form",
12716
12714
  context: _
12717
12715
  })).fields;
12718
- const [k] = await so({
12716
+ const [k] = await ao({
12719
12717
  treeView: {
12720
12718
  fields: y.current
12721
12719
  },
@@ -12742,7 +12740,7 @@ function qh(e, t) {
12742
12740
  for (const k of F) {
12743
12741
  const { values: M } = k;
12744
12742
  if (M.action_id && M.action_id.length > 0) {
12745
- const W = parseInt(M.action_id[0], 10), j = cs({
12743
+ const W = parseInt(M.action_id[0], 10), j = ds({
12746
12744
  actionId: W,
12747
12745
  rootContext: r
12748
12746
  }).then((E) => ({ ...k, actionData: E }));
@@ -12789,7 +12787,7 @@ function qh(e, t) {
12789
12787
  await I({
12790
12788
  model: n,
12791
12789
  id: o,
12792
- values: { [Ir]: M },
12790
+ values: { [Tr]: M },
12793
12791
  fields: g.current,
12794
12792
  context: r
12795
12793
  });
@@ -12818,7 +12816,7 @@ function qh(e, t) {
12818
12816
  }
12819
12817
  let ee = null;
12820
12818
  if ((B == null ? void 0 : B.type) === "graph") {
12821
- const ve = k.server_action === !0 && C ? gs : un;
12819
+ const ve = k.server_action === !0 && C ? ys : un;
12822
12820
  ee = /* @__PURE__ */ i(
12823
12821
  ve,
12824
12822
  {
@@ -12872,7 +12870,7 @@ function qh(e, t) {
12872
12870
  else if (B !== void 0) {
12873
12871
  const pe = B && Array.isArray(B.id) ? { ...B, id: B.id[0] } : B;
12874
12872
  ee = /* @__PURE__ */ i(
12875
- Sa,
12873
+ Ca,
12876
12874
  {
12877
12875
  action_id: j,
12878
12876
  action_type: E,
@@ -12914,7 +12912,7 @@ function qh(e, t) {
12914
12912
  };
12915
12913
  }
12916
12914
  return /* @__PURE__ */ i(
12917
- ys,
12915
+ vs,
12918
12916
  {
12919
12917
  id: W,
12920
12918
  title: te,
@@ -12988,7 +12986,7 @@ const Yh = yt(qh), zh = (e) => {
12988
12986
  S.push({ id: A, operation: "pendingLink" });
12989
12987
  }), I(S);
12990
12988
  };
12991
- return f && a.length === 0 ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ D("div", { className: "flex flex-row", children: [
12989
+ return f && a.length === 0 ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ D("div", { className: "flex flex-row", children: [
12992
12990
  /* @__PURE__ */ i(
12993
12991
  Cn.Group,
12994
12992
  {
@@ -13036,23 +13034,23 @@ const Yh = yt(qh), zh = (e) => {
13036
13034
  }, eg = (e) => {
13037
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) => {
13038
13036
  const [f, d] = u;
13039
- return /* @__PURE__ */ i(To, { value: f, children: d }, f);
13037
+ return /* @__PURE__ */ i(Oo, { value: f, children: d }, f);
13040
13038
  });
13041
- 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 }) });
13042
13040
  }, tg = (e) => {
13043
13041
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
13044
13042
  return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(ng, { id: n, readOnly: r, required: o }) });
13045
13043
  }, ng = (e) => {
13046
13044
  const { required: t, readOnly: n, ...r } = e;
13047
- 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 }) });
13048
13046
  }, rg = (e) => {
13049
13047
  const { ooui: t } = e, { required: n } = t;
13050
13048
  return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(og, { ...e }) });
13051
13049
  }, og = (e) => {
13052
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);
13053
13051
  let u = "process", f = "";
13054
- 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(
13055
- 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,
13056
13054
  {
13057
13055
  title: d[1],
13058
13056
  description: p === c && u === "error" ? f : null
@@ -13153,7 +13151,7 @@ const Yh = yt(qh), zh = (e) => {
13153
13151
  const r = `https://www.gravatar.com/avatar/${Kl(
13154
13152
  e
13155
13153
  )}?s=${t}&d=${n}`;
13156
- return /* @__PURE__ */ i(Fi, { src: r, size: t });
13154
+ return /* @__PURE__ */ i(Ai, { src: r, size: t });
13157
13155
  };
13158
13156
  function fg({ text: e }) {
13159
13157
  const t = e.split(`
@@ -13195,7 +13193,7 @@ const mg = (e) => {
13195
13193
  };
13196
13194
  });
13197
13195
  return /* @__PURE__ */ i(
13198
- Oi,
13196
+ Fi,
13199
13197
  {
13200
13198
  mode: "alternate",
13201
13199
  items: r,
@@ -13208,7 +13206,7 @@ const mg = (e) => {
13208
13206
  }
13209
13207
  }
13210
13208
  );
13211
- }, 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) => {
13212
13210
  const { ooui: t } = e, { title: n, text: r, alertType: o, icon: s } = t;
13213
13211
  function a(c) {
13214
13212
  if (c) {
@@ -13228,18 +13226,21 @@ const mg = (e) => {
13228
13226
  icon: a(s)
13229
13227
  }
13230
13228
  );
13231
- }, { Content: vg } = Ri, { Title: wg } = _t;
13232
- function bg() {
13229
+ }, vg = (e) => {
13230
+ const { ooui: t } = e;
13231
+ return /* @__PURE__ */ i(He, { tip: t.label, size: "large", spinning: t.loading, children: /* @__PURE__ */ i(Gn, { container: t.container, responsiveBehaviour: !1 }) });
13232
+ }, { Content: wg } = _i, { Title: bg } = _t;
13233
+ function Sg() {
13233
13234
  const { t: e } = he();
13234
- return /* @__PURE__ */ i(vg, { className: "m-5 select-none", children: /* @__PURE__ */ i(wg, { level: 5, children: e("welcome") }) });
13235
+ return /* @__PURE__ */ i(wg, { className: "m-5 select-none", children: /* @__PURE__ */ i(bg, { level: 5, children: e("welcome") }) });
13235
13236
  }
13236
- function Sg(e, t) {
13237
- const { children: n } = e, [r, o] = x("welcome"), { t: s } = he(), { globalValues: a, rootContext: l } = ao(), [c, u] = x([
13237
+ function Cg(e, t) {
13238
+ const { children: n } = e, [r, o] = x("welcome"), { t: s } = he(), { globalValues: a, rootContext: l } = lo(), [c, u] = x([
13238
13239
  {
13239
13240
  title: s("welcome"),
13240
13241
  key: "welcome",
13241
13242
  closable: !0,
13242
- content: /* @__PURE__ */ i(bg, {})
13243
+ content: /* @__PURE__ */ i(Sg, {})
13243
13244
  }
13244
13245
  ]), f = Q(/* @__PURE__ */ new Map()), d = Q();
13245
13246
  vt(t, () => ({
@@ -13525,7 +13526,7 @@ function Sg(e, t) {
13525
13526
  type: F
13526
13527
  },
13527
13528
  content: /* @__PURE__ */ i(
13528
- Sa,
13529
+ Ca,
13529
13530
  {
13530
13531
  action_id: A,
13531
13532
  action_type: F,
@@ -13575,9 +13576,9 @@ function Sg(e, t) {
13575
13576
  }
13576
13577
  );
13577
13578
  }
13578
- const xy = yt(Sg), { useToken: Cg } = Ge;
13579
- function xg(e) {
13580
- const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = Cg(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
13579
+ const xy = yt(Cg), { useToken: xg } = Ge;
13580
+ function Ig(e) {
13581
+ const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = xg(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
13581
13582
  return /* @__PURE__ */ D(
13582
13583
  "div",
13583
13584
  {
@@ -13652,7 +13653,7 @@ function Iy() {
13652
13653
  bt
13653
13654
  ), { activeKey: t, tabs: n, onRemoveTab: r, onChangeTab: o } = e || {};
13654
13655
  return /* @__PURE__ */ i(ae, { children: n.map((s) => /* @__PURE__ */ i(
13655
- xg,
13656
+ Ig,
13656
13657
  {
13657
13658
  tabKey: s.key,
13658
13659
  label: s.title,
@@ -13663,7 +13664,7 @@ function Iy() {
13663
13664
  s.key
13664
13665
  )) });
13665
13666
  }
13666
- function Ig(e) {
13667
+ function Tg(e) {
13667
13668
  const { tab: t } = e, n = ne(
13668
13669
  bt
13669
13670
  ), { activeKey: r } = n || {}, o = {
@@ -13671,21 +13672,21 @@ function Ig(e) {
13671
13672
  };
13672
13673
  return /* @__PURE__ */ i("div", { style: t.key !== r ? o : void 0, children: t.content });
13673
13674
  }
13674
- const Tg = mt.memo(Ig, () => !0);
13675
+ const Og = mt.memo(Tg, () => !0);
13675
13676
  function Ty() {
13676
13677
  const e = ne(
13677
13678
  bt
13678
- ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(Tg, { tab: r }, r.key))) || null;
13679
+ ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(Og, { tab: r }, r.key))) || null;
13679
13680
  return /* @__PURE__ */ i(ae, { children: n });
13680
13681
  }
13681
- const { useToken: Og } = Ge, Oy = (e) => {
13682
+ const { useToken: Fg } = Ge, Oy = (e) => {
13682
13683
  const {
13683
13684
  onRetrieveShortcuts: t,
13684
13685
  onCheckIsFavourite: n,
13685
13686
  onAddFavourite: r,
13686
13687
  onRemoveFavourite: o,
13687
13688
  onDropdownClosed: s
13688
- } = e, [a, l] = x(!1), [c, u] = x(), { t: f } = he(), { token: d } = Og(), p = Q(null), h = ne(
13689
+ } = e, [a, l] = x(!1), [c, u] = x(), { t: f } = he(), { token: d } = Fg(), p = Q(null), h = ne(
13689
13690
  bt
13690
13691
  ), {
13691
13692
  openShortcut: m,
@@ -13780,7 +13781,7 @@ const { useToken: Og } = Ge, Oy = (e) => {
13780
13781
  y
13781
13782
  ]);
13782
13783
  return /* @__PURE__ */ i(
13783
- vl,
13784
+ wl,
13784
13785
  {
13785
13786
  ref: p,
13786
13787
  isFavourite: a,
@@ -13790,7 +13791,7 @@ const { useToken: Og } = Ge, Oy = (e) => {
13790
13791
  header: /* @__PURE__ */ D("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
13791
13792
  /* @__PURE__ */ i("div", { style: { paddingLeft: 15, color: "#ccc" }, children: f == null ? void 0 : f("favorites").toUpperCase() }),
13792
13793
  /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ i(Ft, { title: f == null ? void 0 : f("edit_favorites"), children: /* @__PURE__ */ i(
13793
- Wi,
13794
+ Gi,
13794
13795
  {
13795
13796
  style: { color: d.colorPrimary, cursor: "pointer" },
13796
13797
  onClick: R
@@ -13806,17 +13807,17 @@ const { useToken: Og } = Ge, Oy = (e) => {
13806
13807
  };
13807
13808
  export {
13808
13809
  Ch as ActionBar,
13809
- Sa as ActionView,
13810
+ Ca as ActionView,
13810
13811
  yg as Alert,
13811
13812
  sg as ArrowStepsField,
13812
13813
  yh as Binary,
13813
13814
  wc as Boolean,
13814
13815
  oo as Button,
13815
13816
  rc as ButtonGroup,
13816
- es as Char,
13817
+ ts as Char,
13817
13818
  ag as CodeEditor,
13818
13819
  hg as CommentsTimelineField,
13819
- ls as ConfigContext,
13820
+ cs as ConfigContext,
13820
13821
  Xc as ConfigContextProvider,
13821
13822
  $ as ConnectionProvider,
13822
13823
  Jd as ContentRootProvider,
@@ -13830,17 +13831,17 @@ export {
13830
13831
  fn as ErpFeatureKeys,
13831
13832
  ch as ExportModal,
13832
13833
  Oy as FavouriteButton,
13833
- Rs as Float,
13834
+ _s as Float,
13834
13835
  qp as FloatTime,
13835
13836
  hn as Form,
13836
13837
  gn as FormModal,
13837
- ys as GraphCard,
13838
+ vs as GraphCard,
13838
13839
  nd as GraphIndicator,
13839
- pa as Group,
13840
+ ha as Group,
13840
13841
  gg as HTMLPreview,
13841
13842
  xc as Image,
13842
- Gn as Integer,
13843
- nr as Label,
13843
+ Kn as Integer,
13844
+ rr as Label,
13844
13845
  bp as Many2one,
13845
13846
  Qh as Markdown,
13846
13847
  zh as MultiCheckbox,
@@ -13850,14 +13851,15 @@ export {
13850
13851
  Zh as Radio,
13851
13852
  ph as Reference,
13852
13853
  xy as RootView,
13853
- vo as SearchFilter,
13854
- wo as SearchModal,
13855
- aa as SearchTree,
13856
- ts as Selection,
13854
+ wo as SearchFilter,
13855
+ bo as SearchModal,
13856
+ la as SearchTree,
13857
+ ns as Selection,
13857
13858
  eh as Separator,
13859
+ vg as Spinner,
13858
13860
  rg as Steps,
13859
13861
  tg as Switch,
13860
- xg as Tab,
13862
+ Ig as Tab,
13861
13863
  Iy as TabSelector,
13862
13864
  Ed as Tag,
13863
13865
  Dd as Tags,