@gisce/react-ooui 2.0.0-alpha.47 → 2.0.0-alpha.49

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.
@@ -2,51 +2,56 @@ var qo = Object.defineProperty;
2
2
  var zo = (e, t, r) => t in e ? qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var ir = (e, t, r) => (zo(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { jsxs as A, jsx as n, Fragment as Z } from "react/jsx-runtime";
5
- import Qe, { useContext as H, useState as w, useEffect as me, useRef as de, useCallback as De, forwardRef as wt, useImperativeHandle as bt } from "react";
6
- import { Tooltip as ht, theme as Pe, Typography as Yt, Form as lt, Row as be, Col as ae, Modal as Je, Button as Oe, Dropdown as Gt, Menu as He, Spin as Ae, Divider as cn, Space as je, Input as ot, Select as Ct, Checkbox as Ht, Alert as tt, Timeline as Rn, Statistic as Jo, Card as Nn, Tag as _r, message as xn, DatePicker as Pn, TimePicker as Vr, InputNumber as Ar, Progress as Xo, Avatar as Dr, Badge as Zo, Pagination as Qo, Tabs as kr, Popover as ei, Radio as sr, Switch as ti, Steps as ar, Layout as ni } from "antd";
7
- import { Label as Dt, Field as _n, Tree as Er, Reference as ri, Selection as Ln, Many2one as Mr, Boolean as oi, Container as ii, parseContext as vt, Form as Nr, Integer as Vn, SearchFieldTypes as mt, SearchFilter as si, parseContextFields as Sn, parseDomainFields as lr, transformDomainForChildWidget as Pr, graphProcessor as Lr, parseGraph as Bn, graphFieldUtils as ai } from "@gisce/ooui";
5
+ import et, { useContext as H, useState as w, useEffect as me, useRef as de, useCallback as De, forwardRef as wt, useImperativeHandle as bt, Fragment as Jo } from "react";
6
+ import { Tooltip as ht, theme as Pe, Typography as Yt, Form as lt, Row as be, Col as ae, Modal as Je, Button as Oe, Dropdown as Gt, Menu as He, Spin as Ae, Divider as cn, Space as je, Input as it, Select as Ct, Checkbox as Ht, Alert as tt, Timeline as Rn, Statistic as Xo, Card as Nn, Tag as _r, message as xn, DatePicker as Pn, TimePicker as Vr, InputNumber as Ar, Progress as Zo, Avatar as Dr, Badge as Qo, Pagination as ei, Tabs as kr, Popover as ti, Radio as sr, Switch as ni, Steps as ar, Layout as ri } from "antd";
7
+ import { Label as Dt, Field as _n, Tree as Er, Reference as oi, Selection as Ln, Many2one as Mr, Boolean as ii, Container as si, parseContext as vt, Form as Nr, Integer as Vn, SearchFieldTypes as mt, SearchFilter as ai, parseContextFields as Sn, parseDomainFields as lr, transformDomainForChildWidget as Pr, graphProcessor as Lr, parseGraph as Bn, graphFieldUtils as li } from "@gisce/ooui";
8
8
  import * as cr from "@ant-design/icons";
9
- import Br, { QuestionCircleOutlined as $r, ExclamationCircleOutlined as pt, LoadingOutlined as st, DownOutlined as kt, WarningOutlined as Hr, CloseOutlined as Ut, CheckOutlined as Et, TranslationOutlined as Kr, FolderOpenOutlined as $n, DownloadOutlined as Hn, ClearOutlined as Kn, StarFilled as Wr, StarOutlined as jr, UpOutlined as li, SearchOutlined as Wn, RightCircleOutlined as ci, ThunderboltOutlined as jn, PrinterOutlined as Yn, EnterOutlined as Yr, PlusSquareOutlined as di, MinusSquareOutlined as ui, FileAddOutlined as dn, AlignLeftOutlined as fi, ApiOutlined as mi, DeleteOutlined as Gn, LeftOutlined as Gr, RightOutlined as Ur, EyeOutlined as hi, FormOutlined as Kt, TableOutlined as Un, AreaChartOutlined as pi, CalendarOutlined as gi, LinkOutlined as qr, SaveOutlined as yi, CopyOutlined as qn, InfoCircleOutlined as zr, ReloadOutlined as un, EditOutlined as Jr, FilterOutlined as Xr, CloseCircleFilled as vi, BorderOuterOutlined as wi, SettingOutlined as bi, ExportOutlined as Ci } from "@ant-design/icons";
9
+ import Br, { QuestionCircleOutlined as $r, ExclamationCircleOutlined as pt, LoadingOutlined as at, DownOutlined as kt, WarningOutlined as Hr, CloseOutlined as Ut, CheckOutlined as Et, TranslationOutlined as Kr, FolderOpenOutlined as $n, DownloadOutlined as Hn, ClearOutlined as Kn, StarFilled as Wr, StarOutlined as jr, UpOutlined as ci, SearchOutlined as Wn, RightCircleOutlined as di, ThunderboltOutlined as jn, PrinterOutlined as Yn, EnterOutlined as Yr, PlusSquareOutlined as ui, MinusSquareOutlined as fi, FileAddOutlined as dn, AlignLeftOutlined as mi, ApiOutlined as hi, DeleteOutlined as Gn, LeftOutlined as Gr, RightOutlined as Ur, EyeOutlined as pi, FormOutlined as Kt, TableOutlined as Un, AreaChartOutlined as gi, CalendarOutlined as yi, LinkOutlined as qr, SaveOutlined as vi, CopyOutlined as qn, InfoCircleOutlined as zr, ReloadOutlined as un, EditOutlined as Jr, FilterOutlined as Xr, CloseCircleFilled as wi, BorderOuterOutlined as bi, SettingOutlined as Ci, ExportOutlined as xi } from "@ant-design/icons";
10
10
  import { Interweave as zn } from "interweave";
11
11
  import * as dr from "@tabler/icons-react";
12
- import xi from "antd/lib/input/TextArea";
12
+ import Si from "antd/lib/input/TextArea";
13
13
  import Mt from "styled-components";
14
14
  import Jn from "react-measure";
15
- import Si from "lodash/debounce";
15
+ import Ti from "lodash/debounce";
16
16
  import An from "antd/lib/typography/Title";
17
- import { Line as Ti, Column as Ii, Pie as Fi } from "@ant-design/plots";
18
- import at from "dayjs";
17
+ import { Line as Ii, Column as Fi, Pie as Oi } from "@ant-design/plots";
18
+ import nt from "dayjs";
19
19
  import xt from "use-deep-compare-effect";
20
- import { Table as Oi } from "@gisce/react-formiga-table";
21
- import { fileTypeFromBuffer as Ri } from "file-type-buffer-browser";
22
- import { isPresetStatusColor as _i, isPresetColor as Vi } from "antd/lib/_util/colors";
23
- import Ai from "dayjs/plugin/weekday";
24
- import Di from "dayjs/plugin/localeData";
25
- import ki from "antd/es/typography/Link";
26
- import { GridUi as Ei } from "@gisce/fiber-diagram";
27
- import { FieldSet as Mi, ExportModal as Ni } from "@gisce/react-formiga-components";
28
- import Pi from "dayjs/plugin/customParseFormat";
29
- import Li from "validator/lib/isURL";
30
- import Bi from "validator/lib/isEmail";
31
- import { useHotkeys as $i } from "react-hotkeys-hook";
32
- import Hi from "react-markdown";
33
- import Ki from "remark-gfm";
34
- import Wi from "@monaco-editor/react";
35
- import ji from "dayjs/plugin/relativeTime";
36
- import Yi from "md5";
37
- import { WidthProvider as Gi, Responsive as Ui } from "react-grid-layout";
20
+ import { Table as Ri } from "@gisce/react-formiga-table";
21
+ import { fileTypeFromBuffer as _i } from "file-type-buffer-browser";
22
+ import { isPresetStatusColor as Vi, isPresetColor as Ai } from "antd/lib/_util/colors";
23
+ import Di from "dayjs/plugin/advancedFormat";
24
+ import ki from "dayjs/plugin/customParseFormat";
25
+ import Ei from "dayjs/plugin/isoWeek";
26
+ import Mi from "dayjs/plugin/timezone";
27
+ import Ni from "dayjs/plugin/duration";
28
+ import Pi from "dayjs/plugin/relativeTime";
29
+ import Li from "dayjs/plugin/weekday";
30
+ import Bi from "dayjs/plugin/localeData";
31
+ import $i from "antd/es/typography/Link";
32
+ import { GridUi as Hi } from "@gisce/fiber-diagram";
33
+ import { FieldSet as Ki, ExportModal as Wi } from "@gisce/react-formiga-components";
34
+ import ji from "validator/lib/isURL";
35
+ import Yi from "validator/lib/isEmail";
36
+ import { useHotkeys as Gi } from "react-hotkeys-hook";
37
+ import Ui from "react-markdown";
38
+ import qi from "remark-gfm";
39
+ import zi from "@monaco-editor/react";
40
+ import Ji from "md5";
41
+ import { WidthProvider as Xi, Responsive as Zi } from "react-grid-layout";
38
42
  import "react-grid-layout/css/styles.css";
43
+ import Qi from "antd/es/alert/ErrorBoundary";
39
44
  import { v4 as Zr } from "uuid";
40
- const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
45
+ const { Text: es, Title: ts } = Yt, { useToken: ns } = Pe, rs = {
41
46
  left: "justify-start",
42
47
  center: "justify-center",
43
48
  right: "justify-end"
44
49
  }, fn = (e) => {
45
- const { ooui: t, align: r, responsiveBehaviour: i } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: d } = t, c = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), { token: p } = Ji(), h = l === void 0 ? qi : zi;
50
+ const { ooui: t, align: r, responsiveBehaviour: i } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: d } = t, c = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), { token: p } = ns(), h = l === void 0 ? es : ts;
46
51
  return /* @__PURE__ */ A(
47
52
  "div",
48
53
  {
49
- className: `flex flex-row items-center pb-1 pt-1 ${Xi[m]}`,
54
+ className: `flex flex-row items-center pb-1 pt-1 ${rs[m]}`,
50
55
  children: [
51
56
  s && /* @__PURE__ */ n(ht, { title: s, children: /* @__PURE__ */ n(
52
57
  $r,
@@ -61,7 +66,7 @@ const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
61
66
  ]
62
67
  }
63
68
  );
64
- }, Zi = {
69
+ }, os = {
65
70
  true: "Sí",
66
71
  false: "No",
67
72
  simple_search: "Búsqueda simple",
@@ -152,7 +157,7 @@ const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
152
157
  recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta pàgina.",
153
158
  selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
154
159
  allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
155
- }, Qi = {
160
+ }, is = {
156
161
  true: "Yes",
157
162
  false: "No",
158
163
  simple_search: "Simple search",
@@ -243,7 +248,7 @@ const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
243
248
  recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta pàgina.",
244
249
  selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
245
250
  allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
246
- }, es = {
251
+ }, ss = {
247
252
  true: "Sí",
248
253
  false: "No",
249
254
  simple_search: "Búsqueda simple",
@@ -334,13 +339,13 @@ const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
334
339
  recordsSelected: "Hay {numberOfSelectedRows} registros seleccionados en ésta página.",
335
340
  selectAllRecords: "Seleccionar todos los {totalRecords} registros.",
336
341
  allRecordsSelected: "Hay {totalRecords} registros seleccionados."
337
- }, ts = {
338
- ca_ES: Zi,
339
- en_US: Qi,
340
- es_ES: es
341
- }, he = Qe.createContext(
342
+ }, as = {
343
+ ca_ES: os,
344
+ en_US: is,
345
+ es_ES: ss
346
+ }, he = et.createContext(
342
347
  null
343
- ), ns = (e) => {
348
+ ), ls = (e) => {
344
349
  const { children: t, lang: r } = e;
345
350
  function i(o) {
346
351
  return Fe(o, r);
@@ -357,7 +362,7 @@ const { Text: qi, Title: zi } = Yt, { useToken: Ji } = Pe, Xi = {
357
362
  );
358
363
  }, Fe = (e, t) => {
359
364
  var i;
360
- return ((i = ts[t]) == null ? void 0 : i[e]) || e;
365
+ return ((i = as[t]) == null ? void 0 : i[e]) || e;
361
366
  };
362
367
  function ge({
363
368
  ooui: e,
@@ -410,12 +415,12 @@ function ge({
410
415
  h()
411
416
  ] }))();
412
417
  }
413
- const { confirm: rs } = Je, qt = ({
418
+ const { confirm: cs } = Je, qt = ({
414
419
  onOk: e,
415
420
  confirmMessage: t,
416
421
  lang: r
417
422
  }) => {
418
- rs({
423
+ cs({
419
424
  title: Fe("confirmation", r),
420
425
  icon: /* @__PURE__ */ n(pt, {}),
421
426
  centered: !0,
@@ -424,7 +429,7 @@ const { confirm: rs } = Je, qt = ({
424
429
  cancelText: Fe("cancel", r),
425
430
  onOk: e
426
431
  });
427
- }, Ne = Qe.createContext(null), os = (e) => {
432
+ }, Ne = et.createContext(null), ds = (e) => {
428
433
  const {
429
434
  children: t,
430
435
  activeId: r,
@@ -557,7 +562,7 @@ const { confirm: rs } = Je, qt = ({
557
562
  STOCK_UNINDENT: "AlignLeft",
558
563
  STOCK_PREFERENCES: "Setting"
559
564
  }, ct = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), ur.hasOwnProperty(e) ? fr(ur[e], t) : fr(e, t));
560
- function is(e) {
565
+ function us(e) {
561
566
  return `${e.split("-").map(
562
567
  (t) => t.replace(
563
568
  /\w\S*/g,
@@ -567,22 +572,22 @@ function is(e) {
567
572
  }
568
573
  function fr(e, t) {
569
574
  let r = e.charAt(0).toUpperCase() + e.slice(1);
570
- r.indexOf("-") !== -1 && (r = is(r));
575
+ r.indexOf("-") !== -1 && (r = us(r));
571
576
  const i = `${r}Outlined`;
572
577
  if (cr[i])
573
- return () => Qe.createElement(cr[i], {
578
+ return () => et.createElement(cr[i], {
574
579
  ...t
575
580
  });
576
581
  const o = `Icon${r}`;
577
582
  if (dr[o]) {
578
583
  const s = () => {
579
584
  var l;
580
- return Qe.createElement(dr[o], {
585
+ return et.createElement(dr[o], {
581
586
  fill: "transparent",
582
587
  size: ((l = t == null ? void 0 : t.style) == null ? void 0 : l.fontSize) || 17
583
588
  });
584
589
  };
585
- return () => Qe.createElement(Br, {
590
+ return () => et.createElement(Br, {
586
591
  component: s,
587
592
  ...t
588
593
  });
@@ -617,7 +622,7 @@ const Qr = (e) => {
617
622
  }
618
623
  function v() {
619
624
  if (m)
620
- return /* @__PURE__ */ n(st, {});
625
+ return /* @__PURE__ */ n(at, {});
621
626
  if (l) {
622
627
  const T = ct(l);
623
628
  return T && /* @__PURE__ */ n(T, {});
@@ -636,7 +641,7 @@ const Qr = (e) => {
636
641
  children: i
637
642
  }
638
643
  ) });
639
- }, ss = (e) => {
644
+ }, fs = (e) => {
640
645
  const { ooui: t } = e, { defaultButton: r, secondaryButtons: i } = t, {
641
646
  id: o,
642
647
  caption: s,
@@ -651,7 +656,7 @@ const Qr = (e) => {
651
656
  } = r || {}, h = H(Ne), { executeButtonAction: g } = h || {}, [y, v] = w(!1), { lang: T } = H(he);
652
657
  function F() {
653
658
  if (y)
654
- return /* @__PURE__ */ n(st, {});
659
+ return /* @__PURE__ */ n(at, {});
655
660
  if (u) {
656
661
  const R = ct(u);
657
662
  return R && /* @__PURE__ */ n(R, {});
@@ -684,7 +689,7 @@ const Qr = (e) => {
684
689
  icon: /* @__PURE__ */ n(kt, {}),
685
690
  type: c ? "primary" : void 0,
686
691
  overlay: /* @__PURE__ */ n(
687
- as,
692
+ ms,
688
693
  {
689
694
  ooui: i,
690
695
  executeButtonAction: g,
@@ -699,7 +704,7 @@ const Qr = (e) => {
699
704
  ) });
700
705
  if (r)
701
706
  return /* @__PURE__ */ n(Qr, { ooui: r });
702
- }, as = (e) => {
707
+ }, ms = (e) => {
703
708
  const { ooui: t, executeButtonAction: r, lang: i } = e;
704
709
  if (!t)
705
710
  return null;
@@ -733,7 +738,7 @@ const Qr = (e) => {
733
738
  }
734
739
  function F() {
735
740
  if (g)
736
- return /* @__PURE__ */ n(st, {});
741
+ return /* @__PURE__ */ n(at, {});
737
742
  if (f) {
738
743
  const b = ct(f);
739
744
  return b && /* @__PURE__ */ n(b, {});
@@ -751,7 +756,7 @@ const Qr = (e) => {
751
756
  );
752
757
  });
753
758
  return /* @__PURE__ */ n(He, { children: o });
754
- }, ls = 0.7;
759
+ }, hs = 0.7;
755
760
  function mr() {
756
761
  const { innerWidth: e, innerHeight: t } = window;
757
762
  return {
@@ -769,7 +774,7 @@ function mn() {
769
774
  }
770
775
  return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
771
776
  }, []), {
772
- modalWidth: e.width * ls,
777
+ modalWidth: e.width * hs,
773
778
  modalHeight: e.height,
774
779
  width: e.width,
775
780
  height: e.height
@@ -805,9 +810,9 @@ const eo = (e) => {
805
810
  message: t,
806
811
  title: i
807
812
  };
808
- }, { error: cs, warning: ds } = Je, ze = (e) => {
813
+ }, { error: ps, warning: gs } = Je, ze = (e) => {
809
814
  const { message: t, type: r, title: i } = eo(e);
810
- (r === "error" ? cs : ds)({
815
+ (r === "error" ? ps : gs)({
811
816
  title: i,
812
817
  icon: r === "error" ? /* @__PURE__ */ n(pt, {}) : /* @__PURE__ */ n(Hr, {}),
813
818
  centered: !0,
@@ -856,7 +861,7 @@ const eo = (e) => {
856
861
  return u.map((x, S) => /* @__PURE__ */ A(be, { style: { paddingBottom: 20 }, children: [
857
862
  /* @__PURE__ */ n(ae, { flex: "8rem", style: { paddingRight: 10 }, children: x.name }),
858
863
  /* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
859
- xi,
864
+ Si,
860
865
  {
861
866
  rows: 4,
862
867
  value: g[x.code] || "",
@@ -906,7 +911,7 @@ const eo = (e) => {
906
911
  /* @__PURE__ */ n(
907
912
  Oe,
908
913
  {
909
- icon: p ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Et, {}),
914
+ icon: p ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(Et, {}),
910
915
  disabled: p,
911
916
  onClick: R,
912
917
  style: { marginLeft: 15 },
@@ -937,16 +942,16 @@ function Ze(e) {
937
942
  const { tooltip: t, ...r } = e;
938
943
  return /* @__PURE__ */ n(ht, { title: t, children: /* @__PURE__ */ n(Oe, { ...r }) });
939
944
  }
940
- const { info: us } = Je, ft = (e) => {
941
- us({
945
+ const { info: ys } = Je, ft = (e) => {
946
+ ys({
942
947
  title: "",
943
948
  centered: !0,
944
949
  content: e
945
950
  });
946
- }, { useToken: fs } = Pe, no = (e) => {
947
- const { ooui: t, isSearchField: r = !1 } = e, { id: i, readOnly: o, isPassword: s, required: a, translatable: l } = t, { token: d } = fs(), u = a && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, c = H(Ne), { elementHasLostFocus: f } = c || {};
951
+ }, { useToken: vs } = Pe, no = (e) => {
952
+ const { ooui: t, isSearchField: r = !1 } = e, { id: i, readOnly: o, isPassword: s, required: a, translatable: l } = t, { token: d } = vs(), u = a && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, c = H(Ne), { elementHasLostFocus: f } = c || {};
948
953
  let m = /* @__PURE__ */ n(
949
- ot,
954
+ it,
950
955
  {
951
956
  disabled: o || l && !r,
952
957
  id: i,
@@ -956,14 +961,14 @@ const { info: us } = Je, ft = (e) => {
956
961
  }
957
962
  );
958
963
  return s && (m = /* @__PURE__ */ n(
959
- ot.Password,
964
+ it.Password,
960
965
  {
961
966
  disabled: o,
962
967
  id: i,
963
968
  onBlur: f
964
969
  }
965
- )), l && !o && !r && (m = /* @__PURE__ */ n(ms, { field: i, requiredStyle: u })), /* @__PURE__ */ n(ge, { required: a, ...e, children: m });
966
- }, ms = ({
970
+ )), l && !o && !r && (m = /* @__PURE__ */ n(ws, { field: i, requiredStyle: u })), /* @__PURE__ */ n(ge, { required: a, ...e, children: m });
971
+ }, ws = ({
967
972
  value: e,
968
973
  field: t,
969
974
  requiredStyle: r,
@@ -988,7 +993,7 @@ const { info: us } = Je, ft = (e) => {
988
993
  c || f(!0);
989
994
  },
990
995
  children: /* @__PURE__ */ n(
991
- ot,
996
+ it,
992
997
  {
993
998
  value: e,
994
999
  disabled: !0,
@@ -1019,7 +1024,7 @@ const { info: us } = Je, ft = (e) => {
1019
1024
  )
1020
1025
  ] }) : /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ A(be, { gutter: 8, wrap: !1, children: [
1021
1026
  /* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
1022
- ot,
1027
+ it,
1023
1028
  {
1024
1029
  value: e,
1025
1030
  id: t,
@@ -1042,16 +1047,16 @@ const { info: us } = Je, ft = (e) => {
1042
1047
  }
1043
1048
  ) })
1044
1049
  ] }) });
1045
- }, { defaultAlgorithm: hs, defaultSeed: ps } = Pe, gs = hs(ps), { Option: ys } = Ct, ro = (e) => {
1050
+ }, { defaultAlgorithm: bs, defaultSeed: Cs } = Pe, xs = bs(Cs), { Option: Ss } = Ct, ro = (e) => {
1046
1051
  const { ooui: t } = e, { required: r } = t;
1047
1052
  return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(oo, { ...e }) });
1048
1053
  }, oo = (e) => {
1049
1054
  const { ooui: t, onChange: r, value: i } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), d = l && l.length && l.map((c) => {
1050
1055
  const [f, m] = c;
1051
- return /* @__PURE__ */ n(ys, { value: f, children: m }, f);
1056
+ return /* @__PURE__ */ n(Ss, { value: f, children: m }, f);
1052
1057
  });
1053
1058
  return /* @__PURE__ */ n(
1054
- a && !s ? vs : Ct,
1059
+ a && !s ? Ts : Ct,
1055
1060
  {
1056
1061
  disabled: s,
1057
1062
  onChange: r,
@@ -1062,17 +1067,17 @@ const { info: us } = Je, ft = (e) => {
1062
1067
  children: d
1063
1068
  }
1064
1069
  );
1065
- }, vs = Mt(Ct)`
1070
+ }, Ts = Mt(Ct)`
1066
1071
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
1067
- background-color: ${gs.colorPrimaryBg};
1072
+ background-color: ${xs.colorPrimaryBg};
1068
1073
  }
1069
- `, { defaultAlgorithm: ws, defaultSeed: bs } = Pe, hr = ws(bs), Cs = (e) => {
1074
+ `, { defaultAlgorithm: Is, defaultSeed: Fs } = Pe, hr = Is(Fs), Os = (e) => {
1070
1075
  const { ooui: t } = e, { id: r, readOnly: i, required: o } = t;
1071
- return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(xs, { id: r, readOnly: i, required: o }) });
1072
- }, xs = (e) => {
1076
+ return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(Rs, { id: r, readOnly: i, required: o }) });
1077
+ }, Rs = (e) => {
1073
1078
  const { required: t, readOnly: r, ...i } = e;
1074
- return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(t && !r ? Ss : Ht, { disabled: r, ...i }) });
1075
- }, Ss = Mt(Ht)`
1079
+ return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(t && !r ? _s : Ht, { disabled: r, ...i }) });
1080
+ }, _s = Mt(Ht)`
1076
1081
  .ant-checkbox-inner {
1077
1082
  background-color: ${hr.colorPrimaryBg};
1078
1083
  }
@@ -1081,12 +1086,12 @@ const { info: us } = Je, ft = (e) => {
1081
1086
  background-color: ${hr.colorPrimary};
1082
1087
  }
1083
1088
  `;
1084
- function Ts(e) {
1089
+ function Vs(e) {
1085
1090
  const r = Buffer.from(e, "base64").length / 1e3;
1086
1091
  return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
1087
1092
  }
1088
1093
  async function At(e) {
1089
- const t = await Ri(
1094
+ const t = await _i(
1090
1095
  Buffer.from(e, "base64")
1091
1096
  );
1092
1097
  return t || {
@@ -1105,10 +1110,10 @@ function hn(e, t) {
1105
1110
  const o = new Uint8Array(i), s = new Blob([o], { type: t + ";base64" }), a = URL.createObjectURL(s);
1106
1111
  window.open(a);
1107
1112
  }
1108
- const Is = (e) => {
1113
+ const As = (e) => {
1109
1114
  const { ooui: t } = e, { required: r, id: i } = t, o = ct(i);
1110
- return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(Fs, { ooui: t }) });
1111
- }, Fs = (e) => {
1115
+ return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(Ds, { ooui: t }) });
1116
+ }, Ds = (e) => {
1112
1117
  const { ooui: t, value: r, onChange: i } = e, { readOnly: o } = t, s = de(null), { t: a } = H(he), l = (f) => {
1113
1118
  i == null || i(f);
1114
1119
  };
@@ -1177,10 +1182,10 @@ const Is = (e) => {
1177
1182
  )
1178
1183
  ] }) })
1179
1184
  ] });
1180
- }, Os = (e) => {
1185
+ }, ks = (e) => {
1181
1186
  const { ooui: t } = e, { required: r } = t;
1182
- return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(Rs, {}) });
1183
- }, Rs = (e) => {
1187
+ return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(Es, {}) });
1188
+ }, Es = (e) => {
1184
1189
  const { value: t, onChange: r } = e;
1185
1190
  if (!t)
1186
1191
  return null;
@@ -1190,7 +1195,7 @@ const Is = (e) => {
1190
1195
  return console.log(i), null;
1191
1196
  }
1192
1197
  return /* @__PURE__ */ n(
1193
- Ei,
1198
+ Hi,
1194
1199
  {
1195
1200
  inputJson: t,
1196
1201
  onChange: (i) => {
@@ -1201,7 +1206,7 @@ const Is = (e) => {
1201
1206
  }, Rt = (e) => {
1202
1207
  const t = e.arch, r = e.fields, i = new Er(r);
1203
1208
  return i.parse(t), i;
1204
- }, _s = (e, t, r) => e.columns.map((o) => {
1209
+ }, Ms = (e, t, r) => e.columns.map((o) => {
1205
1210
  const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
1206
1211
  let d;
1207
1212
  return l && (d = (u) => l(u, a, o, r)), {
@@ -1222,11 +1227,11 @@ const Is = (e) => {
1222
1227
  o[s] = i[s];
1223
1228
  else {
1224
1229
  const a = e.findById(s);
1225
- a instanceof ri || a instanceof Ln ? o[s] = i[s] : a instanceof Mr ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
1230
+ a instanceof oi || a instanceof Ln ? o[s] = i[s] : a instanceof Mr ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
1226
1231
  model: a.relation,
1227
1232
  id: i[s][0],
1228
1233
  value: i[s][1]
1229
- } : a instanceof oi ? o[s] = i[s] : a ? o[s] = i[s] === !1 ? "" : i[s] : o[s] = i[s];
1234
+ } : a instanceof ii ? o[s] = i[s] : a ? o[s] = i[s] === !1 ? "" : i[s] : o[s] = i[s];
1230
1235
  }
1231
1236
  }), o;
1232
1237
  });
@@ -1258,7 +1263,7 @@ function _t({
1258
1263
  };
1259
1264
  return e.sort(l);
1260
1265
  }
1261
- function Vs(e) {
1266
+ function Ns(e) {
1262
1267
  for (const t in e)
1263
1268
  if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
1264
1269
  return !0;
@@ -1316,10 +1321,10 @@ const Xn = async (e) => {
1316
1321
  }).concat(l),
1317
1322
  f
1318
1323
  ];
1319
- }, As = (e) => {
1324
+ }, Ps = (e) => {
1320
1325
  const t = e.filter((r) => r.id && r.id < 0).map((r) => r.id);
1321
1326
  return t.length === 0 ? -1 : Math.min(...t) - 1;
1322
- }, Ds = (e, t) => {
1327
+ }, Ls = (e, t) => {
1323
1328
  const r = {};
1324
1329
  return Object.keys(e).forEach((i) => {
1325
1330
  var o;
@@ -1327,7 +1332,7 @@ const Xn = async (e) => {
1327
1332
  (s) => s.operation !== "pendingRemove"
1328
1333
  ) : r[i] = e[i];
1329
1334
  }), r;
1330
- }, ks = (e) => {
1335
+ }, Bs = (e) => {
1331
1336
  const { ooui: t } = e, { relation: r, context: i, views: o } = t, [s, a] = w(!0), [l, d] = w(), [u, c] = w(/* @__PURE__ */ new Map()), f = H(Ne), { getContext: m } = f || {};
1332
1337
  xt(() => {
1333
1338
  h();
@@ -1347,8 +1352,8 @@ const Xn = async (e) => {
1347
1352
  a(!1);
1348
1353
  }
1349
1354
  };
1350
- return s ? /* @__PURE__ */ n(Ae, {}) : l ? /* @__PURE__ */ n(tt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(Es, { ooui: t, views: u }) });
1351
- }, Es = (e) => {
1355
+ return s ? /* @__PURE__ */ n(Ae, {}) : l ? /* @__PURE__ */ n(tt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n($s, { ooui: t, views: u }) });
1356
+ }, $s = (e) => {
1352
1357
  const { value: t, views: r, ooui: i, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = w(!1), [d, u] = w(), [c, f] = w(!1), [m, p] = w(), { relation: h, context: g, readOnly: y, summaryField: v, titleField: T } = i, F = s.filter((x) => x.values), b = H(Ne), { getContext: O } = b || {};
1353
1358
  xt(() => {
1354
1359
  k();
@@ -1437,11 +1442,11 @@ const Xn = async (e) => {
1437
1442
  }
1438
1443
  )
1439
1444
  ] });
1440
- }, { useToken: Ms } = Pe, Ns = (e) => {
1445
+ }, { useToken: Hs } = Pe, Ks = (e) => {
1441
1446
  const { ooui: t } = e;
1442
- return /* @__PURE__ */ n(ge, { ooui: t, children: /* @__PURE__ */ n(Ps, { ooui: t }) });
1443
- }, Ps = (e) => {
1444
- const { token: t } = Ms(), { ooui: r, value: i } = e, o = /* @__PURE__ */ A(Z, { children: [
1447
+ return /* @__PURE__ */ n(ge, { ooui: t, children: /* @__PURE__ */ n(Ws, { ooui: t }) });
1448
+ }, Ws = (e) => {
1449
+ const { token: t } = Hs(), { ooui: r, value: i } = e, o = /* @__PURE__ */ A(Z, { children: [
1445
1450
  /* @__PURE__ */ A("span", { children: [
1446
1451
  r.label,
1447
1452
  " "
@@ -1457,7 +1462,7 @@ const Xn = async (e) => {
1457
1462
  let a = i;
1458
1463
  r.selectionValues.size ? a = r.selectionValues.get(i) : Array.isArray(i) && (a = i[1]);
1459
1464
  const l = /* @__PURE__ */ n(
1460
- Jo,
1465
+ Xo,
1461
1466
  {
1462
1467
  title: o,
1463
1468
  prefix: s && /* @__PURE__ */ n(s, {}),
@@ -1466,7 +1471,7 @@ const Xn = async (e) => {
1466
1471
  }
1467
1472
  );
1468
1473
  return r.card ? /* @__PURE__ */ n(Nn, { children: l }) : l;
1469
- }, Ls = (e, t) => {
1474
+ }, js = (e, t) => {
1470
1475
  if (!t)
1471
1476
  return e;
1472
1477
  const r = {};
@@ -1480,7 +1485,7 @@ const Xn = async (e) => {
1480
1485
  } else
1481
1486
  r[i] = e[i];
1482
1487
  }), r;
1483
- }, Ft = (e, t) => Ls(e, t), Tn = ({
1488
+ }, Ft = (e, t) => js(e, t), Tn = ({
1484
1489
  source: e,
1485
1490
  target: t,
1486
1491
  fields: r
@@ -1513,7 +1518,7 @@ const Xn = async (e) => {
1513
1518
  else
1514
1519
  e[o] !== t[o] && (t[o] === void 0 ? i[o] = null : i[o] = t[o]);
1515
1520
  }), i;
1516
- }, Bs = ({
1521
+ }, Ys = ({
1517
1522
  changedFields: e,
1518
1523
  formOoui: t,
1519
1524
  types: r
@@ -1521,7 +1526,7 @@ const Xn = async (e) => {
1521
1526
  var a;
1522
1527
  const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
1523
1528
  return r.includes(s);
1524
- }).some((o) => o === !0), $s = ({
1529
+ }).some((o) => o === !0), Gs = ({
1525
1530
  fieldsDomain: e,
1526
1531
  fields: t
1527
1532
  }) => {
@@ -1529,12 +1534,12 @@ const Xn = async (e) => {
1529
1534
  return Object.keys(t).forEach((i) => {
1530
1535
  r[i] = t[i], e[i] && (r[i].domain = e[i]);
1531
1536
  }), r;
1532
- }, Hs = (e) => {
1537
+ }, Us = (e) => {
1533
1538
  const t = {};
1534
1539
  return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((r) => {
1535
1540
  (r == null ? void 0 : r[1]) === "=" && (t[r[0]] = r[2]);
1536
1541
  }), t);
1537
- }, Ks = ({
1542
+ }, qs = ({
1538
1543
  onChangeFieldActionArgs: e,
1539
1544
  values: t,
1540
1545
  parentValues: r = {}
@@ -1595,10 +1600,10 @@ const Nt = ({
1595
1600
  r += ("00" + o.toString(16)).slice(-2);
1596
1601
  }
1597
1602
  return r;
1598
- }, Ws = (e, t) => e.replace(
1603
+ }, zs = (e, t) => e.replace(
1599
1604
  /\{([^}]+)\}/g,
1600
1605
  (r, i) => t[i] !== void 0 ? t[i] : r
1601
- ), js = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(co, { ...e }) }), co = (e) => {
1606
+ ), Js = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(co, { ...e }) }), co = (e) => {
1602
1607
  const { ooui: t, value: r } = e;
1603
1608
  let i = r, o = r;
1604
1609
  if (t.selectionValues.size ? i = t.selectionValues.get(r) : Array.isArray(r) && (o = r[0], i = r[1]), !r)
@@ -1607,16 +1612,16 @@ const Nt = ({
1607
1612
  return /* @__PURE__ */ n(uo, { color: s, children: i });
1608
1613
  }, uo = (e) => {
1609
1614
  let { color: t } = e, r = {};
1610
- return !_i(e.color) && !Vi(e.color) && (r = {
1615
+ return !Vi(e.color) && !Ai(e.color) && (r = {
1611
1616
  color: t,
1612
1617
  borderColor: t,
1613
1618
  borderStyle: "solid",
1614
1619
  borderWidth: "1px"
1615
1620
  }, t = `${t}20`), /* @__PURE__ */ n(_r, { ...e, style: r, color: t, children: e.children });
1616
- }, Ys = (e) => {
1621
+ }, Xs = (e) => {
1617
1622
  const { ooui: t } = e;
1618
- return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(Gs, { ooui: t }) });
1619
- }, Gs = (e) => {
1623
+ return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(Zs, { ooui: t }) });
1624
+ }, Zs = (e) => {
1620
1625
  const { value: t, ooui: r, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((R) => R.operation !== "pendingRemove").map((R) => R.id), [a, l] = w([]), [d, u] = w(), [c, f] = w(!1), { relation: m, context: p, readOnly: h, field: g } = r, y = H(Ne), { getContext: v } = y || {};
1621
1626
  xt(() => {
1622
1627
  F();
@@ -1696,14 +1701,14 @@ const Nt = ({
1696
1701
  loading: c
1697
1702
  }
1698
1703
  ) }) });
1699
- }, Us = (e) => {
1704
+ }, Qs = (e) => {
1700
1705
  switch (e) {
1701
1706
  case "form":
1702
1707
  return Jt;
1703
1708
  case "tree":
1704
1709
  return pn;
1705
1710
  case "notebook":
1706
- return jl;
1711
+ return Jl;
1707
1712
  case "group":
1708
1713
  return Io;
1709
1714
  case "label":
@@ -1711,83 +1716,83 @@ const Nt = ({
1711
1716
  case "char":
1712
1717
  return no;
1713
1718
  case "text":
1714
- return Gl;
1719
+ return Zl;
1715
1720
  case "button":
1716
1721
  return Qr;
1717
1722
  case "buttonGroup":
1718
- return ss;
1723
+ return fs;
1719
1724
  case "selection":
1720
1725
  return ro;
1721
1726
  case "many2one":
1722
- return ul;
1727
+ return yl;
1723
1728
  case "boolean":
1724
- return Cs;
1729
+ return Os;
1725
1730
  case "integer":
1726
1731
  return rn;
1727
1732
  case "float":
1728
1733
  return ho;
1729
1734
  case "progressbar":
1730
- return $a;
1735
+ return Ga;
1731
1736
  case "date":
1732
- return oc;
1737
+ return dc;
1733
1738
  case "datetime":
1734
- return ic;
1739
+ return uc;
1735
1740
  case "time":
1736
- return sc;
1741
+ return fc;
1737
1742
  case "one2many":
1738
1743
  case "one2many_list":
1739
1744
  case "many2many":
1740
- return Bl;
1745
+ return Yl;
1741
1746
  case "separator":
1742
- return ql;
1747
+ return ec;
1743
1748
  case "reference":
1744
- return lc;
1749
+ return hc;
1745
1750
  case "binary":
1746
- return uc;
1751
+ return yc;
1747
1752
  case "image":
1748
- return Is;
1753
+ return As;
1749
1754
  case "url":
1750
- return Cc;
1755
+ return Oc;
1751
1756
  case "email":
1752
- return xc;
1757
+ return Rc;
1753
1758
  case "float_time":
1754
- return Hl;
1759
+ return Ul;
1755
1760
  case "fiber_grid":
1756
- return Os;
1757
- case "timeline":
1758
1761
  return ks;
1762
+ case "timeline":
1763
+ return Bs;
1759
1764
  case "indicator":
1760
- return Ns;
1765
+ return Ks;
1761
1766
  case "tags":
1762
- return Ys;
1767
+ return Xs;
1763
1768
  case "tag":
1764
- return js;
1769
+ return Js;
1765
1770
  case "multicheckbox":
1766
- return Qc;
1771
+ return id;
1767
1772
  case "markdown":
1768
- return td;
1773
+ return ad;
1769
1774
  case "radio":
1770
- return rd;
1775
+ return cd;
1771
1776
  case "switch":
1772
- return id;
1777
+ return ud;
1773
1778
  case "steps":
1774
- return ad;
1779
+ return md;
1775
1780
  case "codeeditor":
1776
- return cd;
1781
+ return pd;
1777
1782
  case "comments_timeline":
1778
- return gd;
1783
+ return xd;
1779
1784
  default:
1780
1785
  return;
1781
1786
  }
1782
- }, qs = (e) => {
1783
- const { ooui: t } = e, { type: r } = t, i = Us(r);
1784
- return i ? Qe.createElement(i, e) : null;
1785
- }, zs = ({
1787
+ }, ea = (e) => {
1788
+ const { ooui: t } = e, { type: r } = t, i = Qs(r);
1789
+ return i ? et.createElement(i, e) : null;
1790
+ }, ta = ({
1786
1791
  item: e,
1787
1792
  responsiveBehaviour: t
1788
1793
  }) => ({
1789
1794
  gridColumnStart: "span " + (t ? 1 : e.colspan)
1790
- }), Js = ({
1795
+ }), na = ({
1791
1796
  row: e,
1792
1797
  mustFillWithEmpties: t,
1793
1798
  numberOfColumns: r
@@ -1806,36 +1811,36 @@ const Nt = ({
1806
1811
  i.push(new Dt({ string: "" }));
1807
1812
  }
1808
1813
  }), i;
1809
- }, Xs = ({
1814
+ }, ra = ({
1810
1815
  row: e,
1811
1816
  numberOfColumns: t
1812
- }) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), Zs = (e, t) => {
1813
- const r = e.map((i) => i instanceof Dt && i.fieldForLabel || i instanceof ii ? "auto" : "1fr");
1817
+ }) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), oa = (e, t) => {
1818
+ const r = e.map((i) => i instanceof Dt && i.fieldForLabel || i instanceof si ? "auto" : "1fr");
1814
1819
  if (r.length < t) {
1815
1820
  const i = t - r.length;
1816
1821
  for (let o = 0; o < i; o++)
1817
1822
  r.push("1fr");
1818
1823
  }
1819
1824
  return r.join(" ");
1820
- }, Qs = (e, t) => {
1825
+ }, ia = (e, t) => {
1821
1826
  const r = t ? "1fr" : "auto", i = "auto";
1822
1827
  let o = "";
1823
1828
  for (let s = 0; s < e; s++)
1824
1829
  o += s % 2 ? r : i, s + 1 < e && (o += " ");
1825
1830
  return o;
1826
- }, ea = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Dn = (e) => {
1831
+ }, sa = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Dn = (e) => {
1827
1832
  const { container: t, responsiveBehaviour: r } = e, { rows: i } = t;
1828
1833
  let { columns: o } = t;
1829
- const s = ea(i);
1834
+ const s = sa(i);
1830
1835
  s < o && (o = s);
1831
1836
  let a = !1, l = [];
1832
1837
  const d = i.map((f, m) => {
1833
- const p = f.filter((y) => !y.invisible), h = Xs({
1838
+ const p = f.filter((y) => !y.invisible), h = ra({
1834
1839
  row: p,
1835
1840
  numberOfColumns: o
1836
1841
  });
1837
1842
  let g = h;
1838
- return (m === 0 || !(f.length === 1 && f.some((y) => y.type === "group"))) && (g = Js({
1843
+ return (m === 0 || !(f.length === 1 && f.some((y) => y.type === "group"))) && (g = na({
1839
1844
  row: h,
1840
1845
  numberOfColumns: o,
1841
1846
  mustFillWithEmpties: r
@@ -1843,17 +1848,17 @@ const Nt = ({
1843
1848
  "div",
1844
1849
  {
1845
1850
  style: {
1846
- ...zs({ item: y, responsiveBehaviour: r }),
1851
+ ...ta({ item: y, responsiveBehaviour: r }),
1847
1852
  minWidth: 0
1848
1853
  },
1849
- children: qs({
1854
+ children: ea({
1850
1855
  ooui: y,
1851
1856
  responsiveBehaviour: r
1852
1857
  })
1853
1858
  },
1854
1859
  y.key
1855
1860
  )));
1856
- }), u = i.length === 1 ? Zs(l, o) : Qs(o, a);
1861
+ }), u = i.length === 1 ? oa(l, o) : ia(o, a);
1857
1862
  return /* @__PURE__ */ n("div", { style: {
1858
1863
  display: "grid",
1859
1864
  gridTemplateColumns: r ? "auto" : u,
@@ -1861,12 +1866,12 @@ const Nt = ({
1861
1866
  minHeight: 0,
1862
1867
  minWidth: 0
1863
1868
  }, children: d });
1864
- }, { confirm: ta } = Je, zt = ({
1869
+ }, { confirm: aa } = Je, zt = ({
1865
1870
  onOk: e,
1866
1871
  onCancel: t,
1867
1872
  lang: r
1868
1873
  }) => {
1869
- ta({
1874
+ aa({
1870
1875
  title: Fe("unsavedChanges", r),
1871
1876
  icon: /* @__PURE__ */ n(pt, {}),
1872
1877
  centered: !0,
@@ -1876,22 +1881,22 @@ const Nt = ({
1876
1881
  onCancel: t,
1877
1882
  cancelText: Fe("cancel", r)
1878
1883
  });
1879
- }, { error: na } = Je, yr = (e) => {
1880
- na({
1884
+ }, { error: la } = Je, yr = (e) => {
1885
+ la({
1881
1886
  title: Fe("formHasErrors", e),
1882
1887
  icon: /* @__PURE__ */ n(pt, {}),
1883
1888
  centered: !0,
1884
1889
  content: Fe("fillRequiredFields", e)
1885
1890
  });
1886
- }, { warning: ra } = Je, oa = (e, t, r) => {
1887
- ra({
1891
+ }, { warning: ca } = Je, da = (e, t, r) => {
1892
+ ca({
1888
1893
  title: e,
1889
1894
  icon: /* @__PURE__ */ n(Hr, {}),
1890
1895
  centered: !0,
1891
1896
  content: t,
1892
1897
  onOk: r
1893
1898
  });
1894
- }, fo = Qe.createContext(null), ia = (e) => {
1899
+ }, fo = et.createContext(null), ua = (e) => {
1895
1900
  const { children: t, setTitle: r } = e;
1896
1901
  return /* @__PURE__ */ n(
1897
1902
  fo.Provider,
@@ -1902,15 +1907,15 @@ const Nt = ({
1902
1907
  children: t
1903
1908
  }
1904
1909
  );
1905
- }, vr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, sa = (e, t) => {
1906
- const r = fa(e), i = da(r), o = ua(
1910
+ }, vr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, fa = (e, t) => {
1911
+ const r = va(e), i = ga(r), o = ya(
1907
1912
  i,
1908
1913
  t
1909
1914
  );
1910
1915
  return [
1911
- ...Object.keys(o).map((l) => aa(l, o[l], t))
1916
+ ...Object.keys(o).map((l) => ma(l, o[l], t))
1912
1917
  ].reduce((l, d) => Array.isArray(d[0]) ? l.concat(d) : [...l, d], []);
1913
- }, aa = (e, t, r) => {
1918
+ }, ma = (e, t, r) => {
1914
1919
  var s;
1915
1920
  const i = e.split("#")[0], o = (s = r.findById(i)) == null ? void 0 : s.type;
1916
1921
  if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
@@ -1932,14 +1937,14 @@ const Nt = ({
1932
1937
  (a) => vr(a)
1933
1938
  )
1934
1939
  ] : [e, "=", vr(t)];
1935
- }, la = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), ca = (e) => {
1940
+ }, ha = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), pa = (e) => {
1936
1941
  const t = { ...e };
1937
1942
  return Object.keys(t).forEach(
1938
1943
  (r) => (r.indexOf("#time") !== -1 || r.indexOf("#date") !== -1) && delete t[r]
1939
1944
  ), t;
1940
- }, da = (e) => {
1941
- const t = { ...ca(e) };
1942
- return la(e).forEach((i) => {
1945
+ }, ga = (e) => {
1946
+ const t = { ...pa(e) };
1947
+ return ha(e).forEach((i) => {
1943
1948
  const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
1944
1949
  let d, u;
1945
1950
  if (o[0] !== null && (d = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
@@ -1952,7 +1957,7 @@ const Nt = ({
1952
1957
  }
1953
1958
  t[s + "#datetime"] = [d, u];
1954
1959
  }), t;
1955
- }, ua = (e, t) => {
1960
+ }, ya = (e, t) => {
1956
1961
  const r = Object.keys(e).filter((o) => {
1957
1962
  const s = t.findById(o);
1958
1963
  return s && s.type === "date";
@@ -1960,18 +1965,18 @@ const Nt = ({
1960
1965
  return r.forEach((o) => {
1961
1966
  delete i[o], e[o][0] !== null && (i[o + "#from"] = e[o][0]), e[o][1] !== null && (i[o + "#to"] = e[o][1]);
1962
1967
  }), i;
1963
- }, fa = (e) => {
1968
+ }, va = (e) => {
1964
1969
  const t = { ...e };
1965
1970
  return Object.keys(t).forEach(
1966
1971
  (r) => (t[r] === void 0 || t[r] === null || t[r] === "") && delete t[r]
1967
1972
  ), t;
1968
- }, ma = (e) => {
1973
+ }, wa = (e) => {
1969
1974
  const t = {};
1970
1975
  return e.forEach((r) => {
1971
1976
  Array.isArray(r) && r[0] ? t[r[0]] = !0 : t[r] = !0;
1972
1977
  }), Object.keys(t);
1973
1978
  }, Wt = (e, t) => {
1974
- const r = [...e], i = ma(e);
1979
+ const r = [...e], i = wa(e);
1975
1980
  return t.forEach((o) => {
1976
1981
  Array.isArray(o) && o[0] ? i.includes(o[0]) || r.push(o) : i.includes(o) || r.push(o);
1977
1982
  }), r;
@@ -2064,7 +2069,7 @@ const Nt = ({
2064
2069
  }) : [...ee.current];
2065
2070
  if (ce(ue), v && ue.length > 0) {
2066
2071
  const se = ue.findIndex(
2067
- (et) => F === et.id
2072
+ (Qe) => F === Qe.id
2068
2073
  );
2069
2074
  se === -1 ? g == null || g(0) : g == null || g(se);
2070
2075
  } else
@@ -2206,7 +2211,7 @@ const Nt = ({
2206
2211
  totalItems: K,
2207
2212
  getAllIds: xe
2208
2213
  };
2209
- }, it = Qe.createContext(null), ha = (e) => {
2214
+ }, st = et.createContext(null), ba = (e) => {
2210
2215
  const {
2211
2216
  children: t,
2212
2217
  currentView: r,
@@ -2258,7 +2263,7 @@ const Nt = ({
2258
2263
  return await ((re = a.current) == null ? void 0 : re.submitForm());
2259
2264
  };
2260
2265
  return /* @__PURE__ */ n(
2261
- it.Provider,
2266
+ st.Provider,
2262
2267
  {
2263
2268
  value: {
2264
2269
  title: Le,
@@ -2316,7 +2321,7 @@ const Nt = ({
2316
2321
  children: t
2317
2322
  }
2318
2323
  );
2319
- }, dt = Qe.createContext(null), pa = (e) => {
2324
+ }, dt = et.createContext(null), Ca = (e) => {
2320
2325
  const {
2321
2326
  children: t,
2322
2327
  openAction: r,
@@ -2348,11 +2353,11 @@ const Nt = ({
2348
2353
  children: t
2349
2354
  }
2350
2355
  );
2351
- }, Pt = Qe.createContext(null), wr = async (e) => {
2356
+ }, Pt = et.createContext(null), wr = async (e) => {
2352
2357
  var t;
2353
2358
  for (let r = 0; r < e.length; r++)
2354
2359
  await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
2355
- }, ga = (e, t) => {
2360
+ }, xa = (e, t) => {
2356
2361
  const { children: r, globalValues: i = {} } = e, o = de(), s = de(), [a, l] = w(!1), d = H(
2357
2362
  dt
2358
2363
  ), { openAction: u } = d || {}, c = de([]), { t: f } = H(he);
@@ -2429,7 +2434,7 @@ const Nt = ({
2429
2434
  return await F({ actionData: k, fields: x, values: S, context: I });
2430
2435
  if (D === "ir.actions.act_url")
2431
2436
  window.open(
2432
- Ws(k.url, { ...S, context: I }),
2437
+ zs(k.url, { ...S, context: I }),
2433
2438
  "_blank"
2434
2439
  );
2435
2440
  else
@@ -2479,7 +2484,7 @@ const Nt = ({
2479
2484
  context: P
2480
2485
  }), {};
2481
2486
  } else {
2482
- const { initialView: M, views: B } = await ya({
2487
+ const { initialView: M, views: B } = await Sa({
2483
2488
  model: C.res_model,
2484
2489
  context: P,
2485
2490
  view_mode: C.view_mode,
@@ -2580,7 +2585,7 @@ const Nt = ({
2580
2585
  }
2581
2586
  ) });
2582
2587
  };
2583
- async function ya({
2588
+ async function Sa({
2584
2589
  views: e,
2585
2590
  view_mode: t,
2586
2591
  model: r,
@@ -2629,7 +2634,7 @@ async function ya({
2629
2634
  }
2630
2635
  return { views: s, initialView: a };
2631
2636
  }
2632
- const va = wt(ga), wa = ({
2637
+ const Ta = wt(xa), Ia = ({
2633
2638
  error: e,
2634
2639
  className: t
2635
2640
  }) => {
@@ -2650,8 +2655,8 @@ const va = wt(ga), wa = ({
2650
2655
  banner: !0
2651
2656
  }
2652
2657
  );
2653
- }, ba = 800;
2654
- function Ca(e, t) {
2658
+ }, Fa = 800;
2659
+ function Oa(e, t) {
2655
2660
  const {
2656
2661
  model: r,
2657
2662
  id: i,
@@ -2675,8 +2680,8 @@ function Ca(e, t) {
2675
2680
  defaultValues: O,
2676
2681
  forcedValues: R = {},
2677
2682
  parentWidth: k
2678
- } = e, { t: x, lang: S } = H(he), [I, C] = w(!1), [D, P] = w(), [L, j] = w(), [M] = lt.useForm(), [B, K] = w(), [V, G] = w(), ne = H(fo), [J, le] = w(), [Y, _] = w(!1), N = de(), ee = de({}), ce = de({}), Ie = de(!1), X = de(!1), U = de(!1), we = (k !== void 0 ? k : J) < ba, Ye = H(Ne), { activeId: ke, getPlainValues: Le } = Ye || {}, Ue = H(
2679
- it
2683
+ } = e, { t: x, lang: S } = H(he), [I, C] = w(!1), [D, P] = w(), [L, j] = w(), [M] = lt.useForm(), [B, K] = w(), [V, G] = w(), ne = H(fo), [J, le] = w(), [Y, _] = w(!1), N = de(), ee = de({}), ce = de({}), Ie = de(!1), X = de(!1), U = de(!1), we = (k !== void 0 ? k : J) < Fa, Ye = H(Ne), { activeId: ke, getPlainValues: Le } = Ye || {}, Ue = H(
2684
+ st
2680
2685
  ), {
2681
2686
  setFormIsSaving: xe = void 0,
2682
2687
  setFormHasChanges: re = void 0,
@@ -2690,7 +2695,7 @@ function Ca(e, t) {
2690
2695
  ), { processAction: Ve, globalValues: Be } = ve || {};
2691
2696
  bt(t, () => ({
2692
2697
  submitForm: Zt,
2693
- getFields: et,
2698
+ getFields: Qe,
2694
2699
  getValues: We,
2695
2700
  getPlainValues: q,
2696
2701
  getContext: Se,
@@ -2722,7 +2727,7 @@ function Ca(e, t) {
2722
2727
  function se() {
2723
2728
  return i || N.current;
2724
2729
  }
2725
- function et() {
2730
+ function Qe() {
2726
2731
  return V;
2727
2732
  }
2728
2733
  function We() {
@@ -2735,10 +2740,10 @@ function Ca(e, t) {
2735
2740
  return $;
2736
2741
  }
2737
2742
  function q() {
2738
- const $ = We(), W = et(), Q = {};
2743
+ const $ = We(), W = Qe(), Q = {};
2739
2744
  return Object.keys($).forEach((te) => {
2740
2745
  const fe = $[te];
2741
- W[te] && W[te].type === "many2one" && fe && Array.isArray(fe) && fe.length === 2 ? Q[te] = fe[0] : W[te] && (W[te].type === "one2many" || W[te].type === "many2many") && fe && fe.items ? Q[te] = fe.items.filter((rt) => rt.operation !== "pendingRemove").map((rt) => rt.id) : Q[te] = fe;
2746
+ W[te] && W[te].type === "many2one" && fe && Array.isArray(fe) && fe.length === 2 ? Q[te] = fe[0] : W[te] && (W[te].type === "one2many" || W[te].type === "many2many") && fe && fe.items ? Q[te] = fe.items.filter((ot) => ot.operation !== "pendingRemove").map((ot) => ot.id) : Q[te] = fe;
2742
2747
  }), Q;
2743
2748
  }
2744
2749
  function ie() {
@@ -2772,7 +2777,7 @@ function Ca(e, t) {
2772
2777
  context: { ...v, ...W },
2773
2778
  extraValues: O
2774
2779
  });
2775
- }, nt = () => Object.keys(
2780
+ }, rt = () => Object.keys(
2776
2781
  Tn({
2777
2782
  source: ee.current,
2778
2783
  target: qe(V),
@@ -2816,14 +2821,14 @@ function Ca(e, t) {
2816
2821
  ye == null || ye(!0), P(void 0), $ != null && $.fields ? (Q = $.fields, te = $.arch) : (Q = V, te = B), p && ($ == null ? void 0 : $.forceRefresh) !== !0 ? W = p : { values: W, defaultGetCalled: fe } = await Eo({
2817
2822
  fields: Q,
2818
2823
  arch: te
2819
- }), T && (W = { ...Hs(T), ...W }), ee.current = Ft(W, Q), Lt({
2824
+ }), T && (W = { ...Us(T), ...W }), ee.current = Ft(W, Q), Lt({
2820
2825
  values: W,
2821
2826
  fields: Q,
2822
2827
  reset: !0,
2823
2828
  isDefaultGet: fe
2824
2829
  }), Bt({ fields: Q, arch: te, values: W }), ye == null || ye(!1), re == null || re(!1), fe && _(!0);
2825
2830
  }, nr = async () => new Promise(async ($) => {
2826
- nt() ? zt({
2831
+ rt() ? zt({
2827
2832
  lang: S,
2828
2833
  onOk: () => {
2829
2834
  ue == null || ue(), $(!0);
@@ -2851,7 +2856,7 @@ function Ca(e, t) {
2851
2856
  reset: Q,
2852
2857
  isDefaultGet: te = !1
2853
2858
  }) => {
2854
- const rt = { ...Q ? {} : M.getFieldsValue(!0), ...$ }, bn = Ft(rt, W), Go = Object.keys(W).map((Cn) => {
2859
+ const ot = { ...Q ? {} : M.getFieldsValue(!0), ...$ }, bn = Ft(ot, W), Go = Object.keys(W).map((Cn) => {
2855
2860
  const Uo = bn[Cn] !== void 0 ? bn[Cn] : void 0;
2856
2861
  return {
2857
2862
  name: Cn,
@@ -2922,7 +2927,7 @@ function Ca(e, t) {
2922
2927
  }, Zt = async ($) => {
2923
2928
  let W = !1;
2924
2929
  const { callOnSubmitSucceed: Q = !0 } = $ || {};
2925
- if (X.current = !0, P(void 0), U.current && !nt() && se() && Q) {
2930
+ if (X.current = !0, P(void 0), U.current && !rt() && se() && Q) {
2926
2931
  X.current = !1, re == null || re(!1), oe == null || oe(
2927
2932
  se(),
2928
2933
  We(),
@@ -2932,7 +2937,7 @@ function Ca(e, t) {
2932
2937
  const te = se();
2933
2938
  return f && (N.current = void 0, Lt({ values: {}, fields: V, reset: !0 })), { succeed: !0, id: te };
2934
2939
  }
2935
- if (!nt() && se() && Q)
2940
+ if (!rt() && se() && Q)
2936
2941
  return X.current = !1, re == null || re(!1), ue == null || ue(), { succeed: !0, id: se() };
2937
2942
  if (await St())
2938
2943
  return X.current = !1, yr(S), { succeed: !1, id: se() };
@@ -2951,18 +2956,18 @@ function Ca(e, t) {
2951
2956
  values: Q,
2952
2957
  operationInProgress: te = !1
2953
2958
  }) => {
2954
- var rt;
2959
+ var ot;
2955
2960
  const fe = new Nr($);
2956
2961
  fe.parse(W, {
2957
2962
  readOnly: c || te,
2958
- values: Ds(
2963
+ values: Ls(
2959
2964
  {
2960
2965
  ...Q,
2961
2966
  ...Te()
2962
2967
  },
2963
2968
  $
2964
2969
  )
2965
- }), j(fe), fe.string && fe.string !== Ke && (z == null || z(fe.string)), ne && fe.string && ((rt = ne.setTitle) == null || rt.call(ne, fe.string));
2970
+ }), j(fe), fe.string && fe.string !== Ke && (z == null || z(fe.string)), ne && fe.string && ((ot = ne.setTitle) == null || ot.call(ne, fe.string));
2966
2971
  }, vn = async ({
2967
2972
  elementHasLostFocus: $ = !1
2968
2973
  }) => {
@@ -2973,7 +2978,7 @@ function Ca(e, t) {
2973
2978
  target: qe(V),
2974
2979
  fields: V
2975
2980
  }), Q = Object.keys(W);
2976
- if (Q.length !== 0 && !(Bs({
2981
+ if (Q.length !== 0 && !(Ys({
2977
2982
  changedFields: Q,
2978
2983
  formOoui: L,
2979
2984
  types: [
@@ -2991,7 +2996,7 @@ function Ca(e, t) {
2991
2996
  const te = Ft(M.getFieldsValue(!0), V);
2992
2997
  ce.current = te, d == null || d(te), re == null || re(!0), Po(Q);
2993
2998
  }
2994
- }, No = Si(vn, 100), Po = async ($) => {
2999
+ }, No = Ti(vn, 100), Po = async ($) => {
2995
3000
  try {
2996
3001
  for (let W = 0; W < $.length; W += 1) {
2997
3002
  const Q = $[W];
@@ -3010,7 +3015,7 @@ function Ca(e, t) {
3010
3015
  });
3011
3016
  return;
3012
3017
  }
3013
- const Q = Ks({
3018
+ const Q = qs({
3014
3019
  values: {
3015
3020
  ...qe(V),
3016
3021
  context: {
@@ -3039,13 +3044,13 @@ function Ca(e, t) {
3039
3044
  });
3040
3045
  }
3041
3046
  if (te.warning && te.warning.title && te.warning.message && !Ie.current) {
3042
- const { title: fe, message: rt } = te.warning;
3043
- Ie.current = !0, oa(fe, rt, () => {
3047
+ const { title: fe, message: ot } = te.warning;
3048
+ Ie.current = !0, da(fe, ot, () => {
3044
3049
  Ie.current = !1;
3045
3050
  });
3046
3051
  }
3047
3052
  if (te.domain && Object.keys(te.domain).length > 0) {
3048
- const fe = $s({
3053
+ const fe = Gs({
3049
3054
  fieldsDomain: te.domain,
3050
3055
  fields: V
3051
3056
  });
@@ -3151,19 +3156,19 @@ function Ca(e, t) {
3151
3156
  }
3152
3157
  let te = !1;
3153
3158
  try {
3154
- !c && (nt() || se() === void 0) && (te = !0, wn(!0), m === "2many" ? (await rr({ callOnSubmitSucceed: !1 }), U.current = !0) : await Zt({ callOnSubmitSucceed: !1 }));
3155
- const fe = U.current ? pe() : {}, rt = { ...Q, ...fe };
3156
- $ === "object" ? await Bo({ action: W, context: rt }) : $ === "workflow" ? await $o({ action: W }) : $ === "action" && await Ho({ action: W, context: rt }), te && wn(!1);
3159
+ !c && (rt() || se() === void 0) && (te = !0, wn(!0), m === "2many" ? (await rr({ callOnSubmitSucceed: !1 }), U.current = !0) : await Zt({ callOnSubmitSucceed: !1 }));
3160
+ const fe = U.current ? pe() : {}, ot = { ...Q, ...fe };
3161
+ $ === "object" ? await Bo({ action: W, context: ot }) : $ === "workflow" ? await $o({ action: W }) : $ === "action" && await Ho({ action: W, context: ot }), te && wn(!1);
3157
3162
  } catch (fe) {
3158
3163
  te && wn(!1), ze(fe);
3159
3164
  }
3160
3165
  }
3161
3166
  const jo = () => !L && !D ? /* @__PURE__ */ n(Ae, {}) : !r && !h || !F ? null : /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ n(
3162
- os,
3167
+ ds,
3163
3168
  {
3164
3169
  getValues: We,
3165
3170
  getPlainValues: q,
3166
- getFields: et,
3171
+ getFields: Qe,
3167
3172
  domain: T,
3168
3173
  activeId: i,
3169
3174
  activeModel: r,
@@ -3173,7 +3178,7 @@ function Ca(e, t) {
3173
3178
  getContext: Se,
3174
3179
  submitForm: Zt,
3175
3180
  fetchValues: gt,
3176
- formHasChanges: nt,
3181
+ formHasChanges: rt,
3177
3182
  elementHasLostFocus: Ko,
3178
3183
  children: /* @__PURE__ */ n(
3179
3184
  lt,
@@ -3231,14 +3236,14 @@ function Ca(e, t) {
3231
3236
  le((W = $.bounds) == null ? void 0 : W.width);
3232
3237
  },
3233
3238
  children: ({ measureRef: $ }) => /* @__PURE__ */ A("div", { className: "pb-2", ref: $, children: [
3234
- D && /* @__PURE__ */ n(wa, { className: "mt-5 mb-10", error: D }),
3239
+ D && /* @__PURE__ */ n(Ia, { className: "mt-5 mb-10", error: D }),
3235
3240
  jo(),
3236
3241
  a && Yo()
3237
3242
  ] })
3238
3243
  }
3239
3244
  ) : null;
3240
3245
  }
3241
- const Jt = wt(Ca), Xt = (e) => {
3246
+ const Jt = wt(Oa), Xt = (e) => {
3242
3247
  const {
3243
3248
  visible: t,
3244
3249
  id: r,
@@ -3292,7 +3297,7 @@ const Jt = wt(Ca), Xt = (e) => {
3292
3297
  ] });
3293
3298
  }
3294
3299
  const F = u * 0.95;
3295
- return /* @__PURE__ */ n(ia, { setTitle: f, children: /* @__PURE__ */ n(
3300
+ return /* @__PURE__ */ n(ua, { setTitle: f, children: /* @__PURE__ */ n(
3296
3301
  Je,
3297
3302
  {
3298
3303
  title: a ? T() : c,
@@ -3316,13 +3321,13 @@ const Jt = wt(Ca), Xt = (e) => {
3316
3321
  )
3317
3322
  }
3318
3323
  ) });
3319
- }, xa = (e) => /* @__PURE__ */ n(ge, { ...e, layout: "vertical", children: /* @__PURE__ */ n(
3324
+ }, Ra = (e) => /* @__PURE__ */ n(ge, { ...e, layout: "vertical", children: /* @__PURE__ */ n(
3320
3325
  Pn.RangePicker,
3321
3326
  {
3322
3327
  allowEmpty: [!0, !0],
3323
3328
  format: "DD/MM/YYYY"
3324
3329
  }
3325
- ) }), Sa = (e) => {
3330
+ ) }), _a = (e) => {
3326
3331
  const { ooui: t, showLabel: r = !1 } = e, { label: i, id: o } = t, s = [
3327
3332
  new _n({
3328
3333
  name: o + "#date",
@@ -3365,8 +3370,8 @@ const Jt = wt(Ca), Xt = (e) => {
3365
3370
  ) }) })
3366
3371
  ] })
3367
3372
  ] });
3368
- }, { useToken: Ta } = Pe, ho = (e) => {
3369
- const { ooui: t } = e, { id: r, decimalDigits: i, readOnly: o, required: s } = t, { token: a } = Ta(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
3373
+ }, { useToken: Va } = Pe, ho = (e) => {
3374
+ const { ooui: t } = e, { id: r, decimalDigits: i, readOnly: o, required: s } = t, { token: a } = Va(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
3370
3375
  return /* @__PURE__ */ n(ge, { required: s, type: "number", ...e, children: /* @__PURE__ */ n(
3371
3376
  Ar,
3372
3377
  {
@@ -3380,8 +3385,8 @@ const Jt = wt(Ca), Xt = (e) => {
3380
3385
  onBlur: u
3381
3386
  }
3382
3387
  ) });
3383
- }, { useToken: Ia } = Pe, rn = (e) => {
3384
- const { ooui: t, onChange: r } = e, { id: i, readOnly: o, required: s } = t, { token: a } = Ia(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
3388
+ }, { useToken: Aa } = Pe, rn = (e) => {
3389
+ const { ooui: t, onChange: r } = e, { id: i, readOnly: o, required: s } = t, { token: a } = Aa(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
3385
3390
  return /* @__PURE__ */ n(ge, { required: s, type: "number", ...e, children: /* @__PURE__ */ n(
3386
3391
  Ar,
3387
3392
  {
@@ -3399,7 +3404,7 @@ const Jt = wt(Ca), Xt = (e) => {
3399
3404
  }
3400
3405
  ) });
3401
3406
  };
3402
- function Fa(e) {
3407
+ function Da(e) {
3403
3408
  const { ooui: t, showLabel: r } = e, { id: i, label: o, tooltip: s } = t, a = t instanceof Vn ? rn : ho, l = (d) => /* @__PURE__ */ n(
3404
3409
  a,
3405
3410
  {
@@ -3432,17 +3437,17 @@ function Fa(e) {
3432
3437
  ] })
3433
3438
  ] });
3434
3439
  }
3435
- const { defaultAlgorithm: Oa, defaultSeed: Ra } = Pe, _a = Oa(Ra), { Option: Va } = Ct, Aa = (e) => {
3440
+ const { defaultAlgorithm: ka, defaultSeed: Ea } = Pe, Ma = ka(Ea), { Option: Na } = Ct, Pa = (e) => {
3436
3441
  const { ooui: t } = e, { required: r } = t;
3437
- return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(Da, { ...e }) });
3438
- }, Da = (e) => {
3442
+ return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(La, { ...e }) });
3443
+ }, La = (e) => {
3439
3444
  const { ooui: t, onChange: r, value: i } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), d = l && l.length && l.filter((f) => {
3440
3445
  const [m] = f;
3441
3446
  return i ? !i.includes(m) : !0;
3442
3447
  }).map((f) => {
3443
3448
  const [m, p] = f;
3444
- return /* @__PURE__ */ n(Va, { value: p, children: p }, m);
3445
- }), u = a && !s ? ka : Ct;
3449
+ return /* @__PURE__ */ n(Na, { value: p, children: p }, m);
3450
+ }), u = a && !s ? Ba : Ct;
3446
3451
  function c(f) {
3447
3452
  const m = f.map((p) => {
3448
3453
  const h = l.find(([g, y]) => p === y);
@@ -3465,12 +3470,12 @@ const { defaultAlgorithm: Oa, defaultSeed: Ra } = Pe, _a = Oa(Ra), { Option: Va
3465
3470
  children: d
3466
3471
  }
3467
3472
  );
3468
- }, ka = Mt(Ct)`
3473
+ }, Ba = Mt(Ct)`
3469
3474
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
3470
- background-color: ${_a.colorPrimaryBg};
3475
+ background-color: ${Ma.colorPrimaryBg};
3471
3476
  }
3472
3477
  `;
3473
- function Ea(e) {
3478
+ function $a(e) {
3474
3479
  const { field: t } = e;
3475
3480
  t.readOnly = !1, t.required = !1;
3476
3481
  const { t: r } = H(he);
@@ -3490,22 +3495,22 @@ function Ea(e) {
3490
3495
  case mt.progressbar:
3491
3496
  case mt.float_time:
3492
3497
  case mt.integer:
3493
- return /* @__PURE__ */ n(Fa, { ooui: t, showLabel: !0 });
3498
+ return /* @__PURE__ */ n(Da, { ooui: t, showLabel: !0 });
3494
3499
  case mt.date:
3495
- return /* @__PURE__ */ n(xa, { ooui: t, layout: "vertical", showLabel: !0 });
3500
+ return /* @__PURE__ */ n(Ra, { ooui: t, layout: "vertical", showLabel: !0 });
3496
3501
  case mt.datetime:
3497
- return /* @__PURE__ */ n(Sa, { ooui: t, layout: "vertical", showLabel: !0 });
3502
+ return /* @__PURE__ */ n(_a, { ooui: t, layout: "vertical", showLabel: !0 });
3498
3503
  case mt.selection:
3499
- return /* @__PURE__ */ n(Aa, { layout: "vertical", ooui: t, showLabel: !0 });
3504
+ return /* @__PURE__ */ n(Pa, { layout: "vertical", ooui: t, showLabel: !0 });
3500
3505
  default:
3501
3506
  return /* @__PURE__ */ n(no, { ooui: t, layout: "vertical", showLabel: !0, isSearchField: !0 });
3502
3507
  }
3503
3508
  }
3504
- function Ma(e) {
3509
+ function Ha(e) {
3505
3510
  const { onAdvancedFilterToggle: t, advancedFilter: r, onClear: i, isSearching: o } = e, { t: s } = H(he);
3506
3511
  return /* @__PURE__ */ A(be, { children: [
3507
3512
  /* @__PURE__ */ n(ae, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ A("a", { className: "text-xs", onClick: t, children: [
3508
- r ? /* @__PURE__ */ n(li, { className: "pr-1" }) : /* @__PURE__ */ n(kt, { className: "pr-1" }),
3513
+ r ? /* @__PURE__ */ n(ci, { className: "pr-1" }) : /* @__PURE__ */ n(kt, { className: "pr-1" }),
3509
3514
  s(r ? "simple_search" : "advanced_search")
3510
3515
  ] }) }),
3511
3516
  /* @__PURE__ */ A(ae, { span: 12, className: "text-right pb-2", children: [
@@ -3524,7 +3529,7 @@ function Ma(e) {
3524
3529
  ] })
3525
3530
  ] });
3526
3531
  }
3527
- function Na(e) {
3532
+ function Ka(e) {
3528
3533
  const { onLimitChange: t } = e, { t: r } = H(he), i = new Vn({ name: "limit" }), o = new Vn({ name: "offset" });
3529
3534
  return /* @__PURE__ */ A("div", { className: "pl-2 pt-2", children: [
3530
3535
  /* @__PURE__ */ n(be, { children: r("parameters") }, "count_params"),
@@ -3544,7 +3549,7 @@ function Na(e) {
3544
3549
  ] })
3545
3550
  ] });
3546
3551
  }
3547
- const { useToken: Pa } = Pe;
3552
+ const { useToken: Wa } = Pe;
3548
3553
  function po(e) {
3549
3554
  const {
3550
3555
  fields: t,
@@ -3560,7 +3565,7 @@ function po(e) {
3560
3565
  searchError: f,
3561
3566
  searchValues: m,
3562
3567
  showLimitOptions: p = !0
3563
- } = e, [h, g] = w(), [y, v] = w(), [T, F] = w(!1), b = de(), { token: O } = Pa(), [R] = lt.useForm();
3568
+ } = e, [h, g] = w(), [y, v] = w(), [T, F] = w(!1), b = de(), { token: O } = Wa(), [R] = lt.useForm();
3564
3569
  me(() => {
3565
3570
  R.setFieldsValue(m);
3566
3571
  }, [m]);
@@ -3568,16 +3573,16 @@ function po(e) {
3568
3573
  if (!y)
3569
3574
  return;
3570
3575
  const I = T ? y : h, C = I == null ? void 0 : I.rows;
3571
- return C == null ? void 0 : C.map((D, P) => /* @__PURE__ */ n(be, { children: D.map((L, j) => /* @__PURE__ */ n(ae, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ n(Ea, { field: L }) }, j)) }, P));
3576
+ return C == null ? void 0 : C.map((D, P) => /* @__PURE__ */ n(be, { children: D.map((L, j) => /* @__PURE__ */ n(ae, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ n($a, { field: L }) }, j)) }, P));
3572
3577
  };
3573
3578
  xt(() => {
3574
- F(!1), b.current = new si(r, t), b.current.parse(), g(b.current._simpleSearchContainer), v(b.current._advancedSearchContainer);
3579
+ F(!1), b.current = new ai(r, t), b.current.parse(), g(b.current._simpleSearchContainer), v(b.current._advancedSearchContainer);
3575
3580
  }, [t, r]);
3576
3581
  const x = k(), S = (I) => {
3577
3582
  var L;
3578
3583
  const { limit: C, offset: D } = I;
3579
3584
  delete I.offset, delete I.limit;
3580
- const P = sa(
3585
+ const P = fa(
3581
3586
  I,
3582
3587
  (L = b.current) == null ? void 0 : L._advancedSearchContainer
3583
3588
  );
@@ -3602,9 +3607,9 @@ function po(e) {
3602
3607
  initialValues: { offset: a, limit: l },
3603
3608
  children: [
3604
3609
  x,
3605
- T && p && /* @__PURE__ */ n(Na, { onLimitChange: d }),
3610
+ T && p && /* @__PURE__ */ n(Ka, { onLimitChange: d }),
3606
3611
  /* @__PURE__ */ n(
3607
- Ma,
3612
+ Ha,
3608
3613
  {
3609
3614
  advancedFilter: T,
3610
3615
  onAdvancedFilterToggle: () => {
@@ -3638,7 +3643,7 @@ const br = (e, t = "14px -apple-system") => {
3638
3643
  i.font = t;
3639
3644
  const o = i.measureText(e);
3640
3645
  return Math.round((o.width + 80) * 1.5);
3641
- }, La = (e, t, r = 500) => {
3646
+ }, ja = (e, t, r = 500) => {
3642
3647
  if (e.length === 0)
3643
3648
  return { columns: e };
3644
3649
  const i = e.map(
@@ -3660,7 +3665,7 @@ const br = (e, t = "14px -apple-system") => {
3660
3665
  tableWidth: o
3661
3666
  };
3662
3667
  };
3663
- function Ba(e) {
3668
+ function Ya(e) {
3664
3669
  if (e)
3665
3670
  try {
3666
3671
  if (e.includes(":")) {
@@ -3690,17 +3695,17 @@ function go(e) {
3690
3695
  });
3691
3696
  return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
3692
3697
  }
3693
- const $a = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo, {}) }), yo = ({ value: e }) => {
3698
+ const Ga = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo, {}) }), yo = ({ value: e }) => {
3694
3699
  const t = `${(e || 0).toLocaleString("en-US", {
3695
3700
  minimumIntegerDigits: 1,
3696
3701
  maximumFractionDigits: 4,
3697
3702
  useGrouping: !1
3698
3703
  })}%`;
3699
3704
  return /* @__PURE__ */ A("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
3700
- /* @__PURE__ */ n(Ha, { percent: e }),
3705
+ /* @__PURE__ */ n(Ua, { percent: e }),
3701
3706
  /* @__PURE__ */ n("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
3702
3707
  ] });
3703
- }, Ha = Mt(Xo)`
3708
+ }, Ua = Mt(Zo)`
3704
3709
  .ant-progress-outer {
3705
3710
  margin-right: 0px;
3706
3711
  padding-right: 0px;
@@ -3848,7 +3853,7 @@ const $a = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
3848
3853
  }
3849
3854
  return /* @__PURE__ */ A(Z, { children: [
3850
3855
  /* @__PURE__ */ n(Gt, { overlay: b(), trigger: ["click"], children: /* @__PURE__ */ n(
3851
- ci,
3856
+ di,
3852
3857
  {
3853
3858
  style: { color: "rgba(0,0,0,.45)" },
3854
3859
  onClick: (I) => {
@@ -3875,13 +3880,13 @@ const $a = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
3875
3880
  }
3876
3881
  )
3877
3882
  ] });
3878
- }, Ka = (e) => {
3883
+ }, qa = (e) => {
3879
3884
  const { m2oField: t } = e;
3880
3885
  return t ? /* @__PURE__ */ A(je, { children: [
3881
3886
  /* @__PURE__ */ n(Z, { children: t.value }),
3882
3887
  /* @__PURE__ */ n(Zn, { id: t.id, model: t.model })
3883
3888
  ] }) : /* @__PURE__ */ n(Z, {});
3884
- }, Wa = (e) => {
3889
+ }, za = (e) => {
3885
3890
  const { value: t, context: r, selectionValues: i } = e, [o, s] = w(), [a, l] = w(!1), [d, u] = t ? t.split(",") : [], c = parseInt(u), f = De(async () => {
3886
3891
  if (!t || t && o)
3887
3892
  return;
@@ -3899,14 +3904,14 @@ const $a = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
3899
3904
  }, [t]), !t && !a)
3900
3905
  return /* @__PURE__ */ n(Z, {});
3901
3906
  if (a)
3902
- return /* @__PURE__ */ n(st, {});
3907
+ return /* @__PURE__ */ n(at, {});
3903
3908
  const m = i.get(d);
3904
3909
  return /* @__PURE__ */ A(je, { children: [
3905
3910
  /* @__PURE__ */ n(Z, { children: `${m}:` }),
3906
3911
  /* @__PURE__ */ n(Z, { children: o }),
3907
3912
  /* @__PURE__ */ n(Zn, { id: c, model: d })
3908
3913
  ] });
3909
- }, ja = (e) => {
3914
+ }, Ja = (e) => {
3910
3915
  const { ooui: t, value: r } = e;
3911
3916
  if (!r)
3912
3917
  return null;
@@ -3914,10 +3919,16 @@ const $a = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
3914
3919
  t.selectionValues.size ? i = t.selectionValues.get(r) : Array.isArray(r) && (i = r[1]);
3915
3920
  const o = i.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = nn(i);
3916
3921
  return /* @__PURE__ */ n(ht, { title: i, children: /* @__PURE__ */ n(Dr, { alt: i, style: { backgroundColor: s }, children: o }) });
3917
- }, { useToken: Ya } = Pe;
3918
- at.extend(Ai);
3919
- at.extend(Di);
3920
- const ut = {
3922
+ };
3923
+ nt.extend(Di);
3924
+ nt.extend(ki);
3925
+ nt.extend(Ei);
3926
+ nt.extend(Mi);
3927
+ nt.extend(Ni);
3928
+ nt.extend(Pi);
3929
+ nt.extend(Li);
3930
+ nt.extend(Bi);
3931
+ const { useToken: Xa } = Pe, ut = {
3921
3932
  date: {
3922
3933
  placeholder: "__/__/____",
3923
3934
  dateDisplayFormat: "DD/MM/YYYY",
@@ -3930,9 +3941,9 @@ const ut = {
3930
3941
  }
3931
3942
  }, vo = (e) => {
3932
3943
  const { ooui: t, showTime: r = !1 } = e, { required: i } = t;
3933
- return /* @__PURE__ */ n(ge, { required: i, ...e, children: /* @__PURE__ */ n(Ga, { ooui: t, showTime: r }) });
3934
- }, Ga = (e) => {
3935
- const { value: t, onChange: r, ooui: i, showTime: o } = e, { id: s, readOnly: a, required: l } = i, { token: d } = Ya(), u = l && !a ? { backgroundColor: d.colorPrimaryBg } : void 0, c = o ? "time" : "date", f = (h) => {
3944
+ return /* @__PURE__ */ n(ge, { required: i, ...e, children: /* @__PURE__ */ n(Za, { ooui: t, showTime: r }) });
3945
+ }, Za = (e) => {
3946
+ const { value: t, onChange: r, ooui: i, showTime: o } = e, { id: s, readOnly: a, required: l } = i, { token: d } = Xa(), u = l && !a ? { backgroundColor: d.colorPrimaryBg } : void 0, c = o ? "time" : "date", f = (h) => {
3936
3947
  r == null || r(h);
3937
3948
  }, m = (h) => {
3938
3949
  if (h === null) {
@@ -3940,7 +3951,7 @@ const ut = {
3940
3951
  return;
3941
3952
  }
3942
3953
  f(h.format(ut[c].dateInternalFormat));
3943
- }, p = t ? at(t, ut[c].dateInternalFormat) : void 0;
3954
+ }, p = t ? nt(t, ut[c].dateInternalFormat) : void 0;
3944
3955
  return /* @__PURE__ */ n(
3945
3956
  Pn,
3946
3957
  {
@@ -3955,11 +3966,11 @@ const ut = {
3955
3966
  onChange: m
3956
3967
  }
3957
3968
  );
3958
- }, Ua = Mt.div`
3969
+ }, Qa = Mt.div`
3959
3970
  display: flex;
3960
3971
  align-items: center;
3961
3972
  justify-content: center;
3962
- `, qa = ({
3973
+ `, el = ({
3963
3974
  numberOfVisibleSelectedRows: e,
3964
3975
  totalRecords: t,
3965
3976
  numberOfTotalRows: r,
@@ -3980,7 +3991,7 @@ const ut = {
3980
3991
  "{numberOfSelectedRows}",
3981
3992
  e.toString()
3982
3993
  ) + " ",
3983
- s ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(ki, { onClick: u, style: { fontWeight: 600 }, children: d.selectAllRecords.replace(
3994
+ s ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n($i, { onClick: u, style: { fontWeight: 600 }, children: d.selectAllRecords.replace(
3984
3995
  "{totalRecords}",
3985
3996
  t.toString()
3986
3997
  ) })
@@ -3988,8 +3999,8 @@ const ut = {
3988
3999
  "{totalRecords}",
3989
4000
  o.toString()
3990
4001
  ) + " " });
3991
- return /* @__PURE__ */ n(Ua, { children: o > r ? f : c });
3992
- }, za = (e) => /* @__PURE__ */ n(
4002
+ return /* @__PURE__ */ n(Qa, { children: o > r ? f : c });
4003
+ }, tl = (e) => /* @__PURE__ */ n(
3993
4004
  "div",
3994
4005
  {
3995
4006
  style: {
@@ -3999,23 +4010,23 @@ const ut = {
3999
4010
  },
4000
4011
  children: /* @__PURE__ */ n(Ht, { checked: e, disabled: !0 })
4001
4012
  }
4002
- ), Ja = (e) => /* @__PURE__ */ n(Ka, { m2oField: e }), Xa = (e) => /* @__PURE__ */ n(
4013
+ ), nl = (e) => /* @__PURE__ */ n(qa, { m2oField: e }), rl = (e) => /* @__PURE__ */ n(
4003
4014
  zn,
4004
4015
  {
4005
4016
  content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
4006
4017
  }
4007
- ), Za = (e) => {
4018
+ ), ol = (e) => {
4008
4019
  if (!e || e && e.length === 0)
4009
4020
  return /* @__PURE__ */ n(Z, {});
4010
- const t = at(
4021
+ const t = nt(
4011
4022
  e,
4012
4023
  ut.date.dateInternalFormat
4013
4024
  ).format(ut.date.dateDisplayFormat);
4014
4025
  return /* @__PURE__ */ n(Z, { children: t });
4015
- }, Qa = (e) => {
4026
+ }, il = (e) => {
4016
4027
  if (!e || e && e.length === 0)
4017
4028
  return /* @__PURE__ */ n(Z, {});
4018
- const t = at(
4029
+ const t = nt(
4019
4030
  e,
4020
4031
  ut.time.dateInternalFormat
4021
4032
  ).format(ut.time.dateDisplayFormat);
@@ -4023,20 +4034,20 @@ const ut = {
4023
4034
  }, xr = (e) => {
4024
4035
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
4025
4036
  return /* @__PURE__ */ n(Z, { children: `( ${t} )` });
4026
- }, el = (e) => /* @__PURE__ */ n(yo, { value: e }), tl = (e) => /* @__PURE__ */ n(Z, { children: go(e) }), Sr = (e) => /* @__PURE__ */ n("div", { style: { textAlign: "right" }, children: e }), nl = (e) => /* @__PURE__ */ n(
4037
+ }, sl = (e) => /* @__PURE__ */ n(yo, { value: e }), al = (e) => /* @__PURE__ */ n(Z, { children: go(e) }), Sr = (e) => /* @__PURE__ */ n("div", { style: { textAlign: "right" }, children: e }), ll = (e) => /* @__PURE__ */ n(
4027
4038
  "img",
4028
4039
  {
4029
4040
  src: `data:image/*;base64,${e}`,
4030
4041
  style: { maxWidth: "50px", padding: "5px" }
4031
4042
  }
4032
- ), rl = (e, t, r, i) => /* @__PURE__ */ n(co, { ooui: r, value: e }), ol = (e, t, r, i) => /* @__PURE__ */ n(Z, { children: r.selectionValues.get(e) }), il = (e, t, r, i) => /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ n(
4033
- Wa,
4043
+ ), cl = (e, t, r, i) => /* @__PURE__ */ n(co, { ooui: r, value: e }), dl = (e, t, r, i) => /* @__PURE__ */ n(Z, { children: r.selectionValues.get(e) }), ul = (e, t, r, i) => /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ n(
4044
+ za,
4034
4045
  {
4035
4046
  value: e,
4036
4047
  selectionValues: r.selectionValues,
4037
4048
  context: i
4038
4049
  }
4039
- ) }), sl = (e, t, r, i) => /* @__PURE__ */ n(ja, { ooui: r, value: e });
4050
+ ) }), fl = (e, t, r, i) => /* @__PURE__ */ n(Ja, { ooui: r, value: e });
4040
4051
  function pn(e) {
4041
4052
  var Y;
4042
4053
  const {
@@ -4062,29 +4073,29 @@ function pn(e) {
4062
4073
  readonly: b,
4063
4074
  onSelectAllRecords: O
4064
4075
  } = e, [R, k] = w([]), [x, S] = w([]), I = de(!1), C = de(null), { t: D } = H(he), P = de(r), L = H(
4065
- it
4076
+ st
4066
4077
  ), { title: j = void 0, setTitle: M = void 0 } = (T ? L : {}) || {};
4067
4078
  me(() => {
4068
4079
  C.current = Rt(o);
4069
- const _ = _s(
4080
+ const _ = Ms(
4070
4081
  C.current,
4071
4082
  {
4072
- boolean: za,
4073
- many2one: Ja,
4074
- text: Xa,
4083
+ boolean: tl,
4084
+ many2one: nl,
4085
+ text: rl,
4075
4086
  one2many: xr,
4076
4087
  many2many: xr,
4077
- progressbar: el,
4078
- float_time: tl,
4079
- image: nl,
4088
+ progressbar: sl,
4089
+ float_time: al,
4090
+ image: ll,
4080
4091
  integer: Sr,
4081
4092
  float: Sr,
4082
- reference: il,
4083
- tag: rl,
4084
- selection: ol,
4085
- date: Za,
4086
- datetime: Qa,
4087
- avatar: sl
4093
+ reference: ul,
4094
+ tag: cl,
4095
+ selection: dl,
4096
+ date: ol,
4097
+ datetime: il,
4098
+ avatar: fl
4088
4099
  },
4089
4100
  F
4090
4101
  );
@@ -4103,7 +4114,7 @@ function pn(e) {
4103
4114
  ).length;
4104
4115
  return l ? null : i === void 0 ? /* @__PURE__ */ n(Ae, { className: "pb-4" }) : /* @__PURE__ */ A(be, { align: "bottom", className: "pb-4", children: [
4105
4116
  /* @__PURE__ */ n(ae, { span: O ? 8 : 12, children: /* @__PURE__ */ n(
4106
- Qo,
4117
+ ei,
4107
4118
  {
4108
4119
  total: i,
4109
4120
  pageSize: P.current === 0 ? i : P.current,
@@ -4113,7 +4124,7 @@ function pn(e) {
4113
4124
  }
4114
4125
  ) }),
4115
4126
  O && /* @__PURE__ */ n(ae, { span: 8, className: "text-center", children: /* @__PURE__ */ n(
4116
- qa,
4127
+ el,
4117
4128
  {
4118
4129
  numberOfVisibleSelectedRows: _,
4119
4130
  numberOfRealSelectedRows: ((N = c == null ? void 0 : c.selectedRowKeys) == null ? void 0 : N.length) || 0,
@@ -4138,14 +4149,14 @@ function pn(e) {
4138
4149
  }
4139
4150
  let J, le = f;
4140
4151
  if (C.current !== null) {
4141
- J = La(x, R, 600);
4152
+ J = ja(x, R, 600);
4142
4153
  const N = C.current;
4143
4154
  f && N.columns.some((ee) => ee.sum !== void 0) && (le = f - 30);
4144
4155
  }
4145
4156
  return C.current === null || !J || ((Y = J.columns) == null ? void 0 : Y.length) === 0 ? /* @__PURE__ */ n(Ae, { style: { padding: "2rem" } }) : /* @__PURE__ */ A("div", { children: [
4146
4157
  G(),
4147
4158
  /* @__PURE__ */ n(
4148
- Oi,
4159
+ Ri,
4149
4160
  {
4150
4161
  height: le,
4151
4162
  columns: J.columns,
@@ -4156,9 +4167,9 @@ function pn(e) {
4156
4167
  if (m[_.id])
4157
4168
  return { color: m[_.id] };
4158
4169
  },
4159
- onRowStatus: Vs(p) ? (_) => {
4170
+ onRowStatus: Ns(p) ? (_) => {
4160
4171
  if (p[_.id])
4161
- return /* @__PURE__ */ n(Zo, { color: p[_.id] });
4172
+ return /* @__PURE__ */ n(Qo, { color: p[_.id] });
4162
4173
  } : void 0,
4163
4174
  onRowDoubleClick: d,
4164
4175
  selectionRowKeys: c == null ? void 0 : c.selectedRowKeys,
@@ -4167,9 +4178,9 @@ function pn(e) {
4167
4178
  sorter: g,
4168
4179
  readonly: b,
4169
4180
  expandableOpts: y ? {
4170
- expandIcon: di,
4171
- collapseIcon: ui,
4172
- loadingIcon: st,
4181
+ expandIcon: ui,
4182
+ collapseIcon: fi,
4183
+ loadingIcon: at,
4173
4184
  onFetchChildrenForRecord: y,
4174
4185
  childField: v
4175
4186
  } : void 0
@@ -4178,7 +4189,7 @@ function pn(e) {
4178
4189
  ne()
4179
4190
  ] });
4180
4191
  }
4181
- function al(e, t) {
4192
+ function ml(e, t) {
4182
4193
  const {
4183
4194
  model: r,
4184
4195
  formView: i,
@@ -4194,7 +4205,7 @@ function al(e, t) {
4194
4205
  } = e, [p, h] = w(!1), [g, y] = w(!1), v = de(!1), [T, F] = w(), [b, O] = w(), [R, k] = w(), [x, S] = w(), [I, C] = w(200), D = de(), { height: P } = mn(), L = H(
4195
4206
  Pt
4196
4207
  ), { processAction: j } = L || {}, M = H(
4197
- it
4208
+ st
4198
4209
  ), {
4199
4210
  setResults: B = void 0,
4200
4211
  setCurrentItemIndex: K = void 0,
@@ -4266,7 +4277,7 @@ function al(e, t) {
4266
4277
  })), me(() => {
4267
4278
  g && u && b && (v.current = !1, xe());
4268
4279
  }, [Me, Ke, g, u, a, b]);
4269
- const et = async () => {
4280
+ const Qe = async () => {
4270
4281
  y(!1), h(!0), S(void 0), U == null || U(!0);
4271
4282
  try {
4272
4283
  await We(), y(!0);
@@ -4291,7 +4302,7 @@ function al(e, t) {
4291
4302
  })), k(_e), O(Ge);
4292
4303
  };
4293
4304
  me(() => {
4294
- et();
4305
+ Qe();
4295
4306
  }, [r]);
4296
4307
  const q = (_e) => {
4297
4308
  ke == null || ke(_e);
@@ -4339,7 +4350,7 @@ function al(e, t) {
4339
4350
  function Re() {
4340
4351
  return b != null && b.isExpandable ? P - 160 : P - (I + 210);
4341
4352
  }
4342
- const nt = () => !b || !R ? null : /* @__PURE__ */ A(Z, { children: [
4353
+ const rt = () => !b || !R ? null : /* @__PURE__ */ A(Z, { children: [
4343
4354
  /* @__PURE__ */ n(
4344
4355
  po,
4345
4356
  {
@@ -4388,9 +4399,9 @@ function al(e, t) {
4388
4399
  }
4389
4400
  )
4390
4401
  ] }), qe = x || ye;
4391
- return qe ? /* @__PURE__ */ n(tt, { className: "mt-10", message: qe, type: "error", banner: !0 }) : /* @__PURE__ */ n("div", { style: u ? {} : { display: "none" }, children: p ? /* @__PURE__ */ n(Ae, {}) : nt() });
4402
+ return qe ? /* @__PURE__ */ n(tt, { className: "mt-10", message: qe, type: "error", banner: !0 }) : /* @__PURE__ */ n("div", { style: u ? {} : { display: "none" }, children: p ? /* @__PURE__ */ n(Ae, {}) : rt() });
4392
4403
  }
4393
- const wo = wt(al), bo = (e) => {
4404
+ const wo = wt(ml), bo = (e) => {
4394
4405
  const {
4395
4406
  visible: t,
4396
4407
  onCloseModal: r,
@@ -4484,14 +4495,14 @@ const wo = wt(al), bo = (e) => {
4484
4495
  }
4485
4496
  )
4486
4497
  ] });
4487
- }, { error: ll } = Je, on = (e) => {
4488
- ll({
4498
+ }, { error: hl } = Je, on = (e) => {
4499
+ hl({
4489
4500
  title: "Error",
4490
4501
  icon: /* @__PURE__ */ n(pt, {}),
4491
4502
  centered: !0,
4492
4503
  content: e
4493
4504
  });
4494
- }, { defaultAlgorithm: cl, defaultSeed: dl } = Pe, Co = cl(dl), ul = (e) => {
4505
+ }, { defaultAlgorithm: pl, defaultSeed: gl } = Pe, Co = pl(gl), yl = (e) => {
4495
4506
  const { ooui: t } = e, { required: r } = t;
4496
4507
  return /* @__PURE__ */ n(ge, { required: r, type: "array", validator: async (o, s) => {
4497
4508
  if (!s)
@@ -4592,7 +4603,7 @@ const wo = wt(al), bo = (e) => {
4592
4603
  }
4593
4604
  return /* @__PURE__ */ A(be, { gutter: 8, wrap: !1, children: [
4594
4605
  /* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
4595
- o && !a ? fl : ot,
4606
+ o && !a ? vl : it,
4596
4607
  {
4597
4608
  type: "text",
4598
4609
  value: b,
@@ -4626,7 +4637,7 @@ const wo = wt(al), bo = (e) => {
4626
4637
  /* @__PURE__ */ n(ae, { flex: "32px", style: { paddingLeft: 0 }, children: /* @__PURE__ */ n(
4627
4638
  Oe,
4628
4639
  {
4629
- icon: g ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Wn, {}),
4640
+ icon: g ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(Wn, {}),
4630
4641
  disabled: a || g,
4631
4642
  onClick: () => {
4632
4643
  F.current = !0, ne(B);
@@ -4669,13 +4680,13 @@ const wo = wt(al), bo = (e) => {
4669
4680
  }
4670
4681
  )
4671
4682
  ] });
4672
- }, fl = Mt(ot)`
4683
+ }, vl = Mt(it)`
4673
4684
  .ant-input {
4674
4685
  background-color: ${Co.colorPrimaryBg};
4675
4686
  }
4676
- `, So = Qe.createContext(
4687
+ `, So = et.createContext(
4677
4688
  null
4678
- ), ml = ({
4689
+ ), wl = ({
4679
4690
  children: e,
4680
4691
  initialView: t
4681
4692
  }) => {
@@ -4694,7 +4705,7 @@ const wo = wt(al), bo = (e) => {
4694
4705
  children: e
4695
4706
  }
4696
4707
  );
4697
- }, { getValueForOperator: Tr } = Lr, sn = 0.7, an = 30, hl = (e) => {
4708
+ }, { getValueForOperator: Tr } = Lr, sn = 0.7, an = 30, bl = (e) => {
4698
4709
  const {
4699
4710
  model: t,
4700
4711
  domain: r,
@@ -4803,7 +4814,7 @@ const wo = wt(al), bo = (e) => {
4803
4814
  }
4804
4815
  p(!1);
4805
4816
  }
4806
- return D ? /* @__PURE__ */ n(tt, { className: "mt-10", message: D, type: "error", banner: !0 }) : m ? /* @__PURE__ */ n("div", { style: { padding: "1rem" }, children: /* @__PURE__ */ n(st, { style: { height: "12px" } }) }) : /* @__PURE__ */ n(
4817
+ return D ? /* @__PURE__ */ n(tt, { className: "mt-10", message: D, type: "error", banner: !0 }) : m ? /* @__PURE__ */ n("div", { style: { padding: "1rem" }, children: /* @__PURE__ */ n(at, { style: { height: "12px" } }) }) : /* @__PURE__ */ n(
4807
4818
  Jn,
4808
4819
  {
4809
4820
  bounds: !0,
@@ -4812,7 +4823,7 @@ const wo = wt(al), bo = (e) => {
4812
4823
  O((K = B.bounds) == null ? void 0 : K.height), k((V = B.bounds) == null ? void 0 : V.width);
4813
4824
  },
4814
4825
  children: ({ measureRef: B }) => a ? /* @__PURE__ */ n(
4815
- gl,
4826
+ xl,
4816
4827
  {
4817
4828
  value: h,
4818
4829
  total: T,
@@ -4825,7 +4836,7 @@ const wo = wt(al), bo = (e) => {
4825
4836
  suffix: d
4826
4837
  }
4827
4838
  ) : /* @__PURE__ */ n(
4828
- pl,
4839
+ Cl,
4829
4840
  {
4830
4841
  value: h,
4831
4842
  total: T,
@@ -4844,7 +4855,7 @@ function To(e, t) {
4844
4855
  const i = document.createElement("canvas").getContext("2d");
4845
4856
  return i.font = t || getComputedStyle(document.body).font, i.measureText(e).width;
4846
4857
  }
4847
- function pl({
4858
+ function Cl({
4848
4859
  measureRef: e,
4849
4860
  width: t,
4850
4861
  height: r,
@@ -4885,7 +4896,7 @@ function pl({
4885
4896
  }
4886
4897
  );
4887
4898
  }
4888
- function gl({
4899
+ function xl({
4889
4900
  measureRef: e,
4890
4901
  height: t,
4891
4902
  width: r,
@@ -4955,22 +4966,22 @@ const In = (e) => (t) => {
4955
4966
  });
4956
4967
  return { name: e === "pie" ? t.x : t.type, value: r };
4957
4968
  }, Qt = (e) => {
4958
- if (typeof e == "string" && yl(e))
4969
+ if (typeof e == "string" && Sl(e))
4959
4970
  return parseFloat(e).toLocaleString("es-ES", {
4960
4971
  useGrouping: !0
4961
4972
  });
4962
- if (vl(e))
4973
+ if (Tl(e))
4963
4974
  return e.toLocaleString("es-ES", {
4964
4975
  useGrouping: !0
4965
4976
  });
4966
- if (wl(e)) {
4967
- const t = bl(e);
4968
- return t === null ? e : at(e, ln.input[t]).format(
4977
+ if (Il(e)) {
4978
+ const t = Fl(e);
4979
+ return t === null ? e : nt(e, ln.input[t]).format(
4969
4980
  ln.output[t]
4970
4981
  );
4971
4982
  } else
4972
4983
  return e;
4973
- }, yl = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), vl = (e) => typeof e == "number" && !isNaN(e), Ir = {
4984
+ }, Sl = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Tl = (e) => typeof e == "number" && !isNaN(e), Ir = {
4974
4985
  default: {
4975
4986
  padding: "auto",
4976
4987
  xAxis: {
@@ -5052,7 +5063,7 @@ const In = (e) => (t) => {
5052
5063
  }
5053
5064
  }
5054
5065
  };
5055
- function wl(e) {
5066
+ function Il(e) {
5056
5067
  return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
5057
5068
  }
5058
5069
  const ln = {
@@ -5071,9 +5082,9 @@ const ln = {
5071
5082
  years: "YYYY"
5072
5083
  }
5073
5084
  };
5074
- function bl(e) {
5085
+ function Fl(e) {
5075
5086
  for (const t in ln.input)
5076
- if (at(
5087
+ if (nt(
5077
5088
  e,
5078
5089
  ln.input[t],
5079
5090
  !0
@@ -5081,7 +5092,7 @@ function bl(e) {
5081
5092
  return t;
5082
5093
  return null;
5083
5094
  }
5084
- const { processGraphData: Cl } = Lr, { getFieldsToRetrieve: xl } = ai, Sl = (e) => {
5095
+ const { processGraphData: Ol } = Lr, { getFieldsToRetrieve: Rl } = li, _l = (e) => {
5085
5096
  const {
5086
5097
  model: t,
5087
5098
  domain: r = [],
@@ -5096,10 +5107,10 @@ const { processGraphData: Cl } = Lr, { getFieldsToRetrieve: xl } = ai, Sl = (e)
5096
5107
  u(!0), f(void 0);
5097
5108
  const T = Bn(o);
5098
5109
  v(T.type || "line");
5099
- const F = xl({ ooui: T });
5110
+ const F = Rl({ ooui: T });
5100
5111
  let b, O;
5101
5112
  try {
5102
- ({ values: b, fields: O } = await Il({
5113
+ ({ values: b, fields: O } = await Al({
5103
5114
  model: t,
5104
5115
  domain: r,
5105
5116
  context: i,
@@ -5118,7 +5129,7 @@ const { processGraphData: Cl } = Lr, { getFieldsToRetrieve: xl } = ai, Sl = (e)
5118
5129
  return;
5119
5130
  }
5120
5131
  g(b);
5121
- const R = Cl({
5132
+ const R = Ol({
5122
5133
  ooui: T,
5123
5134
  values: b,
5124
5135
  fields: O,
@@ -5141,7 +5152,7 @@ const { processGraphData: Cl } = Lr, { getFieldsToRetrieve: xl } = ai, Sl = (e)
5141
5152
  evaluatedEntries: h
5142
5153
  };
5143
5154
  };
5144
- async function Tl({
5155
+ async function Vl({
5145
5156
  model: e,
5146
5157
  context: t,
5147
5158
  fields: r
@@ -5152,7 +5163,7 @@ async function Tl({
5152
5163
  fields: r
5153
5164
  });
5154
5165
  }
5155
- async function Il({
5166
+ async function Al({
5156
5167
  fields: e,
5157
5168
  model: t,
5158
5169
  domain: r,
@@ -5161,7 +5172,7 @@ async function Il({
5161
5172
  limit: s,
5162
5173
  manualIds: a
5163
5174
  }) {
5164
- const l = await Tl({ model: t, context: i, fields: e });
5175
+ const l = await Vl({ model: t, context: i, fields: e });
5165
5176
  if (a) {
5166
5177
  let u = await E.getHandler().readObjects({
5167
5178
  model: t,
@@ -5186,13 +5197,13 @@ async function Il({
5186
5197
  fields: l
5187
5198
  };
5188
5199
  }
5189
- const Fl = {
5190
- line: Ti,
5191
- bar: Ii,
5192
- pie: Fi
5193
- }, Ol = (e) => {
5200
+ const Dl = {
5201
+ line: Ii,
5202
+ bar: Fi,
5203
+ pie: Oi
5204
+ }, kl = (e) => {
5194
5205
  var v;
5195
- const { model: t, domain: r, context: i, xml: o, limit: s, manualIds: a } = e, { t: l } = H(he), { error: d, loading: u, values: c, type: f, evaluatedEntries: m } = Sl({
5206
+ const { model: t, domain: r, context: i, xml: o, limit: s, manualIds: a } = e, { t: l } = H(he), { error: d, loading: u, values: c, type: f, evaluatedEntries: m } = _l({
5196
5207
  model: t,
5197
5208
  xml: o,
5198
5209
  limit: s,
@@ -5207,7 +5218,7 @@ const Fl = {
5207
5218
  return /* @__PURE__ */ n(Ae, {});
5208
5219
  if (!c)
5209
5220
  return /* @__PURE__ */ n(tt, { message: "No data to display", type: "info" });
5210
- const { data: p, isGroup: h, isStack: g } = c, y = Fl[f];
5221
+ const { data: p, isGroup: h, isStack: g } = c, y = Dl[f];
5211
5222
  return y ? /* @__PURE__ */ A("div", { style: { padding: "1rem" }, children: [
5212
5223
  /* @__PURE__ */ n("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(v = m == null ? void 0 : m.length) == null ? void 0 : v.toLocaleString(
5213
5224
  "es-ES",
@@ -5218,7 +5229,7 @@ const Fl = {
5218
5229
  /* @__PURE__ */ n(
5219
5230
  y,
5220
5231
  {
5221
- ...Rl({
5232
+ ...El({
5222
5233
  type: f,
5223
5234
  data: p,
5224
5235
  isGroup: h,
@@ -5228,14 +5239,14 @@ const Fl = {
5228
5239
  )
5229
5240
  ] }) : /* @__PURE__ */ n(Z, { children: `Unknown graph type: ${f}` });
5230
5241
  };
5231
- function Rl(e) {
5242
+ function El(e) {
5232
5243
  const { type: t, data: r, isGroup: i, isStack: o } = e;
5233
5244
  let s = Ir[t];
5234
5245
  return s || (s = Ir.default), s.data = r, t === "pie" ? (s.colorField = "x", s.angleField = "value") : (s.xField = "x", s.yField = "value", s.seriesField = "type", s.isGroup = i, o && (s.isStack = !0, s.groupField = "stacked")), s;
5235
5246
  }
5236
- const _l = (e, t) => {
5247
+ const Ml = (e, t) => {
5237
5248
  const { view_id: r, model: i, context: o, domain: s, limit: a, manualIds: l } = e, [d, u] = w(!1), [c, f] = w(), [m, p] = w(), h = H(
5238
- it
5249
+ st
5239
5250
  ), { setGraphIsLoading: g = void 0 } = h || {};
5240
5251
  bt(t, () => ({
5241
5252
  refresh: () => {
@@ -5273,7 +5284,7 @@ const _l = (e, t) => {
5273
5284
  alignContent: "center",
5274
5285
  padding: "1rem"
5275
5286
  },
5276
- children: /* @__PURE__ */ n(st, { style: { height: "12px" } })
5287
+ children: /* @__PURE__ */ n(at, { style: { height: "12px" } })
5277
5288
  }
5278
5289
  );
5279
5290
  if (!c)
@@ -5286,7 +5297,7 @@ const _l = (e, t) => {
5286
5297
  operator: v.operator
5287
5298
  } : {};
5288
5299
  return /* @__PURE__ */ n(
5289
- hl,
5300
+ bl,
5290
5301
  {
5291
5302
  showPercent: v.showPercent,
5292
5303
  totalDomain: v.totalDomain,
@@ -5305,7 +5316,7 @@ const _l = (e, t) => {
5305
5316
  case "bar":
5306
5317
  case "pie":
5307
5318
  return /* @__PURE__ */ n(
5308
- Ol,
5319
+ kl,
5309
5320
  {
5310
5321
  model: i,
5311
5322
  context: o,
@@ -5318,8 +5329,8 @@ const _l = (e, t) => {
5318
5329
  default:
5319
5330
  return /* @__PURE__ */ n(Z, { children: `Graph ${c.type} not implemented` });
5320
5331
  }
5321
- }, gn = wt(_l), { confirm: Vl } = Je, Al = ({ onOk: e, lang: t }) => {
5322
- Vl({
5332
+ }, gn = wt(Ml), { confirm: Nl } = Je, Pl = ({ onOk: e, lang: t }) => {
5333
+ Nl({
5323
5334
  title: Fe("removeItems", t),
5324
5335
  icon: /* @__PURE__ */ n(pt, {}),
5325
5336
  centered: !0,
@@ -5328,8 +5339,8 @@ const _l = (e, t) => {
5328
5339
  onOk: e,
5329
5340
  cancelText: Fe("cancel", t)
5330
5341
  });
5331
- }, { confirm: Dl } = Je, kl = ({ onOk: e, lang: t }) => {
5332
- Dl({
5342
+ }, { confirm: Ll } = Je, Bl = ({ onOk: e, lang: t }) => {
5343
+ Ll({
5333
5344
  title: Fe("unlinkItems", t),
5334
5345
  icon: /* @__PURE__ */ n(pt, {}),
5335
5346
  centered: !0,
@@ -5338,7 +5349,7 @@ const _l = (e, t) => {
5338
5349
  onOk: e,
5339
5350
  cancelText: Fe("cancel", t)
5340
5351
  });
5341
- }, { useToken: El } = Pe, Ml = (e) => {
5352
+ }, { useToken: $l } = Pe, Hl = (e) => {
5342
5353
  const {
5343
5354
  title: t,
5344
5355
  readOnly: r,
@@ -5355,7 +5366,7 @@ const _l = (e, t) => {
5355
5366
  selectedRowKeys: p,
5356
5367
  showCreateButton: h,
5357
5368
  showToggleButton: g
5358
- } = e, { token: y } = El();
5369
+ } = e, { token: y } = $l();
5359
5370
  function v() {
5360
5371
  return /* @__PURE__ */ n("div", { className: "inline-block w-3" });
5361
5372
  }
@@ -5377,7 +5388,7 @@ const _l = (e, t) => {
5377
5388
  Ze,
5378
5389
  {
5379
5390
  tooltip: f ? "Unlink" : "Delete",
5380
- icon: f ? /* @__PURE__ */ n(mi, {}) : /* @__PURE__ */ n(Gn, {}),
5391
+ icon: f ? /* @__PURE__ */ n(hi, {}) : /* @__PURE__ */ n(Gn, {}),
5381
5392
  onClick: a,
5382
5393
  disabled: l === 0 || r || s !== "form" && p.length === 0
5383
5394
  }
@@ -5444,25 +5455,25 @@ const _l = (e, t) => {
5444
5455
  Ze,
5445
5456
  {
5446
5457
  tooltip: "Toggle view mode",
5447
- icon: /* @__PURE__ */ n(fi, {}),
5458
+ icon: /* @__PURE__ */ n(mi, {}),
5448
5459
  onClick: o
5449
5460
  }
5450
5461
  )
5451
5462
  ] })
5452
5463
  ] });
5453
- }, Nl = {
5464
+ }, Kl = {
5454
5465
  form: Nr,
5455
5466
  tree: Er,
5456
5467
  graph: gn
5457
5468
  };
5458
- function Pl(e) {
5469
+ function Wl(e) {
5459
5470
  const t = e.map((i) => i.id);
5460
5471
  return e.filter((i, o) => {
5461
5472
  const { id: s } = i;
5462
5473
  return !t.includes(s, o + 1);
5463
5474
  });
5464
5475
  }
5465
- const Ll = (e) => {
5476
+ const jl = (e) => {
5466
5477
  var We;
5467
5478
  const { value: t, onChange: r, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = H(
5468
5479
  So
@@ -5491,7 +5502,7 @@ const Ll = (e) => {
5491
5502
  var ie, Se;
5492
5503
  r == null || r({
5493
5504
  fields: ((ie = o.get("form")) == null ? void 0 : ie.fields) || ((Se = o.get("tree")) == null ? void 0 : Se.fields),
5494
- items: Pl(q)
5505
+ items: Wl(q)
5495
5506
  });
5496
5507
  }, Ye = async () => {
5497
5508
  await ke(), d > X.length - 1 && d !== 0 && u(0);
@@ -5512,7 +5523,7 @@ const Ll = (e) => {
5512
5523
  context: { ...h == null ? void 0 : h(), ...N },
5513
5524
  currentView: q || a
5514
5525
  });
5515
- return ne.current || (ne.current = Te.map((nt) => nt.id)), (a || q) === "tree" && Re && le(Re), we(Te), Te;
5526
+ return ne.current || (ne.current = Te.map((rt) => rt.id)), (a || q) === "tree" && Re && le(Re), we(Te), Te;
5516
5527
  } catch (Te) {
5517
5528
  k(Te);
5518
5529
  } finally {
@@ -5576,7 +5587,7 @@ const Ll = (e) => {
5576
5587
  }) : q();
5577
5588
  }, Me = () => {
5578
5589
  if (ce) {
5579
- kl({
5590
+ Bl({
5580
5591
  lang: y,
5581
5592
  onOk: () => {
5582
5593
  a === "form" ? ve() : Ve();
@@ -5584,7 +5595,7 @@ const Ll = (e) => {
5584
5595
  });
5585
5596
  return;
5586
5597
  }
5587
- Al({
5598
+ Pl({
5588
5599
  lang: y,
5589
5600
  onOk: () => {
5590
5601
  a === "form" ? ve() : Ve();
@@ -5647,7 +5658,7 @@ const Ll = (e) => {
5647
5658
  treeValues: { ...Se, id: q }
5648
5659
  } : Re);
5649
5660
  else {
5650
- const Re = As(s);
5661
+ const Re = Ps(s);
5651
5662
  Te = s.concat({
5652
5663
  id: Re,
5653
5664
  operation: "pendingCreate",
@@ -5692,7 +5703,7 @@ const Ll = (e) => {
5692
5703
  }
5693
5704
  };
5694
5705
  function $e() {
5695
- const q = Nl[a];
5706
+ const q = Kl[a];
5696
5707
  if (a === "graph")
5697
5708
  return Bn(o.get("graph").arch).string;
5698
5709
  {
@@ -5714,11 +5725,11 @@ const Ll = (e) => {
5714
5725
  submitMode: "values",
5715
5726
  onFieldsChange: (Re) => {
5716
5727
  var _e;
5717
- const nt = (_e = X[d]) == null ? void 0 : _e.id, qe = s.map((Ge) => Ge.id === nt ? {
5728
+ const rt = (_e = X[d]) == null ? void 0 : _e.id, qe = s.map((Ge) => Ge.id === rt ? {
5718
5729
  ...Ge,
5719
5730
  operation: Ge.operation === "original" ? "pendingUpdate" : Ge.operation,
5720
- values: { ...Re, id: nt },
5721
- treeValues: { ...Re, id: nt }
5731
+ values: { ...Re, id: rt },
5732
+ treeValues: { ...Re, id: rt }
5722
5733
  } : Ge);
5723
5734
  we(qe), F(!0);
5724
5735
  },
@@ -5771,10 +5782,10 @@ const Ll = (e) => {
5771
5782
  };
5772
5783
  if (R)
5773
5784
  return /* @__PURE__ */ n(tt, { className: "mt-10", message: R, type: "error", banner: !0 });
5774
- const et = M;
5785
+ const Qe = M;
5775
5786
  return b ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ A(Z, { children: [
5776
5787
  /* @__PURE__ */ n(
5777
- Ml,
5788
+ Hl,
5778
5789
  {
5779
5790
  mode: a,
5780
5791
  title: $e(),
@@ -5811,7 +5822,7 @@ const Ll = (e) => {
5811
5822
  B(!1), S(!1);
5812
5823
  },
5813
5824
  readOnly: Y,
5814
- mustClearAfterSave: et
5825
+ mustClearAfterSave: Qe
5815
5826
  }
5816
5827
  ),
5817
5828
  /* @__PURE__ */ n(
@@ -5830,7 +5841,7 @@ const Ll = (e) => {
5830
5841
  }
5831
5842
  )
5832
5843
  ] });
5833
- }, Bl = (e) => {
5844
+ }, Yl = (e) => {
5834
5845
  const { ooui: t } = e, { mode: r, relation: i, views: o, required: s, context: a } = t;
5835
5846
  let l;
5836
5847
  const [d, u] = w(!0), [c, f] = w(), [m, p] = w(/* @__PURE__ */ new Map()), h = H(Ne), { getContext: g } = h || {};
@@ -5860,7 +5871,7 @@ const Ll = (e) => {
5860
5871
  u(!1);
5861
5872
  }
5862
5873
  };
5863
- return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(Ae, {}) : c ? /* @__PURE__ */ n(tt, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ n(ml, { initialView: l, children: /* @__PURE__ */ n(
5874
+ return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(Ae, {}) : c ? /* @__PURE__ */ n(tt, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ n(wl, { initialView: l, children: /* @__PURE__ */ n(
5864
5875
  ge,
5865
5876
  {
5866
5877
  required: s,
@@ -5876,14 +5887,14 @@ const Ll = (e) => {
5876
5887
  throw new Error();
5877
5888
  },
5878
5889
  ...e,
5879
- children: /* @__PURE__ */ n(Ll, { ooui: t, views: m })
5890
+ children: /* @__PURE__ */ n(jl, { ooui: t, views: m })
5880
5891
  }
5881
5892
  ) });
5882
- }, { useToken: $l } = Pe, Hl = (e) => {
5893
+ }, { useToken: Gl } = Pe, Ul = (e) => {
5883
5894
  const { ooui: t } = e, { required: r } = t;
5884
- return /* @__PURE__ */ n(ge, { required: r, type: "number", ...e, children: /* @__PURE__ */ n(Kl, { ooui: t }) });
5885
- }, Kl = (e) => {
5886
- const { ooui: t, value: r, onChange: i } = e, { id: o, readOnly: s, required: a } = t, { token: l } = $l(), d = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(), [c, f] = w(), m = H(Ne), { elementHasLostFocus: p } = m || {};
5895
+ return /* @__PURE__ */ n(ge, { required: r, type: "number", ...e, children: /* @__PURE__ */ n(ql, { ooui: t }) });
5896
+ }, ql = (e) => {
5897
+ const { ooui: t, value: r, onChange: i } = e, { id: o, readOnly: s, required: a } = t, { token: l } = Gl(), d = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(), [c, f] = w(), m = H(Ne), { elementHasLostFocus: p } = m || {};
5887
5898
  me(() => {
5888
5899
  f(go(r));
5889
5900
  }, [r]);
@@ -5894,10 +5905,10 @@ const Ll = (e) => {
5894
5905
  u.current = v.target.value, f(v.target.value);
5895
5906
  }
5896
5907
  async function y() {
5897
- h(Ba(c)), await new Promise((v) => setTimeout(v, 300)), p == null || p();
5908
+ h(Ya(c)), await new Promise((v) => setTimeout(v, 300)), p == null || p();
5898
5909
  }
5899
5910
  return /* @__PURE__ */ n(
5900
- ot,
5911
+ it,
5901
5912
  {
5902
5913
  value: c,
5903
5914
  disabled: s,
@@ -5912,7 +5923,7 @@ const Ll = (e) => {
5912
5923
  };
5913
5924
  function Io(e) {
5914
5925
  const { ooui: t, showLabel: r = !0, responsiveBehaviour: i } = e, o = ct(t.icon || "");
5915
- return /* @__PURE__ */ n(Z, { children: (t.label || o) && r ? /* @__PURE__ */ n(Mi, { label: t.label, icon: o, children: /* @__PURE__ */ n(
5926
+ return /* @__PURE__ */ n(Z, { children: (t.label || o) && r ? /* @__PURE__ */ n(Ki, { label: t.label, icon: o, children: /* @__PURE__ */ n(
5916
5927
  Dn,
5917
5928
  {
5918
5929
  container: t.container,
@@ -5926,8 +5937,8 @@ function Io(e) {
5926
5937
  }
5927
5938
  ) });
5928
5939
  }
5929
- const { TabPane: Wl } = kr;
5930
- function jl(e) {
5940
+ const { TabPane: zl } = kr;
5941
+ function Jl(e) {
5931
5942
  const { ooui: t, responsiveBehaviour: r } = e, i = t.pages;
5932
5943
  function o(s) {
5933
5944
  if (s) {
@@ -5936,7 +5947,7 @@ function jl(e) {
5936
5947
  }
5937
5948
  }
5938
5949
  return /* @__PURE__ */ n(kr, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(
5939
- Wl,
5950
+ zl,
5940
5951
  {
5941
5952
  tab: /* @__PURE__ */ A(Z, { children: [
5942
5953
  o(s.icon),
@@ -5955,10 +5966,10 @@ function jl(e) {
5955
5966
  s.label
5956
5967
  )) });
5957
5968
  }
5958
- const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
5959
- const { ooui: t } = e, { id: r, readOnly: i, required: o, height: s, translatable: a } = t, { token: l } = Yl(), d = o && !i ? { backgroundColor: l.colorPrimaryBg } : void 0, u = H(Ne), { elementHasLostFocus: c } = u || {};
5969
+ const { useToken: Xl } = Pe, { TextArea: kn } = it, Zl = (e) => {
5970
+ const { ooui: t } = e, { id: r, readOnly: i, required: o, height: s, translatable: a } = t, { token: l } = Xl(), d = o && !i ? { backgroundColor: l.colorPrimaryBg } : void 0, u = H(Ne), { elementHasLostFocus: c } = u || {};
5960
5971
  return /* @__PURE__ */ n(ge, { required: o, ...e, children: a ? /* @__PURE__ */ n(
5961
- Ul,
5972
+ Ql,
5962
5973
  {
5963
5974
  field: r,
5964
5975
  height: s,
@@ -5976,7 +5987,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
5976
5987
  onBlur: c
5977
5988
  }
5978
5989
  ) });
5979
- }, Ul = ({
5990
+ }, Ql = ({
5980
5991
  value: e,
5981
5992
  field: t,
5982
5993
  requiredStyle: r,
@@ -6066,13 +6077,13 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6066
6077
  }
6067
6078
  ) })
6068
6079
  ] });
6069
- }, ql = (e) => {
6080
+ }, ec = (e) => {
6070
6081
  const { ooui: t } = e, { label: r, icon: i } = t, o = ct(i || "");
6071
6082
  return /* @__PURE__ */ n(cn, { orientation: "left", className: "text-sm", children: (o || r) && /* @__PURE__ */ A(je, { children: [
6072
6083
  o ? /* @__PURE__ */ n(o, {}) : null,
6073
6084
  r
6074
6085
  ] }) });
6075
- }, zl = ({
6086
+ }, tc = ({
6076
6087
  model: e,
6077
6088
  context: t,
6078
6089
  locale: r,
@@ -6093,7 +6104,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6093
6104
  ]);
6094
6105
  const { datas: T } = await E.getHandler().exportData({
6095
6106
  model: e,
6096
- fields: tc({
6107
+ fields: ac({
6097
6108
  keys: y.selectedKeys,
6098
6109
  fields: l.current
6099
6110
  }),
@@ -6122,7 +6133,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6122
6133
  fields: []
6123
6134
  });
6124
6135
  for (const [O, R] of Object.entries(b))
6125
- b[O].string = Xl({
6136
+ b[O].string = rc({
6126
6137
  parentTitle: T.string,
6127
6138
  title: R.string
6128
6139
  });
@@ -6133,7 +6144,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6133
6144
  },
6134
6145
  [l.current, e, t]
6135
6146
  ), m = De(async () => {
6136
- const y = await Zl({ model: e, context: t }), v = await ec({
6147
+ const y = await oc({ model: e, context: t }), v = await sc({
6137
6148
  predefinedExports: y,
6138
6149
  fields: l.current,
6139
6150
  onGetFieldChilds: f
@@ -6216,7 +6227,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6216
6227
  continue;
6217
6228
  const s = Fo(o);
6218
6229
  r.push({
6219
- key: Jl({ key: i, parentKey: t }),
6230
+ key: nc({ key: i, parentKey: t }),
6220
6231
  title: o.string,
6221
6232
  tooltip: o.help,
6222
6233
  required: o.required,
@@ -6224,7 +6235,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6224
6235
  });
6225
6236
  }
6226
6237
  return r;
6227
- }, Fo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Jl = ({
6238
+ }, Fo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", nc = ({
6228
6239
  parentKey: e,
6229
6240
  key: t
6230
6241
  }) => `${e ? e + "/" : ""}${t}`, $t = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), En = (e) => {
@@ -6232,10 +6243,10 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6232
6243
  return e;
6233
6244
  const t = e.split("/");
6234
6245
  return t[t.length - 1];
6235
- }, Mn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[$t(e)], Xl = ({
6246
+ }, Mn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[$t(e)], rc = ({
6236
6247
  title: e,
6237
6248
  parentTitle: t
6238
- }) => `${t ? t + " → " : ""}${e}`, Zl = async ({
6249
+ }) => `${t ? t + " → " : ""}${e}`, oc = async ({
6239
6250
  model: e,
6240
6251
  context: t
6241
6252
  }) => {
@@ -6255,10 +6266,10 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6255
6266
  key: o.find((d) => d.id === a).name
6256
6267
  }))
6257
6268
  }));
6258
- }, Ql = ({
6269
+ }, ic = ({
6259
6270
  fields: e,
6260
6271
  keys: t
6261
- }) => nc([
6272
+ }) => lc([
6262
6273
  ...new Set(
6263
6274
  t.filter((r) => {
6264
6275
  var i, o, s;
@@ -6272,27 +6283,27 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6272
6283
  }
6273
6284
  }).map((r) => $t(r))
6274
6285
  )
6275
- ]), ec = async ({
6286
+ ]), sc = async ({
6276
6287
  predefinedExports: e,
6277
6288
  fields: t,
6278
6289
  onGetFieldChilds: r
6279
6290
  }) => {
6280
6291
  const i = e.flatMap(
6281
6292
  (a) => a.fields.map((l) => l.key)
6282
- ), o = Ql({
6293
+ ), o = ic({
6283
6294
  fields: t,
6284
6295
  keys: i
6285
6296
  }), s = [];
6286
6297
  for (const a of o)
6287
6298
  s.push({ key: a, childs: await r(a) });
6288
6299
  return s;
6289
- }, tc = ({
6300
+ }, ac = ({
6290
6301
  keys: e,
6291
6302
  fields: t
6292
6303
  }) => e.map((r) => {
6293
6304
  const i = En(r), s = Mn(r, t)[i];
6294
6305
  return Fo(s) ? `${r}/id` : r;
6295
- }), nc = (e) => {
6306
+ }), lc = (e) => {
6296
6307
  const t = /* @__PURE__ */ new Map(), r = [];
6297
6308
  for (const i of e) {
6298
6309
  const o = i.split("/");
@@ -6306,7 +6317,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6306
6317
  const s = i.split("/").length, a = o.split("/").length;
6307
6318
  return s - a;
6308
6319
  }), r;
6309
- }, rc = (e) => {
6320
+ }, cc = (e) => {
6310
6321
  const {
6311
6322
  visible: t,
6312
6323
  locale: r,
@@ -6325,7 +6336,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6325
6336
  onGetPredefinedExports: h,
6326
6337
  onSavePredefinedExport: g,
6327
6338
  onRemovePredefinedExport: y
6328
- } = zl({
6339
+ } = tc({
6329
6340
  model: o,
6330
6341
  context: s,
6331
6342
  domain: d,
@@ -6335,7 +6346,7 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6335
6346
  locale: r
6336
6347
  });
6337
6348
  return /* @__PURE__ */ n(
6338
- Ni,
6349
+ Wi,
6339
6350
  {
6340
6351
  visible: t,
6341
6352
  locale: r,
@@ -6351,29 +6362,27 @@ const { useToken: Yl } = Pe, { TextArea: kn } = ot, Gl = (e) => {
6351
6362
  onRemovePredefinedExport: y
6352
6363
  }
6353
6364
  );
6354
- }, oc = (e) => {
6365
+ }, dc = (e) => {
6355
6366
  const { ooui: t } = e;
6356
6367
  return /* @__PURE__ */ n(vo, { ooui: t });
6357
- }, ic = (e) => {
6368
+ }, uc = (e) => {
6358
6369
  const { ooui: t } = e;
6359
6370
  return /* @__PURE__ */ n(vo, { ooui: t, showTime: !0 });
6360
- };
6361
- at.extend(Pi);
6362
- const sc = (e) => {
6371
+ }, fc = (e) => {
6363
6372
  const { ooui: t } = e;
6364
- return /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(ac, { ooui: t }) });
6365
- }, ac = (e) => /* @__PURE__ */ n(
6373
+ return /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(mc, { ooui: t }) });
6374
+ }, mc = (e) => /* @__PURE__ */ n(
6366
6375
  Vr,
6367
6376
  {
6368
6377
  onChange: (r, i) => {
6369
6378
  e.onChange && e.onChange(i);
6370
6379
  },
6371
- value: e.value ? at(e.value, "HH:mm:ss") : void 0
6380
+ value: e.value ? nt(e.value, "HH:mm:ss") : void 0
6372
6381
  }
6373
- ), lc = (e) => {
6382
+ ), hc = (e) => {
6374
6383
  const { ooui: t } = e, { required: r } = t;
6375
- return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(cc, { ooui: t }) });
6376
- }, cc = (e) => {
6384
+ return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(pc, { ooui: t }) });
6385
+ }, pc = (e) => {
6377
6386
  const { value: t, onChange: r, ooui: i } = e, { required: o, selectionValues: s, readOnly: a } = i, l = t == null ? void 0 : t.split(","), [d, u] = w([]), [c, f] = w();
6378
6387
  return me(() => {
6379
6388
  if (!t) {
@@ -6420,11 +6429,11 @@ const sc = (e) => {
6420
6429
  }
6421
6430
  ) })
6422
6431
  ] });
6423
- }, { useToken: dc } = Pe, uc = (e) => {
6432
+ }, { useToken: gc } = Pe, yc = (e) => {
6424
6433
  const { ooui: t } = e, { required: r } = t;
6425
- return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(fc, { ooui: t }) });
6426
- }, fc = (e) => {
6427
- const { ooui: t, value: r, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = dc(), d = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(null), { setFieldValue: c, getFieldValue: f } = H(Ne) || {}, { t: m } = H(he), p = r ? Ts(r) : "", h = (F) => {
6434
+ return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(vc, { ooui: t }) });
6435
+ }, vc = (e) => {
6436
+ const { ooui: t, value: r, onChange: i } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = gc(), d = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(null), { setFieldValue: c, getFieldValue: f } = H(Ne) || {}, { t: m } = H(he), p = r ? Vs(r) : "", h = (F) => {
6428
6437
  i == null || i(F);
6429
6438
  };
6430
6439
  async function g() {
@@ -6456,7 +6465,7 @@ const sc = (e) => {
6456
6465
  }
6457
6466
  ),
6458
6467
  /* @__PURE__ */ n(
6459
- ot,
6468
+ it,
6460
6469
  {
6461
6470
  type: "text",
6462
6471
  disabled: !0,
@@ -6477,7 +6486,7 @@ const sc = (e) => {
6477
6486
  children: "Select"
6478
6487
  }
6479
6488
  ),
6480
- /* @__PURE__ */ n(Oe, { icon: /* @__PURE__ */ n(hi, {}), disabled: !r, onClick: y, children: m("open") }),
6489
+ /* @__PURE__ */ n(Oe, { icon: /* @__PURE__ */ n(pi, {}), disabled: !r, onClick: y, children: m("open") }),
6481
6490
  /* @__PURE__ */ n(
6482
6491
  Ze,
6483
6492
  {
@@ -6501,8 +6510,8 @@ const sc = (e) => {
6501
6510
  }, Fn = {
6502
6511
  tree: /* @__PURE__ */ n(Un, {}),
6503
6512
  form: /* @__PURE__ */ n(Kt, {}),
6504
- graph: /* @__PURE__ */ n(pi, {}),
6505
- calendar: /* @__PURE__ */ n(gi, {})
6513
+ graph: /* @__PURE__ */ n(gi, {}),
6514
+ calendar: /* @__PURE__ */ n(yi, {})
6506
6515
  };
6507
6516
  function Or(e) {
6508
6517
  return e ? (Fn == null ? void 0 : Fn[e.type]) || /* @__PURE__ */ n(Kt, {}) : /* @__PURE__ */ n(Kt, {});
@@ -6589,7 +6598,7 @@ function Qn(e) {
6589
6598
  )
6590
6599
  ] });
6591
6600
  }
6592
- const { Search: mc } = ot;
6601
+ const { Search: wc } = it;
6593
6602
  function Vt(e) {
6594
6603
  const {
6595
6604
  icon: t,
@@ -6617,7 +6626,7 @@ function Vt(e) {
6617
6626
  const h = p.map((y, v) => y.name === "divider" ? /* @__PURE__ */ n(He.Divider, {}, "divider" + v) : /* @__PURE__ */ n(He.Item, { children: y.name }, y.id)), g = l === !0 || l === "auto" && i.length > 3;
6618
6627
  return /* @__PURE__ */ A(He, { onClick: m, children: [
6619
6628
  g && /* @__PURE__ */ n(
6620
- mc,
6629
+ wc,
6621
6630
  {
6622
6631
  onChange: (y) => c(y.target.value),
6623
6632
  onSearch: c,
@@ -6665,7 +6674,7 @@ function Xe(e) {
6665
6674
  onClick: t,
6666
6675
  disabled: r,
6667
6676
  children: [
6668
- i ? /* @__PURE__ */ n(st, {}) : s,
6677
+ i ? /* @__PURE__ */ n(at, {}) : s,
6669
6678
  a
6670
6679
  ]
6671
6680
  }
@@ -6673,7 +6682,7 @@ function Xe(e) {
6673
6682
  }
6674
6683
  function Oo(e) {
6675
6684
  const { disabled: t = !1 } = e, { formHasChanges: r, onNewClicked: i } = H(
6676
- it
6685
+ st
6677
6686
  ), { t: o, lang: s } = H(he), a = () => {
6678
6687
  if (r) {
6679
6688
  zt({
@@ -6696,12 +6705,12 @@ function Oo(e) {
6696
6705
  }
6697
6706
  );
6698
6707
  }
6699
- const { confirm: hc } = Je, pc = ({
6708
+ const { confirm: bc } = Je, Cc = ({
6700
6709
  onOk: e,
6701
6710
  onCancel: t,
6702
6711
  lang: r
6703
6712
  }) => {
6704
- hc({
6713
+ bc({
6705
6714
  title: Fe("unsavedChanges", r),
6706
6715
  icon: /* @__PURE__ */ n(pt, {}),
6707
6716
  centered: !0,
@@ -6735,25 +6744,25 @@ async function Ro(e, t, r) {
6735
6744
  ] })
6736
6745
  );
6737
6746
  }
6738
- const gc = (e) => {
6747
+ const xc = (e) => {
6739
6748
  const { numberOfAttachments: t, disabled: r } = e, { t: i, lang: o } = H(he), [s, a] = w(!1), l = /* @__PURE__ */ A(Oe, { disabled: r, children: [
6740
6749
  /* @__PURE__ */ n(qr, {}),
6741
6750
  `(${t})`,
6742
6751
  /* @__PURE__ */ n(kt, { style: { fontSize: 12 } })
6743
6752
  ] });
6744
6753
  return r ? l : /* @__PURE__ */ n(
6745
- ei,
6754
+ ti,
6746
6755
  {
6747
6756
  onVisibleChange: (d) => a(d),
6748
6757
  visible: s,
6749
6758
  placement: "bottom",
6750
- content: yc(e, a, o),
6759
+ content: Sc(e, a, o),
6751
6760
  title: i("attachments"),
6752
6761
  arrowContent: null,
6753
6762
  children: l
6754
6763
  }
6755
6764
  );
6756
- }, yc = (e, t, r) => {
6765
+ }, Sc = (e, t, r) => {
6757
6766
  const {
6758
6767
  attachments: i = [],
6759
6768
  loading: o,
@@ -6837,14 +6846,14 @@ const gc = (e) => {
6837
6846
  ] })
6838
6847
  ] });
6839
6848
  };
6840
- function vc(e) {
6849
+ function Tc(e) {
6841
6850
  const {
6842
6851
  attachments: t,
6843
6852
  disabled: r = !1,
6844
6853
  onAddNewAttachment: i,
6845
6854
  onListAllAttachments: o,
6846
6855
  onViewAttachmentDetails: s
6847
- } = e, { formRef: a } = H(it), [l, d] = w(!1), [u, c] = w([]), [f, m] = w(!1), { t: p } = H(he), h = De(async () => {
6856
+ } = e, { formRef: a } = H(st), [l, d] = w(!1), [u, c] = w([]), [f, m] = w(!1), { t: p } = H(he), h = De(async () => {
6848
6857
  d(!0);
6849
6858
  try {
6850
6859
  const v = await E.getHandler().readObjects({
@@ -6894,7 +6903,7 @@ function vc(e) {
6894
6903
  h();
6895
6904
  }, [h]), /* @__PURE__ */ A(Z, { children: [
6896
6905
  /* @__PURE__ */ n(
6897
- gc,
6906
+ xc,
6898
6907
  {
6899
6908
  numberOfAttachments: t.length,
6900
6909
  attachments: u,
@@ -6920,7 +6929,7 @@ function vc(e) {
6920
6929
  )
6921
6930
  ] });
6922
6931
  }
6923
- function wc({ toolbar: e }) {
6932
+ function Ic({ toolbar: e }) {
6924
6933
  const {
6925
6934
  availableViews: t,
6926
6935
  currentView: r,
@@ -6946,14 +6955,14 @@ function wc({ toolbar: e }) {
6946
6955
  previousView: R,
6947
6956
  setPreviousView: k,
6948
6957
  goToResourceId: x
6949
- } = H(it), { t: S, lang: I } = H(he), C = H(
6958
+ } = H(st), { t: S, lang: I } = H(he), C = H(
6950
6959
  Pt
6951
6960
  ), { processAction: D } = C || {}, P = H(
6952
6961
  dt
6953
6962
  ), { openRelate: L, openDefaultActionForModel: j } = P || {};
6954
6963
  function M(_) {
6955
6964
  if (s) {
6956
- pc({
6965
+ Cc({
6957
6966
  lang: I,
6958
6967
  onOk: () => {
6959
6968
  _();
@@ -7049,7 +7058,7 @@ function wc({ toolbar: e }) {
7049
7058
  /* @__PURE__ */ n(
7050
7059
  Xe,
7051
7060
  {
7052
- icon: /* @__PURE__ */ n(yi, {}),
7061
+ icon: /* @__PURE__ */ n(vi, {}),
7053
7062
  tooltip: S("save"),
7054
7063
  disabled: !s || le,
7055
7064
  loading: a,
@@ -7203,7 +7212,7 @@ function wc({ toolbar: e }) {
7203
7212
  }
7204
7213
  ),
7205
7214
  /* @__PURE__ */ n(
7206
- vc,
7215
+ Tc,
7207
7216
  {
7208
7217
  disabled: le,
7209
7218
  attachments: F,
@@ -7269,8 +7278,8 @@ function Rr(e, t) {
7269
7278
  }
7270
7279
  };
7271
7280
  }
7272
- const { useToken: bc } = Pe, _o = (e) => {
7273
- const { ooui: t, value: r, onChange: i, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: d } = t, { token: u } = bc(), c = d && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, f = H(Ne), { elementHasLostFocus: m } = f || {}, [p, h] = w(!1), [g, y] = w(!1);
7281
+ const { useToken: Fc } = Pe, _o = (e) => {
7282
+ const { ooui: t, value: r, onChange: i, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: d } = t, { token: u } = Fc(), c = d && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, f = H(Ne), { elementHasLostFocus: m } = f || {}, [p, h] = w(!1), [g, y] = w(!1);
7274
7283
  me(() => {
7275
7284
  l && !p && y(!1), !r && !l && (h(!0), y(!0));
7276
7285
  }, [p, l]);
@@ -7300,7 +7309,7 @@ const { useToken: bc } = Pe, _o = (e) => {
7300
7309
  }
7301
7310
  ) }),
7302
7311
  /* @__PURE__ */ n(ae, { flex: "auto", children: g ? /* @__PURE__ */ n(
7303
- ot,
7312
+ it,
7304
7313
  {
7305
7314
  style: {
7306
7315
  borderTopLeftRadius: 0,
@@ -7325,26 +7334,26 @@ const { useToken: bc } = Pe, _o = (e) => {
7325
7334
  }
7326
7335
  ) })
7327
7336
  ] });
7328
- }, Cc = (e) => {
7337
+ }, Oc = (e) => {
7329
7338
  const { ooui: t } = e, { required: r } = t;
7330
7339
  return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
7331
7340
  _o,
7332
7341
  {
7333
7342
  ooui: t,
7334
- valueValidator: (i) => i ? Li(i) : !1
7343
+ valueValidator: (i) => i ? ji(i) : !1
7335
7344
  }
7336
7345
  ) });
7337
- }, xc = (e) => {
7346
+ }, Rc = (e) => {
7338
7347
  const { ooui: t } = e, { required: r } = t;
7339
7348
  return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
7340
7349
  _o,
7341
7350
  {
7342
7351
  ooui: t,
7343
7352
  linkPrefix: "mailto:",
7344
- valueValidator: (i) => i ? Bi(i) : !1
7353
+ valueValidator: (i) => i ? Yi(i) : !1
7345
7354
  }
7346
7355
  ) });
7347
- }, Sc = (e) => {
7356
+ }, _c = (e) => {
7348
7357
  const { visible: t, onIdSubmitted: r, onCancel: i, isSearching: o } = e, { t: s } = H(he), a = de();
7349
7358
  function l(d) {
7350
7359
  const u = d.id.split(",").map((c) => parseInt(c.trim()));
@@ -7376,7 +7385,7 @@ const { useToken: bc } = Pe, _o = (e) => {
7376
7385
  }
7377
7386
  ],
7378
7387
  help: s("searchIdHelp"),
7379
- children: /* @__PURE__ */ n(ot, { style: { width: "100%" }, autoFocus: !0, ref: a })
7388
+ children: /* @__PURE__ */ n(it, { style: { width: "100%" }, autoFocus: !0, ref: a })
7380
7389
  }
7381
7390
  ),
7382
7391
  /* @__PURE__ */ n(be, { align: "middle", justify: "end", children: /* @__PURE__ */ n(ae, { children: /* @__PURE__ */ A(je, { children: [
@@ -7406,9 +7415,9 @@ const { useToken: bc } = Pe, _o = (e) => {
7406
7415
  ] })
7407
7416
  }
7408
7417
  );
7409
- }, { useToken: Tc } = Pe;
7418
+ }, { useToken: Vc } = Pe;
7410
7419
  function Vo(e) {
7411
- const { badgeNumber: t = 0, ...r } = e, { token: i } = Tc();
7420
+ const { badgeNumber: t = 0, ...r } = e, { token: i } = Vc();
7412
7421
  return /* @__PURE__ */ A("div", { style: { position: "relative" }, children: [
7413
7422
  t > 0 && /* @__PURE__ */ n("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ n(
7414
7423
  "span",
@@ -7435,7 +7444,7 @@ function Vo(e) {
7435
7444
  )
7436
7445
  ] });
7437
7446
  }
7438
- function Ic({ refreshGraph: e }) {
7447
+ function Ac({ refreshGraph: e }) {
7439
7448
  const { t } = H(he), {
7440
7449
  availableViews: r,
7441
7450
  currentView: i,
@@ -7446,7 +7455,7 @@ function Ic({ refreshGraph: e }) {
7446
7455
  graphIsLoading: d,
7447
7456
  previousView: u,
7448
7457
  setPreviousView: c
7449
- } = H(it);
7458
+ } = H(st);
7450
7459
  return /* @__PURE__ */ A(je, { wrap: !0, children: [
7451
7460
  /* @__PURE__ */ n(
7452
7461
  Vo,
@@ -7492,7 +7501,7 @@ function Ic({ refreshGraph: e }) {
7492
7501
  )
7493
7502
  ] });
7494
7503
  }
7495
- const { useToken: Fc } = Pe, { Title: Oc, Text: en } = Yt;
7504
+ const { useToken: Dc } = Pe, { Title: kc, Text: en } = Yt;
7496
7505
  function yn(e) {
7497
7506
  const { title: t, children: r } = e, {
7498
7507
  title: i,
@@ -7502,7 +7511,7 @@ function yn(e) {
7502
7511
  results: l,
7503
7512
  totalItems: d,
7504
7513
  selectedRowItems: u
7505
- } = H(it), { t: c } = H(he), { token: f } = Fc();
7514
+ } = H(st), { t: c } = H(he), { token: f } = Dc();
7506
7515
  function m() {
7507
7516
  if ((o == null ? void 0 : o.type) === "form")
7508
7517
  return s ? d === 0 ? /* @__PURE__ */ A(Z, { children: [
@@ -7575,7 +7584,7 @@ function yn(e) {
7575
7584
  align: "middle",
7576
7585
  children: [
7577
7586
  /* @__PURE__ */ A(ae, { flex: 2, children: [
7578
- /* @__PURE__ */ n(Oc, { level: 3, style: { marginBottom: 0 }, children: t || i }),
7587
+ /* @__PURE__ */ n(kc, { level: 3, style: { marginBottom: 0 }, children: t || i }),
7579
7588
  m()
7580
7589
  ] }),
7581
7590
  /* @__PURE__ */ n(ae, { flex: 3, children: /* @__PURE__ */ n(be, { justify: "end", children: r }) })
@@ -7585,9 +7594,9 @@ function yn(e) {
7585
7594
  /* @__PURE__ */ n("div", { className: "pb-5" })
7586
7595
  ] });
7587
7596
  }
7588
- const Rc = (e) => {
7597
+ const Ec = (e) => {
7589
7598
  const { viewData: t, visible: r, model: i, context: o, domain: s, formView: a, treeView: l } = e, d = de(), u = H(
7590
- it
7599
+ st
7591
7600
  ), {
7592
7601
  setResults: c = void 0,
7593
7602
  setCurrentItemIndex: f = void 0,
@@ -7640,7 +7649,7 @@ const Rc = (e) => {
7640
7649
  });
7641
7650
  return !r || !t ? null : /* @__PURE__ */ A(Z, { children: [
7642
7651
  /* @__PURE__ */ n(yn, { title: t.name, children: /* @__PURE__ */ n(
7643
- Ic,
7652
+ Ac,
7644
7653
  {
7645
7654
  refreshGraph: () => {
7646
7655
  d.current.refresh();
@@ -7681,7 +7690,7 @@ const Rc = (e) => {
7681
7690
  }
7682
7691
  )
7683
7692
  ] });
7684
- }, _c = (e) => {
7693
+ }, Mc = (e) => {
7685
7694
  const {
7686
7695
  visible: t,
7687
7696
  formRef: r,
@@ -7697,7 +7706,7 @@ const Rc = (e) => {
7697
7706
  setCurrentItemIndex: m
7698
7707
  } = e;
7699
7708
  return t ? /* @__PURE__ */ A(Z, { children: [
7700
- /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(wc, { toolbar: a == null ? void 0 : a.toolbar }) }),
7709
+ /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(Ic, { toolbar: a == null ? void 0 : a.toolbar }) }),
7701
7710
  /* @__PURE__ */ n(
7702
7711
  Jt,
7703
7712
  {
@@ -7717,7 +7726,7 @@ const Rc = (e) => {
7717
7726
  )
7718
7727
  ] }) : null;
7719
7728
  };
7720
- function Vc(e) {
7729
+ function Nc(e) {
7721
7730
  const { onSearch: t, disabled: r = !1, searchText: i } = e, { t: o } = H(he), [s] = lt.useForm(), [a, l] = w(!1);
7722
7731
  function d(c) {
7723
7732
  t(c.search);
@@ -7730,7 +7739,7 @@ function Vc(e) {
7730
7739
  }
7731
7740
  return /* @__PURE__ */ n(lt, { form: s, onFinish: d, autoComplete: "off", children: /* @__PURE__ */ A(be, { align: "middle", justify: "end", children: [
7732
7741
  /* @__PURE__ */ n(ae, { children: /* @__PURE__ */ n(lt.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ n(
7733
- ot,
7742
+ it,
7734
7743
  {
7735
7744
  autoFocus: !0,
7736
7745
  disabled: r,
@@ -7739,7 +7748,7 @@ function Vc(e) {
7739
7748
  },
7740
7749
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
7741
7750
  suffix: (a || i && i.length > 0) && /* @__PURE__ */ n(ht, { title: o("clear"), children: /* @__PURE__ */ n(
7742
- vi,
7751
+ wi,
7743
7752
  {
7744
7753
  style: { color: "rgba(0,0,0,.45)" },
7745
7754
  onClick: u
@@ -7758,15 +7767,15 @@ function Vc(e) {
7758
7767
  ) })
7759
7768
  ] }) });
7760
7769
  }
7761
- const Ac = Qe.createContext({
7770
+ const Pc = et.createContext({
7762
7771
  erpFeatures: {}
7763
7772
  });
7764
7773
  var Ao = /* @__PURE__ */ ((e) => (e.FEATURE_ADVANCED_EXPORT = "export_data2", e))(Ao || {});
7765
- const Dc = () => H(Ac), kc = (e) => {
7766
- const { erpFeatures: t } = Dc();
7774
+ const Lc = () => H(Pc), Bc = (e) => {
7775
+ const { erpFeatures: t } = Lc();
7767
7776
  return !!t[e];
7768
7777
  };
7769
- function Ec(e) {
7778
+ function $c(e) {
7770
7779
  var le;
7771
7780
  const {
7772
7781
  availableViews: t,
@@ -7792,7 +7801,7 @@ function Ec(e) {
7792
7801
  results: O,
7793
7802
  limit: R,
7794
7803
  totalItems: k
7795
- } = H(it), { parentContext: x = {}, treeExpandable: S, toolbar: I } = e, C = kc(
7804
+ } = H(st), { parentContext: x = {}, treeExpandable: S, toolbar: I } = e, C = Bc(
7796
7805
  Ao.FEATURE_ADVANCED_EXPORT
7797
7806
  ), { t: D, lang: P } = H(he), L = H(
7798
7807
  Pt
@@ -7863,7 +7872,7 @@ function Ec(e) {
7863
7872
  ] }),
7864
7873
  S ? null : /* @__PURE__ */ A(Z, { children: [
7865
7874
  /* @__PURE__ */ n(
7866
- Vc,
7875
+ Nc,
7867
7876
  {
7868
7877
  disabled: l || a || T,
7869
7878
  searchText: v,
@@ -8048,7 +8057,7 @@ function Ec(e) {
8048
8057
  }
8049
8058
  ),
8050
8059
  /* @__PURE__ */ n(
8051
- rc,
8060
+ cc,
8052
8061
  {
8053
8062
  visible: M,
8054
8063
  locale: P,
@@ -8071,7 +8080,7 @@ function Ec(e) {
8071
8080
  function yt() {
8072
8081
  return /* @__PURE__ */ n("div", { className: "inline-block w-2" });
8073
8082
  }
8074
- const Mc = (e) => {
8083
+ const Hc = (e) => {
8075
8084
  const {
8076
8085
  visible: t,
8077
8086
  searchTreeRef: r,
@@ -8087,11 +8096,11 @@ const Mc = (e) => {
8087
8096
  availableViews: m,
8088
8097
  searchTreeNameSearch: p
8089
8098
  } = e, { currentView: h, setPreviousView: g } = H(
8090
- it
8099
+ st
8091
8100
  );
8092
8101
  return t ? /* @__PURE__ */ A(Z, { children: [
8093
8102
  /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(
8094
- Ec,
8103
+ $c,
8095
8104
  {
8096
8105
  toolbar: a == null ? void 0 : a.toolbar,
8097
8106
  parentContext: o,
@@ -8122,7 +8131,7 @@ const Mc = (e) => {
8122
8131
  }
8123
8132
  )
8124
8133
  ] }) : null;
8125
- }, er = Qe.createContext(null), Nc = (e) => {
8134
+ }, er = et.createContext(null), Kc = (e) => {
8126
8135
  const [t, r] = w(!1), [i, o] = w(!1), { children: s, dashboardRef: a, openAction: l } = e;
8127
8136
  return /* @__PURE__ */ n(
8128
8137
  er.Provider,
@@ -8139,14 +8148,14 @@ const Mc = (e) => {
8139
8148
  }
8140
8149
  );
8141
8150
  };
8142
- function Pc() {
8151
+ function Wc() {
8143
8152
  const { isLoading: e, dashboardRef: t, moveItemsEnabled: r, setMoveItemsEnabled: i } = H(er), { t: o } = H(he);
8144
8153
  return /* @__PURE__ */ A(je, { wrap: !0, children: [
8145
8154
  /* @__PURE__ */ n(
8146
8155
  Xe,
8147
8156
  {
8148
8157
  icon: /* @__PURE__ */ n(
8149
- wi,
8158
+ bi,
8150
8159
  {
8151
8160
  style: { color: r ? "white" : void 0 }
8152
8161
  }
@@ -8160,11 +8169,11 @@ function Pc() {
8160
8169
  }
8161
8170
  }
8162
8171
  ),
8163
- Lc(),
8172
+ jc(),
8164
8173
  /* @__PURE__ */ n(
8165
8174
  Xe,
8166
8175
  {
8167
- icon: /* @__PURE__ */ n(bi, {}),
8176
+ icon: /* @__PURE__ */ n(Ci, {}),
8168
8177
  tooltip: o("configDashboard"),
8169
8178
  disabled: e,
8170
8179
  loading: !1,
@@ -8187,24 +8196,24 @@ function Pc() {
8187
8196
  )
8188
8197
  ] });
8189
8198
  }
8190
- function Lc() {
8199
+ function jc() {
8191
8200
  return /* @__PURE__ */ n("div", { className: "inline-block w-2" });
8192
8201
  }
8193
- const Bc = (e) => {
8202
+ const Yc = (e) => {
8194
8203
  const { dashboardData: t } = e, r = de(), i = H(
8195
8204
  dt
8196
8205
  ), { openShortcut: o } = i || {};
8197
8206
  return t ? /* @__PURE__ */ A(
8198
- Nc,
8207
+ Kc,
8199
8208
  {
8200
8209
  dashboardRef: r,
8201
8210
  openAction: (s) => {
8202
8211
  o(s);
8203
8212
  },
8204
8213
  children: [
8205
- /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(Pc, {}) }),
8214
+ /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(Wc, {}) }),
8206
8215
  /* @__PURE__ */ n(
8207
- Zc,
8216
+ od,
8208
8217
  {
8209
8218
  ref: r,
8210
8219
  model: t.model,
@@ -8217,7 +8226,7 @@ const Bc = (e) => {
8217
8226
  }
8218
8227
  ) : null;
8219
8228
  };
8220
- async function $c(e) {
8229
+ async function Gc(e) {
8221
8230
  const t = await Promise.all(
8222
8231
  e.map(async (i) => {
8223
8232
  try {
@@ -8232,7 +8241,7 @@ async function $c(e) {
8232
8241
  info: t[o]
8233
8242
  })).filter((i) => i.info !== null);
8234
8243
  }
8235
- function Hc(e, t) {
8244
+ function Uc(e, t) {
8236
8245
  const {
8237
8246
  domain: r,
8238
8247
  model: i,
@@ -8261,7 +8270,7 @@ function Hc(e, t) {
8261
8270
  openAction: Ye,
8262
8271
  onRemoveTab: ke
8263
8272
  } = Ie || {};
8264
- $i(
8273
+ Gi(
8265
8274
  "ctrl+g,command+g",
8266
8275
  (z) => {
8267
8276
  z.preventDefault(), Ee();
@@ -8294,7 +8303,7 @@ function Hc(e, t) {
8294
8303
  viewTuple: oe
8295
8304
  });
8296
8305
  }
8297
- const Ve = await $c(ve);
8306
+ const Ve = await Gc(ve);
8298
8307
  for (const oe of Ve) {
8299
8308
  if (!oe)
8300
8309
  continue;
@@ -8305,8 +8314,8 @@ function Hc(e, t) {
8305
8314
  const [, q] = We;
8306
8315
  return q === "form";
8307
8316
  });
8308
- let et;
8309
- se && (et = {
8317
+ let Qe;
8318
+ se && (Qe = {
8310
8319
  action_id: p,
8311
8320
  action_type: h,
8312
8321
  name: a,
@@ -8319,7 +8328,7 @@ function Hc(e, t) {
8319
8328
  id: o.active_id,
8320
8329
  model: i,
8321
8330
  context: o,
8322
- configAction: et
8331
+ configAction: Qe
8323
8332
  });
8324
8333
  break;
8325
8334
  }
@@ -8375,7 +8384,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8375
8384
  let ve, Ve;
8376
8385
  if (z.length === 1) {
8377
8386
  ve = "form", Ve = [];
8378
- const ue = z[0], $e = L.findIndex((et) => et.id === ue);
8387
+ const ue = z[0], $e = L.findIndex((Qe) => Qe.id === ue);
8379
8388
  let se;
8380
8389
  if ($e === -1) {
8381
8390
  try {
@@ -8414,7 +8423,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8414
8423
  switch (z.type) {
8415
8424
  case "form":
8416
8425
  return /* @__PURE__ */ n(
8417
- _c,
8426
+ Mc,
8418
8427
  {
8419
8428
  formRef: ee,
8420
8429
  currentId: x,
@@ -8433,7 +8442,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8433
8442
  );
8434
8443
  case "tree":
8435
8444
  return /* @__PURE__ */ n(
8436
- Mc,
8445
+ Hc,
8437
8446
  {
8438
8447
  visible: v.type === z.type && v.view_id === z.view_id,
8439
8448
  limit: y,
@@ -8454,7 +8463,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8454
8463
  );
8455
8464
  case "graph":
8456
8465
  return /* @__PURE__ */ n(
8457
- Rc,
8466
+ Ec,
8458
8467
  {
8459
8468
  visible: v.type === z.type && v.view_id === z.view_id,
8460
8469
  viewData: z,
@@ -8468,7 +8477,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8468
8477
  );
8469
8478
  case "dashboard":
8470
8479
  return /* @__PURE__ */ n(
8471
- Bc,
8480
+ Yc,
8472
8481
  {
8473
8482
  dashboardData: z
8474
8483
  },
@@ -8489,7 +8498,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8489
8498
  }
8490
8499
  }
8491
8500
  return O ? /* @__PURE__ */ n(Ae, {}) : v ? /* @__PURE__ */ A(
8492
- ha,
8501
+ ba,
8493
8502
  {
8494
8503
  title: a,
8495
8504
  currentView: v,
@@ -8518,7 +8527,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8518
8527
  children: [
8519
8528
  Me(),
8520
8529
  /* @__PURE__ */ n(
8521
- Sc,
8530
+ _c,
8522
8531
  {
8523
8532
  visible: G,
8524
8533
  onIdSubmitted: ye,
@@ -8532,8 +8541,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8532
8541
  }
8533
8542
  ) : null;
8534
8543
  }
8535
- const Do = wt(Hc);
8536
- async function Kc({
8544
+ const Do = wt(Uc);
8545
+ async function qc({
8537
8546
  actionId: e,
8538
8547
  rootContext: t = {},
8539
8548
  globalValues: r = {}
@@ -8585,8 +8594,8 @@ async function Kc({
8585
8594
  treeExpandable: p
8586
8595
  };
8587
8596
  }
8588
- const Wc = Gi(Ui), jc = (e) => {
8589
- const { children: t = [], onPositionItemsChanged: r } = e, i = Qe.Children.map(
8597
+ const zc = Xi(Zi), Jc = (e) => {
8598
+ const { children: t = [], onPositionItemsChanged: r } = e, i = et.Children.map(
8590
8599
  t,
8591
8600
  (o) => {
8592
8601
  const { parms: s, id: a } = o.props;
@@ -8594,7 +8603,7 @@ const Wc = Gi(Ui), jc = (e) => {
8594
8603
  }
8595
8604
  );
8596
8605
  return /* @__PURE__ */ n(
8597
- Wc,
8606
+ zc,
8598
8607
  {
8599
8608
  className: "layout",
8600
8609
  cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
@@ -8614,8 +8623,8 @@ const Wc = Gi(Ui), jc = (e) => {
8614
8623
  children: i
8615
8624
  }
8616
8625
  );
8617
- }, { useToken: Yc } = Pe, { Text: Gc } = Yt, Uc = (e) => {
8618
- const { title: t, children: r, action: i, openAction: o } = e, { token: s } = Yc();
8626
+ }, { useToken: Xc } = Pe, { Text: Zc } = Yt, Qc = (e) => {
8627
+ const { title: t, children: r, action: i, openAction: o } = e, { token: s } = Xc();
8619
8628
  return /* @__PURE__ */ A(
8620
8629
  "div",
8621
8630
  {
@@ -8651,11 +8660,11 @@ const Wc = Gi(Ui), jc = (e) => {
8651
8660
  cursor: "grab",
8652
8661
  overflow: "hidden"
8653
8662
  },
8654
- children: /* @__PURE__ */ n(Gc, { ellipsis: !0, children: t })
8663
+ children: /* @__PURE__ */ n(Zc, { ellipsis: !0, children: t })
8655
8664
  }
8656
8665
  ),
8657
8666
  i && /* @__PURE__ */ n(ae, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ n(be, { justify: "end", align: "middle", children: /* @__PURE__ */ n(
8658
- Ci,
8667
+ xi,
8659
8668
  {
8660
8669
  style: { cursor: "pointer" },
8661
8670
  onClick: () => {
@@ -8666,12 +8675,12 @@ const Wc = Gi(Ui), jc = (e) => {
8666
8675
  ]
8667
8676
  }
8668
8677
  ),
8669
- r
8678
+ /* @__PURE__ */ n(Qi, { children: r })
8670
8679
  ]
8671
8680
  }
8672
8681
  );
8673
- }, qc = 80;
8674
- function zc(e) {
8682
+ }, ed = 80;
8683
+ function td(e) {
8675
8684
  const {
8676
8685
  action: t,
8677
8686
  model: r,
@@ -8680,7 +8689,7 @@ function zc(e) {
8680
8689
  domain: s = [],
8681
8690
  visible: a = !0,
8682
8691
  parentContext: l = {}
8683
- } = e, [d, u] = w(!1), [c, f] = w(!1), [m, p] = w(), [h, g] = w(), [y, v] = w(), [T, F] = w(1), [b, O] = w(0), R = de(qc), k = de([]), [x, S] = w(0), [I, C] = w([]), [D, P] = w(void 0), [L, j] = w(), [M, B] = w(), [K, V] = w(), [G, ne] = w(!1), J = de([]), le = (U) => {
8692
+ } = e, [d, u] = w(!1), [c, f] = w(!1), [m, p] = w(), [h, g] = w(), [y, v] = w(), [T, F] = w(1), [b, O] = w(0), R = de(ed), k = de([]), [x, S] = w(0), [I, C] = w([]), [D, P] = w(void 0), [L, j] = w(), [M, B] = w(), [K, V] = w(), [G, ne] = w(!1), J = de([]), le = (U) => {
8684
8693
  ne(!0), F(U), O((U - 1) * R.current);
8685
8694
  }, Y = async () => {
8686
8695
  const U = J.current.length > 0 ? J.current : s, Ce = Wt(k.current, U), { colors: we } = Rt(h), { totalItems: Ye, results: ke, attrsEvaluated: Le } = await E.getHandler().searchForTree({
@@ -8783,7 +8792,7 @@ function zc(e) {
8783
8792
  ] });
8784
8793
  return K ? /* @__PURE__ */ n(tt, { className: "mt-10", message: K, type: "error", banner: !0 }) : d ? /* @__PURE__ */ n(Ae, { style: { padding: "2rem" } }) : X();
8785
8794
  }
8786
- const Jc = (e) => {
8795
+ const nd = (e) => {
8787
8796
  const { model: t } = e, [r, i] = w();
8788
8797
  me(() => {
8789
8798
  o();
@@ -8798,7 +8807,7 @@ const Jc = (e) => {
8798
8807
  }
8799
8808
  return /* @__PURE__ */ n("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ n(Jt, { ...e, model: t, id: r, readOnly: !0 }) });
8800
8809
  }, On = "line_ids";
8801
- function Xc(e, t) {
8810
+ function rd(e, t) {
8802
8811
  const { model: r, context: i = {}, id: o, configAction: s } = e, [a, l] = w([]), [d, u] = w(!1), [c, f] = w(), {
8803
8812
  setIsLoading: m,
8804
8813
  openAction: p,
@@ -8871,7 +8880,7 @@ function Xc(e, t) {
8871
8880
  for (const I of x) {
8872
8881
  const { values: C } = I;
8873
8882
  if (C.action_id && C.action_id.length > 0) {
8874
- const D = parseInt(C.action_id[0], 10), P = await Kc({
8883
+ const D = parseInt(C.action_id[0], 10), P = await qc({
8875
8884
  actionId: D,
8876
8885
  rootContext: i
8877
8886
  });
@@ -8926,7 +8935,7 @@ function Xc(e, t) {
8926
8935
  async function k() {
8927
8936
  p(s);
8928
8937
  }
8929
- return c ? (console.log(c), /* @__PURE__ */ n(tt, { className: "mt-10 mb-20", message: c, type: "error", banner: !0 })) : d ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(jc, { onPositionItemsChanged: R, children: a.map((x, S) => {
8938
+ return c ? (console.log(c), /* @__PURE__ */ n(tt, { className: "mt-10 mb-20", message: c, type: "error", banner: !0 })) : d ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(Jc, { onPositionItemsChanged: R, children: a.map((x, S) => {
8930
8939
  const { actionData: I, values: C } = x, { position: D, id: P } = C, {
8931
8940
  actionId: L,
8932
8941
  actionType: j,
@@ -8960,10 +8969,10 @@ function Xc(e, t) {
8960
8969
  }
8961
8970
  );
8962
8971
  else if ((J == null ? void 0 : J.type) === "form")
8963
- _ = /* @__PURE__ */ n(Jc, { model: V, actionDomain: ne });
8972
+ _ = /* @__PURE__ */ n(nd, { model: V, actionDomain: ne });
8964
8973
  else if ((J == null ? void 0 : J.type) === "tree")
8965
8974
  _ = /* @__PURE__ */ n(
8966
- zc,
8975
+ td,
8967
8976
  {
8968
8977
  model: V,
8969
8978
  domain: ne,
@@ -9038,7 +9047,7 @@ function Xc(e, t) {
9038
9047
  };
9039
9048
  }
9040
9049
  return /* @__PURE__ */ n(
9041
- Uc,
9050
+ Qc,
9042
9051
  {
9043
9052
  id: P,
9044
9053
  title: B,
@@ -9051,10 +9060,10 @@ function Xc(e, t) {
9051
9060
  );
9052
9061
  }) });
9053
9062
  }
9054
- const Zc = wt(Xc), Qc = (e) => {
9063
+ const od = wt(rd), id = (e) => {
9055
9064
  const { ooui: t } = e;
9056
- return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(ed, { ooui: t }) });
9057
- }, ed = (e) => {
9065
+ return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(sd, { ooui: t }) });
9066
+ }, sd = (e) => {
9058
9067
  const { value: t, ooui: r, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((x) => x.operation !== "pendingRemove").map((x) => x.id), [a, l] = w([]), [d, u] = w(), [c, f] = w(!1), { relation: m, context: p, readOnly: h, field: g, columns: y } = r, v = H(Ne), { getContext: T } = v || {};
9059
9068
  xt(() => {
9060
9069
  b();
@@ -9135,7 +9144,7 @@ const Zc = wt(Xc), Qc = (e) => {
9135
9144
  /* @__PURE__ */ n(Oe, { onClick: R, disabled: s.length === 0, children: "Uncheck all" })
9136
9145
  ] })
9137
9146
  ] }) });
9138
- }, td = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(nd, { ...e }) }), nd = (e) => {
9147
+ }, ad = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(ld, { ...e }) }), ld = (e) => {
9139
9148
  const { value: t, ooui: r } = e;
9140
9149
  return /* @__PURE__ */ n(
9141
9150
  "div",
@@ -9145,34 +9154,34 @@ const Zc = wt(Xc), Qc = (e) => {
9145
9154
  overflow: "auto"
9146
9155
  },
9147
9156
  children: /* @__PURE__ */ n(
9148
- Hi,
9157
+ Ui,
9149
9158
  {
9150
- remarkPlugins: [Ki],
9159
+ remarkPlugins: [qi],
9151
9160
  className: "markdown-typography",
9152
9161
  children: t
9153
9162
  }
9154
9163
  )
9155
9164
  }
9156
9165
  );
9157
- }, rd = (e) => {
9166
+ }, cd = (e) => {
9158
9167
  const { ooui: t } = e, { required: r } = t;
9159
- return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(od, { ...e }) });
9160
- }, od = (e) => {
9168
+ return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(dd, { ...e }) });
9169
+ }, dd = (e) => {
9161
9170
  const { ooui: t, onChange: r, value: i } = e, { selectionValues: o, readOnly: s, direction: a } = t, l = Array.from(o.entries()), d = l && l.length && l.map((u) => {
9162
9171
  const [c, f] = u;
9163
9172
  return /* @__PURE__ */ n(sr, { value: c, children: f }, c);
9164
9173
  });
9165
9174
  return /* @__PURE__ */ n(sr.Group, { disabled: s, onChange: r, value: i, children: /* @__PURE__ */ n(je, { direction: a, children: d }) });
9166
- }, id = (e) => {
9175
+ }, ud = (e) => {
9167
9176
  const { ooui: t } = e, { id: r, readOnly: i, required: o } = t;
9168
- return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(sd, { id: r, readOnly: i, required: o }) });
9169
- }, sd = (e) => {
9177
+ return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(fd, { id: r, readOnly: i, required: o }) });
9178
+ }, fd = (e) => {
9170
9179
  const { required: t, readOnly: r, ...i } = e;
9171
- return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(ti, { disabled: r, ...i }) });
9172
- }, ad = (e) => {
9180
+ return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(ni, { disabled: r, ...i }) });
9181
+ }, md = (e) => {
9173
9182
  const { ooui: t } = e, { required: r } = t;
9174
- return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(ld, { ...e }) });
9175
- }, ld = (e) => {
9183
+ return /* @__PURE__ */ n(ge, { required: r, type: "any", ...e, children: /* @__PURE__ */ n(hd, { ...e }) });
9184
+ }, hd = (e) => {
9176
9185
  const { ooui: t, value: r } = e, { selectionValues: i, errorField: o } = t, s = H(Ne), a = Array.from(i.entries()), l = a.map((c) => c[0]).indexOf(r);
9177
9186
  let d = "process", u = "";
9178
9187
  return o && (u = s.getFieldValue(o), u && (d = "error")), /* @__PURE__ */ n(ar, { current: l, status: d, children: a.map((c, f) => /* @__PURE__ */ n(
@@ -9182,10 +9191,10 @@ const Zc = wt(Xc), Qc = (e) => {
9182
9191
  description: f === l && d === "error" ? u : null
9183
9192
  }
9184
9193
  )) });
9185
- }, cd = (e) => {
9194
+ }, pd = (e) => {
9186
9195
  const { ooui: t } = e, { lang: r, height: i } = t, o = H(Ne), { elementHasLostFocus: s } = o || {};
9187
9196
  return /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(
9188
- Wi,
9197
+ zi,
9189
9198
  {
9190
9199
  defaultLanguage: r || "",
9191
9200
  height: i || 300,
@@ -9194,40 +9203,38 @@ const Zc = wt(Xc), Qc = (e) => {
9194
9203
  }
9195
9204
  }
9196
9205
  ) });
9197
- }, { Meta: dd } = Nn, { Text: ud } = Yt;
9198
- at.extend(ji);
9199
- const fd = ({ email: e, size: t = 40, theme: r = "" }) => {
9200
- const i = `https://www.gravatar.com/avatar/${Yi(
9206
+ }, { Meta: gd } = Nn, { Text: yd } = Yt, vd = ({ email: e, size: t = 40, theme: r = "" }) => {
9207
+ const i = `https://www.gravatar.com/avatar/${Ji(
9201
9208
  e
9202
9209
  )}?s=${t}&d=${r}`;
9203
9210
  return /* @__PURE__ */ n(Dr, { src: i, size: t });
9204
9211
  };
9205
- function md({ text: e }) {
9212
+ function wd({ text: e }) {
9206
9213
  const t = e.split(`
9207
9214
  `);
9208
- return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */ A(Qe.Fragment, { children: [
9215
+ return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */ A(Jo, { children: [
9209
9216
  r,
9210
9217
  i !== t.length - 1 && /* @__PURE__ */ n("br", {})
9211
9218
  ] }, i)) });
9212
9219
  }
9213
- const hd = (e) => {
9220
+ const bd = (e) => {
9214
9221
  const { data: t, style: r } = e, { t: i } = H(he);
9215
9222
  return /* @__PURE__ */ A(Nn, { style: { ...r, textAlign: "start" }, children: [
9216
9223
  /* @__PURE__ */ n(
9217
- dd,
9224
+ gd,
9218
9225
  {
9219
- avatar: /* @__PURE__ */ n(fd, { email: t.email, theme: "mp" }),
9226
+ avatar: /* @__PURE__ */ n(vd, { email: t.email, theme: "mp" }),
9220
9227
  title: t.author,
9221
9228
  description: /* @__PURE__ */ A(je, { direction: "horizontal", children: [
9222
- /* @__PURE__ */ n("span", { title: t.date, children: at(t.date).fromNow() }),
9229
+ /* @__PURE__ */ n("span", { title: t.date, children: nt(t.date).fromNow() }),
9223
9230
  t.isAuthor && /* @__PURE__ */ n(_r, { color: "blue", children: i("author") })
9224
9231
  ] }),
9225
9232
  style: { marginBottom: "5px" }
9226
9233
  }
9227
9234
  ),
9228
- /* @__PURE__ */ n(ud, { children: /* @__PURE__ */ n(md, { text: t.text }) })
9235
+ /* @__PURE__ */ n(yd, { children: /* @__PURE__ */ n(wd, { text: t.text }) })
9229
9236
  ] }, t.id);
9230
- }, pd = (e) => {
9237
+ }, Cd = (e) => {
9231
9238
  const { value: t } = e, r = (t || []).map((i) => {
9232
9239
  if (i.type === "action")
9233
9240
  return {
@@ -9238,22 +9245,22 @@ const hd = (e) => {
9238
9245
  color: "gray",
9239
9246
  position: i.event.isSender ? "left" : "right",
9240
9247
  label: i.event.date,
9241
- children: /* @__PURE__ */ n(hd, { data: i.event })
9248
+ children: /* @__PURE__ */ n(bd, { data: i.event })
9242
9249
  };
9243
9250
  });
9244
9251
  return /* @__PURE__ */ n(Rn, { mode: "alternate", items: r });
9245
- }, gd = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(pd, {}) }), { Content: yd } = ni, { Title: vd } = Yt;
9246
- function wd() {
9252
+ }, xd = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(Cd, {}) }), { Content: Sd } = ri, { Title: Td } = Yt;
9253
+ function Id() {
9247
9254
  const { t: e } = H(he);
9248
- return /* @__PURE__ */ n(yd, { className: "m-5 select-none", children: /* @__PURE__ */ n(vd, { level: 5, children: e("welcome") }) });
9255
+ return /* @__PURE__ */ n(Sd, { className: "m-5 select-none", children: /* @__PURE__ */ n(Td, { level: 5, children: e("welcome") }) });
9249
9256
  }
9250
- function bd(e, t) {
9257
+ function Fd(e, t) {
9251
9258
  const { children: r, globalValues: i = {}, rootContext: o = {}, lang: s } = e, [a, l] = w("welcome"), [d, u] = w([
9252
9259
  {
9253
9260
  title: Fe("welcome", s),
9254
9261
  key: "welcome",
9255
9262
  closable: !0,
9256
- content: /* @__PURE__ */ n(wd, {})
9263
+ content: /* @__PURE__ */ n(Id, {})
9257
9264
  }
9258
9265
  ]), c = de(/* @__PURE__ */ new Map()), f = de();
9259
9266
  bt(t, () => ({
@@ -9551,8 +9558,8 @@ function bd(e, t) {
9551
9558
  });
9552
9559
  }
9553
9560
  }
9554
- return /* @__PURE__ */ n(ns, { lang: s, children: /* @__PURE__ */ n(
9555
- pa,
9561
+ return /* @__PURE__ */ n(ls, { lang: s, children: /* @__PURE__ */ n(
9562
+ Ca,
9556
9563
  {
9557
9564
  openShortcut: v,
9558
9565
  openAction: F,
@@ -9570,7 +9577,7 @@ function bd(e, t) {
9570
9577
  l(b);
9571
9578
  },
9572
9579
  children: /* @__PURE__ */ n(
9573
- va,
9580
+ Ta,
9574
9581
  {
9575
9582
  ref: f,
9576
9583
  globalValues: i,
@@ -9580,9 +9587,9 @@ function bd(e, t) {
9580
9587
  }
9581
9588
  ) });
9582
9589
  }
9583
- const au = wt(bd), { useToken: Cd } = Pe;
9584
- function xd(e) {
9585
- const { label: t, onClose: r, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = Cd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
9590
+ const vu = wt(Fd), { useToken: Od } = Pe;
9591
+ function Rd(e) {
9592
+ const { label: t, onClose: r, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = Od(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
9586
9593
  return /* @__PURE__ */ A(
9587
9594
  "div",
9588
9595
  {
@@ -9652,12 +9659,12 @@ function xd(e) {
9652
9659
  }
9653
9660
  );
9654
9661
  }
9655
- function lu() {
9662
+ function wu() {
9656
9663
  const e = H(
9657
9664
  dt
9658
9665
  ), { activeKey: t, tabs: r, onRemoveTab: i, onChangeTab: o } = e || {};
9659
9666
  return /* @__PURE__ */ n(Z, { children: r.map((s) => /* @__PURE__ */ n(
9660
- xd,
9667
+ Rd,
9661
9668
  {
9662
9669
  tabKey: s.key,
9663
9670
  label: s.title,
@@ -9668,7 +9675,7 @@ function lu() {
9668
9675
  s.key
9669
9676
  )) });
9670
9677
  }
9671
- function Sd(e) {
9678
+ function _d(e) {
9672
9679
  const { tab: t } = e, r = H(
9673
9680
  dt
9674
9681
  ), { activeKey: i } = r || {}, o = {
@@ -9676,20 +9683,20 @@ function Sd(e) {
9676
9683
  };
9677
9684
  return /* @__PURE__ */ n("div", { style: t.key !== i ? o : void 0, children: t.content });
9678
9685
  }
9679
- const Td = Qe.memo(Sd, () => !0);
9680
- function cu() {
9686
+ const Vd = et.memo(_d, () => !0);
9687
+ function bu() {
9681
9688
  const e = H(
9682
9689
  dt
9683
- ), { tabs: t } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(Td, { tab: i }, i.key))) || null;
9690
+ ), { tabs: t } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(Vd, { tab: i }, i.key))) || null;
9684
9691
  return /* @__PURE__ */ n(Z, { children: r });
9685
9692
  }
9686
- const { useToken: Id } = Pe, du = (e) => {
9693
+ const { useToken: Ad } = Pe, Cu = (e) => {
9687
9694
  const {
9688
9695
  onRetrieveShortcuts: t,
9689
9696
  onCheckIsFavourite: r,
9690
9697
  onAddFavourite: i,
9691
9698
  onRemoveFavourite: o
9692
- } = e, [s, a] = w(!1), [l, d] = w(!1), [u, c] = w([]), [f, m] = w(!0), [p, h] = w(), { t: g } = H(he) || {}, { token: y } = Id(), v = H(
9699
+ } = e, [s, a] = w(!1), [l, d] = w(!1), [u, c] = w([]), [f, m] = w(!0), [p, h] = w(), { t: g } = H(he) || {}, { token: y } = Ad(), v = H(
9693
9700
  dt
9694
9701
  ), {
9695
9702
  openShortcut: T,
@@ -9828,60 +9835,60 @@ const { useToken: Id } = Pe, du = (e) => {
9828
9835
  ] });
9829
9836
  };
9830
9837
  export {
9831
- wc as ActionBar,
9838
+ Ic as ActionBar,
9832
9839
  Do as ActionView,
9833
- uc as Binary,
9834
- Cs as Boolean,
9840
+ yc as Binary,
9841
+ Os as Boolean,
9835
9842
  Qr as Button,
9836
- ss as ButtonGroup,
9843
+ fs as ButtonGroup,
9837
9844
  no as Char,
9838
- cd as CodeEditor,
9839
- gd as CommentsTimelineField,
9840
- Ac as ConfigContext,
9845
+ pd as CodeEditor,
9846
+ xd as CommentsTimelineField,
9847
+ Pc as ConfigContext,
9841
9848
  E as ConnectionProvider,
9842
- va as ContentRootProvider,
9843
- cu as CurrentTabContent,
9844
- Zc as Dashboard,
9845
- jc as DashboardGrid,
9846
- Uc as DashboardGridItem,
9847
- oc as Date,
9848
- ic as DateTime,
9849
- xc as Email,
9850
- rc as ExportModal,
9851
- du as FavouriteButton,
9849
+ Ta as ContentRootProvider,
9850
+ bu as CurrentTabContent,
9851
+ od as Dashboard,
9852
+ Jc as DashboardGrid,
9853
+ Qc as DashboardGridItem,
9854
+ dc as Date,
9855
+ uc as DateTime,
9856
+ Rc as Email,
9857
+ cc as ExportModal,
9858
+ Cu as FavouriteButton,
9852
9859
  ho as Float,
9853
- Hl as FloatTime,
9860
+ Ul as FloatTime,
9854
9861
  Jt as Form,
9855
9862
  Xt as FormModal,
9856
- hl as GraphIndicator,
9863
+ bl as GraphIndicator,
9857
9864
  Io as Group,
9858
- Is as Image,
9865
+ As as Image,
9859
9866
  rn as Integer,
9860
9867
  fn as Label,
9861
- ul as Many2one,
9862
- td as Markdown,
9863
- Qc as MultiCheckbox,
9864
- jl as Notebook,
9865
- Bl as One2many,
9866
- $a as ProgressBar,
9867
- rd as Radio,
9868
- lc as Reference,
9869
- au as RootView,
9868
+ yl as Many2one,
9869
+ ad as Markdown,
9870
+ id as MultiCheckbox,
9871
+ Jl as Notebook,
9872
+ Yl as One2many,
9873
+ Ga as ProgressBar,
9874
+ cd as Radio,
9875
+ hc as Reference,
9876
+ vu as RootView,
9870
9877
  po as SearchFilter,
9871
9878
  bo as SearchModal,
9872
9879
  wo as SearchTree,
9873
9880
  ro as Selection,
9874
- ql as Separator,
9875
- ad as Steps,
9876
- id as Switch,
9877
- xd as Tab,
9878
- lu as TabSelector,
9879
- js as Tag,
9880
- Ys as Tags,
9881
- Gl as Text,
9882
- sc as Time,
9881
+ ec as Separator,
9882
+ md as Steps,
9883
+ ud as Switch,
9884
+ Rd as Tab,
9885
+ wu as TabSelector,
9886
+ Js as Tag,
9887
+ Xs as Tags,
9888
+ Zl as Text,
9889
+ fc as Time,
9883
9890
  pn as Tree,
9884
- Cc as Url,
9891
+ Oc as Url,
9885
9892
  ct as iconMapper,
9886
9893
  qt as showConfirmDialog
9887
9894
  };