@gisce/react-ooui 1.4.5 → 1.4.6

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
  }, Ga = ({
2178
2178
  row: e,
2179
2179
  numberOfColumns: t
2180
2180
  }) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), qa = (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
  ...Wa({
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) {
@@ -2828,7 +2830,7 @@ const kt = ({
2828
2830
  context: S
2829
2831
  }))[0]);
2830
2832
  const R = {
2831
- ...typeof (x == null ? void 0 : x.context) == "string" ? vt({
2833
+ ...typeof (x == null ? void 0 : x.context) == "string" ? wt({
2832
2834
  context: x.context,
2833
2835
  fields: b,
2834
2836
  values: {
@@ -2841,7 +2843,7 @@ const kt = ({
2841
2843
  let F = [];
2842
2844
  if (x.domain && (F = await H.getHandler().evalDomain({
2843
2845
  domain: x.domain,
2844
- values: kt({
2846
+ values: Mt({
2845
2847
  fields: b,
2846
2848
  values: {
2847
2849
  ...C,
@@ -2940,7 +2942,7 @@ const kt = ({
2940
2942
  });
2941
2943
  }
2942
2944
  return /* @__PURE__ */ n(ne, {
2943
- children: /* @__PURE__ */ n(Mt.Provider, {
2945
+ children: /* @__PURE__ */ n(Et.Provider, {
2944
2946
  value: {
2945
2947
  processAction: O,
2946
2948
  globalValues: i
@@ -2953,7 +2955,7 @@ const kt = ({
2953
2955
  closable: !1,
2954
2956
  centered: !0,
2955
2957
  maskClosable: !1,
2956
- children: /* @__PURE__ */ n(Le, {})
2958
+ children: /* @__PURE__ */ n(Me, {})
2957
2959
  }), /* @__PURE__ */ n(Gt, {
2958
2960
  buttonModal: !0,
2959
2961
  parentContext: p.context,
@@ -3032,7 +3034,7 @@ async function ml({
3032
3034
  initialView: a
3033
3035
  };
3034
3036
  }
3035
- const hl = wt(fl), pl = ({
3037
+ const hl = bt(fl), pl = ({
3036
3038
  error: e,
3037
3039
  className: t
3038
3040
  }) => {
@@ -3085,7 +3087,7 @@ function yl(e, t) {
3085
3087
  t: b,
3086
3088
  lang: C
3087
3089
  } = 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) < gl, be = Y(Ne), {
3088
- activeId: Ee,
3090
+ activeId: $e,
3089
3091
  getPlainValues: Ie
3090
3092
  } = be || {}, Be = Y(Qe), {
3091
3093
  setFormIsSaving: ge = void 0,
@@ -3095,11 +3097,11 @@ function yl(e, t) {
3095
3097
  setAttachments: Ve = void 0,
3096
3098
  title: je = void 0,
3097
3099
  setTitle: We = void 0
3098
- } = (w ? Be : {}) || {}, te = Y(Mt), {
3100
+ } = (w ? Be : {}) || {}, te = Y(Et), {
3099
3101
  processAction: Fe,
3100
- globalValues: Me
3102
+ globalValues: Ee
3101
3103
  } = te || {};
3102
- bt(t, () => ({
3104
+ xt(t, () => ({
3103
3105
  submitForm: zt,
3104
3106
  getFields: Xe,
3105
3107
  getValues: Ke,
@@ -3172,8 +3174,8 @@ function yl(e, t) {
3172
3174
  id: ue(),
3173
3175
  active_id: ue(),
3174
3176
  active_ids: [ue()],
3175
- parent_id: Ee,
3176
- ...Me
3177
+ parent_id: $e,
3178
+ ...Ee
3177
3179
  };
3178
3180
  }
3179
3181
  const he = async (K) => {
@@ -3193,11 +3195,11 @@ function yl(e, t) {
3193
3195
  fields: k
3194
3196
  })).length !== 0, xe = (K) => {
3195
3197
  const G = M.getFieldsValue(!0);
3196
- return Ft(G, K);
3198
+ return Ot(G, K);
3197
3199
  }, ke = (K, G) => {
3198
3200
  qt({
3199
3201
  values: {
3200
- ...Ft(M.getFieldsValue(!0), k),
3202
+ ...Ot(M.getFieldsValue(!0), k),
3201
3203
  [K]: G
3202
3204
  },
3203
3205
  fields: k,
@@ -3241,7 +3243,7 @@ function yl(e, t) {
3241
3243
  }), O && (G = {
3242
3244
  ...La(O),
3243
3245
  ...G
3244
- }), ee.current = Ft(G, re), qt({
3246
+ }), ee.current = Ot(G, re), qt({
3245
3247
  values: G,
3246
3248
  fields: re,
3247
3249
  reset: !0,
@@ -3283,7 +3285,7 @@ function yl(e, t) {
3283
3285
  const yt = {
3284
3286
  ...re ? {} : M.getFieldsValue(!0),
3285
3287
  ...K
3286
- }, wn = Ft(yt, G), Zo = Object.keys(G).map((bn) => {
3288
+ }, wn = Ot(yt, G), Zo = Object.keys(G).map((bn) => {
3287
3289
  const Xo = wn[bn] !== void 0 ? wn[bn] : void 0;
3288
3290
  return {
3289
3291
  name: bn,
@@ -3426,7 +3428,7 @@ function yl(e, t) {
3426
3428
  }) && K !== !0)
3427
3429
  return;
3428
3430
  {
3429
- const oe = Ft(M.getFieldsValue(!0), k);
3431
+ const oe = Ot(M.getFieldsValue(!0), k);
3430
3432
  Z.current = oe, u == null || u(oe), se == null || se(!0), jo(re);
3431
3433
  }
3432
3434
  }
@@ -3522,7 +3524,7 @@ function yl(e, t) {
3522
3524
  ce == null || ce(ue(), Ke(), X());
3523
3525
  else if (re.type) {
3524
3526
  let oe = {};
3525
- re.context && (oe = vt({
3527
+ re.context && (oe = wt({
3526
3528
  context: re.context,
3527
3529
  fields: k,
3528
3530
  values: Ke()
@@ -3621,7 +3623,7 @@ function yl(e, t) {
3621
3623
  Ue(oe);
3622
3624
  }
3623
3625
  }
3624
- const zo = () => !F && !$ ? /* @__PURE__ */ n(Le, {}) : !r && !p || !I ? null : /* @__PURE__ */ n(ne, {
3626
+ const zo = () => !F && !$ ? /* @__PURE__ */ n(Me, {}) : !r && !p || !I ? null : /* @__PURE__ */ n(ne, {
3625
3627
  children: /* @__PURE__ */ n(ns, {
3626
3628
  getValues: Ke,
3627
3629
  getPlainValues: at,
@@ -3665,7 +3667,7 @@ function yl(e, t) {
3665
3667
  }), /* @__PURE__ */ n(_e, {
3666
3668
  disabled: S || f,
3667
3669
  loading: S,
3668
- icon: /* @__PURE__ */ n(Rt, {}),
3670
+ icon: /* @__PURE__ */ n(kt, {}),
3669
3671
  onClick: async () => {
3670
3672
  await zt();
3671
3673
  },
@@ -3693,7 +3695,7 @@ function yl(e, t) {
3693
3695
  })
3694
3696
  }) : null;
3695
3697
  }
3696
- const Ut = wt(yl), Gt = (e) => {
3698
+ const Ut = bt(yl), Gt = (e) => {
3697
3699
  const {
3698
3700
  visible: t,
3699
3701
  id: r,
@@ -3813,7 +3815,7 @@ const Ut = wt(yl), Gt = (e) => {
3813
3815
  })];
3814
3816
  return /* @__PURE__ */ P(ne, {
3815
3817
  children: [r && /* @__PURE__ */ n(un, {
3816
- ooui: new Vt({
3818
+ ooui: new At({
3817
3819
  name: o + "_label",
3818
3820
  string: i,
3819
3821
  help: t.tooltip,
@@ -3938,7 +3940,7 @@ function Cl(e) {
3938
3940
  });
3939
3941
  return /* @__PURE__ */ P(ne, {
3940
3942
  children: [r && /* @__PURE__ */ n(un, {
3941
- ooui: new Vt({
3943
+ ooui: new At({
3942
3944
  name: i + "_label",
3943
3945
  string: o,
3944
3946
  help: s,
@@ -3968,7 +3970,7 @@ const {
3968
3970
  defaultSeed: Tl
3969
3971
  } = Pe, Fl = Sl(Tl), {
3970
3972
  Option: Ol
3971
- } = xt, _l = (e) => {
3973
+ } = Ct, _l = (e) => {
3972
3974
  const {
3973
3975
  ooui: t
3974
3976
  } = e, {
@@ -4000,7 +4002,7 @@ const {
4000
4002
  value: v,
4001
4003
  children: v
4002
4004
  }, m);
4003
- }), c = a && !s ? Dl : xt;
4005
+ }), c = a && !s ? Dl : Ct;
4004
4006
  function f(d) {
4005
4007
  const m = d.map((v) => {
4006
4008
  const p = l.find(([h, g]) => v === g);
@@ -4020,7 +4022,7 @@ const {
4020
4022
  showArrow: !0,
4021
4023
  children: u
4022
4024
  });
4023
- }, Dl = Kt(xt)`
4025
+ }, Dl = Kt(Ct)`
4024
4026
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
4025
4027
  background-color: ${Fl.colorPrimaryBg};
4026
4028
  }
@@ -4099,7 +4101,7 @@ function Al(e) {
4099
4101
  onClick: t,
4100
4102
  children: [r ? /* @__PURE__ */ n(hi, {
4101
4103
  className: "pr-1"
4102
- }) : /* @__PURE__ */ n(At, {
4104
+ }) : /* @__PURE__ */ n(Rt, {
4103
4105
  className: "pr-1"
4104
4106
  }), s(r ? "simple_search" : "advanced_search")]
4105
4107
  })
@@ -4192,7 +4194,7 @@ function go(e) {
4192
4194
  }, M))
4193
4195
  }, F));
4194
4196
  };
4195
- Ct(() => {
4197
+ St(() => {
4196
4198
  w(!1), V.current = new fi(r, t, p), V.current.parse(), g(V.current._simpleSearchContainer), O(V.current._advancedSearchContainer);
4197
4199
  }, [t, r]);
4198
4200
  const C = b(), S = (x) => {
@@ -4390,7 +4392,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
4390
4392
  t: p
4391
4393
  } = Y(we), h = Y(st), {
4392
4394
  openRelate: g
4393
- } = h || {}, y = Y(Mt), {
4395
+ } = h || {}, y = Y(Et), {
4394
4396
  processAction: O
4395
4397
  } = y || {};
4396
4398
  if (!t)
@@ -4414,7 +4416,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
4414
4416
  context: i
4415
4417
  }))[0];
4416
4418
  v({
4417
- ...Ft(R, x),
4419
+ ...Ot(R, x),
4418
4420
  active_id: t
4419
4421
  }), c(!1);
4420
4422
  } catch (S) {
@@ -4430,7 +4432,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
4430
4432
  style: {
4431
4433
  padding: 15
4432
4434
  },
4433
- children: /* @__PURE__ */ n(Le, {})
4435
+ children: /* @__PURE__ */ n(Me, {})
4434
4436
  })
4435
4437
  });
4436
4438
  if (!f || !f.toolbar)
@@ -4541,7 +4543,7 @@ const $l = (e) => /* @__PURE__ */ n(ve, {
4541
4543
  value: t,
4542
4544
  context: r,
4543
4545
  selectionValues: i
4544
- } = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = $e(async () => {
4546
+ } = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = Le(async () => {
4545
4547
  if (!t || t && o)
4546
4548
  return;
4547
4549
  l(!0);
@@ -5052,7 +5054,7 @@ function pn(e) {
5052
5054
  setTitle: A = void 0
5053
5055
  } = (O ? R : {}) || {};
5054
5056
  pe(() => {
5055
- S.current = Ot(o);
5057
+ S.current = _t(o);
5056
5058
  const z = Oa(S.current, {
5057
5059
  boolean: Wl,
5058
5060
  many2one: Ul,
@@ -5077,7 +5079,7 @@ function pn(e) {
5077
5079
  const z = ao(S.current, s);
5078
5080
  D(z), $.current = r;
5079
5081
  }, [s]);
5080
- 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, {
5082
+ 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, {
5081
5083
  className: "pb-4"
5082
5084
  }) : /* @__PURE__ */ P(Ce, {
5083
5085
  align: "bottom",
@@ -5120,17 +5122,19 @@ function pn(e) {
5120
5122
  const U = S.current;
5121
5123
  d && U.columns.some((L) => L.sum !== void 0) && (W = d - 30);
5122
5124
  }
5123
- return S.current === null ? /* @__PURE__ */ n(Le, {
5125
+ return S.current === null ? /* @__PURE__ */ n(Me, {
5124
5126
  style: {
5125
5127
  padding: "2rem"
5126
5128
  }
5127
5129
  }) : /* @__PURE__ */ P("div", {
5128
- children: [k(), /* @__PURE__ */ n(Ri, {
5130
+ children: [k(), l && /* @__PURE__ */ n(Me, {
5131
+ className: "pb-4"
5132
+ }), /* @__PURE__ */ n(Ri, {
5129
5133
  height: W,
5130
5134
  columns: q.columns,
5131
5135
  dataSource: V,
5132
- loading: l,
5133
- loadingComponent: /* @__PURE__ */ n(Le, {}),
5136
+ loading: !1,
5137
+ loadingComponent: /* @__PURE__ */ n(Me, {}),
5134
5138
  onRowStyle: (z) => {
5135
5139
  if (m[z.id])
5136
5140
  return {
@@ -5173,7 +5177,7 @@ function rc(e, t) {
5173
5177
  onChangeSelectedRowKeys: m
5174
5178
  } = 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(), {
5175
5179
  height: R
5176
- } = fn(), F = Y(Mt), {
5180
+ } = fn(), F = Y(Et), {
5177
5181
  processAction: A
5178
5182
  } = F || {}, M = Y(Qe), {
5179
5183
  setResults: _ = void 0,
@@ -5193,7 +5197,7 @@ function rc(e, t) {
5193
5197
  setTreeIsLoading: J = void 0,
5194
5198
  searchValues: fe = {},
5195
5199
  setSearchValues: be = void 0,
5196
- limit: Ee = Ht,
5200
+ limit: $e = Ht,
5197
5201
  setLimit: Ie = void 0
5198
5202
  } = (f ? M : {}) || {}, {
5199
5203
  submit: Be,
@@ -5206,7 +5210,7 @@ function rc(e, t) {
5206
5210
  offset: We,
5207
5211
  getResults: te,
5208
5212
  requestPageChange: Fe,
5209
- changeSort: Me,
5213
+ changeSort: Ee,
5210
5214
  fetchChildrenForRecord: ce,
5211
5215
  colorsForResults: me,
5212
5216
  statusForResults: Te,
@@ -5233,10 +5237,10 @@ function rc(e, t) {
5233
5237
  domain: u,
5234
5238
  currentId: k,
5235
5239
  setActionViewTotalItems: ie,
5236
- limit: Ee,
5240
+ limit: $e,
5237
5241
  setLimit: Ie
5238
5242
  });
5239
- bt(t, () => ({
5243
+ xt(t, () => ({
5240
5244
  refreshResults: () => {
5241
5245
  y.current = !1, se();
5242
5246
  },
@@ -5250,9 +5254,9 @@ function rc(e, t) {
5250
5254
  try {
5251
5255
  await Ke(), g(!0);
5252
5256
  } catch (ke) {
5253
- C(ke);
5257
+ C(ke), J == null || J(!1);
5254
5258
  } finally {
5255
- p(!1), J == null || J(!1);
5259
+ p(!1);
5256
5260
  }
5257
5261
  }, Ke = async () => {
5258
5262
  I(r);
@@ -5328,7 +5332,7 @@ function rc(e, t) {
5328
5332
  searchFields: co([D.search_fields, w.search_fields]),
5329
5333
  formXml: D.arch,
5330
5334
  onClear: ge,
5331
- limit: Ee,
5335
+ limit: $e,
5332
5336
  offset: We,
5333
5337
  isSearching: De,
5334
5338
  onSubmit: Be,
@@ -5340,7 +5344,7 @@ function rc(e, t) {
5340
5344
  }), /* @__PURE__ */ n(pn, {
5341
5345
  context: d,
5342
5346
  total: ue,
5343
- limit: Ee,
5347
+ limit: $e,
5344
5348
  page: je,
5345
5349
  treeView: w,
5346
5350
  results: te(),
@@ -5355,7 +5359,7 @@ function rc(e, t) {
5355
5359
  onChange: Ae
5356
5360
  },
5357
5361
  sorter: ee,
5358
- onChangeSort: Me,
5362
+ onChangeSort: Ee,
5359
5363
  onFetchChildrenForRecord: w.isExpandable ? ce : void 0,
5360
5364
  childField: w.field_parent,
5361
5365
  rootTree: f
@@ -5370,10 +5374,10 @@ function rc(e, t) {
5370
5374
  style: c ? {} : {
5371
5375
  display: "none"
5372
5376
  },
5373
- children: v ? /* @__PURE__ */ n(Le, {}) : ye()
5377
+ children: v ? /* @__PURE__ */ n(Me, {}) : ye()
5374
5378
  });
5375
5379
  }
5376
- const So = wt(rc), To = (e) => {
5380
+ const So = bt(rc), To = (e) => {
5377
5381
  const {
5378
5382
  visible: t,
5379
5383
  onCloseModal: r,
@@ -5423,7 +5427,7 @@ const So = wt(rc), To = (e) => {
5423
5427
  },
5424
5428
  children: m("new")
5425
5429
  }), /* @__PURE__ */ n(_e, {
5426
- icon: /* @__PURE__ */ n(Rt, {}),
5430
+ icon: /* @__PURE__ */ n(kt, {}),
5427
5431
  onClick: () => {
5428
5432
  y();
5429
5433
  },
@@ -5589,7 +5593,7 @@ const So = wt(rc), To = (e) => {
5589
5593
  async function z() {
5590
5594
  c && (R.current = await H.getHandler().evalDomain({
5591
5595
  domain: c,
5592
- values: kt({
5596
+ values: Mt({
5593
5597
  fields: S(),
5594
5598
  values: C()
5595
5599
  }),
@@ -6139,7 +6143,7 @@ const {
6139
6143
  uninformedString: a,
6140
6144
  manualIds: l
6141
6145
  } = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), [p, h] = T(), [g, y] = T("line");
6142
- return Ct(() => {
6146
+ return St(() => {
6143
6147
  (async () => {
6144
6148
  c(!0), d(void 0);
6145
6149
  const O = Ln(o);
@@ -6280,7 +6284,7 @@ const Cc = {
6280
6284
  banner: !0
6281
6285
  });
6282
6286
  if (c)
6283
- return /* @__PURE__ */ n(Le, {});
6287
+ return /* @__PURE__ */ n(Me, {});
6284
6288
  if (!f)
6285
6289
  return /* @__PURE__ */ n(Ze, {
6286
6290
  message: "No data to display",
@@ -6335,7 +6339,7 @@ const Fc = (e, t) => {
6335
6339
  } = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), p = Y(Qe), {
6336
6340
  setGraphIsLoading: h = void 0
6337
6341
  } = p || {};
6338
- bt(t, () => ({
6342
+ xt(t, () => ({
6339
6343
  refresh: () => {
6340
6344
  g();
6341
6345
  }
@@ -6415,7 +6419,7 @@ const Fc = (e, t) => {
6415
6419
  children: `Graph ${f.type} not implemented`
6416
6420
  });
6417
6421
  }
6418
- }, gn = wt(Fc), {
6422
+ }, gn = bt(Fc), {
6419
6423
  confirm: Oc
6420
6424
  } = Ge, _c = ({
6421
6425
  onOk: e,
@@ -6589,8 +6593,8 @@ const Mc = (e) => {
6589
6593
  }
6590
6594
  fe();
6591
6595
  }, [s, a]);
6592
- const fe = $e(() => {
6593
- (a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && Ee();
6596
+ const fe = Le(() => {
6597
+ (a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && $e();
6594
6598
  }, [s, a]);
6595
6599
  pe(() => {
6596
6600
  Be();
@@ -6601,7 +6605,7 @@ const Mc = (e) => {
6601
6605
  fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ae = o.get("tree")) == null ? void 0 : Ae.fields),
6602
6606
  items: kc(X)
6603
6607
  });
6604
- }, Ee = async () => {
6608
+ }, $e = async () => {
6605
6609
  await Ie(), u > Q.length - 1 && u !== 0 && c(0);
6606
6610
  }, Ie = async (X) => {
6607
6611
  var ae, Ae, he;
@@ -6633,7 +6637,7 @@ const Mc = (e) => {
6633
6637
  async function Be() {
6634
6638
  ee && (N.current = await H.getHandler().evalDomain({
6635
6639
  domain: ee,
6636
- values: kt({
6640
+ values: Mt({
6637
6641
  fields: m(),
6638
6642
  values: v()
6639
6643
  }),
@@ -6694,7 +6698,7 @@ const Mc = (e) => {
6694
6698
  Dc({
6695
6699
  lang: g,
6696
6700
  onOk: () => {
6697
- a === "form" ? Fe() : Me();
6701
+ a === "form" ? Fe() : Ee();
6698
6702
  }
6699
6703
  });
6700
6704
  return;
@@ -6702,7 +6706,7 @@ const Mc = (e) => {
6702
6706
  _c({
6703
6707
  lang: g,
6704
6708
  onOk: () => {
6705
- a === "form" ? Fe() : Me();
6709
+ a === "form" ? Fe() : Ee();
6706
6710
  }
6707
6711
  });
6708
6712
  }, We = async () => {
@@ -6738,7 +6742,7 @@ const Mc = (e) => {
6738
6742
  E(X);
6739
6743
  }
6740
6744
  c(0), V(!1);
6741
- }, Me = async () => {
6745
+ }, Ee = async () => {
6742
6746
  const X = Q.filter((ae) => F.includes(ae.id));
6743
6747
  V(!0), I(!1), E(void 0);
6744
6748
  try {
@@ -6838,7 +6842,7 @@ const Mc = (e) => {
6838
6842
  const Xe = () => {
6839
6843
  var ae, Ae, he, ye;
6840
6844
  if (a === "form")
6841
- return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(Ut, {
6845
+ return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(Ut, {
6842
6846
  formView: o.get("form"),
6843
6847
  values: (ae = Q[u]) == null ? void 0 : ae.values,
6844
6848
  parentContext: {
@@ -6867,7 +6871,7 @@ const Mc = (e) => {
6867
6871
  readOnly: U
6868
6872
  });
6869
6873
  let X = [];
6870
- if (Q.some((xe) => xe.treeValues) && (X = k ? _t({
6874
+ if (Q.some((xe) => xe.treeValues) && (X = k ? It({
6871
6875
  resultsToSort: Q.map((xe) => xe.treeValues),
6872
6876
  sorter: k,
6873
6877
  fields: {
@@ -6918,7 +6922,7 @@ const Mc = (e) => {
6918
6922
  banner: !0
6919
6923
  });
6920
6924
  const Ke = M;
6921
- return w ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
6925
+ return w ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
6922
6926
  children: [/* @__PURE__ */ n(Ac, {
6923
6927
  mode: a,
6924
6928
  title: ue(),
@@ -6984,7 +6988,7 @@ const Mc = (e) => {
6984
6988
  const [u, c] = T(!0), [f, d] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = Y(Ne), {
6985
6989
  getContext: h
6986
6990
  } = p || {};
6987
- Ct(() => {
6991
+ St(() => {
6988
6992
  y();
6989
6993
  }, [t]);
6990
6994
  const g = async (I) => o && o[I] ? o[I] : await H.getHandler().getView({
@@ -7013,7 +7017,7 @@ const Mc = (e) => {
7013
7017
  c(!1);
7014
7018
  }
7015
7019
  };
7016
- return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(Le, {}) : f ? /* @__PURE__ */ n(Ze, {
7020
+ return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(Me, {}) : f ? /* @__PURE__ */ n(Ze, {
7017
7021
  className: "mt-10",
7018
7022
  message: f,
7019
7023
  type: "error",
@@ -7289,7 +7293,7 @@ const {
7289
7293
  limit: s,
7290
7294
  onClose: a
7291
7295
  }) => {
7292
- const l = de({}), u = de(/* @__PURE__ */ new Map()), c = $e(
7296
+ const l = de({}), u = de(/* @__PURE__ */ new Map()), c = Le(
7293
7297
  async (g) => {
7294
7298
  if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
7295
7299
  ct(Oe("selectAtLeastOneField", r));
@@ -7311,18 +7315,18 @@ const {
7311
7315
  format: g.exportType
7312
7316
  });
7313
7317
  a(), await new Promise((w) => setTimeout(w, 200));
7314
- const I = await Dt(O);
7318
+ const I = await Vt(O);
7315
7319
  mn(O, I.mime);
7316
7320
  },
7317
7321
  [r, e, o, s, t, a]
7318
- ), f = $e(async () => {
7322
+ ), f = Le(async () => {
7319
7323
  const g = await H.getHandler().getFields({
7320
7324
  model: e,
7321
7325
  context: t,
7322
7326
  fields: []
7323
7327
  });
7324
7328
  return l.current["/"] = g, _r({ fields: g });
7325
- }, [e, t, l]), d = $e(
7329
+ }, [e, t, l]), d = Le(
7326
7330
  async (g) => {
7327
7331
  const O = kn(g, l.current)[Rn(g)], I = O.relation, w = await H.getHandler().getFields({
7328
7332
  model: I,
@@ -7340,7 +7344,7 @@ const {
7340
7344
  });
7341
7345
  },
7342
7346
  [l.current, e, t]
7343
- ), m = $e(async () => {
7347
+ ), m = Le(async () => {
7344
7348
  const g = await qc({ model: e, context: t }), y = await Jc({
7345
7349
  predefinedExports: g,
7346
7350
  fields: l.current,
@@ -7359,7 +7363,7 @@ const {
7359
7363
  })),
7360
7364
  keysWithChilds: y
7361
7365
  };
7362
- }, [l.current]), v = $e(
7366
+ }, [l.current]), v = Le(
7363
7367
  async (g) => {
7364
7368
  const y = await h("ir.exports"), O = await h("ir.exports.line"), I = await H.getHandler().create({
7365
7369
  model: "ir.exports",
@@ -7383,7 +7387,7 @@ const {
7383
7387
  ), { ...g, id: I };
7384
7388
  },
7385
7389
  []
7386
- ), p = $e(
7390
+ ), p = Le(
7387
7391
  async (g) => {
7388
7392
  await H.getHandler().delete({
7389
7393
  model: "ir.exports",
@@ -7391,7 +7395,7 @@ const {
7391
7395
  });
7392
7396
  },
7393
7397
  []
7394
- ), h = $e(
7398
+ ), h = Le(
7395
7399
  async (g) => {
7396
7400
  if (u.current.has(g))
7397
7401
  return u.current.get(g);
@@ -7679,8 +7683,8 @@ var Ao = { exports: {} };
7679
7683
  return new Date((_ === "X" ? 1e3 : 1) * M);
7680
7684
  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;
7681
7685
  j && !q || (J = q > 0 ? q - 1 : Z.getMonth());
7682
- var fe = z || 0, be = U || 0, Ee = L || 0, Ie = B || 0;
7683
- 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);
7686
+ var fe = z || 0, be = U || 0, $e = L || 0, Ie = B || 0;
7687
+ 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);
7684
7688
  } catch {
7685
7689
  return new Date("");
7686
7690
  }
@@ -7824,11 +7828,11 @@ const rd = (e) => {
7824
7828
  i == null || i(I);
7825
7829
  };
7826
7830
  async function h() {
7827
- 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");
7831
+ 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");
7828
7832
  V.href = w, V.download = D || E, V.click();
7829
7833
  }
7830
7834
  async function g() {
7831
- const I = await Dt(r);
7835
+ const I = await Vt(r);
7832
7836
  mn(r, I.mime);
7833
7837
  }
7834
7838
  async function y(I) {
@@ -7926,7 +7930,7 @@ function Zn(e) {
7926
7930
  children: v.type.charAt(0).toUpperCase() + v.type.slice(1)
7927
7931
  }), /* @__PURE__ */ n(le, {
7928
7932
  flex: "none",
7929
- children: /* @__PURE__ */ n(Rt, {
7933
+ children: /* @__PURE__ */ n(kt, {
7930
7934
  style: {
7931
7935
  opacity: t.view_id === v.view_id ? 1 : 0
7932
7936
  }
@@ -7987,7 +7991,7 @@ function Zn(e) {
7987
7991
  borderTopLeftRadius: 0,
7988
7992
  borderBottomLeftRadius: 0
7989
7993
  },
7990
- icon: /* @__PURE__ */ n(At, {
7994
+ icon: /* @__PURE__ */ n(Rt, {
7991
7995
  style: {
7992
7996
  fontSize: "0.5em"
7993
7997
  }
@@ -7997,7 +8001,7 @@ function Zn(e) {
7997
8001
  })]
7998
8002
  });
7999
8003
  }
8000
- function It(e) {
8004
+ function Dt(e) {
8001
8005
  const {
8002
8006
  icon: t,
8003
8007
  tooltip: r,
@@ -8026,7 +8030,7 @@ function It(e) {
8026
8030
  overlay: l(),
8027
8031
  disabled: a || !i || i.length === 0,
8028
8032
  children: /* @__PURE__ */ P(_e, {
8029
- children: [t, " ", s, " ", /* @__PURE__ */ n(At, {})]
8033
+ children: [t, " ", s, " ", /* @__PURE__ */ n(Rt, {})]
8030
8034
  })
8031
8035
  });
8032
8036
  }
@@ -8118,7 +8122,7 @@ const fd = (e) => {
8118
8122
  lang: o
8119
8123
  } = Y(we), [s, a] = T(!1), l = /* @__PURE__ */ P(_e, {
8120
8124
  disabled: r,
8121
- children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(At, {
8125
+ children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(Rt, {
8122
8126
  style: {
8123
8127
  fontSize: 12
8124
8128
  }
@@ -8142,7 +8146,7 @@ const fd = (e) => {
8142
8146
  onOpenAttachmentDetail: l,
8143
8147
  onListAllAttachments: u
8144
8148
  } = e;
8145
- return o ? /* @__PURE__ */ n(Le, {
8149
+ return o ? /* @__PURE__ */ n(Me, {
8146
8150
  style: {
8147
8151
  padding: 20
8148
8152
  }
@@ -8230,7 +8234,7 @@ function hd(e) {
8230
8234
  formRef: a
8231
8235
  } = Y(Qe), [l, u] = T(!1), [c, f] = T([]), [d, m] = T(!1), {
8232
8236
  t: v
8233
- } = Y(we), p = $e(async () => {
8237
+ } = Y(we), p = Le(async () => {
8234
8238
  u(!0);
8235
8239
  try {
8236
8240
  const y = await H.getHandler().readObjects({
@@ -8249,7 +8253,7 @@ function hd(e) {
8249
8253
  Ue(y);
8250
8254
  }
8251
8255
  u(!1);
8252
- }, t), h = $e(async (y) => {
8256
+ }, t), h = Le(async (y) => {
8253
8257
  if (y.link) {
8254
8258
  window.open(y.link);
8255
8259
  return;
@@ -8267,11 +8271,11 @@ function hd(e) {
8267
8271
  }
8268
8272
  if (m(!1), !!O)
8269
8273
  if (O.datas) {
8270
- const I = await Dt(O.datas);
8274
+ const I = await Vt(O.datas);
8271
8275
  mn(O.datas, I.mime);
8272
8276
  } else
8273
8277
  s(O);
8274
- }, []), g = $e(async (y) => {
8278
+ }, []), g = Le(async (y) => {
8275
8279
  s(y);
8276
8280
  }, []);
8277
8281
  return pe(() => {
@@ -8293,7 +8297,7 @@ function hd(e) {
8293
8297
  closable: !1,
8294
8298
  centered: !0,
8295
8299
  maskClosable: !1,
8296
- children: /* @__PURE__ */ n(Le, {})
8300
+ children: /* @__PURE__ */ n(Me, {})
8297
8301
  })]
8298
8302
  });
8299
8303
  }
@@ -8328,7 +8332,7 @@ function pd({
8328
8332
  } = Y(Qe), {
8329
8333
  t: C,
8330
8334
  lang: S
8331
- } = Y(we), x = Y(Mt), {
8335
+ } = Y(we), x = Y(Et), {
8332
8336
  processAction: $
8333
8337
  } = x || {}, R = Y(st), {
8334
8338
  openRelate: F,
@@ -8419,7 +8423,7 @@ function pd({
8419
8423
  return r ? /* @__PURE__ */ P(Ye, {
8420
8424
  wrap: !0,
8421
8425
  children: [O && /* @__PURE__ */ P(ne, {
8422
- children: [/* @__PURE__ */ n(Le, {}), St(), St()]
8426
+ children: [/* @__PURE__ */ n(Me, {}), Tt(), Tt()]
8423
8427
  }), /* @__PURE__ */ n(Ro, {
8424
8428
  disabled: a || O || p || h
8425
8429
  }), /* @__PURE__ */ n(qe, {
@@ -8440,7 +8444,7 @@ function pd({
8440
8444
  disabled: a || l === void 0 || p || h || O,
8441
8445
  loading: p,
8442
8446
  onClick: j
8443
- }), St(), /* @__PURE__ */ n(qe, {
8447
+ }), Tt(), /* @__PURE__ */ n(qe, {
8444
8448
  icon: /* @__PURE__ */ n(Ur, {}),
8445
8449
  tooltip: C("showLogs"),
8446
8450
  disabled: a || l === void 0 || p || h || O,
@@ -8458,7 +8462,7 @@ function pd({
8458
8462
  w.current.fetchValues();
8459
8463
  });
8460
8464
  }
8461
- }), St(), /* @__PURE__ */ n(Zn, {
8465
+ }), Tt(), /* @__PURE__ */ n(Zn, {
8462
8466
  currentView: r,
8463
8467
  previousView: D,
8464
8468
  availableViews: t,
@@ -8467,7 +8471,7 @@ function pd({
8467
8471
  },
8468
8472
  disabled: z,
8469
8473
  formHasChanges: s
8470
- }), St(), /* @__PURE__ */ P(Ye, {
8474
+ }), Tt(), /* @__PURE__ */ P(Ye, {
8471
8475
  children: [/* @__PURE__ */ n(qe, {
8472
8476
  icon: /* @__PURE__ */ n(Kr, {}),
8473
8477
  tooltip: C("previous"),
@@ -8485,17 +8489,17 @@ function pd({
8485
8489
  _(N);
8486
8490
  }
8487
8491
  })]
8488
- }), St(), /* @__PURE__ */ n(It, {
8492
+ }), Tt(), /* @__PURE__ */ n(Dt, {
8489
8493
  icon: /* @__PURE__ */ n(jn, {}),
8490
8494
  disabled: z,
8491
8495
  tooltip: C("actions"),
8492
8496
  items: e == null ? void 0 : e.action,
8493
8497
  onItemClick: async (L) => {
8494
- !L || !(await Tt({
8498
+ !L || !(await Ft({
8495
8499
  onFormSave: o
8496
8500
  })).succeed || U(L);
8497
8501
  }
8498
- }), /* @__PURE__ */ n(It, {
8502
+ }), /* @__PURE__ */ n(Dt, {
8499
8503
  icon: /* @__PURE__ */ n(Kn, {}),
8500
8504
  disabled: z,
8501
8505
  tooltip: C("reports"),
@@ -8503,7 +8507,7 @@ function pd({
8503
8507
  onItemClick: async (L) => {
8504
8508
  if (!L)
8505
8509
  return;
8506
- const B = await Tt({
8510
+ const B = await Ft({
8507
8511
  onFormSave: o
8508
8512
  });
8509
8513
  !B.succeed || U({
@@ -8514,13 +8518,13 @@ function pd({
8514
8518
  }
8515
8519
  });
8516
8520
  }
8517
- }), /* @__PURE__ */ n(It, {
8521
+ }), /* @__PURE__ */ n(Dt, {
8518
8522
  icon: /* @__PURE__ */ n(jr, {}),
8519
8523
  disabled: z,
8520
8524
  tooltip: C("related"),
8521
8525
  items: e == null ? void 0 : e.relate,
8522
8526
  onItemClick: async (L) => {
8523
- !L || !(await Tt({
8527
+ !L || !(await Ft({
8524
8528
  onFormSave: o
8525
8529
  })).succeed || F({
8526
8530
  relateData: L,
@@ -8534,7 +8538,7 @@ function pd({
8534
8538
  disabled: z,
8535
8539
  attachments: I,
8536
8540
  onAddNewAttachment: async () => {
8537
- const L = await Tt({
8541
+ const L = await Ft({
8538
8542
  onFormSave: o
8539
8543
  });
8540
8544
  if (!L.succeed)
@@ -8553,7 +8557,7 @@ function pd({
8553
8557
  });
8554
8558
  },
8555
8559
  onListAllAttachments: async () => {
8556
- const L = await Tt({
8560
+ const L = await Ft({
8557
8561
  onFormSave: o
8558
8562
  });
8559
8563
  if (!L.succeed)
@@ -8566,7 +8570,7 @@ function pd({
8566
8570
  });
8567
8571
  },
8568
8572
  onViewAttachmentDetails: async (L) => {
8569
- !(await Tt({
8573
+ !(await Ft({
8570
8574
  onFormSave: o
8571
8575
  })).succeed || A({
8572
8576
  model: "ir.attachment",
@@ -8577,12 +8581,12 @@ function pd({
8577
8581
  })]
8578
8582
  }) : null;
8579
8583
  }
8580
- function St() {
8584
+ function Tt() {
8581
8585
  return /* @__PURE__ */ n("div", {
8582
8586
  className: "inline-block w-2"
8583
8587
  });
8584
8588
  }
8585
- async function Tt({
8589
+ async function Ft({
8586
8590
  onFormSave: e
8587
8591
  }) {
8588
8592
  const t = await (e == null ? void 0 : e());
@@ -8627,7 +8631,7 @@ const {
8627
8631
  children: [l ? null : /* @__PURE__ */ n(le, {
8628
8632
  flex: "32px",
8629
8633
  children: v ? /* @__PURE__ */ n(_e, {
8630
- icon: /* @__PURE__ */ n(Rt, {}),
8634
+ icon: /* @__PURE__ */ n(kt, {}),
8631
8635
  onClick: () => {
8632
8636
  o(r) && (p(!1), g(!1));
8633
8637
  },
@@ -8759,7 +8763,7 @@ const {
8759
8763
  style: {
8760
8764
  marginLeft: 15
8761
8765
  },
8762
- icon: /* @__PURE__ */ n(Rt, {}),
8766
+ icon: /* @__PURE__ */ n(kt, {}),
8763
8767
  htmlType: "submit",
8764
8768
  type: "primary",
8765
8769
  disabled: o,
@@ -9050,7 +9054,7 @@ const Td = (e) => {
9050
9054
  searchVisible: g,
9051
9055
  searchValues: S,
9052
9056
  showLimitOptions: !1
9053
- }), k ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(gn, {
9057
+ }), k ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(gn, {
9054
9058
  ref: u,
9055
9059
  view_id: t.view_id,
9056
9060
  model: i,
@@ -9201,7 +9205,7 @@ function Id(e) {
9201
9205
  } = Y(_d), {
9202
9206
  t: $,
9203
9207
  lang: R
9204
- } = Y(we), F = Y(Mt), {
9208
+ } = Y(we), F = Y(Et), {
9205
9209
  processAction: A
9206
9210
  } = F || {}, [M, _] = T(!1), N = y !== void 0 && y.trim().length > 0;
9207
9211
  function k() {
@@ -9265,7 +9269,9 @@ function Id(e) {
9265
9269
  }
9266
9270
  return /* @__PURE__ */ P(Ye, {
9267
9271
  wrap: !0,
9268
- children: [C ? null : /* @__PURE__ */ P(ne, {
9272
+ children: [O && /* @__PURE__ */ P(ne, {
9273
+ children: [/* @__PURE__ */ n(Me, {}), vt(), vt()]
9274
+ }), C ? null : /* @__PURE__ */ P(ne, {
9269
9275
  children: [/* @__PURE__ */ n(Od, {
9270
9276
  disabled: l || a || O,
9271
9277
  searchText: y,
@@ -9285,7 +9291,7 @@ function Id(e) {
9285
9291
  },
9286
9292
  disabled: l || a || O,
9287
9293
  badgeNumber: v == null ? void 0 : v.length
9288
- }), $t(), /* @__PURE__ */ n(Ro, {
9294
+ }), vt(), /* @__PURE__ */ n(Ro, {
9289
9295
  disabled: O
9290
9296
  }), /* @__PURE__ */ n(qe, {
9291
9297
  icon: /* @__PURE__ */ n(Un, {}),
@@ -9299,7 +9305,7 @@ function Id(e) {
9299
9305
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
9300
9306
  loading: a,
9301
9307
  onClick: k
9302
- }), $t()]
9308
+ }), vt()]
9303
9309
  }), /* @__PURE__ */ n(qe, {
9304
9310
  icon: /* @__PURE__ */ n(Ur, {}),
9305
9311
  tooltip: $("showLogs"),
@@ -9318,7 +9324,7 @@ function Id(e) {
9318
9324
  (U = f == null ? void 0 : f.current) == null || U.refreshResults();
9319
9325
  }
9320
9326
  }), !C && /* @__PURE__ */ P(ne, {
9321
- children: [$t(), /* @__PURE__ */ n(Zn, {
9327
+ children: [vt(), /* @__PURE__ */ n(Zn, {
9322
9328
  currentView: r,
9323
9329
  availableViews: t,
9324
9330
  onChangeView: (U) => {
@@ -9327,7 +9333,7 @@ function Id(e) {
9327
9333
  previousView: w,
9328
9334
  disabled: O
9329
9335
  })]
9330
- }), $t(), /* @__PURE__ */ n(It, {
9336
+ }), vt(), /* @__PURE__ */ n(Dt, {
9331
9337
  icon: /* @__PURE__ */ n(jn, {}),
9332
9338
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
9333
9339
  tooltip: $("actions"),
@@ -9335,7 +9341,7 @@ function Id(e) {
9335
9341
  onItemClick: (U) => {
9336
9342
  !U || W(U);
9337
9343
  }
9338
- }), /* @__PURE__ */ n(It, {
9344
+ }), /* @__PURE__ */ n(Dt, {
9339
9345
  icon: /* @__PURE__ */ n(Kn, {}),
9340
9346
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
9341
9347
  tooltip: $("reports"),
@@ -9350,7 +9356,7 @@ function Id(e) {
9350
9356
  });
9351
9357
  }
9352
9358
  }), x && /* @__PURE__ */ P(ne, {
9353
- children: [$t(), /* @__PURE__ */ n(It, {
9359
+ children: [vt(), /* @__PURE__ */ n(Dt, {
9354
9360
  icon: /* @__PURE__ */ n($r, {
9355
9361
  component: () => /* @__PURE__ */ P("svg", {
9356
9362
  xmlns: "http://www.w3.org/2000/svg",
@@ -9420,7 +9426,7 @@ function Id(e) {
9420
9426
  })]
9421
9427
  });
9422
9428
  }
9423
- function $t() {
9429
+ function vt() {
9424
9430
  return /* @__PURE__ */ n("div", {
9425
9431
  className: "inline-block w-2"
9426
9432
  });
@@ -9599,7 +9605,7 @@ function Ed(e, t) {
9599
9605
  setCurrentId: J,
9600
9606
  tabs: fe,
9601
9607
  activeKey: be,
9602
- openAction: Ee,
9608
+ openAction: $e,
9603
9609
  onRemoveTab: Ie
9604
9610
  } = ie || {};
9605
9611
  Bi("ctrl+g,command+g", (te) => {
@@ -9611,7 +9617,7 @@ function Ed(e, t) {
9611
9617
  function ge(te) {
9612
9618
  O(te), Q == null || Q(te);
9613
9619
  }
9614
- bt(t, () => ({
9620
+ xt(t, () => ({
9615
9621
  canWeClose: Se
9616
9622
  }));
9617
9623
  const se = async () => {
@@ -9631,8 +9637,8 @@ function Ed(e, t) {
9631
9637
  viewTuple: me
9632
9638
  });
9633
9639
  }
9634
- const Me = await Md(Fe);
9635
- for (const me of Me) {
9640
+ const Ee = await Md(Fe);
9641
+ for (const me of Ee) {
9636
9642
  if (!me)
9637
9643
  continue;
9638
9644
  const [, Te] = me.viewTuple;
@@ -9693,7 +9699,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9693
9699
  tabKey: u,
9694
9700
  canWeClose: Se
9695
9701
  }), pe(() => {
9696
- 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);
9702
+ 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);
9697
9703
  ge(Fe || te), m ? J == null || J(E) : (Be(void 0), R(void 0)), se();
9698
9704
  }, [i, s, m]), pe(() => {
9699
9705
  be === u && (J == null || J(b), Q == null || Q(y));
@@ -9708,25 +9714,25 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9708
9714
  var me;
9709
9715
  z(!0);
9710
9716
  const Fe = F.findIndex((Te) => Te.id === te);
9711
- let Me;
9717
+ let Ee;
9712
9718
  if (Fe === -1) {
9713
9719
  try {
9714
- Me = (me = await H.getHandler().readObjects({
9720
+ Ee = (me = await H.getHandler().readObjects({
9715
9721
  model: i,
9716
9722
  ids: [te],
9717
9723
  context: o
9718
9724
  })) == null ? void 0 : me[0];
9719
9725
  } catch {
9720
9726
  }
9721
- if (!Me) {
9727
+ if (!Ee) {
9722
9728
  z(!1), q(!1), ct(B("idNotFound"));
9723
9729
  return;
9724
9730
  }
9725
9731
  } else
9726
- Me = F[Fe];
9732
+ Ee = F[Fe];
9727
9733
  z(!1), q(!1);
9728
9734
  const ce = s.find((Te) => Te[1] === "form");
9729
- Ee({
9735
+ $e({
9730
9736
  domain: [],
9731
9737
  context: o,
9732
9738
  model: i,
@@ -9803,7 +9809,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9803
9809
  ge(te);
9804
9810
  }
9805
9811
  }
9806
- return V ? /* @__PURE__ */ n(Le, {}) : y ? /* @__PURE__ */ P(dl, {
9812
+ return V ? /* @__PURE__ */ n(Me, {}) : y ? /* @__PURE__ */ P(dl, {
9807
9813
  title: a,
9808
9814
  currentView: y,
9809
9815
  setCurrentView: ge,
@@ -9838,7 +9844,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9838
9844
  })]
9839
9845
  }) : null;
9840
9846
  }
9841
- const $o = wt(Ed);
9847
+ const $o = bt(Ed);
9842
9848
  async function $d({
9843
9849
  actionId: e,
9844
9850
  rootContext: t = {},
@@ -9847,7 +9853,7 @@ async function $d({
9847
9853
  const i = "ir.actions.act_window", o = `${i},${e}`, s = await H.getHandler().getActionData({
9848
9854
  action: o,
9849
9855
  context: t
9850
- }), a = vt({
9856
+ }), a = wt({
9851
9857
  context: s.context,
9852
9858
  values: r,
9853
9859
  fields: {}
@@ -10006,8 +10012,8 @@ function Kd(e) {
10006
10012
  }, U = async () => {
10007
10013
  const J = W.current.length > 0 ? W.current : s, fe = hn(E.current, J), {
10008
10014
  colors: be
10009
- } = Ot(p), {
10010
- totalItems: Ee,
10015
+ } = _t(p), {
10016
+ totalItems: $e,
10011
10017
  results: Ie,
10012
10018
  attrsEvaluated: Be
10013
10019
  } = await H.getHandler().searchForTree({
@@ -10022,7 +10028,7 @@ function Kd(e) {
10022
10028
  }
10023
10029
  });
10024
10030
  R(Qt(Be));
10025
- const ge = _t({
10031
+ const ge = It({
10026
10032
  resultsToSort: Ie,
10027
10033
  sorter: F,
10028
10034
  fields: {
@@ -10031,7 +10037,7 @@ function Kd(e) {
10031
10037
  }
10032
10038
  });
10033
10039
  q(!1), x(ge);
10034
- const se = await Ee;
10040
+ const se = await $e;
10035
10041
  C(se);
10036
10042
  }, L = async () => {
10037
10043
  try {
@@ -10109,7 +10115,7 @@ function Kd(e) {
10109
10115
  sorter: F,
10110
10116
  onChangeSort: (J) => {
10111
10117
  A == null || A(J);
10112
- const fe = _t({
10118
+ const fe = It({
10113
10119
  resultsToSort: S,
10114
10120
  sorter: J,
10115
10121
  fields: {
@@ -10127,7 +10133,7 @@ function Kd(e) {
10127
10133
  message: N,
10128
10134
  type: "error",
10129
10135
  banner: !0
10130
- }) : u ? /* @__PURE__ */ n(Le, {
10136
+ }) : u ? /* @__PURE__ */ n(Me, {
10131
10137
  style: {
10132
10138
  padding: "2rem"
10133
10139
  }
@@ -10174,7 +10180,7 @@ function Wd(e, t) {
10174
10180
  } = Y(Xn), h = de(), g = de();
10175
10181
  pe(() => {
10176
10182
  y();
10177
- }, [r, o, i]), bt(t, () => ({
10183
+ }, [r, o, i]), xt(t, () => ({
10178
10184
  refresh: () => {
10179
10185
  y();
10180
10186
  },
@@ -10366,12 +10372,12 @@ function Wd(e, t) {
10366
10372
  const [Q, J] = ie, {
10367
10373
  actionId: fe,
10368
10374
  actionType: be,
10369
- title: Ee,
10375
+ title: $e,
10370
10376
  model: Ie
10371
10377
  } = S, Be = {
10372
10378
  action_id: fe,
10373
10379
  action_type: be,
10374
- name: Ee,
10380
+ name: $e,
10375
10381
  res_id: Z.id,
10376
10382
  res_model: Ie,
10377
10383
  view_id: Q,
@@ -10434,7 +10440,7 @@ function Wd(e, t) {
10434
10440
  })
10435
10441
  });
10436
10442
  }
10437
- const Ud = wt(Wd), Gd = (e) => {
10443
+ const Ud = bt(Wd), Gd = (e) => {
10438
10444
  const {
10439
10445
  ooui: t
10440
10446
  } = e;
@@ -10461,7 +10467,7 @@ const Ud = wt(Wd), Gd = (e) => {
10461
10467
  } = r, y = Y(Ne), {
10462
10468
  getContext: O
10463
10469
  } = y || {};
10464
- Ct(() => {
10470
+ St(() => {
10465
10471
  w();
10466
10472
  }, [o]);
10467
10473
  const I = (b) => {
@@ -10475,7 +10481,7 @@ const Ud = wt(Wd), Gd = (e) => {
10475
10481
  if (r.domain) {
10476
10482
  const C = await H.getHandler().evalDomain({
10477
10483
  domain: r.domain,
10478
- values: kt({
10484
+ values: Mt({
10479
10485
  fields: y == null ? void 0 : y.getFields(),
10480
10486
  values: y.getPlainValues()
10481
10487
  }),
@@ -10534,7 +10540,7 @@ const Ud = wt(Wd), Gd = (e) => {
10534
10540
  });
10535
10541
  }), I(C);
10536
10542
  };
10537
- return f && a.length === 0 ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(ne, {
10543
+ return f && a.length === 0 ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(ne, {
10538
10544
  children: /* @__PURE__ */ P("div", {
10539
10545
  className: "flex flex-row",
10540
10546
  children: [/* @__PURE__ */ n(Nt.Group, {
@@ -10734,7 +10740,7 @@ function au(e, t) {
10734
10740
  closable: !0,
10735
10741
  content: /* @__PURE__ */ n(su, {})
10736
10742
  }]), f = de(/* @__PURE__ */ new Map()), d = de();
10737
- bt(t, () => ({
10743
+ xt(t, () => ({
10738
10744
  retrieveAndOpenAction: p,
10739
10745
  openShortcut: y
10740
10746
  }));
@@ -10767,7 +10773,7 @@ function au(e, t) {
10767
10773
  Ue("Action type not supported");
10768
10774
  return;
10769
10775
  }
10770
- const [x, $] = w.split(","), R = parseInt($), F = vt({
10776
+ const [x, $] = w.split(","), R = parseInt($), F = wt({
10771
10777
  context: S.context,
10772
10778
  values: i,
10773
10779
  fields: {}
@@ -10874,7 +10880,7 @@ function au(e, t) {
10874
10880
  } = w, [M, _] = $[0], N = {
10875
10881
  id: M,
10876
10882
  type: _
10877
- }, k = vt({
10883
+ }, k = wt({
10878
10884
  context: S,
10879
10885
  values: {
10880
10886
  ...D,
@@ -10883,7 +10889,7 @@ function au(e, t) {
10883
10889
  fields: V
10884
10890
  }), j = x ? await H.getHandler().evalDomain({
10885
10891
  domain: x,
10886
- values: kt({
10892
+ values: Mt({
10887
10893
  fields: V,
10888
10894
  values: {
10889
10895
  ...D,
@@ -10921,7 +10927,7 @@ function au(e, t) {
10921
10927
  } = w, C = `${D},${V}`, S = await H.getHandler().getActionData({
10922
10928
  action: C,
10923
10929
  context: o
10924
- }), x = vt({
10930
+ }), x = wt({
10925
10931
  context: S.context,
10926
10932
  values: i,
10927
10933
  fields: {}
@@ -11108,7 +11114,7 @@ function au(e, t) {
11108
11114
  })
11109
11115
  });
11110
11116
  }
11111
- const Nu = wt(au), {
11117
+ const Nu = bt(au), {
11112
11118
  useToken: lu
11113
11119
  } = Pe;
11114
11120
  function cu(e) {
@@ -11318,7 +11324,7 @@ const {
11318
11324
  })
11319
11325
  })
11320
11326
  })]
11321
- }), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n(Le, {
11327
+ }), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n(Me, {
11322
11328
  style: {
11323
11329
  padding: "1rem"
11324
11330
  }
@@ -11404,7 +11410,7 @@ const {
11404
11410
  borderTopLeftRadius: 0,
11405
11411
  borderBottomLeftRadius: 0
11406
11412
  },
11407
- icon: /* @__PURE__ */ n(At, {
11413
+ icon: /* @__PURE__ */ n(Rt, {
11408
11414
  style: {
11409
11415
  fontSize: "0.5em"
11410
11416
  }