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

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