@gisce/react-ooui 2.74.0-alpha.1 → 2.74.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,60 +1,60 @@
1
- var kl = Object.defineProperty;
2
- var Vl = (e, t, n) => t in e ? kl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var is = (e, t, n) => (Vl(e, typeof t != "symbol" ? t + "" : t, n), n);
1
+ var Pl = Object.defineProperty;
2
+ var kl = (e, t, n) => t in e ? Pl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var is = (e, t, n) => (kl(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsx as s, jsxs as N, Fragment as oe } from "react/jsx-runtime";
5
- import It, { useContext as ae, useState as I, useEffect as le, useRef as q, memo as nt, useCallback as O, useMemo as Q, forwardRef as _t, useImperativeHandle as Dt, Fragment as En, createContext as Nl, createElement as Ml } from "react";
6
- import { Tooltip as Mt, theme as Xe, Typography as nn, Form as Et, Row as Ye, Col as Fe, Modal as xt, Button as qe, Dropdown as $l, Menu as as, Spin as tt, Divider as Ir, Space as it, Input as pt, Select as fn, Checkbox as qn, Alert as vt, Timeline as mi, message as Yn, Popover as Ll, App as Hl, Progress as Bl, Avatar as pi, Tag as Fo, ColorPicker as hi, DatePicker as gi, TimePicker as jl, InputNumber as Fr, Layout as yi, Badge as tr, Pagination as Ul, Empty as vi, Statistic as Wl, Card as Ao, Tabs as bi, Radio as ls, Switch as Yl, Steps as cs, Carousel as Gl } from "antd";
7
- import { Label as Dn, Field as lo, Tree as wi, Reference as Kl, Selection as _o, Many2one as Si, Boolean as ql, parseContext as Zt, graphProcessor as Ci, graphFieldUtils as zl, parseContextFields as Jl, parseDomainFields as Ql, Integer as co, SearchFieldTypes as Xt, SearchFilter as xi, parseGraph as Ti, Container as Xl, Form as Ii, transformDomainForChildWidget as Ro, Button as Zl } from "@gisce/ooui";
5
+ import It, { useContext as ae, useState as I, useEffect as le, useRef as q, memo as nt, useCallback as O, useMemo as Q, forwardRef as _t, useImperativeHandle as Dt, Fragment as En, createContext as Vl, createElement as Nl } from "react";
6
+ import { Tooltip as Mt, theme as Qe, Typography as nn, Form as Et, Row as Ye, Col as Fe, Modal as xt, Button as qe, Dropdown as Ml, Menu as as, Spin as et, Divider as Ir, Space as it, Input as pt, Select as fn, Checkbox as qn, Alert as vt, Timeline as mi, message as Yn, Popover as $l, App as Ll, Progress as Hl, Avatar as pi, Tag as Fo, ColorPicker as hi, DatePicker as gi, TimePicker as Bl, InputNumber as Fr, Layout as yi, Badge as tr, Pagination as jl, Empty as vi, Statistic as Ul, Card as Ao, Tabs as bi, Radio as ls, Switch as Wl, Steps as cs, Carousel as Yl } from "antd";
7
+ import { Label as Dn, Field as lo, Tree as wi, Reference as Gl, Selection as _o, Many2one as Si, Boolean as Kl, parseContext as Zt, graphProcessor as Ci, graphFieldUtils as ql, parseContextFields as zl, parseDomainFields as Jl, Integer as co, SearchFieldTypes as Xt, SearchFilter as xi, parseGraph as Ti, Container as Ql, Form as Ii, transformDomainForChildWidget as Ro, Button as Xl } from "@gisce/ooui";
8
8
  import * as ds from "@ant-design/icons";
9
- import Fi, { QuestionCircleOutlined as Ai, ExclamationCircleOutlined as rn, LoadingOutlined as $t, DownOutlined as Ar, WarningOutlined as _i, CloseOutlined as Pn, CheckOutlined as nr, TranslationOutlined as Ri, FolderOpenOutlined as Oo, DownloadOutlined as Eo, ClearOutlined as _r, FormOutlined as zn, TableOutlined as Do, AreaChartOutlined as ec, CalendarOutlined as tc, FileAddOutlined as Rr, CloseCircleFilled as nc, CopyOutlined as rr, FilterOutlined as Oi, DeleteOutlined as Po, InfoCircleOutlined as kn, ReloadOutlined as Or, ThunderboltOutlined as Er, PrinterOutlined as Dr, ExportOutlined as Ei, EnterOutlined as Pr, SearchOutlined as kr, UpOutlined as rc, PlusSquareOutlined as oc, MinusSquareOutlined as sc, StarFilled as ic, StarOutlined as ac, LeftOutlined as Di, RightOutlined as Pi, ApiOutlined as lc, AlignLeftOutlined as cc, EyeOutlined as dc, LinkOutlined as us, SaveOutlined as uc, EditOutlined as ki, PlusOutlined as fc, BorderOuterOutlined as mc, SettingOutlined as pc } from "@ant-design/icons";
9
+ import Fi, { QuestionCircleOutlined as Ai, ExclamationCircleOutlined as rn, LoadingOutlined as $t, DownOutlined as Ar, WarningOutlined as _i, CloseOutlined as Pn, CheckOutlined as nr, TranslationOutlined as Ri, FolderOpenOutlined as Oo, DownloadOutlined as Eo, ClearOutlined as _r, FormOutlined as zn, TableOutlined as Do, AreaChartOutlined as Zl, CalendarOutlined as ec, FileAddOutlined as Rr, CloseCircleFilled as tc, CopyOutlined as rr, FilterOutlined as Oi, DeleteOutlined as Po, InfoCircleOutlined as kn, ReloadOutlined as Or, ThunderboltOutlined as Er, PrinterOutlined as Dr, ExportOutlined as Ei, EnterOutlined as Pr, SearchOutlined as kr, UpOutlined as nc, PlusSquareOutlined as rc, MinusSquareOutlined as oc, StarFilled as sc, StarOutlined as ic, LeftOutlined as Di, RightOutlined as Pi, ApiOutlined as ac, AlignLeftOutlined as lc, EyeOutlined as cc, LinkOutlined as us, SaveOutlined as dc, EditOutlined as ki, PlusOutlined as uc, BorderOuterOutlined as fc, SettingOutlined as mc } from "@ant-design/icons";
10
10
  import { Interweave as Jn } from "interweave";
11
- import Qe from "dayjs";
11
+ import tt from "dayjs";
12
12
  import { default as kb } from "dayjs";
13
- import hc from "dayjs/plugin/advancedFormat";
14
- import gc from "dayjs/plugin/customParseFormat";
15
- import yc from "dayjs/plugin/isoWeek";
16
- import vc from "dayjs/plugin/timezone";
17
- import bc from "dayjs/plugin/duration";
18
- import wc from "dayjs/plugin/relativeTime";
19
- import Sc from "dayjs/plugin/weekday";
20
- import Cc from "dayjs/plugin/localeData";
21
- import { useLocale as ge, FormigaConfigProvider as xc, mergeStrings as Tc, Dropdown as Vi, DropdownButton as Kt, Many2OneSuffix as Ic, Many2OneSuffixModal as fs, SkeletonPill as Fc, PaginationHeader as Ac, FieldSet as _c, ExportModal as Rc, HTMLPreview as Oc, FavouriteButton as Ec } from "@gisce/react-formiga-components";
13
+ import pc from "dayjs/plugin/advancedFormat";
14
+ import hc from "dayjs/plugin/customParseFormat";
15
+ import gc from "dayjs/plugin/isoWeek";
16
+ import yc from "dayjs/plugin/timezone";
17
+ import vc from "dayjs/plugin/duration";
18
+ import bc from "dayjs/plugin/relativeTime";
19
+ import wc from "dayjs/plugin/weekday";
20
+ import Sc from "dayjs/plugin/localeData";
21
+ import { useLocale as ge, FormigaConfigProvider as Cc, mergeStrings as xc, Dropdown as Vi, DropdownButton as Kt, Many2OneSuffix as Tc, Many2OneSuffixModal as fs, SkeletonPill as Ic, PaginationHeader as Fc, FieldSet as Ac, ExportModal as _c, HTMLPreview as Rc, FavouriteButton as Oc } from "@gisce/react-formiga-components";
22
22
  import * as ms from "@tabler/icons-react";
23
- import { IconExternalLink as Dc, IconShare2 as Pc } from "@tabler/icons-react";
24
- import kc from "antd/lib/input/TextArea";
23
+ import { IconExternalLink as Ec, IconShare2 as Dc } from "@tabler/icons-react";
24
+ import Pc from "antd/lib/input/TextArea";
25
25
  import gt from "styled-components";
26
26
  import ko from "react-measure";
27
- import Vc from "lodash/debounce";
27
+ import kc from "lodash/debounce";
28
28
  import { nanoid as Vo } from "nanoid";
29
29
  import uo from "antd/lib/typography/Title";
30
30
  import jt from "use-deep-compare-effect";
31
- import { Line as Nc, Column as Mc, Pie as $c } from "@ant-design/plots";
31
+ import { Line as Vc, Column as Nc, Pie as Mc } from "@ant-design/plots";
32
32
  import { createRoot as Ni } from "react-dom/client";
33
- import { fileTypeFromBuffer as Lc } from "file-type-buffer-browser";
34
- import { generate as Hc } from "@ant-design/colors";
35
- import Bc from "antd/es/date-picker/locale/en_US";
36
- import jc from "antd/es/date-picker/locale/es_ES";
37
- import Uc from "antd/es/date-picker/locale/ca_ES";
38
- import { InfiniteTable as Mi, Table as Wc, PaginatedTable as Yc } from "@gisce/react-formiga-table";
33
+ import { fileTypeFromBuffer as $c } from "file-type-buffer-browser";
34
+ import { generate as Lc } from "@ant-design/colors";
35
+ import Hc from "antd/es/date-picker/locale/en_US";
36
+ import Bc from "antd/es/date-picker/locale/es_ES";
37
+ import jc from "antd/es/date-picker/locale/ca_ES";
38
+ import { InfiniteTable as Mi, Table as Uc, PaginatedTable as Wc } from "@gisce/react-formiga-table";
39
39
  import $i from "antd/es/typography/Link";
40
40
  import { useDeepCompareEffect as Ft, useDeepCompareCallback as At, useDeepCompareMemo as Fn } from "use-deep-compare";
41
41
  import { isPresetStatusColor as Li, isPresetColor as Hi } from "antd/lib/_util/colors";
42
- import Gc from "validator";
42
+ import Yc from "validator";
43
43
  import hr from "antd/es/alert/ErrorBoundary";
44
44
  import "@gisce/react-formiga-table/style.css";
45
- import { GridUi as Kc } from "@gisce/fiber-diagram";
45
+ import { GridUi as Gc } from "@gisce/fiber-diagram";
46
46
  import { useHotkeys as an } from "react-hotkeys-hook";
47
- import qc from "validator/lib/isURL";
48
- import zc from "validator/lib/isEmail";
47
+ import Kc from "validator/lib/isURL";
48
+ import qc from "validator/lib/isEmail";
49
49
  import "react-grid-layout/css/styles.css";
50
- import { WidthProvider as Jc, Responsive as Qc } from "react-grid-layout";
51
- import Xc from "react-markdown";
52
- import Zc from "remark-gfm";
53
- import ed from "@monaco-editor/react";
54
- import td from "md5";
55
- import { AnimatePresence as nd, motion as ps } from "framer-motion";
56
- import rd from "focus-trap-react";
57
- const Je = It.createContext(null), od = (e) => {
50
+ import { WidthProvider as zc, Responsive as Jc } from "react-grid-layout";
51
+ import Qc from "react-markdown";
52
+ import Xc from "remark-gfm";
53
+ import Zc from "@monaco-editor/react";
54
+ import ed from "md5";
55
+ import { AnimatePresence as td, motion as ps } from "framer-motion";
56
+ import nd from "focus-trap-react";
57
+ const Je = It.createContext(null), rd = (e) => {
58
58
  const {
59
59
  children: t,
60
60
  activeId: n,
@@ -96,7 +96,7 @@ const Je = It.createContext(null), od = (e) => {
96
96
  children: t
97
97
  }
98
98
  );
99
- }, sd = () => {
99
+ }, od = () => {
100
100
  const e = ae(Je);
101
101
  return e || {
102
102
  activeId: void 0,
@@ -124,10 +124,10 @@ var ln = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
124
124
  function Bi(e) {
125
125
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
126
126
  }
127
- var id = { exports: {} };
127
+ var sd = { exports: {} };
128
128
  (function(e, t) {
129
129
  (function(n, r) {
130
- e.exports = r(Qe);
130
+ e.exports = r(tt);
131
131
  })(ln, function(n) {
132
132
  function r(i) {
133
133
  return i && typeof i == "object" && "default" in i ? i : { default: i };
@@ -137,8 +137,8 @@ var id = { exports: {} };
137
137
  } };
138
138
  return o.default.locale(a, null, !0), a;
139
139
  });
140
- })(id);
141
- var ad = { exports: {} };
140
+ })(sd);
141
+ var id = { exports: {} };
142
142
  (function(e, t) {
143
143
  (function(n, r) {
144
144
  e.exports = r();
@@ -148,11 +148,11 @@ var ad = { exports: {} };
148
148
  return "[" + n + (r[(o - 20) % 10] || r[o] || r[0]) + "]";
149
149
  } };
150
150
  });
151
- })(ad);
152
- var ld = { exports: {} };
151
+ })(id);
152
+ var ad = { exports: {} };
153
153
  (function(e, t) {
154
154
  (function(n, r) {
155
- e.exports = r(Qe);
155
+ e.exports = r(tt);
156
156
  })(ln, function(n) {
157
157
  function r(i) {
158
158
  return i && typeof i == "object" && "default" in i ? i : { default: i };
@@ -162,16 +162,16 @@ var ld = { exports: {} };
162
162
  } };
163
163
  return o.default.locale(a, null, !0), a;
164
164
  });
165
- })(ld);
166
- Qe.extend(hc);
167
- Qe.extend(gc);
168
- Qe.extend(yc);
169
- Qe.extend(vc);
170
- Qe.extend(bc);
171
- Qe.extend(wc);
172
- Qe.extend(Sc);
173
- Qe.extend(Cc);
174
- const { Text: cd, Title: dd } = nn, { useToken: ud } = Xe, fd = {
165
+ })(ad);
166
+ tt.extend(pc);
167
+ tt.extend(hc);
168
+ tt.extend(gc);
169
+ tt.extend(yc);
170
+ tt.extend(vc);
171
+ tt.extend(bc);
172
+ tt.extend(wc);
173
+ tt.extend(Sc);
174
+ const { Text: ld, Title: cd } = nn, { useToken: dd } = Qe, ud = {
175
175
  left: "justify-start",
176
176
  center: "justify-center",
177
177
  right: "justify-end"
@@ -184,15 +184,15 @@ const { Text: cd, Title: dd } = nn, { useToken: ud } = Xe, fd = {
184
184
  time: "HH:mm",
185
185
  datetime: "DD/MM/YYYY HH:mm"
186
186
  };
187
- m = u ? Qe(u).format(
187
+ m = u ? tt(u).format(
188
188
  v[t.fieldType]
189
- ) : "", t.humanDate ? u = u ? Qe(u).fromNow() : "" : (u = m, m = "");
189
+ ) : "", t.humanDate ? u = u ? tt(u).fromNow() : "" : (u = m, m = "");
190
190
  }
