@gisce/react-ooui 1.2.11 → 1.2.12-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- import ze, { useContext as W, useState as T, useEffect as pe, useRef as ue, useCallback as Ee, forwardRef as vt, useImperativeHandle as wt } from "react";
2
- import { Tooltip as mt, theme as Pe, Typography as an, Form as nt, Row as Se, Col as le, Modal as We, Button as Oe, Dropdown as Bt, Menu as He, Spin as $e, Divider as ln, Space as Ke, Input as et, Select as bt, Checkbox as Nt, Alert as Je, Timeline as tr, Statistic as Xo, Card as Qo, Tag as Ir, message as xn, DatePicker as Mn, TimePicker as Dr, InputNumber as En, Progress as ei, Avatar as ti, Pagination as ni, Tabs as Vr, Popover as ri, Radio as nr, Switch as oi, Steps as rr, Layout as ii } from "antd";
3
- import { Label as Dt, Field as _n, Tree as Ar, Reference as si, Selection as $n, Many2one as Rr, Boolean as ai, Container as li, parseContext as yt, Form as kr, Integer as In, SearchFieldTypes as ut, SearchFilter as ci, transformDomainForChildWidget as Mr, graphProcessor as Er, parseGraph as Ln, graphFieldUtils as di } from "@gisce/ooui";
1
+ import ze, { useContext as W, useState as T, useEffect as pe, useRef as ue, useCallback as $e, forwardRef as wt, useImperativeHandle as bt } from "react";
2
+ import { Tooltip as mt, theme as Pe, Typography as an, Form as nt, Row as Se, Col as le, Modal as We, Button as Oe, Dropdown as Bt, Menu as He, Spin as ke, Divider as ln, Space as Ke, Input as et, Select as xt, Checkbox as Nt, Alert as Je, Timeline as tr, Statistic as Xo, Card as Qo, Tag as Ir, message as xn, DatePicker as Mn, TimePicker as Dr, InputNumber as En, Progress as ei, Avatar as ti, Pagination as ni, Tabs as Vr, Popover as ri, Radio as nr, Switch as oi, Steps as rr, Layout as ii } from "antd";
3
+ import { Label as Vt, Field as _n, Tree as Ar, Reference as si, Selection as $n, Many2one as Rr, Boolean as ai, Container as li, parseContext as vt, Form as kr, Integer as In, SearchFieldTypes as ut, SearchFilter as ci, transformDomainForChildWidget as Mr, graphProcessor as Er, parseGraph as Ln, graphFieldUtils as di } from "@gisce/ooui";
4
4
  import * as or from "@ant-design/icons";
5
- import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as ht, LoadingOutlined as tt, DownOutlined as Vt, WarningOutlined as Nr, CloseOutlined as jt, CheckOutlined as At, TranslationOutlined as Pr, FolderOpenOutlined as Nn, DownloadOutlined as Pn, ClearOutlined as Hn, StarFilled as Hr, StarOutlined as Br, UpOutlined as ui, SearchOutlined as Bn, RightCircleOutlined as fi, ThunderboltOutlined as jn, PrinterOutlined as Kn, EnterOutlined as jr, PlusSquareOutlined as mi, MinusSquareOutlined as hi, FileAddOutlined as cn, AlignLeftOutlined as pi, ApiOutlined as gi, DeleteOutlined as Yn, LeftOutlined as Kr, RightOutlined as Yr, EyeOutlined as yi, FormOutlined as Pt, TableOutlined as Wn, AreaChartOutlined as vi, CalendarOutlined as wi, LinkOutlined as Wr, SaveOutlined as bi, CopyOutlined as Un, InfoCircleOutlined as Ur, ReloadOutlined as dn, EditOutlined as Gr, FilterOutlined as qr, CloseCircleFilled as xi, BorderOuterOutlined as Ci, SettingOutlined as Si, ExportOutlined as Ti } from "@ant-design/icons";
5
+ import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as ht, LoadingOutlined as tt, DownOutlined as At, WarningOutlined as Nr, CloseOutlined as jt, CheckOutlined as Rt, TranslationOutlined as Pr, FolderOpenOutlined as Nn, DownloadOutlined as Pn, ClearOutlined as Hn, StarFilled as Hr, StarOutlined as Br, UpOutlined as ui, SearchOutlined as Bn, RightCircleOutlined as fi, ThunderboltOutlined as jn, PrinterOutlined as Kn, EnterOutlined as jr, PlusSquareOutlined as mi, MinusSquareOutlined as hi, FileAddOutlined as cn, AlignLeftOutlined as pi, ApiOutlined as gi, DeleteOutlined as Yn, LeftOutlined as Kr, RightOutlined as Yr, EyeOutlined as yi, FormOutlined as Pt, TableOutlined as Wn, AreaChartOutlined as vi, CalendarOutlined as wi, LinkOutlined as Wr, SaveOutlined as bi, CopyOutlined as Un, InfoCircleOutlined as Ur, ReloadOutlined as dn, EditOutlined as Gr, FilterOutlined as qr, CloseCircleFilled as xi, BorderOuterOutlined as Ci, SettingOutlined as Si, ExportOutlined as Ti } from "@ant-design/icons";
6
6
  import { Interweave as Gn } from "interweave";
7
- import { jsxs as H, jsx as n, Fragment as ee } from "react/jsx-runtime";
7
+ import { jsxs as P, jsx as n, Fragment as ee } from "react/jsx-runtime";
8
8
  import * as ir from "@tabler/icons-react";
9
9
  import Fi from "antd/lib/input/TextArea";
10
10
  import Kt from "styled-components";
11
11
  import qn from "react-measure";
12
12
  import Dn from "antd/lib/typography/Title";
13
13
  import { Line as Oi, Column as _i, Pie as Ii } from "@ant-design/plots";
14
- import xt from "use-deep-compare-effect";
14
+ import Ct from "use-deep-compare-effect";
15
15
  import { Table as Di } from "@gisce/react-formiga-table";
16
16
  import { fileTypeFromBuffer as Vi } from "file-type-buffer-browser";
17
17
  import { isPresetStatusColor as Ai } from "antd/lib/_util/colors";
@@ -48,7 +48,7 @@ const {
48
48
  } = t, f = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), {
49
49
  token: v
50
50
  } = Yi(), p = l === void 0 ? ji : Ki;
