@gisce/react-ooui 1.4.3 → 1.4.4-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import Je, { useContext as Y, useState as T, useEffect as pe, useRef as de, useCallback as $e, forwardRef as wt, useImperativeHandle as bt } from "react";
2
- import { Tooltip as ht, theme as Pe, Typography as an, Form as ot, Row as Ce, Col as le, Modal as Ge, Button as _e, Dropdown as Bt, Menu as He, Spin as Le, Divider as ln, Space as Ye, Input as nt, Select as xt, Checkbox as Nt, Alert as Ze, Timeline as tr, Statistic as Qo, Card as ei, Tag as ti, message as xn, DatePicker as Mn, TimePicker as Dr, InputNumber as En, Progress as ni, Avatar as ri, Badge as oi, Pagination as ii, Tabs as Vr, Popover as si, Radio as nr, Switch as ai, Steps as rr, Layout as li } from "antd";
3
- import { Label as Vt, Field as _n, Tree as Ar, Reference as ci, Selection as $n, Many2one as Rr, Boolean as di, Container as ui, parseContext as vt, Form as kr, Integer as In, SearchFieldTypes as ft, SearchFilter as fi, transformDomainForChildWidget as Mr, graphProcessor as Er, parseGraph as Ln, graphFieldUtils as mi } from "@gisce/ooui";
1
+ import Je, { useContext as Y, useState as T, useEffect as pe, useRef as de, useCallback as Le, forwardRef as bt, useImperativeHandle as xt } from "react";
2
+ import { Tooltip as ht, theme as Pe, Typography as an, Form as ot, Row as Ce, Col as le, Modal as Ge, Button as _e, Dropdown as Bt, Menu as He, Spin as Me, Divider as ln, Space as Ye, Input as nt, Select as Ct, Checkbox as Nt, Alert as Ze, Timeline as tr, Statistic as Qo, Card as ei, Tag as ti, message as xn, DatePicker as Mn, TimePicker as Dr, InputNumber as En, Progress as ni, Avatar as ri, Badge as oi, Pagination as ii, Tabs as Vr, Popover as si, Radio as nr, Switch as ai, Steps as rr, Layout as li } from "antd";
3
+ import { Label as At, Field as _n, Tree as Ar, Reference as ci, Selection as $n, Many2one as Rr, Boolean as di, Container as ui, parseContext as wt, Form as kr, Integer as In, SearchFieldTypes as ft, SearchFilter as fi, transformDomainForChildWidget as Mr, graphProcessor as Er, parseGraph as Ln, graphFieldUtils as mi } from "@gisce/ooui";
4
4
  import * as or from "@ant-design/icons";
5
- import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as pt, LoadingOutlined as rt, 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 hi, SearchOutlined as Bn, RightCircleOutlined as pi, ThunderboltOutlined as jn, PrinterOutlined as Kn, EnterOutlined as jr, PlusSquareOutlined as gi, MinusSquareOutlined as yi, FileAddOutlined as cn, AlignLeftOutlined as vi, ApiOutlined as wi, DeleteOutlined as Yn, LeftOutlined as Kr, RightOutlined as Yr, EyeOutlined as bi, FormOutlined as Pt, TableOutlined as Wn, AreaChartOutlined as xi, CalendarOutlined as Ci, LinkOutlined as Wr, SaveOutlined as Si, CopyOutlined as Un, InfoCircleOutlined as Ur, ReloadOutlined as dn, EditOutlined as Gr, FilterOutlined as qr, CloseCircleFilled as Ti, BorderOuterOutlined as Fi, SettingOutlined as Oi, ExportOutlined as _i } from "@ant-design/icons";
5
+ import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as pt, LoadingOutlined as rt, DownOutlined as Rt, WarningOutlined as Nr, CloseOutlined as jt, CheckOutlined as kt, TranslationOutlined as Pr, FolderOpenOutlined as Nn, DownloadOutlined as Pn, ClearOutlined as Hn, StarFilled as Hr, StarOutlined as Br, UpOutlined as hi, SearchOutlined as Bn, RightCircleOutlined as pi, ThunderboltOutlined as jn, PrinterOutlined as Kn, EnterOutlined as jr, PlusSquareOutlined as gi, MinusSquareOutlined as yi, FileAddOutlined as cn, AlignLeftOutlined as vi, ApiOutlined as wi, DeleteOutlined as Yn, LeftOutlined as Kr, RightOutlined as Yr, EyeOutlined as bi, FormOutlined as Pt, TableOutlined as Wn, AreaChartOutlined as xi, CalendarOutlined as Ci, LinkOutlined as Wr, SaveOutlined as Si, CopyOutlined as Un, InfoCircleOutlined as Ur, ReloadOutlined as dn, EditOutlined as Gr, FilterOutlined as qr, CloseCircleFilled as Ti, BorderOuterOutlined as Fi, SettingOutlined as Oi, ExportOutlined as _i } from "@ant-design/icons";
6
6
  import { Interweave as Gn } from "interweave";
7
7
  import { jsxs as P, jsx as n, Fragment as ne } from "react/jsx-runtime";
8
8
  import * as ir from "@tabler/icons-react";
@@ -11,7 +11,7 @@ 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 Di, Column as Vi, Pie as Ai } from "@ant-design/plots";
14
- import Ct from "use-deep-compare-effect";
14
+ import St from "use-deep-compare-effect";
15
15
  import { Table as Ri } from "@gisce/react-formiga-table";
16
16
  import { fileTypeFromBuffer as ki } from "file-type-buffer-browser";
17
17
  import { isPresetStatusColor as Mi, isPresetColor as Ei } from "antd/lib/_util/colors";
