@gisce/react-ooui 1.2.6-rc.1 → 1.2.6-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- import qe, { useContext as K, useState as x, useEffect as pe, useRef as me, useCallback as Re, forwardRef as yt, useImperativeHandle as vt } from "react";
2
- import { Tooltip as ft, theme as Me, Typography as on, Form as it, Row as Ce, Col as ae, Modal as Ye, Button as Ie, Dropdown as Bt, Menu as $e, Spin as Ae, Divider as sn, Space as je, Input as Qe, Select as wt, Checkbox as Nt, Alert as ze, Timeline as er, Statistic as Go, Card as Uo, Tag as kn, message as wn, DatePicker as Rn, TimePicker as qo, InputNumber as En, Progress as zo, Avatar as Jo, Pagination as Zo, Tabs as _r, Popover as Xo, Radio as tr, Switch as Qo, Steps as nr, Layout as ei } from "antd";
3
- import { Label as Dt, Field as Fn, Tree as Ir, Reference as ti, Selection as Mn, Many2one as Dr, Boolean as ni, Container as ri, parseContext as gt, Form as Vr, Integer as On, SearchFieldTypes as ut, SearchFilter as oi, transformDomainForChildWidget as Ar, graphProcessor as kr, parseGraph as $n, graphFieldUtils as ii } from "@gisce/ooui";
1
+ import qe, { useContext as K, useState as x, useEffect as pe, useRef as me, useCallback as Re, forwardRef as vt, useImperativeHandle as wt } from "react";
2
+ import { Tooltip as ft, theme as Me, Typography as on, Form as it, Row as Ce, Col as ae, Modal as Ye, Button as Ie, Dropdown as Bt, Menu as $e, Spin as Ae, Divider as sn, Space as je, Input as Qe, Select as bt, Checkbox as Nt, Alert as ze, Timeline as er, Statistic as Go, Card as Uo, Tag as kn, message as wn, DatePicker as Rn, TimePicker as qo, InputNumber as En, Progress as zo, Avatar as Jo, Pagination as Zo, Tabs as _r, Popover as Xo, Radio as tr, Switch as Qo, Steps as nr, Layout as ei } from "antd";
3
+ import { Label as Vt, Field as Fn, Tree as Ir, Reference as ti, Selection as Mn, Many2one as Dr, Boolean as ni, Container as ri, parseContext as yt, Form as Vr, Integer as On, SearchFieldTypes as ut, SearchFilter as oi, transformDomainForChildWidget as Ar, graphProcessor as kr, parseGraph as $n, graphFieldUtils as ii } from "@gisce/ooui";
4
4
  import * as rr from "@ant-design/icons";
5
- import Rr, { QuestionCircleOutlined as Er, ExclamationCircleOutlined as mt, LoadingOutlined as et, DownOutlined as Vt, WarningOutlined as Mr, CloseOutlined as Ht, CheckOutlined as At, TranslationOutlined as $r, FolderOpenOutlined as Nn, DownloadOutlined as Ln, ClearOutlined as Pn, StarFilled as Nr, StarOutlined as Lr, UpOutlined as si, SearchOutlined as Bn, RightCircleOutlined as ai, ThunderboltOutlined as Hn, PrinterOutlined as jn, EnterOutlined as Pr, PlusSquareOutlined as li, MinusSquareOutlined as ci, FileAddOutlined as an, AlignLeftOutlined as di, ApiOutlined as ui, DeleteOutlined as Kn, LeftOutlined as Br, RightOutlined as Hr, EyeOutlined as fi, FormOutlined as Lt, TableOutlined as Wn, AreaChartOutlined as mi, CalendarOutlined as hi, LinkOutlined as jr, SaveOutlined as pi, CopyOutlined as Yn, InfoCircleOutlined as Kr, ReloadOutlined as ln, EditOutlined as Wr, FilterOutlined as Yr, CloseCircleFilled as gi, BorderOuterOutlined as yi, SettingOutlined as vi, ExportOutlined as wi } from "@ant-design/icons";
5
+ import Rr, { QuestionCircleOutlined as Er, ExclamationCircleOutlined as mt, LoadingOutlined as et, DownOutlined as At, WarningOutlined as Mr, CloseOutlined as Ht, CheckOutlined as kt, TranslationOutlined as $r, FolderOpenOutlined as Nn, DownloadOutlined as Ln, ClearOutlined as Pn, StarFilled as Nr, StarOutlined as Lr, UpOutlined as si, SearchOutlined as Bn, RightCircleOutlined as ai, ThunderboltOutlined as Hn, PrinterOutlined as jn, EnterOutlined as Pr, PlusSquareOutlined as li, MinusSquareOutlined as ci, FileAddOutlined as an, AlignLeftOutlined as di, ApiOutlined as ui, DeleteOutlined as Kn, LeftOutlined as Br, RightOutlined as Hr, EyeOutlined as fi, FormOutlined as Lt, TableOutlined as Wn, AreaChartOutlined as mi, CalendarOutlined as hi, LinkOutlined as jr, SaveOutlined as pi, CopyOutlined as Yn, InfoCircleOutlined as Kr, ReloadOutlined as ln, EditOutlined as Wr, FilterOutlined as Yr, CloseCircleFilled as gi, BorderOuterOutlined as yi, SettingOutlined as vi, ExportOutlined as wi } from "@ant-design/icons";
6
6
  import { Interweave as Gn } from "interweave";
7
- import { jsxs as P, jsx as n, Fragment as X } from "react/jsx-runtime";
7
+ import { jsxs as P, jsx as n, Fragment as Z } from "react/jsx-runtime";
8
8
  import * as or from "@tabler/icons-react";
9
9
  import bi from "antd/lib/input/TextArea";
10
10
  import jt from "styled-components";
11
11
  import Un from "react-measure";
12
12
  import _n from "antd/lib/typography/Title";
13
13
  import { Line as xi, Column as Ci, Pie as Si } from "@ant-design/plots";
14
- import bt from "use-deep-compare-effect";
14
+ import xt from "use-deep-compare-effect";
15
15
  import { Table as Ti } from "@gisce/react-formiga-table";
16
16
  import { fileTypeFromBuffer as Fi } from "file-type-buffer-browser";
17
17
  import { GridUi as Oi } from "@gisce/fiber-diagram";
