@gisce/react-ooui 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,12 +2,12 @@ var oi = Object.defineProperty;
2
2
  var ii = (e, t, n) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ur = (e, t, n) => (ii(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsxs as D, jsx as r, Fragment as ee } from "react/jsx-runtime";
5
- import rt, { useContext as oe, useState as v, useEffect as he, useRef as le, createContext as si, forwardRef as ht, useImperativeHandle as pt, useCallback as de, Fragment as Lr, useMemo as Ie, memo as $n } from "react";
6
- import { Tooltip as wt, theme as Be, Typography as kt, Form as lt, Row as Re, Col as pe, Modal as Je, Button as Pe, Dropdown as ai, Menu as fr, Spin as $e, Divider as ln, Space as Ge, Input as it, Select as Tt, Checkbox as Bt, Alert as Ze, Timeline as _n, Statistic as li, Card as Hn, Tag as $r, message as Tn, DatePicker as Bn, TimePicker as ci, InputNumber as Hr, Progress as di, Avatar as Br, Pagination as ui, Badge as fi, Tabs as Kr, Radio as mr, Switch as mi, Steps as hr, Layout as hi } from "antd";
7
- import { Label as Pt, Field as Vn, Tree as Wr, Reference as pi, Selection as Kn, Many2one as jr, Boolean as gi, Container as yi, parseContext as xt, Form as Ur, Integer as An, SearchFieldTypes as yt, SearchFilter as wi, parseContextFields as vi, parseDomainFields as bi, transformDomainForChildWidget as Gr, graphProcessor as Yr, parseGraph as Wn, graphFieldUtils as Ci } from "@gisce/ooui";
5
+ import rt, { useContext as oe, useState as v, useEffect as he, useRef as le, createContext as si, forwardRef as ht, useImperativeHandle as pt, useCallback as de, Fragment as Lr, useMemo as Oe, memo as Hn } from "react";
6
+ import { Tooltip as wt, theme as Be, Typography as kt, Form as ct, Row as Re, Col as pe, Modal as Xe, Button as Pe, Dropdown as ai, Menu as fr, Spin as $e, Divider as cn, Space as Ge, Input as it, Select as Tt, Checkbox as Bt, Alert as Je, Timeline as Vn, Statistic as li, Card as Bn, Tag as $r, message as Fn, DatePicker as Kn, TimePicker as ci, InputNumber as Hr, Progress as di, Avatar as Br, Pagination as ui, Badge as fi, Tabs as Kr, Radio as mr, Switch as mi, Steps as hr, Layout as hi } from "antd";
7
+ import { Label as Pt, Field as An, Tree as Wr, Reference as pi, Selection as Wn, Many2one as jr, Boolean as gi, Container as yi, parseContext as xt, Form as Ur, Integer as Dn, SearchFieldTypes as yt, SearchFilter as wi, parseContextFields as vi, parseDomainFields as bi, transformDomainForChildWidget as Gr, graphProcessor as Yr, parseGraph as jn, graphFieldUtils as Ci } from "@gisce/ooui";
8
8
  import * as pr from "@ant-design/icons";
9
- import qr, { QuestionCircleOutlined as zr, ExclamationCircleOutlined as vt, LoadingOutlined as gt, DownOutlined as cn, WarningOutlined as Jr, CloseOutlined as Ut, CheckOutlined as dn, TranslationOutlined as Xr, FolderOpenOutlined as jn, DownloadOutlined as Un, ClearOutlined as Gn, StarFilled as xi, StarOutlined as Si, UpOutlined as Ti, SearchOutlined as Yn, ThunderboltOutlined as qn, PrinterOutlined as zn, EnterOutlined as Jn, PlusSquareOutlined as Fi, MinusSquareOutlined as Oi, FileAddOutlined as un, AlignLeftOutlined as Ii, ApiOutlined as Ri, DeleteOutlined as Xn, LeftOutlined as Qr, RightOutlined as Zr, EyeOutlined as _i, FormOutlined as Kt, TableOutlined as Qn, AreaChartOutlined as Vi, CalendarOutlined as Ai, LinkOutlined as gr, SaveOutlined as Di, CopyOutlined as Zn, InfoCircleOutlined as eo, ReloadOutlined as fn, EditOutlined as to, PlusOutlined as Ei, FilterOutlined as no, CloseCircleFilled as ki, BorderOuterOutlined as Pi, SettingOutlined as Mi, ExportOutlined as Ni } from "@ant-design/icons";
10
- import { Interweave as er } from "interweave";
9
+ import qr, { QuestionCircleOutlined as zr, ExclamationCircleOutlined as vt, LoadingOutlined as gt, DownOutlined as dn, WarningOutlined as Jr, CloseOutlined as Gt, CheckOutlined as un, TranslationOutlined as Xr, FolderOpenOutlined as Un, DownloadOutlined as Gn, ClearOutlined as Yn, StarFilled as xi, StarOutlined as Si, UpOutlined as Ti, SearchOutlined as qn, ThunderboltOutlined as zn, PrinterOutlined as Jn, EnterOutlined as Xn, PlusSquareOutlined as Fi, MinusSquareOutlined as Ii, FileAddOutlined as fn, AlignLeftOutlined as Oi, ApiOutlined as Ri, DeleteOutlined as Qn, LeftOutlined as Qr, RightOutlined as Zr, EyeOutlined as _i, FormOutlined as Kt, TableOutlined as Zn, AreaChartOutlined as Vi, CalendarOutlined as Ai, LinkOutlined as gr, SaveOutlined as Di, CopyOutlined as er, InfoCircleOutlined as eo, ReloadOutlined as mn, EditOutlined as to, PlusOutlined as Ei, FilterOutlined as no, CloseCircleFilled as ki, BorderOuterOutlined as Pi, SettingOutlined as Mi, ExportOutlined as Ni } from "@ant-design/icons";
10
+ import { Interweave as Wt } from "interweave";
11
11
  import { useLocale as we, Many2OneSuffix as Li, Many2OneSuffixModal as yr, FieldSet as $i, ExportModal as Hi, Dropdown as ro, DropdownButton as Vt, FormigaConfigProvider as Bi, mergeStrings as Ki, HTMLPreview as Wi, FavouriteButton as ji } from "@gisce/react-formiga-components";
12
12
  import * as wr from "@tabler/icons-react";
13
13
  import Ui from "antd/lib/input/TextArea";
@@ -15,7 +15,7 @@ import Mt from "styled-components";
15
15
  import tr from "react-measure";
16
16
  import Gi from "lodash/debounce";
17
17
  import { nanoid as nr } from "nanoid";
18
- import Dn from "antd/lib/typography/Title";
18
+ import En from "antd/lib/typography/Title";
19
19
  import Ft from "use-deep-compare-effect";
20
20
  import { Line as Yi, Column as qi, Pie as zi } from "@ant-design/plots";
21
21
  import et from "dayjs";
@@ -46,7 +46,7 @@ const { Text: vs, Title: bs } = kt, { useToken: Cs } = Be, xs = {
46
46
  left: "justify-start",
47
47
  center: "justify-center",
48
48
  right: "justify-end"
49
- }, mn = (e) => {
49
+ }, hn = (e) => {
50
50
  const { ooui: t, align: n, responsiveBehaviour: i } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: d } = t, f = a !== null && o.length > 1 ? o + " :" : o, m = n || (a ? i ? "left" : "right" : "left"), { token: p } = Cs(), h = l === void 0 ? vs : bs;
51
51
  return /* @__PURE__ */ D(
52
52
  "div",
@@ -62,7 +62,7 @@ const { Text: vs, Title: bs } = kt, { useToken: Cs } = Be, xs = {
62
62
  }
63
63
  }
64
64
  ) }),
65
- /* @__PURE__ */ r("span", { className: "pr-2", children: /* @__PURE__ */ r(h, { level: l, type: d, children: /* @__PURE__ */ r(er, { content: f }) }) })
65
+ /* @__PURE__ */ r("span", { className: "pr-2", children: /* @__PURE__ */ r(h, { level: l, type: d, children: /* @__PURE__ */ r(Wt, { content: f }) }) })
66
66
  ]
67
67
  }
68
68
  );