51
- return /* @__PURE__ */ H("div", {
51
+ return /* @__PURE__ */ P("div", {
52
52
  className: `flex flex-row items-center pb-1 pt-1 ${Wi[m]}`,
53
53
  children: [s && /* @__PURE__ */ n(mt, {
54
54
  title: s,
@@ -382,7 +382,7 @@ function ve({
382
382
  if (!o)
383
383
  return p();
384
384
  const h = /* @__PURE__ */ n(un, {
385
- ooui: new Dt({
385
+ ooui: new Vt({
386
386
  name: c + "_label",
387
387
  string: f,
388
388
  help: d,
@@ -390,7 +390,7 @@ function ve({
390
390
  }),
391
391
  align: s
392
392
  });
393
- return r === "horizontal" ? (() => /* @__PURE__ */ H(Se, {
393
+ return r === "horizontal" ? (() => /* @__PURE__ */ P(Se, {
394
394
  align: "middle",
395
395
  className: "pb-1 pt-1",
396
396
  children: [/* @__PURE__ */ n(le, {
@@ -404,7 +404,7 @@ function ve({
404
404
  flex: "auto",
405
405
  children: p()
406
406
  })]
407
- }))() : (() => /* @__PURE__ */ H(ee, {
407
+ }))() : (() => /* @__PURE__ */ P(ee, {
408
408
  children: [h, p()]
409
409
  }))();
410
410
  }
@@ -701,10 +701,10 @@ const Jr = (e) => {
701
701
  ooui: new _n({
702
702
  ooui: t
703
703
  }),
704
- children: /* @__PURE__ */ H(Bt.Button, {
704
+ children: /* @__PURE__ */ P(Bt.Button, {
705
705
  disabled: !a || v,
706
706
  onClick: V,
707
- icon: /* @__PURE__ */ n(Vt, {}),
707
+ icon: /* @__PURE__ */ n(At, {}),
708
708
  type: f ? "primary" : void 0,
709
709
  overlay: /* @__PURE__ */ n(ts, {
710
710
  ooui: i,
@@ -897,7 +897,7 @@ const Zr = (e) => {
897
897
  y.current = b, g(b);
898
898
  }
899
899
  function V() {
900
- return c.map((x, b) => /* @__PURE__ */ H(Se, {
900
+ return c.map((x, b) => /* @__PURE__ */ P(Se, {
901
901
  style: {
902
902
  paddingBottom: 20
903
903
  },
@@ -944,17 +944,17 @@ const Zr = (e) => {
944
944
  p(!1), a();
945
945
  }
946
946
  function E() {
947
- return d ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ H(ee, {
947
+ return d ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ P(ee, {
948
948
  children: [V(), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(Se, {
949
949
  justify: "end",
950
- children: /* @__PURE__ */ H(Ke, {
950
+ children: /* @__PURE__ */ P(Ke, {
951
951
  children: [/* @__PURE__ */ n(Oe, {
952
952
  icon: /* @__PURE__ */ n(jt, {}),
953
953
  onClick: r,
954
954
  disabled: v,
955
955
  children: u("cancel")
956
956
  }), /* @__PURE__ */ n(Oe, {
957
- icon: v ? /* @__PURE__ */ n(tt, {}) : /* @__PURE__ */ n(At, {}),
957
+ icon: v ? /* @__PURE__ */ n(tt, {}) : /* @__PURE__ */ n(Rt, {}),
958
958
  disabled: v,
959
959
  onClick: I,
960
960
  style: {
@@ -1053,7 +1053,7 @@ const {
1053
1053
  } = o || {}, [f, d] = T(!1), {
1054
1054
  t: m
1055
1055
  } = W(we);
1056
- return s ? /* @__PURE__ */ H(ee, {
1056
+ return s ? /* @__PURE__ */ P(ee, {
1057
1057
  children: [/* @__PURE__ */ n("div", {
1058
1058
  onClick: () => {
1059
1059
  if (u != null && u()) {
@@ -1072,6 +1072,7 @@ const {
1072
1072
  onBlur: c,
1073
1073
  style: {
1074
1074
  cursor: "pointer",
1075
+ pointerEvents: "none",
1075
1076
  ...r
1076
1077
  }
1077
1078
  })
@@ -1088,7 +1089,7 @@ const {
1088
1089
  }
1089
1090
  })]
1090
1091
  }) : /* @__PURE__ */ n(ee, {
1091
- children: /* @__PURE__ */ H(Se, {
1092
+ children: /* @__PURE__ */ P(Se, {
1092
1093
  gutter: 8,
1093
1094
  wrap: !1,
1094
1095
  children: [/* @__PURE__ */ n(le, {
@@ -1120,7 +1121,7 @@ const {
1120
1121
  defaultSeed: cs
1121
1122
  } = Pe, ds = ls(cs), {
1122
1123
  Option: us
1123
- } = bt, eo = (e) => {
1124
+ } = xt, eo = (e) => {
1124
1125
  const {
1125
1126
  ooui: t
1126
1127
  } = e, {
@@ -1150,7 +1151,7 @@ const {
1150
1151
  children: m
1151
1152
  }, d);
1152
1153
  });
1153
- return /* @__PURE__ */ n(a && !s ? fs : bt, {
1154
+ return /* @__PURE__ */ n(a && !s ? fs : xt, {
1154
1155
  disabled: s,
1155
1156
  onChange: r,
1156
1157
  value: i,
@@ -1159,7 +1160,7 @@ const {
1159
1160
  showSearch: !0,
1160
1161
  children: u
1161
1162
  });
1162
- }, fs = Kt(bt)`
1163
+ }, fs = Kt(xt)`
1163
1164
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
1164
1165
  background-color: ${ds.colorPrimaryBg};
1165
1166
  }
@@ -1222,16 +1223,16 @@ var Ds = Is, Vs = Ds, As = /^\s+/;
1222
1223
  function Rs(e) {
1223
1224
  return e && e.slice(0, Vs(e) + 1).replace(As, "");
1224
1225
  }
1225
- var ks = Rs, Ms = ro, Es = Ms.Symbol, oo = Es, dr = oo, io = Object.prototype, $s = io.hasOwnProperty, Ls = io.toString, Et = dr ? dr.toStringTag : void 0;
1226
+ var ks = Rs, Ms = ro, Es = Ms.Symbol, oo = Es, dr = oo, io = Object.prototype, $s = io.hasOwnProperty, Ls = io.toString, $t = dr ? dr.toStringTag : void 0;
1226
1227
  function Ns(e) {
1227
- var t = $s.call(e, Et), r = e[Et];
1228
+ var t = $s.call(e, $t), r = e[$t];
1228
1229
  try {
1229
- e[Et] = void 0;
1230
+ e[$t] = void 0;
1230
1231
  var i = !0;
1231
1232
  } catch {
1232
1233
  }
1233
1234
  var o = Ls.call(e);
1234
- return i && (t ? e[Et] = r : delete e[Et]), o;
1235
+ return i && (t ? e[$t] = r : delete e[$t]), o;
1235
1236
  }
1236
1237
  var Ps = Ns, Hs = Object.prototype, Bs = Hs.toString;
1237
1238
  function js(e) {
@@ -1318,7 +1319,7 @@ function ya(e) {
1318
1319
  const r = Buffer.from(e, "base64").length / 1e3;
1319
1320
  return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
1320
1321
  }
1321
- async function It(e) {
1322
+ async function Dt(e) {
1322
1323
  const t = await Vi(
1323
1324
  Buffer.from(e, "base64")
1324
1325
  );
@@ -1364,7 +1365,7 @@ const va = (e) => {
1364
1365
  i == null || i(d);
1365
1366
  };
1366
1367
  async function u() {
1367
- const d = await It(r), m = `data:${d == null ? void 0 : d.mime};base64,${r}`, v = document.createElement("a");
1368
+ const d = await Dt(r), m = `data:${d == null ? void 0 : d.mime};base64,${r}`, v = document.createElement("a");
1368
1369
  v.href = m, v.download = `image.${d == null ? void 0 : d.ext}`, v.click();
1369
1370
  }
1370
1371
  async function c(d) {
@@ -1375,8 +1376,8 @@ const va = (e) => {
1375
1376
  function f() {
1376
1377
  l(void 0);
1377
1378
  }
1378
- return /* @__PURE__ */ H(ee, {
1379
- children: [/* @__PURE__ */ H(Se, {
1379
+ return /* @__PURE__ */ P(ee, {
1380
+ children: [/* @__PURE__ */ P(Se, {
1380
1381
  gutter: 8,
1381
1382
  wrap: !1,
1382
1383
  justify: "center",
@@ -1400,7 +1401,7 @@ const va = (e) => {
1400
1401
  wrap: !1,
1401
1402
  justify: "center",
1402
1403
  className: "pt-5",
1403
- children: /* @__PURE__ */ H(Ke, {
1404
+ children: /* @__PURE__ */ P(Ke, {
1404
1405
  children: [/* @__PURE__ */ n(qe, {
1405
1406
  tooltip: a("uploadNewImage"),
1406
1407
  icon: /* @__PURE__ */ n(Nn, {}),
@@ -1451,7 +1452,7 @@ const va = (e) => {
1451
1452
  r && r(i);
1452
1453
  }
1453
1454
  });
1454
- }, Ft = (e) => {
1455
+ }, Ot = (e) => {
1455
1456
  const t = e.arch, r = e.fields, i = new Ar(r);
1456
1457
  return i.parse(t), i;
1457
1458
  }, Ca = (e, t, r) => e.columns.map((o) => {
@@ -1491,7 +1492,7 @@ function Qt(e) {
1491
1492
  t[r.id] = r.colors;
1492
1493
  }), t;
1493
1494
  }
1494
- function Ot({
1495
+ function _t({
1495
1496
  resultsToSort: e,
1496
1497
  sorter: t,
1497
1498
  fields: r
@@ -1522,7 +1523,7 @@ const zn = async (e) => {
1522
1523
  };
1523
1524
  let f = [], d;
1524
1525
  if (a === "tree" && (o == null ? void 0 : o.arch)) {
1525
- const h = (p = Ft(o)) == null ? void 0 : p.colors, g = await B.getHandler().readEvalUiObjects({
1526
+ const h = (p = Ot(o)) == null ? void 0 : p.colors, g = await B.getHandler().readEvalUiObjects({
1526
1527
  model: r,
1527
1528
  ids: u,
1528
1529
  arch: o == null ? void 0 : o.arch,
@@ -1578,7 +1579,7 @@ const zn = async (e) => {
1578
1579
  } = t, [s, a] = T(!0), [l, u] = T(), [c, f] = T(/* @__PURE__ */ new Map()), d = W(Le), {
1579
1580
  getContext: m
1580
1581
  } = d || {};
1581
- xt(() => {
1582
+ Ct(() => {
1582
1583
  p();
1583
1584
  }, [t]);
1584
1585
  const v = async (h) => o && o[h] ? o[h] : await B.getHandler().getView({
@@ -1599,7 +1600,7 @@ const zn = async (e) => {
1599
1600
  a(!1);
1600
1601
  }
1601
1602
  };
1602
- return s ? /* @__PURE__ */ n($e, {}) : l ? /* @__PURE__ */ n(Je, {
1603
+ return s ? /* @__PURE__ */ n(ke, {}) : l ? /* @__PURE__ */ n(Je, {
1603
1604
  className: "mt-10",
1604
1605
  message: l,
1605
1606
  type: "error",
@@ -1629,7 +1630,7 @@ const zn = async (e) => {
1629
1630
  } = i, _ = s.filter((x) => x.values), w = W(Le), {
1630
1631
  getContext: V
1631
1632
  } = w || {};
1632
- xt(() => {
1633
+ Ct(() => {
1633
1634
  E();
1634
1635
  }, [s]);
1635
1636
  const I = (x) => {
@@ -1668,7 +1669,7 @@ const zn = async (e) => {
1668
1669
  message: u,
1669
1670
  type: "error",
1670
1671
  banner: !0
1671
- }) : a ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ H(ee, {
1672
+ }) : a ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ P(ee, {
1672
1673
  children: [/* @__PURE__ */ n(tr, {
1673
1674
  style: {
1674
1675
  padding: "1rem"
@@ -1676,7 +1677,7 @@ const zn = async (e) => {
1676
1677
  children: _.map((x, b) => {
1677
1678
  var O, C;
1678
1679
  return /* @__PURE__ */ n("div", {
1679
- children: /* @__PURE__ */ H(tr.Item, {
1680
+ children: /* @__PURE__ */ P(tr.Item, {
1680
1681
  children: [/* @__PURE__ */ n("div", {
1681
1682
  style: {
1682
1683
  display: "inline-block",
@@ -1740,8 +1741,8 @@ const zn = async (e) => {
1740
1741
  } = _a(), {
1741
1742
  ooui: r,
1742
1743
  value: i
1743
- } = e, o = /* @__PURE__ */ H(ee, {
1744
- children: [/* @__PURE__ */ H("span", {
1744
+ } = e, o = /* @__PURE__ */ P(ee, {
1745
+ children: [/* @__PURE__ */ P("span", {
1745
1746
  children: [r.label, " "]
1746
1747
  }), r.tooltip && /* @__PURE__ */ n(mt, {
1747
1748
  title: r.tooltip,
@@ -1778,7 +1779,7 @@ const zn = async (e) => {
1778
1779
  } else
1779
1780
  r[i] = e[i];
1780
1781
  }), r;
1781
- }, Tt = (e, t) => Va(e, t), Sn = ({
1782
+ }, Ft = (e, t) => Va(e, t), Sn = ({
1782
1783
  source: e,
1783
1784
  target: t,
1784
1785
  fields: r
@@ -1873,7 +1874,7 @@ const zn = async (e) => {
1873
1874
  function gr(e, t, r) {
1874
1875
  return r.indexOf(e) === t;
1875
1876
  }
1876
- const Rt = ({
1877
+ const kt = ({
1877
1878
  values: e,
1878
1879
  fields: t
1879
1880
  }) => {
@@ -1944,7 +1945,7 @@ const Rt = ({
1944
1945
  } = r, g = W(Le), {
1945
1946
  getContext: y
1946
1947
  } = g || {};
1947
- xt(() => {
1948
+ Ct(() => {
1948
1949
  _();
1949
1950
  }, [o]);
1950
1951
  const F = (I) => {
@@ -1959,7 +1960,7 @@ const Rt = ({
1959
1960
  if (p && (I = [["id", "in", s]]), r.domain) {
1960
1961
  const b = await B.getHandler().evalDomain({
1961
1962
  domain: r.domain,
1962
- values: Rt({
1963
+ values: kt({
1963
1964
  fields: g == null ? void 0 : g.getFields(),
1964
1965
  values: g.getPlainValues()
1965
1966
  }),
@@ -2033,7 +2034,7 @@ const Rt = ({
2033
2034
  }) : /* @__PURE__ */ n(ee, {
2034
2035
  children: /* @__PURE__ */ n("div", {
2035
2036
  className: "flex flex-row",
2036
- children: /* @__PURE__ */ n(bt, {
2037
+ children: /* @__PURE__ */ n(xt, {
2037
2038
  mode: "multiple",
2038
2039
  value: a.length ? s : [],
2039
2040
  tagRender: V,
@@ -2154,14 +2155,14 @@ const Rt = ({
2154
2155
  if (i.push(a), s(l)) {
2155
2156
  const u = r - o;
2156
2157
  for (let c = 0; c < u; c += 1)
2157
- i.push(new Dt({ string: "" }));
2158
+ i.push(new Vt({ string: "" }));
2158
2159
  }
2159
2160
  }), i;
2160
2161
  }, ja = ({
2161
2162
  row: e,
2162
2163
  numberOfColumns: t
2163
2164
  }) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), Ka = (e, t) => {
2164
- const r = e.map((i) => i instanceof Dt && i.fieldForLabel || i instanceof li ? "auto" : "1fr");
2165
+ const r = e.map((i) => i instanceof Vt && i.fieldForLabel || i instanceof li ? "auto" : "1fr");
2165
2166
  if (r.length < t) {
2166
2167
  const i = t - r.length;
2167
2168
  for (let o = 0; o < i; o++)
@@ -2197,7 +2198,7 @@ const Rt = ({
2197
2198
  row: p,
2198
2199
  numberOfColumns: o,
2199
2200
  mustFillWithEmpties: r
2200
- }), l = l.concat(h)), h.map((g) => (g instanceof Dt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2201
+ }), l = l.concat(h)), h.map((g) => (g instanceof Vt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2201
2202
  style: {
2202
2203
  ...Ha({
2203
2204
  item: g,
@@ -2364,9 +2365,9 @@ const Rt = ({
2364
2365
  setLimit: V,
2365
2366
  searchParams: I = [],
2366
2367
  setSearchValues: E
2367
- } = e, [x, b] = T(!1), [O, C] = T(!1), [$, R] = T(), [S, A] = T(1), [M, D] = T(0), [N, k] = T(), [j, q] = T([]), [K, J] = T(void 0), U = ue(w || Ht), L = ue([]), P = Ee((de) => {
2368
+ } = e, [x, b] = T(!1), [O, C] = T(!1), [$, R] = T(), [S, A] = T(1), [M, D] = T(0), [N, k] = T(), [j, q] = T([]), [K, J] = T(void 0), U = ue(w || Ht), L = ue([]), H = $e((de) => {
2368
2369
  g == null || g([...de]), q([...de]);
2369
- }, []), z = Ee(() => y || j, [y, j]), oe = Ee(async () => {
2370
+ }, []), z = $e(() => y || j, [y, j]), oe = $e(async () => {
2370
2371
  const de = await B.getHandler().nameSearch({
2371
2372
  model: t,
2372
2373
  payload: l,
@@ -2375,7 +2376,7 @@ const Rt = ({
2375
2376
  context: c
2376
2377
  });
2377
2378
  if (k(de.length), f == null || f(de.length), de.length > 0) {
2378
- const se = de.map((Be) => Be == null ? void 0 : Be[0]), { colors: be } = Ft(d), Re = await B.getHandler().readEvalUiObjects({
2379
+ const se = de.map((Be) => Be == null ? void 0 : Be[0]), { colors: be } = Ot(d), Re = await B.getHandler().readEvalUiObjects({
2379
2380
  model: t,
2380
2381
  ids: se,
2381
2382
  arch: d == null ? void 0 : d.arch,
@@ -2386,17 +2387,17 @@ const Rt = ({
2386
2387
  }
2387
2388
  }), Te = Re[0];
2388
2389
  L.current = [...Te], J(Qt(Re[1]));
2389
- const Me = Te.map((Be) => Be.id), Ze = v !== void 0 ? Ot({
2390
+ const Ee = Te.map((Be) => Be.id), Ze = v !== void 0 ? _t({
2390
2391
  resultsToSort: Te,
2391
2392
  sorter: v,
2392
2393
  fields: { ...d.fields, ...m.fields }
2393
2394
  }) : [...L.current];
2394
- P(Ze), Me.length > 0 ? h == null || h(0) : h == null || h(void 0);
2395
+ H(Ze), Ee.length > 0 ? h == null || h(0) : h == null || h(void 0);
2395
2396
  } else
2396
- P([]), h == null || h(void 0);
2397
+ H([]), h == null || h(void 0);
2397
2398
  b(!1), u.current = !0;
2398
2399
  }, [
2399
- P,
2400
+ H,
2400
2401
  u,
2401
2402
  l,
2402
2403
  t,
@@ -2407,9 +2408,9 @@ const Rt = ({
2407
2408
  v,
2408
2409
  h,
2409
2410
  f
2410
- ]), ce = Ee(
2411
+ ]), ce = $e(
2411
2412
  async (de) => {
2412
- const { params: se, newOffset: be } = de || {}, Re = hn(se || I, F), { colors: Te } = Ft(d), { totalItems: Me, results: Ze, attrsEvaluated: Be } = await B.getHandler().searchForTree({
2413
+ const { params: se, newOffset: be } = de || {}, Re = hn(se || I, F), { colors: Te } = Ot(d), { totalItems: Ee, results: Ze, attrsEvaluated: Be } = await B.getHandler().searchForTree({
2413
2414
  params: Re,
2414
2415
  limit: U.current,
2415
2416
  offset: be || M,
@@ -2419,12 +2420,12 @@ const Rt = ({
2419
2420
  attrs: Te && { colors: Te }
2420
2421
  });
2421
2422
  J(Qt(Be)), L.current = [...Ze];
2422
- const te = v !== void 0 ? Ot({
2423
+ const te = v !== void 0 ? _t({
2423
2424
  resultsToSort: Ze,
2424
2425
  sorter: v,
2425
2426
  fields: { ...d.fields, ...m.fields }
2426
2427
  }) : [...L.current];
2427
- if (P(te), y && te.length > 0) {
2428
+ if (H(te), y && te.length > 0) {
2428
2429
  const Ne = te.findIndex(
2429
2430
  (ye) => _ === ye.id
2430
2431
  );
@@ -2432,13 +2433,13 @@ const Rt = ({
2432
2433
  } else
2433
2434
  h == null || h(void 0);
2434
2435
  b(!1);
2435
- const Ie = await Me;
2436
+ const Ie = await Ee;
2436
2437
  k(Ie), f == null || f(Ie);
2437
2438
  },
2438
2439
  [
2439
2440
  h,
2440
2441
  y,
2441
- P,
2442
+ H,
2442
2443
  _,
2443
2444
  t,
2444
2445
  c,
@@ -2451,7 +2452,7 @@ const Rt = ({
2451
2452
  M,
2452
2453
  I
2453
2454
  ]
2454
- ), Z = Ee(
2455
+ ), Z = $e(
2455
2456
  async (de) => {
2456
2457
  try {
2457
2458
  b(!0), a == null || a(!0), l && !u.current ? await oe() : await ce(de);
@@ -2474,7 +2475,7 @@ const Rt = ({
2474
2475
  u,
2475
2476
  f,
2476
2477
  h,
2477
- P,
2478
+ H,
2478
2479
  R,
2479
2480
  C,
2480
2481
  b,
@@ -2482,18 +2483,20 @@ const Rt = ({
2482
2483
  v,
2483
2484
  d
2484
2485
  ]
2485
- ), X = Ee(
2486
+ ), X = $e(
2486
2487
  (de) => {
2488
+ if (JSON.stringify(de) === JSON.stringify(v))
2489
+ return;
2487
2490
  p == null || p(de);
2488
- const se = de !== void 0 ? Ot({
2491
+ const se = de !== void 0 ? _t({
2489
2492
  resultsToSort: z(),
2490
2493
  sorter: de,
2491
2494
  fields: { ...d.fields, ...m.fields }
2492
2495
  }) : [...L.current];
2493
- P(se);
2496
+ H(se);
2494
2497
  },
2495
- [p, z, d, m, P]
2496
- ), fe = Ee(
2498
+ [p, z, d, m, H]
2499
+ ), fe = $e(
2497
2500
  (de) => {
2498
2501
  const { params: se, searchValues: be, limit: Re, offset: Te } = de;
2499
2502
  x || (r == null || r(void 0), i == null || i([]), E == null || E(be), o == null || o(se), s == null || s(!1), C(!0), R(void 0), A(1), Re && (U.current = Re, V == null || V(Re)), Te && D(Te), Z({
@@ -2514,12 +2517,12 @@ const Rt = ({
2514
2517
  D,
2515
2518
  Z
2516
2519
  ]
2517
- ), xe = Ee(
2520
+ ), xe = $e(
2518
2521
  (de) => {
2519
2522
  b(!0), A(de), D((de - 1) * w);
2520
2523
  },
2521
2524
  [b, w, D, A]
2522
- ), ke = Ee(() => {
2525
+ ), Me = $e(() => {
2523
2526
  x || (r == null || r(void 0), o == null || o([]), E == null || E({}), R(void 0), D(0), A(1), V == null || V(w || Ht));
2524
2527
  }, [
2525
2528
  x,
@@ -2530,7 +2533,7 @@ const Rt = ({
2530
2533
  A,
2531
2534
  V,
2532
2535
  w
2533
- ]), _e = Ee(
2536
+ ]), _e = $e(
2534
2537
  async (de) => {
2535
2538
  const se = de[(d == null ? void 0 : d.field_parent) || "child_id"], be = await B.getHandler().readObjects({
2536
2539
  model: t,
@@ -2538,13 +2541,13 @@ const Rt = ({
2538
2541
  fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
2539
2542
  context: c
2540
2543
  });
2541
- return P([...z(), ...be]), ao(Ft(d), be);
2544
+ return H([...z(), ...be]), ao(Ot(d), be);
2542
2545
  },
2543
- [d, t, c, z, P]
2546
+ [d, t, c, z, H]
2544
2547
  );
2545
2548
  return {
2546
2549
  submit: fe,
2547
- clear: ke,
2550
+ clear: Me,
2548
2551
  fetchResults: Z,
2549
2552
  tableRefreshing: x,
2550
2553
  searchFilterLoading: O,
@@ -2586,7 +2589,7 @@ const Rt = ({
2586
2589
  setSearchTreeNameSearch: E,
2587
2590
  goToResourceId: x,
2588
2591
  limit: b
2589
- } = e, [O, C] = T(!1), [$, R] = T(!1), [S, A] = T(!1), [M, D] = T(!0), [N, k] = T(!0), [j, q] = T([]), [K, J] = T(!1), [U, L] = T([]), [P, z] = T(!1), [oe, ce] = T(!0), [Z, X] = T(), [fe, xe] = T({}), [ke, _e] = T(b !== void 0 ? b : Ht), [de, se] = T(i);
2592
+ } = e, [O, C] = T(!1), [$, R] = T(!1), [S, A] = T(!1), [M, D] = T(!0), [N, k] = T(!0), [j, q] = T([]), [K, J] = T(!1), [U, L] = T([]), [H, z] = T(!1), [oe, ce] = T(!0), [Z, X] = T(), [fe, xe] = T({}), [Me, _e] = T(b !== void 0 ? b : Ht), [de, se] = T(i);
2590
2593
  pe(() => {
2591
2594
  m && m.length > 0 && !v && (p == null || p(0), f == null || f(m[0].id));
2592
2595
  }, [m]), pe(() => {
@@ -2635,7 +2638,7 @@ const Rt = ({
2635
2638
  setDuplicatingItem: J,
2636
2639
  setSearchParams: L,
2637
2640
  searchParams: U,
2638
- searchVisible: P,
2641
+ searchVisible: H,
2639
2642
  setSearchVisible: z,
2640
2643
  sorter: g,
2641
2644
  setSorter: y,
@@ -2650,7 +2653,7 @@ const Rt = ({
2650
2653
  goToResourceId: x,
2651
2654
  searchValues: fe,
2652
2655
  setSearchValues: xe,
2653
- limit: ke,
2656
+ limit: Me,
2654
2657
  setLimit: _e,
2655
2658
  setTitle: se
2656
2659
  },
@@ -2685,7 +2688,7 @@ const Rt = ({
2685
2688
  },
2686
2689
  children: t
2687
2690
  });
2688
- }, kt = ze.createContext(null), wr = async (e) => {
2691
+ }, Mt = ze.createContext(null), wr = async (e) => {
2689
2692
  var t;
2690
2693
  for (let r = 0; r < e.length; r++)
2691
2694
  await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
@@ -2698,7 +2701,7 @@ const Rt = ({
2698
2701
  } = u || {}, f = ue([]), {
2699
2702
  t: d
2700
2703
  } = W(we);
2701
- wt(t, () => ({
2704
+ bt(t, () => ({
2702
2705
  openActionModal: w
2703
2706
  }));
2704
2707
  const [m, v] = T(!1), [p, h] = T({
@@ -2725,7 +2728,7 @@ const Rt = ({
2725
2728
  ids: D
2726
2729
  } = S || {};
2727
2730
  let N = D || [];
2728
- const k = typeof $ == "string" ? yt({
2731
+ const k = typeof $ == "string" ? vt({
2729
2732
  context: $,
2730
2733
  fields: b,
2731
2734
  values: O
@@ -2755,7 +2758,7 @@ const Rt = ({
2755
2758
  id: E
2756
2759
  }), x.state && s.current === !0) {
2757
2760
  s.current = !1, clearInterval(o.current), l(!1);
2758
- const b = await It(x.result);
2761
+ const b = await Dt(x.result);
2759
2762
  mn(x.result, b.mime);
2760
2763
  }
2761
2764
  } catch (b) {
@@ -2798,7 +2801,7 @@ const Rt = ({
2798
2801
  context: O
2799
2802
  }))[0]);
2800
2803
  const R = {
2801
- ...typeof (C == null ? void 0 : C.context) == "string" ? yt({
2804
+ ...typeof (C == null ? void 0 : C.context) == "string" ? vt({
2802
2805
  context: C.context,
2803
2806
  fields: x,
2804
2807
  values: {
@@ -2811,7 +2814,7 @@ const Rt = ({
2811
2814
  let S = [];
2812
2815
  if (C.domain && (S = await B.getHandler().evalDomain({
2813
2816
  domain: C.domain,
2814
- values: Rt({
2817
+ values: kt({
2815
2818
  fields: x,
2816
2819
  values: {
2817
2820
  ...b,
@@ -2910,12 +2913,12 @@ const Rt = ({
2910
2913
  });
2911
2914
  }
2912
2915
  return /* @__PURE__ */ n(ee, {
2913
- children: /* @__PURE__ */ n(kt.Provider, {
2916
+ children: /* @__PURE__ */ n(Mt.Provider, {
2914
2917
  value: {
2915
2918
  processAction: F,
2916
2919
  globalValues: i
2917
2920
  },
2918
- children: /* @__PURE__ */ H(ee, {
2921
+ children: /* @__PURE__ */ P(ee, {
2919
2922
  children: [r, /* @__PURE__ */ n(We, {
2920
2923
  title: d("generatingReport"),
2921
2924
  open: a,
@@ -2923,7 +2926,7 @@ const Rt = ({
2923
2926
  closable: !1,
2924
2927
  centered: !0,
2925
2928
  maskClosable: !1,
2926
- children: /* @__PURE__ */ n($e, {})
2929
+ children: /* @__PURE__ */ n(ke, {})
2927
2930
  }), /* @__PURE__ */ n(Gt, {
2928
2931
  buttonModal: !0,
2929
2932
  parentContext: p.context,
@@ -3002,7 +3005,7 @@ async function ll({
3002
3005
  initialView: a
3003
3006
  };
3004
3007
  }
3005
- const cl = vt(al), dl = ({
3008
+ const cl = wt(al), dl = ({
3006
3009
  error: e,
3007
3010
  className: t
3008
3011
  }) => {
@@ -3054,22 +3057,22 @@ function fl(e, t) {
3054
3057
  } = e, {
3055
3058
  t: x,
3056
3059
  lang: b
3057
- } = W(we), [O, C] = T(!1), [$, R] = T(), [S, A] = T(), [M] = nt.useForm(), [D, N] = T(), [k, j] = T(), q = W(uo), [K, J] = T(), [U, L] = T(!1), P = ue(), z = ue({}), oe = ue({}), ce = ue(!1), Z = ue(!1), fe = (E !== void 0 ? E : K) < ul, xe = W(Le), {
3058
- activeId: ke,
3060
+ } = W(we), [O, C] = T(!1), [$, R] = T(), [S, A] = T(), [M] = nt.useForm(), [D, N] = T(), [k, j] = T(), q = W(uo), [K, J] = T(), [U, L] = T(!1), H = ue(), z = ue({}), oe = ue({}), ce = ue(!1), Z = ue(!1), fe = (E !== void 0 ? E : K) < ul, xe = W(Le), {
3061
+ activeId: Me,
3059
3062
  getPlainValues: _e
3060
3063
  } = xe || {}, de = W(Xe), {
3061
3064
  setFormIsSaving: se = void 0,
3062
3065
  setFormHasChanges: be = void 0,
3063
3066
  setCurrentId: Re = void 0,
3064
3067
  setFormIsLoading: Te = void 0,
3065
- setAttachments: Me = void 0,
3068
+ setAttachments: Ee = void 0,
3066
3069
  title: Ze = void 0,
3067
3070
  setTitle: Be = void 0
3068
- } = (w ? de : {}) || {}, te = W(kt), {
3071
+ } = (w ? de : {}) || {}, te = W(Mt), {
3069
3072
  processAction: Ie,
3070
3073
  globalValues: Ne
3071
3074
  } = te || {};
3072
- wt(t, () => ({
3075
+ bt(t, () => ({
3073
3076
  submitForm: zt,
3074
3077
  getFields: Qe,
3075
3078
  getValues: je,
@@ -3078,15 +3081,15 @@ function fl(e, t) {
3078
3081
  fetchValues: pt,
3079
3082
  cancelUnsavedChanges: Qn,
3080
3083
  clearAndReload: () => {
3081
- P.current = void 0, A(void 0), dt();
3084
+ H.current = void 0, A(void 0), dt();
3082
3085
  }
3083
3086
  })), pe(() => {
3084
3087
  if (R(void 0), !(!r && !p)) {
3085
3088
  if (!_) {
3086
- P.current = void 0, A(void 0);
3089
+ H.current = void 0, A(void 0);
3087
3090
  return;
3088
3091
  }
3089
- (i === void 0 && k || i !== void 0 && k && i < 0) && (P.current = void 0, A(void 0)), dt();
3092
+ (i === void 0 && k || i !== void 0 && k && i < 0) && (H.current = void 0, A(void 0)), dt();
3090
3093
  }
3091
3094
  }, [i, r, v, p, _]), pe(() => {
3092
3095
  U && (vn({
@@ -3101,7 +3104,7 @@ function fl(e, t) {
3101
3104
  se == null || se(!1), c == null || c(Y);
3102
3105
  };
3103
3106
  function me() {
3104
- return i || P.current;
3107
+ return i || H.current;
3105
3108
  }
3106
3109
  function Qe() {
3107
3110
  return k;
@@ -3142,7 +3145,7 @@ function fl(e, t) {
3142
3145
  id: me(),
3143
3146
  active_id: me(),
3144
3147
  active_ids: [me()],
3145
- parent_id: ke,
3148
+ parent_id: Me,
3146
3149
  ...Ne
3147
3150
  };
3148
3151
  }
@@ -3163,18 +3166,18 @@ function fl(e, t) {
3163
3166
  fields: k
3164
3167
  })).length !== 0, ie = (Y) => {
3165
3168
  const G = M.getFieldsValue(!0);
3166
- return Tt(G, Y);
3169
+ return Ft(G, Y);
3167
3170
  }, Ue = (Y, G) => {
3168
3171
  qt({
3169
3172
  values: {
3170
- ...Tt(M.getFieldsValue(!0), k),
3173
+ ...Ft(M.getFieldsValue(!0), k),
3171
3174
  [Y]: G
3172
3175
  },
3173
3176
  fields: k,
3174
3177
  reset: !1
3175
3178
  });
3176
3179
  }, st = (Y) => M.getFieldsValue(!0)[Y];
3177
- async function Mt() {
3180
+ async function Et() {
3178
3181
  try {
3179
3182
  return await M.validateFields(), !1;
3180
3183
  } catch {
@@ -3211,7 +3214,7 @@ function fl(e, t) {
3211
3214
  }), F && (G = {
3212
3215
  ...ka(F),
3213
3216
  ...G
3214
- }), z.current = Tt(G, ne), qt({
3217
+ }), z.current = Ft(G, ne), qt({
3215
3218
  values: G,
3216
3219
  fields: ne,
3217
3220
  reset: !0,
@@ -3253,7 +3256,7 @@ function fl(e, t) {
3253
3256
  const gt = {
3254
3257
  ...ne ? {} : M.getFieldsValue(!0),
3255
3258
  ...Y
3256
- }, wn = Tt(gt, G), Jo = Object.keys(G).map((bn) => {
3259
+ }, wn = Ft(gt, G), Jo = Object.keys(G).map((bn) => {
3257
3260
  const Zo = wn[bn] !== void 0 ? wn[bn] : void 0;
3258
3261
  return {
3259
3262
  name: bn,
@@ -3280,9 +3283,9 @@ function fl(e, t) {
3280
3283
  context: ae(),
3281
3284
  model: "ir.attachment"
3282
3285
  });
3283
- Me == null || Me(Ae);
3286
+ Ee == null || Ee(Ae);
3284
3287
  } else
3285
- Me == null || Me([]), ne = await he(Y), re = !0;
3288
+ Ee == null || Ee([]), ne = await he(Y), re = !0;
3286
3289
  return {
3287
3290
  values: ne,
3288
3291
  defaultGetCalled: re
@@ -3323,7 +3326,7 @@ function fl(e, t) {
3323
3326
  ...S == null ? void 0 : S.context
3324
3327
  }
3325
3328
  });
3326
- P.current = re, z.current = ne;
3329
+ H.current = re, z.current = ne;
3327
3330
  }
3328
3331
  h && await h([me()]), !g && G && (ye == null || ye(me(), je(), Q()));
3329
3332
  }, Po = async (Y) => {
@@ -3341,14 +3344,14 @@ function fl(e, t) {
3341
3344
  succeed: !0,
3342
3345
  id: me()
3343
3346
  };
3344
- if (await Mt())
3347
+ if (await Et())
3345
3348
  return Z.current = !1, yr(b), {
3346
3349
  succeed: !1,
3347
3350
  id: me()
3348
3351
  };
3349
3352
  C(!0), se == null || se(!0);
3350
3353
  try {
3351
- m === "api" ? await No(Y) : await Po(Y), d && (P.current = void 0, qt({
3354
+ m === "api" ? await No(Y) : await Po(Y), d && (H.current = void 0, qt({
3352
3355
  values: {},
3353
3356
  fields: k,
3354
3357
  reset: !0
@@ -3396,7 +3399,7 @@ function fl(e, t) {
3396
3399
  }) && Y !== !0)
3397
3400
  return;
3398
3401
  {
3399
- const re = Tt(M.getFieldsValue(!0), k);
3402
+ const re = Ft(M.getFieldsValue(!0), k);
3400
3403
  oe.current = re, u == null || u(re), be == null || be(!0), Bo(ne);
3401
3404
  }
3402
3405
  }
@@ -3492,7 +3495,7 @@ function fl(e, t) {
3492
3495
  ye == null || ye(me(), je(), Q());
3493
3496
  else if (ne.type) {
3494
3497
  let re = {};
3495
- ne.context && (re = yt({
3498
+ ne.context && (re = vt({
3496
3499
  context: ne.context,
3497
3500
  fields: k,
3498
3501
  values: je()
@@ -3571,7 +3574,7 @@ function fl(e, t) {
3571
3574
  Ce == null || Ce();
3572
3575
  return;
3573
3576
  }
3574
- if (await Mt()) {
3577
+ if (await Et()) {
3575
3578
  yr(b);
3576
3579
  return;
3577
3580
  }
@@ -3591,7 +3594,7 @@ function fl(e, t) {
3591
3594
  Ye(re);
3592
3595
  }
3593
3596
  }
3594
- const qo = () => !S && !$ ? /* @__PURE__ */ n($e, {}) : !r && !p || !_ ? null : /* @__PURE__ */ n(ee, {
3597
+ const qo = () => !S && !$ ? /* @__PURE__ */ n(ke, {}) : !r && !p || !_ ? null : /* @__PURE__ */ n(ee, {
3595
3598
  children: /* @__PURE__ */ n(Xi, {
3596
3599
  getValues: je,
3597
3600
  getPlainValues: it,
@@ -3621,10 +3624,10 @@ function fl(e, t) {
3621
3624
  })
3622
3625
  })
3623
3626
  })
3624
- }), zo = () => /* @__PURE__ */ H(ee, {
3627
+ }), zo = () => /* @__PURE__ */ P(ee, {
3625
3628
  children: [/* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(Se, {
3626
3629
  justify: "end",
3627
- children: /* @__PURE__ */ H(Ke, {
3630
+ children: /* @__PURE__ */ P(Ke, {
3628
3631
  children: [/* @__PURE__ */ n(Oe, {
3629
3632
  icon: /* @__PURE__ */ n(jt, {}),
3630
3633
  disabled: O,
@@ -3635,7 +3638,7 @@ function fl(e, t) {
3635
3638
  }), /* @__PURE__ */ n(Oe, {
3636
3639
  disabled: O || f,
3637
3640
  loading: O,
3638
- icon: /* @__PURE__ */ n(At, {}),
3641
+ icon: /* @__PURE__ */ n(Rt, {}),
3639
3642
  onClick: async () => {
3640
3643
  await zt();
3641
3644
  },
@@ -3653,7 +3656,7 @@ function fl(e, t) {
3653
3656
  },
3654
3657
  children: ({
3655
3658
  measureRef: Y
3656
- }) => /* @__PURE__ */ H("div", {
3659
+ }) => /* @__PURE__ */ P("div", {
3657
3660
  className: "pb-2",
3658
3661
  ref: Y,
3659
3662
  children: [$ && /* @__PURE__ */ n(dl, {
@@ -3663,7 +3666,7 @@ function fl(e, t) {
3663
3666
  })
3664
3667
  }) : null;
3665
3668
  }
3666
- const Ut = vt(fl), Gt = (e) => {
3669
+ const Ut = wt(fl), Gt = (e) => {
3667
3670
  const {
3668
3671
  visible: t,
3669
3672
  id: r,
@@ -3715,7 +3718,7 @@ const Ut = vt(fl), Gt = (e) => {
3715
3718
  v(!m);
3716
3719
  }
3717
3720
  function F() {
3718
- return /* @__PURE__ */ H(Se, {
3721
+ return /* @__PURE__ */ P(Se, {
3719
3722
  align: "middle",
3720
3723
  children: [/* @__PURE__ */ n(le, {
3721
3724
  children: /* @__PURE__ */ n(Oe, {
@@ -3781,16 +3784,16 @@ const Ut = vt(fl), Gt = (e) => {
3781
3784
  name: o + "#time",
3782
3785
  label: ""
3783
3786
  })];
3784
- return /* @__PURE__ */ H(ee, {
3787
+ return /* @__PURE__ */ P(ee, {
3785
3788
  children: [r && /* @__PURE__ */ n(un, {
3786
- ooui: new Dt({
3789
+ ooui: new Vt({
3787
3790
  name: o + "_label",
3788
3791
  string: i,
3789
3792
  help: t.tooltip,
3790
3793
  fieldForLabel: o
3791
3794
  }),
3792
3795
  align: "left"
3793
- }), /* @__PURE__ */ H(Se, {
3796
+ }), /* @__PURE__ */ P(Se, {
3794
3797
  align: "bottom",
3795
3798
  className: "p-0",
3796
3799
  children: [/* @__PURE__ */ n(le, {
@@ -3906,16 +3909,16 @@ function yl(e) {
3906
3909
  },
3907
3910
  layout: "vertical"
3908
3911
  });
3909
- return /* @__PURE__ */ H(ee, {
3912
+ return /* @__PURE__ */ P(ee, {
3910
3913
  children: [r && /* @__PURE__ */ n(un, {
3911
- ooui: new Dt({
3914
+ ooui: new Vt({
3912
3915
  name: i + "_label",
3913
3916
  string: o,
3914
3917
  help: s,
3915
3918
  fieldForLabel: i
3916
3919
  }),
3917
3920
  align: "left"
3918
- }), /* @__PURE__ */ H(Se, {
3921
+ }), /* @__PURE__ */ P(Se, {
3919
3922
  align: "bottom",
3920
3923
  className: "mt-0",
3921
3924
  wrap: !1,
@@ -3938,7 +3941,7 @@ const {
3938
3941
  defaultSeed: wl
3939
3942
  } = Pe, bl = vl(wl), {
3940
3943
  Option: xl
3941
- } = bt, Cl = (e) => {
3944
+ } = xt, Cl = (e) => {
3942
3945
  const {
3943
3946
  ooui: t
3944
3947
  } = e, {
@@ -3970,7 +3973,7 @@ const {
3970
3973
  value: v,
3971
3974
  children: v
3972
3975
  }, m);
3973
- }), c = a && !s ? Tl : bt;
3976
+ }), c = a && !s ? Tl : xt;
3974
3977
  function f(d) {
3975
3978
  const m = d.map((v) => {
3976
3979
  const p = l.find(([h, g]) => v === g);
@@ -3990,7 +3993,7 @@ const {
3990
3993
  showArrow: !0,
3991
3994
  children: u
3992
3995
  });
3993
- }, Tl = Kt(bt)`
3996
+ }, Tl = Kt(xt)`
3994
3997
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
3995
3998
  background-color: ${bl.colorPrimaryBg};
3996
3999
  }
@@ -4060,20 +4063,20 @@ function Ol(e) {
4060
4063
  } = e, {
4061
4064
  t: s
4062
4065
  } = W(we);
4063
- return /* @__PURE__ */ H(Se, {
4066
+ return /* @__PURE__ */ P(Se, {
4064
4067
  children: [/* @__PURE__ */ n(le, {
4065
4068
  span: 12,
4066
4069
  className: "text-left pt-4 pb-2 pl-2",
4067
- children: /* @__PURE__ */ H("a", {
4070
+ children: /* @__PURE__ */ P("a", {
4068
4071
  className: "text-xs",
4069
4072
  onClick: t,
4070
4073
  children: [r ? /* @__PURE__ */ n(ui, {
4071
4074
  className: "pr-1"
4072
- }) : /* @__PURE__ */ n(Vt, {
4075
+ }) : /* @__PURE__ */ n(At, {
4073
4076
  className: "pr-1"
4074
4077
  }), s(r ? "simple_search" : "advanced_search")]
4075
4078
  })
4076
- }), /* @__PURE__ */ H(le, {
4079
+ }), /* @__PURE__ */ P(le, {
4077
4080
  span: 12,
4078
4081
  className: "text-right pb-2",
4079
4082
  children: [/* @__PURE__ */ n(Oe, {
@@ -4102,11 +4105,11 @@ function _l(e) {
4102
4105
  }), o = new In({
4103
4106
  name: "offset"
4104
4107
  });
4105
- return /* @__PURE__ */ H("div", {
4108
+ return /* @__PURE__ */ P("div", {
4106
4109
  className: "pl-2 pt-2",
4107
4110
  children: [/* @__PURE__ */ n(Se, {
4108
4111
  children: r("parameters")
4109
- }, "count_params"), /* @__PURE__ */ H(Ke, {
4112
+ }, "count_params"), /* @__PURE__ */ P(Ke, {
4110
4113
  align: "center",
4111
4114
  children: [r("limit") + " :", /* @__PURE__ */ n(tn, {
4112
4115
  ooui: i,
@@ -4162,7 +4165,7 @@ function ho(e) {
4162
4165
  }, M))
4163
4166
  }, S));
4164
4167
  };
4165
- xt(() => {
4168
+ Ct(() => {
4166
4169
  w(!1), V.current = new ci(r, t, p), V.current.parse(), g(V.current._simpleSearchContainer), F(V.current._advancedSearchContainer);
4167
4170
  }, [t, r]);
4168
4171
  const b = x(), O = (C) => {
@@ -4190,11 +4193,11 @@ function ho(e) {
4190
4193
  measureRef: C
4191
4194
  }) => /* @__PURE__ */ n("div", {
4192
4195
  ref: C,
4193
- children: /* @__PURE__ */ H("div", {
4196
+ children: /* @__PURE__ */ P("div", {
4194
4197
  style: {
4195
4198
  display: c ? "block" : "none"
4196
4199
  },
4197
- children: [/* @__PURE__ */ H(nt, {
4200
+ children: [/* @__PURE__ */ P(nt, {
4198
4201
  className: "p-3 shadow-md",
4199
4202
  style: {
4200
4203
  borderRadius: I.borderRadius
@@ -4297,7 +4300,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
4297
4300
  maximumFractionDigits: 4,
4298
4301
  useGrouping: !1
4299
4302
  })}%`;
4300
- return /* @__PURE__ */ H("div", {
4303
+ return /* @__PURE__ */ P("div", {
4301
4304
  style: {
4302
4305
  flex: 1,
4303
4306
  display: "flex",
@@ -4360,7 +4363,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
4360
4363
  t: p
4361
4364
  } = W(we), h = W(ot), {
4362
4365
  openRelate: g
4363
- } = h || {}, y = W(kt), {
4366
+ } = h || {}, y = W(Mt), {
4364
4367
  processAction: F
4365
4368
  } = y || {};
4366
4369
  if (!t)
@@ -4384,7 +4387,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
4384
4387
  context: i
4385
4388
  }))[0];
4386
4389
  v({
4387
- ...Tt(R, C),
4390
+ ...Ft(R, C),
4388
4391
  active_id: t
4389
4392
  }), c(!1);
4390
4393
  } catch (O) {
@@ -4400,7 +4403,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
4400
4403
  style: {
4401
4404
  padding: 15
4402
4405
  },
4403
- children: /* @__PURE__ */ n($e, {})
4406
+ children: /* @__PURE__ */ n(ke, {})
4404
4407
  })
4405
4408
  });
4406
4409
  if (!f || !f.toolbar)
@@ -4419,8 +4422,8 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
4419
4422
  icon: /* @__PURE__ */ n(Kn, {}),
4420
4423
  children: p("report")
4421
4424
  }, "print"), /* @__PURE__ */ n(He.Divider, {}), /* @__PURE__ */ n(He.ItemGroup, {
4422
- title: /* @__PURE__ */ H(ee, {
4423
- children: [/* @__PURE__ */ n(jr, {}), " ", /* @__PURE__ */ H("span", {
4425
+ title: /* @__PURE__ */ P(ee, {
4426
+ children: [/* @__PURE__ */ n(jr, {}), " ", /* @__PURE__ */ P("span", {
4424
4427
  children: [" ", p("related")]
4425
4428
  })]
4426
4429
  }),
@@ -4470,7 +4473,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
4470
4473
  fields: f.fields
4471
4474
  });
4472
4475
  }
4473
- return /* @__PURE__ */ H(ee, {
4476
+ return /* @__PURE__ */ P(ee, {
4474
4477
  children: [/* @__PURE__ */ n(Bt, {
4475
4478
  overlay: w(),
4476
4479
  trigger: ["click"],
@@ -4498,7 +4501,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
4498
4501
  const {
4499
4502
  m2oField: t
4500
4503
  } = e;
4501
- return t ? /* @__PURE__ */ H(Ke, {
4504
+ return t ? /* @__PURE__ */ P(Ke, {
4502
4505
  children: [/* @__PURE__ */ n(ee, {
4503
4506
  children: t.value
4504
4507
  }), /* @__PURE__ */ n(Jn, {
@@ -4511,7 +4514,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
4511
4514
  value: t,
4512
4515
  context: r,
4513
4516
  selectionValues: i
4514
- } = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = Ee(async () => {
4517
+ } = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = $e(async () => {
4515
4518
  if (!t || t && o)
4516
4519
  return;
4517
4520
  l(!0);
@@ -4530,7 +4533,7 @@ const Al = (e) => /* @__PURE__ */ n(ve, {
4530
4533
  if (a)
4531
4534
  return /* @__PURE__ */ n(tt, {});
4532
4535
  const m = i.get(u);
4533
- return /* @__PURE__ */ H(Ke, {
4536
+ return /* @__PURE__ */ P(Ke, {
4534
4537
  children: [/* @__PURE__ */ n(ee, {
4535
4538
  children: `${m}:`
4536
4539
  }), /* @__PURE__ */ n(ee, {
@@ -4650,7 +4653,7 @@ var yo = { exports: {} };
4650
4653
  case d:
4651
4654
  return N ? j(1, J) : j(0, J + 1);
4652
4655
  case f:
4653
- var P = this.$locale().weekStart || 0, z = (K < P ? K + 7 : K) - P;
4656
+ var H = this.$locale().weekStart || 0, z = (K < H ? K + 7 : K) - H;
4654
4657
  return j(N ? U - z : U + (6 - z), J);
4655
4658
  case c:
4656
4659
  case p:
@@ -4703,12 +4706,12 @@ var yo = { exports: {} };
4703
4706
  return D.invalidDate || h;
4704
4707
  var N = A || "YYYY-MM-DDTHH:mm:ssZ", k = O.z(this), j = this.$H, q = this.$m, K = this.$M, J = D.weekdays, U = D.months, L = function(ce, Z, X, fe) {
4705
4708
  return ce && (ce[Z] || ce(M, N)) || X[Z].slice(0, fe);
4706
- }, P = function(ce) {
4709
+ }, H = function(ce) {
4707
4710
  return O.s(j % 12 || 12, ce, "0");
4708
4711
  }, z = D.meridiem || function(ce, Z, X) {
4709
4712
  var fe = ce < 12 ? "AM" : "PM";
4710
4713
  return X ? fe.toLowerCase() : fe;
4711
- }, oe = { YY: String(this.$y).slice(-2), YYYY: O.s(this.$y, 4, "0"), M: K + 1, MM: O.s(K + 1, 2, "0"), MMM: L(D.monthsShort, K, U, 3), MMMM: L(U, K), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: L(D.weekdaysMin, this.$W, J, 2), ddd: L(D.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(j), HH: O.s(j, 2, "0"), h: P(1), hh: P(2), a: z(j, q, !0), A: z(j, q, !1), m: String(q), mm: O.s(q, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: k };
4714
+ }, oe = { YY: String(this.$y).slice(-2), YYYY: O.s(this.$y, 4, "0"), M: K + 1, MM: O.s(K + 1, 2, "0"), MMM: L(D.monthsShort, K, U, 3), MMMM: L(U, K), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: L(D.weekdaysMin, this.$W, J, 2), ddd: L(D.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(j), HH: O.s(j, 2, "0"), h: H(1), hh: H(2), a: z(j, q, !0), A: z(j, q, !1), m: String(q), mm: O.s(q, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: k };
4712
4715
  return N.replace(y, function(ce, Z) {
4713
4716
  return Z || oe[ce] || k.replace(":", "");
4714
4717
  });
@@ -5042,7 +5045,7 @@ function pn(e) {
5042
5045
  setTitle: S = void 0
5043
5046
  } = (y ? $ : {}) || {};
5044
5047
  pe(() => {
5045
- b.current = Ft(o);
5048
+ b.current = Ot(o);
5046
5049
  const K = Ca(b.current, {
5047
5050
  boolean: Bl,
5048
5051
  many2one: jl,
@@ -5067,9 +5070,9 @@ function pn(e) {
5067
5070
  const K = ao(b.current, s);
5068
5071
  V(K), C.current = r;
5069
5072
  }, [s]);
5070
- const A = (t - 1) * C.current + 1, M = A - 1 + w.length, D = i === void 0 ? null : i === 0 ? O("no_results") : O("summary").replace("{from}", A == null ? void 0 : A.toString()).replace("{to}", M == null ? void 0 : M.toString()).replace("{total}", i == null ? void 0 : i.toString()), N = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n($e, {
5073
+ const A = (t - 1) * C.current + 1, M = A - 1 + w.length, D = i === void 0 ? null : i === 0 ? O("no_results") : O("summary").replace("{from}", A == null ? void 0 : A.toString()).replace("{to}", M == null ? void 0 : M.toString()).replace("{total}", i == null ? void 0 : i.toString()), N = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(ke, {
5071
5074
  className: "pb-4"
5072
- }) : /* @__PURE__ */ H(Se, {
5075
+ }) : /* @__PURE__ */ P(Se, {
5073
5076
  align: "bottom",
5074
5077
  className: "pb-4",
5075
5078
  children: [/* @__PURE__ */ n(le, {
@@ -5088,14 +5091,14 @@ function pn(e) {
5088
5091
  })]
5089
5092
  });
5090
5093
  function k() {
5091
- var P;
5094
+ var H;
5092
5095
  const J = b.current.columns.filter((z) => z.sum !== void 0).map((z) => ({
5093
5096
  label: z.sum,
5094
5097
  field: z.id
5095
5098
  }));
5096
5099
  if (!J || J.length === 0)
5097
5100
  return null;
5098
- let U = [], L = ((P = f == null ? void 0 : f.selectedRowKeys) == null ? void 0 : P.length) > 0 ? w.filter((z) => f == null ? void 0 : f.selectedRowKeys.includes(z.id)) : w;
5101
+ let U = [], L = ((H = f == null ? void 0 : f.selectedRowKeys) == null ? void 0 : H.length) > 0 ? w.filter((z) => f == null ? void 0 : f.selectedRowKeys.includes(z.id)) : w;
5099
5102
  return J.forEach((z) => {
5100
5103
  const oe = L.reduce((ce, Z) => Z[z.field] && !isNaN(Z[z.field]) ? ce + Z[z.field] : ce, 0);
5101
5104
  U.push(`${z.label}: ${Math.round(oe * 100) / 100}`);
@@ -5110,17 +5113,19 @@ function pn(e) {
5110
5113
  const J = b.current;
5111
5114
  d && J.columns.some((U) => U.sum !== void 0) && (q = d - 30);
5112
5115
  }
5113
- return b.current === null ? /* @__PURE__ */ n($e, {
5116
+ return b.current === null ? /* @__PURE__ */ n(ke, {
5114
5117
  style: {
5115
5118
  padding: "2rem"
5116
5119
  }
5117
- }) : /* @__PURE__ */ H("div", {
5118
- children: [N(), /* @__PURE__ */ n(Di, {
5120
+ }) : /* @__PURE__ */ P("div", {
5121
+ children: [N(), l && /* @__PURE__ */ n(ke, {
5122
+ className: "pb-4"
5123
+ }), /* @__PURE__ */ n(Di, {
5119
5124
  height: q,
5120
5125
  columns: j.columns,
5121
5126
  dataSource: w,
5122
- loading: l,
5123
- loadingComponent: /* @__PURE__ */ n($e, {}),
5127
+ loading: !1,
5128
+ loadingComponent: /* @__PURE__ */ n(ke, {}),
5124
5129
  onRowStyle: (K) => {
5125
5130
  if (m[K.id])
5126
5131
  return {
@@ -5157,7 +5162,7 @@ function Ql(e, t) {
5157
5162
  onChangeSelectedRowKeys: m
5158
5163
  } = e, [v, p] = T(!1), [h, g] = T(!1), y = ue(!1), [F, _] = T(), [w, V] = T(), [I, E] = T(), [x, b] = T(), [O, C] = T(200), $ = ue(), {
5159
5164
  height: R
5160
- } = fn(), S = W(kt), {
5165
+ } = fn(), S = W(Mt), {
5161
5166
  processAction: A
5162
5167
  } = S || {}, M = W(Xe), {
5163
5168
  setResults: D = void 0,
@@ -5169,7 +5174,7 @@ function Ql(e, t) {
5169
5174
  searchParams: J = [],
5170
5175
  setSearchParams: U = void 0,
5171
5176
  searchVisible: L = !0,
5172
- setSearchVisible: P = void 0,
5177
+ setSearchVisible: H = void 0,
5173
5178
  sorter: z = void 0,
5174
5179
  setSorter: oe = void 0,
5175
5180
  setTotalItems: ce = void 0,
@@ -5177,7 +5182,7 @@ function Ql(e, t) {
5177
5182
  setTreeIsLoading: X = void 0,
5178
5183
  searchValues: fe = {},
5179
5184
  setSearchValues: xe = void 0,
5180
- limit: ke = Ht,
5185
+ limit: Me = Ht,
5181
5186
  setLimit: _e = void 0
5182
5187
  } = (f ? M : {}) || {}, {
5183
5188
  submit: de,
@@ -5185,7 +5190,7 @@ function Ql(e, t) {
5185
5190
  fetchResults: be,
5186
5191
  tableRefreshing: Re,
5187
5192
  searchFilterLoading: Te,
5188
- searchError: Me,
5193
+ searchError: Ee,
5189
5194
  page: Ze,
5190
5195
  offset: Be,
5191
5196
  getResults: te,
@@ -5201,7 +5206,7 @@ function Ql(e, t) {
5201
5206
  setSearchParams: U,
5202
5207
  setSearchValues: xe,
5203
5208
  searchParams: J,
5204
- setSearchVisible: P,
5209
+ setSearchVisible: H,
5205
5210
  setTreeIsLoading: X,
5206
5211
  nameSearch: a,
5207
5212
  searchNameGetDoneRef: y,
@@ -5216,10 +5221,10 @@ function Ql(e, t) {
5216
5221
  domain: u,
5217
5222
  currentId: k,
5218
5223
  setActionViewTotalItems: ce,
5219
- limit: ke,
5224
+ limit: Me,
5220
5225
  setLimit: _e
5221
5226
  });
5222
- wt(t, () => ({
5227
+ bt(t, () => ({
5223
5228
  refreshResults: () => {
5224
5229
  y.current = !1, be();
5225
5230
  },
@@ -5233,9 +5238,9 @@ function Ql(e, t) {
5233
5238
  try {
5234
5239
  await Qe(), g(!0);
5235
5240
  } catch (ie) {
5236
- b(ie);
5241
+ b(ie), X == null || X(!1);
5237
5242
  } finally {
5238
- p(!1), X == null || X(!1);
5243
+ p(!1);
5239
5244
  }
5240
5245
  }, Qe = async () => {
5241
5246
  _(r);
@@ -5302,7 +5307,7 @@ function Ql(e, t) {
5302
5307
  function Ve() {
5303
5308
  return w != null && w.isExpandable ? R - 160 : R - (O + 210);
5304
5309
  }
5305
- const he = () => !w || !I ? null : /* @__PURE__ */ H(ee, {
5310
+ const he = () => !w || !I ? null : /* @__PURE__ */ P(ee, {
5306
5311
  children: [/* @__PURE__ */ n(ho, {
5307
5312
  fields: {
5308
5313
  ...w.fields,
@@ -5311,19 +5316,19 @@ function Ql(e, t) {
5311
5316
  searchFields: lo([I.search_fields, w.search_fields]),
5312
5317
  formXml: I.arch,
5313
5318
  onClear: se,
5314
- limit: ke,
5319
+ limit: Me,
5315
5320
  offset: Be,
5316
5321
  isSearching: Te,
5317
5322
  onSubmit: de,
5318
5323
  onLimitChange: je,
5319
5324
  setSearchFilterHeight: C,
5320
- searchError: Me,
5325
+ searchError: Ee,
5321
5326
  searchVisible: L,
5322
5327
  searchValues: fe
5323
5328
  }), /* @__PURE__ */ n(pn, {
5324
5329
  context: d,
5325
5330
  total: De,
5326
- limit: ke,
5331
+ limit: Me,
5327
5332
  page: Ze,
5328
5333
  treeView: w,
5329
5334
  results: te(),
@@ -5342,7 +5347,7 @@ function Ql(e, t) {
5342
5347
  childField: w.field_parent,
5343
5348
  rootTree: f
5344
5349
  })]
5345
- }), ge = x || Me;
5350
+ }), ge = x || Ee;
5346
5351
  return ge ? /* @__PURE__ */ n(Je, {
5347
5352
  className: "mt-10",
5348
5353
  message: ge,
@@ -5352,10 +5357,10 @@ function Ql(e, t) {
5352
5357
  style: c ? {} : {
5353
5358
  display: "none"
5354
5359
  },
5355
- children: v ? /* @__PURE__ */ n($e, {}) : he()
5360
+ children: v ? /* @__PURE__ */ n(ke, {}) : he()
5356
5361
  });
5357
5362
  }
5358
- const Co = vt(Ql), So = (e) => {
5363
+ const Co = wt(Ql), So = (e) => {
5359
5364
  const {
5360
5365
  visible: t,
5361
5366
  onCloseModal: r,
@@ -5384,7 +5389,7 @@ const Co = vt(Ql), So = (e) => {
5384
5389
  }
5385
5390
  i(v);
5386
5391
  }
5387
- const F = () => /* @__PURE__ */ H(ee, {
5392
+ const F = () => /* @__PURE__ */ P(ee, {
5388
5393
  children: [/* @__PURE__ */ n(Co, {
5389
5394
  model: o,
5390
5395
  nameSearch: s,
@@ -5397,7 +5402,7 @@ const Co = vt(Ql), So = (e) => {
5397
5402
  }
5398
5403
  }), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(Se, {
5399
5404
  justify: "end",
5400
- children: /* @__PURE__ */ H(Ke, {
5405
+ children: /* @__PURE__ */ P(Ke, {
5401
5406
  children: [/* @__PURE__ */ n(Oe, {
5402
5407
  icon: /* @__PURE__ */ n(cn, {}),
5403
5408
  onClick: () => {
@@ -5405,7 +5410,7 @@ const Co = vt(Ql), So = (e) => {
5405
5410
  },
5406
5411
  children: m("new")
5407
5412
  }), /* @__PURE__ */ n(Oe, {
5408
- icon: /* @__PURE__ */ n(At, {}),
5413
+ icon: /* @__PURE__ */ n(Rt, {}),
5409
5414
  onClick: () => {
5410
5415
  y();
5411
5416
  },
@@ -5419,7 +5424,7 @@ const Co = vt(Ql), So = (e) => {
5419
5424
  })
5420
5425
  })]
5421
5426
  });
5422
- return /* @__PURE__ */ H(ee, {
5427
+ return /* @__PURE__ */ P(ee, {
5423
5428
  children: [/* @__PURE__ */ n(We, {
5424
5429
  title: m("search"),
5425
5430
  centered: !0,
@@ -5503,13 +5508,13 @@ const Co = vt(Ql), So = (e) => {
5503
5508
  }, [t]), pe(() => {
5504
5509
  M && D.length === 0 ? K(M) : M && D.length > 0 ? V(D) : !M && !D && V(I.current || "");
5505
5510
  }, [t]);
5506
- const N = (P) => {
5507
- r == null || r(P), $ == null || $();
5508
- }, k = (P) => {
5509
- I.current = P.target.value, N([void 0, ""]);
5511
+ const N = (H) => {
5512
+ r == null || r(H), $ == null || $();
5513
+ }, k = (H) => {
5514
+ I.current = H.target.value, N([void 0, ""]);
5510
5515
  }, j = async () => {
5511
5516
  if (!h && w !== D) {
5512
- if (await new Promise((P) => setTimeout(P, 100)), _.current) {
5517
+ if (await new Promise((H) => setTimeout(H, 100)), _.current) {
5513
5518
  N([void 0, ""]);
5514
5519
  return;
5515
5520
  }
@@ -5518,7 +5523,7 @@ const Co = vt(Ql), So = (e) => {
5518
5523
  if (R.current && R.current.length > 0)
5519
5524
  q(I.current);
5520
5525
  else {
5521
- const P = await B.getHandler().nameSearch({
5526
+ const H = await B.getHandler().nameSearch({
5522
5527
  model: s,
5523
5528
  payload: I.current,
5524
5529
  context: {
@@ -5526,15 +5531,15 @@ const Co = vt(Ql), So = (e) => {
5526
5531
  ...l
5527
5532
  }
5528
5533
  });
5529
- P.length === 1 ? (I.current = void 0, N(P[0])) : q(I.current);
5534
+ H.length === 1 ? (I.current = void 0, N(H[0])) : q(I.current);
5530
5535
  }
5531
- } catch (P) {
5532
- nn(P);
5536
+ } catch (H) {
5537
+ nn(H);
5533
5538
  } finally {
5534
5539
  g(!1);
5535
5540
  }
5536
5541
  }
5537
- }, q = async (P) => {
5542
+ }, q = async (H) => {
5538
5543
  if (await J(), R.current && R.current.length > 0) {
5539
5544
  const z = await B.getHandler().searchAllIds({
5540
5545
  params: R.current,
@@ -5545,23 +5550,23 @@ const Co = vt(Ql), So = (e) => {
5545
5550
  },
5546
5551
  totalItems: 2
5547
5552
  });
5548
- z.length === 1 ? K(z[0]) : (F(P), m(!0));
5553
+ z.length === 1 ? K(z[0]) : (F(H), m(!0));
5549
5554
  return;
5550
5555
  }
5551
- F(P), m(!0);
5552
- }, K = async (P) => {
5556
+ F(H), m(!0);
5557
+ }, K = async (H) => {
5553
5558
  g(!0);
5554
5559
  try {
5555
5560
  const z = await B.getHandler().execute({
5556
5561
  action: "name_get",
5557
- payload: [P],
5562
+ payload: [H],
5558
5563
  model: s,
5559
5564
  context: {
5560
5565
  ...C == null ? void 0 : C(),
5561
5566
  ...l
5562
5567
  }
5563
5568
  });
5564
- N([P, z[0][1]]);
5569
+ N([H, z[0][1]]);
5565
5570
  } catch (z) {
5566
5571
  nn(z);
5567
5572
  } finally {
@@ -5571,7 +5576,7 @@ const Co = vt(Ql), So = (e) => {
5571
5576
  async function J() {
5572
5577
  c && (R.current = await B.getHandler().evalDomain({
5573
5578
  domain: c,
5574
- values: Rt({
5579
+ values: kt({
5575
5580
  fields: O(),
5576
5581
  values: b()
5577
5582
  }),
@@ -5582,10 +5587,10 @@ const Co = vt(Ql), So = (e) => {
5582
5587
  widgetFieldName: u
5583
5588
  }))), A(R.current);
5584
5589
  }
5585
- async function U(P) {
5586
- P.keyCode === 13 ? (P.preventDefault(), P.stopPropagation(), await j()) : P.code === "Backspace" && M !== void 0 && (P.preventDefault(), P.stopPropagation(), N([void 0, ""]));
5590
+ async function U(H) {
5591
+ H.keyCode === 13 ? (H.preventDefault(), H.stopPropagation(), await j()) : H.code === "Backspace" && M !== void 0 && (H.preventDefault(), H.stopPropagation(), N([void 0, ""]));
5587
5592
  }
5588
- return /* @__PURE__ */ H(Se, {
5593
+ return /* @__PURE__ */ P(Se, {
5589
5594
  gutter: 8,
5590
5595
  wrap: !1,
5591
5596
  children: [/* @__PURE__ */ n(le, {
@@ -5650,8 +5655,8 @@ const Co = vt(Ql), So = (e) => {
5650
5655
  },
5651
5656
  visible: d,
5652
5657
  nameSearch: M ? void 0 : y,
5653
- onSelectValues: (P) => {
5654
- m(!1), K(P[0]), _.current = !1, I.current = void 0;
5658
+ onSelectValues: (H) => {
5659
+ m(!1), K(H[0]), _.current = !1, I.current = void 0;
5655
5660
  },
5656
5661
  onCloseModal: () => {
5657
5662
  m(!1), _.current = !1;
@@ -5664,8 +5669,8 @@ const Co = vt(Ql), So = (e) => {
5664
5669
  },
5665
5670
  id: t && t[0],
5666
5671
  visible: v,
5667
- onSubmitSucceed: (P) => {
5668
- p(!1), K(P);
5672
+ onSubmitSucceed: (H) => {
5673
+ p(!1), K(H);
5669
5674
  },
5670
5675
  onCancel: () => {
5671
5676
  p(!1);
@@ -5893,7 +5898,7 @@ function ac({
5893
5898
  justifyContent: "center",
5894
5899
  overflow: "hidden"
5895
5900
  },
5896
- children: /* @__PURE__ */ H(Dn, {
5901
+ children: /* @__PURE__ */ P(Dn, {
5897
5902
  style: {
5898
5903
  fontSize: u,
5899
5904
  margin: 0,
@@ -5945,7 +5950,7 @@ function lc({
5945
5950
  flexDirection: "column",
5946
5951
  padding: "0.2rem"
5947
5952
  },
5948
- children: /* @__PURE__ */ H(Se, {
5953
+ children: /* @__PURE__ */ P(Se, {
5949
5954
  align: "middle",
5950
5955
  children: [h && /* @__PURE__ */ n(le, {
5951
5956
  style: {
@@ -5954,7 +5959,7 @@ function lc({
5954
5959
  paddingRight: "10px"
5955
5960
  },
5956
5961
  children: /* @__PURE__ */ n(h, {})
5957
- }), /* @__PURE__ */ H(le, {
5962
+ }), /* @__PURE__ */ P(le, {
5958
5963
  children: [/* @__PURE__ */ n(Dn, {
5959
5964
  style: {
5960
5965
  fontSize: f * 0.8,
@@ -6121,7 +6126,7 @@ const {
6121
6126
  uninformedString: a,
6122
6127
  manualIds: l
6123
6128
  } = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), [p, h] = T(), [g, y] = T("line");
6124
- return xt(() => {
6129
+ return Ct(() => {
6125
6130
  (async () => {
6126
6131
  c(!0), d(void 0);
6127
6132
  const F = Ln(o);
@@ -6262,7 +6267,7 @@ const vc = {
6262
6267
  banner: !0
6263
6268
  });
6264
6269
  if (c)
6265
- return /* @__PURE__ */ n($e, {});
6270
+ return /* @__PURE__ */ n(ke, {});
6266
6271
  if (!f)
6267
6272
  return /* @__PURE__ */ n(Je, {
6268
6273
  message: "No data to display",
@@ -6273,7 +6278,7 @@ const vc = {
6273
6278
  isGroup: p,
6274
6279
  isStack: h
6275
6280
  } = f, g = vc[d];
6276
- return g ? /* @__PURE__ */ H("div", {
6281
+ return g ? /* @__PURE__ */ P("div", {
6277
6282
  style: {
6278
6283
  padding: "1rem"
6279
6284
  },
@@ -6317,7 +6322,7 @@ const xc = (e, t) => {
6317
6322
  } = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), p = W(Xe), {
6318
6323
  setGraphIsLoading: h = void 0
6319
6324
  } = p || {};
6320
- wt(t, () => ({
6325
+ bt(t, () => ({
6321
6326
  refresh: () => {
6322
6327
  g();
6323
6328
  }
@@ -6397,7 +6402,7 @@ const xc = (e, t) => {
6397
6402
  children: `Graph ${f.type} not implemented`
6398
6403
  });
6399
6404
  }
6400
- }, gn = vt(xc), {
6405
+ }, gn = wt(xc), {
6401
6406
  confirm: Cc
6402
6407
  } = We, Sc = ({
6403
6408
  onOk: e,
@@ -6480,13 +6485,13 @@ const xc = (e, t) => {
6480
6485
  }
6481
6486
  function w() {
6482
6487
  let I = "_";
6483
- return l === 0 ? I = "_" : I = (u + 1).toString(), /* @__PURE__ */ H("span", {
6488
+ return l === 0 ? I = "_" : I = (u + 1).toString(), /* @__PURE__ */ P("span", {
6484
6489
  className: "pl-1 pr-1",
6485
6490
  children: ["(", I, "/", l, ")"]
6486
6491
  });
6487
6492
  }
6488
6493
  function V() {
6489
- return /* @__PURE__ */ H(ee, {
6494
+ return /* @__PURE__ */ P(ee, {
6490
6495
  children: [y(), /* @__PURE__ */ n(qe, {
6491
6496
  tooltip: "Previous item",
6492
6497
  icon: /* @__PURE__ */ n(Kr, {}),
@@ -6498,9 +6503,9 @@ const xc = (e, t) => {
6498
6503
  })]
6499
6504
  });
6500
6505
  }
6501
- return /* @__PURE__ */ H("div", {
6506
+ return /* @__PURE__ */ P("div", {
6502
6507
  className: "flex mb-2",
6503
- children: [F(), /* @__PURE__ */ H("div", {
6508
+ children: [F(), /* @__PURE__ */ P("div", {
6504
6509
  className: "flex-none h-8 pl-2",
6505
6510
  children: [s !== "graph" && p && /* @__PURE__ */ n(qe, {
6506
6511
  tooltip: "Create new item",
@@ -6559,7 +6564,7 @@ const Vc = (e) => {
6559
6564
  } = W(we), [F, _] = T(!1), [w, V] = T(!1), [I, E] = T(), [x, b] = T(!1), [O, C] = T(!1), [$, R] = T(), [S, A] = T([]), [M, D] = T(!1), N = ue([]), [k, j] = T(), q = ue(), [K, J] = T(void 0), {
6560
6565
  readOnly: U,
6561
6566
  relation: L,
6562
- context: P,
6567
+ context: H,
6563
6568
  domain: z
6564
6569
  } = i, oe = i.type === "many2many", {
6565
6570
  id: ce
@@ -6571,8 +6576,8 @@ const Vc = (e) => {
6571
6576
  }
6572
6577
  fe();
6573
6578
  }, [s, a]);
6574
- const fe = Ee(() => {
6575
- (a === "form" && s.some((Q) => !Q.values) || a === "tree" && s.some((Q) => !Q.treeValues)) && ke();
6579
+ const fe = $e(() => {
6580
+ (a === "form" && s.some((Q) => !Q.values) || a === "tree" && s.some((Q) => !Q.treeValues)) && Me();
6576
6581
  }, [s, a]);
6577
6582
  pe(() => {
6578
6583
  de();
@@ -6583,7 +6588,7 @@ const Vc = (e) => {
6583
6588
  fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ve = o.get("tree")) == null ? void 0 : Ve.fields),
6584
6589
  items: Dc(Q)
6585
6590
  });
6586
- }, ke = async () => {
6591
+ }, Me = async () => {
6587
6592
  await _e(), u > Z.length - 1 && u !== 0 && c(0);
6588
6593
  }, _e = async (Q) => {
6589
6594
  var ae, Ve, he;
@@ -6601,7 +6606,7 @@ const Vc = (e) => {
6601
6606
  items: s,
6602
6607
  context: {
6603
6608
  ...p == null ? void 0 : p(),
6604
- ...P
6609
+ ...H
6605
6610
  },
6606
6611
  currentView: Q || a
6607
6612
  });
@@ -6615,7 +6620,7 @@ const Vc = (e) => {
6615
6620
  async function de() {
6616
6621
  z && (N.current = await B.getHandler().evalDomain({
6617
6622
  domain: z,
6618
- values: Rt({
6623
+ values: kt({
6619
6624
  fields: m(),
6620
6625
  values: v()
6621
6626
  }),
@@ -6628,16 +6633,16 @@ const Vc = (e) => {
6628
6633
  }
6629
6634
  const se = () => {
6630
6635
  const Q = Array.from(o.keys()), ae = Q[(Q.indexOf(a) + 1) % Q.length];
6631
- a === "form" ? Me(() => {
6636
+ a === "form" ? Ee(() => {
6632
6637
  l(ae);
6633
6638
  }) : l(ae);
6634
6639
  }, be = () => {
6635
- u > 0 && (a === "form" ? Me(() => {
6640
+ u > 0 && (a === "form" ? Ee(() => {
6636
6641
  c(u - 1);
6637
6642
  }) : c(u - 1));
6638
6643
  }, Re = () => {
6639
6644
  const Q = Z.length;
6640
- u < Q - 1 && (a === "form" ? Me(() => {
6645
+ u < Q - 1 && (a === "form" ? Ee(() => {
6641
6646
  c(u + 1);
6642
6647
  }) : c(u + 1));
6643
6648
  }, Te = async () => {
@@ -6647,7 +6652,7 @@ const Vc = (e) => {
6647
6652
  fields: o.get("form").fields,
6648
6653
  context: {
6649
6654
  ...p == null ? void 0 : p(),
6650
- ...P
6655
+ ...H
6651
6656
  }
6652
6657
  }))[0], Ve = (await B.getHandler().readObjects({
6653
6658
  model: L,
@@ -6655,7 +6660,7 @@ const Vc = (e) => {
6655
6660
  fields: o.get("tree").fields,
6656
6661
  context: {
6657
6662
  ...p == null ? void 0 : p(),
6658
- ...P
6663
+ ...H
6659
6664
  }
6660
6665
  }))[0], he = s.map((ge) => ge.id === Q ? {
6661
6666
  ...ge,
@@ -6664,7 +6669,7 @@ const Vc = (e) => {
6664
6669
  treeValues: Ve
6665
6670
  } : ge);
6666
6671
  xe(he);
6667
- }, Me = (Q) => {
6672
+ }, Ee = (Q) => {
6668
6673
  F ? Wt({
6669
6674
  lang: g,
6670
6675
  onOk: () => {
@@ -6694,7 +6699,7 @@ const Vc = (e) => {
6694
6699
  let ae;
6695
6700
  Q && d && (ae = {
6696
6701
  [Q]: d
6697
- }), a === "form" ? Me(() => {
6702
+ }), a === "form" ? Ee(() => {
6698
6703
  D(!0), R({
6699
6704
  defaultValues: ae
6700
6705
  }), b(!0);
@@ -6702,7 +6707,7 @@ const Vc = (e) => {
6702
6707
  defaultValues: ae
6703
6708
  }), b(!0));
6704
6709
  }, te = async () => {
6705
- a === "form" ? Me(() => {
6710
+ a === "form" ? Ee(() => {
6706
6711
  C(!0);
6707
6712
  }) : C(!0);
6708
6713
  }, Ie = async () => {
@@ -6783,7 +6788,7 @@ const Vc = (e) => {
6783
6788
  fields: o.get("form").fields,
6784
6789
  context: {
6785
6790
  ...p == null ? void 0 : p(),
6786
- ...P
6791
+ ...H
6787
6792
  }
6788
6793
  }))[0], ie = (await B.getHandler().readObjects({
6789
6794
  model: L,
@@ -6791,7 +6796,7 @@ const Vc = (e) => {
6791
6796
  fields: o.get("tree").fields,
6792
6797
  context: {
6793
6798
  ...p == null ? void 0 : p(),
6794
- ...P
6799
+ ...H
6795
6800
  }
6796
6801
  }))[0];
6797
6802
  ae.push({
@@ -6820,19 +6825,19 @@ const Vc = (e) => {
6820
6825
  const Qe = () => {
6821
6826
  var ae, Ve, he, ge;
6822
6827
  if (a === "form")
6823
- return Z.length === 0 ? y("noCurrentEntries") : a !== X.current && s.some((ie) => !ie.values) ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ n(Ut, {
6828
+ return Z.length === 0 ? y("noCurrentEntries") : a !== X.current && s.some((ie) => !ie.values) ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(Ut, {
6824
6829
  formView: o.get("form"),
6825
6830
  values: (ae = Z[u]) == null ? void 0 : ae.values,
6826
6831
  parentContext: {
6827
6832
  ...p == null ? void 0 : p(),
6828
- ...P
6833
+ ...H
6829
6834
  },
6830
6835
  model: L,
6831
6836
  id: (Ve = Z[u]) == null ? void 0 : Ve.id,
6832
6837
  submitMode: "values",
6833
6838
  onFieldsChange: (ie) => {
6834
- var Mt;
6835
- const Ue = (Mt = Z[u]) == null ? void 0 : Mt.id, st = s.map((dt) => dt.id === Ue ? {
6839
+ var Et;
6840
+ const Ue = (Et = Z[u]) == null ? void 0 : Et.id, st = s.map((dt) => dt.id === Ue ? {
6836
6841
  ...dt,
6837
6842
  operation: dt.operation === "original" ? "pendingUpdate" : dt.operation,
6838
6843
  values: {
@@ -6849,7 +6854,7 @@ const Vc = (e) => {
6849
6854
  readOnly: U
6850
6855
  });
6851
6856
  let Q = [];
6852
- if (Z.some((ie) => ie.treeValues) && (Q = k ? Ot({
6857
+ if (Z.some((ie) => ie.treeValues) && (Q = k ? _t({
6853
6858
  resultsToSort: Z.map((ie) => ie.treeValues),
6854
6859
  sorter: k,
6855
6860
  fields: {
@@ -6873,7 +6878,7 @@ const Vc = (e) => {
6873
6878
  onChangeSort: j,
6874
6879
  context: {
6875
6880
  ...p == null ? void 0 : p(),
6876
- ...P
6881
+ ...H
6877
6882
  },
6878
6883
  colorsForResults: K,
6879
6884
  readonly: U
@@ -6886,7 +6891,7 @@ const Vc = (e) => {
6886
6891
  domain: ie,
6887
6892
  context: {
6888
6893
  ...p == null ? void 0 : p(),
6889
- ...P
6894
+ ...H
6890
6895
  },
6891
6896
  limit: 0
6892
6897
  });
@@ -6900,7 +6905,7 @@ const Vc = (e) => {
6900
6905
  banner: !0
6901
6906
  });
6902
6907
  const je = M;
6903
- return w ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ H(ee, {
6908
+ return w ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ P(ee, {
6904
6909
  children: [/* @__PURE__ */ n(_c, {
6905
6910
  mode: a,
6906
6911
  title: me(),
@@ -6929,7 +6934,7 @@ const Vc = (e) => {
6929
6934
  onSubmitSucceed: ye,
6930
6935
  parentContext: {
6931
6936
  ...p == null ? void 0 : p(),
6932
- ...P
6937
+ ...H
6933
6938
  },
6934
6939
  onCancel: () => {
6935
6940
  D(!1), b(!1);
@@ -6941,7 +6946,7 @@ const Vc = (e) => {
6941
6946
  model: L,
6942
6947
  context: {
6943
6948
  ...p == null ? void 0 : p(),
6944
- ...P
6949
+ ...H
6945
6950
  },
6946
6951
  visible: O,
6947
6952
  onSelectValues: async (Q) => {
@@ -6966,7 +6971,7 @@ const Vc = (e) => {
6966
6971
  const [u, c] = T(!0), [f, d] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = W(Le), {
6967
6972
  getContext: h
6968
6973
  } = p || {};
6969
- xt(() => {
6974
+ Ct(() => {
6970
6975
  y();
6971
6976
  }, [t]);
6972
6977
  const g = async (_) => o && o[_] ? o[_] : await B.getHandler().getView({
@@ -6995,7 +7000,7 @@ const Vc = (e) => {
6995
7000
  c(!1);
6996
7001
  }
6997
7002
  };
6998
- return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n($e, {}) : f ? /* @__PURE__ */ n(Je, {
7003
+ return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(ke, {}) : f ? /* @__PURE__ */ n(Je, {
6999
7004
  className: "mt-10",
7000
7005
  message: f,
7001
7006
  type: "error",
@@ -7115,7 +7120,7 @@ function $c(e) {
7115
7120
  defaultActiveKey: "1",
7116
7121
  tabPosition: t.tabPosition,
7117
7122
  children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Ec, {
7118
- tab: /* @__PURE__ */ H(ee, {
7123
+ tab: /* @__PURE__ */ P(ee, {
7119
7124
  children: [o(s.icon), " ", s.label]
7120
7125
  }),
7121
7126
  children: /* @__PURE__ */ n(Io, {
@@ -7179,7 +7184,7 @@ const {
7179
7184
  } = s || {}, [d, m] = T(!1), {
7180
7185
  t: v
7181
7186
  } = W(we);
7182
- return a ? /* @__PURE__ */ H(ee, {
7187
+ return a ? /* @__PURE__ */ P(ee, {
7183
7188
  children: [/* @__PURE__ */ n("div", {
7184
7189
  onClick: () => {
7185
7190
  if (c != null && c()) {
@@ -7196,6 +7201,7 @@ const {
7196
7201
  style: {
7197
7202
  height: o ? o + "px" : "100%",
7198
7203
  cursor: "pointer",
7204
+ pointerEvents: "none",
7199
7205
  ...r
7200
7206
  },
7201
7207
  id: t,
@@ -7215,7 +7221,7 @@ const {
7215
7221
  m(!1), u == null || u();
7216
7222
  }
7217
7223
  })]
7218
- }) : /* @__PURE__ */ H(ee, {
7224
+ }) : /* @__PURE__ */ P(ee, {
7219
7225
  children: [/* @__PURE__ */ n(Se, {
7220
7226
  gutter: 8,
7221
7227
  wrap: !1,
@@ -7257,7 +7263,7 @@ const {
7257
7263
  return /* @__PURE__ */ n(ln, {
7258
7264
  orientation: "left",
7259
7265
  className: "text-sm",
7260
- children: (o || r) && /* @__PURE__ */ H(Ke, {
7266
+ children: (o || r) && /* @__PURE__ */ P(Ke, {
7261
7267
  children: [o ? /* @__PURE__ */ n(o, {}) : null, r]
7262
7268
  })
7263
7269
  });
@@ -7270,7 +7276,7 @@ const {
7270
7276
  limit: s,
7271
7277
  onClose: a
7272
7278
  }) => {
7273
- const l = ue({}), u = ue(/* @__PURE__ */ new Map()), c = Ee(
7279
+ const l = ue({}), u = ue(/* @__PURE__ */ new Map()), c = $e(
7274
7280
  async (g) => {
7275
7281
  if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
7276
7282
  lt(Fe("selectAtLeastOneField", r));
@@ -7292,18 +7298,18 @@ const {
7292
7298
  format: g.exportType
7293
7299
  });
7294
7300
  a(), await new Promise((w) => setTimeout(w, 200));
7295
- const _ = await It(F);
7301
+ const _ = await Dt(F);
7296
7302
  mn(F, _.mime);
7297
7303
  },
7298
7304
  [r, e, o, s, t, a]
7299
- ), f = Ee(async () => {
7305
+ ), f = $e(async () => {
7300
7306
  const g = await B.getHandler().getFields({
7301
7307
  model: e,
7302
7308
  context: t,
7303
7309
  fields: []
7304
7310
  });
7305
7311
  return l.current["/"] = g, Or({ fields: g });
7306
- }, [e, t, l]), d = Ee(
7312
+ }, [e, t, l]), d = $e(
7307
7313
  async (g) => {
7308
7314
  const F = kn(g, l.current)[Rn(g)], _ = F.relation, w = await B.getHandler().getFields({
7309
7315
  model: _,
@@ -7321,7 +7327,7 @@ const {
7321
7327
  });
7322
7328
  },
7323
7329
  [l.current, e, t]
7324
- ), m = Ee(async () => {
7330
+ ), m = $e(async () => {
7325
7331
  const g = await Yc({ model: e, context: t }), y = await Uc({
7326
7332
  predefinedExports: g,
7327
7333
  fields: l.current,
@@ -7340,7 +7346,7 @@ const {
7340
7346
  })),
7341
7347
  keysWithChilds: y
7342
7348
  };
7343
- }, [l.current]), v = Ee(
7349
+ }, [l.current]), v = $e(
7344
7350
  async (g) => {
7345
7351
  const y = await h("ir.exports"), F = await h("ir.exports.line"), _ = await B.getHandler().create({
7346
7352
  model: "ir.exports",
@@ -7364,7 +7370,7 @@ const {
7364
7370
  ), { ...g, id: _ };
7365
7371
  },
7366
7372
  []
7367
- ), p = Ee(
7373
+ ), p = $e(
7368
7374
  async (g) => {
7369
7375
  await B.getHandler().delete({
7370
7376
  model: "ir.exports",
@@ -7372,7 +7378,7 @@ const {
7372
7378
  });
7373
7379
  },
7374
7380
  []
7375
- ), h = Ee(
7381
+ ), h = $e(
7376
7382
  async (g) => {
7377
7383
  if (u.current.has(g))
7378
7384
  return u.current.get(g);
@@ -7658,10 +7664,10 @@ var Vo = { exports: {} };
7658
7664
  try {
7659
7665
  if (["x", "X"].indexOf(D) > -1)
7660
7666
  return new Date((D === "X" ? 1e3 : 1) * M);
7661
- var k = p(D)(M), j = k.year, q = k.month, K = k.day, J = k.hours, U = k.minutes, L = k.seconds, P = k.milliseconds, z = k.zone, oe = new Date(), ce = K || (j || q ? 1 : oe.getDate()), Z = j || oe.getFullYear(), X = 0;
7667
+ var k = p(D)(M), j = k.year, q = k.month, K = k.day, J = k.hours, U = k.minutes, L = k.seconds, H = k.milliseconds, z = k.zone, oe = new Date(), ce = K || (j || q ? 1 : oe.getDate()), Z = j || oe.getFullYear(), X = 0;
7662
7668
  j && !q || (X = q > 0 ? q - 1 : oe.getMonth());
7663
- var fe = J || 0, xe = U || 0, ke = L || 0, _e = P || 0;
7664
- return z ? new Date(Date.UTC(Z, X, ce, fe, xe, ke, _e + 60 * z.offset * 1e3)) : N ? new Date(Date.UTC(Z, X, ce, fe, xe, ke, _e)) : new Date(Z, X, ce, fe, xe, ke, _e);
7669
+ var fe = J || 0, xe = U || 0, Me = L || 0, _e = H || 0;
7670
+ return z ? new Date(Date.UTC(Z, X, ce, fe, xe, Me, _e + 60 * z.offset * 1e3)) : N ? new Date(Date.UTC(Z, X, ce, fe, xe, Me, _e)) : new Date(Z, X, ce, fe, xe, Me, _e);
7665
7671
  } catch {
7666
7672
  return new Date("");
7667
7673
  }
@@ -7729,7 +7735,7 @@ const Qc = (e) => {
7729
7735
  }
7730
7736
  const m = t && l && l[0], v = t && l && l[1] && parseInt(l[1]);
7731
7737
  c([v, void 0]), d(m);
7732
- }, [t]), /* @__PURE__ */ H(Se, {
7738
+ }, [t]), /* @__PURE__ */ P(Se, {
7733
7739
  gutter: 8,
7734
7740
  wrap: !1,
7735
7741
  children: [/* @__PURE__ */ n(le, {
@@ -7805,11 +7811,11 @@ const Qc = (e) => {
7805
7811
  i == null || i(_);
7806
7812
  };
7807
7813
  async function h() {
7808
- const _ = await It(r), w = `data:${_ == null ? void 0 : _.mime};base64,${r}`, V = document.createElement("a"), I = d(a), E = d("name");
7814
+ const _ = await Dt(r), w = `data:${_ == null ? void 0 : _.mime};base64,${r}`, V = document.createElement("a"), I = d(a), E = d("name");
7809
7815
  V.href = w, V.download = I || E, V.click();
7810
7816
  }
7811
7817
  async function g() {
7812
- const _ = await It(r);
7818
+ const _ = await Dt(r);
7813
7819
  mn(r, _.mime);
7814
7820
  }
7815
7821
  async function y(_) {
@@ -7820,9 +7826,9 @@ const Qc = (e) => {
7820
7826
  function F() {
7821
7827
  f(a, void 0), p(void 0);
7822
7828
  }
7823
- return /* @__PURE__ */ H(Se, {
7829
+ return /* @__PURE__ */ P(Se, {
7824
7830
  gutter: 8,
7825
- children: [/* @__PURE__ */ H(le, {
7831
+ children: [/* @__PURE__ */ P(le, {
7826
7832
  style: {
7827
7833
  paddingBottom: 5
7828
7834
  },
@@ -7841,7 +7847,7 @@ const Qc = (e) => {
7841
7847
  value: v
7842
7848
  })]
7843
7849
  }), /* @__PURE__ */ n(le, {
7844
- children: /* @__PURE__ */ H(Ke, {
7850
+ children: /* @__PURE__ */ P(Ke, {
7845
7851
  children: [/* @__PURE__ */ n(Oe, {
7846
7852
  icon: /* @__PURE__ */ n(Nn, {}),
7847
7853
  disabled: o,
@@ -7891,7 +7897,7 @@ function Zn(e) {
7891
7897
  } = W(we);
7892
7898
  function c() {
7893
7899
  const m = r.map((v, p) => /* @__PURE__ */ n(He.Item, {
7894
- children: /* @__PURE__ */ H(Se, {
7900
+ children: /* @__PURE__ */ P(Se, {
7895
7901
  wrap: !1,
7896
7902
  children: [/* @__PURE__ */ n(le, {
7897
7903
  flex: "none",
@@ -7907,7 +7913,7 @@ function Zn(e) {
7907
7913
  children: v.type.charAt(0).toUpperCase() + v.type.slice(1)
7908
7914
  }), /* @__PURE__ */ n(le, {
7909
7915
  flex: "none",
7910
- children: /* @__PURE__ */ n(At, {
7916
+ children: /* @__PURE__ */ n(Rt, {
7911
7917
  style: {
7912
7918
  opacity: t.view_id === v.view_id ? 1 : 0
7913
7919
  }
@@ -7941,7 +7947,7 @@ function Zn(e) {
7941
7947
  i(v);
7942
7948
  });
7943
7949
  }
7944
- return /* @__PURE__ */ H("div", {
7950
+ return /* @__PURE__ */ P("div", {
7945
7951
  style: {
7946
7952
  display: "flex"
7947
7953
  },
@@ -7968,7 +7974,7 @@ function Zn(e) {
7968
7974
  borderTopLeftRadius: 0,
7969
7975
  borderBottomLeftRadius: 0
7970
7976
  },
7971
- icon: /* @__PURE__ */ n(Vt, {
7977
+ icon: /* @__PURE__ */ n(At, {
7972
7978
  style: {
7973
7979
  fontSize: "0.5em"
7974
7980
  }
@@ -7978,7 +7984,7 @@ function Zn(e) {
7978
7984
  })]
7979
7985
  });
7980
7986
  }
7981
- function _t(e) {
7987
+ function It(e) {
7982
7988
  const {
7983
7989
  icon: t,
7984
7990
  tooltip: r,
@@ -8006,8 +8012,8 @@ function _t(e) {
8006
8012
  return /* @__PURE__ */ n(Bt, {
8007
8013
  overlay: l(),
8008
8014
  disabled: a || !i || i.length === 0,
8009
- children: /* @__PURE__ */ H(Oe, {
8010
- children: [t, " ", s, " ", /* @__PURE__ */ n(Vt, {})]
8015
+ children: /* @__PURE__ */ P(Oe, {
8016
+ children: [t, " ", s, " ", /* @__PURE__ */ n(At, {})]
8011
8017
  })
8012
8018
  });
8013
8019
  }
@@ -8021,7 +8027,7 @@ function Ge(e) {
8021
8027
  label: a,
8022
8028
  type: l = "default"
8023
8029
  } = e;
8024
- return /* @__PURE__ */ H(qe, {
8030
+ return /* @__PURE__ */ P(qe, {
8025
8031
  type: l,
8026
8032
  tooltip: o,
8027
8033
  onClick: t,
@@ -8086,7 +8092,7 @@ async function Ro(e, t, r) {
8086
8092
  write_date: l,
8087
8093
  write_uid: u
8088
8094
  } = i;
8089
- lt(/* @__PURE__ */ H("div", {
8095
+ lt(/* @__PURE__ */ P("div", {
8090
8096
  children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " + u[1], " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedDate") + ": " + l]
8091
8097
  }));
8092
8098
  }
@@ -8097,9 +8103,9 @@ const ld = (e) => {
8097
8103
  } = e, {
8098
8104
  t: i,
8099
8105
  lang: o
8100
- } = W(we), [s, a] = T(!1), l = /* @__PURE__ */ H(Oe, {
8106
+ } = W(we), [s, a] = T(!1), l = /* @__PURE__ */ P(Oe, {
8101
8107
  disabled: r,
8102
- children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(Vt, {
8108
+ children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(At, {
8103
8109
  style: {
8104
8110
  fontSize: 12
8105
8111
  }
@@ -8123,12 +8129,12 @@ const ld = (e) => {
8123
8129
  onOpenAttachmentDetail: l,
8124
8130
  onListAllAttachments: u
8125
8131
  } = e;
8126
- return o ? /* @__PURE__ */ n($e, {
8132
+ return o ? /* @__PURE__ */ n(ke, {
8127
8133
  style: {
8128
8134
  padding: 20
8129
8135
  }
8130
- }) : /* @__PURE__ */ H(ee, {
8131
- children: [/* @__PURE__ */ H("a", {
8136
+ }) : /* @__PURE__ */ P(ee, {
8137
+ children: [/* @__PURE__ */ P("a", {
8132
8138
  style: {
8133
8139
  display: "block",
8134
8140
  paddingBottom: 5
@@ -8138,7 +8144,7 @@ const ld = (e) => {
8138
8144
  t(!1), u();
8139
8145
  },
8140
8146
  children: [/* @__PURE__ */ n(Wn, {}), " ", Fe("listAllAttachments", r)]
8141
- }), /* @__PURE__ */ H("a", {
8147
+ }), /* @__PURE__ */ P("a", {
8142
8148
  style: {
8143
8149
  display: "block"
8144
8150
  },
@@ -8147,12 +8153,12 @@ const ld = (e) => {
8147
8153
  t(!1), s();
8148
8154
  },
8149
8155
  children: [/* @__PURE__ */ n(cn, {}), " ", Fe("addNewAttachment", r)]
8150
- }), i.length > 0 && /* @__PURE__ */ H(ee, {
8156
+ }), i.length > 0 && /* @__PURE__ */ P(ee, {
8151
8157
  children: [/* @__PURE__ */ n("li", {
8152
8158
  className: "ant-dropdown-menu-item-divider"
8153
8159
  }), i.map((c) => {
8154
8160
  const f = c.link ? Wr : Pn;
8155
- return /* @__PURE__ */ H(Se, {
8161
+ return /* @__PURE__ */ P(Se, {
8156
8162
  style: {
8157
8163
  paddingTop: 4,
8158
8164
  paddingBottom: 4
@@ -8211,7 +8217,7 @@ function dd(e) {
8211
8217
  formRef: a
8212
8218
  } = W(Xe), [l, u] = T(!1), [c, f] = T([]), [d, m] = T(!1), {
8213
8219
  t: v
8214
- } = W(we), p = Ee(async () => {
8220
+ } = W(we), p = $e(async () => {
8215
8221
  u(!0);
8216
8222
  try {
8217
8223
  const y = await B.getHandler().readObjects({
@@ -8230,7 +8236,7 @@ function dd(e) {
8230
8236
  Ye(y);
8231
8237
  }
8232
8238
  u(!1);
8233
- }, t), h = Ee(async (y) => {
8239
+ }, t), h = $e(async (y) => {
8234
8240
  if (y.link) {
8235
8241
  window.open(y.link);
8236
8242
  return;
@@ -8248,16 +8254,16 @@ function dd(e) {
8248
8254
  }
8249
8255
  if (m(!1), !!F)
8250
8256
  if (F.datas) {
8251
- const _ = await It(F.datas);
8257
+ const _ = await Dt(F.datas);
8252
8258
  mn(F.datas, _.mime);
8253
8259
  } else
8254
8260
  s(F);
8255
- }, []), g = Ee(async (y) => {
8261
+ }, []), g = $e(async (y) => {
8256
8262
  s(y);
8257
8263
  }, []);
8258
8264
  return pe(() => {
8259
8265
  p();
8260
- }, [p]), /* @__PURE__ */ H(ee, {
8266
+ }, [p]), /* @__PURE__ */ P(ee, {
8261
8267
  children: [/* @__PURE__ */ n(ld, {
8262
8268
  numberOfAttachments: t.length,
8263
8269
  attachments: c,
@@ -8274,7 +8280,7 @@ function dd(e) {
8274
8280
  closable: !1,
8275
8281
  centered: !0,
8276
8282
  maskClosable: !1,
8277
- children: /* @__PURE__ */ n($e, {})
8283
+ children: /* @__PURE__ */ n(ke, {})
8278
8284
  })]
8279
8285
  });
8280
8286
  }
@@ -8309,7 +8315,7 @@ function ud({
8309
8315
  } = W(Xe), {
8310
8316
  t: b,
8311
8317
  lang: O
8312
- } = W(we), C = W(kt), {
8318
+ } = W(we), C = W(Mt), {
8313
8319
  processAction: $
8314
8320
  } = C || {}, R = W(ot), {
8315
8321
  openRelate: S,
@@ -8362,8 +8368,8 @@ function ud({
8362
8368
  });
8363
8369
  const L = u == null ? void 0 : u.filter((z) => z.id !== l);
8364
8370
  y == null || y(L);
8365
- let P = 0;
8366
- f > 0 && f <= u.length - 1 && (P = f - 1), L != null && L[P] ? (d == null || d(L == null ? void 0 : L[P].id), c == null || c(P)) : (d == null || d(void 0), c == null || c(void 0));
8371
+ let H = 0;
8372
+ f > 0 && f <= u.length - 1 && (H = f - 1), L != null && L[H] ? (d == null || d(L == null ? void 0 : L[H].id), c == null || c(H)) : (d == null || d(void 0), c == null || c(void 0));
8367
8373
  } catch (L) {
8368
8374
  nn(JSON.stringify(L));
8369
8375
  } finally {
@@ -8397,10 +8403,10 @@ function ud({
8397
8403
  }
8398
8404
  });
8399
8405
  }
8400
- return r ? /* @__PURE__ */ H(Ke, {
8406
+ return r ? /* @__PURE__ */ P(Ke, {
8401
8407
  wrap: !0,
8402
- children: [F && /* @__PURE__ */ H(ee, {
8403
- children: [/* @__PURE__ */ n($e, {}), Ct(), Ct()]
8408
+ children: [F && /* @__PURE__ */ P(ee, {
8409
+ children: [/* @__PURE__ */ n(ke, {}), St(), St()]
8404
8410
  }), /* @__PURE__ */ n(Ao, {
8405
8411
  disabled: a || F || p || h
8406
8412
  }), /* @__PURE__ */ n(Ge, {
@@ -8421,7 +8427,7 @@ function ud({
8421
8427
  disabled: a || l === void 0 || p || h || F,
8422
8428
  loading: p,
8423
8429
  onClick: j
8424
- }), Ct(), /* @__PURE__ */ n(Ge, {
8430
+ }), St(), /* @__PURE__ */ n(Ge, {
8425
8431
  icon: /* @__PURE__ */ n(Ur, {}),
8426
8432
  tooltip: b("showLogs"),
8427
8433
  disabled: a || l === void 0 || p || h || F,
@@ -8439,7 +8445,7 @@ function ud({
8439
8445
  w.current.fetchValues();
8440
8446
  });
8441
8447
  }
8442
- }), Ct(), /* @__PURE__ */ n(Zn, {
8448
+ }), St(), /* @__PURE__ */ n(Zn, {
8443
8449
  currentView: r,
8444
8450
  previousView: I,
8445
8451
  availableViews: t,
@@ -8448,7 +8454,7 @@ function ud({
8448
8454
  },
8449
8455
  disabled: J,
8450
8456
  formHasChanges: s
8451
- }), Ct(), /* @__PURE__ */ H(Ke, {
8457
+ }), St(), /* @__PURE__ */ P(Ke, {
8452
8458
  children: [/* @__PURE__ */ n(Ge, {
8453
8459
  icon: /* @__PURE__ */ n(Kr, {}),
8454
8460
  tooltip: b("previous"),
@@ -8466,17 +8472,17 @@ function ud({
8466
8472
  D(N);
8467
8473
  }
8468
8474
  })]
8469
- }), Ct(), /* @__PURE__ */ n(_t, {
8475
+ }), St(), /* @__PURE__ */ n(It, {
8470
8476
  icon: /* @__PURE__ */ n(jn, {}),
8471
8477
  disabled: J,
8472
8478
  tooltip: b("actions"),
8473
8479
  items: e == null ? void 0 : e.action,
8474
8480
  onItemClick: async (L) => {
8475
- !L || !(await St({
8481
+ !L || !(await Tt({
8476
8482
  onFormSave: o
8477
8483
  })).succeed || U(L);
8478
8484
  }
8479
- }), /* @__PURE__ */ n(_t, {
8485
+ }), /* @__PURE__ */ n(It, {
8480
8486
  icon: /* @__PURE__ */ n(Kn, {}),
8481
8487
  disabled: J,
8482
8488
  tooltip: b("reports"),
@@ -8484,24 +8490,24 @@ function ud({
8484
8490
  onItemClick: async (L) => {
8485
8491
  if (!L)
8486
8492
  return;
8487
- const P = await St({
8493
+ const H = await Tt({
8488
8494
  onFormSave: o
8489
8495
  });
8490
- !P.succeed || U({
8496
+ !H.succeed || U({
8491
8497
  ...L,
8492
8498
  datas: {
8493
8499
  ...L.datas || {},
8494
- ids: [P.currentId]
8500
+ ids: [H.currentId]
8495
8501
  }
8496
8502
  });
8497
8503
  }
8498
- }), /* @__PURE__ */ n(_t, {
8504
+ }), /* @__PURE__ */ n(It, {
8499
8505
  icon: /* @__PURE__ */ n(jr, {}),
8500
8506
  disabled: J,
8501
8507
  tooltip: b("related"),
8502
8508
  items: e == null ? void 0 : e.relate,
8503
8509
  onItemClick: async (L) => {
8504
- !L || !(await St({
8510
+ !L || !(await Tt({
8505
8511
  onFormSave: o
8506
8512
  })).succeed || S({
8507
8513
  relateData: L,
@@ -8515,39 +8521,39 @@ function ud({
8515
8521
  disabled: J,
8516
8522
  attachments: _,
8517
8523
  onAddNewAttachment: async () => {
8518
- const L = await St({
8524
+ const L = await Tt({
8519
8525
  onFormSave: o
8520
8526
  });
8521
8527
  if (!L.succeed)
8522
8528
  return;
8523
- const P = L.currentId, z = m;
8529
+ const H = L.currentId, z = m;
8524
8530
  A({
8525
8531
  model: "ir.attachment",
8526
8532
  values: {
8527
- selection_associated_object: `${z},${P}`
8533
+ selection_associated_object: `${z},${H}`
8528
8534
  },
8529
8535
  forced_values: {
8530
8536
  res_model: z,
8531
- res_id: P
8537
+ res_id: H
8532
8538
  },
8533
8539
  initialViewType: "form"
8534
8540
  });
8535
8541
  },
8536
8542
  onListAllAttachments: async () => {
8537
- const L = await St({
8543
+ const L = await Tt({
8538
8544
  onFormSave: o
8539
8545
  });
8540
8546
  if (!L.succeed)
8541
8547
  return;
8542
- const P = L.currentId;
8548
+ const H = L.currentId;
8543
8549
  A({
8544
8550
  model: "ir.attachment",
8545
- domain: [["res_model", "=", `${m}`], ["res_id", "=", `${P}`]],
8551
+ domain: [["res_model", "=", `${m}`], ["res_id", "=", `${H}`]],
8546
8552
  initialViewType: "tree"
8547
8553
  });
8548
8554
  },
8549
8555
  onViewAttachmentDetails: async (L) => {
8550
- !(await St({
8556
+ !(await Tt({
8551
8557
  onFormSave: o
8552
8558
  })).succeed || A({
8553
8559
  model: "ir.attachment",
@@ -8558,12 +8564,12 @@ function ud({
8558
8564
  })]
8559
8565
  }) : null;
8560
8566
  }
8561
- function Ct() {
8567
+ function St() {
8562
8568
  return /* @__PURE__ */ n("div", {
8563
8569
  className: "inline-block w-2"
8564
8570
  });
8565
8571
  }
8566
- async function St({
8572
+ async function Tt({
8567
8573
  onFormSave: e
8568
8574
  }) {
8569
8575
  const t = await (e == null ? void 0 : e());
@@ -8601,14 +8607,14 @@ const {
8601
8607
  const y = (F) => {
8602
8608
  i == null || i(F.target.value);
8603
8609
  };
8604
- return /* @__PURE__ */ H(Se, {
8610
+ return /* @__PURE__ */ P(Se, {
8605
8611
  gutter: 8,
8606
8612
  wrap: !1,
8607
8613
  align: "middle",
8608
8614
  children: [l ? null : /* @__PURE__ */ n(le, {
8609
8615
  flex: "32px",
8610
8616
  children: v ? /* @__PURE__ */ n(Oe, {
8611
- icon: /* @__PURE__ */ n(At, {}),
8617
+ icon: /* @__PURE__ */ n(Rt, {}),
8612
8618
  onClick: () => {
8613
8619
  o(r) && (p(!1), g(!1));
8614
8620
  },
@@ -8702,7 +8708,7 @@ const {
8702
8708
  destroyOnClose: !0,
8703
8709
  onCancel: i,
8704
8710
  maskClosable: !1,
8705
- children: /* @__PURE__ */ H(nt, {
8711
+ children: /* @__PURE__ */ P(nt, {
8706
8712
  layout: "vertical",
8707
8713
  onFinish: a,
8708
8714
  autoComplete: "off",
@@ -8723,7 +8729,7 @@ const {
8723
8729
  align: "middle",
8724
8730
  justify: "end",
8725
8731
  children: /* @__PURE__ */ n(le, {
8726
- children: /* @__PURE__ */ H(Ke, {
8732
+ children: /* @__PURE__ */ P(Ke, {
8727
8733
  children: [/* @__PURE__ */ n(Oe, {
8728
8734
  icon: /* @__PURE__ */ n(jt, {}),
8729
8735
  htmlType: "button",
@@ -8735,7 +8741,7 @@ const {
8735
8741
  style: {
8736
8742
  marginLeft: 15
8737
8743
  },
8738
- icon: /* @__PURE__ */ n(At, {}),
8744
+ icon: /* @__PURE__ */ n(Rt, {}),
8739
8745
  htmlType: "submit",
8740
8746
  type: "primary",
8741
8747
  disabled: o,
@@ -8756,7 +8762,7 @@ function Mo(e) {
8756
8762
  } = e, {
8757
8763
  token: i
8758
8764
  } = gd();
8759
- return /* @__PURE__ */ H("div", {
8765
+ return /* @__PURE__ */ P("div", {
8760
8766
  style: {
8761
8767
  position: "relative"
8762
8768
  },
@@ -8805,7 +8811,7 @@ function yd({
8805
8811
  previousView: c,
8806
8812
  setPreviousView: f
8807
8813
  } = W(Xe);
8808
- return /* @__PURE__ */ H(Ke, {
8814
+ return /* @__PURE__ */ P(Ke, {
8809
8815
  wrap: !0,
8810
8816
  children: [/* @__PURE__ */ n(Mo, {
8811
8817
  icon: /* @__PURE__ */ n(qr, {
@@ -8864,7 +8870,7 @@ function yn(e) {
8864
8870
  } = vd();
8865
8871
  function m() {
8866
8872
  if ((o == null ? void 0 : o.type) === "form")
8867
- return s ? u === 0 ? /* @__PURE__ */ H(ee, {
8873
+ return s ? u === 0 ? /* @__PURE__ */ P(ee, {
8868
8874
  children: [f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Xt, {
8869
8875
  copyable: {
8870
8876
  icon: /* @__PURE__ */ n(Un, {
@@ -8875,7 +8881,7 @@ function yn(e) {
8875
8881
  },
8876
8882
  children: s
8877
8883
  }), ")"]
8878
- }) : /* @__PURE__ */ H(ee, {
8884
+ }) : /* @__PURE__ */ P(ee, {
8879
8885
  children: [f("register"), " ", a === void 0 ? 1 : a + 1, " /", " ", l.length, " ", f("of"), " ", u, " - ", f("editingDocument"), " (id:", " ", /* @__PURE__ */ n(Xt, {
8880
8886
  copyable: !0,
8881
8887
  children: s
@@ -8883,14 +8889,14 @@ function yn(e) {
8883
8889
  }) : "";
8884
8890
  if ((o == null ? void 0 : o.type) === "tree" && c) {
8885
8891
  if (c.length === 1)
8886
- return /* @__PURE__ */ H(ee, {
8892
+ return /* @__PURE__ */ P(ee, {
8887
8893
  children: ["1 ", f("selectedRegisters"), " - (id:", " ", /* @__PURE__ */ n(Xt, {
8888
8894
  copyable: !0,
8889
8895
  children: c[0].id
8890
8896
  }), ")"]
8891
8897
  });
8892
8898
  if (c.length > 1)
8893
- return /* @__PURE__ */ H(ee, {
8899
+ return /* @__PURE__ */ P(ee, {
8894
8900
  children: [c.length, " ", f("selectedRegisters"), /* @__PURE__ */ n(Xt, {
8895
8901
  copyable: {
8896
8902
  text: c.map((v) => v.id).join(", ")
@@ -8900,13 +8906,13 @@ function yn(e) {
8900
8906
  }
8901
8907
  return null;
8902
8908
  }
8903
- return /* @__PURE__ */ H("div", {
8909
+ return /* @__PURE__ */ P("div", {
8904
8910
  style: {
8905
8911
  position: "sticky",
8906
8912
  top: 80,
8907
8913
  zIndex: 3
8908
8914
  },
8909
- children: [/* @__PURE__ */ H(Se, {
8915
+ children: [/* @__PURE__ */ P(Se, {
8910
8916
  className: "shadow-md",
8911
8917
  style: {
8912
8918
  padding: "1em",
@@ -8914,7 +8920,7 @@ function yn(e) {
8914
8920
  backgroundColor: d.colorPrimaryBg
8915
8921
  },
8916
8922
  align: "middle",
8917
- children: [/* @__PURE__ */ H(le, {
8923
+ children: [/* @__PURE__ */ P(le, {
8918
8924
  flex: 2,
8919
8925
  children: [/* @__PURE__ */ n(wd, {
8920
8926
  level: 3,
@@ -9000,7 +9006,7 @@ const bd = (e) => {
9000
9006
  limit: E,
9001
9007
  setLimit: x
9002
9008
  });
9003
- return !r || !t ? null : /* @__PURE__ */ H(ee, {
9009
+ return !r || !t ? null : /* @__PURE__ */ P(ee, {
9004
9010
  children: [/* @__PURE__ */ n(yn, {
9005
9011
  title: t.name,
9006
9012
  children: /* @__PURE__ */ n(yd, {
@@ -9026,7 +9032,7 @@ const bd = (e) => {
9026
9032
  searchVisible: g,
9027
9033
  searchValues: O,
9028
9034
  showLimitOptions: !1
9029
- }), k ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ n(gn, {
9035
+ }), k ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(gn, {
9030
9036
  ref: u,
9031
9037
  view_id: t.view_id,
9032
9038
  model: i,
@@ -9051,7 +9057,7 @@ const bd = (e) => {
9051
9057
  setResults: d,
9052
9058
  setCurrentItemIndex: m
9053
9059
  } = e;
9054
- return t ? /* @__PURE__ */ H(ee, {
9060
+ return t ? /* @__PURE__ */ P(ee, {
9055
9061
  children: [/* @__PURE__ */ n(yn, {
9056
9062
  children: /* @__PURE__ */ n(ud, {
9057
9063
  toolbar: a == null ? void 0 : a.toolbar
@@ -9097,7 +9103,7 @@ function Cd(e) {
9097
9103
  form: s,
9098
9104
  onFinish: u,
9099
9105
  autoComplete: "off",
9100
- children: /* @__PURE__ */ H(Se, {
9106
+ children: /* @__PURE__ */ P(Se, {
9101
9107
  align: "middle",
9102
9108
  justify: "end",
9103
9109
  children: [/* @__PURE__ */ n(le, {
@@ -9177,7 +9183,7 @@ function Td(e) {
9177
9183
  } = W(Sd), {
9178
9184
  t: $,
9179
9185
  lang: R
9180
- } = W(we), S = W(kt), {
9186
+ } = W(we), S = W(Mt), {
9181
9187
  processAction: A
9182
9188
  } = S || {}, [M, D] = T(!1), N = y !== void 0 && y.trim().length > 0;
9183
9189
  function k() {
@@ -9239,9 +9245,11 @@ function Td(e) {
9239
9245
  }
9240
9246
  });
9241
9247
  }
9242
- return /* @__PURE__ */ H(Ke, {
9248
+ return /* @__PURE__ */ P(Ke, {
9243
9249
  wrap: !0,
9244
- children: [b ? null : /* @__PURE__ */ H(ee, {
9250
+ children: [F && /* @__PURE__ */ P(ee, {
9251
+ children: [/* @__PURE__ */ n(ke, {}), yt(), yt()]
9252
+ }), b ? null : /* @__PURE__ */ P(ee, {
9245
9253
  children: [/* @__PURE__ */ n(Cd, {
9246
9254
  disabled: l || a || F,
9247
9255
  searchText: y,
@@ -9261,7 +9269,7 @@ function Td(e) {
9261
9269
  },
9262
9270
  disabled: l || a || F,
9263
9271
  badgeNumber: v == null ? void 0 : v.length
9264
- }), $t(), /* @__PURE__ */ n(Ao, {
9272
+ }), yt(), /* @__PURE__ */ n(Ao, {
9265
9273
  disabled: F
9266
9274
  }), /* @__PURE__ */ n(Ge, {
9267
9275
  icon: /* @__PURE__ */ n(Un, {}),
@@ -9275,7 +9283,7 @@ function Td(e) {
9275
9283
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || F,
9276
9284
  loading: a,
9277
9285
  onClick: k
9278
- }), $t()]
9286
+ }), yt()]
9279
9287
  }), /* @__PURE__ */ n(Ge, {
9280
9288
  icon: /* @__PURE__ */ n(Ur, {}),
9281
9289
  tooltip: $("showLogs"),
@@ -9293,8 +9301,8 @@ function Td(e) {
9293
9301
  var U;
9294
9302
  (U = f == null ? void 0 : f.current) == null || U.refreshResults();
9295
9303
  }
9296
- }), !b && /* @__PURE__ */ H(ee, {
9297
- children: [$t(), /* @__PURE__ */ n(Zn, {
9304
+ }), !b && /* @__PURE__ */ P(ee, {
9305
+ children: [yt(), /* @__PURE__ */ n(Zn, {
9298
9306
  currentView: r,
9299
9307
  availableViews: t,
9300
9308
  onChangeView: (U) => {
@@ -9303,7 +9311,7 @@ function Td(e) {
9303
9311
  previousView: w,
9304
9312
  disabled: F
9305
9313
  })]
9306
- }), $t(), /* @__PURE__ */ n(_t, {
9314
+ }), yt(), /* @__PURE__ */ n(It, {
9307
9315
  icon: /* @__PURE__ */ n(jn, {}),
9308
9316
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || F,
9309
9317
  tooltip: $("actions"),
@@ -9311,7 +9319,7 @@ function Td(e) {
9311
9319
  onItemClick: (U) => {
9312
9320
  !U || K(U);
9313
9321
  }
9314
- }), /* @__PURE__ */ n(_t, {
9322
+ }), /* @__PURE__ */ n(It, {
9315
9323
  icon: /* @__PURE__ */ n(Kn, {}),
9316
9324
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || F,
9317
9325
  tooltip: $("reports"),
@@ -9325,10 +9333,10 @@ function Td(e) {
9325
9333
  }
9326
9334
  });
9327
9335
  }
9328
- }), C && /* @__PURE__ */ H(ee, {
9329
- children: [$t(), /* @__PURE__ */ n(_t, {
9336
+ }), C && /* @__PURE__ */ P(ee, {
9337
+ children: [yt(), /* @__PURE__ */ n(It, {
9330
9338
  icon: /* @__PURE__ */ n($r, {
9331
- component: () => /* @__PURE__ */ H("svg", {
9339
+ component: () => /* @__PURE__ */ P("svg", {
9332
9340
  xmlns: "http://www.w3.org/2000/svg",
9333
9341
  className: "icon icon-tabler icon-tabler-database-export",
9334
9342
  width: "1em",
@@ -9365,8 +9373,8 @@ function Td(e) {
9365
9373
  }],
9366
9374
  onItemClick: (U) => {
9367
9375
  if (U.id === "print_screen") {
9368
- let L = (o == null ? void 0 : o.map((P) => P.id)) || [];
9369
- L.length === 0 && (L = (V == null ? void 0 : V.map((P) => P.id)) || []), K({
9376
+ let L = (o == null ? void 0 : o.map((H) => H.id)) || [];
9377
+ L.length === 0 && (L = (V == null ? void 0 : V.map((H) => H.id)) || []), K({
9370
9378
  id: -1,
9371
9379
  model: c,
9372
9380
  report_name: "printscreen.list",
@@ -9396,7 +9404,7 @@ function Td(e) {
9396
9404
  })]
9397
9405
  });
9398
9406
  }
9399
- function $t() {
9407
+ function yt() {
9400
9408
  return /* @__PURE__ */ n("div", {
9401
9409
  className: "inline-block w-2"
9402
9410
  });
@@ -9420,7 +9428,7 @@ const Fd = (e) => {
9420
9428
  currentView: p,
9421
9429
  setPreviousView: h
9422
9430
  } = W(Xe);
9423
- return t ? /* @__PURE__ */ H(ee, {
9431
+ return t ? /* @__PURE__ */ P(ee, {
9424
9432
  children: [/* @__PURE__ */ n(yn, {
9425
9433
  children: /* @__PURE__ */ n(Td, {
9426
9434
  toolbar: a == null ? void 0 : a.toolbar,
@@ -9475,7 +9483,7 @@ function _d() {
9475
9483
  } = W(Xn), {
9476
9484
  t: o
9477
9485
  } = W(we);
9478
- return /* @__PURE__ */ H(Ke, {
9486
+ return /* @__PURE__ */ P(Ke, {
9479
9487
  wrap: !0,
9480
9488
  children: [/* @__PURE__ */ n(Ge, {
9481
9489
  icon: /* @__PURE__ */ n(Ci, {
@@ -9520,7 +9528,7 @@ const Dd = (e) => {
9520
9528
  } = e, r = ue(), i = W(ot), {
9521
9529
  openShortcut: o
9522
9530
  } = i || {};
9523
- return t ? /* @__PURE__ */ H(Od, {
9531
+ return t ? /* @__PURE__ */ P(Od, {
9524
9532
  dashboardRef: r,
9525
9533
  openAction: (s) => {
9526
9534
  o(s);
@@ -9569,13 +9577,13 @@ function Ad(e, t) {
9569
9577
  treeExpandable: h = !1,
9570
9578
  limit: g
9571
9579
  } = e, [y, F] = T(), [_, w] = T([]), [V, I] = T(!0), E = m || void 0, [x, b] = T(E), [O, C] = T([]), [$, R] = T(), [S, A] = T([]), [M, D] = T(), [N, k] = T(0), [j, q] = T(!1), [K, J] = T(!1), [U, L] = T(), {
9572
- t: P
9580
+ t: H
9573
9581
  } = W(we), z = ue(), oe = ue(), ce = W(ot), {
9574
9582
  setCurrentView: Z,
9575
9583
  setCurrentId: X,
9576
9584
  tabs: fe,
9577
9585
  activeKey: xe,
9578
- openAction: ke,
9586
+ openAction: Me,
9579
9587
  onRemoveTab: _e
9580
9588
  } = ce || {};
9581
9589
  Li("ctrl+g,command+g", (te) => {
@@ -9587,7 +9595,7 @@ function Ad(e, t) {
9587
9595
  function se(te) {
9588
9596
  F(te), Z == null || Z(te);
9589
9597
  }
9590
- wt(t, () => ({
9598
+ bt(t, () => ({
9591
9599
  canWeClose: Re
9592
9600
  }));
9593
9601
  const be = async () => {
@@ -9680,7 +9688,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9680
9688
  async function Te() {
9681
9689
  xe === u && (y.type === "form" && !await z.current.cancelUnsavedChanges() || q(!0));
9682
9690
  }
9683
- async function Me(te) {
9691
+ async function Ee(te) {
9684
9692
  var Ce;
9685
9693
  J(!0);
9686
9694
  const Ie = S.findIndex((De) => De.id === te);
@@ -9695,14 +9703,14 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9695
9703
  } catch {
9696
9704
  }
9697
9705
  if (!Ne) {
9698
- J(!1), q(!1), lt(P("idNotFound"));
9706
+ J(!1), q(!1), lt(H("idNotFound"));
9699
9707
  return;
9700
9708
  }
9701
9709
  } else
9702
9710
  Ne = S[Ie];
9703
9711
  J(!1), q(!1);
9704
9712
  const ye = s.find((De) => De[1] === "form");
9705
- ke({
9713
+ Me({
9706
9714
  domain: [],
9707
9715
  context: o,
9708
9716
  model: i,
@@ -9779,7 +9787,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9779
9787
  se(te);
9780
9788
  }
9781
9789
  }
9782
- return V ? /* @__PURE__ */ n($e, {}) : y ? /* @__PURE__ */ H(il, {
9790
+ return V ? /* @__PURE__ */ n(ke, {}) : y ? /* @__PURE__ */ P(il, {
9783
9791
  title: a,
9784
9792
  currentView: y,
9785
9793
  setCurrentView: se,
@@ -9802,11 +9810,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9802
9810
  setSelectedRowItems: C,
9803
9811
  setSearchTreeNameSearch: L,
9804
9812
  searchTreeNameSearch: U,
9805
- goToResourceId: Me,
9813
+ goToResourceId: Ee,
9806
9814
  limit: g,
9807
9815
  children: [Ze(), /* @__PURE__ */ n(pd, {
9808
9816
  visible: j,
9809
- onIdSubmitted: Me,
9817
+ onIdSubmitted: Ee,
9810
9818
  isSearching: K,
9811
9819
  onCancel: () => {
9812
9820
  q(!1);
@@ -9814,7 +9822,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9814
9822
  })]
9815
9823
  }) : null;
9816
9824
  }
9817
- const Eo = vt(Ad);
9825
+ const Eo = wt(Ad);
9818
9826
  async function Rd({
9819
9827
  actionId: e,
9820
9828
  rootContext: t = {},
@@ -9823,7 +9831,7 @@ async function Rd({
9823
9831
  const i = "ir.actions.act_window", o = `${i},${e}`, s = await B.getHandler().getActionData({
9824
9832
  action: o,
9825
9833
  context: t
9826
- }), a = yt({
9834
+ }), a = vt({
9827
9835
  context: s.context,
9828
9836
  values: r,
9829
9837
  fields: {}
@@ -9916,7 +9924,7 @@ const kd = Hi(Bi), Md = (e) => {
9916
9924
  } = e, {
9917
9925
  token: s
9918
9926
  } = Ed();
9919
- return /* @__PURE__ */ H("div", {
9927
+ return /* @__PURE__ */ P("div", {
9920
9928
  className: "shadow-md",
9921
9929
  style: {
9922
9930
  height: "100%",
@@ -9927,7 +9935,7 @@ const kd = Hi(Bi), Md = (e) => {
9927
9935
  backgroundColor: "white",
9928
9936
  borderRadius: s.borderRadius
9929
9937
  },
9930
- children: [/* @__PURE__ */ H(Se, {
9938
+ children: [/* @__PURE__ */ P(Se, {
9931
9939
  align: "middle",
9932
9940
  style: {
9933
9941
  borderBottom: "1px solid #ddd",
@@ -9982,8 +9990,8 @@ function Pd(e) {
9982
9990
  }, U = async () => {
9983
9991
  const X = K.current.length > 0 ? K.current : s, fe = hn(E.current, X), {
9984
9992
  colors: xe
9985
- } = Ft(p), {
9986
- totalItems: ke,
9993
+ } = Ot(p), {
9994
+ totalItems: Me,
9987
9995
  results: _e,
9988
9996
  attrsEvaluated: de
9989
9997
  } = await B.getHandler().searchForTree({
@@ -9998,7 +10006,7 @@ function Pd(e) {
9998
10006
  }
9999
10007
  });
10000
10008
  R(Qt(de));
10001
- const se = Ot({
10009
+ const se = _t({
10002
10010
  resultsToSort: _e,
10003
10011
  sorter: S,
10004
10012
  fields: {
@@ -10007,7 +10015,7 @@ function Pd(e) {
10007
10015
  }
10008
10016
  });
10009
10017
  q(!1), C(se);
10010
- const be = await ke;
10018
+ const be = await Me;
10011
10019
  b(be);
10012
10020
  }, L = async () => {
10013
10021
  try {
@@ -10019,7 +10027,7 @@ function Pd(e) {
10019
10027
  pe(() => {
10020
10028
  !f || a && L();
10021
10029
  }, [F, w, f, a]);
10022
- const P = async (X) => {
10030
+ const H = async (X) => {
10023
10031
  d(!1), c(!0), k(void 0);
10024
10032
  try {
10025
10033
  X === "action" ? await z() : await oe(), d(!0);
@@ -10051,7 +10059,7 @@ function Pd(e) {
10051
10059
  h(fe);
10052
10060
  };
10053
10061
  pe(() => {
10054
- t ? P("action") : r && P("model");
10062
+ t ? H("action") : r && H("model");
10055
10063
  }, [t, r]);
10056
10064
  const ce = (X) => {
10057
10065
  const {
@@ -10062,7 +10070,7 @@ function Pd(e) {
10062
10070
  model: m,
10063
10071
  treeView: p
10064
10072
  });
10065
- }, Z = () => !p || !g ? null : /* @__PURE__ */ H("div", {
10073
+ }, Z = () => !p || !g ? null : /* @__PURE__ */ P("div", {
10066
10074
  style: {
10067
10075
  overflowY: "scroll"
10068
10076
  },
@@ -10085,7 +10093,7 @@ function Pd(e) {
10085
10093
  sorter: S,
10086
10094
  onChangeSort: (X) => {
10087
10095
  A == null || A(X);
10088
- const fe = Ot({
10096
+ const fe = _t({
10089
10097
  resultsToSort: O,
10090
10098
  sorter: X,
10091
10099
  fields: {
@@ -10103,7 +10111,7 @@ function Pd(e) {
10103
10111
  message: N,
10104
10112
  type: "error",
10105
10113
  banner: !0
10106
- }) : u ? /* @__PURE__ */ n($e, {
10114
+ }) : u ? /* @__PURE__ */ n(ke, {
10107
10115
  style: {
10108
10116
  padding: "2rem"
10109
10117
  }
@@ -10150,7 +10158,7 @@ function Bd(e, t) {
10150
10158
  } = W(Xn), h = ue(), g = ue();
10151
10159
  pe(() => {
10152
10160
  y();
10153
- }, [r, o, i]), wt(t, () => ({
10161
+ }, [r, o, i]), bt(t, () => ({
10154
10162
  refresh: () => {
10155
10163
  y();
10156
10164
  },
@@ -10342,12 +10350,12 @@ function Bd(e, t) {
10342
10350
  const [Z, X] = ce, {
10343
10351
  actionId: fe,
10344
10352
  actionType: xe,
10345
- title: ke,
10353
+ title: Me,
10346
10354
  model: _e
10347
10355
  } = O, de = {
10348
10356
  action_id: fe,
10349
10357
  action_type: xe,
10350
- name: ke,
10358
+ name: Me,
10351
10359
  res_id: oe.id,
10352
10360
  res_model: _e,
10353
10361
  view_id: Z,
@@ -10377,7 +10385,7 @@ function Bd(e, t) {
10377
10385
  limit: J
10378
10386
  });
10379
10387
  }
10380
- let P;
10388
+ let H;
10381
10389
  const z = N.find((oe) => {
10382
10390
  const [, ce] = oe;
10383
10391
  return ce === "tree";
@@ -10389,7 +10397,7 @@ function Bd(e, t) {
10389
10397
  title: fe,
10390
10398
  model: xe
10391
10399
  } = O;
10392
- P = {
10400
+ H = {
10393
10401
  action_id: Z,
10394
10402
  action_type: X,
10395
10403
  name: fe,
@@ -10403,14 +10411,14 @@ function Bd(e, t) {
10403
10411
  id: R,
10404
10412
  title: D,
10405
10413
  parms: U,
10406
- action: P,
10414
+ action: H,
10407
10415
  openAction: v,
10408
10416
  children: L
10409
10417
  }, R);
10410
10418
  })
10411
10419
  });
10412
10420
  }
10413
- const jd = vt(Bd), Kd = (e) => {
10421
+ const jd = wt(Bd), Kd = (e) => {
10414
10422
  const {
10415
10423
  ooui: t
10416
10424
  } = e;
@@ -10437,7 +10445,7 @@ const jd = vt(Bd), Kd = (e) => {
10437
10445
  } = r, y = W(Le), {
10438
10446
  getContext: F
10439
10447
  } = y || {};
10440
- xt(() => {
10448
+ Ct(() => {
10441
10449
  w();
10442
10450
  }, [o]);
10443
10451
  const _ = (x) => {
@@ -10451,7 +10459,7 @@ const jd = vt(Bd), Kd = (e) => {
10451
10459
  if (r.domain) {
10452
10460
  const b = await B.getHandler().evalDomain({
10453
10461
  domain: r.domain,
10454
- values: Rt({
10462
+ values: kt({
10455
10463
  fields: y == null ? void 0 : y.getFields(),
10456
10464
  values: y.getPlainValues()
10457
10465
  }),
@@ -10510,8 +10518,8 @@ const jd = vt(Bd), Kd = (e) => {
10510
10518
  });
10511
10519
  }), _(b);
10512
10520
  };
10513
- return f && a.length === 0 ? /* @__PURE__ */ n($e, {}) : /* @__PURE__ */ n(ee, {
10514
- children: /* @__PURE__ */ H("div", {
10521
+ return f && a.length === 0 ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(ee, {
10522
+ children: /* @__PURE__ */ P("div", {
10515
10523
  className: "flex flex-row",
10516
10524
  children: [/* @__PURE__ */ n(Nt.Group, {
10517
10525
  value: a.length ? s : [],
@@ -10529,7 +10537,7 @@ const jd = vt(Bd), Kd = (e) => {
10529
10537
  })
10530
10538
  }))
10531
10539
  })
10532
- }), !p && /* @__PURE__ */ H(Ke, {
10540
+ }), !p && /* @__PURE__ */ P(Ke, {
10533
10541
  children: [/* @__PURE__ */ n(Oe, {
10534
10542
  onClick: V,
10535
10543
  disabled: s.length == a.length,
@@ -10710,7 +10718,7 @@ function ru(e, t) {
10710
10718
  closable: !0,
10711
10719
  content: /* @__PURE__ */ n(nu, {})
10712
10720
  }]), f = ue(/* @__PURE__ */ new Map()), d = ue();
10713
- wt(t, () => ({
10721
+ bt(t, () => ({
10714
10722
  retrieveAndOpenAction: p,
10715
10723
  openShortcut: y
10716
10724
  }));
@@ -10743,7 +10751,7 @@ function ru(e, t) {
10743
10751
  Ye("Action type not supported");
10744
10752
  return;
10745
10753
  }
10746
- const [C, $] = w.split(","), R = parseInt($), S = yt({
10754
+ const [C, $] = w.split(","), R = parseInt($), S = vt({
10747
10755
  context: O.context,
10748
10756
  values: i,
10749
10757
  fields: {}
@@ -10763,8 +10771,8 @@ function ru(e, t) {
10763
10771
  limit: q
10764
10772
  } = O, K = j === "tree", J = [];
10765
10773
  for (const L of D) {
10766
- const [P, z] = L;
10767
- if (P)
10774
+ const [H, z] = L;
10775
+ if (H)
10768
10776
  J.push(L);
10769
10777
  else if (z === "dashboard")
10770
10778
  J.push([void 0, "dashboard"]);
@@ -10774,7 +10782,7 @@ function ru(e, t) {
10774
10782
  } = await B.getHandler().getView({
10775
10783
  model: M,
10776
10784
  type: z,
10777
- id: P,
10785
+ id: H,
10778
10786
  context: {
10779
10787
  ...o,
10780
10788
  ...S
@@ -10785,16 +10793,16 @@ function ru(e, t) {
10785
10793
  }
10786
10794
  let U;
10787
10795
  if (E) {
10788
- const [L, P] = J.find(([z, oe]) => oe === E);
10796
+ const [L, H] = J.find(([z, oe]) => oe === E);
10789
10797
  U = {
10790
10798
  id: L,
10791
- type: P
10799
+ type: H
10792
10800
  };
10793
10801
  } else {
10794
- const [L, P] = J[0];
10802
+ const [L, H] = J[0];
10795
10803
  U = {
10796
10804
  id: L,
10797
- type: P
10805
+ type: H
10798
10806
  };
10799
10807
  }
10800
10808
  _({
@@ -10850,7 +10858,7 @@ function ru(e, t) {
10850
10858
  } = w, [M, D] = $[0], N = {
10851
10859
  id: M,
10852
10860
  type: D
10853
- }, k = yt({
10861
+ }, k = vt({
10854
10862
  context: O,
10855
10863
  values: {
10856
10864
  ...I,
@@ -10859,7 +10867,7 @@ function ru(e, t) {
10859
10867
  fields: V
10860
10868
  }), j = C ? await B.getHandler().evalDomain({
10861
10869
  domain: C,
10862
- values: Rt({
10870
+ values: kt({
10863
10871
  fields: V,
10864
10872
  values: {
10865
10873
  ...I,
@@ -10897,7 +10905,7 @@ function ru(e, t) {
10897
10905
  } = w, b = `${I},${V}`, O = await B.getHandler().getActionData({
10898
10906
  action: b,
10899
10907
  context: o
10900
- }), C = yt({
10908
+ }), C = vt({
10901
10909
  context: O.context,
10902
10910
  values: i,
10903
10911
  fields: {}
@@ -10917,24 +10925,24 @@ function ru(e, t) {
10917
10925
  limit: N
10918
10926
  } = O, k = D === "tree", j = [];
10919
10927
  for (const U of S) {
10920
- const [L, P] = U;
10928
+ const [L, H] = U;
10921
10929
  if (L)
10922
10930
  j.push(U);
10923
- else if (P === "dashboard")
10931
+ else if (H === "dashboard")
10924
10932
  j.push([void 0, "dashboard"]);
10925
10933
  else {
10926
10934
  const {
10927
10935
  view_id: z
10928
10936
  } = await B.getHandler().getView({
10929
10937
  model: R,
10930
- type: P,
10938
+ type: H,
10931
10939
  id: L,
10932
10940
  context: {
10933
10941
  ...o,
10934
10942
  ...C
10935
10943
  }
10936
10944
  });
10937
- j.push([z, P]);
10945
+ j.push([z, H]);
10938
10946
  }
10939
10947
  }
10940
10948
  let q, K;
@@ -11084,7 +11092,7 @@ function ru(e, t) {
11084
11092
  })
11085
11093
  });
11086
11094
  }
11087
- const Mu = vt(ru), {
11095
+ const Mu = wt(ru), {
11088
11096
  useToken: ou
11089
11097
  } = Pe;
11090
11098
  function iu(e) {
@@ -11097,7 +11105,7 @@ function iu(e) {
11097
11105
  } = e, {
11098
11106
  token: a
11099
11107
  } = ou(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
11100
- return /* @__PURE__ */ H("div", {
11108
+ return /* @__PURE__ */ P("div", {
11101
11109
  onClick: () => {
11102
11110
  !o && s(i);
11103
11111
  },
@@ -11264,9 +11272,9 @@ const {
11264
11272
  model: "ir.ui.view_sc"
11265
11273
  });
11266
11274
  }
11267
- const R = /* @__PURE__ */ H(He, {
11275
+ const R = /* @__PURE__ */ P(He, {
11268
11276
  onClick: b,
11269
- children: [/* @__PURE__ */ H("div", {
11277
+ children: [/* @__PURE__ */ P("div", {
11270
11278
  style: {
11271
11279
  width: 300,
11272
11280
  padding: 5,
@@ -11294,7 +11302,7 @@ const {
11294
11302
  })
11295
11303
  })
11296
11304
  })]
11297
- }), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n($e, {
11305
+ }), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n(ke, {
11298
11306
  style: {
11299
11307
  padding: "1rem"
11300
11308
  }
@@ -11318,7 +11326,7 @@ const {
11318
11326
  title: M,
11319
11327
  type: D
11320
11328
  }) {
11321
- return /* @__PURE__ */ H(Se, {
11329
+ return /* @__PURE__ */ P(Se, {
11322
11330
  wrap: !1,
11323
11331
  children: [/* @__PURE__ */ n(le, {
11324
11332
  flex: "none",
@@ -11356,7 +11364,7 @@ const {
11356
11364
  }
11357
11365
  await x(), a(!s);
11358
11366
  }
11359
- return /* @__PURE__ */ H(ee, {
11367
+ return /* @__PURE__ */ P(ee, {
11360
11368
  children: [/* @__PURE__ */ n(Oe, {
11361
11369
  type: s ? "primary" : "default",
11362
11370
  icon: s ? /* @__PURE__ */ n(Hr, {
@@ -11380,7 +11388,7 @@ const {
11380
11388
  borderTopLeftRadius: 0,
11381
11389
  borderBottomLeftRadius: 0
11382
11390
  },
11383
- icon: /* @__PURE__ */ n(Vt, {
11391
+ icon: /* @__PURE__ */ n(At, {
11384
11392
  style: {
11385
11393
  fontSize: "0.5em"
11386
11394
  }