@gisce/react-ooui 2.0.6-rc.1 → 2.0.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,9 +1,9 @@
1
1
  var Zo = Object.defineProperty;
2
2
  var Qo = (e, t, r) => t in e ? Zo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var lr = (e, t, r) => (Qo(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { jsxs as A, jsx as n, Fragment as X } from "react/jsx-runtime";
4
+ import { jsxs as V, jsx as n, Fragment as X } from "react/jsx-runtime";
5
5
  import tt, { useContext as H, useState as v, useEffect as fe, useRef as de, useCallback as Se, forwardRef as yt, useImperativeHandle as wt, useMemo as De, memo as Dr, Fragment as ei } from "react";
6
- import { Tooltip as gt, theme as Ke, Typography as zt, Form as dt, Row as Te, Col as ce, Modal as Ze, Button as Ae, Dropdown as Jt, Menu as He, Spin as ke, Divider as mn, Space as Ye, Input as st, Select as St, Checkbox as jt, Alert as nt, Timeline as An, Statistic as ti, Card as Bn, Tag as kr, message as In, DatePicker as Hn, TimePicker as ni, InputNumber as Er, Progress as ri, Avatar as Nr, Pagination as oi, Badge as ii, Tabs as Mr, Popover as si, Radio as cr, Switch as ai, Steps as dr, Layout as li } from "antd";
6
+ import { Tooltip as gt, theme as Ke, Typography as zt, Form as dt, Row as Te, Col as ce, Modal as Ze, Button as Ve, Dropdown as Jt, Menu as He, Spin as ke, Divider as mn, Space as Ye, Input as st, Select as St, Checkbox as jt, Alert as nt, Timeline as Vn, Statistic as ti, Card as Bn, Tag as kr, message as In, DatePicker as Hn, TimePicker as ni, InputNumber as Er, Progress as ri, Avatar as Nr, Pagination as oi, Badge as ii, Tabs as Mr, Popover as si, Radio as cr, Switch as ai, Steps as dr, Layout as li } from "antd";
7
7
  import { Label as Et, Field as Dn, Tree as Pr, Reference as ci, Selection as Kn, Many2one as Lr, Boolean as di, Container as ui, parseContext as Ct, Form as $r, Integer as kn, SearchFieldTypes as pt, SearchFilter as fi, parseContextFields as Fn, parseDomainFields as ur, transformDomainForChildWidget as Br, graphProcessor as Hr, parseGraph as Wn, graphFieldUtils as mi } from "@gisce/ooui";
8
8
  import * as fr from "@ant-design/icons";
9
9
  import Kr, { QuestionCircleOutlined as Wr, ExclamationCircleOutlined as vt, LoadingOutlined as lt, DownOutlined as Nt, WarningOutlined as jr, CloseOutlined as Xt, CheckOutlined as Mt, TranslationOutlined as Ur, FolderOpenOutlined as jn, DownloadOutlined as Un, ClearOutlined as Yn, StarFilled as Yr, StarOutlined as Gr, UpOutlined as hi, SearchOutlined as Gn, RightCircleOutlined as pi, ThunderboltOutlined as qn, PrinterOutlined as zn, EnterOutlined as qr, PlusSquareOutlined as gi, MinusSquareOutlined as yi, FileAddOutlined as hn, AlignLeftOutlined as wi, ApiOutlined as vi, DeleteOutlined as Jn, LeftOutlined as zr, RightOutlined as Jr, EyeOutlined as bi, FormOutlined as Ut, TableOutlined as Xn, AreaChartOutlined as Ci, CalendarOutlined as xi, LinkOutlined as Xr, SaveOutlined as Si, CopyOutlined as Zn, InfoCircleOutlined as Zr, ReloadOutlined as pn, EditOutlined as Qr, FilterOutlined as eo, CloseCircleFilled as Ti, BorderOuterOutlined as Ii, SettingOutlined as Fi, ExportOutlined as _i } from "@ant-design/icons";
@@ -14,7 +14,7 @@ import Pt from "styled-components";
14
14
  import er from "react-measure";
15
15
  import Ri from "lodash/debounce";
16
16
  import En from "antd/lib/typography/Title";
17
- import { Line as Vi, Column as Ai, Pie as Di } from "@ant-design/plots";
17
+ import { Line as Ai, Column as Vi, Pie as Di } from "@ant-design/plots";
18
18
  import rt from "dayjs";
19
19
  import ki from "dayjs/plugin/advancedFormat";
20
20
  import Ei from "dayjs/plugin/customParseFormat";
@@ -48,7 +48,7 @@ const { Text: os, Title: is } = zt, { useToken: ss } = Ke, as = {
48
48
  right: "justify-end"
49
49
  }, gn = (e) => {
50
50
  const { ooui: t, align: r, responsiveBehaviour: i } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: c } = t, u = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), { token: g } = ss(), h = l === void 0 ? os : is;
51
- return /* @__PURE__ */ A(
51
+ return /* @__PURE__ */ V(
52
52
  "div",
53
53
  {
54
54
  className: `flex flex-row items-center pb-1 pt-1 ${as[m]}`,
@@ -348,7 +348,7 @@ const { Text: os, Title: is } = zt, { useToken: ss } = Ke, as = {
348
348
  ), fs = (e) => {
349
349
  const { children: t, lang: r } = e;
350
350
  function i(o) {
351
- return Ve(o, r);
351
+ return Ae(o, r);
352
352
  }
353
353
  return /* @__PURE__ */ n(
354
354
  he.Provider,
@@ -360,7 +360,7 @@ const { Text: os, Title: is } = zt, { useToken: ss } = Ke, as = {
360
360
  children: t
361
361
  }
362
362
  );
363
- }, Ve = (e, t) => {
363
+ }, Ae = (e, t) => {
364
364
  var i;
365
365
  return ((i = us[t]) == null ? void 0 : i[e]) || e;
366
366
  };
@@ -407,10 +407,10 @@ function we({
407
407
  align: s
408
408
  }
409
409
  );
410
- return r === "horizontal" ? (() => /* @__PURE__ */ A(Te, { align: "middle", className: "pb-1 pt-1", children: [
410
+ return r === "horizontal" ? (() => /* @__PURE__ */ V(Te, { align: "middle", className: "pb-1 pt-1", children: [
411
411
  /* @__PURE__ */ n(ce, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ n("div", { className: "flex flex-col items-end", children: p }) }),
412
412
  /* @__PURE__ */ n(ce, { flex: "auto", children: h() })
413
- ] }))() : (() => /* @__PURE__ */ A(X, { children: [
413
+ ] }))() : (() => /* @__PURE__ */ V(X, { children: [
414
414
  p,
415
415
  h()
416
416
  ] }))();
@@ -421,12 +421,12 @@ const { confirm: ms } = Ze, Zt = ({
421
421
  lang: r
422
422
  }) => {
423
423
  ms({
424
- title: Ve("confirmation", r),
424
+ title: Ae("confirmation", r),
425
425
  icon: /* @__PURE__ */ n(vt, {}),
426
426
  centered: !0,
427
427
  content: t,
428
- okText: Ve("ok", r),
429
- cancelText: Ve("cancel", r),
428
+ okText: Ae("ok", r),
429
+ cancelText: Ae("cancel", r),
430
430
  onOk: e
431
431
  });
432
432
  }, Be = tt.createContext(null), hs = (e) => {
@@ -629,7 +629,7 @@ const ro = (e) => {
629
629
  }
630
630
  }
631
631
  return /* @__PURE__ */ n(we, { ooui: t, children: /* @__PURE__ */ n(
632
- Ae,
632
+ Ve,
633
633
  {
634
634
  block: !0,
635
635
  disabled: !o || d || m,
@@ -681,7 +681,7 @@ const ro = (e) => {
681
681
  if (t.buttons.length === 0)
682
682
  return null;
683
683
  if (t.buttons.length > 1)
684
- return /* @__PURE__ */ n(we, { ooui: new Dn({ ooui: t }), children: /* @__PURE__ */ A(
684
+ return /* @__PURE__ */ n(we, { ooui: new Dn({ ooui: t }), children: /* @__PURE__ */ V(
685
685
  Jt.Button,
686
686
  {
687
687
  disabled: !a || g,
@@ -780,18 +780,18 @@ function yn() {
780
780
  height: e.height
781
781
  };
782
782
  }
783
- const Vt = class Vt {
783
+ const At = class At {
784
784
  static init(t) {
785
- Vt.handler = t;
785
+ At.handler = t;
786
786
  }
787
787
  static getHandler() {
788
- if (!Vt.handler)
788
+ if (!At.handler)
789
789
  throw "Must call init() first with a valid ConnectionProvider instance";
790
- return Vt.handler;
790
+ return At.handler;
791
791
  }
792
792
  };
793
- lr(Vt, "handler");
794
- let E = Vt;
793
+ lr(At, "handler");
794
+ let E = At;
795
795
  const oo = (e) => {
796
796
  let t, r, i;
797
797
  if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
@@ -858,7 +858,7 @@ const oo = (e) => {
858
858
  w.current = b, y(b);
859
859
  }
860
860
  function S() {
861
- return d.map((C, b) => /* @__PURE__ */ A(Te, { style: { paddingBottom: 20 }, children: [
861
+ return d.map((C, b) => /* @__PURE__ */ V(Te, { style: { paddingBottom: 20 }, children: [
862
862
  /* @__PURE__ */ n(ce, { flex: "8rem", style: { paddingRight: 10 }, children: C.name }),
863
863
  /* @__PURE__ */ n(ce, { flex: "auto", children: /* @__PURE__ */ n(
864
864
  Oi,
@@ -894,13 +894,13 @@ const oo = (e) => {
894
894
  }
895
895
  h(!1), a();
896
896
  }
897
- function V() {
898
- return f ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ A(X, { children: [
897
+ function A() {
898
+ return f ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ V(X, { children: [
899
899
  S(),
900
900
  /* @__PURE__ */ n(mn, {}),
901
- /* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */ A(Ye, { children: [
901
+ /* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */ V(Ye, { children: [
902
902
  /* @__PURE__ */ n(
903
- Ae,
903
+ Ve,
904
904
  {
905
905
  icon: /* @__PURE__ */ n(Xt, {}),
906
906
  onClick: r,
@@ -909,7 +909,7 @@ const oo = (e) => {
909
909
  }
910
910
  ),
911
911
  /* @__PURE__ */ n(
912
- Ae,
912
+ Ve,
913
913
  {
914
914
  icon: g ? /* @__PURE__ */ n(lt, {}) : /* @__PURE__ */ n(Mt, {}),
915
915
  disabled: g,
@@ -934,13 +934,13 @@ const oo = (e) => {
934
934
  footer: null,
935
935
  destroyOnClose: !0,
936
936
  maskClosable: !1,
937
- children: V()
937
+ children: A()
938
938
  }
939
939
  );
940
940
  };
941
941
  function et(e) {
942
942
  const { tooltip: t, ...r } = e;
943
- return /* @__PURE__ */ n(gt, { title: t, children: /* @__PURE__ */ n(Ae, { ...r }) });
943
+ return /* @__PURE__ */ n(gt, { title: t, children: /* @__PURE__ */ n(Ve, { ...r }) });
944
944
  }
945
945
  const { info: Cs } = Ze, ht = (e) => {
946
946
  Cs({
@@ -981,7 +981,7 @@ const { info: Cs } = Ze, ht = (e) => {
981
981
  formHasChanges: c,
982
982
  elementHasLostFocus: d
983
983
  } = o || {}, [u, f] = v(!1), { t: m } = H(he);
984
- return s ? /* @__PURE__ */ A(X, { children: [
984
+ return s ? /* @__PURE__ */ V(X, { children: [
985
985
  /* @__PURE__ */ n(
986
986
  "div",
987
987
  {
@@ -1022,7 +1022,7 @@ const { info: Cs } = Ze, ht = (e) => {
1022
1022
  }
1023
1023
  }
1024
1024
  )
1025
- ] }) : /* @__PURE__ */ n(X, { children: /* @__PURE__ */ A(Te, { gutter: 8, wrap: !1, children: [
1025
+ ] }) : /* @__PURE__ */ n(X, { children: /* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, children: [
1026
1026
  /* @__PURE__ */ n(ce, { flex: "auto", children: /* @__PURE__ */ n(
1027
1027
  st,
1028
1028
  {
@@ -1071,7 +1071,7 @@ const { info: Cs } = Ze, ht = (e) => {
1071
1071
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
1072
1072
  background-color: ${Fs.colorPrimaryBg};
1073
1073
  }
1074
- `, { defaultAlgorithm: Rs, defaultSeed: Vs } = Ke, yr = Rs(Vs), As = (e) => {
1074
+ `, { defaultAlgorithm: Rs, defaultSeed: As } = Ke, yr = Rs(As), Vs = (e) => {
1075
1075
  const { ooui: t } = e, { id: r, readOnly: i, required: o } = t;
1076
1076
  return /* @__PURE__ */ n(we, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(Ds, { id: r, readOnly: i, required: o }) });
1077
1077
  }, Ds = (e) => {
@@ -1129,8 +1129,8 @@ const Ns = (e) => {
1129
1129
  function u() {
1130
1130
  l(void 0);
1131
1131
  }
1132
- return /* @__PURE__ */ A(X, { children: [
1133
- /* @__PURE__ */ A(Te, { gutter: 8, wrap: !1, justify: "center", children: [
1132
+ return /* @__PURE__ */ V(X, { children: [
1133
+ /* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, justify: "center", children: [
1134
1134
  r && /* @__PURE__ */ n(
1135
1135
  "img",
1136
1136
  {
@@ -1150,7 +1150,7 @@ const Ns = (e) => {
1150
1150
  }
1151
1151
  )
1152
1152
  ] }),
1153
- /* @__PURE__ */ n(Te, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ A(Ye, { children: [
1153
+ /* @__PURE__ */ n(Te, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ V(Ye, { children: [
1154
1154
  /* @__PURE__ */ n(
1155
1155
  et,
1156
1156
  {
@@ -1203,21 +1203,23 @@ const Ns = (e) => {
1203
1203
  }
1204
1204
  }
1205
1205
  );
1206
- }, At = (e) => {
1206
+ }, Vt = (e) => {
1207
1207
  const t = e.arch, r = e.fields, i = new Pr(r);
1208
1208
  return i.parse(t), i;
1209
1209
  };
1210
1210
  function $s(e) {
1211
- return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0;
1211
+ return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
1212
1212
  }
1213
1213
  const Bs = (e, t, r) => e.columns.map((o) => {
1214
1214
  const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
1215
1215
  let c;
1216
- return l ? c = (d) => l({ value: d, key: a, ooui: o, context: r }) : c = (d) => $s(d) ? d : /* @__PURE__ */ A("p", { style: { color: "red" }, children: [
1217
- "Unsupported widget type for a Tree cell:",
1218
- /* @__PURE__ */ n("pre", { children: /* @__PURE__ */ A("strong", { children: [
1216
+ return l ? c = (d) => l({ value: d, key: a, ooui: o, context: r }) : c = (d) => $s(d) ? d : /* @__PURE__ */ V("p", { style: { color: "red" }, children: [
1217
+ "Unsupported widget value for a Tree cell:",
1218
+ /* @__PURE__ */ n("pre", { children: /* @__PURE__ */ V("strong", { children: [
1219
+ "Type: ",
1219
1220
  s,
1220
- ":"
1221
+ " - Value: ",
1222
+ JSON.stringify(d)
1221
1223
  ] }) })
1222
1224
  ] }), {
1223
1225
  key: a,
@@ -1296,7 +1298,7 @@ const tr = async (e) => {
1296
1298
  };
1297
1299
  let u = [], f;
1298
1300
  if (a === "tree" && (o != null && o.arch)) {
1299
- const p = (h = At(o)) == null ? void 0 : h.colors, y = await E.getHandler().readEvalUiObjects({
1301
+ const p = (h = Vt(o)) == null ? void 0 : h.colors, y = await E.getHandler().readEvalUiObjects({
1300
1302
  model: r,
1301
1303
  ids: c,
1302
1304
  arch: o == null ? void 0 : o.arch,
@@ -1366,14 +1368,14 @@ const tr = async (e) => {
1366
1368
  }, Us = (e) => {
1367
1369
  const { value: t, views: r, ooui: i, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = v(!1), [c, d] = v(), [u, f] = v(!1), [m, g] = v(), { relation: h, context: p, readOnly: y, summaryField: w, titleField: F } = i, _ = s.filter((C) => C.values), T = H(Be), { getContext: S } = T || {};
1368
1370
  Tt(() => {
1369
- V();
1371
+ A();
1370
1372
  }, [s]);
1371
1373
  const D = (C) => {
1372
1374
  o == null || o({
1373
1375
  items: C
1374
1376
  });
1375
1377
  };
1376
- async function V() {
1378
+ async function A() {
1377
1379
  l(!0), d(void 0);
1378
1380
  try {
1379
1381
  const [C] = await tr({
@@ -1396,10 +1398,10 @@ const tr = async (e) => {
1396
1398
  l(!1);
1397
1399
  }
1398
1400
  }
1399
- return c ? /* @__PURE__ */ n(nt, { className: "mt-10", message: c, type: "error", banner: !0 }) : a ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ A(X, { children: [
1400
- /* @__PURE__ */ n(An, { style: { padding: "1rem" }, children: _.map((C, b) => {
1401
+ return c ? /* @__PURE__ */ n(nt, { className: "mt-10", message: c, type: "error", banner: !0 }) : a ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ V(X, { children: [
1402
+ /* @__PURE__ */ n(Vn, { style: { padding: "1rem" }, children: _.map((C, b) => {
1401
1403
  var I, x;
1402
- return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ A(An.Item, { children: [
1404
+ return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ V(Vn.Item, { children: [
1403
1405
  /* @__PURE__ */ n(
1404
1406
  "div",
1405
1407
  {
@@ -1448,7 +1450,7 @@ const tr = async (e) => {
1448
1450
  f(!1);
1449
1451
  },
1450
1452
  readOnly: y,
1451
- postSaveAction: V
1453
+ postSaveAction: A
1452
1454
  }
1453
1455
  )
1454
1456
  ] });
@@ -1456,8 +1458,8 @@ const tr = async (e) => {
1456
1458
  const { ooui: t } = e;
1457
1459
  return /* @__PURE__ */ n(we, { ooui: t, children: /* @__PURE__ */ n(qs, { ooui: t }) });
1458
1460
  }, qs = (e) => {
1459
- const { token: t } = Ys(), { ooui: r, value: i } = e, o = /* @__PURE__ */ A(X, { children: [
1460
- /* @__PURE__ */ A("span", { children: [
1461
+ const { token: t } = Ys(), { ooui: r, value: i } = e, o = /* @__PURE__ */ V(X, { children: [
1462
+ /* @__PURE__ */ V("span", { children: [
1461
1463
  r.label,
1462
1464
  " "
1463
1465
  ] }),
@@ -1668,24 +1670,24 @@ const Lt = ({
1668
1670
  return Array.isArray(I) && (x = I[1]), { label: x, value: b.id };
1669
1671
  });
1670
1672
  l(C);
1671
- } catch (V) {
1672
- d(V);
1673
+ } catch (A) {
1674
+ d(A);
1673
1675
  } finally {
1674
1676
  f(!1);
1675
1677
  }
1676
1678
  }
1677
1679
  const T = (D) => {
1678
- const V = o.map((b) => D.includes(b.id) ? b.operation == "pendingRemove" ? {
1680
+ const A = o.map((b) => D.includes(b.id) ? b.operation == "pendingRemove" ? {
1679
1681
  ...b,
1680
1682
  operation: "pendingLink"
1681
- } : b : { id: b.id, operation: "pendingRemove" }), C = V.map((b) => b.id);
1683
+ } : b : { id: b.id, operation: "pendingRemove" }), C = A.map((b) => b.id);
1682
1684
  D.filter((b) => !C.includes(b)).map((b) => {
1683
- V.push({ id: b, operation: "pendingLink" });
1684
- }), F(V);
1685
+ A.push({ id: b, operation: "pendingLink" });
1686
+ }), F(A);
1685
1687
  }, S = (D) => {
1686
- const { label: V, closable: C, onClose: b } = D, I = (O) => {
1688
+ const { label: A, closable: C, onClose: b } = D, I = (O) => {
1687
1689
  O.preventDefault(), O.stopPropagation();
1688
- }, x = Yt(V);
1690
+ }, x = Yt(A);
1689
1691
  return /* @__PURE__ */ n(
1690
1692
  nr,
1691
1693
  {
@@ -1694,7 +1696,7 @@ const Lt = ({
1694
1696
  closable: C,
1695
1697
  onClose: b,
1696
1698
  closeIcon: /* @__PURE__ */ n("span", { style: { color: x }, children: "X" }),
1697
- children: V
1699
+ children: A
1698
1700
  }
1699
1701
  );
1700
1702
  };
@@ -1736,7 +1738,7 @@ const Lt = ({
1736
1738
  case "many2one":
1737
1739
  return Il;
1738
1740
  case "boolean":
1739
- return As;
1741
+ return Vs;
1740
1742
  case "integer":
1741
1743
  return ln;
1742
1744
  case "float":
@@ -1790,7 +1792,7 @@ const Lt = ({
1790
1792
  case "codeeditor":
1791
1793
  return Sd;
1792
1794
  case "comments_timeline":
1793
- return Vd;
1795
+ return Ad;
1794
1796
  default:
1795
1797
  return;
1796
1798
  }
@@ -1882,21 +1884,21 @@ const Lt = ({
1882
1884
  lang: r
1883
1885
  }) => {
1884
1886
  fa({
1885
- title: Ve("unsavedChanges", r),
1887
+ title: Ae("unsavedChanges", r),
1886
1888
  icon: /* @__PURE__ */ n(vt, {}),
1887
1889
  centered: !0,
1888
- content: Ve("confirmCloseWithoutSave", r),
1889
- okText: Ve("closeWithoutSaving", r),
1890
+ content: Ae("confirmCloseWithoutSave", r),
1891
+ okText: Ae("closeWithoutSaving", r),
1890
1892
  onOk: e,
1891
1893
  onCancel: t,
1892
- cancelText: Ve("cancel", r)
1894
+ cancelText: Ae("cancel", r)
1893
1895
  });
1894
1896
  }, { error: ma } = Ze, br = (e) => {
1895
1897
  ma({
1896
- title: Ve("formHasErrors", e),
1898
+ title: Ae("formHasErrors", e),
1897
1899
  icon: /* @__PURE__ */ n(vt, {}),
1898
1900
  centered: !0,
1899
- content: Ve("fillRequiredFields", e)
1901
+ content: Ae("fillRequiredFields", e)
1900
1902
  });
1901
1903
  }, { warning: ha } = Ze, pa = (e, t, r) => {
1902
1904
  ha({
@@ -2014,7 +2016,7 @@ const Lt = ({
2014
2016
  limit: T,
2015
2017
  setLimit: S,
2016
2018
  searchParams: D = [],
2017
- setSearchValues: V,
2019
+ setSearchValues: A,
2018
2020
  clearSelection: C
2019
2021
  } = e, [b, I] = v(!1), [x, O] = v(!1), [L, N] = v(), [q, M] = v(1), [$, K] = v(0), [R, Y] = v(), [te, Z] = v([]), [re, G] = v(void 0), [k, P] = v(void 0), ie = de(T || qt), z = de([]), pe = Se(
2020
2022
  (be) => {
@@ -2030,7 +2032,7 @@ const Lt = ({
2030
2032
  context: d
2031
2033
  });
2032
2034
  if (Y(be.length), u == null || u(be.length), be.length > 0) {
2033
- const ue = be.map((le) => le == null ? void 0 : le[0]), { colors: Ne, status: Ge } = At(f), j = {};
2035
+ const ue = be.map((le) => le == null ? void 0 : le[0]), { colors: Ne, status: Ge } = Vt(f), j = {};
2034
2036
  Ne && (j.colors = Ne), Ge && (j.status = Ge);
2035
2037
  const Ce = await E.getHandler().readEvalUiObjects({
2036
2038
  model: t,
@@ -2064,7 +2066,7 @@ const Lt = ({
2064
2066
  u
2065
2067
  ]), ge = Se(
2066
2068
  async (be) => {
2067
- const { params: ue, newOffset: Ne } = be || {}, Ge = Gt(ue || D, F), { colors: j, status: Ce } = At(f), Oe = {};
2069
+ const { params: ue, newOffset: Ne } = be || {}, Ge = Gt(ue || D, F), { colors: j, status: Ce } = Vt(f), Oe = {};
2068
2070
  j && (Oe.colors = j), Ce && (Oe.status = Ce);
2069
2071
  const { totalItems: je, results: se, attrsEvaluated: le } = await E.getHandler().searchForTree({
2070
2072
  params: Ge,
@@ -2148,7 +2150,7 @@ const Lt = ({
2148
2150
  ), Pe = Se(
2149
2151
  (be) => {
2150
2152
  const { params: ue, searchValues: Ne, limit: Ge, offset: j } = be;
2151
- b || (r == null || r(void 0), i == null || i([]), V == null || V(Ne), o == null || o(ue), s == null || s(!1), O(!0), N(void 0), M(1), Ge && (ie.current = Ge, S == null || S(Ge)), j && K(j), ve({
2153
+ b || (r == null || r(void 0), i == null || i([]), A == null || A(Ne), o == null || o(ue), s == null || s(!1), O(!0), N(void 0), M(1), Ge && (ie.current = Ge, S == null || S(Ge)), j && K(j), ve({
2152
2154
  params: ue,
2153
2155
  newOffset: j
2154
2156
  }));
@@ -2157,7 +2159,7 @@ const Lt = ({
2157
2159
  b,
2158
2160
  r,
2159
2161
  i,
2160
- V,
2162
+ A,
2161
2163
  o,
2162
2164
  s,
2163
2165
  ve,
@@ -2169,12 +2171,12 @@ const Lt = ({
2169
2171
  },
2170
2172
  [I, T, K, M]
2171
2173
  ), Ue = Se(() => {
2172
- b || (r == null || r(void 0), o == null || o([]), V == null || V({}), N(void 0), K(0), M(1), S == null || S(T || qt));
2174
+ b || (r == null || r(void 0), o == null || o([]), A == null || A({}), N(void 0), K(0), M(1), S == null || S(T || qt));
2173
2175
  }, [
2174
2176
  b,
2175
2177
  r,
2176
2178
  o,
2177
- V,
2179
+ A,
2178
2180
  S,
2179
2181
  T
2180
2182
  ]), Ie = Se(
@@ -2185,7 +2187,7 @@ const Lt = ({
2185
2187
  fields: f.field_parent ? { ...f.fields, [f.field_parent]: {} } : f.fields,
2186
2188
  context: d
2187
2189
  });
2188
- return pe([...ee(), ...Ne]), uo(At(f), Ne);
2190
+ return pe([...ee(), ...Ne]), uo(Vt(f), Ne);
2189
2191
  },
2190
2192
  [f, t, d, ee, pe]
2191
2193
  ), xe = Se(async () => await E.getHandler().searchAllIds({
@@ -2237,7 +2239,7 @@ const Lt = ({
2237
2239
  setSelectedRowItems: T,
2238
2240
  selectedRowItems: S,
2239
2241
  searchTreeNameSearch: D,
2240
- setSearchTreeNameSearch: V,
2242
+ setSearchTreeNameSearch: A,
2241
2243
  goToResourceId: C,
2242
2244
  limit: b
2243
2245
  } = e, [I, x] = v(!1), [O, L] = v(!1), [N, q] = v(!1), [M, $] = v(!0), [K, R] = v(!0), [Y, te] = v([]), [Z, re] = v(!1), [G, k] = v([]), [P, ie] = v(!1), [z, pe] = v(!0), [ee, U] = v(), [ge, ve] = v({}), [We, Pe] = v(
@@ -2308,7 +2310,7 @@ const Lt = ({
2308
2310
  totalItems: F,
2309
2311
  setTotalItems: _,
2310
2312
  searchTreeNameSearch: D,
2311
- setSearchTreeNameSearch: V,
2313
+ setSearchTreeNameSearch: A,
2312
2314
  setGraphIsLoading: pe,
2313
2315
  graphIsLoading: z,
2314
2316
  previousView: ee,
@@ -2371,8 +2373,8 @@ const Lt = ({
2371
2373
  context: {}
2372
2374
  }
2373
2375
  );
2374
- async function y(V) {
2375
- const { reportData: C, fields: b, values: I, context: x = {} } = V, {
2376
+ async function y(A) {
2377
+ const { reportData: C, fields: b, values: I, context: x = {} } = A, {
2376
2378
  context: O,
2377
2379
  model: L,
2378
2380
  datas: N = {},
@@ -2403,11 +2405,11 @@ const Lt = ({
2403
2405
  s.current = !1, clearInterval(o.current), Xe(Y), l(!1);
2404
2406
  }
2405
2407
  }
2406
- async function w(V) {
2408
+ async function w(A) {
2407
2409
  let C;
2408
2410
  try {
2409
2411
  if (C = await E.getHandler().getReport({
2410
- id: V
2412
+ id: A
2411
2413
  }), C.state && s.current === !0) {
2412
2414
  s.current = !1, clearInterval(o.current), l(!1);
2413
2415
  const b = await kt(C.result);
@@ -2418,41 +2420,41 @@ const Lt = ({
2418
2420
  }
2419
2421
  }
2420
2422
  async function F({
2421
- actionData: V,
2423
+ actionData: A,
2422
2424
  fields: C,
2423
2425
  values: b,
2424
2426
  context: I,
2425
2427
  onRefreshParentValues: x
2426
2428
  }) {
2427
- const { type: O } = V;
2429
+ const { type: O } = A;
2428
2430
  if (u.current.push(x), O === "ir.actions.report.xml")
2429
2431
  return await y({
2430
- reportData: V,
2432
+ reportData: A,
2431
2433
  fields: C,
2432
2434
  values: b,
2433
2435
  context: I
2434
2436
  });
2435
2437
  if (O === "ir.actions.act_window")
2436
- return await _({ actionData: V, fields: C, values: b, context: I });
2438
+ return await _({ actionData: A, fields: C, values: b, context: I });
2437
2439
  if (O === "ir.actions.act_url")
2438
2440
  window.open(
2439
- ea(V.url, { ...b, context: I }),
2441
+ ea(A.url, { ...b, context: I }),
2440
2442
  "_blank"
2441
2443
  );
2442
2444
  else
2443
2445
  return Xe(`${O} action not supported`), {};
2444
2446
  }
2445
2447
  async function _({
2446
- actionData: V,
2448
+ actionData: A,
2447
2449
  fields: C = {},
2448
2450
  values: b = {},
2449
2451
  context: I = {}
2450
2452
  }) {
2451
2453
  var q;
2452
- let x = V;
2453
- V.res_model || (x = (await E.getHandler().readObjects({
2454
+ let x = A;
2455
+ A.res_model || (x = (await E.getHandler().readObjects({
2454
2456
  model: "ir.actions.act_window",
2455
- ids: [parseInt(V.id)],
2457
+ ids: [parseInt(A.id)],
2456
2458
  context: I
2457
2459
  }))[0]);
2458
2460
  const O = typeof (x == null ? void 0 : x.context) == "string" ? Ct({
@@ -2506,16 +2508,16 @@ const Lt = ({
2506
2508
  }
2507
2509
  }
2508
2510
  function T({
2509
- domain: V,
2511
+ domain: A,
2510
2512
  model: C,
2511
2513
  formView: b,
2512
2514
  context: I,
2513
2515
  actionData: x
2514
2516
  }) {
2515
- m ? S({ domain: V, model: C, formView: b, context: I, actionData: x }) : (p({ domain: V, model: C, context: I, formView: b, actionData: x }), g(!0));
2517
+ m ? S({ domain: A, model: C, formView: b, context: I, actionData: x }) : (p({ domain: A, model: C, context: I, formView: b, actionData: x }), g(!0));
2516
2518
  }
2517
2519
  async function S({
2518
- domain: V,
2520
+ domain: A,
2519
2521
  model: C,
2520
2522
  formView: b,
2521
2523
  context: I,
@@ -2527,7 +2529,7 @@ const Lt = ({
2527
2529
  context: {},
2528
2530
  formView: void 0,
2529
2531
  actionData: void 0
2530
- }), g(!1), await new Promise((O) => setTimeout(O, 300)), p({ domain: V, model: C, context: I, formView: b, actionData: x }), g(!0);
2532
+ }), g(!1), await new Promise((O) => setTimeout(O, 300)), p({ domain: A, model: C, context: I, formView: b, actionData: x }), g(!0);
2531
2533
  }
2532
2534
  async function D() {
2533
2535
  xr(u.current), u.current = [], g(!1), p({
@@ -2545,7 +2547,7 @@ const Lt = ({
2545
2547
  processAction: F,
2546
2548
  globalValues: i
2547
2549
  },
2548
- children: /* @__PURE__ */ A(X, { children: [
2550
+ children: /* @__PURE__ */ V(X, { children: [
2549
2551
  r,
2550
2552
  /* @__PURE__ */ n(
2551
2553
  Ze,
@@ -2636,7 +2638,7 @@ async function Oa({
2636
2638
  }
2637
2639
  return { views: s, initialView: a };
2638
2640
  }
2639
- const Ra = yt(_a), Va = ({
2641
+ const Ra = yt(_a), Aa = ({
2640
2642
  error: e,
2641
2643
  className: t
2642
2644
  }) => {
@@ -2657,7 +2659,7 @@ const Ra = yt(_a), Va = ({
2657
2659
  banner: !0
2658
2660
  }
2659
2661
  );
2660
- }, Aa = 800;
2662
+ }, Va = 800;
2661
2663
  function Da(e, t) {
2662
2664
  const {
2663
2665
  model: r,
@@ -2681,8 +2683,8 @@ function Da(e, t) {
2681
2683
  rootForm: T = !1,
2682
2684
  defaultValues: S,
2683
2685
  forcedValues: D = {},
2684
- parentWidth: V
2685
- } = e, { t: C, lang: b } = H(he), [I, x] = v(!1), [O, L] = v(), [N, q] = v(), [M] = dt.useForm(), [$, K] = v(), [R, Y] = v(), te = H(po), [Z, re] = v(), [G, k] = v(!1), P = de(), ie = de({}), z = de({}), pe = de(!1), ee = de(!1), U = de(!1), ve = (V !== void 0 ? V : Z) < Aa, We = H(Be), { activeId: Pe, getPlainValues: Ee } = We || {}, Ue = H(
2686
+ parentWidth: A
2687
+ } = e, { t: C, lang: b } = H(he), [I, x] = v(!1), [O, L] = v(), [N, q] = v(), [M] = dt.useForm(), [$, K] = v(), [R, Y] = v(), te = H(po), [Z, re] = v(), [G, k] = v(!1), P = de(), ie = de({}), z = de({}), pe = de(!1), ee = de(!1), U = de(!1), ve = (A !== void 0 ? A : Z) < Va, We = H(Be), { activeId: Pe, getPlainValues: Ee } = We || {}, Ue = H(
2686
2688
  at
2687
2689
  ), {
2688
2690
  setFormIsSaving: Ie = void 0,
@@ -3200,11 +3202,11 @@ function Da(e, t) {
3200
3202
  }
3201
3203
  )
3202
3204
  }
3203
- ) }), zo = () => /* @__PURE__ */ A(X, { children: [
3205
+ ) }), zo = () => /* @__PURE__ */ V(X, { children: [
3204
3206
  /* @__PURE__ */ n(mn, {}),
3205
- /* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */ A(Ye, { children: [
3207
+ /* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */ V(Ye, { children: [
3206
3208
  /* @__PURE__ */ n(
3207
- Ae,
3209
+ Ve,
3208
3210
  {
3209
3211
  icon: /* @__PURE__ */ n(Xt, {}),
3210
3212
  disabled: I,
@@ -3215,7 +3217,7 @@ function Da(e, t) {
3215
3217
  }
3216
3218
  ),
3217
3219
  /* @__PURE__ */ n(
3218
- Ae,
3220
+ Ve,
3219
3221
  {
3220
3222
  disabled: I || u,
3221
3223
  loading: I,
@@ -3237,8 +3239,8 @@ function Da(e, t) {
3237
3239
  var W;
3238
3240
  re((W = B.bounds) == null ? void 0 : W.width);
3239
3241
  },
3240
- children: ({ measureRef: B }) => /* @__PURE__ */ A("div", { className: "pb-2", ref: B, children: [
3241
- O && /* @__PURE__ */ n(Va, { className: "mt-5 mb-10", error: O }),
3242
+ children: ({ measureRef: B }) => /* @__PURE__ */ V("div", { className: "pb-2", ref: B, children: [
3243
+ O && /* @__PURE__ */ n(Aa, { className: "mt-5 mb-10", error: O }),
3242
3244
  qo(),
3243
3245
  a && zo()
3244
3246
  ] })
@@ -3284,10 +3286,10 @@ const en = yt(Da), tn = (e) => {
3284
3286
  }
3285
3287
  h(!g);
3286
3288
  }
3287
- function V() {
3288
- return /* @__PURE__ */ A(Te, { align: "middle", children: [
3289
+ function A() {
3290
+ return /* @__PURE__ */ V(Te, { align: "middle", children: [
3289
3291
  /* @__PURE__ */ n(ce, { children: /* @__PURE__ */ n(
3290
- Ae,
3292
+ Ve,
3291
3293
  {
3292
3294
  type: g ? "primary" : "default",
3293
3295
  icon: g ? /* @__PURE__ */ n(Yr, { style: { color: "white" } }) : /* @__PURE__ */ n(Gr, {}),
@@ -3302,7 +3304,7 @@ const en = yt(Da), tn = (e) => {
3302
3304
  return /* @__PURE__ */ n(ga, { setTitle: m, children: /* @__PURE__ */ n(
3303
3305
  Ze,
3304
3306
  {
3305
- title: a ? V() : f,
3307
+ title: a ? A() : f,
3306
3308
  centered: !0,
3307
3309
  width: u,
3308
3310
  open: t,
@@ -3363,7 +3365,7 @@ const en = yt(Da), tn = (e) => {
3363
3365
  label: ""
3364
3366
  })
3365
3367
  ];
3366
- return /* @__PURE__ */ A(X, { children: [
3368
+ return /* @__PURE__ */ V(X, { children: [
3367
3369
  r && /* @__PURE__ */ n(
3368
3370
  gn,
3369
3371
  {
@@ -3376,7 +3378,7 @@ const en = yt(Da), tn = (e) => {
3376
3378
  align: "left"
3377
3379
  }
3378
3380
  ),
3379
- /* @__PURE__ */ A(Te, { align: "bottom", className: "p-0", children: [
3381
+ /* @__PURE__ */ V(Te, { align: "bottom", className: "p-0", children: [
3380
3382
  /* @__PURE__ */ n(ce, { className: "mr-2", children: /* @__PURE__ */ n(we, { ...e, ooui: s[0], showLabel: !1, children: /* @__PURE__ */ n(
3381
3383
  Hn.RangePicker,
3382
3384
  {
@@ -3391,7 +3393,7 @@ const en = yt(Da), tn = (e) => {
3391
3393
  }, Na = ({
3392
3394
  value: e,
3393
3395
  onChange: t
3394
- }) => /* @__PURE__ */ A("div", { style: { marginTop: 5 }, children: [
3396
+ }) => /* @__PURE__ */ V("div", { style: { marginTop: 5 }, children: [
3395
3397
  /* @__PURE__ */ n(
3396
3398
  Mn,
3397
3399
  {
@@ -3463,7 +3465,7 @@ function La(e) {
3463
3465
  layout: "vertical"
3464
3466
  }
3465
3467
  );
3466
- return /* @__PURE__ */ A(X, { children: [
3468
+ return /* @__PURE__ */ V(X, { children: [
3467
3469
  r && /* @__PURE__ */ n(
3468
3470
  gn,
3469
3471
  {
@@ -3476,7 +3478,7 @@ function La(e) {
3476
3478
  align: "left"
3477
3479
  }
3478
3480
  ),
3479
- /* @__PURE__ */ A(Te, { align: "bottom", className: "mt-0", wrap: !1, children: [
3481
+ /* @__PURE__ */ V(Te, { align: "bottom", className: "mt-0", wrap: !1, children: [
3480
3482
  /* @__PURE__ */ n(ce, { children: l("#from") }),
3481
3483
  /* @__PURE__ */ n(ce, { className: "pb-1", children: /* @__PURE__ */ n("span", { className: "pl-2 pr-2 h-full", children: " - " }) }),
3482
3484
  /* @__PURE__ */ n(ce, { children: l("#to") })
@@ -3554,15 +3556,15 @@ function Ya(e) {
3554
3556
  }
3555
3557
  function Ga(e) {
3556
3558
  const { onAdvancedFilterToggle: t, advancedFilter: r, onClear: i, isSearching: o } = e, { t: s } = H(he);
3557
- return /* @__PURE__ */ A(Te, { children: [
3558
- /* @__PURE__ */ n(ce, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ A("a", { className: "text-xs", onClick: t, children: [
3559
+ return /* @__PURE__ */ V(Te, { children: [
3560
+ /* @__PURE__ */ n(ce, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ V("a", { className: "text-xs", onClick: t, children: [
3559
3561
  r ? /* @__PURE__ */ n(hi, { className: "pr-1" }) : /* @__PURE__ */ n(Nt, { className: "pr-1" }),
3560
3562
  s(r ? "simple_search" : "advanced_search")
3561
3563
  ] }) }),
3562
- /* @__PURE__ */ A(ce, { span: 12, className: "text-right pb-2", children: [
3563
- /* @__PURE__ */ n(Ae, { className: "mr-5", icon: /* @__PURE__ */ n(Yn, {}), onClick: i, children: s("clear") }),
3564
+ /* @__PURE__ */ V(ce, { span: 12, className: "text-right pb-2", children: [
3565
+ /* @__PURE__ */ n(Ve, { className: "mr-5", icon: /* @__PURE__ */ n(Yn, {}), onClick: i, children: s("clear") }),
3564
3566
  /* @__PURE__ */ n(
3565
- Ae,
3567
+ Ve,
3566
3568
  {
3567
3569
  icon: /* @__PURE__ */ n(Gn, {}),
3568
3570
  loading: o,
@@ -3577,9 +3579,9 @@ function Ga(e) {
3577
3579
  }
3578
3580
  function qa(e) {
3579
3581
  const { onLimitChange: t } = e, { t: r } = H(he), i = new kn({ name: "limit" }), o = new kn({ name: "offset" });
3580
- return /* @__PURE__ */ A("div", { className: "pl-2 pt-2", children: [
3582
+ return /* @__PURE__ */ V("div", { className: "pl-2 pt-2", children: [
3581
3583
  /* @__PURE__ */ n(Te, { children: r("parameters") }, "count_params"),
3582
- /* @__PURE__ */ A(Ye, { align: "center", children: [
3584
+ /* @__PURE__ */ V(Ye, { align: "center", children: [
3583
3585
  r("limit") + " :",
3584
3586
  /* @__PURE__ */ n(
3585
3587
  ln,
@@ -3615,7 +3617,7 @@ function wo(e) {
3615
3617
  fe(() => {
3616
3618
  D.setFieldsValue(m);
3617
3619
  }, [m]);
3618
- const V = () => {
3620
+ const A = () => {
3619
3621
  if (!y)
3620
3622
  return;
3621
3623
  const I = F ? y : h, x = I == null ? void 0 : I.rows;
@@ -3624,7 +3626,7 @@ function wo(e) {
3624
3626
  Tt(() => {
3625
3627
  _(!1), T.current = new fi(r, t), T.current.parse(), p(T.current._simpleSearchContainer), w(T.current._advancedSearchContainer);
3626
3628
  }, [t, r]);
3627
- const C = V(), b = (I) => {
3629
+ const C = A(), b = (I) => {
3628
3630
  var N;
3629
3631
  const { limit: x, offset: O } = I;
3630
3632
  delete I.offset, delete I.limit;
@@ -3642,8 +3644,8 @@ function wo(e) {
3642
3644
  var x;
3643
3645
  u == null || u((x = I.bounds) == null ? void 0 : x.height);
3644
3646
  },
3645
- children: ({ measureRef: I }) => /* @__PURE__ */ n("div", { ref: I, children: /* @__PURE__ */ A("div", { style: { display: d ? "block" : "none" }, children: [
3646
- /* @__PURE__ */ A(
3647
+ children: ({ measureRef: I }) => /* @__PURE__ */ n("div", { ref: I, children: /* @__PURE__ */ V("div", { style: { display: d ? "block" : "none" }, children: [
3648
+ /* @__PURE__ */ V(
3647
3649
  dt,
3648
3650
  {
3649
3651
  className: "p-3 shadow-md",
@@ -3730,7 +3732,7 @@ const Sr = (e, t = "14px -apple-system") => {
3730
3732
  return null;
3731
3733
  const d = async (m) => {
3732
3734
  m.preventDefault(), m.stopPropagation(), a(!0), await i(), a(!1);
3733
- }, u = /* @__PURE__ */ A("span", { children: [
3735
+ }, u = /* @__PURE__ */ V("span", { children: [
3734
3736
  c.recordsSelected.replace(
3735
3737
  "{numberOfSelectedRows}",
3736
3738
  e.toString()
@@ -3781,7 +3783,7 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
3781
3783
  maximumFractionDigits: 4,
3782
3784
  useGrouping: !1
3783
3785
  })}%`;
3784
- return /* @__PURE__ */ A("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
3786
+ return /* @__PURE__ */ V("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
3785
3787
  /* @__PURE__ */ n(tl, { percent: e }),
3786
3788
  /* @__PURE__ */ n("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
3787
3789
  ] });
@@ -3806,7 +3808,7 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
3806
3808
  onCancel: r,
3807
3809
  maskClosable: !1,
3808
3810
  children: /* @__PURE__ */ n(Ye, { direction: "vertical", className: "w-full", children: i.map((a) => /* @__PURE__ */ n(
3809
- Ae,
3811
+ Ve,
3810
3812
  {
3811
3813
  className: "w-full",
3812
3814
  onClick: () => {
@@ -3882,10 +3884,10 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
3882
3884
  /* @__PURE__ */ n(
3883
3885
  He.ItemGroup,
3884
3886
  {
3885
- title: /* @__PURE__ */ A(X, { children: [
3887
+ title: /* @__PURE__ */ V(X, { children: [
3886
3888
  /* @__PURE__ */ n(qr, {}),
3887
3889
  " ",
3888
- /* @__PURE__ */ A("span", { children: [
3890
+ /* @__PURE__ */ V("span", { children: [
3889
3891
  " ",
3890
3892
  h("related")
3891
3893
  ] })
@@ -3921,7 +3923,7 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
3921
3923
  context: { active_id: t, active_ids: [t] }
3922
3924
  });
3923
3925
  }
3924
- function V(I) {
3926
+ function A(I) {
3925
3927
  l(!1), F == null || F({
3926
3928
  actionData: {
3927
3929
  ...I,
@@ -3931,7 +3933,7 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
3931
3933
  fields: u.fields
3932
3934
  });
3933
3935
  }
3934
- return /* @__PURE__ */ A(X, { children: [
3936
+ return /* @__PURE__ */ V(X, { children: [
3935
3937
  /* @__PURE__ */ n(Jt, { overlay: T(), trigger: ["click"], children: /* @__PURE__ */ n(
3936
3938
  pi,
3937
3939
  {
@@ -3955,14 +3957,14 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
3955
3957
  {
3956
3958
  visible: a,
3957
3959
  items: (b = u == null ? void 0 : u.toolbar) == null ? void 0 : b.print,
3958
- onItemClicked: V,
3960
+ onItemClicked: A,
3959
3961
  onCancel: () => l(!1)
3960
3962
  }
3961
3963
  )
3962
3964
  ] });
3963
3965
  }, nl = (e) => {
3964
3966
  const { m2oField: t } = e;
3965
- return t ? /* @__PURE__ */ A(Ye, { children: [
3967
+ return t ? /* @__PURE__ */ V(Ye, { children: [
3966
3968
  /* @__PURE__ */ n(X, { children: t.value }),
3967
3969
  /* @__PURE__ */ n(rr, { id: t.id, model: t.model })
3968
3970
  ] }) : /* @__PURE__ */ n(X, {});
@@ -3986,7 +3988,7 @@ const el = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(bo,
3986
3988
  if (a)
3987
3989
  return /* @__PURE__ */ n(lt, {});
3988
3990
  const m = i.get(c);
3989
- return /* @__PURE__ */ A(Ye, { children: [
3991
+ return /* @__PURE__ */ V(Ye, { children: [
3990
3992
  /* @__PURE__ */ n(X, { children: `${m}:` }),
3991
3993
  /* @__PURE__ */ n(X, { children: o }),
3992
3994
  /* @__PURE__ */ n(rr, { id: u, model: c })
@@ -4231,7 +4233,7 @@ const ol = (e) => {
4231
4233
  rootTree: T = !1,
4232
4234
  context: S,
4233
4235
  readonly: D,
4234
- onSelectAllRecords: V
4236
+ onSelectAllRecords: A
4235
4237
  } = e, C = de(null), [b, I] = v([]), x = de(!1), [O, L] = v(), { t: N } = H(he), q = de(i), M = H(
4236
4238
  at
4237
4239
  ), { title: $ = void 0, setTitle: K = void 0 } = (T ? M : {}) || {}, R = De(() => {
@@ -4250,7 +4252,7 @@ const ol = (e) => {
4250
4252
  (z = C.current) == null || z.unselectAll();
4251
4253
  }
4252
4254
  })), fe(() => {
4253
- const z = At(s);
4255
+ const z = Vt(s);
4254
4256
  L(z), z.string && $ !== z.string && (K == null || K(z.string));
4255
4257
  }, [s, $]), fe(() => {
4256
4258
  if (!O)
@@ -4267,8 +4269,8 @@ const ol = (e) => {
4267
4269
  const z = b == null ? void 0 : b.filter(
4268
4270
  (pe) => f && f.includes(pe.id)
4269
4271
  ).length;
4270
- return c ? null : o === void 0 ? /* @__PURE__ */ n(ke, { className: "pb-4" }) : /* @__PURE__ */ A(Te, { align: "bottom", className: "pb-4", children: [
4271
- /* @__PURE__ */ n(ce, { span: V ? 8 : 12, children: /* @__PURE__ */ n(
4272
+ return c ? null : o === void 0 ? /* @__PURE__ */ n(ke, { className: "pb-4" }) : /* @__PURE__ */ V(Te, { align: "bottom", className: "pb-4", children: [
4273
+ /* @__PURE__ */ n(ce, { span: A ? 8 : 12, children: /* @__PURE__ */ n(
4272
4274
  oi,
4273
4275
  {
4274
4276
  total: o,
@@ -4278,23 +4280,23 @@ const ol = (e) => {
4278
4280
  onChange: l
4279
4281
  }
4280
4282
  ) }),
4281
- V && /* @__PURE__ */ n(ce, { span: 8, className: "text-center", children: /* @__PURE__ */ n(
4283
+ A && /* @__PURE__ */ n(ce, { span: 8, className: "text-center", children: /* @__PURE__ */ n(
4282
4284
  Za,
4283
4285
  {
4284
4286
  numberOfVisibleSelectedRows: z,
4285
4287
  numberOfRealSelectedRows: (f == null ? void 0 : f.length) || 0,
4286
4288
  numberOfTotalRows: b.length,
4287
4289
  totalRecords: o || 0,
4288
- onSelectAllRecords: V
4290
+ onSelectAllRecords: A
4289
4291
  }
4290
4292
  ) }),
4291
- /* @__PURE__ */ n(ce, { span: V ? 8 : 12, className: "text-right", children: Z })
4293
+ /* @__PURE__ */ n(ce, { span: A ? 8 : 12, className: "text-right", children: Z })
4292
4294
  ] });
4293
4295
  }, [
4294
4296
  b,
4295
4297
  c,
4296
4298
  l,
4297
- V,
4299
+ A,
4298
4300
  r,
4299
4301
  f,
4300
4302
  u,
@@ -4316,7 +4318,7 @@ const ol = (e) => {
4316
4318
  if (O !== null && R && R.length > 0)
4317
4319
  return Ja(R, b, 600);
4318
4320
  }, [R, b, O]), P = De(() => g && (O != null && O.columns.some((z) => z.sum !== void 0)) ? g - 30 : g, [g, O == null ? void 0 : O.columns]);
4319
- return O === null || !k || ((ie = k == null ? void 0 : k.columns) == null ? void 0 : ie.length) === 0 ? /* @__PURE__ */ n(ke, { style: { padding: "2rem" } }) : /* @__PURE__ */ A(to, { children: [
4321
+ return O === null || !k || ((ie = k == null ? void 0 : k.columns) == null ? void 0 : ie.length) === 0 ? /* @__PURE__ */ n(ke, { style: { padding: "2rem" } }) : /* @__PURE__ */ V(to, { children: [
4320
4322
  re,
4321
4323
  /* @__PURE__ */ n(
4322
4324
  Hi,
@@ -4369,7 +4371,7 @@ function Cl(e, t) {
4369
4371
  rootTree: u = !1,
4370
4372
  parentContext: f = {},
4371
4373
  onChangeSelectedRowKeys: m
4372
- } = e, [g, h] = v(!1), [p, y] = v(!1), w = de(!1), F = de(null), [_, T] = v(), [S, D] = v(), [V, C] = v(), [b, I] = v(), [x, O] = v(200), L = de(), { height: N } = yn(), q = H(
4374
+ } = e, [g, h] = v(!1), [p, y] = v(!1), w = de(!1), F = de(null), [_, T] = v(), [S, D] = v(), [A, C] = v(), [b, I] = v(), [x, O] = v(200), L = de(), { height: N } = yn(), q = H(
4373
4375
  $t
4374
4376
  ), { processAction: M } = q || {}, $ = H(
4375
4377
  at
@@ -4427,7 +4429,7 @@ function Cl(e, t) {
4427
4429
  nameSearch: a,
4428
4430
  searchNameGetDoneRef: w,
4429
4431
  context: f,
4430
- formView: V,
4432
+ formView: A,
4431
4433
  treeView: S,
4432
4434
  sorter: z,
4433
4435
  setSorter: pe,
@@ -4516,24 +4518,24 @@ function Cl(e, t) {
4516
4518
  s({
4517
4519
  id: qe,
4518
4520
  model: _,
4519
- formView: V,
4521
+ formView: A,
4520
4522
  treeView: S
4521
4523
  });
4522
4524
  },
4523
- [_, V, s, ye, S]
4525
+ [_, A, s, ye, S]
4524
4526
  ), Re = Se(async () => {
4525
4527
  const Me = await $e();
4526
4528
  re == null || re(Me.map((qe) => ({ id: qe }))), m == null || m(Me);
4527
4529
  }, [$e, m, re]), ot = De(() => S != null && S.isExpandable ? N - 160 : N - (x + 240), [N, x, S == null ? void 0 : S.isExpandable]), Je = De(
4528
4530
  () => Z == null ? void 0 : Z.map((Me) => Me.id),
4529
4531
  [Z]
4530
- ), It = Se(() => !S || !V ? null : /* @__PURE__ */ A(X, { children: [
4532
+ ), It = Se(() => !S || !A ? null : /* @__PURE__ */ V(X, { children: [
4531
4533
  /* @__PURE__ */ n(
4532
4534
  wo,
4533
4535
  {
4534
- fields: { ...V.fields, ...S.fields },
4536
+ fields: { ...A.fields, ...S.fields },
4535
4537
  searchFields: mo([
4536
- V.search_fields,
4538
+ A.search_fields,
4537
4539
  S.search_fields
4538
4540
  ]),
4539
4541
  onClear: xe,
@@ -4581,7 +4583,7 @@ function Cl(e, t) {
4581
4583
  xe,
4582
4584
  Le,
4583
4585
  le,
4584
- V,
4586
+ A,
4585
4587
  Oe,
4586
4588
  Pe,
4587
4589
  Ce,
@@ -4629,7 +4631,7 @@ const So = yt(Cl), To = (e) => {
4629
4631
  }
4630
4632
  i(g);
4631
4633
  }
4632
- const F = () => /* @__PURE__ */ A(X, { children: [
4634
+ const F = () => /* @__PURE__ */ V(X, { children: [
4633
4635
  /* @__PURE__ */ n(
4634
4636
  So,
4635
4637
  {
@@ -4643,9 +4645,9 @@ const So = yt(Cl), To = (e) => {
4643
4645
  }
4644
4646
  ),
4645
4647
  /* @__PURE__ */ n(mn, {}),
4646
- /* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */ A(Ye, { children: [
4648
+ /* @__PURE__ */ n(Te, { justify: "end", children: /* @__PURE__ */ V(Ye, { children: [
4647
4649
  /* @__PURE__ */ n(
4648
- Ae,
4650
+ Ve,
4649
4651
  {
4650
4652
  icon: /* @__PURE__ */ n(hn, {}),
4651
4653
  onClick: () => {
@@ -4655,7 +4657,7 @@ const So = yt(Cl), To = (e) => {
4655
4657
  }
4656
4658
  ),
4657
4659
  /* @__PURE__ */ n(
4658
- Ae,
4660
+ Ve,
4659
4661
  {
4660
4662
  icon: /* @__PURE__ */ n(Mt, {}),
4661
4663
  onClick: () => {
@@ -4665,10 +4667,10 @@ const So = yt(Cl), To = (e) => {
4665
4667
  children: m("ok")
4666
4668
  }
4667
4669
  ),
4668
- /* @__PURE__ */ n(Ae, { icon: /* @__PURE__ */ n(Xt, {}), onClick: p, children: m("cancel") })
4670
+ /* @__PURE__ */ n(Ve, { icon: /* @__PURE__ */ n(Xt, {}), onClick: p, children: m("cancel") })
4669
4671
  ] }) })
4670
4672
  ] });
4671
- return /* @__PURE__ */ A(X, { children: [
4673
+ return /* @__PURE__ */ V(X, { children: [
4672
4674
  /* @__PURE__ */ n(
4673
4675
  Ze,
4674
4676
  {
@@ -4724,7 +4726,7 @@ const So = yt(Cl), To = (e) => {
4724
4726
  context: l,
4725
4727
  id: c,
4726
4728
  domain: d
4727
- } = i, u = o && !a ? { backgroundColor: Io.colorPrimaryBg } : void 0, [f, m] = v(!1), [g, h] = v(!1), [p, y] = v(!1), [w, F] = v(), _ = de(!1), [T, S] = v(""), D = de(), V = H(Be), { domain: C, getValues: b, getFields: I, getContext: x, elementHasLostFocus: O } = V || {}, L = de([]), [N, q] = v([]), M = t && t[0] || void 0, $ = t && t[1] || "";
4729
+ } = i, u = o && !a ? { backgroundColor: Io.colorPrimaryBg } : void 0, [f, m] = v(!1), [g, h] = v(!1), [p, y] = v(!1), [w, F] = v(), _ = de(!1), [T, S] = v(""), D = de(), A = H(Be), { domain: C, getValues: b, getFields: I, getContext: x, elementHasLostFocus: O } = A || {}, L = de([]), [N, q] = v([]), M = t && t[0] || void 0, $ = t && t[1] || "";
4728
4730
  fe(() => {
4729
4731
  !Array.isArray(t) && t && Z(t);
4730
4732
  }, [t]), fe(() => {
@@ -4805,7 +4807,7 @@ const So = yt(Cl), To = (e) => {
4805
4807
  async function G(P) {
4806
4808
  P.keyCode === 13 ? (P.preventDefault(), P.stopPropagation(), await Y()) : P.code === "Backspace" && M !== void 0 && (P.preventDefault(), P.stopPropagation(), K([void 0, ""]));
4807
4809
  }
4808
- return /* @__PURE__ */ A(Te, { gutter: 8, wrap: !1, children: [
4810
+ return /* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, children: [
4809
4811
  /* @__PURE__ */ n(ce, { flex: "auto", children: /* @__PURE__ */ n(
4810
4812
  o && !a ? Fl : st,
4811
4813
  {
@@ -4827,7 +4829,7 @@ const So = yt(Cl), To = (e) => {
4827
4829
  }
4828
4830
  ) }),
4829
4831
  /* @__PURE__ */ n(ce, { flex: "32px", style: { paddingRight: 0 }, children: /* @__PURE__ */ n(
4830
- Ae,
4832
+ Ve,
4831
4833
  {
4832
4834
  icon: /* @__PURE__ */ n(jn, {}),
4833
4835
  disabled: M === void 0 || $ === "" || T === void 0,
@@ -4839,7 +4841,7 @@ const So = yt(Cl), To = (e) => {
4839
4841
  }
4840
4842
  ) }),
4841
4843
  /* @__PURE__ */ n(ce, { flex: "32px", style: { paddingLeft: 0 }, children: /* @__PURE__ */ n(
4842
- Ae,
4844
+ Ve,
4843
4845
  {
4844
4846
  icon: p ? /* @__PURE__ */ n(lt, {}) : /* @__PURE__ */ n(Gn, {}),
4845
4847
  disabled: a || p,
@@ -4922,7 +4924,7 @@ const So = yt(Cl), To = (e) => {
4922
4924
  field: d,
4923
4925
  operator: u,
4924
4926
  manualIds: f
4925
- } = e, [m, g] = v(!1), [h, p] = v(), [y, w] = v(), [F, _] = v(), [T, S] = v(0), [D, V] = v(0), [C, b] = v(), [I, x] = v(), [O, L] = v();
4927
+ } = e, [m, g] = v(!1), [h, p] = v(), [y, w] = v(), [F, _] = v(), [T, S] = v(0), [D, A] = v(0), [C, b] = v(), [I, x] = v(), [O, L] = v();
4926
4928
  fe(() => {
4927
4929
  M();
4928
4930
  }, [t, o]);
@@ -5024,10 +5026,10 @@ const So = yt(Cl), To = (e) => {
5024
5026
  bounds: !0,
5025
5027
  onResize: ($) => {
5026
5028
  var K, R;
5027
- S((K = $.bounds) == null ? void 0 : K.height), V((R = $.bounds) == null ? void 0 : R.width);
5029
+ S((K = $.bounds) == null ? void 0 : K.height), A((R = $.bounds) == null ? void 0 : R.width);
5028
5030
  },
5029
5031
  children: ({ measureRef: $ }) => a ? /* @__PURE__ */ n(
5030
- Vl,
5032
+ Al,
5031
5033
  {
5032
5034
  value: h,
5033
5035
  total: F,
@@ -5093,14 +5095,14 @@ function Rl({
5093
5095
  justifyContent: "center",
5094
5096
  overflow: "hidden"
5095
5097
  },
5096
- children: /* @__PURE__ */ A(En, { style: { fontSize: c, margin: 0, color: s }, children: [
5098
+ children: /* @__PURE__ */ V(En, { style: { fontSize: c, margin: 0, color: s }, children: [
5097
5099
  m && /* @__PURE__ */ n(m, { style: { fontSize: c * 0.7 } }),
5098
5100
  m ? ` ${u}` : u
5099
5101
  ] })
5100
5102
  }
5101
5103
  );
5102
5104
  }
5103
- function Vl({
5105
+ function Al({
5104
5106
  measureRef: e,
5105
5107
  height: t,
5106
5108
  width: r,
@@ -5143,9 +5145,9 @@ function Vl({
5143
5145
  flexDirection: "column",
5144
5146
  padding: "0.2rem"
5145
5147
  },
5146
- children: /* @__PURE__ */ A(Te, { align: "middle", children: [
5148
+ children: /* @__PURE__ */ V(Te, { align: "middle", children: [
5147
5149
  p && /* @__PURE__ */ n(ce, { style: { fontSize: u * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ n(p, {}) }),
5148
- /* @__PURE__ */ A(ce, { children: [
5150
+ /* @__PURE__ */ V(ce, { children: [
5149
5151
  /* @__PURE__ */ n(En, { style: { fontSize: u * 0.8, margin: 0, color: a }, children: p ? ` ${i}%` : `${i}%` }),
5150
5152
  /* @__PURE__ */ n(
5151
5153
  En,
@@ -5170,7 +5172,7 @@ const On = (e) => (t) => {
5170
5172
  });
5171
5173
  return { name: e === "pie" ? t.x : t.type, value: r };
5172
5174
  }, on = (e) => {
5173
- if (typeof e == "string" && Al(e))
5175
+ if (typeof e == "string" && Vl(e))
5174
5176
  return parseFloat(e).toLocaleString("es-ES", {
5175
5177
  useGrouping: !0
5176
5178
  });
@@ -5185,7 +5187,7 @@ const On = (e) => (t) => {
5185
5187
  );
5186
5188
  } else
5187
5189
  return e;
5188
- }, Al = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Dl = (e) => typeof e == "number" && !isNaN(e), Or = {
5190
+ }, Vl = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Dl = (e) => typeof e == "number" && !isNaN(e), Or = {
5189
5191
  default: {
5190
5192
  padding: "auto",
5191
5193
  xAxis: {
@@ -5402,8 +5404,8 @@ async function $l({
5402
5404
  };
5403
5405
  }
5404
5406
  const Bl = {
5405
- line: Vi,
5406
- bar: Ai,
5407
+ line: Ai,
5408
+ bar: Vi,
5407
5409
  pie: Di
5408
5410
  }, Hl = (e) => {
5409
5411
  var w;
@@ -5423,7 +5425,7 @@ const Bl = {
5423
5425
  if (!u)
5424
5426
  return /* @__PURE__ */ n(nt, { message: "No data to display", type: "info" });
5425
5427
  const { data: g, isGroup: h, isStack: p } = u, y = Bl[f];
5426
- return y ? /* @__PURE__ */ A("div", { style: { padding: "1rem" }, children: [
5428
+ return y ? /* @__PURE__ */ V("div", { style: { padding: "1rem" }, children: [
5427
5429
  /* @__PURE__ */ n("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(w = m == null ? void 0 : m.length) == null ? void 0 : w.toLocaleString(
5428
5430
  "es-ES",
5429
5431
  {
@@ -5535,23 +5537,23 @@ const Wl = (e, t) => {
5535
5537
  }
5536
5538
  }, vn = yt(Wl), { confirm: jl } = Ze, Ul = ({ onOk: e, lang: t }) => {
5537
5539
  jl({
5538
- title: Ve("removeItems", t),
5540
+ title: Ae("removeItems", t),
5539
5541
  icon: /* @__PURE__ */ n(vt, {}),
5540
5542
  centered: !0,
5541
- content: Ve("confirmRemove", t),
5542
- okText: Ve("yesConfirmRemove", t),
5543
+ content: Ae("confirmRemove", t),
5544
+ okText: Ae("yesConfirmRemove", t),
5543
5545
  onOk: e,
5544
- cancelText: Ve("cancel", t)
5546
+ cancelText: Ae("cancel", t)
5545
5547
  });
5546
5548
  }, { confirm: Yl } = Ze, Gl = ({ onOk: e, lang: t }) => {
5547
5549
  Yl({
5548
- title: Ve("unlinkItems", t),
5550
+ title: Ae("unlinkItems", t),
5549
5551
  icon: /* @__PURE__ */ n(vt, {}),
5550
5552
  centered: !0,
5551
- content: Ve("confirmUnlink", t),
5552
- okText: Ve("yesConfirmUnlink", t),
5553
+ content: Ae("confirmUnlink", t),
5554
+ okText: Ae("yesConfirmUnlink", t),
5553
5555
  onOk: e,
5554
- cancelText: Ve("cancel", t)
5556
+ cancelText: Ae("cancel", t)
5555
5557
  });
5556
5558
  }, { useToken: ql } = Ke, zl = (e) => {
5557
5559
  const {
@@ -5600,7 +5602,7 @@ const Wl = (e, t) => {
5600
5602
  }
5601
5603
  function T() {
5602
5604
  let D = "_";
5603
- return l === 0 ? D = "_" : D = (c + 1).toString(), /* @__PURE__ */ A("span", { className: "pl-1 pr-1", children: [
5605
+ return l === 0 ? D = "_" : D = (c + 1).toString(), /* @__PURE__ */ V("span", { className: "pl-1 pr-1", children: [
5604
5606
  "(",
5605
5607
  D,
5606
5608
  "/",
@@ -5609,7 +5611,7 @@ const Wl = (e, t) => {
5609
5611
  ] });
5610
5612
  }
5611
5613
  function S() {
5612
- return /* @__PURE__ */ A(X, { children: [
5614
+ return /* @__PURE__ */ V(X, { children: [
5613
5615
  w(),
5614
5616
  /* @__PURE__ */ n(
5615
5617
  et,
@@ -5630,9 +5632,9 @@ const Wl = (e, t) => {
5630
5632
  )
5631
5633
  ] });
5632
5634
  }
5633
- return /* @__PURE__ */ A("div", { className: "flex mb-2", children: [
5635
+ return /* @__PURE__ */ V("div", { className: "flex mb-2", children: [
5634
5636
  F(),
5635
- /* @__PURE__ */ A("div", { className: "flex-none h-8 pl-2", children: [
5637
+ /* @__PURE__ */ V("div", { className: "flex-none h-8 pl-2", children: [
5636
5638
  s !== "graph" && h && /* @__PURE__ */ n(
5637
5639
  et,
5638
5640
  {
@@ -5681,7 +5683,7 @@ const Zl = (e) => {
5681
5683
  var $e;
5682
5684
  const { value: t, onChange: r, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: c, setItemIndex: d } = H(
5683
5685
  _o
5684
- ), u = H(Be), { activeId: f, getFields: m, getValues: g, getContext: h, domain: p } = u || {}, { lang: y, t: w } = H(he), [F, _] = v(!1), [T, S] = v(!1), [D, V] = v(), [C, b] = v(!1), [I, x] = v(!1), [O, L] = v(), [N, q] = v([]), [M, $] = v(!1), K = de([]), [R, Y] = v(), te = de(), [Z, re] = v(void 0), {
5686
+ ), u = H(Be), { activeId: f, getFields: m, getValues: g, getContext: h, domain: p } = u || {}, { lang: y, t: w } = H(he), [F, _] = v(!1), [T, S] = v(!1), [D, A] = v(), [C, b] = v(!1), [I, x] = v(!1), [O, L] = v(), [N, q] = v([]), [M, $] = v(!1), K = de([]), [R, Y] = v(), te = de(), [Z, re] = v(void 0), {
5685
5687
  readOnly: G,
5686
5688
  relation: k,
5687
5689
  context: P,
@@ -5712,7 +5714,7 @@ const Zl = (e) => {
5712
5714
  await Pe(), c > ee.length - 1 && c !== 0 && d(0);
5713
5715
  }, Pe = async (J) => {
5714
5716
  var oe, Fe, ye;
5715
- S(!0), _(!1), V(void 0);
5717
+ S(!0), _(!1), A(void 0);
5716
5718
  try {
5717
5719
  const [_e, Re] = await tr({
5718
5720
  treeView: {
@@ -5729,7 +5731,7 @@ const Zl = (e) => {
5729
5731
  });
5730
5732
  return te.current || (te.current = _e.map((ot) => ot.id)), (a || J) === "tree" && Re && re(Re), ve(_e), _e;
5731
5733
  } catch (_e) {
5732
- V(_e);
5734
+ A(_e);
5733
5735
  } finally {
5734
5736
  S(!1);
5735
5737
  }
@@ -5816,7 +5818,7 @@ const Zl = (e) => {
5816
5818
  x(!0);
5817
5819
  }) : x(!0);
5818
5820
  }, Ce = async () => {
5819
- S(!0), _(!1), V(void 0);
5821
+ S(!0), _(!1), A(void 0);
5820
5822
  try {
5821
5823
  if (ee[c].id > 0) {
5822
5824
  const J = s.map((oe) => oe.id === ee[c].id ? {
@@ -5829,12 +5831,12 @@ const Zl = (e) => {
5829
5831
  s.filter((J) => J.id !== ee[c].id)
5830
5832
  );
5831
5833
  } catch (J) {
5832
- V(J);
5834
+ A(J);
5833
5835
  }
5834
5836
  d(0), S(!1);
5835
5837
  }, Oe = async () => {
5836
5838
  const J = ee.filter((oe) => N.includes(oe.id));
5837
- S(!0), _(!1), V(void 0);
5839
+ S(!0), _(!1), A(void 0);
5838
5840
  try {
5839
5841
  const oe = J.map((ye) => ye.id), Fe = s.filter((ye) => !(oe.includes(ye.id) && ye.id < 0)).map((ye) => oe.includes(ye.id) ? {
5840
5842
  ...ye,
@@ -5842,7 +5844,7 @@ const Zl = (e) => {
5842
5844
  } : ye);
5843
5845
  ve(Fe);
5844
5846
  } catch (oe) {
5845
- V(oe);
5847
+ A(oe);
5846
5848
  }
5847
5849
  d(0), S(!1);
5848
5850
  }, je = (J, oe, Fe, ye = !1) => {
@@ -5901,7 +5903,7 @@ const Zl = (e) => {
5901
5903
  }
5902
5904
  ve(oe);
5903
5905
  } catch (ye) {
5904
- V(ye);
5906
+ A(ye);
5905
5907
  } finally {
5906
5908
  S(!1);
5907
5909
  }
@@ -5985,7 +5987,7 @@ const Zl = (e) => {
5985
5987
  if (D)
5986
5988
  return /* @__PURE__ */ n(nt, { className: "mt-10", message: D, type: "error", banner: !0 });
5987
5989
  const ze = M;
5988
- return T ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ A(X, { children: [
5990
+ return T ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ V(X, { children: [
5989
5991
  /* @__PURE__ */ n(
5990
5992
  zl,
5991
5993
  {
@@ -6151,7 +6153,7 @@ function oc(e) {
6151
6153
  return /* @__PURE__ */ n(Mr, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(
6152
6154
  rc,
6153
6155
  {
6154
- tab: /* @__PURE__ */ A(X, { children: [
6156
+ tab: /* @__PURE__ */ V(X, { children: [
6155
6157
  o(s.icon),
6156
6158
  " ",
6157
6159
  s.label
@@ -6203,7 +6205,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6203
6205
  formHasChanges: d,
6204
6206
  elementHasLostFocus: u
6205
6207
  } = s || {}, [f, m] = v(!1), { t: g } = H(he);
6206
- return a ? /* @__PURE__ */ A(X, { children: [
6208
+ return a ? /* @__PURE__ */ V(X, { children: [
6207
6209
  /* @__PURE__ */ n(
6208
6210
  "div",
6209
6211
  {
@@ -6250,7 +6252,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6250
6252
  }
6251
6253
  }
6252
6254
  )
6253
- ] }) : /* @__PURE__ */ A(X, { children: [
6255
+ ] }) : /* @__PURE__ */ V(X, { children: [
6254
6256
  /* @__PURE__ */ n(Te, { gutter: 8, wrap: !1, children: /* @__PURE__ */ n(
6255
6257
  Pn,
6256
6258
  {
@@ -6281,7 +6283,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6281
6283
  ] });
6282
6284
  }, lc = (e) => {
6283
6285
  const { ooui: t } = e, { label: r, icon: i } = t, o = ut(i || "");
6284
- return /* @__PURE__ */ n(mn, { orientation: "left", className: "text-sm", children: (o || r) && /* @__PURE__ */ A(Ye, { children: [
6286
+ return /* @__PURE__ */ n(mn, { orientation: "left", className: "text-sm", children: (o || r) && /* @__PURE__ */ V(Ye, { children: [
6285
6287
  o ? /* @__PURE__ */ n(o, {}) : null,
6286
6288
  r
6287
6289
  ] }) });
@@ -6297,7 +6299,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6297
6299
  const l = de({}), c = de(/* @__PURE__ */ new Map()), d = Se(
6298
6300
  async (y) => {
6299
6301
  if (y.selectedKeys === void 0 || y.selectedKeys.length === 0) {
6300
- ht(Ve("selectAtLeastOneField", r));
6302
+ ht(Ae("selectAtLeastOneField", r));
6301
6303
  return;
6302
6304
  }
6303
6305
  let w = o;
@@ -6355,10 +6357,10 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6355
6357
  predefinedExports: y.map((_) => ({
6356
6358
  ..._,
6357
6359
  fields: _.fields.map((T) => {
6358
- const S = Ln(T.key), V = $n(T.key, l.current)[S];
6360
+ const S = Ln(T.key), A = $n(T.key, l.current)[S];
6359
6361
  return {
6360
6362
  key: T.key,
6361
- title: V.string
6363
+ title: A.string
6362
6364
  };
6363
6365
  })
6364
6366
  })),
@@ -6427,7 +6429,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6427
6429
  const o = e[i];
6428
6430
  if (o.relation && o.is_function === !0)
6429
6431
  continue;
6430
- const s = Vo(o);
6432
+ const s = Ao(o);
6431
6433
  r.push({
6432
6434
  key: dc({ key: i, parentKey: t }),
6433
6435
  title: o.string,
@@ -6437,7 +6439,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6437
6439
  });
6438
6440
  }
6439
6441
  return r;
6440
- }, Vo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", dc = ({
6442
+ }, Ao = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", dc = ({
6441
6443
  parentKey: e,
6442
6444
  key: t
6443
6445
  }) => `${e ? e + "/" : ""}${t}`, Wt = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Ln = (e) => {
@@ -6504,7 +6506,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6504
6506
  fields: t
6505
6507
  }) => e.map((r) => {
6506
6508
  const i = Ln(r), s = $n(r, t)[i];
6507
- return Vo(s) ? `${r}/id` : r;
6509
+ return Ao(s) ? `${r}/id` : r;
6508
6510
  }), gc = (e) => {
6509
6511
  const t = /* @__PURE__ */ new Map(), r = [];
6510
6512
  for (const i of e) {
@@ -6594,7 +6596,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6594
6596
  }
6595
6597
  const m = t && l && l[0], g = t && l && l[1] && parseInt(l[1]);
6596
6598
  d([g, void 0]), f(m);
6597
- }, [t]), /* @__PURE__ */ A(Te, { gutter: 8, wrap: !1, children: [
6599
+ }, [t]), /* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, children: [
6598
6600
  /* @__PURE__ */ n(ce, { flex: "1", children: /* @__PURE__ */ n(
6599
6601
  lo,
6600
6602
  {
@@ -6640,8 +6642,8 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6640
6642
  i == null || i(_);
6641
6643
  };
6642
6644
  async function p() {
6643
- const _ = await kt(r), T = `data:${_ == null ? void 0 : _.mime};base64,${r}`, S = document.createElement("a"), D = f(a), V = f("name");
6644
- S.href = T, S.download = D || V, S.click();
6645
+ const _ = await kt(r), T = `data:${_ == null ? void 0 : _.mime};base64,${r}`, S = document.createElement("a"), D = f(a), A = f("name");
6646
+ S.href = T, S.download = D || A, S.click();
6645
6647
  }
6646
6648
  async function y() {
6647
6649
  const _ = await kt(r);
@@ -6655,8 +6657,8 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6655
6657
  function F() {
6656
6658
  u(a, void 0), h(void 0);
6657
6659
  }
6658
- return /* @__PURE__ */ A(Te, { gutter: 8, children: [
6659
- /* @__PURE__ */ A(ce, { style: { paddingBottom: 5 }, children: [
6660
+ return /* @__PURE__ */ V(Te, { gutter: 8, children: [
6661
+ /* @__PURE__ */ V(ce, { style: { paddingBottom: 5 }, children: [
6660
6662
  /* @__PURE__ */ n(
6661
6663
  "input",
6662
6664
  {
@@ -6677,9 +6679,9 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6677
6679
  }
6678
6680
  )
6679
6681
  ] }),
6680
- /* @__PURE__ */ n(ce, { children: /* @__PURE__ */ A(Ye, { children: [
6682
+ /* @__PURE__ */ n(ce, { children: /* @__PURE__ */ V(Ye, { children: [
6681
6683
  /* @__PURE__ */ n(
6682
- Ae,
6684
+ Ve,
6683
6685
  {
6684
6686
  icon: /* @__PURE__ */ n(jn, {}),
6685
6687
  disabled: o,
@@ -6689,7 +6691,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6689
6691
  children: "Select"
6690
6692
  }
6691
6693
  ),
6692
- /* @__PURE__ */ n(Ae, { icon: /* @__PURE__ */ n(bi, {}), disabled: !r, onClick: y, children: m("open") }),
6694
+ /* @__PURE__ */ n(Ve, { icon: /* @__PURE__ */ n(bi, {}), disabled: !r, onClick: y, children: m("open") }),
6693
6695
  /* @__PURE__ */ n(
6694
6696
  et,
6695
6697
  {
@@ -6716,7 +6718,7 @@ const { useToken: ic } = Ke, { TextArea: Pn } = st, sc = (e) => {
6716
6718
  graph: /* @__PURE__ */ n(Ci, {}),
6717
6719
  calendar: /* @__PURE__ */ n(xi, {})
6718
6720
  };
6719
- function Vr(e) {
6721
+ function Ar(e) {
6720
6722
  return e ? (Rn == null ? void 0 : Rn[e.type]) || /* @__PURE__ */ n(Ut, {}) : /* @__PURE__ */ n(Ut, {});
6721
6723
  }
6722
6724
  function or(e) {
@@ -6729,21 +6731,18 @@ function or(e) {
6729
6731
  previousView: a
6730
6732
  } = e, { t: l, lang: c } = H(he);
6731
6733
  function d() {
6732
- const m = r.map((g, h) => {
6733
- const p = g.type.charAt(0).toUpperCase() + g.type.slice(1);
6734
- return /* @__PURE__ */ n(He.Item, { children: /* @__PURE__ */ A(Te, { wrap: !1, children: [
6735
- /* @__PURE__ */ n(ce, { flex: "none", style: { paddingRight: 20 }, children: Vr(g) }),
6736
- /* @__PURE__ */ n(ce, { flex: "auto", style: { paddingRight: 20 }, children: g.title || p }),
6737
- /* @__PURE__ */ n(ce, { flex: "none", children: /* @__PURE__ */ n(
6738
- Mt,
6739
- {
6740
- style: {
6741
- opacity: t.view_id === g.view_id ? 1 : 0
6742
- }
6734
+ const m = r.map((g, h) => /* @__PURE__ */ n(He.Item, { children: /* @__PURE__ */ V(Te, { wrap: !1, children: [
6735
+ /* @__PURE__ */ n(ce, { flex: "none", style: { paddingRight: 20 }, children: Ar(g) }),
6736
+ /* @__PURE__ */ n(ce, { flex: "auto", style: { paddingRight: 20 }, children: g.type.charAt(0).toUpperCase() + g.type.slice(1) }),
6737
+ /* @__PURE__ */ n(ce, { flex: "none", children: /* @__PURE__ */ n(
6738
+ Mt,
6739
+ {
6740
+ style: {
6741
+ opacity: t.view_id === g.view_id ? 1 : 0
6743
6742
  }
6744
- ) })
6745
- ] }) }, g.view_id || h);
6746
- });
6743
+ }
6744
+ ) })
6745
+ ] }) }, g.view_id || h));
6747
6746
  return /* @__PURE__ */ n(He, { onClick: f, children: /* @__PURE__ */ n(He.ItemGroup, { title: l("viewAs"), children: m }) });
6748
6747
  }
6749
6748
  function u(m) {
@@ -6766,12 +6765,12 @@ function or(e) {
6766
6765
  i(g);
6767
6766
  });
6768
6767
  }
6769
- return /* @__PURE__ */ A("div", { style: { display: "flex" }, children: [
6768
+ return /* @__PURE__ */ V("div", { style: { display: "flex" }, children: [
6770
6769
  /* @__PURE__ */ n(
6771
6770
  et,
6772
6771
  {
6773
6772
  tooltip: a ? l("viewAs") + " " + l(a.type) : "",
6774
- icon: Vr(a),
6773
+ icon: Ar(a),
6775
6774
  style: {
6776
6775
  width: 50,
6777
6776
  borderTopRightRadius: 0,
@@ -6789,7 +6788,7 @@ function or(e) {
6789
6788
  overlay: d(),
6790
6789
  disabled: o || r.length === 1,
6791
6790
  children: /* @__PURE__ */ n(
6792
- Ae,
6791
+ Ve,
6793
6792
  {
6794
6793
  style: {
6795
6794
  width: 25,
@@ -6838,7 +6837,7 @@ const { Search: _c } = st, xt = Dr(
6838
6837
  },
6839
6838
  "no_match" + y
6840
6839
  ) : /* @__PURE__ */ n(He.Item, { children: p.name }, p.id));
6841
- return /* @__PURE__ */ A(He, { onClick: m, children: [
6840
+ return /* @__PURE__ */ V(He, { onClick: m, children: [
6842
6841
  d && /* @__PURE__ */ n("div", { style: { padding: 5 }, children: /* @__PURE__ */ n(
6843
6842
  _c,
6844
6843
  {
@@ -6860,7 +6859,7 @@ const { Search: _c } = st, xt = Dr(
6860
6859
  )
6861
6860
  ] });
6862
6861
  }, [f, m, d, u, t]);
6863
- return /* @__PURE__ */ n(X, { children: /* @__PURE__ */ n(Jt, { overlay: g, disabled: s || r.length === 0, children: /* @__PURE__ */ A(Ae, { children: [
6862
+ return /* @__PURE__ */ n(X, { children: /* @__PURE__ */ n(Jt, { overlay: g, disabled: s || r.length === 0, children: /* @__PURE__ */ V(Ve, { children: [
6864
6863
  e,
6865
6864
  " ",
6866
6865
  o,
@@ -6880,7 +6879,7 @@ function Qe(e) {
6880
6879
  label: a,
6881
6880
  type: l = "default"
6882
6881
  } = e;
6883
- return /* @__PURE__ */ A(
6882
+ return /* @__PURE__ */ V(
6884
6883
  et,
6885
6884
  {
6886
6885
  type: l,
@@ -6894,7 +6893,7 @@ function Qe(e) {
6894
6893
  }
6895
6894
  );
6896
6895
  }
6897
- function Ao(e) {
6896
+ function Vo(e) {
6898
6897
  const { disabled: t = !1 } = e, { formHasChanges: r, onNewClicked: i } = H(
6899
6898
  at
6900
6899
  ), { t: o, lang: s } = H(he), a = () => {
@@ -6925,12 +6924,12 @@ const { confirm: Oc } = Ze, Rc = ({
6925
6924
  lang: r
6926
6925
  }) => {
6927
6926
  Oc({
6928
- title: Ve("unsavedChanges", r),
6927
+ title: Ae("unsavedChanges", r),
6929
6928
  icon: /* @__PURE__ */ n(vt, {}),
6930
6929
  centered: !0,
6931
- content: Ve("confirmRefreshWithoutSave", r),
6932
- okText: Ve("discardAndRefresh", r),
6933
- cancelText: Ve("cancel", r),
6930
+ content: Ae("confirmRefreshWithoutSave", r),
6931
+ okText: Ae("discardAndRefresh", r),
6932
+ cancelText: Ae("cancel", r),
6934
6933
  onOk: e,
6935
6934
  onCancel: t
6936
6935
  });
@@ -6941,7 +6940,7 @@ async function Do(e, t, r) {
6941
6940
  ids: [t]
6942
6941
  }))[0], { create_date: o, create_uid: s, id: a, write_date: l, write_uid: c } = i;
6943
6942
  ht(
6944
- /* @__PURE__ */ A("div", { children: [
6943
+ /* @__PURE__ */ V("div", { children: [
6945
6944
  "ID: " + a,
6946
6945
  " ",
6947
6946
  /* @__PURE__ */ n("br", {}),
@@ -6958,8 +6957,8 @@ async function Do(e, t, r) {
6958
6957
  ] })
6959
6958
  );
6960
6959
  }
6961
- const Vc = (e) => {
6962
- const { numberOfAttachments: t, disabled: r } = e, { t: i, lang: o } = H(he), [s, a] = v(!1), l = /* @__PURE__ */ A(Ae, { disabled: r, children: [
6960
+ const Ac = (e) => {
6961
+ const { numberOfAttachments: t, disabled: r } = e, { t: i, lang: o } = H(he), [s, a] = v(!1), l = /* @__PURE__ */ V(Ve, { disabled: r, children: [
6963
6962
  /* @__PURE__ */ n(Xr, {}),
6964
6963
  `(${t})`,
6965
6964
  /* @__PURE__ */ n(Nt, { style: { fontSize: 12 } })
@@ -6970,13 +6969,13 @@ const Vc = (e) => {
6970
6969
  onVisibleChange: (c) => a(c),
6971
6970
  visible: s,
6972
6971
  placement: "bottom",
6973
- content: Ac(e, a, o),
6972
+ content: Vc(e, a, o),
6974
6973
  title: i("attachments"),
6975
6974
  arrowContent: null,
6976
6975
  children: l
6977
6976
  }
6978
6977
  );
6979
- }, Ac = (e, t, r) => {
6978
+ }, Vc = (e, t, r) => {
6980
6979
  const {
6981
6980
  attachments: i = [],
6982
6981
  loading: o,
@@ -6985,8 +6984,8 @@ const Vc = (e) => {
6985
6984
  onOpenAttachmentDetail: l,
6986
6985
  onListAllAttachments: c
6987
6986
  } = e;
6988
- return o ? /* @__PURE__ */ n(ke, { style: { padding: 20 } }) : /* @__PURE__ */ A(X, { children: [
6989
- /* @__PURE__ */ A(
6987
+ return o ? /* @__PURE__ */ n(ke, { style: { padding: 20 } }) : /* @__PURE__ */ V(X, { children: [
6988
+ /* @__PURE__ */ V(
6990
6989
  "a",
6991
6990
  {
6992
6991
  style: { display: "block", paddingBottom: 5 },
@@ -6997,11 +6996,11 @@ const Vc = (e) => {
6997
6996
  children: [
6998
6997
  /* @__PURE__ */ n(Xn, {}),
6999
6998
  " ",
7000
- Ve("listAllAttachments", r)
6999
+ Ae("listAllAttachments", r)
7001
7000
  ]
7002
7001
  }
7003
7002
  ),
7004
- /* @__PURE__ */ A(
7003
+ /* @__PURE__ */ V(
7005
7004
  "a",
7006
7005
  {
7007
7006
  style: { display: "block" },
@@ -7012,15 +7011,15 @@ const Vc = (e) => {
7012
7011
  children: [
7013
7012
  /* @__PURE__ */ n(hn, {}),
7014
7013
  " ",
7015
- Ve("addNewAttachment", r)
7014
+ Ae("addNewAttachment", r)
7016
7015
  ]
7017
7016
  }
7018
7017
  ),
7019
- i.length > 0 && /* @__PURE__ */ A(X, { children: [
7018
+ i.length > 0 && /* @__PURE__ */ V(X, { children: [
7020
7019
  /* @__PURE__ */ n("li", { className: "ant-dropdown-menu-item-divider" }),
7021
7020
  i.map((d) => {
7022
7021
  const u = d.link ? Xr : Un;
7023
- return /* @__PURE__ */ A(
7022
+ return /* @__PURE__ */ V(
7024
7023
  Te,
7025
7024
  {
7026
7025
  style: { paddingTop: 4, paddingBottom: 4 },
@@ -7031,7 +7030,7 @@ const Vc = (e) => {
7031
7030
  /* @__PURE__ */ n(ce, { flex: "25px", style: { textAlign: "center" }, children: (d.datas_fname || d.link) && /* @__PURE__ */ n(
7032
7031
  gt,
7033
7032
  {
7034
- title: d.link ? Ve("openAttachmentLink", r) : Ve("download", r),
7033
+ title: d.link ? Ae("openAttachmentLink", r) : Ae("download", r),
7035
7034
  children: /* @__PURE__ */ n(
7036
7035
  u,
7037
7036
  {
@@ -7043,7 +7042,7 @@ const Vc = (e) => {
7043
7042
  )
7044
7043
  }
7045
7044
  ) }),
7046
- /* @__PURE__ */ n(ce, { flex: "25px", style: { textAlign: "center" }, children: /* @__PURE__ */ n(gt, { title: Ve("openAttachment", r), children: /* @__PURE__ */ n(
7045
+ /* @__PURE__ */ n(ce, { flex: "25px", style: { textAlign: "center" }, children: /* @__PURE__ */ n(gt, { title: Ae("openAttachment", r), children: /* @__PURE__ */ n(
7047
7046
  Ut,
7048
7047
  {
7049
7048
  style: { cursor: "pointer" },
@@ -7115,9 +7114,9 @@ function Dc(e) {
7115
7114
  }, []);
7116
7115
  return fe(() => {
7117
7116
  h();
7118
- }, [h]), /* @__PURE__ */ A(X, { children: [
7117
+ }, [h]), /* @__PURE__ */ V(X, { children: [
7119
7118
  /* @__PURE__ */ n(
7120
- Vc,
7119
+ Ac,
7121
7120
  {
7122
7121
  numberOfAttachments: t.length,
7123
7122
  attachments: d,
@@ -7167,7 +7166,7 @@ function kc({ toolbar: e }) {
7167
7166
  formRef: T,
7168
7167
  setFormHasChanges: S,
7169
7168
  previousView: D,
7170
- setPreviousView: V,
7169
+ setPreviousView: A,
7171
7170
  goToResourceId: C
7172
7171
  } = H(at), { t: b, lang: I } = H(he), x = H(
7173
7172
  $t
@@ -7257,14 +7256,14 @@ function kc({ toolbar: e }) {
7257
7256
  }
7258
7257
  });
7259
7258
  }
7260
- return r ? /* @__PURE__ */ A(Ye, { wrap: !0, children: [
7261
- F && /* @__PURE__ */ A(X, { children: [
7259
+ return r ? /* @__PURE__ */ V(Ye, { wrap: !0, children: [
7260
+ F && /* @__PURE__ */ V(X, { children: [
7262
7261
  /* @__PURE__ */ n(ke, {}),
7263
7262
  _t(),
7264
7263
  _t()
7265
7264
  ] }),
7266
7265
  /* @__PURE__ */ n(
7267
- Ao,
7266
+ Vo,
7268
7267
  {
7269
7268
  disabled: a || F || h || p
7270
7269
  }
@@ -7334,14 +7333,14 @@ function kc({ toolbar: e }) {
7334
7333
  previousView: D,
7335
7334
  availableViews: t,
7336
7335
  onChangeView: (k) => {
7337
- V == null || V(r), S == null || S(!1), i == null || i(k);
7336
+ A == null || A(r), S == null || S(!1), i == null || i(k);
7338
7337
  },
7339
7338
  disabled: re,
7340
7339
  formHasChanges: s
7341
7340
  }
7342
7341
  ),
7343
7342
  _t(),
7344
- /* @__PURE__ */ A(Ye, { children: [
7343
+ /* @__PURE__ */ V(Ye, { children: [
7345
7344
  /* @__PURE__ */ n(
7346
7345
  Qe,
7347
7346
  {
@@ -7438,7 +7437,7 @@ function kc({ toolbar: e }) {
7438
7437
  return;
7439
7438
  const P = k.currentId;
7440
7439
  q({
7441
- ...Ar(m, P),
7440
+ ...Vr(m, P),
7442
7441
  initialViewType: "form"
7443
7442
  });
7444
7443
  },
@@ -7450,7 +7449,7 @@ function kc({ toolbar: e }) {
7450
7449
  return;
7451
7450
  const P = k.currentId;
7452
7451
  q({
7453
- ...Ar(m, P),
7452
+ ...Vr(m, P),
7454
7453
  initialViewType: "tree"
7455
7454
  });
7456
7455
  },
@@ -7476,7 +7475,7 @@ async function Ot({
7476
7475
  const t = await (e == null ? void 0 : e());
7477
7476
  return t != null && t.succeed ? { succeed: !0, currentId: t.id } : { succeed: !1, currentId: void 0 };
7478
7477
  }
7479
- function Ar(e, t) {
7478
+ function Vr(e, t) {
7480
7479
  return {
7481
7480
  model: "ir.attachment",
7482
7481
  domain: [
@@ -7500,9 +7499,9 @@ const { useToken: Ec } = Ke, ko = (e) => {
7500
7499
  const w = (F) => {
7501
7500
  i == null || i(F.target.value);
7502
7501
  };
7503
- return /* @__PURE__ */ A(Te, { gutter: 8, wrap: !1, align: "middle", children: [
7502
+ return /* @__PURE__ */ V(Te, { gutter: 8, wrap: !1, align: "middle", children: [
7504
7503
  l ? null : /* @__PURE__ */ n(ce, { flex: "32px", children: g ? /* @__PURE__ */ n(
7505
- Ae,
7504
+ Ve,
7506
7505
  {
7507
7506
  icon: /* @__PURE__ */ n(Mt, {}),
7508
7507
  onClick: () => {
@@ -7512,7 +7511,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
7512
7511
  tabIndex: -1
7513
7512
  }
7514
7513
  ) : /* @__PURE__ */ n(
7515
- Ae,
7514
+ Ve,
7516
7515
  {
7517
7516
  icon: /* @__PURE__ */ n(Qr, {}),
7518
7517
  onClick: () => {
@@ -7587,7 +7586,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
7587
7586
  var d;
7588
7587
  return c && ((d = a.current) == null ? void 0 : d.focus());
7589
7588
  },
7590
- children: /* @__PURE__ */ A(dt, { layout: "vertical", onFinish: l, autoComplete: "off", children: [
7589
+ children: /* @__PURE__ */ V(dt, { layout: "vertical", onFinish: l, autoComplete: "off", children: [
7591
7590
  /* @__PURE__ */ n(
7592
7591
  dt.Item,
7593
7592
  {
@@ -7602,9 +7601,9 @@ const { useToken: Ec } = Ke, ko = (e) => {
7602
7601
  children: /* @__PURE__ */ n(st, { style: { width: "100%" }, autoFocus: !0, ref: a })
7603
7602
  }
7604
7603
  ),
7605
- /* @__PURE__ */ n(Te, { align: "middle", justify: "end", children: /* @__PURE__ */ n(ce, { children: /* @__PURE__ */ A(Ye, { children: [
7604
+ /* @__PURE__ */ n(Te, { align: "middle", justify: "end", children: /* @__PURE__ */ n(ce, { children: /* @__PURE__ */ V(Ye, { children: [
7606
7605
  /* @__PURE__ */ n(
7607
- Ae,
7606
+ Ve,
7608
7607
  {
7609
7608
  icon: /* @__PURE__ */ n(Xt, {}),
7610
7609
  htmlType: "button",
@@ -7614,7 +7613,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
7614
7613
  }
7615
7614
  ),
7616
7615
  /* @__PURE__ */ n(
7617
- Ae,
7616
+ Ve,
7618
7617
  {
7619
7618
  loading: o,
7620
7619
  style: { marginLeft: 15 },
@@ -7632,7 +7631,7 @@ const { useToken: Ec } = Ke, ko = (e) => {
7632
7631
  }, { useToken: Lc } = Ke;
7633
7632
  function Eo(e) {
7634
7633
  const { badgeNumber: t = 0, ...r } = e, { token: i } = Lc();
7635
- return /* @__PURE__ */ A("div", { style: { position: "relative" }, children: [
7634
+ return /* @__PURE__ */ V("div", { style: { position: "relative" }, children: [
7636
7635
  t > 0 && /* @__PURE__ */ n("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ n(
7637
7636
  "span",
7638
7637
  {
@@ -7670,7 +7669,7 @@ function $c({ refreshGraph: e }) {
7670
7669
  previousView: d,
7671
7670
  setPreviousView: u
7672
7671
  } = H(at);
7673
- return /* @__PURE__ */ A(Ye, { wrap: !0, children: [
7672
+ return /* @__PURE__ */ V(Ye, { wrap: !0, children: [
7674
7673
  /* @__PURE__ */ n(
7675
7674
  Eo,
7676
7675
  {
@@ -7728,7 +7727,7 @@ function bn(e) {
7728
7727
  } = H(at), { t: u } = H(he), { token: f } = Bc();
7729
7728
  function m() {
7730
7729
  if ((o == null ? void 0 : o.type) === "form")
7731
- return s ? c === 0 ? /* @__PURE__ */ A(X, { children: [
7730
+ return s ? c === 0 ? /* @__PURE__ */ V(X, { children: [
7732
7731
  u("editingDocument"),
7733
7732
  " (id:",
7734
7733
  " ",
@@ -7740,7 +7739,7 @@ function bn(e) {
7740
7739
  }
7741
7740
  ),
7742
7741
  ")"
7743
- ] }) : /* @__PURE__ */ A(X, { children: [
7742
+ ] }) : /* @__PURE__ */ V(X, { children: [
7744
7743
  u("register"),
7745
7744
  " ",
7746
7745
  a === void 0 ? 1 : a + 1,
@@ -7760,7 +7759,7 @@ function bn(e) {
7760
7759
  ] }) : "";
7761
7760
  if ((o == null ? void 0 : o.type) === "tree" && d) {
7762
7761
  if (d.length === 1)
7763
- return /* @__PURE__ */ A(X, { children: [
7762
+ return /* @__PURE__ */ V(X, { children: [
7764
7763
  "1 ",
7765
7764
  u("selectedRegisters"),
7766
7765
  " - (id:",
@@ -7769,7 +7768,7 @@ function bn(e) {
7769
7768
  ")"
7770
7769
  ] });
7771
7770
  if (d.length > 1)
7772
- return /* @__PURE__ */ A(X, { children: [
7771
+ return /* @__PURE__ */ V(X, { children: [
7773
7772
  d.length,
7774
7773
  " ",
7775
7774
  u("selectedRegisters"),
@@ -7785,7 +7784,7 @@ function bn(e) {
7785
7784
  }
7786
7785
  return null;
7787
7786
  }
7788
- return /* @__PURE__ */ A(
7787
+ return /* @__PURE__ */ V(
7789
7788
  "div",
7790
7789
  {
7791
7790
  style: {
@@ -7794,7 +7793,7 @@ function bn(e) {
7794
7793
  zIndex: 3
7795
7794
  },
7796
7795
  children: [
7797
- /* @__PURE__ */ A(
7796
+ /* @__PURE__ */ V(
7798
7797
  Te,
7799
7798
  {
7800
7799
  className: "shadow-md",
@@ -7806,7 +7805,7 @@ function bn(e) {
7806
7805
  },
7807
7806
  align: "middle",
7808
7807
  children: [
7809
- /* @__PURE__ */ A(ce, { flex: 2, children: [
7808
+ /* @__PURE__ */ V(ce, { flex: 2, children: [
7810
7809
  /* @__PURE__ */ n(Hc, { level: 3, style: { marginBottom: 0 }, children: t || i }),
7811
7810
  m()
7812
7811
  ] }),
@@ -7836,7 +7835,7 @@ const Kc = (e) => {
7836
7835
  setTotalItems: T = void 0,
7837
7836
  setSearchTreeNameSearch: S = void 0,
7838
7837
  setTreeIsLoading: D = void 0,
7839
- limit: V,
7838
+ limit: A,
7840
7839
  setLimit: C,
7841
7840
  searchParams: b,
7842
7841
  searchValues: I,
@@ -7869,10 +7868,10 @@ const Kc = (e) => {
7869
7868
  domain: s,
7870
7869
  currentId: m,
7871
7870
  setActionViewTotalItems: T,
7872
- limit: V,
7871
+ limit: A,
7873
7872
  setLimit: C
7874
7873
  });
7875
- return !r || !t ? null : /* @__PURE__ */ A(X, { children: [
7874
+ return !r || !t ? null : /* @__PURE__ */ V(X, { children: [
7876
7875
  /* @__PURE__ */ n(bn, { title: t.name, children: /* @__PURE__ */ n(
7877
7876
  $c,
7878
7877
  {
@@ -7889,7 +7888,7 @@ const Kc = (e) => {
7889
7888
  a.search_fields,
7890
7889
  l.search_fields
7891
7890
  ]),
7892
- limit: V,
7891
+ limit: A,
7893
7892
  onClear: q,
7894
7893
  offset: K,
7895
7894
  isSearching: M,
@@ -7910,7 +7909,7 @@ const Kc = (e) => {
7910
7909
  model: i,
7911
7910
  context: o,
7912
7911
  domain: Gt(b || [], s),
7913
- limit: L ? V : void 0,
7912
+ limit: L ? A : void 0,
7914
7913
  manualIds: L ? g == null ? void 0 : g.map((Y) => Y.id) : void 0
7915
7914
  }
7916
7915
  )
@@ -7930,7 +7929,7 @@ const Kc = (e) => {
7930
7929
  setResults: f,
7931
7930
  setCurrentItemIndex: m
7932
7931
  } = e;
7933
- return t ? /* @__PURE__ */ A(X, { children: [
7932
+ return t ? /* @__PURE__ */ V(X, { children: [
7934
7933
  /* @__PURE__ */ n(bn, { children: /* @__PURE__ */ n(kc, { toolbar: a == null ? void 0 : a.toolbar }) }),
7935
7934
  /* @__PURE__ */ n(
7936
7935
  en,
@@ -7962,7 +7961,7 @@ function jc(e) {
7962
7961
  function d() {
7963
7962
  l(!1), s.setFieldsValue({ search: void 0 }), t(void 0);
7964
7963
  }
7965
- return /* @__PURE__ */ n(dt, { form: s, onFinish: c, autoComplete: "off", children: /* @__PURE__ */ A(Te, { align: "middle", justify: "end", children: [
7964
+ return /* @__PURE__ */ n(dt, { form: s, onFinish: c, autoComplete: "off", children: /* @__PURE__ */ V(Te, { align: "middle", justify: "end", children: [
7966
7965
  /* @__PURE__ */ n(ce, { children: /* @__PURE__ */ n(dt.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ n(
7967
7966
  st,
7968
7967
  {
@@ -7982,7 +7981,7 @@ function jc(e) {
7982
7981
  }
7983
7982
  ) }) }),
7984
7983
  /* @__PURE__ */ n(ce, { children: /* @__PURE__ */ n(
7985
- Ae,
7984
+ Ve,
7986
7985
  {
7987
7986
  htmlType: "submit",
7988
7987
  disabled: r,
@@ -8025,7 +8024,7 @@ function qc(e) {
8025
8024
  previousView: T,
8026
8025
  results: S,
8027
8026
  limit: D,
8028
- totalItems: V
8027
+ totalItems: A
8029
8028
  } = H(at), { parentContext: C = {}, treeExpandable: b, toolbar: I } = e, x = Gc(
8030
8029
  No.FEATURE_ADVANCED_EXPORT
8031
8030
  ), { t: O, lang: L } = H(he), N = H(
@@ -8089,13 +8088,13 @@ function qc(e) {
8089
8088
  }
8090
8089
  });
8091
8090
  }
8092
- return /* @__PURE__ */ A(Ye, { wrap: !0, children: [
8093
- F && /* @__PURE__ */ A(X, { children: [
8091
+ return /* @__PURE__ */ V(Ye, { wrap: !0, children: [
8092
+ F && /* @__PURE__ */ V(X, { children: [
8094
8093
  /* @__PURE__ */ n(ke, {}),
8095
8094
  bt(),
8096
8095
  bt()
8097
8096
  ] }),
8098
- b ? null : /* @__PURE__ */ A(X, { children: [
8097
+ b ? null : /* @__PURE__ */ V(X, { children: [
8099
8098
  /* @__PURE__ */ n(
8100
8099
  jc,
8101
8100
  {
@@ -8125,7 +8124,7 @@ function qc(e) {
8125
8124
  }
8126
8125
  ),
8127
8126
  bt(),
8128
- /* @__PURE__ */ n(Ao, { disabled: F }),
8127
+ /* @__PURE__ */ n(Vo, { disabled: F }),
8129
8128
  /* @__PURE__ */ n(
8130
8129
  Qe,
8131
8130
  {
@@ -8173,7 +8172,7 @@ function qc(e) {
8173
8172
  }
8174
8173
  }
8175
8174
  ),
8176
- !b && /* @__PURE__ */ A(X, { children: [
8175
+ !b && /* @__PURE__ */ V(X, { children: [
8177
8176
  bt(),
8178
8177
  /* @__PURE__ */ n(
8179
8178
  or,
@@ -8219,7 +8218,7 @@ function qc(e) {
8219
8218
  }
8220
8219
  }
8221
8220
  ),
8222
- x && /* @__PURE__ */ A(X, { children: [
8221
+ x && /* @__PURE__ */ V(X, { children: [
8223
8222
  bt(),
8224
8223
  /* @__PURE__ */ n(
8225
8224
  xt,
@@ -8227,7 +8226,7 @@ function qc(e) {
8227
8226
  icon: /* @__PURE__ */ n(
8228
8227
  Kr,
8229
8228
  {
8230
- component: () => /* @__PURE__ */ A(
8229
+ component: () => /* @__PURE__ */ V(
8231
8230
  "svg",
8232
8231
  {
8233
8232
  xmlns: "http://www.w3.org/2000/svg",
@@ -8293,7 +8292,7 @@ function qc(e) {
8293
8292
  g || []
8294
8293
  ),
8295
8294
  limit: D,
8296
- totalRegisters: V || 0,
8295
+ totalRegisters: A || 0,
8297
8296
  selectedRegistersToExport: o,
8298
8297
  visibleRegisters: (S == null ? void 0 : S.length) || 0,
8299
8298
  context: C
@@ -8323,7 +8322,7 @@ const zc = (e) => {
8323
8322
  } = e, { currentView: h, setPreviousView: p } = H(
8324
8323
  at
8325
8324
  );
8326
- return t ? /* @__PURE__ */ A(X, { children: [
8325
+ return t ? /* @__PURE__ */ V(X, { children: [
8327
8326
  /* @__PURE__ */ n(bn, { children: /* @__PURE__ */ n(
8328
8327
  qc,
8329
8328
  {
@@ -8375,7 +8374,7 @@ const zc = (e) => {
8375
8374
  };
8376
8375
  function Xc() {
8377
8376
  const { isLoading: e, dashboardRef: t, moveItemsEnabled: r, setMoveItemsEnabled: i } = H(ir), { t: o } = H(he);
8378
- return /* @__PURE__ */ A(Ye, { wrap: !0, children: [
8377
+ return /* @__PURE__ */ V(Ye, { wrap: !0, children: [
8379
8378
  /* @__PURE__ */ n(
8380
8379
  Qe,
8381
8380
  {
@@ -8428,7 +8427,7 @@ const Qc = (e) => {
8428
8427
  const { dashboardData: t, visible: r } = e, i = de(), o = H(
8429
8428
  ft
8430
8429
  ), { openShortcut: s } = o || {};
8431
- return !t || !r ? null : /* @__PURE__ */ A(
8430
+ return !t || !r ? null : /* @__PURE__ */ V(
8432
8431
  Jc,
8433
8432
  {
8434
8433
  dashboardRef: i,
@@ -8483,8 +8482,8 @@ function td(e, t) {
8483
8482
  action_type: h,
8484
8483
  treeExpandable: p = !1,
8485
8484
  limit: y
8486
- } = e, [w, F] = v(), [_, T] = v([]), [S, D] = v(!0), V = m || void 0, [C, b] = v(
8487
- V
8485
+ } = e, [w, F] = v(), [_, T] = v([]), [S, D] = v(!0), A = m || void 0, [C, b] = v(
8486
+ A
8488
8487
  ), [I, x] = v([]), [O, L] = v(), [N, q] = v([]), [M, $] = v(), [K, R] = v(0), [Y, te] = v(!1), [Z, re] = v(!1), [G, k] = v(), { t: P } = H(he) || {}, ie = de(), z = de(), pe = H(
8489
8488
  ft
8490
8489
  ), {
@@ -8593,7 +8592,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8593
8592
  };
8594
8593
  l({ tabKey: c, canWeClose: xe }), fe(() => {
8595
8594
  const j = _.find((Oe) => Oe.type === "tree"), Ce = _.find((Oe) => d.id ? Oe.type === d.type && Oe.view_id === d.id : Oe.type === d.type);
8596
- Ue(Ce || j), m ? U == null || U(V) : (Ee(void 0), L(void 0)), Ie();
8595
+ Ue(Ce || j), m ? U == null || U(A) : (Ee(void 0), L(void 0)), Ie();
8597
8596
  }, [i, s, m]), fe(() => {
8598
8597
  ve === c && (U == null || U(C), ee == null || ee(w));
8599
8598
  }, [ge, ve]);
@@ -8723,7 +8722,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8723
8722
  Ue(j);
8724
8723
  }
8725
8724
  }
8726
- return S ? /* @__PURE__ */ n(ke, {}) : w ? /* @__PURE__ */ A(
8725
+ return S ? /* @__PURE__ */ n(ke, {}) : w ? /* @__PURE__ */ V(
8727
8726
  Ia,
8728
8727
  {
8729
8728
  title: a,
@@ -8851,7 +8850,7 @@ const rd = ns(rs), od = (e) => {
8851
8850
  );
8852
8851
  }, { useToken: id } = Ke, { Text: sd } = zt, ad = (e) => {
8853
8852
  const { title: t, children: r, action: i, openAction: o } = e, { token: s } = id();
8854
- return /* @__PURE__ */ A(
8853
+ return /* @__PURE__ */ V(
8855
8854
  "div",
8856
8855
  {
8857
8856
  className: "shadow-md",
@@ -8865,7 +8864,7 @@ const rd = ns(rs), od = (e) => {
8865
8864
  borderRadius: s.borderRadius
8866
8865
  },
8867
8866
  children: [
8868
- /* @__PURE__ */ A(
8867
+ /* @__PURE__ */ V(
8869
8868
  Te,
8870
8869
  {
8871
8870
  align: "middle",
@@ -8915,10 +8914,10 @@ function cd(e) {
8915
8914
  domain: s = [],
8916
8915
  visible: a = !0,
8917
8916
  parentContext: l = {}
8918
- } = e, [c, d] = v(!1), [u, f] = v(!1), [m, g] = v(), [h, p] = v(), [y, w] = v(), [F, _] = v(1), [T, S] = v(0), D = de(ld), V = de([]), [C, b] = v(0), [I, x] = v([]), [O, L] = v(void 0), [N, q] = v(), [M, $] = v(), [K, R] = v(), [Y, te] = v(!1), Z = de([]), re = (U) => {
8917
+ } = e, [c, d] = v(!1), [u, f] = v(!1), [m, g] = v(), [h, p] = v(), [y, w] = v(), [F, _] = v(1), [T, S] = v(0), D = de(ld), A = de([]), [C, b] = v(0), [I, x] = v([]), [O, L] = v(void 0), [N, q] = v(), [M, $] = v(), [K, R] = v(), [Y, te] = v(!1), Z = de([]), re = (U) => {
8919
8918
  te(!0), _(U), S((U - 1) * D.current);
8920
8919
  }, G = async () => {
8921
- const U = Z.current.length > 0 ? Z.current : s, ge = Gt(V.current, U), { colors: ve } = At(h), { totalItems: We, results: Pe, attrsEvaluated: Ee } = await E.getHandler().searchForTree({
8920
+ const U = Z.current.length > 0 ? Z.current : s, ge = Gt(A.current, U), { colors: ve } = Vt(h), { totalItems: We, results: Pe, attrsEvaluated: Ee } = await E.getHandler().searchForTree({
8922
8921
  params: ge,
8923
8922
  limit: D.current,
8924
8923
  offset: T,
@@ -8987,7 +8986,7 @@ function cd(e) {
8987
8986
  model: m,
8988
8987
  treeView: h
8989
8988
  });
8990
- }, ee = () => !h || !y ? null : /* @__PURE__ */ A("div", { style: { overflowY: "scroll" }, children: [
8989
+ }, ee = () => !h || !y ? null : /* @__PURE__ */ V("div", { style: { overflowY: "scroll" }, children: [
8991
8990
  M && /* @__PURE__ */ n(nt, { className: "mt-10", message: M, type: "error", banner: !0 }),
8992
8991
  /* @__PURE__ */ n(
8993
8992
  nn,
@@ -9032,7 +9031,7 @@ const dd = (e) => {
9032
9031
  s.length > 0 && i(s[0].id);
9033
9032
  }
9034
9033
  return /* @__PURE__ */ n("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ n(en, { ...e, model: t, id: r, readOnly: !0 }) });
9035
- }, Vn = "line_ids";
9034
+ }, An = "line_ids";
9036
9035
  function ud(e, t) {
9037
9036
  const { model: r, context: i = {}, id: o, configAction: s } = e, [a, l] = v([]), [c, d] = v(!1), [u, f] = v(), {
9038
9037
  setIsLoading: m,
@@ -9045,12 +9044,12 @@ function ud(e, t) {
9045
9044
  refresh: () => {
9046
9045
  w();
9047
9046
  },
9048
- configDashboard: V
9047
+ configDashboard: A
9049
9048
  }));
9050
9049
  async function w() {
9051
9050
  d(!0), m(!0), f(void 0);
9052
9051
  try {
9053
- const C = await F(), b = await T(C), I = C.fields[Vn].relation, x = b[Vn].items;
9052
+ const C = await F(), b = await T(C), I = C.fields[An].relation, x = b[An].items;
9054
9053
  y.current = C.fields;
9055
9054
  const O = await _({
9056
9055
  items: x,
@@ -9153,12 +9152,12 @@ function ud(e, t) {
9153
9152
  await E.getHandler().update({
9154
9153
  model: r,
9155
9154
  id: o,
9156
- values: { [Vn]: O },
9155
+ values: { [An]: O },
9157
9156
  fields: y.current,
9158
9157
  context: i
9159
9158
  });
9160
9159
  }
9161
- async function V() {
9160
+ async function A() {
9162
9161
  g(s);
9163
9162
  }
9164
9163
  return u ? (console.log(u), /* @__PURE__ */ n(nt, { className: "mt-10 mb-20", message: u, type: "error", banner: !0 })) : c ? /* @__PURE__ */ n(lt, {}) : /* @__PURE__ */ n(od, { onPositionItemsChanged: D, children: a.map((C, b) => {
@@ -9335,10 +9334,10 @@ const fd = yt(ud), md = (e) => {
9335
9334
  return /* @__PURE__ */ n(nt, { className: "mt-10", message: c, type: "error", banner: !0 });
9336
9335
  }
9337
9336
  const S = () => {
9338
- V(a.map((C) => C.value));
9337
+ A(a.map((C) => C.value));
9339
9338
  }, D = () => {
9340
- V([]);
9341
- }, V = (C) => {
9339
+ A([]);
9340
+ }, A = (C) => {
9342
9341
  const b = o.map((x) => C.includes(x.id) ? x.operation == "pendingRemove" ? {
9343
9342
  ...x,
9344
9343
  operation: "original"
@@ -9347,27 +9346,27 @@ const fd = yt(ud), md = (e) => {
9347
9346
  b.push({ id: x, operation: "pendingLink" });
9348
9347
  }), _(b);
9349
9348
  };
9350
- return u && a.length === 0 ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(X, { children: /* @__PURE__ */ A("div", { className: "flex flex-row", children: [
9349
+ return u && a.length === 0 ? /* @__PURE__ */ n(ke, {}) : /* @__PURE__ */ n(X, { children: /* @__PURE__ */ V("div", { className: "flex flex-row", children: [
9351
9350
  /* @__PURE__ */ n(
9352
9351
  jt.Group,
9353
9352
  {
9354
9353
  value: a.length ? s : [],
9355
9354
  disabled: h,
9356
- onChange: V,
9355
+ onChange: A,
9357
9356
  style: { width: "100%" },
9358
9357
  children: /* @__PURE__ */ n(Te, { children: a.map((C) => /* @__PURE__ */ n(ce, { span: Math.floor(24 / y), children: /* @__PURE__ */ n(jt, { value: C.value, children: C.label }) })) })
9359
9358
  }
9360
9359
  ),
9361
- !h && /* @__PURE__ */ A(Ye, { children: [
9360
+ !h && /* @__PURE__ */ V(Ye, { children: [
9362
9361
  /* @__PURE__ */ n(
9363
- Ae,
9362
+ Ve,
9364
9363
  {
9365
9364
  onClick: S,
9366
9365
  disabled: s.length == a.length,
9367
9366
  children: "Check all"
9368
9367
  }
9369
9368
  ),
9370
- /* @__PURE__ */ n(Ae, { onClick: D, disabled: s.length === 0, children: "Uncheck all" })
9369
+ /* @__PURE__ */ n(Ve, { onClick: D, disabled: s.length === 0, children: "Uncheck all" })
9371
9370
  ] })
9372
9371
  ] }) });
9373
9372
  }, pd = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(gd, { ...e }) }), gd = (e) => {
@@ -9438,20 +9437,20 @@ const fd = yt(ud), md = (e) => {
9438
9437
  function _d({ text: e }) {
9439
9438
  const t = e.split(`
9440
9439
  `);
9441
- return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */ A(ei, { children: [
9440
+ return /* @__PURE__ */ n("div", { children: t.map((r, i) => /* @__PURE__ */ V(ei, { children: [
9442
9441
  r,
9443
9442
  i !== t.length - 1 && /* @__PURE__ */ n("br", {})
9444
9443
  ] }, i)) });
9445
9444
  }
9446
9445
  const Od = (e) => {
9447
9446
  const { data: t, style: r } = e, { t: i } = H(he);
9448
- return /* @__PURE__ */ A(Bn, { style: { ...r, textAlign: "start" }, children: [
9447
+ return /* @__PURE__ */ V(Bn, { style: { ...r, textAlign: "start" }, children: [
9449
9448
  /* @__PURE__ */ n(
9450
9449
  Td,
9451
9450
  {
9452
9451
  avatar: /* @__PURE__ */ n(Fd, { email: t.email, theme: "mp" }),
9453
9452
  title: t.author,
9454
- description: /* @__PURE__ */ A(Ye, { direction: "horizontal", children: [
9453
+ description: /* @__PURE__ */ V(Ye, { direction: "horizontal", children: [
9455
9454
  /* @__PURE__ */ n("span", { title: t.date, children: rt(t.date).fromNow() }),
9456
9455
  t.isAuthor && /* @__PURE__ */ n(kr, { color: "blue", children: i("author") })
9457
9456
  ] }),
@@ -9474,16 +9473,16 @@ const Od = (e) => {
9474
9473
  children: /* @__PURE__ */ n(Od, { data: i.event })
9475
9474
  };
9476
9475
  });
9477
- return /* @__PURE__ */ n(An, { mode: "alternate", items: r });
9478
- }, Vd = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(Rd, {}) }), { Content: Ad } = li, { Title: Dd } = zt;
9476
+ return /* @__PURE__ */ n(Vn, { mode: "alternate", items: r });
9477
+ }, Ad = (e) => /* @__PURE__ */ n(we, { ...e, children: /* @__PURE__ */ n(Rd, {}) }), { Content: Vd } = li, { Title: Dd } = zt;
9479
9478
  function kd() {
9480
9479
  const { t: e } = H(he);
9481
- return /* @__PURE__ */ n(Ad, { className: "m-5 select-none", children: /* @__PURE__ */ n(Dd, { level: 5, children: e("welcome") }) });
9480
+ return /* @__PURE__ */ n(Vd, { className: "m-5 select-none", children: /* @__PURE__ */ n(Dd, { level: 5, children: e("welcome") }) });
9482
9481
  }
9483
9482
  function Ed(e, t) {
9484
9483
  const { children: r, globalValues: i = {}, rootContext: o = {}, lang: s } = e, [a, l] = v("welcome"), [c, d] = v([
9485
9484
  {
9486
- title: Ve("welcome", s),
9485
+ title: Ae("welcome", s),
9487
9486
  key: "welcome",
9488
9487
  closable: !0,
9489
9488
  content: /* @__PURE__ */ n(kd, {})
@@ -9510,7 +9509,7 @@ function Ed(e, t) {
9510
9509
  action: T,
9511
9510
  values: S,
9512
9511
  forced_values: D,
9513
- initialViewType: V,
9512
+ initialViewType: A,
9514
9513
  res_id: C,
9515
9514
  domain: b = []
9516
9515
  }) {
@@ -9555,9 +9554,9 @@ function Ed(e, t) {
9555
9554
  }
9556
9555
  }
9557
9556
  let G;
9558
- if (V) {
9557
+ if (A) {
9559
9558
  const [k, P] = re.find(
9560
- ([ie, z]) => z === V
9559
+ ([ie, z]) => z === A
9561
9560
  );
9562
9561
  G = { id: k, type: P };
9563
9562
  } else {
@@ -9585,7 +9584,7 @@ function Ed(e, t) {
9585
9584
  title: T,
9586
9585
  content: S,
9587
9586
  key: D,
9588
- action: V
9587
+ action: A
9589
9588
  }) {
9590
9589
  let C = [...c];
9591
9590
  c.length === 1 && c[0].key === "welcome" && (C = [...c.filter((b) => b.key !== "welcome")]), d([
@@ -9595,7 +9594,7 @@ function Ed(e, t) {
9595
9594
  key: D,
9596
9595
  closable: !0,
9597
9596
  content: S,
9598
- action: V
9597
+ action: A
9599
9598
  }
9600
9599
  ]), l(D);
9601
9600
  }
@@ -9603,7 +9602,7 @@ function Ed(e, t) {
9603
9602
  relateData: T,
9604
9603
  fields: S,
9605
9604
  values: D,
9606
- action_id: V,
9605
+ action_id: A,
9607
9606
  action_type: C
9608
9607
  }) {
9609
9608
  const {
@@ -9635,13 +9634,13 @@ function Ed(e, t) {
9635
9634
  domain: Y,
9636
9635
  title: N,
9637
9636
  initialView: K,
9638
- action_id: V,
9637
+ action_id: A,
9639
9638
  action_type: C,
9640
9639
  limit: q
9641
9640
  });
9642
9641
  }
9643
9642
  async function w(T) {
9644
- const { action_id: S, action_type: D, res_id: V, view_id: C } = T, b = `${D},${S}`, I = await E.getHandler().getActionData({
9643
+ const { action_id: S, action_type: D, res_id: A, view_id: C } = T, b = `${D},${S}`, I = await E.getHandler().getActionData({
9645
9644
  action: b,
9646
9645
  context: o
9647
9646
  }), x = Ct({
@@ -9693,7 +9692,7 @@ function Ed(e, t) {
9693
9692
  initialView: re,
9694
9693
  action_id: S,
9695
9694
  action_type: D,
9696
- res_id: V,
9695
+ res_id: A,
9697
9696
  treeExpandable: R,
9698
9697
  limit: K
9699
9698
  });
@@ -9702,7 +9701,7 @@ function Ed(e, t) {
9702
9701
  model: T,
9703
9702
  values: S,
9704
9703
  forced_values: D,
9705
- initialViewType: V,
9704
+ initialViewType: A,
9706
9705
  res_id: C,
9707
9706
  domain: b
9708
9707
  }) {
@@ -9711,7 +9710,7 @@ function Ed(e, t) {
9711
9710
  action: I,
9712
9711
  values: S,
9713
9712
  forced_values: D,
9714
- initialViewType: V,
9713
+ initialViewType: A,
9715
9714
  res_id: C,
9716
9715
  domain: b
9717
9716
  });
@@ -9720,7 +9719,7 @@ function Ed(e, t) {
9720
9719
  domain: T,
9721
9720
  context: S,
9722
9721
  model: D,
9723
- views: V,
9722
+ views: A,
9724
9723
  title: C,
9725
9724
  target: b,
9726
9725
  initialView: I,
@@ -9767,7 +9766,7 @@ function Ed(e, t) {
9767
9766
  action_type: O,
9768
9767
  tabKey: K,
9769
9768
  title: C,
9770
- views: V,
9769
+ views: A,
9771
9770
  model: D,
9772
9771
  context: { ...o, ...S },
9773
9772
  domain: T,
@@ -9816,7 +9815,7 @@ function Ed(e, t) {
9816
9815
  const Fu = yt(Ed), { useToken: Nd } = Ke;
9817
9816
  function Md(e) {
9818
9817
  const { label: t, onClose: r, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = Nd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
9819
- return /* @__PURE__ */ A(
9818
+ return /* @__PURE__ */ V(
9820
9819
  "div",
9821
9820
  {
9822
9821
  onClick: () => {
@@ -9930,7 +9929,7 @@ const { useToken: $d } = Ke, Ru = (e) => {
9930
9929
  activeKey: T,
9931
9930
  currentView: S,
9932
9931
  currentId: D,
9933
- openDefaultActionForModel: V
9932
+ openDefaultActionForModel: A
9934
9933
  } = w || {};
9935
9934
  fe(() => {
9936
9935
  C();
@@ -9975,10 +9974,10 @@ const { useToken: $d } = Ke, Ru = (e) => {
9975
9974
  te !== !1 && h(te), a(te !== !1);
9976
9975
  }
9977
9976
  async function O() {
9978
- c(!1), V == null || V({ model: "ir.ui.view_sc" });
9977
+ c(!1), A == null || A({ model: "ir.ui.view_sc" });
9979
9978
  }
9980
- const L = /* @__PURE__ */ A(He, { onClick: b, children: [
9981
- /* @__PURE__ */ A("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
9979
+ const L = /* @__PURE__ */ V(He, { onClick: b, children: [
9980
+ /* @__PURE__ */ V("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
9982
9981
  /* @__PURE__ */ n("div", { style: { paddingLeft: 15, color: "#ccc" }, children: p == null ? void 0 : p("favorites").toUpperCase() }),
9983
9982
  /* @__PURE__ */ n("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ n(gt, { title: p == null ? void 0 : p("edit_favorites"), children: /* @__PURE__ */ n(
9984
9983
  Qr,
@@ -9998,7 +9997,7 @@ const { useToken: $d } = Ke, Ru = (e) => {
9998
9997
  ) }, M.id)) }) : /* @__PURE__ */ n("div", { style: { width: 300, padding: 5, paddingLeft: 15 }, children: p == null ? void 0 : p("no_favorites") })
9999
9998
  ] });
10000
9999
  function N({ title: M, type: $ }) {
10001
- return /* @__PURE__ */ A(Te, { wrap: !1, children: [
10000
+ return /* @__PURE__ */ V(Te, { wrap: !1, children: [
10002
10001
  /* @__PURE__ */ n(ce, { flex: "none", style: { paddingRight: 20 }, children: $ === "tree" ? /* @__PURE__ */ n(Xn, {}) : /* @__PURE__ */ n(Ut, {}) }),
10003
10002
  /* @__PURE__ */ n(ce, { flex: "auto", children: M })
10004
10003
  ] });
@@ -10024,9 +10023,9 @@ const { useToken: $d } = Ke, Ru = (e) => {
10024
10023
  }
10025
10024
  await C(), a(!s);
10026
10025
  }
10027
- return /* @__PURE__ */ A(X, { children: [
10026
+ return /* @__PURE__ */ V(X, { children: [
10028
10027
  /* @__PURE__ */ n(
10029
- Ae,
10028
+ Ve,
10030
10029
  {
10031
10030
  type: s ? "primary" : "default",
10032
10031
  icon: s ? /* @__PURE__ */ n(Yr, { style: { color: "white" } }) : /* @__PURE__ */ n(Gr, {}),
@@ -10045,7 +10044,7 @@ const { useToken: $d } = Ke, Ru = (e) => {
10045
10044
  onVisibleChange: I,
10046
10045
  open: l,
10047
10046
  children: /* @__PURE__ */ n(
10048
- Ae,
10047
+ Ve,
10049
10048
  {
10050
10049
  style: {
10051
10050
  width: 25,
@@ -10064,12 +10063,12 @@ export {
10064
10063
  kc as ActionBar,
10065
10064
  Mo as ActionView,
10066
10065
  Ic as Binary,
10067
- As as Boolean,
10066
+ Vs as Boolean,
10068
10067
  ro as Button,
10069
10068
  gs as ButtonGroup,
10070
10069
  so as Char,
10071
10070
  Sd as CodeEditor,
10072
- Vd as CommentsTimelineField,
10071
+ Ad as CommentsTimelineField,
10073
10072
  Uc as ConfigContext,
10074
10073
  E as ConnectionProvider,
10075
10074
  Ra as ContentRootProvider,