@@ -381,7 +381,7 @@ function ve({
381
381
  if (!o)
382
382
  return h();
383
383
  const g = /* @__PURE__ */ n(cn, {
384
- ooui: new Dt({
384
+ ooui: new Vt({
385
385
  name: u + "_label",
386
386
  string: f,
387
387
  help: c,
@@ -403,7 +403,7 @@ function ve({
403
403
  flex: "auto",
404
404
  children: h()
405
405
  })]
406
- }))() : (() => /* @__PURE__ */ P(X, {
406
+ }))() : (() => /* @__PURE__ */ P(Z, {
407
407
  children: [g, h()]
408
408
  }))();
409
409
  }
@@ -623,8 +623,8 @@ const Ur = (e) => {
623
623
  if (m)
624
624
  return /* @__PURE__ */ n(et, {});
625
625
  if (l) {
626
- const V = st(l);
627
- return V && /* @__PURE__ */ n(V, {});
626
+ const D = st(l);
627
+ return D && /* @__PURE__ */ n(D, {});
628
628
  }
629
629
  }
630
630
  return /* @__PURE__ */ n(ve, {
@@ -663,7 +663,7 @@ const Ur = (e) => {
663
663
  } = r || {}, h = K(Ee), {
664
664
  executeButtonAction: g
665
665
  } = h || {}, [v, y] = x(!1), {
666
- lang: V
666
+ lang: D
667
667
  } = K(ge);
668
668
  function O() {
669
669
  if (v)
@@ -680,11 +680,11 @@ const Ur = (e) => {
680
680
  context: m
681
681
  }), y(!1));
682
682
  }
683
- function D() {
683
+ function V() {
684
684
  if (d) {
685
685
  Kt({
686
686
  confirmMessage: d,
687
- lang: V,
687
+ lang: D,
688
688
  onOk: () => {
689
689
  b();
690
690
  }
@@ -702,13 +702,13 @@ const Ur = (e) => {
702
702
  }),
703
703
  children: /* @__PURE__ */ P(Bt.Button, {
704
704
  disabled: !a || p,
705
- onClick: D,
706
- icon: /* @__PURE__ */ n(Vt, {}),
705
+ onClick: V,
706
+ icon: /* @__PURE__ */ n(At, {}),
707
707
  type: f ? "primary" : void 0,
708
708
  overlay: /* @__PURE__ */ n(zi, {
709
709
  ooui: i,
710
710
  executeButtonAction: g,
711
- lang: V
711
+ lang: D
712
712
  }),
713
713
  children: [O(), s]
714
714
  })
@@ -744,7 +744,7 @@ const Ur = (e) => {
744
744
  context: m
745
745
  }), v(!1);
746
746
  }
747
- function V() {
747
+ function D() {
748
748
  if (f) {
749
749
  Kt({
750
750
  confirmMessage: f,
@@ -767,7 +767,7 @@ const Ur = (e) => {
767
767
  }
768
768
  return /* @__PURE__ */ n($e.Item, {
769
769
  disabled: !d || p,
770
- onClick: V,
770
+ onClick: D,
771
771
  icon: O(),
772
772
  danger: h,
773
773
  children: l
@@ -857,9 +857,9 @@ const qr = (e) => {
857
857
  t: d
858
858
  } = K(ge), [u, f] = x([]), [c, m] = x(!1), [p, h] = x(!1), [g, v] = x({}), y = me();
859
859
  pe(() => {
860
- t ? V() : v({});
860
+ t ? D() : v({});
861
861
  }, [t]);
862
- async function V() {
862
+ async function D() {
863
863
  m(!0);
864
864
  try {
865
865
  const w = await O();
@@ -895,7 +895,7 @@ const qr = (e) => {
895
895
  }
896
896
  y.current = C, v(C);
897
897
  }
898
- function D() {
898
+ function V() {
899
899
  return u.map((w, C) => /* @__PURE__ */ P(Ce, {
900
900
  style: {
901
901
  paddingBottom: 20
@@ -943,8 +943,8 @@ const qr = (e) => {
943
943
  h(!1), a();
944
944
  }
945
945
  function $() {
946
- return c ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(X, {
947
- children: [D(), /* @__PURE__ */ n(sn, {}), /* @__PURE__ */ n(Ce, {
946
+ return c ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(Z, {
947
+ children: [V(), /* @__PURE__ */ n(sn, {}), /* @__PURE__ */ n(Ce, {
948
948
  justify: "end",
949
949
  children: /* @__PURE__ */ P(je, {
950
950
  children: [/* @__PURE__ */ n(Ie, {
@@ -953,7 +953,7 @@ const qr = (e) => {
953
953
  disabled: p,
954
954
  children: d("cancel")
955
955
  }), /* @__PURE__ */ n(Ie, {
956
- icon: p ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(At, {}),
956
+ icon: p ? /* @__PURE__ */ n(et, {}) : /* @__PURE__ */ n(kt, {}),
957
957
  disabled: p,
958
958
  onClick: _,
959
959
  style: {
@@ -1052,7 +1052,7 @@ const {
1052
1052
  } = o || {}, [f, c] = x(!1), {
1053
1053
  t: m
1054
1054
  } = K(ge);
1055
- return s ? /* @__PURE__ */ P(X, {
1055
+ return s ? /* @__PURE__ */ P(Z, {
1056
1056
  children: [/* @__PURE__ */ n("div", {
1057
1057
  onClick: () => {
1058
1058
  if (d != null && d()) {
@@ -1086,7 +1086,7 @@ const {
1086
1086
  c(!1), l == null || l();
1087
1087
  }
1088
1088
  })]
1089
- }) : /* @__PURE__ */ n(X, {
1089
+ }) : /* @__PURE__ */ n(Z, {
1090
1090
  children: /* @__PURE__ */ P(Ce, {
1091
1091
  gutter: 8,
1092
1092
  wrap: !1,
@@ -1119,7 +1119,7 @@ const {
1119
1119
  defaultSeed: rs
1120
1120
  } = Me, os = ns(rs), {
1121
1121
  Option: is
1122
- } = wt, Zr = (e) => {
1122
+ } = bt, Zr = (e) => {
1123
1123
  const {
1124
1124
  ooui: t
1125
1125
  } = e, {
@@ -1149,7 +1149,7 @@ const {
1149
1149
  children: m
1150
1150
  }, c);
1151
1151
  });
1152
- return /* @__PURE__ */ n(a && !s ? ss : wt, {
1152
+ return /* @__PURE__ */ n(a && !s ? ss : bt, {
1153
1153
  disabled: s,
1154
1154
  onChange: r,
1155
1155
  value: i,
@@ -1158,7 +1158,7 @@ const {
1158
1158
  showSearch: !0,
1159
1159
  children: d
1160
1160
  });
1161
- }, ss = jt(wt)`
1161
+ }, ss = jt(bt)`
1162
1162
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
1163
1163
  background-color: ${os.colorPrimaryBg};
1164
1164
  }
@@ -1204,12 +1204,12 @@ const {
1204
1204
  background-color: ${lr.colorPrimary};
1205
1205
  }
1206
1206
  `;
1207
- var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1207
+ var gt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1208
1208
  function fs(e) {
1209
1209
  var t = typeof e;
1210
1210
  return e != null && (t == "object" || t == "function");
1211
1211
  }
1212
- var Qr = fs, ms = typeof pt == "object" && pt && pt.Object === Object && pt, hs = ms, ps = hs, gs = typeof self == "object" && self && self.Object === Object && self, ys = ps || gs || Function("return this")(), eo = ys, vs = eo, ws = function() {
1212
+ var Qr = fs, ms = typeof gt == "object" && gt && gt.Object === Object && gt, hs = ms, ps = hs, gs = typeof self == "object" && self && self.Object === Object && self, ys = ps || gs || Function("return this")(), eo = ys, vs = eo, ws = function() {
1213
1213
  return vs.Date.now();
1214
1214
  }, bs = ws, xs = /\s/;
1215
1215
  function Cs(e) {
@@ -1221,16 +1221,16 @@ var Ss = Cs, Ts = Ss, Fs = /^\s+/;
1221
1221
  function Os(e) {
1222
1222
  return e && e.slice(0, Ts(e) + 1).replace(Fs, "");
1223
1223
  }
1224
- var _s = Os, Is = eo, Ds = Is.Symbol, to = Ds, cr = to, no = Object.prototype, Vs = no.hasOwnProperty, As = no.toString, Et = cr ? cr.toStringTag : void 0;
1224
+ var _s = Os, Is = eo, Ds = Is.Symbol, to = Ds, cr = to, no = Object.prototype, Vs = no.hasOwnProperty, As = no.toString, Mt = cr ? cr.toStringTag : void 0;
1225
1225
  function ks(e) {
1226
- var t = Vs.call(e, Et), r = e[Et];
1226
+ var t = Vs.call(e, Mt), r = e[Mt];
1227
1227
  try {
1228
- e[Et] = void 0;
1228
+ e[Mt] = void 0;
1229
1229
  var i = !0;
1230
1230
  } catch {
1231
1231
  }
1232
1232
  var o = As.call(e);
1233
- return i && (t ? e[Et] = r : delete e[Et]), o;
1233
+ return i && (t ? e[Mt] = r : delete e[Mt]), o;
1234
1234
  }
1235
1235
  var Rs = ks, Es = Object.prototype, Ms = Es.toString;
1236
1236
  function $s(e) {
@@ -1288,19 +1288,19 @@ function ca(e, t, r) {
1288
1288
  function y() {
1289
1289
  var _ = bn();
1290
1290
  if (v(_))
1291
- return V(_);
1291
+ return D(_);
1292
1292
  l = setTimeout(y, g(_));
1293
1293
  }
1294
- function V(_) {
1294
+ function D(_) {
1295
1295
  return l = void 0, m && i ? p(_) : (i = o = void 0, a);
1296
1296
  }
1297
1297
  function O() {
1298
1298
  l !== void 0 && clearTimeout(l), u = 0, i = d = o = l = void 0;
1299
1299
  }
1300
1300
  function b() {
1301
- return l === void 0 ? a : V(bn());
1301
+ return l === void 0 ? a : D(bn());
1302
1302
  }
1303
- function D() {
1303
+ function V() {
1304
1304
  var _ = bn(), $ = v(_);
1305
1305
  if (i = arguments, o = this, d = _, $) {
1306
1306
  if (l === void 0)
@@ -1310,14 +1310,14 @@ function ca(e, t, r) {
1310
1310
  }
1311
1311
  return l === void 0 && (l = setTimeout(y, t)), a;
1312
1312
  }
1313
- return D.cancel = O, D.flush = b, D;
1313
+ return V.cancel = O, V.flush = b, V;
1314
1314
  }
1315
1315
  var da = ca;
1316
1316
  function ua(e) {
1317
1317
  const r = Buffer.from(e, "base64").length / 1e3;
1318
1318
  return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
1319
1319
  }
1320
- async function It(e) {
1320
+ async function Dt(e) {
1321
1321
  const t = await Fi(
1322
1322
  Buffer.from(e, "base64")
1323
1323
  );
@@ -1363,7 +1363,7 @@ const fa = (e) => {
1363
1363
  i == null || i(c);
1364
1364
  };
1365
1365
  async function d() {
1366
- const c = await It(r), m = `data:${c == null ? void 0 : c.mime};base64,${r}`, p = document.createElement("a");
1366
+ const c = await Dt(r), m = `data:${c == null ? void 0 : c.mime};base64,${r}`, p = document.createElement("a");
1367
1367
  p.href = m, p.download = `image.${c == null ? void 0 : c.ext}`, p.click();
1368
1368
  }
1369
1369
  async function u(c) {
@@ -1374,7 +1374,7 @@ const fa = (e) => {
1374
1374
  function f() {
1375
1375
  l(void 0);
1376
1376
  }
1377
- return /* @__PURE__ */ P(X, {
1377
+ return /* @__PURE__ */ P(Z, {
1378
1378
  children: [/* @__PURE__ */ P(Ce, {
1379
1379
  gutter: 8,
1380
1380
  wrap: !1,
@@ -1450,7 +1450,7 @@ const fa = (e) => {
1450
1450
  r && r(i);
1451
1451
  }
1452
1452
  });
1453
- }, Ft = (e) => {
1453
+ }, Ot = (e) => {
1454
1454
  const t = e.arch, r = e.fields, i = new Ir(r);
1455
1455
  return i.parse(t), i;
1456
1456
  }, ga = (e, t, r) => e.columns.map((o) => {
@@ -1490,7 +1490,7 @@ function Xt(e) {
1490
1490
  t[r.id] = r.colors;
1491
1491
  }), t;
1492
1492
  }
1493
- function Ot({
1493
+ function _t({
1494
1494
  resultsToSort: e,
1495
1495
  sorter: t,
1496
1496
  fields: r
@@ -1521,7 +1521,7 @@ const qn = async (e) => {
1521
1521
  };
1522
1522
  let f = [], c;
1523
1523
  if (a === "tree" && (o == null ? void 0 : o.arch)) {
1524
- const g = (h = Ft(o)) == null ? void 0 : h.colors, v = await H.getHandler().readEvalUiObjects({
1524
+ const g = (h = Ot(o)) == null ? void 0 : h.colors, v = await H.getHandler().readEvalUiObjects({
1525
1525
  model: r,
1526
1526
  ids: d,
1527
1527
  arch: o == null ? void 0 : o.arch,
@@ -1548,7 +1548,7 @@ const qn = async (e) => {
1548
1548
  return [
1549
1549
  t.map((g) => {
1550
1550
  const v = m.find(
1551
- (V) => V.id === g.id
1551
+ (D) => D.id === g.id
1552
1552
  ), y = {
1553
1553
  ...g
1554
1554
  };
@@ -1577,7 +1577,7 @@ const qn = async (e) => {
1577
1577
  } = t, [s, a] = x(!0), [l, d] = x(), [u, f] = x(/* @__PURE__ */ new Map()), c = K(Ee), {
1578
1578
  getContext: m
1579
1579
  } = c || {};
1580
- bt(() => {
1580
+ xt(() => {
1581
1581
  h();
1582
1582
  }, [t]);
1583
1583
  const p = async (g) => o && o[g] ? o[g] : await H.getHandler().getView({
@@ -1624,11 +1624,11 @@ const qn = async (e) => {
1624
1624
  context: g,
1625
1625
  readOnly: v,
1626
1626
  summaryField: y,
1627
- titleField: V
1627
+ titleField: D
1628
1628
  } = i, O = s.filter((w) => w.values), b = K(Ee), {
1629
- getContext: D
1629
+ getContext: V
1630
1630
  } = b || {};
1631
- bt(() => {
1631
+ xt(() => {
1632
1632
  $();
1633
1633
  }, [s]);
1634
1634
  const _ = (w) => {
@@ -1650,7 +1650,7 @@ const qn = async (e) => {
1650
1650
  model: h,
1651
1651
  items: s,
1652
1652
  context: {
1653
- ...D == null ? void 0 : D(),
1653
+ ...V == null ? void 0 : V(),
1654
1654
  ...g
1655
1655
  },
1656
1656
  currentView: "form"
@@ -1667,7 +1667,7 @@ const qn = async (e) => {
1667
1667
  message: d,
1668
1668
  type: "error",
1669
1669
  banner: !0
1670
- }) : a ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(X, {
1670
+ }) : a ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(Z, {
1671
1671
  children: [/* @__PURE__ */ n(er, {
1672
1672
  style: {
1673
1673
  padding: "1rem"
@@ -1685,7 +1685,7 @@ const qn = async (e) => {
1685
1685
  p(O.find((L) => w.id === L.id)), c(!0);
1686
1686
  },
1687
1687
  children: /* @__PURE__ */ n("strong", {
1688
- children: (F = w.values) == null ? void 0 : F[V]
1688
+ children: (F = w.values) == null ? void 0 : F[D]
1689
1689
  })
1690
1690
  }), /* @__PURE__ */ n("br", {}), /* @__PURE__ */ n("div", {
1691
1691
  style: {
@@ -1711,7 +1711,7 @@ const qn = async (e) => {
1711
1711
  c(!1);
1712
1712
  },
1713
1713
  parentContext: {
1714
- ...D == null ? void 0 : D(),
1714
+ ...V == null ? void 0 : V(),
1715
1715
  ...g
1716
1716
  },
1717
1717
  onCancel: () => {
@@ -1739,7 +1739,7 @@ const qn = async (e) => {
1739
1739
  } = xa(), {
1740
1740
  ooui: r,
1741
1741
  value: i
1742
- } = e, o = /* @__PURE__ */ P(X, {
1742
+ } = e, o = /* @__PURE__ */ P(Z, {
1743
1743
  children: [/* @__PURE__ */ P("span", {
1744
1744
  children: [r.label, " "]
1745
1745
  }), r.tooltip && /* @__PURE__ */ n(ft, {
@@ -1777,7 +1777,7 @@ const qn = async (e) => {
1777
1777
  } else
1778
1778
  r[i] = e[i];
1779
1779
  }), r;
1780
- }, Tt = (e, t) => Ta(e, t), xn = ({
1780
+ }, Ft = (e, t) => Ta(e, t), xn = ({
1781
1781
  source: e,
1782
1782
  target: t,
1783
1783
  fields: r
@@ -1872,7 +1872,7 @@ const qn = async (e) => {
1872
1872
  function pr(e, t, r) {
1873
1873
  return r.indexOf(e) === t;
1874
1874
  }
1875
- const kt = ({
1875
+ const Rt = ({
1876
1876
  values: e,
1877
1877
  fields: t
1878
1878
  }) => {
@@ -1917,10 +1917,10 @@ const kt = ({
1917
1917
  } = r, v = K(Ee), {
1918
1918
  getContext: y
1919
1919
  } = v || {};
1920
- bt(() => {
1920
+ xt(() => {
1921
1921
  O();
1922
1922
  }, [o]);
1923
- const V = (_) => {
1923
+ const D = (_) => {
1924
1924
  i == null || i({
1925
1925
  items: _
1926
1926
  });
@@ -1932,7 +1932,7 @@ const kt = ({
1932
1932
  if (h && (_ = [["id", "in", s]]), r.domain) {
1933
1933
  const C = await H.getHandler().evalDomain({
1934
1934
  domain: r.domain,
1935
- values: kt({
1935
+ values: Rt({
1936
1936
  fields: v == null ? void 0 : v.getFields(),
1937
1937
  values: v.getPlainValues()
1938
1938
  }),
@@ -1977,8 +1977,8 @@ const kt = ({
1977
1977
  id: C,
1978
1978
  operation: "pendingLink"
1979
1979
  });
1980
- }), V($);
1981
- }, D = (_) => {
1980
+ }), D($);
1981
+ }, V = (_) => {
1982
1982
  const {
1983
1983
  label: $,
1984
1984
  closable: w,
@@ -2002,13 +2002,13 @@ const kt = ({
2002
2002
  message: d,
2003
2003
  type: "error",
2004
2004
  banner: !0
2005
- }) : /* @__PURE__ */ n(X, {
2005
+ }) : /* @__PURE__ */ n(Z, {
2006
2006
  children: /* @__PURE__ */ n("div", {
2007
2007
  className: "flex flex-row",
2008
- children: /* @__PURE__ */ n(wt, {
2008
+ children: /* @__PURE__ */ n(bt, {
2009
2009
  mode: "multiple",
2010
2010
  value: a.length ? s : [],
2011
- tagRender: D,
2011
+ tagRender: V,
2012
2012
  bordered: !h,
2013
2013
  disabled: h,
2014
2014
  options: a,
@@ -2124,14 +2124,14 @@ const kt = ({
2124
2124
  if (i.push(a), s(l)) {
2125
2125
  const d = r - o;
2126
2126
  for (let u = 0; u < d; u += 1)
2127
- i.push(new Dt({ string: "" }));
2127
+ i.push(new Vt({ string: "" }));
2128
2128
  }
2129
2129
  }), i;
2130
2130
  }, Ma = ({
2131
2131
  row: e,
2132
2132
  numberOfColumns: t
2133
2133
  }) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), $a = (e, t) => {
2134
- const r = e.map((i) => i instanceof Dt && i.fieldForLabel || i instanceof ri ? "auto" : "1fr");
2134
+ const r = e.map((i) => i instanceof Vt && i.fieldForLabel || i instanceof ri ? "auto" : "1fr");
2135
2135
  if (r.length < t) {
2136
2136
  const i = t - r.length;
2137
2137
  for (let o = 0; o < i; o++)
@@ -2167,7 +2167,7 @@ const kt = ({
2167
2167
  row: h,
2168
2168
  numberOfColumns: o,
2169
2169
  mustFillWithEmpties: r
2170
- }), l = l.concat(g)), g.map((v) => (v instanceof Dt && v.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2170
+ }), l = l.concat(g)), g.map((v) => (v instanceof Vt && v.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2171
2171
  style: {
2172
2172
  ...Ra({
2173
2173
  item: v,
@@ -2328,10 +2328,10 @@ const kt = ({
2328
2328
  setCurrentItemIndex: g,
2329
2329
  setResultsActionView: v,
2330
2330
  resultsActionView: y,
2331
- domain: V,
2331
+ domain: D,
2332
2332
  currentId: O,
2333
2333
  limit: b,
2334
- setLimit: D,
2334
+ setLimit: V,
2335
2335
  searchParams: _ = [],
2336
2336
  setSearchValues: $
2337
2337
  } = e, [w, C] = x(!1), [F, S] = x(!1), [L, T] = x(), [R, A] = x(1), [M, I] = x(0), [k, B] = x(), [j, U] = x([]), [W, z] = x(void 0), q = me(b || Pt), E = me([]), N = Re((oe) => {
@@ -2341,11 +2341,11 @@ const kt = ({
2341
2341
  model: t,
2342
2342
  payload: l,
2343
2343
  limit: q.current,
2344
- attrs: V,
2344
+ attrs: D,
2345
2345
  context: u
2346
2346
  });
2347
2347
  if (B(oe.length), f == null || f(oe.length), oe.length > 0) {
2348
- const Te = oe.map((He) => He == null ? void 0 : He[0]), { colors: ye } = Ft(c), Fe = await H.getHandler().readEvalUiObjects({
2348
+ const Te = oe.map((He) => He == null ? void 0 : He[0]), { colors: ye } = Ot(c), Fe = await H.getHandler().readEvalUiObjects({
2349
2349
  model: t,
2350
2350
  ids: Te,
2351
2351
  arch: c == null ? void 0 : c.arch,
@@ -2356,7 +2356,7 @@ const kt = ({
2356
2356
  }
2357
2357
  }), Be = Fe[0];
2358
2358
  E.current = [...Be], z(Xt(Fe[1]));
2359
- const Ne = Be.map((He) => He.id), Je = p !== void 0 ? Ot({
2359
+ const Ne = Be.map((He) => He.id), Je = p !== void 0 ? _t({
2360
2360
  resultsToSort: Be,
2361
2361
  sorter: p,
2362
2362
  fields: { ...c.fields, ...m.fields }
@@ -2371,7 +2371,7 @@ const kt = ({
2371
2371
  l,
2372
2372
  t,
2373
2373
  u,
2374
- V,
2374
+ D,
2375
2375
  c,
2376
2376
  m,
2377
2377
  p,
@@ -2379,7 +2379,7 @@ const kt = ({
2379
2379
  f
2380
2380
  ]), ce = Re(
2381
2381
  async (oe) => {
2382
- const { params: Te, newOffset: ye } = oe || {}, Fe = fn(Te || _, V), { colors: Be } = Ft(c), { totalItems: Ne, results: Je, attrsEvaluated: He } = await H.getHandler().searchForTree({
2382
+ const { params: Te, newOffset: ye } = oe || {}, Fe = fn(Te || _, D), { colors: Be } = Ot(c), { totalItems: Ne, results: Je, attrsEvaluated: He } = await H.getHandler().searchForTree({
2383
2383
  params: Fe,
2384
2384
  limit: q.current,
2385
2385
  offset: ye || M,
@@ -2389,7 +2389,7 @@ const kt = ({
2389
2389
  attrs: Be && { colors: Be }
2390
2390
  });
2391
2391
  z(Xt(He)), E.current = [...Je];
2392
- const Q = p !== void 0 ? Ot({
2392
+ const Q = p !== void 0 ? _t({
2393
2393
  resultsToSort: Je,
2394
2394
  sorter: p,
2395
2395
  fields: { ...c.fields, ...m.fields }
@@ -2412,7 +2412,7 @@ const kt = ({
2412
2412
  O,
2413
2413
  t,
2414
2414
  u,
2415
- V,
2415
+ D,
2416
2416
  c,
2417
2417
  m,
2418
2418
  p,
@@ -2434,7 +2434,7 @@ const kt = ({
2434
2434
  [
2435
2435
  u,
2436
2436
  O,
2437
- V,
2437
+ D,
2438
2438
  m,
2439
2439
  b,
2440
2440
  t,
@@ -2457,7 +2457,7 @@ const kt = ({
2457
2457
  if (JSON.stringify(oe) === JSON.stringify(p))
2458
2458
  return;
2459
2459
  h == null || h(oe);
2460
- const Te = oe !== void 0 ? Ot({
2460
+ const Te = oe !== void 0 ? _t({
2461
2461
  resultsToSort: ee(),
2462
2462
  sorter: oe,
2463
2463
  fields: { ...c.fields, ...m.fields }
@@ -2468,7 +2468,7 @@ const kt = ({
2468
2468
  ), we = Re(
2469
2469
  (oe) => {
2470
2470
  const { params: Te, searchValues: ye, limit: Fe, offset: Be } = oe;
2471
- w || (r == null || r(void 0), i == null || i([]), $ == null || $(ye), o == null || o(Te), s == null || s(!1), S(!0), T(void 0), A(1), Fe && (q.current = Fe, D == null || D(Fe)), Be && I(Be), ne({
2471
+ w || (r == null || r(void 0), i == null || i([]), $ == null || $(ye), o == null || o(Te), s == null || s(!1), S(!0), T(void 0), A(1), Fe && (q.current = Fe, V == null || V(Fe)), Be && I(Be), ne({
2472
2472
  params: Te,
2473
2473
  newOffset: Be
2474
2474
  }));
@@ -2482,7 +2482,7 @@ const kt = ({
2482
2482
  S,
2483
2483
  T,
2484
2484
  A,
2485
- D,
2485
+ V,
2486
2486
  I,
2487
2487
  ne
2488
2488
  ]
@@ -2492,7 +2492,7 @@ const kt = ({
2492
2492
  },
2493
2493
  [C, b, I, A]
2494
2494
  ), Pe = Re(() => {
2495
- w || (r == null || r(void 0), o == null || o([]), $ == null || $({}), T(void 0), I(0), A(1), D == null || D(b || Pt));
2495
+ w || (r == null || r(void 0), o == null || o([]), $ == null || $({}), T(void 0), I(0), A(1), V == null || V(b || Pt));
2496
2496
  }, [
2497
2497
  w,
2498
2498
  r,
@@ -2500,7 +2500,7 @@ const kt = ({
2500
2500
  T,
2501
2501
  I,
2502
2502
  A,
2503
- D,
2503
+ V,
2504
2504
  b
2505
2505
  ]), fe = Re(
2506
2506
  async (oe) => {
@@ -2510,7 +2510,7 @@ const kt = ({
2510
2510
  fields: c.field_parent ? { ...c.fields, [c.field_parent]: {} } : c.fields,
2511
2511
  context: u
2512
2512
  });
2513
- return N([...ee(), ...ye]), oo(Ft(c), ye);
2513
+ return N([...ee(), ...ye]), oo(Ot(c), ye);
2514
2514
  },
2515
2515
  [c, t, u, ee, N]
2516
2516
  );
@@ -2550,10 +2550,10 @@ const kt = ({
2550
2550
  currentModel: g,
2551
2551
  sorter: v,
2552
2552
  setSorter: y,
2553
- totalItems: V,
2553
+ totalItems: D,
2554
2554
  setTotalItems: O,
2555
2555
  setSelectedRowItems: b,
2556
- selectedRowItems: D,
2556
+ selectedRowItems: V,
2557
2557
  searchTreeNameSearch: _,
2558
2558
  setSearchTreeNameSearch: $,
2559
2559
  goToResourceId: w,
@@ -2601,7 +2601,7 @@ const kt = ({
2601
2601
  setTreeIsLoading: B,
2602
2602
  attachments: j,
2603
2603
  setAttachments: U,
2604
- selectedRowItems: D,
2604
+ selectedRowItems: V,
2605
2605
  setSelectedRowItems: b,
2606
2606
  duplicatingItem: W,
2607
2607
  setDuplicatingItem: z,
@@ -2611,7 +2611,7 @@ const kt = ({
2611
2611
  setSearchVisible: ee,
2612
2612
  sorter: v,
2613
2613
  setSorter: y,
2614
- totalItems: V,
2614
+ totalItems: D,
2615
2615
  setTotalItems: O,
2616
2616
  searchTreeNameSearch: _,
2617
2617
  setSearchTreeNameSearch: $,
@@ -2657,7 +2657,7 @@ const kt = ({
2657
2657
  },
2658
2658
  children: t
2659
2659
  });
2660
- }, Rt = qe.createContext(null), vr = async (e) => {
2660
+ }, Et = qe.createContext(null), vr = async (e) => {
2661
2661
  var t;
2662
2662
  for (let r = 0; r < e.length; r++)
2663
2663
  await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
@@ -2670,7 +2670,7 @@ const kt = ({
2670
2670
  } = d || {}, f = me([]), {
2671
2671
  t: c
2672
2672
  } = K(ge);
2673
- vt(t, () => ({
2673
+ wt(t, () => ({
2674
2674
  openActionModal: b
2675
2675
  }));
2676
2676
  const [m, p] = x(!1), [h, g] = x({
@@ -2697,7 +2697,7 @@ const kt = ({
2697
2697
  ids: I
2698
2698
  } = R || {};
2699
2699
  let k = I || [];
2700
- const B = typeof L == "string" ? gt({
2700
+ const B = typeof L == "string" ? yt({
2701
2701
  context: L,
2702
2702
  fields: C,
2703
2703
  values: F
@@ -2727,14 +2727,14 @@ const kt = ({
2727
2727
  id: $
2728
2728
  }), w.state && s.current === !0) {
2729
2729
  s.current = !1, clearInterval(o.current), l(!1);
2730
- const C = await It(w.result);
2730
+ const C = await Dt(w.result);
2731
2731
  un(w.result, C.mime);
2732
2732
  }
2733
2733
  } catch (C) {
2734
2734
  s.current = !1, clearInterval(o.current), l(!1), We(C.exception || C);
2735
2735
  }
2736
2736
  }
2737
- async function V({
2737
+ async function D({
2738
2738
  actionData: $,
2739
2739
  fields: w,
2740
2740
  values: C,
@@ -2770,7 +2770,7 @@ const kt = ({
2770
2770
  context: F
2771
2771
  }))[0]);
2772
2772
  const T = {
2773
- ...typeof (S == null ? void 0 : S.context) == "string" ? gt({
2773
+ ...typeof (S == null ? void 0 : S.context) == "string" ? yt({
2774
2774
  context: S.context,
2775
2775
  fields: w,
2776
2776
  values: {
@@ -2783,7 +2783,7 @@ const kt = ({
2783
2783
  let R = [];
2784
2784
  if (S.domain && (R = await H.getHandler().evalDomain({
2785
2785
  domain: S.domain,
2786
- values: kt({
2786
+ values: Rt({
2787
2787
  fields: w,
2788
2788
  values: {
2789
2789
  ...C,
@@ -2837,7 +2837,7 @@ const kt = ({
2837
2837
  context: F,
2838
2838
  actionData: S
2839
2839
  }) {
2840
- m ? D({
2840
+ m ? V({
2841
2841
  domain: $,
2842
2842
  model: w,
2843
2843
  formView: C,
@@ -2851,7 +2851,7 @@ const kt = ({
2851
2851
  actionData: S
2852
2852
  }), p(!0));
2853
2853
  }
2854
- async function D({
2854
+ async function V({
2855
2855
  domain: $,
2856
2856
  model: w,
2857
2857
  formView: C,
@@ -2881,13 +2881,13 @@ const kt = ({
2881
2881
  actionData: void 0
2882
2882
  });
2883
2883
  }
2884
- return /* @__PURE__ */ n(X, {
2885
- children: /* @__PURE__ */ n(Rt.Provider, {
2884
+ return /* @__PURE__ */ n(Z, {
2885
+ children: /* @__PURE__ */ n(Et.Provider, {
2886
2886
  value: {
2887
- processAction: V,
2887
+ processAction: D,
2888
2888
  globalValues: i
2889
2889
  },
2890
- children: /* @__PURE__ */ P(X, {
2890
+ children: /* @__PURE__ */ P(Z, {
2891
2891
  children: [r, /* @__PURE__ */ n(Ye, {
2892
2892
  title: c("generatingReport"),
2893
2893
  open: a,
@@ -2974,7 +2974,7 @@ async function tl({
2974
2974
  initialView: a
2975
2975
  };
2976
2976
  }
2977
- const nl = yt(el), rl = ({
2977
+ const nl = vt(el), rl = ({
2978
2978
  error: e,
2979
2979
  className: t
2980
2980
  }) => {
@@ -3017,10 +3017,10 @@ function il(e, t) {
3017
3017
  postSaveAction: g,
3018
3018
  insideButtonModal: v = !1,
3019
3019
  parentContext: y = {},
3020
- actionDomain: V,
3020
+ actionDomain: D,
3021
3021
  visible: O = !0,
3022
3022
  rootForm: b = !1,
3023
- defaultValues: D,
3023
+ defaultValues: V,
3024
3024
  forcedValues: _ = {}
3025
3025
  } = e, {
3026
3026
  t: $,
@@ -3036,11 +3036,11 @@ function il(e, t) {
3036
3036
  setAttachments: Fe = void 0,
3037
3037
  title: Be = void 0,
3038
3038
  setTitle: Ne = void 0
3039
- } = (b ? Pe : {}) || {}, Je = K(Rt), {
3039
+ } = (b ? Pe : {}) || {}, Je = K(Et), {
3040
3040
  processAction: He,
3041
3041
  globalValues: Q
3042
3042
  } = Je || {};
3043
- vt(t, () => ({
3043
+ wt(t, () => ({
3044
3044
  submitForm: qt,
3045
3045
  getFields: De,
3046
3046
  getValues: ke,
@@ -3080,7 +3080,7 @@ function il(e, t) {
3080
3080
  function ke() {
3081
3081
  const G = {
3082
3082
  ...ie(k),
3083
- ...Z()
3083
+ ...X()
3084
3084
  };
3085
3085
  for (const Y in G)
3086
3086
  G[Y] === void 0 && delete G[Y];
@@ -3108,7 +3108,7 @@ function il(e, t) {
3108
3108
  ...T == null ? void 0 : T.context
3109
3109
  };
3110
3110
  }
3111
- function Z() {
3111
+ function X() {
3112
3112
  return {
3113
3113
  id: se(),
3114
3114
  active_id: se(),
@@ -3126,7 +3126,7 @@ function il(e, t) {
3126
3126
  ...y,
3127
3127
  ...Y
3128
3128
  },
3129
- extraValues: D
3129
+ extraValues: V
3130
3130
  });
3131
3131
  }, Oe = () => Object.keys(xn({
3132
3132
  source: N.current,
@@ -3134,11 +3134,11 @@ function il(e, t) {
3134
3134
  fields: k
3135
3135
  })).length !== 0, ie = (G) => {
3136
3136
  const Y = A.getFieldsValue(!0);
3137
- return Tt(Y, G);
3137
+ return Ft(Y, G);
3138
3138
  }, xe = (G, Y) => {
3139
3139
  Ut({
3140
3140
  values: {
3141
- ...Tt(A.getFieldsValue(!0), k),
3141
+ ...Ft(A.getFieldsValue(!0), k),
3142
3142
  [G]: Y
3143
3143
  },
3144
3144
  fields: k,
@@ -3179,10 +3179,10 @@ function il(e, t) {
3179
3179
  } = await Ao({
3180
3180
  fields: te,
3181
3181
  arch: re
3182
- }), V && (Y = {
3183
- ..._a(V),
3182
+ }), D && (Y = {
3183
+ ..._a(D),
3184
3184
  ...Y
3185
- }), N.current = Tt(Y, te), Ut({
3185
+ }), N.current = Ft(Y, te), Ut({
3186
3186
  values: Y,
3187
3187
  fields: te,
3188
3188
  reset: !0,
@@ -3224,7 +3224,7 @@ function il(e, t) {
3224
3224
  const ht = {
3225
3225
  ...te ? {} : A.getFieldsValue(!0),
3226
3226
  ...G
3227
- }, yn = Tt(ht, Y), Wo = Object.keys(Y).map((vn) => {
3227
+ }, yn = Ft(ht, Y), Wo = Object.keys(Y).map((vn) => {
3228
3228
  const Yo = yn[vn] !== void 0 ? yn[vn] : void 0;
3229
3229
  return {
3230
3230
  name: vn,
@@ -3344,7 +3344,7 @@ function il(e, t) {
3344
3344
  readOnly: f,
3345
3345
  values: va({
3346
3346
  ...te,
3347
- ...Z()
3347
+ ...X()
3348
3348
  }, G)
3349
3349
  }), R(re), re.string && re.string !== Be && (Ne == null || Ne(re.string)), j && re.string && ((Ve = j.setTitle) == null || Ve.call(j, re.string));
3350
3350
  }, gn = async ({
@@ -3365,7 +3365,7 @@ function il(e, t) {
3365
3365
  }) && G !== !0)
3366
3366
  return;
3367
3367
  {
3368
- const re = Tt(A.getFieldsValue(!0), k);
3368
+ const re = Ft(A.getFieldsValue(!0), k);
3369
3369
  ee.current = re, d == null || d(re), oe == null || oe(!0), Mo(te);
3370
3370
  }
3371
3371
  }
@@ -3461,7 +3461,7 @@ function il(e, t) {
3461
3461
  de == null || de(se(), ke(), Ze());
3462
3462
  else if (te.type) {
3463
3463
  let re = {};
3464
- te.context && (re = gt({
3464
+ te.context && (re = yt({
3465
3465
  context: te.context,
3466
3466
  fields: k,
3467
3467
  values: ke()
@@ -3554,12 +3554,12 @@ function il(e, t) {
3554
3554
  We(re);
3555
3555
  }
3556
3556
  }
3557
- const jo = () => !T && !S ? /* @__PURE__ */ n(Ae, {}) : !r && !h || !O ? null : /* @__PURE__ */ n(X, {
3557
+ const jo = () => !T && !S ? /* @__PURE__ */ n(Ae, {}) : !r && !h || !O ? null : /* @__PURE__ */ n(Z, {
3558
3558
  children: /* @__PURE__ */ n(Gi, {
3559
3559
  getValues: ke,
3560
3560
  getPlainValues: tt,
3561
3561
  getFields: De,
3562
- domain: V,
3562
+ domain: D,
3563
3563
  activeId: i,
3564
3564
  activeModel: r,
3565
3565
  setFieldValue: xe,
@@ -3584,7 +3584,7 @@ function il(e, t) {
3584
3584
  })
3585
3585
  })
3586
3586
  })
3587
- }), Ko = () => /* @__PURE__ */ P(X, {
3587
+ }), Ko = () => /* @__PURE__ */ P(Z, {
3588
3588
  children: [/* @__PURE__ */ n(sn, {}), /* @__PURE__ */ n(Ce, {
3589
3589
  justify: "end",
3590
3590
  children: /* @__PURE__ */ P(je, {
@@ -3598,7 +3598,7 @@ function il(e, t) {
3598
3598
  }), /* @__PURE__ */ n(Ie, {
3599
3599
  disabled: C || f,
3600
3600
  loading: C,
3601
- icon: /* @__PURE__ */ n(At, {}),
3601
+ icon: /* @__PURE__ */ n(kt, {}),
3602
3602
  onClick: async () => {
3603
3603
  await qt();
3604
3604
  },
@@ -3626,7 +3626,7 @@ function il(e, t) {
3626
3626
  })
3627
3627
  }) : null;
3628
3628
  }
3629
- const Yt = yt(il), Gt = (e) => {
3629
+ const Yt = vt(il), Gt = (e) => {
3630
3630
  const {
3631
3631
  visible: t,
3632
3632
  id: r,
@@ -3646,11 +3646,11 @@ const Yt = yt(il), Gt = (e) => {
3646
3646
  const {
3647
3647
  action_id: O,
3648
3648
  res_id: b,
3649
- action_type: D,
3649
+ action_type: V,
3650
3650
  view_id: _
3651
3651
  } = l, $ = await H.getHandler().isShortcutFavorite({
3652
3652
  action_id: O,
3653
- action_type: D,
3653
+ action_type: V,
3654
3654
  view_id: _,
3655
3655
  res_id: b || !1
3656
3656
  });
@@ -3665,19 +3665,19 @@ const Yt = yt(il), Gt = (e) => {
3665
3665
  const {
3666
3666
  action_id: O,
3667
3667
  res_id: b,
3668
- action_type: D,
3668
+ action_type: V,
3669
3669
  view_id: _
3670
3670
  } = l;
3671
3671
  await H.getHandler().addFavourite({
3672
3672
  action_id: O,
3673
- action_type: D,
3673
+ action_type: V,
3674
3674
  view_id: _,
3675
3675
  res_id: b || !1
3676
3676
  });
3677
3677
  }
3678
3678
  p(!m);
3679
3679
  }
3680
- function V() {
3680
+ function D() {
3681
3681
  return /* @__PURE__ */ P(Ce, {
3682
3682
  align: "middle",
3683
3683
  children: [/* @__PURE__ */ n(ae, {
@@ -3704,7 +3704,7 @@ const Yt = yt(il), Gt = (e) => {
3704
3704
  return /* @__PURE__ */ n(Ka, {
3705
3705
  setTitle: c,
3706
3706
  children: /* @__PURE__ */ n(Ye, {
3707
- title: a ? V() : f,
3707
+ title: a ? D() : f,
3708
3708
  centered: !0,
3709
3709
  width: u,
3710
3710
  open: t,
@@ -3742,9 +3742,9 @@ const Yt = yt(il), Gt = (e) => {
3742
3742
  name: o + "#time",
3743
3743
  label: ""
3744
3744
  })];
3745
- return /* @__PURE__ */ P(X, {
3745
+ return /* @__PURE__ */ P(Z, {
3746
3746
  children: [r && /* @__PURE__ */ n(cn, {
3747
- ooui: new Dt({
3747
+ ooui: new Vt({
3748
3748
  name: o + "_label",
3749
3749
  string: i,
3750
3750
  help: t.tooltip,
@@ -3867,9 +3867,9 @@ function dl(e) {
3867
3867
  },
3868
3868
  layout: "vertical"
3869
3869
  });
3870
- return /* @__PURE__ */ P(X, {
3870
+ return /* @__PURE__ */ P(Z, {
3871
3871
  children: [r && /* @__PURE__ */ n(cn, {
3872
- ooui: new Dt({
3872
+ ooui: new Vt({
3873
3873
  name: i + "_label",
3874
3874
  string: o,
3875
3875
  help: s,
@@ -3899,7 +3899,7 @@ const {
3899
3899
  defaultSeed: fl
3900
3900
  } = Me, ml = ul(fl), {
3901
3901
  Option: hl
3902
- } = wt, pl = (e) => {
3902
+ } = bt, pl = (e) => {
3903
3903
  const {
3904
3904
  ooui: t
3905
3905
  } = e, {
@@ -3931,7 +3931,7 @@ const {
3931
3931
  value: p,
3932
3932
  children: p
3933
3933
  }, m);
3934
- }), u = a && !s ? yl : wt;
3934
+ }), u = a && !s ? yl : bt;
3935
3935
  function f(c) {
3936
3936
  const m = c.map((p) => {
3937
3937
  const h = l.find(([g, v]) => p === v);
@@ -3951,7 +3951,7 @@ const {
3951
3951
  showArrow: !0,
3952
3952
  children: d
3953
3953
  });
3954
- }, yl = jt(wt)`
3954
+ }, yl = jt(bt)`
3955
3955
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
3956
3956
  background-color: ${ml.colorPrimaryBg};
3957
3957
  }
@@ -4030,7 +4030,7 @@ function wl(e) {
4030
4030
  onClick: t,
4031
4031
  children: [r ? /* @__PURE__ */ n(si, {
4032
4032
  className: "pr-1"
4033
- }) : /* @__PURE__ */ n(Vt, {
4033
+ }) : /* @__PURE__ */ n(At, {
4034
4034
  className: "pr-1"
4035
4035
  }), s(r ? "simple_search" : "advanced_search")]
4036
4036
  })
@@ -4102,7 +4102,7 @@ function co(e) {
4102
4102
  searchValues: m,
4103
4103
  showLimitOptions: p = !0,
4104
4104
  formXml: h
4105
- } = e, [g, v] = x(), [y, V] = x(), [O, b] = x(!1), D = me(), {
4105
+ } = e, [g, v] = x(), [y, D] = x(), [O, b] = x(!1), V = me(), {
4106
4106
  token: _
4107
4107
  } = xl(), [$] = it.useForm();
4108
4108
  pe(() => {
@@ -4123,8 +4123,8 @@ function co(e) {
4123
4123
  }, M))
4124
4124
  }, R));
4125
4125
  };
4126
- bt(() => {
4127
- b(!1), D.current = new oi(r, t, h), D.current.parse(), v(D.current._simpleSearchContainer), V(D.current._advancedSearchContainer);
4126
+ xt(() => {
4127
+ b(!1), V.current = new oi(r, t, h), V.current.parse(), v(V.current._simpleSearchContainer), D(V.current._advancedSearchContainer);
4128
4128
  }, [t, r]);
4129
4129
  const C = w(), F = (S) => {
4130
4130
  var A;
@@ -4133,7 +4133,7 @@ function co(e) {
4133
4133
  offset: T
4134
4134
  } = S;
4135
4135
  delete S.offset, delete S.limit;
4136
- const R = Wa(S, (A = D.current) == null ? void 0 : A._advancedSearchContainer);
4136
+ const R = Wa(S, (A = V.current) == null ? void 0 : A._advancedSearchContainer);
4137
4137
  o({
4138
4138
  params: R,
4139
4139
  offset: T,
@@ -4321,8 +4321,8 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
4321
4321
  t: h
4322
4322
  } = K(ge), g = K(at), {
4323
4323
  openRelate: v
4324
- } = g || {}, y = K(Rt), {
4325
- processAction: V
4324
+ } = g || {}, y = K(Et), {
4325
+ processAction: D
4326
4326
  } = y || {};
4327
4327
  if (!t)
4328
4328
  return null;
@@ -4345,7 +4345,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
4345
4345
  context: i
4346
4346
  }))[0];
4347
4347
  p({
4348
- ...Tt(T, S),
4348
+ ...Ft(T, S),
4349
4349
  active_id: t
4350
4350
  }), u(!1);
4351
4351
  } catch (F) {
@@ -4370,7 +4370,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
4370
4370
  children: L.name
4371
4371
  }, L.id));
4372
4372
  return /* @__PURE__ */ n($e, {
4373
- onClick: D,
4373
+ onClick: V,
4374
4374
  children: [/* @__PURE__ */ n($e.Item, {
4375
4375
  disabled: !f.toolbar.action || f.toolbar.action.length === 0,
4376
4376
  icon: /* @__PURE__ */ n(Hn, {}),
@@ -4380,7 +4380,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
4380
4380
  icon: /* @__PURE__ */ n(jn, {}),
4381
4381
  children: h("report")
4382
4382
  }, "print"), /* @__PURE__ */ n($e.Divider, {}), /* @__PURE__ */ n($e.ItemGroup, {
4383
- title: /* @__PURE__ */ P(X, {
4383
+ title: /* @__PURE__ */ P(Z, {
4384
4384
  children: [/* @__PURE__ */ n(Pr, {}), " ", /* @__PURE__ */ P("span", {
4385
4385
  children: [" ", h("related")]
4386
4386
  })]
@@ -4389,7 +4389,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
4389
4389
  })]
4390
4390
  });
4391
4391
  }
4392
- function D(F) {
4392
+ function V(F) {
4393
4393
  if (F.key === "action")
4394
4394
  s(!0);
4395
4395
  else if (F.key === "print")
@@ -4408,7 +4408,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
4408
4408
  }
4409
4409
  }
4410
4410
  function _(F) {
4411
- s(!1), V == null || V({
4411
+ s(!1), D == null || D({
4412
4412
  actionData: F,
4413
4413
  values: m,
4414
4414
  fields: f.fields,
@@ -4419,7 +4419,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
4419
4419
  });
4420
4420
  }
4421
4421
  function $(F) {
4422
- l(!1), V == null || V({
4422
+ l(!1), D == null || D({
4423
4423
  actionData: {
4424
4424
  ...F,
4425
4425
  datas: {
@@ -4431,7 +4431,7 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
4431
4431
  fields: f.fields
4432
4432
  });
4433
4433
  }
4434
- return /* @__PURE__ */ P(X, {
4434
+ return /* @__PURE__ */ P(Z, {
4435
4435
  children: [/* @__PURE__ */ n(Bt, {
4436
4436
  overlay: b(),
4437
4437
  trigger: ["click"],
@@ -4460,13 +4460,13 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
4460
4460
  m2oField: t
4461
4461
  } = e;
4462
4462
  return t ? /* @__PURE__ */ P(je, {
4463
- children: [/* @__PURE__ */ n(X, {
4463
+ children: [/* @__PURE__ */ n(Z, {
4464
4464
  children: t.value
4465
4465
  }), /* @__PURE__ */ n(Jn, {
4466
4466
  id: t.id,
4467
4467
  model: t.model
4468
4468
  })]
4469
- }) : /* @__PURE__ */ n(X, {});
4469
+ }) : /* @__PURE__ */ n(Z, {});
4470
4470
  }, _l = (e) => {
4471
4471
  const {
4472
4472
  value: t,
@@ -4487,14 +4487,14 @@ const Tl = (e) => /* @__PURE__ */ n(ve, {
4487
4487
  if (pe(() => {
4488
4488
  c();
4489
4489
  }, [t]), !t && !a)
4490
- return /* @__PURE__ */ n(X, {});
4490
+ return /* @__PURE__ */ n(Z, {});
4491
4491
  if (a)
4492
4492
  return /* @__PURE__ */ n(et, {});
4493
4493
  const m = i.get(d);
4494
4494
  return /* @__PURE__ */ P(je, {
4495
- children: [/* @__PURE__ */ n(X, {
4495
+ children: [/* @__PURE__ */ n(Z, {
4496
4496
  children: `${m}:`
4497
- }), /* @__PURE__ */ n(X, {
4497
+ }), /* @__PURE__ */ n(Z, {
4498
4498
  children: o
4499
4499
  }), /* @__PURE__ */ n(Jn, {
4500
4500
  id: f,
@@ -4506,8 +4506,8 @@ var mo = { exports: {} };
4506
4506
  (function(e, t) {
4507
4507
  (function(r, i) {
4508
4508
  e.exports = i();
4509
- })(pt, function() {
4510
- var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", d = "hour", u = "day", f = "week", c = "month", m = "quarter", p = "year", h = "date", g = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, V = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
4509
+ })(gt, function() {
4510
+ var r = 1e3, i = 6e4, o = 36e5, s = "millisecond", a = "second", l = "minute", d = "hour", u = "day", f = "week", c = "month", m = "quarter", p = "year", h = "date", g = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
4511
4511
  var R = ["th", "st", "nd", "rd"], A = T % 100;
4512
4512
  return "[" + T + (R[(A - 20) % 10] || R[A] || R[0]) + "]";
4513
4513
  } }, O = function(T, R, A) {
@@ -4527,14 +4527,14 @@ var mo = { exports: {} };
4527
4527
  return { M: c, y: p, w: f, d: u, D: h, h: d, m: l, s: a, ms: s, Q: m }[T] || String(T || "").toLowerCase().replace(/s$/, "");
4528
4528
  }, u: function(T) {
4529
4529
  return T === void 0;
4530
- } }, D = "en", _ = {};
4531
- _[D] = V;
4530
+ } }, V = "en", _ = {};
4531
+ _[V] = D;
4532
4532
  var $ = function(T) {
4533
4533
  return T instanceof S;
4534
4534
  }, w = function T(R, A, M) {
4535
4535
  var I;
4536
4536
  if (!R)
4537
- return D;
4537
+ return V;
4538
4538
  if (typeof R == "string") {
4539
4539
  var k = R.toLowerCase();
4540
4540
  _[k] && (I = k), A && (_[k] = A, I = k);
@@ -4545,7 +4545,7 @@ var mo = { exports: {} };
4545
4545
  var j = R.name;
4546
4546
  _[j] = R, I = j;
4547
4547
  }
4548
- return !M && I && (D = I), I || !M && D;
4548
+ return !M && I && (V = I), I || !M && V;
4549
4549
  }, C = function(T, R) {
4550
4550
  if ($(T))
4551
4551
  return T.clone();
@@ -4707,10 +4707,10 @@ var mo = { exports: {} };
4707
4707
  return T.$i || (T(R, S, C), T.$i = !0), C;
4708
4708
  }, C.locale = w, C.isDayjs = $, C.unix = function(T) {
4709
4709
  return C(1e3 * T);
4710
- }, C.en = _[D], C.Ls = _, C.p = {}, C;
4710
+ }, C.en = _[V], C.Ls = _, C.p = {}, C;
4711
4711
  });
4712
4712
  })(mo);
4713
- const xt = mo.exports, Il = (e) => {
4713
+ const Ct = mo.exports, Il = (e) => {
4714
4714
  console.log("Avatar Props", e);
4715
4715
  const {
4716
4716
  ooui: t,
@@ -4736,7 +4736,7 @@ var ho = { exports: {} };
4736
4736
  (function(e, t) {
4737
4737
  (function(r, i) {
4738
4738
  e.exports = i();
4739
- })(pt, function() {
4739
+ })(gt, function() {
4740
4740
  return function(r, i) {
4741
4741
  i.prototype.weekday = function(o) {
4742
4742
  var s = this.$locale().weekStart || 0, a = this.$W, l = (a < s ? a + 7 : a) - s;
@@ -4750,18 +4750,18 @@ var po = { exports: {} };
4750
4750
  (function(e, t) {
4751
4751
  (function(r, i) {
4752
4752
  e.exports = i();
4753
- })(pt, function() {
4753
+ })(gt, function() {
4754
4754
  return function(r, i, o) {
4755
4755
  var s = i.prototype, a = function(c) {
4756
4756
  return c && (c.indexOf ? c : c.s);
4757
4757
  }, l = function(c, m, p, h, g) {
4758
- var v = c.name ? c : c.$locale(), y = a(v[m]), V = a(v[p]), O = y || V.map(function(D) {
4759
- return D.slice(0, h);
4758
+ var v = c.name ? c : c.$locale(), y = a(v[m]), D = a(v[p]), O = y || D.map(function(V) {
4759
+ return V.slice(0, h);
4760
4760
  });
4761
4761
  if (!g)
4762
4762
  return O;
4763
4763
  var b = v.weekStart;
4764
- return O.map(function(D, _) {
4764
+ return O.map(function(V, _) {
4765
4765
  return O[(_ + (b || 0)) % 7];
4766
4766
  });
4767
4767
  }, d = function() {
@@ -4826,8 +4826,8 @@ var po = { exports: {} };
4826
4826
  const Vl = po.exports, {
4827
4827
  useToken: Al
4828
4828
  } = Me;
4829
- xt.extend(Dl);
4830
- xt.extend(Vl);
4829
+ Ct.extend(Dl);
4830
+ Ct.extend(Vl);
4831
4831
  const lt = {
4832
4832
  date: {
4833
4833
  placeholder: "__/__/____",
@@ -4876,7 +4876,7 @@ const lt = {
4876
4876
  return;
4877
4877
  }
4878
4878
  c(h.format(lt[f].dateInternalFormat));
4879
- }, p = t ? xt(t, lt[f].dateInternalFormat) : void 0;
4879
+ }, p = t ? Ct(t, lt[f].dateInternalFormat) : void 0;
4880
4880
  return /* @__PURE__ */ n(Rn, {
4881
4881
  style: {
4882
4882
  width: "100%",
@@ -4907,26 +4907,26 @@ const lt = {
4907
4907
  content: e == null ? void 0 : e.replace(/(?:\r\n|\r|\n)/g, "<br>")
4908
4908
  }), $l = (e) => {
4909
4909
  if (!e || e && e.length === 0)
4910
- return /* @__PURE__ */ n(X, {});
4911
- const t = xt(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
4912
- return /* @__PURE__ */ n(X, {
4910
+ return /* @__PURE__ */ n(Z, {});
4911
+ const t = Ct(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
4912
+ return /* @__PURE__ */ n(Z, {
4913
4913
  children: t
4914
4914
  });
4915
4915
  }, Nl = (e) => {
4916
4916
  if (!e || e && e.length === 0)
4917
- return /* @__PURE__ */ n(X, {});
4918
- const t = xt(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
4919
- return /* @__PURE__ */ n(X, {
4917
+ return /* @__PURE__ */ n(Z, {});
4918
+ const t = Ct(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
4919
+ return /* @__PURE__ */ n(Z, {
4920
4920
  children: t
4921
4921
  });
4922
4922
  }, xr = (e) => {
4923
4923
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
4924
- return /* @__PURE__ */ n(X, {
4924
+ return /* @__PURE__ */ n(Z, {
4925
4925
  children: `( ${t} )`
4926
4926
  });
4927
4927
  }, Ll = (e) => /* @__PURE__ */ n(fo, {
4928
4928
  value: e
4929
- }), Pl = (e) => /* @__PURE__ */ n(X, {
4929
+ }), Pl = (e) => /* @__PURE__ */ n(Z, {
4930
4930
  children: uo(e)
4931
4931
  }), Cr = (e) => /* @__PURE__ */ n("div", {
4932
4932
  style: {
@@ -4939,14 +4939,14 @@ const lt = {
4939
4939
  maxWidth: "50px",
4940
4940
  padding: "5px"
4941
4941
  }
4942
- }), Hl = (e, t, r, i) => /* @__PURE__ */ n(X, {
4942
+ }), Hl = (e, t, r, i) => /* @__PURE__ */ n(Z, {
4943
4943
  children: e ? /* @__PURE__ */ n(kn, {
4944
4944
  color: r.colors[e],
4945
4945
  children: r.selectionValues.get(e)
4946
4946
  }) : null
4947
- }), jl = (e, t, r, i) => /* @__PURE__ */ n(X, {
4947
+ }), jl = (e, t, r, i) => /* @__PURE__ */ n(Z, {
4948
4948
  children: r.selectionValues.get(e)
4949
- }), Kl = (e, t, r, i) => /* @__PURE__ */ n(X, {
4949
+ }), Kl = (e, t, r, i) => /* @__PURE__ */ n(Z, {
4950
4950
  children: /* @__PURE__ */ n(_l, {
4951
4951
  value: e,
4952
4952
  selectionValues: r.selectionValues,
@@ -4975,15 +4975,15 @@ function mn(e) {
4975
4975
  onFetchChildrenForRecord: g,
4976
4976
  childField: v,
4977
4977
  rootTree: y = !1,
4978
- context: V
4979
- } = e, [O, b] = x([]), [D, _] = x([]), $ = me(!1), w = me(null), {
4978
+ context: D
4979
+ } = e, [O, b] = x([]), [V, _] = x([]), $ = me(!1), w = me(null), {
4980
4980
  t: C
4981
4981
  } = K(ge), F = me(r), S = K(Xe), {
4982
4982
  title: L = void 0,
4983
4983
  setTitle: T = void 0
4984
4984
  } = (y ? S : {}) || {};
4985
4985
  pe(() => {
4986
- w.current = Ft(o);
4986
+ w.current = Ot(o);
4987
4987
  const U = ga(w.current, {
4988
4988
  boolean: Rl,
4989
4989
  many2one: El,
@@ -5001,7 +5001,7 @@ function mn(e) {
5001
5001
  date: $l,
5002
5002
  datetime: Nl,
5003
5003
  avatar: Wl
5004
- }, V);
5004
+ }, D);
5005
5005
  _(U), w.current.string && L !== w.current.string && (T == null || T(w.current.string));
5006
5006
  }, [o]), pe(() => {
5007
5007
  $.current = !1;
@@ -5047,7 +5047,7 @@ function mn(e) {
5047
5047
  }
5048
5048
  let B, j = c;
5049
5049
  if (w.current !== null) {
5050
- B = Cl(D, O, 600);
5050
+ B = Cl(V, O, 600);
5051
5051
  const W = w.current;
5052
5052
  c && W.columns.some((z) => z.sum !== void 0) && (j = c - 30);
5053
5053
  }
@@ -5056,11 +5056,13 @@ function mn(e) {
5056
5056
  padding: "2rem"
5057
5057
  }
5058
5058
  }) : /* @__PURE__ */ P("div", {
5059
- children: [I(), /* @__PURE__ */ n(Ti, {
5059
+ children: [I(), l && /* @__PURE__ */ n(Ae, {
5060
+ className: "pb-4"
5061
+ }), /* @__PURE__ */ n(Ti, {
5060
5062
  height: j,
5061
5063
  columns: B.columns,
5062
5064
  dataSource: O,
5063
- loading: l,
5065
+ loading: !1,
5064
5066
  loadingComponent: /* @__PURE__ */ n(Ae, {}),
5065
5067
  onRowStyle: (U) => {
5066
5068
  if (m[U.id])
@@ -5095,9 +5097,9 @@ function Yl(e, t) {
5095
5097
  rootTree: f = !1,
5096
5098
  parentContext: c = {},
5097
5099
  onChangeSelectedRowKeys: m
5098
- } = e, [p, h] = x(!1), [g, v] = x(!1), y = me(!1), [V, O] = x(), [b, D] = x(), [_, $] = x(), [w, C] = x(), [F, S] = x(200), L = me(), {
5100
+ } = e, [p, h] = x(!1), [g, v] = x(!1), y = me(!1), [D, O] = x(), [b, V] = x(), [_, $] = x(), [w, C] = x(), [F, S] = x(200), L = me(), {
5099
5101
  height: T
5100
- } = dn(), R = K(Rt), {
5102
+ } = dn(), R = K(Et), {
5101
5103
  processAction: A
5102
5104
  } = R || {}, M = K(Xe), {
5103
5105
  setResults: I = void 0,
@@ -5135,7 +5137,7 @@ function Yl(e, t) {
5135
5137
  colorsForResults: se,
5136
5138
  totalItems: De
5137
5139
  } = ao({
5138
- model: V,
5140
+ model: D,
5139
5141
  setSearchTreeNameSearch: ne,
5140
5142
  setSelectedRowItems: W,
5141
5143
  setSearchParams: q,
@@ -5159,7 +5161,7 @@ function Yl(e, t) {
5159
5161
  limit: Pe,
5160
5162
  setLimit: fe
5161
5163
  });
5162
- vt(t, () => ({
5164
+ wt(t, () => ({
5163
5165
  refreshResults: () => {
5164
5166
  y.current = !1, ye();
5165
5167
  },
@@ -5173,9 +5175,9 @@ function Yl(e, t) {
5173
5175
  try {
5174
5176
  await tt(), v(!0);
5175
5177
  } catch (he) {
5176
- C(he);
5178
+ C(he), J == null || J(!1);
5177
5179
  } finally {
5178
- h(!1), J == null || J(!1);
5180
+ h(!1);
5179
5181
  }
5180
5182
  }, tt = async () => {
5181
5183
  O(r);
@@ -5190,7 +5192,7 @@ function Yl(e, t) {
5190
5192
  model: r,
5191
5193
  type: "tree",
5192
5194
  context: c
5193
- })), $(he), D(Ke);
5195
+ })), $(he), V(Ke);
5194
5196
  };
5195
5197
  pe(() => {
5196
5198
  ke();
@@ -5203,7 +5205,7 @@ function Yl(e, t) {
5203
5205
  } = he;
5204
5206
  L.current || (L.current = await H.getHandler().treeButOpen({
5205
5207
  id: b.view_id,
5206
- model: V,
5208
+ model: D,
5207
5209
  context: c
5208
5210
  }));
5209
5211
  const rt = L.current[0][2];
@@ -5216,7 +5218,7 @@ function Yl(e, t) {
5216
5218
  },
5217
5219
  context: c
5218
5220
  }));
5219
- }, Z = async (he) => {
5221
+ }, X = async (he) => {
5220
5222
  const {
5221
5223
  id: Ke
5222
5224
  } = he;
@@ -5230,7 +5232,7 @@ function Yl(e, t) {
5230
5232
  }
5231
5233
  s({
5232
5234
  id: Ke,
5233
- model: V,
5235
+ model: D,
5234
5236
  formView: _,
5235
5237
  treeView: b
5236
5238
  });
@@ -5242,7 +5244,7 @@ function Yl(e, t) {
5242
5244
  function Oe() {
5243
5245
  return b != null && b.isExpandable ? T - 160 : T - (F + 210);
5244
5246
  }
5245
- const ie = () => !b || !_ ? null : /* @__PURE__ */ P(X, {
5247
+ const ie = () => !b || !_ ? null : /* @__PURE__ */ P(Z, {
5246
5248
  children: [/* @__PURE__ */ n(co, {
5247
5249
  fields: {
5248
5250
  ...b.fields,
@@ -5260,7 +5262,7 @@ function Yl(e, t) {
5260
5262
  searchError: Ne,
5261
5263
  searchVisible: E,
5262
5264
  searchValues: we
5263
- }), Fe && /* @__PURE__ */ n(Ae, {}), /* @__PURE__ */ n(mn, {
5265
+ }), /* @__PURE__ */ n(mn, {
5264
5266
  context: c,
5265
5267
  total: De,
5266
5268
  limit: Pe,
@@ -5268,8 +5270,8 @@ function Yl(e, t) {
5268
5270
  treeView: b,
5269
5271
  results: Q(),
5270
5272
  onRequestPageChange: de,
5271
- loading: !1,
5272
- onRowClicked: Z,
5273
+ loading: Fe,
5274
+ onRowClicked: X,
5273
5275
  scrollY: l || Oe(),
5274
5276
  colorsForResults: se,
5275
5277
  rowSelection: {
@@ -5295,7 +5297,7 @@ function Yl(e, t) {
5295
5297
  children: p ? /* @__PURE__ */ n(Ae, {}) : ie()
5296
5298
  });
5297
5299
  }
5298
- const yo = yt(Yl), vo = (e) => {
5300
+ const yo = vt(Yl), vo = (e) => {
5299
5301
  const {
5300
5302
  visible: t,
5301
5303
  onCloseModal: r,
@@ -5324,7 +5326,7 @@ const yo = yt(Yl), vo = (e) => {
5324
5326
  }
5325
5327
  i(p);
5326
5328
  }
5327
- const V = () => /* @__PURE__ */ P(X, {
5329
+ const D = () => /* @__PURE__ */ P(Z, {
5328
5330
  children: [/* @__PURE__ */ n(yo, {
5329
5331
  model: o,
5330
5332
  nameSearch: s,
@@ -5345,7 +5347,7 @@ const yo = yt(Yl), vo = (e) => {
5345
5347
  },
5346
5348
  children: m("new")
5347
5349
  }), /* @__PURE__ */ n(Ie, {
5348
- icon: /* @__PURE__ */ n(At, {}),
5350
+ icon: /* @__PURE__ */ n(kt, {}),
5349
5351
  onClick: () => {
5350
5352
  y();
5351
5353
  },
@@ -5359,7 +5361,7 @@ const yo = yt(Yl), vo = (e) => {
5359
5361
  })
5360
5362
  })]
5361
5363
  });
5362
- return /* @__PURE__ */ P(X, {
5364
+ return /* @__PURE__ */ P(Z, {
5363
5365
  children: [/* @__PURE__ */ n(Ye, {
5364
5366
  title: m("search"),
5365
5367
  centered: !0,
@@ -5370,7 +5372,7 @@ const yo = yt(Yl), vo = (e) => {
5370
5372
  footer: null,
5371
5373
  destroyOnClose: !0,
5372
5374
  maskClosable: !1,
5373
- children: V()
5375
+ children: D()
5374
5376
  }), /* @__PURE__ */ n(Gt, {
5375
5377
  model: o,
5376
5378
  visible: d,
@@ -5431,7 +5433,7 @@ const yo = yt(Yl), vo = (e) => {
5431
5433
  domain: u
5432
5434
  } = i, f = o && !a ? {
5433
5435
  backgroundColor: wo.colorPrimaryBg
5434
- } : void 0, [c, m] = x(!1), [p, h] = x(!1), [g, v] = x(!1), [y, V] = x(), O = me(!1), [b, D] = x(""), _ = me(), $ = K(Ee), {
5436
+ } : void 0, [c, m] = x(!1), [p, h] = x(!1), [g, v] = x(!1), [y, D] = x(), O = me(!1), [b, V] = x(""), _ = me(), $ = K(Ee), {
5435
5437
  domain: w,
5436
5438
  getValues: C,
5437
5439
  getFields: F,
@@ -5441,7 +5443,7 @@ const yo = yt(Yl), vo = (e) => {
5441
5443
  pe(() => {
5442
5444
  !Array.isArray(t) && t && W(t);
5443
5445
  }, [t]), pe(() => {
5444
- M && I.length === 0 ? W(M) : M && I.length > 0 ? D(I) : !M && !I && D(_.current || "");
5446
+ M && I.length === 0 ? W(M) : M && I.length > 0 ? V(I) : !M && !I && V(_.current || "");
5445
5447
  }, [t]);
5446
5448
  const k = (N) => {
5447
5449
  r == null || r(N), L == null || L();
@@ -5485,10 +5487,10 @@ const yo = yt(Yl), vo = (e) => {
5485
5487
  },
5486
5488
  totalItems: 2
5487
5489
  });
5488
- ee.length === 1 ? W(ee[0]) : (V(N), m(!0));
5490
+ ee.length === 1 ? W(ee[0]) : (D(N), m(!0));
5489
5491
  return;
5490
5492
  }
5491
- V(N), m(!0);
5493
+ D(N), m(!0);
5492
5494
  }, W = async (N) => {
5493
5495
  v(!0);
5494
5496
  try {
@@ -5511,7 +5513,7 @@ const yo = yt(Yl), vo = (e) => {
5511
5513
  async function z() {
5512
5514
  u && (T.current = await H.getHandler().evalDomain({
5513
5515
  domain: u,
5514
- values: kt({
5516
+ values: Rt({
5515
5517
  fields: F(),
5516
5518
  values: C()
5517
5519
  }),
@@ -5649,7 +5651,7 @@ const yo = yt(Yl), vo = (e) => {
5649
5651
  field: u,
5650
5652
  operator: f,
5651
5653
  manualIds: c
5652
- } = e, [m, p] = x(!1), [h, g] = x(), [v, y] = x(), [V, O] = x(), [b, D] = x(0), [_, $] = x(0), [w, C] = x(), [F, S] = x(), [L, T] = x();
5654
+ } = e, [m, p] = x(!1), [h, g] = x(), [v, y] = x(), [D, O] = x(), [b, V] = x(0), [_, $] = x(0), [w, C] = x(), [F, S] = x(), [L, T] = x();
5653
5655
  pe(() => {
5654
5656
  M();
5655
5657
  }, [t, o]);
@@ -5774,13 +5776,13 @@ const yo = yt(Yl), vo = (e) => {
5774
5776
  bounds: !0,
5775
5777
  onResize: (I) => {
5776
5778
  var k, B;
5777
- D((k = I.bounds) == null ? void 0 : k.height), $((B = I.bounds) == null ? void 0 : B.width);
5779
+ V((k = I.bounds) == null ? void 0 : k.height), $((B = I.bounds) == null ? void 0 : B.width);
5778
5780
  },
5779
5781
  children: ({
5780
5782
  measureRef: I
5781
5783
  }) => a ? /* @__PURE__ */ n(ec, {
5782
5784
  value: h,
5783
- total: V,
5785
+ total: D,
5784
5786
  percent: v,
5785
5787
  measureRef: I,
5786
5788
  height: b,
@@ -5790,7 +5792,7 @@ const yo = yt(Yl), vo = (e) => {
5790
5792
  suffix: d
5791
5793
  }) : /* @__PURE__ */ n(Ql, {
5792
5794
  value: h,
5793
- total: V,
5795
+ total: D,
5794
5796
  measureRef: I,
5795
5797
  height: b,
5796
5798
  width: _,
@@ -5931,7 +5933,7 @@ const Cn = (e) => (t) => {
5931
5933
  });
5932
5934
  if (rc(e)) {
5933
5935
  const t = oc(e);
5934
- return t === null ? e : xt(e, rn.input[t]).format(
5936
+ return t === null ? e : Ct(e, rn.input[t]).format(
5935
5937
  rn.output[t]
5936
5938
  );
5937
5939
  } else
@@ -6039,7 +6041,7 @@ const rn = {
6039
6041
  };
6040
6042
  function oc(e) {
6041
6043
  for (const t in rn.input)
6042
- if (xt(
6044
+ if (Ct(
6043
6045
  e,
6044
6046
  rn.input[t],
6045
6047
  !0
@@ -6061,25 +6063,25 @@ const {
6061
6063
  uninformedString: a,
6062
6064
  manualIds: l
6063
6065
  } = e, [d, u] = x(!1), [f, c] = x(), [m, p] = x(), [h, g] = x(), [v, y] = x("line");
6064
- return bt(() => {
6066
+ return xt(() => {
6065
6067
  (async () => {
6066
6068
  u(!0), c(void 0);
6067
- const V = $n(o);
6068
- y(V.type || "line");
6069
+ const D = $n(o);
6070
+ y(D.type || "line");
6069
6071
  const O = sc({
6070
- ooui: V
6072
+ ooui: D
6071
6073
  });
6072
- let b, D;
6074
+ let b, V;
6073
6075
  try {
6074
6076
  ({
6075
6077
  values: b,
6076
- fields: D
6078
+ fields: V
6077
6079
  } = await cc({
6078
6080
  model: t,
6079
6081
  domain: r,
6080
6082
  context: i,
6081
6083
  limit: s,
6082
- order: V.timerange ? V.x.name : null,
6084
+ order: D.timerange ? D.x.name : null,
6083
6085
  fields: O,
6084
6086
  manualIds: l
6085
6087
  }));
@@ -6088,15 +6090,15 @@ const {
6088
6090
  return;
6089
6091
  }
6090
6092
  try {
6091
- if (!b || !D) {
6093
+ if (!b || !V) {
6092
6094
  c("No values or fields returned"), u(!1);
6093
6095
  return;
6094
6096
  }
6095
6097
  g(b);
6096
6098
  const _ = ic({
6097
- ooui: V,
6099
+ ooui: D,
6098
6100
  values: b,
6099
- fields: D,
6101
+ fields: V,
6100
6102
  options: {
6101
6103
  uninformedString: a
6102
6104
  }
@@ -6232,7 +6234,7 @@ const dc = {
6232
6234
  isStack: g
6233
6235
  })
6234
6236
  })]
6235
- }) : /* @__PURE__ */ n(X, {
6237
+ }) : /* @__PURE__ */ n(Z, {
6236
6238
  children: `Unknown graph type: ${c}`
6237
6239
  });
6238
6240
  };
@@ -6257,7 +6259,7 @@ const mc = (e, t) => {
6257
6259
  } = e, [d, u] = x(!1), [f, c] = x(), [m, p] = x(), h = K(Xe), {
6258
6260
  setGraphIsLoading: g = void 0
6259
6261
  } = h || {};
6260
- vt(t, () => ({
6262
+ wt(t, () => ({
6261
6263
  refresh: () => {
6262
6264
  v();
6263
6265
  }
@@ -6274,10 +6276,10 @@ const mc = (e, t) => {
6274
6276
  context: o
6275
6277
  });
6276
6278
  p(y.arch);
6277
- const V = $n(y.arch);
6278
- c(V);
6279
+ const D = $n(y.arch);
6280
+ c(D);
6279
6281
  } catch (y) {
6280
- return console.error(y), /* @__PURE__ */ n(X, {
6282
+ return console.error(y), /* @__PURE__ */ n(Z, {
6281
6283
  children: JSON.stringify(y)
6282
6284
  });
6283
6285
  }
@@ -6304,7 +6306,7 @@ const mc = (e, t) => {
6304
6306
  switch (f.type) {
6305
6307
  case "indicatorField":
6306
6308
  case "indicator": {
6307
- const y = f, V = y.type === "indicatorField" ? {
6309
+ const y = f, D = y.type === "indicatorField" ? {
6308
6310
  field: y.field,
6309
6311
  operator: y.operator
6310
6312
  } : {};
@@ -6318,7 +6320,7 @@ const mc = (e, t) => {
6318
6320
  icon: y.icon,
6319
6321
  suffix: y.suffix,
6320
6322
  manualIds: l,
6321
- ...V
6323
+ ...D
6322
6324
  });
6323
6325
  }
6324
6326
  case "line":
@@ -6333,11 +6335,11 @@ const mc = (e, t) => {
6333
6335
  manualIds: l
6334
6336
  });
6335
6337
  default:
6336
- return /* @__PURE__ */ n(X, {
6338
+ return /* @__PURE__ */ n(Z, {
6337
6339
  children: `Graph ${f.type} not implemented`
6338
6340
  });
6339
6341
  }
6340
- }, hn = yt(mc), {
6342
+ }, hn = vt(mc), {
6341
6343
  confirm: hc
6342
6344
  } = Ye, pc = ({
6343
6345
  onOk: e,
@@ -6394,7 +6396,7 @@ const mc = (e, t) => {
6394
6396
  className: "inline-block w-3"
6395
6397
  });
6396
6398
  }
6397
- function V() {
6399
+ function D() {
6398
6400
  return /* @__PURE__ */ n("div", {
6399
6401
  className: "flex flex-grow h-8 text-white",
6400
6402
  style: {
@@ -6425,8 +6427,8 @@ const mc = (e, t) => {
6425
6427
  children: ["(", _, "/", l, ")"]
6426
6428
  });
6427
6429
  }
6428
- function D() {
6429
- return /* @__PURE__ */ P(X, {
6430
+ function V() {
6431
+ return /* @__PURE__ */ P(Z, {
6430
6432
  children: [y(), /* @__PURE__ */ n(Ue, {
6431
6433
  tooltip: "Previous item",
6432
6434
  icon: /* @__PURE__ */ n(Br, {}),
@@ -6440,7 +6442,7 @@ const mc = (e, t) => {
6440
6442
  }
6441
6443
  return /* @__PURE__ */ P("div", {
6442
6444
  className: "flex mb-2",
6443
- children: [V(), /* @__PURE__ */ P("div", {
6445
+ children: [D(), /* @__PURE__ */ P("div", {
6444
6446
  className: "flex-none h-8 pl-2",
6445
6447
  children: [s !== "graph" && h && /* @__PURE__ */ n(Ue, {
6446
6448
  tooltip: "Create new item",
@@ -6452,7 +6454,7 @@ const mc = (e, t) => {
6452
6454
  icon: /* @__PURE__ */ n(Bn, {}),
6453
6455
  disabled: r,
6454
6456
  onClick: m
6455
- }), s !== "graph" && y(), s !== "graph" && O(), s === "form" && D(), y(), g && /* @__PURE__ */ n(Ue, {
6457
+ }), s !== "graph" && y(), s !== "graph" && O(), s === "form" && V(), y(), g && /* @__PURE__ */ n(Ue, {
6456
6458
  tooltip: "Toggle view mode",
6457
6459
  icon: /* @__PURE__ */ n(di, {}),
6458
6460
  onClick: o
@@ -6496,14 +6498,14 @@ const Cc = (e) => {
6496
6498
  } = f || {}, {
6497
6499
  lang: v,
6498
6500
  t: y
6499
- } = K(ge), [V, O] = x(!1), [b, D] = x(!1), [_, $] = x(), [w, C] = x(!1), [F, S] = x(!1), [L, T] = x(), [R, A] = x([]), [M, I] = x(!1), k = me([]), [B, j] = x(), U = me(), [W, z] = x(void 0), {
6501
+ } = K(ge), [D, O] = x(!1), [b, V] = x(!1), [_, $] = x(), [w, C] = x(!1), [F, S] = x(!1), [L, T] = x(), [R, A] = x([]), [M, I] = x(!1), k = me([]), [B, j] = x(), U = me(), [W, z] = x(void 0), {
6500
6502
  readOnly: q,
6501
6503
  relation: E,
6502
6504
  context: N,
6503
6505
  domain: ee
6504
6506
  } = i, le = i.type === "many2many", {
6505
6507
  id: ce
6506
- } = i, ne = s.filter((Z) => (Z.values || Z.treeValues) && Z.operation !== "pendingRemove"), J = me();
6508
+ } = i, ne = s.filter((X) => (X.values || X.treeValues) && X.operation !== "pendingRemove"), J = me();
6507
6509
  pe(() => {
6508
6510
  if (J.current !== a) {
6509
6511
  J.current = a, we();
@@ -6512,22 +6514,22 @@ const Cc = (e) => {
6512
6514
  we();
6513
6515
  }, [s, a]);
6514
6516
  const we = Re(() => {
6515
- (a === "form" && s.some((Z) => !Z.values) || a === "tree" && s.some((Z) => !Z.treeValues)) && Pe();
6517
+ (a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && Pe();
6516
6518
  }, [s, a]);
6517
6519
  pe(() => {
6518
6520
  oe();
6519
6521
  }, [g]);
6520
- const Se = (Z) => {
6522
+ const Se = (X) => {
6521
6523
  var ue, Oe;
6522
6524
  r == null || r({
6523
6525
  fields: ((ue = o.get("form")) == null ? void 0 : ue.fields) || ((Oe = o.get("tree")) == null ? void 0 : Oe.fields),
6524
- items: xc(Z)
6526
+ items: xc(X)
6525
6527
  });
6526
6528
  }, Pe = async () => {
6527
6529
  await fe(), d > ne.length - 1 && d !== 0 && u(0);
6528
- }, fe = async (Z) => {
6530
+ }, fe = async (X) => {
6529
6531
  var ue, Oe, ie;
6530
- D(!0), O(!1), $(void 0);
6532
+ V(!0), O(!1), $(void 0);
6531
6533
  try {
6532
6534
  const [xe, he] = await qn({
6533
6535
  treeView: {
@@ -6543,19 +6545,19 @@ const Cc = (e) => {
6543
6545
  ...h == null ? void 0 : h(),
6544
6546
  ...N
6545
6547
  },
6546
- currentView: Z || a
6548
+ currentView: X || a
6547
6549
  });
6548
- return U.current || (U.current = xe.map((Ke) => Ke.id)), (a || Z) === "tree" && he && z(he), Se(xe), xe;
6550
+ return U.current || (U.current = xe.map((Ke) => Ke.id)), (a || X) === "tree" && he && z(he), Se(xe), xe;
6549
6551
  } catch (xe) {
6550
6552
  $(xe);
6551
6553
  } finally {
6552
- D(!1);
6554
+ V(!1);
6553
6555
  }
6554
6556
  };
6555
6557
  async function oe() {
6556
6558
  ee && (k.current = await H.getHandler().evalDomain({
6557
6559
  domain: ee,
6558
- values: kt({
6560
+ values: Rt({
6559
6561
  fields: m(),
6560
6562
  values: p()
6561
6563
  }),
@@ -6567,7 +6569,7 @@ const Cc = (e) => {
6567
6569
  })));
6568
6570
  }
6569
6571
  const Te = () => {
6570
- const Z = Array.from(o.keys()), ue = Z[(Z.indexOf(a) + 1) % Z.length];
6572
+ const X = Array.from(o.keys()), ue = X[(X.indexOf(a) + 1) % X.length];
6571
6573
  a === "form" ? Ne(() => {
6572
6574
  l(ue);
6573
6575
  }) : l(ue);
@@ -6576,14 +6578,14 @@ const Cc = (e) => {
6576
6578
  u(d - 1);
6577
6579
  }) : u(d - 1));
6578
6580
  }, Fe = () => {
6579
- const Z = ne.length;
6580
- d < Z - 1 && (a === "form" ? Ne(() => {
6581
+ const X = ne.length;
6582
+ d < X - 1 && (a === "form" ? Ne(() => {
6581
6583
  u(d + 1);
6582
6584
  }) : u(d + 1));
6583
6585
  }, Be = async () => {
6584
- const Z = ne[d].id, ue = (await H.getHandler().readObjects({
6586
+ const X = ne[d].id, ue = (await H.getHandler().readObjects({
6585
6587
  model: E,
6586
- ids: [Z],
6588
+ ids: [X],
6587
6589
  fields: o.get("form").fields,
6588
6590
  context: {
6589
6591
  ...h == null ? void 0 : h(),
@@ -6591,26 +6593,26 @@ const Cc = (e) => {
6591
6593
  }
6592
6594
  }))[0], Oe = (await H.getHandler().readObjects({
6593
6595
  model: E,
6594
- ids: [Z],
6596
+ ids: [X],
6595
6597
  fields: o.get("tree").fields,
6596
6598
  context: {
6597
6599
  ...h == null ? void 0 : h(),
6598
6600
  ...N
6599
6601
  }
6600
- }))[0], ie = s.map((xe) => xe.id === Z ? {
6602
+ }))[0], ie = s.map((xe) => xe.id === X ? {
6601
6603
  ...xe,
6602
6604
  operation: "original",
6603
6605
  values: ue,
6604
6606
  treeValues: Oe
6605
6607
  } : xe);
6606
6608
  Se(ie);
6607
- }, Ne = (Z) => {
6608
- V ? Wt({
6609
+ }, Ne = (X) => {
6610
+ D ? Wt({
6609
6611
  lang: v,
6610
6612
  onOk: () => {
6611
- Be(), Z(), O(!1);
6613
+ Be(), X(), O(!1);
6612
6614
  }
6613
- }) : Z();
6615
+ }) : X();
6614
6616
  }, Je = () => {
6615
6617
  if (le) {
6616
6618
  yc({
@@ -6629,11 +6631,11 @@ const Cc = (e) => {
6629
6631
  });
6630
6632
  }, He = async () => {
6631
6633
  const {
6632
- inv_field: Z
6634
+ inv_field: X
6633
6635
  } = i;
6634
6636
  let ue;
6635
- Z && c && (ue = {
6636
- [Z]: c
6637
+ X && c && (ue = {
6638
+ [X]: c
6637
6639
  }), a === "form" ? Ne(() => {
6638
6640
  I(!0), T({
6639
6641
  defaultValues: ue
@@ -6646,25 +6648,25 @@ const Cc = (e) => {
6646
6648
  S(!0);
6647
6649
  }) : S(!0);
6648
6650
  }, de = async () => {
6649
- D(!0), O(!1), $(void 0);
6651
+ V(!0), O(!1), $(void 0);
6650
6652
  try {
6651
6653
  if (ne[d].id > 0) {
6652
- const Z = s.map((ue) => ue.id === ne[d].id ? {
6654
+ const X = s.map((ue) => ue.id === ne[d].id ? {
6653
6655
  ...ue,
6654
6656
  operation: "pendingRemove"
6655
6657
  } : ue);
6656
- Se(Z);
6658
+ Se(X);
6657
6659
  } else
6658
- Se(s.filter((Z) => Z.id !== ne[d].id));
6659
- } catch (Z) {
6660
- $(Z);
6660
+ Se(s.filter((X) => X.id !== ne[d].id));
6661
+ } catch (X) {
6662
+ $(X);
6661
6663
  }
6662
- u(0), D(!1);
6664
+ u(0), V(!1);
6663
6665
  }, be = async () => {
6664
- const Z = ne.filter((ue) => R.includes(ue.id));
6665
- D(!0), O(!1), $(void 0);
6666
+ const X = ne.filter((ue) => R.includes(ue.id));
6667
+ V(!0), O(!1), $(void 0);
6666
6668
  try {
6667
- const ue = Z.map((ie) => ie.id), Oe = s.filter((ie) => !(ue.includes(ie.id) && ie.id < 0)).map((ie) => ue.includes(ie.id) ? {
6669
+ const ue = X.map((ie) => ie.id), Oe = s.filter((ie) => !(ue.includes(ie.id) && ie.id < 0)).map((ie) => ue.includes(ie.id) ? {
6668
6670
  ...ie,
6669
6671
  operation: "pendingRemove"
6670
6672
  } : ie);
@@ -6672,20 +6674,20 @@ const Cc = (e) => {
6672
6674
  } catch (ue) {
6673
6675
  $(ue);
6674
6676
  }
6675
- u(0), D(!1);
6676
- }, Le = (Z, ue, Oe) => {
6677
+ u(0), V(!1);
6678
+ }, Le = (X, ue, Oe) => {
6677
6679
  let ie;
6678
- if (Z)
6679
- ie = s.map((xe) => xe.id === Z ? {
6680
- id: Z,
6681
- operation: Z > 0 ? "pendingUpdate" : "pendingCreate",
6680
+ if (X)
6681
+ ie = s.map((xe) => xe.id === X ? {
6682
+ id: X,
6683
+ operation: X > 0 ? "pendingUpdate" : "pendingCreate",
6682
6684
  values: {
6683
6685
  ...Oe,
6684
- id: Z
6686
+ id: X
6685
6687
  },
6686
6688
  treeValues: {
6687
6689
  ...Oe,
6688
- id: Z
6690
+ id: X
6689
6691
  }
6690
6692
  } : xe);
6691
6693
  else {
@@ -6704,17 +6706,17 @@ const Cc = (e) => {
6704
6706
  });
6705
6707
  }
6706
6708
  Se(ie), M || C(!1);
6707
- }, se = async (Z) => {
6709
+ }, se = async (X) => {
6708
6710
  const {
6709
6711
  id: ue
6710
- } = Z;
6712
+ } = X;
6711
6713
  let Oe = s;
6712
6714
  const ie = s.find((xe) => xe.id === ue);
6713
6715
  (ie == null ? void 0 : ie.values) === void 0 && (Oe = await fe("form")), T(Oe.find((xe) => xe.id === ue)), I(!1), C(!0);
6714
- }, De = async (Z) => {
6715
- D(!0);
6716
+ }, De = async (X) => {
6717
+ V(!0);
6716
6718
  let ue = s;
6717
- const Oe = Z.filter((ie) => !s.find((xe) => xe.id === ie));
6719
+ const Oe = X.filter((ie) => !s.find((xe) => xe.id === ie));
6718
6720
  try {
6719
6721
  for (const ie of Oe) {
6720
6722
  const xe = (await H.getHandler().readObjects({
@@ -6745,15 +6747,15 @@ const Cc = (e) => {
6745
6747
  } catch (ie) {
6746
6748
  $(ie);
6747
6749
  } finally {
6748
- D(!1);
6750
+ V(!1);
6749
6751
  }
6750
6752
  };
6751
6753
  function ke() {
6752
- const Z = bc[a];
6754
+ const X = bc[a];
6753
6755
  if (a === "graph")
6754
6756
  return $n(o.get("graph").arch).string;
6755
6757
  {
6756
- const ue = new Z(o.get(a).fields);
6758
+ const ue = new X(o.get(a).fields);
6757
6759
  return ue.parse(o.get(a).arch), ue.string;
6758
6760
  }
6759
6761
  }
@@ -6788,8 +6790,8 @@ const Cc = (e) => {
6788
6790
  },
6789
6791
  readOnly: q
6790
6792
  });
6791
- let Z = [];
6792
- if (ne.some((he) => he.treeValues) && (Z = B ? Ot({
6793
+ let X = [];
6794
+ if (ne.some((he) => he.treeValues) && (X = B ? _t({
6793
6795
  resultsToSort: ne.map((he) => he.treeValues),
6794
6796
  sorter: B,
6795
6797
  fields: {
@@ -6801,7 +6803,7 @@ const Cc = (e) => {
6801
6803
  total: ne.length,
6802
6804
  limit: ne.length,
6803
6805
  treeView: o.get("tree"),
6804
- results: Z,
6806
+ results: X,
6805
6807
  loading: b,
6806
6808
  onRowClicked: ((xe = o.get("form")) == null ? void 0 : xe.fields) !== void 0 ? se : void 0,
6807
6809
  showPagination: !1,
@@ -6839,13 +6841,13 @@ const Cc = (e) => {
6839
6841
  banner: !0
6840
6842
  });
6841
6843
  const Ze = M;
6842
- return b ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(X, {
6844
+ return b ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ P(Z, {
6843
6845
  children: [/* @__PURE__ */ n(wc, {
6844
6846
  mode: a,
6845
6847
  title: ke(),
6846
6848
  readOnly: q,
6847
6849
  isMany2Many: le,
6848
- formHasChanges: V,
6850
+ formHasChanges: D,
6849
6851
  totalItems: ne.length,
6850
6852
  currentItemIndex: d,
6851
6853
  onDelete: Je,
@@ -6883,8 +6885,8 @@ const Cc = (e) => {
6883
6885
  ...N
6884
6886
  },
6885
6887
  visible: F,
6886
- onSelectValues: async (Z) => {
6887
- S(!1), De(Z);
6888
+ onSelectValues: async (X) => {
6889
+ S(!1), De(X);
6888
6890
  },
6889
6891
  onCloseModal: () => {
6890
6892
  S(!1);
@@ -6905,7 +6907,7 @@ const Cc = (e) => {
6905
6907
  const [d, u] = x(!0), [f, c] = x(), [m, p] = x(/* @__PURE__ */ new Map()), h = K(Ee), {
6906
6908
  getContext: g
6907
6909
  } = h || {};
6908
- bt(() => {
6910
+ xt(() => {
6909
6911
  y();
6910
6912
  }, [t]);
6911
6913
  const v = async (O) => o && o[O] ? o[O] : await H.getHandler().getView({
@@ -7022,7 +7024,7 @@ function So(e) {
7022
7024
  showLabel: r = !0,
7023
7025
  responsiveBehaviour: i
7024
7026
  } = e, o = st(t.icon || "");
7025
- return /* @__PURE__ */ n(X, {
7027
+ return /* @__PURE__ */ n(Z, {
7026
7028
  children: (t.label || o) && r ? /* @__PURE__ */ n(_i, {
7027
7029
  label: t.label,
7028
7030
  icon: o,
@@ -7054,7 +7056,7 @@ function Ic(e) {
7054
7056
  defaultActiveKey: "1",
7055
7057
  tabPosition: t.tabPosition,
7056
7058
  children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(_c, {
7057
- tab: /* @__PURE__ */ P(X, {
7059
+ tab: /* @__PURE__ */ P(Z, {
7058
7060
  children: [o(s.icon), " ", s.label]
7059
7061
  }),
7060
7062
  children: /* @__PURE__ */ n(So, {
@@ -7118,7 +7120,7 @@ const {
7118
7120
  } = s || {}, [c, m] = x(!1), {
7119
7121
  t: p
7120
7122
  } = K(ge);
7121
- return a ? /* @__PURE__ */ P(X, {
7123
+ return a ? /* @__PURE__ */ P(Z, {
7122
7124
  children: [/* @__PURE__ */ n("div", {
7123
7125
  onClick: () => {
7124
7126
  if (u != null && u()) {
@@ -7154,7 +7156,7 @@ const {
7154
7156
  m(!1), d == null || d();
7155
7157
  }
7156
7158
  })]
7157
- }) : /* @__PURE__ */ P(X, {
7159
+ }) : /* @__PURE__ */ P(Z, {
7158
7160
  children: [/* @__PURE__ */ n(Ce, {
7159
7161
  gutter: 8,
7160
7162
  wrap: !1,
@@ -7219,7 +7221,7 @@ const {
7219
7221
  v.registersAmount === "selected" && (i == null ? void 0 : i.length) !== 0 && (y = [
7220
7222
  ["id", "in", i == null ? void 0 : i.map((b) => b.id)]
7221
7223
  ]);
7222
- const { datas: V } = await H.getHandler().exportData({
7224
+ const { datas: D } = await H.getHandler().exportData({
7223
7225
  model: e,
7224
7226
  fields: Pc({
7225
7227
  keys: v.selectedKeys,
@@ -7231,8 +7233,8 @@ const {
7231
7233
  format: v.exportType
7232
7234
  });
7233
7235
  a(), await new Promise((b) => setTimeout(b, 200));
7234
- const O = await It(V);
7235
- un(V, O.mime);
7236
+ const O = await Dt(D);
7237
+ un(D, O.mime);
7236
7238
  },
7237
7239
  [r, e, o, s, t, a]
7238
7240
  ), f = Re(async () => {
@@ -7244,14 +7246,14 @@ const {
7244
7246
  return l.current["/"] = v, Fr({ fields: v });
7245
7247
  }, [e, t, l]), c = Re(
7246
7248
  async (v) => {
7247
- const V = An(v, l.current)[Vn(v)], O = V.relation, b = await H.getHandler().getFields({
7249
+ const D = An(v, l.current)[Vn(v)], O = D.relation, b = await H.getHandler().getFields({
7248
7250
  model: O,
7249
7251
  context: t,
7250
7252
  fields: []
7251
7253
  });
7252
- for (const [D, _] of Object.entries(b))
7253
- b[D].string = Mc({
7254
- parentTitle: V.string,
7254
+ for (const [V, _] of Object.entries(b))
7255
+ b[V].string = Mc({
7256
+ parentTitle: D.string,
7255
7257
  title: _.string
7256
7258
  });
7257
7259
  return l.current[v] = b, Fr({
@@ -7270,7 +7272,7 @@ const {
7270
7272
  predefinedExports: v.map((O) => ({
7271
7273
  ...O,
7272
7274
  fields: O.fields.map((b) => {
7273
- const D = Vn(b.key), $ = An(b.key, l.current)[D];
7275
+ const V = Vn(b.key), $ = An(b.key, l.current)[V];
7274
7276
  return {
7275
7277
  key: b.key,
7276
7278
  title: $.string
@@ -7281,7 +7283,7 @@ const {
7281
7283
  };
7282
7284
  }, [l.current]), p = Re(
7283
7285
  async (v) => {
7284
- const y = await g("ir.exports"), V = await g("ir.exports.line"), O = await H.getHandler().create({
7286
+ const y = await g("ir.exports"), D = await g("ir.exports.line"), O = await H.getHandler().create({
7285
7287
  model: "ir.exports",
7286
7288
  values: {
7287
7289
  name: v.name,
@@ -7297,7 +7299,7 @@ const {
7297
7299
  name: b.key,
7298
7300
  export_id: O
7299
7301
  },
7300
- fields: V,
7302
+ fields: D,
7301
7303
  context: t
7302
7304
  }))
7303
7305
  ), { ...v, id: O };
@@ -7596,19 +7598,19 @@ const {
7596
7598
  i == null || i(O);
7597
7599
  };
7598
7600
  async function g() {
7599
- const O = await It(r), b = `data:${O == null ? void 0 : O.mime};base64,${r}`, D = document.createElement("a"), _ = c(a), $ = c("name");
7600
- D.href = b, D.download = _ || $, D.click();
7601
+ const O = await Dt(r), b = `data:${O == null ? void 0 : O.mime};base64,${r}`, V = document.createElement("a"), _ = c(a), $ = c("name");
7602
+ V.href = b, V.download = _ || $, V.click();
7601
7603
  }
7602
7604
  async function v() {
7603
- const O = await It(r);
7605
+ const O = await Dt(r);
7604
7606
  un(r, O.mime);
7605
7607
  }
7606
7608
  async function y(O) {
7607
7609
  O.stopPropagation(), O.preventDefault();
7608
- const b = O.target.files[0], D = await ro(b);
7609
- h(D), a && f(a, b.name);
7610
+ const b = O.target.files[0], V = await ro(b);
7611
+ h(V), a && f(a, b.name);
7610
7612
  }
7611
- function V() {
7613
+ function D() {
7612
7614
  f(a, void 0), h(void 0);
7613
7615
  }
7614
7616
  return /* @__PURE__ */ P(Ce, {
@@ -7653,7 +7655,7 @@ const {
7653
7655
  }), /* @__PURE__ */ n(Ue, {
7654
7656
  tooltip: m("clear"),
7655
7657
  disabled: o || !r,
7656
- onClick: V,
7658
+ onClick: D,
7657
7659
  icon: /* @__PURE__ */ n(Pn, {})
7658
7660
  })]
7659
7661
  })
@@ -7698,7 +7700,7 @@ function Zn(e) {
7698
7700
  children: p.type.charAt(0).toUpperCase() + p.type.slice(1)
7699
7701
  }), /* @__PURE__ */ n(ae, {
7700
7702
  flex: "none",
7701
- children: /* @__PURE__ */ n(At, {
7703
+ children: /* @__PURE__ */ n(kt, {
7702
7704
  style: {
7703
7705
  opacity: t.view_id === p.view_id ? 1 : 0
7704
7706
  }
@@ -7759,7 +7761,7 @@ function Zn(e) {
7759
7761
  borderTopLeftRadius: 0,
7760
7762
  borderBottomLeftRadius: 0
7761
7763
  },
7762
- icon: /* @__PURE__ */ n(Vt, {
7764
+ icon: /* @__PURE__ */ n(At, {
7763
7765
  style: {
7764
7766
  fontSize: "0.5em"
7765
7767
  }
@@ -7769,7 +7771,7 @@ function Zn(e) {
7769
7771
  })]
7770
7772
  });
7771
7773
  }
7772
- function _t(e) {
7774
+ function It(e) {
7773
7775
  const {
7774
7776
  icon: t,
7775
7777
  tooltip: r,
@@ -7798,7 +7800,7 @@ function _t(e) {
7798
7800
  overlay: l(),
7799
7801
  disabled: a || !i || i.length === 0,
7800
7802
  children: /* @__PURE__ */ P(Ie, {
7801
- children: [t, " ", s, " ", /* @__PURE__ */ n(Vt, {})]
7803
+ children: [t, " ", s, " ", /* @__PURE__ */ n(At, {})]
7802
7804
  })
7803
7805
  });
7804
7806
  }
@@ -7890,7 +7892,7 @@ const Zc = (e) => {
7890
7892
  lang: o
7891
7893
  } = K(ge), [s, a] = x(!1), l = /* @__PURE__ */ P(Ie, {
7892
7894
  disabled: r,
7893
- children: [/* @__PURE__ */ n(jr, {}), `(${t})`, /* @__PURE__ */ n(Vt, {
7895
+ children: [/* @__PURE__ */ n(jr, {}), `(${t})`, /* @__PURE__ */ n(At, {
7894
7896
  style: {
7895
7897
  fontSize: 12
7896
7898
  }
@@ -7918,7 +7920,7 @@ const Zc = (e) => {
7918
7920
  style: {
7919
7921
  padding: 20
7920
7922
  }
7921
- }) : /* @__PURE__ */ P(X, {
7923
+ }) : /* @__PURE__ */ P(Z, {
7922
7924
  children: [/* @__PURE__ */ P("a", {
7923
7925
  style: {
7924
7926
  display: "block",
@@ -7938,7 +7940,7 @@ const Zc = (e) => {
7938
7940
  t(!1), s();
7939
7941
  },
7940
7942
  children: [/* @__PURE__ */ n(an, {}), " ", _e("addNewAttachment", r)]
7941
- }), i.length > 0 && /* @__PURE__ */ P(X, {
7943
+ }), i.length > 0 && /* @__PURE__ */ P(Z, {
7942
7944
  children: [/* @__PURE__ */ n("li", {
7943
7945
  className: "ant-dropdown-menu-item-divider"
7944
7946
  }), i.map((u) => {
@@ -8007,15 +8009,15 @@ function Qc(e) {
8007
8009
  try {
8008
8010
  const y = await H.getHandler().readObjects({
8009
8011
  model: "ir.attachment",
8010
- ids: t.map((V) => V.id),
8012
+ ids: t.map((D) => D.id),
8011
8013
  fieldsToRetrieve: ["name", "datas_fname", "link"],
8012
8014
  context: a.current.getContext()
8013
8015
  });
8014
- f(y.map((V) => ({
8015
- id: V.id,
8016
- name: V.name,
8017
- datas_fname: V.datas_fname,
8018
- link: V.link
8016
+ f(y.map((D) => ({
8017
+ id: D.id,
8018
+ name: D.name,
8019
+ datas_fname: D.datas_fname,
8020
+ link: D.link
8019
8021
  })));
8020
8022
  } catch (y) {
8021
8023
  We(y);
@@ -8027,9 +8029,9 @@ function Qc(e) {
8027
8029
  return;
8028
8030
  }
8029
8031
  m(!0);
8030
- let V;
8032
+ let D;
8031
8033
  try {
8032
- V = (await H.getHandler().readObjects({
8034
+ D = (await H.getHandler().readObjects({
8033
8035
  model: "ir.attachment",
8034
8036
  ids: [y.id],
8035
8037
  context: a.current.getContext()
@@ -8037,18 +8039,18 @@ function Qc(e) {
8037
8039
  } catch (O) {
8038
8040
  We(O);
8039
8041
  }
8040
- if (m(!1), !!V)
8041
- if (V.datas) {
8042
- const O = await It(V.datas);
8043
- un(V.datas, O.mime);
8042
+ if (m(!1), !!D)
8043
+ if (D.datas) {
8044
+ const O = await Dt(D.datas);
8045
+ un(D.datas, O.mime);
8044
8046
  } else
8045
- s(V);
8047
+ s(D);
8046
8048
  }, []), v = Re(async (y) => {
8047
8049
  s(y);
8048
8050
  }, []);
8049
8051
  return pe(() => {
8050
8052
  h();
8051
- }, [h]), /* @__PURE__ */ P(X, {
8053
+ }, [h]), /* @__PURE__ */ P(Z, {
8052
8054
  children: [/* @__PURE__ */ n(Zc, {
8053
8055
  numberOfAttachments: t.length,
8054
8056
  attachments: u,
@@ -8090,17 +8092,17 @@ function ed({
8090
8092
  duplicatingItem: g,
8091
8093
  setDuplicatingItem: v,
8092
8094
  setResults: y,
8093
- formIsLoading: V,
8095
+ formIsLoading: D,
8094
8096
  attachments: O,
8095
8097
  formRef: b,
8096
- setFormHasChanges: D,
8098
+ setFormHasChanges: V,
8097
8099
  previousView: _,
8098
8100
  setPreviousView: $,
8099
8101
  goToResourceId: w
8100
8102
  } = K(Xe), {
8101
8103
  t: C,
8102
8104
  lang: F
8103
- } = K(ge), S = K(Rt), {
8105
+ } = K(ge), S = K(Et), {
8104
8106
  processAction: L
8105
8107
  } = S || {}, T = K(at), {
8106
8108
  openRelate: R,
@@ -8176,7 +8178,7 @@ function ed({
8176
8178
  v == null || v(!1);
8177
8179
  }
8178
8180
  }
8179
- const z = a || h || V || g;
8181
+ const z = a || h || D || g;
8180
8182
  function q(E) {
8181
8183
  L == null || L({
8182
8184
  actionData: E,
@@ -8190,10 +8192,10 @@ function ed({
8190
8192
  }
8191
8193
  return r ? /* @__PURE__ */ P(je, {
8192
8194
  wrap: !0,
8193
- children: [V && /* @__PURE__ */ P(X, {
8194
- children: [/* @__PURE__ */ n(Ae, {}), Ct(), Ct()]
8195
+ children: [D && /* @__PURE__ */ P(Z, {
8196
+ children: [/* @__PURE__ */ n(Ae, {}), St(), St()]
8195
8197
  }), /* @__PURE__ */ n(Fo, {
8196
- disabled: a || V || h || g
8198
+ disabled: a || D || h || g
8197
8199
  }), /* @__PURE__ */ n(Ge, {
8198
8200
  icon: /* @__PURE__ */ n(pi, {}),
8199
8201
  tooltip: C("save"),
@@ -8203,19 +8205,19 @@ function ed({
8203
8205
  }), /* @__PURE__ */ n(Ge, {
8204
8206
  icon: /* @__PURE__ */ n(Yn, {}),
8205
8207
  tooltip: C("duplicate"),
8206
- disabled: s || a || l === void 0 || g || V,
8208
+ disabled: s || a || l === void 0 || g || D,
8207
8209
  loading: g,
8208
8210
  onClick: W
8209
8211
  }), /* @__PURE__ */ n(Ge, {
8210
8212
  icon: /* @__PURE__ */ n(Kn, {}),
8211
8213
  tooltip: C("delete"),
8212
- disabled: a || l === void 0 || h || g || V,
8214
+ disabled: a || l === void 0 || h || g || D,
8213
8215
  loading: h,
8214
8216
  onClick: j
8215
- }), Ct(), /* @__PURE__ */ n(Ge, {
8217
+ }), St(), /* @__PURE__ */ n(Ge, {
8216
8218
  icon: /* @__PURE__ */ n(Kr, {}),
8217
8219
  tooltip: C("showLogs"),
8218
- disabled: a || l === void 0 || h || g || V,
8220
+ disabled: a || l === void 0 || h || g || D,
8219
8221
  loading: !1,
8220
8222
  onClick: () => {
8221
8223
  Oo(m, l, C);
@@ -8223,23 +8225,23 @@ function ed({
8223
8225
  }), /* @__PURE__ */ n(Ge, {
8224
8226
  icon: /* @__PURE__ */ n(ln, {}),
8225
8227
  tooltip: C("refresh"),
8226
- disabled: a || l === void 0 || h || g || V,
8228
+ disabled: a || l === void 0 || h || g || D,
8227
8229
  loading: !1,
8228
8230
  onClick: () => {
8229
8231
  M(() => {
8230
8232
  b.current.fetchValues();
8231
8233
  });
8232
8234
  }
8233
- }), Ct(), /* @__PURE__ */ n(Zn, {
8235
+ }), St(), /* @__PURE__ */ n(Zn, {
8234
8236
  currentView: r,
8235
8237
  previousView: _,
8236
8238
  availableViews: t,
8237
8239
  onChangeView: (E) => {
8238
- $ == null || $(r), D == null || D(!1), i == null || i(E);
8240
+ $ == null || $(r), V == null || V(!1), i == null || i(E);
8239
8241
  },
8240
8242
  disabled: z,
8241
8243
  formHasChanges: s
8242
- }), Ct(), /* @__PURE__ */ P(je, {
8244
+ }), St(), /* @__PURE__ */ P(je, {
8243
8245
  children: [/* @__PURE__ */ n(Ge, {
8244
8246
  icon: /* @__PURE__ */ n(Br, {}),
8245
8247
  tooltip: C("previous"),
@@ -8257,17 +8259,17 @@ function ed({
8257
8259
  I(k);
8258
8260
  }
8259
8261
  })]
8260
- }), Ct(), /* @__PURE__ */ n(_t, {
8262
+ }), St(), /* @__PURE__ */ n(It, {
8261
8263
  icon: /* @__PURE__ */ n(Hn, {}),
8262
8264
  disabled: z,
8263
8265
  tooltip: C("actions"),
8264
8266
  items: e == null ? void 0 : e.action,
8265
8267
  onItemClick: async (E) => {
8266
- !E || !(await St({
8268
+ !E || !(await Tt({
8267
8269
  onFormSave: o
8268
8270
  })).succeed || q(E);
8269
8271
  }
8270
- }), /* @__PURE__ */ n(_t, {
8272
+ }), /* @__PURE__ */ n(It, {
8271
8273
  icon: /* @__PURE__ */ n(jn, {}),
8272
8274
  disabled: z,
8273
8275
  tooltip: C("reports"),
@@ -8275,7 +8277,7 @@ function ed({
8275
8277
  onItemClick: async (E) => {
8276
8278
  if (!E)
8277
8279
  return;
8278
- const N = await St({
8280
+ const N = await Tt({
8279
8281
  onFormSave: o
8280
8282
  });
8281
8283
  !N.succeed || q({
@@ -8286,13 +8288,13 @@ function ed({
8286
8288
  }
8287
8289
  });
8288
8290
  }
8289
- }), /* @__PURE__ */ n(_t, {
8291
+ }), /* @__PURE__ */ n(It, {
8290
8292
  icon: /* @__PURE__ */ n(Pr, {}),
8291
8293
  disabled: z,
8292
8294
  tooltip: C("related"),
8293
8295
  items: e == null ? void 0 : e.relate,
8294
8296
  onItemClick: async (E) => {
8295
- !E || !(await St({
8297
+ !E || !(await Tt({
8296
8298
  onFormSave: o
8297
8299
  })).succeed || R({
8298
8300
  relateData: E,
@@ -8306,7 +8308,7 @@ function ed({
8306
8308
  disabled: z,
8307
8309
  attachments: O,
8308
8310
  onAddNewAttachment: async () => {
8309
- const E = await St({
8311
+ const E = await Tt({
8310
8312
  onFormSave: o
8311
8313
  });
8312
8314
  if (!E.succeed)
@@ -8325,7 +8327,7 @@ function ed({
8325
8327
  });
8326
8328
  },
8327
8329
  onListAllAttachments: async () => {
8328
- const E = await St({
8330
+ const E = await Tt({
8329
8331
  onFormSave: o
8330
8332
  });
8331
8333
  if (!E.succeed)
@@ -8338,7 +8340,7 @@ function ed({
8338
8340
  });
8339
8341
  },
8340
8342
  onViewAttachmentDetails: async (E) => {
8341
- !(await St({
8343
+ !(await Tt({
8342
8344
  onFormSave: o
8343
8345
  })).succeed || A({
8344
8346
  model: "ir.attachment",
@@ -8349,12 +8351,12 @@ function ed({
8349
8351
  })]
8350
8352
  }) : null;
8351
8353
  }
8352
- function Ct() {
8354
+ function St() {
8353
8355
  return /* @__PURE__ */ n("div", {
8354
8356
  className: "inline-block w-2"
8355
8357
  });
8356
8358
  }
8357
- async function St({
8359
+ async function Tt({
8358
8360
  onFormSave: e
8359
8361
  }) {
8360
8362
  const t = await (e == null ? void 0 : e());
@@ -8389,8 +8391,8 @@ const {
8389
8391
  pe(() => {
8390
8392
  l && !p && v(!1), !r && !l && (h(!0), v(!0));
8391
8393
  }, [p, l]);
8392
- const y = (V) => {
8393
- i == null || i(V.target.value);
8394
+ const y = (D) => {
8395
+ i == null || i(D.target.value);
8394
8396
  };
8395
8397
  return /* @__PURE__ */ P(Ce, {
8396
8398
  gutter: 8,
@@ -8399,7 +8401,7 @@ const {
8399
8401
  children: [l ? null : /* @__PURE__ */ n(ae, {
8400
8402
  flex: "32px",
8401
8403
  children: p ? /* @__PURE__ */ n(Ie, {
8402
- icon: /* @__PURE__ */ n(At, {}),
8404
+ icon: /* @__PURE__ */ n(kt, {}),
8403
8405
  onClick: () => {
8404
8406
  o(r) && (h(!1), v(!1));
8405
8407
  },
@@ -8526,7 +8528,7 @@ const {
8526
8528
  style: {
8527
8529
  marginLeft: 15
8528
8530
  },
8529
- icon: /* @__PURE__ */ n(At, {}),
8531
+ icon: /* @__PURE__ */ n(kt, {}),
8530
8532
  htmlType: "submit",
8531
8533
  type: "primary",
8532
8534
  disabled: o,
@@ -8655,7 +8657,7 @@ function pn(e) {
8655
8657
  } = ad();
8656
8658
  function m() {
8657
8659
  if ((o == null ? void 0 : o.type) === "form")
8658
- return s ? d === 0 ? /* @__PURE__ */ P(X, {
8660
+ return s ? d === 0 ? /* @__PURE__ */ P(Z, {
8659
8661
  children: [f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Zt, {
8660
8662
  copyable: {
8661
8663
  icon: /* @__PURE__ */ n(Yn, {
@@ -8666,7 +8668,7 @@ function pn(e) {
8666
8668
  },
8667
8669
  children: s
8668
8670
  }), ")"]
8669
- }) : /* @__PURE__ */ P(X, {
8671
+ }) : /* @__PURE__ */ P(Z, {
8670
8672
  children: [f("register"), " ", a === void 0 ? 1 : a + 1, " /", " ", l.length, " ", f("of"), " ", d, " - ", f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Zt, {
8671
8673
  copyable: !0,
8672
8674
  children: s
@@ -8674,14 +8676,14 @@ function pn(e) {
8674
8676
  }) : "";
8675
8677
  if ((o == null ? void 0 : o.type) === "tree" && u) {
8676
8678
  if (u.length === 1)
8677
- return /* @__PURE__ */ P(X, {
8679
+ return /* @__PURE__ */ P(Z, {
8678
8680
  children: ["1 ", f("selectedRegisters"), " - (id:", " ", /* @__PURE__ */ n(Zt, {
8679
8681
  copyable: !0,
8680
8682
  children: u[0].id
8681
8683
  }), ")"]
8682
8684
  });
8683
8685
  if (u.length > 1)
8684
- return /* @__PURE__ */ P(X, {
8686
+ return /* @__PURE__ */ P(Z, {
8685
8687
  children: [u.length, " ", f("selectedRegisters"), /* @__PURE__ */ n(Zt, {
8686
8688
  copyable: {
8687
8689
  text: u.map((p) => p.id).join(", ")
@@ -8744,10 +8746,10 @@ const cd = (e) => {
8744
8746
  setSearchParams: g = void 0,
8745
8747
  searchVisible: v = !0,
8746
8748
  setSearchVisible: y = void 0,
8747
- sorter: V = void 0,
8749
+ sorter: D = void 0,
8748
8750
  setSorter: O = void 0,
8749
8751
  setTotalItems: b = void 0,
8750
- setSearchTreeNameSearch: D = void 0,
8752
+ setSearchTreeNameSearch: V = void 0,
8751
8753
  setTreeIsLoading: _ = void 0,
8752
8754
  limit: $,
8753
8755
  setLimit: w,
@@ -8770,7 +8772,7 @@ const cd = (e) => {
8770
8772
  tableRefreshing: B
8771
8773
  } = ao({
8772
8774
  model: i,
8773
- setSearchTreeNameSearch: D,
8775
+ setSearchTreeNameSearch: V,
8774
8776
  setSelectedRowItems: h,
8775
8777
  searchParams: C,
8776
8778
  setSearchValues: S,
@@ -8780,7 +8782,7 @@ const cd = (e) => {
8780
8782
  context: o,
8781
8783
  formView: a,
8782
8784
  treeView: l,
8783
- sorter: V,
8785
+ sorter: D,
8784
8786
  setSorter: O,
8785
8787
  setCurrentItemIndex: c,
8786
8788
  setResultsActionView: f,
@@ -8791,7 +8793,7 @@ const cd = (e) => {
8791
8793
  limit: $,
8792
8794
  setLimit: w
8793
8795
  });
8794
- return !r || !t ? null : /* @__PURE__ */ P(X, {
8796
+ return !r || !t ? null : /* @__PURE__ */ P(Z, {
8795
8797
  children: [/* @__PURE__ */ n(pn, {
8796
8798
  title: t.name,
8797
8799
  children: /* @__PURE__ */ n(sd, {
@@ -8842,7 +8844,7 @@ const cd = (e) => {
8842
8844
  setResults: c,
8843
8845
  setCurrentItemIndex: m
8844
8846
  } = e;
8845
- return t ? /* @__PURE__ */ P(X, {
8847
+ return t ? /* @__PURE__ */ P(Z, {
8846
8848
  children: [/* @__PURE__ */ n(pn, {
8847
8849
  children: /* @__PURE__ */ n(ed, {
8848
8850
  toolbar: a == null ? void 0 : a.toolbar
@@ -8953,10 +8955,10 @@ function md(e) {
8953
8955
  setSearchVisible: g,
8954
8956
  setSearchTreeNameSearch: v,
8955
8957
  searchTreeNameSearch: y,
8956
- treeIsLoading: V,
8958
+ treeIsLoading: D,
8957
8959
  setPreviousView: O,
8958
8960
  previousView: b,
8959
- results: D,
8961
+ results: V,
8960
8962
  limit: _,
8961
8963
  totalItems: $
8962
8964
  } = K(Xe), {
@@ -8968,7 +8970,7 @@ function md(e) {
8968
8970
  } = K(fd), {
8969
8971
  t: L,
8970
8972
  lang: T
8971
- } = K(ge), R = K(Rt), {
8973
+ } = K(ge), R = K(Et), {
8972
8974
  processAction: A
8973
8975
  } = R || {}, [M, I] = x(!1), k = y !== void 0 && y.trim().length > 0;
8974
8976
  function B() {
@@ -9032,9 +9034,11 @@ function md(e) {
9032
9034
  }
9033
9035
  return /* @__PURE__ */ P(je, {
9034
9036
  wrap: !0,
9035
- children: [C ? null : /* @__PURE__ */ P(X, {
9037
+ children: [D && /* @__PURE__ */ P(Z, {
9038
+ children: [/* @__PURE__ */ n(Ae, {}), pt(), pt()]
9039
+ }), C ? null : /* @__PURE__ */ P(Z, {
9036
9040
  children: [/* @__PURE__ */ n(ud, {
9037
- disabled: l || a || V,
9041
+ disabled: l || a || D,
9038
9042
  searchText: y,
9039
9043
  onSearch: (q) => {
9040
9044
  q && q.trim().length > 0 ? v == null || v(q) : v == null || v(void 0);
@@ -9050,27 +9054,27 @@ function md(e) {
9050
9054
  onClick: () => {
9051
9055
  g == null || g(!h);
9052
9056
  },
9053
- disabled: l || a || V,
9057
+ disabled: l || a || D,
9054
9058
  badgeNumber: p == null ? void 0 : p.length
9055
- }), Mt(), /* @__PURE__ */ n(Fo, {
9056
- disabled: V
9059
+ }), pt(), /* @__PURE__ */ n(Fo, {
9060
+ disabled: D
9057
9061
  }), /* @__PURE__ */ n(Ge, {
9058
9062
  icon: /* @__PURE__ */ n(Yn, {}),
9059
9063
  tooltip: L("duplicate"),
9060
- disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || V,
9064
+ disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || D,
9061
9065
  loading: l,
9062
9066
  onClick: U
9063
9067
  }), /* @__PURE__ */ n(Ge, {
9064
9068
  icon: /* @__PURE__ */ n(Kn, {}),
9065
9069
  tooltip: L("delete"),
9066
- disabled: !(o && (o == null ? void 0 : o.length) > 0) || V,
9070
+ disabled: !(o && (o == null ? void 0 : o.length) > 0) || D,
9067
9071
  loading: a,
9068
9072
  onClick: B
9069
- }), Mt()]
9073
+ }), pt()]
9070
9074
  }), /* @__PURE__ */ n(Ge, {
9071
9075
  icon: /* @__PURE__ */ n(Kr, {}),
9072
9076
  tooltip: L("showLogs"),
9073
- disabled: !(o && (o == null ? void 0 : o.length) > 0) || V,
9077
+ disabled: !(o && (o == null ? void 0 : o.length) > 0) || D,
9074
9078
  loading: !1,
9075
9079
  onClick: () => {
9076
9080
  Oo(u, o[0].id, L);
@@ -9078,33 +9082,33 @@ function md(e) {
9078
9082
  }), /* @__PURE__ */ n(Ge, {
9079
9083
  icon: /* @__PURE__ */ n(ln, {}),
9080
9084
  tooltip: L("refresh"),
9081
- disabled: l || a || V,
9085
+ disabled: l || a || D,
9082
9086
  loading: !1,
9083
9087
  onClick: () => {
9084
9088
  var q;
9085
9089
  (q = f == null ? void 0 : f.current) == null || q.refreshResults();
9086
9090
  }
9087
- }), !C && /* @__PURE__ */ P(X, {
9088
- children: [Mt(), /* @__PURE__ */ n(Zn, {
9091
+ }), !C && /* @__PURE__ */ P(Z, {
9092
+ children: [pt(), /* @__PURE__ */ n(Zn, {
9089
9093
  currentView: r,
9090
9094
  availableViews: t,
9091
9095
  onChangeView: (q) => {
9092
9096
  O == null || O(r), i == null || i(q);
9093
9097
  },
9094
9098
  previousView: b,
9095
- disabled: V
9099
+ disabled: D
9096
9100
  })]
9097
- }), Mt(), /* @__PURE__ */ n(_t, {
9101
+ }), pt(), /* @__PURE__ */ n(It, {
9098
9102
  icon: /* @__PURE__ */ n(Hn, {}),
9099
- disabled: !(o && (o == null ? void 0 : o.length) > 0) || V,
9103
+ disabled: !(o && (o == null ? void 0 : o.length) > 0) || D,
9100
9104
  tooltip: L("actions"),
9101
9105
  items: F == null ? void 0 : F.action,
9102
9106
  onItemClick: (q) => {
9103
9107
  !q || W(q);
9104
9108
  }
9105
- }), /* @__PURE__ */ n(_t, {
9109
+ }), /* @__PURE__ */ n(It, {
9106
9110
  icon: /* @__PURE__ */ n(jn, {}),
9107
- disabled: !(o && (o == null ? void 0 : o.length) > 0) || V,
9111
+ disabled: !(o && (o == null ? void 0 : o.length) > 0) || D,
9108
9112
  tooltip: L("reports"),
9109
9113
  items: F == null ? void 0 : F.print,
9110
9114
  onItemClick: (q) => {
@@ -9116,8 +9120,8 @@ function md(e) {
9116
9120
  }
9117
9121
  });
9118
9122
  }
9119
- }), S && /* @__PURE__ */ P(X, {
9120
- children: [Mt(), /* @__PURE__ */ n(_t, {
9123
+ }), S && /* @__PURE__ */ P(Z, {
9124
+ children: [pt(), /* @__PURE__ */ n(It, {
9121
9125
  icon: /* @__PURE__ */ n(Rr, {
9122
9126
  component: () => /* @__PURE__ */ P("svg", {
9123
9127
  xmlns: "http://www.w3.org/2000/svg",
@@ -9157,7 +9161,7 @@ function md(e) {
9157
9161
  onItemClick: (q) => {
9158
9162
  if (q.id === "print_screen") {
9159
9163
  let E = (o == null ? void 0 : o.map((N) => N.id)) || [];
9160
- E.length === 0 && (E = (D == null ? void 0 : D.map((N) => N.id)) || []), W({
9164
+ E.length === 0 && (E = (V == null ? void 0 : V.map((N) => N.id)) || []), W({
9161
9165
  id: -1,
9162
9166
  model: u,
9163
9167
  report_name: "printscreen.list",
@@ -9171,7 +9175,7 @@ function md(e) {
9171
9175
  }
9172
9176
  I(!0);
9173
9177
  },
9174
- disabled: l || a || V || k
9178
+ disabled: l || a || D || k
9175
9179
  }), /* @__PURE__ */ n(Hc, {
9176
9180
  visible: M,
9177
9181
  locale: T,
@@ -9181,13 +9185,13 @@ function md(e) {
9181
9185
  limit: _,
9182
9186
  totalRegisters: $ || 0,
9183
9187
  selectedRegistersToExport: o,
9184
- visibleRegisters: (D == null ? void 0 : D.length) || 0,
9188
+ visibleRegisters: (V == null ? void 0 : V.length) || 0,
9185
9189
  context: w
9186
9190
  })]
9187
9191
  })]
9188
9192
  });
9189
9193
  }
9190
- function Mt() {
9194
+ function pt() {
9191
9195
  return /* @__PURE__ */ n("div", {
9192
9196
  className: "inline-block w-2"
9193
9197
  });
@@ -9211,7 +9215,7 @@ const hd = (e) => {
9211
9215
  currentView: h,
9212
9216
  setPreviousView: g
9213
9217
  } = K(Xe);
9214
- return t ? /* @__PURE__ */ P(X, {
9218
+ return t ? /* @__PURE__ */ P(Z, {
9215
9219
  children: [/* @__PURE__ */ n(pn, {
9216
9220
  children: /* @__PURE__ */ n(md, {
9217
9221
  toolbar: a == null ? void 0 : a.toolbar,
@@ -9232,8 +9236,8 @@ const hd = (e) => {
9232
9236
  id: y
9233
9237
  } = v;
9234
9238
  f(y);
9235
- const V = u.findIndex((b) => b.id === y);
9236
- g == null || g(h), d(V);
9239
+ const D = u.findIndex((b) => b.id === y);
9240
+ g == null || g(h), d(D);
9237
9241
  const O = m.find((b) => b.type === "form");
9238
9242
  c(O);
9239
9243
  }
@@ -9359,7 +9363,7 @@ function bd(e, t) {
9359
9363
  action_type: h,
9360
9364
  treeExpandable: g = !1,
9361
9365
  limit: v
9362
- } = e, [y, V] = x(), [O, b] = x([]), [D, _] = x(!0), $ = m || void 0, [w, C] = x($), [F, S] = x([]), [L, T] = x(), [R, A] = x([]), [M, I] = x(), [k, B] = x(0), [j, U] = x(!1), [W, z] = x(!1), [q, E] = x(), {
9366
+ } = e, [y, D] = x(), [O, b] = x([]), [V, _] = x(!0), $ = m || void 0, [w, C] = x($), [F, S] = x([]), [L, T] = x(), [R, A] = x([]), [M, I] = x(), [k, B] = x(0), [j, U] = x(!1), [W, z] = x(!1), [q, E] = x(), {
9363
9367
  t: N
9364
9368
  } = K(ge), ee = me(), le = me(), ce = K(at), {
9365
9369
  setCurrentView: ne,
@@ -9376,9 +9380,9 @@ function bd(e, t) {
9376
9380
  C(Q), J == null || J(Q);
9377
9381
  }
9378
9382
  function Te(Q) {
9379
- V(Q), ne == null || ne(Q);
9383
+ D(Q), ne == null || ne(Q);
9380
9384
  }
9381
- vt(t, () => ({
9385
+ wt(t, () => ({
9382
9386
  canWeClose: Fe
9383
9387
  }));
9384
9388
  const ye = async () => {
@@ -9407,8 +9411,8 @@ function bd(e, t) {
9407
9411
  switch (De) {
9408
9412
  case "dashboard": {
9409
9413
  const tt = s.find((nt) => {
9410
- const [, Z] = nt;
9411
- return Z === "form";
9414
+ const [, X] = nt;
9415
+ return X === "form";
9412
9416
  });
9413
9417
  let Ze;
9414
9418
  tt && (Ze = {
@@ -9570,7 +9574,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9570
9574
  Te(Q);
9571
9575
  }
9572
9576
  }
9573
- return D ? /* @__PURE__ */ n(Ae, {}) : y ? /* @__PURE__ */ P(Xa, {
9577
+ return V ? /* @__PURE__ */ n(Ae, {}) : y ? /* @__PURE__ */ P(Xa, {
9574
9578
  title: a,
9575
9579
  currentView: y,
9576
9580
  setCurrentView: Te,
@@ -9605,7 +9609,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9605
9609
  })]
9606
9610
  }) : null;
9607
9611
  }
9608
- const Do = yt(bd);
9612
+ const Do = vt(bd);
9609
9613
  async function xd({
9610
9614
  actionId: e,
9611
9615
  rootContext: t = {},
@@ -9614,7 +9618,7 @@ async function xd({
9614
9618
  const i = "ir.actions.act_window", o = `${i},${e}`, s = await H.getHandler().getActionData({
9615
9619
  action: o,
9616
9620
  context: t
9617
- }), a = gt({
9621
+ }), a = yt({
9618
9622
  context: s.context,
9619
9623
  values: r,
9620
9624
  fields: {}
@@ -9629,18 +9633,18 @@ async function xd({
9629
9633
  limit: c,
9630
9634
  view_type: m
9631
9635
  } = s, p = m === "tree", h = [];
9632
- for (const V of u) {
9633
- const [O, b] = V;
9636
+ for (const D of u) {
9637
+ const [O, b] = D;
9634
9638
  if (O)
9635
- h.push(V);
9639
+ h.push(D);
9636
9640
  else {
9637
- const { view_id: D } = await H.getHandler().getView({
9641
+ const { view_id: V } = await H.getHandler().getView({
9638
9642
  model: d,
9639
9643
  type: b,
9640
9644
  id: O,
9641
9645
  context: { ...t, ...a }
9642
9646
  });
9643
- h.push([D, b]);
9647
+ h.push([V, b]);
9644
9648
  }
9645
9649
  }
9646
9650
  const [g, v] = h[0], y = { id: g, type: v };
@@ -9768,12 +9772,12 @@ function Id(e) {
9768
9772
  domain: s = [],
9769
9773
  visible: a = !0,
9770
9774
  parentContext: l = {}
9771
- } = e, [d, u] = x(!1), [f, c] = x(!1), [m, p] = x(), [h, g] = x(), [v, y] = x(), [V, O] = x(1), [b, D] = x(0), _ = me(_d), $ = me([]), [w, C] = x(0), [F, S] = x([]), [L, T] = x(void 0), [R, A] = x(), [M, I] = x(), [k, B] = x(), [j, U] = x(!1), W = me([]), z = (J) => {
9772
- U(!0), O(J), D((J - 1) * _.current);
9775
+ } = e, [d, u] = x(!1), [f, c] = x(!1), [m, p] = x(), [h, g] = x(), [v, y] = x(), [D, O] = x(1), [b, V] = x(0), _ = me(_d), $ = me([]), [w, C] = x(0), [F, S] = x([]), [L, T] = x(void 0), [R, A] = x(), [M, I] = x(), [k, B] = x(), [j, U] = x(!1), W = me([]), z = (J) => {
9776
+ U(!0), O(J), V((J - 1) * _.current);
9773
9777
  }, q = async () => {
9774
9778
  const J = W.current.length > 0 ? W.current : s, we = fn($.current, J), {
9775
9779
  colors: Se
9776
- } = Ft(h), {
9780
+ } = Ot(h), {
9777
9781
  totalItems: Pe,
9778
9782
  results: fe,
9779
9783
  attrsEvaluated: oe
@@ -9789,7 +9793,7 @@ function Id(e) {
9789
9793
  }
9790
9794
  });
9791
9795
  T(Xt(oe));
9792
- const Te = Ot({
9796
+ const Te = _t({
9793
9797
  resultsToSort: fe,
9794
9798
  sorter: R,
9795
9799
  fields: {
@@ -9809,7 +9813,7 @@ function Id(e) {
9809
9813
  };
9810
9814
  pe(() => {
9811
9815
  !f || a && E();
9812
- }, [V, b, f, a]);
9816
+ }, [D, b, f, a]);
9813
9817
  const N = async (J) => {
9814
9818
  c(!1), u(!0), B(void 0);
9815
9819
  try {
@@ -9866,7 +9870,7 @@ function Id(e) {
9866
9870
  showPagination: !1,
9867
9871
  total: w,
9868
9872
  limit: _.current,
9869
- page: V,
9873
+ page: D,
9870
9874
  treeView: h,
9871
9875
  results: F,
9872
9876
  onRequestPageChange: z,
@@ -9876,7 +9880,7 @@ function Id(e) {
9876
9880
  sorter: R,
9877
9881
  onChangeSort: (J) => {
9878
9882
  A == null || A(J);
9879
- const we = Ot({
9883
+ const we = _t({
9880
9884
  resultsToSort: F,
9881
9885
  sorter: J,
9882
9886
  fields: {
@@ -9941,7 +9945,7 @@ function Vd(e, t) {
9941
9945
  } = K(Xn), g = me(), v = me();
9942
9946
  pe(() => {
9943
9947
  y();
9944
- }, [r, o, i]), vt(t, () => ({
9948
+ }, [r, o, i]), wt(t, () => ({
9945
9949
  refresh: () => {
9946
9950
  y();
9947
9951
  },
@@ -9950,19 +9954,19 @@ function Vd(e, t) {
9950
9954
  async function y() {
9951
9955
  u(!0), m(!0), c(void 0);
9952
9956
  try {
9953
- const w = await V(), C = await b(w), F = w.fields[Tn].relation, S = C[Tn].items;
9957
+ const w = await D(), C = await b(w), F = w.fields[Tn].relation, S = C[Tn].items;
9954
9958
  v.current = w.fields;
9955
9959
  const L = await O({
9956
9960
  items: S,
9957
9961
  model: F,
9958
9962
  context: i
9959
- }), T = await D(L);
9963
+ }), T = await V(L);
9960
9964
  l(T), u(!1), m(!1);
9961
9965
  } catch (w) {
9962
9966
  c(JSON.stringify(w));
9963
9967
  }
9964
9968
  }
9965
- async function V() {
9969
+ async function D() {
9966
9970
  return await H.getHandler().getView({
9967
9971
  model: r,
9968
9972
  type: "form",
@@ -10001,7 +10005,7 @@ function Vd(e, t) {
10001
10005
  context: i
10002
10006
  }))[0];
10003
10007
  }
10004
- async function D(w) {
10008
+ async function V(w) {
10005
10009
  const C = [];
10006
10010
  for (const F of w) {
10007
10011
  const {
@@ -10201,7 +10205,7 @@ function Vd(e, t) {
10201
10205
  })
10202
10206
  });
10203
10207
  }
10204
- const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
10208
+ const Ad = vt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
10205
10209
  ...e,
10206
10210
  children: /* @__PURE__ */ n(Rd, {
10207
10211
  ...e
@@ -10243,9 +10247,9 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
10243
10247
  field: g,
10244
10248
  columns: v
10245
10249
  } = r, y = K(Ee), {
10246
- getContext: V
10250
+ getContext: D
10247
10251
  } = y || {};
10248
- bt(() => {
10252
+ xt(() => {
10249
10253
  b();
10250
10254
  }, [o]);
10251
10255
  const O = (w) => {
@@ -10259,7 +10263,7 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
10259
10263
  if (r.domain) {
10260
10264
  const C = await H.getHandler().evalDomain({
10261
10265
  domain: r.domain,
10262
- values: kt({
10266
+ values: Rt({
10263
10267
  fields: y == null ? void 0 : y.getFields(),
10264
10268
  values: y.getPlainValues()
10265
10269
  }),
@@ -10274,7 +10278,7 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
10274
10278
  params: w,
10275
10279
  fields: [g],
10276
10280
  context: {
10277
- ...V == null ? void 0 : V(),
10281
+ ...D == null ? void 0 : D(),
10278
10282
  ...p
10279
10283
  }
10280
10284
  })).map((S) => {
@@ -10299,7 +10303,7 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
10299
10303
  banner: !0
10300
10304
  });
10301
10305
  }
10302
- const D = () => {
10306
+ const V = () => {
10303
10307
  $(a.map((w) => w.value));
10304
10308
  }, _ = () => {
10305
10309
  $([]);
@@ -10318,7 +10322,7 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
10318
10322
  });
10319
10323
  }), O(C);
10320
10324
  };
10321
- return f && a.length === 0 ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(X, {
10325
+ return f && a.length === 0 ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(Z, {
10322
10326
  children: /* @__PURE__ */ P("div", {
10323
10327
  className: "flex flex-row",
10324
10328
  children: [/* @__PURE__ */ n(Nt.Group, {
@@ -10339,7 +10343,7 @@ const Ad = yt(Vd), kd = (e) => /* @__PURE__ */ n(ve, {
10339
10343
  })
10340
10344
  }), !h && /* @__PURE__ */ P(je, {
10341
10345
  children: [/* @__PURE__ */ n(Ie, {
10342
- onClick: D,
10346
+ onClick: V,
10343
10347
  disabled: s.length == a.length,
10344
10348
  children: "Check all"
10345
10349
  }), /* @__PURE__ */ n(Ie, {
@@ -10518,26 +10522,26 @@ function qd(e, t) {
10518
10522
  closable: !0,
10519
10523
  content: /* @__PURE__ */ n(Ud, {})
10520
10524
  }]), f = me(/* @__PURE__ */ new Map()), c = me();
10521
- vt(t, () => ({
10525
+ wt(t, () => ({
10522
10526
  retrieveAndOpenAction: h,
10523
10527
  openShortcut: y
10524
10528
  }));
10525
10529
  function m(b) {
10526
10530
  if (b === a) {
10527
- const D = d.findIndex((_) => _.key === b);
10528
- d[D - 1] && l(d[D - 1].key), d[D + 1] && l(d[D + 1].key);
10531
+ const V = d.findIndex((_) => _.key === b);
10532
+ d[V - 1] && l(d[V - 1].key), d[V + 1] && l(d[V + 1].key);
10529
10533
  }
10530
- u(d.filter((D) => D.key !== b)), f.current.delete(b);
10534
+ u(d.filter((V) => V.key !== b)), f.current.delete(b);
10531
10535
  }
10532
10536
  function p({
10533
10537
  tabKey: b,
10534
- canWeClose: D
10538
+ canWeClose: V
10535
10539
  }) {
10536
- f.current.set(b, D);
10540
+ f.current.set(b, V);
10537
10541
  }
10538
10542
  async function h({
10539
10543
  action: b,
10540
- values: D,
10544
+ values: V,
10541
10545
  forced_values: _,
10542
10546
  initialViewType: $,
10543
10547
  res_id: w,
@@ -10551,7 +10555,7 @@ function qd(e, t) {
10551
10555
  We("Action type not supported");
10552
10556
  return;
10553
10557
  }
10554
- const [S, L] = b.split(","), T = parseInt(L), R = gt({
10558
+ const [S, L] = b.split(","), T = parseInt(L), R = yt({
10555
10559
  context: F.context,
10556
10560
  values: i,
10557
10561
  fields: {}
@@ -10618,7 +10622,7 @@ function qd(e, t) {
10618
10622
  initialView: q,
10619
10623
  action_type: S,
10620
10624
  action_id: T,
10621
- values: D,
10625
+ values: V,
10622
10626
  forced_values: _,
10623
10627
  res_id: w,
10624
10628
  treeExpandable: W,
@@ -10627,7 +10631,7 @@ function qd(e, t) {
10627
10631
  }
10628
10632
  function g({
10629
10633
  title: b,
10630
- content: D,
10634
+ content: V,
10631
10635
  key: _,
10632
10636
  action: $
10633
10637
  }) {
@@ -10636,13 +10640,13 @@ function qd(e, t) {
10636
10640
  title: b,
10637
10641
  key: _,
10638
10642
  closable: !0,
10639
- content: D,
10643
+ content: V,
10640
10644
  action: $
10641
10645
  }]), l(_);
10642
10646
  }
10643
10647
  async function v({
10644
10648
  relateData: b,
10645
- fields: D,
10649
+ fields: V,
10646
10650
  values: _,
10647
10651
  action_id: $,
10648
10652
  action_type: w
@@ -10658,23 +10662,23 @@ function qd(e, t) {
10658
10662
  } = b, [M, I] = L[0], k = {
10659
10663
  id: M,
10660
10664
  type: I
10661
- }, B = gt({
10665
+ }, B = yt({
10662
10666
  context: F,
10663
10667
  values: {
10664
10668
  ..._,
10665
10669
  ...i
10666
10670
  },
10667
- fields: D
10671
+ fields: V
10668
10672
  }), j = S ? await H.getHandler().evalDomain({
10669
10673
  domain: S,
10670
- values: kt({
10671
- fields: D,
10674
+ values: Rt({
10675
+ fields: V,
10672
10676
  values: {
10673
10677
  ..._,
10674
10678
  ...i
10675
10679
  }
10676
10680
  }),
10677
- fields: D,
10681
+ fields: V,
10678
10682
  context: {
10679
10683
  ...o,
10680
10684
  ...B
@@ -10698,14 +10702,14 @@ function qd(e, t) {
10698
10702
  }
10699
10703
  async function y(b) {
10700
10704
  const {
10701
- action_id: D,
10705
+ action_id: V,
10702
10706
  action_type: _,
10703
10707
  res_id: $,
10704
10708
  view_id: w
10705
- } = b, C = `${_},${D}`, F = await H.getHandler().getActionData({
10709
+ } = b, C = `${_},${V}`, F = await H.getHandler().getActionData({
10706
10710
  action: C,
10707
10711
  context: o
10708
- }), S = gt({
10712
+ }), S = yt({
10709
10713
  context: F.context,
10710
10714
  values: i,
10711
10715
  fields: {}
@@ -10766,16 +10770,16 @@ function qd(e, t) {
10766
10770
  title: A,
10767
10771
  target: M,
10768
10772
  initialView: z,
10769
- action_id: D,
10773
+ action_id: V,
10770
10774
  action_type: _,
10771
10775
  res_id: $,
10772
10776
  treeExpandable: B,
10773
10777
  limit: k
10774
10778
  });
10775
10779
  }
10776
- async function V({
10780
+ async function D({
10777
10781
  model: b,
10778
- values: D,
10782
+ values: V,
10779
10783
  forced_values: _,
10780
10784
  initialViewType: $,
10781
10785
  res_id: w,
@@ -10784,7 +10788,7 @@ function qd(e, t) {
10784
10788
  const F = await H.getHandler().getActionStringForModel(b);
10785
10789
  await h({
10786
10790
  action: F,
10787
- values: D,
10791
+ values: V,
10788
10792
  forced_values: _,
10789
10793
  initialViewType: $,
10790
10794
  res_id: w,
@@ -10793,7 +10797,7 @@ function qd(e, t) {
10793
10797
  }
10794
10798
  async function O({
10795
10799
  domain: b,
10796
- context: D,
10800
+ context: V,
10797
10801
  model: _,
10798
10802
  views: $,
10799
10803
  title: w,
@@ -10815,7 +10819,7 @@ function qd(e, t) {
10815
10819
  id: F.type === "form" ? F.id : void 0,
10816
10820
  context: {
10817
10821
  ...o,
10818
- ...D
10822
+ ...V
10819
10823
  }
10820
10824
  });
10821
10825
  c.current.openActionModal({
@@ -10824,7 +10828,7 @@ function qd(e, t) {
10824
10828
  formView: B,
10825
10829
  context: {
10826
10830
  ...o,
10827
- ...D
10831
+ ...V
10828
10832
  },
10829
10833
  actionData: {
10830
10834
  action_id: S,
@@ -10853,7 +10857,7 @@ function qd(e, t) {
10853
10857
  model: _,
10854
10858
  context: {
10855
10859
  ...o,
10856
- ...D
10860
+ ...V
10857
10861
  },
10858
10862
  domain: b,
10859
10863
  setCanWeClose: p,
@@ -10874,12 +10878,12 @@ function qd(e, t) {
10874
10878
  openShortcut: y,
10875
10879
  openAction: O,
10876
10880
  openRelate: v,
10877
- openDefaultActionForModel: V,
10881
+ openDefaultActionForModel: D,
10878
10882
  tabs: d,
10879
10883
  activeKey: a,
10880
10884
  onRemoveTab: async (b) => {
10881
- const D = f.current.get(b);
10882
- (await (D == null ? void 0 : D()) || a === "welcome") && m(b);
10885
+ const V = f.current.get(b);
10886
+ (await (V == null ? void 0 : V()) || a === "welcome") && m(b);
10883
10887
  },
10884
10888
  onChangeTab: (b) => {
10885
10889
  l(b);
@@ -10892,7 +10896,7 @@ function qd(e, t) {
10892
10896
  })
10893
10897
  });
10894
10898
  }
10895
- const Tu = yt(qd), {
10899
+ const Tu = vt(qd), {
10896
10900
  useToken: zd
10897
10901
  } = Me;
10898
10902
  function Jd(e) {
@@ -10966,7 +10970,7 @@ function Fu() {
10966
10970
  onRemoveTab: i,
10967
10971
  onChangeTab: o
10968
10972
  } = e || {};
10969
- return /* @__PURE__ */ n(X, {
10973
+ return /* @__PURE__ */ n(Z, {
10970
10974
  children: r.map((s) => /* @__PURE__ */ n(Jd, {
10971
10975
  tabKey: s.key,
10972
10976
  label: s.title,
@@ -10996,7 +11000,7 @@ function Ou() {
10996
11000
  } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(Xd, {
10997
11001
  tab: i
10998
11002
  }, i.key))) || null;
10999
- return /* @__PURE__ */ n(X, {
11003
+ return /* @__PURE__ */ n(Z, {
11000
11004
  children: r
11001
11005
  });
11002
11006
  }
@@ -11013,10 +11017,10 @@ const {
11013
11017
  } = K(ge) || {}, {
11014
11018
  token: v
11015
11019
  } = Qd(), y = K(at), {
11016
- openShortcut: V,
11020
+ openShortcut: D,
11017
11021
  tabs: O,
11018
11022
  activeKey: b,
11019
- currentView: D,
11023
+ currentView: V,
11020
11024
  currentId: _,
11021
11025
  openDefaultActionForModel: $
11022
11026
  } = y || {};
@@ -11024,7 +11028,7 @@ const {
11024
11028
  w();
11025
11029
  }, []), pe(() => {
11026
11030
  S();
11027
- }, [O, b, D, _]);
11031
+ }, [O, b, V, _]);
11028
11032
  async function w() {
11029
11033
  try {
11030
11034
  m(!0);
@@ -11040,13 +11044,13 @@ const {
11040
11044
  const {
11041
11045
  key: I
11042
11046
  } = M, k = u.find((B) => B.id === Number(I));
11043
- (k == null ? void 0 : k.action_type) !== "ir.actions.wizard" && (k && V(k), d(!1));
11047
+ (k == null ? void 0 : k.action_type) !== "ir.actions.wizard" && (k && D(k), d(!1));
11044
11048
  }
11045
11049
  function F(M) {
11046
11050
  M && w(), d(M);
11047
11051
  }
11048
11052
  async function S() {
11049
- if (!D)
11053
+ if (!V)
11050
11054
  return;
11051
11055
  const M = O.find((W) => W.key === b), {
11052
11056
  id: I,
@@ -11056,9 +11060,9 @@ const {
11056
11060
  a(!1);
11057
11061
  return;
11058
11062
  }
11059
- const B = D.view_id;
11063
+ const B = V.view_id;
11060
11064
  let j = !1;
11061
- D.type === "form" && (j = _ || !1);
11065
+ V.type === "form" && (j = _ || !1);
11062
11066
  const U = await r({
11063
11067
  action_id: I,
11064
11068
  action_type: k,
@@ -11106,7 +11110,7 @@ const {
11106
11110
  style: {
11107
11111
  padding: "1rem"
11108
11112
  }
11109
- }) : u.length > 0 ? /* @__PURE__ */ n(X, {
11113
+ }) : u.length > 0 ? /* @__PURE__ */ n(Z, {
11110
11114
  children: u.map((M) => /* @__PURE__ */ n($e.Item, {
11111
11115
  children: /* @__PURE__ */ n(R, {
11112
11116
  title: M.name,
@@ -11144,18 +11148,18 @@ const {
11144
11148
  if (s && p)
11145
11149
  await o(p);
11146
11150
  else {
11147
- if (!D)
11151
+ if (!V)
11148
11152
  return;
11149
11153
  const M = O.find((U) => U.key === b), {
11150
11154
  id: I,
11151
11155
  type: k
11152
- } = (M == null ? void 0 : M.action) || {}, B = D.view_id;
11156
+ } = (M == null ? void 0 : M.action) || {}, B = V.view_id;
11153
11157
  let j = !1;
11154
11158
  if (!I || !k) {
11155
11159
  a(!1);
11156
11160
  return;
11157
11161
  }
11158
- D.type === "form" && (j = _ || !1), await i({
11162
+ V.type === "form" && (j = _ || !1), await i({
11159
11163
  action_id: I,
11160
11164
  action_type: k,
11161
11165
  view_id: B,
@@ -11164,7 +11168,7 @@ const {
11164
11168
  }
11165
11169
  await w(), a(!s);
11166
11170
  }
11167
- return /* @__PURE__ */ P(X, {
11171
+ return /* @__PURE__ */ P(Z, {
11168
11172
  children: [/* @__PURE__ */ n(Ie, {
11169
11173
  type: s ? "primary" : "default",
11170
11174
  icon: s ? /* @__PURE__ */ n(Nr, {
@@ -11188,7 +11192,7 @@ const {
11188
11192
  borderTopLeftRadius: 0,
11189
11193
  borderBottomLeftRadius: 0
11190
11194
  },
11191
- icon: /* @__PURE__ */ n(Vt, {
11195
+ icon: /* @__PURE__ */ n(At, {
11192
11196
  style: {
11193
11197
  fontSize: "0.5em"
11194
11198
  }