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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,57 +1,57 @@
1
- var Ma = Object.defineProperty;
2
- var La = (e, t, n) => t in e ? Ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Oo = (e, t, n) => (La(e, typeof t != "symbol" ? t + "" : t, n), n);
1
+ var Na = Object.defineProperty;
2
+ var Ma = (e, t, n) => t in e ? Na(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Oo = (e, t, n) => (Ma(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsx as i, jsxs as D, Fragment as se } from "react/jsx-runtime";
5
- import pt, { useContext as ne, useState as S, useEffect as de, useRef as J, useMemo as fe, memo as dn, useCallback as N, createContext as ja, forwardRef as yt, useImperativeHandle as vt, createElement as Ba, Fragment as Fn } from "react";
6
- import { Tooltip as Ft, theme as Ke, Typography as Vt, Form as ht, Row as Ne, Col as xe, Modal as ut, Button as je, Dropdown as Ha, Menu as Ao, Spin as We, Divider as Jn, Space as Xe, Input as dt, Select as Gt, Checkbox as xn, Alert as ot, Timeline as _i, Statistic as Ua, Card as Wr, Tag as Gr, message as pr, App as Wa, Progress as Ga, Avatar as Vi, DatePicker as Kr, TimePicker as Ka, InputNumber as Ei, Layout as Di, Badge as Qn, Pagination as qa, Tabs as Pi, Radio as Fo, Switch as Ya, Steps as Ro } from "antd";
7
- import { Label as un, Field as Ar, Tree as ki, Reference as za, Selection as qr, Many2one as $i, Boolean as Ja, parseContext as Bt, graphProcessor as Ni, graphFieldUtils as Qa, parseGraph as Mi, Container as Xa, Form as Li, parseContextFields as Za, parseDomainFields as el, Integer as Fr, SearchFieldTypes as Ot, SearchFilter as ji, transformDomainForChildWidget as Yr } from "@gisce/ooui";
5
+ import pt, { useContext as ne, useState as S, useEffect as de, useRef as J, useMemo as fe, memo as dn, useCallback as N, createContext as La, forwardRef as yt, useImperativeHandle as vt, createElement as ja, Fragment as Fn } from "react";
6
+ import { Tooltip as Ft, theme as qe, Typography as Vt, Form as ht, Row as Ne, Col as xe, Modal as ut, Button as je, Dropdown as Ba, Menu as Ao, Spin as We, Divider as Jn, Space as Xe, Input as dt, Select as Wt, Checkbox as xn, Alert as ot, Timeline as Ri, Statistic as Ha, Card as Wr, Tag as Gr, message as pr, App as Ua, Progress as Wa, Avatar as _i, DatePicker as Kr, TimePicker as Ga, InputNumber as Vi, Layout as Ei, Badge as Qn, Pagination as Ka, Tabs as Di, Radio as Fo, Switch as qa, Steps as Ro } from "antd";
7
+ import { Label as un, Field as Ar, Tree as Pi, Reference as Ya, Selection as qr, Many2one as ki, Boolean as za, parseContext as jt, graphProcessor as $i, graphFieldUtils as Ja, parseGraph as Ni, Container as Qa, Form as Mi, parseContextFields as Xa, parseDomainFields as Za, Integer as Fr, SearchFieldTypes as Ot, SearchFilter as Li, transformDomainForChildWidget as Yr } from "@gisce/ooui";
8
8
  import * as _o from "@ant-design/icons";
9
- import Bi, { QuestionCircleOutlined as Hi, ExclamationCircleOutlined as Et, LoadingOutlined as wt, DownOutlined as Xn, WarningOutlined as Ui, CloseOutlined as fn, CheckOutlined as Zn, TranslationOutlined as Wi, FolderOpenOutlined as zr, DownloadOutlined as Jr, ClearOutlined as er, ExportOutlined as tl, StarFilled as nl, StarOutlined as rl, ThunderboltOutlined as Qr, PrinterOutlined as Xr, EnterOutlined as Zr, SearchOutlined as tr, UpOutlined as ol, PlusSquareOutlined as il, MinusSquareOutlined as sl, FileAddOutlined as nr, AlignLeftOutlined as al, ApiOutlined as ll, DeleteOutlined as eo, LeftOutlined as Gi, RightOutlined as Ki, EyeOutlined as cl, FormOutlined as In, TableOutlined as to, AreaChartOutlined as dl, CalendarOutlined as ul, LinkOutlined as Vo, SaveOutlined as fl, CopyOutlined as no, InfoCircleOutlined as qi, ReloadOutlined as rr, EditOutlined as Yi, PlusOutlined as ml, FilterOutlined as zi, CloseCircleFilled as pl, BorderOuterOutlined as hl, SettingOutlined as gl } from "@ant-design/icons";
9
+ import ji, { QuestionCircleOutlined as Bi, ExclamationCircleOutlined as Et, LoadingOutlined as wt, DownOutlined as Xn, WarningOutlined as Hi, CloseOutlined as fn, CheckOutlined as Zn, TranslationOutlined as Ui, FolderOpenOutlined as zr, DownloadOutlined as Jr, ClearOutlined as er, ExportOutlined as el, StarFilled as tl, StarOutlined as nl, ThunderboltOutlined as Qr, PrinterOutlined as Xr, EnterOutlined as Zr, SearchOutlined as tr, UpOutlined as rl, PlusSquareOutlined as ol, MinusSquareOutlined as il, FileAddOutlined as nr, AlignLeftOutlined as sl, ApiOutlined as al, DeleteOutlined as eo, LeftOutlined as Wi, RightOutlined as Gi, EyeOutlined as ll, FormOutlined as In, TableOutlined as to, AreaChartOutlined as cl, CalendarOutlined as dl, LinkOutlined as Vo, SaveOutlined as ul, CopyOutlined as no, InfoCircleOutlined as Ki, ReloadOutlined as rr, EditOutlined as qi, PlusOutlined as fl, FilterOutlined as Yi, CloseCircleFilled as ml, BorderOuterOutlined as pl, SettingOutlined as hl } from "@ant-design/icons";
10
10
  import { Interweave as Tn } from "interweave";
11
- import { useLocale as he, FormigaConfigProvider as yl, mergeStrings as vl, Many2OneSuffix as wl, Many2OneSuffixModal as Eo, FieldSet as bl, ExportModal as Sl, Dropdown as Ji, DropdownButton as nn, HTMLPreview as Cl, FavouriteButton as xl } from "@gisce/react-formiga-components";
11
+ import { useLocale as he, FormigaConfigProvider as gl, mergeStrings as yl, Many2OneSuffix as vl, Many2OneSuffixModal as Eo, FieldSet as wl, ExportModal as bl, Dropdown as zi, DropdownButton as nn, HTMLPreview as Sl, FavouriteButton as Cl } from "@gisce/react-formiga-components";
12
12
  import * as Do from "@tabler/icons-react";
13
- import Il from "antd/lib/input/TextArea";
13
+ import xl from "antd/lib/input/TextArea";
14
14
  import mn from "styled-components";
15
15
  import ro from "react-measure";
16
- import Tl from "lodash/debounce";
16
+ import Il from "lodash/debounce";
17
17
  import { nanoid as oo } from "nanoid";
18
18
  import Rr from "antd/lib/typography/Title";
19
19
  import Ct from "use-deep-compare-effect";
20
- import { Line as Ol, Column as Al, Pie as Fl } from "@ant-design/plots";
20
+ import { Line as Tl, Column as Ol, Pie as Al } from "@ant-design/plots";
21
21
  import lt from "dayjs";
22
22
  import { default as ky } from "dayjs";
23
- import Rl from "dayjs/plugin/advancedFormat";
24
- import _l from "dayjs/plugin/customParseFormat";
25
- import Vl from "dayjs/plugin/isoWeek";
26
- import El from "dayjs/plugin/timezone";
27
- import Dl from "dayjs/plugin/duration";
28
- import Pl from "dayjs/plugin/relativeTime";
29
- import kl from "dayjs/plugin/weekday";
30
- import $l from "dayjs/plugin/localeData";
31
- import { createRoot as Qi } from "react-dom/client";
23
+ import Fl from "dayjs/plugin/advancedFormat";
24
+ import Rl from "dayjs/plugin/customParseFormat";
25
+ import _l from "dayjs/plugin/isoWeek";
26
+ import Vl from "dayjs/plugin/timezone";
27
+ import El from "dayjs/plugin/duration";
28
+ import Dl from "dayjs/plugin/relativeTime";
29
+ import Pl from "dayjs/plugin/weekday";
30
+ import kl from "dayjs/plugin/localeData";
31
+ import { createRoot as Ji } from "react-dom/client";
32
32
  import { useDeepCompareEffect as io, useDeepCompareCallback as gt, useDeepCompareMemo as On } from "use-deep-compare";
33
- import { InfiniteTable as Xi, Table as Nl } from "@gisce/react-formiga-table";
34
- import { fileTypeFromBuffer as Ml } from "file-type-buffer-browser";
35
- import { isPresetStatusColor as Zi, isPresetColor as es } from "antd/lib/_util/colors";
36
- import Ll from "antd/es/date-picker/locale/en_US";
37
- import jl from "antd/es/date-picker/locale/es_ES";
38
- import Bl from "antd/es/date-picker/locale/ca_ES";
39
- import Hl from "validator";
33
+ import { InfiniteTable as Qi, Table as $l } from "@gisce/react-formiga-table";
34
+ import { fileTypeFromBuffer as Nl } from "file-type-buffer-browser";
35
+ import { isPresetStatusColor as Xi, isPresetColor as Zi } from "antd/lib/_util/colors";
36
+ import Ml from "antd/es/date-picker/locale/en_US";
37
+ import Ll from "antd/es/date-picker/locale/es_ES";
38
+ import jl from "antd/es/date-picker/locale/ca_ES";
39
+ import Bl from "validator";
40
40
  import "@gisce/react-formiga-table/style.css";
41
- import Ul from "antd/es/typography/Link";
41
+ import Hl from "antd/es/typography/Link";
42
42
  import jn from "antd/es/alert/ErrorBoundary";
43
- import { GridUi as Wl } from "@gisce/fiber-diagram";
44
- import { useHotkeys as jt } from "react-hotkeys-hook";
45
- import Gl from "validator/lib/isURL";
46
- import Kl from "validator/lib/isEmail";
47
- import ql from "react-markdown";
48
- import Yl from "remark-gfm";
49
- import zl from "@monaco-editor/react";
50
- import Jl from "md5";
51
- import { WidthProvider as Ql, Responsive as Xl } from "react-grid-layout";
43
+ import { GridUi as Ul } from "@gisce/fiber-diagram";
44
+ import { useHotkeys as Lt } from "react-hotkeys-hook";
45
+ import Wl from "validator/lib/isURL";
46
+ import Gl from "validator/lib/isEmail";
47
+ import Kl from "react-markdown";
48
+ import ql from "remark-gfm";
49
+ import Yl from "@monaco-editor/react";
50
+ import zl from "md5";
51
+ import { WidthProvider as Jl, Responsive as Ql } from "react-grid-layout";
52
52
  import "react-grid-layout/css/styles.css";
53
- import { AnimatePresence as Zl, motion as Po } from "framer-motion";
54
- const He = pt.createContext(null), ec = (e) => {
53
+ import { AnimatePresence as Xl, motion as Po } from "framer-motion";
54
+ const He = pt.createContext(null), Zl = (e) => {
55
55
  const {
56
56
  children: t,
57
57
  activeId: n,
@@ -93,7 +93,7 @@ const He = pt.createContext(null), ec = (e) => {
93
93
  children: t
94
94
  }
95
95
  );
96
- }, { Text: tc, Title: nc } = Vt, { useToken: rc } = Ke, oc = {
96
+ }, { Text: ec, Title: tc } = Vt, { useToken: nc } = qe, rc = {
97
97
  left: "justify-start",
98
98
  center: "justify-center",
99
99
  right: "justify-end"
@@ -101,14 +101,14 @@ const He = pt.createContext(null), ec = (e) => {
101
101
  const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: c } = t, u = ne(He);
102
102
  let d = a !== null && o.length > 1 ? o + " :" : o;
103
103
  !t.fieldForLabel && t._id && (d = u.getFieldValue(t._id));
104
- const h = n || (a ? r ? "left" : "right" : "left"), { token: m } = rc(), y = l === void 0 ? tc : nc;
104
+ const h = n || (a ? r ? "left" : "right" : "left"), { token: m } = nc(), y = l === void 0 ? ec : tc;
105
105
  return /* @__PURE__ */ D(
106
106
  "div",
107
107
  {
108
- className: `flex flex-row items-center pb-1 pt-1 ${oc[h]}`,
108
+ className: `flex flex-row items-center pb-1 pt-1 ${rc[h]}`,
109
109
  children: [
110
110
  s && /* @__PURE__ */ i(Ft, { title: s, children: /* @__PURE__ */ i(
111
- Hi,
111
+ Bi,
112
112
  {
113
113
  className: "pr-1 text-xs",
114
114
  style: {
@@ -172,14 +172,14 @@ function Fe({
172
172
  m()
173
173
  ] }))();
174
174
  }
175
- const { confirm: ic } = ut, Rt = ({
175
+ const { confirm: oc } = ut, Rt = ({
176
176
  onOk: e,
177
177
  confirmMessage: t,
178
178
  okText: n,
179
179
  cancelText: r,
180
180
  t: o
181
181
  }) => {
182
- ic({
182
+ oc({
183
183
  title: o("confirmation"),
184
184
  icon: /* @__PURE__ */ i(Et, {}),
185
185
  centered: !0,
@@ -281,7 +281,7 @@ const { confirm: ic } = ut, Rt = ({
281
281
  STOCK_UNINDENT: "AlignLeft",
282
282
  STOCK_PREFERENCES: "Setting"
283
283
  }, ft = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), ko.hasOwnProperty(e) ? $o(ko[e], t) : $o(e, t));
284
- function sc(e) {
284
+ function ic(e) {
285
285
  return `${e.split("-").map(
286
286
  (t) => t.replace(
287
287
  /\w\S*/g,
@@ -291,7 +291,7 @@ function sc(e) {
291
291
  }
292
292
  function $o(e, t) {
293
293
  let n = e.charAt(0).toUpperCase() + e.slice(1);
294
- n.indexOf("-") !== -1 && (n = sc(n));
294
+ n.indexOf("-") !== -1 && (n = ic(n));
295
295
  const r = `${n}Outlined`;
296
296
  if (_o[r])
297
297
  return () => pt.createElement(_o[r], {
@@ -306,7 +306,7 @@ function $o(e, t) {
306
306
  size: ((l = t == null ? void 0 : t.style) == null ? void 0 : l.fontSize) || 17
307
307
  });
308
308
  };
309
- return () => pt.createElement(Bi, {
309
+ return () => pt.createElement(ji, {
310
310
  component: s,
311
311
  ...t
312
312
  });
@@ -360,7 +360,7 @@ const so = (e) => {
360
360
  children: r
361
361
  }
362
362
  ) });
363
- }, ac = (e) => {
363
+ }, sc = (e) => {
364
364
  const { ooui: t } = e, { defaultButton: n, secondaryButtons: r } = t, {
365
365
  id: o,
366
366
  caption: s,
@@ -400,14 +400,14 @@ const so = (e) => {
400
400
  return null;
401
401
  if (t.buttons.length > 1)
402
402
  return /* @__PURE__ */ i(Fe, { ooui: new Ar({ defaultButton: n }), children: /* @__PURE__ */ D(
403
- Ha.Button,
403
+ Ba.Button,
404
404
  {
405
405
  disabled: !a || p,
406
406
  onClick: C,
407
407
  icon: /* @__PURE__ */ i(Xn, {}),
408
408
  type: f ? "primary" : void 0,
409
409
  overlay: /* @__PURE__ */ i(
410
- lc,
410
+ ac,
411
411
  {
412
412
  ooui: r,
413
413
  executeButtonAction: m
@@ -421,7 +421,7 @@ const so = (e) => {
421
421
  ) });
422
422
  if (n)
423
423
  return /* @__PURE__ */ i(so, { ooui: n });
424
- }, lc = (e) => {
424
+ }, ac = (e) => {
425
425
  const { t } = he(), { ooui: n, executeButtonAction: r } = e;
426
426
  if (!n)
427
427
  return null;
@@ -474,7 +474,7 @@ const so = (e) => {
474
474
  );
475
475
  });
476
476
  return /* @__PURE__ */ i(Ao, { children: o });
477
- }, cc = 0.7;
477
+ }, lc = 0.7;
478
478
  function No() {
479
479
  const { innerWidth: e, innerHeight: t } = window;
480
480
  return {
@@ -492,7 +492,7 @@ function ir() {
492
492
  }
493
493
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
494
494
  }, []), {
495
- modalWidth: e.width * cc,
495
+ modalWidth: e.width * lc,
496
496
  modalHeight: e.height,
497
497
  width: e.width,
498
498
  height: e.height
@@ -510,7 +510,7 @@ const tn = class tn {
510
510
  };
511
511
  Oo(tn, "handler");
512
512
  let $ = tn;
513
- const ts = (e) => {
513
+ const es = (e) => {
514
514
  let t, n, r;
515
515
  if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
516
516
 
@@ -528,15 +528,15 @@ const ts = (e) => {
528
528
  message: t,
529
529
  title: r
530
530
  };
531
- }, { error: dc, warning: uc } = ut, at = (e) => {
532
- const { message: t, type: n, title: r } = ts(e);
533
- (n === "error" ? dc : uc)({
531
+ }, { error: cc, warning: dc } = ut, at = (e) => {
532
+ const { message: t, type: n, title: r } = es(e);
533
+ (n === "error" ? cc : dc)({
534
534
  title: r,
535
- icon: n === "error" ? /* @__PURE__ */ i(Et, {}) : /* @__PURE__ */ i(Ui, {}),
535
+ icon: n === "error" ? /* @__PURE__ */ i(Et, {}) : /* @__PURE__ */ i(Hi, {}),
536
536
  centered: !0,
537
537
  content: t
538
538
  });
539
- }, ns = (e) => {
539
+ }, ts = (e) => {
540
540
  const { visible: t, onCloseModal: n, model: r, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = ir(), { t: c } = he(), [u, f] = S([]), [d, p] = S(!1), [h, m] = S(!1), [y, g] = S({}), v = J();
541
541
  de(() => {
542
542
  t ? w() : g({});
@@ -579,7 +579,7 @@ const ts = (e) => {
579
579
  return u.map((R, O) => /* @__PURE__ */ D(Ne, { style: { paddingBottom: 20 }, children: [
580
580
  /* @__PURE__ */ i(xe, { flex: "8rem", style: { paddingRight: 10 }, children: R.name }),
581
581
  /* @__PURE__ */ i(xe, { flex: "auto", children: /* @__PURE__ */ i(
582
- Il,
582
+ xl,
583
583
  {
584
584
  rows: 4,
585
585
  value: y[R.code] || "",
@@ -660,24 +660,24 @@ function rt(e) {
660
660
  const { tooltip: t, ...n } = e;
661
661
  return /* @__PURE__ */ i(Ft, { title: t, children: /* @__PURE__ */ i(je, { ...n }) });
662
662
  }
663
- const { info: fc } = ut, It = (e) => {
664
- fc({
663
+ const { info: uc } = ut, It = (e) => {
664
+ uc({
665
665
  title: "",
666
666
  centered: !0,
667
667
  content: e
668
668
  });
669
- }, { useToken: mc } = Ke, rs = (e) => {
670
- const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t, { token: l } = mc(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0;
669
+ }, { useToken: fc } = qe, ns = (e) => {
670
+ const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t, { token: l } = fc(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0;
671
671
  let u = /* @__PURE__ */ i(
672
- pc,
672
+ mc,
673
673
  {
674
674
  ooui: t,
675
675
  requiredStyle: c,
676
676
  isSearchField: n
677
677
  }
678
678
  );
679
- return a && !o && !n && (u = /* @__PURE__ */ i(hc, { field: r, requiredStyle: c })), /* @__PURE__ */ i(Fe, { required: s, ...e, children: u });
680
- }, pc = ({
679
+ return a && !o && !n && (u = /* @__PURE__ */ i(pc, { field: r, requiredStyle: c })), /* @__PURE__ */ i(Fe, { required: s, ...e, children: u });
680
+ }, mc = ({
681
681
  value: e,
682
682
  ooui: t,
683
683
  requiredStyle: n,
@@ -713,7 +713,7 @@ const { info: fc } = ut, It = (e) => {
713
713
  }
714
714
  }
715
715
  )), s && (h = /* @__PURE__ */ i(dt, { value: e, id: c, disabled: !0 })), h;
716
- }, hc = ({
716
+ }, pc = ({
717
717
  value: e,
718
718
  field: t,
719
719
  requiredStyle: n,
@@ -753,7 +753,7 @@ const { info: fc } = ut, It = (e) => {
753
753
  }
754
754
  ),
755
755
  /* @__PURE__ */ i(
756
- ns,
756
+ ts,
757
757
  {
758
758
  id: s,
759
759
  model: a,
@@ -784,7 +784,7 @@ const { info: fc } = ut, It = (e) => {
784
784
  rt,
785
785
  {
786
786
  tooltip: p("translate"),
787
- icon: /* @__PURE__ */ i(Wi, {}),
787
+ icon: /* @__PURE__ */ i(Ui, {}),
788
788
  onClick: async () => {
789
789
  c != null && c() ? It(p("saveBeforeTranslate")) : It(p("enterTextBeforeTranslate"));
790
790
  },
@@ -792,16 +792,16 @@ const { info: fc } = ut, It = (e) => {
792
792
  }
793
793
  ) })
794
794
  ] }) });
795
- }, { defaultAlgorithm: gc, defaultSeed: yc } = Ke, vc = gc(yc), { Option: wc } = Gt, os = (e) => {
795
+ }, { defaultAlgorithm: hc, defaultSeed: gc } = qe, yc = hc(gc), { Option: vc } = Wt, rs = (e) => {
796
796
  const { ooui: t } = e, { required: n } = t;
797
- return /* @__PURE__ */ i(Fe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(is, { ...e }) });
798
- }, is = (e) => {
797
+ return /* @__PURE__ */ i(Fe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(os, { ...e }) });
798
+ }, os = (e) => {
799
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) => {
800
800
  const [d, p] = f;
801
- return /* @__PURE__ */ i(wc, { value: d, children: p }, d);
801
+ return /* @__PURE__ */ i(vc, { value: d, children: p }, d);
802
802
  });
803
803
  return /* @__PURE__ */ i(
804
- a && !s ? bc : Gt,
804
+ a && !s ? wc : Wt,
805
805
  {
806
806
  disabled: s,
807
807
  onChange: n,
@@ -813,17 +813,17 @@ const { info: fc } = ut, It = (e) => {
813
813
  children: c
814
814
  }
815
815
  );
816
- }, bc = mn(Gt)`
816
+ }, wc = mn(Wt)`
817
817
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
818
- background-color: ${vc.colorPrimaryBg};
818
+ background-color: ${yc.colorPrimaryBg};
819
819
  }
820
- `, { defaultAlgorithm: Sc, defaultSeed: Cc } = Ke, Mo = Sc(Cc), xc = (e) => {
820
+ `, { defaultAlgorithm: bc, defaultSeed: Sc } = qe, Mo = bc(Sc), Cc = (e) => {
821
821
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
822
- return /* @__PURE__ */ i(Fe, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Ic, { id: n, readOnly: r, required: o }) });
823
- }, Ic = (e) => {
822
+ return /* @__PURE__ */ i(Fe, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(xc, { id: n, readOnly: r, required: o }) });
823
+ }, xc = (e) => {
824
824
  const { required: t, readOnly: n, ...r } = e;
825
- return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Tc : xn, { disabled: n, ...r }) });
826
- }, Tc = mn(xn)`
825
+ return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Ic : xn, { disabled: n, ...r }) });
826
+ }, Ic = mn(xn)`
827
827
  .ant-checkbox-inner {
828
828
  background-color: ${Mo.colorPrimaryBg};
829
829
  }
@@ -832,12 +832,12 @@ const { info: fc } = ut, It = (e) => {
832
832
  background-color: ${Mo.colorPrimary};
833
833
  }
834
834
  `;
835
- function Oc(e) {
835
+ function Tc(e) {
836
836
  const n = Buffer.from(e, "base64").length / 1e3;
837
837
  return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
838
838
  }
839
839
  async function sn(e) {
840
- const t = await Ml(
840
+ const t = await Nl(
841
841
  Buffer.from(e, "base64")
842
842
  );
843
843
  return t || {
@@ -845,7 +845,7 @@ async function sn(e) {
845
845
  ext: "txt"
846
846
  };
847
847
  }
848
- const ss = (e) => new Promise((t, n) => {
848
+ const is = (e) => new Promise((t, n) => {
849
849
  const r = new FileReader();
850
850
  r.readAsDataURL(e), r.onload = (o) => t(o.target.result.split(",")[1]), r.onerror = (o) => n(o);
851
851
  });
@@ -868,10 +868,10 @@ const ao = (e) => {
868
868
  }
869
869
  );
870
870
  }
871
- }, Ac = (e) => {
871
+ }, Oc = (e) => {
872
872
  const { ooui: t } = e, { required: n, id: r } = t;
873
- return ft(r) ? /* @__PURE__ */ i(ao, { value: r }) : /* @__PURE__ */ i(Fe, { required: n, ...e, children: /* @__PURE__ */ i(Fc, { ooui: t }) });
874
- }, Fc = (e) => {
873
+ return ft(r) ? /* @__PURE__ */ i(ao, { value: r }) : /* @__PURE__ */ i(Fe, { required: n, ...e, children: /* @__PURE__ */ i(Ac, { ooui: t }) });
874
+ }, Ac = (e) => {
875
875
  const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, s = J(null), { t: a } = he(), l = (d) => {
876
876
  r == null || r(d);
877
877
  };
@@ -881,7 +881,7 @@ const ao = (e) => {
881
881
  }
882
882
  async function u(d) {
883
883
  d.stopPropagation(), d.preventDefault();
884
- const p = d.target.files[0], h = await ss(p);
884
+ const p = d.target.files[0], h = await is(p);
885
885
  l(h);
886
886
  }
887
887
  function f() {
@@ -937,10 +937,10 @@ const ao = (e) => {
937
937
  )
938
938
  ] }) })
939
939
  ] });
940
- }, Rc = (e) => {
940
+ }, Fc = (e) => {
941
941
  const { ooui: t } = e, { required: n } = t;
942
- return /* @__PURE__ */ i(Fe, { required: n, ...e, children: /* @__PURE__ */ i(_c, {}) });
943
- }, _c = (e) => {
942
+ return /* @__PURE__ */ i(Fe, { required: n, ...e, children: /* @__PURE__ */ i(Rc, {}) });
943
+ }, Rc = (e) => {
944
944
  const { value: t, onChange: n } = e;
945
945
  if (!t)
946
946
  return null;
@@ -950,7 +950,7 @@ const ao = (e) => {
950
950
  return console.error(r), null;
951
951
  }
952
952
  return /* @__PURE__ */ i(
953
- Wl,
953
+ Ul,
954
954
  {
955
955
  inputJson: t,
956
956
  onChange: (r) => {
@@ -959,16 +959,16 @@ const ao = (e) => {
959
959
  }
960
960
  );
961
961
  }, At = (e) => {
962
- const t = e.arch, n = e.fields, r = new ki(n);
962
+ const t = e.arch, n = e.fields, r = new Pi(n);
963
963
  return r.parse(t), r;
964
964
  };
965
- function Vc(e) {
965
+ function _c(e) {
966
966
  return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
967
967
  }
968
968
  const lo = (e, t, n) => e.columns.map((o) => {
969
969
  const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
970
970
  let c;
971
- return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) => Vc(u) ? u : /* @__PURE__ */ D("p", { style: { color: "red" }, children: [
971
+ return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) => _c(u) ? u : /* @__PURE__ */ D("p", { style: { color: "red" }, children: [
972
972
  "Unsupported widget value for a Tree cell:",
973
973
  /* @__PURE__ */ i("pre", { children: /* @__PURE__ */ D("strong", { children: [
974
974
  "Type: ",
@@ -995,21 +995,21 @@ const lo = (e, t, n) => e.columns.map((o) => {
995
995
  o[s] = r[s];
996
996
  else {
997
997
  const a = e.findById(s);
998
- a instanceof za || a instanceof qr ? o[s] = r[s] : a instanceof $i ? o[s] = r[s] && Array.isArray(r[s]) && r[s].length === 2 && {
998
+ a instanceof Ya || a instanceof qr ? o[s] = r[s] : a instanceof ki ? o[s] = r[s] && Array.isArray(r[s]) && r[s].length === 2 && {
999
999
  model: a.relation,
1000
1000
  id: r[s][0],
1001
1001
  value: r[s][1]
1002
- } : a instanceof Ja ? o[s] = r[s] : a ? o[s] = r[s] === !1 ? "" : r[s] : o[s] = r[s];
1002
+ } : a instanceof za ? o[s] = r[s] : a ? o[s] = r[s] === !1 ? "" : r[s] : o[s] = r[s];
1003
1003
  }
1004
1004
  }), o;
1005
1005
  });
1006
1006
  function an(e) {
1007
- return as(e, "colors");
1007
+ return ss(e, "colors");
1008
1008
  }
1009
1009
  function Bn(e) {
1010
- return as(e, "status");
1010
+ return ss(e, "status");
1011
1011
  }
1012
- function as(e, t) {
1012
+ function ss(e, t) {
1013
1013
  if (!e)
1014
1014
  return;
1015
1015
  const n = {};
@@ -1031,20 +1031,20 @@ function rn({
1031
1031
  };
1032
1032
  return e.sort(l);
1033
1033
  }
1034
- function Ec(e) {
1034
+ function Vc(e) {
1035
1035
  for (const t in e)
1036
1036
  if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
1037
1037
  return !0;
1038
1038
  return !1;
1039
1039
  }
1040
- const ls = (e) => {
1040
+ const as = (e) => {
1041
1041
  if (e && Object.keys(e).length !== 0)
1042
1042
  return Object.keys(e).map((t) => {
1043
1043
  const n = e[t];
1044
1044
  return `${t} ${n}`;
1045
1045
  }).join(", ");
1046
1046
  };
1047
- function cs(e, t) {
1047
+ function ls(e, t) {
1048
1048
  const n = new RegExp(`<tree[^>]*\\s+${t}="([^"]+)"`, "i"), r = e.match(n);
1049
1049
  return r && r[1] ? r[1] : null;
1050
1050
  }
@@ -1100,10 +1100,10 @@ const co = async (e) => {
1100
1100
  }).concat(c),
1101
1101
  p
1102
1102
  ];
1103
- }, ds = (e) => {
1103
+ }, cs = (e) => {
1104
1104
  const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
1105
1105
  return t.length === 0 ? -1 : Math.min(...t) - 1;
1106
- }, Dc = (e, t) => {
1106
+ }, Ec = (e, t) => {
1107
1107
  const n = {};
1108
1108
  return Object.keys(e).forEach((r) => {
1109
1109
  var o;
@@ -1111,7 +1111,7 @@ const co = async (e) => {
1111
1111
  (s) => s.operation !== "pendingRemove"
1112
1112
  ) : n[r] = e[r];
1113
1113
  }), n;
1114
- }, Pc = ({
1114
+ }, Dc = ({
1115
1115
  values: e,
1116
1116
  fields: t
1117
1117
  }) => {
@@ -1130,7 +1130,7 @@ const co = async (e) => {
1130
1130
  n[r] = e[r];
1131
1131
  }), n;
1132
1132
  };
1133
- function kc(e) {
1133
+ function Pc(e) {
1134
1134
  const t = e.map((r) => r.id);
1135
1135
  return e.filter((r, o) => {
1136
1136
  const { id: s } = r;
@@ -1146,7 +1146,7 @@ function Lo({
1146
1146
  e[r] && (n[r] = e[r]);
1147
1147
  }), n;
1148
1148
  }
1149
- const $c = ({
1149
+ const kc = ({
1150
1150
  allItems: e,
1151
1151
  range: t
1152
1152
  }) => {
@@ -1155,7 +1155,7 @@ const $c = ({
1155
1155
  return l && (l.operation === "original" || l.operation === "pendingLink");
1156
1156
  }), s = e.filter((a) => a && a.operation !== "original" && a.operation !== "pendingLink");
1157
1157
  return { realItemsIds: o, otherItems: s };
1158
- }, Nc = ({
1158
+ }, $c = ({
1159
1159
  finalResultIds: e,
1160
1160
  fetchedItems: t,
1161
1161
  otherItems: n
@@ -1169,15 +1169,15 @@ const $c = ({
1169
1169
  const a = t.findIndex((c) => c.id === o.id), l = t.findIndex((c) => c.id === s.id);
1170
1170
  return a - l;
1171
1171
  }), r;
1172
- }, Mc = async (e, t, n, r) => await $.getHandler().searchAllIds({
1172
+ }, Nc = async (e, t, n, r) => await $.getHandler().searchAllIds({
1173
1173
  model: t,
1174
1174
  params: [["id", "in", e]],
1175
1175
  context: n,
1176
1176
  order: r
1177
- }), Lc = (e) => {
1177
+ }), Mc = (e) => {
1178
1178
  const t = {};
1179
1179
  return e.colors && (t.colors = e.colors), e.status && (t.status = e.status), t;
1180
- }, jc = async ({
1180
+ }, Lc = async ({
1181
1181
  relation: e,
1182
1182
  ids: t,
1183
1183
  treeView: n,
@@ -1198,7 +1198,7 @@ const $c = ({
1198
1198
  colors: an(a[1]),
1199
1199
  status: Bn(a[1])
1200
1200
  };
1201
- }, Bc = (e, t) => {
1201
+ }, jc = (e, t) => {
1202
1202
  if (!t)
1203
1203
  return e;
1204
1204
  const n = {};
@@ -1212,7 +1212,7 @@ const $c = ({
1212
1212
  } else
1213
1213
  n[r] = e[r];
1214
1214
  }), n;
1215
- }, Lt = (e, t) => Bc(e, t), hr = ({
1215
+ }, Zt = (e, t) => jc(e, t), hr = ({
1216
1216
  source: e,
1217
1217
  target: t,
1218
1218
  fields: n
@@ -1229,7 +1229,7 @@ const $c = ({
1229
1229
  )) || []).length > 0 && (r[o] = t[o]);
1230
1230
  } else if (Array.isArray(t[o]))
1231
1231
  if (n[o].type === "many2one") {
1232
- if (!Ho(e[o]) && !Ho(t[o]))
1232
+ if (!Bo(e[o]) && !Bo(t[o]))
1233
1233
  return;
1234
1234
  if (Array.isArray(e[o])) {
1235
1235
  const c = JSON.stringify(e[o]), u = JSON.stringify(t[o]);
@@ -1245,7 +1245,7 @@ const $c = ({
1245
1245
  else
1246
1246
  e[o] === void 0 && t[o] !== void 0 ? r[o] = t[o] : e[o] !== t[o] && (t[o] === void 0 ? r[o] = null : r[o] = t[o]);
1247
1247
  }), r;
1248
- }, Hc = ({
1248
+ }, Bc = ({
1249
1249
  changedFields: e,
1250
1250
  formOoui: t,
1251
1251
  types: n
@@ -1253,7 +1253,7 @@ const $c = ({
1253
1253
  var a;
1254
1254
  const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
1255
1255
  return n.includes(s);
1256
- }).some((o) => o === !0), Uc = ({
1256
+ }).some((o) => o === !0), Hc = ({
1257
1257
  fieldsDomain: e,
1258
1258
  fields: t
1259
1259
  }) => {
@@ -1261,7 +1261,7 @@ const $c = ({
1261
1261
  return Object.keys(t).forEach((r) => {
1262
1262
  n[r] = t[r], e[r] && (n[r].domain = e[r]);
1263
1263
  }), n;
1264
- }, jo = (e) => {
1264
+ }, Uc = (e) => {
1265
1265
  const t = {};
1266
1266
  return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
1267
1267
  (n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
@@ -1300,14 +1300,14 @@ const $c = ({
1300
1300
  n.secondary
1301
1301
  ));
1302
1302
  }), {
1303
- primary: t.primary.filter(Bo),
1304
- secondary: t.secondary.filter(Bo)
1303
+ primary: t.primary.filter(jo),
1304
+ secondary: t.secondary.filter(jo)
1305
1305
  };
1306
1306
  };
1307
- function Bo(e, t, n) {
1307
+ function jo(e, t, n) {
1308
1308
  return n.indexOf(e) === t;
1309
1309
  }
1310
- const Kt = ({
1310
+ const Gt = ({
1311
1311
  values: e,
1312
1312
  fields: t
1313
1313
  }) => {
@@ -1330,7 +1330,7 @@ const Kt = ({
1330
1330
  }, Kc = (e, t) => e.replace(
1331
1331
  /\{([^}]+)\}/g,
1332
1332
  (n, r) => t[r] !== void 0 ? t[r] : n
1333
- ), Ho = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), qc = (e) => /* @__PURE__ */ D(
1333
+ ), Bo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), qc = (e) => /* @__PURE__ */ D(
1334
1334
  "div",
1335
1335
  {
1336
1336
  style: { display: "inline-block", cursor: "pointer" },
@@ -1422,16 +1422,16 @@ const Kt = ({
1422
1422
  summary: (j = F.values) == null ? void 0 : j[v],
1423
1423
  onClick: () => {
1424
1424
  h(
1425
- b.find((G) => F.id === G.id)
1425
+ b.find((W) => F.id === W.id)
1426
1426
  ), d(!0);
1427
1427
  }
1428
1428
  }
1429
1429
  )
1430
1430
  };
1431
- return (P = F.values) != null && P[x] && (k.dot = _(F.values[x])), (U = F.values) != null && U[C] && (k.color = !Zi(F.values[C]) && !es(F.values[C]) && !F.values[C].toString().startsWith("#") ? Rn(F.values[C]) : F.values[C]), k;
1431
+ return (P = F.values) != null && P[x] && (k.dot = _(F.values[x])), (U = F.values) != null && U[C] && (k.color = !Xi(F.values[C]) && !Zi(F.values[C]) && !F.values[C].toString().startsWith("#") ? Rn(F.values[C]) : F.values[C]), k;
1432
1432
  });
1433
1433
  return /* @__PURE__ */ D(se, { children: [
1434
- /* @__PURE__ */ i(_i, { style: { padding: "1rem" }, items: I }),
1434
+ /* @__PURE__ */ i(Ri, { style: { padding: "1rem" }, items: I }),
1435
1435
  /* @__PURE__ */ i(
1436
1436
  wn,
1437
1437
  {
@@ -1762,8 +1762,8 @@ const Kt = ({
1762
1762
  globalValues: {},
1763
1763
  rootContext: {},
1764
1764
  devMode: !1
1765
- }, us = pt.createContext(ed), uo = () => {
1766
- const e = ne(us);
1765
+ }, ds = pt.createContext(ed), uo = () => {
1766
+ const e = ne(ds);
1767
1767
  if (!e)
1768
1768
  throw new Error(
1769
1769
  "useConfigContext must be used within a ConfigContextProvider"
@@ -1791,18 +1791,18 @@ const Kt = ({
1791
1791
  }),
1792
1792
  [e, r, o, s]
1793
1793
  );
1794
- return /* @__PURE__ */ i(us.Provider, { value: l, children: /* @__PURE__ */ i(
1795
- yl,
1794
+ return /* @__PURE__ */ i(ds.Provider, { value: l, children: /* @__PURE__ */ i(
1795
+ gl,
1796
1796
  {
1797
1797
  locale: t,
1798
- localizedStrings: vl(Zc, n),
1798
+ localizedStrings: yl(Zc, n),
1799
1799
  children: a
1800
1800
  }
1801
1801
  ) });
1802
1802
  }
1803
1803
  );
1804
1804
  td.displayName = "ConfigContextProvider";
1805
- async function fs({
1805
+ async function us({
1806
1806
  actionId: e,
1807
1807
  rootContext: t = {},
1808
1808
  globalValues: n = {}
@@ -1810,7 +1810,7 @@ async function fs({
1810
1810
  const r = "ir.actions.act_window", o = `${r},${e}`, s = await $.getHandler().getActionData({
1811
1811
  action: o,
1812
1812
  context: t
1813
- }), a = Bt({
1813
+ }), a = jt({
1814
1814
  context: s.context,
1815
1815
  values: n,
1816
1816
  fields: {}
@@ -1859,7 +1859,7 @@ const nd = (e) => {
1859
1859
  return { actionData: s, treeShortcut: l, loading: r, error: t, fetchData: async () => {
1860
1860
  n(void 0), o(!0);
1861
1861
  try {
1862
- const v = await fs({
1862
+ const v = await us({
1863
1863
  actionId: e,
1864
1864
  rootContext: y,
1865
1865
  globalValues: {
@@ -1911,7 +1911,7 @@ const nd = (e) => {
1911
1911
  },
1912
1912
  children: /* @__PURE__ */ i(We, {})
1913
1913
  }
1914
- ), ms = ({
1914
+ ), fs = ({
1915
1915
  error: e,
1916
1916
  className: t
1917
1917
  }) => {
@@ -1919,7 +1919,7 @@ const nd = (e) => {
1919
1919
  if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
1920
1920
 
1921
1921
  `) !== -1) {
1922
- const { message: o, type: s, title: a } = ts(e);
1922
+ const { message: o, type: s, title: a } = es(e);
1923
1923
  n = /* @__PURE__ */ i(Tn, { content: `${a}<br />${o}` }), r = s;
1924
1924
  } else
1925
1925
  n = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
@@ -1957,7 +1957,7 @@ const nd = (e) => {
1957
1957
  },
1958
1958
  [n, e]
1959
1959
  ), n];
1960
- }, Un = 0.7, Wn = 30, ps = (e) => {
1960
+ }, Un = 0.7, Wn = 30, ms = (e) => {
1961
1961
  const [t, n] = S(0), [r, o] = S(0), {
1962
1962
  value: s,
1963
1963
  totalValue: a,
@@ -2008,7 +2008,7 @@ const nd = (e) => {
2008
2008
  }
2009
2009
  );
2010
2010
  };
2011
- function hs(e, t) {
2011
+ function ps(e, t) {
2012
2012
  const r = document.createElement("canvas").getContext("2d");
2013
2013
  return r.font = t || getComputedStyle(document.body).font, r.measureText(e).width;
2014
2014
  }
@@ -2030,7 +2030,7 @@ function rd({
2030
2030
  });
2031
2031
  let d = r ? `${u}/${f}` : `${u}`;
2032
2032
  l && (d += " " + l);
2033
- let p = hs(
2033
+ let p = ps(
2034
2034
  d,
2035
2035
  `bold ${Math.floor(c * 1.03)}px sans-serif`
2036
2036
  );
@@ -2078,7 +2078,7 @@ function od({
2078
2078
  const h = `${r == null ? void 0 : r.toLocaleString("es-ES", {
2079
2079
  useGrouping: !0
2080
2080
  })}%`;
2081
- let m = hs(
2081
+ let m = ps(
2082
2082
  h,
2083
2083
  `bold ${Math.floor(f * 1.03)}px sans-serif`
2084
2084
  );
@@ -2119,7 +2119,7 @@ function od({
2119
2119
  }
2120
2120
  );
2121
2121
  }
2122
- const { getValueForOperator: Uo } = Ni, id = (e) => {
2122
+ const { getValueForOperator: Ho } = $i, id = (e) => {
2123
2123
  const {
2124
2124
  model: t,
2125
2125
  domain: n,
@@ -2145,7 +2145,7 @@ const { getValueForOperator: Uo } = Ni, id = (e) => {
2145
2145
  $.getHandler().parseCondition
2146
2146
  );
2147
2147
  de(() => {
2148
- G();
2148
+ W();
2149
2149
  }, [t, o]);
2150
2150
  async function P({
2151
2151
  domain: E,
@@ -2164,7 +2164,7 @@ const { getValueForOperator: Uo } = Ni, id = (e) => {
2164
2164
  fieldsToRetrieve: [u],
2165
2165
  context: r
2166
2166
  });
2167
- return Uo({
2167
+ return Ho({
2168
2168
  values: ee.map((M) => M[u]),
2169
2169
  operator: f
2170
2170
  });
@@ -2187,7 +2187,7 @@ const { getValueForOperator: Uo } = Ni, id = (e) => {
2187
2187
  fieldsToRetrieve: [u],
2188
2188
  context: r
2189
2189
  });
2190
- return Uo({
2190
+ return Ho({
2191
2191
  values: re.map((ee) => ee[u]),
2192
2192
  operator: f
2193
2193
  });
@@ -2198,7 +2198,7 @@ const { getValueForOperator: Uo } = Ni, id = (e) => {
2198
2198
  context: r
2199
2199
  });
2200
2200
  }
2201
- async function G() {
2201
+ async function W() {
2202
2202
  m(!0), _(void 0);
2203
2203
  let E, K;
2204
2204
  try {
@@ -2239,7 +2239,7 @@ const { getValueForOperator: Uo } = Ni, id = (e) => {
2239
2239
  m(!1);
2240
2240
  }
2241
2241
  return h ? /* @__PURE__ */ i(_n, {}) : O ? /* @__PURE__ */ i(ot, { className: "mt-10", message: O, type: "error", banner: !0 }) : /* @__PURE__ */ i(
2242
- ps,
2242
+ ms,
2243
2243
  {
2244
2244
  value: y,
2245
2245
  totalValue: x,
@@ -2251,7 +2251,7 @@ const { getValueForOperator: Uo } = Ni, id = (e) => {
2251
2251
  fixedHeight: p
2252
2252
  }
2253
2253
  );
2254
- }, { processGraphData: sd } = Ni, { getFieldsToRetrieve: ad } = Qa, ld = (e) => {
2254
+ }, { processGraphData: sd } = $i, { getFieldsToRetrieve: ad } = Ja, ld = (e) => {
2255
2255
  const {
2256
2256
  model: t,
2257
2257
  ooui: n,
@@ -2390,6 +2390,7 @@ async function dd({
2390
2390
  fields: d
2391
2391
  };
2392
2392
  }
2393
+ lt.extend(Fl);
2393
2394
  lt.extend(Rl);
2394
2395
  lt.extend(_l);
2395
2396
  lt.extend(Vl);
@@ -2397,7 +2398,6 @@ lt.extend(El);
2397
2398
  lt.extend(Dl);
2398
2399
  lt.extend(Pl);
2399
2400
  lt.extend(kl);
2400
- lt.extend($l);
2401
2401
  const gr = (e) => (t) => {
2402
2402
  const n = t.value.toLocaleString("es-ES", {
2403
2403
  useGrouping: !0
@@ -2408,7 +2408,7 @@ const gr = (e) => (t) => {
2408
2408
  return parseFloat(e).toLocaleString("es-ES", {
2409
2409
  useGrouping: !0
2410
2410
  });
2411
- if (gs(e))
2411
+ if (hs(e))
2412
2412
  return e.toLocaleString("es-ES", {
2413
2413
  useGrouping: !0
2414
2414
  });
@@ -2419,7 +2419,7 @@ const gr = (e) => (t) => {
2419
2419
  );
2420
2420
  } else
2421
2421
  return e;
2422
- }, ud = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), gs = (e) => typeof e == "number" && !isNaN(e), Wo = {
2422
+ }, ud = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), hs = (e) => typeof e == "number" && !isNaN(e), Uo = {
2423
2423
  default: {
2424
2424
  padding: "auto",
2425
2425
  xAxis: {
@@ -2548,11 +2548,11 @@ const pd = {
2548
2548
  x: a.x,
2549
2549
  percent: r[l]
2550
2550
  }));
2551
- }, { Text: Go } = Vt, ys = 400, gd = dn(Ol), yd = dn(Al), vd = dn(Fl), wd = {
2551
+ }, { Text: Wo } = Vt, gs = 400, gd = dn(Tl), yd = dn(Ol), vd = dn(Al), wd = {
2552
2552
  line: gd,
2553
2553
  bar: yd,
2554
2554
  pie: vd
2555
- }, vs = ({
2555
+ }, ys = ({
2556
2556
  type: e,
2557
2557
  data: t,
2558
2558
  isGroup: n,
@@ -2619,10 +2619,10 @@ const pd = {
2619
2619
  height: a
2620
2620
  },
2621
2621
  children: [
2622
- /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ i(Go, { type: "secondary", children: `${l("totalRegisters")} ${o.toLocaleString("es-ES", {
2622
+ /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ i(Wo, { type: "secondary", children: `${l("totalRegisters")} ${o.toLocaleString("es-ES", {
2623
2623
  useGrouping: !0
2624
2624
  })}` }) }),
2625
- c && /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ i(Go, { type: "secondary", children: `${l("total")} ${c.toLocaleString("es-ES", {
2625
+ c && /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ i(Wo, { type: "secondary", children: `${l("total")} ${c.toLocaleString("es-ES", {
2626
2626
  useGrouping: !0
2627
2627
  })}` }) }),
2628
2628
  /* @__PURE__ */ i("div", { style: { width: "100%", height: "100%", overflow: "hidden" }, children: /* @__PURE__ */ i(h, { ...m }) })
@@ -2641,8 +2641,8 @@ function bd(e) {
2641
2641
  yAxisOpts: l = { mode: "default" },
2642
2642
  fixedHeight: c
2643
2643
  } = e;
2644
- let u = { ...Wo[t] };
2645
- if (u || (u = { ...Wo.default }), u.data = n, u.height = c, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...pd.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 = { ...Uo[t] };
2645
+ if (u || (u = { ...Uo.default }), u.data = n, u.height = c, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...pd.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) {
2646
2646
  const f = l.valueOpts.min, d = l.valueOpts.max;
2647
2647
  u.yAxis = {
2648
2648
  min: f,
@@ -2675,7 +2675,7 @@ const Sd = ({
2675
2675
  return /* @__PURE__ */ i(_n, {});
2676
2676
  const { data: m, isGroup: y, isStack: g, yAxisOpts: v } = f;
2677
2677
  return c ? /* @__PURE__ */ i(ot, { message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(
2678
- vs,
2678
+ ys,
2679
2679
  {
2680
2680
  type: d,
2681
2681
  data: m,
@@ -2686,7 +2686,7 @@ const Sd = ({
2686
2686
  fixedHeight: a
2687
2687
  }
2688
2688
  );
2689
- }, _t = 80, ct = ja(
2689
+ }, _t = 80, ct = La(
2690
2690
  null
2691
2691
  ), Cd = (e) => {
2692
2692
  const {
@@ -2716,7 +2716,7 @@ const Sd = ({
2716
2716
  goToResourceId: R,
2717
2717
  limit: O,
2718
2718
  isActive: _
2719
- } = e, [I, F] = S(!1), [k, V] = S(!1), [j, P] = S(!1), [U, G] = S(!0), [E, K] = S(!0), [re, ee] = S([]), [M, pe] = S(!1), [X, L] = S([]), [oe, B] = S(!1), [z, q] = S(!0), [Q, te] = S(), [ye, Me] = S({}), [Le, Ve] = S(0), [ke, Be] = S(), [Oe, le] = S(!1), [Te, ue] = S(
2719
+ } = e, [I, F] = S(!1), [k, V] = S(!1), [j, P] = S(!1), [U, W] = S(!0), [E, K] = S(!0), [re, ee] = S([]), [M, pe] = S(!1), [X, L] = S([]), [oe, B] = S(!1), [z, q] = S(!0), [Q, te] = S(), [ye, Me] = S({}), [Le, Ve] = S(0), [ke, Be] = S(), [Oe, le] = S(!1), [Te, ue] = S(
2720
2720
  O !== void 0 ? O : _t
2721
2721
  ), [Ae, Y] = S(r);
2722
2722
  de(() => {
@@ -2766,7 +2766,7 @@ const Sd = ({
2766
2766
  removingItem: j,
2767
2767
  setRemovingItem: P,
2768
2768
  formIsLoading: U,
2769
- setFormIsLoading: G,
2769
+ setFormIsLoading: W,
2770
2770
  treeIsLoading: E,
2771
2771
  setTreeIsLoading: K,
2772
2772
  attachments: re,
@@ -2914,7 +2914,7 @@ const Sd = ({
2914
2914
  id: n,
2915
2915
  type: "graph",
2916
2916
  context: o
2917
- }), w = Mi(v.arch);
2917
+ }), w = Ni(v.arch);
2918
2918
  p(w), f(!1), m == null || m(!1);
2919
2919
  } catch (v) {
2920
2920
  return console.error(v), f(!1), m == null || m(!1), /* @__PURE__ */ i(se, { children: JSON.stringify(v) });
@@ -2958,7 +2958,7 @@ const Sd = ({
2958
2958
  ooui: d,
2959
2959
  limit: a,
2960
2960
  manualIds: l,
2961
- fixedHeight: c || ys
2961
+ fixedHeight: c || gs
2962
2962
  }
2963
2963
  );
2964
2964
  default:
@@ -3017,7 +3017,7 @@ const Fy = Object.values(hn), Td = (e) => {
3017
3017
  case "indicator": {
3018
3018
  const { value: m, total: y, percent: g, icon: v, color: w, suffix: x } = p;
3019
3019
  return /* @__PURE__ */ i(
3020
- ps,
3020
+ ms,
3021
3021
  {
3022
3022
  value: m,
3023
3023
  totalValue: y,
@@ -3025,7 +3025,7 @@ const Fy = Object.values(hn), Td = (e) => {
3025
3025
  color: w,
3026
3026
  icon: v,
3027
3027
  suffix: x,
3028
- showPercent: gs(g),
3028
+ showPercent: hs(g),
3029
3029
  fixedHeight: l
3030
3030
  }
3031
3031
  );
@@ -3035,7 +3035,7 @@ const Fy = Object.values(hn), Td = (e) => {
3035
3035
  case "pie": {
3036
3036
  const m = p;
3037
3037
  return /* @__PURE__ */ i(
3038
- vs,
3038
+ ys,
3039
3039
  {
3040
3040
  type: m.type,
3041
3041
  data: m.data,
@@ -3043,14 +3043,14 @@ const Fy = Object.values(hn), Td = (e) => {
3043
3043
  isStack: m.isStack,
3044
3044
  numItems: m.num_items,
3045
3045
  yAxisOpts: m.yAxisOpts,
3046
- fixedHeight: l || ys
3046
+ fixedHeight: l || gs
3047
3047
  }
3048
3048
  );
3049
3049
  }
3050
3050
  default:
3051
3051
  return /* @__PURE__ */ i(se, { children: `Graph ${p.type} not implemented` });
3052
3052
  }
3053
- }, ws = yt(Od), bt = pt.createContext(null), Ad = (e) => {
3053
+ }, vs = yt(Od), bt = pt.createContext(null), Ad = (e) => {
3054
3054
  const {
3055
3055
  children: t,
3056
3056
  openAction: n,
@@ -3082,7 +3082,7 @@ const Fy = Object.values(hn), Td = (e) => {
3082
3082
  children: t
3083
3083
  }
3084
3084
  );
3085
- }, { useToken: Fd } = Ke, { Text: Rd } = Vt, bs = (e) => {
3085
+ }, { useToken: Fd } = qe, { Text: Rd } = Vt, ws = (e) => {
3086
3086
  const { title: t, children: n, action: r, openAction: o, parms: s } = e, { token: a } = Fd(), l = Object.keys(s).length > 0;
3087
3087
  return /* @__PURE__ */ D(
3088
3088
  "div",
@@ -3123,7 +3123,7 @@ const Fy = Object.values(hn), Td = (e) => {
3123
3123
  }
3124
3124
  ),
3125
3125
  r && /* @__PURE__ */ i(xe, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ i(Ne, { justify: "end", align: "middle", children: /* @__PURE__ */ i(
3126
- tl,
3126
+ el,
3127
3127
  {
3128
3128
  style: { cursor: "pointer" },
3129
3129
  onClick: () => {
@@ -3139,7 +3139,7 @@ const Fy = Object.values(hn), Td = (e) => {
3139
3139
  ]
3140
3140
  }
3141
3141
  );
3142
- }, { useToken: _d } = Ke, Vd = (e) => {
3142
+ }, { useToken: _d } = qe, Vd = (e) => {
3143
3143
  const { ooui: t } = e, n = t.actionId !== void 0;
3144
3144
  return /* @__PURE__ */ i(Fe, { ooui: t, children: n ? /* @__PURE__ */ i(jn, { children: /* @__PURE__ */ i(Dd, { ooui: t }) }) : /* @__PURE__ */ i(Ed, { ooui: t }) });
3145
3145
  }, Ed = (e) => {
@@ -3149,7 +3149,7 @@ const Fy = Object.values(hn), Td = (e) => {
3149
3149
  " "
3150
3150
  ] }),
3151
3151
  n.tooltip && /* @__PURE__ */ i(Ft, { title: n.tooltip, children: /* @__PURE__ */ i(
3152
- Hi,
3152
+ Bi,
3153
3153
  {
3154
3154
  className: "pr-1 text-xs",
3155
3155
  style: { color: t.colorPrimaryBg }
@@ -3159,7 +3159,7 @@ const Fy = Object.values(hn), Td = (e) => {
3159
3159
  let a = r;
3160
3160
  n.selectionValues.size ? a = n.selectionValues.get(r) : Array.isArray(r) && (a = r[1]);
3161
3161
  const l = /* @__PURE__ */ i(
3162
- Ua,
3162
+ Ha,
3163
3163
  {
3164
3164
  title: o,
3165
3165
  prefix: s && /* @__PURE__ */ i(s, {}),
@@ -3177,10 +3177,10 @@ const Fy = Object.values(hn), Td = (e) => {
3177
3177
  if (de(() => {
3178
3178
  t && c();
3179
3179
  }, [t]), l)
3180
- return /* @__PURE__ */ i(ms, { error: l });
3181
- const { id: p, model: h, limit: m, domain: y, context: g, initialView: v } = o || {}, w = u ? ws : pn;
3180
+ return /* @__PURE__ */ i(fs, { error: l });
3181
+ const { id: p, model: h, limit: m, domain: y, context: g, initialView: v } = o || {}, w = u ? vs : pn;
3182
3182
  return /* @__PURE__ */ D(
3183
- bs,
3183
+ ws,
3184
3184
  {
3185
3185
  id: p,
3186
3186
  parms: {},
@@ -3207,7 +3207,7 @@ const Fy = Object.values(hn), Td = (e) => {
3207
3207
  function Pd(e) {
3208
3208
  return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
3209
3209
  }
3210
- const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss, { ...e }) }), Ss = (e) => {
3210
+ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(bs, { ...e }) }), bs = (e) => {
3211
3211
  const { t } = he(), { ooui: n, value: r } = e;
3212
3212
  let o = r, s = Rn, a = r;
3213
3213
  if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ? Pd(n.label) : `${t("not")} ${n.label.toLowerCase()}`, s = Gc), !o)
@@ -3216,7 +3216,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3216
3216
  return /* @__PURE__ */ i(mo, { color: l, children: o });
3217
3217
  }, mo = (e) => {
3218
3218
  let { color: t } = e, n = {};
3219
- return !Zi(e.color) && !es(e.color) && (n = {
3219
+ return !Xi(e.color) && !Zi(e.color) && (n = {
3220
3220
  color: t,
3221
3221
  borderColor: t,
3222
3222
  borderStyle: "solid",
@@ -3242,7 +3242,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3242
3242
  if (m && (A = [["id", "in", s]]), n.domain) {
3243
3243
  const O = await $.getHandler().evalDomain({
3244
3244
  domain: n.domain,
3245
- values: Kt({
3245
+ values: Gt({
3246
3246
  fields: g == null ? void 0 : g.getFields(),
3247
3247
  values: g.getPlainValues()
3248
3248
  }),
@@ -3293,7 +3293,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3293
3293
  );
3294
3294
  };
3295
3295
  return c ? /* @__PURE__ */ i(ot, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(se, { children: /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(
3296
- Gt,
3296
+ Wt,
3297
3297
  {
3298
3298
  mode: "multiple",
3299
3299
  value: a.length ? s : [],
@@ -3315,27 +3315,27 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3315
3315
  case "notebook":
3316
3316
  return nh;
3317
3317
  case "group":
3318
- return ya;
3318
+ return ga;
3319
3319
  case "label":
3320
3320
  return or;
3321
3321
  case "char":
3322
- return rs;
3322
+ return ns;
3323
3323
  case "text":
3324
3324
  return oh;
3325
3325
  case "button":
3326
3326
  return so;
3327
3327
  case "buttonGroup":
3328
- return ac;
3328
+ return sc;
3329
3329
  case "selection":
3330
- return os;
3330
+ return rs;
3331
3331
  case "many2one":
3332
3332
  return Op;
3333
3333
  case "boolean":
3334
- return xc;
3334
+ return Cc;
3335
3335
  case "integer":
3336
3336
  return qn;
3337
3337
  case "float":
3338
- return Es;
3338
+ return Vs;
3339
3339
  case "progressbar":
3340
3340
  return au;
3341
3341
  case "date":
@@ -3355,7 +3355,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3355
3355
  case "binary":
3356
3356
  return xh;
3357
3357
  case "image":
3358
- return Ac;
3358
+ return Oc;
3359
3359
  case "url":
3360
3360
  return _h;
3361
3361
  case "email":
@@ -3363,7 +3363,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3363
3363
  case "float_time":
3364
3364
  return Zp;
3365
3365
  case "fiber_grid":
3366
- return Rc;
3366
+ return Fc;
3367
3367
  case "timeline":
3368
3368
  return Yc;
3369
3369
  case "indicator":
@@ -3400,7 +3400,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3400
3400
  }
3401
3401
  }, Ld = (e) => {
3402
3402
  const { ooui: t } = e, { type: n } = t, r = Md(n);
3403
- return r ? Ba(r, e) : null;
3403
+ return r ? ja(r, e) : null;
3404
3404
  }, jd = ({
3405
3405
  item: e,
3406
3406
  responsiveBehaviour: t
@@ -3429,7 +3429,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3429
3429
  row: e,
3430
3430
  numberOfColumns: t
3431
3431
  }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), Ud = (e, t) => {
3432
- const n = e.map((r) => r instanceof un && r.fieldForLabel || r instanceof Xa ? "auto" : "1fr");
3432
+ const n = e.map((r) => r instanceof un && r.fieldForLabel || r instanceof Qa ? "auto" : "1fr");
3433
3433
  if (n.length < t) {
3434
3434
  const r = t - n.length;
3435
3435
  for (let o = 0; o < r; o++)
@@ -3495,7 +3495,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3495
3495
  onCancel: t,
3496
3496
  cancelText: n("cancel")
3497
3497
  });
3498
- }, { error: qd } = ut, Ko = (e) => {
3498
+ }, { error: qd } = ut, Go = (e) => {
3499
3499
  qd({
3500
3500
  title: e("formHasErrors"),
3501
3501
  icon: /* @__PURE__ */ i(Et, {}),
@@ -3505,15 +3505,15 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3505
3505
  }, { warning: Yd } = ut, zd = (e, t, n) => {
3506
3506
  Yd({
3507
3507
  title: e,
3508
- icon: /* @__PURE__ */ i(Ui, {}),
3508
+ icon: /* @__PURE__ */ i(Hi, {}),
3509
3509
  centered: !0,
3510
3510
  content: t,
3511
3511
  onOk: n
3512
3512
  });
3513
- }, Cs = pt.createContext(null), Jd = (e) => {
3513
+ }, Ss = pt.createContext(null), Jd = (e) => {
3514
3514
  const { children: t, setTitle: n } = e;
3515
3515
  return /* @__PURE__ */ i(
3516
- Cs.Provider,
3516
+ Ss.Provider,
3517
3517
  {
3518
3518
  value: {
3519
3519
  setTitle: n
@@ -3521,7 +3521,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3521
3521
  children: t
3522
3522
  }
3523
3523
  );
3524
- }, yn = pt.createContext(null), qo = async (e) => {
3524
+ }, yn = pt.createContext(null), Ko = async (e) => {
3525
3525
  var t;
3526
3526
  for (let n = 0; n < e.length; n++)
3527
3527
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
@@ -3549,7 +3549,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3549
3549
  at(`${P} action not supported`);
3550
3550
  return;
3551
3551
  }
3552
- const { ids: U } = V || {}, G = U || [], E = typeof F == "string" ? Bt({
3552
+ const { ids: U } = V || {}, W = U || [], E = typeof F == "string" ? jt({
3553
3553
  context: F,
3554
3554
  fields: O,
3555
3555
  values: _
@@ -3559,7 +3559,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3559
3559
  model: k,
3560
3560
  name: j,
3561
3561
  datas: V,
3562
- ids: G,
3562
+ ids: W,
3563
3563
  context: { ...I, ...E }
3564
3564
  });
3565
3565
  l(!0), s.current = !0, o.current = setInterval(() => {
@@ -3621,7 +3621,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3621
3621
  ids: [parseInt(T.id)],
3622
3622
  context: _
3623
3623
  }))[0]);
3624
- const F = typeof (I == null ? void 0 : I.context) == "string" ? Bt({
3624
+ const F = typeof (I == null ? void 0 : I.context) == "string" ? jt({
3625
3625
  context: I.context,
3626
3626
  fields: R,
3627
3627
  values: { ...O, ...r }
@@ -3632,7 +3632,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3632
3632
  let V = [];
3633
3633
  if (I.domain && (V = await $.getHandler().evalDomain({
3634
3634
  domain: I.domain,
3635
- values: Kt({
3635
+ values: Gt({
3636
3636
  fields: R,
3637
3637
  values: { ...O, ...r }
3638
3638
  }),
@@ -3696,7 +3696,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3696
3696
  }), h(!1), await new Promise((F) => setTimeout(F, 300)), y({ domain: T, model: R, context: _, formView: O, actionData: I }), h(!0);
3697
3697
  }
3698
3698
  async function A() {
3699
- qo(f.current), f.current = [], h(!1), y({
3699
+ Ko(f.current), f.current = [], h(!1), y({
3700
3700
  domain: void 0,
3701
3701
  model: void 0,
3702
3702
  context: {},
@@ -3736,7 +3736,7 @@ const kd = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ss,
3736
3736
  visible: p,
3737
3737
  onSubmitSucceed: A,
3738
3738
  onCancel: () => {
3739
- qo(f.current), f.current = [], h(!1), y({
3739
+ Ko(f.current), f.current = [], h(!1), y({
3740
3740
  domain: void 0,
3741
3741
  model: void 0,
3742
3742
  context: {},
@@ -3885,7 +3885,7 @@ function ou(e, t) {
3885
3885
  forcedValues: A = {},
3886
3886
  parentWidth: T,
3887
3887
  onMustRefreshParent: R
3888
- } = e, { t: O } = he(), [_, I] = S(!1), [F, k] = S(), [V, j] = S(), [P] = ht.useForm(), [U, G] = S(), [E, K] = S(), re = ne(Cs), [ee, M] = S(), [pe, X] = S(!1), L = J(), oe = J({}), B = J({}), z = J(!1), q = J(!1), Q = J(!1), ye = (T !== void 0 ? T : ee) < ru, Me = ne(He), { activeId: Le, getPlainValues: Ve } = Me || {}, ke = J(!1), Be = ne(
3888
+ } = e, { t: O } = he(), [_, I] = S(!1), [F, k] = S(), [V, j] = S(), [P] = ht.useForm(), [U, W] = S(), [E, K] = S(), re = ne(Ss), [ee, M] = S(), [pe, X] = S(!1), L = J(), oe = J({}), B = J({}), z = J(!1), q = J(!1), Q = J(!1), ye = (T !== void 0 ? T : ee) < ru, Me = ne(He), { activeId: Le, getPlainValues: Ve } = Me || {}, ke = J(!1), Be = ne(
3889
3889
  ct
3890
3890
  ), {
3891
3891
  setFormIsSaving: Oe = void 0,
@@ -3896,9 +3896,9 @@ function ou(e, t) {
3896
3896
  title: Y = void 0,
3897
3897
  setTitle: ve = void 0,
3898
3898
  isActive: Ce = void 0
3899
- } = (C ? Be : {}) || {}, qe = ne(
3899
+ } = (C ? Be : {}) || {}, Ye = ne(
3900
3900
  yn
3901
- ), { processAction: Ee, globalValues: Se } = qe || {};
3901
+ ), { processAction: Ee, globalValues: Se } = Ye || {};
3902
3902
  vt(t, () => ({
3903
3903
  submitForm: $t,
3904
3904
  getFields: Z,
@@ -3923,8 +3923,8 @@ function ou(e, t) {
3923
3923
  elementHasLostFocus: !0
3924
3924
  }), X(!1));
3925
3925
  }, [pe]);
3926
- const ge = (H, W, ie, ae) => {
3927
- le == null || le(!1), Oe == null || Oe(!1), s == null || s(H, W, ie, ae), Te == null || Te(H), ke.current && (R == null || R());
3926
+ const ge = (H, G, ie, ae) => {
3927
+ le == null || le(!1), Oe == null || Oe(!1), s == null || s(H, G, ie, ae), Te == null || Te(H), ke.current && (R == null || R());
3928
3928
  }, $e = () => {
3929
3929
  ke.current && (R == null || R()), Oe == null || Oe(!1), o == null || o();
3930
3930
  }, Qe = (H) => {
@@ -3935,26 +3935,26 @@ function ou(e, t) {
3935
3935
  }
3936
3936
  function ce() {
3937
3937
  const H = {
3938
- ...Ye(E),
3938
+ ...Ke(E),
3939
3939
  ...tt()
3940
3940
  };
3941
- for (const W in H)
3942
- H[W] === void 0 && delete H[W];
3941
+ for (const G in H)
3942
+ H[G] === void 0 && delete H[G];
3943
3943
  return H;
3944
3944
  }
3945
3945
  function De() {
3946
- const H = ce(), W = Z(), ie = {};
3946
+ const H = ce(), G = Z(), ie = {};
3947
3947
  return Object.keys(H).forEach((ae) => {
3948
3948
  const Ie = H[ae];
3949
- W[ae] && W[ae].type === "many2one" && Ie && Array.isArray(Ie) && Ie.length === 2 ? ie[ae] = Ie[0] : W[ae] && (W[ae].type === "one2many" || W[ae].type === "many2many") && Ie && Ie.items ? ie[ae] = Ie.items.filter((Ze) => Ze.operation !== "pendingRemove").map((Ze) => Ze.id) : ie[ae] = Ie;
3949
+ G[ae] && G[ae].type === "many2one" && Ie && Array.isArray(Ie) && Ie.length === 2 ? ie[ae] = Ie[0] : G[ae] && (G[ae].type === "one2many" || G[ae].type === "many2many") && Ie && Ie.items ? ie[ae] = Ie.items.filter((Ze) => Ze.operation !== "pendingRemove").map((Ze) => Ze.id) : ie[ae] = Ie;
3950
3950
  }), ie;
3951
3951
  }
3952
3952
  function be() {
3953
3953
  const H = {
3954
- ...Ye(E)
3954
+ ...Ke(E)
3955
3955
  };
3956
- for (const W in H)
3957
- H[W] === void 0 && delete H[W];
3956
+ for (const G in H)
3957
+ H[G] === void 0 && delete H[G];
3958
3958
  return H;
3959
3959
  }
3960
3960
  function Re() {
@@ -3970,32 +3970,32 @@ function ou(e, t) {
3970
3970
  parent_id: Le,
3971
3971
  ...Se
3972
3972
  }), [we, Le, Se]), Tt = async (H) => {
3973
- const W = we() ? V == null ? void 0 : V.context : {};
3973
+ const G = we() ? V == null ? void 0 : V.context : {};
3974
3974
  return await $.getHandler().defaultGet({
3975
3975
  model: n,
3976
3976
  fields: H,
3977
- context: { ...v, ...W },
3977
+ context: { ...v, ...G },
3978
3978
  extraValues: b
3979
3979
  });
3980
3980
  }, mt = () => Object.keys(
3981
3981
  hr({
3982
3982
  source: oe.current,
3983
- target: Ye(E),
3983
+ target: Ke(E),
3984
3984
  fields: E
3985
3985
  })
3986
- ).length !== 0, Ye = (H) => {
3987
- const W = P.getFieldsValue(!0);
3988
- return Lt(W, H);
3989
- }, qt = (H, W) => {
3986
+ ).length !== 0, Ke = (H) => {
3987
+ const G = P.getFieldsValue(!0);
3988
+ return Zt(G, H);
3989
+ }, Kt = (H, G) => {
3990
3990
  ze({
3991
3991
  values: {
3992
- ...Lt(P.getFieldsValue(!0), E),
3993
- [H]: W
3992
+ ...Zt(P.getFieldsValue(!0), E),
3993
+ [H]: G
3994
3994
  },
3995
3995
  fields: E,
3996
3996
  reset: !1
3997
3997
  });
3998
- }, Yt = (H) => P.getFieldsValue(!0)[H];
3998
+ }, qt = (H) => P.getFieldsValue(!0)[H];
3999
3999
  async function Ge() {
4000
4000
  try {
4001
4001
  return await P.validateFields(), !1;
@@ -4008,25 +4008,25 @@ function ou(e, t) {
4008
4008
  let H;
4009
4009
  try {
4010
4010
  m ? H = { arch: m.arch, fields: m.fields } : H = await nt();
4011
- const { fields: W, arch: ie } = H;
4012
- K(W), G(ie), await me({
4013
- fields: W,
4011
+ const { fields: G, arch: ie } = H;
4012
+ K(G), W(ie), await me({
4013
+ fields: G,
4014
4014
  arch: ie
4015
4015
  });
4016
- } catch (W) {
4017
- k(W != null && W.message ? W.message + W.stack : W), ue == null || ue(!1);
4016
+ } catch (G) {
4017
+ k(G != null && G.message ? G.message + G.stack : G), ue == null || ue(!1);
4018
4018
  }
4019
4019
  }, me = async (H) => {
4020
- let W, ie, ae, Ie;
4021
- ue == null || ue(!0), k(void 0), H != null && H.fields ? (ie = H.fields, ae = H.arch) : (ie = E, ae = U), h && (H == null ? void 0 : H.forceRefresh) !== !0 ? W = h : { values: W, defaultGetCalled: Ie } = await Dt({
4020
+ let G, ie, ae, Ie;
4021
+ ue == null || ue(!0), k(void 0), H != null && H.fields ? (ie = H.fields, ae = H.arch) : (ie = E, ae = U), h && (H == null ? void 0 : H.forceRefresh) !== !0 ? G = h : { values: G, defaultGetCalled: Ie } = await Dt({
4022
4022
  fields: ie,
4023
4023
  arch: ae
4024
- }), w && (W = { ...jo(w), ...W }), oe.current = Lt(W, ie), ze({
4025
- values: W,
4024
+ }), w && (G = { ...Uc(w), ...G }), oe.current = Zt(G, ie), ze({
4025
+ values: G,
4026
4026
  fields: ie,
4027
4027
  reset: !0,
4028
4028
  isDefaultGet: Ie
4029
- }), St({ fields: ie, arch: ae, values: W }), ue == null || ue(!1), le == null || le(!1), Ie && X(!0);
4029
+ }), St({ fields: ie, arch: ae, values: G }), ue == null || ue(!1), le == null || le(!1), Ie && X(!0);
4030
4030
  }, Ue = async () => new Promise(async (H) => {
4031
4031
  mt() ? gn({
4032
4032
  t: O,
@@ -4053,26 +4053,26 @@ function ou(e, t) {
4053
4053
  }, ze = N(
4054
4054
  ({
4055
4055
  values: H,
4056
- fields: W,
4056
+ fields: G,
4057
4057
  reset: ie,
4058
4058
  isDefaultGet: ae = !1
4059
4059
  }) => {
4060
- const Ze = { ...ie ? {} : P.getFieldsValue(!0), ...H }, fr = Lt(Ze, W), Na = Object.keys(W).map((mr) => ({
4060
+ const Ze = { ...ie ? {} : P.getFieldsValue(!0), ...H }, fr = Zt(Ze, G), $a = Object.keys(G).map((mr) => ({
4061
4061
  name: mr,
4062
4062
  touched: !1,
4063
4063
  value: fr[mr] !== void 0 ? fr[mr] : void 0
4064
4064
  }));
4065
- ae || (B.current = fr), P.setFields(Na);
4065
+ ae || (B.current = fr), P.setFields($a);
4066
4066
  },
4067
4067
  [P]
4068
4068
  ), Dt = async ({
4069
4069
  fields: H,
4070
- arch: W
4070
+ arch: G
4071
4071
  }) => {
4072
4072
  let ie = {}, ae = !1;
4073
4073
  if (we()) {
4074
- const Ie = V || zt({
4075
- arch: W,
4074
+ const Ie = V || Yt({
4075
+ arch: G,
4076
4076
  fields: H,
4077
4077
  values: {}
4078
4078
  });
@@ -4097,11 +4097,11 @@ function ou(e, t) {
4097
4097
  Ae == null || Ae([]), ie = await Tt(H), ae = !0;
4098
4098
  return { values: ie, defaultGetCalled: ae };
4099
4099
  }, Pt = async (H) => {
4100
- const { callOnSubmitSucceed: W = !0 } = H || {};
4100
+ const { callOnSubmitSucceed: G = !0 } = H || {};
4101
4101
  if (we()) {
4102
4102
  const ie = hr({
4103
4103
  source: oe.current,
4104
- target: Ye(E),
4104
+ target: Ke(E),
4105
4105
  fields: E
4106
4106
  });
4107
4107
  await $.getHandler().update({
@@ -4113,9 +4113,9 @@ function ou(e, t) {
4113
4113
  ...v,
4114
4114
  ...V == null ? void 0 : V.context
4115
4115
  }
4116
- }), oe.current = Ye(E);
4116
+ }), oe.current = Ke(E);
4117
4117
  } else {
4118
- const ie = Ye(E), ae = await $.getHandler().create({
4118
+ const ie = Ke(E), ae = await $.getHandler().create({
4119
4119
  model: n,
4120
4120
  values: { ...ie, ...A },
4121
4121
  fields: E,
@@ -4126,12 +4126,12 @@ function ou(e, t) {
4126
4126
  });
4127
4127
  L.current = ae, oe.current = ie;
4128
4128
  }
4129
- y && await y([we()]), !g && W && (ge == null || ge(we(), ce(), be()));
4129
+ y && await y([we()]), !g && G && (ge == null || ge(we(), ce(), be()));
4130
4130
  }, kt = async (H) => {
4131
- const { callOnSubmitSucceed: W = !0 } = H || {};
4132
- !g && W && (ge == null || ge(we(), ce(), be()));
4131
+ const { callOnSubmitSucceed: G = !0 } = H || {};
4132
+ !g && G && (ge == null || ge(we(), ce(), be()));
4133
4133
  }, $t = async (H) => {
4134
- let W = !1;
4134
+ let G = !1;
4135
4135
  const { callOnSubmitSucceed: ie = !0 } = H || {};
4136
4136
  if (q.current = !0, k(void 0), Q.current && !mt() && we() && ie) {
4137
4137
  q.current = !1, le == null || le(!1), ge == null || ge(
@@ -4146,27 +4146,27 @@ function ou(e, t) {
4146
4146
  if (!mt() && we() && ie)
4147
4147
  return q.current = !1, le == null || le(!1), $e == null || $e(), { succeed: !0, id: we() };
4148
4148
  if (await Ge())
4149
- return q.current = !1, Ko(O), { succeed: !1, id: we() };
4149
+ return q.current = !1, Go(O), { succeed: !1, id: we() };
4150
4150
  I(!0), Oe == null || Oe(!0);
4151
4151
  try {
4152
- p === "api" ? await Pt(H) : await kt(H), d && (L.current = void 0, ze({ values: {}, fields: E, reset: !0 })), await me({ forceRefresh: !0 }), W = !0, pr.success(O("savedRegisters"));
4152
+ p === "api" ? await Pt(H) : await kt(H), d && (L.current = void 0, ze({ values: {}, fields: E, reset: !0 })), await me({ forceRefresh: !0 }), G = !0, pr.success(O("savedRegisters"));
4153
4153
  } catch (ae) {
4154
4154
  q.current = !1, I(!1), Oe == null || Oe(!1), Qe == null || Qe(ae), pr.error(O("errorWhileSavingForm")), k(ae != null && ae.message ? ae.message : ae);
4155
4155
  } finally {
4156
4156
  q.current = !1, Oe == null || Oe(!1), I(!1);
4157
4157
  }
4158
- return { succeed: W, id: we() };
4159
- }, zt = N(
4158
+ return { succeed: G, id: we() };
4159
+ }, Yt = N(
4160
4160
  ({
4161
4161
  fields: H,
4162
- arch: W,
4162
+ arch: G,
4163
4163
  values: ie,
4164
4164
  operationInProgress: ae = !1
4165
4165
  }) => {
4166
- const Ie = new Li(H);
4167
- return Ie.parse(W, {
4166
+ const Ie = new Mi(H);
4167
+ return Ie.parse(G, {
4168
4168
  readOnly: f || ae,
4169
- values: Dc(
4169
+ values: Ec(
4170
4170
  {
4171
4171
  ...ie,
4172
4172
  ...tt()
@@ -4179,31 +4179,31 @@ function ou(e, t) {
4179
4179
  ), St = N(
4180
4180
  ({
4181
4181
  fields: H,
4182
- arch: W,
4182
+ arch: G,
4183
4183
  values: ie,
4184
4184
  operationInProgress: ae = !1
4185
4185
  }) => {
4186
4186
  var Ze;
4187
- const Ie = zt({
4188
- arch: W,
4187
+ const Ie = Yt({
4188
+ arch: G,
4189
4189
  fields: H,
4190
4190
  values: ie,
4191
4191
  operationInProgress: ae
4192
4192
  });
4193
4193
  j(Ie), Ie.string && Ie.string !== Y && (ve == null || ve(Ie.string)), re && Ie.string && ((Ze = re.setTitle) == null || Ze.call(re, Ie.string));
4194
4194
  },
4195
- [re, zt, ve, Y]
4195
+ [re, Yt, ve, Y]
4196
4196
  ), Sn = async ({
4197
4197
  elementHasLostFocus: H = !1
4198
4198
  }) => {
4199
4199
  if (q.current)
4200
4200
  return;
4201
- const W = hr({
4201
+ const G = hr({
4202
4202
  source: B.current,
4203
- target: Ye(E),
4203
+ target: Ke(E),
4204
4204
  fields: E
4205
- }), ie = Object.keys(W);
4206
- if (ie.length !== 0 && !(Hc({
4205
+ }), ie = Object.keys(G);
4206
+ if (ie.length !== 0 && !(Bc({
4207
4207
  changedFields: ie,
4208
4208
  formOoui: V,
4209
4209
  types: [
@@ -4218,50 +4218,50 @@ function ou(e, t) {
4218
4218
  "many2one"
4219
4219
  ]
4220
4220
  }) && H !== !0)) {
4221
- const ae = Lt(P.getFieldsValue(!0), E);
4222
- B.current = ae, c == null || c(ae), le == null || le(!0), Ta(ie);
4221
+ const ae = Zt(P.getFieldsValue(!0), E);
4222
+ B.current = ae, c == null || c(ae), le == null || le(!0), Ia(ie);
4223
4223
  }
4224
- }, Nt = Tl(Sn, 100), Ta = async (H) => {
4224
+ }, Nt = Il(Sn, 100), Ia = async (H) => {
4225
4225
  try {
4226
- for (let W = 0; W < H.length; W += 1) {
4227
- const ie = H[W];
4228
- await Oa(ie);
4226
+ for (let G = 0; G < H.length; G += 1) {
4227
+ const ie = H[G];
4228
+ await Ta(ie);
4229
4229
  }
4230
- } catch (W) {
4231
- at(W);
4230
+ } catch (G) {
4231
+ at(G);
4232
4232
  }
4233
- }, Oa = async (H) => {
4234
- const W = V == null ? void 0 : V.onChangeFields[H];
4235
- if (!W) {
4233
+ }, Ta = async (H) => {
4234
+ const G = V == null ? void 0 : V.onChangeFields[H];
4235
+ if (!G) {
4236
4236
  St({
4237
4237
  fields: E,
4238
4238
  arch: U,
4239
- values: Ye(E)
4239
+ values: Ke(E)
4240
4240
  });
4241
4241
  return;
4242
4242
  }
4243
4243
  const ie = Wc({
4244
4244
  values: {
4245
- ...Ye(E),
4245
+ ...Ke(E),
4246
4246
  context: {
4247
4247
  ...v,
4248
4248
  ...V == null ? void 0 : V.context
4249
4249
  }
4250
4250
  },
4251
4251
  parentValues: Ve == null ? void 0 : Ve(),
4252
- onChangeFieldActionArgs: W.args
4252
+ onChangeFieldActionArgs: G.args
4253
4253
  }), ae = await $.getHandler().executeOnChange({
4254
4254
  model: n,
4255
- action: W.method,
4255
+ action: G.method,
4256
4256
  ids: we() ? [we()] : [],
4257
4257
  payload: ie,
4258
4258
  fields: E
4259
4259
  });
4260
4260
  if (ae.value) {
4261
4261
  const Ie = {
4262
- ...Ye(E),
4262
+ ...Ke(E),
4263
4263
  ...ae.value
4264
- }, Ze = Pc({
4264
+ }, Ze = Dc({
4265
4265
  values: Ie,
4266
4266
  fields: E
4267
4267
  });
@@ -4282,20 +4282,20 @@ function ou(e, t) {
4282
4282
  });
4283
4283
  }
4284
4284
  if (ae.domain && Object.keys(ae.domain).length > 0) {
4285
- const Ie = Uc({
4285
+ const Ie = Hc({
4286
4286
  fieldsDomain: ae.domain,
4287
4287
  fields: E
4288
4288
  });
4289
4289
  St({
4290
4290
  fields: Ie,
4291
4291
  arch: U,
4292
- values: Ye(Ie)
4292
+ values: Ke(Ie)
4293
4293
  }), K(Ie);
4294
4294
  }
4295
4295
  };
4296
- async function Aa({
4296
+ async function Oa({
4297
4297
  action: H,
4298
- context: W
4298
+ context: G
4299
4299
  }) {
4300
4300
  const ie = await $.getHandler().execute({
4301
4301
  model: n,
@@ -4304,7 +4304,7 @@ function ou(e, t) {
4304
4304
  context: {
4305
4305
  ...V == null ? void 0 : V.context,
4306
4306
  ...v,
4307
- ...W
4307
+ ...G
4308
4308
  }
4309
4309
  });
4310
4310
  if (typeof ie == "object" && ie !== null && Object.keys(ie).length === 0 && g)
@@ -4313,39 +4313,39 @@ function ou(e, t) {
4313
4313
  ge == null || ge(we(), ce(), be());
4314
4314
  else if (ie.type) {
4315
4315
  let ae = {};
4316
- ie.context && (ae = Bt({
4316
+ ie.context && (ae = jt({
4317
4317
  context: ie.context,
4318
4318
  fields: E,
4319
4319
  values: ce()
4320
4320
  })), await To({
4321
4321
  actionData: ie,
4322
- context: { ...W, ...ae }
4322
+ context: { ...G, ...ae }
4323
4323
  });
4324
4324
  } else
4325
4325
  await me({ forceRefresh: !0 });
4326
4326
  }
4327
- async function Fa({ action: H }) {
4328
- const W = await $.getHandler().executeWorkflow({
4327
+ async function Aa({ action: H }) {
4328
+ const G = await $.getHandler().executeWorkflow({
4329
4329
  model: n,
4330
4330
  action: H,
4331
4331
  payload: we()
4332
4332
  });
4333
- W.type && W.type === "ir.actions.act_window_close" ? ge == null || ge(we(), ce(), be()) : await me({ forceRefresh: !0 });
4333
+ G.type && G.type === "ir.actions.act_window_close" ? ge == null || ge(we(), ce(), be()) : await me({ forceRefresh: !0 });
4334
4334
  }
4335
- async function Ra({
4335
+ async function Fa({
4336
4336
  action: H,
4337
- context: W
4337
+ context: G
4338
4338
  }) {
4339
4339
  const ie = (await $.getHandler().readObjects({
4340
4340
  model: "ir.actions.actions",
4341
4341
  ids: [parseInt(H)],
4342
4342
  context: v
4343
4343
  }))[0];
4344
- await To({ actionData: ie, context: W });
4344
+ await To({ actionData: ie, context: G });
4345
4345
  }
4346
4346
  async function To({
4347
4347
  actionData: H,
4348
- context: W
4348
+ context: G
4349
4349
  }) {
4350
4350
  const { closeParent: ie } = await (Ee == null ? void 0 : Ee({
4351
4351
  actionData: H,
@@ -4354,7 +4354,7 @@ function ou(e, t) {
4354
4354
  context: {
4355
4355
  ...v,
4356
4356
  ...V == null ? void 0 : V.context,
4357
- ...W
4357
+ ...G
4358
4358
  },
4359
4359
  onRefreshParentValues: async () => {
4360
4360
  ke.current = !0, await me({ forceRefresh: !0 });
@@ -4362,47 +4362,46 @@ function ou(e, t) {
4362
4362
  })) || {};
4363
4363
  !C && ie && (ge == null || ge(we(), ce(), be()));
4364
4364
  }
4365
- function _a() {
4365
+ function Ra() {
4366
4366
  Sn({ elementHasLostFocus: !0 });
4367
4367
  }
4368
4368
  function ur(H) {
4369
4369
  St({
4370
4370
  fields: E,
4371
4371
  arch: U,
4372
- values: Ye(E),
4372
+ values: Ke(E),
4373
4373
  operationInProgress: H
4374
4374
  });
4375
4375
  }
4376
- const Va = N(
4376
+ const _a = N(
4377
4377
  (H) => {
4378
4378
  if (!U)
4379
4379
  return;
4380
- let W = H;
4381
- w && (W = { ...jo(w), ...W }), oe.current = Lt(W, E), ze({
4382
- values: W,
4383
- fields: E,
4384
- reset: !0
4385
- }), St({ fields: E, arch: U, values: W }), ze({
4386
- values: H,
4380
+ const G = { ...Ke(E), ...H };
4381
+ oe.current = {
4382
+ ...oe.current,
4383
+ ...H
4384
+ }, St({ fields: E, arch: U, values: G }), ze({
4385
+ values: G,
4387
4386
  fields: E,
4388
4387
  reset: !1
4389
4388
  });
4390
4389
  },
4391
- [w, U, ze, E, St]
4392
- ), { pause: Ea, resume: Da } = nu({
4390
+ [U, ze, E, Ke, St]
4391
+ ), { pause: Va, resume: Ea } = nu({
4393
4392
  model: n,
4394
4393
  id: r,
4395
4394
  context: v,
4396
4395
  autorefreshableFields: V == null ? void 0 : V.autorefreshableFields,
4397
4396
  fieldDefs: E,
4398
- onAutorefreshableFieldsChange: Va
4397
+ onAutorefreshableFieldsChange: _a
4399
4398
  });
4400
4399
  de(() => {
4401
- Ce === !1 && Ea(), Ce === !0 && Da();
4400
+ Ce === !1 && Va(), Ce === !0 && Ea();
4402
4401
  }, [Ce]);
4403
- async function Pa({
4402
+ async function Da({
4404
4403
  type: H,
4405
- action: W,
4404
+ action: G,
4406
4405
  context: ie
4407
4406
  }) {
4408
4407
  if (H === "cancel") {
@@ -4410,20 +4409,20 @@ function ou(e, t) {
4410
4409
  return;
4411
4410
  }
4412
4411
  if (await Ge()) {
4413
- Ko(O);
4412
+ Go(O);
4414
4413
  return;
4415
4414
  }
4416
4415
  let ae = !1;
4417
4416
  try {
4418
4417
  !f && (mt() || we() === void 0) && (ae = !0, ur(!0), p === "2many" ? (await Pt({ callOnSubmitSucceed: !1 }), Q.current = !0) : await $t({ callOnSubmitSucceed: !1 }));
4419
4418
  const Ie = Q.current ? Pe() : {}, Ze = { ...ie, ...Ie };
4420
- H === "object" ? await Aa({ action: W, context: Ze }) : H === "workflow" ? await Fa({ action: W }) : H === "action" && await Ra({ action: W, context: Ze }), ae && ur(!1);
4419
+ H === "object" ? await Oa({ action: G, context: Ze }) : H === "workflow" ? await Aa({ action: G }) : H === "action" && await Fa({ action: G, context: Ze }), ae && ur(!1);
4421
4420
  } catch (Ie) {
4422
4421
  ae && ur(!1), at(Ie);
4423
4422
  }
4424
4423
  }
4425
- const ka = () => !V && !F ? /* @__PURE__ */ i(We, {}) : !n && !m || !x ? null : /* @__PURE__ */ i(se, { children: /* @__PURE__ */ i(
4426
- ec,
4424
+ const Pa = () => !V && !F ? /* @__PURE__ */ i(We, {}) : !n && !m || !x ? null : /* @__PURE__ */ i(se, { children: /* @__PURE__ */ i(
4425
+ Zl,
4427
4426
  {
4428
4427
  getValues: ce,
4429
4428
  getPlainValues: De,
@@ -4431,14 +4430,14 @@ function ou(e, t) {
4431
4430
  domain: w,
4432
4431
  activeId: r,
4433
4432
  activeModel: n,
4434
- setFieldValue: qt,
4435
- getFieldValue: Yt,
4436
- executeButtonAction: Pa,
4433
+ setFieldValue: Kt,
4434
+ getFieldValue: qt,
4435
+ executeButtonAction: Da,
4437
4436
  getContext: Re,
4438
4437
  submitForm: $t,
4439
4438
  fetchValues: me,
4440
4439
  formHasChanges: mt,
4441
- elementHasLostFocus: _a,
4440
+ elementHasLostFocus: Ra,
4442
4441
  formView: m,
4443
4442
  children: /* @__PURE__ */ i(
4444
4443
  ht,
@@ -4458,7 +4457,7 @@ function ou(e, t) {
4458
4457
  }
4459
4458
  )
4460
4459
  }
4461
- ) }), $a = () => /* @__PURE__ */ D(se, { children: [
4460
+ ) }), ka = () => /* @__PURE__ */ D(se, { children: [
4462
4461
  /* @__PURE__ */ i(Jn, {}),
4463
4462
  /* @__PURE__ */ i(Ne, { justify: "end", children: /* @__PURE__ */ D(Xe, { children: [
4464
4463
  /* @__PURE__ */ i(
@@ -4492,13 +4491,13 @@ function ou(e, t) {
4492
4491
  {
4493
4492
  bounds: !0,
4494
4493
  onResize: (H) => {
4495
- var W;
4496
- M((W = H.bounds) == null ? void 0 : W.width);
4494
+ var G;
4495
+ M((G = H.bounds) == null ? void 0 : G.width);
4497
4496
  },
4498
4497
  children: ({ measureRef: H }) => /* @__PURE__ */ D("div", { className: "pb-2", ref: H, children: [
4499
- F && /* @__PURE__ */ i(ms, { className: "mt-5 mb-10", error: F }),
4500
- ka(),
4501
- a && $a()
4498
+ F && /* @__PURE__ */ i(fs, { className: "mt-5 mb-10", error: F }),
4499
+ Pa(),
4500
+ a && ka()
4502
4501
  ] })
4503
4502
  }
4504
4503
  ) : null;
@@ -4548,7 +4547,7 @@ const vn = yt(ou), wn = (e) => {
4548
4547
  je,
4549
4548
  {
4550
4549
  type: h ? "primary" : "default",
4551
- icon: h ? /* @__PURE__ */ i(nl, { style: { color: "white" } }) : /* @__PURE__ */ i(rl, {}),
4550
+ icon: h ? /* @__PURE__ */ i(tl, { style: { color: "white" } }) : /* @__PURE__ */ i(nl, {}),
4552
4551
  style: { width: 30 },
4553
4552
  onClick: A
4554
4553
  }
@@ -4582,7 +4581,7 @@ const vn = yt(ou), wn = (e) => {
4582
4581
  )
4583
4582
  }
4584
4583
  ) });
4585
- }, { error: iu } = ut, Wt = (e) => {
4584
+ }, { error: iu } = ut, Ut = (e) => {
4586
4585
  iu({
4587
4586
  title: "Error",
4588
4587
  icon: /* @__PURE__ */ i(Et, {}),
@@ -4591,9 +4590,9 @@ const vn = yt(ou), wn = (e) => {
4591
4590
  });
4592
4591
  }, _r = (e) => {
4593
4592
  const t = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
4594
- Wt(t);
4595
- }, xs = () => {
4596
- const { modal: e } = Wa.useApp();
4593
+ Ut(t);
4594
+ }, Cs = () => {
4595
+ const { modal: e } = Ua.useApp();
4597
4596
  return N(
4598
4597
  (t) => {
4599
4598
  const n = t.message ? JSON.stringify(t.message) : JSON.stringify(t);
@@ -4606,7 +4605,7 @@ const vn = yt(ou), wn = (e) => {
4606
4605
  },
4607
4606
  [e]
4608
4607
  );
4609
- }, Is = ({
4608
+ }, xs = ({
4610
4609
  model: e,
4611
4610
  formViewProps: t,
4612
4611
  treeViewProps: n,
@@ -4632,7 +4631,7 @@ const vn = yt(ou), wn = (e) => {
4632
4631
  const g = await Promise.all(y), v = 0, w = t ? 0 : 1;
4633
4632
  f(t || g[v]), c(n || g[w]);
4634
4633
  } catch (y) {
4635
- console.error("Error fetching view data:", y), Wt(y);
4634
+ console.error("Error fetching view data:", y), Ut(y);
4636
4635
  } finally {
4637
4636
  a(!1), d.current = !1;
4638
4637
  }
@@ -4654,7 +4653,7 @@ function su(e) {
4654
4653
  return 0;
4655
4654
  }
4656
4655
  }
4657
- function Ts(e) {
4656
+ function Is(e) {
4658
4657
  if (e === void 0)
4659
4658
  return;
4660
4659
  let t, n = Math.floor(Math.abs(e)), r = Math.round(Math.abs(e) % 1 * 100) / 100;
@@ -4670,7 +4669,7 @@ function Ts(e) {
4670
4669
  });
4671
4670
  return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
4672
4671
  }
4673
- const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os, {}) }), Os = ({ value: e }) => {
4672
+ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Ts, {}) }), Ts = ({ value: e }) => {
4674
4673
  const t = `${(e || 0).toLocaleString("en-US", {
4675
4674
  minimumIntegerDigits: 1,
4676
4675
  maximumFractionDigits: 4,
@@ -4680,7 +4679,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
4680
4679
  /* @__PURE__ */ i(lu, { percent: e }),
4681
4680
  /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
4682
4681
  ] });
4683
- }, lu = mn(Ga)`
4682
+ }, lu = mn(Wa)`
4684
4683
  .ant-progress-outer {
4685
4684
  margin-right: 0px;
4686
4685
  padding-right: 0px;
@@ -4730,7 +4729,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
4730
4729
  }, [l, e]);
4731
4730
  return /* @__PURE__ */ D(Fn, { children: [
4732
4731
  /* @__PURE__ */ i(
4733
- wl,
4732
+ vl,
4734
4733
  {
4735
4734
  onRetrieveData: f,
4736
4735
  onItemClick: (d) => {
@@ -4790,7 +4789,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
4790
4789
  ids: [t],
4791
4790
  fieldsToRetrieve: C,
4792
4791
  context: r
4793
- })) == null ? void 0 : A[0] }), b = { ...Lt(b, C), active_id: t }, l(b), !(!x || !x.toolbar))
4792
+ })) == null ? void 0 : A[0] }), b = { ...Zt(b, C), active_id: t }, l(b), !(!x || !x.toolbar))
4794
4793
  return {
4795
4794
  actionItems: x.toolbar.action,
4796
4795
  relateItems: x.toolbar.relate,
@@ -4846,7 +4845,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
4846
4845
  const s = t[o];
4847
4846
  return (s == null ? void 0 : s.flatMap((a) => {
4848
4847
  const l = [];
4849
- return "context" in a && l.push(...Za(a.context)), "domain" in a && l.push(...el(a.domain)), l;
4848
+ return "context" in a && l.push(...Xa(a.context)), "domain" in a && l.push(...Za(a.domain)), l;
4850
4849
  })) || [];
4851
4850
  });
4852
4851
  return [
@@ -4890,15 +4889,15 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
4890
4889
  let r = n;
4891
4890
  t.selectionValues.size ? r = t.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
4892
4891
  const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = Rn(r);
4893
- return /* @__PURE__ */ i(Ft, { title: r, children: /* @__PURE__ */ i(Vi, { alt: r, style: { backgroundColor: s }, children: o }) });
4892
+ return /* @__PURE__ */ i(Ft, { title: r, children: /* @__PURE__ */ i(_i, { alt: r, style: { backgroundColor: s }, children: o }) });
4894
4893
  }, pu = {
4895
- en_US: Ll,
4896
- es_ES: jl,
4897
- ca_ES: Bl
4894
+ en_US: Ml,
4895
+ es_ES: Ll,
4896
+ ca_ES: jl
4898
4897
  }, ho = () => {
4899
4898
  const { locale: e } = he();
4900
4899
  return pu[e];
4901
- }, { useToken: hu } = Ke, xt = {
4900
+ }, { useToken: hu } = qe, xt = {
4902
4901
  date: {
4903
4902
  placeholder: "__/__/____",
4904
4903
  dateDisplayFormat: "DD/MM/YYYY",
@@ -4909,7 +4908,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
4909
4908
  dateDisplayFormat: "DD/MM/YYYY HH:mm:ss",
4910
4909
  dateInternalFormat: "YYYY-MM-DD HH:mm:ss"
4911
4910
  }
4912
- }, As = (e) => {
4911
+ }, Os = (e) => {
4913
4912
  const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
4914
4913
  return /* @__PURE__ */ i(Fe, { required: r, ...e, children: /* @__PURE__ */ i(gu, { ooui: t, showTime: n }) });
4915
4914
  }, gu = (e) => {
@@ -4940,7 +4939,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
4940
4939
  locale: u
4941
4940
  }
4942
4941
  );
4943
- }, Fs = ({
4942
+ }, As = ({
4944
4943
  emails: e,
4945
4944
  handleClose: t
4946
4945
  }) => {
@@ -4951,7 +4950,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
4951
4950
  Gr,
4952
4951
  {
4953
4952
  closable: !!t,
4954
- color: Hl.isEmail(r) ? void 0 : "error",
4953
+ color: Bl.isEmail(r) ? void 0 : "error",
4955
4954
  onClose: () => t && t(r),
4956
4955
  children: r
4957
4956
  },
@@ -4963,7 +4962,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
4963
4962
  maxLength: n,
4964
4963
  readonly: r = !1
4965
4964
  }) => {
4966
- const { token: o } = Ke.useToken(), [s, a] = S(
4965
+ const { token: o } = qe.useToken(), [s, a] = S(
4967
4966
  e ? e.split(";").map((g) => g.trim()).filter((g) => g) : []
4968
4967
  ), [l, c] = S(""), u = J(null), f = ne(He), { elementHasLostFocus: d } = f || {}, p = N(
4969
4968
  (g) => {
@@ -5005,7 +5004,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5005
5004
  },
5006
5005
  children: [
5007
5006
  /* @__PURE__ */ i(
5008
- Fs,
5007
+ As,
5009
5008
  {
5010
5009
  emails: s,
5011
5010
  handleClose: r ? void 0 : y
@@ -5054,7 +5053,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5054
5053
  [e]
5055
5054
  ), wu = ({
5056
5055
  value: e
5057
- }) => fe(() => /* @__PURE__ */ i(Fs, { emails: e }), [e]), bu = ({ value: e }) => fe(() => /* @__PURE__ */ i(uu, { m2oField: e }), [e]), Su = ({ value: e }) => fe(
5056
+ }) => fe(() => /* @__PURE__ */ i(As, { emails: e }), [e]), bu = ({ value: e }) => fe(() => /* @__PURE__ */ i(uu, { m2oField: e }), [e]), Su = ({ value: e }) => fe(
5058
5057
  () => /* @__PURE__ */ i(
5059
5058
  Tn,
5060
5059
  {
@@ -5078,14 +5077,14 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5078
5077
  xt.time.dateInternalFormat
5079
5078
  ).format(xt.time.dateDisplayFormat);
5080
5079
  return /* @__PURE__ */ i(se, { children: t });
5081
- }, [e]), Yo = ({
5080
+ }, [e]), qo = ({
5082
5081
  value: e
5083
5082
  }) => fe(() => {
5084
5083
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
5085
5084
  return /* @__PURE__ */ i(se, { children: `( ${t} )` });
5086
5085
  }, [e]), Iu = ({
5087
5086
  value: e
5088
- }) => fe(() => /* @__PURE__ */ i(Os, { value: e }), [e]), Tu = ({ value: e }) => fe(() => /* @__PURE__ */ i(se, { children: Ts(e) }), [e]), zo = ({ value: e }) => fe(
5087
+ }) => fe(() => /* @__PURE__ */ i(Ts, { value: e }), [e]), Tu = ({ value: e }) => fe(() => /* @__PURE__ */ i(se, { children: Is(e) }), [e]), Yo = ({ value: e }) => fe(
5089
5088
  () => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: e }),
5090
5089
  [e]
5091
5090
  ), Ou = ({ value: e }) => fe(
@@ -5096,7 +5095,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5096
5095
  key: t,
5097
5096
  ooui: n,
5098
5097
  context: r
5099
- }) => fe(() => /* @__PURE__ */ i(Ss, { ooui: n, value: e }), [n, e]), Fu = ({
5098
+ }) => fe(() => /* @__PURE__ */ i(bs, { ooui: n, value: e }), [n, e]), Fu = ({
5100
5099
  value: e,
5101
5100
  key: t,
5102
5101
  ooui: n,
@@ -5173,13 +5172,13 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5173
5172
  boolean: vu,
5174
5173
  many2one: bu,
5175
5174
  text: Su,
5176
- one2many: Yo,
5177
- many2many: Yo,
5175
+ one2many: qo,
5176
+ many2many: qo,
5178
5177
  progressbar: Iu,
5179
5178
  float_time: Tu,
5180
5179
  image: Ou,
5181
- integer: zo,
5182
- float: zo,
5180
+ integer: Yo,
5181
+ float: Yo,
5183
5182
  reference: Ru,
5184
5183
  tag: Au,
5185
5184
  selection: Fu,
@@ -5284,7 +5283,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5284
5283
  [e]
5285
5284
  );
5286
5285
  return { getColumnState: a, updateColumnState: l };
5287
- }, Rs = (e) => {
5286
+ }, Fs = (e) => {
5288
5287
  const [t, n] = S(!0), r = J(void 0), o = J(!1), { getColumnState: s, updateColumnState: a } = ku(e);
5289
5288
  return de(() => {
5290
5289
  if (!e) {
@@ -5304,7 +5303,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5304
5303
  }
5305
5304
  })();
5306
5305
  }, [s, e]), { getColumnState: N(() => r.current, []), loading: t, updateColumnState: a };
5307
- }, $u = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, Jo = ["sum", "count", "max", "min"], _s = ({
5306
+ }, $u = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, zo = ["sum", "count", "max", "min"], Rs = ({
5308
5307
  ooui: e,
5309
5308
  model: t,
5310
5309
  domain: n,
@@ -5316,9 +5315,9 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5316
5315
  if (e)
5317
5316
  return e.columns.filter((h) => Object.keys(h).some((m) => {
5318
5317
  var y;
5319
- return h[m] !== void 0 && ((y = h[m]) == null ? void 0 : y.length) > 0 && Jo.includes(m.slice(1));
5318
+ return h[m] !== void 0 && ((y = h[m]) == null ? void 0 : y.length) > 0 && zo.includes(m.slice(1));
5320
5319
  })).map((h) => {
5321
- const m = Object.keys(h).filter((y) => Jo.includes(y.slice(1))).map((y) => y.slice(1));
5320
+ const m = Object.keys(h).filter((y) => zo.includes(y.slice(1))).map((y) => y.slice(1));
5322
5321
  return {
5323
5322
  [h.id]: m
5324
5323
  };
@@ -5381,7 +5380,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5381
5380
  }, [f, n]);
5382
5381
  const p = f !== void 0 && Object.keys(f).length > 0;
5383
5382
  return [a, o, p];
5384
- }, Vs = ({
5383
+ }, _s = ({
5385
5384
  aggregates: e,
5386
5385
  isLoading: t
5387
5386
  }) => {
@@ -5402,7 +5401,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5402
5401
  ]
5403
5402
  }
5404
5403
  );
5405
- }, { Text: Qo } = Vt, Nu = ({
5404
+ }, { Text: Jo } = Vt, Nu = ({
5406
5405
  totalRows: e,
5407
5406
  selectedRowKeys: t,
5408
5407
  hideSelectionSummary: n = !1
@@ -5433,7 +5432,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5433
5432
  t("selectedRegisters"),
5434
5433
  " - (id:",
5435
5434
  " ",
5436
- /* @__PURE__ */ i(Qo, { copyable: !0, children: e[0] }),
5435
+ /* @__PURE__ */ i(Jo, { copyable: !0, children: e[0] }),
5437
5436
  ")"
5438
5437
  ] });
5439
5438
  if (e.length > 1)
@@ -5442,7 +5441,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5442
5441
  " ",
5443
5442
  t("selectedRegisters") + " ",
5444
5443
  /* @__PURE__ */ i(
5445
- Qo,
5444
+ Jo,
5446
5445
  {
5447
5446
  copyable: {
5448
5447
  text: e.join(", ")
@@ -5469,7 +5468,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5469
5468
  }) => {
5470
5469
  const o = J(), s = J(0);
5471
5470
  return /* @__PURE__ */ i(
5472
- Ka,
5471
+ Ga,
5473
5472
  {
5474
5473
  ...r,
5475
5474
  ref: o,
@@ -5548,10 +5547,10 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5548
5547
  }
5549
5548
  }
5550
5549
  )
5551
- ] }), { useToken: Hu } = Ke, Es = (e) => {
5550
+ ] }), { useToken: Hu } = qe, Vs = (e) => {
5552
5551
  const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: s } = t, { token: a } = Hu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = ne(He), { elementHasLostFocus: u } = c || {};
5553
5552
  return /* @__PURE__ */ i(Fe, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
5554
- Ei,
5553
+ Vi,
5555
5554
  {
5556
5555
  disabled: o,
5557
5556
  className: "w-full",
@@ -5564,10 +5563,10 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5564
5563
  wheel: !1
5565
5564
  }
5566
5565
  ) });
5567
- }, { useToken: Uu } = Ke, qn = (e) => {
5566
+ }, { useToken: Uu } = qe, qn = (e) => {
5568
5567
  const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } = Uu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = ne(He), { elementHasLostFocus: u } = c || {};
5569
5568
  return /* @__PURE__ */ i(Fe, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
5570
- Ei,
5569
+ Vi,
5571
5570
  {
5572
5571
  id: r,
5573
5572
  className: "w-full ",
@@ -5585,7 +5584,7 @@ const au = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Os,
5585
5584
  ) });
5586
5585
  };
5587
5586
  function Wu(e) {
5588
- const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof Fr ? qn : Es, l = (c) => /* @__PURE__ */ i(
5587
+ const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof Fr ? qn : Vs, l = (c) => /* @__PURE__ */ i(
5589
5588
  a,
5590
5589
  {
5591
5590
  ooui: {
@@ -5626,7 +5625,7 @@ function Wu(e) {
5626
5625
  )
5627
5626
  ] });
5628
5627
  }
5629
- const { defaultAlgorithm: Gu, defaultSeed: Ku } = Ke, qu = Gu(Ku), { Option: Yu } = Gt, zu = (e) => {
5628
+ const { defaultAlgorithm: Gu, defaultSeed: Ku } = qe, qu = Gu(Ku), { Option: Yu } = Wt, zu = (e) => {
5630
5629
  const { ooui: t } = e, { required: n } = t;
5631
5630
  return /* @__PURE__ */ i(Fe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Ju, { ...e }) });
5632
5631
  }, Ju = (e) => {
@@ -5636,7 +5635,7 @@ const { defaultAlgorithm: Gu, defaultSeed: Ku } = Ke, qu = Gu(Ku), { Option: Yu
5636
5635
  }).map((d) => {
5637
5636
  const [p, h] = d;
5638
5637
  return /* @__PURE__ */ i(Yu, { value: h, children: h }, p);
5639
- }), u = a && !s ? Qu : Gt;
5638
+ }), u = a && !s ? Qu : Wt;
5640
5639
  function f(d) {
5641
5640
  const p = d.map((h) => {
5642
5641
  const m = l.find(([y, g]) => h === g);
@@ -5659,12 +5658,12 @@ const { defaultAlgorithm: Gu, defaultSeed: Ku } = Ke, qu = Gu(Ku), { Option: Yu
5659
5658
  children: c
5660
5659
  }
5661
5660
  );
5662
- }, Qu = mn(Gt)`
5661
+ }, Qu = mn(Wt)`
5663
5662
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
5664
5663
  background-color: ${qu.colorPrimaryBg};
5665
5664
  }
5666
5665
  `;
5667
- function Ds(e) {
5666
+ function Es(e) {
5668
5667
  const { field: t } = e;
5669
5668
  t.readOnly = !1, t.required = !1;
5670
5669
  const { t: n } = he();
@@ -5678,7 +5677,7 @@ function Ds(e) {
5678
5677
  ["false", n("false")]
5679
5678
  ]
5680
5679
  });
5681
- return /* @__PURE__ */ i(os, { layout: "vertical", ooui: o, showLabel: !0 });
5680
+ return /* @__PURE__ */ i(rs, { layout: "vertical", ooui: o, showLabel: !0 });
5682
5681
  }
5683
5682
  case Ot.float:
5684
5683
  case Ot.progressbar:
@@ -5693,7 +5692,7 @@ function Ds(e) {
5693
5692
  return /* @__PURE__ */ i(zu, { layout: "vertical", ooui: t, showLabel: !0 });
5694
5693
  default:
5695
5694
  return /* @__PURE__ */ i(
5696
- rs,
5695
+ ns,
5697
5696
  {
5698
5697
  ooui: t,
5699
5698
  layout: "vertical",
@@ -5703,7 +5702,7 @@ function Ds(e) {
5703
5702
  );
5704
5703
  }
5705
5704
  }
5706
- const Xo = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Mn = (e, t) => {
5705
+ const Qo = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Mn = (e, t) => {
5707
5706
  const n = rf(e), r = tf(n), o = nf(
5708
5707
  r,
5709
5708
  t
@@ -5730,9 +5729,9 @@ const Xo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5730
5729
  e,
5731
5730
  "in",
5732
5731
  t.map(
5733
- (a) => Xo(a)
5732
+ (a) => Qo(a)
5734
5733
  )
5735
- ] : [e, "=", Xo(t)];
5734
+ ] : [e, "=", Qo(t)];
5736
5735
  }, Zu = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), ef = (e) => {
5737
5736
  const t = { ...e };
5738
5737
  return Object.keys(t).forEach(
@@ -5776,7 +5775,7 @@ const Xo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5776
5775
  return t.forEach((o) => {
5777
5776
  Array.isArray(o) && o[0] ? r.includes(o[0]) || n.push(o) : r.includes(o) || n.push(o);
5778
5777
  }), n;
5779
- }, { useToken: sf } = Ke, { Title: af } = Vt, { Header: lf, Content: cf, Footer: df } = Di, uf = ({
5778
+ }, { useToken: sf } = qe, { Title: af } = Vt, { Header: lf, Content: cf, Footer: df } = Ei, uf = ({
5780
5779
  isOpen: e,
5781
5780
  onClose: t,
5782
5781
  children: n,
@@ -5812,7 +5811,7 @@ const Xo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5812
5811
  padding: "0 16px",
5813
5812
  borderBottom: "1px solid #f0f0f0"
5814
5813
  };
5815
- return /* @__PURE__ */ i(Zl, { children: e && /* @__PURE__ */ D(se, { children: [
5814
+ return /* @__PURE__ */ i(Xl, { children: e && /* @__PURE__ */ D(se, { children: [
5816
5815
  /* @__PURE__ */ i(
5817
5816
  Po.div,
5818
5817
  {
@@ -5894,17 +5893,17 @@ const Xo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5894
5893
  ] }) });
5895
5894
  };
5896
5895
  var $n = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5897
- function Ps(e) {
5896
+ function Ds(e) {
5898
5897
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5899
5898
  }
5900
- var ff = "Expected a function", Zo = 0 / 0, mf = "[object Symbol]", pf = /^\s+|\s+$/g, hf = /^[-+]0x[0-9a-f]+$/i, gf = /^0b[01]+$/i, yf = /^0o[0-7]+$/i, vf = parseInt, wf = typeof $n == "object" && $n && $n.Object === Object && $n, bf = typeof self == "object" && self && self.Object === Object && self, Sf = wf || bf || Function("return this")(), Cf = Object.prototype, xf = Cf.toString, If = Math.max, Tf = Math.min, yr = function() {
5899
+ var ff = "Expected a function", Xo = 0 / 0, mf = "[object Symbol]", pf = /^\s+|\s+$/g, hf = /^[-+]0x[0-9a-f]+$/i, gf = /^0b[01]+$/i, yf = /^0o[0-7]+$/i, vf = parseInt, wf = typeof $n == "object" && $n && $n.Object === Object && $n, bf = typeof self == "object" && self && self.Object === Object && self, Sf = wf || bf || Function("return this")(), Cf = Object.prototype, xf = Cf.toString, If = Math.max, Tf = Math.min, yr = function() {
5901
5900
  return Sf.Date.now();
5902
5901
  };
5903
5902
  function Of(e, t, n) {
5904
5903
  var r, o, s, a, l, c, u = 0, f = !1, d = !1, p = !0;
5905
5904
  if (typeof e != "function")
5906
5905
  throw new TypeError(ff);
5907
- t = ei(t) || 0, Er(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? If(ei(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
5906
+ t = Zo(t) || 0, Er(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? If(Zo(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
5908
5907
  function h(A) {
5909
5908
  var T = r, R = o;
5910
5909
  return r = o = void 0, u = A, a = e.apply(R, T), a;
@@ -5957,11 +5956,11 @@ function Af(e) {
5957
5956
  function Ff(e) {
5958
5957
  return typeof e == "symbol" || Af(e) && xf.call(e) == mf;
5959
5958
  }
5960
- function ei(e) {
5959
+ function Zo(e) {
5961
5960
  if (typeof e == "number")
5962
5961
  return e;
5963
5962
  if (Ff(e))
5964
- return Zo;
5963
+ return Xo;
5965
5964
  if (Er(e)) {
5966
5965
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
5967
5966
  e = Er(t) ? t + "" : t;
@@ -5970,21 +5969,21 @@ function ei(e) {
5970
5969
  return e === 0 ? e : +e;
5971
5970
  e = e.replace(pf, "");
5972
5971
  var n = gf.test(e);
5973
- return n || yf.test(e) ? vf(e.slice(2), n ? 2 : 8) : hf.test(e) ? Zo : +e;
5972
+ return n || yf.test(e) ? vf(e.slice(2), n ? 2 : 8) : hf.test(e) ? Xo : +e;
5974
5973
  }
5975
5974
  var Rf = Of;
5976
- const _f = /* @__PURE__ */ Ps(Rf);
5977
- var ti = Object.prototype.toString, ks = function(t) {
5978
- var n = ti.call(t), r = n === "[object Arguments]";
5979
- return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && ti.call(t.callee) === "[object Function]"), r;
5980
- }, vr, ni;
5975
+ const _f = /* @__PURE__ */ Ds(Rf);
5976
+ var ei = Object.prototype.toString, Ps = function(t) {
5977
+ var n = ei.call(t), r = n === "[object Arguments]";
5978
+ return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && ei.call(t.callee) === "[object Function]"), r;
5979
+ }, vr, ti;
5981
5980
  function Vf() {
5982
- if (ni)
5981
+ if (ti)
5983
5982
  return vr;
5984
- ni = 1;
5983
+ ti = 1;
5985
5984
  var e;
5986
5985
  if (!Object.keys) {
5987
- var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = ks, o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), a = o.call(function() {
5986
+ var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Ps, o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), a = o.call(function() {
5988
5987
  }, "prototype"), l = [
5989
5988
  "toString",
5990
5989
  "toLocaleString",
@@ -6066,9 +6065,9 @@ function Vf() {
6066
6065
  }
6067
6066
  return vr = e, vr;
6068
6067
  }
6069
- var Ef = Array.prototype.slice, Df = ks, ri = Object.keys, Ln = ri ? function(t) {
6070
- return ri(t);
6071
- } : Vf(), oi = Object.keys;
6068
+ var Ef = Array.prototype.slice, Df = Ps, ni = Object.keys, Ln = ni ? function(t) {
6069
+ return ni(t);
6070
+ } : Vf(), ri = Object.keys;
6072
6071
  Ln.shim = function() {
6073
6072
  if (Object.keys) {
6074
6073
  var t = function() {
@@ -6076,13 +6075,13 @@ Ln.shim = function() {
6076
6075
  return n && n.length === arguments.length;
6077
6076
  }(1, 2);
6078
6077
  t || (Object.keys = function(r) {
6079
- return Df(r) ? oi(Ef.call(r)) : oi(r);
6078
+ return Df(r) ? ri(Ef.call(r)) : ri(r);
6080
6079
  });
6081
6080
  } else
6082
6081
  Object.keys = Ln;
6083
6082
  return Object.keys || Ln;
6084
6083
  };
6085
- var $s = Ln, Ns = function() {
6084
+ var ks = Ln, $s = function() {
6086
6085
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
6087
6086
  return !1;
6088
6087
  if (typeof Symbol.iterator == "symbol")
@@ -6105,14 +6104,14 @@ var $s = Ln, Ns = function() {
6105
6104
  return !1;
6106
6105
  }
6107
6106
  return !0;
6108
- }, Pf = Ns, yo = function() {
6107
+ }, Pf = $s, yo = function() {
6109
6108
  return Pf() && !!Symbol.toStringTag;
6110
- }, ii = typeof Symbol < "u" && Symbol, kf = Ns, $f = function() {
6111
- return typeof ii != "function" || typeof Symbol != "function" || typeof ii("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : kf();
6112
- }, si = {
6109
+ }, oi = typeof Symbol < "u" && Symbol, kf = $s, $f = function() {
6110
+ return typeof oi != "function" || typeof Symbol != "function" || typeof oi("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : kf();
6111
+ }, ii = {
6113
6112
  foo: {}
6114
6113
  }, Nf = Object, Mf = function() {
6115
- return { __proto__: si }.foo === si.foo && !({ __proto__: null } instanceof Nf);
6114
+ return { __proto__: ii }.foo === ii.foo && !({ __proto__: null } instanceof Nf);
6116
6115
  }, Lf = "Function.prototype.bind called on incompatible ", wr = Array.prototype.slice, jf = Object.prototype.toString, Bf = "[object Function]", Hf = function(t) {
6117
6116
  var n = this;
6118
6117
  if (typeof n != "function" || jf.call(n) !== Bf)
@@ -6137,39 +6136,39 @@ var $s = Ln, Ns = function() {
6137
6136
  u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
6138
6137
  }
6139
6138
  return o;
6140
- }, Uf = Hf, Ms = Function.prototype.bind || Uf, ai = {}.hasOwnProperty, br = Function.prototype.call, Wf = br.bind ? br.bind(ai) : function(e, t) {
6141
- return br.call(ai, e, t);
6142
- }, _e, cn = SyntaxError, Ls = Function, on = TypeError, Sr = function(e) {
6139
+ }, Uf = Hf, Ns = Function.prototype.bind || Uf, si = {}.hasOwnProperty, br = Function.prototype.call, Wf = br.bind ? br.bind(si) : function(e, t) {
6140
+ return br.call(si, e, t);
6141
+ }, _e, cn = SyntaxError, Ms = Function, on = TypeError, Sr = function(e) {
6143
6142
  try {
6144
- return Ls('"use strict"; return (' + e + ").constructor;")();
6143
+ return Ms('"use strict"; return (' + e + ").constructor;")();
6145
6144
  } catch {
6146
6145
  }
6147
- }, Ht = Object.getOwnPropertyDescriptor;
6148
- if (Ht)
6146
+ }, Bt = Object.getOwnPropertyDescriptor;
6147
+ if (Bt)
6149
6148
  try {
6150
- Ht({}, "");
6149
+ Bt({}, "");
6151
6150
  } catch {
6152
- Ht = null;
6151
+ Bt = null;
6153
6152
  }
6154
6153
  var Cr = function() {
6155
6154
  throw new on();
6156
- }, Gf = Ht ? function() {
6155
+ }, Gf = Bt ? function() {
6157
6156
  try {
6158
6157
  return arguments.callee, Cr;
6159
6158
  } catch {
6160
6159
  try {
6161
- return Ht(arguments, "callee").get;
6160
+ return Bt(arguments, "callee").get;
6162
6161
  } catch {
6163
6162
  return Cr;
6164
6163
  }
6165
6164
  }
6166
- }() : Cr, Jt = $f(), Kf = Mf(), et = Object.getPrototypeOf || (Kf ? function(e) {
6165
+ }() : Cr, zt = $f(), Kf = Mf(), et = Object.getPrototypeOf || (Kf ? function(e) {
6167
6166
  return e.__proto__;
6168
- } : null), en = {}, qf = typeof Uint8Array > "u" || !et ? _e : et(Uint8Array), Ut = {
6167
+ } : null), en = {}, qf = typeof Uint8Array > "u" || !et ? _e : et(Uint8Array), Ht = {
6169
6168
  "%AggregateError%": typeof AggregateError > "u" ? _e : AggregateError,
6170
6169
  "%Array%": Array,
6171
6170
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? _e : ArrayBuffer,
6172
- "%ArrayIteratorPrototype%": Jt && et ? et([][Symbol.iterator]()) : _e,
6171
+ "%ArrayIteratorPrototype%": zt && et ? et([][Symbol.iterator]()) : _e,
6173
6172
  "%AsyncFromSyncIteratorPrototype%": _e,
6174
6173
  "%AsyncFunction%": en,
6175
6174
  "%AsyncGenerator%": en,
@@ -6193,17 +6192,17 @@ var Cr = function() {
6193
6192
  "%Float32Array%": typeof Float32Array > "u" ? _e : Float32Array,
6194
6193
  "%Float64Array%": typeof Float64Array > "u" ? _e : Float64Array,
6195
6194
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? _e : FinalizationRegistry,
6196
- "%Function%": Ls,
6195
+ "%Function%": Ms,
6197
6196
  "%GeneratorFunction%": en,
6198
6197
  "%Int8Array%": typeof Int8Array > "u" ? _e : Int8Array,
6199
6198
  "%Int16Array%": typeof Int16Array > "u" ? _e : Int16Array,
6200
6199
  "%Int32Array%": typeof Int32Array > "u" ? _e : Int32Array,
6201
6200
  "%isFinite%": isFinite,
6202
6201
  "%isNaN%": isNaN,
6203
- "%IteratorPrototype%": Jt && et ? et(et([][Symbol.iterator]())) : _e,
6202
+ "%IteratorPrototype%": zt && et ? et(et([][Symbol.iterator]())) : _e,
6204
6203
  "%JSON%": typeof JSON == "object" ? JSON : _e,
6205
6204
  "%Map%": typeof Map > "u" ? _e : Map,
6206
- "%MapIteratorPrototype%": typeof Map > "u" || !Jt || !et ? _e : et((/* @__PURE__ */ new Map())[Symbol.iterator]()),
6205
+ "%MapIteratorPrototype%": typeof Map > "u" || !zt || !et ? _e : et((/* @__PURE__ */ new Map())[Symbol.iterator]()),
6207
6206
  "%Math%": Math,
6208
6207
  "%Number%": Number,
6209
6208
  "%Object%": Object,
@@ -6216,11 +6215,11 @@ var Cr = function() {
6216
6215
  "%Reflect%": typeof Reflect > "u" ? _e : Reflect,
6217
6216
  "%RegExp%": RegExp,
6218
6217
  "%Set%": typeof Set > "u" ? _e : Set,
6219
- "%SetIteratorPrototype%": typeof Set > "u" || !Jt || !et ? _e : et((/* @__PURE__ */ new Set())[Symbol.iterator]()),
6218
+ "%SetIteratorPrototype%": typeof Set > "u" || !zt || !et ? _e : et((/* @__PURE__ */ new Set())[Symbol.iterator]()),
6220
6219
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? _e : SharedArrayBuffer,
6221
6220
  "%String%": String,
6222
- "%StringIteratorPrototype%": Jt && et ? et(""[Symbol.iterator]()) : _e,
6223
- "%Symbol%": Jt ? Symbol : _e,
6221
+ "%StringIteratorPrototype%": zt && et ? et(""[Symbol.iterator]()) : _e,
6222
+ "%Symbol%": zt ? Symbol : _e,
6224
6223
  "%SyntaxError%": cn,
6225
6224
  "%ThrowTypeError%": Gf,
6226
6225
  "%TypedArray%": qf,
@@ -6239,7 +6238,7 @@ if (et)
6239
6238
  null.error;
6240
6239
  } catch (e) {
6241
6240
  var Yf = et(et(e));
6242
- Ut["%Error.prototype%"] = Yf;
6241
+ Ht["%Error.prototype%"] = Yf;
6243
6242
  }
6244
6243
  var zf = function e(t) {
6245
6244
  var n;
@@ -6256,8 +6255,8 @@ var zf = function e(t) {
6256
6255
  var o = e("%AsyncGenerator%");
6257
6256
  o && et && (n = et(o.prototype));
6258
6257
  }
6259
- return Ut[t] = n, n;
6260
- }, li = {
6258
+ return Ht[t] = n, n;
6259
+ }, ai = {
6261
6260
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
6262
6261
  "%ArrayPrototype%": ["Array", "prototype"],
6263
6262
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -6309,20 +6308,20 @@ var zf = function e(t) {
6309
6308
  "%URIErrorPrototype%": ["URIError", "prototype"],
6310
6309
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
6311
6310
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
6312
- }, Vn = Ms, Yn = Wf, Jf = Vn.call(Function.call, Array.prototype.concat), Qf = Vn.call(Function.apply, Array.prototype.splice), ci = Vn.call(Function.call, String.prototype.replace), zn = Vn.call(Function.call, String.prototype.slice), Xf = Vn.call(Function.call, RegExp.prototype.exec), Zf = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, em = /\\(\\)?/g, tm = function(t) {
6311
+ }, Vn = Ns, Yn = Wf, Jf = Vn.call(Function.call, Array.prototype.concat), Qf = Vn.call(Function.apply, Array.prototype.splice), li = Vn.call(Function.call, String.prototype.replace), zn = Vn.call(Function.call, String.prototype.slice), Xf = Vn.call(Function.call, RegExp.prototype.exec), Zf = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, em = /\\(\\)?/g, tm = function(t) {
6313
6312
  var n = zn(t, 0, 1), r = zn(t, -1);
6314
6313
  if (n === "%" && r !== "%")
6315
6314
  throw new cn("invalid intrinsic syntax, expected closing `%`");
6316
6315
  if (r === "%" && n !== "%")
6317
6316
  throw new cn("invalid intrinsic syntax, expected opening `%`");
6318
6317
  var o = [];
6319
- return ci(t, Zf, function(s, a, l, c) {
6320
- o[o.length] = l ? ci(c, em, "$1") : a || s;
6318
+ return li(t, Zf, function(s, a, l, c) {
6319
+ o[o.length] = l ? li(c, em, "$1") : a || s;
6321
6320
  }), o;
6322
6321
  }, nm = function(t, n) {
6323
6322
  var r = t, o;
6324
- if (Yn(li, r) && (o = li[r], r = "%" + o[0] + "%"), Yn(Ut, r)) {
6325
- var s = Ut[r];
6323
+ if (Yn(ai, r) && (o = ai[r], r = "%" + o[0] + "%"), Yn(Ht, r)) {
6324
+ var s = Ht[r];
6326
6325
  if (s === en && (s = zf(r)), typeof s > "u" && !n)
6327
6326
  throw new on("intrinsic " + t + " exists, but is not available. Please file an issue!");
6328
6327
  return {
@@ -6345,26 +6344,26 @@ var zf = function e(t) {
6345
6344
  var p = r[f], h = zn(p, 0, 1), m = zn(p, -1);
6346
6345
  if ((h === '"' || h === "'" || h === "`" || m === '"' || m === "'" || m === "`") && h !== m)
6347
6346
  throw new cn("property names with quotes must have matching quotes");
6348
- if ((p === "constructor" || !d) && (c = !0), o += "." + p, a = "%" + o + "%", Yn(Ut, a))
6349
- l = Ut[a];
6347
+ if ((p === "constructor" || !d) && (c = !0), o += "." + p, a = "%" + o + "%", Yn(Ht, a))
6348
+ l = Ht[a];
6350
6349
  else if (l != null) {
6351
6350
  if (!(p in l)) {
6352
6351
  if (!n)
6353
6352
  throw new on("base intrinsic for " + t + " exists, but the property is not available.");
6354
6353
  return;
6355
6354
  }
6356
- if (Ht && f + 1 >= r.length) {
6357
- var y = Ht(l, p);
6355
+ if (Bt && f + 1 >= r.length) {
6356
+ var y = Bt(l, p);
6358
6357
  d = !!y, d && "get" in y && !("originalValue" in y.get) ? l = y.get : l = l[p];
6359
6358
  } else
6360
6359
  d = Yn(l, p), l = l[p];
6361
- d && !c && (Ut[a] = l);
6360
+ d && !c && (Ht[a] = l);
6362
6361
  }
6363
6362
  }
6364
6363
  return l;
6365
- }, js = { exports: {} };
6364
+ }, Ls = { exports: {} };
6366
6365
  (function(e) {
6367
- var t = Ms, n = En, 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%");
6366
+ var t = Ns, n = En, 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%");
6368
6367
  if (l)
6369
6368
  try {
6370
6369
  l({}, "a", { value: 1 });
@@ -6387,19 +6386,19 @@ var zf = function e(t) {
6387
6386
  return s(t, r, arguments);
6388
6387
  };
6389
6388
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
6390
- })(js);
6391
- var vo = js.exports, Bs = En, Hs = vo, rm = Hs(Bs("String.prototype.indexOf")), Us = function(t, n) {
6392
- var r = Bs(t, !!n);
6393
- return typeof r == "function" && rm(t, ".prototype.") > -1 ? Hs(r) : r;
6394
- }, om = yo(), im = Us, Dr = im("Object.prototype.toString"), cr = function(t) {
6389
+ })(Ls);
6390
+ var vo = Ls.exports, js = En, Bs = vo, rm = Bs(js("String.prototype.indexOf")), Hs = function(t, n) {
6391
+ var r = js(t, !!n);
6392
+ return typeof r == "function" && rm(t, ".prototype.") > -1 ? Bs(r) : r;
6393
+ }, om = yo(), im = Hs, Dr = im("Object.prototype.toString"), cr = function(t) {
6395
6394
  return om && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Dr(t) === "[object Arguments]";
6396
- }, Ws = function(t) {
6395
+ }, Us = function(t) {
6397
6396
  return cr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Dr(t) !== "[object Array]" && Dr(t.callee) === "[object Function]";
6398
6397
  }, sm = function() {
6399
6398
  return cr(arguments);
6400
6399
  }();
6401
- cr.isLegacyArguments = Ws;
6402
- var am = sm ? cr : Ws, lm = En, Pr = lm("%Object.defineProperty%", !0), kr = function() {
6400
+ cr.isLegacyArguments = Us;
6401
+ var am = sm ? cr : Us, lm = En, Pr = lm("%Object.defineProperty%", !0), kr = function() {
6403
6402
  if (Pr)
6404
6403
  try {
6405
6404
  return Pr({}, "a", { value: 1 }), !0;
@@ -6417,11 +6416,11 @@ kr.hasArrayLengthDefineBug = function() {
6417
6416
  return !0;
6418
6417
  }
6419
6418
  };
6420
- var wo = kr, xr, di;
6419
+ var wo = kr, xr, ci;
6421
6420
  function cm() {
6422
- if (di)
6421
+ if (ci)
6423
6422
  return xr;
6424
- di = 1;
6423
+ ci = 1;
6425
6424
  var e = En, t = e("%Object.getOwnPropertyDescriptor%", !0);
6426
6425
  if (t)
6427
6426
  try {
@@ -6431,22 +6430,22 @@ function cm() {
6431
6430
  }
6432
6431
  return xr = t, xr;
6433
6432
  }
6434
- var dm = wo(), bo = En, ui = dm && bo("%Object.defineProperty%", !0), um = bo("%SyntaxError%"), Qt = bo("%TypeError%"), fi = cm(), Gs = function(t, n, r) {
6433
+ var dm = wo(), bo = En, di = dm && bo("%Object.defineProperty%", !0), um = bo("%SyntaxError%"), Jt = bo("%TypeError%"), ui = cm(), Ws = function(t, n, r) {
6435
6434
  if (!t || typeof t != "object" && typeof t != "function")
6436
- throw new Qt("`obj` must be an object or a function`");
6435
+ throw new Jt("`obj` must be an object or a function`");
6437
6436
  if (typeof n != "string" && typeof n != "symbol")
6438
- throw new Qt("`property` must be a string or a symbol`");
6437
+ throw new Jt("`property` must be a string or a symbol`");
6439
6438
  if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
6440
- throw new Qt("`nonEnumerable`, if provided, must be a boolean or null");
6439
+ throw new Jt("`nonEnumerable`, if provided, must be a boolean or null");
6441
6440
  if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
6442
- throw new Qt("`nonWritable`, if provided, must be a boolean or null");
6441
+ throw new Jt("`nonWritable`, if provided, must be a boolean or null");
6443
6442
  if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
6444
- throw new Qt("`nonConfigurable`, if provided, must be a boolean or null");
6443
+ throw new Jt("`nonConfigurable`, if provided, must be a boolean or null");
6445
6444
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
6446
- throw new Qt("`loose`, if provided, must be a boolean");
6447
- 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 = !!fi && fi(t, n);
6448
- if (ui)
6449
- ui(t, n, {
6445
+ throw new Jt("`loose`, if provided, must be a boolean");
6446
+ 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 = !!ui && ui(t, n);
6447
+ if (di)
6448
+ di(t, n, {
6450
6449
  configurable: a === null && c ? c.configurable : !a,
6451
6450
  enumerable: o === null && c ? c.enumerable : !o,
6452
6451
  value: r,
@@ -6456,9 +6455,9 @@ var dm = wo(), bo = En, ui = dm && bo("%Object.defineProperty%", !0), um = bo("%
6456
6455
  t[n] = r;
6457
6456
  else
6458
6457
  throw new um("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
6459
- }, fm = $s, mm = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", pm = Object.prototype.toString, hm = Array.prototype.concat, mi = Gs, gm = function(e) {
6458
+ }, fm = ks, mm = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", pm = Object.prototype.toString, hm = Array.prototype.concat, fi = Ws, gm = function(e) {
6460
6459
  return typeof e == "function" && pm.call(e) === "[object Function]";
6461
- }, Ks = wo(), ym = function(e, t, n, r) {
6460
+ }, Gs = wo(), ym = function(e, t, n, r) {
6462
6461
  if (t in e) {
6463
6462
  if (r === !0) {
6464
6463
  if (e[t] === n)
@@ -6466,36 +6465,36 @@ var dm = wo(), bo = En, ui = dm && bo("%Object.defineProperty%", !0), um = bo("%
6466
6465
  } else if (!gm(r) || !r())
6467
6466
  return;
6468
6467
  }
6469
- Ks ? mi(e, t, n, !0) : mi(e, t, n);
6470
- }, qs = function(e, t) {
6468
+ Gs ? fi(e, t, n, !0) : fi(e, t, n);
6469
+ }, Ks = function(e, t) {
6471
6470
  var n = arguments.length > 2 ? arguments[2] : {}, r = fm(t);
6472
6471
  mm && (r = hm.call(r, Object.getOwnPropertySymbols(t)));
6473
6472
  for (var o = 0; o < r.length; o += 1)
6474
6473
  ym(e, r[o], t[r[o]], n[r[o]]);
6475
6474
  };
6476
- qs.supportsDescriptors = !!Ks;
6477
- var Dn = qs, pi = function(e) {
6475
+ Ks.supportsDescriptors = !!Gs;
6476
+ var Dn = Ks, mi = function(e) {
6478
6477
  return e !== e;
6479
- }, Ys = function(t, n) {
6480
- return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || pi(t) && pi(n));
6481
- }, vm = Ys, zs = function() {
6478
+ }, qs = function(t, n) {
6479
+ return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || mi(t) && mi(n));
6480
+ }, vm = qs, Ys = function() {
6482
6481
  return typeof Object.is == "function" ? Object.is : vm;
6483
- }, wm = zs, bm = Dn, Sm = function() {
6482
+ }, wm = Ys, bm = Dn, Sm = function() {
6484
6483
  var t = wm();
6485
6484
  return bm(Object, { is: t }, {
6486
6485
  is: function() {
6487
6486
  return Object.is !== t;
6488
6487
  }
6489
6488
  }), t;
6490
- }, Cm = Dn, xm = vo, Im = Ys, Js = zs, Tm = Sm, Qs = xm(Js(), Object);
6491
- Cm(Qs, {
6492
- getPolyfill: Js,
6489
+ }, Cm = Dn, xm = vo, Im = qs, zs = Ys, Tm = Sm, Js = xm(zs(), Object);
6490
+ Cm(Js, {
6491
+ getPolyfill: zs,
6493
6492
  implementation: Im,
6494
6493
  shim: Tm
6495
6494
  });
6496
- var Om = Qs, $r = Us, Xs = yo(), Zs, ea, Nr, Mr;
6497
- if (Xs) {
6498
- Zs = $r("Object.prototype.hasOwnProperty"), ea = $r("RegExp.prototype.exec"), Nr = {};
6495
+ var Om = Js, $r = Hs, Qs = yo(), Xs, Zs, Nr, Mr;
6496
+ if (Qs) {
6497
+ Xs = $r("Object.prototype.hasOwnProperty"), Zs = $r("RegExp.prototype.exec"), Nr = {};
6499
6498
  var Ir = function() {
6500
6499
  throw Nr;
6501
6500
  };
@@ -6504,14 +6503,14 @@ if (Xs) {
6504
6503
  valueOf: Ir
6505
6504
  }, typeof Symbol.toPrimitive == "symbol" && (Mr[Symbol.toPrimitive] = Ir);
6506
6505
  }
6507
- var Am = $r("Object.prototype.toString"), Fm = Object.getOwnPropertyDescriptor, Rm = "[object RegExp]", _m = Xs ? function(t) {
6506
+ var Am = $r("Object.prototype.toString"), Fm = Object.getOwnPropertyDescriptor, Rm = "[object RegExp]", _m = Qs ? function(t) {
6508
6507
  if (!t || typeof t != "object")
6509
6508
  return !1;
6510
- var n = Fm(t, "lastIndex"), r = n && Zs(n, "value");
6509
+ var n = Fm(t, "lastIndex"), r = n && Xs(n, "value");
6511
6510
  if (!r)
6512
6511
  return !1;
6513
6512
  try {
6514
- ea(t, Mr);
6513
+ Zs(t, Mr);
6515
6514
  } catch (o) {
6516
6515
  return o === Nr;
6517
6516
  }
@@ -6539,17 +6538,17 @@ An.boundFunctionsHaveNames = function() {
6539
6538
  return An() && typeof Vm == "function" && (function() {
6540
6539
  }).bind().name !== "";
6541
6540
  };
6542
- var Em = An, hi = Gs, Dm = wo(), Pm = Em.functionsHaveConfigurableNames(), km = TypeError, $m = function(t, n) {
6541
+ var Em = An, pi = Ws, Dm = wo(), Pm = Em.functionsHaveConfigurableNames(), km = TypeError, $m = function(t, n) {
6543
6542
  if (typeof t != "function")
6544
6543
  throw new km("`fn` is not a function");
6545
6544
  var r = arguments.length > 2 && !!arguments[2];
6546
- return (!r || Pm) && (Dm ? hi(t, "name", n, !0, !0) : hi(t, "name", n)), t;
6547
- }, Nm = $m, Mm = Object, Lm = TypeError, ta = Nm(function() {
6545
+ return (!r || Pm) && (Dm ? pi(t, "name", n, !0, !0) : pi(t, "name", n)), t;
6546
+ }, Nm = $m, Mm = Object, Lm = TypeError, ea = Nm(function() {
6548
6547
  if (this != null && this !== Mm(this))
6549
6548
  throw new Lm("RegExp.prototype.flags getter called on non-object");
6550
6549
  var t = "";
6551
6550
  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;
6552
- }, "get flags", !0), jm = ta, Bm = Dn.supportsDescriptors, Hm = Object.getOwnPropertyDescriptor, na = function() {
6551
+ }, "get flags", !0), jm = ea, Bm = Dn.supportsDescriptors, Hm = Object.getOwnPropertyDescriptor, ta = function() {
6553
6552
  if (Bm && /a/mig.flags === "gim") {
6554
6553
  var t = Hm(RegExp.prototype, "flags");
6555
6554
  if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
@@ -6567,22 +6566,22 @@ var Em = An, hi = Gs, Dm = wo(), Pm = Em.functionsHaveConfigurableNames(), km =
6567
6566
  }
6568
6567
  }
6569
6568
  return jm;
6570
- }, Um = Dn.supportsDescriptors, Wm = na, Gm = Object.getOwnPropertyDescriptor, Km = Object.defineProperty, qm = TypeError, gi = Object.getPrototypeOf, Ym = /a/, zm = function() {
6571
- if (!Um || !gi)
6569
+ }, Um = Dn.supportsDescriptors, Wm = ta, Gm = Object.getOwnPropertyDescriptor, Km = Object.defineProperty, qm = TypeError, hi = Object.getPrototypeOf, Ym = /a/, zm = function() {
6570
+ if (!Um || !hi)
6572
6571
  throw new qm("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6573
- var t = Wm(), n = gi(Ym), r = Gm(n, "flags");
6572
+ var t = Wm(), n = hi(Ym), r = Gm(n, "flags");
6574
6573
  return (!r || r.get !== t) && Km(n, "flags", {
6575
6574
  configurable: !0,
6576
6575
  enumerable: !1,
6577
6576
  get: t
6578
6577
  }), t;
6579
- }, Jm = Dn, Qm = vo, Xm = ta, ra = na, Zm = zm, oa = Qm(ra());
6580
- Jm(oa, {
6581
- getPolyfill: ra,
6578
+ }, Jm = Dn, Qm = vo, Xm = ea, na = ta, Zm = zm, ra = Qm(na());
6579
+ Jm(ra, {
6580
+ getPolyfill: na,
6582
6581
  implementation: Xm,
6583
6582
  shim: Zm
6584
6583
  });
6585
- var ep = oa, tp = Date.prototype.getDay, np = function(t) {
6584
+ var ep = ra, tp = Date.prototype.getDay, np = function(t) {
6586
6585
  try {
6587
6586
  return tp.call(t), !0;
6588
6587
  } catch {
@@ -6590,29 +6589,29 @@ var ep = oa, tp = Date.prototype.getDay, np = function(t) {
6590
6589
  }
6591
6590
  }, rp = Object.prototype.toString, op = "[object Date]", ip = yo(), sp = function(t) {
6592
6591
  return typeof t != "object" || t === null ? !1 : ip ? np(t) : rp.call(t) === op;
6593
- }, yi = $s, vi = am, wi = Om, bi = _m, Si = ep, Ci = sp, xi = Date.prototype.getTime;
6594
- function ia(e, t, n) {
6592
+ }, gi = ks, yi = am, vi = Om, wi = _m, bi = ep, Si = sp, Ci = Date.prototype.getTime;
6593
+ function oa(e, t, n) {
6595
6594
  var r = n || {};
6596
- return (r.strict ? wi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? wi(e, t) : e == t : ap(e, t, r);
6595
+ return (r.strict ? vi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? vi(e, t) : e == t : ap(e, t, r);
6597
6596
  }
6598
- function Ii(e) {
6597
+ function xi(e) {
6599
6598
  return e == null;
6600
6599
  }
6601
- function Ti(e) {
6600
+ function Ii(e) {
6602
6601
  return !(!e || typeof e != "object" || typeof e.length != "number" || typeof e.copy != "function" || typeof e.slice != "function" || e.length > 0 && typeof e[0] != "number");
6603
6602
  }
6604
6603
  function ap(e, t, n) {
6605
6604
  var r, o;
6606
- if (typeof e != typeof t || Ii(e) || Ii(t) || e.prototype !== t.prototype || vi(e) !== vi(t))
6605
+ if (typeof e != typeof t || xi(e) || xi(t) || e.prototype !== t.prototype || yi(e) !== yi(t))
6607
6606
  return !1;
6608
- var s = bi(e), a = bi(t);
6607
+ var s = wi(e), a = wi(t);
6609
6608
  if (s !== a)
6610
6609
  return !1;
6611
6610
  if (s || a)
6612
- return e.source === t.source && Si(e) === Si(t);
6613
- if (Ci(e) && Ci(t))
6614
- return xi.call(e) === xi.call(t);
6615
- var l = Ti(e), c = Ti(t);
6611
+ return e.source === t.source && bi(e) === bi(t);
6612
+ if (Si(e) && Si(t))
6613
+ return Ci.call(e) === Ci.call(t);
6614
+ var l = Ii(e), c = Ii(t);
6616
6615
  if (l !== c)
6617
6616
  return !1;
6618
6617
  if (l || c) {
@@ -6626,7 +6625,7 @@ function ap(e, t, n) {
6626
6625
  if (typeof e != typeof t)
6627
6626
  return !1;
6628
6627
  try {
6629
- var u = yi(e), f = yi(t);
6628
+ var u = gi(e), f = gi(t);
6630
6629
  } catch {
6631
6630
  return !1;
6632
6631
  }
@@ -6636,12 +6635,12 @@ function ap(e, t, n) {
6636
6635
  if (u[r] != f[r])
6637
6636
  return !1;
6638
6637
  for (r = u.length - 1; r >= 0; r--)
6639
- if (o = u[r], !ia(e[o], t[o], n))
6638
+ if (o = u[r], !oa(e[o], t[o], n))
6640
6639
  return !1;
6641
6640
  return !0;
6642
6641
  }
6643
- var lp = ia;
6644
- const sa = /* @__PURE__ */ Ps(lp), cp = yt(
6642
+ var lp = oa;
6643
+ const ia = /* @__PURE__ */ Ds(lp), cp = yt(
6645
6644
  (e, t) => {
6646
6645
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: s } = e, [a] = ht.useForm();
6647
6646
  de(() => {
@@ -6667,7 +6666,7 @@ const sa = /* @__PURE__ */ Ps(lp), cp = yt(
6667
6666
  backgroundColor: w ? "#f0f0f0" : void 0,
6668
6667
  fontWeight: w ? "bold" : void 0
6669
6668
  },
6670
- children: /* @__PURE__ */ i("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ i(Ds, { field: g }, v) })
6669
+ children: /* @__PURE__ */ i("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ i(Es, { field: g }, v) })
6671
6670
  },
6672
6671
  y
6673
6672
  );
@@ -6699,7 +6698,7 @@ const sa = /* @__PURE__ */ Ps(lp), cp = yt(
6699
6698
  de(() => {
6700
6699
  n && h(void 0);
6701
6700
  }, [n]), Ct(() => {
6702
- l.current = new ji(o, s, 1), l.current.parse(), f(l.current._advancedSearchContainer);
6701
+ l.current = new Li(o, s, 1), l.current.parse(), f(l.current._advancedSearchContainer);
6703
6702
  }, [s, o, n]);
6704
6703
  const m = N(
6705
6704
  (C) => {
@@ -6718,7 +6717,7 @@ const sa = /* @__PURE__ */ Ps(lp), cp = yt(
6718
6717
  (C) => {
6719
6718
  var T;
6720
6719
  const b = Lr(C);
6721
- if (sa(b, a)) {
6720
+ if (ia(b, a)) {
6722
6721
  h([]);
6723
6722
  return;
6724
6723
  }
@@ -6815,7 +6814,7 @@ function fp(e) {
6815
6814
  } = e, { t: a } = he();
6816
6815
  return /* @__PURE__ */ D(Ne, { children: [
6817
6816
  !s && /* @__PURE__ */ i(xe, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ D("a", { className: "text-xs", onClick: t, children: [
6818
- n ? /* @__PURE__ */ i(ol, { className: "pr-1" }) : /* @__PURE__ */ i(Xn, { className: "pr-1" }),
6817
+ n ? /* @__PURE__ */ i(rl, { className: "pr-1" }) : /* @__PURE__ */ i(Xn, { className: "pr-1" }),
6819
6818
  a(n ? "simple_search" : "advanced_search")
6820
6819
  ] }) }),
6821
6820
  /* @__PURE__ */ D(xe, { span: s ? 24 : 12, className: "text-right pb-2", children: [
@@ -6854,7 +6853,7 @@ function mp(e) {
6854
6853
  ] })
6855
6854
  ] });
6856
6855
  }
6857
- const { useToken: pp } = Ke;
6856
+ const { useToken: pp } = qe;
6858
6857
  function So(e) {
6859
6858
  const {
6860
6859
  fields: t,
@@ -6878,10 +6877,10 @@ function So(e) {
6878
6877
  if (!g)
6879
6878
  return;
6880
6879
  const I = w ? g : m, F = I == null ? void 0 : I.rows;
6881
- return F == null ? void 0 : F.map((k, V) => /* @__PURE__ */ i(Ne, { children: k.map((j, P) => /* @__PURE__ */ i(xe, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(Ds, { field: j }) }, P)) }, V));
6880
+ return F == null ? void 0 : F.map((k, V) => /* @__PURE__ */ i(Ne, { children: k.map((j, P) => /* @__PURE__ */ i(xe, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(Es, { field: j }) }, P)) }, V));
6882
6881
  };
6883
6882
  Ct(() => {
6884
- x(!1), C.current = new ji(n, t), C.current.parse(), y(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
6883
+ x(!1), C.current = new Li(n, t), C.current.parse(), y(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
6885
6884
  }, [t, n]);
6886
6885
  const R = T(), O = (I) => {
6887
6886
  var j;
@@ -7027,10 +7026,10 @@ function wp(e, t) {
7027
7026
  onChangeSelectedRowKeys: f,
7028
7027
  nameSearch: d,
7029
7028
  filterType: p = "side"
7030
- } = e, h = J({}), m = J(), y = J(null), g = J([]), v = xs(), [w, x] = S(!0), [C, b] = S(), { t: A } = he(), T = n === "custom.search.results", R = J(null), O = Eu({
7029
+ } = e, h = J({}), m = J(), y = J(null), g = J([]), v = Cs(), [w, x] = S(!0), [C, b] = S(), { t: A } = he(), T = n === "custom.search.results", R = J(null), O = Eu({
7031
7030
  elementRef: R,
7032
7031
  offset: gp
7033
- }), { treeView: _, formView: I, loading: F } = Is({
7032
+ }), { treeView: _, formView: I, loading: F } = xs({
7034
7033
  model: n,
7035
7034
  formViewProps: r,
7036
7035
  treeViewProps: o,
@@ -7041,7 +7040,7 @@ function wp(e, t) {
7041
7040
  setSearchVisible: j,
7042
7041
  setSelectedRowItems: P,
7043
7042
  setTreeFirstVisibleRow: U,
7044
- treeFirstVisibleRow: G,
7043
+ treeFirstVisibleRow: W,
7045
7044
  selectedRowItems: E,
7046
7045
  setSearchParams: K,
7047
7046
  searchValues: re,
@@ -7079,7 +7078,7 @@ function wp(e, t) {
7079
7078
  loading: Le,
7080
7079
  getColumnState: Ve,
7081
7080
  updateColumnState: ke
7082
- } = Rs(Me), Be = fe(
7081
+ } = Fs(Me), Be = fe(
7083
7082
  () => ln(ee || [], a),
7084
7083
  [a, ee]
7085
7084
  ), Oe = N(() => {
@@ -7123,7 +7122,7 @@ function wp(e, t) {
7123
7122
  return [];
7124
7123
  const ze = {};
7125
7124
  te.colors && (ze.colors = te.colors), te.status && (ze.status = te.status);
7126
- const Dt = q ? a : Be, Pt = ls(nt), { results: kt, attrsEvaluated: $t } = await $.getHandler().searchForTree({
7125
+ const Dt = q ? a : Be, Pt = as(nt), { results: kt, attrsEvaluated: $t } = await $.getHandler().searchForTree({
7127
7126
  params: Dt,
7128
7127
  limit: Ue - me,
7129
7128
  offset: me,
@@ -7133,7 +7132,7 @@ function wp(e, t) {
7133
7132
  attrs: ze,
7134
7133
  order: Pt,
7135
7134
  name_search: q
7136
- }), zt = kt.map((Nt) => ({ id: Nt.id }));
7135
+ }), Yt = kt.map((Nt) => ({ id: Nt.id }));
7137
7136
  if (B == null || B({
7138
7137
  model: n,
7139
7138
  params: Dt,
@@ -7141,9 +7140,9 @@ function wp(e, t) {
7141
7140
  context: u,
7142
7141
  order: Pt
7143
7142
  }), b(kt.length), z(kt.length), Oe() || Pe.current !== Pt)
7144
- L == null || L(zt);
7143
+ L == null || L(Yt);
7145
7144
  else {
7146
- const Nt = [...oe || [], ...zt];
7145
+ const Nt = [...oe || [], ...Yt];
7147
7146
  L == null || L(Nt);
7148
7147
  }
7149
7148
  if (Pe.current = Pt, kt.length === 0)
@@ -7203,7 +7202,7 @@ function wp(e, t) {
7203
7202
  var Ue, nt, ze, Dt;
7204
7203
  if (h.current[(nt = (Ue = me.node) == null ? void 0 : Ue.data) == null ? void 0 : nt.id])
7205
7204
  return { color: h.current[(Dt = (ze = me.node) == null ? void 0 : ze.data) == null ? void 0 : Dt.id] };
7206
- }, []), ve = fe(() => (E == null ? void 0 : E.map((me) => me.id)) || [], [E]), [Ce, qe, Ee] = _s({
7205
+ }, []), ve = fe(() => (E == null ? void 0 : E.map((me) => me.id)) || [], [E]), [Ce, Ye, Ee] = Rs({
7207
7206
  ooui: te,
7208
7207
  model: n,
7209
7208
  showEmptyValues: !0,
@@ -7249,7 +7248,7 @@ function wp(e, t) {
7249
7248
  P,
7250
7249
  A,
7251
7250
  C
7252
- ]), ge = N(() => G, [G]), $e = fe(() => Ee ? /* @__PURE__ */ i(Vs, { aggregates: qe, isLoading: Ce }) : null, [qe, Ce, Ee]), Qe = N((me) => /* @__PURE__ */ i(Qn, { color: me, style: { marginLeft: 7 } }), []), we = N(
7251
+ ]), ge = N(() => W, [W]), $e = fe(() => Ee ? /* @__PURE__ */ i(_s, { aggregates: Ye, isLoading: Ce }) : null, [Ye, Ce, Ee]), Qe = N((me) => /* @__PURE__ */ i(Qn, { color: me, style: { marginLeft: 7 } }), []), we = N(
7253
7252
  (me) => {
7254
7253
  var Ue;
7255
7254
  return (Ue = m.current) == null ? void 0 : Ue[me.id];
@@ -7261,7 +7260,7 @@ function wp(e, t) {
7261
7260
  }),
7262
7261
  [A]
7263
7262
  ), ce = fe(() => !ye || !te ? null : /* @__PURE__ */ i(
7264
- Xi,
7263
+ Qi,
7265
7264
  {
7266
7265
  readonly: !1,
7267
7266
  ref: y,
@@ -7308,7 +7307,7 @@ function wp(e, t) {
7308
7307
  ke
7309
7308
  ]), De = J(ee), be = J(V), Re = J(), Pe = J();
7310
7309
  io(() => {
7311
- const me = !sa(
7310
+ const me = !ia(
7312
7311
  ee,
7313
7312
  De.current
7314
7313
  ), Ue = be.current && !V;
@@ -7351,7 +7350,7 @@ function wp(e, t) {
7351
7350
  _ == null ? void 0 : _.search_fields,
7352
7351
  re
7353
7352
  ]
7354
- ), Ye = N(() => {
7353
+ ), Ke = N(() => {
7355
7354
  var me;
7356
7355
  P == null || P([]), (me = y.current) == null || me.unselectAll(), X == null || X(void 0), K == null || K([]), M == null || M(void 0);
7357
7356
  }, [
@@ -7359,7 +7358,7 @@ function wp(e, t) {
7359
7358
  X,
7360
7359
  K,
7361
7360
  M
7362
- ]), qt = N(
7361
+ ]), Kt = N(
7363
7362
  ({ params: me, searchValues: Ue }) => {
7364
7363
  var nt;
7365
7364
  P == null || P([]), (nt = y.current) == null || nt.unselectAll(), X == null || X(void 0), K == null || K(me), M == null || M(Ue);
@@ -7370,7 +7369,7 @@ function wp(e, t) {
7370
7369
  K,
7371
7370
  M
7372
7371
  ]
7373
- ), Yt = fe(
7372
+ ), qt = fe(
7374
7373
  () => ({
7375
7374
  isOpen: V,
7376
7375
  fields: { ...I == null ? void 0 : I.fields, ..._ == null ? void 0 : _.fields },
@@ -7409,14 +7408,14 @@ function wp(e, t) {
7409
7408
  So,
7410
7409
  {
7411
7410
  ...mt,
7412
- onClear: Ye,
7413
- onSubmit: qt
7411
+ onClear: Ke,
7412
+ onSubmit: Kt
7414
7413
  }
7415
7414
  ),
7416
7415
  p === "side" && /* @__PURE__ */ i(
7417
7416
  dp,
7418
7417
  {
7419
- ...Yt,
7418
+ ...qt,
7420
7419
  onClose: Ge,
7421
7420
  onSubmit: it
7422
7421
  }
@@ -7432,7 +7431,7 @@ function wp(e, t) {
7432
7431
  /* @__PURE__ */ i("div", { ref: R, style: Tt, children: F || Le || w ? /* @__PURE__ */ i(We, {}) : ce })
7433
7432
  ] });
7434
7433
  }
7435
- const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7434
+ const sa = yt(wp), Ti = (e, t = "14px -apple-system") => {
7436
7435
  const r = document.createElement("canvas").getContext("2d");
7437
7436
  r.font = t;
7438
7437
  const o = r.measureText(e);
@@ -7442,13 +7441,13 @@ const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7442
7441
  return { columns: e };
7443
7442
  const r = e.map(
7444
7443
  (s) => Object.assign(s, {
7445
- width: Oi(s.title)
7444
+ width: Ti(s.title)
7446
7445
  })
7447
7446
  );
7448
7447
  t.map((s) => {
7449
7448
  r.map((a, l) => {
7450
7449
  const c = a.width, u = s[a.key] || "";
7451
- let f = Oi(u);
7450
+ let f = Ti(u);
7452
7451
  f < c && (f = c), f > n && (f = n), r[l].width = f;
7453
7452
  });
7454
7453
  });
@@ -7483,7 +7482,7 @@ const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7483
7482
  "{numberOfSelectedRows}",
7484
7483
  e.toString()
7485
7484
  ) + " ",
7486
- s ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ i(Ul, { onClick: u, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
7485
+ s ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ i(Hl, { onClick: u, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
7487
7486
  "{totalRecords}",
7488
7487
  t.toString()
7489
7488
  ) })
@@ -7492,7 +7491,7 @@ const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7492
7491
  o.toString()
7493
7492
  ) + " " });
7494
7493
  return /* @__PURE__ */ i(Sp, { children: o > n ? d : f });
7495
- }, la = yt(
7494
+ }, aa = yt(
7496
7495
  (e, t) => {
7497
7496
  var oe;
7498
7497
  const {
@@ -7520,7 +7519,7 @@ const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7520
7519
  onSelectAllRecords: T
7521
7520
  } = e, R = J(null), [O, _] = S([]), I = J(!1), [F, k] = S(), { t: V } = he(), j = J(r), P = ne(
7522
7521
  ct
7523
- ), { title: U = void 0, setTitle: G = void 0 } = (C ? P : {}) || {}, E = fe(() => {
7522
+ ), { title: U = void 0, setTitle: W = void 0 } = (C ? P : {}) || {}, E = fe(() => {
7524
7523
  if (F)
7525
7524
  return lo(
7526
7525
  F,
@@ -7537,7 +7536,7 @@ const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7537
7536
  }
7538
7537
  })), de(() => {
7539
7538
  const B = At(s);
7540
- k(B), B.string && U !== B.string && (G == null || G(B.string));
7539
+ k(B), B.string && U !== B.string && (W == null || W(B.string));
7541
7540
  }, [s, U]), de(() => {
7542
7541
  if (!F)
7543
7542
  return;
@@ -7555,7 +7554,7 @@ const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7555
7554
  ).length;
7556
7555
  return c ? null : o === void 0 ? /* @__PURE__ */ i(We, { className: "pb-4" }) : /* @__PURE__ */ D(Ne, { align: "bottom", className: "pb-4", children: [
7557
7556
  /* @__PURE__ */ i(xe, { span: T ? 8 : 12, children: /* @__PURE__ */ i(
7558
- qa,
7557
+ Ka,
7559
7558
  {
7560
7559
  total: o,
7561
7560
  pageSize: j.current === 0 ? o : j.current,
@@ -7605,7 +7604,7 @@ const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7605
7604
  return F === null || !X || ((oe = X == null ? void 0 : X.columns) == null ? void 0 : oe.length) === 0 ? /* @__PURE__ */ i(We, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(jn, { children: [
7606
7605
  M,
7607
7606
  /* @__PURE__ */ i(
7608
- Nl,
7607
+ $l,
7609
7608
  {
7610
7609
  ref: R,
7611
7610
  height: L,
@@ -7617,7 +7616,7 @@ const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7617
7616
  if (m[B.id])
7618
7617
  return { color: m[B.id] };
7619
7618
  },
7620
- onRowStatus: Ec(y) ? (B) => {
7619
+ onRowStatus: Vc(y) ? (B) => {
7621
7620
  if (y[B.id])
7622
7621
  return /* @__PURE__ */ i(Qn, { color: y[B.id] });
7623
7622
  } : void 0,
@@ -7627,8 +7626,8 @@ const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7627
7626
  sorter: v,
7628
7627
  readonly: A,
7629
7628
  expandableOpts: w ? {
7630
- expandIcon: il,
7631
- collapseIcon: sl,
7629
+ expandIcon: ol,
7630
+ collapseIcon: il,
7632
7631
  loadingIcon: wt,
7633
7632
  onFetchChildrenForRecord: w,
7634
7633
  childField: x
@@ -7638,10 +7637,10 @@ const aa = yt(wp), Oi = (e, t = "14px -apple-system") => {
7638
7637
  pe
7639
7638
  ] });
7640
7639
  }
7641
- ), Pn = dn(la);
7640
+ ), Pn = dn(aa);
7642
7641
  Pn.displayName = "Tree";
7643
- la.displayName = "UnmemoizedTree";
7644
- const ca = (e) => {
7642
+ aa.displayName = "UnmemoizedTree";
7643
+ const la = (e) => {
7645
7644
  const {
7646
7645
  model: t,
7647
7646
  setSearchTreeNameSearch: n,
@@ -7667,7 +7666,7 @@ const ca = (e) => {
7667
7666
  searchParams: A = [],
7668
7667
  setSearchValues: T,
7669
7668
  clearSelection: R
7670
- } = e, [O, _] = S(!1), [I, F] = S(!1), [k, V] = S(), [j, P] = S(1), [U, G] = S(0), [E, K] = S(), [re, ee] = S([]), [M, pe] = S(void 0), [X, L] = S(void 0), oe = J(C || _t), B = J([]), z = N(
7669
+ } = e, [O, _] = S(!1), [I, F] = S(!1), [k, V] = S(), [j, P] = S(1), [U, W] = S(0), [E, K] = S(), [re, ee] = S([]), [M, pe] = S(void 0), [X, L] = S(void 0), oe = J(C || _t), B = J([]), z = N(
7671
7670
  (le) => {
7672
7671
  g == null || g([...le]), ee([...le]);
7673
7672
  },
@@ -7692,12 +7691,12 @@ const ca = (e) => {
7692
7691
  attrs: Y
7693
7692
  }), Ce = ve[0];
7694
7693
  B.current = [...Ce], pe(an(ve[1])), L(Bn(ve[1]));
7695
- const qe = Ce.map((Se) => Se.id), Ee = h !== void 0 ? rn({
7694
+ const Ye = Ce.map((Se) => Se.id), Ee = h !== void 0 ? rn({
7696
7695
  resultsToSort: Ce,
7697
7696
  sorter: h,
7698
7697
  fields: { ...d.fields, ...p.fields }
7699
7698
  }) : [...B.current];
7700
- z(Ee), qe.length > 0 ? y == null || y(0) : y == null || y(void 0);
7699
+ z(Ee), Ye.length > 0 ? y == null || y(0) : y == null || y(void 0);
7701
7700
  } else
7702
7701
  z([]), y == null || y(void 0);
7703
7702
  _(!1), c.current = !0;
@@ -7717,7 +7716,7 @@ const ca = (e) => {
7717
7716
  async (le) => {
7718
7717
  const { params: Te, newOffset: ue } = le || {}, Ae = ln(Te || A, w), { colors: Y, status: ve } = At(d), Ce = {};
7719
7718
  Y && (Ce.colors = Y), ve && (Ce.status = ve);
7720
- const { totalItems: qe, results: Ee, attrsEvaluated: Se } = await $.getHandler().searchForTree({
7719
+ const { totalItems: Ye, results: Ee, attrsEvaluated: Se } = await $.getHandler().searchForTree({
7721
7720
  params: Ae,
7722
7721
  limit: oe.current,
7723
7722
  offset: ue || U,
@@ -7740,7 +7739,7 @@ const ca = (e) => {
7740
7739
  } else
7741
7740
  y == null || y(void 0);
7742
7741
  _(!1);
7743
- const $e = await qe();
7742
+ const $e = await Ye();
7744
7743
  K($e), f == null || f($e);
7745
7744
  },
7746
7745
  [
@@ -7800,7 +7799,7 @@ const ca = (e) => {
7800
7799
  ), Le = N(
7801
7800
  (le) => {
7802
7801
  const { params: Te, searchValues: ue, limit: Ae, offset: Y } = le;
7803
- O || (n == null || n(void 0), r == null || r([]), T == null || T(ue), o == null || o(Te), s == null || s(!1), F(!0), V(void 0), P(1), Ae && (oe.current = Ae, b == null || b(Ae)), Y && G(Y), ye({
7802
+ O || (n == null || n(void 0), r == null || r([]), T == null || T(ue), o == null || o(Te), s == null || s(!1), F(!0), V(void 0), P(1), Ae && (oe.current = Ae, b == null || b(Ae)), Y && W(Y), ye({
7804
7803
  params: Te,
7805
7804
  newOffset: Y
7806
7805
  }));
@@ -7817,11 +7816,11 @@ const ca = (e) => {
7817
7816
  ]
7818
7817
  ), Ve = N(
7819
7818
  (le) => {
7820
- _(!0), P(le), G((le - 1) * C);
7819
+ _(!0), P(le), W((le - 1) * C);
7821
7820
  },
7822
- [_, C, G, P]
7821
+ [_, C, W, P]
7823
7822
  ), ke = N(() => {
7824
- O || (n == null || n(void 0), o == null || o([]), T == null || T({}), V(void 0), G(0), P(1), b == null || b(C || _t));
7823
+ O || (n == null || n(void 0), o == null || o([]), T == null || T({}), V(void 0), W(0), P(1), b == null || b(C || _t));
7825
7824
  }, [
7826
7825
  O,
7827
7826
  n,
@@ -7867,7 +7866,7 @@ const ca = (e) => {
7867
7866
  };
7868
7867
  };
7869
7868
  function xp(e, t) {
7870
- var Yt;
7869
+ var qt;
7871
7870
  const {
7872
7871
  model: n,
7873
7872
  formView: r,
@@ -7885,7 +7884,7 @@ function xp(e, t) {
7885
7884
  ), { processAction: P } = j || {}, U = ne(
7886
7885
  ct
7887
7886
  ), {
7888
- setResults: G = void 0,
7887
+ setResults: W = void 0,
7889
7888
  setCurrentItemIndex: E = void 0,
7890
7889
  currentId: K = void 0,
7891
7890
  results: re = void 0,
@@ -7919,7 +7918,7 @@ function xp(e, t) {
7919
7918
  page: Y,
7920
7919
  limit: ve,
7921
7920
  offset: Ce,
7922
- getResults: qe,
7921
+ getResults: Ye,
7923
7922
  requestPageChange: Ee,
7924
7923
  changeSort: Se,
7925
7924
  fetchChildrenForRecord: ge,
@@ -7927,7 +7926,7 @@ function xp(e, t) {
7927
7926
  statusForResults: Qe,
7928
7927
  totalItems: we,
7929
7928
  getAllIds: Z
7930
- } = ca({
7929
+ } = la({
7931
7930
  model: x,
7932
7931
  setSearchTreeNameSearch: Q,
7933
7932
  setSelectedRowItems: ke,
@@ -7944,14 +7943,14 @@ function xp(e, t) {
7944
7943
  sorter: B,
7945
7944
  setSorter: z,
7946
7945
  setCurrentItemIndex: E,
7947
- setResultsActionView: G,
7946
+ setResultsActionView: W,
7948
7947
  resultsActionView: re,
7949
7948
  domain: c,
7950
7949
  currentId: K,
7951
7950
  setActionViewTotalItems: q,
7952
7951
  limit: Le,
7953
7952
  setLimit: Ve,
7954
- clearSelection: (Yt = w.current) == null ? void 0 : Yt.unselectAll
7953
+ clearSelection: (qt = w.current) == null ? void 0 : qt.unselectAll
7955
7954
  });
7956
7955
  vt(t, () => ({
7957
7956
  refreshResults: () => {
@@ -8039,7 +8038,7 @@ function xp(e, t) {
8039
8038
  }, [Z, p, M]), Tt = fe(() => b != null && b.isExpandable ? V - 160 : V - (I + 240), [V, I, b == null ? void 0 : b.isExpandable]), mt = fe(
8040
8039
  () => ee == null ? void 0 : ee.map((Ge) => Ge.id),
8041
8040
  [ee]
8042
- ), Ye = N(() => !b || !T ? null : /* @__PURE__ */ D(se, { children: [
8041
+ ), Ke = N(() => !b || !T ? null : /* @__PURE__ */ D(se, { children: [
8043
8042
  /* @__PURE__ */ i(
8044
8043
  So,
8045
8044
  {
@@ -8069,7 +8068,7 @@ function xp(e, t) {
8069
8068
  limit: ve,
8070
8069
  page: Y,
8071
8070
  treeView: b,
8072
- results: qe(),
8071
+ results: Ye(),
8073
8072
  onRequestPageChange: Ee,
8074
8073
  loading: Te,
8075
8074
  onRowClicked: Pe,
@@ -8094,7 +8093,7 @@ function xp(e, t) {
8094
8093
  $e,
8095
8094
  ge,
8096
8095
  T,
8097
- qe,
8096
+ Ye,
8098
8097
  Le,
8099
8098
  ve,
8100
8099
  Ce,
@@ -8117,10 +8116,10 @@ function xp(e, t) {
8117
8116
  we,
8118
8117
  l,
8119
8118
  b
8120
- ]), qt = O || Ae;
8121
- return qt ? /* @__PURE__ */ i(ot, { className: "mt-10", message: qt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(We, {}) : Ye() });
8119
+ ]), Kt = O || Ae;
8120
+ return Kt ? /* @__PURE__ */ i(ot, { className: "mt-10", message: Kt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(We, {}) : Ke() });
8122
8121
  }
8123
- const da = yt(xp), Co = ({
8122
+ const ca = yt(xp), Co = ({
8124
8123
  visible: e,
8125
8124
  onCloseModal: t,
8126
8125
  onSelectValues: n,
@@ -8133,19 +8132,19 @@ const da = yt(xp), Co = ({
8133
8132
  treeView: g,
8134
8133
  formView: v,
8135
8134
  loading: w
8136
- } = Is({
8135
+ } = xs({
8137
8136
  model: r,
8138
8137
  formViewProps: void 0,
8139
8138
  treeViewProps: void 0,
8140
8139
  context: a,
8141
8140
  enabled: e
8142
- }), x = fe(() => g != null && g.arch ? cs(g.arch, "infinite") === "1" : !1, [g == null ? void 0 : g.arch]), C = N(
8141
+ }), x = fe(() => g != null && g.arch ? ls(g.arch, "infinite") === "1" : !1, [g == null ? void 0 : g.arch]), C = N(
8143
8142
  async (F) => {
8144
8143
  p(!0);
8145
8144
  try {
8146
8145
  await n(F);
8147
8146
  } catch (k) {
8148
- Wt(k);
8147
+ Ut(k);
8149
8148
  } finally {
8150
8149
  p(!1);
8151
8150
  }
@@ -8165,7 +8164,7 @@ const da = yt(xp), Co = ({
8165
8164
  }
8166
8165
  C(u);
8167
8166
  }, [u, b, C]), R = fe(
8168
- () => x ? aa : da,
8167
+ () => x ? sa : ca,
8169
8168
  [x]
8170
8169
  ), O = N(() => {
8171
8170
  c(!0);
@@ -8243,7 +8242,7 @@ const da = yt(xp), Co = ({
8243
8242
  }
8244
8243
  )
8245
8244
  ] });
8246
- }, { defaultAlgorithm: Ip, defaultSeed: Tp } = Ke, ua = Ip(Tp), Op = (e) => {
8245
+ }, { defaultAlgorithm: Ip, defaultSeed: Tp } = qe, da = Ip(Tp), Op = (e) => {
8247
8246
  const { ooui: t } = e, { required: n } = t;
8248
8247
  return /* @__PURE__ */ i(Fe, { required: n, type: "array", validator: async (o, s) => {
8249
8248
  if (!s)
@@ -8252,8 +8251,8 @@ const da = yt(xp), Co = ({
8252
8251
  throw new Error();
8253
8252
  if (Array.isArray(s) && !s[0])
8254
8253
  throw new Error();
8255
- }, ...e, children: /* @__PURE__ */ i(fa, { ooui: t }) });
8256
- }, fa = (e) => {
8254
+ }, ...e, children: /* @__PURE__ */ i(ua, { ooui: t }) });
8255
+ }, ua = (e) => {
8257
8256
  const { value: t, onChange: n, ooui: r } = e, {
8258
8257
  required: o,
8259
8258
  relation: s,
@@ -8261,20 +8260,20 @@ const da = yt(xp), Co = ({
8261
8260
  context: l,
8262
8261
  id: c,
8263
8262
  domain: u
8264
- } = r, f = o && !a ? { backgroundColor: ua.colorPrimaryBg } : void 0, [d, p] = S(!1), [h, m] = S(!1), [y, g] = S(!1), [v, w] = S(), x = J(!1), [C, b] = S(""), A = J(), T = ne(He), { domain: R, getValues: O, getFields: _, getContext: I, elementHasLostFocus: F } = T || {}, k = J([]), [V, j] = S([]), P = t && t[0] || void 0, U = t && t[1] || "";
8263
+ } = r, f = o && !a ? { backgroundColor: da.colorPrimaryBg } : void 0, [d, p] = S(!1), [h, m] = S(!1), [y, g] = S(!1), [v, w] = S(), x = J(!1), [C, b] = S(""), A = J(), T = ne(He), { domain: R, getValues: O, getFields: _, getContext: I, elementHasLostFocus: F } = T || {}, k = J([]), [V, j] = S([]), P = t && t[0] || void 0, U = t && t[1] || "";
8265
8264
  de(() => {
8266
8265
  !Array.isArray(t) && t && ee(t);
8267
8266
  }, [t]), de(() => {
8268
8267
  P && U.length === 0 ? ee(P) : P && U.length > 0 ? b(U) : !P && !U && b(A.current || "");
8269
8268
  }, [t]);
8270
- const G = (L) => {
8269
+ const W = (L) => {
8271
8270
  n == null || n(L), F == null || F();
8272
8271
  }, E = (L) => {
8273
- A.current = L.target.value, G([void 0, ""]);
8272
+ A.current = L.target.value, W([void 0, ""]);
8274
8273
  }, K = async () => {
8275
8274
  if (!y && C !== U) {
8276
8275
  if (await new Promise((L) => setTimeout(L, 100)), x.current) {
8277
- G([void 0, ""]);
8276
+ W([void 0, ""]);
8278
8277
  return;
8279
8278
  }
8280
8279
  g(!0);
@@ -8287,10 +8286,10 @@ const da = yt(xp), Co = ({
8287
8286
  payload: A.current,
8288
8287
  context: { ...I == null ? void 0 : I(), ...l }
8289
8288
  });
8290
- L.length === 1 ? (A.current = void 0, G(L[0])) : re(A.current);
8289
+ L.length === 1 ? (A.current = void 0, W(L[0])) : re(A.current);
8291
8290
  }
8292
8291
  } catch (L) {
8293
- Wt(L);
8292
+ Ut(L);
8294
8293
  } finally {
8295
8294
  g(!1);
8296
8295
  }
@@ -8316,9 +8315,9 @@ const da = yt(xp), Co = ({
8316
8315
  model: s,
8317
8316
  context: { ...I == null ? void 0 : I(), ...l }
8318
8317
  });
8319
- G([L, oe[0][1]]);
8318
+ W([L, oe[0][1]]);
8320
8319
  } catch (oe) {
8321
- Wt(oe);
8320
+ Ut(oe);
8322
8321
  } finally {
8323
8322
  g(!1);
8324
8323
  }
@@ -8326,7 +8325,7 @@ const da = yt(xp), Co = ({
8326
8325
  async function M() {
8327
8326
  u && (k.current = await $.getHandler().evalDomain({
8328
8327
  domain: u,
8329
- values: Kt({
8328
+ values: Gt({
8330
8329
  fields: _(),
8331
8330
  values: O()
8332
8331
  }),
@@ -8340,7 +8339,7 @@ const da = yt(xp), Co = ({
8340
8339
  )), j(k.current);
8341
8340
  }
8342
8341
  async function pe(L) {
8343
- L.keyCode === 13 ? (L.preventDefault(), L.stopPropagation(), await K()) : L.code === "Backspace" && P !== void 0 && (L.preventDefault(), L.stopPropagation(), G([void 0, ""]));
8342
+ L.keyCode === 13 ? (L.preventDefault(), L.stopPropagation(), await K()) : L.code === "Backspace" && P !== void 0 && (L.preventDefault(), L.stopPropagation(), W([void 0, ""]));
8344
8343
  }
8345
8344
  return /* @__PURE__ */ D(Ne, { gutter: 8, wrap: !1, children: [
8346
8345
  /* @__PURE__ */ i(xe, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ i(
@@ -8427,7 +8426,7 @@ const da = yt(xp), Co = ({
8427
8426
  ] });
8428
8427
  }, Ap = mn(dt)`
8429
8428
  .ant-input {
8430
- background-color: ${ua.colorPrimaryBg};
8429
+ background-color: ${da.colorPrimaryBg};
8431
8430
  }
8432
8431
  `, bn = pt.createContext(
8433
8432
  null
@@ -8471,7 +8470,7 @@ const da = yt(xp), Co = ({
8471
8470
  }, h = () => {
8472
8471
  f(!1);
8473
8472
  const y = document.querySelector("#confirm-modal-container");
8474
- y && (Qi(y).unmount(), y.remove());
8473
+ y && (Ji(y).unmount(), y.remove());
8475
8474
  };
8476
8475
  return /* @__PURE__ */ i(
8477
8476
  ut,
@@ -8491,10 +8490,10 @@ const da = yt(xp), Co = ({
8491
8490
  children: t
8492
8491
  }
8493
8492
  );
8494
- }, ma = (e) => {
8493
+ }, fa = (e) => {
8495
8494
  const t = document.createElement("div");
8496
8495
  document.body.appendChild(t);
8497
- const n = Qi(t);
8496
+ const n = Ji(t);
8498
8497
  return n.render(
8499
8498
  /* @__PURE__ */ i(
8500
8499
  Rp,
@@ -8514,11 +8513,11 @@ const da = yt(xp), Co = ({
8514
8513
  n.unmount(), t.remove();
8515
8514
  }
8516
8515
  };
8517
- }, pa = ({
8516
+ }, ma = ({
8518
8517
  t: e,
8519
8518
  onOk: t
8520
8519
  }) => {
8521
- ma({
8520
+ fa({
8522
8521
  title: e("removeItems"),
8523
8522
  icon: /* @__PURE__ */ i(Et, {}),
8524
8523
  centered: !0,
@@ -8527,11 +8526,11 @@ const da = yt(xp), Co = ({
8527
8526
  cancelText: e("cancel"),
8528
8527
  onOk: t
8529
8528
  });
8530
- }, ha = ({
8529
+ }, pa = ({
8531
8530
  t: e,
8532
8531
  onOk: t
8533
8532
  }) => {
8534
- ma({
8533
+ fa({
8535
8534
  title: e("unlinkItems"),
8536
8535
  icon: /* @__PURE__ */ i(Et, {}),
8537
8536
  centered: !0,
@@ -8540,7 +8539,7 @@ const da = yt(xp), Co = ({
8540
8539
  onOk: t,
8541
8540
  cancelText: e("cancel")
8542
8541
  });
8543
- }, { useToken: _p } = Ke, ga = (e) => {
8542
+ }, { useToken: _p } = qe, ha = (e) => {
8544
8543
  const {
8545
8544
  title: t,
8546
8545
  readOnly: n,
@@ -8579,7 +8578,7 @@ const da = yt(xp), Co = ({
8579
8578
  rt,
8580
8579
  {
8581
8580
  tooltip: d ? "Unlink" : "Delete",
8582
- icon: d ? /* @__PURE__ */ i(ll, {}) : /* @__PURE__ */ i(eo, {}),
8581
+ icon: d ? /* @__PURE__ */ i(al, {}) : /* @__PURE__ */ i(eo, {}),
8583
8582
  onClick: a,
8584
8583
  danger: !d,
8585
8584
  type: d ? "default" : "primary",
@@ -8604,7 +8603,7 @@ const da = yt(xp), Co = ({
8604
8603
  rt,
8605
8604
  {
8606
8605
  tooltip: "Previous item",
8607
- icon: /* @__PURE__ */ i(Gi, {}),
8606
+ icon: /* @__PURE__ */ i(Wi, {}),
8608
8607
  onClick: u
8609
8608
  }
8610
8609
  ),
@@ -8613,7 +8612,7 @@ const da = yt(xp), Co = ({
8613
8612
  rt,
8614
8613
  {
8615
8614
  tooltip: "Next item",
8616
- icon: /* @__PURE__ */ i(Ki, {}),
8615
+ icon: /* @__PURE__ */ i(Gi, {}),
8617
8616
  onClick: f
8618
8617
  }
8619
8618
  )
@@ -8651,15 +8650,15 @@ const da = yt(xp), Co = ({
8651
8650
  rt,
8652
8651
  {
8653
8652
  tooltip: "Toggle view mode",
8654
- icon: /* @__PURE__ */ i(al, {}),
8653
+ icon: /* @__PURE__ */ i(sl, {}),
8655
8654
  onClick: o
8656
8655
  }
8657
8656
  )
8658
8657
  ] })
8659
8658
  ] });
8660
8659
  }, Vp = {
8661
- form: Li,
8662
- tree: ki,
8660
+ form: Mi,
8661
+ tree: Pi,
8663
8662
  graph: pn
8664
8663
  };
8665
8664
  function Ep(e) {
@@ -8680,7 +8679,7 @@ const Dp = (e) => {
8680
8679
  getContext: m,
8681
8680
  domain: y,
8682
8681
  fetchValues: g
8683
- } = f || {}, { t: v } = he(), [w, x] = S(!1), [C, b] = S(!1), [A, T] = S(), [R, O] = S(!1), [_, I] = S(!1), [F, k] = S(), [V, j] = S([]), [P, U] = S(!1), G = J([]), [E, K] = S(), re = J(), [ee, M] = S(void 0), {
8682
+ } = f || {}, { t: v } = he(), [w, x] = S(!1), [C, b] = S(!1), [A, T] = S(), [R, O] = S(!1), [_, I] = S(!1), [F, k] = S(), [V, j] = S([]), [P, U] = S(!1), W = J([]), [E, K] = S(), re = J(), [ee, M] = S(void 0), {
8684
8683
  readOnly: pe,
8685
8684
  relation: X,
8686
8685
  context: L,
@@ -8734,15 +8733,15 @@ const Dp = (e) => {
8734
8733
  }
8735
8734
  };
8736
8735
  async function Ve() {
8737
- oe && (G.current = await $.getHandler().evalDomain({
8736
+ oe && (W.current = await $.getHandler().evalDomain({
8738
8737
  domain: oe,
8739
- values: Kt({
8738
+ values: Gt({
8740
8739
  fields: p(),
8741
8740
  values: h()
8742
8741
  }),
8743
8742
  fields: p(),
8744
8743
  context: m()
8745
- })), y && y.length > 0 && (G.current = G.current.concat(
8744
+ })), y && y.length > 0 && (W.current = W.current.concat(
8746
8745
  Yr({
8747
8746
  domain: y,
8748
8747
  widgetFieldName: z
@@ -8790,7 +8789,7 @@ const Dp = (e) => {
8790
8789
  }) : Z();
8791
8790
  }, ue = () => {
8792
8791
  if (B) {
8793
- ha({
8792
+ pa({
8794
8793
  t: v,
8795
8794
  onOk: async () => {
8796
8795
  a === "form" ? ve() : Ce();
@@ -8798,7 +8797,7 @@ const Dp = (e) => {
8798
8797
  });
8799
8798
  return;
8800
8799
  }
8801
- pa({
8800
+ ma({
8802
8801
  t: v,
8803
8802
  onOk: async () => {
8804
8803
  a === "form" ? ve() : Ce();
@@ -8844,7 +8843,7 @@ const Dp = (e) => {
8844
8843
  T(ce);
8845
8844
  }
8846
8845
  u(0), b(!1);
8847
- }, qe = (Z, ce, De, be = !1) => {
8846
+ }, Ye = (Z, ce, De, be = !1) => {
8848
8847
  let Re;
8849
8848
  if (be)
8850
8849
  Re = s.concat({
@@ -8861,7 +8860,7 @@ const Dp = (e) => {
8861
8860
  treeValues: { ...De, id: Z }
8862
8861
  } : Pe);
8863
8862
  else {
8864
- const Pe = ds(s);
8863
+ const Pe = cs(s);
8865
8864
  Re = s.concat({
8866
8865
  id: Pe,
8867
8866
  operation: "pendingCreate",
@@ -8908,7 +8907,7 @@ const Dp = (e) => {
8908
8907
  function ge() {
8909
8908
  const Z = Vp[a];
8910
8909
  if (a === "graph")
8911
- return Mi(o.get("graph").arch).string;
8910
+ return Ni(o.get("graph").arch).string;
8912
8911
  {
8913
8912
  const ce = new Z(o.get(a).fields);
8914
8913
  return ce.parse(o.get(a).arch), ce.string;
@@ -8928,12 +8927,12 @@ const Dp = (e) => {
8928
8927
  submitMode: "values",
8929
8928
  onFieldsChange: (Pe) => {
8930
8929
  var mt;
8931
- const tt = (mt = q[c]) == null ? void 0 : mt.id, Tt = s.map((Ye) => Ye.id === tt ? {
8932
- ...Ye,
8933
- operation: Ye.operation === "original" ? "pendingUpdate" : Ye.operation,
8930
+ const tt = (mt = q[c]) == null ? void 0 : mt.id, Tt = s.map((Ke) => Ke.id === tt ? {
8931
+ ...Ke,
8932
+ operation: Ke.operation === "original" ? "pendingUpdate" : Ke.operation,
8934
8933
  values: { ...Pe, id: tt },
8935
8934
  treeValues: { ...Pe, id: tt }
8936
- } : Ye);
8935
+ } : Ke);
8937
8936
  ye(Tt), x(!0);
8938
8937
  },
8939
8938
  readOnly: pe
@@ -8987,7 +8986,7 @@ const Dp = (e) => {
8987
8986
  const Qe = P;
8988
8987
  return C ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ D(se, { children: [
8989
8988
  /* @__PURE__ */ i(
8990
- ga,
8989
+ ha,
8991
8990
  {
8992
8991
  mode: a,
8993
8992
  title: ge(),
@@ -9018,7 +9017,7 @@ const Dp = (e) => {
9018
9017
  values: F == null ? void 0 : F.values,
9019
9018
  defaultValues: F == null ? void 0 : F.defaultValues,
9020
9019
  visible: R,
9021
- onSubmitSucceed: qe,
9020
+ onSubmitSucceed: Ye,
9022
9021
  parentContext: { ...m == null ? void 0 : m(), ...L },
9023
9022
  onCancel: () => {
9024
9023
  U(!1), O(!1);
@@ -9033,7 +9032,7 @@ const Dp = (e) => {
9033
9032
  /* @__PURE__ */ i(
9034
9033
  Co,
9035
9034
  {
9036
- domain: G.current,
9035
+ domain: W.current,
9037
9036
  model: X,
9038
9037
  context: { ...m == null ? void 0 : m(), ...L },
9039
9038
  visible: _,
@@ -9062,7 +9061,7 @@ const Dp = (e) => {
9062
9061
  async function l() {
9063
9062
  t && (n.current = await $.getHandler().evalDomain({
9064
9063
  domain: t,
9065
- values: Kt({
9064
+ values: Gt({
9066
9065
  fields: r(),
9067
9066
  values: o()
9068
9067
  }),
@@ -9098,20 +9097,20 @@ const Dp = (e) => {
9098
9097
  endRow: y,
9099
9098
  sortFields: g
9100
9099
  }) => {
9101
- const v = ls(g), { realItemsIds: w, otherItems: x } = $c({
9100
+ const v = as(g), { realItemsIds: w, otherItems: x } = kc({
9102
9101
  allItems: h,
9103
9102
  ...v ? {} : { range: { startRow: m, endRow: y } }
9104
9103
  });
9105
9104
  if (w.length === 0 && x.length === 0)
9106
9105
  return { results: [], colors: {}, status: {} };
9107
- const C = v ? (await Mc(w, t, n, v)).slice(
9106
+ const C = v ? (await Nc(w, t, n, v)).slice(
9108
9107
  m,
9109
9108
  y
9110
- ) : w, b = Lc(d), {
9109
+ ) : w, b = Mc(d), {
9111
9110
  items: A,
9112
9111
  colors: T,
9113
9112
  status: R
9114
- } = await jc({
9113
+ } = await Lc({
9115
9114
  relation: t,
9116
9115
  ids: C,
9117
9116
  treeView: e,
@@ -9119,7 +9118,7 @@ const Dp = (e) => {
9119
9118
  attrs: b,
9120
9119
  treeOoui: d
9121
9120
  }), _ = C.length < y - m && x.length > 0 ? [...C, ...x.map((F) => F.id)] : C;
9122
- return { results: Nc({
9121
+ return { results: $c({
9123
9122
  finalResultIds: _,
9124
9123
  fetchedItems: A,
9125
9124
  otherItems: x
@@ -9236,7 +9235,7 @@ const Dp = (e) => {
9236
9235
  values: { ...f, id: d },
9237
9236
  treeValues: { ...f, id: d }
9238
9237
  } : m);
9239
- s(kc(p));
9238
+ s(Pc(p));
9240
9239
  },
9241
9240
  readOnly: o
9242
9241
  }
@@ -9292,13 +9291,13 @@ const Dp = (e) => {
9292
9291
  }, [n, c, r, u, t]), p = N(async () => l === "form" ? await d() : await f(), [l, d, f]);
9293
9292
  return { showRemoveConfirm: N(() => {
9294
9293
  if (e) {
9295
- ha({
9294
+ pa({
9296
9295
  t: a,
9297
9296
  onOk: p
9298
9297
  });
9299
9298
  return;
9300
9299
  }
9301
- pa({
9300
+ ma({
9302
9301
  t: a,
9303
9302
  onOk: p
9304
9303
  });
@@ -9351,7 +9350,7 @@ const Bp = ({
9351
9350
  treeValues: { ...T, id: b }
9352
9351
  } : _);
9353
9352
  else {
9354
- const _ = ds(o);
9353
+ const _ = cs(o);
9355
9354
  O = o.concat({
9356
9355
  id: _,
9357
9356
  operation: "pendingCreate",
@@ -9485,27 +9484,27 @@ const Bp = ({
9485
9484
  endRow: P,
9486
9485
  sortFields: U
9487
9486
  }) => {
9488
- const { results: G, colors: E, status: K } = await a({
9487
+ const { results: W, colors: E, status: K } = await a({
9489
9488
  allItems: A.current,
9490
9489
  startRow: j,
9491
9490
  endRow: P,
9492
9491
  sortFields: U
9493
9492
  });
9494
- return x.current = { ...x.current, ...E }, !C.current && K && (C.current = {}), K && (C.current = { ...C.current, ...K }), G;
9493
+ return x.current = { ...x.current, ...E }, !C.current && K && (C.current = {}), K && (C.current = { ...C.current, ...K }), W;
9495
9494
  },
9496
9495
  [a]
9497
9496
  ), I = N((j) => {
9498
- var P, U, G, E;
9497
+ var P, U, W, E;
9499
9498
  if (x.current[(U = (P = j.node) == null ? void 0 : P.data) == null ? void 0 : U.id])
9500
- return { color: x.current[(E = (G = j.node) == null ? void 0 : G.data) == null ? void 0 : E.id] };
9501
- }, []), { loading: F, getColumnState: k, updateColumnState: V } = Rs(
9499
+ return { color: x.current[(E = (W = j.node) == null ? void 0 : W.data) == null ? void 0 : E.id] };
9500
+ }, []), { loading: F, getColumnState: k, updateColumnState: V } = Fs(
9502
9501
  Up({
9503
9502
  ...h,
9504
9503
  model: u
9505
9504
  })
9506
9505
  );
9507
9506
  return F ? /* @__PURE__ */ i(We, {}) : /* @__PURE__ */ i(
9508
- Xi,
9507
+ Qi,
9509
9508
  {
9510
9509
  ref: w,
9511
9510
  height: t || Wp,
@@ -9523,7 +9522,7 @@ const Bp = ({
9523
9522
  selectedRowKeys: y,
9524
9523
  onSelectionCheckboxClicked: p,
9525
9524
  totalRows: R,
9526
- footer: m && /* @__PURE__ */ i(Vs, { aggregates: m, isLoading: !1 }),
9525
+ footer: m && /* @__PURE__ */ i(_s, { aggregates: m, isLoading: !1 }),
9527
9526
  hasStatusColumn: o.status !== null,
9528
9527
  statusComponent: (j) => /* @__PURE__ */ i(Qn, { color: j, style: { marginLeft: 7 } }),
9529
9528
  onRowStatus: (j) => {
@@ -9543,7 +9542,7 @@ const Bp = ({
9543
9542
  }) => {
9544
9543
  const o = t.filter((a) => a.id && a.id > 0);
9545
9544
  let s;
9546
- return n.length > 0 ? s = [["id", "in", n]] : o.length > 0 && (s = [["id", "in", o.map((a) => a.id)]]), _s({
9545
+ return n.length > 0 ? s = [["id", "in", n]] : o.length > 0 && (s = [["id", "in", o.map((a) => a.id)]]), Rs({
9547
9546
  ooui: e,
9548
9547
  model: r,
9549
9548
  domain: s
@@ -9587,7 +9586,7 @@ const Bp = ({
9587
9586
  }), U = fe(() => {
9588
9587
  const { title: ue } = s.get(c) || {};
9589
9588
  return ue || o.label;
9590
- }, [c, o.label, s]), G = o.type === "many2many", E = N(
9589
+ }, [c, o.label, s]), W = o.type === "many2many", E = N(
9591
9590
  (ue) => {
9592
9591
  var Ae, Y;
9593
9592
  r == null || r({
@@ -9642,7 +9641,7 @@ const Bp = ({
9642
9641
  context: T,
9643
9642
  relation: h
9644
9643
  }), { showRemoveConfirm: Le } = Lp({
9645
- isMany2many: G,
9644
+ isMany2many: W,
9646
9645
  items: l,
9647
9646
  triggerChange: E,
9648
9647
  setFormHasChanges: M,
@@ -9681,12 +9680,12 @@ const Bp = ({
9681
9680
  }, [s]);
9682
9681
  return /* @__PURE__ */ D(se, { children: [
9683
9682
  /* @__PURE__ */ i(
9684
- ga,
9683
+ ha,
9685
9684
  {
9686
9685
  mode: c,
9687
9686
  title: U,
9688
9687
  readOnly: p || !1,
9689
- isMany2Many: G,
9688
+ isMany2Many: W,
9690
9689
  formHasChanges: K,
9691
9690
  totalItems: l.length,
9692
9691
  currentItemIndex: f,
@@ -9845,13 +9844,13 @@ const Bp = ({
9845
9844
  }, Qp = (e) => {
9846
9845
  const { ooui: t, value: n } = e;
9847
9846
  return t.infinite || n && Array.isArray(n.items) && n.items.length >= zp ? /* @__PURE__ */ i(Yp, { ...e }) : /* @__PURE__ */ i(Dp, { ...e });
9848
- }, { useToken: Xp } = Ke, Zp = (e) => {
9847
+ }, { useToken: Xp } = qe, Zp = (e) => {
9849
9848
  const { ooui: t } = e, { required: n } = t;
9850
9849
  return /* @__PURE__ */ i(Fe, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(eh, { ooui: t }) });
9851
9850
  }, eh = (e) => {
9852
9851
  const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: s, required: a } = t, { token: l } = Xp(), c = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = J(), [f, d] = S(), p = ne(He), { elementHasLostFocus: h } = p || {};
9853
9852
  de(() => {
9854
- d(Ts(n));
9853
+ d(Is(n));
9855
9854
  }, [n]);
9856
9855
  const m = (v) => {
9857
9856
  r == null || r(v);
@@ -9876,9 +9875,9 @@ const Bp = ({
9876
9875
  }
9877
9876
  );
9878
9877
  };
9879
- function ya(e) {
9878
+ function ga(e) {
9880
9879
  const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = ft(t.icon || "");
9881
- return /* @__PURE__ */ i(se, { children: (t.label || o) && n ? /* @__PURE__ */ i(bl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
9880
+ return /* @__PURE__ */ i(se, { children: (t.label || o) && n ? /* @__PURE__ */ i(wl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
9882
9881
  Kn,
9883
9882
  {
9884
9883
  container: t.container,
@@ -9892,7 +9891,7 @@ function ya(e) {
9892
9891
  }
9893
9892
  ) });
9894
9893
  }
9895
- const { TabPane: th } = Pi;
9894
+ const { TabPane: th } = Di;
9896
9895
  function nh(e) {
9897
9896
  const { ooui: t, responsiveBehaviour: n } = e, r = t.pages;
9898
9897
  function o(s) {
@@ -9901,7 +9900,7 @@ function nh(e) {
9901
9900
  return a && /* @__PURE__ */ i(a, {});
9902
9901
  }
9903
9902
  }
9904
- return /* @__PURE__ */ i(Pi, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
9903
+ return /* @__PURE__ */ i(Di, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
9905
9904
  th,
9906
9905
  {
9907
9906
  tab: /* @__PURE__ */ D(se, { children: [
@@ -9910,7 +9909,7 @@ function nh(e) {
9910
9909
  s.label
9911
9910
  ] }),
9912
9911
  children: /* @__PURE__ */ i(
9913
- ya,
9912
+ ga,
9914
9913
  {
9915
9914
  ooui: s,
9916
9915
  showLabel: !1,
@@ -9921,7 +9920,7 @@ function nh(e) {
9921
9920
  s.label
9922
9921
  )) });
9923
9922
  }
9924
- const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
9923
+ const { useToken: rh } = qe, { TextArea: jr } = dt, oh = (e) => {
9925
9924
  const { ooui: t } = e, { id: n, readOnly: r, required: o, height: s, translatable: a } = t, { token: l } = rh(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ne(He), { elementHasLostFocus: f } = u || {};
9926
9925
  return /* @__PURE__ */ i(Fe, { required: o, ...e, children: a ? /* @__PURE__ */ i(
9927
9926
  ih,
@@ -9991,7 +9990,7 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
9991
9990
  }
9992
9991
  ),
9993
9992
  /* @__PURE__ */ i(
9994
- ns,
9993
+ ts,
9995
9994
  {
9996
9995
  id: a,
9997
9996
  model: l,
@@ -10026,7 +10025,7 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10026
10025
  rt,
10027
10026
  {
10028
10027
  tooltip: h("translate"),
10029
- icon: /* @__PURE__ */ i(Wi, {}),
10028
+ icon: /* @__PURE__ */ i(Ui, {}),
10030
10029
  onClick: async () => {
10031
10030
  u != null && u() ? It(h("saveBeforeTranslate")) : It(h("enterTextBeforeTranslate"));
10032
10031
  },
@@ -10080,7 +10079,7 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10080
10079
  context: t,
10081
10080
  fields: []
10082
10081
  });
10083
- return a.current["/"] = g, Ai({ fields: g });
10082
+ return a.current["/"] = g, Oi({ fields: g });
10084
10083
  }, [e, t, a]), d = N(
10085
10084
  async (g) => {
10086
10085
  const w = Ur(g, a.current)[Hr(g)], x = w.relation, C = await $.getHandler().getFields({
@@ -10093,7 +10092,7 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10093
10092
  parentTitle: w.string,
10094
10093
  title: A.string
10095
10094
  });
10096
- return a.current[g] = C, Ai({
10095
+ return a.current[g] = C, Oi({
10097
10096
  fields: C,
10098
10097
  parentKey: g
10099
10098
  });
@@ -10174,13 +10173,13 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10174
10173
  onSavePredefinedExport: y,
10175
10174
  onRemovePredefinedExport: h
10176
10175
  };
10177
- }, Ai = ({
10176
+ }, Oi = ({
10178
10177
  fields: e,
10179
10178
  parentKey: t
10180
10179
  }) => {
10181
10180
  const n = [];
10182
10181
  for (const r of Object.keys(e)) {
10183
- const o = e[r], s = va(o), a = o.is_function === !0, l = s && !a;
10182
+ const o = e[r], s = ya(o), a = o.is_function === !0, l = s && !a;
10184
10183
  n.push({
10185
10184
  key: lh({ key: r, parentKey: t }),
10186
10185
  title: o.string,
@@ -10190,7 +10189,7 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10190
10189
  });
10191
10190
  }
10192
10191
  return n;
10193
- }, va = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", lh = ({
10192
+ }, ya = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", lh = ({
10194
10193
  parentKey: e,
10195
10194
  key: t
10196
10195
  }) => `${e ? e + "/" : ""}${t}`, Br = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Hr = (e) => {
@@ -10256,7 +10255,7 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10256
10255
  keys: e,
10257
10256
  fields: t
10258
10257
  }) => e.map((n) => {
10259
- const r = Hr(n), s = Ur(n, t)[r], a = va(s), l = s.is_function === !0;
10258
+ const r = Hr(n), s = Ur(n, t)[r], a = ya(s), l = s.is_function === !0;
10260
10259
  return a && !l ? `${n}/id` : n;
10261
10260
  }), ph = (e) => {
10262
10261
  const t = /* @__PURE__ */ new Map(), n = [];
@@ -10299,7 +10298,7 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10299
10298
  onClose: n
10300
10299
  });
10301
10300
  return /* @__PURE__ */ i(
10302
- Sl,
10301
+ bl,
10303
10302
  {
10304
10303
  visible: t,
10305
10304
  onSucceed: f,
@@ -10316,10 +10315,10 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10316
10315
  );
10317
10316
  }, gh = (e) => {
10318
10317
  const { ooui: t } = e;
10319
- return /* @__PURE__ */ i(As, { ooui: t });
10318
+ return /* @__PURE__ */ i(Os, { ooui: t });
10320
10319
  }, yh = (e) => {
10321
10320
  const { ooui: t } = e;
10322
- return /* @__PURE__ */ i(As, { ooui: t, showTime: !0 });
10321
+ return /* @__PURE__ */ i(Os, { ooui: t, showTime: !0 });
10323
10322
  }, vh = (e) => {
10324
10323
  const { ooui: t } = e;
10325
10324
  return /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(wh, { ooui: t }) });
@@ -10346,7 +10345,7 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10346
10345
  f([m, void 0]), p(h);
10347
10346
  }, [t]), /* @__PURE__ */ D(Ne, { gutter: 8, wrap: !1, children: [
10348
10347
  /* @__PURE__ */ i(xe, { flex: "1", children: /* @__PURE__ */ i(
10349
- is,
10348
+ os,
10350
10349
  {
10351
10350
  ooui: new qr({
10352
10351
  name: "model_selection",
@@ -10365,9 +10364,9 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10365
10364
  }
10366
10365
  ) }),
10367
10366
  /* @__PURE__ */ i(xe, { flex: "3", children: /* @__PURE__ */ i(
10368
- fa,
10367
+ ua,
10369
10368
  {
10370
- ooui: new $i({
10369
+ ooui: new ki({
10371
10370
  name: "object_value",
10372
10371
  relation: d,
10373
10372
  readonly: a,
@@ -10383,11 +10382,11 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10383
10382
  }
10384
10383
  ) })
10385
10384
  ] });
10386
- }, { useToken: Ch } = Ke, xh = (e) => {
10385
+ }, { useToken: Ch } = qe, xh = (e) => {
10387
10386
  const { ooui: t } = e, { required: n } = t;
10388
10387
  return /* @__PURE__ */ i(Fe, { required: n, ...e, children: /* @__PURE__ */ i(Ih, { ooui: t }) });
10389
10388
  }, Ih = (e) => {
10390
- const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Ch(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = J(null), { setFieldValue: f, getFieldValue: d } = ne(He) || {}, { t: p } = he(), h = n ? Oc(n) : "", m = (x) => {
10389
+ const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Ch(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = J(null), { setFieldValue: f, getFieldValue: d } = ne(He) || {}, { t: p } = he(), h = n ? Tc(n) : "", m = (x) => {
10391
10390
  r == null || r(x);
10392
10391
  };
10393
10392
  async function y() {
@@ -10400,7 +10399,7 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10400
10399
  }
10401
10400
  async function v(x) {
10402
10401
  x.stopPropagation(), x.preventDefault();
10403
- const C = x.target.files[0], b = await ss(C);
10402
+ const C = x.target.files[0], b = await is(C);
10404
10403
  m(b), a && f(a, C.name);
10405
10404
  }
10406
10405
  function w() {
@@ -10440,7 +10439,7 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10440
10439
  children: "Select"
10441
10440
  }
10442
10441
  ),
10443
- /* @__PURE__ */ i(je, { icon: /* @__PURE__ */ i(cl, {}), disabled: !n, onClick: g, children: p("open") }),
10442
+ /* @__PURE__ */ i(je, { icon: /* @__PURE__ */ i(ll, {}), disabled: !n, onClick: g, children: p("open") }),
10444
10443
  /* @__PURE__ */ i(
10445
10444
  rt,
10446
10445
  {
@@ -10464,10 +10463,10 @@ const { useToken: rh } = Ke, { TextArea: jr } = dt, oh = (e) => {
10464
10463
  }, Tr = {
10465
10464
  tree: /* @__PURE__ */ i(to, {}),
10466
10465
  form: /* @__PURE__ */ i(In, {}),
10467
- graph: /* @__PURE__ */ i(dl, {}),
10468
- calendar: /* @__PURE__ */ i(ul, {})
10466
+ graph: /* @__PURE__ */ i(cl, {}),
10467
+ calendar: /* @__PURE__ */ i(dl, {})
10469
10468
  };
10470
- function Fi(e) {
10469
+ function Ai(e) {
10471
10470
  return e ? (Tr == null ? void 0 : Tr[e.type]) || /* @__PURE__ */ i(In, {}) : /* @__PURE__ */ i(In, {});
10472
10471
  }
10473
10472
  function xo(e) {
@@ -10486,7 +10485,7 @@ function xo(e) {
10486
10485
  return {
10487
10486
  id: d.view_id || p,
10488
10487
  name: d.title || h,
10489
- icon: Fi(d),
10488
+ icon: Ai(d),
10490
10489
  selected: t.view_id === d.view_id
10491
10490
  };
10492
10491
  })
@@ -10517,7 +10516,7 @@ function xo(e) {
10517
10516
  rt,
10518
10517
  {
10519
10518
  tooltip: a ? l("viewAs") + " " + l(a.type) : "",
10520
- icon: Fi(a),
10519
+ icon: Ai(a),
10521
10520
  style: {
10522
10521
  width: 50,
10523
10522
  borderTopRightRadius: 0,
@@ -10530,7 +10529,7 @@ function xo(e) {
10530
10529
  }
10531
10530
  ),
10532
10531
  /* @__PURE__ */ i(
10533
- Ji,
10532
+ zi,
10534
10533
  {
10535
10534
  onRetrieveData: async () => c,
10536
10535
  onItemClick: f,
@@ -10578,8 +10577,8 @@ function st(e) {
10578
10577
  }
10579
10578
  );
10580
10579
  }
10581
- const wa = (e) => /* @__PURE__ */ i(st, { ...e, type: "primary", danger: !0 });
10582
- function ba(e) {
10580
+ const va = (e) => /* @__PURE__ */ i(st, { ...e, type: "primary", danger: !0 });
10581
+ function wa(e) {
10583
10582
  const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = ne(
10584
10583
  ct
10585
10584
  ), { t: o } = he(), s = () => {
@@ -10605,7 +10604,7 @@ function ba(e) {
10605
10604
  }
10606
10605
  );
10607
10606
  }
10608
- async function Sa(e, t, n) {
10607
+ async function ba(e, t, n) {
10609
10608
  const r = (await $.getHandler().getLogInfo({
10610
10609
  model: e,
10611
10610
  ids: [t]
@@ -10643,7 +10642,7 @@ const Th = (e) => {
10643
10642
  /* @__PURE__ */ i(Xn, { style: { fontSize: 12 } })
10644
10643
  ] });
10645
10644
  return /* @__PURE__ */ i(
10646
- Ji,
10645
+ zi,
10647
10646
  {
10648
10647
  ref: u,
10649
10648
  onRetrieveData: async () => [
@@ -10832,7 +10831,7 @@ const Ah = () => {
10832
10831
  de(() => () => {
10833
10832
  c();
10834
10833
  }, [c]);
10835
- const u = xs(), f = N(
10834
+ const u = Cs(), f = N(
10836
10835
  async (g) => {
10837
10836
  var v;
10838
10837
  try {
@@ -10931,7 +10930,7 @@ function Fh({ toolbar: e }) {
10931
10930
  setPreviousView: F,
10932
10931
  goToResourceId: k,
10933
10932
  isActive: V
10934
- } = fo(), { processAction: j } = t || {}, { openRelate: P, openDefaultActionForModel: U } = n || {}, G = d || x || T || C, E = N(
10933
+ } = fo(), { processAction: j } = t || {}, { openRelate: P, openDefaultActionForModel: U } = n || {}, W = d || x || T || C, E = N(
10935
10934
  (M) => {
10936
10935
  f ? gn({ t: r, onOk: M }) : M();
10937
10936
  },
@@ -10950,7 +10949,7 @@ function Fh({ toolbar: e }) {
10950
10949
  const pe = Math.max(0, (y || 0) - 1);
10951
10950
  M != null && M[pe] ? (g == null || g(M[pe].id), m == null || m(pe)) : (g == null || g(void 0), m == null || m(void 0));
10952
10951
  } catch (M) {
10953
- Wt(JSON.stringify(M));
10952
+ Ut(JSON.stringify(M));
10954
10953
  } finally {
10955
10954
  w == null || w(!1);
10956
10955
  }
@@ -10974,7 +10973,7 @@ function Fh({ toolbar: e }) {
10974
10973
  });
10975
10974
  M && await (k == null ? void 0 : k([M]));
10976
10975
  } catch (M) {
10977
- Wt(JSON.stringify(M));
10976
+ Ut(JSON.stringify(M));
10978
10977
  } finally {
10979
10978
  b == null || b(!1);
10980
10979
  }
@@ -10990,22 +10989,22 @@ function Fh({ toolbar: e }) {
10990
10989
  },
10991
10990
  [O, j]
10992
10991
  );
10993
- return jt(
10992
+ return Lt(
10994
10993
  "pagedown",
10995
10994
  () => V && E(o),
10996
10995
  { enableOnFormTags: !0, preventDefault: !0 },
10997
10996
  [V, E, o]
10998
- ), jt(
10997
+ ), Lt(
10999
10998
  "pageup",
11000
10999
  () => V && E(s),
11001
11000
  { enableOnFormTags: !0, preventDefault: !0 },
11002
11001
  [V, E, s]
11003
- ), jt(
11002
+ ), Lt(
11004
11003
  "ctrl+s,command+s",
11005
11004
  () => V && (u == null ? void 0 : u()),
11006
11005
  { enableOnFormTags: !0, preventDefault: !0 },
11007
11006
  [V, u]
11008
- ), jt(
11007
+ ), Lt(
11009
11008
  "ctrl+l,command+l",
11010
11009
  () => {
11011
11010
  V && I && (F == null || F(l), c == null || c(I));
@@ -11015,16 +11014,16 @@ function Fh({ toolbar: e }) {
11015
11014
  ), l ? /* @__PURE__ */ D(Xe, { wrap: !0, children: [
11016
11015
  T && /* @__PURE__ */ D(se, { children: [
11017
11016
  /* @__PURE__ */ i(We, {}),
11018
- Xt(),
11019
- Xt()
11017
+ Qt(),
11018
+ Qt()
11020
11019
  ] }),
11021
- /* @__PURE__ */ i(ba, { disabled: G }),
11020
+ /* @__PURE__ */ i(wa, { disabled: W }),
11022
11021
  /* @__PURE__ */ i(
11023
11022
  st,
11024
11023
  {
11025
- icon: /* @__PURE__ */ i(fl, {}),
11024
+ icon: /* @__PURE__ */ i(ul, {}),
11026
11025
  tooltip: r("save"),
11027
- disabled: !f || G,
11026
+ disabled: !f || W,
11028
11027
  loading: d,
11029
11028
  onClick: u
11030
11029
  }
@@ -11034,7 +11033,7 @@ function Fh({ toolbar: e }) {
11034
11033
  {
11035
11034
  icon: /* @__PURE__ */ i(no, {}),
11036
11035
  tooltip: r("duplicate"),
11037
- disabled: f || G || p === void 0,
11036
+ disabled: f || W || p === void 0,
11038
11037
  loading: C,
11039
11038
  onClick: () => Rt({
11040
11039
  confirmMessage: r("confirmDuplicate"),
@@ -11044,11 +11043,11 @@ function Fh({ toolbar: e }) {
11044
11043
  }
11045
11044
  ),
11046
11045
  /* @__PURE__ */ i(
11047
- wa,
11046
+ va,
11048
11047
  {
11049
11048
  icon: /* @__PURE__ */ i(eo, {}),
11050
11049
  tooltip: r("delete"),
11051
- disabled: G || p === void 0,
11050
+ disabled: W || p === void 0,
11052
11051
  loading: x,
11053
11052
  onClick: () => Rt({
11054
11053
  confirmMessage: r("confirmRemoveItem"),
@@ -11057,14 +11056,14 @@ function Fh({ toolbar: e }) {
11057
11056
  })
11058
11057
  }
11059
11058
  ),
11060
- Xt(),
11059
+ Qt(),
11061
11060
  /* @__PURE__ */ i(
11062
11061
  st,
11063
11062
  {
11064
- icon: /* @__PURE__ */ i(qi, {}),
11063
+ icon: /* @__PURE__ */ i(Ki, {}),
11065
11064
  tooltip: r("showLogs"),
11066
- disabled: G || p === void 0,
11067
- onClick: () => Sa(v, p, r)
11065
+ disabled: W || p === void 0,
11066
+ onClick: () => ba(v, p, r)
11068
11067
  }
11069
11068
  ),
11070
11069
  /* @__PURE__ */ i(
@@ -11072,11 +11071,11 @@ function Fh({ toolbar: e }) {
11072
11071
  {
11073
11072
  icon: /* @__PURE__ */ i(rr, {}),
11074
11073
  tooltip: r("refresh"),
11075
- disabled: G || p === void 0,
11074
+ disabled: W || p === void 0,
11076
11075
  onClick: () => E(() => O.current.fetchValues())
11077
11076
  }
11078
11077
  ),
11079
- Xt(),
11078
+ Qt(),
11080
11079
  /* @__PURE__ */ i(
11081
11080
  xo,
11082
11081
  {
@@ -11086,43 +11085,43 @@ function Fh({ toolbar: e }) {
11086
11085
  onChangeView: (M) => {
11087
11086
  F == null || F(l), _ == null || _(!1), c == null || c(M);
11088
11087
  },
11089
- disabled: G,
11088
+ disabled: W,
11090
11089
  formHasChanges: f
11091
11090
  }
11092
11091
  ),
11093
- Xt(),
11092
+ Qt(),
11094
11093
  /* @__PURE__ */ D(Xe, { children: [
11095
11094
  /* @__PURE__ */ i(
11096
11095
  st,
11097
11096
  {
11098
- icon: /* @__PURE__ */ i(Gi, {}),
11097
+ icon: /* @__PURE__ */ i(Wi, {}),
11099
11098
  tooltip: r("previous"),
11100
- disabled: G,
11099
+ disabled: W,
11101
11100
  onClick: () => E(s)
11102
11101
  }
11103
11102
  ),
11104
11103
  /* @__PURE__ */ i(
11105
11104
  st,
11106
11105
  {
11107
- icon: /* @__PURE__ */ i(Ki, {}),
11106
+ icon: /* @__PURE__ */ i(Gi, {}),
11108
11107
  tooltip: r("next"),
11109
- disabled: G,
11108
+ disabled: W,
11110
11109
  onClick: () => E(o)
11111
11110
  }
11112
11111
  )
11113
11112
  ] }),
11114
- Xt(),
11113
+ Qt(),
11115
11114
  /* @__PURE__ */ i(
11116
11115
  nn,
11117
11116
  {
11118
11117
  icon: /* @__PURE__ */ i(Qr, {}),
11119
11118
  placement: "bottomRight",
11120
- disabled: G,
11119
+ disabled: W,
11121
11120
  onRetrieveData: async () => [
11122
11121
  { label: r("actions"), items: e == null ? void 0 : e.action }
11123
11122
  ],
11124
11123
  onItemClick: async (M) => {
11125
- M && (await Zt({ onFormSave: u })).succeed && ee(M);
11124
+ M && (await Xt({ onFormSave: u })).succeed && ee(M);
11126
11125
  }
11127
11126
  }
11128
11127
  ),
@@ -11130,14 +11129,14 @@ function Fh({ toolbar: e }) {
11130
11129
  nn,
11131
11130
  {
11132
11131
  icon: /* @__PURE__ */ i(Xr, {}),
11133
- disabled: G,
11132
+ disabled: W,
11134
11133
  placement: "bottomRight",
11135
11134
  onRetrieveData: async () => [
11136
11135
  { label: r("reports"), items: e == null ? void 0 : e.print }
11137
11136
  ],
11138
11137
  onItemClick: async (M) => {
11139
11138
  if (M) {
11140
- const pe = await Zt({ onFormSave: u });
11139
+ const pe = await Xt({ onFormSave: u });
11141
11140
  pe.succeed && ee({
11142
11141
  ...M,
11143
11142
  datas: {
@@ -11153,13 +11152,13 @@ function Fh({ toolbar: e }) {
11153
11152
  nn,
11154
11153
  {
11155
11154
  icon: /* @__PURE__ */ i(Zr, {}),
11156
- disabled: G,
11155
+ disabled: W,
11157
11156
  placement: "bottomRight",
11158
11157
  onRetrieveData: async () => [
11159
11158
  { label: r("related"), items: e == null ? void 0 : e.relate }
11160
11159
  ],
11161
11160
  onItemClick: async (M) => {
11162
- M && (await Zt({ onFormSave: u })).succeed && P({
11161
+ M && (await Xt({ onFormSave: u })).succeed && P({
11163
11162
  relateData: M,
11164
11163
  values: O.current.getValues(),
11165
11164
  fields: O.current.getFields(),
@@ -11172,12 +11171,12 @@ function Fh({ toolbar: e }) {
11172
11171
  /* @__PURE__ */ i(
11173
11172
  Oh,
11174
11173
  {
11175
- disabled: G,
11174
+ disabled: W,
11176
11175
  attachments: R,
11177
11176
  onAddNewAttachment: async () => {
11178
- const M = await Zt({ onFormSave: u });
11177
+ const M = await Xt({ onFormSave: u });
11179
11178
  M.succeed && U({
11180
- ...Ri(
11179
+ ...Fi(
11181
11180
  v,
11182
11181
  M.currentId
11183
11182
  ),
@@ -11185,9 +11184,9 @@ function Fh({ toolbar: e }) {
11185
11184
  });
11186
11185
  },
11187
11186
  onListAllAttachments: async () => {
11188
- const M = await Zt({ onFormSave: u });
11187
+ const M = await Xt({ onFormSave: u });
11189
11188
  M.succeed && U({
11190
- ...Ri(
11189
+ ...Fi(
11191
11190
  v,
11192
11191
  M.currentId
11193
11192
  ),
@@ -11195,7 +11194,7 @@ function Fh({ toolbar: e }) {
11195
11194
  });
11196
11195
  },
11197
11196
  onViewAttachmentDetails: async (M) => {
11198
- (await Zt({ onFormSave: u })).succeed && U({
11197
+ (await Xt({ onFormSave: u })).succeed && U({
11199
11198
  model: "ir.attachment",
11200
11199
  res_id: M.id,
11201
11200
  initialViewType: "form"
@@ -11205,12 +11204,12 @@ function Fh({ toolbar: e }) {
11205
11204
  )
11206
11205
  ] }) : null;
11207
11206
  }
11208
- const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt = async ({
11207
+ const Qt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Xt = async ({
11209
11208
  onFormSave: e
11210
11209
  }) => {
11211
11210
  const t = await (e == null ? void 0 : e());
11212
11211
  return t != null && t.succeed ? { succeed: !0, currentId: t.id } : { succeed: !1, currentId: void 0 };
11213
- }, Ri = (e, t) => ({
11212
+ }, Fi = (e, t) => ({
11214
11213
  model: "ir.attachment",
11215
11214
  domain: [
11216
11215
  ["res_model", "=", e],
@@ -11218,7 +11217,7 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11218
11217
  ],
11219
11218
  values: { selection_associated_object: `${e},${t}` },
11220
11219
  forced_values: { res_model: e, res_id: t }
11221
- }), { useToken: Rh } = Ke, Ca = (e) => {
11220
+ }), { useToken: Rh } = qe, Sa = (e) => {
11222
11221
  const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } = Rh(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = ne(He), { elementHasLostFocus: p } = d || {}, [h, m] = S(!1), [y, g] = S(!1);
11223
11222
  de(() => {
11224
11223
  l && !h && g(!1), !n && !l && (m(!0), g(!0));
@@ -11240,7 +11239,7 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11240
11239
  ) : /* @__PURE__ */ i(
11241
11240
  je,
11242
11241
  {
11243
- icon: /* @__PURE__ */ i(Yi, {}),
11242
+ icon: /* @__PURE__ */ i(qi, {}),
11244
11243
  onClick: () => {
11245
11244
  m(!0), g(!0);
11246
11245
  },
@@ -11277,20 +11276,20 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11277
11276
  }, _h = (e) => {
11278
11277
  const { ooui: t } = e, { required: n } = t;
11279
11278
  return /* @__PURE__ */ i(Fe, { required: n, ...e, children: /* @__PURE__ */ i(
11280
- Ca,
11279
+ Sa,
11281
11280
  {
11282
11281
  ooui: t,
11283
- valueValidator: (r) => r ? Gl(r) : !1
11282
+ valueValidator: (r) => r ? Wl(r) : !1
11284
11283
  }
11285
11284
  ) });
11286
11285
  }, Vh = (e) => {
11287
11286
  const { ooui: t } = e, { required: n } = t;
11288
11287
  return /* @__PURE__ */ i(Fe, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(yu, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
11289
- Ca,
11288
+ Sa,
11290
11289
  {
11291
11290
  ooui: t,
11292
11291
  linkPrefix: "mailto:",
11293
- valueValidator: (r) => r ? Kl(r) : !1
11292
+ valueValidator: (r) => r ? Gl(r) : !1
11294
11293
  }
11295
11294
  ) });
11296
11295
  }, Eh = (e) => {
@@ -11346,7 +11345,7 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11346
11345
  tabIndex: 1,
11347
11346
  loading: o,
11348
11347
  style: { marginLeft: 15 },
11349
- icon: /* @__PURE__ */ i(ml, {}),
11348
+ icon: /* @__PURE__ */ i(fl, {}),
11350
11349
  htmlType: "submit",
11351
11350
  disabled: o,
11352
11351
  onClick: () => {
@@ -11375,8 +11374,8 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11375
11374
  ] })
11376
11375
  }
11377
11376
  );
11378
- }, { useToken: Dh } = Ke;
11379
- function xa(e) {
11377
+ }, { useToken: Dh } = qe;
11378
+ function Ca(e) {
11380
11379
  const { badgeNumber: t = 0, ...n } = e, { token: r } = Dh();
11381
11380
  return /* @__PURE__ */ D("div", { style: { position: "relative" }, children: [
11382
11381
  t > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
@@ -11418,10 +11417,10 @@ function Ph({ refreshGraph: e }) {
11418
11417
  } = ne(ct);
11419
11418
  return /* @__PURE__ */ D(Xe, { wrap: !0, children: [
11420
11419
  /* @__PURE__ */ i(
11421
- xa,
11420
+ Ca,
11422
11421
  {
11423
11422
  icon: /* @__PURE__ */ i(
11424
- zi,
11423
+ Yi,
11425
11424
  {
11426
11425
  style: { color: a ? "white" : void 0 }
11427
11426
  }
@@ -11461,7 +11460,7 @@ function Ph({ refreshGraph: e }) {
11461
11460
  )
11462
11461
  ] });
11463
11462
  }
11464
- const { useToken: kh } = Ke, { Title: $h, Text: Nn } = Vt, dr = ({
11463
+ const { useToken: kh } = qe, { Title: $h, Text: Nn } = Vt, dr = ({
11465
11464
  title: e,
11466
11465
  children: t,
11467
11466
  showSummary: n = !0
@@ -11596,7 +11595,7 @@ const { useToken: kh } = Ke, { Title: $h, Text: Nn } = Vt, dr = ({
11596
11595
  }, [O]), de(() => {
11597
11596
  t.view_id !== F.view_id && V(!0);
11598
11597
  }, [F]);
11599
- const { clear: j, searchFilterLoading: P, searchError: U, offset: G, tableRefreshing: E } = ca({
11598
+ const { clear: j, searchFilterLoading: P, searchError: U, offset: W, tableRefreshing: E } = la({
11600
11599
  model: r,
11601
11600
  setSearchTreeNameSearch: b,
11602
11601
  setSelectedRowItems: m,
@@ -11638,7 +11637,7 @@ const { useToken: kh } = Ke, { Title: $h, Text: Nn } = Vt, dr = ({
11638
11637
  ]),
11639
11638
  limit: T,
11640
11639
  onClear: j,
11641
- offset: G,
11640
+ offset: W,
11642
11641
  isSearching: P,
11643
11642
  onSubmit: (K) => {
11644
11643
  V(!1), y == null || y(K.params), v == null || v(!1);
@@ -11720,7 +11719,7 @@ function Lh(e) {
11720
11719
  },
11721
11720
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
11722
11721
  suffix: (a || r && r.length > 0) && /* @__PURE__ */ i(Ft, { title: o("clear"), children: /* @__PURE__ */ i(
11723
- pl,
11722
+ ml,
11724
11723
  {
11725
11724
  style: { color: "rgba(0,0,0,.45)" },
11726
11725
  onClick: u
@@ -11771,15 +11770,15 @@ function jh(e) {
11771
11770
  hn.FEATURE_ADVANCED_EXPORT
11772
11771
  ), { t: V } = he(), j = ne(
11773
11772
  yn
11774
- ), { processAction: P } = j || {}, [U, G] = S(!1), E = J(!0), K = u === "custom.search.results";
11775
- jt(
11773
+ ), { processAction: P } = j || {}, [U, W] = S(!1), E = J(!0), K = u === "custom.search.results";
11774
+ Lt(
11776
11775
  "ctrl+l,command+l",
11777
11776
  () => {
11778
11777
  R && C && (x == null || x(n), r == null || r(C));
11779
11778
  },
11780
11779
  { enableOnFormTags: !0, preventDefault: !0 },
11781
11780
  [C, n, R]
11782
- ), jt(
11781
+ ), Lt(
11783
11782
  "ctrl+f,command+f",
11784
11783
  () => {
11785
11784
  R && (y == null || y(!m));
@@ -11883,10 +11882,10 @@ function jh(e) {
11883
11882
  }
11884
11883
  ),
11885
11884
  !I && !K && /* @__PURE__ */ i(
11886
- xa,
11885
+ Ca,
11887
11886
  {
11888
11887
  icon: /* @__PURE__ */ i(
11889
- zi,
11888
+ Yi,
11890
11889
  {
11891
11890
  style: { color: m ? "white" : void 0 }
11892
11891
  }
@@ -11901,7 +11900,7 @@ function jh(e) {
11901
11900
  }
11902
11901
  ),
11903
11902
  Mt(),
11904
- /* @__PURE__ */ i(ba, { disabled: w || K }),
11903
+ /* @__PURE__ */ i(wa, { disabled: w || K }),
11905
11904
  /* @__PURE__ */ i(
11906
11905
  st,
11907
11906
  {
@@ -11913,7 +11912,7 @@ function jh(e) {
11913
11912
  }
11914
11913
  ),
11915
11914
  /* @__PURE__ */ i(
11916
- wa,
11915
+ va,
11917
11916
  {
11918
11917
  icon: /* @__PURE__ */ i(eo, {}),
11919
11918
  tooltip: V("delete"),
@@ -11927,12 +11926,12 @@ function jh(e) {
11927
11926
  /* @__PURE__ */ i(
11928
11927
  st,
11929
11928
  {
11930
- icon: /* @__PURE__ */ i(qi, {}),
11929
+ icon: /* @__PURE__ */ i(Ki, {}),
11931
11930
  tooltip: V("showLogs"),
11932
11931
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || w,
11933
11932
  loading: !1,
11934
11933
  onClick: () => {
11935
- Sa(u, o[0].id, V);
11934
+ ba(u, o[0].id, V);
11936
11935
  }
11937
11936
  }
11938
11937
  ),
@@ -12004,7 +12003,7 @@ function jh(e) {
12004
12003
  {
12005
12004
  placement: "bottomRight",
12006
12005
  icon: /* @__PURE__ */ i(
12007
- Bi,
12006
+ ji,
12008
12007
  {
12009
12008
  component: () => /* @__PURE__ */ D(
12010
12009
  "svg",
@@ -12061,7 +12060,7 @@ function jh(e) {
12061
12060
  });
12062
12061
  return;
12063
12062
  }
12064
- G(!0);
12063
+ W(!0);
12065
12064
  },
12066
12065
  disabled: l || a || w || re
12067
12066
  }
@@ -12070,7 +12069,7 @@ function jh(e) {
12070
12069
  hh,
12071
12070
  {
12072
12071
  visible: U,
12073
- onClose: () => G(!1),
12072
+ onClose: () => W(!1),
12074
12073
  model: u,
12075
12074
  domain: ln(
12076
12075
  ((oe = f == null ? void 0 : f.current) == null ? void 0 : oe.getDomain()) || [],
@@ -12104,7 +12103,7 @@ const Bh = (e) => {
12104
12103
  setCurrentView: d,
12105
12104
  availableViews: p,
12106
12105
  searchTreeNameSearch: h
12107
- } = e, m = fe(() => !(a != null && a.arch) || a.isExpandable ? !1 : cs(a.arch, "infinite") === "1", [a]);
12106
+ } = e, m = fe(() => !(a != null && a.arch) || a.isExpandable ? !1 : ls(a.arch, "infinite") === "1", [a]);
12108
12107
  de(() => {
12109
12108
  v == null || v(m);
12110
12109
  }, [m]);
@@ -12141,7 +12140,7 @@ const Bh = (e) => {
12141
12140
  }
12142
12141
  ) }),
12143
12142
  m && /* @__PURE__ */ i(
12144
- aa,
12143
+ sa,
12145
12144
  {
12146
12145
  ref: n,
12147
12146
  rootTree: !0,
@@ -12154,7 +12153,7 @@ const Bh = (e) => {
12154
12153
  }
12155
12154
  ),
12156
12155
  !m && /* @__PURE__ */ i(
12157
- da,
12156
+ ca,
12158
12157
  {
12159
12158
  ref: n,
12160
12159
  rootTree: !0,
@@ -12192,7 +12191,7 @@ function Uh() {
12192
12191
  st,
12193
12192
  {
12194
12193
  icon: /* @__PURE__ */ i(
12195
- hl,
12194
+ pl,
12196
12195
  {
12197
12196
  style: { color: n ? "white" : void 0 }
12198
12197
  }
@@ -12210,7 +12209,7 @@ function Uh() {
12210
12209
  /* @__PURE__ */ i(
12211
12210
  st,
12212
12211
  {
12213
- icon: /* @__PURE__ */ i(gl, {}),
12212
+ icon: /* @__PURE__ */ i(hl, {}),
12214
12213
  tooltip: o("configDashboard"),
12215
12214
  disabled: e,
12216
12215
  loading: !1,
@@ -12297,7 +12296,7 @@ function qh(e, t) {
12297
12296
  limit: g
12298
12297
  } = e, [v, w] = S(), [x, C] = S([]), [b, A] = S(!0), T = p || void 0, [R, O] = S(
12299
12298
  T
12300
- ), [_, I] = S([]), [F, k] = S(), [V, j] = S([]), [P, U] = S(), [G, E] = S(0), [K, re] = S(!1), [ee, M] = S(!1), [pe, X] = S(), { t: L } = he(), oe = J(), B = J(), z = ne(
12299
+ ), [_, I] = S([]), [F, k] = S(), [V, j] = S([]), [P, U] = S(), [W, E] = S(0), [K, re] = S(!1), [ee, M] = S(!1), [pe, X] = S(), { t: L } = he(), oe = J(), B = J(), z = ne(
12301
12300
  bt
12302
12301
  ), {
12303
12302
  setCurrentView: q,
@@ -12307,7 +12306,7 @@ function qh(e, t) {
12307
12306
  openAction: Me,
12308
12307
  onRemoveTab: Le
12309
12308
  } = z || {};
12310
- jt(
12309
+ Lt(
12311
12310
  "ctrl+g,command+g",
12312
12311
  () => {
12313
12312
  le();
@@ -12396,15 +12395,15 @@ function qh(e, t) {
12396
12395
  }
12397
12396
  }
12398
12397
  }
12399
- let qe;
12400
- !u && Y.find((Ee) => Ee.type === "tree") ? qe = Y.find(
12398
+ let Ye;
12399
+ !u && Y.find((Ee) => Ee.type === "tree") ? Ye = Y.find(
12401
12400
  (Se) => Se.type === "tree"
12402
- ) : u ? qe = Y.find((Se) => u.id ? Se.type === u.type && Se.view_id === u.id : Se.type === u.type) : qe = Y.find(
12401
+ ) : u ? Ye = Y.find((Se) => u.id ? Se.type === u.type && Se.view_id === u.id : Se.type === u.type) : Ye = Y.find(
12403
12402
  (Se) => Se.type === "form"
12404
- ), qe || (at(
12403
+ ), Ye || (at(
12405
12404
  `Error determining the first view to show for model ${r}.
12406
12405
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
12407
- ), Le == null || Le(c)), ke(qe), C(Y), A(!1);
12406
+ ), Le == null || Le(c)), ke(Ye), C(Y), A(!1);
12408
12407
  };
12409
12408
  l({ tabKey: c, canWeClose: Oe }), de(() => {
12410
12409
  const Y = x.find((Ce) => Ce.type === "tree"), ve = x.find((Ce) => u.id ? Ce.type === u.type && Ce.view_id === u.id : Ce.type === u.type);
@@ -12425,9 +12424,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12425
12424
  async function Te(Y, ve) {
12426
12425
  var Ee;
12427
12426
  M(!0);
12428
- let Ce, qe;
12427
+ let Ce, Ye;
12429
12428
  if (Y.length === 1) {
12430
- Ce = "form", qe = [];
12429
+ Ce = "form", Ye = [];
12431
12430
  const Se = Y[0], ge = V.findIndex((Qe) => Qe.id === Se);
12432
12431
  let $e;
12433
12432
  if (ge === -1) {
@@ -12446,7 +12445,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12446
12445
  } else
12447
12446
  $e = V[ge];
12448
12447
  } else
12449
- Ce = "tree", qe = [["id", "in", Y]];
12448
+ Ce = "tree", Ye = [["id", "in", Y]];
12450
12449
  if (M(!1), re(!1), ve && Ce === "form") {
12451
12450
  Ve(Y[0]);
12452
12451
  const Se = x.find(
@@ -12456,7 +12455,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12456
12455
  } else {
12457
12456
  const Se = s.find((ge) => ge[1] === Ce);
12458
12457
  Me({
12459
- domain: qe,
12458
+ domain: Ye,
12460
12459
  context: o,
12461
12460
  model: r,
12462
12461
  views: s,
@@ -12568,7 +12567,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12568
12567
  currentModel: r,
12569
12568
  sorter: P,
12570
12569
  setSorter: U,
12571
- totalItems: G,
12570
+ totalItems: W,
12572
12571
  setTotalItems: E,
12573
12572
  selectedRowItems: _,
12574
12573
  setSelectedRowItems: I,
@@ -12594,8 +12593,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12594
12593
  }
12595
12594
  ) : null;
12596
12595
  }
12597
- const Ia = yt(qh);
12598
- const Yh = Ql(Xl), zh = (e) => {
12596
+ const xa = yt(qh);
12597
+ const Yh = Jl(Ql), zh = (e) => {
12599
12598
  const { children: t = [], onPositionItemsChanged: n } = e, r = pt.Children.map(
12600
12599
  t,
12601
12600
  (o) => {
@@ -12634,7 +12633,7 @@ function Jh(e) {
12634
12633
  domain: s = [],
12635
12634
  visible: a = !0,
12636
12635
  parentContext: l = {}
12637
- } = e, [c, u] = S(!1), [f, d] = S(!1), [p, h] = S(), [m, y] = S(), [g, v] = S(), [w, x] = S(1), [C, b] = S(0), A = J(_t), T = J([]), [R, O] = S(0), [_, I] = S([]), [F, k] = S(void 0), [V, j] = S(), [P, U] = S(), [G, E] = S(), [K, re] = S(!1), ee = J([]), M = (Q) => {
12636
+ } = e, [c, u] = S(!1), [f, d] = S(!1), [p, h] = S(), [m, y] = S(), [g, v] = S(), [w, x] = S(1), [C, b] = S(0), A = J(_t), T = J([]), [R, O] = S(0), [_, I] = S([]), [F, k] = S(void 0), [V, j] = S(), [P, U] = S(), [W, E] = S(), [K, re] = S(!1), ee = J([]), M = (Q) => {
12638
12637
  re(!0), x(Q), b((Q - 1) * A.current);
12639
12638
  }, pe = async () => {
12640
12639
  const Q = ee.current.length > 0 ? ee.current : s, te = ln(T.current, Q), { colors: ye } = At(m), { totalItems: Me, results: Le, attrsEvaluated: Ve } = await $.getHandler().searchForTree({
@@ -12735,7 +12734,7 @@ function Jh(e) {
12735
12734
  }
12736
12735
  )
12737
12736
  ] });
12738
- return G ? /* @__PURE__ */ i(ot, { className: "mt-10", message: G, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(We, { style: { padding: "2rem" } }) : q();
12737
+ return W ? /* @__PURE__ */ i(ot, { className: "mt-10", message: W, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(We, { style: { padding: "2rem" } }) : q();
12739
12738
  }
12740
12739
  const Qh = dn(Jh), Xh = (e) => {
12741
12740
  const { model: t } = e, [n, r] = S();
@@ -12829,11 +12828,11 @@ function Zh(e, t) {
12829
12828
  for (const j of F) {
12830
12829
  const { values: P } = j;
12831
12830
  if (P.action_id && P.action_id.length > 0) {
12832
- const U = parseInt(P.action_id[0], 10), G = fs({
12831
+ const U = parseInt(P.action_id[0], 10), W = us({
12833
12832
  actionId: U,
12834
12833
  rootContext: r
12835
12834
  }).then((E) => ({ ...j, actionData: E }));
12836
- k.push(G);
12835
+ k.push(W);
12837
12836
  }
12838
12837
  }
12839
12838
  return await Promise.all(k);
@@ -12842,31 +12841,31 @@ function Zh(e, t) {
12842
12841
  if (!m)
12843
12842
  return;
12844
12843
  const k = F.filter((U) => {
12845
- const G = a.find(
12844
+ const W = a.find(
12846
12845
  (K) => K.id === U.id
12847
12846
  );
12848
- if (!G)
12847
+ if (!W)
12849
12848
  return !1;
12850
- if (!G.position)
12849
+ if (!W.position)
12851
12850
  return !0;
12852
12851
  const E = {
12853
- ...JSON.parse(G.position.replace(/'/g, '"')),
12854
- id: G.id
12852
+ ...JSON.parse(W.position.replace(/'/g, '"')),
12853
+ id: W.id
12855
12854
  };
12856
12855
  return JSON.stringify(U) !== JSON.stringify(E);
12857
12856
  });
12858
12857
  if (k.length === 0)
12859
12858
  return;
12860
- const j = a.filter((U) => k.map((G) => G.id).includes(U.id)).map((U) => {
12861
- const G = {
12859
+ const j = a.filter((U) => k.map((W) => W.id).includes(U.id)).map((U) => {
12860
+ const W = {
12862
12861
  ...k.find((E) => E.id === U.id)
12863
12862
  };
12864
- return delete G.id, { ...U }, {
12863
+ return delete W.id, { ...U }, {
12865
12864
  ...U,
12866
12865
  operation: "pendingUpdate",
12867
12866
  values: {
12868
12867
  ...U.values,
12869
- position: JSON.stringify(G).replace(/"/g, "'")
12868
+ position: JSON.stringify(W).replace(/"/g, "'")
12870
12869
  }
12871
12870
  };
12872
12871
  }), P = {
@@ -12886,7 +12885,7 @@ function Zh(e, t) {
12886
12885
  }
12887
12886
  return c ? /* @__PURE__ */ i(wt, {}) : f ? /* @__PURE__ */ i(ot, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(zh, { onPositionItemsChanged: _, children: a.map((F, k) => {
12888
12887
  const { actionData: V, values: j } = F, { position: P, id: U } = j, {
12889
- actionId: G,
12888
+ actionId: W,
12890
12889
  actionType: E,
12891
12890
  key: K,
12892
12891
  title: re,
@@ -12905,7 +12904,7 @@ function Zh(e, t) {
12905
12904
  }
12906
12905
  let z = null;
12907
12906
  if ((L == null ? void 0 : L.type) === "graph") {
12908
- const ye = j.server_action === !0 && C ? ws : pn;
12907
+ const ye = j.server_action === !0 && C ? vs : pn;
12909
12908
  z = /* @__PURE__ */ i(
12910
12909
  ye,
12911
12910
  {
@@ -12959,9 +12958,9 @@ function Zh(e, t) {
12959
12958
  else if (L !== void 0) {
12960
12959
  const te = L && Array.isArray(L.id) ? { ...L, id: L.id[0] } : L;
12961
12960
  z = /* @__PURE__ */ i(
12962
- Ia,
12961
+ xa,
12963
12962
  {
12964
- action_id: G,
12963
+ action_id: W,
12965
12964
  action_type: E,
12966
12965
  tabKey: K,
12967
12966
  title: re,
@@ -13001,7 +13000,7 @@ function Zh(e, t) {
13001
13000
  };
13002
13001
  }
13003
13002
  return /* @__PURE__ */ i(
13004
- bs,
13003
+ ws,
13005
13004
  {
13006
13005
  id: U,
13007
13006
  title: re,
@@ -13033,7 +13032,7 @@ const eg = yt(Zh), tg = (e) => {
13033
13032
  if (n.domain) {
13034
13033
  const O = await $.getHandler().evalDomain({
13035
13034
  domain: n.domain,
13036
- values: Kt({
13035
+ values: Gt({
13037
13036
  fields: v == null ? void 0 : v.getFields(),
13038
13037
  values: v.getPlainValues()
13039
13038
  }),
@@ -13108,9 +13107,9 @@ const eg = yt(Zh), tg = (e) => {
13108
13107
  overflow: "auto"
13109
13108
  },
13110
13109
  children: /* @__PURE__ */ i(
13111
- ql,
13110
+ Kl,
13112
13111
  {
13113
- remarkPlugins: [Yl],
13112
+ remarkPlugins: [ql],
13114
13113
  className: "markdown-typography",
13115
13114
  children: t
13116
13115
  }
@@ -13131,7 +13130,7 @@ const eg = yt(Zh), tg = (e) => {
13131
13130
  return /* @__PURE__ */ i(Fe, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(lg, { id: n, readOnly: r, required: o }) });
13132
13131
  }, lg = (e) => {
13133
13132
  const { required: t, readOnly: n, ...r } = e;
13134
- return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(Ya, { disabled: n, ...r }) });
13133
+ return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(qa, { disabled: n, ...r }) });
13135
13134
  }, cg = (e) => {
13136
13135
  const { ooui: t } = e, { required: n } = t;
13137
13136
  return /* @__PURE__ */ i(Fe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(dg, { ...e }) });
@@ -13156,7 +13155,7 @@ const eg = yt(Zh), tg = (e) => {
13156
13155
  fontFamily: a,
13157
13156
  fontSize: l
13158
13157
  }
13159
- } = Ke.useToken(), c = {
13158
+ } = qe.useToken(), c = {
13160
13159
  padding: 0,
13161
13160
  listStyleType: "none",
13162
13161
  fontFamily: a,
@@ -13224,7 +13223,7 @@ const eg = yt(Zh), tg = (e) => {
13224
13223
  return n;
13225
13224
  }, [o, n]);
13226
13225
  return /* @__PURE__ */ i(
13227
- zl,
13226
+ Yl,
13228
13227
  {
13229
13228
  value: f,
13230
13229
  options: {
@@ -13237,10 +13236,10 @@ const eg = yt(Zh), tg = (e) => {
13237
13236
  }
13238
13237
  );
13239
13238
  }, { Meta: hg } = Wr, { Text: gg } = Vt, yg = ({ email: e, size: t = 40, theme: n = "" }) => {
13240
- const r = `https://www.gravatar.com/avatar/${Jl(
13239
+ const r = `https://www.gravatar.com/avatar/${zl(
13241
13240
  e
13242
13241
  )}?s=${t}&d=${n}`;
13243
- return /* @__PURE__ */ i(Vi, { src: r, size: t });
13242
+ return /* @__PURE__ */ i(_i, { src: r, size: t });
13244
13243
  };
13245
13244
  function vg({ text: e }) {
13246
13245
  const t = e.split(`
@@ -13282,7 +13281,7 @@ const wg = (e) => {
13282
13281
  };
13283
13282
  });
13284
13283
  return /* @__PURE__ */ i(
13285
- _i,
13284
+ Ri,
13286
13285
  {
13287
13286
  mode: "alternate",
13288
13287
  items: r,
@@ -13295,7 +13294,7 @@ const wg = (e) => {
13295
13294
  }
13296
13295
  }
13297
13296
  );
13298
- }, Sg = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(bg, { ooui: e.ooui }) }), Cg = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Cl, {}) }), xg = (e) => {
13297
+ }, Sg = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(bg, { ooui: e.ooui }) }), Cg = (e) => /* @__PURE__ */ i(Fe, { ...e, children: /* @__PURE__ */ i(Sl, {}) }), xg = (e) => {
13299
13298
  const { ooui: t } = e, { title: n, text: r, alertType: o, icon: s } = t;
13300
13299
  function a(c) {
13301
13300
  if (c) {
@@ -13318,7 +13317,7 @@ const wg = (e) => {
13318
13317
  }, Ig = (e) => {
13319
13318
  const { ooui: t } = e;
13320
13319
  return /* @__PURE__ */ i(We, { tip: t.label, size: "large", spinning: t.loading, children: /* @__PURE__ */ i(Kn, { container: t.container, responsiveBehaviour: !1 }) });
13321
- }, { Content: Tg } = Di, { Title: Og } = Vt;
13320
+ }, { Content: Tg } = Ei, { Title: Og } = Vt;
13322
13321
  function Ag() {
13323
13322
  const { t: e } = he();
13324
13323
  return /* @__PURE__ */ i(Tg, { className: "m-5 select-none", children: /* @__PURE__ */ i(Og, { level: 5, children: e("welcome") }) });
@@ -13365,7 +13364,7 @@ function Fg(e, t) {
13365
13364
  at("Action type not supported");
13366
13365
  return;
13367
13366
  }
13368
- const [I, F] = C.split(","), k = parseInt(F), V = Bt({
13367
+ const [I, F] = C.split(","), k = parseInt(F), V = jt({
13369
13368
  context: _.context,
13370
13369
  values: a,
13371
13370
  fields: {}
@@ -13376,7 +13375,7 @@ function Fg(e, t) {
13376
13375
  }) : [], {
13377
13376
  res_model: P,
13378
13377
  views: U,
13379
- name: G,
13378
+ name: W,
13380
13379
  target: E,
13381
13380
  view_type: K,
13382
13381
  limit: re
@@ -13412,7 +13411,7 @@ function Fg(e, t) {
13412
13411
  context: { ...l, ...V },
13413
13412
  model: P,
13414
13413
  views: M,
13415
- title: G,
13414
+ title: W,
13416
13415
  target: E,
13417
13416
  initialView: pe,
13418
13417
  action_type: I,
@@ -13457,13 +13456,13 @@ function Fg(e, t) {
13457
13456
  target: k,
13458
13457
  string: V,
13459
13458
  limit: j
13460
- } = C, [P, U] = F[0], G = { id: P, type: U }, E = Bt({
13459
+ } = C, [P, U] = F[0], W = { id: P, type: U }, E = jt({
13461
13460
  context: _,
13462
13461
  values: { ...A, ...a },
13463
13462
  fields: b
13464
13463
  }), K = I ? await $.getHandler().evalDomain({
13465
13464
  domain: I,
13466
- values: Kt({
13465
+ values: Gt({
13467
13466
  fields: b,
13468
13467
  values: { ...A, ...a }
13469
13468
  }),
@@ -13477,7 +13476,7 @@ function Fg(e, t) {
13477
13476
  context: { ...l, ...E },
13478
13477
  domain: K,
13479
13478
  title: V,
13480
- initialView: G,
13479
+ initialView: W,
13481
13480
  action_id: T,
13482
13481
  action_type: R,
13483
13482
  limit: j
@@ -13495,7 +13494,7 @@ function Fg(e, t) {
13495
13494
  } = C, F = `${A},${b}`, k = await $.getHandler().getActionData({
13496
13495
  action: F,
13497
13496
  context: l
13498
- }), V = Bt({
13497
+ }), V = jt({
13499
13498
  context: k.context,
13500
13499
  values: { ...a, ..._ },
13501
13500
  fields: {}
@@ -13509,7 +13508,7 @@ function Fg(e, t) {
13509
13508
  const {
13510
13509
  res_model: P,
13511
13510
  views: U,
13512
- name: G,
13511
+ name: W,
13513
13512
  target: E,
13514
13513
  view_type: K,
13515
13514
  limit: re
@@ -13542,7 +13541,7 @@ function Fg(e, t) {
13542
13541
  context: { ...l, ...V },
13543
13542
  model: P,
13544
13543
  views: M,
13545
- title: G,
13544
+ title: W,
13546
13545
  target: E,
13547
13546
  initialView: L,
13548
13547
  action_id: b,
@@ -13586,7 +13585,7 @@ function Fg(e, t) {
13586
13585
  treeExpandable: P = !1,
13587
13586
  limit: U
13588
13587
  }) {
13589
- const G = oo();
13588
+ const W = oo();
13590
13589
  if (O !== "current") {
13591
13590
  const E = await $.getHandler().getView({
13592
13591
  model: A,
@@ -13615,11 +13614,11 @@ function Fg(e, t) {
13615
13614
  type: F
13616
13615
  },
13617
13616
  content: /* @__PURE__ */ i(
13618
- Ia,
13617
+ xa,
13619
13618
  {
13620
13619
  action_id: I,
13621
13620
  action_type: F,
13622
- tabKey: G,
13621
+ tabKey: W,
13623
13622
  title: R,
13624
13623
  views: T,
13625
13624
  model: A,
@@ -13634,7 +13633,7 @@ function Fg(e, t) {
13634
13633
  limit: U
13635
13634
  }
13636
13635
  ),
13637
- key: G
13636
+ key: W
13638
13637
  });
13639
13638
  }
13640
13639
  }
@@ -13665,7 +13664,7 @@ function Fg(e, t) {
13665
13664
  }
13666
13665
  );
13667
13666
  }
13668
- const Ry = yt(Fg), { useToken: Rg } = Ke;
13667
+ const Ry = yt(Fg), { useToken: Rg } = qe;
13669
13668
  function _g(e) {
13670
13669
  const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = Rg(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
13671
13670
  return /* @__PURE__ */ D(
@@ -13768,7 +13767,7 @@ function Vy() {
13768
13767
  ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(Eg, { tab: r }, r.key))) || null;
13769
13768
  return /* @__PURE__ */ i(se, { children: n });
13770
13769
  }
13771
- const { useToken: Dg } = Ke, Ey = (e) => {
13770
+ const { useToken: Dg } = qe, Ey = (e) => {
13772
13771
  const {
13773
13772
  onRetrieveShortcuts: t,
13774
13773
  onCheckIsFavourite: n,
@@ -13870,7 +13869,7 @@ const { useToken: Dg } = Ke, Ey = (e) => {
13870
13869
  y
13871
13870
  ]);
13872
13871
  return /* @__PURE__ */ i(
13873
- xl,
13872
+ Cl,
13874
13873
  {
13875
13874
  ref: p,
13876
13875
  isFavourite: a,
@@ -13880,7 +13879,7 @@ const { useToken: Dg } = Ke, Ey = (e) => {
13880
13879
  header: /* @__PURE__ */ D("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
13881
13880
  /* @__PURE__ */ i("div", { style: { paddingLeft: 15, color: "#ccc" }, children: f == null ? void 0 : f("favorites").toUpperCase() }),
13882
13881
  /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ i(Ft, { title: f == null ? void 0 : f("edit_favorites"), children: /* @__PURE__ */ i(
13883
- Yi,
13882
+ qi,
13884
13883
  {
13885
13884
  style: { color: d.colorPrimary, cursor: "pointer" },
13886
13885
  onClick: R
@@ -13896,17 +13895,17 @@ const { useToken: Dg } = Ke, Ey = (e) => {
13896
13895
  };
13897
13896
  export {
13898
13897
  Fh as ActionBar,
13899
- Ia as ActionView,
13898
+ xa as ActionView,
13900
13899
  xg as Alert,
13901
13900
  fg as ArrowStepsField,
13902
13901
  xh as Binary,
13903
- xc as Boolean,
13902
+ Cc as Boolean,
13904
13903
  so as Button,
13905
- ac as ButtonGroup,
13906
- rs as Char,
13904
+ sc as ButtonGroup,
13905
+ ns as Char,
13907
13906
  mg as CodeEditor,
13908
13907
  Sg as CommentsTimelineField,
13909
- us as ConfigContext,
13908
+ ds as ConfigContext,
13910
13909
  td as ConfigContextProvider,
13911
13910
  $ as ConnectionProvider,
13912
13911
  Zd as ContentRootProvider,
@@ -13920,15 +13919,15 @@ export {
13920
13919
  hn as ErpFeatureKeys,
13921
13920
  hh as ExportModal,
13922
13921
  Ey as FavouriteButton,
13923
- Es as Float,
13922
+ Vs as Float,
13924
13923
  Zp as FloatTime,
13925
13924
  vn as Form,
13926
13925
  wn as FormModal,
13927
- bs as GraphCard,
13926
+ ws as GraphCard,
13928
13927
  id as GraphIndicator,
13929
- ya as Group,
13928
+ ga as Group,
13930
13929
  Cg as HTMLPreview,
13931
- Ac as Image,
13930
+ Oc as Image,
13932
13931
  qn as Integer,
13933
13932
  or as Label,
13934
13933
  Op as Many2one,
@@ -13942,8 +13941,8 @@ export {
13942
13941
  Ry as RootView,
13943
13942
  So as SearchFilter,
13944
13943
  Co as SearchModal,
13945
- da as SearchTree,
13946
- os as Selection,
13944
+ ca as SearchTree,
13945
+ rs as Selection,
13947
13946
  sh as Separator,
13948
13947
  Ig as Spinner,
13949
13948
  cg as Steps,