@@ -86,7 +86,7 @@ function be({
86
86
  validator: d
87
87
  }
88
88
  ] : void 0, h = () => /* @__PURE__ */ r(
89
- lt.Item,
89
+ ct.Item,
90
90
  {
91
91
  className: "mb-0",
92
92
  name: u,
@@ -99,7 +99,7 @@ function be({
99
99
  if (!o)
100
100
  return h();
101
101
  const y = /* @__PURE__ */ r(
102
- mn,
102
+ hn,
103
103
  {
104
104
  ooui: new Pt({
105
105
  name: u + "_label",
@@ -118,7 +118,7 @@ function be({
118
118
  h()
119
119
  ] }))();
120
120
  }
121
- const { confirm: Ss } = Je, Gt = ({
121
+ const { confirm: Ss } = Xe, Yt = ({
122
122
  onOk: e,
123
123
  confirmMessage: t,
124
124
  t: n
@@ -264,7 +264,7 @@ const { confirm: Ss } = Je, Gt = ({
264
264
  STOCK_CLEAR: "CloseSquare",
265
265
  STOCK_UNINDENT: "AlignLeft",
266
266
  STOCK_PREFERENCES: "Setting"
267
- }, ct = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), vr.hasOwnProperty(e) ? br(vr[e], t) : br(e, t));
267
+ }, st = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), vr.hasOwnProperty(e) ? br(vr[e], t) : br(e, t));
268
268
  function Fs(e) {
269
269
  return `${e.split("-").map(
270
270
  (t) => t.replace(
@@ -312,7 +312,7 @@ const io = (e) => {
312
312
  }
313
313
  function g() {
314
314
  if (a) {
315
- Gt({
315
+ Yt({
316
316
  confirmMessage: a,
317
317
  t: h,
318
318
  onOk: () => {
@@ -327,7 +327,7 @@ const io = (e) => {
327
327
  if (m)
328
328
  return /* @__PURE__ */ r(gt, {});
329
329
  if (l) {
330
- const b = ct(l);
330
+ const b = st(l);
331
331
  return b && /* @__PURE__ */ r(b, {});
332
332
  }
333
333
  }
@@ -344,7 +344,7 @@ const io = (e) => {
344
344
  children: i
345
345
  }
346
346
  ) });
347
- }, Os = (e) => {
347
+ }, Is = (e) => {
348
348
  const { ooui: t } = e, { defaultButton: n, secondaryButtons: i } = t, {
349
349
  id: o,
350
350
  caption: s,
@@ -360,8 +360,8 @@ const io = (e) => {
360
360
  if (y)
361
361
  return /* @__PURE__ */ r(gt, {});
362
362
  if (u) {
363
- const O = ct(u);
364
- return O && /* @__PURE__ */ r(O, {});
363
+ const I = st(u);
364
+ return I && /* @__PURE__ */ r(I, {});
365
365
  }
366
366
  }
367
367
  async function x() {
@@ -369,7 +369,7 @@ const io = (e) => {
369
369
  }
370
370
  function S() {
371
371
  if (d) {
372
- Gt({
372
+ Yt({
373
373
  confirmMessage: d,
374
374
  t: w,
375
375
  onOk: () => {
@@ -383,15 +383,15 @@ const io = (e) => {
383
383
  if (t.buttons.length === 0)
384
384
  return null;
385
385
  if (t.buttons.length > 1)
386
- return /* @__PURE__ */ r(be, { ooui: new Vn({ ooui: t }), children: /* @__PURE__ */ D(
386
+ return /* @__PURE__ */ r(be, { ooui: new An({ ooui: t }), children: /* @__PURE__ */ D(
387
387
  ai.Button,
388
388
  {
389
389
  disabled: !a || m,
390
390
  onClick: S,
391
- icon: /* @__PURE__ */ r(cn, {}),
391
+ icon: /* @__PURE__ */ r(dn, {}),
392
392
  type: f ? "primary" : void 0,
393
393
  overlay: /* @__PURE__ */ r(
394
- Is,
394
+ Os,
395
395
  {
396
396
  ooui: i,
397
397
  executeButtonAction: h
@@ -405,7 +405,7 @@ const io = (e) => {
405
405
  ) });
406
406
  if (n)
407
407
  return /* @__PURE__ */ r(io, { ooui: n });
408
- }, Is = (e) => {
408
+ }, Os = (e) => {
409
409
  const { t } = we(), { ooui: n, executeButtonAction: i } = e;
410
410
  if (!n)
411
411
  return null;
@@ -426,7 +426,7 @@ const io = (e) => {
426
426
  }
427
427
  function b() {
428
428
  if (f) {
429
- Gt({
429
+ Yt({
430
430
  confirmMessage: f,
431
431
  t,
432
432
  onOk: () => {
@@ -441,7 +441,7 @@ const io = (e) => {
441
441
  if (y)
442
442
  return /* @__PURE__ */ r(gt, {});
443
443
  if (c) {
444
- const S = ct(c);
444
+ const S = st(c);
445
445
  return S && /* @__PURE__ */ r(S, {});
446
446
  }
447
447
  }
@@ -466,7 +466,7 @@ function Cr() {
466
466
  height: t
467
467
  };
468
468
  }
469
- function hn() {
469
+ function pn() {
470
470
  const [e, t] = v(
471
471
  Cr()
472
472
  );
@@ -512,7 +512,7 @@ const so = (e) => {
512
512
  message: t,
513
513
  title: i
514
514
  };
515
- }, { error: _s, warning: Vs } = Je, Qe = (e) => {
515
+ }, { error: _s, warning: Vs } = Xe, Ze = (e) => {
516
516
  const { message: t, type: n, title: i } = so(e);
517
517
  (n === "error" ? _s : Vs)({
518
518
  title: i,
@@ -521,7 +521,7 @@ const so = (e) => {
521
521
  content: t
522
522
  });
523
523
  }, ao = (e) => {
524
- const { visible: t, onCloseModal: n, model: i, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = hn(), { t: d } = we(), [u, f] = v([]), [c, m] = v(!1), [p, h] = v(!1), [y, g] = v({}), w = le();
524
+ const { visible: t, onCloseModal: n, model: i, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = pn(), { t: d } = we(), [u, f] = v([]), [c, m] = v(!1), [p, h] = v(!1), [y, g] = v({}), w = le();
525
525
  he(() => {
526
526
  t ? b() : g({});
527
527
  }, [t]);
@@ -531,7 +531,7 @@ const so = (e) => {
531
531
  const F = await x();
532
532
  await S(F);
533
533
  } catch (F) {
534
- Qe(F);
534
+ Ze(F);
535
535
  }
536
536
  m(!1);
537
537
  }
@@ -559,7 +559,7 @@ const so = (e) => {
559
559
  }
560
560
  w.current = T, g(T);
561
561
  }
562
- function O() {
562
+ function I() {
563
563
  return u.map((F, T) => /* @__PURE__ */ D(Re, { style: { paddingBottom: 20 }, children: [
564
564
  /* @__PURE__ */ r(pe, { flex: "8rem", style: { paddingRight: 10 }, children: F.name }),
565
565
  /* @__PURE__ */ r(pe, { flex: "auto", children: /* @__PURE__ */ r(
@@ -592,19 +592,19 @@ const so = (e) => {
592
592
  fields: {}
593
593
  });
594
594
  } catch (F) {
595
- Qe(F);
595
+ Ze(F);
596
596
  }
597
597
  h(!1), a();
598
598
  }
599
599
  function V() {
600
600
  return c ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ D(ee, { children: [
601
- O(),
602
- /* @__PURE__ */ r(ln, {}),
601
+ I(),
602
+ /* @__PURE__ */ r(cn, {}),
603
603
  /* @__PURE__ */ r(Re, { justify: "end", children: /* @__PURE__ */ D(Ge, { children: [
604
604
  /* @__PURE__ */ r(
605
605
  Pe,
606
606
  {
607
- icon: /* @__PURE__ */ r(Ut, {}),
607
+ icon: /* @__PURE__ */ r(Gt, {}),
608
608
  onClick: n,
609
609
  disabled: p,
610
610
  children: d("cancel")
@@ -613,7 +613,7 @@ const so = (e) => {
613
613
  /* @__PURE__ */ r(
614
614
  Pe,
615
615
  {
616
- icon: p ? /* @__PURE__ */ r(gt, {}) : /* @__PURE__ */ r(dn, {}),
616
+ icon: p ? /* @__PURE__ */ r(gt, {}) : /* @__PURE__ */ r(un, {}),
617
617
  disabled: p,
618
618
  onClick: _,
619
619
  style: { marginLeft: 15 },
@@ -625,7 +625,7 @@ const so = (e) => {
625
625
  ] });
626
626
  }
627
627
  return /* @__PURE__ */ r(
628
- Je,
628
+ Xe,
629
629
  {
630
630
  title: d("translate"),
631
631
  centered: !0,
@@ -644,7 +644,7 @@ function ze(e) {
644
644
  const { tooltip: t, ...n } = e;
645
645
  return /* @__PURE__ */ r(wt, { title: t, children: /* @__PURE__ */ r(Pe, { ...n }) });
646
646
  }
647
- const { info: As } = Je, mt = (e) => {
647
+ const { info: As } = Xe, mt = (e) => {
648
648
  As({
649
649
  title: "",
650
650
  centered: !0,
@@ -805,7 +805,7 @@ const fo = (e) => new Promise((t, n) => {
805
805
  const i = new FileReader();
806
806
  i.readAsDataURL(e), i.onload = (o) => t(o.target.result.split(",")[1]), i.onerror = (o) => n(o);
807
807
  });
808
- function pn(e, t) {
808
+ function gn(e, t) {
809
809
  const n = atob(e), i = new Array(n.length);
810
810
  for (let l = 0; l < n.length; l++)
811
811
  i[l] = n.charCodeAt(l);
@@ -813,7 +813,7 @@ function pn(e, t) {
813
813
  window.open(a);
814
814
  }
815
815
  const Us = (e) => {
816
- const { ooui: t } = e, { required: n, id: i } = t, o = ct(i);
816
+ const { ooui: t } = e, { required: n, id: i } = t, o = st(i);
817
817
  return o ? /* @__PURE__ */ r(o, {}) : /* @__PURE__ */ r(be, { required: n, ...e, children: /* @__PURE__ */ r(Gs, { ooui: t }) });
818
818
  }, Gs = (e) => {
819
819
  const { ooui: t, value: n, onChange: i } = e, { readOnly: o } = t, s = le(null), { t: a } = we(), l = (c) => {
@@ -857,7 +857,7 @@ const Us = (e) => {
857
857
  ze,
858
858
  {
859
859
  tooltip: a("uploadNewImage"),
860
- icon: /* @__PURE__ */ r(jn, {}),
860
+ icon: /* @__PURE__ */ r(Un, {}),
861
861
  disabled: o,
862
862
  onClick: () => {
863
863
  s.current.click();
@@ -870,7 +870,7 @@ const Us = (e) => {
870
870
  tooltip: a("download"),
871
871
  disabled: !n,
872
872
  onClick: d,
873
- icon: /* @__PURE__ */ r(Un, {})
873
+ icon: /* @__PURE__ */ r(Gn, {})
874
874
  }
875
875
  ),
876
876
  /* @__PURE__ */ r(
@@ -879,7 +879,7 @@ const Us = (e) => {
879
879
  tooltip: a("clear"),
880
880
  disabled: o || !n,
881
881
  onClick: f,
882
- icon: /* @__PURE__ */ r(Gn, {})
882
+ icon: /* @__PURE__ */ r(Yn, {})
883
883
  }
884
884
  )
885
885
  ] }) })
@@ -941,7 +941,7 @@ const Js = (e, t, n) => e.columns.map((o) => {
941
941
  o[s] = i[s];
942
942
  else {
943
943
  const a = e.findById(s);
944
- a instanceof pi || a instanceof Kn ? o[s] = i[s] : a instanceof jr ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
944
+ a instanceof pi || a instanceof Wn ? o[s] = i[s] : a instanceof jr ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
945
945
  model: a.relation,
946
946
  id: i[s][0],
947
947
  value: i[s][1]
@@ -949,7 +949,7 @@ const Js = (e, t, n) => e.columns.map((o) => {
949
949
  }
950
950
  }), o;
951
951
  });
952
- function tn(e) {
952
+ function nn(e) {
953
953
  return ho(e, "colors");
954
954
  }
955
955
  function Sr(e) {
@@ -1010,7 +1010,7 @@ const rr = async (e) => {
1010
1010
  colors: g
1011
1011
  }
1012
1012
  });
1013
- c = w[0], m = tn(w[1]);
1013
+ c = w[0], m = nn(w[1]);
1014
1014
  } else
1015
1015
  c = await P.getHandler().readObjects({
1016
1016
  model: n,
@@ -1084,9 +1084,9 @@ const rr = async (e) => {
1084
1084
  a(!1);
1085
1085
  }
1086
1086
  };
1087
- return s ? /* @__PURE__ */ r($e, {}) : l ? /* @__PURE__ */ r(Ze, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ r(be, { type: "array", ...e, children: /* @__PURE__ */ r(na, { ooui: t, views: u }) });
1087
+ return s ? /* @__PURE__ */ r($e, {}) : l ? /* @__PURE__ */ r(Je, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ r(be, { type: "array", ...e, children: /* @__PURE__ */ r(na, { ooui: t, views: u }) });
1088
1088
  }, na = (e) => {
1089
- const { value: t, views: n, ooui: i, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = v(!1), [d, u] = v(), [f, c] = v(!1), [m, p] = v(), { relation: h, context: y, readOnly: g, summaryField: w, titleField: b } = i, x = s.filter((F) => F.values), S = oe(He), { getContext: O } = S || {};
1089
+ const { value: t, views: n, ooui: i, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = v(!1), [d, u] = v(), [f, c] = v(!1), [m, p] = v(), { relation: h, context: y, readOnly: g, summaryField: w, titleField: b } = i, x = s.filter((F) => F.values), S = oe(He), { getContext: I } = S || {};
1090
1090
  Ft(() => {
1091
1091
  V();
1092
1092
  }, [s]);
@@ -1108,7 +1108,7 @@ const rr = async (e) => {
1108
1108
  },
1109
1109
  model: h,
1110
1110
  items: s,
1111
- context: { ...O == null ? void 0 : O(), ...y },
1111
+ context: { ...I == null ? void 0 : I(), ...y },
1112
1112
  currentView: "form"
1113
1113
  });
1114
1114
  _(F);
@@ -1118,10 +1118,10 @@ const rr = async (e) => {
1118
1118
  l(!1);
1119
1119
  }
1120
1120
  }
1121
- return d ? /* @__PURE__ */ r(Ze, { className: "mt-10", message: d, type: "error", banner: !0 }) : a ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ D(ee, { children: [
1122
- /* @__PURE__ */ r(_n, { style: { padding: "1rem" }, children: x.map((F, T) => {
1121
+ return d ? /* @__PURE__ */ r(Je, { className: "mt-10", message: d, type: "error", banner: !0 }) : a ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ D(ee, { children: [
1122
+ /* @__PURE__ */ r(Vn, { style: { padding: "1rem" }, children: x.map((F, T) => {
1123
1123
  var R, C;
1124
- return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ D(_n.Item, { children: [
1124
+ return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ D(Vn.Item, { children: [
1125
1125
  /* @__PURE__ */ r(
1126
1126
  "div",
1127
1127
  {
@@ -1129,7 +1129,7 @@ const rr = async (e) => {
1129
1129
  onClick: () => {
1130
1130
  p(
1131
1131
  x.find(
1132
- (I) => F.id === I.id
1132
+ (O) => F.id === O.id
1133
1133
  )
1134
1134
  ), c(!0);
1135
1135
  },
@@ -1144,7 +1144,7 @@ const rr = async (e) => {
1144
1144
  onClick: () => {
1145
1145
  p(
1146
1146
  x.find(
1147
- (I) => F.id === I.id
1147
+ (O) => F.id === O.id
1148
1148
  )
1149
1149
  ), c(!0);
1150
1150
  },
@@ -1154,7 +1154,7 @@ const rr = async (e) => {
1154
1154
  ] }, T) }, T);
1155
1155
  }) }),
1156
1156
  /* @__PURE__ */ r(
1157
- zt,
1157
+ Jt,
1158
1158
  {
1159
1159
  formView: n.get("form"),
1160
1160
  model: h,
@@ -1165,7 +1165,7 @@ const rr = async (e) => {
1165
1165
  onSubmitSucceed: () => {
1166
1166
  c(!1);
1167
1167
  },
1168
- parentContext: { ...O == null ? void 0 : O(), ...y },
1168
+ parentContext: { ...I == null ? void 0 : I(), ...y },
1169
1169
  onCancel: () => {
1170
1170
  c(!1);
1171
1171
  },
@@ -1190,7 +1190,7 @@ const rr = async (e) => {
1190
1190
  style: { color: t.colorPrimaryBg }
1191
1191
  }
1192
1192
  ) })
1193
- ] }), s = ct(n.icon);
1193
+ ] }), s = st(n.icon);
1194
1194
  let a = i;
1195
1195
  n.selectionValues.size ? a = n.selectionValues.get(i) : Array.isArray(i) && (a = i[1]);
1196
1196
  const l = /* @__PURE__ */ r(
@@ -1202,7 +1202,7 @@ const rr = async (e) => {
1202
1202
  value: a
1203
1203
  }
1204
1204
  );
1205
- return n.card ? /* @__PURE__ */ r(Hn, { children: l }) : l;
1205
+ return n.card ? /* @__PURE__ */ r(Bn, { children: l }) : l;
1206
1206
  }, sa = (e, t) => {
1207
1207
  if (!t)
1208
1208
  return e;
@@ -1217,7 +1217,7 @@ const rr = async (e) => {
1217
1217
  } else
1218
1218
  n[i] = e[i];
1219
1219
  }), n;
1220
- }, Rt = (e, t) => sa(e, t), Fn = ({
1220
+ }, Rt = (e, t) => sa(e, t), In = ({
1221
1221
  source: e,
1222
1222
  target: t,
1223
1223
  fields: n
@@ -1321,7 +1321,7 @@ const Nt = ({
1321
1321
  const o = e[i];
1322
1322
  t[i] && t[i].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? n[i] = o[0] : n[i] = o;
1323
1323
  }), n;
1324
- }, Wt = (e) => {
1324
+ }, jt = (e) => {
1325
1325
  let t = 0;
1326
1326
  e = e.toString().padEnd(10, "0");
1327
1327
  for (let i = 0; i < e.length; i++)
@@ -1340,7 +1340,7 @@ const Nt = ({
1340
1340
  let i = n, o = n;
1341
1341
  if (t.selectionValues.size ? i = t.selectionValues.get(n) : Array.isArray(n) && (o = n[0], i = n[1]), !n)
1342
1342
  return null;
1343
- const s = t.colors === "auto" ? Wt(o) : t.colors[o] || Wt(o);
1343
+ const s = t.colors === "auto" ? jt(o) : t.colors[o] || jt(o);
1344
1344
  return /* @__PURE__ */ r(or, { color: s, children: i });
1345
1345
  }, or = (e) => {
1346
1346
  let { color: t } = e, n = {};
@@ -1404,10 +1404,10 @@ const Nt = ({
1404
1404
  _.filter((T) => !F.includes(T)).forEach((T) => {
1405
1405
  V.push({ id: T, operation: "pendingLink" });
1406
1406
  }), b(V);
1407
- }, O = (_) => {
1408
- const { label: V, closable: F, onClose: T } = _, R = (I) => {
1409
- I.preventDefault(), I.stopPropagation();
1410
- }, C = Wt(V);
1407
+ }, I = (_) => {
1408
+ const { label: V, closable: F, onClose: T } = _, R = (O) => {
1409
+ O.preventDefault(), O.stopPropagation();
1410
+ }, C = jt(V);
1411
1411
  return /* @__PURE__ */ r(
1412
1412
  or,
1413
1413
  {
@@ -1420,12 +1420,12 @@ const Nt = ({
1420
1420
  }
1421
1421
  );
1422
1422
  };
1423
- return d ? /* @__PURE__ */ r(Ze, { className: "mt-10", message: d, type: "error", banner: !0 }) : /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { className: "flex flex-row", children: /* @__PURE__ */ r(
1423
+ return d ? /* @__PURE__ */ r(Je, { className: "mt-10", message: d, type: "error", banner: !0 }) : /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { className: "flex flex-row", children: /* @__PURE__ */ r(
1424
1424
  Tt,
1425
1425
  {
1426
1426
  mode: "multiple",
1427
1427
  value: a.length ? s : [],
1428
- tagRender: O,
1428
+ tagRender: I,
1429
1429
  bordered: !h,
1430
1430
  disabled: h,
1431
1431
  options: a,
@@ -1437,15 +1437,15 @@ const Nt = ({
1437
1437
  }, pa = (e) => {
1438
1438
  switch (e) {
1439
1439
  case "form":
1440
- return qt;
1440
+ return zt;
1441
1441
  case "tree":
1442
- return Jt;
1442
+ return Xt;
1443
1443
  case "notebook":
1444
1444
  return vc;
1445
1445
  case "group":
1446
1446
  return ko;
1447
1447
  case "label":
1448
- return mn;
1448
+ return hn;
1449
1449
  case "char":
1450
1450
  return lo;
1451
1451
  case "text":
@@ -1453,7 +1453,7 @@ const Nt = ({
1453
1453
  case "button":
1454
1454
  return io;
1455
1455
  case "buttonGroup":
1456
- return Os;
1456
+ return Is;
1457
1457
  case "selection":
1458
1458
  return co;
1459
1459
  case "many2one":
@@ -1461,7 +1461,7 @@ const Nt = ({
1461
1461
  case "boolean":
1462
1462
  return Bs;
1463
1463
  case "integer":
1464
- return nn;
1464
+ return rn;
1465
1465
  case "float":
1466
1466
  return wo;
1467
1467
  case "progressbar":
@@ -1516,6 +1516,8 @@ const Nt = ({
1516
1516
  return zd;
1517
1517
  case "html_preview":
1518
1518
  return Jd;
1519
+ case "alert":
1520
+ return Xd;
1519
1521
  default:
1520
1522
  return;
1521
1523
  }
@@ -1563,7 +1565,7 @@ const Nt = ({
1563
1565
  for (let s = 0; s < e; s++)
1564
1566
  o += s % 2 ? n : i, s + 1 < e && (o += " ");
1565
1567
  return o;
1566
- }, xa = (e) => e.map((n) => n.reduce((i, o) => i + o.colspan, 0)).reduce((n, i) => Math.max(n, i)), En = (e) => {
1568
+ }, xa = (e) => e.map((n) => n.reduce((i, o) => i + o.colspan, 0)).reduce((n, i) => Math.max(n, i)), kn = (e) => {
1567
1569
  const { container: t, responsiveBehaviour: n } = e, { rows: i } = t;
1568
1570
  let { columns: o } = t;
1569
1571
  const s = xa(i);
@@ -1601,7 +1603,7 @@ const Nt = ({
1601
1603
  minHeight: 0,
1602
1604
  minWidth: 0
1603
1605
  }, children: d });
1604
- }, { confirm: Sa } = Je, Yt = ({
1606
+ }, { confirm: Sa } = Xe, qt = ({
1605
1607
  onOk: e,
1606
1608
  onCancel: t,
1607
1609
  t: n
@@ -1616,14 +1618,14 @@ const Nt = ({
1616
1618
  onCancel: t,
1617
1619
  cancelText: n("cancel")
1618
1620
  });
1619
- }, { error: Ta } = Je, Or = (e) => {
1621
+ }, { error: Ta } = Xe, Ir = (e) => {
1620
1622
  Ta({
1621
1623
  title: e("formHasErrors"),
1622
1624
  icon: /* @__PURE__ */ r(vt, {}),
1623
1625
  centered: !0,
1624
1626
  content: e("fillRequiredFields")
1625
1627
  });
1626
- }, { warning: Fa } = Je, Oa = (e, t, n) => {
1628
+ }, { warning: Fa } = Xe, Ia = (e, t, n) => {
1627
1629
  Fa({
1628
1630
  title: e,
1629
1631
  icon: /* @__PURE__ */ r(Jr, {}),
@@ -1631,7 +1633,7 @@ const Nt = ({
1631
1633
  content: t,
1632
1634
  onOk: n
1633
1635
  });
1634
- }, yo = rt.createContext(null), Ia = (e) => {
1636
+ }, yo = rt.createContext(null), Oa = (e) => {
1635
1637
  const { children: t, setTitle: n } = e;
1636
1638
  return /* @__PURE__ */ r(
1637
1639
  yo.Provider,
@@ -1666,12 +1668,12 @@ const Nt = ({
1666
1668
  totalItems: b,
1667
1669
  setTotalItems: x,
1668
1670
  setSelectedRowItems: S,
1669
- selectedRowItems: O,
1671
+ selectedRowItems: I,
1670
1672
  searchTreeNameSearch: _,
1671
1673
  setSearchTreeNameSearch: V,
1672
1674
  goToResourceId: F,
1673
1675
  limit: T
1674
- } = e, [R, C] = v(!1), [I, A] = v(!1), [N, j] = v(!1), [H, U] = v(!0), [k, Y] = v(!0), [q, Z] = v([]), [re, B] = v(!1), [E, K] = v([]), [$, ce] = v(!1), [X, te] = v(!0), [ve, z] = v(), [se, Se] = v({}), [Ee, ke] = v(
1676
+ } = e, [R, C] = v(!1), [O, A] = v(!1), [N, j] = v(!1), [H, U] = v(!0), [k, Y] = v(!0), [q, Z] = v([]), [re, B] = v(!1), [E, K] = v([]), [$, ce] = v(!1), [X, te] = v(!0), [ve, z] = v(), [se, Se] = v({}), [Ee, ke] = v(
1675
1677
  T !== void 0 ? T : St
1676
1678
  ), [Me, ue] = v(i);
1677
1679
  he(() => {
@@ -1705,7 +1707,7 @@ const Nt = ({
1705
1707
  availableViews: s,
1706
1708
  formIsSaving: R,
1707
1709
  setFormIsSaving: C,
1708
- formHasChanges: I,
1710
+ formHasChanges: O,
1709
1711
  setFormHasChanges: A,
1710
1712
  formRef: a,
1711
1713
  searchTreeRef: l,
@@ -1726,7 +1728,7 @@ const Nt = ({
1726
1728
  setTreeIsLoading: Y,
1727
1729
  attachments: q,
1728
1730
  setAttachments: Z,
1729
- selectedRowItems: O,
1731
+ selectedRowItems: I,
1730
1732
  setSelectedRowItems: S,
1731
1733
  duplicatingItem: re,
1732
1734
  setDuplicatingItem: B,
@@ -1786,7 +1788,7 @@ const Nt = ({
1786
1788
  children: t
1787
1789
  }
1788
1790
  );
1789
- }, Lt = rt.createContext(null), Ir = async (e) => {
1791
+ }, Lt = rt.createContext(null), Or = async (e) => {
1790
1792
  var t;
1791
1793
  for (let n = 0; n < e.length; n++)
1792
1794
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
@@ -1804,21 +1806,21 @@ const Nt = ({
1804
1806
  );
1805
1807
  async function g(V) {
1806
1808
  const { reportData: F, fields: T, values: R, context: C = {} } = V, {
1807
- context: I,
1809
+ context: O,
1808
1810
  model: A,
1809
1811
  datas: N = {},
1810
1812
  report_name: j,
1811
1813
  type: H
1812
1814
  } = F;
1813
1815
  if (H !== "ir.actions.report.xml") {
1814
- Qe(`${H} action not supported`);
1816
+ Ze(`${H} action not supported`);
1815
1817
  return;
1816
1818
  }
1817
- const { ids: U } = N || {}, k = U || [], Y = typeof I == "string" ? xt({
1818
- context: I,
1819
+ const { ids: U } = N || {}, k = U || [], Y = typeof O == "string" ? xt({
1820
+ context: O,
1819
1821
  fields: T,
1820
1822
  values: R
1821
- }) : I;
1823
+ }) : O;
1822
1824
  try {
1823
1825
  const q = await P.getHandler().createReport({
1824
1826
  model: A,
@@ -1831,7 +1833,7 @@ const Nt = ({
1831
1833
  w(q);
1832
1834
  }, 1e3);
1833
1835
  } catch (q) {
1834
- s.current = !1, clearInterval(o.current), Qe(q), l(!1);
1836
+ s.current = !1, clearInterval(o.current), Ze(q), l(!1);
1835
1837
  }
1836
1838
  }
1837
1839
  async function w(V) {
@@ -1842,10 +1844,10 @@ const Nt = ({
1842
1844
  }), F.state && s.current === !0) {
1843
1845
  s.current = !1, clearInterval(o.current), l(!1);
1844
1846
  const T = await Et(F.result);
1845
- pn(F.result, T.mime);
1847
+ gn(F.result, T.mime);
1846
1848
  }
1847
1849
  } catch (T) {
1848
- s.current = !1, clearInterval(o.current), l(!1), Qe(T.exception || T);
1850
+ s.current = !1, clearInterval(o.current), l(!1), Ze(T.exception || T);
1849
1851
  }
1850
1852
  }
1851
1853
  async function b({
@@ -1855,23 +1857,23 @@ const Nt = ({
1855
1857
  context: R,
1856
1858
  onRefreshParentValues: C
1857
1859
  }) {
1858
- const { type: I } = V;
1859
- if (f.current.push(C), I === "ir.actions.report.xml")
1860
+ const { type: O } = V;
1861
+ if (f.current.push(C), O === "ir.actions.report.xml")
1860
1862
  return await g({
1861
1863
  reportData: V,
1862
1864
  fields: F,
1863
1865
  values: T,
1864
1866
  context: R
1865
1867
  });
1866
- if (I === "ir.actions.act_window")
1868
+ if (O === "ir.actions.act_window")
1867
1869
  return await x({ actionData: V, fields: F, values: T, context: R });
1868
- if (I === "ir.actions.act_url")
1870
+ if (O === "ir.actions.act_url")
1869
1871
  window.open(
1870
1872
  ua(V.url, { ...T, context: R }),
1871
1873
  "_blank"
1872
1874
  );
1873
1875
  else
1874
- return Qe(`${I} action not supported`), {};
1876
+ return Ze(`${O} action not supported`), {};
1875
1877
  }
1876
1878
  async function x({
1877
1879
  actionData: V,
@@ -1886,13 +1888,13 @@ const Nt = ({
1886
1888
  ids: [parseInt(V.id)],
1887
1889
  context: R
1888
1890
  }))[0]);
1889
- const I = typeof (C == null ? void 0 : C.context) == "string" ? xt({
1891
+ const O = typeof (C == null ? void 0 : C.context) == "string" ? xt({
1890
1892
  context: C.context,
1891
1893
  fields: F,
1892
1894
  values: { ...T, ...i }
1893
1895
  }) : C.context, A = {
1894
1896
  ...R,
1895
- ...I
1897
+ ...O
1896
1898
  };
1897
1899
  let N = [];
1898
1900
  if (C.domain && (N = await P.getHandler().evalDomain({
@@ -1943,9 +1945,9 @@ const Nt = ({
1943
1945
  context: R,
1944
1946
  actionData: C
1945
1947
  }) {
1946
- m ? O({ domain: V, model: F, formView: T, context: R, actionData: C }) : (y({ domain: V, model: F, context: R, formView: T, actionData: C }), p(!0));
1948
+ m ? I({ domain: V, model: F, formView: T, context: R, actionData: C }) : (y({ domain: V, model: F, context: R, formView: T, actionData: C }), p(!0));
1947
1949
  }
1948
- async function O({
1950
+ async function I({
1949
1951
  domain: V,
1950
1952
  model: F,
1951
1953
  formView: T,
@@ -1958,10 +1960,10 @@ const Nt = ({
1958
1960
  context: {},
1959
1961
  formView: void 0,
1960
1962
  actionData: void 0
1961
- }), p(!1), await new Promise((I) => setTimeout(I, 300)), y({ domain: V, model: F, context: R, formView: T, actionData: C }), p(!0);
1963
+ }), p(!1), await new Promise((O) => setTimeout(O, 300)), y({ domain: V, model: F, context: R, formView: T, actionData: C }), p(!0);
1962
1964
  }
1963
1965
  async function _() {
1964
- Ir(f.current), f.current = [], p(!1), y({
1966
+ Or(f.current), f.current = [], p(!1), y({
1965
1967
  domain: void 0,
1966
1968
  model: void 0,
1967
1969
  context: {},
@@ -1979,7 +1981,7 @@ const Nt = ({
1979
1981
  children: /* @__PURE__ */ D(ee, { children: [
1980
1982
  n,
1981
1983
  /* @__PURE__ */ r(
1982
- Je,
1984
+ Xe,
1983
1985
  {
1984
1986
  title: c("generatingReport"),
1985
1987
  open: a,
@@ -1991,7 +1993,7 @@ const Nt = ({
1991
1993
  }
1992
1994
  ),
1993
1995
  /* @__PURE__ */ r(
1994
- zt,
1996
+ Jt,
1995
1997
  {
1996
1998
  buttonModal: !0,
1997
1999
  parentContext: h.context,
@@ -2000,7 +2002,7 @@ const Nt = ({
2000
2002
  visible: m,
2001
2003
  onSubmitSucceed: _,
2002
2004
  onCancel: () => {
2003
- Ir(f.current), f.current = [], p(!1), y({
2005
+ Or(f.current), f.current = [], p(!1), y({
2004
2006
  domain: void 0,
2005
2007
  model: void 0,
2006
2008
  context: {},
@@ -2076,11 +2078,11 @@ const Da = ht(Va), Ea = ({
2076
2078
 
2077
2079
  `) !== -1) {
2078
2080
  const { message: o, type: s, title: a } = so(e);
2079
- n = /* @__PURE__ */ r(er, { content: `${a}<br />${o}` }), i = s;
2081
+ n = /* @__PURE__ */ r(Wt, { content: `${a}<br />${o}` }), i = s;
2080
2082
  } else
2081
2083
  n = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
2082
2084
  return /* @__PURE__ */ r(
2083
- Ze,
2085
+ Je,
2084
2086
  {
2085
2087
  className: t,
2086
2088
  message: n,
@@ -2115,10 +2117,10 @@ function Ma(e, t) {
2115
2117
  actionDomain: b,
2116
2118
  visible: x = !0,
2117
2119
  rootForm: S = !1,
2118
- defaultValues: O,
2120
+ defaultValues: I,
2119
2121
  forcedValues: _ = {},
2120
2122
  parentWidth: V
2121
- } = e, { t: F } = we(), [T, R] = v(!1), [C, I] = v(), [A, N] = v(), [j] = lt.useForm(), [H, U] = v(), [k, Y] = v(), q = oe(yo), [Z, re] = v(), [B, E] = v(!1), K = le(), $ = le({}), ce = le({}), X = le(!1), te = le(!1), ve = le(!1), se = (V !== void 0 ? V : Z) < Pa, Se = oe(He), { activeId: Ee, getPlainValues: ke } = Se || {}, Me = oe(
2123
+ } = e, { t: F } = we(), [T, R] = v(!1), [C, O] = v(), [A, N] = v(), [j] = ct.useForm(), [H, U] = v(), [k, Y] = v(), q = oe(yo), [Z, re] = v(), [B, E] = v(!1), K = le(), $ = le({}), ce = le({}), X = le(!1), te = le(!1), ve = le(!1), se = (V !== void 0 ? V : Z) < Pa, Se = oe(He), { activeId: Ee, getPlainValues: ke } = Se || {}, Me = oe(
2122
2124
  nt
2123
2125
  ), {
2124
2126
  setFormIsSaving: ue = void 0,
@@ -2132,18 +2134,18 @@ function Ma(e, t) {
2132
2134
  Lt
2133
2135
  ), { processAction: Ce, globalValues: Ve } = W || {};
2134
2136
  pt(t, () => ({
2135
- submitForm: Qt,
2137
+ submitForm: Zt,
2136
2138
  getFields: We,
2137
2139
  getValues: De,
2138
2140
  getPlainValues: G,
2139
- getContext: Oe,
2140
- fetchValues: at,
2141
+ getContext: Ie,
2142
+ fetchValues: lt,
2141
2143
  cancelUnsavedChanges: Ne,
2142
2144
  clearAndReload: () => {
2143
2145
  K.current = void 0, N(void 0), $t();
2144
2146
  }
2145
2147
  })), he(() => {
2146
- if (I(void 0), !(!n && !h)) {
2148
+ if (O(void 0), !(!n && !h)) {
2147
2149
  if (!x) {
2148
2150
  K.current = void 0, N(void 0);
2149
2151
  return;
@@ -2151,7 +2153,7 @@ function Ma(e, t) {
2151
2153
  (i === void 0 && k || i !== void 0 && k && i < 0) && (K.current = void 0, N(void 0)), $t();
2152
2154
  }
2153
2155
  }, [i, n, p, h, x]), he(() => {
2154
- B && (bn({
2156
+ B && (Cn({
2155
2157
  elementHasLostFocus: !0
2156
2158
  }), E(!1));
2157
2159
  }, [B]);
@@ -2192,7 +2194,7 @@ function Ma(e, t) {
2192
2194
  M[L] === void 0 && delete M[L];
2193
2195
  return M;
2194
2196
  }
2195
- function Oe() {
2197
+ function Ie() {
2196
2198
  return { ...w, ...A == null ? void 0 : A.context };
2197
2199
  }
2198
2200
  function xe() {
@@ -2213,10 +2215,10 @@ function Ma(e, t) {
2213
2215
  model: n,
2214
2216
  fields: M,
2215
2217
  context: { ...w, ...L },
2216
- extraValues: O
2218
+ extraValues: I
2217
2219
  });
2218
2220
  }, tt = () => Object.keys(
2219
- Fn({
2221
+ In({
2220
2222
  source: $.current,
2221
2223
  target: Ye(k),
2222
2224
  fields: k
@@ -2233,30 +2235,30 @@ function Ma(e, t) {
2233
2235
  fields: k,
2234
2236
  reset: !1
2235
2237
  });
2236
- }, st = (M) => j.getFieldsValue(!0)[M];
2237
- async function Xt() {
2238
+ }, at = (M) => j.getFieldsValue(!0)[M];
2239
+ async function Qt() {
2238
2240
  try {
2239
2241
  return await j.validateFields(), !1;
2240
2242
  } catch {
2241
- return Tn.error(F("fillRequiredFields")), !0;
2243
+ return Fn.error(F("fillRequiredFields")), !0;
2242
2244
  }
2243
2245
  }
2244
2246
  const $t = async () => {
2245
- I(void 0), ae == null || ae(!0);
2247
+ O(void 0), ae == null || ae(!0);
2246
2248
  let M;
2247
2249
  try {
2248
2250
  h ? M = { arch: h.arch, fields: h.fields } : M = await ot();
2249
2251
  const { fields: L, arch: J } = M;
2250
- Y(L), U(J), await at({
2252
+ Y(L), U(J), await lt({
2251
2253
  fields: L,
2252
2254
  arch: J
2253
2255
  });
2254
2256
  } catch (L) {
2255
- I(L != null && L.message ? L.message + L.stack : L), ae == null || ae(!1);
2257
+ O(L != null && L.message ? L.message + L.stack : L), ae == null || ae(!1);
2256
2258
  }
2257
- }, at = async (M) => {
2259
+ }, lt = async (M) => {
2258
2260
  let L, J, Q, ge;
2259
- ae == null || ae(!0), I(void 0), M != null && M.fields ? (J = M.fields, Q = M.arch) : (J = k, Q = H), p && (M == null ? void 0 : M.forceRefresh) !== !0 ? L = p : { values: L, defaultGetCalled: ge } = await jo({
2261
+ ae == null || ae(!0), O(void 0), M != null && M.fields ? (J = M.fields, Q = M.arch) : (J = k, Q = H), p && (M == null ? void 0 : M.forceRefresh) !== !0 ? L = p : { values: L, defaultGetCalled: ge } = await jo({
2260
2262
  fields: J,
2261
2263
  arch: Q
2262
2264
  }), b && (L = { ...ca(b), ...L }), $.current = Rt(L, J), ut({
@@ -2266,7 +2268,7 @@ function Ma(e, t) {
2266
2268
  isDefaultGet: ge
2267
2269
  }), Ht({ fields: J, arch: Q, values: L }), ae == null || ae(!1), Fe == null || Fe(!1), ge && E(!0);
2268
2270
  }, Ne = async () => new Promise(async (M) => {
2269
- tt() ? Yt({
2271
+ tt() ? qt({
2270
2272
  t: F,
2271
2273
  onOk: () => {
2272
2274
  ye == null || ye(), M(!0);
@@ -2294,15 +2296,15 @@ function Ma(e, t) {
2294
2296
  reset: J,
2295
2297
  isDefaultGet: Q = !1
2296
2298
  }) => {
2297
- const Ue = { ...J ? {} : j.getFieldsValue(!0), ...M }, xn = Rt(Ue, L), ni = Object.keys(L).map((Sn) => {
2298
- const ri = xn[Sn] !== void 0 ? xn[Sn] : void 0;
2299
+ const Ue = { ...J ? {} : j.getFieldsValue(!0), ...M }, Sn = Rt(Ue, L), ni = Object.keys(L).map((Tn) => {
2300
+ const ri = Sn[Tn] !== void 0 ? Sn[Tn] : void 0;
2299
2301
  return {
2300
- name: Sn,
2302
+ name: Tn,
2301
2303
  touched: !1,
2302
2304
  value: ri
2303
2305
  };
2304
2306
  });
2305
- Q || (ce.current = xn), j.setFields(ni);
2307
+ Q || (ce.current = Sn), j.setFields(ni);
2306
2308
  }, jo = async ({
2307
2309
  fields: M,
2308
2310
  arch: L
@@ -2327,7 +2329,7 @@ function Ma(e, t) {
2327
2329
  ["res_id", "=", ne()]
2328
2330
  ],
2329
2331
  fieldsToRetrieve: ["id", "name"],
2330
- context: Oe(),
2332
+ context: Ie(),
2331
2333
  model: "ir.attachment"
2332
2334
  });
2333
2335
  _e == null || _e(Ue);
@@ -2337,7 +2339,7 @@ function Ma(e, t) {
2337
2339
  }, lr = async (M) => {
2338
2340
  const { callOnSubmitSucceed: L = !0 } = M || {};
2339
2341
  if (ne()) {
2340
- const J = Fn({
2342
+ const J = In({
2341
2343
  source: $.current,
2342
2344
  target: Ye(k),
2343
2345
  fields: k
@@ -2368,10 +2370,10 @@ function Ma(e, t) {
2368
2370
  }, Uo = async (M) => {
2369
2371
  const { callOnSubmitSucceed: L = !0 } = M || {};
2370
2372
  !g && L && (me == null || me(ne(), De(), ie()));
2371
- }, Qt = async (M) => {
2373
+ }, Zt = async (M) => {
2372
2374
  let L = !1;
2373
2375
  const { callOnSubmitSucceed: J = !0 } = M || {};
2374
- if (te.current = !0, I(void 0), ve.current && !tt() && ne() && J) {
2376
+ if (te.current = !0, O(void 0), ve.current && !tt() && ne() && J) {
2375
2377
  te.current = !1, Fe == null || Fe(!1), me == null || me(
2376
2378
  ne(),
2377
2379
  De(),
@@ -2383,13 +2385,13 @@ function Ma(e, t) {
2383
2385
  }
2384
2386
  if (!tt() && ne() && J)
2385
2387
  return te.current = !1, Fe == null || Fe(!1), ye == null || ye(), { succeed: !0, id: ne() };
2386
- if (await Xt())
2387
- return te.current = !1, Or(F), { succeed: !1, id: ne() };
2388
+ if (await Qt())
2389
+ return te.current = !1, Ir(F), { succeed: !1, id: ne() };
2388
2390
  R(!0), ue == null || ue(!0);
2389
2391
  try {
2390
- m === "api" ? await lr(M) : await Uo(M), c && (K.current = void 0, ut({ values: {}, fields: k, reset: !0 })), await at({ forceRefresh: !0 }), L = !0, Tn.success(F("savedRegisters"));
2392
+ m === "api" ? await lr(M) : await Uo(M), c && (K.current = void 0, ut({ values: {}, fields: k, reset: !0 })), await lt({ forceRefresh: !0 }), L = !0, Fn.success(F("savedRegisters"));
2391
2393
  } catch (Q) {
2392
- te.current = !1, R(!1), ue == null || ue(!1), fe == null || fe(Q), Tn.error(F("errorWhileSavingForm")), I(Q != null && Q.message ? Q.message : Q);
2394
+ te.current = !1, R(!1), ue == null || ue(!1), fe == null || fe(Q), Fn.error(F("errorWhileSavingForm")), O(Q != null && Q.message ? Q.message : Q);
2393
2395
  } finally {
2394
2396
  te.current = !1, ue == null || ue(!1), R(!1);
2395
2397
  }
@@ -2425,12 +2427,12 @@ function Ma(e, t) {
2425
2427
  operationInProgress: Q
2426
2428
  });
2427
2429
  N(ge), ge.string && ge.string !== je && (Ke == null || Ke(ge.string)), q && ge.string && ((Ue = q.setTitle) == null || Ue.call(q, ge.string));
2428
- }, bn = async ({
2430
+ }, Cn = async ({
2429
2431
  elementHasLostFocus: M = !1
2430
2432
  }) => {
2431
2433
  if (te.current)
2432
2434
  return;
2433
- const L = Fn({
2435
+ const L = In({
2434
2436
  source: ce.current,
2435
2437
  target: Ye(k),
2436
2438
  fields: k
@@ -2453,14 +2455,14 @@ function Ma(e, t) {
2453
2455
  const Q = Rt(j.getFieldsValue(!0), k);
2454
2456
  ce.current = Q, d == null || d(Q), Fe == null || Fe(!0), Yo(J);
2455
2457
  }
2456
- }, Go = Gi(bn, 100), Yo = async (M) => {
2458
+ }, Go = Gi(Cn, 100), Yo = async (M) => {
2457
2459
  try {
2458
2460
  for (let L = 0; L < M.length; L += 1) {
2459
2461
  const J = M[L];
2460
2462
  await qo(J);
2461
2463
  }
2462
2464
  } catch (L) {
2463
- Qe(L);
2465
+ Ze(L);
2464
2466
  }
2465
2467
  }, qo = async (M) => {
2466
2468
  const L = A == null ? void 0 : A.onChangeFields[M];
@@ -2509,7 +2511,7 @@ function Ma(e, t) {
2509
2511
  }
2510
2512
  if (Q.warning && Q.warning.title && Q.warning.message && !X.current) {
2511
2513
  const { title: ge, message: Ue } = Q.warning;
2512
- X.current = !0, Oa(ge, Ue, () => {
2514
+ X.current = !0, Ia(ge, Ue, () => {
2513
2515
  X.current = !1;
2514
2516
  });
2515
2517
  }
@@ -2554,7 +2556,7 @@ function Ma(e, t) {
2554
2556
  context: { ...L, ...Q }
2555
2557
  });
2556
2558
  } else
2557
- await at({ forceRefresh: !0 });
2559
+ await lt({ forceRefresh: !0 });
2558
2560
  }
2559
2561
  async function Jo({ action: M }) {
2560
2562
  const L = await P.getHandler().executeWorkflow({
@@ -2562,7 +2564,7 @@ function Ma(e, t) {
2562
2564
  action: M,
2563
2565
  payload: ne()
2564
2566
  });
2565
- L.type && L.type === "ir.actions.act_window_close" ? me == null || me(ne(), De(), ie()) : await at({ forceRefresh: !0 });
2567
+ L.type && L.type === "ir.actions.act_window_close" ? me == null || me(ne(), De(), ie()) : await lt({ forceRefresh: !0 });
2566
2568
  }
2567
2569
  async function Xo({
2568
2570
  action: M,
@@ -2589,15 +2591,15 @@ function Ma(e, t) {
2589
2591
  ...L
2590
2592
  },
2591
2593
  onRefreshParentValues: () => {
2592
- at({ forceRefresh: !0 });
2594
+ lt({ forceRefresh: !0 });
2593
2595
  }
2594
2596
  })) || {};
2595
2597
  !S && J && (me == null || me(ne(), De(), ie()));
2596
2598
  }
2597
2599
  function Qo() {
2598
- bn({ elementHasLostFocus: !0 });
2600
+ Cn({ elementHasLostFocus: !0 });
2599
2601
  }
2600
- function Cn(M) {
2602
+ function xn(M) {
2601
2603
  Ht({
2602
2604
  fields: k,
2603
2605
  arch: H,
@@ -2614,17 +2616,17 @@ function Ma(e, t) {
2614
2616
  ye == null || ye();
2615
2617
  return;
2616
2618
  }
2617
- if (await Xt()) {
2618
- Or(F);
2619
+ if (await Qt()) {
2620
+ Ir(F);
2619
2621
  return;
2620
2622
  }
2621
2623
  let Q = !1;
2622
2624
  try {
2623
- !f && (tt() || ne() === void 0) && (Q = !0, Cn(!0), m === "2many" ? (await lr({ callOnSubmitSucceed: !1 }), ve.current = !0) : await Qt({ callOnSubmitSucceed: !1 }));
2625
+ !f && (tt() || ne() === void 0) && (Q = !0, xn(!0), m === "2many" ? (await lr({ callOnSubmitSucceed: !1 }), ve.current = !0) : await Zt({ callOnSubmitSucceed: !1 }));
2624
2626
  const ge = ve.current ? xe() : {}, Ue = { ...J, ...ge };
2625
- M === "object" ? await zo({ action: L, context: Ue }) : M === "workflow" ? await Jo({ action: L }) : M === "action" && await Xo({ action: L, context: Ue }), Q && Cn(!1);
2627
+ M === "object" ? await zo({ action: L, context: Ue }) : M === "workflow" ? await Jo({ action: L }) : M === "action" && await Xo({ action: L, context: Ue }), Q && xn(!1);
2626
2628
  } catch (ge) {
2627
- Q && Cn(!1), Qe(ge);
2629
+ Q && xn(!1), Ze(ge);
2628
2630
  }
2629
2631
  }
2630
2632
  const ei = () => !A && !C ? /* @__PURE__ */ r($e, {}) : !n && !h || !x ? null : /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r(
@@ -2637,15 +2639,15 @@ function Ma(e, t) {
2637
2639
  activeId: i,
2638
2640
  activeModel: n,
2639
2641
  setFieldValue: bt,
2640
- getFieldValue: st,
2642
+ getFieldValue: at,
2641
2643
  executeButtonAction: Zo,
2642
- getContext: Oe,
2643
- submitForm: Qt,
2644
- fetchValues: at,
2644
+ getContext: Ie,
2645
+ submitForm: Zt,
2646
+ fetchValues: lt,
2645
2647
  formHasChanges: tt,
2646
2648
  elementHasLostFocus: Qo,
2647
2649
  children: /* @__PURE__ */ r(
2648
- lt,
2650
+ ct,
2649
2651
  {
2650
2652
  form: j,
2651
2653
  onFieldsChange: () => {
@@ -2653,7 +2655,7 @@ function Ma(e, t) {
2653
2655
  },
2654
2656
  component: !1,
2655
2657
  children: A && /* @__PURE__ */ r(
2656
- En,
2658
+ kn,
2657
2659
  {
2658
2660
  container: A.container,
2659
2661
  responsiveBehaviour: se
@@ -2663,12 +2665,12 @@ function Ma(e, t) {
2663
2665
  )
2664
2666
  }
2665
2667
  ) }), ti = () => /* @__PURE__ */ D(ee, { children: [
2666
- /* @__PURE__ */ r(ln, {}),
2668
+ /* @__PURE__ */ r(cn, {}),
2667
2669
  /* @__PURE__ */ r(Re, { justify: "end", children: /* @__PURE__ */ D(Ge, { children: [
2668
2670
  /* @__PURE__ */ r(
2669
2671
  Pe,
2670
2672
  {
2671
- icon: /* @__PURE__ */ r(Ut, {}),
2673
+ icon: /* @__PURE__ */ r(Gt, {}),
2672
2674
  disabled: T,
2673
2675
  onClick: async () => {
2674
2676
  await Ne();
@@ -2681,9 +2683,9 @@ function Ma(e, t) {
2681
2683
  {
2682
2684
  disabled: T || f,
2683
2685
  loading: T,
2684
- icon: /* @__PURE__ */ r(dn, {}),
2686
+ icon: /* @__PURE__ */ r(un, {}),
2685
2687
  onClick: async () => {
2686
- await Qt();
2688
+ await Zt();
2687
2689
  },
2688
2690
  type: "primary",
2689
2691
  children: "OK"
@@ -2707,7 +2709,7 @@ function Ma(e, t) {
2707
2709
  }
2708
2710
  ) : null;
2709
2711
  }
2710
- const qt = ht(Ma), zt = (e) => {
2712
+ const zt = ht(Ma), Jt = (e) => {
2711
2713
  const {
2712
2714
  visible: t,
2713
2715
  id: n,
@@ -2717,11 +2719,11 @@ const qt = ht(Ma), zt = (e) => {
2717
2719
  isMenuAction: a = !1,
2718
2720
  actionData: l,
2719
2721
  ...d
2720
- } = e, { model: u } = d, { modalWidth: f } = hn(), [c, m] = v(i), [p, h] = v(!1), [y, g] = v(), { action_id: w, res_id: b, action_type: x, view_id: S } = l || {};
2722
+ } = e, { model: u } = d, { modalWidth: f } = pn(), [c, m] = v(i), [p, h] = v(!1), [y, g] = v(), { action_id: w, res_id: b, action_type: x, view_id: S } = l || {};
2721
2723
  he(() => {
2722
- a && O();
2724
+ a && I();
2723
2725
  }, [l, a]);
2724
- async function O() {
2726
+ async function I() {
2725
2727
  const T = await P.getHandler().isShortcutFavorite({
2726
2728
  action_id: w,
2727
2729
  action_type: x,
@@ -2736,11 +2738,11 @@ const qt = ht(Ma), zt = (e) => {
2736
2738
  shortcut_id: y
2737
2739
  });
2738
2740
  else {
2739
- const { action_id: T, res_id: R, action_type: C, view_id: I } = l;
2741
+ const { action_id: T, res_id: R, action_type: C, view_id: O } = l;
2740
2742
  await P.getHandler().addFavourite({
2741
2743
  action_id: T,
2742
2744
  action_type: C,
2743
- view_id: I,
2745
+ view_id: O,
2744
2746
  res_id: R || !1
2745
2747
  });
2746
2748
  }
@@ -2761,8 +2763,8 @@ const qt = ht(Ma), zt = (e) => {
2761
2763
  ] });
2762
2764
  }
2763
2765
  const F = f * 0.95;
2764
- return /* @__PURE__ */ r(Ia, { setTitle: m, children: /* @__PURE__ */ r(
2765
- Je,
2766
+ return /* @__PURE__ */ r(Oa, { setTitle: m, children: /* @__PURE__ */ r(
2767
+ Xe,
2766
2768
  {
2767
2769
  title: a ? V() : c,
2768
2770
  centered: !0,
@@ -2773,7 +2775,7 @@ const qt = ht(Ma), zt = (e) => {
2773
2775
  onCancel: s,
2774
2776
  maskClosable: !1,
2775
2777
  children: /* @__PURE__ */ r(
2776
- qt,
2778
+ zt,
2777
2779
  {
2778
2780
  id: n,
2779
2781
  showFooter: !0,
@@ -2787,12 +2789,12 @@ const qt = ht(Ma), zt = (e) => {
2787
2789
  }
2788
2790
  ) });
2789
2791
  }, Na = (e) => /* @__PURE__ */ r(be, { ...e, layout: "vertical", children: /* @__PURE__ */ r(
2790
- Bn.RangePicker,
2792
+ Kn.RangePicker,
2791
2793
  {
2792
2794
  allowEmpty: [!0, !0],
2793
2795
  format: "DD/MM/YYYY"
2794
2796
  }
2795
- ) }), kn = ({
2797
+ ) }), Pn = ({
2796
2798
  value: e,
2797
2799
  onChange: t,
2798
2800
  numberOfSelectsToHide: n = 2,
@@ -2816,18 +2818,18 @@ const qt = ht(Ma), zt = (e) => {
2816
2818
  );
2817
2819
  }, La = (e) => {
2818
2820
  const { ooui: t, showLabel: n = !1 } = e, { label: i, id: o } = t, s = [
2819
- new Vn({
2821
+ new An({
2820
2822
  name: o + "#date",
2821
2823
  label: ""
2822
2824
  }),
2823
- new Vn({
2825
+ new An({
2824
2826
  name: o + "#time",
2825
2827
  label: ""
2826
2828
  })
2827
2829
  ];
2828
2830
  return /* @__PURE__ */ D(ee, { children: [
2829
2831
  n && /* @__PURE__ */ r(
2830
- mn,
2832
+ hn,
2831
2833
  {
2832
2834
  ooui: new Pt({
2833
2835
  name: o + "_label",
@@ -2840,7 +2842,7 @@ const qt = ht(Ma), zt = (e) => {
2840
2842
  ),
2841
2843
  /* @__PURE__ */ D(Re, { align: "bottom", className: "p-0", children: [
2842
2844
  /* @__PURE__ */ r(pe, { className: "mr-2", children: /* @__PURE__ */ r(be, { ...e, ooui: s[0], showLabel: !1, children: /* @__PURE__ */ r(
2843
- Bn.RangePicker,
2845
+ Kn.RangePicker,
2844
2846
  {
2845
2847
  className: "w-60",
2846
2848
  allowEmpty: [!0, !0],
@@ -2855,7 +2857,7 @@ const qt = ht(Ma), zt = (e) => {
2855
2857
  onChange: t
2856
2858
  }) => /* @__PURE__ */ D("div", { style: { marginTop: 5 }, children: [
2857
2859
  /* @__PURE__ */ r(
2858
- kn,
2860
+ Pn,
2859
2861
  {
2860
2862
  placeholder: "Start time",
2861
2863
  format: "HH:mm",
@@ -2867,7 +2869,7 @@ const qt = ht(Ma), zt = (e) => {
2867
2869
  }
2868
2870
  ),
2869
2871
  /* @__PURE__ */ r(
2870
- kn,
2872
+ Pn,
2871
2873
  {
2872
2874
  placeholder: "End time",
2873
2875
  style: { width: 115 },
@@ -2894,7 +2896,7 @@ const qt = ht(Ma), zt = (e) => {
2894
2896
  wheel: !1
2895
2897
  }
2896
2898
  ) });
2897
- }, { useToken: Ba } = Be, nn = (e) => {
2899
+ }, { useToken: Ba } = Be, rn = (e) => {
2898
2900
  const { ooui: t, onChange: n } = e, { id: i, readOnly: o, required: s } = t, { token: a } = Ba(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = oe(He), { elementHasLostFocus: u } = d || {};
2899
2901
  return /* @__PURE__ */ r(be, { required: s, type: "number", ...e, children: /* @__PURE__ */ r(
2900
2902
  Hr,
@@ -2915,7 +2917,7 @@ const qt = ht(Ma), zt = (e) => {
2915
2917
  ) });
2916
2918
  };
2917
2919
  function Ka(e) {
2918
- const { ooui: t, showLabel: n } = e, { id: i, label: o, tooltip: s } = t, a = t instanceof An ? nn : wo, l = (d) => /* @__PURE__ */ r(
2920
+ const { ooui: t, showLabel: n } = e, { id: i, label: o, tooltip: s } = t, a = t instanceof Dn ? rn : wo, l = (d) => /* @__PURE__ */ r(
2919
2921
  a,
2920
2922
  {
2921
2923
  ooui: {
@@ -2929,7 +2931,7 @@ function Ka(e) {
2929
2931
  );
2930
2932
  return /* @__PURE__ */ D(ee, { children: [
2931
2933
  n && /* @__PURE__ */ r(
2932
- mn,
2934
+ hn,
2933
2935
  {
2934
2936
  ooui: new Pt({
2935
2937
  name: i + "_label",
@@ -2991,7 +2993,7 @@ function Ja(e) {
2991
2993
  const { t: n } = we();
2992
2994
  switch (t.type) {
2993
2995
  case yt.boolean: {
2994
- const o = new Kn({
2996
+ const o = new Wn({
2995
2997
  name: t._id,
2996
2998
  string: t.label,
2997
2999
  selection: [
@@ -3020,15 +3022,15 @@ function Xa(e) {
3020
3022
  const { onAdvancedFilterToggle: t, advancedFilter: n, onClear: i, isSearching: o } = e, { t: s } = we();
3021
3023
  return /* @__PURE__ */ D(Re, { children: [
3022
3024
  /* @__PURE__ */ r(pe, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ D("a", { className: "text-xs", onClick: t, children: [
3023
- n ? /* @__PURE__ */ r(Ti, { className: "pr-1" }) : /* @__PURE__ */ r(cn, { className: "pr-1" }),
3025
+ n ? /* @__PURE__ */ r(Ti, { className: "pr-1" }) : /* @__PURE__ */ r(dn, { className: "pr-1" }),
3024
3026
  s(n ? "simple_search" : "advanced_search")
3025
3027
  ] }) }),
3026
3028
  /* @__PURE__ */ D(pe, { span: 12, className: "text-right pb-2", children: [
3027
- /* @__PURE__ */ r(Pe, { className: "mr-5", icon: /* @__PURE__ */ r(Gn, {}), onClick: i, children: s("clear") }),
3029
+ /* @__PURE__ */ r(Pe, { className: "mr-5", icon: /* @__PURE__ */ r(Yn, {}), onClick: i, children: s("clear") }),
3028
3030
  /* @__PURE__ */ r(
3029
3031
  Pe,
3030
3032
  {
3031
- icon: /* @__PURE__ */ r(Yn, {}),
3033
+ icon: /* @__PURE__ */ r(qn, {}),
3032
3034
  loading: o,
3033
3035
  className: "mr-2",
3034
3036
  type: "primary",
@@ -3040,13 +3042,13 @@ function Xa(e) {
3040
3042
  ] });
3041
3043
  }
3042
3044
  function Qa(e) {
3043
- const { onLimitChange: t } = e, { t: n } = we(), i = new An({ name: "limit" }), o = new An({ name: "offset" });
3045
+ const { onLimitChange: t } = e, { t: n } = we(), i = new Dn({ name: "limit" }), o = new Dn({ name: "offset" });
3044
3046
  return /* @__PURE__ */ D("div", { className: "pl-2 pt-2", children: [
3045
3047
  /* @__PURE__ */ r(Re, { children: n("parameters") }, "count_params"),
3046
3048
  /* @__PURE__ */ D(Ge, { align: "center", children: [
3047
3049
  n("limit") + " :",
3048
3050
  /* @__PURE__ */ r(
3049
- nn,
3051
+ rn,
3050
3052
  {
3051
3053
  ooui: i,
3052
3054
  onChange: (s) => {
@@ -3055,7 +3057,7 @@ function Qa(e) {
3055
3057
  }
3056
3058
  ),
3057
3059
  n("first") + " :",
3058
- /* @__PURE__ */ r(nn, { ooui: o })
3060
+ /* @__PURE__ */ r(rn, { ooui: o })
3059
3061
  ] })
3060
3062
  ] });
3061
3063
  }
@@ -3127,7 +3129,7 @@ const Rr = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
3127
3129
  return e.forEach((n) => {
3128
3130
  Array.isArray(n) && n[0] ? t[n[0]] = !0 : t[n] = !0;
3129
3131
  }), Object.keys(t);
3130
- }, jt = (e, t) => {
3132
+ }, Ut = (e, t) => {
3131
3133
  const n = [...e], i = sl(e);
3132
3134
  return t.forEach((o) => {
3133
3135
  Array.isArray(o) && o[0] ? i.includes(o[0]) || n.push(o) : i.includes(o) || n.push(o);
@@ -3148,7 +3150,7 @@ function vo(e) {
3148
3150
  searchError: c,
3149
3151
  searchValues: m,
3150
3152
  showLimitOptions: p = !0
3151
- } = e, [h, y] = v(), [g, w] = v(), [b, x] = v(!1), S = le(), { token: O } = al(), [_] = lt.useForm();
3153
+ } = e, [h, y] = v(), [g, w] = v(), [b, x] = v(!1), S = le(), { token: I } = al(), [_] = ct.useForm();
3152
3154
  he(() => {
3153
3155
  _.setFieldsValue(m);
3154
3156
  }, [m]);
@@ -3156,20 +3158,20 @@ function vo(e) {
3156
3158
  if (!g)
3157
3159
  return;
3158
3160
  const R = b ? g : h, C = R == null ? void 0 : R.rows;
3159
- return C == null ? void 0 : C.map((I, A) => /* @__PURE__ */ r(Re, { children: I.map((N, j) => /* @__PURE__ */ r(pe, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ r(Ja, { field: N }) }, j)) }, A));
3161
+ return C == null ? void 0 : C.map((O, A) => /* @__PURE__ */ r(Re, { children: O.map((N, j) => /* @__PURE__ */ r(pe, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ r(Ja, { field: N }) }, j)) }, A));
3160
3162
  };
3161
3163
  Ft(() => {
3162
3164
  x(!1), S.current = new wi(n, t), S.current.parse(), y(S.current._simpleSearchContainer), w(S.current._advancedSearchContainer);
3163
3165
  }, [t, n]);
3164
3166
  const F = V(), T = (R) => {
3165
3167
  var N;
3166
- const { limit: C, offset: I } = R;
3168
+ const { limit: C, offset: O } = R;
3167
3169
  delete R.offset, delete R.limit;
3168
3170
  const A = Za(
3169
3171
  R,
3170
3172
  (N = S.current) == null ? void 0 : N._advancedSearchContainer
3171
3173
  );
3172
- o({ params: A, offset: I, limit: C, searchValues: R });
3174
+ o({ params: A, offset: O, limit: C, searchValues: R });
3173
3175
  };
3174
3176
  return /* @__PURE__ */ r(
3175
3177
  tr,
@@ -3181,10 +3183,10 @@ function vo(e) {
3181
3183
  },
3182
3184
  children: ({ measureRef: R }) => /* @__PURE__ */ r("div", { ref: R, children: /* @__PURE__ */ D("div", { style: { display: u ? "block" : "none" }, children: [
3183
3185
  /* @__PURE__ */ D(
3184
- lt,
3186
+ ct,
3185
3187
  {
3186
3188
  className: "p-3 shadow-md",
3187
- style: { borderRadius: O.borderRadius },
3189
+ style: { borderRadius: I.borderRadius },
3188
3190
  form: _,
3189
3191
  onFinish: T,
3190
3192
  initialValues: { offset: a, limit: l },
@@ -3208,7 +3210,7 @@ function vo(e) {
3208
3210
  }
3209
3211
  ),
3210
3212
  c && /* @__PURE__ */ r(
3211
- Ze,
3213
+ Je,
3212
3214
  {
3213
3215
  className: "mt-10",
3214
3216
  message: c,
@@ -3349,13 +3351,13 @@ const fl = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Co,
3349
3351
  id: "action",
3350
3352
  name: l("action"),
3351
3353
  disabled: !c || c.length === 0,
3352
- icon: /* @__PURE__ */ r(qn, {})
3354
+ icon: /* @__PURE__ */ r(zn, {})
3353
3355
  },
3354
3356
  {
3355
3357
  id: "print",
3356
3358
  name: l("report"),
3357
3359
  disabled: !p || p.length === 0,
3358
- icon: /* @__PURE__ */ r(zn, {})
3360
+ icon: /* @__PURE__ */ r(Jn, {})
3359
3361
  },
3360
3362
  {
3361
3363
  id: "divider",
@@ -3365,7 +3367,7 @@ const fl = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Co,
3365
3367
  },
3366
3368
  {
3367
3369
  label: l("related"),
3368
- icon: /* @__PURE__ */ r(Jn, {}),
3370
+ icon: /* @__PURE__ */ r(Xn, {}),
3369
3371
  items: m
3370
3372
  }
3371
3373
  ];
@@ -3406,7 +3408,7 @@ const fl = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Co,
3406
3408
  }
3407
3409
  )
3408
3410
  ] });
3409
- }, Xe = (e) => {
3411
+ }, Qe = (e) => {
3410
3412
  const t = le(/* @__PURE__ */ new Map());
3411
3413
  he(() => () => {
3412
3414
  i();
@@ -3437,9 +3439,9 @@ const fl = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Co,
3437
3439
  dt
3438
3440
  ), { openRelate: u } = d || {}, f = oe(
3439
3441
  Lt
3440
- ), { processAction: c } = f || {}, [m, p] = Xe(
3442
+ ), { processAction: c } = f || {}, [m, p] = Qe(
3441
3443
  P.getHandler().getView
3442
- ), [h, y] = Xe(
3444
+ ), [h, y] = Qe(
3443
3445
  P.getHandler().readObjects
3444
3446
  ), g = de(() => {
3445
3447
  p(), y();
@@ -3452,13 +3454,13 @@ const fl = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Co,
3452
3454
  });
3453
3455
  s(x);
3454
3456
  const S = pl(x);
3455
- let O = {};
3456
- if (S.length > 0 && (O = { ...(_ = await h({
3457
+ let I = {};
3458
+ if (S.length > 0 && (I = { ...(_ = await h({
3457
3459
  model: n,
3458
3460
  ids: [t],
3459
3461
  fieldsToRetrieve: S,
3460
3462
  context: i
3461
- })) == null ? void 0 : _[0] }), O = { ...Rt(O, S), active_id: t }, l(O), !(!x || !x.toolbar))
3463
+ })) == null ? void 0 : _[0] }), I = { ...Rt(I, S), active_id: t }, l(I), !(!x || !x.toolbar))
3462
3464
  return {
3463
3465
  actionItems: x.toolbar.action,
3464
3466
  relateItems: x.toolbar.relate,
@@ -3468,7 +3470,7 @@ const fl = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Co,
3468
3470
  if (!t)
3469
3471
  return null;
3470
3472
  function b({ item: x, type: S }) {
3471
- const O = {
3473
+ const I = {
3472
3474
  values: a,
3473
3475
  fields: o.fields
3474
3476
  };
@@ -3477,7 +3479,7 @@ const fl = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Co,
3477
3479
  c == null || c({
3478
3480
  actionData: x,
3479
3481
  context: { active_id: t, active_ids: [t] },
3480
- ...O
3482
+ ...I
3481
3483
  });
3482
3484
  break;
3483
3485
  case "print":
@@ -3486,7 +3488,7 @@ const fl = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Co,
3486
3488
  ...x,
3487
3489
  datas: { ...x.datas, ids: [t] }
3488
3490
  },
3489
- ...O
3491
+ ...I
3490
3492
  });
3491
3493
  break;
3492
3494
  case "relate":
@@ -3494,7 +3496,7 @@ const fl = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Co,
3494
3496
  relateData: x,
3495
3497
  action_id: x.id,
3496
3498
  action_type: x.type,
3497
- ...O
3499
+ ...I
3498
3500
  });
3499
3501
  break;
3500
3502
  }
@@ -3566,7 +3568,7 @@ const wl = (e) => {
3566
3568
  return null;
3567
3569
  let i = n;
3568
3570
  t.selectionValues.size ? i = t.selectionValues.get(n) : Array.isArray(n) && (i = n[1]);
3569
- const o = i.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = Wt(i);
3571
+ const o = i.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = jt(i);
3570
3572
  return /* @__PURE__ */ r(wt, { title: i, children: /* @__PURE__ */ r(Br, { alt: i, style: { backgroundColor: s }, children: o }) });
3571
3573
  }, { useToken: vl } = Be, ft = {
3572
3574
  date: {
@@ -3593,7 +3595,7 @@ const wl = (e) => {
3593
3595
  c(h.format(ft[f].dateInternalFormat));
3594
3596
  }, p = t ? et(t, ft[f].dateInternalFormat) : void 0;
3595
3597
  return /* @__PURE__ */ r(
3596
- Bn,
3598
+ Kn,
3597
3599
  {
3598
3600
  style: { width: "100%", ...u },
3599
3601
  placeholder: o ? ft.time.placeholder : ft.date.placeholder,
@@ -3611,7 +3613,7 @@ const wl = (e) => {
3611
3613
  );
3612
3614
  }, Cl = ({
3613
3615
  value: e
3614
- }) => Ie(
3616
+ }) => Oe(
3615
3617
  () => /* @__PURE__ */ r(
3616
3618
  "div",
3617
3619
  {
@@ -3624,15 +3626,15 @@ const wl = (e) => {
3624
3626
  }
3625
3627
  ),
3626
3628
  [e]
3627
- ), xl = ({ value: e }) => Ie(() => /* @__PURE__ */ r(gl, { m2oField: e }), [e]), Sl = ({ value: e }) => Ie(
3629
+ ), xl = ({ value: e }) => Oe(() => /* @__PURE__ */ r(gl, { m2oField: e }), [e]), Sl = ({ value: e }) => Oe(
3628
3630
  () => /* @__PURE__ */ r(
3629
- er,
3631
+ Wt,
3630
3632
  {
3631
3633
  content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
3632
3634
  }
3633
3635
  ),
3634
3636
  [e]
3635
- ), Tl = ({ value: e }) => Ie(() => {
3637
+ ), Tl = ({ value: e }) => Oe(() => {
3636
3638
  if (!e || e && e.length === 0)
3637
3639
  return /* @__PURE__ */ r(ee, {});
3638
3640
  const t = et(
@@ -3640,7 +3642,7 @@ const wl = (e) => {
3640
3642
  ft.date.dateInternalFormat
3641
3643
  ).format(ft.date.dateDisplayFormat);
3642
3644
  return /* @__PURE__ */ r(ee, { children: t });
3643
- }, [e]), Fl = ({ value: e }) => Ie(() => {
3645
+ }, [e]), Fl = ({ value: e }) => Oe(() => {
3644
3646
  if (!e || e && e.length === 0)
3645
3647
  return /* @__PURE__ */ r(ee, {});
3646
3648
  const t = et(
@@ -3650,15 +3652,15 @@ const wl = (e) => {
3650
3652
  return /* @__PURE__ */ r(ee, { children: t });
3651
3653
  }, [e]), Vr = ({
3652
3654
  value: e
3653
- }) => Ie(() => {
3655
+ }) => Oe(() => {
3654
3656
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
3655
3657
  return /* @__PURE__ */ r(ee, { children: `( ${t} )` });
3656
- }, [e]), Ol = ({
3658
+ }, [e]), Il = ({
3657
3659
  value: e
3658
- }) => Ie(() => /* @__PURE__ */ r(Co, { value: e }), [e]), Il = ({ value: e }) => Ie(() => /* @__PURE__ */ r(ee, { children: bo(e) }), [e]), Ar = ({ value: e }) => Ie(
3660
+ }) => Oe(() => /* @__PURE__ */ r(Co, { value: e }), [e]), Ol = ({ value: e }) => Oe(() => /* @__PURE__ */ r(ee, { children: bo(e) }), [e]), Ar = ({ value: e }) => Oe(
3659
3661
  () => /* @__PURE__ */ r("div", { style: { textAlign: "right" }, children: e }),
3660
3662
  [e]
3661
- ), Rl = ({ value: e }) => Ie(
3663
+ ), Rl = ({ value: e }) => Oe(
3662
3664
  () => /* @__PURE__ */ r(
3663
3665
  "img",
3664
3666
  {
@@ -3672,12 +3674,12 @@ const wl = (e) => {
3672
3674
  key: t,
3673
3675
  ooui: n,
3674
3676
  context: i
3675
- }) => Ie(() => /* @__PURE__ */ r(go, { ooui: n, value: e }), [n, e]), Vl = ({
3677
+ }) => Oe(() => /* @__PURE__ */ r(go, { ooui: n, value: e }), [n, e]), Vl = ({
3676
3678
  value: e,
3677
3679
  key: t,
3678
3680
  ooui: n,
3679
3681
  context: i
3680
- }) => Ie(() => {
3682
+ }) => Oe(() => {
3681
3683
  let o = e;
3682
3684
  return Array.isArray(e) && e.length === 2 && (o = e[0]), /* @__PURE__ */ r(ee, { children: n.selectionValues.get(o) });
3683
3685
  }, [n, e]), Al = ({
@@ -3685,7 +3687,7 @@ const wl = (e) => {
3685
3687
  key: t,
3686
3688
  ooui: n,
3687
3689
  context: i
3688
- }) => Ie(
3690
+ }) => Oe(
3689
3691
  () => /* @__PURE__ */ r(
3690
3692
  yl,
3691
3693
  {
@@ -3700,7 +3702,7 @@ const wl = (e) => {
3700
3702
  key: t,
3701
3703
  ooui: n,
3702
3704
  context: i
3703
- }) => Ie(() => /* @__PURE__ */ r(wl, { ooui: n, value: e }), [n, e]), El = ({
3705
+ }) => Oe(() => /* @__PURE__ */ r(wl, { ooui: n, value: e }), [n, e]), El = ({
3704
3706
  value: e,
3705
3707
  key: t,
3706
3708
  ooui: n,
@@ -3727,14 +3729,14 @@ const wl = (e) => {
3727
3729
  he(() => {
3728
3730
  e != null && e.items && (e == null ? void 0 : e.items.length) > 0 && f();
3729
3731
  }, [e == null ? void 0 : e.items]);
3730
- const c = Ie(
3732
+ const c = Oe(
3731
3733
  () => o.map((m) => {
3732
- const { id: p, name: h } = m, y = Wt(h);
3734
+ const { id: p, name: h } = m, y = jt(h);
3733
3735
  return /* @__PURE__ */ r(or, { color: y, children: h }, `${p}`);
3734
3736
  }),
3735
3737
  [o]
3736
3738
  );
3737
- return Ie(() => a ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ r(
3739
+ return Oe(() => a ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ r(
3738
3740
  "div",
3739
3741
  {
3740
3742
  style: {
@@ -3751,8 +3753,8 @@ const wl = (e) => {
3751
3753
  text: Sl,
3752
3754
  one2many: Vr,
3753
3755
  many2many: Vr,
3754
- progressbar: Ol,
3755
- float_time: Il,
3756
+ progressbar: Il,
3757
+ float_time: Ol,
3756
3758
  image: Rl,
3757
3759
  integer: Ar,
3758
3760
  float: Ar,
@@ -3786,21 +3788,21 @@ const wl = (e) => {
3786
3788
  onFetchChildrenForRecord: b,
3787
3789
  childField: x,
3788
3790
  rootTree: S = !1,
3789
- context: O,
3791
+ context: I,
3790
3792
  readonly: _,
3791
3793
  onSelectAllRecords: V
3792
- } = e, F = le(null), [T, R] = v([]), C = le(!1), [I, A] = v(), { t: N } = we(), j = le(i), H = oe(
3794
+ } = e, F = le(null), [T, R] = v([]), C = le(!1), [O, A] = v(), { t: N } = we(), j = le(i), H = oe(
3793
3795
  nt
3794
- ), { title: U = void 0, setTitle: k = void 0 } = (S ? H : {}) || {}, Y = Ie(() => {
3795
- if (I)
3796
+ ), { title: U = void 0, setTitle: k = void 0 } = (S ? H : {}) || {}, Y = Oe(() => {
3797
+ if (O)
3796
3798
  return Js(
3797
- I,
3799
+ O,
3798
3800
  {
3799
3801
  ...kl
3800
3802
  },
3801
- O
3803
+ I
3802
3804
  );
3803
- }, [O, I]);
3805
+ }, [I, O]);
3804
3806
  pt(t, () => ({
3805
3807
  unselectAll: () => {
3806
3808
  var X;
@@ -3810,15 +3812,15 @@ const wl = (e) => {
3810
3812
  const X = At(s);
3811
3813
  A(X), X.string && U !== X.string && (k == null || k(X.string));
3812
3814
  }, [s, U]), he(() => {
3813
- if (!I)
3815
+ if (!O)
3814
3816
  return;
3815
3817
  C.current = !1;
3816
- const X = mo(I, a);
3818
+ const X = mo(O, a);
3817
3819
  R(X);
3818
3820
  }, [a]), he(() => {
3819
3821
  j.current = i;
3820
3822
  }, [i]);
3821
- const q = (n - 1) * j.current + 1, Z = q - 1 + T.length, re = o === void 0 ? null : o === 0 ? N("no_results") : N("summary").replace("{from}", q == null ? void 0 : q.toString()).replace("{to}", Z == null ? void 0 : Z.toString()).replace("{total}", o == null ? void 0 : o.toString()), B = Ie(() => {
3823
+ const q = (n - 1) * j.current + 1, Z = q - 1 + T.length, re = o === void 0 ? null : o === 0 ? N("no_results") : N("summary").replace("{from}", q == null ? void 0 : q.toString()).replace("{to}", Z == null ? void 0 : Z.toString()).replace("{total}", o == null ? void 0 : o.toString()), B = Oe(() => {
3822
3824
  if (!f || s.isExpandable)
3823
3825
  return null;
3824
3826
  const X = T == null ? void 0 : T.filter(
@@ -3858,10 +3860,10 @@ const wl = (e) => {
3858
3860
  re,
3859
3861
  o,
3860
3862
  s.isExpandable
3861
- ]), E = Ie(() => {
3862
- if (!I)
3863
+ ]), E = Oe(() => {
3864
+ if (!O)
3863
3865
  return null;
3864
- const X = I.columns.filter((z) => z.sum !== void 0).map((z) => ({ label: z.sum, field: z.id }));
3866
+ const X = O.columns.filter((z) => z.sum !== void 0).map((z) => ({ label: z.sum, field: z.id }));
3865
3867
  if (!X || X.length === 0)
3866
3868
  return null;
3867
3869
  const te = [], ve = (c == null ? void 0 : c.length) > 0 ? T.filter((z) => c.includes(z.id)) : T;
@@ -3869,11 +3871,11 @@ const wl = (e) => {
3869
3871
  const se = ve.reduce((Se, Ee) => Ee[z.field] && !isNaN(Ee[z.field]) ? Se + Ee[z.field] : Se, 0);
3870
3872
  te.push(`${z.label}: ${Math.round(se * 100) / 100}`);
3871
3873
  }), /* @__PURE__ */ r("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: te.join(", ") });
3872
- }, [T, c, I]), K = Ie(() => {
3873
- if (I !== null && Y && Y.length > 0)
3874
+ }, [T, c, O]), K = Oe(() => {
3875
+ if (O !== null && Y && Y.length > 0)
3874
3876
  return ll(Y, T, 600);
3875
- }, [Y, T, I]), $ = Ie(() => p && (I != null && I.columns.some((X) => X.sum !== void 0)) ? p - 30 : p, [p, I == null ? void 0 : I.columns]);
3876
- return I === null || !K || ((ce = K == null ? void 0 : K.columns) == null ? void 0 : ce.length) === 0 ? /* @__PURE__ */ r($e, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(oo, { children: [
3877
+ }, [Y, T, O]), $ = Oe(() => p && (O != null && O.columns.some((X) => X.sum !== void 0)) ? p - 30 : p, [p, O == null ? void 0 : O.columns]);
3878
+ return O === null || !K || ((ce = K == null ? void 0 : K.columns) == null ? void 0 : ce.length) === 0 ? /* @__PURE__ */ r($e, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(oo, { children: [
3877
3879
  B,
3878
3880
  /* @__PURE__ */ r(
3879
3881
  os,
@@ -3899,7 +3901,7 @@ const wl = (e) => {
3899
3901
  readonly: _,
3900
3902
  expandableOpts: b ? {
3901
3903
  expandIcon: Fi,
3902
- collapseIcon: Oi,
3904
+ collapseIcon: Ii,
3903
3905
  loadingIcon: gt,
3904
3906
  onFetchChildrenForRecord: b,
3905
3907
  childField: x
@@ -3909,8 +3911,8 @@ const wl = (e) => {
3909
3911
  E
3910
3912
  ] });
3911
3913
  }
3912
- ), Jt = $n(So);
3913
- Jt.displayName = "Tree";
3914
+ ), Xt = Hn(So);
3915
+ Xt.displayName = "Tree";
3914
3916
  So.displayName = "UnmemoizedTree";
3915
3917
  const To = (e) => {
3916
3918
  const {
@@ -3934,11 +3936,11 @@ const To = (e) => {
3934
3936
  domain: b,
3935
3937
  currentId: x,
3936
3938
  limit: S,
3937
- setLimit: O,
3939
+ setLimit: I,
3938
3940
  searchParams: _ = [],
3939
3941
  setSearchValues: V,
3940
3942
  clearSelection: F
3941
- } = e, [T, R] = v(!1), [C, I] = v(!1), [A, N] = v(), [j, H] = v(1), [U, k] = v(0), [Y, q] = v(), [Z, re] = v([]), [B, E] = v(void 0), [K, $] = v(void 0), ce = le(S || St), X = le([]), te = de(
3943
+ } = e, [T, R] = v(!1), [C, O] = v(!1), [A, N] = v(), [j, H] = v(1), [U, k] = v(0), [Y, q] = v(), [Z, re] = v([]), [B, E] = v(void 0), [K, $] = v(void 0), ce = le(S || St), X = le([]), te = de(
3942
3944
  (ae) => {
3943
3945
  g == null || g([...ae]), re([...ae]);
3944
3946
  },
@@ -3962,7 +3964,7 @@ const To = (e) => {
3962
3964
  context: u,
3963
3965
  attrs: W
3964
3966
  }), Ve = Ce[0];
3965
- X.current = [...Ve], E(tn(Ce[1])), $(Sr(Ce[1]));
3967
+ X.current = [...Ve], E(nn(Ce[1])), $(Sr(Ce[1]));
3966
3968
  const me = Ve.map((fe) => fe.id), ye = p !== void 0 ? Dt({
3967
3969
  resultsToSort: Ve,
3968
3970
  sorter: p,
@@ -3986,7 +3988,7 @@ const To = (e) => {
3986
3988
  f
3987
3989
  ]), se = de(
3988
3990
  async (ae) => {
3989
- const { params: _e, newOffset: je } = ae || {}, Ke = jt(_e || _, b), { colors: W, status: Ce } = At(c), Ve = {};
3991
+ const { params: _e, newOffset: je } = ae || {}, Ke = Ut(_e || _, b), { colors: W, status: Ce } = At(c), Ve = {};
3990
3992
  W && (Ve.colors = W), Ce && (Ve.status = Ce);
3991
3993
  const { totalItems: me, results: ye, attrsEvaluated: fe } = await P.getHandler().searchForTree({
3992
3994
  params: Ke,
@@ -3997,7 +3999,7 @@ const To = (e) => {
3997
3999
  context: u,
3998
4000
  attrs: Ve
3999
4001
  });
4000
- E(tn(fe)), $(Sr(fe)), X.current = [...ye];
4002
+ E(nn(fe)), $(Sr(fe)), X.current = [...ye];
4001
4003
  const ne = p !== void 0 ? Dt({
4002
4004
  resultsToSort: ye,
4003
4005
  sorter: p,
@@ -4036,7 +4038,7 @@ const To = (e) => {
4036
4038
  } catch (_e) {
4037
4039
  N(typeof _e == "string" ? _e : _e.message), R(!1);
4038
4040
  } finally {
4039
- i == null || i([]), I(!1), a == null || a(!1);
4041
+ i == null || i([]), O(!1), a == null || a(!1);
4040
4042
  }
4041
4043
  },
4042
4044
  [
@@ -4071,7 +4073,7 @@ const To = (e) => {
4071
4073
  ), ke = de(
4072
4074
  (ae) => {
4073
4075
  const { params: _e, searchValues: je, limit: Ke, offset: W } = ae;
4074
- T || (n == null || n(void 0), i == null || i([]), V == null || V(je), o == null || o(_e), s == null || s(!1), I(!0), N(void 0), H(1), Ke && (ce.current = Ke, O == null || O(Ke)), W && k(W), Se({
4076
+ T || (n == null || n(void 0), i == null || i([]), V == null || V(je), o == null || o(_e), s == null || s(!1), O(!0), N(void 0), H(1), Ke && (ce.current = Ke, I == null || I(Ke)), W && k(W), Se({
4075
4077
  params: _e,
4076
4078
  newOffset: W
4077
4079
  }));
@@ -4084,7 +4086,7 @@ const To = (e) => {
4084
4086
  o,
4085
4087
  s,
4086
4088
  Se,
4087
- O
4089
+ I
4088
4090
  ]
4089
4091
  ), Me = de(
4090
4092
  (ae) => {
@@ -4092,13 +4094,13 @@ const To = (e) => {
4092
4094
  },
4093
4095
  [R, S, k, H]
4094
4096
  ), ue = de(() => {
4095
- T || (n == null || n(void 0), o == null || o([]), V == null || V({}), N(void 0), k(0), H(1), O == null || O(S || St));
4097
+ T || (n == null || n(void 0), o == null || o([]), V == null || V({}), N(void 0), k(0), H(1), I == null || I(S || St));
4096
4098
  }, [
4097
4099
  T,
4098
4100
  n,
4099
4101
  o,
4100
4102
  V,
4101
- O,
4103
+ I,
4102
4104
  S
4103
4105
  ]), Fe = de(
4104
4106
  async (ae) => {
@@ -4112,7 +4114,7 @@ const To = (e) => {
4112
4114
  },
4113
4115
  [c, t, u, ve, te]
4114
4116
  ), Le = de(async () => await P.getHandler().searchAllIds({
4115
- params: jt(_, b),
4117
+ params: Ut(_, b),
4116
4118
  model: t,
4117
4119
  context: u,
4118
4120
  totalItems: Y
@@ -4138,7 +4140,7 @@ const To = (e) => {
4138
4140
  };
4139
4141
  };
4140
4142
  function Pl(e, t) {
4141
- var at;
4143
+ var lt;
4142
4144
  const {
4143
4145
  model: n,
4144
4146
  formView: i,
@@ -4151,7 +4153,7 @@ function Pl(e, t) {
4151
4153
  rootTree: f = !1,
4152
4154
  parentContext: c = {},
4153
4155
  onChangeSelectedRowKeys: m
4154
- } = e, [p, h] = v(!1), [y, g] = v(!1), w = le(!1), b = le(null), [x, S] = v(), [O, _] = v(), [V, F] = v(), [T, R] = v(), [C, I] = v(200), A = le(), { height: N } = hn(), j = oe(
4156
+ } = e, [p, h] = v(!1), [y, g] = v(!1), w = le(!1), b = le(null), [x, S] = v(), [I, _] = v(), [V, F] = v(), [T, R] = v(), [C, O] = v(200), A = le(), { height: N } = pn(), j = oe(
4155
4157
  Lt
4156
4158
  ), { processAction: H } = j || {}, U = oe(
4157
4159
  nt
@@ -4211,7 +4213,7 @@ function Pl(e, t) {
4211
4213
  searchNameGetDoneRef: w,
4212
4214
  context: c,
4213
4215
  formView: V,
4214
- treeView: O,
4216
+ treeView: I,
4215
4217
  sorter: X,
4216
4218
  setSorter: te,
4217
4219
  setCurrentItemIndex: Y,
@@ -4222,18 +4224,18 @@ function Pl(e, t) {
4222
4224
  setActionViewTotalItems: ve,
4223
4225
  limit: ke,
4224
4226
  setLimit: Me,
4225
- clearSelection: (at = b.current) == null ? void 0 : at.unselectAll
4227
+ clearSelection: (lt = b.current) == null ? void 0 : lt.unselectAll
4226
4228
  });
4227
4229
  pt(t, () => ({
4228
4230
  refreshResults: () => {
4229
4231
  w.current = !1, ae();
4230
4232
  },
4231
- getFields: () => O == null ? void 0 : O.fields,
4233
+ getFields: () => I == null ? void 0 : I.fields,
4232
4234
  getDomain: () => d
4233
4235
  })), he(() => {
4234
- y && u && O && (w.current = !1, ae());
4235
- }, [W, Ve, y, u, a, O]);
4236
- const Oe = async () => {
4236
+ y && u && I && (w.current = !1, ae());
4237
+ }, [W, Ve, y, u, a, I]);
4238
+ const Ie = async () => {
4237
4239
  g(!1), h(!0), R(void 0), se == null || se(!0);
4238
4240
  try {
4239
4241
  await xe(), g(!0);
@@ -4258,7 +4260,7 @@ function Pl(e, t) {
4258
4260
  })), F(Ne), _(ot);
4259
4261
  };
4260
4262
  he(() => {
4261
- Oe();
4263
+ Ie();
4262
4264
  }, [n]);
4263
4265
  const Te = de(
4264
4266
  (Ne) => {
@@ -4269,14 +4271,14 @@ function Pl(e, t) {
4269
4271
  async (Ne) => {
4270
4272
  const { id: ot } = Ne;
4271
4273
  A.current || (A.current = await P.getHandler().treeButOpen({
4272
- id: O.view_id,
4274
+ id: I.view_id,
4273
4275
  model: x,
4274
4276
  context: c
4275
4277
  }));
4276
4278
  const ut = A.current[0][2];
4277
4279
  await (H == null ? void 0 : H({
4278
4280
  actionData: ut,
4279
- fields: O.fields,
4281
+ fields: I.fields,
4280
4282
  values: {
4281
4283
  active_id: ot,
4282
4284
  ...Ne
@@ -4284,15 +4286,15 @@ function Pl(e, t) {
4284
4286
  context: c
4285
4287
  }));
4286
4288
  },
4287
- [x, c, H, O]
4289
+ [x, c, H, I]
4288
4290
  ), tt = de(
4289
4291
  async (Ne) => {
4290
4292
  const { id: ot } = Ne;
4291
- if (O != null && O.isExpandable) {
4293
+ if (I != null && I.isExpandable) {
4292
4294
  try {
4293
4295
  await Ae(Ne);
4294
4296
  } catch (ut) {
4295
- Qe(ut);
4297
+ Ze(ut);
4296
4298
  }
4297
4299
  return;
4298
4300
  }
@@ -4300,24 +4302,24 @@ function Pl(e, t) {
4300
4302
  id: ot,
4301
4303
  model: x,
4302
4304
  formView: V,
4303
- treeView: O
4305
+ treeView: I
4304
4306
  });
4305
4307
  },
4306
- [x, V, s, Ae, O]
4308
+ [x, V, s, Ae, I]
4307
4309
  ), Ye = de(async () => {
4308
4310
  const Ne = await ie();
4309
4311
  B == null || B(Ne.map((ot) => ({ id: ot }))), m == null || m(Ne);
4310
- }, [ie, m, B]), bt = Ie(() => O != null && O.isExpandable ? N - 160 : N - (C + 240), [N, C, O == null ? void 0 : O.isExpandable]), st = Ie(
4312
+ }, [ie, m, B]), bt = Oe(() => I != null && I.isExpandable ? N - 160 : N - (C + 240), [N, C, I == null ? void 0 : I.isExpandable]), at = Oe(
4311
4313
  () => re == null ? void 0 : re.map((Ne) => Ne.id),
4312
4314
  [re]
4313
- ), Xt = de(() => !O || !V ? null : /* @__PURE__ */ D(ee, { children: [
4315
+ ), Qt = de(() => !I || !V ? null : /* @__PURE__ */ D(ee, { children: [
4314
4316
  /* @__PURE__ */ r(
4315
4317
  vo,
4316
4318
  {
4317
- fields: { ...V.fields, ...O.fields },
4319
+ fields: { ...V.fields, ...I.fields },
4318
4320
  searchFields: po([
4319
4321
  V.search_fields,
4320
- O.search_fields
4322
+ I.search_fields
4321
4323
  ]),
4322
4324
  onClear: Le,
4323
4325
  limit: ke,
@@ -4325,21 +4327,21 @@ function Pl(e, t) {
4325
4327
  isSearching: je,
4326
4328
  onSubmit: Fe,
4327
4329
  onLimitChange: Te,
4328
- setSearchFilterHeight: I,
4330
+ setSearchFilterHeight: O,
4329
4331
  searchError: Ke,
4330
4332
  searchVisible: $,
4331
4333
  searchValues: Se
4332
4334
  }
4333
4335
  ),
4334
4336
  /* @__PURE__ */ r(
4335
- Jt,
4337
+ Xt,
4336
4338
  {
4337
4339
  ref: b,
4338
4340
  context: c,
4339
4341
  total: G,
4340
4342
  limit: Ce,
4341
4343
  page: W,
4342
- treeView: O,
4344
+ treeView: I,
4343
4345
  results: me(),
4344
4346
  onRequestPageChange: ye,
4345
4347
  loading: _e,
@@ -4347,12 +4349,12 @@ function Pl(e, t) {
4347
4349
  scrollY: l || bt,
4348
4350
  colorsForResults: We,
4349
4351
  statusForResults: De,
4350
- selectedRowKeys: st,
4352
+ selectedRowKeys: at,
4351
4353
  onRowSelectionChange: ue,
4352
4354
  sorter: X,
4353
4355
  onChangeSort: fe,
4354
- onFetchChildrenForRecord: O.isExpandable ? ne : void 0,
4355
- childField: O.field_parent,
4356
+ onFetchChildrenForRecord: I.isExpandable ? ne : void 0,
4357
+ childField: I.field_parent,
4356
4358
  rootTree: f,
4357
4359
  onSelectAllRecords: Ye
4358
4360
  }
@@ -4380,18 +4382,18 @@ function Pl(e, t) {
4380
4382
  Se,
4381
4383
  $,
4382
4384
  Ye,
4383
- st,
4385
+ at,
4384
4386
  X,
4385
4387
  De,
4386
4388
  Fe,
4387
4389
  _e,
4388
4390
  G,
4389
4391
  l,
4390
- O
4392
+ I
4391
4393
  ]), $t = T || Ke;
4392
- return $t ? /* @__PURE__ */ r(Ze, { className: "mt-10", message: $t, type: "error", banner: !0 }) : /* @__PURE__ */ r("div", { style: u ? {} : { display: "none" }, children: p ? /* @__PURE__ */ r($e, {}) : Xt() });
4394
+ return $t ? /* @__PURE__ */ r(Je, { className: "mt-10", message: $t, type: "error", banner: !0 }) : /* @__PURE__ */ r("div", { style: u ? {} : { display: "none" }, children: p ? /* @__PURE__ */ r($e, {}) : Qt() });
4393
4395
  }
4394
- const Fo = ht(Pl), Oo = (e) => {
4396
+ const Fo = ht(Pl), Io = (e) => {
4395
4397
  const {
4396
4398
  visible: t,
4397
4399
  onCloseModal: n,
@@ -4400,7 +4402,7 @@ const Fo = ht(Pl), Oo = (e) => {
4400
4402
  nameSearch: s,
4401
4403
  domain: a,
4402
4404
  context: l = {}
4403
- } = e, [d, u] = v(!1), { modalWidth: f, modalHeight: c } = hn(), { t: m } = we(), [p, h] = v([]), y = async () => {
4405
+ } = e, [d, u] = v(!1), { modalWidth: f, modalHeight: c } = pn(), { t: m } = we(), [p, h] = v([]), y = async () => {
4404
4406
  await new Promise((x) => setTimeout(x, 5)), n();
4405
4407
  }, g = async (x) => {
4406
4408
  const { id: S } = x;
@@ -4426,12 +4428,12 @@ const Fo = ht(Pl), Oo = (e) => {
4426
4428
  onChangeSelectedRowKeys: h
4427
4429
  }
4428
4430
  ),
4429
- /* @__PURE__ */ r(ln, {}),
4431
+ /* @__PURE__ */ r(cn, {}),
4430
4432
  /* @__PURE__ */ r(Re, { justify: "end", children: /* @__PURE__ */ D(Ge, { children: [
4431
4433
  /* @__PURE__ */ r(
4432
4434
  Pe,
4433
4435
  {
4434
- icon: /* @__PURE__ */ r(un, {}),
4436
+ icon: /* @__PURE__ */ r(fn, {}),
4435
4437
  onClick: () => {
4436
4438
  u(!0);
4437
4439
  },
@@ -4441,7 +4443,7 @@ const Fo = ht(Pl), Oo = (e) => {
4441
4443
  /* @__PURE__ */ r(
4442
4444
  Pe,
4443
4445
  {
4444
- icon: /* @__PURE__ */ r(dn, {}),
4446
+ icon: /* @__PURE__ */ r(un, {}),
4445
4447
  onClick: () => {
4446
4448
  w();
4447
4449
  },
@@ -4449,12 +4451,12 @@ const Fo = ht(Pl), Oo = (e) => {
4449
4451
  children: m("ok")
4450
4452
  }
4451
4453
  ),
4452
- /* @__PURE__ */ r(Pe, { icon: /* @__PURE__ */ r(Ut, {}), onClick: y, children: m("cancel") })
4454
+ /* @__PURE__ */ r(Pe, { icon: /* @__PURE__ */ r(Gt, {}), onClick: y, children: m("cancel") })
4453
4455
  ] }) })
4454
4456
  ] });
4455
4457
  return /* @__PURE__ */ D(ee, { children: [
4456
4458
  /* @__PURE__ */ r(
4457
- Je,
4459
+ Xe,
4458
4460
  {
4459
4461
  title: m("search"),
4460
4462
  centered: !0,
@@ -4469,7 +4471,7 @@ const Fo = ht(Pl), Oo = (e) => {
4469
4471
  }
4470
4472
  ),
4471
4473
  /* @__PURE__ */ r(
4472
- zt,
4474
+ Jt,
4473
4475
  {
4474
4476
  model: o,
4475
4477
  visible: d,
@@ -4483,14 +4485,14 @@ const Fo = ht(Pl), Oo = (e) => {
4483
4485
  }
4484
4486
  )
4485
4487
  ] });
4486
- }, { error: Ml } = Je, rn = (e) => {
4488
+ }, { error: Ml } = Xe, on = (e) => {
4487
4489
  Ml({
4488
4490
  title: "Error",
4489
4491
  icon: /* @__PURE__ */ r(vt, {}),
4490
4492
  centered: !0,
4491
4493
  content: e
4492
4494
  });
4493
- }, { defaultAlgorithm: Nl, defaultSeed: Ll } = Be, Io = Nl(Ll), $l = (e) => {
4495
+ }, { defaultAlgorithm: Nl, defaultSeed: Ll } = Be, Oo = Nl(Ll), $l = (e) => {
4494
4496
  const { ooui: t } = e, { required: n } = t;
4495
4497
  return /* @__PURE__ */ r(be, { required: n, type: "array", validator: async (o, s) => {
4496
4498
  if (!s)
@@ -4508,14 +4510,14 @@ const Fo = ht(Pl), Oo = (e) => {
4508
4510
  context: l,
4509
4511
  id: d,
4510
4512
  domain: u
4511
- } = i, f = o && !a ? { backgroundColor: Io.colorPrimaryBg } : void 0, [c, m] = v(!1), [p, h] = v(!1), [y, g] = v(!1), [w, b] = v(), x = le(!1), [S, O] = v(""), _ = le(), V = oe(He), { domain: F, getValues: T, getFields: R, getContext: C, elementHasLostFocus: I } = V || {}, A = le([]), [N, j] = v([]), H = t && t[0] || void 0, U = t && t[1] || "";
4513
+ } = i, f = o && !a ? { backgroundColor: Oo.colorPrimaryBg } : void 0, [c, m] = v(!1), [p, h] = v(!1), [y, g] = v(!1), [w, b] = v(), x = le(!1), [S, I] = v(""), _ = le(), V = oe(He), { domain: F, getValues: T, getFields: R, getContext: C, elementHasLostFocus: O } = V || {}, A = le([]), [N, j] = v([]), H = t && t[0] || void 0, U = t && t[1] || "";
4512
4514
  he(() => {
4513
4515
  !Array.isArray(t) && t && re(t);
4514
4516
  }, [t]), he(() => {
4515
- H && U.length === 0 ? re(H) : H && U.length > 0 ? O(U) : !H && !U && O(_.current || "");
4517
+ H && U.length === 0 ? re(H) : H && U.length > 0 ? I(U) : !H && !U && I(_.current || "");
4516
4518
  }, [t]);
4517
4519
  const k = ($) => {
4518
- n == null || n($), I == null || I();
4520
+ n == null || n($), O == null || O();
4519
4521
  }, Y = ($) => {
4520
4522
  _.current = $.target.value, k([void 0, ""]);
4521
4523
  }, q = async () => {
@@ -4537,7 +4539,7 @@ const Fo = ht(Pl), Oo = (e) => {
4537
4539
  $.length === 1 ? (_.current = void 0, k($[0])) : Z(_.current);
4538
4540
  }
4539
4541
  } catch ($) {
4540
- rn($);
4542
+ on($);
4541
4543
  } finally {
4542
4544
  g(!1);
4543
4545
  }
@@ -4565,7 +4567,7 @@ const Fo = ht(Pl), Oo = (e) => {
4565
4567
  });
4566
4568
  k([$, ce[0][1]]);
4567
4569
  } catch (ce) {
4568
- rn(ce);
4570
+ on(ce);
4569
4571
  } finally {
4570
4572
  g(!1);
4571
4573
  }
@@ -4617,7 +4619,7 @@ const Fo = ht(Pl), Oo = (e) => {
4617
4619
  /* @__PURE__ */ r(pe, { flex: "none", style: { paddingRight: 0, paddingLeft: 0 }, children: /* @__PURE__ */ r(
4618
4620
  Pe,
4619
4621
  {
4620
- icon: /* @__PURE__ */ r(jn, {}),
4622
+ icon: /* @__PURE__ */ r(Un, {}),
4621
4623
  disabled: H === void 0 || U === "" || S === void 0,
4622
4624
  onClick: () => {
4623
4625
  h(!0);
@@ -4629,7 +4631,7 @@ const Fo = ht(Pl), Oo = (e) => {
4629
4631
  /* @__PURE__ */ r(pe, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ r(
4630
4632
  Pe,
4631
4633
  {
4632
- icon: y ? /* @__PURE__ */ r(gt, {}) : /* @__PURE__ */ r(Yn, {}),
4634
+ icon: y ? /* @__PURE__ */ r(gt, {}) : /* @__PURE__ */ r(qn, {}),
4633
4635
  disabled: a || y,
4634
4636
  onClick: () => {
4635
4637
  x.current = !0, Z(U);
@@ -4639,7 +4641,7 @@ const Fo = ht(Pl), Oo = (e) => {
4639
4641
  }
4640
4642
  ) }),
4641
4643
  /* @__PURE__ */ r(
4642
- Oo,
4644
+ Io,
4643
4645
  {
4644
4646
  model: s,
4645
4647
  domain: N,
@@ -4655,7 +4657,7 @@ const Fo = ht(Pl), Oo = (e) => {
4655
4657
  }
4656
4658
  ),
4657
4659
  /* @__PURE__ */ r(
4658
- zt,
4660
+ Jt,
4659
4661
  {
4660
4662
  model: s,
4661
4663
  parentContext: { ...C == null ? void 0 : C(), ...l },
@@ -4674,7 +4676,7 @@ const Fo = ht(Pl), Oo = (e) => {
4674
4676
  ] });
4675
4677
  }, Hl = Mt(it)`
4676
4678
  .ant-input {
4677
- background-color: ${Io.colorPrimaryBg};
4679
+ background-color: ${Oo.colorPrimaryBg};
4678
4680
  }
4679
4681
  `, _o = rt.createContext(
4680
4682
  null
@@ -4697,7 +4699,7 @@ const Fo = ht(Pl), Oo = (e) => {
4697
4699
  children: e
4698
4700
  }
4699
4701
  );
4700
- }, on = 0.7, sn = 30, Vo = (e) => {
4702
+ }, sn = 0.7, an = 30, Vo = (e) => {
4701
4703
  const [t, n] = v(0), [i, o] = v(0), { value: s, totalValue: a, percent: l, color: d, icon: u, suffix: f, showPercent: c } = e;
4702
4704
  return /* @__PURE__ */ r(
4703
4705
  tr,
@@ -4750,7 +4752,7 @@ function Kl({
4750
4752
  icon: a,
4751
4753
  suffix: l
4752
4754
  }) {
4753
- let d = n * on < sn ? sn : n * on;
4755
+ let d = n * sn < an ? an : n * sn;
4754
4756
  const u = o == null ? void 0 : o.toLocaleString("es-ES", {
4755
4757
  useGrouping: !0
4756
4758
  }), f = i == null ? void 0 : i.toLocaleString("es-ES", {
@@ -4763,7 +4765,7 @@ function Kl({
4763
4765
  `bold ${Math.floor(d * 1.03)}px sans-serif`
4764
4766
  );
4765
4767
  a && (m = m * 2), m >= t * 0.85 && (d = t * 0.85 / m * d);
4766
- const p = a && ct(a, { style: { fontSize: d * 0.7 } });
4768
+ const p = a && st(a, { style: { fontSize: d * 0.7 } });
4767
4769
  return /* @__PURE__ */ r(
4768
4770
  "div",
4769
4771
  {
@@ -4776,7 +4778,7 @@ function Kl({
4776
4778
  justifyContent: "center",
4777
4779
  overflow: "hidden"
4778
4780
  },
4779
- children: /* @__PURE__ */ D(Dn, { style: { fontSize: d, margin: 0, color: s }, children: [
4781
+ children: /* @__PURE__ */ D(En, { style: { fontSize: d, margin: 0, color: s }, children: [
4780
4782
  p && /* @__PURE__ */ r(p, { style: { fontSize: d * 0.7 } }),
4781
4783
  p ? ` ${c}` : c
4782
4784
  ] })
@@ -4795,7 +4797,7 @@ function Wl({
4795
4797
  suffix: d
4796
4798
  }) {
4797
4799
  const u = t * 0.65;
4798
- let f = u * on < sn ? sn : u * on;
4800
+ let f = u * sn < an ? an : u * sn;
4799
4801
  const c = s == null ? void 0 : s.toLocaleString("es-ES", {
4800
4802
  useGrouping: !0
4801
4803
  });
@@ -4811,7 +4813,7 @@ function Wl({
4811
4813
  `bold ${Math.floor(f * 1.03)}px sans-serif`
4812
4814
  );
4813
4815
  l && (h = h * 1.5), (h >= n * 0.85 || f * 2 < u) && (f = n * 0.85 / h * f);
4814
- const y = l && ct(l, { style: { fontSize: f } });
4816
+ const y = l && st(l, { style: { fontSize: f } });
4815
4817
  return /* @__PURE__ */ r(
4816
4818
  "div",
4817
4819
  {
@@ -4829,9 +4831,9 @@ function Wl({
4829
4831
  children: /* @__PURE__ */ D(Re, { align: "middle", children: [
4830
4832
  y && /* @__PURE__ */ r(pe, { style: { fontSize: f * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ r(y, {}) }),
4831
4833
  /* @__PURE__ */ D(pe, { children: [
4832
- /* @__PURE__ */ r(Dn, { style: { fontSize: f * 0.8, margin: 0, color: a }, children: y ? ` ${i}%` : `${i}%` }),
4834
+ /* @__PURE__ */ r(En, { style: { fontSize: f * 0.8, margin: 0, color: a }, children: y ? ` ${i}%` : `${i}%` }),
4833
4835
  /* @__PURE__ */ r(
4834
- Dn,
4836
+ En,
4835
4837
  {
4836
4838
  style: {
4837
4839
  fontSize: f * 0.4,
@@ -4847,7 +4849,7 @@ function Wl({
4847
4849
  }
4848
4850
  );
4849
4851
  }
4850
- const gn = () => /* @__PURE__ */ r(
4852
+ const yn = () => /* @__PURE__ */ r(
4851
4853
  "div",
4852
4854
  {
4853
4855
  style: {
@@ -4872,15 +4874,15 @@ const gn = () => /* @__PURE__ */ r(
4872
4874
  field: u,
4873
4875
  operator: f,
4874
4876
  manualIds: c
4875
- } = e, [m, p] = v(!1), [h, y] = v(), [g, w] = v(), [b, x] = v(), [S, O] = v(), [_, V] = v(), [F, T] = v(), [R] = Xe(
4877
+ } = e, [m, p] = v(!1), [h, y] = v(), [g, w] = v(), [b, x] = v(), [S, I] = v(), [_, V] = v(), [F, T] = v(), [R] = Qe(
4876
4878
  P.getHandler().searchAllIds
4877
- ), [C] = Xe(
4879
+ ), [C] = Qe(
4878
4880
  P.getHandler().readObjects
4879
- ), [I] = Xe(
4881
+ ), [O] = Qe(
4880
4882
  P.getHandler().searchCount
4881
- ), [A] = Xe(
4883
+ ), [A] = Qe(
4882
4884
  P.getHandler().evalDomain
4883
- ), [N] = Xe(
4885
+ ), [N] = Qe(
4884
4886
  P.getHandler().parseCondition
4885
4887
  );
4886
4888
  he(() => {
@@ -4908,7 +4910,7 @@ const gn = () => /* @__PURE__ */ r(
4908
4910
  operator: f
4909
4911
  });
4910
4912
  } else
4911
- return c ? c.length : await I({
4913
+ return c ? c.length : await O({
4912
4914
  model: t,
4913
4915
  params: k,
4914
4916
  context: i
@@ -4931,7 +4933,7 @@ const gn = () => /* @__PURE__ */ r(
4931
4933
  operator: f
4932
4934
  });
4933
4935
  } else
4934
- return await I({
4936
+ return await O({
4935
4937
  model: t,
4936
4938
  params: k,
4937
4939
  context: i
@@ -4959,7 +4961,7 @@ const gn = () => /* @__PURE__ */ r(
4959
4961
  values: { value: q, percent: Y },
4960
4962
  context: i
4961
4963
  });
4962
- O(Z);
4964
+ I(Z);
4963
4965
  }
4964
4966
  if (l)
4965
4967
  if (l.indexOf(":") !== -1) {
@@ -4977,7 +4979,7 @@ const gn = () => /* @__PURE__ */ r(
4977
4979
  }
4978
4980
  p(!1);
4979
4981
  }
4980
- return m ? /* @__PURE__ */ r(gn, {}) : F ? /* @__PURE__ */ r(Ze, { className: "mt-10", message: F, type: "error", banner: !0 }) : /* @__PURE__ */ r(
4982
+ return m ? /* @__PURE__ */ r(yn, {}) : F ? /* @__PURE__ */ r(Je, { className: "mt-10", message: F, type: "error", banner: !0 }) : /* @__PURE__ */ r(
4981
4983
  Vo,
4982
4984
  {
4983
4985
  value: h,
@@ -4998,13 +5000,13 @@ const gn = () => /* @__PURE__ */ r(
4998
5000
  limit: s,
4999
5001
  uninformedString: a,
5000
5002
  manualIds: l
5001
- } = e, [d, u] = v(!1), [f, c] = v(), [m, p] = v(), [h, y] = v(), [g, w] = v("line"), [b] = Xe(
5003
+ } = e, [d, u] = v(!1), [f, c] = v(), [m, p] = v(), [h, y] = v(), [g, w] = v("line"), [b] = Qe(
5002
5004
  P.getHandler().getFields
5003
- ), [x] = Xe(
5005
+ ), [x] = Qe(
5004
5006
  P.getHandler().readObjects
5005
- ), [S] = Xe(P.getHandler().search), O = de(async () => {
5007
+ ), [S] = Qe(P.getHandler().search), I = de(async () => {
5006
5008
  u(!0), c(void 0);
5007
- const _ = Wn(o);
5009
+ const _ = jn(o);
5008
5010
  w(_.type || "line");
5009
5011
  const V = Gl({ ooui: _ });
5010
5012
  let F, T;
@@ -5035,7 +5037,7 @@ const gn = () => /* @__PURE__ */ r(
5035
5037
  type: g,
5036
5038
  values: m,
5037
5039
  evaluatedEntries: h,
5038
- fetchData: O
5040
+ fetchData: I
5039
5041
  };
5040
5042
  y(F);
5041
5043
  const R = Ul({
@@ -5075,7 +5077,7 @@ const gn = () => /* @__PURE__ */ r(
5075
5077
  type: g,
5076
5078
  values: m,
5077
5079
  evaluatedEntries: h,
5078
- fetchData: O
5080
+ fetchData: I
5079
5081
  };
5080
5082
  };
5081
5083
  async function ql({
@@ -5135,7 +5137,7 @@ const On = (e) => (t) => {
5135
5137
  useGrouping: !0
5136
5138
  });
5137
5139
  return { name: e === "pie" ? t.x : t.type, value: n };
5138
- }, Zt = (e) => {
5140
+ }, en = (e) => {
5139
5141
  if (typeof e == "string" && Jl(e))
5140
5142
  return parseFloat(e).toLocaleString("es-ES", {
5141
5143
  useGrouping: !0
@@ -5146,8 +5148,8 @@ const On = (e) => (t) => {
5146
5148
  });
5147
5149
  if (Xl(e)) {
5148
5150
  const t = Ql(e);
5149
- return t === null ? e : et(e, an.input[t]).format(
5150
- an.output[t]
5151
+ return t === null ? e : et(e, ln.input[t]).format(
5152
+ ln.output[t]
5151
5153
  );
5152
5154
  } else
5153
5155
  return e;
@@ -5157,12 +5159,12 @@ const On = (e) => (t) => {
5157
5159
  xAxis: {
5158
5160
  tickCount: 5,
5159
5161
  label: {
5160
- formatter: Zt
5162
+ formatter: en
5161
5163
  }
5162
5164
  },
5163
5165
  yAxis: {
5164
5166
  label: {
5165
- formatter: Zt
5167
+ formatter: en
5166
5168
  }
5167
5169
  },
5168
5170
  legend: {
@@ -5202,12 +5204,12 @@ const On = (e) => (t) => {
5202
5204
  },
5203
5205
  xAxis: {
5204
5206
  label: {
5205
- formatter: Zt
5207
+ formatter: en
5206
5208
  }
5207
5209
  },
5208
5210
  yAxis: {
5209
5211
  label: {
5210
- formatter: Zt
5212
+ formatter: en
5211
5213
  }
5212
5214
  },
5213
5215
  label: {
@@ -5229,7 +5231,7 @@ const On = (e) => (t) => {
5229
5231
  function Xl(e) {
5230
5232
  return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
5231
5233
  }
5232
- const an = {
5234
+ const ln = {
5233
5235
  input: {
5234
5236
  hours: "YYYY-MM-DD HH:mm",
5235
5237
  days: "YYYY-MM-DD",
@@ -5246,10 +5248,10 @@ const an = {
5246
5248
  }
5247
5249
  };
5248
5250
  function Ql(e) {
5249
- for (const t in an.input)
5251
+ for (const t in ln.input)
5250
5252
  if (et(
5251
5253
  e,
5252
- an.input[t],
5254
+ ln.input[t],
5253
5255
  !0
5254
5256
  ).isValid())
5255
5257
  return t;
@@ -5291,13 +5293,13 @@ const Zl = {
5291
5293
  isStack: i,
5292
5294
  numItems: o
5293
5295
  }) => {
5294
- const { t: s } = we(), a = Ie(() => {
5296
+ const { t: s } = we(), a = Oe(() => {
5295
5297
  if (!(e !== "pie" || t.reduce(
5296
5298
  (p, h) => h.operator === "+" ? p + h.value : 0,
5297
5299
  0
5298
5300
  ) === 0))
5299
5301
  return t.reduce((p, h) => p + h.value, 0);
5300
- }, [t, e]), l = Ie(() => {
5302
+ }, [t, e]), l = Oe(() => {
5301
5303
  if (e === "pie")
5302
5304
  return ec(t);
5303
5305
  }, [t, e]), d = de(
@@ -5308,7 +5310,7 @@ const Zl = {
5308
5310
  return `${`${((p == null ? void 0 : p.percent) || 0).toFixed(0)}%`}`;
5309
5311
  },
5310
5312
  [l]
5311
- ), u = Ie(() => {
5313
+ ), u = Oe(() => {
5312
5314
  if (l !== void 0)
5313
5315
  return {
5314
5316
  formatter: (m, p) => d(p.id)
@@ -5376,9 +5378,9 @@ const rc = (e) => {
5376
5378
  if (Ft(() => {
5377
5379
  p();
5378
5380
  }, [o, t, s, i, n]), u || !f)
5379
- return /* @__PURE__ */ r(gn, {});
5381
+ return /* @__PURE__ */ r(yn, {});
5380
5382
  const { data: h, isGroup: y, isStack: g } = f;
5381
- return d ? /* @__PURE__ */ r(Ze, { message: d, type: "error", banner: !0 }) : /* @__PURE__ */ r(
5383
+ return d ? /* @__PURE__ */ r(Je, { message: d, type: "error", banner: !0 }) : /* @__PURE__ */ r(
5382
5384
  Eo,
5383
5385
  {
5384
5386
  type: c,
@@ -5391,7 +5393,7 @@ const rc = (e) => {
5391
5393
  }, oc = (e, t) => {
5392
5394
  const { view_id: n, model: i, context: o, domain: s, limit: a, manualIds: l } = e, [d, u] = v(!1), [f, c] = v(), [m, p] = v(), h = oe(
5393
5395
  nt
5394
- ), { setGraphIsLoading: y = void 0 } = h || {}, [g] = Xe(P.getHandler().getView);
5396
+ ), { setGraphIsLoading: y = void 0 } = h || {}, [g] = Qe(P.getHandler().getView);
5395
5397
  pt(t, () => ({
5396
5398
  refresh: () => {
5397
5399
  w();
@@ -5409,14 +5411,14 @@ const rc = (e) => {
5409
5411
  context: o
5410
5412
  });
5411
5413
  p(b.arch);
5412
- const x = Wn(b.arch);
5414
+ const x = jn(b.arch);
5413
5415
  c(x), u(!1), y == null || y(!1);
5414
5416
  } catch (b) {
5415
5417
  return console.error(b), u(!1), y == null || y(!1), /* @__PURE__ */ r(ee, { children: JSON.stringify(b) });
5416
5418
  }
5417
5419
  }
5418
5420
  if (d || !f)
5419
- return /* @__PURE__ */ r(gn, {});
5421
+ return /* @__PURE__ */ r(yn, {});
5420
5422
  switch (f.type) {
5421
5423
  case "indicatorField":
5422
5424
  case "indicator": {
@@ -5457,7 +5459,7 @@ const rc = (e) => {
5457
5459
  default:
5458
5460
  return /* @__PURE__ */ r(ee, { children: `Graph ${f.type} not implemented` });
5459
5461
  }
5460
- }, yn = ht(oc), { confirm: ic } = Je, sc = ({
5462
+ }, wn = ht(oc), { confirm: ic } = Xe, sc = ({
5461
5463
  onOk: e,
5462
5464
  t
5463
5465
  }) => {
@@ -5470,7 +5472,7 @@ const rc = (e) => {
5470
5472
  onOk: e,
5471
5473
  cancelText: t("cancel")
5472
5474
  });
5473
- }, { confirm: ac } = Je, lc = ({
5475
+ }, { confirm: ac } = Xe, lc = ({
5474
5476
  onOk: e,
5475
5477
  t
5476
5478
  }) => {
@@ -5522,7 +5524,7 @@ const rc = (e) => {
5522
5524
  ze,
5523
5525
  {
5524
5526
  tooltip: c ? "Unlink" : "Delete",
5525
- icon: c ? /* @__PURE__ */ r(Ri, {}) : /* @__PURE__ */ r(Xn, {}),
5527
+ icon: c ? /* @__PURE__ */ r(Ri, {}) : /* @__PURE__ */ r(Qn, {}),
5526
5528
  onClick: a,
5527
5529
  disabled: l === 0 || n || s !== "form" && p.length === 0
5528
5530
  }
@@ -5538,7 +5540,7 @@ const rc = (e) => {
5538
5540
  ")"
5539
5541
  ] });
5540
5542
  }
5541
- function O() {
5543
+ function I() {
5542
5544
  return /* @__PURE__ */ D(ee, { children: [
5543
5545
  w(),
5544
5546
  /* @__PURE__ */ r(
@@ -5567,7 +5569,7 @@ const rc = (e) => {
5567
5569
  ze,
5568
5570
  {
5569
5571
  tooltip: "Create new item",
5570
- icon: /* @__PURE__ */ r(un, {}),
5572
+ icon: /* @__PURE__ */ r(fn, {}),
5571
5573
  disabled: n,
5572
5574
  onClick: i
5573
5575
  }
@@ -5576,20 +5578,20 @@ const rc = (e) => {
5576
5578
  ze,
5577
5579
  {
5578
5580
  tooltip: "Search existing item",
5579
- icon: /* @__PURE__ */ r(Yn, {}),
5581
+ icon: /* @__PURE__ */ r(qn, {}),
5580
5582
  disabled: n,
5581
5583
  onClick: m
5582
5584
  }
5583
5585
  ),
5584
5586
  s !== "graph" && w(),
5585
5587
  s !== "graph" && x(),
5586
- s === "form" && O(),
5588
+ s === "form" && I(),
5587
5589
  w(),
5588
5590
  y && /* @__PURE__ */ r(
5589
5591
  ze,
5590
5592
  {
5591
5593
  tooltip: "Toggle view mode",
5592
- icon: /* @__PURE__ */ r(Ii, {}),
5594
+ icon: /* @__PURE__ */ r(Oi, {}),
5593
5595
  onClick: o
5594
5596
  }
5595
5597
  )
@@ -5598,7 +5600,7 @@ const rc = (e) => {
5598
5600
  }, uc = {
5599
5601
  form: Ur,
5600
5602
  tree: Wr,
5601
- graph: yn
5603
+ graph: wn
5602
5604
  };
5603
5605
  function fc(e) {
5604
5606
  const t = e.map((i) => i.id);
@@ -5611,7 +5613,7 @@ const mc = (e) => {
5611
5613
  var De;
5612
5614
  const { value: t, onChange: n, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = oe(
5613
5615
  _o
5614
- ), f = oe(He), { activeId: c, getFields: m, getValues: p, getContext: h, domain: y } = f || {}, { t: g } = we(), [w, b] = v(!1), [x, S] = v(!1), [O, _] = v(), [V, F] = v(!1), [T, R] = v(!1), [C, I] = v(), [A, N] = v([]), [j, H] = v(!1), U = le([]), [k, Y] = v(), q = le(), [Z, re] = v(void 0), {
5616
+ ), f = oe(He), { activeId: c, getFields: m, getValues: p, getContext: h, domain: y } = f || {}, { t: g } = we(), [w, b] = v(!1), [x, S] = v(!1), [I, _] = v(), [V, F] = v(!1), [T, R] = v(!1), [C, O] = v(), [A, N] = v([]), [j, H] = v(!1), U = le([]), [k, Y] = v(), q = le(), [Z, re] = v(void 0), {
5615
5617
  readOnly: B,
5616
5618
  relation: E,
5617
5619
  context: K,
@@ -5633,21 +5635,21 @@ const mc = (e) => {
5633
5635
  ke();
5634
5636
  }, [y]);
5635
5637
  const se = (G) => {
5636
- var ie, Oe;
5638
+ var ie, Ie;
5637
5639
  n == null || n({
5638
- fields: ((ie = o.get("form")) == null ? void 0 : ie.fields) || ((Oe = o.get("tree")) == null ? void 0 : Oe.fields),
5640
+ fields: ((ie = o.get("form")) == null ? void 0 : ie.fields) || ((Ie = o.get("tree")) == null ? void 0 : Ie.fields),
5639
5641
  items: fc(G)
5640
5642
  });
5641
5643
  }, Se = async () => {
5642
5644
  await Ee(), d > te.length - 1 && d !== 0 && u(0);
5643
5645
  }, Ee = async (G) => {
5644
- var ie, Oe, xe;
5646
+ var ie, Ie, xe;
5645
5647
  S(!0), b(!1), _(void 0);
5646
5648
  try {
5647
5649
  const [Te, Ae] = await rr({
5648
5650
  treeView: {
5649
5651
  arch: (ie = o.get("tree")) == null ? void 0 : ie.arch,
5650
- fields: (Oe = o.get("tree")) == null ? void 0 : Oe.fields
5652
+ fields: (Ie = o.get("tree")) == null ? void 0 : Ie.fields
5651
5653
  },
5652
5654
  formView: {
5653
5655
  fields: ((xe = o.get("form")) == null ? void 0 : xe.fields) || {}
@@ -5700,7 +5702,7 @@ const mc = (e) => {
5700
5702
  ids: [G],
5701
5703
  fields: o.get("form").fields,
5702
5704
  context: { ...h == null ? void 0 : h(), ...K }
5703
- }))[0], Oe = (await P.getHandler().readObjects({
5705
+ }))[0], Ie = (await P.getHandler().readObjects({
5704
5706
  model: E,
5705
5707
  ids: [G],
5706
5708
  fields: o.get("tree").fields,
@@ -5709,11 +5711,11 @@ const mc = (e) => {
5709
5711
  ...Te,
5710
5712
  operation: "original",
5711
5713
  values: ie,
5712
- treeValues: Oe
5714
+ treeValues: Ie
5713
5715
  } : Te);
5714
5716
  se(xe);
5715
5717
  }, ae = (G) => {
5716
- w ? Yt({
5718
+ w ? qt({
5717
5719
  t: g,
5718
5720
  onOk: () => {
5719
5721
  Le(), G(), b(!1);
@@ -5739,8 +5741,8 @@ const mc = (e) => {
5739
5741
  const { inv_field: G } = i;
5740
5742
  let ie;
5741
5743
  G && c && (ie = { [G]: c }), a === "form" ? ae(() => {
5742
- H(!0), I({ defaultValues: ie }), F(!0);
5743
- }) : (H(!0), I({ defaultValues: ie }), F(!0));
5744
+ H(!0), O({ defaultValues: ie }), F(!0);
5745
+ }) : (H(!0), O({ defaultValues: ie }), F(!0));
5744
5746
  }, Ke = async () => {
5745
5747
  a === "form" ? ae(() => {
5746
5748
  R(!0);
@@ -5766,51 +5768,51 @@ const mc = (e) => {
5766
5768
  const G = te.filter((ie) => A.includes(ie.id));
5767
5769
  S(!0), b(!1), _(void 0);
5768
5770
  try {
5769
- const ie = G.map((xe) => xe.id), Oe = s.filter((xe) => !(ie.includes(xe.id) && xe.id < 0)).map((xe) => ie.includes(xe.id) ? {
5771
+ const ie = G.map((xe) => xe.id), Ie = s.filter((xe) => !(ie.includes(xe.id) && xe.id < 0)).map((xe) => ie.includes(xe.id) ? {
5770
5772
  ...xe,
5771
5773
  operation: "pendingRemove"
5772
5774
  } : xe);
5773
- se(Oe);
5775
+ se(Ie);
5774
5776
  } catch (ie) {
5775
5777
  _(ie);
5776
5778
  }
5777
5779
  u(0), S(!1);
5778
- }, Ve = (G, ie, Oe, xe = !1) => {
5780
+ }, Ve = (G, ie, Ie, xe = !1) => {
5779
5781
  let Te;
5780
5782
  if (xe)
5781
5783
  Te = s.concat({
5782
5784
  id: G,
5783
5785
  operation: "pendingLink",
5784
- values: { ...Oe, id: G },
5785
- treeValues: { ...Oe, id: G }
5786
+ values: { ...Ie, id: G },
5787
+ treeValues: { ...Ie, id: G }
5786
5788
  });
5787
5789
  else if (G)
5788
5790
  Te = s.map((Ae) => Ae.id === G ? {
5789
5791
  id: G,
5790
5792
  operation: G > 0 ? "pendingUpdate" : "pendingCreate",
5791
- values: { ...Oe, id: G },
5792
- treeValues: { ...Oe, id: G }
5793
+ values: { ...Ie, id: G },
5794
+ treeValues: { ...Ie, id: G }
5793
5795
  } : Ae);
5794
5796
  else {
5795
5797
  const Ae = Qs(s);
5796
5798
  Te = s.concat({
5797
5799
  id: Ae,
5798
5800
  operation: "pendingCreate",
5799
- values: { ...Oe, id: Ae },
5800
- treeValues: { ...Oe, id: Ae }
5801
+ values: { ...Ie, id: Ae },
5802
+ treeValues: { ...Ie, id: Ae }
5801
5803
  });
5802
5804
  }
5803
5805
  se(Te), j || F(!1);
5804
5806
  }, me = async (G) => {
5805
5807
  const { id: ie } = G;
5806
- let Oe = s;
5808
+ let Ie = s;
5807
5809
  const xe = s.find((Te) => Te.id === ie);
5808
- (xe == null ? void 0 : xe.values) === void 0 && (Oe = await Ee("form")), I(Oe.find((Te) => Te.id === ie)), H(!1), F(!0);
5810
+ (xe == null ? void 0 : xe.values) === void 0 && (Ie = await Ee("form")), O(Ie.find((Te) => Te.id === ie)), H(!1), F(!0);
5809
5811
  }, ye = async (G) => {
5810
5812
  S(!0);
5811
- const ie = s, Oe = G.filter((xe) => !s.find((Te) => Te.id === xe));
5813
+ const ie = s, Ie = G.filter((xe) => !s.find((Te) => Te.id === xe));
5812
5814
  try {
5813
- for (const xe of Oe) {
5815
+ for (const xe of Ie) {
5814
5816
  const Te = (await P.getHandler().readObjects({
5815
5817
  model: E,
5816
5818
  ids: [xe],
@@ -5839,32 +5841,32 @@ const mc = (e) => {
5839
5841
  function fe() {
5840
5842
  const G = uc[a];
5841
5843
  if (a === "graph")
5842
- return Wn(o.get("graph").arch).string;
5844
+ return jn(o.get("graph").arch).string;
5843
5845
  {
5844
5846
  const ie = new G(o.get(a).fields);
5845
5847
  return ie.parse(o.get(a).arch), ie.string;
5846
5848
  }
5847
5849
  }
5848
5850
  const ne = () => {
5849
- var ie, Oe, xe, Te;
5851
+ var ie, Ie, xe, Te;
5850
5852
  if (a === "form")
5851
5853
  return te.length === 0 ? g("noCurrentEntries") : a !== ve.current && s.some((Ae) => !Ae.values) ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ r(
5852
- qt,
5854
+ zt,
5853
5855
  {
5854
5856
  formView: o.get("form"),
5855
5857
  values: (ie = te[d]) == null ? void 0 : ie.values,
5856
5858
  parentContext: { ...h == null ? void 0 : h(), ...K },
5857
5859
  model: E,
5858
- id: (Oe = te[d]) == null ? void 0 : Oe.id,
5860
+ id: (Ie = te[d]) == null ? void 0 : Ie.id,
5859
5861
  submitMode: "values",
5860
5862
  onFieldsChange: (Ae) => {
5861
5863
  var bt;
5862
- const tt = (bt = te[d]) == null ? void 0 : bt.id, Ye = s.map((st) => st.id === tt ? {
5863
- ...st,
5864
- operation: st.operation === "original" ? "pendingUpdate" : st.operation,
5864
+ const tt = (bt = te[d]) == null ? void 0 : bt.id, Ye = s.map((at) => at.id === tt ? {
5865
+ ...at,
5866
+ operation: at.operation === "original" ? "pendingUpdate" : at.operation,
5865
5867
  values: { ...Ae, id: tt },
5866
5868
  treeValues: { ...Ae, id: tt }
5867
- } : st);
5869
+ } : at);
5868
5870
  se(Ye), b(!0);
5869
5871
  },
5870
5872
  readOnly: B
@@ -5880,7 +5882,7 @@ const mc = (e) => {
5880
5882
  }
5881
5883
  }) : te.map((Ae) => Ae.treeValues)), a === "tree")
5882
5884
  return /* @__PURE__ */ r(
5883
- Jt,
5885
+ Xt,
5884
5886
  {
5885
5887
  total: te.length,
5886
5888
  limit: te.length,
@@ -5902,7 +5904,7 @@ const mc = (e) => {
5902
5904
  if (a === "graph") {
5903
5905
  const Ae = [[`${i.inv_field}`, "=", c]];
5904
5906
  return /* @__PURE__ */ r(
5905
- yn,
5907
+ wn,
5906
5908
  {
5907
5909
  view_id: o.get("graph").view_id,
5908
5910
  model: i.relation,
@@ -5913,8 +5915,8 @@ const mc = (e) => {
5913
5915
  );
5914
5916
  }
5915
5917
  };
5916
- if (O)
5917
- return /* @__PURE__ */ r(Ze, { className: "mt-10", message: O, type: "error", banner: !0 });
5918
+ if (I)
5919
+ return /* @__PURE__ */ r(Je, { className: "mt-10", message: I, type: "error", banner: !0 });
5918
5920
  const We = j;
5919
5921
  return x ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ D(ee, { children: [
5920
5922
  /* @__PURE__ */ r(
@@ -5940,7 +5942,7 @@ const mc = (e) => {
5940
5942
  ),
5941
5943
  ne(),
5942
5944
  /* @__PURE__ */ r(
5943
- zt,
5945
+ Jt,
5944
5946
  {
5945
5947
  formView: o.get("form"),
5946
5948
  model: E,
@@ -5959,7 +5961,7 @@ const mc = (e) => {
5959
5961
  }
5960
5962
  ),
5961
5963
  /* @__PURE__ */ r(
5962
- Oo,
5964
+ Io,
5963
5965
  {
5964
5966
  domain: U.current,
5965
5967
  model: E,
@@ -6004,7 +6006,7 @@ const mc = (e) => {
6004
6006
  u(!1);
6005
6007
  }
6006
6008
  };
6007
- return n && n.length > 0 ? l = n[0] : l = "tree", d ? /* @__PURE__ */ r($e, {}) : f ? /* @__PURE__ */ r(Ze, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ r(Bl, { initialView: l, children: /* @__PURE__ */ r(
6009
+ return n && n.length > 0 ? l = n[0] : l = "tree", d ? /* @__PURE__ */ r($e, {}) : f ? /* @__PURE__ */ r(Je, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ r(Bl, { initialView: l, children: /* @__PURE__ */ r(
6008
6010
  be,
6009
6011
  {
6010
6012
  required: s,
@@ -6055,15 +6057,15 @@ const mc = (e) => {
6055
6057
  );
6056
6058
  };
6057
6059
  function ko(e) {
6058
- const { ooui: t, showLabel: n = !0, responsiveBehaviour: i } = e, o = ct(t.icon || "");
6060
+ const { ooui: t, showLabel: n = !0, responsiveBehaviour: i } = e, o = st(t.icon || "");
6059
6061
  return /* @__PURE__ */ r(ee, { children: (t.label || o) && n ? /* @__PURE__ */ r($i, { label: t.label, icon: o, children: /* @__PURE__ */ r(
6060
- En,
6062
+ kn,
6061
6063
  {
6062
6064
  container: t.container,
6063
6065
  responsiveBehaviour: i
6064
6066
  }
6065
6067
  ) }) : /* @__PURE__ */ r(
6066
- En,
6068
+ kn,
6067
6069
  {
6068
6070
  container: t.container,
6069
6071
  responsiveBehaviour: i
@@ -6075,7 +6077,7 @@ function vc(e) {
6075
6077
  const { ooui: t, responsiveBehaviour: n } = e, i = t.pages;
6076
6078
  function o(s) {
6077
6079
  if (s) {
6078
- const a = ct(s);
6080
+ const a = st(s);
6079
6081
  return a && /* @__PURE__ */ r(a, {});
6080
6082
  }
6081
6083
  }
@@ -6099,7 +6101,7 @@ function vc(e) {
6099
6101
  s.label
6100
6102
  )) });
6101
6103
  }
6102
- const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6104
+ const { useToken: bc } = Be, { TextArea: Mn } = it, Cc = (e) => {
6103
6105
  const { ooui: t } = e, { id: n, readOnly: i, required: o, height: s, translatable: a } = t, { token: l } = bc(), d = o && !i ? { backgroundColor: l.colorPrimaryBg } : void 0, u = oe(He), { elementHasLostFocus: f } = u || {};
6104
6106
  return /* @__PURE__ */ r(be, { required: o, ...e, children: a ? /* @__PURE__ */ r(
6105
6107
  xc,
@@ -6109,7 +6111,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6109
6111
  requiredStyle: d
6110
6112
  }
6111
6113
  ) : /* @__PURE__ */ r(
6112
- Pn,
6114
+ Mn,
6113
6115
  {
6114
6116
  disabled: i || a,
6115
6117
  style: {
@@ -6146,7 +6148,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6146
6148
  c || m(!0);
6147
6149
  },
6148
6150
  children: /* @__PURE__ */ r(
6149
- Pn,
6151
+ Mn,
6150
6152
  {
6151
6153
  value: e,
6152
6154
  onChange: (h) => {
@@ -6183,7 +6185,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6183
6185
  )
6184
6186
  ] }) : /* @__PURE__ */ D(ee, { children: [
6185
6187
  /* @__PURE__ */ r(Re, { gutter: 8, wrap: !1, children: /* @__PURE__ */ r(
6186
- Pn,
6188
+ Mn,
6187
6189
  {
6188
6190
  value: e,
6189
6191
  onChange: (h) => {
@@ -6211,8 +6213,8 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6211
6213
  ) })
6212
6214
  ] });
6213
6215
  }, Sc = (e) => {
6214
- const { ooui: t } = e, { label: n, icon: i } = t, o = ct(i || "");
6215
- return /* @__PURE__ */ r(ln, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ D(Ge, { children: [
6216
+ const { ooui: t } = e, { label: n, icon: i } = t, o = st(i || "");
6217
+ return /* @__PURE__ */ r(cn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ D(Ge, { children: [
6216
6218
  o ? /* @__PURE__ */ r(o, {}) : null,
6217
6219
  n
6218
6220
  ] }) });
@@ -6247,7 +6249,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6247
6249
  });
6248
6250
  s(), await new Promise((S) => setTimeout(S, 200));
6249
6251
  const x = await Et(b);
6250
- pn(b, x.mime);
6252
+ gn(b, x.mime);
6251
6253
  },
6252
6254
  [i, n, e, o, t, s, d]
6253
6255
  ), f = de(async () => {
@@ -6259,13 +6261,13 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6259
6261
  return a.current["/"] = g, Pr({ fields: g });
6260
6262
  }, [e, t, a]), c = de(
6261
6263
  async (g) => {
6262
- const b = Ln(g, a.current)[Nn(g)], x = b.relation, S = await P.getHandler().getFields({
6264
+ const b = $n(g, a.current)[Ln(g)], x = b.relation, S = await P.getHandler().getFields({
6263
6265
  model: x,
6264
6266
  context: t,
6265
6267
  fields: []
6266
6268
  });
6267
- for (const [O, _] of Object.entries(S))
6268
- S[O].string = Oc({
6269
+ for (const [I, _] of Object.entries(S))
6270
+ S[I].string = Ic({
6269
6271
  parentTitle: b.string,
6270
6272
  title: _.string
6271
6273
  });
@@ -6276,7 +6278,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6276
6278
  },
6277
6279
  [t]
6278
6280
  ), m = de(async () => {
6279
- const g = await Ic({ model: e, context: t }), w = await _c({
6281
+ const g = await Oc({ model: e, context: t }), w = await _c({
6280
6282
  predefinedExports: g,
6281
6283
  fields: a.current,
6282
6284
  onGetFieldChilds: c
@@ -6285,7 +6287,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6285
6287
  predefinedExports: g.map((x) => ({
6286
6288
  ...x,
6287
6289
  fields: x.fields.map((S) => {
6288
- const O = Nn(S.key), V = Ln(S.key, a.current)[O];
6290
+ const I = Ln(S.key), V = $n(S.key, a.current)[I];
6289
6291
  return V ? {
6290
6292
  key: S.key,
6291
6293
  title: V.string
@@ -6372,15 +6374,15 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6372
6374
  }, Po = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Fc = ({
6373
6375
  parentKey: e,
6374
6376
  key: t
6375
- }) => `${e ? e + "/" : ""}${t}`, Mn = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Nn = (e) => {
6377
+ }) => `${e ? e + "/" : ""}${t}`, Nn = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Ln = (e) => {
6376
6378
  if (e.indexOf("/") === -1)
6377
6379
  return e;
6378
6380
  const t = e.split("/");
6379
6381
  return t[t.length - 1];
6380
- }, Ln = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Mn(e)], Oc = ({
6382
+ }, $n = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Nn(e)], Ic = ({
6381
6383
  title: e,
6382
6384
  parentTitle: t
6383
- }) => `${t ? t + " → " : ""}${e}`, Ic = async ({
6385
+ }) => `${t ? t + " → " : ""}${e}`, Oc = async ({
6384
6386
  model: e,
6385
6387
  context: t
6386
6388
  }) => {
@@ -6407,8 +6409,8 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6407
6409
  ...new Set(
6408
6410
  t.filter((n) => {
6409
6411
  var i, o;
6410
- return n.indexOf("/") === -1 ? !((i = e["/"]) != null && i[n]) : !((o = e == null ? void 0 : e[Mn(n)]) != null && o[n]);
6411
- }).map((n) => Mn(n))
6412
+ return n.indexOf("/") === -1 ? !((i = e["/"]) != null && i[n]) : !((o = e == null ? void 0 : e[Nn(n)]) != null && o[n]);
6413
+ }).map((n) => Nn(n))
6412
6414
  )
6413
6415
  ]), _c = async ({
6414
6416
  predefinedExports: e,
@@ -6435,7 +6437,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6435
6437
  keys: e,
6436
6438
  fields: t
6437
6439
  }) => e.map((n) => {
6438
- const i = Nn(n), s = Ln(n, t)[i];
6440
+ const i = Ln(n), s = $n(n, t)[i];
6439
6441
  return Po(s) ? `${n}/id` : n;
6440
6442
  }), Ac = (e) => {
6441
6443
  const t = /* @__PURE__ */ new Map(), n = [];
@@ -6503,7 +6505,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6503
6505
  const { ooui: t } = e;
6504
6506
  return /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Mc, { ooui: t }) });
6505
6507
  }, Mc = (e) => /* @__PURE__ */ r(
6506
- kn,
6508
+ Pn,
6507
6509
  {
6508
6510
  onChange: (n, i) => {
6509
6511
  e.onChange && e.onChange(i);
@@ -6527,7 +6529,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6527
6529
  /* @__PURE__ */ r(pe, { flex: "1", children: /* @__PURE__ */ r(
6528
6530
  uo,
6529
6531
  {
6530
- ooui: new Kn({
6532
+ ooui: new Wn({
6531
6533
  name: "model_selection",
6532
6534
  selection: s,
6533
6535
  readonly: a,
@@ -6570,17 +6572,17 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6570
6572
  i == null || i(x);
6571
6573
  };
6572
6574
  async function y() {
6573
- const x = await Et(n), S = `data:${x == null ? void 0 : x.mime};base64,${n}`, O = document.createElement("a"), _ = c(a), V = c("name");
6574
- O.href = S, O.download = _ || V, O.click();
6575
+ const x = await Et(n), S = `data:${x == null ? void 0 : x.mime};base64,${n}`, I = document.createElement("a"), _ = c(a), V = c("name");
6576
+ I.href = S, I.download = _ || V, I.click();
6575
6577
  }
6576
6578
  async function g() {
6577
6579
  const x = await Et(n);
6578
- pn(n, x.mime);
6580
+ gn(n, x.mime);
6579
6581
  }
6580
6582
  async function w(x) {
6581
6583
  x.stopPropagation(), x.preventDefault();
6582
- const S = x.target.files[0], O = await fo(S);
6583
- h(O), a && f(a, S.name);
6584
+ const S = x.target.files[0], I = await fo(S);
6585
+ h(I), a && f(a, S.name);
6584
6586
  }
6585
6587
  function b() {
6586
6588
  f(a, void 0), h(void 0);
@@ -6611,7 +6613,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6611
6613
  /* @__PURE__ */ r(
6612
6614
  Pe,
6613
6615
  {
6614
- icon: /* @__PURE__ */ r(jn, {}),
6616
+ icon: /* @__PURE__ */ r(Un, {}),
6615
6617
  disabled: o,
6616
6618
  onClick: () => {
6617
6619
  u.current.click();
@@ -6626,7 +6628,7 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6626
6628
  tooltip: m("download"),
6627
6629
  disabled: !n,
6628
6630
  onClick: y,
6629
- icon: /* @__PURE__ */ r(Un, {})
6631
+ icon: /* @__PURE__ */ r(Gn, {})
6630
6632
  }
6631
6633
  ),
6632
6634
  /* @__PURE__ */ r(
@@ -6635,19 +6637,19 @@ const { useToken: bc } = Be, { TextArea: Pn } = it, Cc = (e) => {
6635
6637
  tooltip: m("clear"),
6636
6638
  disabled: o || !n,
6637
6639
  onClick: b,
6638
- icon: /* @__PURE__ */ r(Gn, {})
6640
+ icon: /* @__PURE__ */ r(Yn, {})
6639
6641
  }
6640
6642
  )
6641
6643
  ] }) })
6642
6644
  ] });
6643
- }, In = {
6644
- tree: /* @__PURE__ */ r(Qn, {}),
6645
+ }, Rn = {
6646
+ tree: /* @__PURE__ */ r(Zn, {}),
6645
6647
  form: /* @__PURE__ */ r(Kt, {}),
6646
6648
  graph: /* @__PURE__ */ r(Vi, {}),
6647
6649
  calendar: /* @__PURE__ */ r(Ai, {})
6648
6650
  };
6649
6651
  function Mr(e) {
6650
- return e ? (In == null ? void 0 : In[e.type]) || /* @__PURE__ */ r(Kt, {}) : /* @__PURE__ */ r(Kt, {});
6652
+ return e ? (Rn == null ? void 0 : Rn[e.type]) || /* @__PURE__ */ r(Kt, {}) : /* @__PURE__ */ r(Kt, {});
6651
6653
  }
6652
6654
  function sr(e) {
6653
6655
  const {
@@ -6657,7 +6659,7 @@ function sr(e) {
6657
6659
  disabled: o = !1,
6658
6660
  formHasChanges: s = !1,
6659
6661
  previousView: a
6660
- } = e, { t: l } = we(), d = Ie(() => [
6662
+ } = e, { t: l } = we(), d = Oe(() => [
6661
6663
  {
6662
6664
  label: l("viewAs"),
6663
6665
  items: n.map((c, m) => {
@@ -6673,7 +6675,7 @@ function sr(e) {
6673
6675
  ], [n, t.view_id, l]);
6674
6676
  function u(c) {
6675
6677
  if (s) {
6676
- Yt({
6678
+ qt({
6677
6679
  t: l,
6678
6680
  onOk: () => {
6679
6681
  c();
@@ -6723,7 +6725,7 @@ function sr(e) {
6723
6725
  borderTopLeftRadius: 0,
6724
6726
  borderBottomLeftRadius: 0
6725
6727
  },
6726
- icon: /* @__PURE__ */ r(cn, { style: { fontSize: "0.5em" } }),
6728
+ icon: /* @__PURE__ */ r(dn, { style: { fontSize: "0.5em" } }),
6727
6729
  onClick: (c) => c.preventDefault()
6728
6730
  }
6729
6731
  )
@@ -6760,7 +6762,7 @@ function Mo(e) {
6760
6762
  nt
6761
6763
  ), { t: o } = we(), s = () => {
6762
6764
  if (n) {
6763
- Yt({
6765
+ qt({
6764
6766
  t: o,
6765
6767
  onOk: () => {
6766
6768
  i();
@@ -6773,14 +6775,14 @@ function Mo(e) {
6773
6775
  return /* @__PURE__ */ r(
6774
6776
  qe,
6775
6777
  {
6776
- icon: /* @__PURE__ */ r(un, {}),
6778
+ icon: /* @__PURE__ */ r(fn, {}),
6777
6779
  tooltip: o("new"),
6778
6780
  onClick: s,
6779
6781
  disabled: t
6780
6782
  }
6781
6783
  );
6782
6784
  }
6783
- const { confirm: Kc } = Je, Wc = ({
6785
+ const { confirm: Kc } = Xe, Wc = ({
6784
6786
  onOk: e,
6785
6787
  onCancel: t,
6786
6788
  t: n
@@ -6831,7 +6833,7 @@ const jc = (e) => {
6831
6833
  } = e, { t: d } = we(), u = le(null), f = /* @__PURE__ */ D(Pe, { children: [
6832
6834
  /* @__PURE__ */ r(gr, {}),
6833
6835
  `(${t})`,
6834
- /* @__PURE__ */ r(cn, { style: { fontSize: 12 } })
6836
+ /* @__PURE__ */ r(dn, { style: { fontSize: 12 } })
6835
6837
  ] });
6836
6838
  return /* @__PURE__ */ r(
6837
6839
  ro,
@@ -6840,7 +6842,7 @@ const jc = (e) => {
6840
6842
  onRetrieveData: async () => [
6841
6843
  {
6842
6844
  items: n.map((c) => {
6843
- const m = c.link ? gr : Un, p = /* @__PURE__ */ D(Re, { wrap: !1, align: "middle", gutter: 8, children: [
6845
+ const m = c.link ? gr : Gn, p = /* @__PURE__ */ D(Re, { wrap: !1, align: "middle", gutter: 8, children: [
6844
6846
  /* @__PURE__ */ r(pe, { style: { textAlign: "center" }, children: (c.datas_fname || c.link) && /* @__PURE__ */ r(
6845
6847
  wt,
6846
6848
  {
@@ -6890,7 +6892,7 @@ const jc = (e) => {
6890
6892
  (c = u.current) == null || c.close(), l();
6891
6893
  },
6892
6894
  children: [
6893
- /* @__PURE__ */ r(Qn, {}),
6895
+ /* @__PURE__ */ r(Zn, {}),
6894
6896
  " ",
6895
6897
  d("listAllAttachments")
6896
6898
  ]
@@ -6906,7 +6908,7 @@ const jc = (e) => {
6906
6908
  (c = u.current) == null || c.close(), o();
6907
6909
  },
6908
6910
  children: [
6909
- /* @__PURE__ */ r(un, {}),
6911
+ /* @__PURE__ */ r(fn, {}),
6910
6912
  " ",
6911
6913
  d("addNewAttachment")
6912
6914
  ]
@@ -6943,7 +6945,7 @@ function Uc(e) {
6943
6945
  }))
6944
6946
  );
6945
6947
  } catch (w) {
6946
- Qe(w);
6948
+ Ze(w);
6947
6949
  }
6948
6950
  d(!1);
6949
6951
  }
@@ -6962,12 +6964,12 @@ function Uc(e) {
6962
6964
  context: a.current.getContext()
6963
6965
  }))[0];
6964
6966
  } catch (x) {
6965
- Qe(x);
6967
+ Ze(x);
6966
6968
  }
6967
6969
  if (m(!1), !!b)
6968
6970
  if (b.datas) {
6969
6971
  const x = await Et(b.datas);
6970
- pn(b.datas, x.mime);
6972
+ gn(b.datas, x.mime);
6971
6973
  } else
6972
6974
  s(b);
6973
6975
  },
@@ -6995,7 +6997,7 @@ function Uc(e) {
6995
6997
  }
6996
6998
  ),
6997
6999
  /* @__PURE__ */ r(
6998
- Je,
7000
+ Xe,
6999
7001
  {
7000
7002
  title: p("downloadingAttachment"),
7001
7003
  open: c,
@@ -7030,15 +7032,15 @@ function Gc({ toolbar: e }) {
7030
7032
  formIsLoading: b,
7031
7033
  attachments: x,
7032
7034
  formRef: S,
7033
- setFormHasChanges: O,
7035
+ setFormHasChanges: I,
7034
7036
  previousView: _,
7035
7037
  setPreviousView: V,
7036
7038
  goToResourceId: F
7037
7039
  } = oe(nt), { t: T } = we(), R = oe(
7038
7040
  Lt
7039
- ), { processAction: C } = R || {}, I = oe(
7041
+ ), { processAction: C } = R || {}, O = oe(
7040
7042
  dt
7041
- ), { openRelate: A, openDefaultActionForModel: N } = I || {};
7043
+ ), { openRelate: A, openDefaultActionForModel: N } = O || {};
7042
7044
  function j(E) {
7043
7045
  if (s) {
7044
7046
  Wc({
@@ -7053,7 +7055,7 @@ function Gc({ toolbar: e }) {
7053
7055
  }
7054
7056
  function H(E) {
7055
7057
  if (s) {
7056
- Yt({
7058
+ qt({
7057
7059
  t: T,
7058
7060
  onOk: () => {
7059
7061
  E();
@@ -7070,7 +7072,7 @@ function Gc({ toolbar: e }) {
7070
7072
  d && f > 0 ? (u == null || u(f - 1), c == null || c(d[f - 1].id)) : d && f === 0 && (u == null || u(d.length - 1), c == null || c(d[d.length - 1].id));
7071
7073
  }
7072
7074
  function Y() {
7073
- Gt({
7075
+ Yt({
7074
7076
  confirmMessage: T("confirmRemoveItem"),
7075
7077
  t: T,
7076
7078
  onOk: () => {
@@ -7090,7 +7092,7 @@ function Gc({ toolbar: e }) {
7090
7092
  let K = 0;
7091
7093
  f > 0 && f <= d.length - 1 && (K = f - 1), E != null && E[K] ? (c == null || c(E == null ? void 0 : E[K].id), u == null || u(K)) : (c == null || c(void 0), u == null || u(void 0));
7092
7094
  } catch (E) {
7093
- rn(JSON.stringify(E));
7095
+ on(JSON.stringify(E));
7094
7096
  } finally {
7095
7097
  p == null || p(!1);
7096
7098
  }
@@ -7105,7 +7107,7 @@ function Gc({ toolbar: e }) {
7105
7107
  });
7106
7108
  E && await (F == null ? void 0 : F([E]));
7107
7109
  } catch (E) {
7108
- rn(JSON.stringify(E));
7110
+ on(JSON.stringify(E));
7109
7111
  } finally {
7110
7112
  g == null || g(!1);
7111
7113
  }
@@ -7125,8 +7127,8 @@ function Gc({ toolbar: e }) {
7125
7127
  return n ? /* @__PURE__ */ D(Ge, { wrap: !0, children: [
7126
7128
  b && /* @__PURE__ */ D(ee, { children: [
7127
7129
  /* @__PURE__ */ r($e, {}),
7128
- Ot(),
7129
- Ot()
7130
+ It(),
7131
+ It()
7130
7132
  ] }),
7131
7133
  /* @__PURE__ */ r(
7132
7134
  Mo,
@@ -7147,7 +7149,7 @@ function Gc({ toolbar: e }) {
7147
7149
  /* @__PURE__ */ r(
7148
7150
  qe,
7149
7151
  {
7150
- icon: /* @__PURE__ */ r(Zn, {}),
7152
+ icon: /* @__PURE__ */ r(er, {}),
7151
7153
  tooltip: T("duplicate"),
7152
7154
  disabled: s || a || l === void 0 || y || b,
7153
7155
  loading: y,
@@ -7157,14 +7159,14 @@ function Gc({ toolbar: e }) {
7157
7159
  /* @__PURE__ */ r(
7158
7160
  qe,
7159
7161
  {
7160
- icon: /* @__PURE__ */ r(Xn, {}),
7162
+ icon: /* @__PURE__ */ r(Qn, {}),
7161
7163
  tooltip: T("delete"),
7162
7164
  disabled: a || l === void 0 || h || y || b,
7163
7165
  loading: h,
7164
7166
  onClick: Y
7165
7167
  }
7166
7168
  ),
7167
- Ot(),
7169
+ It(),
7168
7170
  /* @__PURE__ */ r(
7169
7171
  qe,
7170
7172
  {
@@ -7180,7 +7182,7 @@ function Gc({ toolbar: e }) {
7180
7182
  /* @__PURE__ */ r(
7181
7183
  qe,
7182
7184
  {
7183
- icon: /* @__PURE__ */ r(fn, {}),
7185
+ icon: /* @__PURE__ */ r(mn, {}),
7184
7186
  tooltip: T("refresh"),
7185
7187
  disabled: a || l === void 0 || h || y || b,
7186
7188
  loading: !1,
@@ -7191,7 +7193,7 @@ function Gc({ toolbar: e }) {
7191
7193
  }
7192
7194
  }
7193
7195
  ),
7194
- Ot(),
7196
+ It(),
7195
7197
  /* @__PURE__ */ r(
7196
7198
  sr,
7197
7199
  {
@@ -7199,13 +7201,13 @@ function Gc({ toolbar: e }) {
7199
7201
  previousView: _,
7200
7202
  availableViews: t,
7201
7203
  onChangeView: (E) => {
7202
- V == null || V(n), O == null || O(!1), i == null || i(E);
7204
+ V == null || V(n), I == null || I(!1), i == null || i(E);
7203
7205
  },
7204
7206
  disabled: re,
7205
7207
  formHasChanges: s
7206
7208
  }
7207
7209
  ),
7208
- Ot(),
7210
+ It(),
7209
7211
  /* @__PURE__ */ D(Ge, { children: [
7210
7212
  /* @__PURE__ */ r(
7211
7213
  qe,
@@ -7232,18 +7234,18 @@ function Gc({ toolbar: e }) {
7232
7234
  }
7233
7235
  )
7234
7236
  ] }),
7235
- Ot(),
7237
+ It(),
7236
7238
  /* @__PURE__ */ r(
7237
7239
  Vt,
7238
7240
  {
7239
- icon: /* @__PURE__ */ r(qn, {}),
7241
+ icon: /* @__PURE__ */ r(zn, {}),
7240
7242
  placement: "bottomRight",
7241
7243
  disabled: re,
7242
7244
  onRetrieveData: async () => [
7243
7245
  { label: T("actions"), items: e == null ? void 0 : e.action }
7244
7246
  ],
7245
7247
  onItemClick: async (E) => {
7246
- !E || !(await It({
7248
+ !E || !(await Ot({
7247
7249
  onFormSave: o
7248
7250
  })).succeed || B(E);
7249
7251
  }
@@ -7252,7 +7254,7 @@ function Gc({ toolbar: e }) {
7252
7254
  /* @__PURE__ */ r(
7253
7255
  Vt,
7254
7256
  {
7255
- icon: /* @__PURE__ */ r(zn, {}),
7257
+ icon: /* @__PURE__ */ r(Jn, {}),
7256
7258
  disabled: re,
7257
7259
  placement: "bottomRight",
7258
7260
  onRetrieveData: async () => [
@@ -7261,7 +7263,7 @@ function Gc({ toolbar: e }) {
7261
7263
  onItemClick: async (E) => {
7262
7264
  if (!E)
7263
7265
  return;
7264
- const K = await It({
7266
+ const K = await Ot({
7265
7267
  onFormSave: o
7266
7268
  });
7267
7269
  K.succeed && B({
@@ -7277,14 +7279,14 @@ function Gc({ toolbar: e }) {
7277
7279
  /* @__PURE__ */ r(
7278
7280
  Vt,
7279
7281
  {
7280
- icon: /* @__PURE__ */ r(Jn, {}),
7282
+ icon: /* @__PURE__ */ r(Xn, {}),
7281
7283
  disabled: re,
7282
7284
  placement: "bottomRight",
7283
7285
  onRetrieveData: async () => [
7284
7286
  { label: T("related"), items: e == null ? void 0 : e.relate }
7285
7287
  ],
7286
7288
  onItemClick: async (E) => {
7287
- !E || !(await It({
7289
+ !E || !(await Ot({
7288
7290
  onFormSave: o
7289
7291
  })).succeed || A({
7290
7292
  relateData: E,
@@ -7302,7 +7304,7 @@ function Gc({ toolbar: e }) {
7302
7304
  disabled: re,
7303
7305
  attachments: x,
7304
7306
  onAddNewAttachment: async () => {
7305
- const E = await It({
7307
+ const E = await Ot({
7306
7308
  onFormSave: o
7307
7309
  });
7308
7310
  if (!E.succeed)
@@ -7314,7 +7316,7 @@ function Gc({ toolbar: e }) {
7314
7316
  });
7315
7317
  },
7316
7318
  onListAllAttachments: async () => {
7317
- const E = await It({
7319
+ const E = await Ot({
7318
7320
  onFormSave: o
7319
7321
  });
7320
7322
  if (!E.succeed)
@@ -7326,7 +7328,7 @@ function Gc({ toolbar: e }) {
7326
7328
  });
7327
7329
  },
7328
7330
  onViewAttachmentDetails: async (E) => {
7329
- (await It({
7331
+ (await Ot({
7330
7332
  onFormSave: o
7331
7333
  })).succeed && N({
7332
7334
  model: "ir.attachment",
@@ -7338,10 +7340,10 @@ function Gc({ toolbar: e }) {
7338
7340
  )
7339
7341
  ] }) : null;
7340
7342
  }
7341
- function Ot() {
7343
+ function It() {
7342
7344
  return /* @__PURE__ */ r("div", { className: "inline-block w-2" });
7343
7345
  }
7344
- async function It({
7346
+ async function Ot({
7345
7347
  onFormSave: e
7346
7348
  }) {
7347
7349
  const t = await (e == null ? void 0 : e());
@@ -7375,7 +7377,7 @@ const { useToken: Yc } = Be, Lo = (e) => {
7375
7377
  l ? null : /* @__PURE__ */ r(pe, { flex: "none", children: p ? /* @__PURE__ */ r(
7376
7378
  Pe,
7377
7379
  {
7378
- icon: /* @__PURE__ */ r(dn, {}),
7380
+ icon: /* @__PURE__ */ r(un, {}),
7379
7381
  onClick: () => {
7380
7382
  o(n) && (h(!1), g(!1));
7381
7383
  },
@@ -7445,7 +7447,7 @@ const { useToken: Yc } = Be, Lo = (e) => {
7445
7447
  n(f, l.current), l.current = !1;
7446
7448
  }
7447
7449
  return /* @__PURE__ */ r(
7448
- Je,
7450
+ Xe,
7449
7451
  {
7450
7452
  title: s("goToResourceId"),
7451
7453
  centered: !0,
@@ -7459,9 +7461,9 @@ const { useToken: Yc } = Be, Lo = (e) => {
7459
7461
  var f;
7460
7462
  return u && ((f = a.current) == null ? void 0 : f.focus());
7461
7463
  },
7462
- children: /* @__PURE__ */ D(lt, { layout: "vertical", onFinish: d, autoComplete: "off", children: [
7464
+ children: /* @__PURE__ */ D(ct, { layout: "vertical", onFinish: d, autoComplete: "off", children: [
7463
7465
  /* @__PURE__ */ r(
7464
- lt.Item,
7466
+ ct.Item,
7465
7467
  {
7466
7468
  name: "id",
7467
7469
  label: s("searchId"),
@@ -7478,7 +7480,7 @@ const { useToken: Yc } = Be, Lo = (e) => {
7478
7480
  /* @__PURE__ */ r(
7479
7481
  Pe,
7480
7482
  {
7481
- icon: /* @__PURE__ */ r(Ut, {}),
7483
+ icon: /* @__PURE__ */ r(Gt, {}),
7482
7484
  htmlType: "button",
7483
7485
  onClick: i,
7484
7486
  disabled: o,
@@ -7506,7 +7508,7 @@ const { useToken: Yc } = Be, Lo = (e) => {
7506
7508
  tabIndex: 0,
7507
7509
  loading: o,
7508
7510
  style: { marginLeft: 15 },
7509
- icon: /* @__PURE__ */ r(Jn, {}),
7511
+ icon: /* @__PURE__ */ r(Xn, {}),
7510
7512
  htmlType: "submit",
7511
7513
  type: "primary",
7512
7514
  disabled: o,
@@ -7583,7 +7585,7 @@ function Qc({ refreshGraph: e }) {
7583
7585
  /* @__PURE__ */ r(
7584
7586
  qe,
7585
7587
  {
7586
- icon: /* @__PURE__ */ r(fn, {}),
7588
+ icon: /* @__PURE__ */ r(mn, {}),
7587
7589
  tooltip: t("refresh"),
7588
7590
  disabled: d,
7589
7591
  loading: !1,
@@ -7606,8 +7608,8 @@ function Qc({ refreshGraph: e }) {
7606
7608
  )
7607
7609
  ] });
7608
7610
  }
7609
- const { useToken: Zc } = Be, { Title: ed, Text: en } = kt;
7610
- function wn(e) {
7611
+ const { useToken: Zc } = Be, { Title: ed, Text: tn } = kt;
7612
+ function vn(e) {
7611
7613
  const { title: t, children: n } = e, {
7612
7614
  title: i,
7613
7615
  currentView: o,
@@ -7624,9 +7626,9 @@ function wn(e) {
7624
7626
  " (id:",
7625
7627
  " ",
7626
7628
  /* @__PURE__ */ r(
7627
- en,
7629
+ tn,
7628
7630
  {
7629
- copyable: { icon: /* @__PURE__ */ r(Zn, { style: { color: "red" } }) },
7631
+ copyable: { icon: /* @__PURE__ */ r(er, { style: { color: "red" } }) },
7630
7632
  children: s
7631
7633
  }
7632
7634
  ),
@@ -7646,7 +7648,7 @@ function wn(e) {
7646
7648
  f("editingDocument"),
7647
7649
  " (id:",
7648
7650
  " ",
7649
- /* @__PURE__ */ r(en, { copyable: !0, children: s }),
7651
+ /* @__PURE__ */ r(tn, { copyable: !0, children: s }),
7650
7652
  ")"
7651
7653
  ] }) : "";
7652
7654
  if ((o == null ? void 0 : o.type) === "tree" && u) {
@@ -7656,7 +7658,7 @@ function wn(e) {
7656
7658
  f("selectedRegisters"),
7657
7659
  " - (id:",
7658
7660
  " ",
7659
- /* @__PURE__ */ r(en, { copyable: !0, children: u[0].id }),
7661
+ /* @__PURE__ */ r(tn, { copyable: !0, children: u[0].id }),
7660
7662
  ")"
7661
7663
  ] });
7662
7664
  if (u.length > 1)
@@ -7665,7 +7667,7 @@ function wn(e) {
7665
7667
  " ",
7666
7668
  f("selectedRegisters"),
7667
7669
  /* @__PURE__ */ r(
7668
- en,
7670
+ tn,
7669
7671
  {
7670
7672
  copyable: {
7671
7673
  text: u.map((p) => p.id).join(", ")
@@ -7725,24 +7727,24 @@ const td = (e) => {
7725
7727
  sorter: b = void 0,
7726
7728
  setSorter: x = void 0,
7727
7729
  setTotalItems: S = void 0,
7728
- setSearchTreeNameSearch: O = void 0,
7730
+ setSearchTreeNameSearch: I = void 0,
7729
7731
  setTreeIsLoading: _ = void 0,
7730
7732
  limit: V,
7731
7733
  setLimit: F,
7732
7734
  searchParams: T,
7733
7735
  searchValues: R,
7734
7736
  setSearchValues: C,
7735
- currentView: I
7737
+ currentView: O
7736
7738
  } = u || {}, [A, N] = v(!0);
7737
7739
  he(() => {
7738
7740
  var q;
7739
7741
  (q = d.current) == null || q.refresh();
7740
7742
  }, [T]), he(() => {
7741
- t.view_id !== I.view_id && N(!0);
7742
- }, [I]);
7743
+ t.view_id !== O.view_id && N(!0);
7744
+ }, [O]);
7743
7745
  const { clear: j, searchFilterLoading: H, searchError: U, offset: k, tableRefreshing: Y } = To({
7744
7746
  model: i,
7745
- setSearchTreeNameSearch: O,
7747
+ setSearchTreeNameSearch: I,
7746
7748
  setSelectedRowItems: h,
7747
7749
  searchParams: T,
7748
7750
  setSearchValues: C,
@@ -7764,7 +7766,7 @@ const td = (e) => {
7764
7766
  setLimit: F
7765
7767
  });
7766
7768
  return !n || !t ? null : /* @__PURE__ */ D(ee, { children: [
7767
- /* @__PURE__ */ r(wn, { title: t.title || t.name, children: /* @__PURE__ */ r(
7769
+ /* @__PURE__ */ r(vn, { title: t.title || t.name, children: /* @__PURE__ */ r(
7768
7770
  Qc,
7769
7771
  {
7770
7772
  refreshGraph: () => {
@@ -7794,13 +7796,13 @@ const td = (e) => {
7794
7796
  }
7795
7797
  ),
7796
7798
  Y ? /* @__PURE__ */ r($e, {}) : /* @__PURE__ */ r(
7797
- yn,
7799
+ wn,
7798
7800
  {
7799
7801
  ref: d,
7800
7802
  view_id: t.view_id,
7801
7803
  model: i,
7802
7804
  context: o,
7803
- domain: jt(T || [], s),
7805
+ domain: Ut(T || [], s),
7804
7806
  limit: A ? V : void 0,
7805
7807
  manualIds: A ? p == null ? void 0 : p.map((q) => q.id) : void 0
7806
7808
  }
@@ -7822,9 +7824,9 @@ const td = (e) => {
7822
7824
  setCurrentItemIndex: m
7823
7825
  } = e;
7824
7826
  return t ? /* @__PURE__ */ D(ee, { children: [
7825
- /* @__PURE__ */ r(wn, { children: /* @__PURE__ */ r(Gc, { toolbar: a == null ? void 0 : a.toolbar }) }),
7827
+ /* @__PURE__ */ r(vn, { children: /* @__PURE__ */ r(Gc, { toolbar: a == null ? void 0 : a.toolbar }) }),
7826
7828
  /* @__PURE__ */ r(
7827
- qt,
7829
+ zt,
7828
7830
  {
7829
7831
  rootForm: !0,
7830
7832
  ref: n,
@@ -7843,7 +7845,7 @@ const td = (e) => {
7843
7845
  ] }) : null;
7844
7846
  };
7845
7847
  function rd(e) {
7846
- const { onSearch: t, disabled: n = !1, searchText: i } = e, { t: o } = we(), [s] = lt.useForm(), [a, l] = v(!1);
7848
+ const { onSearch: t, disabled: n = !1, searchText: i } = e, { t: o } = we(), [s] = ct.useForm(), [a, l] = v(!1);
7847
7849
  function d(f) {
7848
7850
  t(f.search);
7849
7851
  }
@@ -7853,8 +7855,8 @@ function rd(e) {
7853
7855
  function u() {
7854
7856
  l(!1), s.setFieldsValue({ search: void 0 }), t(void 0);
7855
7857
  }
7856
- return /* @__PURE__ */ r(lt, { form: s, onFinish: d, autoComplete: "off", children: /* @__PURE__ */ D(Re, { align: "middle", justify: "end", children: [
7857
- /* @__PURE__ */ r(pe, { children: /* @__PURE__ */ r(lt.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ r(
7858
+ return /* @__PURE__ */ r(ct, { form: s, onFinish: d, autoComplete: "off", children: /* @__PURE__ */ D(Re, { align: "middle", justify: "end", children: [
7859
+ /* @__PURE__ */ r(pe, { children: /* @__PURE__ */ r(ct.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ r(
7858
7860
  it,
7859
7861
  {
7860
7862
  autoFocus: !0,
@@ -8184,7 +8186,7 @@ const od = {
8184
8186
  }, Ko = (e) => {
8185
8187
  const { erpFeatures: t } = Bo();
8186
8188
  return !!t[e];
8187
- }, cd = $n(
8189
+ }, cd = Hn(
8188
8190
  ({
8189
8191
  erpFeatures: e,
8190
8192
  locale: t,
@@ -8194,7 +8196,7 @@ const od = {
8194
8196
  devMode: s,
8195
8197
  children: a
8196
8198
  }) => {
8197
- const l = Ie(
8199
+ const l = Oe(
8198
8200
  () => ({
8199
8201
  erpFeatures: e,
8200
8202
  globalValues: i,
@@ -8214,8 +8216,8 @@ const od = {
8214
8216
  }
8215
8217
  );
8216
8218
  cd.displayName = "ConfigContextProvider";
8217
- var vn = /* @__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))(vn || {});
8218
- const Gu = Object.values(vn);
8219
+ var bn = /* @__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))(bn || {});
8220
+ const Yu = Object.values(bn);
8219
8221
  function dd(e) {
8220
8222
  var re;
8221
8223
  const {
@@ -8239,18 +8241,18 @@ function dd(e) {
8239
8241
  treeIsLoading: b,
8240
8242
  setPreviousView: x,
8241
8243
  previousView: S,
8242
- results: O,
8244
+ results: I,
8243
8245
  limit: _,
8244
8246
  totalItems: V
8245
8247
  } = oe(nt), { parentContext: F = {}, treeExpandable: T, toolbar: R } = e, C = Ko(
8246
- vn.FEATURE_ADVANCED_EXPORT
8247
- ), { t: I } = we(), A = oe(
8248
+ bn.FEATURE_ADVANCED_EXPORT
8249
+ ), { t: O } = we(), A = oe(
8248
8250
  Lt
8249
8251
  ), { processAction: N } = A || {}, [j, H] = v(!1), U = w !== void 0 && w.trim().length > 0;
8250
8252
  function k() {
8251
- Gt({
8252
- confirmMessage: I("confirmRemove"),
8253
- t: I,
8253
+ Yt({
8254
+ confirmMessage: O("confirmRemove"),
8255
+ t: O,
8254
8256
  onOk: () => {
8255
8257
  Y();
8256
8258
  }
@@ -8265,7 +8267,7 @@ function dd(e) {
8265
8267
  context: { ...F }
8266
8268
  }), c == null || c(void 0), m == null || m(void 0), (B = f == null ? void 0 : f.current) == null || B.refreshResults();
8267
8269
  } catch (E) {
8268
- Qe(E);
8270
+ Ze(E);
8269
8271
  } finally {
8270
8272
  s == null || s(!1);
8271
8273
  }
@@ -8281,7 +8283,7 @@ function dd(e) {
8281
8283
  context: { ...F }
8282
8284
  }) && ((B = f == null ? void 0 : f.current) == null || B.refreshResults());
8283
8285
  } catch (E) {
8284
- Qe(E);
8286
+ Ze(E);
8285
8287
  } finally {
8286
8288
  d == null || d(!1);
8287
8289
  }
@@ -8331,7 +8333,7 @@ function dd(e) {
8331
8333
  style: { color: h ? "white" : void 0 }
8332
8334
  }
8333
8335
  ),
8334
- tooltip: I("advanced_search"),
8336
+ tooltip: O("advanced_search"),
8335
8337
  type: h ? "primary" : "default",
8336
8338
  onClick: () => {
8337
8339
  y == null || y(!h);
@@ -8345,8 +8347,8 @@ function dd(e) {
8345
8347
  /* @__PURE__ */ r(
8346
8348
  qe,
8347
8349
  {
8348
- icon: /* @__PURE__ */ r(Zn, {}),
8349
- tooltip: I("duplicate"),
8350
+ icon: /* @__PURE__ */ r(er, {}),
8351
+ tooltip: O("duplicate"),
8350
8352
  disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || b,
8351
8353
  loading: l,
8352
8354
  onClick: q
@@ -8355,8 +8357,8 @@ function dd(e) {
8355
8357
  /* @__PURE__ */ r(
8356
8358
  qe,
8357
8359
  {
8358
- icon: /* @__PURE__ */ r(Xn, {}),
8359
- tooltip: I("delete"),
8360
+ icon: /* @__PURE__ */ r(Qn, {}),
8361
+ tooltip: O("delete"),
8360
8362
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || b,
8361
8363
  loading: a,
8362
8364
  onClick: k
@@ -8368,19 +8370,19 @@ function dd(e) {
8368
8370
  qe,
8369
8371
  {
8370
8372
  icon: /* @__PURE__ */ r(eo, {}),
8371
- tooltip: I("showLogs"),
8373
+ tooltip: O("showLogs"),
8372
8374
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || b,
8373
8375
  loading: !1,
8374
8376
  onClick: () => {
8375
- No(u, o[0].id, I);
8377
+ No(u, o[0].id, O);
8376
8378
  }
8377
8379
  }
8378
8380
  ),
8379
8381
  /* @__PURE__ */ r(
8380
8382
  qe,
8381
8383
  {
8382
- icon: /* @__PURE__ */ r(fn, {}),
8383
- tooltip: I("refresh"),
8384
+ icon: /* @__PURE__ */ r(mn, {}),
8385
+ tooltip: O("refresh"),
8384
8386
  disabled: l || a || b,
8385
8387
  loading: !1,
8386
8388
  onClick: () => {
@@ -8408,11 +8410,11 @@ function dd(e) {
8408
8410
  /* @__PURE__ */ r(
8409
8411
  Vt,
8410
8412
  {
8411
- icon: /* @__PURE__ */ r(qn, {}),
8413
+ icon: /* @__PURE__ */ r(zn, {}),
8412
8414
  placement: "bottomRight",
8413
8415
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || b,
8414
8416
  onRetrieveData: async () => [
8415
- { label: I("actions"), items: R == null ? void 0 : R.action }
8417
+ { label: O("actions"), items: R == null ? void 0 : R.action }
8416
8418
  ],
8417
8419
  onItemClick: (B) => {
8418
8420
  B && Z(B);
@@ -8422,11 +8424,11 @@ function dd(e) {
8422
8424
  /* @__PURE__ */ r(
8423
8425
  Vt,
8424
8426
  {
8425
- icon: /* @__PURE__ */ r(zn, {}),
8427
+ icon: /* @__PURE__ */ r(Jn, {}),
8426
8428
  placement: "bottomRight",
8427
8429
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || b,
8428
8430
  onRetrieveData: async () => [
8429
- { label: I("reports"), items: R == null ? void 0 : R.print }
8431
+ { label: O("reports"), items: R == null ? void 0 : R.print }
8430
8432
  ],
8431
8433
  onItemClick: (B) => {
8432
8434
  B && Z({
@@ -8473,15 +8475,15 @@ function dd(e) {
8473
8475
  ),
8474
8476
  onRetrieveData: async () => [
8475
8477
  {
8476
- label: I("export"),
8478
+ label: O("export"),
8477
8479
  items: [
8478
8480
  {
8479
8481
  id: "print_screen",
8480
- name: I("printScreen")
8482
+ name: O("printScreen")
8481
8483
  },
8482
8484
  {
8483
8485
  id: "export",
8484
- name: I("advancedExport")
8486
+ name: O("advancedExport")
8485
8487
  }
8486
8488
  ]
8487
8489
  }
@@ -8489,7 +8491,7 @@ function dd(e) {
8489
8491
  onItemClick: (B) => {
8490
8492
  if (B.id === "print_screen") {
8491
8493
  let E = (o == null ? void 0 : o.map((K) => K.id)) || [];
8492
- E.length === 0 && (E = (O == null ? void 0 : O.map((K) => K.id)) || []), Z({
8494
+ E.length === 0 && (E = (I == null ? void 0 : I.map((K) => K.id)) || []), Z({
8493
8495
  id: -1,
8494
8496
  model: u,
8495
8497
  report_name: "printscreen.list",
@@ -8512,14 +8514,14 @@ function dd(e) {
8512
8514
  visible: j,
8513
8515
  onClose: () => H(!1),
8514
8516
  model: u,
8515
- domain: jt(
8517
+ domain: Ut(
8516
8518
  ((re = f == null ? void 0 : f.current) == null ? void 0 : re.getDomain()) || [],
8517
8519
  p || []
8518
8520
  ),
8519
8521
  limit: _,
8520
8522
  totalRegisters: V || 0,
8521
8523
  selectedRegistersToExport: o,
8522
- visibleRegisters: (O == null ? void 0 : O.length) || 0,
8524
+ visibleRegisters: (I == null ? void 0 : I.length) || 0,
8523
8525
  context: F
8524
8526
  }
8525
8527
  )
@@ -8548,7 +8550,7 @@ const ud = (e) => {
8548
8550
  nt
8549
8551
  );
8550
8552
  return t ? /* @__PURE__ */ D(ee, { children: [
8551
- /* @__PURE__ */ r(wn, { children: /* @__PURE__ */ r(
8553
+ /* @__PURE__ */ r(vn, { children: /* @__PURE__ */ r(
8552
8554
  dd,
8553
8555
  {
8554
8556
  toolbar: a == null ? void 0 : a.toolbar,
@@ -8634,7 +8636,7 @@ function md() {
8634
8636
  /* @__PURE__ */ r(
8635
8637
  qe,
8636
8638
  {
8637
- icon: /* @__PURE__ */ r(fn, {}),
8639
+ icon: /* @__PURE__ */ r(mn, {}),
8638
8640
  tooltip: o("refresh"),
8639
8641
  disabled: e,
8640
8642
  loading: !1,
@@ -8660,7 +8662,7 @@ const pd = (e) => {
8660
8662
  s(a);
8661
8663
  },
8662
8664
  children: [
8663
- /* @__PURE__ */ r(wn, { children: /* @__PURE__ */ r(md, {}) }),
8665
+ /* @__PURE__ */ r(vn, { children: /* @__PURE__ */ r(md, {}) }),
8664
8666
  /* @__PURE__ */ r(
8665
8667
  Ad,
8666
8668
  {
@@ -8707,9 +8709,9 @@ function yd(e, t) {
8707
8709
  action_type: h,
8708
8710
  treeExpandable: y = !1,
8709
8711
  limit: g
8710
- } = e, [w, b] = v(), [x, S] = v([]), [O, _] = v(!0), V = m || void 0, [F, T] = v(
8712
+ } = e, [w, b] = v(), [x, S] = v([]), [I, _] = v(!0), V = m || void 0, [F, T] = v(
8711
8713
  V
8712
- ), [R, C] = v([]), [I, A] = v(), [N, j] = v([]), [H, U] = v(), [k, Y] = v(0), [q, Z] = v(!1), [re, B] = v(!1), [E, K] = v(), { t: $ } = we(), ce = le(), X = le(), te = oe(
8714
+ ), [R, C] = v([]), [O, A] = v(), [N, j] = v([]), [H, U] = v(), [k, Y] = v(0), [q, Z] = v(!1), [re, B] = v(!1), [E, K] = v(), { t: $ } = we(), ce = le(), X = le(), te = oe(
8713
8715
  dt
8714
8716
  ), {
8715
8717
  setCurrentView: ve,
@@ -8724,7 +8726,7 @@ function yd(e, t) {
8724
8726
  (W) => {
8725
8727
  W.preventDefault(), ae();
8726
8728
  },
8727
- [Se, se, w, I, N]
8729
+ [Se, se, w, O, N]
8728
8730
  );
8729
8731
  function Me(W) {
8730
8732
  T(W), z == null || z(W);
@@ -8812,7 +8814,7 @@ function yd(e, t) {
8812
8814
  (fe) => fe.type === "tree"
8813
8815
  ) : u ? me = W.find((fe) => u.id ? fe.type === u.type && fe.view_id === u.id : fe.type === u.type) : me = W.find(
8814
8816
  (fe) => fe.type === "form"
8815
- ), me || (Qe(
8817
+ ), me || (Ze(
8816
8818
  `Error determining the first view to show for model ${i}.
8817
8819
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
8818
8820
  ), ke == null || ke(d)), ue(me), S(W), _(!1);
@@ -8960,7 +8962,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8960
8962
  ue(W);
8961
8963
  }
8962
8964
  }
8963
- return O ? /* @__PURE__ */ r($e, {}) : w ? /* @__PURE__ */ D(
8965
+ return I ? /* @__PURE__ */ r($e, {}) : w ? /* @__PURE__ */ D(
8964
8966
  Ra,
8965
8967
  {
8966
8968
  title: a,
@@ -8973,7 +8975,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8973
8975
  currentId: F,
8974
8976
  setCurrentId: Me,
8975
8977
  setCurrentItemIndex: A,
8976
- currentItemIndex: I,
8978
+ currentItemIndex: O,
8977
8979
  results: N,
8978
8980
  setResults: j,
8979
8981
  currentModel: i,
@@ -9033,13 +9035,13 @@ async function wd({
9033
9035
  if (x)
9034
9036
  h.push(b);
9035
9037
  else {
9036
- const { view_id: O } = await P.getHandler().getView({
9038
+ const { view_id: I } = await P.getHandler().getView({
9037
9039
  model: d,
9038
9040
  type: S,
9039
9041
  id: x,
9040
9042
  context: { ...t, ...a }
9041
9043
  });
9042
- h.push([O, S]);
9044
+ h.push([I, S]);
9043
9045
  }
9044
9046
  }
9045
9047
  const [y, g] = h[0], w = { id: y, type: g };
@@ -9152,10 +9154,10 @@ function Td(e) {
9152
9154
  domain: s = [],
9153
9155
  visible: a = !0,
9154
9156
  parentContext: l = {}
9155
- } = e, [d, u] = v(!1), [f, c] = v(!1), [m, p] = v(), [h, y] = v(), [g, w] = v(), [b, x] = v(1), [S, O] = v(0), _ = le(St), V = le([]), [F, T] = v(0), [R, C] = v([]), [I, A] = v(void 0), [N, j] = v(), [H, U] = v(), [k, Y] = v(), [q, Z] = v(!1), re = le([]), B = (z) => {
9156
- Z(!0), x(z), O((z - 1) * _.current);
9157
+ } = e, [d, u] = v(!1), [f, c] = v(!1), [m, p] = v(), [h, y] = v(), [g, w] = v(), [b, x] = v(1), [S, I] = v(0), _ = le(St), V = le([]), [F, T] = v(0), [R, C] = v([]), [O, A] = v(void 0), [N, j] = v(), [H, U] = v(), [k, Y] = v(), [q, Z] = v(!1), re = le([]), B = (z) => {
9158
+ Z(!0), x(z), I((z - 1) * _.current);
9157
9159
  }, E = async () => {
9158
- const z = re.current.length > 0 ? re.current : s, se = jt(V.current, z), { colors: Se } = At(h), { totalItems: Ee, results: ke, attrsEvaluated: Me } = await P.getHandler().searchForTree({
9160
+ const z = re.current.length > 0 ? re.current : s, se = Ut(V.current, z), { colors: Se } = At(h), { totalItems: Ee, results: ke, attrsEvaluated: Me } = await P.getHandler().searchForTree({
9159
9161
  params: se,
9160
9162
  limit: _.current,
9161
9163
  offset: S,
@@ -9164,7 +9166,7 @@ function Td(e) {
9164
9166
  context: l,
9165
9167
  attrs: Se && { colors: Se }
9166
9168
  });
9167
- A(tn(Me));
9169
+ A(nn(Me));
9168
9170
  const ue = Dt({
9169
9171
  resultsToSort: ke,
9170
9172
  sorter: N,
@@ -9225,9 +9227,9 @@ function Td(e) {
9225
9227
  treeView: h
9226
9228
  });
9227
9229
  }, ve = () => !h || !g ? null : /* @__PURE__ */ D("div", { style: { overflowY: "scroll" }, children: [
9228
- H && /* @__PURE__ */ r(Ze, { className: "mt-10", message: H, type: "error", banner: !0 }),
9230
+ H && /* @__PURE__ */ r(Je, { className: "mt-10", message: H, type: "error", banner: !0 }),
9229
9231
  /* @__PURE__ */ r(
9230
- Jt,
9232
+ Xt,
9231
9233
  {
9232
9234
  showPagination: !1,
9233
9235
  total: F,
@@ -9238,7 +9240,7 @@ function Td(e) {
9238
9240
  onRequestPageChange: B,
9239
9241
  loading: q,
9240
9242
  onRowClicked: te,
9241
- colorsForResults: I,
9243
+ colorsForResults: O,
9242
9244
  sorter: N,
9243
9245
  onChangeSort: (z) => {
9244
9246
  j == null || j(z);
@@ -9253,9 +9255,9 @@ function Td(e) {
9253
9255
  }
9254
9256
  )
9255
9257
  ] });
9256
- return k ? /* @__PURE__ */ r(Ze, { className: "mt-10", message: k, type: "error", banner: !0 }) : d ? /* @__PURE__ */ r($e, { style: { padding: "2rem" } }) : ve();
9258
+ return k ? /* @__PURE__ */ r(Je, { className: "mt-10", message: k, type: "error", banner: !0 }) : d ? /* @__PURE__ */ r($e, { style: { padding: "2rem" } }) : ve();
9257
9259
  }
9258
- const Fd = $n(Td), Od = (e) => {
9260
+ const Fd = Hn(Td), Id = (e) => {
9259
9261
  const { model: t } = e, [n, i] = v();
9260
9262
  he(() => {
9261
9263
  o();
@@ -9268,9 +9270,9 @@ const Fd = $n(Td), Od = (e) => {
9268
9270
  });
9269
9271
  s.length > 0 && i(s[0].id);
9270
9272
  }
9271
- return /* @__PURE__ */ r("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ r(qt, { ...e, model: t, id: n, readOnly: !0 }) });
9272
- }, Id = (e) => {
9273
- const { model: t, domain: n = [], context: i = {}, view_id: o, manualIds: s } = e, [a, l] = v(!1), [d, u] = v(), [f, c] = v(), [m] = Xe(
9273
+ return /* @__PURE__ */ r("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ r(zt, { ...e, model: t, id: n, readOnly: !0 }) });
9274
+ }, Od = (e) => {
9275
+ const { model: t, domain: n = [], context: i = {}, view_id: o, manualIds: s } = e, [a, l] = v(!1), [d, u] = v(), [f, c] = v(), [m] = Qe(
9274
9276
  P.getHandler().readForView
9275
9277
  ), p = de(async () => {
9276
9278
  l(!0), u(void 0), s && n.push(["id", "in", s]);
@@ -9296,7 +9298,7 @@ const Fd = $n(Td), Od = (e) => {
9296
9298
  }, Rd = (e, t) => {
9297
9299
  const { view_id: n, model: i, context: o, domain: s, manualIds: a } = e, l = oe(
9298
9300
  nt
9299
- ), { setGraphIsLoading: d = void 0 } = l || {}, { error: u, loading: f, graphData: c, fetchData: m } = Id({
9301
+ ), { setGraphIsLoading: d = void 0 } = l || {}, { error: u, loading: f, graphData: c, fetchData: m } = Od({
9300
9302
  view_id: n,
9301
9303
  model: i,
9302
9304
  domain: s,
@@ -9312,9 +9314,9 @@ const Fd = $n(Td), Od = (e) => {
9312
9314
  })), he(() => {
9313
9315
  m();
9314
9316
  }, [n]), f || !c)
9315
- return /* @__PURE__ */ r(gn, {});
9317
+ return /* @__PURE__ */ r(yn, {});
9316
9318
  if (u)
9317
- return /* @__PURE__ */ r(Ze, { className: "mt-10", message: u, type: "error", banner: !0 });
9319
+ return /* @__PURE__ */ r(Je, { className: "mt-10", message: u, type: "error", banner: !0 });
9318
9320
  switch (c.type) {
9319
9321
  case "indicatorField":
9320
9322
  case "indicator": {
@@ -9350,38 +9352,38 @@ const Fd = $n(Td), Od = (e) => {
9350
9352
  default:
9351
9353
  return /* @__PURE__ */ r(ee, { children: `Graph ${c.type} not implemented` });
9352
9354
  }
9353
- }, _d = ht(Rd), Rn = "line_ids";
9355
+ }, _d = ht(Rd), _n = "line_ids";
9354
9356
  function Vd(e, t) {
9355
9357
  const { model: n, context: i = {}, id: o, configAction: s } = e, [a, l] = v([]), [d, u] = v(!1), [f, c] = v(), {
9356
9358
  setIsLoading: m,
9357
9359
  openAction: p,
9358
9360
  moveItemsEnabled: h
9359
- } = oe(ar), y = le(), g = le(), [w] = Xe(P.getHandler().getView), [b] = Xe(
9361
+ } = oe(ar), y = le(), g = le(), [w] = Qe(P.getHandler().getView), [b] = Qe(
9360
9362
  P.getHandler().readObjects
9361
- ), [x] = Xe(P.getHandler().update), S = Ko(
9362
- vn.FEATURE_READFORVIEW
9363
+ ), [x] = Qe(P.getHandler().update), S = Ko(
9364
+ bn.FEATURE_READFORVIEW
9363
9365
  );
9364
9366
  he(() => {
9365
- O();
9367
+ I();
9366
9368
  }, [n, o, i]), pt(t, () => ({
9367
9369
  refresh: () => {
9368
- O();
9370
+ I();
9369
9371
  },
9370
9372
  configDashboard: C
9371
9373
  }));
9372
- async function O() {
9374
+ async function I() {
9373
9375
  u(!0), m(!0), c(void 0);
9374
9376
  try {
9375
- const I = await _(), A = await F(I), N = I.fields[Rn].relation, j = A[Rn].items;
9376
- g.current = I.fields;
9377
+ const O = await _(), A = await F(O), N = O.fields[_n].relation, j = A[_n].items;
9378
+ g.current = O.fields;
9377
9379
  const H = await V({
9378
9380
  items: j,
9379
9381
  model: N,
9380
9382
  context: i
9381
9383
  }), U = await T(H);
9382
9384
  c(void 0), l(U), u(!1), m(!1);
9383
- } catch (I) {
9384
- c(JSON.stringify(I));
9385
+ } catch (O) {
9386
+ c(JSON.stringify(O));
9385
9387
  }
9386
9388
  }
9387
9389
  async function _() {
@@ -9392,7 +9394,7 @@ function Vd(e, t) {
9392
9394
  });
9393
9395
  }
9394
9396
  async function V({
9395
- items: I,
9397
+ items: O,
9396
9398
  model: A,
9397
9399
  context: N
9398
9400
  }) {
@@ -9409,23 +9411,23 @@ function Vd(e, t) {
9409
9411
  fields: y.current
9410
9412
  },
9411
9413
  model: A,
9412
- items: I,
9414
+ items: O,
9413
9415
  context: N,
9414
9416
  currentView: "form"
9415
9417
  });
9416
9418
  return j;
9417
9419
  }
9418
- async function F(I) {
9420
+ async function F(O) {
9419
9421
  return (await b({
9420
9422
  model: n,
9421
9423
  ids: [o],
9422
- fields: I.fields,
9424
+ fields: O.fields,
9423
9425
  context: i
9424
9426
  }))[0];
9425
9427
  }
9426
- async function T(I) {
9428
+ async function T(O) {
9427
9429
  const A = [];
9428
- for (const j of I) {
9430
+ for (const j of O) {
9429
9431
  const { values: H } = j;
9430
9432
  if (H.action_id && H.action_id.length > 0) {
9431
9433
  const U = parseInt(H.action_id[0], 10), k = wd({
@@ -9437,10 +9439,10 @@ function Vd(e, t) {
9437
9439
  }
9438
9440
  return await Promise.all(A);
9439
9441
  }
9440
- async function R(I) {
9442
+ async function R(O) {
9441
9443
  if (!h)
9442
9444
  return;
9443
- const A = I.filter((U) => {
9445
+ const A = O.filter((U) => {
9444
9446
  const k = a.find(
9445
9447
  (q) => q.id === U.id
9446
9448
  );
@@ -9475,7 +9477,7 @@ function Vd(e, t) {
9475
9477
  await x({
9476
9478
  model: n,
9477
9479
  id: o,
9478
- values: { [Rn]: H },
9480
+ values: { [_n]: H },
9479
9481
  fields: g.current,
9480
9482
  context: i
9481
9483
  });
@@ -9483,8 +9485,8 @@ function Vd(e, t) {
9483
9485
  async function C() {
9484
9486
  p(s);
9485
9487
  }
9486
- return d ? /* @__PURE__ */ r(gt, {}) : f ? /* @__PURE__ */ r(Ze, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ r(bd, { onPositionItemsChanged: R, children: a.map((I, A) => {
9487
- const { actionData: N, values: j } = I, { position: H, id: U } = j, {
9488
+ return d ? /* @__PURE__ */ r(gt, {}) : f ? /* @__PURE__ */ r(Je, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ r(bd, { onPositionItemsChanged: R, children: a.map((O, A) => {
9489
+ const { actionData: N, values: j } = O, { position: H, id: U } = j, {
9488
9490
  actionId: k,
9489
9491
  actionType: Y,
9490
9492
  key: q,
@@ -9504,7 +9506,7 @@ function Vd(e, t) {
9504
9506
  }
9505
9507
  let te = null;
9506
9508
  if (($ == null ? void 0 : $.type) === "graph") {
9507
- const Se = j.server_action === !0 && S ? _d : yn;
9509
+ const Se = j.server_action === !0 && S ? _d : wn;
9508
9510
  te = /* @__PURE__ */ r(
9509
9511
  Se,
9510
9512
  {
@@ -9519,7 +9521,7 @@ function Vd(e, t) {
9519
9521
  U
9520
9522
  );
9521
9523
  } else if (($ == null ? void 0 : $.type) === "form")
9522
- te = /* @__PURE__ */ r(Od, { model: B, actionDomain: K }, U);
9524
+ te = /* @__PURE__ */ r(Id, { model: B, actionDomain: K }, U);
9523
9525
  else if (($ == null ? void 0 : $.type) === "tree")
9524
9526
  te = /* @__PURE__ */ r(
9525
9527
  Fd,
@@ -9648,9 +9650,9 @@ const Ad = ht(Vd), Dd = (e) => {
9648
9650
  fieldsToRetrieve: [y],
9649
9651
  context: { ...b == null ? void 0 : b(), ...p }
9650
9652
  })).map((C) => {
9651
- const I = C[y];
9652
- let A = I;
9653
- return Array.isArray(I) && (A = I[1]), { label: A, value: C.id };
9653
+ const O = C[y];
9654
+ let A = O;
9655
+ return Array.isArray(O) && (A = O[1]), { label: A, value: C.id };
9654
9656
  });
9655
9657
  l(R);
9656
9658
  } catch (T) {
@@ -9659,9 +9661,9 @@ const Ad = ht(Vd), Dd = (e) => {
9659
9661
  c(!1);
9660
9662
  }
9661
9663
  if (d)
9662
- return /* @__PURE__ */ r(Ze, { className: "mt-10", message: d, type: "error", banner: !0 });
9664
+ return /* @__PURE__ */ r(Je, { className: "mt-10", message: d, type: "error", banner: !0 });
9663
9665
  }
9664
- const O = () => {
9666
+ const I = () => {
9665
9667
  V(a.map((F) => F.value));
9666
9668
  }, _ = () => {
9667
9669
  V([]);
@@ -9689,7 +9691,7 @@ const Ad = ht(Vd), Dd = (e) => {
9689
9691
  /* @__PURE__ */ r(
9690
9692
  Pe,
9691
9693
  {
9692
- onClick: O,
9694
+ onClick: I,
9693
9695
  disabled: s.length == a.length,
9694
9696
  children: "Check all"
9695
9697
  }
@@ -9759,7 +9761,7 @@ const Ad = ht(Vd), Dd = (e) => {
9759
9761
  }
9760
9762
  }
9761
9763
  ) });
9762
- }, { Meta: Wd } = Hn, { Text: jd } = kt, Ud = ({ email: e, size: t = 40, theme: n = "" }) => {
9764
+ }, { Meta: Wd } = Bn, { Text: jd } = kt, Ud = ({ email: e, size: t = 40, theme: n = "" }) => {
9763
9765
  const i = `https://www.gravatar.com/avatar/${gs(
9764
9766
  e
9765
9767
  )}?s=${t}&d=${n}`;
@@ -9775,7 +9777,7 @@ function Gd({ text: e }) {
9775
9777
  }
9776
9778
  const Yd = (e) => {
9777
9779
  const { data: t, style: n } = e, { t: i } = we();
9778
- return /* @__PURE__ */ D(Hn, { style: { ...n, textAlign: "start" }, children: [
9780
+ return /* @__PURE__ */ D(Bn, { style: { ...n, textAlign: "start" }, children: [
9779
9781
  /* @__PURE__ */ r(
9780
9782
  Wd,
9781
9783
  {
@@ -9804,19 +9806,37 @@ const Yd = (e) => {
9804
9806
  children: /* @__PURE__ */ r(Yd, { data: i.event })
9805
9807
  };
9806
9808
  });
9807
- return /* @__PURE__ */ r(_n, { mode: "alternate", items: n });
9808
- }, zd = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(qd, {}) }), Jd = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Wi, {}) }), { Content: Xd } = hi, { Title: Qd } = kt;
9809
- function Zd() {
9809
+ return /* @__PURE__ */ r(Vn, { mode: "alternate", items: n });
9810
+ }, zd = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(qd, {}) }), Jd = (e) => /* @__PURE__ */ r(be, { ...e, children: /* @__PURE__ */ r(Wi, {}) }), Xd = (e) => {
9811
+ const { ooui: t } = e, { title: n, text: i, alertType: o, icon: s } = t;
9812
+ function a(l) {
9813
+ if (l) {
9814
+ const d = st(l);
9815
+ return d && /* @__PURE__ */ r(d, {});
9816
+ }
9817
+ }
9818
+ return /* @__PURE__ */ r(
9819
+ Je,
9820
+ {
9821
+ message: /* @__PURE__ */ r(Wt, { content: n }),
9822
+ description: /* @__PURE__ */ r(Wt, { content: i }),
9823
+ type: o,
9824
+ showIcon: !0,
9825
+ icon: a(s)
9826
+ }
9827
+ );
9828
+ }, { Content: Qd } = hi, { Title: Zd } = kt;
9829
+ function eu() {
9810
9830
  const { t: e } = we();
9811
- return /* @__PURE__ */ r(Xd, { className: "m-5 select-none", children: /* @__PURE__ */ r(Qd, { level: 5, children: e("welcome") }) });
9831
+ return /* @__PURE__ */ r(Qd, { className: "m-5 select-none", children: /* @__PURE__ */ r(Zd, { level: 5, children: e("welcome") }) });
9812
9832
  }
9813
- function eu(e, t) {
9833
+ function tu(e, t) {
9814
9834
  const { children: n } = e, [i, o] = v("welcome"), { t: s } = we(), { globalValues: a, rootContext: l } = Bo(), [d, u] = v([
9815
9835
  {
9816
9836
  title: s("welcome"),
9817
9837
  key: "welcome",
9818
9838
  closable: !0,
9819
- content: /* @__PURE__ */ r(Zd, {})
9839
+ content: /* @__PURE__ */ r(eu, {})
9820
9840
  }
9821
9841
  ]), f = le(/* @__PURE__ */ new Map()), c = le();
9822
9842
  pt(t, () => ({
@@ -9825,20 +9845,20 @@ function eu(e, t) {
9825
9845
  }));
9826
9846
  function m(S) {
9827
9847
  if (S === i) {
9828
- const O = d.findIndex((_) => _.key === S);
9829
- d[O - 1] && o(d[O - 1].key), d[O + 1] && o(d[O + 1].key);
9848
+ const I = d.findIndex((_) => _.key === S);
9849
+ d[I - 1] && o(d[I - 1].key), d[I + 1] && o(d[I + 1].key);
9830
9850
  }
9831
- u(d.filter((O) => O.key !== S)), f.current.delete(S);
9851
+ u(d.filter((I) => I.key !== S)), f.current.delete(S);
9832
9852
  }
9833
9853
  function p({
9834
9854
  tabKey: S,
9835
- canWeClose: O
9855
+ canWeClose: I
9836
9856
  }) {
9837
- f.current.set(S, O);
9857
+ f.current.set(S, I);
9838
9858
  }
9839
9859
  async function h({
9840
9860
  action: S,
9841
- values: O,
9861
+ values: I,
9842
9862
  forced_values: _,
9843
9863
  initialViewType: V,
9844
9864
  res_id: F,
@@ -9849,10 +9869,10 @@ function eu(e, t) {
9849
9869
  context: l
9850
9870
  });
9851
9871
  if (R.type === "ir.actions.wizard") {
9852
- Qe("Action type not supported");
9872
+ Ze("Action type not supported");
9853
9873
  return;
9854
9874
  }
9855
- const [C, I] = S.split(","), A = parseInt(I), N = xt({
9875
+ const [C, O] = S.split(","), A = parseInt(O), N = xt({
9856
9876
  context: R.context,
9857
9877
  values: a,
9858
9878
  fields: {}
@@ -9904,7 +9924,7 @@ function eu(e, t) {
9904
9924
  initialView: E,
9905
9925
  action_type: C,
9906
9926
  action_id: A,
9907
- values: O,
9927
+ values: I,
9908
9928
  forced_values: _,
9909
9929
  res_id: F,
9910
9930
  treeExpandable: re,
@@ -9913,7 +9933,7 @@ function eu(e, t) {
9913
9933
  }
9914
9934
  function y({
9915
9935
  title: S,
9916
- content: O,
9936
+ content: I,
9917
9937
  key: _,
9918
9938
  action: V
9919
9939
  }) {
@@ -9924,14 +9944,14 @@ function eu(e, t) {
9924
9944
  title: S,
9925
9945
  key: _,
9926
9946
  closable: !0,
9927
- content: O,
9947
+ content: I,
9928
9948
  action: V
9929
9949
  }
9930
9950
  ]), o(_);
9931
9951
  }
9932
9952
  async function g({
9933
9953
  relateData: S,
9934
- fields: O,
9954
+ fields: I,
9935
9955
  values: _,
9936
9956
  action_id: V,
9937
9957
  action_type: F
@@ -9940,27 +9960,27 @@ function eu(e, t) {
9940
9960
  res_model: T,
9941
9961
  context: R,
9942
9962
  domain: C,
9943
- views: I,
9963
+ views: O,
9944
9964
  target: A,
9945
9965
  string: N,
9946
9966
  limit: j
9947
- } = S, [H, U] = I[0], k = { id: H, type: U }, Y = xt({
9967
+ } = S, [H, U] = O[0], k = { id: H, type: U }, Y = xt({
9948
9968
  context: R,
9949
9969
  values: { ..._, ...a },
9950
- fields: O
9970
+ fields: I
9951
9971
  }), q = C ? await P.getHandler().evalDomain({
9952
9972
  domain: C,
9953
9973
  values: Nt({
9954
- fields: O,
9974
+ fields: I,
9955
9975
  values: { ..._, ...a }
9956
9976
  }),
9957
- fields: O,
9977
+ fields: I,
9958
9978
  context: { ...l, ...Y }
9959
9979
  }) : [];
9960
9980
  x({
9961
9981
  model: T,
9962
9982
  target: A,
9963
- views: I,
9983
+ views: O,
9964
9984
  context: { ...l, ...Y },
9965
9985
  domain: q,
9966
9986
  title: N,
@@ -9972,22 +9992,22 @@ function eu(e, t) {
9972
9992
  }
9973
9993
  async function w(S) {
9974
9994
  const {
9975
- action_id: O,
9995
+ action_id: I,
9976
9996
  action_type: _,
9977
9997
  res_id: V,
9978
9998
  view_id: F,
9979
9999
  overrideUnsettedLimit: T = !1
9980
- } = S, R = `${_},${O}`, C = await P.getHandler().getActionData({
10000
+ } = S, R = `${_},${I}`, C = await P.getHandler().getActionData({
9981
10001
  action: R,
9982
10002
  context: l
9983
- }), I = xt({
10003
+ }), O = xt({
9984
10004
  context: C.context,
9985
10005
  values: a,
9986
10006
  fields: {}
9987
10007
  }), A = C.domain ? await P.getHandler().evalDomain({
9988
10008
  domain: C.domain,
9989
10009
  values: a,
9990
- context: { ...l, ...I }
10010
+ context: { ...l, ...O }
9991
10011
  }) : [], {
9992
10012
  res_model: N,
9993
10013
  views: j,
@@ -10007,7 +10027,7 @@ function eu(e, t) {
10007
10027
  model: N,
10008
10028
  type: ce,
10009
10029
  id: $,
10010
- context: { ...l, ...I }
10030
+ context: { ...l, ...O }
10011
10031
  });
10012
10032
  Z.push([X, ce]);
10013
10033
  }
@@ -10021,13 +10041,13 @@ function eu(e, t) {
10021
10041
  const E = { id: re, type: B };
10022
10042
  x({
10023
10043
  domain: A,
10024
- context: { ...l, ...I },
10044
+ context: { ...l, ...O },
10025
10045
  model: N,
10026
10046
  views: Z,
10027
10047
  title: H,
10028
10048
  target: U,
10029
10049
  initialView: E,
10030
- action_id: O,
10050
+ action_id: I,
10031
10051
  action_type: _,
10032
10052
  res_id: V,
10033
10053
  treeExpandable: q,
@@ -10036,7 +10056,7 @@ function eu(e, t) {
10036
10056
  }
10037
10057
  async function b({
10038
10058
  model: S,
10039
- values: O,
10059
+ values: I,
10040
10060
  forced_values: _,
10041
10061
  initialViewType: V,
10042
10062
  res_id: F,
@@ -10045,7 +10065,7 @@ function eu(e, t) {
10045
10065
  const R = await P.getHandler().getActionStringForModel(S);
10046
10066
  await h({
10047
10067
  action: R,
10048
- values: O,
10068
+ values: I,
10049
10069
  forced_values: _,
10050
10070
  initialViewType: V,
10051
10071
  res_id: F,
@@ -10054,14 +10074,14 @@ function eu(e, t) {
10054
10074
  }
10055
10075
  async function x({
10056
10076
  domain: S,
10057
- context: O,
10077
+ context: I,
10058
10078
  model: _,
10059
10079
  views: V,
10060
10080
  title: F,
10061
10081
  target: T,
10062
10082
  initialView: R,
10063
10083
  action_id: C,
10064
- action_type: I,
10084
+ action_type: O,
10065
10085
  res_id: A,
10066
10086
  values: N,
10067
10087
  forced_values: j,
@@ -10074,16 +10094,16 @@ function eu(e, t) {
10074
10094
  model: _,
10075
10095
  type: "form",
10076
10096
  id: R.type === "form" ? R.id : void 0,
10077
- context: { ...l, ...O }
10097
+ context: { ...l, ...I }
10078
10098
  });
10079
10099
  c.current.openActionModal({
10080
10100
  domain: S,
10081
10101
  model: _,
10082
10102
  formView: Y,
10083
- context: { ...l, ...O },
10103
+ context: { ...l, ...I },
10084
10104
  actionData: {
10085
10105
  action_id: C,
10086
- action_type: I,
10106
+ action_type: O,
10087
10107
  res_id: A,
10088
10108
  view_id: Y.view_id
10089
10109
  }
@@ -10094,18 +10114,18 @@ function eu(e, t) {
10094
10114
  title: F,
10095
10115
  action: {
10096
10116
  id: C,
10097
- type: I
10117
+ type: O
10098
10118
  },
10099
10119
  content: /* @__PURE__ */ r(
10100
10120
  Wo,
10101
10121
  {
10102
10122
  action_id: C,
10103
- action_type: I,
10123
+ action_type: O,
10104
10124
  tabKey: k,
10105
10125
  title: F,
10106
10126
  views: V,
10107
10127
  model: _,
10108
- context: { ...l, ...O },
10128
+ context: { ...l, ...I },
10109
10129
  domain: S,
10110
10130
  setCanWeClose: p,
10111
10131
  initialView: Y,
@@ -10130,8 +10150,8 @@ function eu(e, t) {
10130
10150
  tabs: d,
10131
10151
  activeKey: i,
10132
10152
  onRemoveTab: async (S) => {
10133
- const O = f.current.get(S);
10134
- (await (O == null ? void 0 : O()) || i === "welcome") && m(S);
10153
+ const I = f.current.get(S);
10154
+ (await (I == null ? void 0 : I()) || i === "welcome") && m(S);
10135
10155
  },
10136
10156
  onChangeTab: (S) => {
10137
10157
  o(S);
@@ -10147,9 +10167,9 @@ function eu(e, t) {
10147
10167
  }
10148
10168
  );
10149
10169
  }
10150
- const Yu = ht(eu), { useToken: tu } = Be;
10151
- function nu(e) {
10152
- const { label: t, onClose: n, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = tu(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
10170
+ const qu = ht(tu), { useToken: nu } = Be;
10171
+ function ru(e) {
10172
+ const { label: t, onClose: n, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = nu(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
10153
10173
  return /* @__PURE__ */ D(
10154
10174
  "div",
10155
10175
  {
@@ -10203,7 +10223,7 @@ function nu(e) {
10203
10223
  alignItems: "center"
10204
10224
  },
10205
10225
  children: /* @__PURE__ */ r(
10206
- Ut,
10226
+ Gt,
10207
10227
  {
10208
10228
  style: {
10209
10229
  color: a.colorPrimaryActive
@@ -10219,12 +10239,12 @@ function nu(e) {
10219
10239
  }
10220
10240
  );
10221
10241
  }
10222
- function qu() {
10242
+ function zu() {
10223
10243
  const e = oe(
10224
10244
  dt
10225
10245
  ), { activeKey: t, tabs: n, onRemoveTab: i, onChangeTab: o } = e || {};
10226
10246
  return /* @__PURE__ */ r(ee, { children: n.map((s) => /* @__PURE__ */ r(
10227
- nu,
10247
+ ru,
10228
10248
  {
10229
10249
  tabKey: s.key,
10230
10250
  label: s.title,
@@ -10235,7 +10255,7 @@ function qu() {
10235
10255
  s.key
10236
10256
  )) });
10237
10257
  }
10238
- function ru(e) {
10258
+ function ou(e) {
10239
10259
  const { tab: t } = e, n = oe(
10240
10260
  dt
10241
10261
  ), { activeKey: i } = n || {}, o = {
@@ -10243,21 +10263,21 @@ function ru(e) {
10243
10263
  };
10244
10264
  return /* @__PURE__ */ r("div", { style: t.key !== i ? o : void 0, children: t.content });
10245
10265
  }
10246
- const ou = rt.memo(ru, () => !0);
10247
- function zu() {
10266
+ const iu = rt.memo(ou, () => !0);
10267
+ function Ju() {
10248
10268
  const e = oe(
10249
10269
  dt
10250
- ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ r(ou, { tab: i }, i.key))) || null;
10270
+ ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ r(iu, { tab: i }, i.key))) || null;
10251
10271
  return /* @__PURE__ */ r(ee, { children: n });
10252
10272
  }
10253
- const { useToken: iu } = Be, Ju = (e) => {
10273
+ const { useToken: su } = Be, Xu = (e) => {
10254
10274
  const {
10255
10275
  onRetrieveShortcuts: t,
10256
10276
  onCheckIsFavourite: n,
10257
10277
  onAddFavourite: i,
10258
10278
  onRemoveFavourite: o,
10259
10279
  onDropdownClosed: s
10260
- } = e, [a, l] = v(!1), [d, u] = v(), { t: f } = we(), { token: c } = iu(), m = le(null), p = oe(
10280
+ } = e, [a, l] = v(!1), [d, u] = v(), { t: f } = we(), { token: c } = su(), m = le(null), p = oe(
10261
10281
  dt
10262
10282
  ), {
10263
10283
  openShortcut: h,
@@ -10266,11 +10286,11 @@ const { useToken: iu } = Be, Ju = (e) => {
10266
10286
  currentView: w,
10267
10287
  currentId: b,
10268
10288
  openDefaultActionForModel: x
10269
- } = p || {}, S = Ie(() => {
10289
+ } = p || {}, S = Oe(() => {
10270
10290
  if (!w || !w.view_id || !w.extra)
10271
10291
  return;
10272
- const { action_id: C, action_type: I } = w.extra || {};
10273
- if (!C || !I) {
10292
+ const { action_id: C, action_type: O } = w.extra || {};
10293
+ if (!C || !O) {
10274
10294
  l(!1);
10275
10295
  return;
10276
10296
  }
@@ -10278,20 +10298,20 @@ const { useToken: iu } = Be, Ju = (e) => {
10278
10298
  let N = !1;
10279
10299
  return w.type === "form" && (N = b || !1), {
10280
10300
  action_id: C,
10281
- action_type: I,
10301
+ action_type: O,
10282
10302
  view_id: A,
10283
10303
  res_id: N
10284
10304
  };
10285
- }, [b, w]), O = Ie(() => {
10305
+ }, [b, w]), I = Oe(() => {
10286
10306
  if (S)
10287
10307
  return JSON.stringify(S);
10288
10308
  }, [S]);
10289
10309
  he(() => {
10290
10310
  V();
10291
- }, [O]);
10311
+ }, [I]);
10292
10312
  function _(C) {
10293
- const I = C;
10294
- (I == null ? void 0 : I.action_type) !== "ir.actions.wizard" && h(I);
10313
+ const O = C;
10314
+ (O == null ? void 0 : O.action_type) !== "ir.actions.wizard" && h(O);
10295
10315
  }
10296
10316
  const V = de(async () => {
10297
10317
  if (!S)
@@ -10316,7 +10336,7 @@ const { useToken: iu } = Be, Ju = (e) => {
10316
10336
  ...A,
10317
10337
  id: A.id,
10318
10338
  name: A.name,
10319
- icon: A.view_type === "tree" ? /* @__PURE__ */ r(Qn, {}) : /* @__PURE__ */ r(Kt, {})
10339
+ icon: A.view_type === "tree" ? /* @__PURE__ */ r(Zn, {}) : /* @__PURE__ */ r(Kt, {})
10320
10340
  }))
10321
10341
  }
10322
10342
  ];
@@ -10326,14 +10346,14 @@ const { useToken: iu } = Be, Ju = (e) => {
10326
10346
  else {
10327
10347
  if (!w)
10328
10348
  return;
10329
- const C = y.find((H) => H.key === g), { id: I, type: A } = (C == null ? void 0 : C.action) || {}, N = w.view_id;
10349
+ const C = y.find((H) => H.key === g), { id: O, type: A } = (C == null ? void 0 : C.action) || {}, N = w.view_id;
10330
10350
  let j = !1;
10331
- if (!I || !A) {
10351
+ if (!O || !A) {
10332
10352
  l(!1);
10333
10353
  return;
10334
10354
  }
10335
10355
  w.type === "form" && (j = b || !1), await i({
10336
- action_id: I,
10356
+ action_id: O,
10337
10357
  action_type: A,
10338
10358
  view_id: N,
10339
10359
  res_id: j
@@ -10379,10 +10399,11 @@ const { useToken: iu } = Be, Ju = (e) => {
10379
10399
  export {
10380
10400
  Gc as ActionBar,
10381
10401
  Wo as ActionView,
10402
+ Xd as Alert,
10382
10403
  Hc as Binary,
10383
10404
  Bs as Boolean,
10384
10405
  io as Button,
10385
- Os as ButtonGroup,
10406
+ Is as ButtonGroup,
10386
10407
  lo as Char,
10387
10408
  Kd as CodeEditor,
10388
10409
  zd as CommentsTimelineField,
@@ -10390,27 +10411,27 @@ export {
10390
10411
  cd as ConfigContextProvider,
10391
10412
  P as ConnectionProvider,
10392
10413
  Da as ContentRootProvider,
10393
- zu as CurrentTabContent,
10414
+ Ju as CurrentTabContent,
10394
10415
  Ad as Dashboard,
10395
10416
  bd as DashboardGrid,
10396
10417
  Sd as DashboardGridItem,
10397
10418
  Ec as Date,
10398
10419
  kc as DateTime,
10399
10420
  zc as Email,
10400
- Gu as ErpAllFeatureKeys,
10401
- vn as ErpFeatureKeys,
10421
+ Yu as ErpAllFeatureKeys,
10422
+ bn as ErpFeatureKeys,
10402
10423
  Dc as ExportModal,
10403
- Ju as FavouriteButton,
10424
+ Xu as FavouriteButton,
10404
10425
  wo as Float,
10405
10426
  gc as FloatTime,
10406
- qt as Form,
10407
- zt as FormModal,
10427
+ zt as Form,
10428
+ Jt as FormModal,
10408
10429
  jl as GraphIndicator,
10409
10430
  ko as Group,
10410
10431
  Jd as HTMLPreview,
10411
10432
  Us as Image,
10412
- nn as Integer,
10413
- mn as Label,
10433
+ rn as Integer,
10434
+ hn as Label,
10414
10435
  $l as Many2one,
10415
10436
  kd as Markdown,
10416
10437
  Dd as MultiCheckbox,
@@ -10419,23 +10440,23 @@ export {
10419
10440
  fl as ProgressBar,
10420
10441
  Md as Radio,
10421
10442
  Nc as Reference,
10422
- Yu as RootView,
10443
+ qu as RootView,
10423
10444
  vo as SearchFilter,
10424
- Oo as SearchModal,
10445
+ Io as SearchModal,
10425
10446
  Fo as SearchTree,
10426
10447
  co as Selection,
10427
10448
  Sc as Separator,
10428
10449
  Hd as Steps,
10429
10450
  Ld as Switch,
10430
- nu as Tab,
10431
- qu as TabSelector,
10451
+ ru as Tab,
10452
+ zu as TabSelector,
10432
10453
  fa as Tag,
10433
10454
  ma as Tags,
10434
10455
  Cc as Text,
10435
10456
  Pc as Time,
10436
- Jt as Tree,
10457
+ Xt as Tree,
10437
10458
  qc as Url,
10438
- ct as iconMapper,
10439
- Gt as showConfirmDialog
10459
+ st as iconMapper,
10460
+ Yt as showConfirmDialog
10440
10461
  };
10441
10462
  //# sourceMappingURL=react-ooui.es.js.map