191
- const p = n || (i ? r ? "left" : "right" : "left"), { token: y } = ud(), g = l === void 0 ? cd : dd;
191
+ const p = n || (i ? r ? "left" : "right" : "left"), { token: y } = dd(), g = l === void 0 ? ld : cd;
192
192
  return /* @__PURE__ */ N(
193
193
  "div",
194
194
  {
195
- className: `flex flex-row items-center pb-1 pt-1 ${fd[p]}`,
195
+ className: `flex flex-row items-center pb-1 pt-1 ${ud[p]}`,
196
196
  children: [
197
197
  a && /* @__PURE__ */ s(Mt, { title: a, children: /* @__PURE__ */ s(
198
198
  Ai,
@@ -259,14 +259,14 @@ function $e({
259
259
  p()
260
260
  ] }))();
261
261
  }
262
- const { confirm: md } = xt, zt = ({
262
+ const { confirm: fd } = xt, zt = ({
263
263
  onOk: e,
264
264
  confirmMessage: t,
265
265
  okText: n,
266
266
  cancelText: r,
267
267
  t: o
268
268
  }) => {
269
- md({
269
+ fd({
270
270
  title: o("confirmation"),
271
271
  icon: /* @__PURE__ */ s(rn, {}),
272
272
  centered: !0,
@@ -367,8 +367,8 @@ const { confirm: md } = xt, zt = ({
367
367
  STOCK_CLEAR: "CloseSquare",
368
368
  STOCK_UNINDENT: "AlignLeft",
369
369
  STOCK_PREFERENCES: "Setting"
370
- }, St = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), hs.hasOwnProperty(e) ? gs(hs[e], t) : gs(e, t));
371
- function pd(e) {
370
+ }, wt = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), hs.hasOwnProperty(e) ? gs(hs[e], t) : gs(e, t));
371
+ function md(e) {
372
372
  return `${e.split("-").map(
373
373
  (t) => t.replace(
374
374
  /\w\S*/g,
@@ -378,7 +378,7 @@ function pd(e) {
378
378
  }
379
379
  function gs(e, t) {
380
380
  let n = e.charAt(0).toUpperCase() + e.slice(1);
381
- n.indexOf("-") !== -1 && (n = pd(n));
381
+ n.indexOf("-") !== -1 && (n = md(n));
382
382
  const r = `${n}Outlined`;
383
383
  if (ds[r])
384
384
  return () => It.createElement(ds[r], {
@@ -442,7 +442,7 @@ const No = (e) => {
442
442
  if (m)
443
443
  return /* @__PURE__ */ s($t, {});
444
444
  if (l) {
445
- const b = St(l);
445
+ const b = wt(l);
446
446
  return b && /* @__PURE__ */ s(b, {});
447
447
  }
448
448
  }
@@ -459,7 +459,7 @@ const No = (e) => {
459
459
  children: r
460
460
  }
461
461
  ) });
462
- }, hd = (e) => {
462
+ }, pd = (e) => {
463
463
  const { ooui: t } = e, { defaultButton: n, secondaryButtons: r } = t, {
464
464
  id: o,
465
465
  caption: a,
@@ -475,7 +475,7 @@ const No = (e) => {
475
475
  if (y)
476
476
  return /* @__PURE__ */ s($t, {});
477
477
  if (d) {
478
- const x = St(d);
478
+ const x = wt(d);
479
479
  return x && /* @__PURE__ */ s(x, {});
480
480
  }
481
481
  }
@@ -499,14 +499,14 @@ const No = (e) => {
499
499
  return null;
500
500
  if (t.buttons.length > 1)
501
501
  return /* @__PURE__ */ s($e, { ooui: new lo({ defaultButton: n }), children: /* @__PURE__ */ N(
502
- $l.Button,
502
+ Ml.Button,
503
503
  {
504
504
  disabled: !i || m,
505
505
  onClick: C,
506
506
  icon: /* @__PURE__ */ s(Ar, {}),
507
507
  type: f ? "primary" : void 0,
508
508
  overlay: /* @__PURE__ */ s(
509
- gd,
509
+ hd,
510
510
  {
511
511
  ooui: r,
512
512
  executeButtonAction: p
@@ -520,7 +520,7 @@ const No = (e) => {
520
520
  ) });
521
521
  if (n)
522
522
  return /* @__PURE__ */ s(No, { ooui: n });
523
- }, gd = (e) => {
523
+ }, hd = (e) => {
524
524
  const { t } = ge(), { ooui: n, executeButtonAction: r } = e;
525
525
  if (!n)
526
526
  return null;
@@ -556,7 +556,7 @@ const No = (e) => {
556
556
  if (y)
557
557
  return /* @__PURE__ */ s($t, {});
558
558
  if (u) {
559
- const C = St(u);
559
+ const C = wt(u);
560
560
  return C && /* @__PURE__ */ s(C, {});
561
561
  }
562
562
  }
@@ -573,7 +573,7 @@ const No = (e) => {
573
573
  );
574
574
  });
575
575
  return /* @__PURE__ */ s(as, { children: o });
576
- }, yd = 0.7;
576
+ }, gd = 0.7;
577
577
  function ys() {
578
578
  const { innerWidth: e, innerHeight: t } = window;
579
579
  return {
@@ -591,7 +591,7 @@ function Nr() {
591
591
  }
592
592
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
593
593
  }, []), {
594
- modalWidth: e.width * yd,
594
+ modalWidth: e.width * gd,
595
595
  modalHeight: e.height,
596
596
  width: e.width,
597
597
  height: e.height
@@ -627,9 +627,9 @@ const ji = (e) => {
627
627
  message: t,
628
628
  title: r
629
629
  };
630
- }, { error: vd, warning: bd } = xt, wt = (e) => {
630
+ }, { error: yd, warning: vd } = xt, bt = (e) => {
631
631
  const { message: t, type: n, title: r } = ji(e);
632
- (n === "error" ? vd : bd)({
632
+ (n === "error" ? yd : vd)({
633
633
  title: r,
634
634
  icon: n === "error" ? /* @__PURE__ */ s(rn, {}) : /* @__PURE__ */ s(_i, {}),
635
635
  centered: !0,
@@ -646,7 +646,7 @@ const ji = (e) => {
646
646
  const w = await _();
647
647
  await C(w);
648
648
  } catch (w) {
649
- wt(w);
649
+ bt(w);
650
650
  }
651
651
  m(!1);
652
652
  }
@@ -678,7 +678,7 @@ const ji = (e) => {
678
678
  return d.map((w, A) => /* @__PURE__ */ N(Ye, { style: { paddingBottom: 20 }, children: [
679
679
  /* @__PURE__ */ s(Fe, { flex: "8rem", style: { paddingRight: 10 }, children: w.name }),
680
680
  /* @__PURE__ */ s(Fe, { flex: "auto", children: /* @__PURE__ */ s(
681
- kc,
681
+ Pc,
682
682
  {
683
683
  rows: 4,
684
684
  value: y[w.code] || "",
@@ -707,12 +707,12 @@ const ji = (e) => {
707
707
  fields: {}
708
708
  });
709
709
  } catch (w) {
710
- wt(w);
710
+ bt(w);
711
711
  }
712
712
  p(!1), i();
713
713
  }
714
714
  function T() {
715
- return u ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ N(oe, { children: [
715
+ return u ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ N(oe, { children: [
716
716
  x(),
717
717
  /* @__PURE__ */ s(Ir, {}),
718
718
  /* @__PURE__ */ s(Ye, { justify: "end", children: /* @__PURE__ */ N(it, { children: [
@@ -759,18 +759,18 @@ function mt(e) {
759
759
  const { tooltip: t, ...n } = e;
760
760
  return /* @__PURE__ */ s(Mt, { title: t, children: /* @__PURE__ */ s(qe, { ...n }) });
761
761
  }
762
- const { info: wd } = xt, cn = (e) => {
763
- wd({
762
+ const { info: bd } = xt, cn = (e) => {
763
+ bd({
764
764
  title: "",
765
765
  centered: !0,
766
766
  content: e
767
767
  });
768
- }, { useToken: Sd } = Xe, Mr = nt(({ content: e }) => {
769
- const { token: t } = Sd();
768
+ }, { useToken: wd } = Qe, Mr = nt(({ content: e }) => {
769
+ const { token: t } = wd();
770
770
  return /* @__PURE__ */ s("div", { style: { color: t.colorTextDisabled }, children: e });
771
771
  });
772
772
  Mr.displayName = "AddonElement";
773
- const { defaultAlgorithm: Cd, defaultSeed: xd } = Xe, Mo = Cd(xd), Qn = nt(
773
+ const { defaultAlgorithm: Sd, defaultSeed: Cd } = Qe, Mo = Sd(Cd), Qn = nt(
774
774
  ({
775
775
  component: e,
776
776
  ooui: t,
@@ -821,7 +821,7 @@ const Wi = (e) => {
821
821
  [r]
822
822
  );
823
823
  if (l) {
824
- const y = u ? Fd : pt.Password;
824
+ const y = u ? Id : pt.Password;
825
825
  return /* @__PURE__ */ s(
826
826
  Qn,
827
827
  {
@@ -883,7 +883,7 @@ const Gi = nt(
883
883
  u(!1), l == null || l({
884
884
  forceRefresh: !0
885
885
  });
886
- }, [l]), C = y ? Id : Td;
886
+ }, [l]), C = y ? Td : xd;
887
887
  return a ? /* @__PURE__ */ N(oe, { children: [
888
888
  /* @__PURE__ */ s("div", { onClick: v, children: /* @__PURE__ */ s(
889
889
  Qn,
@@ -933,12 +933,12 @@ const Gi = nt(
933
933
  }
934
934
  );
935
935
  Gi.displayName = "TranslatableCharComp";
936
- const Td = gt(pt)`
936
+ const xd = gt(pt)`
937
937
  &.ant-input {
938
938
  cursor: ${(e) => e.disabled ? "pointer" : "text"};
939
939
  pointer-events: ${(e) => e.disabled ? "none" : "auto"};
940
940
  }
941
- `, Id = gt(pt)`
941
+ `, Td = gt(pt)`
942
942
  &.ant-input {
943
943
  background-color: ${Mo.colorPrimaryBg};
944
944
  cursor: pointer;
@@ -948,20 +948,20 @@ const Td = gt(pt)`
948
948
  &.ant-input {
949
949
  background-color: ${Mo.colorPrimaryBg};
950
950
  }
951
- `, Fd = gt(pt.Password)`
951
+ `, Id = gt(pt.Password)`
952
952
  &.ant-input-affix-wrapper {
953
953
  background-color: ${Mo.colorPrimaryBg};
954
954
  }
955
- `, { defaultAlgorithm: Ad, defaultSeed: _d } = Xe, Rd = Ad(_d), { Option: Od } = fn, qi = (e) => {
955
+ `, { defaultAlgorithm: Fd, defaultSeed: Ad } = Qe, _d = Fd(Ad), { Option: Rd } = fn, qi = (e) => {
956
956
  const { ooui: t } = e, { required: n } = t;
957
957
  return /* @__PURE__ */ s($e, { required: n, type: "any", ...e, children: /* @__PURE__ */ s(zi, { ...e }) });
958
958
  }, zi = (e) => {
959
959
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: a, required: i } = t, l = Array.from(o.entries()), c = l && l.length && l.map((f) => {
960
960
  const [u, m] = f;
961
- return /* @__PURE__ */ s(Od, { value: u, children: m }, u);
961
+ return /* @__PURE__ */ s(Rd, { value: u, children: m }, u);
962
962
  });
963
963
  return /* @__PURE__ */ s(
964
- i && !a ? Ed : fn,
964
+ i && !a ? Od : fn,
965
965
  {
966
966
  disabled: a,
967
967
  onChange: n,
@@ -973,17 +973,17 @@ const Td = gt(pt)`
973
973
  children: c
974
974
  }
975
975
  );
976
- }, Ed = gt(fn)`
976
+ }, Od = gt(fn)`
977
977
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
978
- background-color: ${Rd.colorPrimaryBg};
978
+ background-color: ${_d.colorPrimaryBg};
979
979
  }
980
- `, { defaultAlgorithm: Dd, defaultSeed: Pd } = Xe, vs = Dd(Pd), kd = (e) => {
980
+ `, { defaultAlgorithm: Ed, defaultSeed: Dd } = Qe, vs = Ed(Dd), Pd = (e) => {
981
981
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
982
- return /* @__PURE__ */ s($e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ s(Vd, { id: n, readOnly: r, required: o }) });
983
- }, Vd = (e) => {
982
+ return /* @__PURE__ */ s($e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ s(kd, { id: n, readOnly: r, required: o }) });
983
+ }, kd = (e) => {
984
984
  const { required: t, readOnly: n, ...r } = e;
985
- return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(t && !n ? Nd : qn, { disabled: n, ...r }) });
986
- }, Nd = gt(qn)`
985
+ return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(t && !n ? Vd : qn, { disabled: n, ...r }) });
986
+ }, Vd = gt(qn)`
987
987
  .ant-checkbox-inner {
988
988
  background-color: ${vs.colorPrimaryBg};
989
989
  }
@@ -992,12 +992,12 @@ const Td = gt(pt)`
992
992
  background-color: ${vs.colorPrimary};
993
993
  }
994
994
  `;
995
- function Md(e) {
995
+ function Nd(e) {
996
996
  const n = Buffer.from(e, "base64").length / 1e3;
997
997
  return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
998
998
  }
999
999
  async function An(e) {
1000
- const t = await Lc(
1000
+ const t = await $c(
1001
1001
  Buffer.from(e, "base64")
1002
1002
  );
1003
1003
  return t || {
@@ -1019,7 +1019,7 @@ function $r(e, t) {
1019
1019
  const $o = (e) => {
1020
1020
  const { value: t, style: n = {} } = e;
1021
1021
  if (t) {
1022
- const r = St(t);
1022
+ const r = wt(t);
1023
1023
  return r ? /* @__PURE__ */ s(r, {}) : /* @__PURE__ */ s(
1024
1024
  "img",
1025
1025
  {
@@ -1028,10 +1028,10 @@ const $o = (e) => {
1028
1028
  }
1029
1029
  );
1030
1030
  }
1031
- }, $d = (e) => {
1031
+ }, Md = (e) => {
1032
1032
  const { ooui: t } = e, { required: n, id: r } = t;
1033
- return St(r) ? /* @__PURE__ */ s($o, { value: r }) : /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s(Ld, { ooui: t }) });
1034
- }, Ld = (e) => {
1033
+ return wt(r) ? /* @__PURE__ */ s($o, { value: r }) : /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s($d, { ooui: t }) });
1034
+ }, $d = (e) => {
1035
1035
  const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, a = q(null), { t: i } = ge(), l = (u) => {
1036
1036
  r == null || r(u);
1037
1037
  };
@@ -1097,10 +1097,10 @@ const $o = (e) => {
1097
1097
  )
1098
1098
  ] }) })
1099
1099
  ] });
1100
- }, Hd = (e) => {
1100
+ }, Ld = (e) => {
1101
1101
  const { ooui: t } = e, { required: n } = t;
1102
- return /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s(Bd, {}) });
1103
- }, Bd = (e) => {
1102
+ return /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s(Hd, {}) });
1103
+ }, Hd = (e) => {
1104
1104
  const { value: t, onChange: n } = e;
1105
1105
  if (!t)
1106
1106
  return null;
@@ -1110,7 +1110,7 @@ const $o = (e) => {
1110
1110
  return console.error(r), null;
1111
1111
  }
1112
1112
  return /* @__PURE__ */ s(
1113
- Kc,
1113
+ Gc,
1114
1114
  {
1115
1115
  inputJson: t,
1116
1116
  onChange: (r) => {
@@ -1122,13 +1122,13 @@ const $o = (e) => {
1122
1122
  const t = e.arch, n = e.fields, r = new wi(n);
1123
1123
  return r.parse(t), r;
1124
1124
  };
1125
- function jd(e) {
1125
+ function Bd(e) {
1126
1126
  return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
1127
1127
  }
1128
1128
  const Lr = (e, t, n, r = !1) => e.columns.map((a) => {
1129
1129
  const i = a.type, l = a.id, c = t == null ? void 0 : t[i];
1130
1130
  let d;
1131
- return c ? d = (f) => c({ value: f, key: l, ooui: a, context: n }) : d = (f) => jd(f) ? f : /* @__PURE__ */ N("p", { style: { color: "red" }, children: [
1131
+ return c ? d = (f) => c({ value: f, key: l, ooui: a, context: n }) : d = (f) => Bd(f) ? f : /* @__PURE__ */ N("p", { style: { color: "red" }, children: [
1132
1132
  "Unsupported widget value for a Tree cell:",
1133
1133
  /* @__PURE__ */ s("pre", { children: /* @__PURE__ */ N("strong", { children: [
1134
1134
  "Type: ",
@@ -1155,11 +1155,11 @@ const Lr = (e, t, n, r = !1) => e.columns.map((a) => {
1155
1155
  o[a] = r[a];
1156
1156
  else {
1157
1157
  const i = e.findById(a);
1158
- i instanceof Kl || i instanceof _o ? o[a] = r[a] : i instanceof Si ? o[a] = r[a] && Array.isArray(r[a]) && r[a].length === 2 && {
1158
+ i instanceof Gl || i instanceof _o ? o[a] = r[a] : i instanceof Si ? o[a] = r[a] && Array.isArray(r[a]) && r[a].length === 2 && {
1159
1159
  model: i.relation,
1160
1160
  id: r[a][0],
1161
1161
  value: r[a][1]
1162
- } : i instanceof ql ? o[a] = r[a] : i ? o[a] = r[a] === !1 ? "" : r[a] : o[a] = r[a];
1162
+ } : i instanceof Kl ? o[a] = r[a] : i ? o[a] = r[a] === !1 ? "" : r[a] : o[a] = r[a];
1163
1163
  }
1164
1164
  }), o;
1165
1165
  });
@@ -1191,7 +1191,7 @@ function xn({
1191
1191
  };
1192
1192
  return e.sort(l);
1193
1193
  }
1194
- function Ud(e) {
1194
+ function jd(e) {
1195
1195
  for (const t in e)
1196
1196
  if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
1197
1197
  return !0;
@@ -1276,7 +1276,7 @@ const Lo = async (e) => {
1276
1276
  }, Zi = (e) => {
1277
1277
  const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
1278
1278
  return t.length === 0 ? -1 : Math.min(...t) - 1;
1279
- }, Wd = (e, t) => {
1279
+ }, Ud = (e, t) => {
1280
1280
  const n = {};
1281
1281
  return Object.keys(e).forEach((r) => {
1282
1282
  var o;
@@ -1284,7 +1284,7 @@ const Lo = async (e) => {
1284
1284
  (a) => a.operation !== "pendingRemove"
1285
1285
  ) : n[r] = e[r];
1286
1286
  }), n;
1287
- }, Yd = ({
1287
+ }, Wd = ({
1288
1288
  values: e,
1289
1289
  fields: t
1290
1290
  }) => {
@@ -1303,7 +1303,7 @@ const Lo = async (e) => {
1303
1303
  n[r] = e[r];
1304
1304
  }), n;
1305
1305
  };
1306
- function Gd(e) {
1306
+ function Yd(e) {
1307
1307
  const t = e.map((r) => r.id);
1308
1308
  return e.filter((r, o) => {
1309
1309
  const { id: a } = r;
@@ -1319,7 +1319,7 @@ function bs({
1319
1319
  e[r] && (n[r] = e[r]);
1320
1320
  }), n;
1321
1321
  }
1322
- const Kd = ({
1322
+ const Gd = ({
1323
1323
  allItems: e,
1324
1324
  range: t
1325
1325
  }) => {
@@ -1328,7 +1328,7 @@ const Kd = ({
1328
1328
  return l && (l.operation === "original" || l.operation === "pendingLink");
1329
1329
  }), a = e.filter((i) => i && i.operation !== "original" && i.operation !== "pendingLink");
1330
1330
  return { realItemsIds: o, otherItems: a };
1331
- }, qd = ({
1331
+ }, Kd = ({
1332
1332
  finalResultIds: e,
1333
1333
  fetchedItems: t,
1334
1334
  otherItems: n
@@ -1342,15 +1342,15 @@ const Kd = ({
1342
1342
  const i = t.findIndex((c) => c.id === o.id), l = t.findIndex((c) => c.id === a.id);
1343
1343
  return i - l;
1344
1344
  }), r;
1345
- }, zd = async (e, t, n, r) => await M.getHandler().searchAllIds({
1345
+ }, qd = async (e, t, n, r) => await M.getHandler().searchAllIds({
1346
1346
  model: t,
1347
1347
  params: [["id", "in", e]],
1348
1348
  context: n,
1349
1349
  order: r
1350
- }), Jd = (e) => {
1350
+ }), zd = (e) => {
1351
1351
  const t = {};
1352
1352
  return e.colors && (t.colors = e.colors), e.status && (t.status = e.status), t;
1353
- }, Qd = async ({
1353
+ }, Jd = async ({
1354
1354
  relation: e,
1355
1355
  ids: t,
1356
1356
  treeView: n,
@@ -1371,7 +1371,7 @@ const Kd = ({
1371
1371
  colors: _n(i[1]),
1372
1372
  status: gr(i[1])
1373
1373
  };
1374
- }, Xd = (e, t) => {
1374
+ }, Qd = (e, t) => {
1375
1375
  if (!t)
1376
1376
  return e;
1377
1377
  const n = {};
@@ -1385,7 +1385,7 @@ const Kd = ({
1385
1385
  } else
1386
1386
  n[r] = e[r];
1387
1387
  }), n;
1388
- }, wn = (e, t) => Xd(e, t), zr = ({
1388
+ }, wn = (e, t) => Qd(e, t), zr = ({
1389
1389
  source: e,
1390
1390
  target: t,
1391
1391
  fields: n
@@ -1418,7 +1418,7 @@ const Kd = ({
1418
1418
  else
1419
1419
  e[o] === void 0 && t[o] !== void 0 ? r[o] = t[o] : e[o] !== t[o] && (t[o] === void 0 ? r[o] = null : r[o] = t[o]);
1420
1420
  }), r;
1421
- }, Zd = ({
1421
+ }, Xd = ({
1422
1422
  changedFields: e,
1423
1423
  formOoui: t,
1424
1424
  types: n
@@ -1426,7 +1426,7 @@ const Kd = ({
1426
1426
  var i;
1427
1427
  const a = (i = t == null ? void 0 : t.findById(o)) == null ? void 0 : i.type;
1428
1428
  return n.includes(a);
1429
- }).some((o) => o === !0), eu = ({
1429
+ }).some((o) => o === !0), Zd = ({
1430
1430
  fieldsDomain: e,
1431
1431
  fields: t
1432
1432
  }) => {
@@ -1434,12 +1434,12 @@ const Kd = ({
1434
1434
  return Object.keys(t).forEach((r) => {
1435
1435
  n[r] = t[r], e[r] && (n[r].domain = e[r]);
1436
1436
  }), n;
1437
- }, tu = (e) => {
1437
+ }, eu = (e) => {
1438
1438
  const t = {};
1439
1439
  return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
1440
1440
  (n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
1441
1441
  }), t);
1442
- }, nu = ({
1442
+ }, tu = ({
1443
1443
  onChangeFieldActionArgs: e,
1444
1444
  values: t,
1445
1445
  parentValues: n = {}
@@ -1489,7 +1489,7 @@ const pn = ({
1489
1489
  const o = e[r];
1490
1490
  t[r] && t[r].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? n[r] = o[0] : n[r] = o;
1491
1491
  }), n;
1492
- }, ru = (e) => e ? "success" : "error", or = (e) => {
1492
+ }, nu = (e) => e ? "success" : "error", or = (e) => {
1493
1493
  if (!e)
1494
1494
  return;
1495
1495
  let t = 0;
@@ -1503,12 +1503,12 @@ const pn = ({
1503
1503
  }
1504
1504
  return n;
1505
1505
  }, ea = (e, t = 7) => ({
1506
- text: Hc(e)[t],
1506
+ text: Lc(e)[t],
1507
1507
  background: `${e}40`
1508
- }), ou = (e, t) => e.replace(
1508
+ }), ru = (e, t) => e.replace(
1509
1509
  /\{([^}]+)\}/g,
1510
1510
  (n, r) => t[r] !== void 0 ? t[r] : n
1511
- ), Ss = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), su = (e) => /* @__PURE__ */ N(
1511
+ ), Ss = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), ou = (e) => /* @__PURE__ */ N(
1512
1512
  "div",
1513
1513
  {
1514
1514
  style: { display: "inline-block", cursor: "pointer" },
@@ -1521,7 +1521,7 @@ const pn = ({
1521
1521
  ] })
1522
1522
  ]
1523
1523
  }
1524
- ), iu = (e) => {
1524
+ ), su = (e) => {
1525
1525
  const { ooui: t } = e, { relation: n, context: r, views: o } = t, [a, i] = I(!0), [l, c] = I(), [d, f] = I(/* @__PURE__ */ new Map()), u = ae(Je), { getContext: m } = u || {};
1526
1526
  jt(() => {
1527
1527
  p();
@@ -1541,8 +1541,8 @@ const pn = ({
1541
1541
  i(!1);
1542
1542
  }
1543
1543
  };
1544
- return a ? /* @__PURE__ */ s(tt, {}) : l ? /* @__PURE__ */ s(vt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ s($e, { type: "array", ...e, children: /* @__PURE__ */ s(au, { ooui: t, views: d }) });
1545
- }, au = (e) => {
1544
+ return a ? /* @__PURE__ */ s(et, {}) : l ? /* @__PURE__ */ s(vt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ s($e, { type: "array", ...e, children: /* @__PURE__ */ s(iu, { ooui: t, views: d }) });
1545
+ }, iu = (e) => {
1546
1546
  const { value: t, views: n, ooui: r, onChange: o } = e, { items: a = [] } = t || {}, [i, l] = I(!1), [c, d] = I(), [f, u] = I(!1), [m, h] = I(), {
1547
1547
  relation: p,
1548
1548
  context: y,
@@ -1586,15 +1586,15 @@ const pn = ({
1586
1586
  if (c)
1587
1587
  return /* @__PURE__ */ s(vt, { className: "mt-10", message: c, type: "error", banner: !0 });
1588
1588
  if (i)
1589
- return /* @__PURE__ */ s(tt, {});
1589
+ return /* @__PURE__ */ s(et, {});
1590
1590
  const k = (F) => {
1591
- const P = St(F);
1591
+ const P = wt(F);
1592
1592
  return P && /* @__PURE__ */ s(P, {});
1593
1593
  }, S = x.map((F) => {
1594
1594
  var E, H, V, $;
1595
1595
  const P = {
1596
1596
  children: /* @__PURE__ */ s(
1597
- su,
1597
+ ou,
1598
1598
  {
1599
1599
  title: (E = F.values) == null ? void 0 : E[b],
1600
1600
  summary: (H = F.values) == null ? void 0 : H[v],
@@ -1631,7 +1631,7 @@ const pn = ({
1631
1631
  }
1632
1632
  )
1633
1633
  ] });
1634
- }, lu = {
1634
+ }, au = {
1635
1635
  true: "Sí",
1636
1636
  false: "No",
1637
1637
  simple_search: "Búsqueda simple",
@@ -1744,7 +1744,7 @@ const pn = ({
1744
1744
  urlCopiedToClipboard: "URL copiada al porta-retalls",
1745
1745
  nameSearchLimitNote: "Només es mostren els primers 80 registres. Si necessiteu veure més registres, utilitzeu la cerca per filtres.",
1746
1746
  filterSearchLink: "cerca per filtres"
1747
- }, cu = {
1747
+ }, lu = {
1748
1748
  true: "Yes",
1749
1749
  false: "No",
1750
1750
  simple_search: "Simple search",
@@ -1857,7 +1857,7 @@ const pn = ({
1857
1857
  copyToClipboard: "Copy to clipboard",
1858
1858
  nameSearchLimitNote: "Only the first 80 records are shown. If you need to see more records, please use the filter search.",
1859
1859
  filterSearchLink: "filter search"
1860
- }, du = {
1860
+ }, cu = {
1861
1861
  true: "Sí",
1862
1862
  false: "No",
1863
1863
  simple_search: "Búsqueda simple",
@@ -1970,18 +1970,18 @@ const pn = ({
1970
1970
  copyToClipboard: "Copiar al portapapeles",
1971
1971
  nameSearchLimitNote: "Se muestran solo los primeros 80 registros. Si desea ver más registros, utilice la búsqueda por filtros.",
1972
1972
  filterSearchLink: "búsqueda por filtros"
1973
- }, uu = {
1974
- ca_ES: lu,
1975
- en_US: cu,
1976
- es_ES: du
1977
- }, ta = 100, fu = {
1973
+ }, du = {
1974
+ ca_ES: au,
1975
+ en_US: lu,
1976
+ es_ES: cu
1977
+ }, ta = 100, uu = {
1978
1978
  erpFeatures: {},
1979
1979
  title: "Webclient",
1980
1980
  globalValues: {},
1981
1981
  rootContext: {},
1982
1982
  devMode: !1,
1983
1983
  treeMaxLimit: ta
1984
- }, na = It.createContext(fu), on = () => {
1984
+ }, na = It.createContext(uu), on = () => {
1985
1985
  const e = ae(na);
1986
1986
  if (!e)
1987
1987
  throw new Error(
@@ -1991,7 +1991,7 @@ const pn = ({
1991
1991
  }, Jt = (e) => {
1992
1992
  const { erpFeatures: t } = on();
1993
1993
  return !!t[e];
1994
- }, mu = nt(
1994
+ }, fu = nt(
1995
1995
  ({
1996
1996
  erpFeatures: e,
1997
1997
  locale: t,
@@ -2015,16 +2015,16 @@ const pn = ({
2015
2015
  [e, r, o, a, i, l]
2016
2016
  );
2017
2017
  return /* @__PURE__ */ s(na.Provider, { value: d, children: /* @__PURE__ */ s(
2018
- xc,
2018
+ Cc,
2019
2019
  {
2020
2020
  locale: t,
2021
- localizedStrings: Tc(uu, n),
2021
+ localizedStrings: xc(du, n),
2022
2022
  children: c
2023
2023
  }
2024
2024
  ) });
2025
2025
  }
2026
2026
  );
2027
- mu.displayName = "ConfigContextProvider";
2027
+ fu.displayName = "ConfigContextProvider";
2028
2028
  async function ra({
2029
2029
  actionId: e,
2030
2030
  rootContext: t = {},
@@ -2082,7 +2082,7 @@ async function ra({
2082
2082
  treeExpandable: p
2083
2083
  };
2084
2084
  }
2085
- const pu = (e) => {
2085
+ const mu = (e) => {
2086
2086
  const [t, n] = I(), [r, o] = I(!0), [a, i] = I(), [l, c] = I(), d = ae(Je), { getContext: f, getPlainValues: u, activeId: m } = d || {}, { globalValues: h, rootContext: p } = on(), y = Q(() => ({ ...f == null ? void 0 : f(), ...p }), [f, p]);
2087
2087
  return { actionData: a, treeShortcut: l, loading: r, error: t, fetchData: async () => {
2088
2088
  n(void 0), o(!0);
@@ -2140,7 +2140,7 @@ const pu = (e) => {
2140
2140
  justifyContent: "center",
2141
2141
  alignItems: "center"
2142
2142
  },
2143
- children: /* @__PURE__ */ s(tt, {})
2143
+ children: /* @__PURE__ */ s(et, {})
2144
2144
  }
2145
2145
  ), oa = ({
2146
2146
  error: e,
@@ -2209,7 +2209,7 @@ const pu = (e) => {
2209
2209
  },
2210
2210
  children: ({ measureRef: h }) => {
2211
2211
  const p = u ? /* @__PURE__ */ s(
2212
- gu,
2212
+ hu,
2213
2213
  {
2214
2214
  value: a,
2215
2215
  total: i,
@@ -2222,7 +2222,7 @@ const pu = (e) => {
2222
2222
  suffix: f
2223
2223
  }
2224
2224
  ) : /* @__PURE__ */ s(
2225
- hu,
2225
+ pu,
2226
2226
  {
2227
2227
  value: a,
2228
2228
  total: i,
@@ -2243,7 +2243,7 @@ function ia(e, t) {
2243
2243
  const r = document.createElement("canvas").getContext("2d");
2244
2244
  return r.font = t || getComputedStyle(document.body).font, r.measureText(e).width;
2245
2245
  }
2246
- function hu({
2246
+ function pu({
2247
2247
  measureRef: e,
2248
2248
  width: t,
2249
2249
  height: n,
@@ -2266,7 +2266,7 @@ function hu({
2266
2266
  `bold ${Math.floor(c * 1.03)}px sans-serif`
2267
2267
  );
2268
2268
  i && (m = m * 2), m >= t * 0.85 && (c = t * 0.85 / m * c);
2269
- const h = i && St(i, { style: { fontSize: c * 0.7 } });
2269
+ const h = i && wt(i, { style: { fontSize: c * 0.7 } });
2270
2270
  return /* @__PURE__ */ s(
2271
2271
  "div",
2272
2272
  {
@@ -2286,7 +2286,7 @@ function hu({
2286
2286
  }
2287
2287
  );
2288
2288
  }
2289
- function gu({
2289
+ function hu({
2290
2290
  measureRef: e,
2291
2291
  height: t,
2292
2292
  width: n,
@@ -2314,7 +2314,7 @@ function gu({
2314
2314
  `bold ${Math.floor(f * 1.03)}px sans-serif`
2315
2315
  );
2316
2316
  l && (p = p * 1.5), (p >= n * 0.85 || f * 2 < d) && (f = n * 0.85 / p * f);
2317
- const y = l && St(l, { style: { fontSize: f } });
2317
+ const y = l && wt(l, { style: { fontSize: f } });
2318
2318
  return /* @__PURE__ */ s(
2319
2319
  "div",
2320
2320
  {
@@ -2350,7 +2350,7 @@ function gu({
2350
2350
  }
2351
2351
  );
2352
2352
  }
2353
- const { getValueForOperator: Cs } = Ci, yu = (e) => {
2353
+ const { getValueForOperator: Cs } = Ci, gu = (e) => {
2354
2354
  const {
2355
2355
  model: t,
2356
2356
  domain: n,
@@ -2482,7 +2482,7 @@ const { getValueForOperator: Cs } = Ci, yu = (e) => {
2482
2482
  fixedHeight: m
2483
2483
  }
2484
2484
  );
2485
- }, { processGraphData: vu } = Ci, { getFieldsToRetrieve: bu } = zl, wu = (e) => {
2485
+ }, { processGraphData: yu } = Ci, { getFieldsToRetrieve: vu } = ql, bu = (e) => {
2486
2486
  const {
2487
2487
  model: t,
2488
2488
  ooui: n,
@@ -2497,10 +2497,10 @@ const { getValueForOperator: Cs } = Ci, yu = (e) => {
2497
2497
  M.getHandler().readObjects
2498
2498
  ), [C] = ze(M.getHandler().search), x = O(async () => {
2499
2499
  d(!0), u(void 0), v(n.type || "line");
2500
- const R = bu({ ooui: n });
2500
+ const R = vu({ ooui: n });
2501
2501
  let T, w;
2502
2502
  try {
2503
- ({ values: T, fields: w } = await Cu({
2503
+ ({ values: T, fields: w } = await Su({
2504
2504
  model: t,
2505
2505
  domain: r,
2506
2506
  context: o,
@@ -2529,7 +2529,7 @@ const { getValueForOperator: Cs } = Ci, yu = (e) => {
2529
2529
  fetchData: x
2530
2530
  };
2531
2531
  y(T);
2532
- const A = vu({
2532
+ const A = yu({
2533
2533
  ooui: n,
2534
2534
  values: T,
2535
2535
  fields: w,
@@ -2569,7 +2569,7 @@ const { getValueForOperator: Cs } = Ci, yu = (e) => {
2569
2569
  fetchData: x
2570
2570
  };
2571
2571
  };
2572
- async function Su({
2572
+ async function wu({
2573
2573
  model: e,
2574
2574
  context: t,
2575
2575
  fields: n,
@@ -2581,7 +2581,7 @@ async function Su({
2581
2581
  fields: n
2582
2582
  });
2583
2583
  }
2584
- async function Cu({
2584
+ async function Su({
2585
2585
  fields: e,
2586
2586
  model: t,
2587
2587
  domain: n,
@@ -2591,7 +2591,7 @@ async function Cu({
2591
2591
  manualIds: i,
2592
2592
  methods: l
2593
2593
  }) {
2594
- const { getFields: c, readObjects: d, search: f } = l, u = await Su({
2594
+ const { getFields: c, readObjects: d, search: f } = l, u = await wu({
2595
2595
  model: t,
2596
2596
  context: r,
2597
2597
  fields: e,
@@ -2627,7 +2627,7 @@ const Jr = (e) => (t) => {
2627
2627
  });
2628
2628
  return { name: e === "pie" ? t.x : t.type, value: n };
2629
2629
  }, ur = (e) => {
2630
- if (typeof e == "string" && xu(e))
2630
+ if (typeof e == "string" && Cu(e))
2631
2631
  return parseFloat(e).toLocaleString("es-ES", {
2632
2632
  useGrouping: !0
2633
2633
  });
@@ -2635,14 +2635,14 @@ const Jr = (e) => (t) => {
2635
2635
  return e.toLocaleString("es-ES", {
2636
2636
  useGrouping: !0
2637
2637
  });
2638
- if (Tu(e)) {
2639
- const t = Iu(e);
2640
- return t === null ? e : Qe(e, Sr.input[t]).format(
2638
+ if (xu(e)) {
2639
+ const t = Tu(e);
2640
+ return t === null ? e : tt(e, Sr.input[t]).format(
2641
2641
  Sr.output[t]
2642
2642
  );
2643
2643
  } else
2644
2644
  return e;
2645
- }, xu = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), aa = (e) => typeof e == "number" && !isNaN(e), xs = {
2645
+ }, Cu = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), aa = (e) => typeof e == "number" && !isNaN(e), xs = {
2646
2646
  default: {
2647
2647
  padding: "auto",
2648
2648
  xAxis: {
@@ -2717,7 +2717,7 @@ const Jr = (e) => (t) => {
2717
2717
  }
2718
2718
  }
2719
2719
  };
2720
- function Tu(e) {
2720
+ function xu(e) {
2721
2721
  return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
2722
2722
  }
2723
2723
  const Sr = {
@@ -2736,9 +2736,9 @@ const Sr = {
2736
2736
  years: "YYYY"
2737
2737
  }
2738
2738
  };
2739
- function Iu(e) {
2739
+ function Tu(e) {
2740
2740
  for (const t in Sr.input)
2741
- if (Qe(
2741
+ if (tt(
2742
2742
  e,
2743
2743
  Sr.input[t],
2744
2744
  !0
@@ -2746,7 +2746,7 @@ function Iu(e) {
2746
2746
  return t;
2747
2747
  return null;
2748
2748
  }
2749
- const Fu = {
2749
+ const Iu = {
2750
2750
  inner: {
2751
2751
  label: {
2752
2752
  type: "inner",
@@ -2763,18 +2763,26 @@ const Fu = {
2763
2763
  labelHeight: 28
2764
2764
  }
2765
2765
  }
2766
- }, Au = (e) => {
2767
- const t = e.reduce((i, l) => i + l.value, 0), r = e.map((i) => i.value / t * 100).map((i) => Math.round(i)), a = 100 - r.reduce((i, l) => i + l, 0);
2768
- for (let i = 0; i < Math.abs(a); i++)
2769
- a > 0 ? r[i % r.length]++ : r[i % r.length]--;
2770
- return e.map((i, l) => ({
2771
- x: i.x,
2772
- percent: r[l]
2766
+ }, Fu = (e) => {
2767
+ const t = e.reduce((c, d) => c + d.value, 0), r = e.map((c) => c.value / t * 100).map(
2768
+ (c) => Math.round(c * 100) / 100
2769
+ ), o = r.reduce((c, d) => c + d, 0);
2770
+ if (Math.abs(o - 100) < 1e-3)
2771
+ return e.map((c, d) => ({
2772
+ x: c.x,
2773
+ percent: r[d]
2774
+ }));
2775
+ const i = (100 - o) / r.length, l = r.map(
2776
+ (c) => Math.round((c + i) * 100) / 100
2777
+ );
2778
+ return e.map((c, d) => ({
2779
+ x: c.x,
2780
+ percent: l[d]
2773
2781
  }));
2774
- }, { Text: Ts } = nn, la = 400, _u = nt(Nc), Ru = nt(Mc), Ou = nt($c), Eu = {
2775
- line: _u,
2776
- bar: Ru,
2777
- pie: Ou
2782
+ }, { Text: Ts } = nn, la = 400, Au = nt(Vc), _u = nt(Nc), Ru = nt(Mc), Ou = {
2783
+ line: Au,
2784
+ bar: _u,
2785
+ pie: Ru
2778
2786
  }, ca = ({
2779
2787
  type: e,
2780
2788
  data: t,
@@ -2792,13 +2800,13 @@ const Fu = {
2792
2800
  return t.reduce((g, v) => g + v.value, 0);
2793
2801
  }, [t, e]), d = Q(() => {
2794
2802
  if (e === "pie")
2795
- return Au(t);
2803
+ return Fu(t);
2796
2804
  }, [t, e]), f = O(
2797
2805
  (y) => {
2798
2806
  if (!d)
2799
2807
  return;
2800
2808
  const g = d.find((_) => _.x === y);
2801
- return `${`${((g == null ? void 0 : g.percent) || 0).toFixed(0)}%`}`;
2809
+ return `${`${(g == null ? void 0 : g.percent) || 0}`}%`;
2802
2810
  },
2803
2811
  [d]
2804
2812
  ), u = Q(() => {
@@ -2809,7 +2817,7 @@ const Fu = {
2809
2817
  }, [f, d]), m = O(
2810
2818
  ({ percent: y, x: g }) => y < 0.07 ? "" : f(g),
2811
2819
  [f]
2812
- ), h = Eu[e], p = Q(() => Du({
2820
+ ), h = Ou[e], p = Q(() => Eu({
2813
2821
  type: e,
2814
2822
  data: t,
2815
2823
  isGroup: n,
@@ -2853,7 +2861,7 @@ const Fu = {
2853
2861
  }
2854
2862
  ) : /* @__PURE__ */ s(oe, { children: `Unknown graph type: ${e}` });
2855
2863
  };
2856
- function Du(e) {
2864
+ function Eu(e) {
2857
2865
  const {
2858
2866
  type: t,
2859
2867
  data: n,
@@ -2865,7 +2873,7 @@ function Du(e) {
2865
2873
  fixedHeight: c
2866
2874
  } = e;
2867
2875
  let d = { ...xs[t] };
2868
- if (d || (d = { ...xs.default }), d.data = n, d.height = c, t === "pie" ? (d.colorField = "x", d.angleField = "value", d = { ...d, ...Fu.inner }, d.legend.itemValue = a, d.label.content = i) : (d.xField = "x", d.yField = "value", d.seriesField = "type", d.isGroup = r, o && (d.isStack = !0, d.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
2876
+ if (d || (d = { ...xs.default }), d.data = n, d.height = c, t === "pie" ? (d.colorField = "x", d.angleField = "value", d = { ...d, ...Iu.inner }, d.legend.itemValue = a, d.label.content = i) : (d.xField = "x", d.yField = "value", d.seriesField = "type", d.isGroup = r, o && (d.isStack = !0, d.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
2869
2877
  const f = l.valueOpts.min, u = l.valueOpts.max;
2870
2878
  d.yAxis = {
2871
2879
  min: f,
@@ -2874,7 +2882,7 @@ function Du(e) {
2874
2882
  }
2875
2883
  return d;
2876
2884
  }
2877
- const Pu = ({
2885
+ const Du = ({
2878
2886
  ooui: e,
2879
2887
  model: t,
2880
2888
  domain: n,
@@ -2883,7 +2891,7 @@ const Pu = ({
2883
2891
  manualIds: a,
2884
2892
  fixedHeight: i
2885
2893
  }) => {
2886
- const { t: l } = ge(), { error: c, loading: d, values: f, type: u, evaluatedEntries: m, fetchData: h } = wu({
2894
+ const { t: l } = ge(), { error: c, loading: d, values: f, type: u, evaluatedEntries: m, fetchData: h } = bu({
2887
2895
  model: t,
2888
2896
  ooui: e,
2889
2897
  limit: o,
@@ -2910,14 +2918,14 @@ const Pu = ({
2910
2918
  }
2911
2919
  );
2912
2920
  }, Is = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, mr = (e, t) => {
2913
- const n = Lu(e), r = Mu(n), o = $u(
2921
+ const n = $u(e), r = Nu(n), o = Mu(
2914
2922
  r,
2915
2923
  t
2916
2924
  );
2917
2925
  return [
2918
- ...Object.keys(o).map((l) => ku(l, o[l], t))
2926
+ ...Object.keys(o).map((l) => Pu(l, o[l], t))
2919
2927
  ].reduce((l, c) => Array.isArray(c[0]) ? l.concat(c) : [...l, c], []);
2920
- }, ku = (e, t, n) => {
2928
+ }, Pu = (e, t, n) => {
2921
2929
  var a;
2922
2930
  const r = e.split("#")[0], o = (a = n.findById(r)) == null ? void 0 : a.type;
2923
2931
  if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
@@ -2939,14 +2947,14 @@ const Pu = ({
2939
2947
  (i) => Is(i)
2940
2948
  )
2941
2949
  ] : [e, "=", Is(t)];
2942
- }, Vu = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Nu = (e) => {
2950
+ }, ku = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Vu = (e) => {
2943
2951
  const t = { ...e };
2944
2952
  return Object.keys(t).forEach(
2945
2953
  (n) => (n.indexOf("#time") !== -1 || n.indexOf("#date") !== -1) && delete t[n]
2946
2954
  ), t;
2947
- }, Mu = (e) => {
2948
- const t = { ...Nu(e) };
2949
- return Vu(e).forEach((r) => {
2955
+ }, Nu = (e) => {
2956
+ const t = { ...Vu(e) };
2957
+ return ku(e).forEach((r) => {
2950
2958
  const o = e[r], a = r.split("#")[0], i = a + "#time", l = e[i];
2951
2959
  let c, d;
2952
2960
  if (o[0] !== null && (c = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
@@ -2959,7 +2967,7 @@ const Pu = ({
2959
2967
  }
2960
2968
  t[a + "#datetime"] = [c, d];
2961
2969
  }), t;
2962
- }, $u = (e, t) => {
2970
+ }, Mu = (e, t) => {
2963
2971
  const n = Object.keys(e).filter((o) => {
2964
2972
  const a = t.findById(o);
2965
2973
  return a && a.type === "date";
@@ -2967,25 +2975,25 @@ const Pu = ({
2967
2975
  return n.forEach((o) => {
2968
2976
  delete r[o], e[o][0] !== null && (r[o + "#from"] = e[o][0]), e[o][1] !== null && (r[o + "#to"] = e[o][1]);
2969
2977
  }), r;
2970
- }, Lu = (e) => {
2978
+ }, $u = (e) => {
2971
2979
  const t = { ...e };
2972
2980
  return Object.keys(t).forEach(
2973
2981
  (n) => (t[n] === void 0 || t[n] === null || t[n] === "") && delete t[n]
2974
2982
  ), t;
2975
- }, Hu = (e) => {
2983
+ }, Lu = (e) => {
2976
2984
  const t = {};
2977
2985
  return e.forEach((n) => {
2978
2986
  Array.isArray(n) && n[0] ? t[n[0]] = !0 : t[n] = !0;
2979
2987
  }), Object.keys(t);
2980
2988
  }, en = (e, t) => {
2981
- const n = [...e], r = Hu(e);
2989
+ const n = [...e], r = Lu(e);
2982
2990
  return t.forEach((o) => {
2983
2991
  Array.isArray(o) && o[0] ? r.includes(o[0]) || n.push(o) : r.includes(o) || n.push(o);
2984
2992
  }), n;
2985
2993
  }, Cr = (e) => Object.keys(e).reduce((t, n) => {
2986
2994
  const r = e[n];
2987
2995
  return r !== "" && r !== void 0 && (t[n] = r), t;
2988
- }, {}), Bu = (e, t) => {
2996
+ }, {}), Hu = (e, t) => {
2989
2997
  if (!e || !Array.isArray(e) || !t)
2990
2998
  return {};
2991
2999
  const n = e.reduce((r, o) => {
@@ -2993,9 +3001,9 @@ const Pu = ({
2993
3001
  if (Array.isArray(o)) {
2994
3002
  const [i, l, c] = o, d = i.split("#")[0], f = (a = t == null ? void 0 : t[d]) == null ? void 0 : a.type;
2995
3003
  if (f === "date")
2996
- r[d] || (r[d] = [null, null]), l === ">=" ? r[d][0] = Qe(c) : l === "<=" && (r[d][1] = Qe(c));
3004
+ r[d] || (r[d] = [null, null]), l === ">=" ? r[d][0] = tt(c) : l === "<=" && (r[d][1] = tt(c));
2997
3005
  else if (f === "datetime") {
2998
- const u = Qe(c), m = i.split("#")[0];
3006
+ const u = tt(c), m = i.split("#")[0];
2999
3007
  r[m + "#date"] || (r[m + "#date"] = [null, null]), r[m + "#time"] || (r[m + "#time"] = [null, null]), l === ">=" ? (r[m + "#date"][0] = u, r[m + "#time"][0] = u) : l === "<=" && (r[m + "#date"][1] = u, r[m + "#time"][1] = u);
3000
3008
  } else
3001
3009
  r[i] = c;
@@ -3004,12 +3012,12 @@ const Pu = ({
3004
3012
  return r;
3005
3013
  }, {});
3006
3014
  return Cr(n);
3007
- }, ht = 80, { confirm: ju } = xt, Vn = ({
3015
+ }, ht = 80, { confirm: Bu } = xt, Vn = ({
3008
3016
  onOk: e,
3009
3017
  onCancel: t,
3010
3018
  t: n
3011
3019
  }) => {
3012
- ju({
3020
+ Bu({
3013
3021
  title: n("unsavedChanges"),
3014
3022
  icon: /* @__PURE__ */ s(rn, {}),
3015
3023
  centered: !0,
@@ -3022,8 +3030,8 @@ const Pu = ({
3022
3030
  }, Qr = {
3023
3031
  tree: /* @__PURE__ */ s(Do, {}),
3024
3032
  form: /* @__PURE__ */ s(zn, {}),
3025
- graph: /* @__PURE__ */ s(ec, {}),
3026
- calendar: /* @__PURE__ */ s(tc, {})
3033
+ graph: /* @__PURE__ */ s(Zl, {}),
3034
+ calendar: /* @__PURE__ */ s(ec, {})
3027
3035
  };
3028
3036
  function Fs(e) {
3029
3037
  return e ? (Qr == null ? void 0 : Qr[e.type]) || /* @__PURE__ */ s(zn, {}) : /* @__PURE__ */ s(zn, {});
@@ -3139,7 +3147,7 @@ function yt(e) {
3139
3147
  const da = (e) => /* @__PURE__ */ s(yt, { ...e, type: "primary", danger: !0 });
3140
3148
  function ua(e) {
3141
3149
  const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = ae(
3142
- Ct
3150
+ St
3143
3151
  ), { t: o } = ge(), a = () => {
3144
3152
  if (n) {
3145
3153
  Vn({
@@ -3163,9 +3171,9 @@ function ua(e) {
3163
3171
  }
3164
3172
  );
3165
3173
  }
3166
- const { useToken: Uu } = Xe;
3174
+ const { useToken: ju } = Qe;
3167
3175
  function fa(e) {
3168
- const { badgeNumber: t = 0, ...n } = e, { token: r } = Uu();
3176
+ const { badgeNumber: t = 0, ...n } = e, { token: r } = ju();
3169
3177
  return /* @__PURE__ */ N("div", { style: { position: "relative" }, children: [
3170
3178
  t > 0 && /* @__PURE__ */ s("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ s(
3171
3179
  "span",
@@ -3215,7 +3223,7 @@ async function Bo(e, t, n) {
3215
3223
  ] })
3216
3224
  );
3217
3225
  }
3218
- function Wu(e) {
3226
+ function Uu(e) {
3219
3227
  const { onSearch: t, disabled: n = !1, searchText: r } = e, { t: o } = ge(), [a] = Et.useForm(), [i, l] = I(!1), c = q(!1), d = q(r);
3220
3228
  function f(h) {
3221
3229
  const p = h.search;
@@ -3249,7 +3257,7 @@ function Wu(e) {
3249
3257
  onChange: m,
3250
3258
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
3251
3259
  suffix: (i || r && r.length > 0) && /* @__PURE__ */ s(Mt, { title: o("clear"), children: /* @__PURE__ */ s(
3252
- nc,
3260
+ tc,
3253
3261
  {
3254
3262
  style: { color: "rgba(0,0,0,.45)" },
3255
3263
  onClick: u
@@ -3271,7 +3279,7 @@ function Wu(e) {
3271
3279
  );
3272
3280
  }
3273
3281
  var Lt = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e.FEATURE_GET_TOOLBAR = "get_toolbar", e.FEATURE_MANY2ONE_SORT = "many2one_sort", e))(Lt || {});
3274
- const Ab = Object.values(Lt), Rt = It.createContext(null), Yu = (e) => {
3282
+ const Ab = Object.values(Lt), Rt = It.createContext(null), Wu = (e) => {
3275
3283
  const {
3276
3284
  children: t,
3277
3285
  openAction: n,
@@ -3314,7 +3322,7 @@ const Nn = It.createContext(null), As = async (e) => {
3314
3322
  var t;
3315
3323
  for (let n = 0; n < e.length; n++)
3316
3324
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
3317
- }, Gu = (e, t) => {
3325
+ }, Yu = (e, t) => {
3318
3326
  const { children: n, globalValues: r = {} } = e, o = q(), a = q(), [i, l] = I(!1), c = ae(
3319
3327
  Rt
3320
3328
  ), { openAction: d } = c || {}, f = q([]), { t: u } = ge();
@@ -3336,7 +3344,7 @@ const Nn = It.createContext(null), As = async (e) => {
3336
3344
  type: V
3337
3345
  } = w;
3338
3346
  if (V !== "ir.actions.report.xml") {
3339
- wt(`${V} action not supported`);
3347
+ bt(`${V} action not supported`);
3340
3348
  return;
3341
3349
  }
3342
3350
  const { ids: $ } = E || {}, L = $ || [], D = typeof F == "string" ? Zt({
@@ -3356,7 +3364,7 @@ const Nn = It.createContext(null), As = async (e) => {
3356
3364
  v(W);
3357
3365
  }, 1e3);
3358
3366
  } catch (W) {
3359
- a.current = !1, clearInterval(o.current), wt(W), l(!1);
3367
+ a.current = !1, clearInterval(o.current), bt(W), l(!1);
3360
3368
  }
3361
3369
  }
3362
3370
  async function v(T) {
@@ -3370,7 +3378,7 @@ const Nn = It.createContext(null), As = async (e) => {
3370
3378
  $r(w.result, A.mime);
3371
3379
  }
3372
3380
  } catch (A) {
3373
- a.current = !1, clearInterval(o.current), l(!1), wt(A.exception || A);
3381
+ a.current = !1, clearInterval(o.current), l(!1), bt(A.exception || A);
3374
3382
  }
3375
3383
  }
3376
3384
  async function b({
@@ -3392,11 +3400,11 @@ const Nn = It.createContext(null), As = async (e) => {
3392
3400
  return await _({ actionData: T, fields: w, values: A, context: k });
3393
3401
  if (F === "ir.actions.act_url")
3394
3402
  window.open(
3395
- ou(T.url, { ...A, context: k }),
3403
+ ru(T.url, { ...A, context: k }),
3396
3404
  "_blank"
3397
3405
  );
3398
3406
  else
3399
- return wt(`${F} action not supported`), {};
3407
+ return bt(`${F} action not supported`), {};
3400
3408
  }
3401
3409
  async function _({
3402
3410
  actionData: T,
@@ -3443,7 +3451,7 @@ const Nn = It.createContext(null), As = async (e) => {
3443
3451
  context: E
3444
3452
  }), {};
3445
3453
  } else {
3446
- const { initialView: L, views: D } = await Ku({
3454
+ const { initialView: L, views: D } = await Gu({
3447
3455
  model: S.res_model,
3448
3456
  context: E,
3449
3457
  view_mode: S.view_mode,
@@ -3521,7 +3529,7 @@ const Nn = It.createContext(null), As = async (e) => {
3521
3529
  closable: !1,
3522
3530
  centered: !0,
3523
3531
  maskClosable: !1,
3524
- children: /* @__PURE__ */ s(tt, {})
3532
+ children: /* @__PURE__ */ s(et, {})
3525
3533
  }
3526
3534
  ),
3527
3535
  /* @__PURE__ */ s(
@@ -3552,7 +3560,7 @@ const Nn = It.createContext(null), As = async (e) => {
3552
3560
  }
3553
3561
  ) });
3554
3562
  };
3555
- async function Ku({
3563
+ async function Gu({
3556
3564
  views: e,
3557
3565
  view_mode: t,
3558
3566
  model: n,
@@ -3601,7 +3609,7 @@ async function Ku({
3601
3609
  }
3602
3610
  return { views: a, initialView: i };
3603
3611
  }
3604
- const qu = _t(Gu), ma = ({
3612
+ const Ku = _t(Yu), ma = ({
3605
3613
  selectedRowItems: e,
3606
3614
  onRefreshParentValues: t
3607
3615
  }) => {
@@ -3671,17 +3679,17 @@ const qu = _t(Gu), ma = ({
3671
3679
  };
3672
3680
  }, dt = nt(() => /* @__PURE__ */ s("div", { className: "inline-block w-2" }));
3673
3681
  dt.displayName = "ActionBarSeparator";
3674
- const zu = "action", Ju = ["active_id", "active_ids", "id"], Qu = ["target", "context", "domain", "fields"], ha = (e) => {
3682
+ const qu = "action", zu = ["active_id", "active_ids", "id"], Ju = ["target", "context", "domain", "fields"], ha = (e) => {
3675
3683
  const t = new URL(window.location.origin);
3676
- t.pathname = zu;
3684
+ t.pathname = qu;
3677
3685
  const n = {
3678
3686
  ...e,
3679
- actionRawData: (e == null ? void 0 : e.actionRawData) && Zu(e.actionRawData)
3687
+ actionRawData: (e == null ? void 0 : e.actionRawData) && Xu(e.actionRawData)
3680
3688
  };
3681
3689
  return Object.entries(n).forEach(([r, o]) => {
3682
- !Qu.includes(r) && o !== void 0 && (!Array.isArray(o) || o.length > 0) && t.searchParams.set(r, Xu(o));
3690
+ !Ju.includes(r) && o !== void 0 && (!Array.isArray(o) || o.length > 0) && t.searchParams.set(r, Qu(o));
3683
3691
  }), t.toString();
3684
- }, Xu = (e) => typeof e == "object" ? JSON.stringify(e) : e.toString(), Zu = (e) => {
3692
+ }, Qu = (e) => typeof e == "object" ? JSON.stringify(e) : e.toString(), Xu = (e) => {
3685
3693
  const { context: t, domain: n, values: r } = e, o = {};
3686
3694
  if (t && (typeof t == "string" ? t !== "{}" && (o.context = t) : typeof t == "object" && Object.keys(t).length > 0 && (o.context = t)), n && (Array.isArray(n) ? n.length > 0 && (o.domain = n) : n !== "false" && (o.domain = n)), (o.domain || o.context) && r && typeof r == "object" && Object.keys(r).length > 0) {
3687
3695
  const a = ga(r);
@@ -3689,13 +3697,13 @@ const zu = "action", Ju = ["active_id", "active_ids", "id"], Qu = ["target", "co
3689
3697
  }
3690
3698
  return Object.keys(o).length > 0 ? o : void 0;
3691
3699
  }, ga = (e) => !e || typeof e != "object" ? {} : Object.fromEntries(
3692
- Object.entries(e).filter(([t]) => Ju.includes(t))
3700
+ Object.entries(e).filter(([t]) => zu.includes(t))
3693
3701
  );
3694
3702
  function Hr({ res_id: e, searchParams: t }) {
3695
3703
  const n = q(null), { currentView: r, limit: o, currentPage: a, order: i } = Mn(), l = {
3696
3704
  id: r.view_id,
3697
3705
  type: r.type
3698
- }, { token: c } = Xe.useToken(), { t: d } = ge(), [f, u] = I(!1), { currentTab: m } = jo(), h = O(
3706
+ }, { token: c } = Qe.useToken(), { t: d } = ge(), [f, u] = I(!1), { currentTab: m } = jo(), h = O(
3699
3707
  (C) => {
3700
3708
  try {
3701
3709
  const x = document.createElement("textarea");
@@ -3756,22 +3764,22 @@ function Hr({ res_id: e, searchParams: t }) {
3756
3764
  title: d("openInNewTab"),
3757
3765
  style: { height: 28 },
3758
3766
  type: "text",
3759
- icon: /* @__PURE__ */ s(Dc, { size: 18, color: c.colorTextSecondary }),
3767
+ icon: /* @__PURE__ */ s(Ec, { size: 18, color: c.colorTextSecondary }),
3760
3768
  onClick: () => window.open(g, "_blank", "noopener,noreferrer")
3761
3769
  }
3762
3770
  )
3763
3771
  ] }) });
3764
- return /* @__PURE__ */ s("div", { style: { maxHeight: 28 }, children: /* @__PURE__ */ s(Ll, { content: _, trigger: "click", placement: "bottom", children: /* @__PURE__ */ s("div", { ref: n, children: /* @__PURE__ */ s(
3772
+ return /* @__PURE__ */ s("div", { style: { maxHeight: 28 }, children: /* @__PURE__ */ s($l, { content: _, trigger: "click", placement: "bottom", children: /* @__PURE__ */ s("div", { ref: n, children: /* @__PURE__ */ s(
3765
3773
  yt,
3766
3774
  {
3767
3775
  style: { height: 28 },
3768
- icon: /* @__PURE__ */ s(Pc, { size: 16, color: c.colorTextSecondary }),
3776
+ icon: /* @__PURE__ */ s(Dc, { size: 16, color: c.colorTextSecondary }),
3769
3777
  disabled: b,
3770
3778
  tooltip: d("share")
3771
3779
  }
3772
3780
  ) }) }) });
3773
3781
  }
3774
- function ef({
3782
+ function Zu({
3775
3783
  parentContext: e = {},
3776
3784
  treeExpandable: t,
3777
3785
  toolbar: n,
@@ -3805,7 +3813,7 @@ function ef({
3805
3813
  treeType: F,
3806
3814
  setSearchParams: P,
3807
3815
  setSearchValues: E
3808
- } = ae(Ct), H = Jt(
3816
+ } = ae(St), H = Jt(
3809
3817
  Lt.FEATURE_ADVANCED_EXPORT
3810
3818
  ), { t: V } = ge(), [$, L] = I(!1), D = q(!0), W = O(() => {
3811
3819
  var z;
@@ -3833,7 +3841,7 @@ function ef({
3833
3841
  context: { ...e }
3834
3842
  }) && ((z = h == null ? void 0 : h.current) == null || z.refreshResults());
3835
3843
  } catch (Y) {
3836
- wt(Y);
3844
+ bt(Y);
3837
3845
  } finally {
3838
3846
  u == null || u(!1);
3839
3847
  }
@@ -3852,7 +3860,7 @@ function ef({
3852
3860
  context: { ...e }
3853
3861
  }), p == null || p(void 0), y == null || y(void 0), (z = h == null ? void 0 : h.current) == null || z.refreshResults();
3854
3862
  } catch (Y) {
3855
- wt(Y);
3863
+ bt(Y);
3856
3864
  } finally {
3857
3865
  c == null || c(!1);
3858
3866
  }
@@ -3948,13 +3956,13 @@ function ef({
3948
3956
  }, [U, V]);
3949
3957
  return /* @__PURE__ */ N(it, { wrap: !0, children: [
3950
3958
  x && /* @__PURE__ */ N(oe, { children: [
3951
- /* @__PURE__ */ s(tt, {}),
3959
+ /* @__PURE__ */ s(et, {}),
3952
3960
  /* @__PURE__ */ s(dt, {}),
3953
3961
  /* @__PURE__ */ s(dt, {})
3954
3962
  ] }),
3955
3963
  !t && /* @__PURE__ */ N(oe, { children: [
3956
3964
  /* @__PURE__ */ s(
3957
- Wu,
3965
+ Uu,
3958
3966
  {
3959
3967
  disabled: f || d || x,
3960
3968
  searchText: C,
@@ -4080,7 +4088,7 @@ function ef({
4080
4088
  /* @__PURE__ */ s(Hr, { searchParams: g })
4081
4089
  ] });
4082
4090
  }
4083
- const tf = nt(ef), ya = nt(() => /* @__PURE__ */ s(
4091
+ const ef = nt(Zu), ya = nt(() => /* @__PURE__ */ s(
4084
4092
  Fi,
4085
4093
  {
4086
4094
  component: () => /* @__PURE__ */ N(
@@ -4107,7 +4115,7 @@ const tf = nt(ef), ya = nt(() => /* @__PURE__ */ s(
4107
4115
  }
4108
4116
  ));
4109
4117
  ya.displayName = "ExportIcon";
4110
- const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4118
+ const { useToken: tf } = Qe, { Title: nf, Text: fr } = nn, Br = ({
4111
4119
  title: e,
4112
4120
  children: t,
4113
4121
  showSummary: n = !0
@@ -4121,7 +4129,7 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4121
4129
  totalItems: c,
4122
4130
  selectedRowItems: d,
4123
4131
  treeType: f
4124
- } = ae(Ct), { t: u } = ge(), { token: m } = nf(), h = Q(() => {
4132
+ } = ae(St), { t: u } = ge(), { token: m } = tf(), h = Q(() => {
4125
4133
  if (!n)
4126
4134
  return null;
4127
4135
  if ((o == null ? void 0 : o.type) === "form" && a) {
@@ -4203,7 +4211,7 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4203
4211
  align: "middle",
4204
4212
  children: [
4205
4213
  /* @__PURE__ */ N(Fe, { flex: 2, children: [
4206
- /* @__PURE__ */ s(rf, { level: 3, style: { marginBottom: 0 }, children: e || r }),
4214
+ /* @__PURE__ */ s(nf, { level: 3, style: { marginBottom: 0 }, children: e || r }),
4207
4215
  h
4208
4216
  ] }),
4209
4217
  /* @__PURE__ */ s(Fe, { flex: 3, children: /* @__PURE__ */ s(Ye, { justify: "end", children: t }) })
@@ -4212,8 +4220,8 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4212
4220
  ),
4213
4221
  /* @__PURE__ */ s("div", { className: "pb-5" })
4214
4222
  ] });
4215
- }, { error: of } = xt, tn = (e) => {
4216
- of({
4223
+ }, { error: rf } = xt, tn = (e) => {
4224
+ rf({
4217
4225
  title: "Error",
4218
4226
  icon: /* @__PURE__ */ s(rn, {}),
4219
4227
  centered: !0,
@@ -4223,7 +4231,7 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4223
4231
  const t = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
4224
4232
  tn(t);
4225
4233
  }, Uo = () => {
4226
- const { modal: e } = Hl.useApp();
4234
+ const { modal: e } = Ll.useApp();
4227
4235
  return O(
4228
4236
  (t) => {
4229
4237
  const n = t.message ? JSON.stringify(t.message) : JSON.stringify(t);
@@ -4270,7 +4278,7 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4270
4278
  }, [r, m, t, e, n]);
4271
4279
  return { loading: a, treeView: l, formView: d };
4272
4280
  };
4273
- function sf(e) {
4281
+ function of(e) {
4274
4282
  if (e)
4275
4283
  try {
4276
4284
  if (e.includes(":")) {
@@ -4300,22 +4308,22 @@ function va(e) {
4300
4308
  });
4301
4309
  return t = `${o}:${a}`, e < 0 && (t = "-" + t), t;
4302
4310
  }
4303
- const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba, {}) }), ba = ({ value: e }) => {
4311
+ const sf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba, {}) }), ba = ({ value: e }) => {
4304
4312
  const t = `${(e || 0).toLocaleString("en-US", {
4305
4313
  minimumIntegerDigits: 1,
4306
4314
  maximumFractionDigits: 4,
4307
4315
  useGrouping: !1
4308
4316
  })}%`;
4309
- return /* @__PURE__ */ N(lf, { children: [
4310
- /* @__PURE__ */ s(cf, { percent: e }),
4311
- /* @__PURE__ */ s(df, { children: t })
4317
+ return /* @__PURE__ */ N(af, { children: [
4318
+ /* @__PURE__ */ s(lf, { percent: e }),
4319
+ /* @__PURE__ */ s(cf, { children: t })
4312
4320
  ] });
4313
- }, lf = gt.div`
4321
+ }, af = gt.div`
4314
4322
  display: flex;
4315
4323
  align-items: center;
4316
4324
  width: 100%;
4317
4325
  min-width: 0;
4318
- `, cf = gt(Bl)`
4326
+ `, lf = gt(Hl)`
4319
4327
  flex: 1;
4320
4328
  min-width: 0;
4321
4329
  .ant-progress-outer {
@@ -4325,10 +4333,10 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4325
4333
  .ant-progress-text {
4326
4334
  display: none;
4327
4335
  }
4328
- `, df = gt.div`
4336
+ `, cf = gt.div`
4329
4337
  padding-left: 10px;
4330
4338
  white-space: nowrap;
4331
- `, uf = ({
4339
+ `, df = ({
4332
4340
  onRetrieveData: e,
4333
4341
  onItemClick: t,
4334
4342
  onOpenChange: n
@@ -4375,7 +4383,7 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4375
4383
  }, [l, e]);
4376
4384
  return /* @__PURE__ */ N(En, { children: [
4377
4385
  /* @__PURE__ */ s(
4378
- Ic,
4386
+ Tc,
4379
4387
  {
4380
4388
  onRetrieveData: f,
4381
4389
  onItemClick: (u) => {
@@ -4428,7 +4436,7 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4428
4436
  context: r
4429
4437
  });
4430
4438
  a(C);
4431
- const x = ff(C);
4439
+ const x = uf(C);
4432
4440
  let R = {};
4433
4441
  if (x.length > 0 && (R = { ...(T = await y({
4434
4442
  model: n,
@@ -4491,7 +4499,7 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4491
4499
  }
4492
4500
  }
4493
4501
  return /* @__PURE__ */ s(
4494
- uf,
4502
+ df,
4495
4503
  {
4496
4504
  onRetrieveData: b,
4497
4505
  onItemClick: _,
@@ -4500,24 +4508,24 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4500
4508
  }
4501
4509
  }
4502
4510
  );
4503
- }, ff = (e) => {
4511
+ }, uf = (e) => {
4504
4512
  const { toolbar: t } = e, r = ["action", "relate", "print"].flatMap((o) => {
4505
4513
  const a = t[o];
4506
4514
  return (a == null ? void 0 : a.flatMap((i) => {
4507
4515
  const l = [];
4508
- return "context" in i && l.push(...Jl(i.context)), "domain" in i && l.push(...Ql(i.domain)), l;
4516
+ return "context" in i && l.push(...zl(i.context)), "domain" in i && l.push(...Jl(i.domain)), l;
4509
4517
  })) || [];
4510
4518
  });
4511
4519
  return [
4512
4520
  ...new Set(r.filter((o) => o in e.fields))
4513
4521
  ];
4514
- }, mf = (e) => {
4522
+ }, ff = (e) => {
4515
4523
  const { m2oField: t } = e;
4516
4524
  return t ? /* @__PURE__ */ N(it, { children: [
4517
4525
  /* @__PURE__ */ s(oe, { children: t.value }),
4518
4526
  /* @__PURE__ */ s(jr, { id: t.id, model: t.model })
4519
4527
  ] }) : /* @__PURE__ */ s(oe, {});
4520
- }, pf = (e) => {
4528
+ }, mf = (e) => {
4521
4529
  const { value: t, context: n, selectionValues: r } = e, [o, a] = I(), [i, l] = I(!1), [c, d] = t ? t.split(",") : [], f = parseInt(d), u = O(async () => {
4522
4530
  if (!t || t && o && i)
4523
4531
  return;
@@ -4542,7 +4550,7 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4542
4550
  /* @__PURE__ */ s(oe, { children: o }),
4543
4551
  /* @__PURE__ */ s(jr, { id: f, model: c })
4544
4552
  ] });
4545
- }, hf = (e) => {
4553
+ }, pf = (e) => {
4546
4554
  const { ooui: t, value: n } = e;
4547
4555
  if (!n)
4548
4556
  return null;
@@ -4551,15 +4559,15 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4551
4559
  const o = r.toString().split(" ").filter((i) => i.length > 1).slice(0, 3).map((i) => i[0].toUpperCase()).join(""), a = or(r);
4552
4560
  return /* @__PURE__ */ s(Mt, { title: r, children: /* @__PURE__ */ s(pi, { alt: r, style: { backgroundColor: a }, children: o }) });
4553
4561
  };
4554
- function gf(e) {
4562
+ function hf(e) {
4555
4563
  return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
4556
4564
  }
4557
- const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa, { ...e }) }), wa = (e) => {
4565
+ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa, { ...e }) }), wa = (e) => {
4558
4566
  const { t } = ge(), [n, r] = ze(
4559
4567
  M.getHandler().readObjects
4560
4568
  ), { getFieldValue: o } = ae(Je) || {}, { ooui: a, value: i } = e, [l, c] = I("default");
4561
4569
  let d = i, f = or, u = i;
4562
- a.selectionValues.size ? d = a.selectionValues.get(i) : Array.isArray(i) ? (u = i[0], d = i[1]) : a.fieldType === "boolean" && (d = i ? gf(a.label) : `${t("not")} ${a.label.toLowerCase()}`, f = ru);
4570
+ a.selectionValues.size ? d = a.selectionValues.get(i) : Array.isArray(i) ? (u = i[0], d = i[1]) : a.fieldType === "boolean" && (d = i ? hf(a.label) : `${t("not")} ${a.label.toLowerCase()}`, f = nu);
4563
4571
  const m = O(async () => {
4564
4572
  var h, p;
4565
4573
  if (a.colorField)
@@ -4606,19 +4614,19 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4606
4614
  Fo,
4607
4615
  {
4608
4616
  closable: !!t,
4609
- color: Gc.isEmail(r) ? void 0 : "error",
4617
+ color: Yc.isEmail(r) ? void 0 : "error",
4610
4618
  onClose: () => t && t(r),
4611
4619
  children: r
4612
4620
  },
4613
4621
  o
4614
4622
  )) });
4615
- }, vf = ({
4623
+ }, yf = ({
4616
4624
  value: e = "",
4617
4625
  onChange: t,
4618
4626
  maxLength: n,
4619
4627
  readonly: r = !1
4620
4628
  }) => {
4621
- const { token: o } = Xe.useToken(), [a, i] = I(
4629
+ const { token: o } = Qe.useToken(), [a, i] = I(
4622
4630
  e ? e.split(";").map((g) => g.trim()).filter((g) => g) : []
4623
4631
  ), [l, c] = I(""), d = q(null), f = ae(Je), { elementHasLostFocus: u } = f || {};
4624
4632
  Ft(() => {
@@ -4695,7 +4703,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4695
4703
  ]
4696
4704
  }
4697
4705
  );
4698
- }, bt = {
4706
+ }, Ct = {
4699
4707
  date: {
4700
4708
  placeholder: "__/__/____",
4701
4709
  dateDisplayFormat: "DD/MM/YYYY",
@@ -4715,36 +4723,38 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4715
4723
  withHours: yn("DD/MM/YYYY HH"),
4716
4724
  withMinutes: yn("DD/MM/YYYY HH:mm"),
4717
4725
  withSeconds: yn("DD/MM/YYYY HH:mm:ss")
4718
- }), bf = (e) => {
4726
+ }), vf = (e) => {
4719
4727
  const { currentValue: t, now: n, mode: r, showTime: o, onChange: a } = e, i = Ca();
4720
4728
  if (i.day.test(t)) {
4721
4729
  const l = n.date(parseInt(t));
4722
- a(l.format(bt[r].dateInternalFormat));
4730
+ a(l.format(Ct[r].dateInternalFormat));
4723
4731
  }
4724
4732
  if (i.dayMonth.test(t)) {
4725
4733
  const [l, c] = t.split("/").map((f) => parseInt(f)), d = n.date(l).month(c - 1);
4726
- a(d.format(bt[r].dateInternalFormat));
4734
+ a(d.format(Ct[r].dateInternalFormat));
4727
4735
  }
4728
4736
  if (i.fullDate.test(t)) {
4729
4737
  const [l, c, d] = t.split("/").map((u) => parseInt(u)), f = n.date(l).month(c - 1).year(d);
4730
- o || a(f.format(bt.date.dateInternalFormat)), a(f.format(bt.time.dateInternalFormat));
4738
+ o || a(f.format(Ct.date.dateInternalFormat)), a(f.format(Ct.time.dateInternalFormat));
4731
4739
  }
4732
4740
  if (o) {
4733
4741
  const [l, c] = t.split(" "), [d, f, u] = l.split("/").map((h) => parseInt(h));
4734
4742
  let m = n.date(d).month(f - 1).year(u);
4735
4743
  if (i.withHours.test(t)) {
4736
4744
  const [h] = c.split(":").map((p) => parseInt(p));
4737
- m = m.hour(h), a(m.format(bt.time.dateInternalFormat));
4745
+ m = m.hour(h), a(m.format(Ct.time.dateInternalFormat));
4738
4746
  }
4739
4747
  if (i.withMinutes.test(t)) {
4740
4748
  const [h, p] = c.split(":").map((y) => parseInt(y));
4741
- m = m.hour(h).minute(p), a(m.format(bt.time.dateInternalFormat));
4749
+ m = m.hour(h).minute(p), a(m.format(Ct.time.dateInternalFormat));
4742
4750
  }
4743
4751
  }
4744
- }, wf = (e, t) => {
4752
+ }, bf = (e, t) => {
4753
+ if (!e)
4754
+ return !0;
4745
4755
  const n = Ca();
4746
4756
  return n.day.test(e) || n.dayMonth.test(e) || n.fullDate.test(e) || t && (n.fullDate.test(e) || n.withHours.test(e) || n.withMinutes.test(e));
4747
- }, Sf = ({
4757
+ }, wf = ({
4748
4758
  value: e
4749
4759
  }) => Q(
4750
4760
  () => /* @__PURE__ */ s(
@@ -4760,9 +4770,9 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4760
4770
  }
4761
4771
  ),
4762
4772
  [e]
4763
- ), Cf = ({
4773
+ ), Sf = ({
4764
4774
  value: e
4765
- }) => Q(() => /* @__PURE__ */ s(Sa, { emails: e }), [e]), xf = ({ value: e }) => Q(() => /* @__PURE__ */ s(mf, { m2oField: e }), [e]), Tf = ({ value: e }) => Q(
4775
+ }) => Q(() => /* @__PURE__ */ s(Sa, { emails: e }), [e]), Cf = ({ value: e }) => Q(() => /* @__PURE__ */ s(ff, { m2oField: e }), [e]), xf = ({ value: e }) => Q(
4766
4776
  () => /* @__PURE__ */ s(
4767
4777
  Jn,
4768
4778
  {
@@ -4770,39 +4780,39 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4770
4780
  }
4771
4781
  ),
4772
4782
  [e]
4773
- ), If = ({ value: e }) => Q(() => {
4783
+ ), Tf = ({ value: e }) => Q(() => {
4774
4784
  if (!e || e && e.length === 0)
4775
4785
  return /* @__PURE__ */ s(oe, {});
4776
- const t = Qe(
4786
+ const t = tt(
4777
4787
  e,
4778
- bt.date.dateInternalFormat
4779
- ).format(bt.date.dateDisplayFormat);
4788
+ Ct.date.dateInternalFormat
4789
+ ).format(Ct.date.dateDisplayFormat);
4780
4790
  return /* @__PURE__ */ s(oe, { children: t });
4781
- }, [e]), Ff = ({
4791
+ }, [e]), If = ({
4782
4792
  value: e,
4783
4793
  ooui: t
4784
- }) => Q(() => e ? t.fieldType === "many2one" ? /* @__PURE__ */ s(oe, { children: e[1] }) : /* @__PURE__ */ s(oe, { children: e }) : /* @__PURE__ */ s(oe, {}), [e, t.fieldType]), Af = ({ value: e }) => Q(() => {
4794
+ }) => Q(() => e ? t.fieldType === "many2one" ? /* @__PURE__ */ s(oe, { children: e[1] }) : /* @__PURE__ */ s(oe, { children: e }) : /* @__PURE__ */ s(oe, {}), [e, t.fieldType]), Ff = ({ value: e }) => Q(() => {
4785
4795
  if (!e || e && e.length === 0)
4786
4796
  return /* @__PURE__ */ s(oe, {});
4787
- const t = Qe(
4797
+ const t = tt(
4788
4798
  e,
4789
- bt.time.dateInternalFormat
4790
- ).format(bt.time.dateDisplayFormat);
4799
+ Ct.time.dateInternalFormat
4800
+ ).format(Ct.time.dateDisplayFormat);
4791
4801
  return /* @__PURE__ */ s(oe, { children: t });
4792
4802
  }, [e]), _s = ({
4793
4803
  value: e
4794
4804
  }) => Q(() => {
4795
4805
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
4796
4806
  return /* @__PURE__ */ s(oe, { children: `( ${t} )` });
4797
- }, [e]), _f = ({
4807
+ }, [e]), Af = ({
4798
4808
  value: e
4799
- }) => Q(() => /* @__PURE__ */ s(ba, { value: e }), [e]), Rf = ({ value: e }) => Q(() => /* @__PURE__ */ s(oe, { children: va(e) }), [e]), Rs = ({ value: e }) => Q(
4809
+ }) => Q(() => /* @__PURE__ */ s(ba, { value: e }), [e]), _f = ({ value: e }) => Q(() => /* @__PURE__ */ s(oe, { children: va(e) }), [e]), Rs = ({ value: e }) => Q(
4800
4810
  () => /* @__PURE__ */ s("div", { style: { textAlign: "right" }, children: e }),
4801
4811
  [e]
4802
- ), Of = ({ value: e }) => Q(
4812
+ ), Rf = ({ value: e }) => Q(
4803
4813
  () => /* @__PURE__ */ s($o, { value: e, style: { maxHeight: "30px" } }),
4804
4814
  [e]
4805
- ), Ef = ({
4815
+ ), Of = ({
4806
4816
  value: e,
4807
4817
  key: t,
4808
4818
  ooui: n,
@@ -4810,12 +4820,12 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4810
4820
  }) => Q(
4811
4821
  () => /* @__PURE__ */ s(hi, { value: e, disabled: !0, showText: !0 }),
4812
4822
  [n, e]
4813
- ), Df = ({
4823
+ ), Ef = ({
4814
4824
  value: e,
4815
4825
  key: t,
4816
4826
  ooui: n,
4817
4827
  context: r
4818
- }) => Q(() => /* @__PURE__ */ s(wa, { ooui: n, value: e }), [n, e]), Pf = ({
4828
+ }) => Q(() => /* @__PURE__ */ s(wa, { ooui: n, value: e }), [n, e]), Df = ({
4819
4829
  value: e,
4820
4830
  key: t,
4821
4831
  ooui: n,
@@ -4823,14 +4833,14 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4823
4833
  }) => Q(() => {
4824
4834
  let o = e;
4825
4835
  return Array.isArray(e) && e.length === 2 && (o = e[0]), /* @__PURE__ */ s(oe, { children: n.selectionValues.get(o) });
4826
- }, [n, e]), kf = ({
4836
+ }, [n, e]), Pf = ({
4827
4837
  value: e,
4828
4838
  key: t,
4829
4839
  ooui: n,
4830
4840
  context: r
4831
4841
  }) => Q(
4832
4842
  () => /* @__PURE__ */ s(
4833
- pf,
4843
+ mf,
4834
4844
  {
4835
4845
  value: e,
4836
4846
  selectionValues: n.selectionValues,
@@ -4838,12 +4848,12 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4838
4848
  }
4839
4849
  ),
4840
4850
  [r, n.selectionValues, e]
4841
- ), Vf = ({
4851
+ ), kf = ({
4842
4852
  value: e,
4843
4853
  key: t,
4844
4854
  ooui: n,
4845
4855
  context: r
4846
- }) => Q(() => /* @__PURE__ */ s(hf, { ooui: n, value: e }), [n, e]), Nf = ({
4856
+ }) => Q(() => /* @__PURE__ */ s(pf, { ooui: n, value: e }), [n, e]), Vf = ({
4847
4857
  value: e,
4848
4858
  key: t,
4849
4859
  ooui: n,
@@ -4877,7 +4887,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4877
4887
  }),
4878
4888
  [o]
4879
4889
  );
4880
- return Q(() => i ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
4890
+ return Q(() => i ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
4881
4891
  "div",
4882
4892
  {
4883
4893
  style: {
@@ -4889,26 +4899,26 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4889
4899
  }
4890
4900
  ), [u, i]);
4891
4901
  }, Ur = {
4892
- boolean: Sf,
4893
- many2one: xf,
4894
- text: Tf,
4902
+ boolean: wf,
4903
+ many2one: Cf,
4904
+ text: xf,
4895
4905
  one2many: _s,
4896
4906
  many2many: _s,
4897
- progressbar: _f,
4898
- float_time: Rf,
4899
- image: Of,
4907
+ progressbar: Af,
4908
+ float_time: _f,
4909
+ image: Rf,
4900
4910
  integer: Rs,
4901
4911
  float: Rs,
4902
- reference: kf,
4903
- tag: Df,
4904
- selection: Pf,
4905
- date: If,
4906
- datetime: Af,
4907
- avatar: Vf,
4908
- tags: Nf,
4909
- email: Cf,
4910
- colorPicker: Ef,
4911
- char: Ff
4912
+ reference: Pf,
4913
+ tag: Ef,
4914
+ selection: Df,
4915
+ date: Tf,
4916
+ datetime: Ff,
4917
+ avatar: kf,
4918
+ tags: Vf,
4919
+ email: Sf,
4920
+ colorPicker: Of,
4921
+ char: If
4912
4922
  }, xa = ({
4913
4923
  elementRef: e,
4914
4924
  offset: t = 0,
@@ -4924,7 +4934,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4924
4934
  };
4925
4935
  return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
4926
4936
  }, [e, ...n]), Q(() => r, [r]) - t;
4927
- }, Mf = (e) => {
4937
+ }, Nf = (e) => {
4928
4938
  const t = At(async () => {
4929
4939
  if (!e)
4930
4940
  return;
@@ -4937,7 +4947,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4937
4947
  [e]
4938
4948
  );
4939
4949
  return { getColumnState: t, updateColumnState: n };
4940
- }, $f = (e) => {
4950
+ }, Mf = (e) => {
4941
4951
  le(() => () => {
4942
4952
  n(), o();
4943
4953
  }, []);
@@ -4971,16 +4981,16 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4971
4981
  [e]
4972
4982
  );
4973
4983
  return { getColumnState: a, updateColumnState: i };
4974
- }, Lf = (e) => {
4984
+ }, $f = (e) => {
4975
4985
  const t = Jt(
4976
4986
  Lt.FEATURE_USERVIEWPREFS
4977
4987
  ), {
4978
4988
  getColumnState: n,
4979
4989
  updateColumnState: r
4980
- } = Mf(e), {
4990
+ } = Nf(e), {
4981
4991
  getColumnState: o,
4982
4992
  updateColumnState: a
4983
- } = $f(e), i = At(async () => {
4993
+ } = Mf(e), i = At(async () => {
4984
4994
  if (!t)
4985
4995
  return n();
4986
4996
  try {
@@ -5012,7 +5022,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5012
5022
  const [n, r] = I(!0), o = q(void 0), a = q(!1), {
5013
5023
  getColumnState: i,
5014
5024
  updateColumnState: l
5015
- } = Lf(e), c = O(async () => {
5025
+ } = $f(e), c = O(async () => {
5016
5026
  if (!(a.current || t)) {
5017
5027
  a.current = !0, r(!0);
5018
5028
  try {
@@ -5141,13 +5151,13 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5141
5151
  ]
5142
5152
  }
5143
5153
  );
5144
- }, Hf = {
5145
- en_US: Bc,
5146
- es_ES: jc,
5147
- ca_ES: Uc
5154
+ }, Lf = {
5155
+ en_US: Hc,
5156
+ es_ES: Bc,
5157
+ ca_ES: jc
5148
5158
  }, Ia = () => {
5149
5159
  const { locale: e } = ge();
5150
- return Hf[e];
5160
+ return Lf[e];
5151
5161
  }, Fa = (e) => {
5152
5162
  const { className: t = "w-full", layout: n = "vertical" } = e, r = Ia();
5153
5163
  return /* @__PURE__ */ s($e, { ...e, layout: n, children: /* @__PURE__ */ s(
@@ -5160,7 +5170,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5160
5170
  className: t
5161
5171
  }
5162
5172
  ) });
5163
- }, Aa = {
5173
+ }, Hf = {
5164
5174
  format: "HH:mm:ss",
5165
5175
  displayFormat: "HH:mm:ss",
5166
5176
  placeholder: "__:__:__"
@@ -5170,29 +5180,20 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5170
5180
  hours: Xr("HH"),
5171
5181
  hoursMinutes: Xr("HH:mm"),
5172
5182
  hoursMinutesSeconds: Xr("HH:mm:ss")
5173
- }, Bf = (e) => Gn.hours.test(e) || Gn.hoursMinutes.test(e), jf = (e, t, n = !1) => {
5183
+ }, Bf = (e) => !e || e.trim() === "" ? !0 : Gn.hours.test(e) || Gn.hoursMinutes.test(e), jf = (e, t, n = !1) => {
5184
+ if (!e || e.trim() === "") {
5185
+ const r = t.format("HH"), o = t.format("mm"), a = t.format("ss");
5186
+ return `${r}:${o}:${a}`;
5187
+ }
5174
5188
  if (Gn.hours.test(e)) {
5175
5189
  const r = n ? "00" : t.format("mm"), o = n ? "00" : t.format("ss");
5176
- return {
5177
- newValue: `${e}:${r}:${o}`,
5178
- cursorPos: 3,
5179
- shouldMoveFocus: !1
5180
- };
5190
+ return `${e}:${r}:${o}`;
5181
5191
  }
5182
5192
  if (Gn.hoursMinutes.test(e)) {
5183
- e.split(":").map((a) => parseInt(a));
5184
5193
  const r = n ? "00" : t.format("ss");
5185
- return {
5186
- newValue: `${e}:${r}`,
5187
- cursorPos: 6,
5188
- shouldMoveFocus: !1
5189
- };
5194
+ return `${e}:${r}`;
5190
5195
  }
5191
- return Gn.hoursMinutesSeconds.test(e) ? {
5192
- newValue: e,
5193
- cursorPos: e.length,
5194
- shouldMoveFocus: !0
5195
- } : null;
5196
+ return Gn.hoursMinutesSeconds.test(e) ? e : null;
5196
5197
  }, Uf = ({
5197
5198
  value: e,
5198
5199
  onChange: t,
@@ -5200,39 +5201,29 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5200
5201
  }) => {
5201
5202
  const r = O(
5202
5203
  (a) => {
5203
- if (a.key === "Tab") {
5204
- const i = a.target, l = i.value;
5205
- if (a.target._tabPressed = !0, !Bf(l))
5204
+ if (a.key === "Enter") {
5205
+ const l = a.target.value;
5206
+ if (!Bf(l))
5206
5207
  return;
5208
+ a.preventDefault();
5207
5209
  const c = jf(
5208
5210
  l,
5209
- Qe(),
5211
+ tt(),
5210
5212
  n
5211
5213
  );
5212
5214
  if (c) {
5213
- if (c.shouldMoveFocus)
5214
- return;
5215
- i.value = c.newValue;
5216
- const d = Qe(`2000-01-01 ${c.newValue}`);
5217
- t == null || t(d, c.newValue);
5215
+ const d = tt(`2000-01-01 ${c}`);
5216
+ t == null || t(d, c);
5218
5217
  }
5219
5218
  }
5220
5219
  },
5221
5220
  [t, n]
5222
5221
  ), o = O(
5223
5222
  (a) => {
5224
- const i = e !== void 0, l = !a.target.value || a.target.value === "", c = a.target._tabPressed;
5225
- if (l) {
5226
- if (i)
5227
- t == null || t(null);
5228
- else if (c && !n) {
5229
- const d = Qe();
5230
- t == null || t(d, d.format(Aa.format));
5231
- }
5232
- }
5233
- a.target._tabPressed = !1;
5223
+ const i = e !== void 0;
5224
+ (!a.target.value || a.target.value === "") && i && (t == null || t(null));
5234
5225
  },
5235
- [e, t, n]
5226
+ [e, t]
5236
5227
  );
5237
5228
  return {
5238
5229
  handleKeyDown: r,
@@ -5262,7 +5253,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5262
5253
  autocompleteWithZeros: r !== void 0
5263
5254
  });
5264
5255
  return /* @__PURE__ */ s(
5265
- jl,
5256
+ Bl,
5266
5257
  {
5267
5258
  ...o,
5268
5259
  ref: a,
@@ -5274,7 +5265,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5274
5265
  onSelect: l,
5275
5266
  onBlur: f,
5276
5267
  onKeyDown: d,
5277
- format: Aa.displayFormat
5268
+ format: Hf.displayFormat
5278
5269
  }
5279
5270
  );
5280
5271
  }, Wf = (e) => {
@@ -5311,7 +5302,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5311
5302
  onChange: t
5312
5303
  }) => {
5313
5304
  const n = Q(
5314
- () => Qe().hour(0).minute(0).second(0),
5305
+ () => tt().hour(0).minute(0).second(0),
5315
5306
  []
5316
5307
  );
5317
5308
  return /* @__PURE__ */ N(Ye, { gutter: 8, children: [
@@ -5342,7 +5333,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5342
5333
  }
5343
5334
  ) })
5344
5335
  ] });
5345
- }, { defaultAlgorithm: Gf, defaultSeed: Kf } = Xe, qf = Gf(Kf), zo = nt((e) => {
5336
+ }, { defaultAlgorithm: Gf, defaultSeed: Kf } = Qe, qf = Gf(Kf), zo = nt((e) => {
5346
5337
  const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: a } = t, i = ae(Je), { elementHasLostFocus: l } = i || {}, c = Q(() => a && !o, [a, o]), d = Q(
5347
5338
  () => c ? zf : Fr,
5348
5339
  [c]
@@ -5368,7 +5359,7 @@ const zf = gt(Fr)`
5368
5359
  &.ant-input-number {
5369
5360
  background-color: ${qf.colorPrimaryBg};
5370
5361
  }
5371
- `, { useToken: Jf } = Xe, { defaultAlgorithm: Qf, defaultSeed: Xf } = Xe, Zf = Qf(Xf), Xn = nt((e) => {
5362
+ `, { useToken: Jf } = Qe, { defaultAlgorithm: Qf, defaultSeed: Xf } = Qe, Zf = Qf(Xf), Xn = nt((e) => {
5372
5363
  const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: a } = t, { token: i } = Jf(), l = a && !o ? { backgroundColor: i.colorPrimaryBg } : void 0, c = ae(Je), { elementHasLostFocus: d } = c || {}, f = Q(() => a && !o, [a, o]), u = Q(
5373
5364
  () => f ? em : Fr,
5374
5365
  [f]
@@ -5444,7 +5435,7 @@ function tm(e) {
5444
5435
  )
5445
5436
  ] });
5446
5437
  }
5447
- const { defaultAlgorithm: nm, defaultSeed: rm } = Xe, om = nm(rm), { Option: sm } = fn, im = (e) => {
5438
+ const { defaultAlgorithm: nm, defaultSeed: rm } = Qe, om = nm(rm), { Option: sm } = fn, im = (e) => {
5448
5439
  const { ooui: t } = e, { required: n } = t;
5449
5440
  return /* @__PURE__ */ s($e, { required: n, type: "any", ...e, children: /* @__PURE__ */ s(am, { ...e }) });
5450
5441
  }, am = (e) => {
@@ -5482,7 +5473,7 @@ const { defaultAlgorithm: nm, defaultSeed: rm } = Xe, om = nm(rm), { Option: sm
5482
5473
  background-color: ${om.colorPrimaryBg};
5483
5474
  }
5484
5475
  `;
5485
- function _a(e) {
5476
+ function Aa(e) {
5486
5477
  const { field: t } = e;
5487
5478
  t.readOnly = !1, t.required = !1;
5488
5479
  const { t: n } = ge();
@@ -5521,7 +5512,7 @@ function _a(e) {
5521
5512
  );
5522
5513
  }
5523
5514
  }
5524
- const { useToken: cm } = Xe, { Title: dm } = nn, { Header: um, Content: fm, Footer: mm } = yi, pm = ({
5515
+ const { useToken: cm } = Qe, { Title: dm } = nn, { Header: um, Content: fm, Footer: mm } = yi, pm = ({
5525
5516
  isOpen: e,
5526
5517
  onClose: t,
5527
5518
  children: n,
@@ -5557,7 +5548,7 @@ const { useToken: cm } = Xe, { Title: dm } = nn, { Header: um, Content: fm, Foot
5557
5548
  padding: "0 16px",
5558
5549
  borderBottom: "1px solid #f0f0f0"
5559
5550
  };
5560
- return /* @__PURE__ */ s(nd, { children: e && /* @__PURE__ */ N(oe, { children: [
5551
+ return /* @__PURE__ */ s(td, { children: e && /* @__PURE__ */ N(oe, { children: [
5561
5552
  /* @__PURE__ */ s(
5562
5553
  ps.div,
5563
5554
  {
@@ -5578,7 +5569,7 @@ const { useToken: cm } = Xe, { Title: dm } = nn, { Header: um, Content: fm, Foot
5578
5569
  }
5579
5570
  ),
5580
5571
  /* @__PURE__ */ s(
5581
- rd,
5572
+ nd,
5582
5573
  {
5583
5574
  active: e,
5584
5575
  focusTrapOptions: {
@@ -5727,7 +5718,7 @@ function Ds(e) {
5727
5718
  }
5728
5719
  var Dm = Rm;
5729
5720
  const Pm = /* @__PURE__ */ Bi(Dm);
5730
- var Ps = Object.prototype.toString, Ra = function(t) {
5721
+ var Ps = Object.prototype.toString, _a = function(t) {
5731
5722
  var n = Ps.call(t), r = n === "[object Arguments]";
5732
5723
  return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Ps.call(t.callee) === "[object Function]"), r;
5733
5724
  }, eo, ks;
@@ -5737,7 +5728,7 @@ function km() {
5737
5728
  ks = 1;
5738
5729
  var e;
5739
5730
  if (!Object.keys) {
5740
- var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Ra, o = Object.prototype.propertyIsEnumerable, a = !o.call({ toString: null }, "toString"), i = o.call(function() {
5731
+ var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = _a, o = Object.prototype.propertyIsEnumerable, a = !o.call({ toString: null }, "toString"), i = o.call(function() {
5741
5732
  }, "prototype"), l = [
5742
5733
  "toString",
5743
5734
  "toLocaleString",
@@ -5819,7 +5810,7 @@ function km() {
5819
5810
  }
5820
5811
  return eo = e, eo;
5821
5812
  }
5822
- var Vm = Array.prototype.slice, Nm = Ra, Vs = Object.keys, pr = Vs ? function(t) {
5813
+ var Vm = Array.prototype.slice, Nm = _a, Vs = Object.keys, pr = Vs ? function(t) {
5823
5814
  return Vs(t);
5824
5815
  } : km(), Ns = Object.keys;
5825
5816
  pr.shim = function() {
@@ -5835,7 +5826,7 @@ pr.shim = function() {
5835
5826
  Object.keys = pr;
5836
5827
  return Object.keys || pr;
5837
5828
  };
5838
- var Oa = pr, Ea = function() {
5829
+ var Ra = pr, Oa = function() {
5839
5830
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
5840
5831
  return !1;
5841
5832
  if (typeof Symbol.iterator == "symbol")
@@ -5858,9 +5849,9 @@ var Oa = pr, Ea = function() {
5858
5849
  return !1;
5859
5850
  }
5860
5851
  return !0;
5861
- }, Mm = Ea, Jo = function() {
5852
+ }, Mm = Oa, Jo = function() {
5862
5853
  return Mm() && !!Symbol.toStringTag;
5863
- }, Ms = typeof Symbol < "u" && Symbol, $m = Ea, Lm = function() {
5854
+ }, Ms = typeof Symbol < "u" && Symbol, $m = Oa, Lm = function() {
5864
5855
  return typeof Ms != "function" || typeof Symbol != "function" || typeof Ms("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : $m();
5865
5856
  }, $s = {
5866
5857
  foo: {}
@@ -5890,11 +5881,11 @@ var Oa = pr, Ea = function() {
5890
5881
  d.prototype = n.prototype, o.prototype = new d(), d.prototype = null;
5891
5882
  }
5892
5883
  return o;
5893
- }, Gm = Ym, Da = Function.prototype.bind || Gm, Ls = {}.hasOwnProperty, no = Function.prototype.call, Km = no.bind ? no.bind(Ls) : function(e, t) {
5884
+ }, Gm = Ym, Ea = Function.prototype.bind || Gm, Ls = {}.hasOwnProperty, no = Function.prototype.call, Km = no.bind ? no.bind(Ls) : function(e, t) {
5894
5885
  return no.call(Ls, e, t);
5895
- }, Le, On = SyntaxError, Pa = Function, Tn = TypeError, ro = function(e) {
5886
+ }, Le, On = SyntaxError, Da = Function, Tn = TypeError, ro = function(e) {
5896
5887
  try {
5897
- return Pa('"use strict"; return (' + e + ").constructor;")();
5888
+ return Da('"use strict"; return (' + e + ").constructor;")();
5898
5889
  } catch {
5899
5890
  }
5900
5891
  }, dn = Object.getOwnPropertyDescriptor;
@@ -5946,7 +5937,7 @@ var oo = function() {
5946
5937
  "%Float32Array%": typeof Float32Array > "u" ? Le : Float32Array,
5947
5938
  "%Float64Array%": typeof Float64Array > "u" ? Le : Float64Array,
5948
5939
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Le : FinalizationRegistry,
5949
- "%Function%": Pa,
5940
+ "%Function%": Da,
5950
5941
  "%GeneratorFunction%": Sn,
5951
5942
  "%Int8Array%": typeof Int8Array > "u" ? Le : Int8Array,
5952
5943
  "%Int16Array%": typeof Int16Array > "u" ? Le : Int16Array,
@@ -6062,7 +6053,7 @@ var Xm = function e(t) {
6062
6053
  "%URIErrorPrototype%": ["URIError", "prototype"],
6063
6054
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
6064
6055
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
6065
- }, ir = Da, xr = Km, Zm = ir.call(Function.call, Array.prototype.concat), ep = ir.call(Function.apply, Array.prototype.splice), Bs = ir.call(Function.call, String.prototype.replace), Tr = ir.call(Function.call, String.prototype.slice), tp = ir.call(Function.call, RegExp.prototype.exec), np = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, rp = /\\(\\)?/g, op = function(t) {
6056
+ }, ir = Ea, xr = Km, Zm = ir.call(Function.call, Array.prototype.concat), ep = ir.call(Function.apply, Array.prototype.splice), Bs = ir.call(Function.call, String.prototype.replace), Tr = ir.call(Function.call, String.prototype.slice), tp = ir.call(Function.call, RegExp.prototype.exec), np = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, rp = /\\(\\)?/g, op = function(t) {
6066
6057
  var n = Tr(t, 0, 1), r = Tr(t, -1);
6067
6058
  if (n === "%" && r !== "%")
6068
6059
  throw new On("invalid intrinsic syntax, expected closing `%`");
@@ -6115,9 +6106,9 @@ var Xm = function e(t) {
6115
6106
  }
6116
6107
  }
6117
6108
  return l;
6118
- }, ka = { exports: {} };
6109
+ }, Pa = { exports: {} };
6119
6110
  (function(e) {
6120
- var t = Da, n = ar, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), a = n("%Reflect.apply%", !0) || t.call(o, r), i = n("%Object.getOwnPropertyDescriptor%", !0), l = n("%Object.defineProperty%", !0), c = n("%Math.max%");
6111
+ var t = Ea, n = ar, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), a = n("%Reflect.apply%", !0) || t.call(o, r), i = n("%Object.getOwnPropertyDescriptor%", !0), l = n("%Object.defineProperty%", !0), c = n("%Math.max%");
6121
6112
  if (l)
6122
6113
  try {
6123
6114
  l({}, "a", { value: 1 });
@@ -6140,19 +6131,19 @@ var Xm = function e(t) {
6140
6131
  return a(t, r, arguments);
6141
6132
  };
6142
6133
  l ? l(e.exports, "apply", { value: d }) : e.exports.apply = d;
6143
- })(ka);
6144
- var Qo = ka.exports, Va = ar, Na = Qo, ip = Na(Va("String.prototype.indexOf")), Ma = function(t, n) {
6145
- var r = Va(t, !!n);
6146
- return typeof r == "function" && ip(t, ".prototype.") > -1 ? Na(r) : r;
6147
- }, ap = Jo(), lp = Ma, ho = lp("Object.prototype.toString"), Wr = function(t) {
6134
+ })(Pa);
6135
+ var Qo = Pa.exports, ka = ar, Va = Qo, ip = Va(ka("String.prototype.indexOf")), Na = function(t, n) {
6136
+ var r = ka(t, !!n);
6137
+ return typeof r == "function" && ip(t, ".prototype.") > -1 ? Va(r) : r;
6138
+ }, ap = Jo(), lp = Na, ho = lp("Object.prototype.toString"), Wr = function(t) {
6148
6139
  return ap && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : ho(t) === "[object Arguments]";
6149
- }, $a = function(t) {
6140
+ }, Ma = function(t) {
6150
6141
  return Wr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && ho(t) !== "[object Array]" && ho(t.callee) === "[object Function]";
6151
6142
  }, cp = function() {
6152
6143
  return Wr(arguments);
6153
6144
  }();
6154
- Wr.isLegacyArguments = $a;
6155
- var dp = cp ? Wr : $a, up = ar, go = up("%Object.defineProperty%", !0), yo = function() {
6145
+ Wr.isLegacyArguments = Ma;
6146
+ var dp = cp ? Wr : Ma, up = ar, go = up("%Object.defineProperty%", !0), yo = function() {
6156
6147
  if (go)
6157
6148
  try {
6158
6149
  return go({}, "a", { value: 1 }), !0;
@@ -6184,7 +6175,7 @@ function fp() {
6184
6175
  }
6185
6176
  return so = t, so;
6186
6177
  }
6187
- var mp = Xo(), Zo = ar, Us = mp && Zo("%Object.defineProperty%", !0), pp = Zo("%SyntaxError%"), bn = Zo("%TypeError%"), Ws = fp(), La = function(t, n, r) {
6178
+ var mp = Xo(), Zo = ar, Us = mp && Zo("%Object.defineProperty%", !0), pp = Zo("%SyntaxError%"), bn = Zo("%TypeError%"), Ws = fp(), $a = function(t, n, r) {
6188
6179
  if (!t || typeof t != "object" && typeof t != "function")
6189
6180
  throw new bn("`obj` must be an object or a function`");
6190
6181
  if (typeof n != "string" && typeof n != "symbol")
@@ -6209,9 +6200,9 @@ var mp = Xo(), Zo = ar, Us = mp && Zo("%Object.defineProperty%", !0), pp = Zo("%
6209
6200
  t[n] = r;
6210
6201
  else
6211
6202
  throw new pp("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
6212
- }, hp = Oa, gp = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", yp = Object.prototype.toString, vp = Array.prototype.concat, Ys = La, bp = function(e) {
6203
+ }, hp = Ra, gp = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", yp = Object.prototype.toString, vp = Array.prototype.concat, Ys = $a, bp = function(e) {
6213
6204
  return typeof e == "function" && yp.call(e) === "[object Function]";
6214
- }, Ha = Xo(), wp = function(e, t, n, r) {
6205
+ }, La = Xo(), wp = function(e, t, n, r) {
6215
6206
  if (t in e) {
6216
6207
  if (r === !0) {
6217
6208
  if (e[t] === n)
@@ -6219,36 +6210,36 @@ var mp = Xo(), Zo = ar, Us = mp && Zo("%Object.defineProperty%", !0), pp = Zo("%
6219
6210
  } else if (!bp(r) || !r())
6220
6211
  return;
6221
6212
  }
6222
- Ha ? Ys(e, t, n, !0) : Ys(e, t, n);
6223
- }, Ba = function(e, t) {
6213
+ La ? Ys(e, t, n, !0) : Ys(e, t, n);
6214
+ }, Ha = function(e, t) {
6224
6215
  var n = arguments.length > 2 ? arguments[2] : {}, r = hp(t);
6225
6216
  gp && (r = vp.call(r, Object.getOwnPropertySymbols(t)));
6226
6217
  for (var o = 0; o < r.length; o += 1)
6227
6218
  wp(e, r[o], t[r[o]], n[r[o]]);
6228
6219
  };
6229
- Ba.supportsDescriptors = !!Ha;
6230
- var lr = Ba, Gs = function(e) {
6220
+ Ha.supportsDescriptors = !!La;
6221
+ var lr = Ha, Gs = function(e) {
6231
6222
  return e !== e;
6232
- }, ja = function(t, n) {
6223
+ }, Ba = function(t, n) {
6233
6224
  return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || Gs(t) && Gs(n));
6234
- }, Sp = ja, Ua = function() {
6225
+ }, Sp = Ba, ja = function() {
6235
6226
  return typeof Object.is == "function" ? Object.is : Sp;
6236
- }, Cp = Ua, xp = lr, Tp = function() {
6227
+ }, Cp = ja, xp = lr, Tp = function() {
6237
6228
  var t = Cp();
6238
6229
  return xp(Object, { is: t }, {
6239
6230
  is: function() {
6240
6231
  return Object.is !== t;
6241
6232
  }
6242
6233
  }), t;
6243
- }, Ip = lr, Fp = Qo, Ap = ja, Wa = Ua, _p = Tp, Ya = Fp(Wa(), Object);
6244
- Ip(Ya, {
6245
- getPolyfill: Wa,
6234
+ }, Ip = lr, Fp = Qo, Ap = Ba, Ua = ja, _p = Tp, Wa = Fp(Ua(), Object);
6235
+ Ip(Wa, {
6236
+ getPolyfill: Ua,
6246
6237
  implementation: Ap,
6247
6238
  shim: _p
6248
6239
  });
6249
- var Rp = Ya, vo = Ma, Ga = Jo(), Ka, qa, bo, wo;
6250
- if (Ga) {
6251
- Ka = vo("Object.prototype.hasOwnProperty"), qa = vo("RegExp.prototype.exec"), bo = {};
6240
+ var Rp = Wa, vo = Na, Ya = Jo(), Ga, Ka, bo, wo;
6241
+ if (Ya) {
6242
+ Ga = vo("Object.prototype.hasOwnProperty"), Ka = vo("RegExp.prototype.exec"), bo = {};
6252
6243
  var io = function() {
6253
6244
  throw bo;
6254
6245
  };
@@ -6257,14 +6248,14 @@ if (Ga) {
6257
6248
  valueOf: io
6258
6249
  }, typeof Symbol.toPrimitive == "symbol" && (wo[Symbol.toPrimitive] = io);
6259
6250
  }
6260
- var Op = vo("Object.prototype.toString"), Ep = Object.getOwnPropertyDescriptor, Dp = "[object RegExp]", Pp = Ga ? function(t) {
6251
+ var Op = vo("Object.prototype.toString"), Ep = Object.getOwnPropertyDescriptor, Dp = "[object RegExp]", Pp = Ya ? function(t) {
6261
6252
  if (!t || typeof t != "object")
6262
6253
  return !1;
6263
- var n = Ep(t, "lastIndex"), r = n && Ka(n, "value");
6254
+ var n = Ep(t, "lastIndex"), r = n && Ga(n, "value");
6264
6255
  if (!r)
6265
6256
  return !1;
6266
6257
  try {
6267
- qa(t, wo);
6258
+ Ka(t, wo);
6268
6259
  } catch (o) {
6269
6260
  return o === bo;
6270
6261
  }
@@ -6292,17 +6283,17 @@ Zn.boundFunctionsHaveNames = function() {
6292
6283
  return Zn() && typeof kp == "function" && (function() {
6293
6284
  }).bind().name !== "";
6294
6285
  };
6295
- var Vp = Zn, Ks = La, Np = Xo(), Mp = Vp.functionsHaveConfigurableNames(), $p = TypeError, Lp = function(t, n) {
6286
+ var Vp = Zn, Ks = $a, Np = Xo(), Mp = Vp.functionsHaveConfigurableNames(), $p = TypeError, Lp = function(t, n) {
6296
6287
  if (typeof t != "function")
6297
6288
  throw new $p("`fn` is not a function");
6298
6289
  var r = arguments.length > 2 && !!arguments[2];
6299
6290
  return (!r || Mp) && (Np ? Ks(t, "name", n, !0, !0) : Ks(t, "name", n)), t;
6300
- }, Hp = Lp, Bp = Object, jp = TypeError, za = Hp(function() {
6291
+ }, Hp = Lp, Bp = Object, jp = TypeError, qa = Hp(function() {
6301
6292
  if (this != null && this !== Bp(this))
6302
6293
  throw new jp("RegExp.prototype.flags getter called on non-object");
6303
6294
  var t = "";
6304
6295
  return this.hasIndices && (t += "d"), this.global && (t += "g"), this.ignoreCase && (t += "i"), this.multiline && (t += "m"), this.dotAll && (t += "s"), this.unicode && (t += "u"), this.unicodeSets && (t += "v"), this.sticky && (t += "y"), t;
6305
- }, "get flags", !0), Up = za, Wp = lr.supportsDescriptors, Yp = Object.getOwnPropertyDescriptor, Ja = function() {
6296
+ }, "get flags", !0), Up = qa, Wp = lr.supportsDescriptors, Yp = Object.getOwnPropertyDescriptor, za = function() {
6306
6297
  if (Wp && /a/mig.flags === "gim") {
6307
6298
  var t = Yp(RegExp.prototype, "flags");
6308
6299
  if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
@@ -6320,7 +6311,7 @@ var Vp = Zn, Ks = La, Np = Xo(), Mp = Vp.functionsHaveConfigurableNames(), $p =
6320
6311
  }
6321
6312
  }
6322
6313
  return Up;
6323
- }, Gp = lr.supportsDescriptors, Kp = Ja, qp = Object.getOwnPropertyDescriptor, zp = Object.defineProperty, Jp = TypeError, qs = Object.getPrototypeOf, Qp = /a/, Xp = function() {
6314
+ }, Gp = lr.supportsDescriptors, Kp = za, qp = Object.getOwnPropertyDescriptor, zp = Object.defineProperty, Jp = TypeError, qs = Object.getPrototypeOf, Qp = /a/, Xp = function() {
6324
6315
  if (!Gp || !qs)
6325
6316
  throw new Jp("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6326
6317
  var t = Kp(), n = qs(Qp), r = qp(n, "flags");
@@ -6329,13 +6320,13 @@ var Vp = Zn, Ks = La, Np = Xo(), Mp = Vp.functionsHaveConfigurableNames(), $p =
6329
6320
  enumerable: !1,
6330
6321
  get: t
6331
6322
  }), t;
6332
- }, Zp = lr, eh = Qo, th = za, Qa = Ja, nh = Xp, Xa = eh(Qa());
6333
- Zp(Xa, {
6334
- getPolyfill: Qa,
6323
+ }, Zp = lr, eh = Qo, th = qa, Ja = za, nh = Xp, Qa = eh(Ja());
6324
+ Zp(Qa, {
6325
+ getPolyfill: Ja,
6335
6326
  implementation: th,
6336
6327
  shim: nh
6337
6328
  });
6338
- var rh = Xa, oh = Date.prototype.getDay, sh = function(t) {
6329
+ var rh = Qa, oh = Date.prototype.getDay, sh = function(t) {
6339
6330
  try {
6340
6331
  return oh.call(t), !0;
6341
6332
  } catch {
@@ -6343,8 +6334,8 @@ var rh = Xa, oh = Date.prototype.getDay, sh = function(t) {
6343
6334
  }
6344
6335
  }, ih = Object.prototype.toString, ah = "[object Date]", lh = Jo(), ch = function(t) {
6345
6336
  return typeof t != "object" || t === null ? !1 : lh ? sh(t) : ih.call(t) === ah;
6346
- }, zs = Oa, Js = dp, Qs = Rp, Xs = Pp, Zs = rh, ei = ch, ti = Date.prototype.getTime;
6347
- function Za(e, t, n) {
6337
+ }, zs = Ra, Js = dp, Qs = Rp, Xs = Pp, Zs = rh, ei = ch, ti = Date.prototype.getTime;
6338
+ function Xa(e, t, n) {
6348
6339
  var r = n || {};
6349
6340
  return (r.strict ? Qs(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Qs(e, t) : e == t : dh(e, t, r);
6350
6341
  }
@@ -6389,11 +6380,11 @@ function dh(e, t, n) {
6389
6380
  if (d[r] != f[r])
6390
6381
  return !1;
6391
6382
  for (r = d.length - 1; r >= 0; r--)
6392
- if (o = d[r], !Za(e[o], t[o], n))
6383
+ if (o = d[r], !Xa(e[o], t[o], n))
6393
6384
  return !1;
6394
6385
  return !0;
6395
6386
  }
6396
- var uh = Za;
6387
+ var uh = Xa;
6397
6388
  const es = /* @__PURE__ */ Bi(uh), fh = _t(
6398
6389
  (e, t) => {
6399
6390
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: a } = e, [i] = Et.useForm();
@@ -6420,7 +6411,7 @@ const es = /* @__PURE__ */ Bi(uh), fh = _t(
6420
6411
  backgroundColor: b ? "#f0f0f0" : void 0,
6421
6412
  fontWeight: b ? "bold" : void 0
6422
6413
  },
6423
- children: /* @__PURE__ */ s("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ s(_a, { field: g }, `sf-${y}-${v}`) })
6414
+ children: /* @__PURE__ */ s("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ s(Aa, { field: g }, `sf-${y}-${v}`) })
6424
6415
  },
6425
6416
  y
6426
6417
  );
@@ -6446,7 +6437,7 @@ const es = /* @__PURE__ */ Bi(uh), fh = _t(
6446
6437
  /* @__PURE__ */ s("div", { className: "pb-2" })
6447
6438
  ] });
6448
6439
  }
6449
- ), el = (e) => {
6440
+ ), Za = (e) => {
6450
6441
  var _;
6451
6442
  const { onSubmit: t, isOpen: n, onClose: r, searchFields: o, fields: a, searchValues: i } = e, l = q(), { t: c } = ge(), [d, f] = I(), u = q(null), [m, h] = I();
6452
6443
  le(() => {
@@ -6570,7 +6561,7 @@ function ph(e) {
6570
6561
  } = e, { t: i } = ge();
6571
6562
  return /* @__PURE__ */ N(Ye, { children: [
6572
6563
  !a && /* @__PURE__ */ s(Fe, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ N("a", { className: "text-xs", onClick: t, children: [
6573
- n ? /* @__PURE__ */ s(rc, { className: "pr-1" }) : /* @__PURE__ */ s(Ar, { className: "pr-1" }),
6564
+ n ? /* @__PURE__ */ s(nc, { className: "pr-1" }) : /* @__PURE__ */ s(Ar, { className: "pr-1" }),
6574
6565
  i(n ? "simple_search" : "advanced_search")
6575
6566
  ] }) }),
6576
6567
  /* @__PURE__ */ N(Fe, { span: a ? 24 : 12, className: "text-right pb-2", children: [
@@ -6609,7 +6600,7 @@ function hh(e) {
6609
6600
  ] })
6610
6601
  ] });
6611
6602
  }
6612
- const { useToken: gh } = Xe;
6603
+ const { useToken: gh } = Qe;
6613
6604
  function Yr(e) {
6614
6605
  const {
6615
6606
  fields: t,
@@ -6633,7 +6624,7 @@ function Yr(e) {
6633
6624
  if (!g)
6634
6625
  return;
6635
6626
  const S = b ? g : p, F = S == null ? void 0 : S.rows;
6636
- return F == null ? void 0 : F.map((P, E) => /* @__PURE__ */ s(Ye, { children: P.map((H, V) => /* @__PURE__ */ s(Fe, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ s(_a, { field: H }) }, V)) }, E));
6627
+ return F == null ? void 0 : F.map((P, E) => /* @__PURE__ */ s(Ye, { children: P.map((H, V) => /* @__PURE__ */ s(Fe, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ s(Aa, { field: H }) }, V)) }, E));
6637
6628
  };
6638
6629
  jt(() => {
6639
6630
  _(!1), C.current = new xi(n, t), C.current.parse(), y(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
@@ -6710,7 +6701,7 @@ function Yr(e) {
6710
6701
  }
6711
6702
  );
6712
6703
  }
6713
- function tl({
6704
+ function el({
6714
6705
  useLocalState: e = !1
6715
6706
  }) {
6716
6707
  const t = Mh() && !e, n = Mn(), [r, o] = I(!1), [a, i] = I(!1), [l, c] = I([]), [d, f] = I(0), [u, m] = I(void 0), [h, p] = I([]), [y, g] = I({}), [v, b] = I(), [_, C] = I([]), [x, R] = I(), [T, w] = I(0), [A, k] = I(), [S, F] = I(1), [P, E] = I(er), [H, V] = I(ht);
@@ -6806,7 +6797,7 @@ const ts = () => {
6806
6797
  };
6807
6798
  }, []), e;
6808
6799
  };
6809
- function nl({
6800
+ function tl({
6810
6801
  tableRef: e
6811
6802
  } = {}) {
6812
6803
  const t = q({}), n = q(), r = O(() => {
@@ -6845,7 +6836,7 @@ const Gr = ({
6845
6836
  return e != null && e.colors && (n.colors = e.colors), e != null && e.status && (n.status = e.status), n;
6846
6837
  }
6847
6838
  return {};
6848
- }, yh = 3 * 1e3, rl = (e) => {
6839
+ }, yh = 3 * 1e3, nl = (e) => {
6849
6840
  const {
6850
6841
  tableRef: t,
6851
6842
  model: n,
@@ -6955,7 +6946,7 @@ const Gr = ({
6955
6946
  C.current = {};
6956
6947
  }, []);
6957
6948
  return { pause: w, resume: A, clear: k };
6958
- }, vh = 0.5 * 1e3, ol = ({
6949
+ }, vh = 0.5 * 1e3, rl = ({
6959
6950
  model: e,
6960
6951
  treeView: t,
6961
6952
  tableRef: n,
@@ -7109,7 +7100,7 @@ const Gr = ({
7109
7100
  resume: $,
7110
7101
  onHasFunctionFieldsToParseConditions: k
7111
7102
  };
7112
- }, sl = ({
7103
+ }, ol = ({
7113
7104
  onFilterSearchClick: e
7114
7105
  }) => {
7115
7106
  const { t } = ge(), n = (i) => {
@@ -7153,7 +7144,7 @@ const Gr = ({
7153
7144
  style: { paddingRight: 10 },
7154
7145
  className: "text-right",
7155
7146
  children: [
7156
- e === void 0 && /* @__PURE__ */ s(tt, {}),
7147
+ e === void 0 && /* @__PURE__ */ s(et, {}),
7157
7148
  e != null && `${r("totalRegisters")} ${e}`
7158
7149
  ]
7159
7150
  }
@@ -7194,7 +7185,7 @@ const Gr = ({
7194
7185
  record: t,
7195
7186
  column: n,
7196
7187
  isFieldLoading: r
7197
- }) => r != null && r(t, n.key) ? /* @__PURE__ */ s(Fc, {}) : n.render(e, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context)
7188
+ }) => r != null && r(t, n.key) ? /* @__PURE__ */ s(Ic, {}) : n.render(e, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context)
7198
7189
  );
7199
7190
  ns.displayName = "CellRenderer";
7200
7191
  const Sh = 10, Ch = 200;
@@ -7241,7 +7232,7 @@ function xh(e, t) {
7241
7232
  isActive: Z,
7242
7233
  order: re,
7243
7234
  setOrder: z
7244
- } = tl({ useLocalState: !c }), Y = u || we, be = q(Y), Oe = q(!1), je = Jt(
7235
+ } = el({ useLocalState: !c }), Y = u || we, be = q(Y), Oe = q(!1), je = Jt(
7245
7236
  Lt.FEATURE_MANY2ONE_SORT
7246
7237
  );
7247
7238
  le(() => {
@@ -7258,9 +7249,9 @@ function xh(e, t) {
7258
7249
  statusForResults: fe,
7259
7250
  updateAttributes: Pe,
7260
7251
  clearAttributes: Te
7261
- } = nl({
7252
+ } = tl({
7262
7253
  tableRef: p
7263
- }), { clear: He } = rl({
7254
+ }), { clear: He } = nl({
7264
7255
  model: n,
7265
7256
  tableRef: p,
7266
7257
  autorefreshableFields: xe == null ? void 0 : xe.autorefreshableFields,
@@ -7275,7 +7266,7 @@ function xh(e, t) {
7275
7266
  refresh: Ie,
7276
7267
  addRecordsToCheckFunctionFields: ce,
7277
7268
  onHasFunctionFieldsToParseConditions: Ue
7278
- } = ol({
7269
+ } = rl({
7279
7270
  model: n,
7280
7271
  treeView: S,
7281
7272
  tableRef: p,
@@ -7317,7 +7308,7 @@ function xh(e, t) {
7317
7308
  }, [n, S == null ? void 0 : S.view_id, P]), {
7318
7309
  loading: Ae,
7319
7310
  getColumnState: de,
7320
- updateColumnState: Ze
7311
+ updateColumnState: Xe
7321
7312
  } = Go({ key: ve }), Ge = Q(
7322
7313
  () => en(ne || [], i),
7323
7314
  [i, ne]
@@ -7539,7 +7530,7 @@ function xh(e, t) {
7539
7530
  onRowDoubleClick: a,
7540
7531
  onRowStyle: Ve,
7541
7532
  onRowSelectionChange: Re,
7542
- onColumnChanged: Ze,
7533
+ onColumnChanged: Xe,
7543
7534
  onGetColumnsState: de,
7544
7535
  onChangeFirstVisibleRowIndex: L,
7545
7536
  onGetFirstVisibleRowIndex: ut,
@@ -7576,7 +7567,7 @@ function xh(e, t) {
7576
7567
  hn,
7577
7568
  C,
7578
7569
  xe,
7579
- Ze,
7570
+ Xe,
7580
7571
  h
7581
7572
  ]), gn = q(ne), Ut = q(H), Qt = q(), Wt = q();
7582
7573
  Ft(() => {
@@ -7680,7 +7671,7 @@ function xh(e, t) {
7680
7671
  X,
7681
7672
  V
7682
7673
  ]
7683
- ), et = Y && R && C !== void 0 && C !== null && C === ht;
7674
+ ), Ze = Y && R && C !== void 0 && C !== null && C === ht;
7684
7675
  return /* @__PURE__ */ N(En, { children: [
7685
7676
  m === "top" && /* @__PURE__ */ s(
7686
7677
  Yr,
@@ -7691,7 +7682,7 @@ function xh(e, t) {
7691
7682
  }
7692
7683
  ),
7693
7684
  m === "side" && /* @__PURE__ */ s(
7694
- el,
7685
+ Za,
7695
7686
  {
7696
7687
  ...Wn,
7697
7688
  onClose: Se,
@@ -7703,18 +7694,18 @@ function xh(e, t) {
7703
7694
  {
7704
7695
  selectedRowKeys: ye,
7705
7696
  totalRows: C,
7706
- customMiddleComponent: et && /* @__PURE__ */ s(
7707
- sl,
7697
+ customMiddleComponent: Ze && /* @__PURE__ */ s(
7698
+ ol,
7708
7699
  {
7709
7700
  onFilterSearchClick: () => V == null ? void 0 : V(!0)
7710
7701
  }
7711
7702
  )
7712
7703
  }
7713
7704
  ),
7714
- /* @__PURE__ */ s("div", { ref: A, style: Vt, children: P || Ae || b ? /* @__PURE__ */ s(tt, {}) : kt })
7705
+ /* @__PURE__ */ s("div", { ref: A, style: Vt, children: P || Ae || b ? /* @__PURE__ */ s(et, {}) : kt })
7715
7706
  ] });
7716
7707
  }
7717
- const il = _t(xh), si = (e, t = "14px -apple-system") => {
7708
+ const sl = _t(xh), si = (e, t = "14px -apple-system") => {
7718
7709
  const r = document.createElement("canvas").getContext("2d");
7719
7710
  r.font = t;
7720
7711
  const o = r.measureText(e);
@@ -7765,7 +7756,7 @@ const il = _t(xh), si = (e, t = "14px -apple-system") => {
7765
7756
  "{numberOfSelectedRows}",
7766
7757
  e.toString()
7767
7758
  ) + " ",
7768
- a ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s($i, { onClick: d, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
7759
+ a ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s($i, { onClick: d, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
7769
7760
  "{totalRecords}",
7770
7761
  t.toString()
7771
7762
  ) })
@@ -7774,7 +7765,7 @@ const il = _t(xh), si = (e, t = "14px -apple-system") => {
7774
7765
  o.toString()
7775
7766
  ) + " " });
7776
7767
  return /* @__PURE__ */ s(Ih, { children: o > n ? u : f });
7777
- }, al = _t(
7768
+ }, il = _t(
7778
7769
  (e, t) => {
7779
7770
  var me;
7780
7771
  const {
@@ -7801,7 +7792,7 @@ const il = _t(xh), si = (e, t = "14px -apple-system") => {
7801
7792
  readonly: R,
7802
7793
  onSelectAllRecords: T
7803
7794
  } = e, w = q(null), [A, k] = I([]), S = q(!1), [F, P] = I(), { t: E } = ge(), H = q(r), V = ae(
7804
- Ct
7795
+ St
7805
7796
  ), { title: $ = void 0, setTitle: L = void 0 } = (C ? V : {}) || {}, D = Jt(
7806
7797
  Lt.FEATURE_MANY2ONE_SORT
7807
7798
  ), W = Q(() => {
@@ -7838,9 +7829,9 @@ const il = _t(xh), si = (e, t = "14px -apple-system") => {
7838
7829
  const ee = A == null ? void 0 : A.filter(
7839
7830
  (se) => u && u.includes(se.id)
7840
7831
  ).length;
7841
- return c ? null : o === void 0 ? /* @__PURE__ */ s(tt, { className: "pb-4" }) : /* @__PURE__ */ N(Ye, { align: "bottom", className: "pb-4", children: [
7832
+ return c ? null : o === void 0 ? /* @__PURE__ */ s(et, { className: "pb-4" }) : /* @__PURE__ */ N(Ye, { align: "bottom", className: "pb-4", children: [
7842
7833
  /* @__PURE__ */ s(Fe, { span: T ? 8 : 12, children: /* @__PURE__ */ s(
7843
- Ul,
7834
+ jl,
7844
7835
  {
7845
7836
  total: o,
7846
7837
  pageSize: H.current === 0 ? o : H.current,
@@ -7887,22 +7878,22 @@ const il = _t(xh), si = (e, t = "14px -apple-system") => {
7887
7878
  if (F !== null && W && W.length > 0)
7888
7879
  return Th(W, A, 600);
7889
7880
  }, [W, A, F]), U = Q(() => h && (F != null && F.columns.some((ee) => ee.sum !== void 0)) ? h - 30 : h, [h, F == null ? void 0 : F.columns]);
7890
- return F === null || !B || ((me = B == null ? void 0 : B.columns) == null ? void 0 : me.length) === 0 ? /* @__PURE__ */ s(tt, { style: { padding: "2rem" } }) : /* @__PURE__ */ N(hr, { children: [
7881
+ return F === null || !B || ((me = B == null ? void 0 : B.columns) == null ? void 0 : me.length) === 0 ? /* @__PURE__ */ s(et, { style: { padding: "2rem" } }) : /* @__PURE__ */ N(hr, { children: [
7891
7882
  X,
7892
7883
  /* @__PURE__ */ s(
7893
- Wc,
7884
+ Uc,
7894
7885
  {
7895
7886
  ref: w,
7896
7887
  height: U,
7897
7888
  columns: B.columns,
7898
7889
  dataSource: A,
7899
7890
  loading: c,
7900
- loadingComponent: /* @__PURE__ */ s(tt, {}),
7891
+ loadingComponent: /* @__PURE__ */ s(et, {}),
7901
7892
  onRowStyle: (ee) => {
7902
7893
  if (p[ee.id])
7903
7894
  return { color: p[ee.id] };
7904
7895
  },
7905
- onRowStatus: Ud(y) ? (ee) => {
7896
+ onRowStatus: jd(y) ? (ee) => {
7906
7897
  if (y[ee.id])
7907
7898
  return /* @__PURE__ */ s(tr, { color: y[ee.id] });
7908
7899
  } : void 0,
@@ -7912,8 +7903,8 @@ const il = _t(xh), si = (e, t = "14px -apple-system") => {
7912
7903
  sorter: v,
7913
7904
  readonly: R,
7914
7905
  expandableOpts: b ? {
7915
- expandIcon: oc,
7916
- collapseIcon: sc,
7906
+ expandIcon: rc,
7907
+ collapseIcon: oc,
7917
7908
  loadingIcon: $t,
7918
7909
  onFetchChildrenForRecord: b,
7919
7910
  childField: _
@@ -7923,10 +7914,10 @@ const il = _t(xh), si = (e, t = "14px -apple-system") => {
7923
7914
  we
7924
7915
  ] });
7925
7916
  }
7926
- ), cr = nt(al);
7917
+ ), cr = nt(il);
7927
7918
  cr.displayName = "Tree";
7928
- al.displayName = "UnmemoizedTree";
7929
- const ll = (e) => {
7919
+ il.displayName = "UnmemoizedTree";
7920
+ const al = (e) => {
7930
7921
  const {
7931
7922
  model: t,
7932
7923
  setSearchTreeNameSearch: n,
@@ -8019,7 +8010,7 @@ const ll = (e) => {
8019
8010
  }) : [...me.current];
8020
8011
  if (ee(ve), v && ve.length > 0) {
8021
8012
  const de = ve.findIndex(
8022
- (Ze) => _ === Ze.id
8013
+ (Xe) => _ === Xe.id
8023
8014
  );
8024
8015
  de === -1 ? y == null || y(0) : y == null || y(de);
8025
8016
  } else
@@ -8168,7 +8159,7 @@ function Ah(e, t) {
8168
8159
  } = e, [h, p] = I(!1), [y, g] = I(!1), v = q(!1), b = q(null), [_, C] = I(), [x, R] = I(), [T, w] = I(), [A, k] = I(), [S, F] = I(200), P = q(), { height: E } = Nr(), H = ae(
8169
8160
  Nn
8170
8161
  ), { processAction: V } = H || {}, $ = ae(
8171
- Ct
8162
+ St
8172
8163
  ), {
8173
8164
  setResults: L = void 0,
8174
8165
  setCurrentItemIndex: D = void 0,
@@ -8210,9 +8201,9 @@ function Ah(e, t) {
8210
8201
  fetchChildrenForRecord: ve,
8211
8202
  colorsForResults: Ae,
8212
8203
  statusForResults: de,
8213
- totalItems: Ze,
8204
+ totalItems: Xe,
8214
8205
  getAllIds: Ge
8215
- } = ll({
8206
+ } = al({
8216
8207
  model: _,
8217
8208
  setSearchTreeNameSearch: Z,
8218
8209
  setSelectedRowItems: je,
@@ -8305,7 +8296,7 @@ function Ah(e, t) {
8305
8296
  try {
8306
8297
  await he(We);
8307
8298
  } catch (Pt) {
8308
- wt(Pt);
8299
+ bt(Pt);
8309
8300
  }
8310
8301
  return;
8311
8302
  }
@@ -8349,7 +8340,7 @@ function Ah(e, t) {
8349
8340
  {
8350
8341
  ref: b,
8351
8342
  context: u,
8352
- total: Ze,
8343
+ total: Xe,
8353
8344
  limit: Ie,
8354
8345
  page: Be,
8355
8346
  treeView: x,
@@ -8398,13 +8389,13 @@ function Ah(e, t) {
8398
8389
  de,
8399
8390
  xe,
8400
8391
  Pe,
8401
- Ze,
8392
+ Xe,
8402
8393
  l,
8403
8394
  x
8404
8395
  ]), ot = A || He;
8405
- return ot ? /* @__PURE__ */ s(vt, { className: "mt-10", message: ot, type: "error", banner: !0 }) : /* @__PURE__ */ s("div", { style: d ? {} : { display: "none" }, children: h ? /* @__PURE__ */ s(tt, {}) : Ke() });
8396
+ return ot ? /* @__PURE__ */ s(vt, { className: "mt-10", message: ot, type: "error", banner: !0 }) : /* @__PURE__ */ s("div", { style: d ? {} : { display: "none" }, children: h ? /* @__PURE__ */ s(et, {}) : Ke() });
8406
8397
  }
8407
- const cl = _t(Ah), _h = ht, Rh = (e) => {
8398
+ const ll = _t(Ah), _h = ht, Rh = (e) => {
8408
8399
  const {
8409
8400
  treeViewFetching: t,
8410
8401
  treeOoui: n,
@@ -8445,7 +8436,7 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8445
8436
  setOrder: W,
8446
8437
  limit: G,
8447
8438
  setLimit: j
8448
- } = tl({ useLocalState: !a }), { treeMaxLimit: ne } = on(), X = Math.min(G, ne), [we, B] = I(!0), [U, me] = I(), [ee, se] = I([]), [Z, re] = I(!1), z = i || k, Y = q(z), be = q(w), Oe = q(p), je = q(), xe = q([]), Ce = q(!1), fe = Q(() => Ta({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), {
8439
+ } = el({ useLocalState: !a }), { treeMaxLimit: ne } = on(), X = Math.min(G, ne), [we, B] = I(!0), [U, me] = I(), [ee, se] = I([]), [Z, re] = I(!1), z = i || k, Y = q(z), be = q(w), Oe = q(p), je = q(), xe = q([]), Ce = q(!1), fe = Q(() => Ta({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), {
8449
8440
  fetchColumnState: Pe,
8450
8441
  loading: Te,
8451
8442
  getColumnState: He,
@@ -8455,25 +8446,25 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8455
8446
  treeViewFetching: t
8456
8447
  }), Ie = O((Se) => {
8457
8448
  xe.current = xe.current.map((Me) => {
8458
- const et = Se.find((ue) => ue.id === Me.id);
8459
- return { ...Me, ...et };
8460
- }), se((Me) => Me.map((et) => {
8461
- const ue = Se.find((_e) => _e.id === et.id);
8462
- return { ...et, ...ue };
8449
+ const Ze = Se.find((ue) => ue.id === Me.id);
8450
+ return { ...Me, ...Ze };
8451
+ }), se((Me) => Me.map((Ze) => {
8452
+ const ue = Se.find((_e) => _e.id === Ze.id);
8453
+ return { ...Ze, ...ue };
8463
8454
  }));
8464
8455
  }, []), {
8465
8456
  colorsForResults: ce,
8466
8457
  statusForResults: Ue,
8467
8458
  updateAttributes: Ee,
8468
8459
  clearAttributes: Ne
8469
- } = nl({
8460
+ } = tl({
8470
8461
  tableRef: l
8471
8462
  }), {
8472
8463
  isFieldLoading: ve,
8473
8464
  refresh: Ae,
8474
8465
  addRecordsToCheckFunctionFields: de,
8475
- onHasFunctionFieldsToParseConditions: Ze
8476
- } = ol({
8466
+ onHasFunctionFieldsToParseConditions: Xe
8467
+ } = rl({
8477
8468
  model: o,
8478
8469
  treeView: r,
8479
8470
  tableRef: l,
@@ -8483,7 +8474,7 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8483
8474
  treeOoui: n,
8484
8475
  updateAttributes: Ee,
8485
8476
  results: P
8486
- }), { clear: Ge } = rl({
8477
+ }), { clear: Ge } = nl({
8487
8478
  model: o,
8488
8479
  tableRef: l,
8489
8480
  autorefreshableFields: n == null ? void 0 : n.autorefreshableFields,
@@ -8530,8 +8521,8 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8530
8521
  d,
8531
8522
  st
8532
8523
  ]), We = O(() => b, [b]), ut = O(() => _, [_]), Pt = O((Se) => {
8533
- var Me, et, ue, _e;
8534
- return ce.current[(et = (Me = Se.node) == null ? void 0 : Me.data) == null ? void 0 : et.id] ? { color: ce.current[(_e = (ue = Se.node) == null ? void 0 : ue.data) == null ? void 0 : _e.id] } : {};
8524
+ var Me, Ze, ue, _e;
8525
+ return ce.current[(Ze = (Me = Se.node) == null ? void 0 : Me.data) == null ? void 0 : Ze.id] ? { color: ce.current[(_e = (ue = Se.node) == null ? void 0 : ue.data) == null ? void 0 : _e.id] } : {};
8535
8526
  }, []), Ot = O(
8536
8527
  (Se) => {
8537
8528
  var Me;
@@ -8550,8 +8541,8 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8550
8541
  A
8551
8542
  ]), hn = O(
8552
8543
  ({ params: Se, searchValues: Me }) => {
8553
- var et;
8554
- g([]), (et = l.current) == null || et.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Me);
8544
+ var Ze;
8545
+ g([]), (Ze = l.current) == null || Ze.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Me);
8555
8546
  },
8556
8547
  [
8557
8548
  g,
@@ -8565,8 +8556,8 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8565
8556
  [y]
8566
8557
  ), gn = O(
8567
8558
  ({ params: Se, values: Me }) => {
8568
- var et;
8569
- g([]), (et = l.current) == null || et.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Me), y == null || y(!1);
8559
+ var Ze;
8560
+ g([]), (Ze = l.current) == null || Ze.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Me), y == null || y(!1);
8570
8561
  },
8571
8562
  [
8572
8563
  g,
@@ -8623,9 +8614,9 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8623
8614
  });
8624
8615
  Se = vr(Nt);
8625
8616
  }
8626
- const Me = z ? c : ye, et = (r == null ? void 0 : r.fields_in_conditions) !== void 0, ue = Gr({
8617
+ const Me = z ? c : ye, Ze = (r == null ? void 0 : r.fields_in_conditions) !== void 0, ue = Gr({
8627
8618
  treeOoui: n,
8628
- hasFunctionFieldsToParseConditions: et && Ze()
8619
+ hasFunctionFieldsToParseConditions: Ze && Xe()
8629
8620
  }), { results: _e, attrsEvaluated: rt } = await he({
8630
8621
  params: Me,
8631
8622
  limit: X,
@@ -8636,7 +8627,7 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8636
8627
  attrs: ue,
8637
8628
  order: Se,
8638
8629
  name_search: z,
8639
- skipFunctionFields: et,
8630
+ skipFunctionFields: Ze,
8640
8631
  onIdsRetrieved: (Nt) => {
8641
8632
  de(Nt);
8642
8633
  }
@@ -8671,7 +8662,7 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8671
8662
  o,
8672
8663
  r,
8673
8664
  d,
8674
- Ze,
8665
+ Xe,
8675
8666
  E,
8676
8667
  F,
8677
8668
  ot,
@@ -8716,7 +8707,7 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8716
8707
  g == null || g(Se.map((Me) => ({ id: Me })));
8717
8708
  }, [Yt, g]), Gt = Q(() => Ke.length === 0 ? "unchecked" : Ke.length === X && X > 0 || Ke.length === U ? "checked" : "indeterminate", [Ke, X, U]), jn = O(() => {
8718
8709
  var Se, Me;
8719
- Gt === "unchecked" ? ((Se = l.current) == null || Se.selectAll(), g(ee.map((et) => ({ id: et.id })))) : (g([]), (Me = l.current) == null || Me.unselectAll());
8710
+ Gt === "unchecked" ? ((Se = l.current) == null || Se.selectAll(), g(ee.map((Ze) => ({ id: Ze.id })))) : (g([]), (Me = l.current) == null || Me.unselectAll());
8720
8711
  }, [l, g, ee, Gt]), Un = O(
8721
8712
  (Se) => {
8722
8713
  W(Se), v(0), C(void 0), L(1);
@@ -8729,12 +8720,12 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8729
8720
  ]
8730
8721
  ), Wn = O(
8731
8722
  ({ id: Se, selected: Me }) => {
8732
- g((et) => {
8723
+ g((Ze) => {
8733
8724
  if (Me) {
8734
8725
  const ue = ee.find((_e) => _e.id === Se);
8735
- return ue && !et.some((_e) => _e.id === Se) ? [...et, ue] : et;
8726
+ return ue && !Ze.some((_e) => _e.id === Se) ? [...Ze, ue] : Ze;
8736
8727
  }
8737
- return et.filter((ue) => ue.id !== Se);
8728
+ return Ze.filter((ue) => ue.id !== Se);
8738
8729
  });
8739
8730
  },
8740
8731
  [ee, g]
@@ -8857,14 +8848,14 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8857
8848
  onSubmit: i
8858
8849
  }
8859
8850
  ) : /* @__PURE__ */ s(
8860
- el,
8851
+ Za,
8861
8852
  {
8862
8853
  ...f,
8863
8854
  onClose: l,
8864
8855
  onSubmit: c
8865
8856
  }
8866
8857
  );
8867
- }, dl = nt(
8858
+ }, cl = nt(
8868
8859
  ({
8869
8860
  columns: e,
8870
8861
  treeOoui: t,
@@ -8906,7 +8897,7 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8906
8897
  )
8907
8898
  })), [e, w]);
8908
8899
  return !e || !t ? null : /* @__PURE__ */ s(
8909
- Yc,
8900
+ Wc,
8910
8901
  {
8911
8902
  ref: T,
8912
8903
  strings: n,
@@ -8937,7 +8928,7 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8937
8928
  );
8938
8929
  }
8939
8930
  );
8940
- dl.displayName = "PaginatedTableComponent";
8931
+ cl.displayName = "PaginatedTableComponent";
8941
8932
  const ii = (e) => {
8942
8933
  const t = q(e);
8943
8934
  return le(() => {
@@ -9041,7 +9032,7 @@ function Ph(e, t) {
9041
9032
  ...l ? {} : { display: "none" }
9042
9033
  }),
9043
9034
  [v, l]
9044
- ), ve = Te !== void 0 && Pe, Ae = ve && j !== void 0 && j !== null && j === ht, de = Q(() => typeof j != "number" || isNaN(j) || j < 0 ? (X == null ? void 0 : X.length) || 0 : j || 0, [j, X]), Ze = Q(() => (X == null ? void 0 : X.length) > 0 && (typeof j != "number" || isNaN(j) || j < 0) ? X == null ? void 0 : X.length : f ? ht : Y || _h, [X == null ? void 0 : X.length, j, f, Y]);
9035
+ ), ve = Te !== void 0 && Pe, Ae = ve && j !== void 0 && j !== null && j === ht, de = Q(() => typeof j != "number" || isNaN(j) || j < 0 ? (X == null ? void 0 : X.length) || 0 : j || 0, [j, X]), Xe = Q(() => (X == null ? void 0 : X.length) > 0 && (typeof j != "number" || isNaN(j) || j < 0) ? X == null ? void 0 : X.length : f ? ht : Y || _h, [X == null ? void 0 : X.length, j, f, Y]);
9045
9036
  return /* @__PURE__ */ N(En, { children: [
9046
9037
  /* @__PURE__ */ s(
9047
9038
  Eh,
@@ -9058,12 +9049,12 @@ function Ph(e, t) {
9058
9049
  }
9059
9050
  ),
9060
9051
  /* @__PURE__ */ s(
9061
- Ac,
9052
+ Fc,
9062
9053
  {
9063
9054
  total: de,
9064
9055
  totalRowsLoading: G,
9065
9056
  page: f ? 1 : z || 1,
9066
- pageSize: Ze,
9057
+ pageSize: Xe,
9067
9058
  maxPageSize: g,
9068
9059
  currentPageSelectedCount: S.length,
9069
9060
  onRequestPageChange: we,
@@ -9072,15 +9063,15 @@ function Ph(e, t) {
9072
9063
  simpleSummary: ve,
9073
9064
  showAllOptionInPageSizeOptions: m !== void 0,
9074
9065
  customMiddleComponent: Ae && /* @__PURE__ */ s(
9075
- sl,
9066
+ ol,
9076
9067
  {
9077
9068
  onFilterSearchClick: () => fe(!0)
9078
9069
  }
9079
9070
  )
9080
9071
  }
9081
9072
  ),
9082
- /* @__PURE__ */ s("div", { ref: p, style: Ne, children: C ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
9083
- dl,
9073
+ /* @__PURE__ */ s("div", { ref: p, style: Ne, children: C ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
9074
+ cl,
9084
9075
  {
9085
9076
  columns: w,
9086
9077
  treeOoui: x,
@@ -9166,7 +9157,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9166
9157
  setPreviousView: x,
9167
9158
  setTreeType: R,
9168
9159
  setSelectedRowItems: T
9169
- } = ae(Ct);
9160
+ } = ae(St);
9170
9161
  le(() => {
9171
9162
  R == null || R(g);
9172
9163
  }, [g]);
@@ -9199,7 +9190,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9199
9190
  }, []);
9200
9191
  return t ? /* @__PURE__ */ N(En, { children: [
9201
9192
  /* @__PURE__ */ s(Br, { showSummary: g !== "infinite", children: /* @__PURE__ */ s(
9202
- tf,
9193
+ ef,
9203
9194
  {
9204
9195
  domain: l,
9205
9196
  toolbar: i == null ? void 0 : i.toolbar,
@@ -9208,7 +9199,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9208
9199
  }
9209
9200
  ) }),
9210
9201
  g === "infinite" && /* @__PURE__ */ s(
9211
- il,
9202
+ sl,
9212
9203
  {
9213
9204
  ref: n,
9214
9205
  rootTree: !0,
@@ -9237,7 +9228,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9237
9228
  }
9238
9229
  ),
9239
9230
  g === "legacy" && /* @__PURE__ */ s(
9240
- cl,
9231
+ ll,
9241
9232
  {
9242
9233
  ref: n,
9243
9234
  rootTree: !0,
@@ -9251,7 +9242,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9251
9242
  }
9252
9243
  )
9253
9244
  ] }) : null;
9254
- }, Ct = Nl(
9245
+ }, St = Vl(
9255
9246
  null
9256
9247
  ), Nh = (e) => {
9257
9248
  const {
@@ -9287,7 +9278,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9287
9278
  } = e, [E, H] = I(!1), [V, $] = I(!1), [L, D] = I(!1), [W, G] = I(!0), [j, ne] = I(!0), [X, we] = I([]), [B, U] = I(!1), [me, ee] = I(
9288
9279
  S || []
9289
9280
  ), [se, Z] = I(!1), [re, z] = I(!0), [Y, be] = I(), [Oe, je] = I(
9290
- Bu(
9281
+ Hu(
9291
9282
  S || [],
9292
9283
  n.fields
9293
9284
  )
@@ -9295,7 +9286,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9295
9286
  P
9296
9287
  ), [Ee, Ne] = I(
9297
9288
  A !== void 0 ? A : ht
9298
- ), [ve, Ae] = I(r), [de, Ze] = I(
9289
+ ), [ve, Ae] = I(r), [de, Xe] = I(
9299
9290
  F || 1
9300
9291
  );
9301
9292
  le(() => {
@@ -9320,7 +9311,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9320
9311
  return await ((st = i.current) == null ? void 0 : st.submitForm());
9321
9312
  };
9322
9313
  return /* @__PURE__ */ s(
9323
- Ct.Provider,
9314
+ St.Provider,
9324
9315
  {
9325
9316
  value: {
9326
9317
  title: ve,
@@ -9386,13 +9377,13 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9386
9377
  order: ce,
9387
9378
  setOrder: Ue,
9388
9379
  currentPage: de,
9389
- setCurrentPage: Ze
9380
+ setCurrentPage: Xe
9390
9381
  },
9391
9382
  children: t
9392
9383
  }
9393
9384
  );
9394
- }, Mh = () => !!ae(Ct), Mn = () => {
9395
- const e = ae(Ct);
9385
+ }, Mh = () => !!ae(St), Mn = () => {
9386
+ const e = ae(St);
9396
9387
  return e || {
9397
9388
  title: "",
9398
9389
  currentView: {},
@@ -9500,7 +9491,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9500
9491
  fixedHeight: c,
9501
9492
  viewData: d
9502
9493
  } = e, [f, u] = I(!1), [m, h] = I(), p = ae(
9503
- Ct
9494
+ St
9504
9495
  ), { setGraphIsLoading: y = void 0 } = p || {}, [g] = ze(M.getHandler().getView);
9505
9496
  Dt(t, () => ({
9506
9497
  refresh: () => {
@@ -9533,7 +9524,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9533
9524
  operator: b.operator
9534
9525
  } : {};
9535
9526
  return /* @__PURE__ */ s(
9536
- yu,
9527
+ gu,
9537
9528
  {
9538
9529
  showPercent: b.showPercent,
9539
9530
  totalDomain: b.totalDomain,
@@ -9553,7 +9544,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9553
9544
  case "bar":
9554
9545
  case "pie":
9555
9546
  return /* @__PURE__ */ s(
9556
- Pu,
9547
+ Du,
9557
9548
  {
9558
9549
  model: r,
9559
9550
  context: o,
@@ -9593,7 +9584,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9593
9584
  };
9594
9585
  }, Hh = (e, t) => {
9595
9586
  const { view_id: n, model: r, context: o, domain: a, manualIds: i, fixedHeight: l } = e, c = ae(
9596
- Ct
9587
+ St
9597
9588
  ), { setGraphIsLoading: d = void 0 } = c || {}, { error: f, loading: u, graphData: m, fetchData: h } = Lh({
9598
9589
  view_id: n,
9599
9590
  model: r,
@@ -9651,7 +9642,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9651
9642
  default:
9652
9643
  return /* @__PURE__ */ s(oe, { children: `Graph ${m.type} not implemented` });
9653
9644
  }
9654
- }, ul = _t(Hh), { useToken: Bh } = Xe, { Text: ai } = nn, fl = (e) => {
9645
+ }, dl = _t(Hh), { useToken: Bh } = Qe, { Text: ai } = nn, ul = (e) => {
9655
9646
  const {
9656
9647
  title: t,
9657
9648
  children: n,
@@ -9729,7 +9720,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9729
9720
  ]
9730
9721
  }
9731
9722
  );
9732
- }, { useToken: jh } = Xe, Uh = (e) => {
9723
+ }, { useToken: jh } = Qe, Uh = (e) => {
9733
9724
  const { ooui: t } = e, n = t.actionId !== void 0;
9734
9725
  return /* @__PURE__ */ s($e, { ooui: t, children: n ? /* @__PURE__ */ s(hr, { children: /* @__PURE__ */ s(Yh, { ooui: t }) }) : /* @__PURE__ */ s(Wh, { ooui: t }) });
9735
9726
  }, Wh = (e) => {
@@ -9767,7 +9758,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9767
9758
  style: { color: t.colorPrimaryBg }
9768
9759
  }
9769
9760
  ) })
9770
- ] }), u = St(a);
9761
+ ] }), u = wt(a);
9771
9762
  let m = r;
9772
9763
  if (n.selectionValues.size)
9773
9764
  m = n.selectionValues.get(r);
@@ -9779,7 +9770,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9779
9770
  time: "HH:mm",
9780
9771
  datetime: "DD/MM/YYYY HH:mm"
9781
9772
  };
9782
- m = r ? Qe(r).format(y[n.fieldType]) : " ";
9773
+ m = r ? tt(r).format(y[n.fieldType]) : " ";
9783
9774
  }
9784
9775
  if (n.fieldType === "many2one" && r && ((p = n.raw_props) != null && p.relation) && (m = /* @__PURE__ */ N(it, { children: [
9785
9776
  m,
@@ -9794,7 +9785,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9794
9785
  console.log("Error formatting number with locale", o), console.error(y);
9795
9786
  }
9796
9787
  const h = /* @__PURE__ */ s(
9797
- Wl,
9788
+ Ul,
9798
9789
  {
9799
9790
  title: f,
9800
9791
  prefix: u && /* @__PURE__ */ s(u, {}),
@@ -9806,7 +9797,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9806
9797
  );
9807
9798
  return n.card ? /* @__PURE__ */ s(Ao, { children: h }) : h;
9808
9799
  }, Yh = (e) => {
9809
- const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = sd(), { actionData: a, treeShortcut: i, loading: l, error: c, fetchData: d } = pu(n), f = Jt(
9800
+ const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = od(), { actionData: a, treeShortcut: i, loading: l, error: c, fetchData: d } = mu(n), f = Jt(
9810
9801
  Lt.FEATURE_READFORVIEW
9811
9802
  ), u = ae(
9812
9803
  Rt
@@ -9815,12 +9806,12 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9815
9806
  t && d();
9816
9807
  }, [t, o]), c && c.message !== "active_id_not_found")
9817
9808
  return /* @__PURE__ */ s(oa, { error: c });
9818
- const { id: h, model: p, limit: y, domain: g, context: v, initialView: b, description: _ } = a || {}, C = f ? ul : $n, x = _ ? /* @__PURE__ */ N(oe, { children: [
9809
+ const { id: h, model: p, limit: y, domain: g, context: v, initialView: b, description: _ } = a || {}, C = f ? dl : $n, x = _ ? /* @__PURE__ */ N(oe, { children: [
9819
9810
  /* @__PURE__ */ s(Mt, { title: _, children: /* @__PURE__ */ s(kn, { className: "pr-1 text-xs" }) }),
9820
9811
  /* @__PURE__ */ s("span", { children: (a == null ? void 0 : a.title) || "" })
9821
9812
  ] }) : /* @__PURE__ */ s("span", { children: (a == null ? void 0 : a.title) || "" });
9822
9813
  return /* @__PURE__ */ N(
9823
- fl,
9814
+ ul,
9824
9815
  {
9825
9816
  id: h,
9826
9817
  parms: {},
@@ -9949,7 +9940,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9949
9940
  case "notebook":
9950
9941
  return Gg;
9951
9942
  case "group":
9952
- return Fl;
9943
+ return Il;
9953
9944
  case "label":
9954
9945
  return Vr;
9955
9946
  case "char":
@@ -9959,19 +9950,19 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9959
9950
  case "button":
9960
9951
  return No;
9961
9952
  case "buttonGroup":
9962
- return hd;
9953
+ return pd;
9963
9954
  case "selection":
9964
9955
  return qi;
9965
9956
  case "many2one":
9966
9957
  return pg;
9967
9958
  case "boolean":
9968
- return kd;
9959
+ return Pd;
9969
9960
  case "integer":
9970
9961
  return Xn;
9971
9962
  case "float":
9972
9963
  return zo;
9973
9964
  case "progressbar":
9974
- return af;
9965
+ return sf;
9975
9966
  case "date":
9976
9967
  return dy;
9977
9968
  case "datetime":
@@ -9989,7 +9980,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9989
9980
  case "binary":
9990
9981
  return yy;
9991
9982
  case "image":
9992
- return $d;
9983
+ return Md;
9993
9984
  case "url":
9994
9985
  return Iy;
9995
9986
  case "email":
@@ -9997,15 +9988,15 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9997
9988
  case "float_time":
9998
9989
  return jg;
9999
9990
  case "fiber_grid":
10000
- return Hd;
9991
+ return Ld;
10001
9992
  case "timeline":
10002
- return iu;
9993
+ return su;
10003
9994
  case "indicator":
10004
9995
  return Uh;
10005
9996
  case "tags":
10006
9997
  return Kh;
10007
9998
  case "tag":
10008
- return yf;
9999
+ return gf;
10009
10000
  case "multicheckbox":
10010
10001
  return Gy;
10011
10002
  case "markdown":
@@ -10038,7 +10029,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
10038
10029
  }
10039
10030
  }, Jh = (e) => {
10040
10031
  const { ooui: t } = e, { type: n } = t, r = zh(n);
10041
- return r ? Ml(r, e) : null;
10032
+ return r ? Nl(r, e) : null;
10042
10033
  }, Qh = ({
10043
10034
  item: e,
10044
10035
  responsiveBehaviour: t
@@ -10067,7 +10058,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
10067
10058
  row: e,
10068
10059
  numberOfColumns: t
10069
10060
  }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), eg = (e, t) => {
10070
- const n = e.map((r) => r instanceof Dn && r.fieldForLabel || r instanceof Xl ? "auto" : "1fr");
10061
+ const n = e.map((r) => r instanceof Dn && r.fieldForLabel || r instanceof Ql ? "auto" : "1fr");
10071
10062
  if (n.length < t) {
10072
10063
  const r = t - n.length;
10073
10064
  for (let o = 0; o < r; o++)
@@ -10133,10 +10124,10 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
10133
10124
  content: t,
10134
10125
  onOk: n
10135
10126
  });
10136
- }, ml = It.createContext(null), ig = (e) => {
10127
+ }, fl = It.createContext(null), ig = (e) => {
10137
10128
  const { children: t, setTitle: n } = e;
10138
10129
  return /* @__PURE__ */ s(
10139
- ml.Provider,
10130
+ fl.Provider,
10140
10131
  {
10141
10132
  value: {
10142
10133
  setTitle: n
@@ -10231,8 +10222,8 @@ function ug(e, t) {
10231
10222
  forcedValues: R = {},
10232
10223
  parentWidth: T,
10233
10224
  onMustRefreshParent: w
10234
- } = e, { t: A } = ge(), [k, S] = I(!1), [F, P] = I(), [E, H] = I(), [V] = Et.useForm(), [$, L] = I(), [D, W] = I(), G = ae(ml), [j, ne] = I(), [X, we] = I(!1), B = q(), U = q({}), me = q({}), ee = q(!1), se = q(!1), Z = q(!1), z = (T !== void 0 ? T : j) < dg, Y = ae(Je), { activeId: be, getPlainValues: Oe } = Y || {}, je = q(!1), xe = ae(
10235
- Ct
10225
+ } = e, { t: A } = ge(), [k, S] = I(!1), [F, P] = I(), [E, H] = I(), [V] = Et.useForm(), [$, L] = I(), [D, W] = I(), G = ae(fl), [j, ne] = I(), [X, we] = I(!1), B = q(), U = q({}), me = q({}), ee = q(!1), se = q(!1), Z = q(!1), z = (T !== void 0 ? T : j) < dg, Y = ae(Je), { activeId: be, getPlainValues: Oe } = Y || {}, je = q(!1), xe = ae(
10226
+ St
10236
10227
  ), {
10237
10228
  setFormIsSaving: Ce = void 0,
10238
10229
  setFormHasChanges: fe = void 0,
@@ -10273,7 +10264,7 @@ function ug(e, t) {
10273
10264
  fe == null || fe(!1), Ce == null || Ce(!1), a == null || a(K, J, pe, ie), Pe == null || Pe(K), je.current && (w == null || w());
10274
10265
  }, Ae = (K) => {
10275
10266
  Ce == null || Ce(!1), d == null || d(K);
10276
- }, de = O(() => r || B.current, [r]), Ze = r || B.current;
10267
+ }, de = O(() => r || B.current, [r]), Xe = r || B.current;
10277
10268
  function Ge() {
10278
10269
  return D;
10279
10270
  }
@@ -10375,7 +10366,7 @@ function ug(e, t) {
10375
10366
  Te == null || Te(!0), P(void 0), K != null && K.fields ? (pe = K.fields, ie = K.arch) : (pe = D, ie = $), h && (K == null ? void 0 : K.forceRefresh) !== !0 ? J = h : { values: J, defaultGetCalled: De } = await gn({
10376
10367
  fields: pe,
10377
10368
  arch: ie
10378
- }), b && (J = { ...tu(b), ...J }), U.current = wn(J, pe), kt({
10369
+ }), b && (J = { ...eu(b), ...J }), U.current = wn(J, pe), kt({
10379
10370
  values: J,
10380
10371
  fields: pe,
10381
10372
  reset: !0,
@@ -10411,12 +10402,12 @@ function ug(e, t) {
10411
10402
  reset: pe,
10412
10403
  isDefaultGet: ie = !1
10413
10404
  }) => {
10414
- const ct = { ...pe ? {} : V.getFieldsValue(!0), ...K }, Ht = wn(ct, J), Pl = Object.keys(J).map((qr) => ({
10405
+ const ct = { ...pe ? {} : V.getFieldsValue(!0), ...K }, Ht = wn(ct, J), Dl = Object.keys(J).map((qr) => ({
10415
10406
  name: qr,
10416
10407
  touched: !1,
10417
10408
  value: Ht[qr] !== void 0 ? Ht[qr] : void 0
10418
10409
  }));
10419
- ie || (me.current = Ht), V.setFields(Pl);
10410
+ ie || (me.current = Ht), V.setFields(Dl);
10420
10411
  },
10421
10412
  [V]
10422
10413
  ), gn = async ({
@@ -10520,7 +10511,7 @@ function ug(e, t) {
10520
10511
  const De = new Ii(K);
10521
10512
  return De.parse(J, {
10522
10513
  readOnly: f || ie,
10523
- values: Wd(
10514
+ values: Ud(
10524
10515
  {
10525
10516
  ...pe,
10526
10517
  ...Re()
@@ -10557,7 +10548,7 @@ function ug(e, t) {
10557
10548
  target: ye(D),
10558
10549
  fields: D
10559
10550
  }), pe = Object.keys(J);
10560
- if (pe.length !== 0 && !(Zd({
10551
+ if (pe.length !== 0 && !(Xd({
10561
10552
  changedFields: pe,
10562
10553
  formOoui: E,
10563
10554
  types: [
@@ -10575,14 +10566,14 @@ function ug(e, t) {
10575
10566
  const ie = wn(V.getFieldsValue(!0), D);
10576
10567
  me.current = ie, c == null || c(ie), fe == null || fe(!0), Un(pe);
10577
10568
  }
10578
- }, jn = Vc(Gt, 100), Un = async (K) => {
10569
+ }, jn = kc(Gt, 100), Un = async (K) => {
10579
10570
  try {
10580
10571
  for (let J = 0; J < K.length; J += 1) {
10581
10572
  const pe = K[J];
10582
10573
  await Wn(pe);
10583
10574
  }
10584
10575
  } catch (J) {
10585
- wt(J);
10576
+ bt(J);
10586
10577
  }
10587
10578
  }, Wn = async (K) => {
10588
10579
  const J = E == null ? void 0 : E.onChangeFields[K];
@@ -10594,7 +10585,7 @@ function ug(e, t) {
10594
10585
  });
10595
10586
  return;
10596
10587
  }
10597
- const pe = nu({
10588
+ const pe = tu({
10598
10589
  values: {
10599
10590
  ...ye(D),
10600
10591
  context: {
@@ -10615,7 +10606,7 @@ function ug(e, t) {
10615
10606
  const De = {
10616
10607
  ...ye(D),
10617
10608
  ...ie.value
10618
- }, ct = Yd({
10609
+ }, ct = Wd({
10619
10610
  values: De,
10620
10611
  fields: D
10621
10612
  });
@@ -10636,7 +10627,7 @@ function ug(e, t) {
10636
10627
  });
10637
10628
  }
10638
10629
  if (ie.domain && Object.keys(ie.domain).length > 0) {
10639
- const De = eu({
10630
+ const De = Zd({
10640
10631
  fieldsDomain: ie.domain,
10641
10632
  fields: D
10642
10633
  });
@@ -10686,7 +10677,7 @@ function ug(e, t) {
10686
10677
  });
10687
10678
  J.type && J.type === "ir.actions.act_window_close" ? ve == null || ve(de(), Ke(), at()) : await Ot({ forceRefresh: !0 });
10688
10679
  }
10689
- async function et({
10680
+ async function Ze({
10690
10681
  action: K,
10691
10682
  context: J
10692
10683
  }) {
@@ -10745,7 +10736,7 @@ function ug(e, t) {
10745
10736
  );
10746
10737
  cg({
10747
10738
  model: n,
10748
- id: Ze,
10739
+ id: Xe,
10749
10740
  context: v,
10750
10741
  autorefreshableFields: E == null ? void 0 : E.autorefreshableFields,
10751
10742
  fieldDefs: D,
@@ -10769,19 +10760,19 @@ function ug(e, t) {
10769
10760
  try {
10770
10761
  !f && (Ve() || de() === void 0) && (ie = !0, rt(!0), m === "2many" ? (await Ut({ callOnSubmitSucceed: !1 }), Z.current = !0) : await Wt({ callOnSubmitSucceed: !1 }));
10771
10762
  const De = Z.current ? he() : {}, ct = { ...pe, ...De };
10772
- K === "object" ? await Se({ action: J, context: ct }) : K === "workflow" ? await Me({ action: J }) : K === "action" && await et({ action: J, context: ct }), ie && rt(!1);
10763
+ K === "object" ? await Se({ action: J, context: ct }) : K === "workflow" ? await Me({ action: J }) : K === "action" && await Ze({ action: J, context: ct }), ie && rt(!1);
10773
10764
  } catch (De) {
10774
- ie && rt(!1), wt(De);
10765
+ ie && rt(!1), bt(De);
10775
10766
  }
10776
10767
  }
10777
- const dr = () => !E && !F ? /* @__PURE__ */ s(tt, {}) : !n && !p || !_ ? null : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
10778
- od,
10768
+ const dr = () => !E && !F ? /* @__PURE__ */ s(et, {}) : !n && !p || !_ ? null : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
10769
+ rd,
10779
10770
  {
10780
10771
  getValues: Ke,
10781
10772
  getPlainValues: st,
10782
10773
  getFields: Ge,
10783
10774
  domain: b,
10784
- activeId: Ze,
10775
+ activeId: Xe,
10785
10776
  activeModel: n,
10786
10777
  setFieldValue: Tt,
10787
10778
  getFieldValue: We,
@@ -10900,7 +10891,7 @@ const Ln = _t(ug), Hn = (e) => {
10900
10891
  qe,
10901
10892
  {
10902
10893
  type: h ? "primary" : "default",
10903
- icon: h ? /* @__PURE__ */ s(ic, { style: { color: "white" } }) : /* @__PURE__ */ s(ac, {}),
10894
+ icon: h ? /* @__PURE__ */ s(sc, { style: { color: "white" } }) : /* @__PURE__ */ s(ic, {}),
10904
10895
  style: { width: 30 },
10905
10896
  onClick: R
10906
10897
  }
@@ -10979,7 +10970,7 @@ const Ln = _t(ug), Hn = (e) => {
10979
10970
  }
10980
10971
  C(d);
10981
10972
  }, [d, x, C]), w = Q(
10982
- () => _ ? il : cl,
10973
+ () => _ ? sl : ll,
10983
10974
  [_]
10984
10975
  ), A = O(() => {
10985
10976
  c(!0);
@@ -11057,7 +11048,7 @@ const Ln = _t(ug), Hn = (e) => {
11057
11048
  }
11058
11049
  )
11059
11050
  ] });
11060
- }, { defaultAlgorithm: fg, defaultSeed: mg } = Xe, pl = fg(mg), pg = (e) => {
11051
+ }, { defaultAlgorithm: fg, defaultSeed: mg } = Qe, ml = fg(mg), pg = (e) => {
11061
11052
  const { ooui: t } = e, { required: n } = t;
11062
11053
  return /* @__PURE__ */ s($e, { required: n, type: "array", validator: async (o, a) => {
11063
11054
  if (!a)
@@ -11066,8 +11057,8 @@ const Ln = _t(ug), Hn = (e) => {
11066
11057
  throw new Error();
11067
11058
  if (Array.isArray(a) && !a[0])
11068
11059
  throw new Error();
11069
- }, ...e, children: /* @__PURE__ */ s(hl, { ooui: t }) });
11070
- }, hl = (e) => {
11060
+ }, ...e, children: /* @__PURE__ */ s(pl, { ooui: t }) });
11061
+ }, pl = (e) => {
11071
11062
  const { value: t, onChange: n, ooui: r } = e, {
11072
11063
  required: o,
11073
11064
  relation: a,
@@ -11075,7 +11066,7 @@ const Ln = _t(ug), Hn = (e) => {
11075
11066
  context: l,
11076
11067
  id: c,
11077
11068
  domain: d
11078
- } = r, f = o && !i ? { backgroundColor: pl.colorPrimaryBg } : void 0, [u, m] = I(!1), [h, p] = I(!1), [y, g] = I(!1), [v, b] = I(), _ = q(!1), [C, x] = I(""), R = q(), T = ae(Je), { domain: w, getValues: A, getFields: k, getContext: S, elementHasLostFocus: F } = T || {}, P = q([]), [E, H] = I([]), V = t && t[0] || void 0, $ = t && t[1] || "";
11069
+ } = r, f = o && !i ? { backgroundColor: ml.colorPrimaryBg } : void 0, [u, m] = I(!1), [h, p] = I(!1), [y, g] = I(!1), [v, b] = I(), _ = q(!1), [C, x] = I(""), R = q(), T = ae(Je), { domain: w, getValues: A, getFields: k, getContext: S, elementHasLostFocus: F } = T || {}, P = q([]), [E, H] = I([]), V = t && t[0] || void 0, $ = t && t[1] || "";
11079
11070
  le(() => {
11080
11071
  !Array.isArray(t) && t && j(t);
11081
11072
  }, [t]), le(() => {
@@ -11241,7 +11232,7 @@ const Ln = _t(ug), Hn = (e) => {
11241
11232
  ] });
11242
11233
  }, hg = gt(pt)`
11243
11234
  .ant-input {
11244
- background-color: ${pl.colorPrimaryBg};
11235
+ background-color: ${ml.colorPrimaryBg};
11245
11236
  }
11246
11237
  `, Bn = It.createContext(
11247
11238
  null
@@ -11305,7 +11296,7 @@ const Ln = _t(ug), Hn = (e) => {
11305
11296
  children: t
11306
11297
  }
11307
11298
  );
11308
- }, gl = (e) => {
11299
+ }, hl = (e) => {
11309
11300
  const t = document.createElement("div");
11310
11301
  document.body.appendChild(t);
11311
11302
  const n = Ni(t);
@@ -11328,11 +11319,11 @@ const Ln = _t(ug), Hn = (e) => {
11328
11319
  n.unmount(), t.remove();
11329
11320
  }
11330
11321
  };
11331
- }, yl = ({
11322
+ }, gl = ({
11332
11323
  t: e,
11333
11324
  onOk: t
11334
11325
  }) => {
11335
- gl({
11326
+ hl({
11336
11327
  title: e("removeItems"),
11337
11328
  icon: /* @__PURE__ */ s(rn, {}),
11338
11329
  centered: !0,
@@ -11341,11 +11332,11 @@ const Ln = _t(ug), Hn = (e) => {
11341
11332
  cancelText: e("cancel"),
11342
11333
  onOk: t
11343
11334
  });
11344
- }, vl = ({
11335
+ }, yl = ({
11345
11336
  t: e,
11346
11337
  onOk: t
11347
11338
  }) => {
11348
- gl({
11339
+ hl({
11349
11340
  title: e("unlinkItems"),
11350
11341
  icon: /* @__PURE__ */ s(rn, {}),
11351
11342
  centered: !0,
@@ -11354,7 +11345,7 @@ const Ln = _t(ug), Hn = (e) => {
11354
11345
  onOk: t,
11355
11346
  cancelText: e("cancel")
11356
11347
  });
11357
- }, bl = ({
11348
+ }, vl = ({
11358
11349
  toolbar: e,
11359
11350
  mustDisableButtons: t = !1,
11360
11351
  formRef: n,
@@ -11460,7 +11451,7 @@ const Ln = _t(ug), Hn = (e) => {
11460
11451
  duplicatingItem: o,
11461
11452
  duplicate: i
11462
11453
  };
11463
- }, { useToken: bg } = Xe;
11454
+ }, { useToken: bg } = Qe;
11464
11455
  function wg(e) {
11465
11456
  var H, V, $, L;
11466
11457
  const {
@@ -11492,7 +11483,7 @@ function wg(e) {
11492
11483
  C == null || C();
11493
11484
  },
11494
11485
  context: i === "tree" ? b : (H = _ == null ? void 0 : _.current) == null ? void 0 : H.getContext()
11495
- }), { actionButtonProps: k, printButtonProps: S, relateButtonProps: F } = bl({
11486
+ }), { actionButtonProps: k, printButtonProps: S, relateButtonProps: F } = vl({
11496
11487
  toolbar: v,
11497
11488
  mustDisableButtons: n,
11498
11489
  formRef: _,
@@ -11508,7 +11499,7 @@ function wg(e) {
11508
11499
  onRefreshParentValues: C
11509
11500
  });
11510
11501
  return /* @__PURE__ */ N("div", { className: "flex mb-2 pt-3", children: [
11511
- /* @__PURE__ */ s(wl, { title: t, token: R }),
11502
+ /* @__PURE__ */ s(bl, { title: t, token: R }),
11512
11503
  /* @__PURE__ */ N("div", { className: "flex-none h-8 pl-2", children: [
11513
11504
  i !== "graph" && y && /* @__PURE__ */ s(
11514
11505
  mt,
@@ -11533,7 +11524,7 @@ function wg(e) {
11533
11524
  ] }),
11534
11525
  i !== "graph" && /* @__PURE__ */ s(Bt, {}),
11535
11526
  i !== "graph" && /* @__PURE__ */ s(
11536
- xl,
11527
+ Cl,
11537
11528
  {
11538
11529
  isMany2Many: m,
11539
11530
  totalItems: c,
@@ -11577,7 +11568,7 @@ function wg(e) {
11577
11568
  )
11578
11569
  ] }),
11579
11570
  i === "form" && /* @__PURE__ */ s(
11580
- Cl,
11571
+ Sl,
11581
11572
  {
11582
11573
  currentItemIndex: d,
11583
11574
  totalItems: c,
@@ -11591,7 +11582,7 @@ function wg(e) {
11591
11582
  mt,
11592
11583
  {
11593
11584
  tooltip: T("toggleViewMode"),
11594
- icon: /* @__PURE__ */ s(cc, {}),
11585
+ icon: /* @__PURE__ */ s(lc, {}),
11595
11586
  onClick: a
11596
11587
  }
11597
11588
  )
@@ -11631,7 +11622,7 @@ function wg(e) {
11631
11622
  ] })
11632
11623
  ] });
11633
11624
  }
11634
- const wl = nt(({ title: e, token: t }) => /* @__PURE__ */ s(
11625
+ const bl = nt(({ title: e, token: t }) => /* @__PURE__ */ s(
11635
11626
  "div",
11636
11627
  {
11637
11628
  className: "flex flex-grow h-8 text-white",
@@ -11642,10 +11633,10 @@ const wl = nt(({ title: e, token: t }) => /* @__PURE__ */ s(
11642
11633
  children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center h-full", children: /* @__PURE__ */ s("span", { className: "pl-2 font-bold", children: e }) })
11643
11634
  }
11644
11635
  ));
11645
- wl.displayName = "Title";
11636
+ bl.displayName = "Title";
11646
11637
  const Bt = nt(() => /* @__PURE__ */ s("div", { className: "inline-block w-3" }));
11647
11638
  Bt.displayName = "Separator";
11648
- const Sl = nt(
11639
+ const wl = nt(
11649
11640
  ({
11650
11641
  currentItemIndex: e,
11651
11642
  totalItems: t
@@ -11660,8 +11651,8 @@ const Sl = nt(
11660
11651
  ] });
11661
11652
  }
11662
11653
  );
11663
- Sl.displayName = "ItemIndex";
11664
- const Cl = nt(
11654
+ wl.displayName = "ItemIndex";
11655
+ const Sl = nt(
11665
11656
  ({
11666
11657
  currentItemIndex: e,
11667
11658
  totalItems: t,
@@ -11680,7 +11671,7 @@ const Cl = nt(
11680
11671
  }
11681
11672
  ),
11682
11673
  /* @__PURE__ */ s(
11683
- Sl,
11674
+ wl,
11684
11675
  {
11685
11676
  currentItemIndex: e,
11686
11677
  totalItems: t
@@ -11697,8 +11688,8 @@ const Cl = nt(
11697
11688
  ] });
11698
11689
  }
11699
11690
  );
11700
- Cl.displayName = "ItemBrowser";
11701
- const xl = nt(
11691
+ Sl.displayName = "ItemBrowser";
11692
+ const Cl = nt(
11702
11693
  ({
11703
11694
  isMany2Many: e,
11704
11695
  totalItems: t,
@@ -11712,7 +11703,7 @@ const xl = nt(
11712
11703
  mt,
11713
11704
  {
11714
11705
  tooltip: i(e ? "unlink" : "delete"),
11715
- icon: e ? /* @__PURE__ */ s(lc, {}) : /* @__PURE__ */ s(Po, {}),
11706
+ icon: e ? /* @__PURE__ */ s(ac, {}) : /* @__PURE__ */ s(Po, {}),
11716
11707
  onClick: a,
11717
11708
  danger: !e,
11718
11709
  type: e ? "default" : "primary",
@@ -11721,8 +11712,8 @@ const xl = nt(
11721
11712
  ) });
11722
11713
  }
11723
11714
  );
11724
- xl.displayName = "DeleteButton";
11725
- const Tl = nt(wg), Sg = {
11715
+ Cl.displayName = "DeleteButton";
11716
+ const xl = nt(wg), Sg = {
11726
11717
  form: Ii,
11727
11718
  tree: wi,
11728
11719
  graph: $n
@@ -11855,7 +11846,7 @@ const xg = (e) => {
11855
11846
  }) : te();
11856
11847
  }, He = () => {
11857
11848
  if (ee) {
11858
- vl({
11849
+ yl({
11859
11850
  t: v,
11860
11851
  onOk: async () => {
11861
11852
  i === "form" ? ce() : Ue();
@@ -11863,7 +11854,7 @@ const xg = (e) => {
11863
11854
  });
11864
11855
  return;
11865
11856
  }
11866
- yl({
11857
+ gl({
11867
11858
  t: v,
11868
11859
  onOk: async () => {
11869
11860
  i === "form" ? ce() : Ue();
@@ -11982,7 +11973,7 @@ const xg = (e) => {
11982
11973
  const de = () => {
11983
11974
  var he, Re, ke, Ve;
11984
11975
  if (i === "form")
11985
- return Z.length === 0 ? v("noCurrentEntries") : i !== re.current && a.some((ye) => !ye.values) ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
11976
+ return Z.length === 0 ? v("noCurrentEntries") : i !== re.current && a.some((ye) => !ye.values) ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
11986
11977
  Ln,
11987
11978
  {
11988
11979
  ref: X,
@@ -12051,10 +12042,10 @@ const xg = (e) => {
12051
12042
  };
12052
12043
  if (R)
12053
12044
  return /* @__PURE__ */ s(vt, { className: "mt-10", message: R, type: "error", banner: !0 });
12054
- const Ze = V;
12055
- return C ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ N(oe, { children: [
12045
+ const Xe = V;
12046
+ return C ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ N(oe, { children: [
12056
12047
  /* @__PURE__ */ s(
12057
- Tl,
12048
+ xl,
12058
12049
  {
12059
12050
  mode: i,
12060
12051
  model: B,
@@ -12109,7 +12100,7 @@ const xg = (e) => {
12109
12100
  A(!1);
12110
12101
  },
12111
12102
  readOnly: we,
12112
- mustClearAfterSave: Ze,
12103
+ mustClearAfterSave: Xe,
12113
12104
  onMustRefreshParent: () => {
12114
12105
  g == null || g({ forceRefresh: !0 });
12115
12106
  }
@@ -12183,20 +12174,20 @@ const xg = (e) => {
12183
12174
  endRow: y,
12184
12175
  sortFields: g
12185
12176
  }) => {
12186
- const v = vr(g), { realItemsIds: b, otherItems: _ } = Kd({
12177
+ const v = vr(g), { realItemsIds: b, otherItems: _ } = Gd({
12187
12178
  allItems: h,
12188
12179
  ...v ? {} : { range: { startRow: p, endRow: y } }
12189
12180
  });
12190
12181
  if (b.length === 0 && _.length === 0)
12191
12182
  return { results: [], colors: {}, status: {} };
12192
- const C = v ? (await zd(b, t, n, v)).slice(
12183
+ const C = v ? (await qd(b, t, n, v)).slice(
12193
12184
  p,
12194
12185
  y
12195
- ) : b, x = Jd(u), {
12186
+ ) : b, x = zd(u), {
12196
12187
  items: R,
12197
12188
  colors: T,
12198
12189
  status: w
12199
- } = await Qd({
12190
+ } = await Jd({
12200
12191
  relation: t,
12201
12192
  ids: C,
12202
12193
  treeView: e,
@@ -12204,7 +12195,7 @@ const xg = (e) => {
12204
12195
  attrs: x,
12205
12196
  treeOoui: u
12206
12197
  }), k = C.length < y - p && _.length > 0 ? [...C, ..._.map((F) => F.id)] : C;
12207
- return { results: qd({
12198
+ return { results: Kd({
12208
12199
  finalResultIds: k,
12209
12200
  fetchedItems: R,
12210
12201
  otherItems: _
@@ -12294,7 +12285,7 @@ const xg = (e) => {
12294
12285
  };
12295
12286
  }, Ag = ({
12296
12287
  one2manyItems: e
12297
- }) => Fn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), Il = _t(
12288
+ }) => Fn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), Tl = _t(
12298
12289
  ({
12299
12290
  formView: e,
12300
12291
  items: t,
@@ -12323,14 +12314,14 @@ const xg = (e) => {
12323
12314
  values: { ...u, id: m },
12324
12315
  treeValues: { ...u, id: m }
12325
12316
  } : y);
12326
- a(Gd(h));
12317
+ a(Yd(h));
12327
12318
  },
12328
12319
  readOnly: o
12329
12320
  }
12330
12321
  );
12331
12322
  }
12332
12323
  );
12333
- Il.displayName = "One2manyForm";
12324
+ Tl.displayName = "One2manyForm";
12334
12325
  const _g = ({
12335
12326
  isMany2many: e,
12336
12327
  triggerChange: t,
@@ -12382,13 +12373,13 @@ const _g = ({
12382
12373
  }, [n, c, r, d, t]), m = O(async () => l === "form" ? await u() : await f(), [l, u, f]);
12383
12374
  return { showRemoveConfirm: O(() => {
12384
12375
  if (e) {
12385
- vl({
12376
+ yl({
12386
12377
  t: i,
12387
12378
  onOk: m
12388
12379
  });
12389
12380
  return;
12390
12381
  }
12391
- yl({
12382
+ gl({
12392
12383
  t: i,
12393
12384
  onOk: m
12394
12385
  });
@@ -12610,7 +12601,7 @@ const Og = ({
12610
12601
  model: d
12611
12602
  })
12612
12603
  });
12613
- return P ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
12604
+ return P ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
12614
12605
  Mi,
12615
12606
  {
12616
12607
  ref: b,
@@ -12787,7 +12778,7 @@ const Og = ({
12787
12778
  }, [a]);
12788
12779
  return /* @__PURE__ */ N(oe, { children: [
12789
12780
  /* @__PURE__ */ s(
12790
- Tl,
12781
+ xl,
12791
12782
  {
12792
12783
  mode: c,
12793
12784
  title: L,
@@ -12842,7 +12833,7 @@ const Og = ({
12842
12833
  }
12843
12834
  ),
12844
12835
  c === "form" && /* @__PURE__ */ s(
12845
- Il,
12836
+ Tl,
12846
12837
  {
12847
12838
  ref: x,
12848
12839
  items: l,
@@ -12947,7 +12938,7 @@ const Og = ({
12947
12938
  d(!1);
12948
12939
  }
12949
12940
  };
12950
- return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ s(tt, {}) : f ? /* @__PURE__ */ s(vt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ s(gg, { initialView: l, children: /* @__PURE__ */ s(
12941
+ return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ s(et, {}) : f ? /* @__PURE__ */ s(vt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ s(gg, { initialView: l, children: /* @__PURE__ */ s(
12951
12942
  $e,
12952
12943
  {
12953
12944
  required: a,
@@ -12977,7 +12968,7 @@ const Og = ({
12977
12968
  }, Hg = (e) => {
12978
12969
  const { ooui: t, value: n } = e;
12979
12970
  return t.infinite || n && Array.isArray(n.items) && n.items.length >= $g ? /* @__PURE__ */ s(Mg, { ...e }) : /* @__PURE__ */ s(xg, { ...e });
12980
- }, { useToken: Bg } = Xe, jg = (e) => {
12971
+ }, { useToken: Bg } = Qe, jg = (e) => {
12981
12972
  const { ooui: t } = e, { required: n } = t;
12982
12973
  return /* @__PURE__ */ s($e, { required: n, type: "number", ...e, children: /* @__PURE__ */ s(Ug, { ooui: t }) });
12983
12974
  }, Ug = (e) => {
@@ -12992,7 +12983,7 @@ const Og = ({
12992
12983
  d.current = v.target.value, u(v.target.value);
12993
12984
  }
12994
12985
  async function g() {
12995
- p(sf(f)), await new Promise((v) => setTimeout(v, 300)), h == null || h();
12986
+ p(of(f)), await new Promise((v) => setTimeout(v, 300)), h == null || h();
12996
12987
  }
12997
12988
  return /* @__PURE__ */ s(
12998
12989
  pt,
@@ -13009,7 +13000,7 @@ const Og = ({
13009
13000
  );
13010
13001
  }, So = (e) => {
13011
13002
  const { ooui: t, responsiveBehaviour: n = !1, tip: r } = e;
13012
- return /* @__PURE__ */ s(tt, { tip: r ?? t.label, size: "large", spinning: t.loading, children: /* @__PURE__ */ s(
13003
+ return /* @__PURE__ */ s(et, { tip: r ?? t.label, size: "large", spinning: t.loading, children: /* @__PURE__ */ s(
13013
13004
  rs,
13014
13005
  {
13015
13006
  container: t.container,
@@ -13017,8 +13008,8 @@ const Og = ({
13017
13008
  }
13018
13009
  ) });
13019
13010
  };
13020
- function Fl(e) {
13021
- const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = St(t.icon || ""), { t: a } = ge();
13011
+ function Il(e) {
13012
+ const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = wt(t.icon || ""), { t: a } = ge();
13022
13013
  return /* @__PURE__ */ s(
13023
13014
  "div",
13024
13015
  {
@@ -13027,7 +13018,7 @@ function Fl(e) {
13027
13018
  overflowX: "hidden",
13028
13019
  overflowY: "auto"
13029
13020
  },
13030
- children: (t.label || o) && n ? /* @__PURE__ */ s(_c, { label: t.label, icon: o, children: /* @__PURE__ */ s(
13021
+ children: (t.label || o) && n ? /* @__PURE__ */ s(Ac, { label: t.label, icon: o, children: /* @__PURE__ */ s(
13031
13022
  So,
13032
13023
  {
13033
13024
  tip: a("loading"),
@@ -13066,10 +13057,10 @@ const { TabPane: Wg } = bi, Yg = gt(bi)`
13066
13057
  }
13067
13058
  `;
13068
13059
  function Gg(e) {
13069
- const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = Xe.useToken();
13060
+ const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = Qe.useToken();
13070
13061
  function a(i) {
13071
13062
  if (i) {
13072
- const l = St(i);
13063
+ const l = wt(i);
13073
13064
  return l && /* @__PURE__ */ s(l, {});
13074
13065
  }
13075
13066
  }
@@ -13088,7 +13079,7 @@ function Gg(e) {
13088
13079
  i.label
13089
13080
  ] }),
13090
13081
  children: /* @__PURE__ */ s(
13091
- Fl,
13082
+ Il,
13092
13083
  {
13093
13084
  ooui: i,
13094
13085
  showLabel: !1,
@@ -13101,7 +13092,7 @@ function Gg(e) {
13101
13092
  }
13102
13093
  );
13103
13094
  }
13104
- const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13095
+ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13105
13096
  const { ooui: t } = e, { id: n, readOnly: r, required: o, height: a, translatable: i } = t, { token: l } = Kg(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, d = ae(Je), { elementHasLostFocus: f } = d || {};
13106
13097
  return /* @__PURE__ */ s($e, { required: o, ...e, children: i ? /* @__PURE__ */ s(
13107
13098
  zg,
@@ -13215,7 +13206,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13215
13206
  ) })
13216
13207
  ] });
13217
13208
  }, Jg = (e) => {
13218
- const { ooui: t } = e, { label: n, icon: r } = t, o = St(r || "");
13209
+ const { ooui: t } = e, { label: n, icon: r } = t, o = wt(r || "");
13219
13210
  return /* @__PURE__ */ s(Ir, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ N(it, { children: [
13220
13211
  o ? /* @__PURE__ */ s(o, {}) : null,
13221
13212
  n
@@ -13360,7 +13351,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13360
13351
  }) => {
13361
13352
  const n = [];
13362
13353
  for (const r of Object.keys(e)) {
13363
- const o = e[r], a = Al(o), i = o.is_function === !0, l = a && !i;
13354
+ const o = e[r], a = Fl(o), i = o.is_function === !0, l = a && !i;
13364
13355
  n.push({
13365
13356
  key: Xg({ key: r, parentKey: t }),
13366
13357
  title: o.string,
@@ -13370,7 +13361,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13370
13361
  });
13371
13362
  }
13372
13363
  return n;
13373
- }, Al = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Xg = ({
13364
+ }, Fl = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Xg = ({
13374
13365
  parentKey: e,
13375
13366
  key: t
13376
13367
  }) => `${e ? e + "/" : ""}${t}`, xo = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), To = (e) => {
@@ -13436,7 +13427,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13436
13427
  keys: e,
13437
13428
  fields: t
13438
13429
  }) => e.map((n) => {
13439
- const r = To(n), a = Io(n, t)[r], i = Al(a), l = a.is_function === !0;
13430
+ const r = To(n), a = Io(n, t)[r], i = Fl(a), l = a.is_function === !0;
13440
13431
  return i && !l ? `${n}/id` : n;
13441
13432
  }), oy = (e) => {
13442
13433
  const t = /* @__PURE__ */ new Map(), n = [];
@@ -13479,7 +13470,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13479
13470
  onClose: n
13480
13471
  });
13481
13472
  return /* @__PURE__ */ s(
13482
- Rc,
13473
+ _c,
13483
13474
  {
13484
13475
  visible: t,
13485
13476
  onSucceed: f,
@@ -13502,13 +13493,13 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13502
13493
  }) => {
13503
13494
  const o = O(
13504
13495
  (i) => {
13505
- if (i.key === "Tab") {
13496
+ if (i.key === "Enter") {
13506
13497
  const c = i.target.value;
13507
- if (i.target._tabPressed = !0, !wf(c, t))
13498
+ if (!bf(c, t))
13508
13499
  return;
13509
- bf({
13500
+ i.preventDefault(), vf({
13510
13501
  currentValue: c,
13511
- now: Qe(),
13502
+ now: tt(),
13512
13503
  mode: e,
13513
13504
  showTime: t,
13514
13505
  onChange: (d) => n == null ? void 0 : n(d)
@@ -13518,24 +13509,16 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13518
13509
  [n, e, t]
13519
13510
  ), a = O(
13520
13511
  (i) => {
13521
- const l = r !== void 0, c = !i.target.value, d = i.target._tabPressed;
13522
- if (c) {
13523
- if (l)
13524
- n == null || n(void 0);
13525
- else if (d) {
13526
- const f = Qe();
13527
- n == null || n(f.format(bt[e].dateInternalFormat));
13528
- }
13529
- }
13530
- i.target._tabPressed = !1;
13512
+ const l = r !== void 0;
13513
+ !i.target.value && l && (n == null || n(void 0));
13531
13514
  },
13532
- [n, r, e]
13515
+ [n, r]
13533
13516
  );
13534
13517
  return {
13535
13518
  handleKeyDown: o,
13536
13519
  handleBlur: a
13537
13520
  };
13538
- }, { useToken: ay } = Xe, ly = (e, t) => {
13521
+ }, { useToken: ay } = Qe, ly = (e, t) => {
13539
13522
  const { token: n } = ay();
13540
13523
  return Q(
13541
13524
  () => e && !t ? { backgroundColor: n.colorPrimaryBg } : void 0,
@@ -13543,11 +13526,11 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13543
13526
  );
13544
13527
  }, cy = (e) => {
13545
13528
  const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
13546
- return /* @__PURE__ */ s($e, { required: r, ...e, children: /* @__PURE__ */ s(_l, { ooui: t, showTime: n }) });
13547
- }, _l = nt(
13529
+ return /* @__PURE__ */ s($e, { required: r, ...e, children: /* @__PURE__ */ s(Al, { ooui: t, showTime: n }) });
13530
+ }, Al = nt(
13548
13531
  (e) => {
13549
13532
  const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: a, readOnly: i, required: l } = r, c = Ia(), d = ly(l, !!i), f = o ? "time" : "date", u = Q(
13550
- () => t ? Qe(t, bt[f].dateInternalFormat) : void 0,
13533
+ () => t ? tt(t, Ct[f].dateInternalFormat) : void 0,
13551
13534
  [t, f]
13552
13535
  ), m = O(
13553
13536
  (g) => {
@@ -13556,7 +13539,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13556
13539
  return;
13557
13540
  }
13558
13541
  n == null || n(
13559
- g.format(bt[f].dateInternalFormat)
13542
+ g.format(Ct[f].dateInternalFormat)
13560
13543
  );
13561
13544
  },
13562
13545
  [n, f]
@@ -13568,8 +13551,8 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13568
13551
  }), y = Q(
13569
13552
  () => ({
13570
13553
  style: { width: "100%", ...d },
13571
- placeholder: bt[f].placeholder,
13572
- format: bt[f].dateDisplayFormat
13554
+ placeholder: Ct[f].placeholder,
13555
+ format: Ct[f].dateDisplayFormat
13573
13556
  }),
13574
13557
  [f, d]
13575
13558
  );
@@ -13593,13 +13576,13 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13593
13576
  );
13594
13577
  }
13595
13578
  );
13596
- _l.displayName = "DatePickerInput";
13597
- const Rl = nt(cy), dy = (e) => {
13579
+ Al.displayName = "DatePickerInput";
13580
+ const _l = nt(cy), dy = (e) => {
13598
13581
  const { ooui: t } = e;
13599
- return /* @__PURE__ */ s(Rl, { ooui: t });
13582
+ return /* @__PURE__ */ s(_l, { ooui: t });
13600
13583
  }, uy = (e) => {
13601
13584
  const { ooui: t } = e;
13602
- return /* @__PURE__ */ s(Rl, { ooui: t, showTime: !0 });
13585
+ return /* @__PURE__ */ s(_l, { ooui: t, showTime: !0 });
13603
13586
  }, fy = (e) => {
13604
13587
  const { ooui: t } = e;
13605
13588
  return /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(my, { ooui: t }) });
@@ -13612,7 +13595,7 @@ const Rl = nt(cy), dy = (e) => {
13612
13595
  e.onChange && e.onChange(o);
13613
13596
  },
13614
13597
  numberOfSelectsToHide: 3,
13615
- value: e.value ? Qe(e.value, "HH:mm:ss") : void 0,
13598
+ value: e.value ? tt(e.value, "HH:mm:ss") : void 0,
13616
13599
  disabled: t
13617
13600
  }
13618
13601
  );
@@ -13649,7 +13632,7 @@ const Rl = nt(cy), dy = (e) => {
13649
13632
  }
13650
13633
  ) }),
13651
13634
  /* @__PURE__ */ s(Fe, { flex: "3", children: /* @__PURE__ */ s(
13652
- hl,
13635
+ pl,
13653
13636
  {
13654
13637
  ooui: new Si({
13655
13638
  name: "object_value",
@@ -13667,11 +13650,11 @@ const Rl = nt(cy), dy = (e) => {
13667
13650
  }
13668
13651
  ) })
13669
13652
  ] });
13670
- }, { useToken: gy } = Xe, yy = (e) => {
13653
+ }, { useToken: gy } = Qe, yy = (e) => {
13671
13654
  const { ooui: t } = e, { required: n } = t;
13672
13655
  return /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s(vy, { ooui: t }) });
13673
13656
  }, vy = (e) => {
13674
- const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: a, filenameField: i } = t, { token: l } = gy(), c = a && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, d = q(null), { setFieldValue: f, getFieldValue: u } = ae(Je) || {}, { t: m } = ge(), h = n ? Md(n) : "", p = (_) => {
13657
+ const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: a, filenameField: i } = t, { token: l } = gy(), c = a && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, d = q(null), { setFieldValue: f, getFieldValue: u } = ae(Je) || {}, { t: m } = ge(), h = n ? Nd(n) : "", p = (_) => {
13675
13658
  r == null || r(_);
13676
13659
  };
13677
13660
  async function y() {
@@ -13724,7 +13707,7 @@ const Rl = nt(cy), dy = (e) => {
13724
13707
  children: "Select"
13725
13708
  }
13726
13709
  ),
13727
- /* @__PURE__ */ s(qe, { icon: /* @__PURE__ */ s(dc, {}), disabled: !n, onClick: g, children: m("open") }),
13710
+ /* @__PURE__ */ s(qe, { icon: /* @__PURE__ */ s(cc, {}), disabled: !n, onClick: g, children: m("open") }),
13728
13711
  /* @__PURE__ */ s(
13729
13712
  mt,
13730
13713
  {
@@ -13850,7 +13833,7 @@ function wy(e) {
13850
13833
  onAddNewAttachment: r,
13851
13834
  onListAllAttachments: o,
13852
13835
  onViewAttachmentDetails: a
13853
- } = e, { formRef: i } = ae(Ct), [l, c] = I(!1), [d, f] = I([]), [u, m] = I(!1), { t: h } = ge(), p = O(async () => {
13836
+ } = e, { formRef: i } = ae(St), [l, c] = I(!1), [d, f] = I([]), [u, m] = I(!1), { t: h } = ge(), p = O(async () => {
13854
13837
  if (!(!t || t.length === 0)) {
13855
13838
  c(!0);
13856
13839
  try {
@@ -13869,7 +13852,7 @@ function wy(e) {
13869
13852
  }))
13870
13853
  );
13871
13854
  } catch (v) {
13872
- wt(v);
13855
+ bt(v);
13873
13856
  }
13874
13857
  c(!1);
13875
13858
  }
@@ -13888,7 +13871,7 @@ function wy(e) {
13888
13871
  context: i.current.getContext()
13889
13872
  }))[0];
13890
13873
  } catch (_) {
13891
- wt(_);
13874
+ bt(_);
13892
13875
  }
13893
13876
  if (m(!1), !!b)
13894
13877
  if (b.datas) {
@@ -13929,7 +13912,7 @@ function wy(e) {
13929
13912
  closable: !1,
13930
13913
  centered: !0,
13931
13914
  maskClosable: !1,
13932
- children: /* @__PURE__ */ s(tt, {})
13915
+ children: /* @__PURE__ */ s(et, {})
13933
13916
  }
13934
13917
  )
13935
13918
  ] });
@@ -14056,7 +14039,7 @@ function Cy({ toolbar: e }) {
14056
14039
  [d, n]
14057
14040
  ), $ = O(() => {
14058
14041
  V(() => w.current.fetchValues());
14059
- }, [V, w]), { actionButtonProps: L, printButtonProps: D, relateButtonProps: W } = bl({
14042
+ }, [V, w]), { actionButtonProps: L, printButtonProps: D, relateButtonProps: W } = vl({
14060
14043
  toolbar: e,
14061
14044
  mustDisableButtons: H,
14062
14045
  formRef: w,
@@ -14171,7 +14154,7 @@ function Cy({ toolbar: e }) {
14171
14154
  ]
14172
14155
  ), i ? /* @__PURE__ */ N(it, { wrap: !0, children: [
14173
14156
  R && /* @__PURE__ */ N(oe, { children: [
14174
- /* @__PURE__ */ s(tt, {}),
14157
+ /* @__PURE__ */ s(et, {}),
14175
14158
  /* @__PURE__ */ s(dt, {}),
14176
14159
  /* @__PURE__ */ s(dt, {})
14177
14160
  ] }),
@@ -14179,7 +14162,7 @@ function Cy({ toolbar: e }) {
14179
14162
  /* @__PURE__ */ s(
14180
14163
  yt,
14181
14164
  {
14182
- icon: /* @__PURE__ */ s(uc, {}),
14165
+ icon: /* @__PURE__ */ s(dc, {}),
14183
14166
  tooltip: n("save"),
14184
14167
  disabled: !d || H,
14185
14168
  loading: f,
@@ -14247,7 +14230,7 @@ function Cy({ toolbar: e }) {
14247
14230
  ),
14248
14231
  /* @__PURE__ */ s(dt, {}),
14249
14232
  /* @__PURE__ */ s(
14250
- Ol,
14233
+ Rl,
14251
14234
  {
14252
14235
  disabled: H || !1,
14253
14236
  onPreviousClick: o,
@@ -14273,7 +14256,7 @@ function Cy({ toolbar: e }) {
14273
14256
  /* @__PURE__ */ s(Hr, { res_id: u })
14274
14257
  ] }) : null;
14275
14258
  }
14276
- const xy = nt(Cy), Ol = nt(
14259
+ const xy = nt(Cy), Rl = nt(
14277
14260
  ({
14278
14261
  disabled: e,
14279
14262
  onPreviousClick: t,
@@ -14303,7 +14286,7 @@ const xy = nt(Cy), Ol = nt(
14303
14286
  ] });
14304
14287
  }
14305
14288
  );
14306
- Ol.displayName = "NavigationButtons";
14289
+ Rl.displayName = "NavigationButtons";
14307
14290
  const di = (e, t) => ({
14308
14291
  model: "ir.attachment",
14309
14292
  domain: [
@@ -14312,7 +14295,7 @@ const di = (e, t) => ({
14312
14295
  ],
14313
14296
  values: { selection_associated_object: `${e},${t}` },
14314
14297
  forced_values: { res_model: e, res_id: t }
14315
- }), { useToken: Ty } = Xe, El = (e) => {
14298
+ }), { useToken: Ty } = Qe, Ol = (e) => {
14316
14299
  const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: a = "" } = e, { id: i, readOnly: l, required: c } = t, { token: d } = Ty(), f = c && !l ? { backgroundColor: d.colorPrimaryBg } : void 0, u = ae(Je), { elementHasLostFocus: m } = u || {}, [h, p] = I(!1), [y, g] = I(!1);
14317
14300
  le(() => {
14318
14301
  l && !h && g(!1), !n && !l && (p(!0), g(!0));
@@ -14371,20 +14354,20 @@ const di = (e, t) => ({
14371
14354
  }, Iy = (e) => {
14372
14355
  const { ooui: t } = e, { required: n } = t;
14373
14356
  return /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s(
14374
- El,
14357
+ Ol,
14375
14358
  {
14376
14359
  ooui: t,
14377
- valueValidator: (r) => r ? qc(r) : !1
14360
+ valueValidator: (r) => r ? Kc(r) : !1
14378
14361
  }
14379
14362
  ) });
14380
14363
  }, Fy = (e) => {
14381
14364
  const { ooui: t } = e, { required: n } = t;
14382
- return /* @__PURE__ */ s($e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ s(vf, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ s(
14383
- El,
14365
+ return /* @__PURE__ */ s($e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ s(yf, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ s(
14366
+ Ol,
14384
14367
  {
14385
14368
  ooui: t,
14386
14369
  linkPrefix: "mailto:",
14387
- valueValidator: (r) => r ? zc(r) : !1
14370
+ valueValidator: (r) => r ? qc(r) : !1
14388
14371
  }
14389
14372
  ) });
14390
14373
  }, Ay = (e) => {
@@ -14440,7 +14423,7 @@ const di = (e, t) => ({
14440
14423
  tabIndex: 1,
14441
14424
  loading: o,
14442
14425
  style: { marginLeft: 15 },
14443
- icon: /* @__PURE__ */ s(fc, {}),
14426
+ icon: /* @__PURE__ */ s(uc, {}),
14444
14427
  htmlType: "submit",
14445
14428
  disabled: o,
14446
14429
  onClick: () => {
@@ -14481,7 +14464,7 @@ function _y({ refreshGraph: e }) {
14481
14464
  graphIsLoading: c,
14482
14465
  previousView: d,
14483
14466
  setPreviousView: f
14484
- } = ae(Ct);
14467
+ } = ae(St);
14485
14468
  return /* @__PURE__ */ N(it, { wrap: !0, children: [
14486
14469
  /* @__PURE__ */ s(
14487
14470
  fa,
@@ -14540,7 +14523,7 @@ const Ry = (e) => {
14540
14523
  treeView: l,
14541
14524
  graphView: c
14542
14525
  } = e, d = q(), f = ae(
14543
- Ct
14526
+ St
14544
14527
  ), {
14545
14528
  setResults: u = void 0,
14546
14529
  setCurrentItemIndex: m = void 0,
@@ -14568,7 +14551,7 @@ const Ry = (e) => {
14568
14551
  }, [k]), le(() => {
14569
14552
  t.view_id !== P.view_id && H(!0);
14570
14553
  }, [P]);
14571
- const { clear: V, searchFilterLoading: $, searchError: L, offset: D, tableRefreshing: W } = ll({
14554
+ const { clear: V, searchFilterLoading: $, searchError: L, offset: D, tableRefreshing: W } = al({
14572
14555
  model: r,
14573
14556
  setSearchTreeNameSearch: R,
14574
14557
  setSelectedRowItems: y,
@@ -14633,7 +14616,7 @@ const Ry = (e) => {
14633
14616
  showLimitOptions: !1
14634
14617
  }
14635
14618
  ),
14636
- W ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
14619
+ W ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
14637
14620
  $n,
14638
14621
  {
14639
14622
  ref: d,
@@ -14706,7 +14689,7 @@ function Dy() {
14706
14689
  yt,
14707
14690
  {
14708
14691
  icon: /* @__PURE__ */ s(
14709
- mc,
14692
+ fc,
14710
14693
  {
14711
14694
  style: { color: n ? "white" : void 0 }
14712
14695
  }
@@ -14724,7 +14707,7 @@ function Dy() {
14724
14707
  /* @__PURE__ */ s(
14725
14708
  yt,
14726
14709
  {
14727
- icon: /* @__PURE__ */ s(pc, {}),
14710
+ icon: /* @__PURE__ */ s(mc, {}),
14728
14711
  tooltip: o("configDashboard"),
14729
14712
  disabled: e,
14730
14713
  loading: !1,
@@ -14899,19 +14882,19 @@ function My(e, t) {
14899
14882
  const [, Ae] = ve.viewTuple, de = ve.info;
14900
14883
  switch (Ae) {
14901
14884
  case "dashboard": {
14902
- const Ze = a.find((st) => {
14885
+ const Xe = a.find((st) => {
14903
14886
  const [, at] = st;
14904
14887
  return at === "form";
14905
14888
  });
14906
14889
  let Ge;
14907
- Ze && (Ge = {
14890
+ Xe && (Ge = {
14908
14891
  action_id: h,
14909
14892
  action_type: p,
14910
14893
  name: i,
14911
14894
  res_id: o.active_id,
14912
14895
  res_model: r,
14913
- view_id: Ze[0],
14914
- view_type: Ze[1]
14896
+ view_id: Xe[0],
14897
+ view_type: Xe[1]
14915
14898
  }), ce.push({
14916
14899
  type: "dashboard",
14917
14900
  id: o.active_id,
@@ -14954,7 +14937,7 @@ function My(e, t) {
14954
14937
  (Ae) => Ae.type === "tree"
14955
14938
  ) : d ? Ne = ce.find((Ae) => d.id ? Ae.type === d.type && Ae.view_id === d.id : Ae.type === d.type) : Ne = ce.find(
14956
14939
  (Ae) => Ae.type === "form"
14957
- ), Ne || (wt(
14940
+ ), Ne || (bt(
14958
14941
  `Error determining the first view to show for model ${r}.
14959
14942
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
14960
14943
  ), console.error(
@@ -15005,22 +14988,22 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15005
14988
  if (ce.length === 1) {
15006
14989
  Ee = "form", Ne = [];
15007
14990
  const Ae = ce[0], de = $.findIndex((Ge) => Ge.id === Ae);
15008
- let Ze;
14991
+ let Xe;
15009
14992
  if (de === -1) {
15010
14993
  try {
15011
- Ze = (ve = await M.getHandler().readObjects({
14994
+ Xe = (ve = await M.getHandler().readObjects({
15012
14995
  model: r,
15013
14996
  ids: [Ae],
15014
14997
  context: o
15015
14998
  })) == null ? void 0 : ve[0];
15016
14999
  } catch {
15017
15000
  }
15018
- if (!Ze) {
15001
+ if (!Xe) {
15019
15002
  B(!1), X(!1), cn(ee("idNotFound"));
15020
15003
  return;
15021
15004
  }
15022
15005
  } else
15023
- Ze = $[de];
15006
+ Xe = $[de];
15024
15007
  } else
15025
15008
  Ee = "tree", Ne = [["id", "in", ce]];
15026
15009
  if (B(!1), X(!1), Ue && Ee === "form") {
@@ -15056,7 +15039,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15056
15039
  fe(ce);
15057
15040
  }
15058
15041
  }
15059
- return w ? /* @__PURE__ */ s(tt, {}) : C ? /* @__PURE__ */ N(
15042
+ return w ? /* @__PURE__ */ s(et, {}) : C ? /* @__PURE__ */ N(
15060
15043
  Nh,
15061
15044
  {
15062
15045
  title: i,
@@ -15212,8 +15195,8 @@ const $y = ({
15212
15195
  `${v.type}-${v.view_id}`
15213
15196
  );
15214
15197
  }
15215
- })), Dl = _t(My);
15216
- const Ly = Jc(Qc), Hy = (e) => {
15198
+ })), El = _t(My);
15199
+ const Ly = zc(Jc), Hy = (e) => {
15217
15200
  const { children: t = [], onPositionItemsChanged: n } = e, r = It.Children.map(
15218
15201
  t,
15219
15202
  (o) => {
@@ -15353,7 +15336,7 @@ function By(e) {
15353
15336
  }
15354
15337
  )
15355
15338
  ] });
15356
- return L ? /* @__PURE__ */ s(vt, { className: "mt-10", message: L, type: "error", banner: !0 }) : c ? /* @__PURE__ */ s(tt, { style: { padding: "2rem" } }) : se();
15339
+ return L ? /* @__PURE__ */ s(vt, { className: "mt-10", message: L, type: "error", banner: !0 }) : c ? /* @__PURE__ */ s(et, { style: { padding: "2rem" } }) : se();
15357
15340
  }
15358
15341
  const jy = nt(By), Uy = (e) => {
15359
15342
  const { model: t } = e, [n, r] = I();
@@ -15524,7 +15507,7 @@ function Wy(e, t) {
15524
15507
  }
15525
15508
  let se = null;
15526
15509
  if ((U == null ? void 0 : U.type) === "graph") {
15527
- const be = H.server_action === !0 && C ? ul : $n;
15510
+ const be = H.server_action === !0 && C ? dl : $n;
15528
15511
  se = /* @__PURE__ */ s(
15529
15512
  be,
15530
15513
  {
@@ -15578,7 +15561,7 @@ function Wy(e, t) {
15578
15561
  else if (U !== void 0) {
15579
15562
  const Y = U && Array.isArray(U.id) ? { ...U, id: U.id[0] } : U;
15580
15563
  se = /* @__PURE__ */ s(
15581
- Dl,
15564
+ El,
15582
15565
  {
15583
15566
  action_id: L,
15584
15567
  action_type: D,
@@ -15620,7 +15603,7 @@ function Wy(e, t) {
15620
15603
  };
15621
15604
  }
15622
15605
  return /* @__PURE__ */ s(
15623
- fl,
15606
+ ul,
15624
15607
  {
15625
15608
  id: $,
15626
15609
  title: j ? /* @__PURE__ */ N(oe, { children: [
@@ -15698,7 +15681,7 @@ const Yy = _t(Wy), Gy = (e) => {
15698
15681
  A.push({ id: S, operation: "pendingLink" });
15699
15682
  }), _(A);
15700
15683
  };
15701
- return f && i.length === 0 ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ N("div", { className: "flex flex-row", children: [
15684
+ return f && i.length === 0 ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ N("div", { className: "flex flex-row", children: [
15702
15685
  /* @__PURE__ */ s(
15703
15686
  qn.Group,
15704
15687
  {
@@ -15731,9 +15714,9 @@ const Yy = _t(Wy), Gy = (e) => {
15731
15714
  overflow: "auto"
15732
15715
  },
15733
15716
  children: /* @__PURE__ */ s(
15734
- Xc,
15717
+ Qc,
15735
15718
  {
15736
- remarkPlugins: [Zc],
15719
+ remarkPlugins: [Xc],
15737
15720
  className: "markdown-typography",
15738
15721
  children: t
15739
15722
  }
@@ -15754,7 +15737,7 @@ const Yy = _t(Wy), Gy = (e) => {
15754
15737
  return /* @__PURE__ */ s($e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ s(Zy, { id: n, readOnly: r, required: o }) });
15755
15738
  }, Zy = (e) => {
15756
15739
  const { required: t, readOnly: n, ...r } = e;
15757
- return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(Yl, { disabled: n, ...r }) });
15740
+ return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(Wl, { disabled: n, ...r }) });
15758
15741
  }, ev = (e) => {
15759
15742
  const { ooui: t } = e, { required: n } = t;
15760
15743
  return /* @__PURE__ */ s($e, { required: n, type: "any", ...e, children: /* @__PURE__ */ s(tv, { ...e }) });
@@ -15781,7 +15764,7 @@ const Yy = _t(Wy), Gy = (e) => {
15781
15764
  fontFamily: i,
15782
15765
  fontSize: l
15783
15766
  }
15784
- } = Xe.useToken(), c = {
15767
+ } = Qe.useToken(), c = {
15785
15768
  padding: 0,
15786
15769
  listStyleType: "none",
15787
15770
  fontFamily: i,
@@ -15821,7 +15804,7 @@ const Yy = _t(Wy), Gy = (e) => {
15821
15804
  borderTop: "16px solid transparent",
15822
15805
  borderBottom: "16px solid transparent"
15823
15806
  }), m = (h) => {
15824
- const p = St(h);
15807
+ const p = wt(h);
15825
15808
  return p && /* @__PURE__ */ s(p, {});
15826
15809
  };
15827
15810
  return /* @__PURE__ */ s("ul", { style: c, children: (e.value || []).map((h, p) => /* @__PURE__ */ N("li", { style: d(h.active), children: [
@@ -15849,7 +15832,7 @@ const Yy = _t(Wy), Gy = (e) => {
15849
15832
  return n;
15850
15833
  }, [o, n]);
15851
15834
  return /* @__PURE__ */ s(
15852
- ed,
15835
+ Zc,
15853
15836
  {
15854
15837
  value: f,
15855
15838
  options: {
@@ -15862,7 +15845,7 @@ const Yy = _t(Wy), Gy = (e) => {
15862
15845
  }
15863
15846
  );
15864
15847
  }, { Meta: iv } = Ao, { Text: av } = nn, lv = ({ email: e, size: t = 40, theme: n = "" }) => {
15865
- const r = `https://www.gravatar.com/avatar/${td(
15848
+ const r = `https://www.gravatar.com/avatar/${ed(
15866
15849
  e
15867
15850
  )}?s=${t}&d=${n}`;
15868
15851
  return /* @__PURE__ */ s(pi, { src: r, size: t });
@@ -15884,7 +15867,7 @@ const dv = (e) => {
15884
15867
  avatar: /* @__PURE__ */ s(lv, { email: t.email, theme: "mp" }),
15885
15868
  title: t.author,
15886
15869
  description: /* @__PURE__ */ N(it, { direction: "horizontal", children: [
15887
- /* @__PURE__ */ s("span", { title: t.date, children: Qe(t.date).fromNow() }),
15870
+ /* @__PURE__ */ s("span", { title: t.date, children: tt(t.date).fromNow() }),
15888
15871
  t.isAuthor && /* @__PURE__ */ s(Fo, { color: "blue", children: r("author") })
15889
15872
  ] }),
15890
15873
  style: { marginBottom: "5px" }
@@ -15893,7 +15876,7 @@ const dv = (e) => {
15893
15876
  /* @__PURE__ */ s(av, { children: /* @__PURE__ */ s(cv, { text: t.text }) })
15894
15877
  ] }, t.id);
15895
15878
  }, ui = (e) => {
15896
- const t = St(e);
15879
+ const t = wt(e);
15897
15880
  return t && /* @__PURE__ */ s(t, {});
15898
15881
  }, uv = (e) => {
15899
15882
  const { value: t, ooui: n } = e, r = (t || []).map((o) => {
@@ -15925,7 +15908,7 @@ const dv = (e) => {
15925
15908
  }
15926
15909
  }
15927
15910
  );
15928
- }, fv = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(uv, { ooui: e.ooui }) }), mv = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(Oc, {}) }), pv = (e) => {
15911
+ }, fv = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(uv, { ooui: e.ooui }) }), mv = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(Rc, {}) }), pv = (e) => {
15929
15912
  const { ooui: t } = e, n = ae(Je);
15930
15913
  let { title: r, text: o, alertType: a, icon: i, buttons: l } = t;
15931
15914
  if (t.fieldType && t.id) {
@@ -15937,12 +15920,12 @@ const dv = (e) => {
15937
15920
  icon: i = t.icon,
15938
15921
  buttons: l = []
15939
15922
  } = f, l && (l = l.map(
15940
- (u) => new Zl({ ...u, readonly: t.readOnly })
15923
+ (u) => new Xl({ ...u, readonly: t.readOnly })
15941
15924
  )), t.buttons && (l = [...t.buttons, ...l])) : console.log(`field value for ${t.id} is not an object`);
15942
15925
  }
15943
15926
  function c(f) {
15944
15927
  if (f) {
15945
- const u = St(f);
15928
+ const u = wt(f);
15946
15929
  return u && /* @__PURE__ */ s(u, {});
15947
15930
  }
15948
15931
  }
@@ -15958,7 +15941,7 @@ const dv = (e) => {
15958
15941
  icon: c(i)
15959
15942
  }
15960
15943
  );
15961
- }, { defaultAlgorithm: hv, defaultSeed: gv } = Xe, fi = hv(gv), yv = (e) => {
15944
+ }, { defaultAlgorithm: hv, defaultSeed: gv } = Qe, fi = hv(gv), yv = (e) => {
15962
15945
  const { ooui: t, responsiveBehaviour: n = !1 } = e;
15963
15946
  return /* @__PURE__ */ s(vv, { autoplay: t.autoPlay, dots: !0, autoplaySpeed: 5e3, children: t.items.map((r, o) => /* @__PURE__ */ s(
15964
15947
  rs,
@@ -15968,7 +15951,7 @@ const dv = (e) => {
15968
15951
  },
15969
15952
  o
15970
15953
  )) });
15971
- }, vv = gt(Gl)`
15954
+ }, vv = gt(Yl)`
15972
15955
  .slick-dots li button {
15973
15956
  background-color: ${fi.colorPrimary};
15974
15957
  }
@@ -16111,7 +16094,7 @@ function Tv(e, t) {
16111
16094
  context: l
16112
16095
  });
16113
16096
  if (P.type === "ir.actions.wizard") {
16114
- wt("Action type not supported");
16097
+ bt("Action type not supported");
16115
16098
  return;
16116
16099
  }
16117
16100
  const [E, H] = T.split(","), V = parseInt(H), $ = P.context, L = Zt({
@@ -16383,7 +16366,7 @@ function Tv(e, t) {
16383
16366
  b({
16384
16367
  title: F,
16385
16368
  content: /* @__PURE__ */ s(
16386
- Dl,
16369
+ El,
16387
16370
  {
16388
16371
  action_id: H,
16389
16372
  action_type: V,
@@ -16411,7 +16394,7 @@ function Tv(e, t) {
16411
16394
  }
16412
16395
  }
16413
16396
  return /* @__PURE__ */ s(
16414
- Yu,
16397
+ Wu,
16415
16398
  {
16416
16399
  openShortcut: C,
16417
16400
  openAction: R,
@@ -16427,7 +16410,7 @@ function Tv(e, t) {
16427
16410
  o(T);
16428
16411
  },
16429
16412
  children: /* @__PURE__ */ s(
16430
- qu,
16413
+ Ku,
16431
16414
  {
16432
16415
  ref: m,
16433
16416
  globalValues: i,
@@ -16437,7 +16420,7 @@ function Tv(e, t) {
16437
16420
  }
16438
16421
  );
16439
16422
  }
16440
- const _b = _t(Tv), { useToken: Iv } = Xe;
16423
+ const _b = _t(Tv), { useToken: Iv } = Qe;
16441
16424
  function Fv(e) {
16442
16425
  const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: a } = e, { token: i } = Iv(), l = o ? i.colorBgContainer : i.colorPrimaryBg;
16443
16426
  return /* @__PURE__ */ N(
@@ -16545,7 +16528,7 @@ function Ob() {
16545
16528
  ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ s(_v, { tab: r }, r.key))) || null;
16546
16529
  return /* @__PURE__ */ s(oe, { children: n });
16547
16530
  }
16548
- const { useToken: Rv } = Xe, Eb = (e) => {
16531
+ const { useToken: Rv } = Qe, Eb = (e) => {
16549
16532
  const {
16550
16533
  onRetrieveShortcuts: t,
16551
16534
  onCheckIsFavourite: n,
@@ -16647,7 +16630,7 @@ const { useToken: Rv } = Xe, Eb = (e) => {
16647
16630
  y
16648
16631
  ]);
16649
16632
  return /* @__PURE__ */ s(
16650
- Ec,
16633
+ Oc,
16651
16634
  {
16652
16635
  ref: m,
16653
16636
  isFavourite: i,
@@ -16673,22 +16656,22 @@ const { useToken: Rv } = Xe, Eb = (e) => {
16673
16656
  };
16674
16657
  export {
16675
16658
  xy as ActionBar,
16676
- Dl as ActionView,
16659
+ El as ActionView,
16677
16660
  pv as Alert,
16678
16661
  rv as ArrowStepsField,
16679
16662
  yy as Binary,
16680
- kd as Boolean,
16663
+ Pd as Boolean,
16681
16664
  No as Button,
16682
- hd as ButtonGroup,
16665
+ pd as ButtonGroup,
16683
16666
  yv as Carousel,
16684
16667
  Wi as Char,
16685
16668
  ov as CodeEditor,
16686
16669
  bv as ColorPicker,
16687
16670
  fv as CommentsTimelineField,
16688
16671
  na as ConfigContext,
16689
- mu as ConfigContextProvider,
16672
+ fu as ConfigContextProvider,
16690
16673
  M as ConnectionProvider,
16691
- qu as ContentRootProvider,
16674
+ Ku as ContentRootProvider,
16692
16675
  Ob as CurrentTabContent,
16693
16676
  Yy as Dashboard,
16694
16677
  Hy as DashboardGrid,
@@ -16703,11 +16686,11 @@ export {
16703
16686
  jg as FloatTime,
16704
16687
  Ln as Form,
16705
16688
  Hn as FormModal,
16706
- fl as GraphCard,
16707
- yu as GraphIndicator,
16708
- Fl as Group,
16689
+ ul as GraphCard,
16690
+ gu as GraphIndicator,
16691
+ Il as Group,
16709
16692
  mv as HTMLPreview,
16710
- $d as Image,
16693
+ Md as Image,
16711
16694
  Xn as Integer,
16712
16695
  Vr as Label,
16713
16696
  pg as Many2one,
@@ -16715,13 +16698,13 @@ export {
16715
16698
  Gy as MultiCheckbox,
16716
16699
  Gg as Notebook,
16717
16700
  Lg as One2many,
16718
- af as ProgressBar,
16701
+ sf as ProgressBar,
16719
16702
  Jy as Radio,
16720
16703
  py as Reference,
16721
16704
  _b as RootView,
16722
16705
  Yr as SearchFilter,
16723
16706
  os as SearchModal,
16724
- cl as SearchTree,
16707
+ ll as SearchTree,
16725
16708
  qi as Selection,
16726
16709
  Jg as Separator,
16727
16710
  So as Spinner,
@@ -16729,14 +16712,14 @@ export {
16729
16712
  Xy as Switch,
16730
16713
  Fv as Tab,
16731
16714
  Rb as TabSelector,
16732
- yf as Tag,
16715
+ gf as Tag,
16733
16716
  Kh as Tags,
16734
16717
  qg as Text,
16735
16718
  fy as Time,
16736
16719
  cr as Tree,
16737
16720
  Iy as Url,
16738
16721
  kb as dayjs,
16739
- St as iconMapper,
16722
+ wt as iconMapper,
16740
16723
  zt as showConfirmDialog
16741
16724
  };
16742
16725
  //# sourceMappingURL=react-ooui.es.js.map