@@ -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 At({
386
386
  name: c + "_label",
387
387
  string: f,
388
388
  help: d,
@@ -704,7 +704,7 @@ const Jr = (e) => {
704
704
  children: /* @__PURE__ */ P(Bt.Button, {
705
705
  disabled: !a || v,
706
706
  onClick: V,
707
- icon: /* @__PURE__ */ n(At, {}),
707
+ icon: /* @__PURE__ */ n(Rt, {}),
708
708
  type: f ? "primary" : void 0,
709
709
  overlay: /* @__PURE__ */ n(is, {
710
710
  ooui: i,
@@ -944,7 +944,7 @@ const Zr = (e) => {
944
944
  p(!1), a();
945
945
  }
946
946
  function E() {
947
- return d ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
947
+ return d ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
948
948
  children: [V(), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(Ce, {
949
949
  justify: "end",
950
950
  children: /* @__PURE__ */ P(Ye, {
@@ -954,7 +954,7 @@ const Zr = (e) => {
954
954
  disabled: v,
955
955
  children: u("cancel")
956
956
  }), /* @__PURE__ */ n(_e, {
957
- icon: v ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Rt, {}),
957
+ icon: v ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(kt, {}),
958
958
  disabled: v,
959
959
  onClick: D,
960
960
  style: {
@@ -1121,7 +1121,7 @@ const {
1121
1121
  defaultSeed: ms
1122
1122
  } = Pe, hs = fs(ms), {
1123
1123
  Option: ps
1124
- } = xt, eo = (e) => {
1124
+ } = Ct, eo = (e) => {
1125
1125
  const {
1126
1126
  ooui: t
1127
1127
  } = e, {
@@ -1151,7 +1151,7 @@ const {
1151
1151
  children: m
1152
1152
  }, d);
1153
1153
  });
1154
- return /* @__PURE__ */ n(a && !s ? gs : xt, {
1154
+ return /* @__PURE__ */ n(a && !s ? gs : Ct, {
1155
1155
  disabled: s,
1156
1156
  onChange: r,
1157
1157
  value: i,
@@ -1160,7 +1160,7 @@ const {
1160
1160
  showSearch: !0,
1161
1161
  children: u
1162
1162
  });
1163
- }, gs = Kt(xt)`
1163
+ }, gs = Kt(Ct)`
1164
1164
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
1165
1165
  background-color: ${hs.colorPrimaryBg};
1166
1166
  }
@@ -1223,16 +1223,16 @@ var ks = Rs, Ms = ks, Es = /^\s+/;
1223
1223
  function $s(e) {
1224
1224
  return e && e.slice(0, Ms(e) + 1).replace(Es, "");
1225
1225
  }
1226
- var Ls = $s, Ns = ro, Ps = Ns.Symbol, oo = Ps, dr = oo, io = Object.prototype, Hs = io.hasOwnProperty, Bs = io.toString, Et = dr ? dr.toStringTag : void 0;
1226
+ var Ls = $s, Ns = ro, Ps = Ns.Symbol, oo = Ps, dr = oo, io = Object.prototype, Hs = io.hasOwnProperty, Bs = io.toString, $t = dr ? dr.toStringTag : void 0;
1227
1227
  function js(e) {
1228
- var t = Hs.call(e, Et), r = e[Et];
1228
+ var t = Hs.call(e, $t), r = e[$t];
1229
1229
  try {
1230
- e[Et] = void 0;
1230
+ e[$t] = void 0;
1231
1231
  var i = !0;
1232
1232
  } catch {
1233
1233
  }
1234
1234
  var o = Bs.call(e);
1235
- return i && (t ? e[Et] = r : delete e[Et]), o;
1235
+ return i && (t ? e[$t] = r : delete e[$t]), o;
1236
1236
  }
1237
1237
  var Ks = js, Ys = Object.prototype, Ws = Ys.toString;
1238
1238
  function Us(e) {
@@ -1319,7 +1319,7 @@ function xa(e) {
1319
1319
  const r = Buffer.from(e, "base64").length / 1e3;
1320
1320
  return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
1321
1321
  }
1322
- async function Dt(e) {
1322
+ async function Vt(e) {
1323
1323
  const t = await ki(
1324
1324
  Buffer.from(e, "base64")
1325
1325
  );
@@ -1365,7 +1365,7 @@ const Ca = (e) => {
1365
1365
  i == null || i(d);
1366
1366
  };
1367
1367
  async function u() {
1368
- const d = await Dt(r), m = `data:${d == null ? void 0 : d.mime};base64,${r}`, v = document.createElement("a");
1368
+ const d = await Vt(r), m = `data:${d == null ? void 0 : d.mime};base64,${r}`, v = document.createElement("a");
1369
1369
  v.href = m, v.download = `image.${d == null ? void 0 : d.ext}`, v.click();
1370
1370
  }
1371
1371
  async function c(d) {
@@ -1452,7 +1452,7 @@ const Ca = (e) => {
1452
1452
  r && r(i);
1453
1453
  }
1454
1454
  });
1455
- }, Ot = (e) => {
1455
+ }, _t = (e) => {
1456
1456
  const t = e.arch, r = e.fields, i = new Ar(r);
1457
1457
  return i.parse(t), i;
1458
1458
  }, Oa = (e, t, r) => e.columns.map((o) => {
@@ -1498,7 +1498,7 @@ function lo(e, t) {
1498
1498
  r[i.id] = i[t];
1499
1499
  }), r;
1500
1500
  }
1501
- function _t({
1501
+ function It({
1502
1502
  resultsToSort: e,
1503
1503
  sorter: t,
1504
1504
  fields: r
@@ -1529,7 +1529,7 @@ const zn = async (e) => {
1529
1529
  };
1530
1530
  let f = [], d;
1531
1531
  if (a === "tree" && (o == null ? void 0 : o.arch)) {
1532
- const h = (p = Ot(o)) == null ? void 0 : p.colors, g = await H.getHandler().readEvalUiObjects({
1532
+ const h = (p = _t(o)) == null ? void 0 : p.colors, g = await H.getHandler().readEvalUiObjects({
1533
1533
  model: r,
1534
1534
  ids: u,
1535
1535
  arch: o == null ? void 0 : o.arch,
@@ -1585,7 +1585,7 @@ const zn = async (e) => {
1585
1585
  } = t, [s, a] = T(!0), [l, u] = T(), [c, f] = T(/* @__PURE__ */ new Map()), d = Y(Ne), {
1586
1586
  getContext: m
1587
1587
  } = d || {};
1588
- Ct(() => {
1588
+ St(() => {
1589
1589
  p();
1590
1590
  }, [t]);
1591
1591
  const v = async (h) => o && o[h] ? o[h] : await H.getHandler().getView({
@@ -1606,7 +1606,7 @@ const zn = async (e) => {
1606
1606
  a(!1);
1607
1607
  }
1608
1608
  };
1609
- return s ? /* @__PURE__ */ n(Le, {}) : l ? /* @__PURE__ */ n(Ze, {
1609
+ return s ? /* @__PURE__ */ n(Me, {}) : l ? /* @__PURE__ */ n(Ze, {
1610
1610
  className: "mt-10",
1611
1611
  message: l,
1612
1612
  type: "error",
@@ -1636,7 +1636,7 @@ const zn = async (e) => {
1636
1636
  } = i, I = s.filter((b) => b.values), w = Y(Ne), {
1637
1637
  getContext: V
1638
1638
  } = w || {};
1639
- Ct(() => {
1639
+ St(() => {
1640
1640
  E();
1641
1641
  }, [s]);
1642
1642
  const D = (b) => {
@@ -1675,7 +1675,7 @@ const zn = async (e) => {
1675
1675
  message: u,
1676
1676
  type: "error",
1677
1677
  banner: !0
1678
- }) : a ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
1678
+ }) : a ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
1679
1679
  children: [/* @__PURE__ */ n(tr, {
1680
1680
  style: {
1681
1681
  padding: "1rem"
@@ -1785,7 +1785,7 @@ const zn = async (e) => {
1785
1785
  } else
1786
1786
  r[i] = e[i];
1787
1787
  }), r;
1788
- }, Ft = (e, t) => Ma(e, t), Sn = ({
1788
+ }, Ot = (e, t) => Ma(e, t), Sn = ({
1789
1789
  source: e,
1790
1790
  target: t,
1791
1791
  fields: r
@@ -1880,7 +1880,7 @@ const zn = async (e) => {
1880
1880
  function yr(e, t, r) {
1881
1881
  return r.indexOf(e) === t;
1882
1882
  }
1883
- const kt = ({
1883
+ const Mt = ({
1884
1884
  values: e,
1885
1885
  fields: t
1886
1886
  }) => {
@@ -1959,7 +1959,7 @@ const kt = ({
1959
1959
  } = r, g = Y(Ne), {
1960
1960
  getContext: y
1961
1961
  } = g || {};
1962
- Ct(() => {
1962
+ St(() => {
1963
1963
  I();
1964
1964
  }, [o]);
1965
1965
  const O = (D) => {
@@ -1974,7 +1974,7 @@ const kt = ({
1974
1974
  if (p && (D = [["id", "in", s]]), r.domain) {
1975
1975
  const C = await H.getHandler().evalDomain({
1976
1976
  domain: r.domain,
1977
- values: kt({
1977
+ values: Mt({
1978
1978
  fields: g == null ? void 0 : g.getFields(),
1979
1979
  values: g.getPlainValues()
1980
1980
  }),
@@ -2050,7 +2050,7 @@ const kt = ({
2050
2050
  }) : /* @__PURE__ */ n(ne, {
2051
2051
  children: /* @__PURE__ */ n("div", {
2052
2052
  className: "flex flex-row",
2053
- children: /* @__PURE__ */ n(xt, {
2053
+ children: /* @__PURE__ */ n(Ct, {
2054
2054
  mode: "multiple",
2055
2055
  value: a.length ? s : [],
2056
2056
  tagRender: V,
@@ -2171,14 +2171,14 @@ const kt = ({
2171
2171
  if (i.push(a), s(l)) {
2172
2172
  const u = r - o;
2173
2173
  for (let c = 0; c < u; c += 1)
2174
- i.push(new Vt({ string: "" }));
2174
+ i.push(new At({ string: "" }));
2175
2175
  }
2176
2176
  }), i;
2177
2177
  }, Ua = ({
2178
2178
  row: e,
2179
2179
  numberOfColumns: t
2180
2180
  }) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), Ga = (e, t) => {
2181
- const r = e.map((i) => i instanceof Vt && i.fieldForLabel || i instanceof ui ? "auto" : "1fr");
2181
+ const r = e.map((i) => i instanceof At && i.fieldForLabel || i instanceof ui ? "auto" : "1fr");
2182
2182
  if (r.length < t) {
2183
2183
  const i = t - r.length;
2184
2184
  for (let o = 0; o < i; o++)
@@ -2214,7 +2214,7 @@ const kt = ({
2214
2214
  row: p,
2215
2215
  numberOfColumns: o,
2216
2216
  mustFillWithEmpties: r
2217
- }), l = l.concat(h)), h.map((g) => (g instanceof Vt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2217
+ }), l = l.concat(h)), h.map((g) => (g instanceof At && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2218
2218
  style: {
2219
2219
  ...Ya({
2220
2220
  item: g,
@@ -2381,9 +2381,9 @@ const kt = ({
2381
2381
  setLimit: V,
2382
2382
  searchParams: D = [],
2383
2383
  setSearchValues: E
2384
- } = e, [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T(1), [M, _] = T(0), [N, k] = T(), [j, q] = T([]), [W, z] = T(void 0), [U, L] = T(void 0), B = de(w || Ht), ee = de([]), Z = $e((se) => {
2384
+ } = e, [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T(1), [M, _] = T(0), [N, k] = T(), [j, q] = T([]), [W, z] = T(void 0), [U, L] = T(void 0), B = de(w || Ht), ee = de([]), Z = Le((se) => {
2385
2385
  g == null || g([...se]), q([...se]);
2386
- }, []), ie = $e(() => y || j, [y, j]), Q = $e(async () => {
2386
+ }, []), ie = Le(() => y || j, [y, j]), Q = Le(async () => {
2387
2387
  const se = await H.getHandler().nameSearch({
2388
2388
  model: t,
2389
2389
  payload: l,
@@ -2392,7 +2392,7 @@ const kt = ({
2392
2392
  context: c
2393
2393
  });
2394
2394
  if (k(se.length), f == null || f(se.length), se.length > 0) {
2395
- const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } = Ot(d), je = {};
2395
+ const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } = _t(d), je = {};
2396
2396
  De && (je.colors = De), Ve && (je.status = Ve);
2397
2397
  const We = await H.getHandler().readEvalUiObjects({
2398
2398
  model: t,
@@ -2403,12 +2403,12 @@ const kt = ({
2403
2403
  attrs: je
2404
2404
  }), te = We[0];
2405
2405
  ee.current = [...te], z(Qt(We[1])), L(gr(We[1]));
2406
- const Fe = te.map((ce) => ce.id), Me = v !== void 0 ? _t({
2406
+ const Fe = te.map((ce) => ce.id), Ee = v !== void 0 ? It({
2407
2407
  resultsToSort: te,
2408
2408
  sorter: v,
2409
2409
  fields: { ...d.fields, ...m.fields }
2410
2410
  }) : [...ee.current];
2411
- Z(Me), Fe.length > 0 ? h == null || h(0) : h == null || h(void 0);
2411
+ Z(Ee), Fe.length > 0 ? h == null || h(0) : h == null || h(void 0);
2412
2412
  } else
2413
2413
  Z([]), h == null || h(void 0);
2414
2414
  C(!1), u.current = !0;
@@ -2424,11 +2424,11 @@ const kt = ({
2424
2424
  v,
2425
2425
  h,
2426
2426
  f
2427
- ]), J = $e(
2427
+ ]), J = Le(
2428
2428
  async (se) => {
2429
- const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } = Ot(d), te = {};
2429
+ const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } = _t(d), te = {};
2430
2430
  je && (te.colors = je), We && (te.status = We);
2431
- const { totalItems: Fe, results: Me, attrsEvaluated: ce } = await H.getHandler().searchForTree({
2431
+ const { totalItems: Fe, results: Ee, attrsEvaluated: ce } = await H.getHandler().searchForTree({
2432
2432
  params: Ve,
2433
2433
  limit: B.current,
2434
2434
  offset: De || M,
@@ -2437,9 +2437,9 @@ const kt = ({
2437
2437
  context: c,
2438
2438
  attrs: te
2439
2439
  });
2440
- z(Qt(ce)), L(gr(ce)), ee.current = [...Me];
2441
- const me = v !== void 0 ? _t({
2442
- resultsToSort: Me,
2440
+ z(Qt(ce)), L(gr(ce)), ee.current = [...Ee];
2441
+ const me = v !== void 0 ? It({
2442
+ resultsToSort: Ee,
2443
2443
  sorter: v,
2444
2444
  fields: { ...d.fields, ...m.fields }
2445
2445
  }) : [...ee.current];
@@ -2470,7 +2470,7 @@ const kt = ({
2470
2470
  M,
2471
2471
  D
2472
2472
  ]
2473
- ), fe = $e(
2473
+ ), fe = Le(
2474
2474
  async (se) => {
2475
2475
  try {
2476
2476
  C(!0), a == null || a(!0), l && !u.current ? await Q() : await J(se);
@@ -2501,10 +2501,12 @@ const kt = ({
2501
2501
  v,
2502
2502
  d
2503
2503
  ]
2504
- ), be = $e(
2504
+ ), be = Le(
2505
2505
  (se) => {
2506
+ if (JSON.stringify(se) === JSON.stringify(v))
2507
+ return;
2506
2508
  p == null || p(se);
2507
- const Se = se !== void 0 ? _t({
2509
+ const Se = se !== void 0 ? It({
2508
2510
  resultsToSort: ie(),
2509
2511
  sorter: se,
2510
2512
  fields: { ...d.fields, ...m.fields }
@@ -2512,7 +2514,7 @@ const kt = ({
2512
2514
  Z(Se);
2513
2515
  },
2514
2516
  [p, ie, d, m, Z]
2515
- ), Ee = $e(
2517
+ ), $e = Le(
2516
2518
  (se) => {
2517
2519
  const { params: Se, searchValues: De, limit: Ve, offset: je } = se;
2518
2520
  b || (r == null || r(void 0), i == null || i([]), E == null || E(De), o == null || o(Se), s == null || s(!1), x(!0), R(void 0), A(1), Ve && (B.current = Ve, V == null || V(Ve)), je && _(je), fe({
@@ -2533,12 +2535,12 @@ const kt = ({
2533
2535
  _,
2534
2536
  fe
2535
2537
  ]
2536
- ), Ie = $e(
2538
+ ), Ie = Le(
2537
2539
  (se) => {
2538
2540
  C(!0), A(se), _((se - 1) * w);
2539
2541
  },
2540
2542
  [C, w, _, A]
2541
- ), Be = $e(() => {
2543
+ ), Be = Le(() => {
2542
2544
  b || (r == null || r(void 0), o == null || o([]), E == null || E({}), R(void 0), _(0), A(1), V == null || V(w || Ht));
2543
2545
  }, [
2544
2546
  b,
@@ -2549,7 +2551,7 @@ const kt = ({
2549
2551
  A,
2550
2552
  V,
2551
2553
  w
2552
- ]), ge = $e(
2554
+ ]), ge = Le(
2553
2555
  async (se) => {
2554
2556
  const Se = se[(d == null ? void 0 : d.field_parent) || "child_id"], De = await H.getHandler().readObjects({
2555
2557
  model: t,
@@ -2557,12 +2559,12 @@ const kt = ({
2557
2559
  fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
2558
2560
  context: c
2559
2561
  });
2560
- return Z([...ie(), ...De]), ao(Ot(d), De);
2562
+ return Z([...ie(), ...De]), ao(_t(d), De);
2561
2563
  },
2562
2564
  [d, t, c, ie, Z]
2563
2565
  );
2564
2566
  return {
2565
- submit: Ee,
2567
+ submit: $e,
2566
2568
  clear: Be,
2567
2569
  fetchResults: fe,
2568
2570
  tableRefreshing: b,
@@ -2606,7 +2608,7 @@ const kt = ({
2606
2608
  setSearchTreeNameSearch: E,
2607
2609
  goToResourceId: b,
2608
2610
  limit: C
2609
- } = e, [S, x] = T(!1), [$, R] = T(!1), [F, A] = T(!1), [M, _] = T(!0), [N, k] = T(!0), [j, q] = T([]), [W, z] = T(!1), [U, L] = T([]), [B, ee] = T(!1), [Z, ie] = T(!0), [Q, J] = T(), [fe, be] = T({}), [Ee, Ie] = T(C !== void 0 ? C : Ht), [Be, ge] = T(i);
2611
+ } = e, [S, x] = T(!1), [$, R] = T(!1), [F, A] = T(!1), [M, _] = T(!0), [N, k] = T(!0), [j, q] = T([]), [W, z] = T(!1), [U, L] = T([]), [B, ee] = T(!1), [Z, ie] = T(!0), [Q, J] = T(), [fe, be] = T({}), [$e, Ie] = T(C !== void 0 ? C : Ht), [Be, ge] = T(i);
2610
2612
  pe(() => {
2611
2613
  m && m.length > 0 && !v && (p == null || p(0), f == null || f(m[0].id));
2612
2614
  }, [m]), pe(() => {
@@ -2670,7 +2672,7 @@ const kt = ({
2670
2672
  goToResourceId: b,
2671
2673
  searchValues: fe,
2672
2674
  setSearchValues: be,
2673
- limit: Ee,
2675
+ limit: $e,
2674
2676
  setLimit: Ie,
2675
2677
  setTitle: ge
2676
2678
  },
@@ -2705,7 +2707,7 @@ const kt = ({
2705
2707
  },
2706
2708
  children: t
2707
2709
  });
2708
- }, Mt = Je.createContext(null), br = async (e) => {
2710
+ }, Et = Je.createContext(null), br = async (e) => {
2709
2711
  var t;
2710
2712
  for (let r = 0; r < e.length; r++)
2711
2713
  await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
@@ -2718,7 +2720,7 @@ const kt = ({
2718
2720
  } = u || {}, f = de([]), {
2719
2721
  t: d
2720
2722
  } = Y(we);
2721
- bt(t, () => ({
2723
+ xt(t, () => ({
2722
2724
  openActionModal: w
2723
2725
  }));
2724
2726
  const [m, v] = T(!1), [p, h] = T({
@@ -2745,7 +2747,7 @@ const kt = ({
2745
2747
  ids: _
2746
2748
  } = F || {};
2747
2749
  let N = _ || [];
2748
- const k = typeof $ == "string" ? vt({
2750
+ const k = typeof $ == "string" ? wt({
2749
2751
  context: $,
2750
2752
  fields: C,
2751
2753
  values: S
@@ -2775,7 +2777,7 @@ const kt = ({
2775
2777
  id: E
2776
2778
  }), b.state && s.current === !0) {
2777
2779
  s.current = !1, clearInterval(o.current), l(!1);
2778
- const C = await Dt(b.result);
2780
+ const C = await Vt(b.result);
2779
2781
  mn(b.result, C.mime);
2780
2782
  }
2781
2783
  } catch (C) {
@@ -2818,7 +2820,7 @@ const kt = ({
2818
2820
  context: S
2819
2821
  }))[0]);
2820
2822
  const R = {
2821
- ...typeof (x == null ? void 0 : x.context) == "string" ? vt({
2823
+ ...typeof (x == null ? void 0 : x.context) == "string" ? wt({
2822
2824
  context: x.context,
2823
2825
  fields: b,
2824
2826
  values: {
@@ -2831,7 +2833,7 @@ const kt = ({
2831
2833
  let F = [];
2832
2834
  if (x.domain && (F = await H.getHandler().evalDomain({
2833
2835
  domain: x.domain,
2834
- values: kt({
2836
+ values: Mt({
2835
2837
  fields: b,
2836
2838
  values: {
2837
2839
  ...C,
@@ -2930,7 +2932,7 @@ const kt = ({
2930
2932
  });
2931
2933
  }
2932
2934
  return /* @__PURE__ */ n(ne, {
2933
- children: /* @__PURE__ */ n(Mt.Provider, {
2935
+ children: /* @__PURE__ */ n(Et.Provider, {
2934
2936
  value: {
2935
2937
  processAction: O,
2936
2938
  globalValues: i
@@ -2943,7 +2945,7 @@ const kt = ({
2943
2945
  closable: !1,
2944
2946
  centered: !0,
2945
2947
  maskClosable: !1,
2946
- children: /* @__PURE__ */ n(Le, {})
2948
+ children: /* @__PURE__ */ n(Me, {})
2947
2949
  }), /* @__PURE__ */ n(Gt, {
2948
2950
  buttonModal: !0,
2949
2951
  parentContext: p.context,
@@ -3022,7 +3024,7 @@ async function fl({
3022
3024
  initialView: a
3023
3025
  };
3024
3026
  }
3025
- const ml = wt(ul), hl = ({
3027
+ const ml = bt(ul), hl = ({
3026
3028
  error: e,
3027
3029
  className: t
3028
3030
  }) => {
@@ -3075,7 +3077,7 @@ function gl(e, t) {
3075
3077
  t: b,
3076
3078
  lang: C
3077
3079
  } = Y(we), [S, x] = T(!1), [$, R] = T(), [F, A] = T(), [M] = ot.useForm(), [_, N] = T(), [k, j] = T(), q = Y(mo), [W, z] = T(), [U, L] = T(!1), B = de(), ee = de({}), Z = de({}), ie = de(!1), Q = de(!1), fe = (E !== void 0 ? E : W) < pl, be = Y(Ne), {
3078
- activeId: Ee,
3080
+ activeId: $e,
3079
3081
  getPlainValues: Ie
3080
3082
  } = be || {}, Be = Y(Qe), {
3081
3083
  setFormIsSaving: ge = void 0,
@@ -3085,11 +3087,11 @@ function gl(e, t) {
3085
3087
  setAttachments: Ve = void 0,
3086
3088
  title: je = void 0,
3087
3089
  setTitle: We = void 0
3088
- } = (w ? Be : {}) || {}, te = Y(Mt), {
3090
+ } = (w ? Be : {}) || {}, te = Y(Et), {
3089
3091
  processAction: Fe,
3090
- globalValues: Me
3092
+ globalValues: Ee
3091
3093
  } = te || {};
3092
- bt(t, () => ({
3094
+ xt(t, () => ({
3093
3095
  submitForm: zt,
3094
3096
  getFields: Xe,
3095
3097
  getValues: Ke,
@@ -3162,8 +3164,8 @@ function gl(e, t) {
3162
3164
  id: ue(),
3163
3165
  active_id: ue(),
3164
3166
  active_ids: [ue()],
3165
- parent_id: Ee,
3166
- ...Me
3167
+ parent_id: $e,
3168
+ ...Ee
3167
3169
  };
3168
3170
  }
3169
3171
  const he = async (K) => {
@@ -3183,11 +3185,11 @@ function gl(e, t) {
3183
3185
  fields: k
3184
3186
  })).length !== 0, xe = (K) => {
3185
3187
  const G = M.getFieldsValue(!0);
3186
- return Ft(G, K);
3188
+ return Ot(G, K);
3187
3189
  }, ke = (K, G) => {
3188
3190
  qt({
3189
3191
  values: {
3190
- ...Ft(M.getFieldsValue(!0), k),
3192
+ ...Ot(M.getFieldsValue(!0), k),
3191
3193
  [K]: G
3192
3194
  },
3193
3195
  fields: k,
@@ -3231,7 +3233,7 @@ function gl(e, t) {
3231
3233
  }), O && (G = {
3232
3234
  ...La(O),
3233
3235
  ...G
3234
- }), ee.current = Ft(G, re), qt({
3236
+ }), ee.current = Ot(G, re), qt({
3235
3237
  values: G,
3236
3238
  fields: re,
3237
3239
  reset: !0,
@@ -3273,7 +3275,7 @@ function gl(e, t) {
3273
3275
  const yt = {
3274
3276
  ...re ? {} : M.getFieldsValue(!0),
3275
3277
  ...K
3276
- }, wn = Ft(yt, G), Zo = Object.keys(G).map((bn) => {
3278
+ }, wn = Ot(yt, G), Zo = Object.keys(G).map((bn) => {
3277
3279
  const Xo = wn[bn] !== void 0 ? wn[bn] : void 0;
3278
3280
  return {
3279
3281
  name: bn,
@@ -3416,7 +3418,7 @@ function gl(e, t) {
3416
3418
  }) && K !== !0)
3417
3419
  return;
3418
3420
  {
3419
- const oe = Ft(M.getFieldsValue(!0), k);
3421
+ const oe = Ot(M.getFieldsValue(!0), k);
3420
3422
  Z.current = oe, u == null || u(oe), se == null || se(!0), jo(re);
3421
3423
  }
3422
3424
  }
@@ -3512,7 +3514,7 @@ function gl(e, t) {
3512
3514
  ce == null || ce(ue(), Ke(), X());
3513
3515
  else if (re.type) {
3514
3516
  let oe = {};
3515
- re.context && (oe = vt({
3517
+ re.context && (oe = wt({
3516
3518
  context: re.context,
3517
3519
  fields: k,
3518
3520
  values: Ke()
@@ -3611,7 +3613,7 @@ function gl(e, t) {
3611
3613
  Ue(oe);
3612
3614
  }
3613
3615
  }
3614
- const zo = () => !F && !$ ? /* @__PURE__ */ n(Le, {}) : !r && !p || !I ? null : /* @__PURE__ */ n(ne, {
3616
+ const zo = () => !F && !$ ? /* @__PURE__ */ n(Me, {}) : !r && !p || !I ? null : /* @__PURE__ */ n(ne, {
3615
3617
  children: /* @__PURE__ */ n(ns, {
3616
3618
  getValues: Ke,
3617
3619
  getPlainValues: at,
@@ -3655,7 +3657,7 @@ function gl(e, t) {
3655
3657
  }), /* @__PURE__ */ n(_e, {
3656
3658
  disabled: S || f,
3657
3659
  loading: S,
3658
- icon: /* @__PURE__ */ n(Rt, {}),
3660
+ icon: /* @__PURE__ */ n(kt, {}),
3659
3661
  onClick: async () => {
3660
3662
  await zt();
3661
3663
  },
@@ -3683,7 +3685,7 @@ function gl(e, t) {
3683
3685
  })
3684
3686
  }) : null;
3685
3687
  }
3686
- const Ut = wt(gl), Gt = (e) => {
3688
+ const Ut = bt(gl), Gt = (e) => {
3687
3689
  const {
3688
3690
  visible: t,
3689
3691
  id: r,
@@ -3803,7 +3805,7 @@ const Ut = wt(gl), Gt = (e) => {
3803
3805
  })];
3804
3806
  return /* @__PURE__ */ P(ne, {
3805
3807
  children: [r && /* @__PURE__ */ n(un, {
3806
- ooui: new Vt({
3808
+ ooui: new At({
3807
3809
  name: o + "_label",
3808
3810
  string: i,
3809
3811
  help: t.tooltip,
@@ -3928,7 +3930,7 @@ function xl(e) {
3928
3930
  });
3929
3931
  return /* @__PURE__ */ P(ne, {
3930
3932
  children: [r && /* @__PURE__ */ n(un, {
3931
- ooui: new Vt({
3933
+ ooui: new At({
3932
3934
  name: i + "_label",
3933
3935
  string: o,
3934
3936
  help: s,
@@ -3958,7 +3960,7 @@ const {
3958
3960
  defaultSeed: Sl
3959
3961
  } = Pe, Tl = Cl(Sl), {
3960
3962
  Option: Fl
3961
- } = xt, Ol = (e) => {
3963
+ } = Ct, Ol = (e) => {
3962
3964
  const {
3963
3965
  ooui: t
3964
3966
  } = e, {
@@ -3990,7 +3992,7 @@ const {
3990
3992
  value: v,
3991
3993
  children: v
3992
3994
  }, m);
3993
- }), c = a && !s ? Il : xt;
3995
+ }), c = a && !s ? Il : Ct;
3994
3996
  function f(d) {
3995
3997
  const m = d.map((v) => {
3996
3998
  const p = l.find(([h, g]) => v === g);
@@ -4010,7 +4012,7 @@ const {
4010
4012
  showArrow: !0,
4011
4013
  children: u
4012
4014
  });
4013
- }, Il = Kt(xt)`
4015
+ }, Il = Kt(Ct)`
4014
4016
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
4015
4017
  background-color: ${Tl.colorPrimaryBg};
4016
4018
  }
@@ -4089,7 +4091,7 @@ function Vl(e) {
4089
4091
  onClick: t,
4090
4092
  children: [r ? /* @__PURE__ */ n(hi, {
4091
4093
  className: "pr-1"
4092
- }) : /* @__PURE__ */ n(At, {
4094
+ }) : /* @__PURE__ */ n(Rt, {
4093
4095
  className: "pr-1"
4094
4096
  }), s(r ? "simple_search" : "advanced_search")]
4095
4097
  })
@@ -4182,7 +4184,7 @@ function go(e) {
4182
4184
  }, M))
4183
4185
  }, F));
4184
4186
  };
4185
- Ct(() => {
4187
+ St(() => {
4186
4188
  w(!1), V.current = new fi(r, t, p), V.current.parse(), g(V.current._simpleSearchContainer), O(V.current._advancedSearchContainer);
4187
4189
  }, [t, r]);
4188
4190
  const C = b(), S = (x) => {
@@ -4380,7 +4382,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4380
4382
  t: p
4381
4383
  } = Y(we), h = Y(st), {
4382
4384
  openRelate: g
4383
- } = h || {}, y = Y(Mt), {
4385
+ } = h || {}, y = Y(Et), {
4384
4386
  processAction: O
4385
4387
  } = y || {};
4386
4388
  if (!t)
@@ -4404,7 +4406,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4404
4406
  context: i
4405
4407
  }))[0];
4406
4408
  v({
4407
- ...Ft(R, x),
4409
+ ...Ot(R, x),
4408
4410
  active_id: t
4409
4411
  }), c(!1);
4410
4412
  } catch (S) {
@@ -4420,7 +4422,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4420
4422
  style: {
4421
4423
  padding: 15
4422
4424
  },
4423
- children: /* @__PURE__ */ n(Le, {})
4425
+ children: /* @__PURE__ */ n(Me, {})
4424
4426
  })
4425
4427
  });
4426
4428
  if (!f || !f.toolbar)
@@ -4531,7 +4533,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4531
4533
  value: t,
4532
4534
  context: r,
4533
4535
  selectionValues: i
4534
- } = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = $e(async () => {
4536
+ } = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = Le(async () => {
4535
4537
  if (!t || t && o)
4536
4538
  return;
4537
4539
  l(!0);
@@ -5042,7 +5044,7 @@ function pn(e) {
5042
5044
  setTitle: A = void 0
5043
5045
  } = (O ? R : {}) || {};
5044
5046
  pe(() => {
5045
- S.current = Ot(o);
5047
+ S.current = _t(o);
5046
5048
  const z = Oa(S.current, {
5047
5049
  boolean: Yl,
5048
5050
  many2one: Wl,
@@ -5067,7 +5069,7 @@ function pn(e) {
5067
5069
  const z = ao(S.current, s);
5068
5070
  D(z), $.current = r;
5069
5071
  }, [s]);
5070
- const M = (t - 1) * $.current + 1, _ = M - 1 + V.length, N = i === void 0 ? null : i === 0 ? x("no_results") : x("summary").replace("{from}", M == null ? void 0 : M.toString()).replace("{to}", _ == null ? void 0 : _.toString()).replace("{total}", i == null ? void 0 : i.toString()), k = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Le, {
5072
+ const M = (t - 1) * $.current + 1, _ = M - 1 + V.length, N = i === void 0 ? null : i === 0 ? x("no_results") : x("summary").replace("{from}", M == null ? void 0 : M.toString()).replace("{to}", _ == null ? void 0 : _.toString()).replace("{total}", i == null ? void 0 : i.toString()), k = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Me, {
5071
5073
  className: "pb-4"
5072
5074
  }) : /* @__PURE__ */ P(Ce, {
5073
5075
  align: "bottom",
@@ -5110,17 +5112,19 @@ function pn(e) {
5110
5112
  const U = S.current;
5111
5113
  d && U.columns.some((L) => L.sum !== void 0) && (W = d - 30);
5112
5114
  }
5113
- return S.current === null ? /* @__PURE__ */ n(Le, {
5115
+ return S.current === null ? /* @__PURE__ */ n(Me, {
5114
5116
  style: {
5115
5117
  padding: "2rem"
5116
5118
  }
5117
5119
  }) : /* @__PURE__ */ P("div", {
5118
- children: [k(), /* @__PURE__ */ n(Ri, {
5120
+ children: [k(), l && /* @__PURE__ */ n(Me, {
5121
+ className: "pb-4"
5122
+ }), /* @__PURE__ */ n(Ri, {
5119
5123
  height: W,
5120
5124
  columns: q.columns,
5121
5125
  dataSource: V,
5122
- loading: l,
5123
- loadingComponent: /* @__PURE__ */ n(Le, {}),
5126
+ loading: !1,
5127
+ loadingComponent: /* @__PURE__ */ n(Me, {}),
5124
5128
  onRowStyle: (z) => {
5125
5129
  if (m[z.id])
5126
5130
  return {
@@ -5163,7 +5167,7 @@ function nc(e, t) {
5163
5167
  onChangeSelectedRowKeys: m
5164
5168
  } = e, [v, p] = T(!1), [h, g] = T(!1), y = de(!1), [O, I] = T(), [w, V] = T(), [D, E] = T(), [b, C] = T(), [S, x] = T(200), $ = de(), {
5165
5169
  height: R
5166
- } = fn(), F = Y(Mt), {
5170
+ } = fn(), F = Y(Et), {
5167
5171
  processAction: A
5168
5172
  } = F || {}, M = Y(Qe), {
5169
5173
  setResults: _ = void 0,
@@ -5183,7 +5187,7 @@ function nc(e, t) {
5183
5187
  setTreeIsLoading: J = void 0,
5184
5188
  searchValues: fe = {},
5185
5189
  setSearchValues: be = void 0,
5186
- limit: Ee = Ht,
5190
+ limit: $e = Ht,
5187
5191
  setLimit: Ie = void 0
5188
5192
  } = (f ? M : {}) || {}, {
5189
5193
  submit: Be,
@@ -5196,7 +5200,7 @@ function nc(e, t) {
5196
5200
  offset: We,
5197
5201
  getResults: te,
5198
5202
  requestPageChange: Fe,
5199
- changeSort: Me,
5203
+ changeSort: Ee,
5200
5204
  fetchChildrenForRecord: ce,
5201
5205
  colorsForResults: me,
5202
5206
  statusForResults: Te,
@@ -5223,10 +5227,10 @@ function nc(e, t) {
5223
5227
  domain: u,
5224
5228
  currentId: k,
5225
5229
  setActionViewTotalItems: ie,
5226
- limit: Ee,
5230
+ limit: $e,
5227
5231
  setLimit: Ie
5228
5232
  });
5229
- bt(t, () => ({
5233
+ xt(t, () => ({
5230
5234
  refreshResults: () => {
5231
5235
  y.current = !1, se();
5232
5236
  },
@@ -5240,9 +5244,9 @@ function nc(e, t) {
5240
5244
  try {
5241
5245
  await Ke(), g(!0);
5242
5246
  } catch (ke) {
5243
- C(ke);
5247
+ C(ke), J == null || J(!1);
5244
5248
  } finally {
5245
- p(!1), J == null || J(!1);
5249
+ p(!1);
5246
5250
  }
5247
5251
  }, Ke = async () => {
5248
5252
  I(r);
@@ -5318,7 +5322,7 @@ function nc(e, t) {
5318
5322
  searchFields: co([D.search_fields, w.search_fields]),
5319
5323
  formXml: D.arch,
5320
5324
  onClear: ge,
5321
- limit: Ee,
5325
+ limit: $e,
5322
5326
  offset: We,
5323
5327
  isSearching: De,
5324
5328
  onSubmit: Be,
@@ -5330,7 +5334,7 @@ function nc(e, t) {
5330
5334
  }), /* @__PURE__ */ n(pn, {
5331
5335
  context: d,
5332
5336
  total: ue,
5333
- limit: Ee,
5337
+ limit: $e,
5334
5338
  page: je,
5335
5339
  treeView: w,
5336
5340
  results: te(),
@@ -5345,7 +5349,7 @@ function nc(e, t) {
5345
5349
  onChange: Ae
5346
5350
  },
5347
5351
  sorter: ee,
5348
- onChangeSort: Me,
5352
+ onChangeSort: Ee,
5349
5353
  onFetchChildrenForRecord: w.isExpandable ? ce : void 0,
5350
5354
  childField: w.field_parent,
5351
5355
  rootTree: f
@@ -5360,10 +5364,10 @@ function nc(e, t) {
5360
5364
  style: c ? {} : {
5361
5365
  display: "none"
5362
5366
  },
5363
- children: v ? /* @__PURE__ */ n(Le, {}) : ye()
5367
+ children: v ? /* @__PURE__ */ n(Me, {}) : ye()
5364
5368
  });
5365
5369
  }
5366
- const So = wt(nc), To = (e) => {
5370
+ const So = bt(nc), To = (e) => {
5367
5371
  const {
5368
5372
  visible: t,
5369
5373
  onCloseModal: r,
@@ -5413,7 +5417,7 @@ const So = wt(nc), To = (e) => {
5413
5417
  },
5414
5418
  children: m("new")
5415
5419
  }), /* @__PURE__ */ n(_e, {
5416
- icon: /* @__PURE__ */ n(Rt, {}),
5420
+ icon: /* @__PURE__ */ n(kt, {}),
5417
5421
  onClick: () => {
5418
5422
  y();
5419
5423
  },
@@ -5579,7 +5583,7 @@ const So = wt(nc), To = (e) => {
5579
5583
  async function z() {
5580
5584
  c && (R.current = await H.getHandler().evalDomain({
5581
5585
  domain: c,
5582
- values: kt({
5586
+ values: Mt({
5583
5587
  fields: S(),
5584
5588
  values: C()
5585
5589
  }),
@@ -6129,7 +6133,7 @@ const {
6129
6133
  uninformedString: a,
6130
6134
  manualIds: l
6131
6135
  } = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), [p, h] = T(), [g, y] = T("line");
6132
- return Ct(() => {
6136
+ return St(() => {
6133
6137
  (async () => {
6134
6138
  c(!0), d(void 0);
6135
6139
  const O = Ln(o);
@@ -6270,7 +6274,7 @@ const xc = {
6270
6274
  banner: !0
6271
6275
  });
6272
6276
  if (c)
6273
- return /* @__PURE__ */ n(Le, {});
6277
+ return /* @__PURE__ */ n(Me, {});
6274
6278
  if (!f)
6275
6279
  return /* @__PURE__ */ n(Ze, {
6276
6280
  message: "No data to display",
@@ -6325,7 +6329,7 @@ const Tc = (e, t) => {
6325
6329
  } = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), p = Y(Qe), {
6326
6330
  setGraphIsLoading: h = void 0
6327
6331
  } = p || {};
6328
- bt(t, () => ({
6332
+ xt(t, () => ({
6329
6333
  refresh: () => {
6330
6334
  g();
6331
6335
  }
@@ -6405,7 +6409,7 @@ const Tc = (e, t) => {
6405
6409
  children: `Graph ${f.type} not implemented`
6406
6410
  });
6407
6411
  }
6408
- }, gn = wt(Tc), {
6412
+ }, gn = bt(Tc), {
6409
6413
  confirm: Fc
6410
6414
  } = Ge, Oc = ({
6411
6415
  onOk: e,
@@ -6579,8 +6583,8 @@ const kc = (e) => {
6579
6583
  }
6580
6584
  fe();
6581
6585
  }, [s, a]);
6582
- const fe = $e(() => {
6583
- (a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && Ee();
6586
+ const fe = Le(() => {
6587
+ (a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && $e();
6584
6588
  }, [s, a]);
6585
6589
  pe(() => {
6586
6590
  Be();
@@ -6591,7 +6595,7 @@ const kc = (e) => {
6591
6595
  fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ae = o.get("tree")) == null ? void 0 : Ae.fields),
6592
6596
  items: Rc(X)
6593
6597
  });
6594
- }, Ee = async () => {
6598
+ }, $e = async () => {
6595
6599
  await Ie(), u > Q.length - 1 && u !== 0 && c(0);
6596
6600
  }, Ie = async (X) => {
6597
6601
  var ae, Ae, he;
@@ -6623,7 +6627,7 @@ const kc = (e) => {
6623
6627
  async function Be() {
6624
6628
  ee && (N.current = await H.getHandler().evalDomain({
6625
6629
  domain: ee,
6626
- values: kt({
6630
+ values: Mt({
6627
6631
  fields: m(),
6628
6632
  values: v()
6629
6633
  }),
@@ -6684,7 +6688,7 @@ const kc = (e) => {
6684
6688
  Ic({
6685
6689
  lang: g,
6686
6690
  onOk: () => {
6687
- a === "form" ? Fe() : Me();
6691
+ a === "form" ? Fe() : Ee();
6688
6692
  }
6689
6693
  });
6690
6694
  return;
@@ -6692,7 +6696,7 @@ const kc = (e) => {
6692
6696
  Oc({
6693
6697
  lang: g,
6694
6698
  onOk: () => {
6695
- a === "form" ? Fe() : Me();
6699
+ a === "form" ? Fe() : Ee();
6696
6700
  }
6697
6701
  });
6698
6702
  }, We = async () => {
@@ -6728,7 +6732,7 @@ const kc = (e) => {
6728
6732
  E(X);
6729
6733
  }
6730
6734
  c(0), V(!1);
6731
- }, Me = async () => {
6735
+ }, Ee = async () => {
6732
6736
  const X = Q.filter((ae) => F.includes(ae.id));
6733
6737
  V(!0), I(!1), E(void 0);
6734
6738
  try {
@@ -6828,7 +6832,7 @@ const kc = (e) => {
6828
6832
  const Xe = () => {
6829
6833
  var ae, Ae, he, ye;
6830
6834
  if (a === "form")
6831
- return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(Ut, {
6835
+ return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(Ut, {
6832
6836
  formView: o.get("form"),
6833
6837
  values: (ae = Q[u]) == null ? void 0 : ae.values,
6834
6838
  parentContext: {
@@ -6857,7 +6861,7 @@ const kc = (e) => {
6857
6861
  readOnly: U
6858
6862
  });
6859
6863
  let X = [];
6860
- if (Q.some((xe) => xe.treeValues) && (X = k ? _t({
6864
+ if (Q.some((xe) => xe.treeValues) && (X = k ? It({
6861
6865
  resultsToSort: Q.map((xe) => xe.treeValues),
6862
6866
  sorter: k,
6863
6867
  fields: {
@@ -6908,7 +6912,7 @@ const kc = (e) => {
6908
6912
  banner: !0
6909
6913
  });
6910
6914
  const Ke = M;
6911
- return w ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
6915
+ return w ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
6912
6916
  children: [/* @__PURE__ */ n(Vc, {
6913
6917
  mode: a,
6914
6918
  title: ue(),
@@ -6974,7 +6978,7 @@ const kc = (e) => {
6974
6978
  const [u, c] = T(!0), [f, d] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = Y(Ne), {
6975
6979
  getContext: h
6976
6980
  } = p || {};
6977
- Ct(() => {
6981
+ St(() => {
6978
6982
  y();
6979
6983
  }, [t]);
6980
6984
  const g = async (I) => o && o[I] ? o[I] : await H.getHandler().getView({
@@ -7003,7 +7007,7 @@ const kc = (e) => {
7003
7007
  c(!1);
7004
7008
  }
7005
7009
  };
7006
- return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(Le, {}) : f ? /* @__PURE__ */ n(Ze, {
7010
+ return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(Me, {}) : f ? /* @__PURE__ */ n(Ze, {
7007
7011
  className: "mt-10",
7008
7012
  message: f,
7009
7013
  type: "error",
@@ -7279,7 +7283,7 @@ const {
7279
7283
  limit: s,
7280
7284
  onClose: a
7281
7285
  }) => {
7282
- const l = de({}), u = de(/* @__PURE__ */ new Map()), c = $e(
7286
+ const l = de({}), u = de(/* @__PURE__ */ new Map()), c = Le(
7283
7287
  async (g) => {
7284
7288
  if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
7285
7289
  ct(Oe("selectAtLeastOneField", r));
@@ -7301,18 +7305,18 @@ const {
7301
7305
  format: g.exportType
7302
7306
  });
7303
7307
  a(), await new Promise((w) => setTimeout(w, 200));
7304
- const I = await Dt(O);
7308
+ const I = await Vt(O);
7305
7309
  mn(O, I.mime);
7306
7310
  },
7307
7311
  [r, e, o, s, t, a]
7308
- ), f = $e(async () => {
7312
+ ), f = Le(async () => {
7309
7313
  const g = await H.getHandler().getFields({
7310
7314
  model: e,
7311
7315
  context: t,
7312
7316
  fields: []
7313
7317
  });
7314
7318
  return l.current["/"] = g, _r({ fields: g });
7315
- }, [e, t, l]), d = $e(
7319
+ }, [e, t, l]), d = Le(
7316
7320
  async (g) => {
7317
7321
  const O = kn(g, l.current)[Rn(g)], I = O.relation, w = await H.getHandler().getFields({
7318
7322
  model: I,
@@ -7330,7 +7334,7 @@ const {
7330
7334
  });
7331
7335
  },
7332
7336
  [l.current, e, t]
7333
- ), m = $e(async () => {
7337
+ ), m = Le(async () => {
7334
7338
  const g = await Gc({ model: e, context: t }), y = await zc({
7335
7339
  predefinedExports: g,
7336
7340
  fields: l.current,
@@ -7349,7 +7353,7 @@ const {
7349
7353
  })),
7350
7354
  keysWithChilds: y
7351
7355
  };
7352
- }, [l.current]), v = $e(
7356
+ }, [l.current]), v = Le(
7353
7357
  async (g) => {
7354
7358
  const y = await h("ir.exports"), O = await h("ir.exports.line"), I = await H.getHandler().create({
7355
7359
  model: "ir.exports",
@@ -7373,7 +7377,7 @@ const {
7373
7377
  ), { ...g, id: I };
7374
7378
  },
7375
7379
  []
7376
- ), p = $e(
7380
+ ), p = Le(
7377
7381
  async (g) => {
7378
7382
  await H.getHandler().delete({
7379
7383
  model: "ir.exports",
@@ -7381,7 +7385,7 @@ const {
7381
7385
  });
7382
7386
  },
7383
7387
  []
7384
- ), h = $e(
7388
+ ), h = Le(
7385
7389
  async (g) => {
7386
7390
  if (u.current.has(g))
7387
7391
  return u.current.get(g);
@@ -7669,8 +7673,8 @@ var Ao = { exports: {} };
7669
7673
  return new Date((_ === "X" ? 1e3 : 1) * M);
7670
7674
  var k = p(_)(M), j = k.year, q = k.month, W = k.day, z = k.hours, U = k.minutes, L = k.seconds, B = k.milliseconds, ee = k.zone, Z = new Date(), ie = W || (j || q ? 1 : Z.getDate()), Q = j || Z.getFullYear(), J = 0;
7671
7675
  j && !q || (J = q > 0 ? q - 1 : Z.getMonth());
7672
- var fe = z || 0, be = U || 0, Ee = L || 0, Ie = B || 0;
7673
- return ee ? new Date(Date.UTC(Q, J, ie, fe, be, Ee, Ie + 60 * ee.offset * 1e3)) : N ? new Date(Date.UTC(Q, J, ie, fe, be, Ee, Ie)) : new Date(Q, J, ie, fe, be, Ee, Ie);
7676
+ var fe = z || 0, be = U || 0, $e = L || 0, Ie = B || 0;
7677
+ return ee ? new Date(Date.UTC(Q, J, ie, fe, be, $e, Ie + 60 * ee.offset * 1e3)) : N ? new Date(Date.UTC(Q, J, ie, fe, be, $e, Ie)) : new Date(Q, J, ie, fe, be, $e, Ie);
7674
7678
  } catch {
7675
7679
  return new Date("");
7676
7680
  }
@@ -7814,11 +7818,11 @@ const nd = (e) => {
7814
7818
  i == null || i(I);
7815
7819
  };
7816
7820
  async function h() {
7817
- const I = await Dt(r), w = `data:${I == null ? void 0 : I.mime};base64,${r}`, V = document.createElement("a"), D = d(a), E = d("name");
7821
+ const I = await Vt(r), w = `data:${I == null ? void 0 : I.mime};base64,${r}`, V = document.createElement("a"), D = d(a), E = d("name");
7818
7822
  V.href = w, V.download = D || E, V.click();
7819
7823
  }
7820
7824
  async function g() {
7821
- const I = await Dt(r);
7825
+ const I = await Vt(r);
7822
7826
  mn(r, I.mime);
7823
7827
  }
7824
7828
  async function y(I) {
@@ -7916,7 +7920,7 @@ function Zn(e) {
7916
7920
  children: v.type.charAt(0).toUpperCase() + v.type.slice(1)
7917
7921
  }), /* @__PURE__ */ n(le, {
7918
7922
  flex: "none",
7919
- children: /* @__PURE__ */ n(Rt, {
7923
+ children: /* @__PURE__ */ n(kt, {
7920
7924
  style: {
7921
7925
  opacity: t.view_id === v.view_id ? 1 : 0
7922
7926
  }
@@ -7977,7 +7981,7 @@ function Zn(e) {
7977
7981
  borderTopLeftRadius: 0,
7978
7982
  borderBottomLeftRadius: 0
7979
7983
  },
7980
- icon: /* @__PURE__ */ n(At, {
7984
+ icon: /* @__PURE__ */ n(Rt, {
7981
7985
  style: {
7982
7986
  fontSize: "0.5em"
7983
7987
  }
@@ -7987,7 +7991,7 @@ function Zn(e) {
7987
7991
  })]
7988
7992
  });
7989
7993
  }
7990
- function It(e) {
7994
+ function Dt(e) {
7991
7995
  const {
7992
7996
  icon: t,
7993
7997
  tooltip: r,
@@ -8016,7 +8020,7 @@ function It(e) {
8016
8020
  overlay: l(),
8017
8021
  disabled: a || !i || i.length === 0,
8018
8022
  children: /* @__PURE__ */ P(_e, {
8019
- children: [t, " ", s, " ", /* @__PURE__ */ n(At, {})]
8023
+ children: [t, " ", s, " ", /* @__PURE__ */ n(Rt, {})]
8020
8024
  })
8021
8025
  });
8022
8026
  }
@@ -8108,7 +8112,7 @@ const ud = (e) => {
8108
8112
  lang: o
8109
8113
  } = Y(we), [s, a] = T(!1), l = /* @__PURE__ */ P(_e, {
8110
8114
  disabled: r,
8111
- children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(At, {
8115
+ children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(Rt, {
8112
8116
  style: {
8113
8117
  fontSize: 12
8114
8118
  }
@@ -8132,7 +8136,7 @@ const ud = (e) => {
8132
8136
  onOpenAttachmentDetail: l,
8133
8137
  onListAllAttachments: u
8134
8138
  } = e;
8135
- return o ? /* @__PURE__ */ n(Le, {
8139
+ return o ? /* @__PURE__ */ n(Me, {
8136
8140
  style: {
8137
8141
  padding: 20
8138
8142
  }
@@ -8220,7 +8224,7 @@ function md(e) {
8220
8224
  formRef: a
8221
8225
  } = Y(Qe), [l, u] = T(!1), [c, f] = T([]), [d, m] = T(!1), {
8222
8226
  t: v
8223
- } = Y(we), p = $e(async () => {
8227
+ } = Y(we), p = Le(async () => {
8224
8228
  u(!0);
8225
8229
  try {
8226
8230
  const y = await H.getHandler().readObjects({
@@ -8239,7 +8243,7 @@ function md(e) {
8239
8243
  Ue(y);
8240
8244
  }
8241
8245
  u(!1);
8242
- }, t), h = $e(async (y) => {
8246
+ }, t), h = Le(async (y) => {
8243
8247
  if (y.link) {
8244
8248
  window.open(y.link);
8245
8249
  return;
@@ -8257,11 +8261,11 @@ function md(e) {
8257
8261
  }
8258
8262
  if (m(!1), !!O)
8259
8263
  if (O.datas) {
8260
- const I = await Dt(O.datas);
8264
+ const I = await Vt(O.datas);
8261
8265
  mn(O.datas, I.mime);
8262
8266
  } else
8263
8267
  s(O);
8264
- }, []), g = $e(async (y) => {
8268
+ }, []), g = Le(async (y) => {
8265
8269
  s(y);
8266
8270
  }, []);
8267
8271
  return pe(() => {
@@ -8283,7 +8287,7 @@ function md(e) {
8283
8287
  closable: !1,
8284
8288
  centered: !0,
8285
8289
  maskClosable: !1,
8286
- children: /* @__PURE__ */ n(Le, {})
8290
+ children: /* @__PURE__ */ n(Me, {})
8287
8291
  })]
8288
8292
  });
8289
8293
  }
@@ -8318,7 +8322,7 @@ function hd({
8318
8322
  } = Y(Qe), {
8319
8323
  t: C,
8320
8324
  lang: S
8321
- } = Y(we), x = Y(Mt), {
8325
+ } = Y(we), x = Y(Et), {
8322
8326
  processAction: $
8323
8327
  } = x || {}, R = Y(st), {
8324
8328
  openRelate: F,
@@ -8409,7 +8413,7 @@ function hd({
8409
8413
  return r ? /* @__PURE__ */ P(Ye, {
8410
8414
  wrap: !0,
8411
8415
  children: [O && /* @__PURE__ */ P(ne, {
8412
- children: [/* @__PURE__ */ n(Le, {}), St(), St()]
8416
+ children: [/* @__PURE__ */ n(Me, {}), Tt(), Tt()]
8413
8417
  }), /* @__PURE__ */ n(Ro, {
8414
8418
  disabled: a || O || p || h
8415
8419
  }), /* @__PURE__ */ n(qe, {
@@ -8430,7 +8434,7 @@ function hd({
8430
8434
  disabled: a || l === void 0 || p || h || O,
8431
8435
  loading: p,
8432
8436
  onClick: j
8433
- }), St(), /* @__PURE__ */ n(qe, {
8437
+ }), Tt(), /* @__PURE__ */ n(qe, {
8434
8438
  icon: /* @__PURE__ */ n(Ur, {}),
8435
8439
  tooltip: C("showLogs"),
8436
8440
  disabled: a || l === void 0 || p || h || O,
@@ -8448,7 +8452,7 @@ function hd({
8448
8452
  w.current.fetchValues();
8449
8453
  });
8450
8454
  }
8451
- }), St(), /* @__PURE__ */ n(Zn, {
8455
+ }), Tt(), /* @__PURE__ */ n(Zn, {
8452
8456
  currentView: r,
8453
8457
  previousView: D,
8454
8458
  availableViews: t,
@@ -8457,7 +8461,7 @@ function hd({
8457
8461
  },
8458
8462
  disabled: z,
8459
8463
  formHasChanges: s
8460
- }), St(), /* @__PURE__ */ P(Ye, {
8464
+ }), Tt(), /* @__PURE__ */ P(Ye, {
8461
8465
  children: [/* @__PURE__ */ n(qe, {
8462
8466
  icon: /* @__PURE__ */ n(Kr, {}),
8463
8467
  tooltip: C("previous"),
@@ -8475,17 +8479,17 @@ function hd({
8475
8479
  _(N);
8476
8480
  }
8477
8481
  })]
8478
- }), St(), /* @__PURE__ */ n(It, {
8482
+ }), Tt(), /* @__PURE__ */ n(Dt, {
8479
8483
  icon: /* @__PURE__ */ n(jn, {}),
8480
8484
  disabled: z,
8481
8485
  tooltip: C("actions"),
8482
8486
  items: e == null ? void 0 : e.action,
8483
8487
  onItemClick: async (L) => {
8484
- !L || !(await Tt({
8488
+ !L || !(await Ft({
8485
8489
  onFormSave: o
8486
8490
  })).succeed || U(L);
8487
8491
  }
8488
- }), /* @__PURE__ */ n(It, {
8492
+ }), /* @__PURE__ */ n(Dt, {
8489
8493
  icon: /* @__PURE__ */ n(Kn, {}),
8490
8494
  disabled: z,
8491
8495
  tooltip: C("reports"),
@@ -8493,7 +8497,7 @@ function hd({
8493
8497
  onItemClick: async (L) => {
8494
8498
  if (!L)
8495
8499
  return;
8496
- const B = await Tt({
8500
+ const B = await Ft({
8497
8501
  onFormSave: o
8498
8502
  });
8499
8503
  !B.succeed || U({
@@ -8504,13 +8508,13 @@ function hd({
8504
8508
  }
8505
8509
  });
8506
8510
  }
8507
- }), /* @__PURE__ */ n(It, {
8511
+ }), /* @__PURE__ */ n(Dt, {
8508
8512
  icon: /* @__PURE__ */ n(jr, {}),
8509
8513
  disabled: z,
8510
8514
  tooltip: C("related"),
8511
8515
  items: e == null ? void 0 : e.relate,
8512
8516
  onItemClick: async (L) => {
8513
- !L || !(await Tt({
8517
+ !L || !(await Ft({
8514
8518
  onFormSave: o
8515
8519
  })).succeed || F({
8516
8520
  relateData: L,
@@ -8524,7 +8528,7 @@ function hd({
8524
8528
  disabled: z,
8525
8529
  attachments: I,
8526
8530
  onAddNewAttachment: async () => {
8527
- const L = await Tt({
8531
+ const L = await Ft({
8528
8532
  onFormSave: o
8529
8533
  });
8530
8534
  if (!L.succeed)
@@ -8543,7 +8547,7 @@ function hd({
8543
8547
  });
8544
8548
  },
8545
8549
  onListAllAttachments: async () => {
8546
- const L = await Tt({
8550
+ const L = await Ft({
8547
8551
  onFormSave: o
8548
8552
  });
8549
8553
  if (!L.succeed)
@@ -8556,7 +8560,7 @@ function hd({
8556
8560
  });
8557
8561
  },
8558
8562
  onViewAttachmentDetails: async (L) => {
8559
- !(await Tt({
8563
+ !(await Ft({
8560
8564
  onFormSave: o
8561
8565
  })).succeed || A({
8562
8566
  model: "ir.attachment",
@@ -8567,12 +8571,12 @@ function hd({
8567
8571
  })]
8568
8572
  }) : null;
8569
8573
  }
8570
- function St() {
8574
+ function Tt() {
8571
8575
  return /* @__PURE__ */ n("div", {
8572
8576
  className: "inline-block w-2"
8573
8577
  });
8574
8578
  }
8575
- async function Tt({
8579
+ async function Ft({
8576
8580
  onFormSave: e
8577
8581
  }) {
8578
8582
  const t = await (e == null ? void 0 : e());
@@ -8617,7 +8621,7 @@ const {
8617
8621
  children: [l ? null : /* @__PURE__ */ n(le, {
8618
8622
  flex: "32px",
8619
8623
  children: v ? /* @__PURE__ */ n(_e, {
8620
- icon: /* @__PURE__ */ n(Rt, {}),
8624
+ icon: /* @__PURE__ */ n(kt, {}),
8621
8625
  onClick: () => {
8622
8626
  o(r) && (p(!1), g(!1));
8623
8627
  },
@@ -8749,7 +8753,7 @@ const {
8749
8753
  style: {
8750
8754
  marginLeft: 15
8751
8755
  },
8752
- icon: /* @__PURE__ */ n(Rt, {}),
8756
+ icon: /* @__PURE__ */ n(kt, {}),
8753
8757
  htmlType: "submit",
8754
8758
  type: "primary",
8755
8759
  disabled: o,
@@ -9040,7 +9044,7 @@ const Sd = (e) => {
9040
9044
  searchVisible: g,
9041
9045
  searchValues: S,
9042
9046
  showLimitOptions: !1
9043
- }), k ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(gn, {
9047
+ }), k ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(gn, {
9044
9048
  ref: u,
9045
9049
  view_id: t.view_id,
9046
9050
  model: i,
@@ -9191,7 +9195,7 @@ function _d(e) {
9191
9195
  } = Y(Od), {
9192
9196
  t: $,
9193
9197
  lang: R
9194
- } = Y(we), F = Y(Mt), {
9198
+ } = Y(we), F = Y(Et), {
9195
9199
  processAction: A
9196
9200
  } = F || {}, [M, _] = T(!1), N = y !== void 0 && y.trim().length > 0;
9197
9201
  function k() {
@@ -9255,7 +9259,9 @@ function _d(e) {
9255
9259
  }
9256
9260
  return /* @__PURE__ */ P(Ye, {
9257
9261
  wrap: !0,
9258
- children: [C ? null : /* @__PURE__ */ P(ne, {
9262
+ children: [O && /* @__PURE__ */ P(ne, {
9263
+ children: [/* @__PURE__ */ n(Me, {}), vt(), vt()]
9264
+ }), C ? null : /* @__PURE__ */ P(ne, {
9259
9265
  children: [/* @__PURE__ */ n(Fd, {
9260
9266
  disabled: l || a || O,
9261
9267
  searchText: y,
@@ -9275,7 +9281,7 @@ function _d(e) {
9275
9281
  },
9276
9282
  disabled: l || a || O,
9277
9283
  badgeNumber: v == null ? void 0 : v.length
9278
- }), $t(), /* @__PURE__ */ n(Ro, {
9284
+ }), vt(), /* @__PURE__ */ n(Ro, {
9279
9285
  disabled: O
9280
9286
  }), /* @__PURE__ */ n(qe, {
9281
9287
  icon: /* @__PURE__ */ n(Un, {}),
@@ -9289,7 +9295,7 @@ function _d(e) {
9289
9295
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
9290
9296
  loading: a,
9291
9297
  onClick: k
9292
- }), $t()]
9298
+ }), vt()]
9293
9299
  }), /* @__PURE__ */ n(qe, {
9294
9300
  icon: /* @__PURE__ */ n(Ur, {}),
9295
9301
  tooltip: $("showLogs"),
@@ -9308,7 +9314,7 @@ function _d(e) {
9308
9314
  (U = f == null ? void 0 : f.current) == null || U.refreshResults();
9309
9315
  }
9310
9316
  }), !C && /* @__PURE__ */ P(ne, {
9311
- children: [$t(), /* @__PURE__ */ n(Zn, {
9317
+ children: [vt(), /* @__PURE__ */ n(Zn, {
9312
9318
  currentView: r,
9313
9319
  availableViews: t,
9314
9320
  onChangeView: (U) => {
@@ -9317,7 +9323,7 @@ function _d(e) {
9317
9323
  previousView: w,
9318
9324
  disabled: O
9319
9325
  })]
9320
- }), $t(), /* @__PURE__ */ n(It, {
9326
+ }), vt(), /* @__PURE__ */ n(Dt, {
9321
9327
  icon: /* @__PURE__ */ n(jn, {}),
9322
9328
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
9323
9329
  tooltip: $("actions"),
@@ -9325,7 +9331,7 @@ function _d(e) {
9325
9331
  onItemClick: (U) => {
9326
9332
  !U || W(U);
9327
9333
  }
9328
- }), /* @__PURE__ */ n(It, {
9334
+ }), /* @__PURE__ */ n(Dt, {
9329
9335
  icon: /* @__PURE__ */ n(Kn, {}),
9330
9336
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
9331
9337
  tooltip: $("reports"),
@@ -9340,7 +9346,7 @@ function _d(e) {
9340
9346
  });
9341
9347
  }
9342
9348
  }), x && /* @__PURE__ */ P(ne, {
9343
- children: [$t(), /* @__PURE__ */ n(It, {
9349
+ children: [vt(), /* @__PURE__ */ n(Dt, {
9344
9350
  icon: /* @__PURE__ */ n($r, {
9345
9351
  component: () => /* @__PURE__ */ P("svg", {
9346
9352
  xmlns: "http://www.w3.org/2000/svg",
@@ -9410,7 +9416,7 @@ function _d(e) {
9410
9416
  })]
9411
9417
  });
9412
9418
  }
9413
- function $t() {
9419
+ function vt() {
9414
9420
  return /* @__PURE__ */ n("div", {
9415
9421
  className: "inline-block w-2"
9416
9422
  });
@@ -9589,7 +9595,7 @@ function Md(e, t) {
9589
9595
  setCurrentId: J,
9590
9596
  tabs: fe,
9591
9597
  activeKey: be,
9592
- openAction: Ee,
9598
+ openAction: $e,
9593
9599
  onRemoveTab: Ie
9594
9600
  } = ie || {};
9595
9601
  Bi("ctrl+g,command+g", (te) => {
@@ -9601,7 +9607,7 @@ function Md(e, t) {
9601
9607
  function ge(te) {
9602
9608
  O(te), Q == null || Q(te);
9603
9609
  }
9604
- bt(t, () => ({
9610
+ xt(t, () => ({
9605
9611
  canWeClose: Se
9606
9612
  }));
9607
9613
  const se = async () => {
@@ -9621,8 +9627,8 @@ function Md(e, t) {
9621
9627
  viewTuple: me
9622
9628
  });
9623
9629
  }
9624
- const Me = await kd(Fe);
9625
- for (const me of Me) {
9630
+ const Ee = await kd(Fe);
9631
+ for (const me of Ee) {
9626
9632
  if (!me)
9627
9633
  continue;
9628
9634
  const [, Te] = me.viewTuple;
@@ -9683,7 +9689,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9683
9689
  tabKey: u,
9684
9690
  canWeClose: Se
9685
9691
  }), pe(() => {
9686
- const te = I.find((Me) => Me.type === "tree"), Fe = I.find((Me) => c.id ? Me.type === c.type && Me.view_id === c.id : Me.type === c.type);
9692
+ const te = I.find((Ee) => Ee.type === "tree"), Fe = I.find((Ee) => c.id ? Ee.type === c.type && Ee.view_id === c.id : Ee.type === c.type);
9687
9693
  ge(Fe || te), m ? J == null || J(E) : (Be(void 0), R(void 0)), se();
9688
9694
  }, [i, s, m]), pe(() => {
9689
9695
  be === u && (J == null || J(b), Q == null || Q(y));
@@ -9698,25 +9704,25 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9698
9704
  var me;
9699
9705
  z(!0);
9700
9706
  const Fe = F.findIndex((Te) => Te.id === te);
9701
- let Me;
9707
+ let Ee;
9702
9708
  if (Fe === -1) {
9703
9709
  try {
9704
- Me = (me = await H.getHandler().readObjects({
9710
+ Ee = (me = await H.getHandler().readObjects({
9705
9711
  model: i,
9706
9712
  ids: [te],
9707
9713
  context: o
9708
9714
  })) == null ? void 0 : me[0];
9709
9715
  } catch {
9710
9716
  }
9711
- if (!Me) {
9717
+ if (!Ee) {
9712
9718
  z(!1), q(!1), ct(B("idNotFound"));
9713
9719
  return;
9714
9720
  }
9715
9721
  } else
9716
- Me = F[Fe];
9722
+ Ee = F[Fe];
9717
9723
  z(!1), q(!1);
9718
9724
  const ce = s.find((Te) => Te[1] === "form");
9719
- Ee({
9725
+ $e({
9720
9726
  domain: [],
9721
9727
  context: o,
9722
9728
  model: i,
@@ -9793,7 +9799,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9793
9799
  ge(te);
9794
9800
  }
9795
9801
  }
9796
- return V ? /* @__PURE__ */ n(Le, {}) : y ? /* @__PURE__ */ P(cl, {
9802
+ return V ? /* @__PURE__ */ n(Me, {}) : y ? /* @__PURE__ */ P(cl, {
9797
9803
  title: a,
9798
9804
  currentView: y,
9799
9805
  setCurrentView: ge,
@@ -9828,7 +9834,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9828
9834
  })]
9829
9835
  }) : null;
9830
9836
  }
9831
- const $o = wt(Md);
9837
+ const $o = bt(Md);
9832
9838
  async function Ed({
9833
9839
  actionId: e,
9834
9840
  rootContext: t = {},
@@ -9837,7 +9843,7 @@ async function Ed({
9837
9843
  const i = "ir.actions.act_window", o = `${i},${e}`, s = await H.getHandler().getActionData({
9838
9844
  action: o,
9839
9845
  context: t
9840
- }), a = vt({
9846
+ }), a = wt({
9841
9847
  context: s.context,
9842
9848
  values: r,
9843
9849
  fields: {}
@@ -9996,8 +10002,8 @@ function jd(e) {
9996
10002
  }, U = async () => {
9997
10003
  const J = W.current.length > 0 ? W.current : s, fe = hn(E.current, J), {
9998
10004
  colors: be
9999
- } = Ot(p), {
10000
- totalItems: Ee,
10005
+ } = _t(p), {
10006
+ totalItems: $e,
10001
10007
  results: Ie,
10002
10008
  attrsEvaluated: Be
10003
10009
  } = await H.getHandler().searchForTree({
@@ -10012,7 +10018,7 @@ function jd(e) {
10012
10018
  }
10013
10019
  });
10014
10020
  R(Qt(Be));
10015
- const ge = _t({
10021
+ const ge = It({
10016
10022
  resultsToSort: Ie,
10017
10023
  sorter: F,
10018
10024
  fields: {
@@ -10021,7 +10027,7 @@ function jd(e) {
10021
10027
  }
10022
10028
  });
10023
10029
  q(!1), x(ge);
10024
- const se = await Ee;
10030
+ const se = await $e;
10025
10031
  C(se);
10026
10032
  }, L = async () => {
10027
10033
  try {
@@ -10099,7 +10105,7 @@ function jd(e) {
10099
10105
  sorter: F,
10100
10106
  onChangeSort: (J) => {
10101
10107
  A == null || A(J);
10102
- const fe = _t({
10108
+ const fe = It({
10103
10109
  resultsToSort: S,
10104
10110
  sorter: J,
10105
10111
  fields: {
@@ -10117,7 +10123,7 @@ function jd(e) {
10117
10123
  message: N,
10118
10124
  type: "error",
10119
10125
  banner: !0
10120
- }) : u ? /* @__PURE__ */ n(Le, {
10126
+ }) : u ? /* @__PURE__ */ n(Me, {
10121
10127
  style: {
10122
10128
  padding: "2rem"
10123
10129
  }
@@ -10164,7 +10170,7 @@ function Yd(e, t) {
10164
10170
  } = Y(Xn), h = de(), g = de();
10165
10171
  pe(() => {
10166
10172
  y();
10167
- }, [r, o, i]), bt(t, () => ({
10173
+ }, [r, o, i]), xt(t, () => ({
10168
10174
  refresh: () => {
10169
10175
  y();
10170
10176
  },
@@ -10356,12 +10362,12 @@ function Yd(e, t) {
10356
10362
  const [Q, J] = ie, {
10357
10363
  actionId: fe,
10358
10364
  actionType: be,
10359
- title: Ee,
10365
+ title: $e,
10360
10366
  model: Ie
10361
10367
  } = S, Be = {
10362
10368
  action_id: fe,
10363
10369
  action_type: be,
10364
- name: Ee,
10370
+ name: $e,
10365
10371
  res_id: Z.id,
10366
10372
  res_model: Ie,
10367
10373
  view_id: Q,
@@ -10424,7 +10430,7 @@ function Yd(e, t) {
10424
10430
  })
10425
10431
  });
10426
10432
  }
10427
- const Wd = wt(Yd), Ud = (e) => {
10433
+ const Wd = bt(Yd), Ud = (e) => {
10428
10434
  const {
10429
10435
  ooui: t
10430
10436
  } = e;
@@ -10451,7 +10457,7 @@ const Wd = wt(Yd), Ud = (e) => {
10451
10457
  } = r, y = Y(Ne), {
10452
10458
  getContext: O
10453
10459
  } = y || {};
10454
- Ct(() => {
10460
+ St(() => {
10455
10461
  w();
10456
10462
  }, [o]);
10457
10463
  const I = (b) => {
@@ -10465,7 +10471,7 @@ const Wd = wt(Yd), Ud = (e) => {
10465
10471
  if (r.domain) {
10466
10472
  const C = await H.getHandler().evalDomain({
10467
10473
  domain: r.domain,
10468
- values: kt({
10474
+ values: Mt({
10469
10475
  fields: y == null ? void 0 : y.getFields(),
10470
10476
  values: y.getPlainValues()
10471
10477
  }),
@@ -10524,7 +10530,7 @@ const Wd = wt(Yd), Ud = (e) => {
10524
10530
  });
10525
10531
  }), I(C);
10526
10532
  };
10527
- return f && a.length === 0 ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(ne, {
10533
+ return f && a.length === 0 ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(ne, {
10528
10534
  children: /* @__PURE__ */ P("div", {
10529
10535
  className: "flex flex-row",
10530
10536
  children: [/* @__PURE__ */ n(Nt.Group, {
@@ -10724,7 +10730,7 @@ function su(e, t) {
10724
10730
  closable: !0,
10725
10731
  content: /* @__PURE__ */ n(iu, {})
10726
10732
  }]), f = de(/* @__PURE__ */ new Map()), d = de();
10727
- bt(t, () => ({
10733
+ xt(t, () => ({
10728
10734
  retrieveAndOpenAction: p,
10729
10735
  openShortcut: y
10730
10736
  }));
@@ -10757,7 +10763,7 @@ function su(e, t) {
10757
10763
  Ue("Action type not supported");
10758
10764
  return;
10759
10765
  }
10760
- const [x, $] = w.split(","), R = parseInt($), F = vt({
10766
+ const [x, $] = w.split(","), R = parseInt($), F = wt({
10761
10767
  context: S.context,
10762
10768
  values: i,
10763
10769
  fields: {}
@@ -10864,7 +10870,7 @@ function su(e, t) {
10864
10870
  } = w, [M, _] = $[0], N = {
10865
10871
  id: M,
10866
10872
  type: _
10867
- }, k = vt({
10873
+ }, k = wt({
10868
10874
  context: S,
10869
10875
  values: {
10870
10876
  ...D,
@@ -10873,7 +10879,7 @@ function su(e, t) {
10873
10879
  fields: V
10874
10880
  }), j = x ? await H.getHandler().evalDomain({
10875
10881
  domain: x,
10876
- values: kt({
10882
+ values: Mt({
10877
10883
  fields: V,
10878
10884
  values: {
10879
10885
  ...D,
@@ -10911,7 +10917,7 @@ function su(e, t) {
10911
10917
  } = w, C = `${D},${V}`, S = await H.getHandler().getActionData({
10912
10918
  action: C,
10913
10919
  context: o
10914
- }), x = vt({
10920
+ }), x = wt({
10915
10921
  context: S.context,
10916
10922
  values: i,
10917
10923
  fields: {}
@@ -11098,7 +11104,7 @@ function su(e, t) {
11098
11104
  })
11099
11105
  });
11100
11106
  }
11101
- const Lu = wt(su), {
11107
+ const Lu = bt(su), {
11102
11108
  useToken: au
11103
11109
  } = Pe;
11104
11110
  function lu(e) {
@@ -11308,7 +11314,7 @@ const {
11308
11314
  })
11309
11315
  })
11310
11316
  })]
11311
- }), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n(Le, {
11317
+ }), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n(Me, {
11312
11318
  style: {
11313
11319
  padding: "1rem"
11314
11320
  }
@@ -11394,7 +11400,7 @@ const {
11394
11400
  borderTopLeftRadius: 0,
11395
11401
  borderBottomLeftRadius: 0
11396
11402
  },
11397
- icon: /* @__PURE__ */ n(At, {
11403
+ icon: /* @__PURE__ */ n(Rt, {
11398
11404
  style: {
11399
11405
  fontSize: "0.5em"
11400
11406
  }