@gisce/react-ooui 2.18.0-alpha.3 → 2.18.0-alpha.5

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.
@@ -2,20 +2,20 @@ var Oi = Object.defineProperty;
2
2
  var Ri = (e, t, n) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Tr = (e, t, n) => (Ri(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsxs as k, jsx as i, Fragment as se } from "react/jsx-runtime";
5
- import it, { useContext as X, useState as b, useEffect as de, useRef as ee, memo as zn, useMemo as Ie, useCallback as Q, createContext as Fi, forwardRef as gt, useImperativeHandle as yt, createElement as Vi, Fragment as Xr } from "react";
6
- import { Tooltip as bt, theme as je, Typography as Lt, Form as ut, Row as De, Col as ge, Modal as et, Button as Pe, Dropdown as _i, Menu as Ir, Spin as Be, Divider as vn, Space as ze, Input as ot, Select as Rt, Checkbox as Jt, Alert as Xe, Timeline as Pn, Statistic as Ai, Card as Jn, Tag as Zr, message as Dn, DatePicker as Qn, TimePicker as Di, InputNumber as eo, Progress as Ei, Avatar as to, Pagination as ki, Badge as no, Tabs as ro, Radio as Or, Switch as Mi, Steps as Rr, Layout as Ni } from "antd";
7
- import { Label as $t, Field as Ln, Tree as oo, Reference as Pi, Selection as Xn, Many2one as io, Boolean as Li, parseContext as Tt, graphProcessor as so, graphFieldUtils as $i, parseGraph as ao, Container as Bi, Form as co, Integer as $n, SearchFieldTypes as vt, SearchFilter as Hi, parseContextFields as ji, parseDomainFields as Ki, transformDomainForChildWidget as Zn } from "@gisce/ooui";
5
+ import it, { useContext as X, useState as b, useEffect as de, useRef as ee, memo as Jn, useMemo as Ie, useCallback as Q, createContext as Fi, forwardRef as gt, useImperativeHandle as yt, createElement as Vi, Fragment as Xr } from "react";
6
+ import { Tooltip as bt, theme as je, Typography as Lt, Form as ut, Row as De, Col as ge, Modal as et, Button as Pe, Dropdown as _i, Menu as Ir, Spin as Be, Divider as vn, Space as ze, Input as ot, Select as Rt, Checkbox as Qt, Alert as Xe, Timeline as Ln, Statistic as Ai, Card as Qn, Tag as Zr, message as En, DatePicker as Xn, TimePicker as Di, InputNumber as eo, Progress as Ei, Avatar as to, Pagination as ki, Badge as no, Tabs as ro, Radio as Or, Switch as Mi, Steps as Rr, Layout as Ni } from "antd";
7
+ import { Label as $t, Field as $n, Tree as oo, Reference as Pi, Selection as Zn, Many2one as io, Boolean as Li, parseContext as Tt, graphProcessor as so, graphFieldUtils as $i, parseGraph as ao, Container as Bi, Form as co, Integer as Bn, SearchFieldTypes as vt, SearchFilter as Hi, parseContextFields as ji, parseDomainFields as Wi, transformDomainForChildWidget as er } from "@gisce/ooui";
8
8
  import * as Fr from "@ant-design/icons";
9
- import lo, { QuestionCircleOutlined as uo, ExclamationCircleOutlined as Ct, LoadingOutlined as ft, DownOutlined as bn, WarningOutlined as fo, CloseOutlined as nn, CheckOutlined as Cn, TranslationOutlined as mo, FolderOpenOutlined as er, DownloadOutlined as tr, ClearOutlined as nr, ExportOutlined as Wi, StarFilled as Ui, StarOutlined as Gi, UpOutlined as Yi, SearchOutlined as rr, ThunderboltOutlined as or, PrinterOutlined as ir, EnterOutlined as sr, PlusSquareOutlined as qi, MinusSquareOutlined as zi, FileAddOutlined as Sn, AlignLeftOutlined as Ji, ApiOutlined as Qi, DeleteOutlined as ar, LeftOutlined as po, RightOutlined as ho, EyeOutlined as Xi, FormOutlined as Qt, TableOutlined as cr, AreaChartOutlined as Zi, CalendarOutlined as es, LinkOutlined as Vr, SaveOutlined as ts, CopyOutlined as lr, InfoCircleOutlined as go, ReloadOutlined as xn, EditOutlined as yo, PlusOutlined as ns, FilterOutlined as wo, CloseCircleFilled as rs, BorderOuterOutlined as os, SettingOutlined as is } from "@ant-design/icons";
10
- import { Interweave as Xt } from "interweave";
9
+ import lo, { QuestionCircleOutlined as uo, ExclamationCircleOutlined as Ct, LoadingOutlined as ft, DownOutlined as bn, WarningOutlined as fo, CloseOutlined as rn, CheckOutlined as Cn, TranslationOutlined as mo, FolderOpenOutlined as tr, DownloadOutlined as nr, ClearOutlined as rr, ExportOutlined as Ki, StarFilled as Ui, StarOutlined as Gi, UpOutlined as Yi, SearchOutlined as or, ThunderboltOutlined as ir, PrinterOutlined as sr, EnterOutlined as ar, PlusSquareOutlined as qi, MinusSquareOutlined as zi, FileAddOutlined as Sn, AlignLeftOutlined as Ji, ApiOutlined as Qi, DeleteOutlined as cr, LeftOutlined as po, RightOutlined as ho, EyeOutlined as Xi, FormOutlined as Xt, TableOutlined as lr, AreaChartOutlined as Zi, CalendarOutlined as es, LinkOutlined as Vr, SaveOutlined as ts, CopyOutlined as dr, InfoCircleOutlined as go, ReloadOutlined as xn, EditOutlined as yo, PlusOutlined as ns, FilterOutlined as wo, CloseCircleFilled as rs, BorderOuterOutlined as os, SettingOutlined as is } from "@ant-design/icons";
10
+ import { Interweave as Zt } from "interweave";
11
11
  import { useLocale as he, FormigaConfigProvider as ss, mergeStrings as as, Many2OneSuffix as cs, Many2OneSuffixModal as _r, FieldSet as ls, ExportModal as ds, Dropdown as vo, DropdownButton as kt, HTMLPreview as us, FavouriteButton as fs } from "@gisce/react-formiga-components";
12
12
  import * as Ar from "@tabler/icons-react";
13
13
  import ms from "antd/lib/input/TextArea";
14
14
  import Bt from "styled-components";
15
- import dr from "react-measure";
15
+ import ur from "react-measure";
16
16
  import ps from "lodash/debounce";
17
- import { nanoid as ur } from "nanoid";
18
- import Bn from "antd/lib/typography/Title";
17
+ import { nanoid as fr } from "nanoid";
18
+ import Hn from "antd/lib/typography/Title";
19
19
  import wt from "use-deep-compare-effect";
20
20
  import { Line as hs, Column as gs, Pie as ys } from "@ant-design/plots";
21
21
  import tt from "dayjs";
@@ -45,16 +45,16 @@ import Ps from "@monaco-editor/react";
45
45
  import Ls from "md5";
46
46
  import { WidthProvider as $s, Responsive as Bs } from "react-grid-layout";
47
47
  import "react-grid-layout/css/styles.css";
48
- const { Text: Hs, Title: js } = Lt, { useToken: Ks } = je, Ws = {
48
+ const { Text: Hs, Title: js } = Lt, { useToken: Ws } = je, Ks = {
49
49
  left: "justify-start",
50
50
  center: "justify-center",
51
51
  right: "justify-end"
52
52
  }, Tn = (e) => {
53
- const { ooui: t, align: n, responsiveBehaviour: o } = e, { label: r, tooltip: s, fieldForLabel: a, labelSize: c, labelType: l } = t, f = a !== null && r.length > 1 ? r + " :" : r, p = n || (a ? o ? "left" : "right" : "left"), { token: h } = Ks(), m = c === void 0 ? Hs : js;
53
+ const { ooui: t, align: n, responsiveBehaviour: o } = e, { label: r, tooltip: s, fieldForLabel: a, labelSize: c, labelType: l } = t, f = a !== null && r.length > 1 ? r + " :" : r, p = n || (a ? o ? "left" : "right" : "left"), { token: h } = Ws(), m = c === void 0 ? Hs : js;
54
54
  return /* @__PURE__ */ k(
55
55
  "div",
56
56
  {
57
- className: `flex flex-row items-center pb-1 pt-1 ${Ws[p]}`,
57
+ className: `flex flex-row items-center pb-1 pt-1 ${Ks[p]}`,
58
58
  children: [
59
59
  s && /* @__PURE__ */ i(bt, { title: s, children: /* @__PURE__ */ i(
60
60
  uo,
@@ -65,7 +65,7 @@ const { Text: Hs, Title: js } = Lt, { useToken: Ks } = je, Ws = {
65
65
  }
66
66
  }
67
67
  ) }),
68
- /* @__PURE__ */ i("span", { className: "pr-2", children: /* @__PURE__ */ i(m, { level: c, type: l, children: /* @__PURE__ */ i(Xt, { content: f }) }) })
68
+ /* @__PURE__ */ i("span", { className: "pr-2", children: /* @__PURE__ */ i(m, { level: c, type: l, children: /* @__PURE__ */ i(Zt, { content: f }) }) })
69
69
  ]
70
70
  }
71
71
  );
@@ -121,7 +121,7 @@ function be({
121
121
  m()
122
122
  ] }))();
123
123
  }
124
- const { confirm: Us } = et, rn = ({
124
+ const { confirm: Us } = et, on = ({
125
125
  onOk: e,
126
126
  confirmMessage: t,
127
127
  okText: n,
@@ -319,7 +319,7 @@ const Co = (e) => {
319
319
  }
320
320
  function g() {
321
321
  if (a) {
322
- rn({
322
+ on({
323
323
  confirmMessage: a,
324
324
  t: m,
325
325
  onOk: () => {
@@ -376,7 +376,7 @@ const Co = (e) => {
376
376
  }
377
377
  function O() {
378
378
  if (l) {
379
- rn({
379
+ on({
380
380
  confirmMessage: l,
381
381
  t: w,
382
382
  onOk: () => {
@@ -390,7 +390,7 @@ const Co = (e) => {
390
390
  if (t.buttons.length === 0)
391
391
  return null;
392
392
  if (t.buttons.length > 1)
393
- return /* @__PURE__ */ i(be, { ooui: new Ln({ defaultButton: n }), children: /* @__PURE__ */ k(
393
+ return /* @__PURE__ */ i(be, { ooui: new $n({ defaultButton: n }), children: /* @__PURE__ */ k(
394
394
  _i.Button,
395
395
  {
396
396
  disabled: !a || p,
@@ -433,7 +433,7 @@ const Co = (e) => {
433
433
  }
434
434
  function S() {
435
435
  if (f) {
436
- rn({
436
+ on({
437
437
  confirmMessage: f,
438
438
  t,
439
439
  onOk: () => {
@@ -611,7 +611,7 @@ const So = (e) => {
611
611
  /* @__PURE__ */ i(
612
612
  Pe,
613
613
  {
614
- icon: /* @__PURE__ */ i(nn, {}),
614
+ icon: /* @__PURE__ */ i(rn, {}),
615
615
  onClick: n,
616
616
  disabled: h,
617
617
  children: l("cancel")
@@ -812,8 +812,8 @@ const { info: Zs } = et, ht = (e) => {
812
812
  return /* @__PURE__ */ i(be, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(ua, { id: n, readOnly: o, required: r }) });
813
813
  }, ua = (e) => {
814
814
  const { required: t, readOnly: n, ...o } = e;
815
- return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? fa : Jt, { disabled: n, ...o }) });
816
- }, fa = Bt(Jt)`
815
+ return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? fa : Qt, { disabled: n, ...o }) });
816
+ }, fa = Bt(Qt)`
817
817
  .ant-checkbox-inner {
818
818
  background-color: ${Mr.colorPrimaryBg};
819
819
  }
@@ -891,7 +891,7 @@ const pa = (e) => {
891
891
  Qe,
892
892
  {
893
893
  tooltip: a("uploadNewImage"),
894
- icon: /* @__PURE__ */ i(er, {}),
894
+ icon: /* @__PURE__ */ i(tr, {}),
895
895
  disabled: r,
896
896
  onClick: () => {
897
897
  s.current.click();
@@ -904,7 +904,7 @@ const pa = (e) => {
904
904
  tooltip: a("download"),
905
905
  disabled: !n,
906
906
  onClick: l,
907
- icon: /* @__PURE__ */ i(tr, {})
907
+ icon: /* @__PURE__ */ i(nr, {})
908
908
  }
909
909
  ),
910
910
  /* @__PURE__ */ i(
@@ -913,7 +913,7 @@ const pa = (e) => {
913
913
  tooltip: a("clear"),
914
914
  disabled: r || !n,
915
915
  onClick: f,
916
- icon: /* @__PURE__ */ i(nr, {})
916
+ icon: /* @__PURE__ */ i(rr, {})
917
917
  }
918
918
  )
919
919
  ] }) })
@@ -968,14 +968,14 @@ const Fo = (e, t, n) => e.columns.map((r) => {
968
968
  return s === "many2one" && (d = ((h = u[a]) == null ? void 0 : h.value) || "", p = ((m = f[a]) == null ? void 0 : m.value) || ""), d < p ? -1 : d > p ? 1 : 0;
969
969
  }
970
970
  };
971
- }), fr = (e, t) => t.map((o) => {
971
+ }), mr = (e, t) => t.map((o) => {
972
972
  const r = {};
973
973
  return Object.keys(o).forEach((s) => {
974
974
  if (s === "id")
975
975
  r[s] = o[s];
976
976
  else {
977
977
  const a = e.findById(s);
978
- a instanceof Pi || a instanceof Xn ? r[s] = o[s] : a instanceof io ? r[s] = o[s] && Array.isArray(o[s]) && o[s].length === 2 && {
978
+ a instanceof Pi || a instanceof Zn ? r[s] = o[s] : a instanceof io ? r[s] = o[s] && Array.isArray(o[s]) && o[s].length === 2 && {
979
979
  model: a.relation,
980
980
  id: o[s][0],
981
981
  value: o[s][1]
@@ -983,10 +983,10 @@ const Fo = (e, t, n) => e.columns.map((r) => {
983
983
  }
984
984
  }), r;
985
985
  });
986
- function Zt(e) {
986
+ function en(e) {
987
987
  return Vo(e, "colors");
988
988
  }
989
- function Hn(e) {
989
+ function jn(e) {
990
990
  return Vo(e, "status");
991
991
  }
992
992
  function Vo(e, t) {
@@ -1017,7 +1017,7 @@ function va(e) {
1017
1017
  return !0;
1018
1018
  return !1;
1019
1019
  }
1020
- const mr = async (e) => {
1020
+ const pr = async (e) => {
1021
1021
  var y;
1022
1022
  const {
1023
1023
  items: t,
@@ -1044,7 +1044,7 @@ const mr = async (e) => {
1044
1044
  colors: g
1045
1045
  }
1046
1046
  });
1047
- d = w[0], p = Zt(w[1]);
1047
+ d = w[0], p = en(w[1]);
1048
1048
  } else
1049
1049
  d = await M.getHandler().readObjects({
1050
1050
  model: n,
@@ -1149,7 +1149,7 @@ const xa = (e) => {
1149
1149
  async function T() {
1150
1150
  c(!0), u(void 0);
1151
1151
  try {
1152
- const [R] = await mr({
1152
+ const [R] = await pr({
1153
1153
  treeView: {
1154
1154
  fields: n.get("tree").fields,
1155
1155
  arch: n.get("tree").arch
@@ -1170,9 +1170,9 @@ const xa = (e) => {
1170
1170
  }
1171
1171
  }
1172
1172
  return l ? /* @__PURE__ */ i(Xe, { className: "mt-10", message: l, type: "error", banner: !0 }) : a ? /* @__PURE__ */ i(Be, {}) : /* @__PURE__ */ k(se, { children: [
1173
- /* @__PURE__ */ i(Pn, { style: { padding: "1rem" }, children: x.map((R, C) => {
1173
+ /* @__PURE__ */ i(Ln, { style: { padding: "1rem" }, children: x.map((R, C) => {
1174
1174
  var V, I;
1175
- return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ k(Pn.Item, { children: [
1175
+ return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ k(Ln.Item, { children: [
1176
1176
  /* @__PURE__ */ i(
1177
1177
  "div",
1178
1178
  {
@@ -1205,7 +1205,7 @@ const xa = (e) => {
1205
1205
  ] }, C) }, C);
1206
1206
  }) }),
1207
1207
  /* @__PURE__ */ i(
1208
- Ut,
1208
+ Gt,
1209
1209
  {
1210
1210
  formView: n.get("form"),
1211
1211
  model: m,
@@ -1516,17 +1516,17 @@ const xa = (e) => {
1516
1516
  globalValues: {},
1517
1517
  rootContext: {},
1518
1518
  devMode: !1
1519
- }, Ao = it.createContext(Va), pr = () => {
1519
+ }, Ao = it.createContext(Va), hr = () => {
1520
1520
  const e = X(Ao);
1521
1521
  if (!e)
1522
1522
  throw new Error(
1523
1523
  "useConfigContext must be used within a ConfigContextProvider"
1524
1524
  );
1525
1525
  return e;
1526
- }, hr = (e) => {
1527
- const { erpFeatures: t } = pr();
1526
+ }, Rn = (e) => {
1527
+ const { erpFeatures: t } = hr();
1528
1528
  return !!t[e];
1529
- }, _a = zn(
1529
+ }, _a = Jn(
1530
1530
  ({
1531
1531
  erpFeatures: e,
1532
1532
  locale: t,
@@ -1598,7 +1598,7 @@ async function Do({
1598
1598
  title: f,
1599
1599
  actionId: e,
1600
1600
  actionType: o,
1601
- key: ur(),
1601
+ key: fr(),
1602
1602
  views: u,
1603
1603
  model: l,
1604
1604
  context: { ...t, ...a },
@@ -1609,7 +1609,7 @@ async function Do({
1609
1609
  };
1610
1610
  }
1611
1611
  const Aa = (e) => {
1612
- const [t, n] = b(), [o, r] = b(!0), [s, a] = b(), [c, l] = b(), u = X(Le), { getContext: f, getValues: d, activeId: p } = u || {}, { globalValues: h, rootContext: m } = pr(), y = Ie(() => ({ ...f == null ? void 0 : f(), ...m }), [f, m]);
1612
+ const [t, n] = b(), [o, r] = b(!0), [s, a] = b(), [c, l] = b(), u = X(Le), { getContext: f, getValues: d, activeId: p } = u || {}, { globalValues: h, rootContext: m } = hr(), y = Ie(() => ({ ...f == null ? void 0 : f(), ...m }), [f, m]);
1613
1613
  return { actionData: s, treeShortcut: c, loading: o, error: t, fetchData: async () => {
1614
1614
  n(void 0), r(!0);
1615
1615
  try {
@@ -1652,7 +1652,7 @@ const Aa = (e) => {
1652
1652
  }
1653
1653
  r(!1);
1654
1654
  } };
1655
- }, on = () => /* @__PURE__ */ i(
1655
+ }, sn = () => /* @__PURE__ */ i(
1656
1656
  "div",
1657
1657
  {
1658
1658
  style: {
@@ -1673,7 +1673,7 @@ const Aa = (e) => {
1673
1673
 
1674
1674
  `) !== -1) {
1675
1675
  const { message: r, type: s, title: a } = So(e);
1676
- n = /* @__PURE__ */ i(Xt, { content: `${a}<br />${r}` }), o = s;
1676
+ n = /* @__PURE__ */ i(Zt, { content: `${a}<br />${r}` }), o = s;
1677
1677
  } else
1678
1678
  n = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
1679
1679
  return /* @__PURE__ */ i(
@@ -1696,7 +1696,7 @@ const Aa = (e) => {
1696
1696
  }, []);
1697
1697
  return [Q(
1698
1698
  async (r, s) => {
1699
- const a = s || ur();
1699
+ const a = s || fr();
1700
1700
  t.current.has(a) && n(a);
1701
1701
  const c = new AbortController();
1702
1702
  t.current.set(a, c);
@@ -1713,7 +1713,7 @@ const Aa = (e) => {
1713
1713
  }, pn = 0.7, hn = 30, ko = (e) => {
1714
1714
  const [t, n] = b(0), [o, r] = b(0), { value: s, totalValue: a, percent: c, color: l, icon: u, suffix: f, showPercent: d } = e;
1715
1715
  return /* @__PURE__ */ i(
1716
- dr,
1716
+ ur,
1717
1717
  {
1718
1718
  bounds: !0,
1719
1719
  onResize: (p) => {
@@ -1789,7 +1789,7 @@ function Da({
1789
1789
  justifyContent: "center",
1790
1790
  overflow: "hidden"
1791
1791
  },
1792
- children: /* @__PURE__ */ k(Bn, { style: { fontSize: l, margin: 0, color: s }, children: [
1792
+ children: /* @__PURE__ */ k(Hn, { style: { fontSize: l, margin: 0, color: s }, children: [
1793
1793
  h && /* @__PURE__ */ i(h, { style: { fontSize: l * 0.7 } }),
1794
1794
  h ? ` ${d}` : d
1795
1795
  ] })
@@ -1842,9 +1842,9 @@ function Ea({
1842
1842
  children: /* @__PURE__ */ k(De, { align: "middle", children: [
1843
1843
  y && /* @__PURE__ */ i(ge, { style: { fontSize: f * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ i(y, {}) }),
1844
1844
  /* @__PURE__ */ k(ge, { children: [
1845
- /* @__PURE__ */ i(Bn, { style: { fontSize: f * 0.8, margin: 0, color: a }, children: y ? ` ${o}%` : `${o}%` }),
1845
+ /* @__PURE__ */ i(Hn, { style: { fontSize: f * 0.8, margin: 0, color: a }, children: y ? ` ${o}%` : `${o}%` }),
1846
1846
  /* @__PURE__ */ i(
1847
- Bn,
1847
+ Hn,
1848
1848
  {
1849
1849
  style: {
1850
1850
  fontSize: f * 0.4,
@@ -1887,7 +1887,7 @@ const { getValueForOperator: Pr } = so, ka = (e) => {
1887
1887
  de(() => {
1888
1888
  $();
1889
1889
  }, [t, r]);
1890
- async function K({
1890
+ async function W({
1891
1891
  domain: H,
1892
1892
  isTotal: P
1893
1893
  }) {
@@ -1942,14 +1942,14 @@ const { getValueForOperator: Pr } = so, ka = (e) => {
1942
1942
  h(!0), C(void 0);
1943
1943
  let H, P;
1944
1944
  try {
1945
- const J = await K({ domain: n, isTotal: !1 });
1945
+ const J = await W({ domain: n, isTotal: !1 });
1946
1946
  if (y(J), s) {
1947
1947
  const te = await N({
1948
1948
  domain: s,
1949
1949
  values: {},
1950
1950
  context: o
1951
1951
  });
1952
- H = await K({
1952
+ H = await W({
1953
1953
  domain: te,
1954
1954
  isTotal: !0
1955
1955
  }), x(H);
@@ -1978,7 +1978,7 @@ const { getValueForOperator: Pr } = so, ka = (e) => {
1978
1978
  }
1979
1979
  h(!1);
1980
1980
  }
1981
- return p ? /* @__PURE__ */ i(on, {}) : R ? /* @__PURE__ */ i(Xe, { className: "mt-10", message: R, type: "error", banner: !0 }) : /* @__PURE__ */ i(
1981
+ return p ? /* @__PURE__ */ i(sn, {}) : R ? /* @__PURE__ */ i(Xe, { className: "mt-10", message: R, type: "error", banner: !0 }) : /* @__PURE__ */ i(
1982
1982
  ko,
1983
1983
  {
1984
1984
  value: m,
@@ -2137,7 +2137,7 @@ tt.extend(Ss);
2137
2137
  tt.extend(xs);
2138
2138
  tt.extend(Ts);
2139
2139
  tt.extend(Is);
2140
- const En = (e) => (t) => {
2140
+ const kn = (e) => (t) => {
2141
2141
  const n = t.value.toLocaleString("es-ES", {
2142
2142
  useGrouping: !0
2143
2143
  });
@@ -2177,7 +2177,7 @@ const En = (e) => (t) => {
2177
2177
  maxItemWidth: 1e3
2178
2178
  },
2179
2179
  tooltip: {
2180
- formatter: En("default")
2180
+ formatter: kn("default")
2181
2181
  }
2182
2182
  },
2183
2183
  pie: {
@@ -2190,7 +2190,7 @@ const En = (e) => (t) => {
2190
2190
  maxItemWidth: 1e3
2191
2191
  },
2192
2192
  tooltip: {
2193
- formatter: En("pie")
2193
+ formatter: kn("pie")
2194
2194
  },
2195
2195
  interactions: [
2196
2196
  {
@@ -2205,7 +2205,7 @@ const En = (e) => (t) => {
2205
2205
  maxItemWidth: 1e3
2206
2206
  },
2207
2207
  tooltip: {
2208
- formatter: En("barGrouped")
2208
+ formatter: kn("barGrouped")
2209
2209
  },
2210
2210
  xAxis: {
2211
2211
  label: {
@@ -2262,7 +2262,7 @@ function ja(e) {
2262
2262
  return t;
2263
2263
  return null;
2264
2264
  }
2265
- const Ka = {
2265
+ const Wa = {
2266
2266
  inner: {
2267
2267
  label: {
2268
2268
  type: "inner",
@@ -2279,7 +2279,7 @@ const Ka = {
2279
2279
  labelHeight: 28
2280
2280
  }
2281
2281
  }
2282
- }, Wa = (e) => {
2282
+ }, Ka = (e) => {
2283
2283
  const t = e.reduce((a, c) => a + c.value, 0), o = e.map((a) => a.value / t * 100).map((a) => Math.round(a)), s = 100 - o.reduce((a, c) => a + c, 0);
2284
2284
  for (let a = 0; a < Math.abs(s); a++)
2285
2285
  s > 0 ? o[a % o.length]++ : o[a % o.length]--;
@@ -2307,7 +2307,7 @@ const Ka = {
2307
2307
  return t.reduce((m, y) => m + y.value, 0);
2308
2308
  }, [t, e]), l = Ie(() => {
2309
2309
  if (e === "pie")
2310
- return Wa(t);
2310
+ return Ka(t);
2311
2311
  }, [t, e]), u = Q(
2312
2312
  (h) => {
2313
2313
  if (!l)
@@ -2372,7 +2372,7 @@ function Ga(e) {
2372
2372
  yAxisOpts: c = { mode: "default" }
2373
2373
  } = e;
2374
2374
  let l = { ...Lr[t] };
2375
- if (l || (l = { ...Lr.default }), l.data = n, t === "pie" ? (l.colorField = "x", l.angleField = "value", l = { ...l, ...Ka.inner }, l.legend.itemValue = s, l.label.content = a) : (l.xField = "x", l.yField = "value", l.seriesField = "type", l.isGroup = o, r && (l.isStack = !0, l.groupField = "stacked")), t === "line" && c.mode === "auto" && c.valueOpts) {
2375
+ if (l || (l = { ...Lr.default }), l.data = n, t === "pie" ? (l.colorField = "x", l.angleField = "value", l = { ...l, ...Wa.inner }, l.legend.itemValue = s, l.label.content = a) : (l.xField = "x", l.yField = "value", l.seriesField = "type", l.isGroup = o, r && (l.isStack = !0, l.groupField = "stacked")), t === "line" && c.mode === "auto" && c.valueOpts) {
2376
2376
  const u = c.valueOpts.min, f = c.valueOpts.max;
2377
2377
  l.yAxis = {
2378
2378
  min: u,
@@ -2401,7 +2401,7 @@ const Ya = ({
2401
2401
  if (wt(() => {
2402
2402
  p();
2403
2403
  }, [e, t, r, o, n]), l || !u)
2404
- return /* @__PURE__ */ i(on, {});
2404
+ return /* @__PURE__ */ i(sn, {});
2405
2405
  const { data: h, isGroup: m, isStack: y, yAxisOpts: g } = u;
2406
2406
  return c ? /* @__PURE__ */ i(Xe, { message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(
2407
2407
  Po,
@@ -2444,9 +2444,9 @@ const Ya = ({
2444
2444
  goToResourceId: R,
2445
2445
  limit: C,
2446
2446
  isActive: V
2447
- } = e, [I, _] = b(!1), [N, D] = b(!1), [K, B] = b(!1), [$, H] = b(!0), [P, J] = b(!0), [te, ae] = b([]), [Z, G] = b(!1), [E, A] = b([]), [Y, z] = b(!1), [me, ce] = b(!0), [q, le] = b(), [pe, Ee] = b({}), [Ne, Fe] = b(
2447
+ } = e, [I, _] = b(!1), [N, D] = b(!1), [W, B] = b(!1), [$, H] = b(!0), [P, J] = b(!0), [te, ae] = b([]), [Z, G] = b(!1), [E, A] = b([]), [Y, z] = b(!1), [me, ce] = b(!0), [q, le] = b(), [pe, Ee] = b({}), [Ne, Fe] = b(
2448
2448
  C !== void 0 ? C : Ot
2449
- ), [ke, We] = b(o);
2449
+ ), [ke, Ke] = b(o);
2450
2450
  de(() => {
2451
2451
  p && p.length > 0 && !h && (m == null || m(0), f == null || f(p[0].id));
2452
2452
  }, [p]), de(() => {
@@ -2491,7 +2491,7 @@ const Ya = ({
2491
2491
  results: p,
2492
2492
  setResults: d,
2493
2493
  currentModel: y,
2494
- removingItem: K,
2494
+ removingItem: W,
2495
2495
  setRemovingItem: B,
2496
2496
  formIsLoading: $,
2497
2497
  setFormIsLoading: H,
@@ -2522,7 +2522,7 @@ const Ya = ({
2522
2522
  setSearchValues: Ee,
2523
2523
  limit: Ne,
2524
2524
  setLimit: Fe,
2525
- setTitle: We,
2525
+ setTitle: Ke,
2526
2526
  isActive: V
2527
2527
  },
2528
2528
  children: t
@@ -2554,7 +2554,7 @@ const Ya = ({
2554
2554
  }
2555
2555
  }
2556
2556
  if (l || !f)
2557
- return /* @__PURE__ */ i(on, {});
2557
+ return /* @__PURE__ */ i(sn, {});
2558
2558
  switch (f.type) {
2559
2559
  case "indicatorField":
2560
2560
  case "indicator": {
@@ -2596,8 +2596,8 @@ const Ya = ({
2596
2596
  return /* @__PURE__ */ i(se, { children: `Graph ${f.type} not implemented` });
2597
2597
  }
2598
2598
  }, Ht = gt(za);
2599
- var sn = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e))(sn || {});
2600
- const Df = Object.values(sn), Ja = (e) => {
2599
+ var jt = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e))(jt || {});
2600
+ const Df = Object.values(jt), Ja = (e) => {
2601
2601
  const { model: t, domain: n = [], context: o = {}, view_id: r, manualIds: s } = e, [a, c] = b(!1), [l, u] = b(), [f, d] = b(), [p] = qe(
2602
2602
  M.getHandler().readForView
2603
2603
  ), h = Q(async () => {
@@ -2640,7 +2640,7 @@ const Df = Object.values(sn), Ja = (e) => {
2640
2640
  })), de(() => {
2641
2641
  p();
2642
2642
  }, [n]), f || !d)
2643
- return /* @__PURE__ */ i(on, {});
2643
+ return /* @__PURE__ */ i(sn, {});
2644
2644
  if (u)
2645
2645
  return /* @__PURE__ */ i(Xe, { className: "mt-10", message: u, type: "error", banner: !0 });
2646
2646
  switch (d.type) {
@@ -2752,7 +2752,7 @@ const Df = Object.values(sn), Ja = (e) => {
2752
2752
  }
2753
2753
  ),
2754
2754
  o && /* @__PURE__ */ i(ge, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ i(De, { justify: "end", align: "middle", children: /* @__PURE__ */ i(
2755
- Wi,
2755
+ Ki,
2756
2756
  {
2757
2757
  style: { cursor: "pointer" },
2758
2758
  onClick: () => {
@@ -2796,10 +2796,10 @@ const Df = Object.values(sn), Ja = (e) => {
2796
2796
  value: a
2797
2797
  }
2798
2798
  );
2799
- return n.card ? /* @__PURE__ */ i(Jn, { children: c }) : c;
2799
+ return n.card ? /* @__PURE__ */ i(Qn, { children: c }) : c;
2800
2800
  }, oc = (e) => {
2801
- const { ooui: t } = e, { actionId: n } = t, { actionData: o, treeShortcut: r, loading: s, error: a, fetchData: c } = Aa(n), l = hr(
2802
- sn.FEATURE_READFORVIEW
2801
+ const { ooui: t } = e, { actionId: n } = t, { actionData: o, treeShortcut: r, loading: s, error: a, fetchData: c } = Aa(n), l = Rn(
2802
+ jt.FEATURE_READFORVIEW
2803
2803
  ), u = X(
2804
2804
  ct
2805
2805
  ), { openShortcut: f } = u || {};
@@ -2817,7 +2817,7 @@ const Df = Object.values(sn), Ja = (e) => {
2817
2817
  action: r,
2818
2818
  openAction: f,
2819
2819
  children: [
2820
- s && /* @__PURE__ */ i(on, {}),
2820
+ s && /* @__PURE__ */ i(sn, {}),
2821
2821
  !s && /* @__PURE__ */ i(
2822
2822
  w,
2823
2823
  {
@@ -2845,7 +2845,7 @@ const Df = Object.values(sn), Ja = (e) => {
2845
2845
  } else
2846
2846
  n[o] = e[o];
2847
2847
  }), n;
2848
- }, Dt = (e, t) => ic(e, t), kn = ({
2848
+ }, Dt = (e, t) => ic(e, t), Mn = ({
2849
2849
  source: e,
2850
2850
  target: t,
2851
2851
  fields: n
@@ -2949,7 +2949,7 @@ const Ft = ({
2949
2949
  const r = e[o];
2950
2950
  t[o] && t[o].type === "many2one" && r && Array.isArray(r) && r.length === 2 ? n[o] = r[0] : n[o] = r;
2951
2951
  }), n;
2952
- }, en = (e) => {
2952
+ }, tn = (e) => {
2953
2953
  let t = 0;
2954
2954
  e = e.toString().padEnd(10, "0");
2955
2955
  for (let o = 0; o < e.length; o++)
@@ -2968,7 +2968,7 @@ const Ft = ({
2968
2968
  let o = n, r = n;
2969
2969
  if (t.selectionValues.size ? o = t.selectionValues.get(n) : Array.isArray(n) && (r = n[0], o = n[1]), !n)
2970
2970
  return null;
2971
- const s = t.colors === "auto" ? en(r) : t.colors[r] || en(r);
2971
+ const s = t.colors === "auto" ? tn(r) : t.colors[r] || tn(r);
2972
2972
  return /* @__PURE__ */ i(gr, { color: s, children: o });
2973
2973
  }, gr = (e) => {
2974
2974
  let { color: t } = e, n = {};
@@ -3035,7 +3035,7 @@ const Ft = ({
3035
3035
  }, v = (F) => {
3036
3036
  const { label: T, closable: R, onClose: C } = F, V = (_) => {
3037
3037
  _.preventDefault(), _.stopPropagation();
3038
- }, I = en(T);
3038
+ }, I = tn(T);
3039
3039
  return /* @__PURE__ */ i(
3040
3040
  gr,
3041
3041
  {
@@ -3065,7 +3065,7 @@ const Ft = ({
3065
3065
  }, pc = (e) => {
3066
3066
  switch (e) {
3067
3067
  case "form":
3068
- return Wt;
3068
+ return Ut;
3069
3069
  case "tree":
3070
3070
  return an;
3071
3071
  case "notebook":
@@ -3091,7 +3091,7 @@ const Ft = ({
3091
3091
  case "integer":
3092
3092
  return yn;
3093
3093
  case "float":
3094
- return Ko;
3094
+ return Wo;
3095
3095
  case "progressbar":
3096
3096
  return cl;
3097
3097
  case "date":
@@ -3115,7 +3115,7 @@ const Ft = ({
3115
3115
  case "url":
3116
3116
  return jd;
3117
3117
  case "email":
3118
- return Kd;
3118
+ return Wd;
3119
3119
  case "float_time":
3120
3120
  return dd;
3121
3121
  case "fiber_grid":
@@ -3193,7 +3193,7 @@ const Ft = ({
3193
3193
  for (let s = 0; s < e; s++)
3194
3194
  r += s % 2 ? n : o, s + 1 < e && (r += " ");
3195
3195
  return r;
3196
- }, Cc = (e) => e.map((n) => n.reduce((o, r) => o + r.colspan, 0)).reduce((n, o) => Math.max(n, o)), jn = (e) => {
3196
+ }, Cc = (e) => e.map((n) => n.reduce((o, r) => o + r.colspan, 0)).reduce((n, o) => Math.max(n, o)), Wn = (e) => {
3197
3197
  const { container: t, responsiveBehaviour: n } = e, { rows: o } = t;
3198
3198
  let { columns: r } = t;
3199
3199
  const s = Cc(o);
@@ -3231,7 +3231,7 @@ const Ft = ({
3231
3231
  minHeight: 0,
3232
3232
  minWidth: 0
3233
3233
  }, children: l });
3234
- }, { confirm: Sc } = et, jt = ({
3234
+ }, { confirm: Sc } = et, Wt = ({
3235
3235
  onOk: e,
3236
3236
  onCancel: t,
3237
3237
  t: n
@@ -3272,7 +3272,7 @@ const Ft = ({
3272
3272
  children: t
3273
3273
  }
3274
3274
  );
3275
- }, Kt = it.createContext(null), Kr = async (e) => {
3275
+ }, Kt = it.createContext(null), Wr = async (e) => {
3276
3276
  var t;
3277
3277
  for (let n = 0; n < e.length; n++)
3278
3278
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
@@ -3293,7 +3293,7 @@ const Ft = ({
3293
3293
  context: _,
3294
3294
  model: N,
3295
3295
  datas: D = {},
3296
- report_name: K,
3296
+ report_name: W,
3297
3297
  type: B
3298
3298
  } = R;
3299
3299
  if (B !== "ir.actions.report.xml") {
@@ -3308,7 +3308,7 @@ const Ft = ({
3308
3308
  try {
3309
3309
  const J = await M.getHandler().createReport({
3310
3310
  model: N,
3311
- name: K,
3311
+ name: W,
3312
3312
  datas: D,
3313
3313
  ids: H,
3314
3314
  context: { ...I, ...P }
@@ -3365,7 +3365,7 @@ const Ft = ({
3365
3365
  values: C = {},
3366
3366
  context: V = {}
3367
3367
  }) {
3368
- var K;
3368
+ var W;
3369
3369
  let I = T;
3370
3370
  T.res_model || (I = (await M.getHandler().readObjects({
3371
3371
  model: "ir.actions.act_window",
@@ -3393,7 +3393,7 @@ const Ft = ({
3393
3393
  const B = await M.getHandler().getView({
3394
3394
  model: I.res_model,
3395
3395
  type: "form",
3396
- id: ((K = I == null ? void 0 : I.view_id) == null ? void 0 : K[0]) || void 0,
3396
+ id: ((W = I == null ? void 0 : I.view_id) == null ? void 0 : W[0]) || void 0,
3397
3397
  context: N
3398
3398
  });
3399
3399
  return O({
@@ -3447,7 +3447,7 @@ const Ft = ({
3447
3447
  }), h(!1), await new Promise((_) => setTimeout(_, 300)), y({ domain: T, model: R, context: V, formView: C, actionData: I }), h(!0);
3448
3448
  }
3449
3449
  async function F() {
3450
- Kr(f.current), f.current = [], h(!1), y({
3450
+ Wr(f.current), f.current = [], h(!1), y({
3451
3451
  domain: void 0,
3452
3452
  model: void 0,
3453
3453
  context: {},
@@ -3477,7 +3477,7 @@ const Ft = ({
3477
3477
  }
3478
3478
  ),
3479
3479
  /* @__PURE__ */ i(
3480
- Ut,
3480
+ Gt,
3481
3481
  {
3482
3482
  buttonModal: !0,
3483
3483
  parentContext: m.context,
@@ -3486,7 +3486,7 @@ const Ft = ({
3486
3486
  visible: p,
3487
3487
  onSubmitSucceed: F,
3488
3488
  onCancel: () => {
3489
- Kr(f.current), f.current = [], h(!1), y({
3489
+ Wr(f.current), f.current = [], h(!1), y({
3490
3490
  domain: void 0,
3491
3491
  model: void 0,
3492
3492
  context: {},
@@ -3584,7 +3584,7 @@ function Dc(e, t) {
3584
3584
  forcedValues: F = {},
3585
3585
  parentWidth: T,
3586
3586
  onMustRefreshParent: R
3587
- } = e, { t: C } = he(), [V, I] = b(!1), [_, N] = b(), [D, K] = b(), [B] = ut.useForm(), [$, H] = b(), [P, J] = b(), te = X(jo), [ae, Z] = b(), [G, E] = b(!1), A = ee(), Y = ee({}), z = ee({}), me = ee(!1), ce = ee(!1), q = ee(!1), pe = (T !== void 0 ? T : ae) < Ac, Ee = X(Le), { activeId: Ne, getPlainValues: Fe } = Ee || {}, ke = ee(!1), We = X(
3587
+ } = e, { t: C } = he(), [V, I] = b(!1), [_, N] = b(), [D, W] = b(), [B] = ut.useForm(), [$, H] = b(), [P, J] = b(), te = X(jo), [ae, Z] = b(), [G, E] = b(!1), A = ee(), Y = ee({}), z = ee({}), me = ee(!1), ce = ee(!1), q = ee(!1), pe = (T !== void 0 ? T : ae) < Ac, Ee = X(Le), { activeId: Ne, getPlainValues: Fe } = Ee || {}, ke = ee(!1), Ke = X(
3588
3588
  nt
3589
3589
  ), {
3590
3590
  setFormIsSaving: xe = void 0,
@@ -3592,9 +3592,9 @@ function Dc(e, t) {
3592
3592
  setCurrentId: Oe = void 0,
3593
3593
  setFormIsLoading: Re = void 0,
3594
3594
  setAttachments: Ce = void 0,
3595
- title: W = void 0,
3595
+ title: K = void 0,
3596
3596
  setTitle: we = void 0
3597
- } = (O ? We : {}) || {}, Ve = X(
3597
+ } = (O ? Ke : {}) || {}, Ve = X(
3598
3598
  Kt
3599
3599
  ), { processAction: He, globalValues: Me } = Ve || {};
3600
3600
  yt(t, () => ({
@@ -3606,18 +3606,18 @@ function Dc(e, t) {
3606
3606
  fetchValues: Ge,
3607
3607
  cancelUnsavedChanges: Vt,
3608
3608
  clearAndReload: () => {
3609
- A.current = void 0, K(void 0), $e();
3609
+ A.current = void 0, W(void 0), $e();
3610
3610
  }
3611
3611
  })), de(() => {
3612
3612
  if (N(void 0), !(!n && !m)) {
3613
3613
  if (!x) {
3614
- A.current = void 0, K(void 0);
3614
+ A.current = void 0, W(void 0);
3615
3615
  return;
3616
3616
  }
3617
- (o === void 0 && P || o !== void 0 && P && o < 0) && (A.current = void 0, K(void 0)), $e();
3617
+ (o === void 0 && P || o !== void 0 && P && o < 0) && (A.current = void 0, W(void 0)), $e();
3618
3618
  }
3619
3619
  }, [o, n, h, m, x]), de(() => {
3620
- G && (Fn({
3620
+ G && (Vn({
3621
3621
  elementHasLostFocus: !0
3622
3622
  }), E(!1));
3623
3623
  }, [G]);
@@ -3625,7 +3625,7 @@ function Dc(e, t) {
3625
3625
  oe == null || oe(!1), xe == null || xe(!1), s == null || s(L, j, re, ie), Oe == null || Oe(L), ke.current && (R == null || R());
3626
3626
  }, Se = () => {
3627
3627
  ke.current && (R == null || R()), xe == null || xe(!1), r == null || r();
3628
- }, Ke = (L) => {
3628
+ }, We = (L) => {
3629
3629
  xe == null || xe(!1), u == null || u(L);
3630
3630
  };
3631
3631
  function ue() {
@@ -3682,7 +3682,7 @@ function Dc(e, t) {
3682
3682
  extraValues: v
3683
3683
  });
3684
3684
  }, dt = () => Object.keys(
3685
- kn({
3685
+ Mn({
3686
3686
  source: Y.current,
3687
3687
  target: Ue(P),
3688
3688
  fields: P
@@ -3691,7 +3691,7 @@ function Dc(e, t) {
3691
3691
  const j = B.getFieldsValue(!0);
3692
3692
  return Dt(j, L);
3693
3693
  }, mt = (L, j) => {
3694
- qt({
3694
+ zt({
3695
3695
  values: {
3696
3696
  ...Dt(B.getFieldsValue(!0), P),
3697
3697
  [L]: j
@@ -3700,11 +3700,11 @@ function Dc(e, t) {
3700
3700
  reset: !1
3701
3701
  });
3702
3702
  }, cn = (L) => B.getFieldsValue(!0)[L];
3703
- async function Yt() {
3703
+ async function qt() {
3704
3704
  try {
3705
3705
  return await B.validateFields(), !1;
3706
3706
  } catch {
3707
- return Dn.error(C("fillRequiredFields")), !0;
3707
+ return En.error(C("fillRequiredFields")), !0;
3708
3708
  }
3709
3709
  }
3710
3710
  const $e = async () => {
@@ -3725,14 +3725,14 @@ function Dc(e, t) {
3725
3725
  Re == null || Re(!0), N(void 0), L != null && L.fields ? (re = L.fields, ie = L.arch) : (re = P, ie = $), h && (L == null ? void 0 : L.forceRefresh) !== !0 ? j = h : { values: j, defaultGetCalled: ye } = await fi({
3726
3726
  fields: re,
3727
3727
  arch: ie
3728
- }), S && (j = { ...cc(S), ...j }), Y.current = Dt(j, re), qt({
3728
+ }), S && (j = { ...cc(S), ...j }), Y.current = Dt(j, re), zt({
3729
3729
  values: j,
3730
3730
  fields: re,
3731
3731
  reset: !0,
3732
3732
  isDefaultGet: ye
3733
- }), zt({ fields: re, arch: ie, values: j }), Re == null || Re(!1), oe == null || oe(!1), ye && E(!0);
3733
+ }), Jt({ fields: re, arch: ie, values: j }), Re == null || Re(!1), oe == null || oe(!1), ye && E(!0);
3734
3734
  }, Vt = async () => new Promise(async (L) => {
3735
- dt() ? jt({
3735
+ dt() ? Wt({
3736
3736
  t: C,
3737
3737
  onOk: () => {
3738
3738
  Se == null || Se(), L(!0);
@@ -3754,21 +3754,21 @@ function Dc(e, t) {
3754
3754
  type: "form",
3755
3755
  context: w
3756
3756
  });
3757
- }, qt = ({
3757
+ }, zt = ({
3758
3758
  values: L,
3759
3759
  fields: j,
3760
3760
  reset: re,
3761
3761
  isDefaultGet: ie = !1
3762
3762
  }) => {
3763
- const Ye = { ...re ? {} : B.getFieldsValue(!0), ...L }, _n = Dt(Ye, j), Ti = Object.keys(j).map((An) => {
3764
- const Ii = _n[An] !== void 0 ? _n[An] : void 0;
3763
+ const Ye = { ...re ? {} : B.getFieldsValue(!0), ...L }, An = Dt(Ye, j), Ti = Object.keys(j).map((Dn) => {
3764
+ const Ii = An[Dn] !== void 0 ? An[Dn] : void 0;
3765
3765
  return {
3766
- name: An,
3766
+ name: Dn,
3767
3767
  touched: !1,
3768
3768
  value: Ii
3769
3769
  };
3770
3770
  });
3771
- ie || (z.current = _n), B.setFields(Ti);
3771
+ ie || (z.current = An), B.setFields(Ti);
3772
3772
  }, fi = async ({
3773
3773
  fields: L,
3774
3774
  arch: j
@@ -3803,7 +3803,7 @@ function Dc(e, t) {
3803
3803
  }, Cr = async (L) => {
3804
3804
  const { callOnSubmitSucceed: j = !0 } = L || {};
3805
3805
  if (ue()) {
3806
- const re = kn({
3806
+ const re = Mn({
3807
3807
  source: Y.current,
3808
3808
  target: Ue(P),
3809
3809
  fields: P
@@ -3845,17 +3845,17 @@ function Dc(e, t) {
3845
3845
  q.current
3846
3846
  ), q.current = !1;
3847
3847
  const ie = ue();
3848
- return d && (A.current = void 0, qt({ values: {}, fields: P, reset: !0 })), { succeed: !0, id: ie };
3848
+ return d && (A.current = void 0, zt({ values: {}, fields: P, reset: !0 })), { succeed: !0, id: ie };
3849
3849
  }
3850
3850
  if (!dt() && ue() && re)
3851
3851
  return ce.current = !1, oe == null || oe(!1), Se == null || Se(), { succeed: !0, id: ue() };
3852
- if (await Yt())
3852
+ if (await qt())
3853
3853
  return ce.current = !1, jr(C), { succeed: !1, id: ue() };
3854
3854
  I(!0), xe == null || xe(!0);
3855
3855
  try {
3856
- p === "api" ? await Cr(L) : await mi(L), d && (A.current = void 0, qt({ values: {}, fields: P, reset: !0 })), await Ge({ forceRefresh: !0 }), j = !0, Dn.success(C("savedRegisters"));
3856
+ p === "api" ? await Cr(L) : await mi(L), d && (A.current = void 0, zt({ values: {}, fields: P, reset: !0 })), await Ge({ forceRefresh: !0 }), j = !0, En.success(C("savedRegisters"));
3857
3857
  } catch (ie) {
3858
- ce.current = !1, I(!1), xe == null || xe(!1), Ke == null || Ke(ie), Dn.error(C("errorWhileSavingForm")), N(ie != null && ie.message ? ie.message : ie);
3858
+ ce.current = !1, I(!1), xe == null || xe(!1), We == null || We(ie), En.error(C("errorWhileSavingForm")), N(ie != null && ie.message ? ie.message : ie);
3859
3859
  } finally {
3860
3860
  ce.current = !1, xe == null || xe(!1), I(!1);
3861
3861
  }
@@ -3877,7 +3877,7 @@ function Dc(e, t) {
3877
3877
  L
3878
3878
  )
3879
3879
  }), ye;
3880
- }, zt = ({
3880
+ }, Jt = ({
3881
3881
  fields: L,
3882
3882
  arch: j,
3883
3883
  values: re,
@@ -3890,13 +3890,13 @@ function Dc(e, t) {
3890
3890
  values: re,
3891
3891
  operationInProgress: ie
3892
3892
  });
3893
- K(ye), ye.string && ye.string !== W && (we == null || we(ye.string)), te && ye.string && ((Ye = te.setTitle) == null || Ye.call(te, ye.string));
3894
- }, Fn = async ({
3893
+ W(ye), ye.string && ye.string !== K && (we == null || we(ye.string)), te && ye.string && ((Ye = te.setTitle) == null || Ye.call(te, ye.string));
3894
+ }, Vn = async ({
3895
3895
  elementHasLostFocus: L = !1
3896
3896
  }) => {
3897
3897
  if (ce.current)
3898
3898
  return;
3899
- const j = kn({
3899
+ const j = Mn({
3900
3900
  source: z.current,
3901
3901
  target: Ue(P),
3902
3902
  fields: P
@@ -3919,7 +3919,7 @@ function Dc(e, t) {
3919
3919
  const ie = Dt(B.getFieldsValue(!0), P);
3920
3920
  z.current = ie, l == null || l(ie), oe == null || oe(!0), hi(re);
3921
3921
  }
3922
- }, pi = ps(Fn, 100), hi = async (L) => {
3922
+ }, pi = ps(Vn, 100), hi = async (L) => {
3923
3923
  try {
3924
3924
  for (let j = 0; j < L.length; j += 1) {
3925
3925
  const re = L[j];
@@ -3931,7 +3931,7 @@ function Dc(e, t) {
3931
3931
  }, gi = async (L) => {
3932
3932
  const j = D == null ? void 0 : D.onChangeFields[L];
3933
3933
  if (!j) {
3934
- zt({
3934
+ Jt({
3935
3935
  fields: P,
3936
3936
  arch: $,
3937
3937
  values: Ue(P)
@@ -3963,11 +3963,11 @@ function Dc(e, t) {
3963
3963
  values: ye,
3964
3964
  fields: P
3965
3965
  });
3966
- zt({
3966
+ Jt({
3967
3967
  fields: P,
3968
3968
  arch: $,
3969
3969
  values: Ye
3970
- }), qt({
3970
+ }), zt({
3971
3971
  values: Ye,
3972
3972
  fields: P,
3973
3973
  reset: !1
@@ -3984,7 +3984,7 @@ function Dc(e, t) {
3984
3984
  fieldsDomain: ie.domain,
3985
3985
  fields: P
3986
3986
  });
3987
- zt({
3987
+ Jt({
3988
3988
  fields: ye,
3989
3989
  arch: $,
3990
3990
  values: Ue(ye)
@@ -4061,10 +4061,10 @@ function Dc(e, t) {
4061
4061
  !O && re && (ne == null || ne(ue(), U(), Te()));
4062
4062
  }
4063
4063
  function bi() {
4064
- Fn({ elementHasLostFocus: !0 });
4064
+ Vn({ elementHasLostFocus: !0 });
4065
4065
  }
4066
- function Vn(L) {
4067
- zt({
4066
+ function _n(L) {
4067
+ Jt({
4068
4068
  fields: P,
4069
4069
  arch: $,
4070
4070
  values: Ue(P),
@@ -4080,17 +4080,17 @@ function Dc(e, t) {
4080
4080
  Se == null || Se();
4081
4081
  return;
4082
4082
  }
4083
- if (await Yt()) {
4083
+ if (await qt()) {
4084
4084
  jr(C);
4085
4085
  return;
4086
4086
  }
4087
4087
  let ie = !1;
4088
4088
  try {
4089
- !f && (dt() || ue() === void 0) && (ie = !0, Vn(!0), p === "2many" ? (await Cr({ callOnSubmitSucceed: !1 }), q.current = !0) : await ln({ callOnSubmitSucceed: !1 }));
4089
+ !f && (dt() || ue() === void 0) && (ie = !0, _n(!0), p === "2many" ? (await Cr({ callOnSubmitSucceed: !1 }), q.current = !0) : await ln({ callOnSubmitSucceed: !1 }));
4090
4090
  const ye = q.current ? _e() : {}, Ye = { ...re, ...ye };
4091
- L === "object" ? await yi({ action: j, context: Ye }) : L === "workflow" ? await wi({ action: j }) : L === "action" && await vi({ action: j, context: Ye }), ie && Vn(!1);
4091
+ L === "object" ? await yi({ action: j, context: Ye }) : L === "workflow" ? await wi({ action: j }) : L === "action" && await vi({ action: j, context: Ye }), ie && _n(!1);
4092
4092
  } catch (ye) {
4093
- ie && Vn(!1), Ze(ye);
4093
+ ie && _n(!1), Ze(ye);
4094
4094
  }
4095
4095
  }
4096
4096
  const Si = () => !D && !_ ? /* @__PURE__ */ i(Be, {}) : !n && !m || !x ? null : /* @__PURE__ */ i(se, { children: /* @__PURE__ */ i(
@@ -4120,7 +4120,7 @@ function Dc(e, t) {
4120
4120
  },
4121
4121
  component: !1,
4122
4122
  children: D && /* @__PURE__ */ i(
4123
- jn,
4123
+ Wn,
4124
4124
  {
4125
4125
  container: D.container,
4126
4126
  responsiveBehaviour: pe
@@ -4135,7 +4135,7 @@ function Dc(e, t) {
4135
4135
  /* @__PURE__ */ i(
4136
4136
  Pe,
4137
4137
  {
4138
- icon: /* @__PURE__ */ i(nn, {}),
4138
+ icon: /* @__PURE__ */ i(rn, {}),
4139
4139
  disabled: V,
4140
4140
  onClick: async () => {
4141
4141
  await Vt();
@@ -4159,7 +4159,7 @@ function Dc(e, t) {
4159
4159
  ] }) })
4160
4160
  ] });
4161
4161
  return x ? /* @__PURE__ */ i(
4162
- dr,
4162
+ ur,
4163
4163
  {
4164
4164
  bounds: !0,
4165
4165
  onResize: (L) => {
@@ -4174,7 +4174,7 @@ function Dc(e, t) {
4174
4174
  }
4175
4175
  ) : null;
4176
4176
  }
4177
- const Wt = gt(Dc), Ut = (e) => {
4177
+ const Ut = gt(Dc), Gt = (e) => {
4178
4178
  const {
4179
4179
  visible: t,
4180
4180
  id: n,
@@ -4240,7 +4240,7 @@ const Wt = gt(Dc), Ut = (e) => {
4240
4240
  onCancel: s,
4241
4241
  maskClosable: !1,
4242
4242
  children: /* @__PURE__ */ i(
4243
- Wt,
4243
+ Ut,
4244
4244
  {
4245
4245
  id: n,
4246
4246
  showFooter: !0,
@@ -4254,7 +4254,7 @@ const Wt = gt(Dc), Ut = (e) => {
4254
4254
  }
4255
4255
  ) });
4256
4256
  }, Ec = (e) => /* @__PURE__ */ i(be, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
4257
- Qn.RangePicker,
4257
+ Xn.RangePicker,
4258
4258
  {
4259
4259
  allowEmpty: [!0, !0],
4260
4260
  format: "DD/MM/YYYY"
@@ -4283,11 +4283,11 @@ const Wt = gt(Dc), Ut = (e) => {
4283
4283
  );
4284
4284
  }, kc = (e) => {
4285
4285
  const { ooui: t, showLabel: n = !1 } = e, { label: o, id: r } = t, s = [
4286
- new Ln({
4286
+ new $n({
4287
4287
  name: r + "#date",
4288
4288
  label: ""
4289
4289
  }),
4290
- new Ln({
4290
+ new $n({
4291
4291
  name: r + "#time",
4292
4292
  label: ""
4293
4293
  })
@@ -4307,7 +4307,7 @@ const Wt = gt(Dc), Ut = (e) => {
4307
4307
  ),
4308
4308
  /* @__PURE__ */ k(De, { align: "bottom", className: "p-0", children: [
4309
4309
  /* @__PURE__ */ i(ge, { className: "mr-2", children: /* @__PURE__ */ i(be, { ...e, ooui: s[0], showLabel: !1, children: /* @__PURE__ */ i(
4310
- Qn.RangePicker,
4310
+ Xn.RangePicker,
4311
4311
  {
4312
4312
  className: "w-60",
4313
4313
  allowEmpty: [!0, !0],
@@ -4345,7 +4345,7 @@ const Wt = gt(Dc), Ut = (e) => {
4345
4345
  }
4346
4346
  }
4347
4347
  )
4348
- ] }), { useToken: Nc } = je, Ko = (e) => {
4348
+ ] }), { useToken: Nc } = je, Wo = (e) => {
4349
4349
  const { ooui: t } = e, { id: n, decimalDigits: o, readOnly: r, required: s } = t, { token: a } = Nc(), c = s && !r ? { backgroundColor: a.colorPrimaryBg } : void 0, l = X(Le), { elementHasLostFocus: u } = l || {};
4350
4350
  return /* @__PURE__ */ i(be, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
4351
4351
  eo,
@@ -4382,7 +4382,7 @@ const Wt = gt(Dc), Ut = (e) => {
4382
4382
  ) });
4383
4383
  };
4384
4384
  function Lc(e) {
4385
- const { ooui: t, showLabel: n } = e, { id: o, label: r, tooltip: s } = t, a = t instanceof $n ? yn : Ko, c = (l) => /* @__PURE__ */ i(
4385
+ const { ooui: t, showLabel: n } = e, { id: o, label: r, tooltip: s } = t, a = t instanceof Bn ? yn : Wo, c = (l) => /* @__PURE__ */ i(
4386
4386
  a,
4387
4387
  {
4388
4388
  ooui: {
@@ -4414,10 +4414,10 @@ function Lc(e) {
4414
4414
  ] })
4415
4415
  ] });
4416
4416
  }
4417
- const { defaultAlgorithm: $c, defaultSeed: Bc } = je, Hc = $c(Bc), { Option: jc } = Rt, Kc = (e) => {
4417
+ const { defaultAlgorithm: $c, defaultSeed: Bc } = je, Hc = $c(Bc), { Option: jc } = Rt, Wc = (e) => {
4418
4418
  const { ooui: t } = e, { required: n } = t;
4419
- return /* @__PURE__ */ i(be, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Wc, { ...e }) });
4420
- }, Wc = (e) => {
4419
+ return /* @__PURE__ */ i(be, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Kc, { ...e }) });
4420
+ }, Kc = (e) => {
4421
4421
  const { ooui: t, onChange: n, value: o } = e, { selectionValues: r, readOnly: s, required: a } = t, c = Array.from(r.entries()), l = c && c.length && c.filter((d) => {
4422
4422
  const [p] = d;
4423
4423
  return o ? !o.includes(p) : !0;
@@ -4458,7 +4458,7 @@ function Gc(e) {
4458
4458
  const { t: n } = he();
4459
4459
  switch (t.type) {
4460
4460
  case vt.boolean: {
4461
- const r = new Xn({
4461
+ const r = new Zn({
4462
4462
  name: t._id,
4463
4463
  string: t.label,
4464
4464
  selection: [
@@ -4478,7 +4478,7 @@ function Gc(e) {
4478
4478
  case vt.datetime:
4479
4479
  return /* @__PURE__ */ i(kc, { ooui: t, layout: "vertical", showLabel: !0 });
4480
4480
  case vt.selection:
4481
- return /* @__PURE__ */ i(Kc, { layout: "vertical", ooui: t, showLabel: !0 });
4481
+ return /* @__PURE__ */ i(Wc, { layout: "vertical", ooui: t, showLabel: !0 });
4482
4482
  default:
4483
4483
  return /* @__PURE__ */ i(
4484
4484
  To,
@@ -4499,11 +4499,11 @@ function Yc(e) {
4499
4499
  s(n ? "simple_search" : "advanced_search")
4500
4500
  ] }) }),
4501
4501
  /* @__PURE__ */ k(ge, { span: 12, className: "text-right pb-2", children: [
4502
- /* @__PURE__ */ i(Pe, { className: "mr-5", icon: /* @__PURE__ */ i(nr, {}), onClick: o, children: s("clear") }),
4502
+ /* @__PURE__ */ i(Pe, { className: "mr-5", icon: /* @__PURE__ */ i(rr, {}), onClick: o, children: s("clear") }),
4503
4503
  /* @__PURE__ */ i(
4504
4504
  Pe,
4505
4505
  {
4506
- icon: /* @__PURE__ */ i(rr, {}),
4506
+ icon: /* @__PURE__ */ i(or, {}),
4507
4507
  loading: r,
4508
4508
  className: "mr-2",
4509
4509
  type: "primary",
@@ -4515,7 +4515,7 @@ function Yc(e) {
4515
4515
  ] });
4516
4516
  }
4517
4517
  function qc(e) {
4518
- const { onLimitChange: t } = e, { t: n } = he(), o = new $n({ name: "limit" }), r = new $n({ name: "offset" });
4518
+ const { onLimitChange: t } = e, { t: n } = he(), o = new Bn({ name: "limit" }), r = new Bn({ name: "offset" });
4519
4519
  return /* @__PURE__ */ k("div", { className: "pl-2 pt-2", children: [
4520
4520
  /* @__PURE__ */ i(De, { children: n("parameters") }, "count_params"),
4521
4521
  /* @__PURE__ */ k(ze, { align: "center", children: [
@@ -4534,7 +4534,7 @@ function qc(e) {
4534
4534
  ] })
4535
4535
  ] });
4536
4536
  }
4537
- const Wr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, zc = (e, t) => {
4537
+ const Kr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, zc = (e, t) => {
4538
4538
  const n = tl(e), o = Zc(n), r = el(
4539
4539
  o,
4540
4540
  t
@@ -4561,9 +4561,9 @@ const Wr = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
4561
4561
  e,
4562
4562
  "in",
4563
4563
  t.map(
4564
- (a) => Wr(a)
4564
+ (a) => Kr(a)
4565
4565
  )
4566
- ] : [e, "=", Wr(t)];
4566
+ ] : [e, "=", Kr(t)];
4567
4567
  }, Qc = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Xc = (e) => {
4568
4568
  const t = { ...e };
4569
4569
  return Object.keys(t).forEach(
@@ -4602,13 +4602,13 @@ const Wr = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
4602
4602
  return e.forEach((n) => {
4603
4603
  Array.isArray(n) && n[0] ? t[n[0]] = !0 : t[n] = !0;
4604
4604
  }), Object.keys(t);
4605
- }, tn = (e, t) => {
4605
+ }, nn = (e, t) => {
4606
4606
  const n = [...e], o = nl(e);
4607
4607
  return t.forEach((r) => {
4608
4608
  Array.isArray(r) && r[0] ? o.includes(r[0]) || n.push(r) : o.includes(r) || n.push(r);
4609
4609
  }), n;
4610
4610
  }, { useToken: rl } = je;
4611
- function Wo(e) {
4611
+ function Ko(e) {
4612
4612
  const {
4613
4613
  fields: t,
4614
4614
  searchFields: n = { primary: [], secondary: [] },
@@ -4631,7 +4631,7 @@ function Wo(e) {
4631
4631
  if (!g)
4632
4632
  return;
4633
4633
  const V = S ? g : m, I = V == null ? void 0 : V.rows;
4634
- return I == null ? void 0 : I.map((_, N) => /* @__PURE__ */ i(De, { children: _.map((D, K) => /* @__PURE__ */ i(ge, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(Gc, { field: D }) }, K)) }, N));
4634
+ return I == null ? void 0 : I.map((_, N) => /* @__PURE__ */ i(De, { children: _.map((D, W) => /* @__PURE__ */ i(ge, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(Gc, { field: D }) }, W)) }, N));
4635
4635
  };
4636
4636
  wt(() => {
4637
4637
  x(!1), O.current = new Hi(n, t), O.current.parse(), y(O.current._simpleSearchContainer), w(O.current._advancedSearchContainer);
@@ -4647,7 +4647,7 @@ function Wo(e) {
4647
4647
  r({ params: N, offset: _, limit: I, searchValues: V });
4648
4648
  };
4649
4649
  return /* @__PURE__ */ i(
4650
- dr,
4650
+ ur,
4651
4651
  {
4652
4652
  bounds: !0,
4653
4653
  onResize: (V) => {
@@ -4824,13 +4824,13 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
4824
4824
  id: "action",
4825
4825
  name: c("action"),
4826
4826
  disabled: !d || d.length === 0,
4827
- icon: /* @__PURE__ */ i(or, {})
4827
+ icon: /* @__PURE__ */ i(ir, {})
4828
4828
  },
4829
4829
  {
4830
4830
  id: "print",
4831
4831
  name: c("report"),
4832
4832
  disabled: !h || h.length === 0,
4833
- icon: /* @__PURE__ */ i(ir, {})
4833
+ icon: /* @__PURE__ */ i(sr, {})
4834
4834
  },
4835
4835
  {
4836
4836
  id: "divider",
@@ -4840,7 +4840,7 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
4840
4840
  },
4841
4841
  {
4842
4842
  label: c("related"),
4843
- icon: /* @__PURE__ */ i(sr, {}),
4843
+ icon: /* @__PURE__ */ i(ar, {}),
4844
4844
  items: p
4845
4845
  }
4846
4846
  ];
@@ -4963,7 +4963,7 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
4963
4963
  const s = t[r];
4964
4964
  return (s == null ? void 0 : s.flatMap((a) => {
4965
4965
  const c = [];
4966
- return "context" in a && c.push(...ji(a.context)), "domain" in a && c.push(...Ki(a.domain)), c;
4966
+ return "context" in a && c.push(...ji(a.context)), "domain" in a && c.push(...Wi(a.domain)), c;
4967
4967
  })) || [];
4968
4968
  });
4969
4969
  return [
@@ -5006,7 +5006,7 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
5006
5006
  return null;
5007
5007
  let o = n;
5008
5008
  t.selectionValues.size ? o = t.selectionValues.get(n) : Array.isArray(n) && (o = n[1]);
5009
- const r = o.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = en(o);
5009
+ const r = o.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = tn(o);
5010
5010
  return /* @__PURE__ */ i(bt, { title: o, children: /* @__PURE__ */ i(to, { alt: o, style: { backgroundColor: s }, children: r }) });
5011
5011
  }, { useToken: hl } = je, pt = {
5012
5012
  date: {
@@ -5033,7 +5033,7 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
5033
5033
  d(m.format(pt[f].dateInternalFormat));
5034
5034
  }, h = t ? tt(t, pt[f].dateInternalFormat) : void 0;
5035
5035
  return /* @__PURE__ */ i(
5036
- Qn,
5036
+ Xn,
5037
5037
  {
5038
5038
  style: { width: "100%", ...u },
5039
5039
  placeholder: r ? pt.time.placeholder : pt.date.placeholder,
@@ -5061,13 +5061,13 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
5061
5061
  justifyContent: "center",
5062
5062
  alignContent: "center"
5063
5063
  },
5064
- children: /* @__PURE__ */ i(Jt, { checked: e, disabled: !0 })
5064
+ children: /* @__PURE__ */ i(Qt, { checked: e, disabled: !0 })
5065
5065
  }
5066
5066
  ),
5067
5067
  [e]
5068
5068
  ), wl = ({ value: e }) => Ie(() => /* @__PURE__ */ i(fl, { m2oField: e }), [e]), vl = ({ value: e }) => Ie(
5069
5069
  () => /* @__PURE__ */ i(
5070
- Xt,
5070
+ Zt,
5071
5071
  {
5072
5072
  content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
5073
5073
  }
@@ -5170,7 +5170,7 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
5170
5170
  }, [e == null ? void 0 : e.items]);
5171
5171
  const d = Ie(
5172
5172
  () => r.map((p) => {
5173
- const { id: h, name: m } = p, y = en(m);
5173
+ const { id: h, name: m } = p, y = tn(m);
5174
5174
  return /* @__PURE__ */ i(gr, { color: y, children: m }, `${h}`);
5175
5175
  }),
5176
5176
  [r]
@@ -5230,7 +5230,7 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
5230
5230
  context: v,
5231
5231
  readonly: F,
5232
5232
  onSelectAllRecords: T
5233
- } = e, R = ee(null), [C, V] = b([]), I = ee(!1), [_, N] = b(), { t: D } = he(), K = ee(o), B = X(
5233
+ } = e, R = ee(null), [C, V] = b([]), I = ee(!1), [_, N] = b(), { t: D } = he(), W = ee(o), B = X(
5234
5234
  nt
5235
5235
  ), { title: $ = void 0, setTitle: H = void 0 } = (O ? B : {}) || {}, P = Ie(() => {
5236
5236
  if (_)
@@ -5254,12 +5254,12 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
5254
5254
  if (!_)
5255
5255
  return;
5256
5256
  I.current = !1;
5257
- const z = fr(_, a);
5257
+ const z = mr(_, a);
5258
5258
  V(z);
5259
5259
  }, [a]), de(() => {
5260
- K.current = o;
5260
+ W.current = o;
5261
5261
  }, [o]);
5262
- const J = (n - 1) * K.current + 1, te = J - 1 + C.length, ae = r === void 0 ? null : r === 0 ? D("no_results") : D("summary").replace("{from}", J == null ? void 0 : J.toString()).replace("{to}", te == null ? void 0 : te.toString()).replace("{total}", r == null ? void 0 : r.toString()), Z = Ie(() => {
5262
+ const J = (n - 1) * W.current + 1, te = J - 1 + C.length, ae = r === void 0 ? null : r === 0 ? D("no_results") : D("summary").replace("{from}", J == null ? void 0 : J.toString()).replace("{to}", te == null ? void 0 : te.toString()).replace("{total}", r == null ? void 0 : r.toString()), Z = Ie(() => {
5263
5263
  if (!f || s.isExpandable)
5264
5264
  return null;
5265
5265
  const z = C == null ? void 0 : C.filter(
@@ -5270,7 +5270,7 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
5270
5270
  ki,
5271
5271
  {
5272
5272
  total: r,
5273
- pageSize: K.current === 0 ? r : K.current,
5273
+ pageSize: W.current === 0 ? r : W.current,
5274
5274
  current: n,
5275
5275
  showSizeChanger: !1,
5276
5276
  onChange: c
@@ -5350,7 +5350,7 @@ const cl = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Go,
5350
5350
  G
5351
5351
  ] });
5352
5352
  }
5353
- ), an = zn(zo);
5353
+ ), an = Jn(zo);
5354
5354
  an.displayName = "Tree";
5355
5355
  zo.displayName = "UnmemoizedTree";
5356
5356
  const Jo = (e) => {
@@ -5379,7 +5379,7 @@ const Jo = (e) => {
5379
5379
  searchParams: F = [],
5380
5380
  setSearchValues: T,
5381
5381
  clearSelection: R
5382
- } = e, [C, V] = b(!1), [I, _] = b(!1), [N, D] = b(), [K, B] = b(1), [$, H] = b(0), [P, J] = b(), [te, ae] = b([]), [Z, G] = b(void 0), [E, A] = b(void 0), Y = ee(O || Ot), z = ee([]), me = Q(
5382
+ } = e, [C, V] = b(!1), [I, _] = b(!1), [N, D] = b(), [W, B] = b(1), [$, H] = b(0), [P, J] = b(), [te, ae] = b([]), [Z, G] = b(void 0), [E, A] = b(void 0), Y = ee(O || Ot), z = ee([]), me = Q(
5383
5383
  (oe) => {
5384
5384
  g == null || g([...oe]), ae([...oe]);
5385
5385
  },
@@ -5393,17 +5393,17 @@ const Jo = (e) => {
5393
5393
  context: u
5394
5394
  });
5395
5395
  if (J(oe.length), f == null || f(oe.length), oe.length > 0) {
5396
- const Oe = oe.map((ne) => ne == null ? void 0 : ne[0]), { colors: Re, status: Ce } = It(d), W = {};
5397
- Re && (W.colors = Re), Ce && (W.status = Ce);
5396
+ const Oe = oe.map((ne) => ne == null ? void 0 : ne[0]), { colors: Re, status: Ce } = It(d), K = {};
5397
+ Re && (K.colors = Re), Ce && (K.status = Ce);
5398
5398
  const we = await M.getHandler().readEvalUiObjects({
5399
5399
  model: t,
5400
5400
  ids: Oe,
5401
5401
  arch: d == null ? void 0 : d.arch,
5402
5402
  fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
5403
5403
  context: u,
5404
- attrs: W
5404
+ attrs: K
5405
5405
  }), Ve = we[0];
5406
- z.current = [...Ve], G(Zt(we[1])), A(Hn(we[1]));
5406
+ z.current = [...Ve], G(en(we[1])), A(jn(we[1]));
5407
5407
  const He = Ve.map((ne) => ne.id), Me = h !== void 0 ? Mt({
5408
5408
  resultsToSort: Ve,
5409
5409
  sorter: h,
@@ -5427,8 +5427,8 @@ const Jo = (e) => {
5427
5427
  f
5428
5428
  ]), le = Q(
5429
5429
  async (oe) => {
5430
- const { params: Oe, newOffset: Re } = oe || {}, Ce = tn(Oe || F, S), { colors: W, status: we } = It(d), Ve = {};
5431
- W && (Ve.colors = W), we && (Ve.status = we);
5430
+ const { params: Oe, newOffset: Re } = oe || {}, Ce = nn(Oe || F, S), { colors: K, status: we } = It(d), Ve = {};
5431
+ K && (Ve.colors = K), we && (Ve.status = we);
5432
5432
  const { totalItems: He, results: Me, attrsEvaluated: ne } = await M.getHandler().searchForTree({
5433
5433
  params: Ce,
5434
5434
  limit: Y.current,
@@ -5438,7 +5438,7 @@ const Jo = (e) => {
5438
5438
  context: u,
5439
5439
  attrs: Ve
5440
5440
  });
5441
- G(Zt(ne)), A(Hn(ne)), z.current = [...Me];
5441
+ G(en(ne)), A(jn(ne)), z.current = [...Me];
5442
5442
  const Se = h !== void 0 ? Mt({
5443
5443
  resultsToSort: Me,
5444
5444
  sorter: h,
@@ -5452,8 +5452,8 @@ const Jo = (e) => {
5452
5452
  } else
5453
5453
  y == null || y(void 0);
5454
5454
  V(!1);
5455
- const Ke = await He;
5456
- J(Ke), f == null || f(Ke);
5455
+ const We = await He;
5456
+ J(We), f == null || f(We);
5457
5457
  },
5458
5458
  [
5459
5459
  y,
@@ -5511,10 +5511,10 @@ const Jo = (e) => {
5511
5511
  ]
5512
5512
  ), Ne = Q(
5513
5513
  (oe) => {
5514
- const { params: Oe, searchValues: Re, limit: Ce, offset: W } = oe;
5515
- C || (n == null || n(void 0), o == null || o([]), T == null || T(Re), r == null || r(Oe), s == null || s(!1), _(!0), D(void 0), B(1), Ce && (Y.current = Ce, v == null || v(Ce)), W && H(W), pe({
5514
+ const { params: Oe, searchValues: Re, limit: Ce, offset: K } = oe;
5515
+ C || (n == null || n(void 0), o == null || o([]), T == null || T(Re), r == null || r(Oe), s == null || s(!1), _(!0), D(void 0), B(1), Ce && (Y.current = Ce, v == null || v(Ce)), K && H(K), pe({
5516
5516
  params: Oe,
5517
- newOffset: W
5517
+ newOffset: K
5518
5518
  }));
5519
5519
  },
5520
5520
  [
@@ -5541,7 +5541,7 @@ const Jo = (e) => {
5541
5541
  T,
5542
5542
  v,
5543
5543
  O
5544
- ]), We = Q(
5544
+ ]), Ke = Q(
5545
5545
  async (oe) => {
5546
5546
  const Oe = oe[(d == null ? void 0 : d.field_parent) || "child_id"], Re = await M.getHandler().readObjects({
5547
5547
  model: t,
@@ -5549,11 +5549,11 @@ const Jo = (e) => {
5549
5549
  fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
5550
5550
  context: u
5551
5551
  });
5552
- return me([...ce(), ...Re]), fr(It(d), Re);
5552
+ return me([...ce(), ...Re]), mr(It(d), Re);
5553
5553
  },
5554
5554
  [d, t, u, ce, me]
5555
5555
  ), xe = Q(async () => await M.getHandler().searchAllIds({
5556
- params: tn(F, S),
5556
+ params: nn(F, S),
5557
5557
  model: t,
5558
5558
  context: u,
5559
5559
  totalItems: P
@@ -5565,13 +5565,13 @@ const Jo = (e) => {
5565
5565
  tableRefreshing: C,
5566
5566
  searchFilterLoading: I,
5567
5567
  searchError: N,
5568
- page: K,
5568
+ page: W,
5569
5569
  offset: $,
5570
5570
  limit: Y.current,
5571
5571
  getResults: ce,
5572
5572
  requestPageChange: Fe,
5573
5573
  changeSort: Ee,
5574
- fetchChildrenForRecord: We,
5574
+ fetchChildrenForRecord: Ke,
5575
5575
  colorsForResults: Z,
5576
5576
  statusForResults: E,
5577
5577
  totalItems: P,
@@ -5579,7 +5579,7 @@ const Jo = (e) => {
5579
5579
  };
5580
5580
  };
5581
5581
  function _l(e, t) {
5582
- var Yt;
5582
+ var qt;
5583
5583
  const {
5584
5584
  model: n,
5585
5585
  formView: o,
@@ -5592,9 +5592,9 @@ function _l(e, t) {
5592
5592
  rootTree: f = !1,
5593
5593
  parentContext: d = {},
5594
5594
  onChangeSelectedRowKeys: p
5595
- } = e, [h, m] = b(!1), [y, g] = b(!1), w = ee(!1), S = ee(null), [x, O] = b(), [v, F] = b(), [T, R] = b(), [C, V] = b(), [I, _] = b(200), N = ee(), { height: D } = In(), K = X(
5595
+ } = e, [h, m] = b(!1), [y, g] = b(!1), w = ee(!1), S = ee(null), [x, O] = b(), [v, F] = b(), [T, R] = b(), [C, V] = b(), [I, _] = b(200), N = ee(), { height: D } = In(), W = X(
5596
5596
  Kt
5597
- ), { processAction: B } = K || {}, $ = X(
5597
+ ), { processAction: B } = W || {}, $ = X(
5598
5598
  nt
5599
5599
  ), {
5600
5600
  setResults: H = void 0,
@@ -5622,20 +5622,20 @@ function _l(e, t) {
5622
5622
  },
5623
5623
  [p, Z]
5624
5624
  ), {
5625
- submit: We,
5625
+ submit: Ke,
5626
5626
  clear: xe,
5627
5627
  fetchResults: oe,
5628
5628
  tableRefreshing: Oe,
5629
5629
  searchFilterLoading: Re,
5630
5630
  searchError: Ce,
5631
- page: W,
5631
+ page: K,
5632
5632
  limit: we,
5633
5633
  offset: Ve,
5634
5634
  getResults: He,
5635
5635
  requestPageChange: Me,
5636
5636
  changeSort: ne,
5637
5637
  fetchChildrenForRecord: Se,
5638
- colorsForResults: Ke,
5638
+ colorsForResults: We,
5639
5639
  statusForResults: ue,
5640
5640
  totalItems: rt,
5641
5641
  getAllIds: U
@@ -5663,7 +5663,7 @@ function _l(e, t) {
5663
5663
  setActionViewTotalItems: ce,
5664
5664
  limit: Ne,
5665
5665
  setLimit: Fe,
5666
- clearSelection: (Yt = S.current) == null ? void 0 : Yt.unselectAll
5666
+ clearSelection: (qt = S.current) == null ? void 0 : qt.unselectAll
5667
5667
  });
5668
5668
  yt(t, () => ({
5669
5669
  refreshResults: () => {
@@ -5673,7 +5673,7 @@ function _l(e, t) {
5673
5673
  getDomain: () => l
5674
5674
  })), de(() => {
5675
5675
  y && u && v && (w.current = !1, oe());
5676
- }, [W, Ve, y, u, a, v]);
5676
+ }, [K, Ve, y, u, a, v]);
5677
5677
  const fe = async () => {
5678
5678
  g(!1), m(!0), V(void 0), le == null || le(!0);
5679
5679
  try {
@@ -5753,7 +5753,7 @@ function _l(e, t) {
5753
5753
  [ae]
5754
5754
  ), mt = Q(() => !v || !T ? null : /* @__PURE__ */ k(se, { children: [
5755
5755
  /* @__PURE__ */ i(
5756
- Wo,
5756
+ Ko,
5757
5757
  {
5758
5758
  fields: { ...T.fields, ...v.fields },
5759
5759
  searchFields: Bo([
@@ -5764,7 +5764,7 @@ function _l(e, t) {
5764
5764
  limit: Ne,
5765
5765
  offset: Ve,
5766
5766
  isSearching: Re,
5767
- onSubmit: We,
5767
+ onSubmit: Ke,
5768
5768
  onLimitChange: ve,
5769
5769
  setSearchFilterHeight: _,
5770
5770
  searchError: Ce,
@@ -5779,14 +5779,14 @@ function _l(e, t) {
5779
5779
  context: d,
5780
5780
  total: rt,
5781
5781
  limit: we,
5782
- page: W,
5782
+ page: K,
5783
5783
  treeView: v,
5784
5784
  results: He(),
5785
5785
  onRequestPageChange: Me,
5786
5786
  loading: Oe,
5787
5787
  onRowClicked: Ae,
5788
5788
  scrollY: c || dt,
5789
- colorsForResults: Ke,
5789
+ colorsForResults: We,
5790
5790
  statusForResults: ue,
5791
5791
  selectedRowKeys: Ue,
5792
5792
  onRowSelectionChange: ke,
@@ -5803,7 +5803,7 @@ function _l(e, t) {
5803
5803
  ke,
5804
5804
  ne,
5805
5805
  xe,
5806
- Ke,
5806
+ We,
5807
5807
  Se,
5808
5808
  T,
5809
5809
  He,
@@ -5812,7 +5812,7 @@ function _l(e, t) {
5812
5812
  Ve,
5813
5813
  Ae,
5814
5814
  ve,
5815
- W,
5815
+ K,
5816
5816
  d,
5817
5817
  Me,
5818
5818
  f,
@@ -5824,7 +5824,7 @@ function _l(e, t) {
5824
5824
  Ue,
5825
5825
  z,
5826
5826
  ue,
5827
- We,
5827
+ Ke,
5828
5828
  Oe,
5829
5829
  rt,
5830
5830
  c,
@@ -5839,7 +5839,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
5839
5839
  centered: !0,
5840
5840
  content: e
5841
5841
  });
5842
- }, Wn = (e) => {
5842
+ }, Un = (e) => {
5843
5843
  const t = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
5844
5844
  Pt(t);
5845
5845
  }, wr = (e) => {
@@ -5913,7 +5913,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
5913
5913
  children: p("ok")
5914
5914
  }
5915
5915
  ),
5916
- /* @__PURE__ */ i(Pe, { icon: /* @__PURE__ */ i(nn, {}), onClick: S, children: p("cancel") })
5916
+ /* @__PURE__ */ i(Pe, { icon: /* @__PURE__ */ i(rn, {}), onClick: S, children: p("cancel") })
5917
5917
  ] }) })
5918
5918
  ] });
5919
5919
  return /* @__PURE__ */ k(se, { children: [
@@ -5933,7 +5933,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
5933
5933
  }
5934
5934
  ),
5935
5935
  /* @__PURE__ */ i(
5936
- Ut,
5936
+ Gt,
5937
5937
  {
5938
5938
  model: r,
5939
5939
  visible: l,
@@ -5965,7 +5965,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
5965
5965
  context: c,
5966
5966
  id: l,
5967
5967
  domain: u
5968
- } = o, f = r && !a ? { backgroundColor: Xo.colorPrimaryBg } : void 0, [d, p] = b(!1), [h, m] = b(!1), [y, g] = b(!1), [w, S] = b(), x = ee(!1), [O, v] = b(""), F = ee(), T = X(Le), { domain: R, getValues: C, getFields: V, getContext: I, elementHasLostFocus: _ } = T || {}, N = ee([]), [D, K] = b([]), B = t && t[0] || void 0, $ = t && t[1] || "";
5968
+ } = o, f = r && !a ? { backgroundColor: Xo.colorPrimaryBg } : void 0, [d, p] = b(!1), [h, m] = b(!1), [y, g] = b(!1), [w, S] = b(), x = ee(!1), [O, v] = b(""), F = ee(), T = X(Le), { domain: R, getValues: C, getFields: V, getContext: I, elementHasLostFocus: _ } = T || {}, N = ee([]), [D, W] = b([]), B = t && t[0] || void 0, $ = t && t[1] || "";
5969
5969
  de(() => {
5970
5970
  !Array.isArray(t) && t && ae(t);
5971
5971
  }, [t]), de(() => {
@@ -6037,11 +6037,11 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
6037
6037
  fields: V(),
6038
6038
  context: I()
6039
6039
  })), R && R.length > 0 && (N.current = N.current.concat(
6040
- Zn({
6040
+ er({
6041
6041
  domain: R,
6042
6042
  widgetFieldName: l
6043
6043
  })
6044
- )), K(N.current);
6044
+ )), W(N.current);
6045
6045
  }
6046
6046
  async function G(A) {
6047
6047
  A.keyCode === 13 ? (A.preventDefault(), A.stopPropagation(), await J()) : A.code === "Backspace" && B !== void 0 && (A.preventDefault(), A.stopPropagation(), H([void 0, ""]));
@@ -6074,7 +6074,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
6074
6074
  /* @__PURE__ */ i(ge, { flex: "none", style: { paddingRight: 0, paddingLeft: 0 }, children: /* @__PURE__ */ i(
6075
6075
  Pe,
6076
6076
  {
6077
- icon: /* @__PURE__ */ i(er, {}),
6077
+ icon: /* @__PURE__ */ i(tr, {}),
6078
6078
  disabled: B === void 0 || $ === "" || O === void 0,
6079
6079
  onClick: () => {
6080
6080
  m(!0);
@@ -6086,7 +6086,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
6086
6086
  /* @__PURE__ */ i(ge, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ i(
6087
6087
  Pe,
6088
6088
  {
6089
- icon: y ? /* @__PURE__ */ i(ft, {}) : /* @__PURE__ */ i(rr, {}),
6089
+ icon: y ? /* @__PURE__ */ i(ft, {}) : /* @__PURE__ */ i(or, {}),
6090
6090
  disabled: a || y,
6091
6091
  onClick: () => {
6092
6092
  x.current = !0, te($);
@@ -6112,7 +6112,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
6112
6112
  }
6113
6113
  ),
6114
6114
  /* @__PURE__ */ i(
6115
- Ut,
6115
+ Gt,
6116
6116
  {
6117
6117
  model: s,
6118
6118
  parentContext: { ...I == null ? void 0 : I(), ...c },
@@ -6133,7 +6133,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
6133
6133
  .ant-input {
6134
6134
  background-color: ${Xo.colorPrimaryBg};
6135
6135
  }
6136
- `, Gt = it.createContext(
6136
+ `, Yt = it.createContext(
6137
6137
  null
6138
6138
  ), Nl = ({
6139
6139
  children: e,
@@ -6141,7 +6141,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
6141
6141
  }) => {
6142
6142
  const [n, o] = b(t), [r, s] = b(0), [a, c] = b(!1);
6143
6143
  return /* @__PURE__ */ i(
6144
- Gt.Provider,
6144
+ Yt.Provider,
6145
6145
  {
6146
6146
  value: {
6147
6147
  currentView: n,
@@ -6283,7 +6283,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
6283
6283
  Qe,
6284
6284
  {
6285
6285
  tooltip: d ? "Unlink" : "Delete",
6286
- icon: d ? /* @__PURE__ */ i(Qi, {}) : /* @__PURE__ */ i(ar, {}),
6286
+ icon: d ? /* @__PURE__ */ i(Qi, {}) : /* @__PURE__ */ i(cr, {}),
6287
6287
  onClick: a,
6288
6288
  disabled: c === 0 || n || s !== "form" && h.length === 0
6289
6289
  }
@@ -6339,7 +6339,7 @@ const Qo = gt(_l), { error: Al } = et, Pt = (e) => {
6339
6339
  Qe,
6340
6340
  {
6341
6341
  tooltip: "Search existing item",
6342
- icon: /* @__PURE__ */ i(rr, {}),
6342
+ icon: /* @__PURE__ */ i(or, {}),
6343
6343
  disabled: n,
6344
6344
  onClick: p
6345
6345
  }
@@ -6374,7 +6374,7 @@ function Bl(e) {
6374
6374
  const Hl = (e) => {
6375
6375
  var rt;
6376
6376
  const { value: t, onChange: n, ooui: o, views: r } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: c, itemIndex: l, setItemIndex: u } = X(
6377
- Gt
6377
+ Yt
6378
6378
  ), f = X(Le), {
6379
6379
  activeId: d,
6380
6380
  getFields: p,
@@ -6382,7 +6382,7 @@ const Hl = (e) => {
6382
6382
  getContext: m,
6383
6383
  domain: y,
6384
6384
  fetchValues: g
6385
- } = f || {}, { t: w } = he(), [S, x] = b(!1), [O, v] = b(!1), [F, T] = b(), [R, C] = b(!1), [V, I] = b(!1), [_, N] = b(), [D, K] = b([]), [B, $] = b(!1), H = ee([]), [P, J] = b(), te = ee(), [ae, Z] = b(void 0), {
6385
+ } = f || {}, { t: w } = he(), [S, x] = b(!1), [O, v] = b(!1), [F, T] = b(), [R, C] = b(!1), [V, I] = b(!1), [_, N] = b(), [D, W] = b([]), [B, $] = b(!1), H = ee([]), [P, J] = b(), te = ee(), [ae, Z] = b(void 0), {
6386
6386
  readOnly: G,
6387
6387
  relation: E,
6388
6388
  context: A,
@@ -6415,7 +6415,7 @@ const Hl = (e) => {
6415
6415
  var fe, Te, ve;
6416
6416
  v(!0), x(!1), T(void 0);
6417
6417
  try {
6418
- const [_e, Ae] = await mr({
6418
+ const [_e, Ae] = await pr({
6419
6419
  treeView: {
6420
6420
  arch: (fe = r.get("tree")) == null ? void 0 : fe.arch,
6421
6421
  fields: (Te = r.get("tree")) == null ? void 0 : Te.fields
@@ -6445,7 +6445,7 @@ const Hl = (e) => {
6445
6445
  fields: p(),
6446
6446
  context: m()
6447
6447
  })), y && y.length > 0 && (H.current = H.current.concat(
6448
- Zn({
6448
+ er({
6449
6449
  domain: y,
6450
6450
  widgetFieldName: me
6451
6451
  })
@@ -6456,7 +6456,7 @@ const Hl = (e) => {
6456
6456
  a === "form" ? Oe(() => {
6457
6457
  c(fe);
6458
6458
  }) : c(fe);
6459
- }, We = () => {
6459
+ }, Ke = () => {
6460
6460
  l > 0 && (a === "form" ? Oe(() => {
6461
6461
  u(l - 1);
6462
6462
  }) : u(l - 1));
@@ -6484,7 +6484,7 @@ const Hl = (e) => {
6484
6484
  } : _e);
6485
6485
  pe(ve);
6486
6486
  }, Oe = (U) => {
6487
- S ? jt({
6487
+ S ? Wt({
6488
6488
  t: w,
6489
6489
  onOk: () => {
6490
6490
  oe(), U(), x(!1);
@@ -6512,7 +6512,7 @@ const Hl = (e) => {
6512
6512
  U && d && (fe = { [U]: d }), a === "form" ? Oe(() => {
6513
6513
  $(!0), N({ defaultValues: fe }), C(!0);
6514
6514
  }) : ($(!0), N({ defaultValues: fe }), C(!0));
6515
- }, W = async () => {
6515
+ }, K = async () => {
6516
6516
  a === "form" ? Oe(() => {
6517
6517
  I(!0);
6518
6518
  }) : I(!0);
@@ -6616,11 +6616,11 @@ const Hl = (e) => {
6616
6616
  return fe.parse(r.get(a).arch), fe.string;
6617
6617
  }
6618
6618
  }
6619
- const Ke = () => {
6619
+ const We = () => {
6620
6620
  var fe, Te, ve, _e;
6621
6621
  if (a === "form")
6622
6622
  return ce.length === 0 ? w("noCurrentEntries") : a !== q.current && s.some((Ae) => !Ae.values) ? /* @__PURE__ */ i(Be, {}) : /* @__PURE__ */ i(
6623
- Wt,
6623
+ Ut,
6624
6624
  {
6625
6625
  formView: r.get("form"),
6626
6626
  values: (fe = ce[l]) == null ? void 0 : fe.values,
@@ -6661,7 +6661,7 @@ const Hl = (e) => {
6661
6661
  onRowClicked: ((_e = r.get("form")) == null ? void 0 : _e.fields) !== void 0 ? Me : void 0,
6662
6662
  showPagination: !1,
6663
6663
  selectedRowKeys: D,
6664
- onRowSelectionChange: K,
6664
+ onRowSelectionChange: W,
6665
6665
  sorter: P,
6666
6666
  onChangeSort: J,
6667
6667
  context: { ...m == null ? void 0 : m(), ...A },
@@ -6701,17 +6701,17 @@ const Hl = (e) => {
6701
6701
  onDelete: Re,
6702
6702
  onCreateItem: Ce,
6703
6703
  onToggleViewMode: ke,
6704
- onPreviousItem: We,
6704
+ onPreviousItem: Ke,
6705
6705
  onNextItem: xe,
6706
- onSearchItem: W,
6706
+ onSearchItem: K,
6707
6707
  selectedRowKeys: D,
6708
6708
  showCreateButton: ((rt = r.get("form")) == null ? void 0 : rt.fields) !== void 0,
6709
6709
  showToggleButton: r.size > 1
6710
6710
  }
6711
6711
  ),
6712
- Ke(),
6712
+ We(),
6713
6713
  /* @__PURE__ */ i(
6714
- Ut,
6714
+ Gt,
6715
6715
  {
6716
6716
  formView: r.get("form"),
6717
6717
  model: E,
@@ -6771,14 +6771,14 @@ const Hl = (e) => {
6771
6771
  fields: o(),
6772
6772
  context: s()
6773
6773
  })), a && a.length > 0 && (n.current = n.current.concat(
6774
- Zn({
6774
+ er({
6775
6775
  domain: a,
6776
6776
  widgetFieldName: e
6777
6777
  })
6778
6778
  ));
6779
6779
  }
6780
6780
  return n.current;
6781
- }, Kl = ({
6781
+ }, Wl = ({
6782
6782
  treeView: e,
6783
6783
  relation: t,
6784
6784
  context: n
@@ -6804,7 +6804,7 @@ const Hl = (e) => {
6804
6804
  fields: e.fields,
6805
6805
  context: n,
6806
6806
  attrs: y
6807
- }), w = g[0], S = Zt(g[1]), x = Hn(g[1]);
6807
+ }), w = g[0], S = en(g[1]), x = jn(g[1]);
6808
6808
  return { results: w, colors: S, status: x };
6809
6809
  },
6810
6810
  [n, t, p.colors, e]
@@ -6818,7 +6818,7 @@ const Hl = (e) => {
6818
6818
  onChangeAllRowSelectedMode: l,
6819
6819
  allRowSelectedMode: c.current
6820
6820
  };
6821
- }, Wl = ({
6821
+ }, Kl = ({
6822
6822
  items: e,
6823
6823
  relation: t,
6824
6824
  context: n,
@@ -6826,7 +6826,7 @@ const Hl = (e) => {
6826
6826
  formView: r,
6827
6827
  triggerChange: s
6828
6828
  }) => {
6829
- const [a, c] = b(!1), { itemIndex: l } = X(Gt), { t: u } = he();
6829
+ const [a, c] = b(!1), { itemIndex: l } = X(Yt), { t: u } = he();
6830
6830
  de(() => {
6831
6831
  const m = e[l];
6832
6832
  (!m || (m == null ? void 0 : m.operation) === "original") && c(!1);
@@ -6867,7 +6867,7 @@ const Hl = (e) => {
6867
6867
  return {
6868
6868
  showFormChangesDialogIfNeeded: Q(
6869
6869
  (m) => {
6870
- a ? jt({
6870
+ a ? Wt({
6871
6871
  t: u,
6872
6872
  onOk: () => {
6873
6873
  p(), m(), c(!1);
@@ -6892,9 +6892,9 @@ const Hl = (e) => {
6892
6892
  onChange: s
6893
6893
  }) => {
6894
6894
  var l, u;
6895
- const { itemIndex: a } = X(Gt), { t: c } = he();
6895
+ const { itemIndex: a } = X(Yt), { t: c } = he();
6896
6896
  return t.length === 0 ? c("noCurrentEntries") : /* @__PURE__ */ i(
6897
- Wt,
6897
+ Ut,
6898
6898
  {
6899
6899
  formView: e,
6900
6900
  values: (l = t[a]) == null ? void 0 : l.values,
@@ -6924,7 +6924,7 @@ const Hl = (e) => {
6924
6924
  setSelectedRowKeys: s
6925
6925
  }) => {
6926
6926
  const { t: a } = he(), { currentView: c, itemIndex: l, setItemIndex: u } = X(
6927
- Gt
6927
+ Yt
6928
6928
  ), f = Q(async () => {
6929
6929
  const m = ql({
6930
6930
  selectedRowKeys: r,
@@ -6938,7 +6938,7 @@ const Hl = (e) => {
6938
6938
  } : w);
6939
6939
  t(g), s([]);
6940
6940
  } catch (y) {
6941
- Wn(y);
6941
+ Un(y);
6942
6942
  }
6943
6943
  u(0);
6944
6944
  }, [
@@ -6960,7 +6960,7 @@ const Hl = (e) => {
6960
6960
  } else
6961
6961
  t(n.filter((m) => m.id !== n[l].id));
6962
6962
  } catch (m) {
6963
- Wn(m);
6963
+ Un(m);
6964
6964
  }
6965
6965
  u(0);
6966
6966
  }, [n, l, o, u, t]), p = Q(async () => c === "form" ? await d() : await f(), [c, d, f]);
@@ -7101,7 +7101,7 @@ const zl = ({
7101
7101
  });
7102
7102
  }), o(m);
7103
7103
  } catch (g) {
7104
- Wn(g);
7104
+ Un(g);
7105
7105
  }
7106
7106
  },
7107
7107
  [r, n, a, o, s]
@@ -7166,16 +7166,35 @@ const zl = ({
7166
7166
  );
7167
7167
  return { getColumnState: s, updateColumnState: a };
7168
7168
  }, ed = (e) => {
7169
- const {
7170
- getColumnState: t,
7171
- updateColumnState: n
7172
- } = Xl(e);
7173
- Zl(e);
7174
- const o = st(async () => t(), [e]), r = st(
7175
- async (s) => n(s),
7169
+ const t = Rn(
7170
+ jt.FEATURE_USERVIEWPREFS
7171
+ ), {
7172
+ getColumnState: n,
7173
+ updateColumnState: o
7174
+ } = Xl(e), {
7175
+ getColumnState: r,
7176
+ updateColumnState: s
7177
+ } = Zl(e), a = st(async () => {
7178
+ if (!t)
7179
+ return n();
7180
+ try {
7181
+ return r();
7182
+ } catch (l) {
7183
+ return console.error(l), n();
7184
+ }
7185
+ }, [e]), c = st(
7186
+ async (l) => {
7187
+ if (!t)
7188
+ return o(l);
7189
+ try {
7190
+ return s(l);
7191
+ } catch (u) {
7192
+ return console.error(u), o(l);
7193
+ }
7194
+ },
7176
7195
  [e]
7177
7196
  );
7178
- return { getColumnState: o, updateColumnState: r };
7197
+ return { getColumnState: a, updateColumnState: c };
7179
7198
  }, wn = (e) => `columnState-${e.parentViewId}-${e.treeViewId}-${e.one2ManyFieldName}-${e.model}`, td = (e) => {
7180
7199
  const [t, n] = b(!0), o = ee(void 0), { getColumnState: r, updateColumnState: s } = ed(e);
7181
7200
  return de(() => {
@@ -7211,12 +7230,12 @@ const zl = ({
7211
7230
  }) => {
7212
7231
  const w = ee(), S = l || w, x = ee({}), O = ee(), v = ee(), F = ee(e);
7213
7232
  wt(() => {
7214
- var D, K;
7233
+ var D, W;
7215
7234
  if (F.current = e, v.current === void 0) {
7216
7235
  v.current = e;
7217
7236
  return;
7218
7237
  }
7219
- v.current = e, (D = S == null ? void 0 : S.current) == null || D.refresh(), (K = S == null ? void 0 : S.current) == null || K.unselectAll();
7238
+ v.current = e, (D = S == null ? void 0 : S.current) == null || D.refresh(), (W = S == null ? void 0 : S.current) == null || W.unselectAll();
7220
7239
  }, [e]);
7221
7240
  const T = fn(() => e.length, [e]), R = fn(() => Fo(
7222
7241
  r,
@@ -7225,14 +7244,14 @@ const zl = ({
7225
7244
  },
7226
7245
  s
7227
7246
  ), [s, r]), C = Q(
7228
- async (D, K) => {
7229
- const B = F.current, H = B.map((A) => A.id).slice(D, K), P = H.filter((A) => {
7247
+ async (D, W) => {
7248
+ const B = F.current, H = B.map((A) => A.id).slice(D, W), P = H.filter((A) => {
7230
7249
  const Y = B.find((z) => z.id === A);
7231
7250
  return Y && (Y.operation === "original" || Y.operation === "pendingLink");
7232
7251
  }), J = B.filter((A) => A && A.operation !== "original" && A.operation !== "pendingLink");
7233
7252
  if (P.length === 0 && J.length === 0)
7234
7253
  return [];
7235
- const { results: te, colors: ae, status: Z } = await a(P), G = fr(r, te), E = H.map((A) => {
7254
+ const { results: te, colors: ae, status: Z } = await a(P), G = mr(r, te), E = H.map((A) => {
7236
7255
  var z;
7237
7256
  const Y = G.find((me) => me.id === A);
7238
7257
  return Y || ((z = B.find((me) => me.id === A)) == null ? void 0 : z.treeValues);
@@ -7241,8 +7260,8 @@ const zl = ({
7241
7260
  },
7242
7261
  [a, r]
7243
7262
  ), V = Q((D) => {
7244
- var K, B, $, H;
7245
- if (x.current[(B = (K = D.node) == null ? void 0 : K.data) == null ? void 0 : B.id])
7263
+ var W, B, $, H;
7264
+ if (x.current[(B = (W = D.node) == null ? void 0 : W.data) == null ? void 0 : B.id])
7246
7265
  return { color: x.current[(H = ($ = D.node) == null ? void 0 : $.data) == null ? void 0 : H.id] };
7247
7266
  }, []), { loading: I, getColumnState: _, updateColumnState: N } = td({
7248
7267
  ...y,
@@ -7268,11 +7287,11 @@ const zl = ({
7268
7287
  onAllRowSelectedModeChange: h,
7269
7288
  totalRows: T,
7270
7289
  footer: g && /* @__PURE__ */ i(Ql, { aggregates: g }),
7271
- hasStatusColumn: !1,
7290
+ hasStatusColumn: r.status !== null,
7272
7291
  statusComponent: (D) => /* @__PURE__ */ i(no, { color: D }),
7273
7292
  onRowStatus: (D) => {
7274
- var K;
7275
- return (K = O.current) == null ? void 0 : K[D.id];
7293
+ var W;
7294
+ return (W = O.current) == null ? void 0 : W[D.id];
7276
7295
  }
7277
7296
  }
7278
7297
  );
@@ -7340,7 +7359,7 @@ const zl = ({
7340
7359
  }, sd = ["form", "tree", "graph"], ad = (e) => {
7341
7360
  var Re;
7342
7361
  const t = ee(null), { value: n, onChange: o, ooui: r, views: s } = e, { items: a = [] } = n || {}, c = Ul({ one2manyItems: a }), { currentView: l, setCurrentView: u, itemIndex: f, setItemIndex: d } = X(
7343
- Gt
7362
+ Yt
7344
7363
  ), {
7345
7364
  readOnly: p,
7346
7365
  relation: h,
@@ -7361,10 +7380,10 @@ const zl = ({
7361
7380
  setSelectedRowKeys: _,
7362
7381
  onChangeFirstVisibleRowIndex: N,
7363
7382
  onGetFirstVisibileRowIndex: D,
7364
- onGetSelectedRowKeys: K,
7383
+ onGetSelectedRowKeys: W,
7365
7384
  allRowSelectedMode: B,
7366
7385
  onChangeAllRowSelectedMode: $
7367
- } = Kl({
7386
+ } = Wl({
7368
7387
  treeView: s.get("tree"),
7369
7388
  relation: h,
7370
7389
  context: T
@@ -7378,9 +7397,9 @@ const zl = ({
7378
7397
  return Ce || r.label;
7379
7398
  }, [l, r.label, s]), J = r.type === "many2many", te = Q(
7380
7399
  (Ce) => {
7381
- var W, we;
7400
+ var K, we;
7382
7401
  o == null || o({
7383
- fields: ((W = s.get("form")) == null ? void 0 : W.fields) || ((we = s.get("tree")) == null ? void 0 : we.fields),
7402
+ fields: ((K = s.get("form")) == null ? void 0 : K.fields) || ((we = s.get("tree")) == null ? void 0 : we.fields),
7384
7403
  items: Ce
7385
7404
  });
7386
7405
  },
@@ -7390,7 +7409,7 @@ const zl = ({
7390
7409
  onFormChanges: Z,
7391
7410
  showFormChangesDialogIfNeeded: G,
7392
7411
  setFormHasChanges: E
7393
- } = Wl({
7412
+ } = Kl({
7394
7413
  items: c,
7395
7414
  formView: s.get("form"),
7396
7415
  treeView: s.get("tree"),
@@ -7437,15 +7456,15 @@ const zl = ({
7437
7456
  setFormHasChanges: E,
7438
7457
  selectedRowKeys: I,
7439
7458
  setSelectedRowKeys: _
7440
- }), We = () => {
7441
- const Ce = Array.from(s.keys()), W = Ce[(Ce.indexOf(l) + 1) % Ce.length];
7459
+ }), Ke = () => {
7460
+ const Ce = Array.from(s.keys()), K = Ce[(Ce.indexOf(l) + 1) % Ce.length];
7442
7461
  l === "form" ? G(() => {
7443
- u(W);
7444
- }) : u(W);
7462
+ u(K);
7463
+ }) : u(K);
7445
7464
  }, xe = st(
7446
7465
  (Ce) => {
7447
- var W;
7448
- (W = s.get("form")) != null && W.fields && le(Ce);
7466
+ var K;
7467
+ (K = s.get("form")) != null && K.fields && le(Ce);
7449
7468
  },
7450
7469
  // eslint-disable-next-line react-hooks/exhaustive-deps
7451
7470
  [c]
@@ -7478,7 +7497,7 @@ const zl = ({
7478
7497
  currentItemIndex: f,
7479
7498
  onDelete: ke,
7480
7499
  onCreateItem: q,
7481
- onToggleViewMode: We,
7500
+ onToggleViewMode: Ke,
7482
7501
  onPreviousItem: oe,
7483
7502
  onNextItem: Oe,
7484
7503
  onSearchItem: Fe,
@@ -7501,7 +7520,7 @@ const zl = ({
7501
7520
  relation: h,
7502
7521
  onChangeFirstVisibleRowIndex: N,
7503
7522
  onGetFirstVisibleRowIndex: D,
7504
- onGetSelectedRowKeys: K,
7523
+ onGetSelectedRowKeys: W,
7505
7524
  allRowSelectedMode: B,
7506
7525
  onAllRowSelectedModeChange: $,
7507
7526
  dataForHash: {
@@ -7524,7 +7543,7 @@ const zl = ({
7524
7543
  }
7525
7544
  ),
7526
7545
  /* @__PURE__ */ i(
7527
- Ut,
7546
+ Gt,
7528
7547
  {
7529
7548
  formView: s.get("form"),
7530
7549
  model: h,
@@ -7661,13 +7680,13 @@ const zl = ({
7661
7680
  function oi(e) {
7662
7681
  const { ooui: t, showLabel: n = !0, responsiveBehaviour: o } = e, r = at(t.icon || "");
7663
7682
  return /* @__PURE__ */ i(se, { children: (t.label || r) && n ? /* @__PURE__ */ i(ls, { label: t.label, icon: r, children: /* @__PURE__ */ i(
7664
- jn,
7683
+ Wn,
7665
7684
  {
7666
7685
  container: t.container,
7667
7686
  responsiveBehaviour: o
7668
7687
  }
7669
7688
  ) }) : /* @__PURE__ */ i(
7670
- jn,
7689
+ Wn,
7671
7690
  {
7672
7691
  container: t.container,
7673
7692
  responsiveBehaviour: o
@@ -7703,7 +7722,7 @@ function md(e) {
7703
7722
  s.label
7704
7723
  )) });
7705
7724
  }
7706
- const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
7725
+ const { useToken: pd } = je, { TextArea: Gn } = ot, hd = (e) => {
7707
7726
  const { ooui: t } = e, { id: n, readOnly: o, required: r, height: s, translatable: a } = t, { token: c } = pd(), l = r && !o ? { backgroundColor: c.colorPrimaryBg } : void 0, u = X(Le), { elementHasLostFocus: f } = u || {};
7708
7727
  return /* @__PURE__ */ i(be, { required: r, ...e, children: a ? /* @__PURE__ */ i(
7709
7728
  gd,
@@ -7713,7 +7732,7 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
7713
7732
  requiredStyle: l
7714
7733
  }
7715
7734
  ) : /* @__PURE__ */ i(
7716
- Un,
7735
+ Gn,
7717
7736
  {
7718
7737
  disabled: o || a,
7719
7738
  style: {
@@ -7752,7 +7771,7 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
7752
7771
  d || p(!0);
7753
7772
  },
7754
7773
  children: /* @__PURE__ */ i(
7755
- Un,
7774
+ Gn,
7756
7775
  {
7757
7776
  value: e,
7758
7777
  onChange: (m) => {
@@ -7789,7 +7808,7 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
7789
7808
  )
7790
7809
  ] }) : /* @__PURE__ */ k(se, { children: [
7791
7810
  /* @__PURE__ */ i(De, { gutter: 8, wrap: !1, children: /* @__PURE__ */ i(
7792
- Un,
7811
+ Gn,
7793
7812
  {
7794
7813
  value: e,
7795
7814
  onChange: (m) => {
@@ -7865,7 +7884,7 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
7865
7884
  return a.current["/"] = g, zr({ fields: g });
7866
7885
  }, [e, t, a]), d = Q(
7867
7886
  async (g) => {
7868
- const S = qn(g, a.current)[Yn(g)], x = S.relation, O = await M.getHandler().getFields({
7887
+ const S = zn(g, a.current)[qn(g)], x = S.relation, O = await M.getHandler().getFields({
7869
7888
  model: x,
7870
7889
  context: t,
7871
7890
  fields: []
@@ -7891,7 +7910,7 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
7891
7910
  predefinedExports: g.map((x) => ({
7892
7911
  ...x,
7893
7912
  fields: x.fields.map((O) => {
7894
- const v = Yn(O.key), T = qn(O.key, a.current)[v];
7913
+ const v = qn(O.key), T = zn(O.key, a.current)[v];
7895
7914
  return T ? {
7896
7915
  key: O.key,
7897
7916
  title: T.string
@@ -7978,12 +7997,12 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
7978
7997
  }, ii = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", vd = ({
7979
7998
  parentKey: e,
7980
7999
  key: t
7981
- }) => `${e ? e + "/" : ""}${t}`, Gn = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Yn = (e) => {
8000
+ }) => `${e ? e + "/" : ""}${t}`, Yn = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), qn = (e) => {
7982
8001
  if (e.indexOf("/") === -1)
7983
8002
  return e;
7984
8003
  const t = e.split("/");
7985
8004
  return t[t.length - 1];
7986
- }, qn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Gn(e)], bd = ({
8005
+ }, zn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Yn(e)], bd = ({
7987
8006
  title: e,
7988
8007
  parentTitle: t
7989
8008
  }) => `${t ? t + " → " : ""}${e}`, Cd = async ({
@@ -8013,8 +8032,8 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
8013
8032
  ...new Set(
8014
8033
  t.filter((n) => {
8015
8034
  var o, r;
8016
- return n.indexOf("/") === -1 ? !((o = e["/"]) != null && o[n]) : !((r = e == null ? void 0 : e[Gn(n)]) != null && r[n]);
8017
- }).map((n) => Gn(n))
8035
+ return n.indexOf("/") === -1 ? !((o = e["/"]) != null && o[n]) : !((r = e == null ? void 0 : e[Yn(n)]) != null && r[n]);
8036
+ }).map((n) => Yn(n))
8018
8037
  )
8019
8038
  ]), xd = async ({
8020
8039
  predefinedExports: e,
@@ -8041,7 +8060,7 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
8041
8060
  keys: e,
8042
8061
  fields: t
8043
8062
  }) => e.map((n) => {
8044
- const o = Yn(n), s = qn(n, t)[o];
8063
+ const o = qn(n), s = zn(n, t)[o];
8045
8064
  return ii(s) ? `${n}/id` : n;
8046
8065
  }), Id = (e) => {
8047
8066
  const t = /* @__PURE__ */ new Map(), n = [];
@@ -8133,7 +8152,7 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
8133
8152
  /* @__PURE__ */ i(ge, { flex: "1", children: /* @__PURE__ */ i(
8134
8153
  Oo,
8135
8154
  {
8136
- ooui: new Xn({
8155
+ ooui: new Zn({
8137
8156
  name: "model_selection",
8138
8157
  selection: s,
8139
8158
  readonly: a,
@@ -8217,7 +8236,7 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
8217
8236
  /* @__PURE__ */ i(
8218
8237
  Pe,
8219
8238
  {
8220
- icon: /* @__PURE__ */ i(er, {}),
8239
+ icon: /* @__PURE__ */ i(tr, {}),
8221
8240
  disabled: r,
8222
8241
  onClick: () => {
8223
8242
  u.current.click();
@@ -8232,7 +8251,7 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
8232
8251
  tooltip: p("download"),
8233
8252
  disabled: !n,
8234
8253
  onClick: y,
8235
- icon: /* @__PURE__ */ i(tr, {})
8254
+ icon: /* @__PURE__ */ i(nr, {})
8236
8255
  }
8237
8256
  ),
8238
8257
  /* @__PURE__ */ i(
@@ -8241,19 +8260,19 @@ const { useToken: pd } = je, { TextArea: Un } = ot, hd = (e) => {
8241
8260
  tooltip: p("clear"),
8242
8261
  disabled: r || !n,
8243
8262
  onClick: S,
8244
- icon: /* @__PURE__ */ i(nr, {})
8263
+ icon: /* @__PURE__ */ i(rr, {})
8245
8264
  }
8246
8265
  )
8247
8266
  ] }) })
8248
8267
  ] });
8249
- }, Mn = {
8250
- tree: /* @__PURE__ */ i(cr, {}),
8251
- form: /* @__PURE__ */ i(Qt, {}),
8268
+ }, Nn = {
8269
+ tree: /* @__PURE__ */ i(lr, {}),
8270
+ form: /* @__PURE__ */ i(Xt, {}),
8252
8271
  graph: /* @__PURE__ */ i(Zi, {}),
8253
8272
  calendar: /* @__PURE__ */ i(es, {})
8254
8273
  };
8255
8274
  function Jr(e) {
8256
- return e ? (Mn == null ? void 0 : Mn[e.type]) || /* @__PURE__ */ i(Qt, {}) : /* @__PURE__ */ i(Qt, {});
8275
+ return e ? (Nn == null ? void 0 : Nn[e.type]) || /* @__PURE__ */ i(Xt, {}) : /* @__PURE__ */ i(Xt, {});
8257
8276
  }
8258
8277
  function vr(e) {
8259
8278
  const {
@@ -8279,7 +8298,7 @@ function vr(e) {
8279
8298
  ], [n, t.view_id, c]);
8280
8299
  function u(d) {
8281
8300
  if (s) {
8282
- jt({
8301
+ Wt({
8283
8302
  t: c,
8284
8303
  onOk: () => {
8285
8304
  d();
@@ -8366,7 +8385,7 @@ function si(e) {
8366
8385
  nt
8367
8386
  ), { t: r } = he(), s = () => {
8368
8387
  if (n) {
8369
- jt({
8388
+ Wt({
8370
8389
  t: r,
8371
8390
  onOk: () => {
8372
8391
  o();
@@ -8446,7 +8465,7 @@ const Ld = (e) => {
8446
8465
  onRetrieveData: async () => [
8447
8466
  {
8448
8467
  items: n.map((d) => {
8449
- const p = d.link ? Vr : tr, h = /* @__PURE__ */ k(De, { wrap: !1, align: "middle", gutter: 8, children: [
8468
+ const p = d.link ? Vr : nr, h = /* @__PURE__ */ k(De, { wrap: !1, align: "middle", gutter: 8, children: [
8450
8469
  /* @__PURE__ */ i(ge, { style: { textAlign: "center" }, children: (d.datas_fname || d.link) && /* @__PURE__ */ i(
8451
8470
  bt,
8452
8471
  {
@@ -8464,7 +8483,7 @@ const Ld = (e) => {
8464
8483
  }
8465
8484
  ) }),
8466
8485
  /* @__PURE__ */ i(ge, { style: { textAlign: "center" }, children: /* @__PURE__ */ i(bt, { title: l("openAttachment"), children: /* @__PURE__ */ i(
8467
- Qt,
8486
+ Xt,
8468
8487
  {
8469
8488
  style: { cursor: "pointer" },
8470
8489
  onClick: () => {
@@ -8496,7 +8515,7 @@ const Ld = (e) => {
8496
8515
  (d = u.current) == null || d.close(), c();
8497
8516
  },
8498
8517
  children: [
8499
- /* @__PURE__ */ i(cr, {}),
8518
+ /* @__PURE__ */ i(lr, {}),
8500
8519
  " ",
8501
8520
  l("listAllAttachments")
8502
8521
  ]
@@ -8675,7 +8694,7 @@ function Bd({ toolbar: e }) {
8675
8694
  Kt
8676
8695
  ), { processAction: _ } = I || {}, N = X(
8677
8696
  ct
8678
- ), { openRelate: D, openDefaultActionForModel: K } = N || {};
8697
+ ), { openRelate: D, openDefaultActionForModel: W } = N || {};
8679
8698
  function B(E) {
8680
8699
  if (s) {
8681
8700
  Pd({
@@ -8690,7 +8709,7 @@ function Bd({ toolbar: e }) {
8690
8709
  }
8691
8710
  function $(E) {
8692
8711
  if (s) {
8693
- jt({
8712
+ Wt({
8694
8713
  t: V,
8695
8714
  onOk: () => {
8696
8715
  E();
@@ -8707,7 +8726,7 @@ function Bd({ toolbar: e }) {
8707
8726
  l && f > 0 ? (u == null || u(f - 1), d == null || d(l[f - 1].id)) : l && f === 0 && (u == null || u(l.length - 1), d == null || d(l[l.length - 1].id));
8708
8727
  }
8709
8728
  function J() {
8710
- rn({
8729
+ on({
8711
8730
  confirmMessage: V("confirmRemoveItem"),
8712
8731
  t: V,
8713
8732
  onOk: () => {
@@ -8784,7 +8803,7 @@ function Bd({ toolbar: e }) {
8784
8803
  /* @__PURE__ */ i(
8785
8804
  Je,
8786
8805
  {
8787
- icon: /* @__PURE__ */ i(lr, {}),
8806
+ icon: /* @__PURE__ */ i(dr, {}),
8788
8807
  tooltip: V("duplicate"),
8789
8808
  disabled: s || a || c === void 0 || y || S,
8790
8809
  loading: y,
@@ -8794,7 +8813,7 @@ function Bd({ toolbar: e }) {
8794
8813
  /* @__PURE__ */ i(
8795
8814
  Je,
8796
8815
  {
8797
- icon: /* @__PURE__ */ i(ar, {}),
8816
+ icon: /* @__PURE__ */ i(cr, {}),
8798
8817
  tooltip: V("delete"),
8799
8818
  disabled: a || c === void 0 || m || y || S,
8800
8819
  loading: m,
@@ -8873,7 +8892,7 @@ function Bd({ toolbar: e }) {
8873
8892
  /* @__PURE__ */ i(
8874
8893
  kt,
8875
8894
  {
8876
- icon: /* @__PURE__ */ i(or, {}),
8895
+ icon: /* @__PURE__ */ i(ir, {}),
8877
8896
  placement: "bottomRight",
8878
8897
  disabled: Z,
8879
8898
  onRetrieveData: async () => [
@@ -8889,7 +8908,7 @@ function Bd({ toolbar: e }) {
8889
8908
  /* @__PURE__ */ i(
8890
8909
  kt,
8891
8910
  {
8892
- icon: /* @__PURE__ */ i(ir, {}),
8911
+ icon: /* @__PURE__ */ i(sr, {}),
8893
8912
  disabled: Z,
8894
8913
  placement: "bottomRight",
8895
8914
  onRetrieveData: async () => [
@@ -8914,7 +8933,7 @@ function Bd({ toolbar: e }) {
8914
8933
  /* @__PURE__ */ i(
8915
8934
  kt,
8916
8935
  {
8917
- icon: /* @__PURE__ */ i(sr, {}),
8936
+ icon: /* @__PURE__ */ i(ar, {}),
8918
8937
  disabled: Z,
8919
8938
  placement: "bottomRight",
8920
8939
  onRetrieveData: async () => [
@@ -8945,7 +8964,7 @@ function Bd({ toolbar: e }) {
8945
8964
  if (!E.succeed)
8946
8965
  return;
8947
8966
  const A = E.currentId;
8948
- K({
8967
+ W({
8949
8968
  ...Qr(p, A),
8950
8969
  initialViewType: "form"
8951
8970
  });
@@ -8957,7 +8976,7 @@ function Bd({ toolbar: e }) {
8957
8976
  if (!E.succeed)
8958
8977
  return;
8959
8978
  const A = E.currentId;
8960
- K({
8979
+ W({
8961
8980
  ...Qr(p, A),
8962
8981
  initialViewType: "tree"
8963
8982
  });
@@ -8965,7 +8984,7 @@ function Bd({ toolbar: e }) {
8965
8984
  onViewAttachmentDetails: async (E) => {
8966
8985
  (await At({
8967
8986
  onFormSave: r
8968
- })).succeed && K({
8987
+ })).succeed && W({
8969
8988
  model: "ir.attachment",
8970
8989
  res_id: E.id,
8971
8990
  initialViewType: "form"
@@ -9065,7 +9084,7 @@ const { useToken: Hd } = je, ci = (e) => {
9065
9084
  valueValidator: (o) => o ? Es(o) : !1
9066
9085
  }
9067
9086
  ) });
9068
- }, Kd = (e) => {
9087
+ }, Wd = (e) => {
9069
9088
  const { ooui: t } = e, { required: n } = t;
9070
9089
  return /* @__PURE__ */ i(be, { required: n, ...e, children: /* @__PURE__ */ i(
9071
9090
  ci,
@@ -9075,7 +9094,7 @@ const { useToken: Hd } = je, ci = (e) => {
9075
9094
  valueValidator: (o) => o ? ks(o) : !1
9076
9095
  }
9077
9096
  ) });
9078
- }, Wd = (e) => {
9097
+ }, Kd = (e) => {
9079
9098
  const { visible: t, onIdSubmitted: n, onCancel: o, isSearching: r } = e, { t: s } = he(), a = ee(null), c = ee(!1);
9080
9099
  function l(u) {
9081
9100
  const f = u.id.split(",").map((d) => parseInt(d.trim()));
@@ -9115,7 +9134,7 @@ const { useToken: Hd } = je, ci = (e) => {
9115
9134
  /* @__PURE__ */ i(
9116
9135
  Pe,
9117
9136
  {
9118
- icon: /* @__PURE__ */ i(nn, {}),
9137
+ icon: /* @__PURE__ */ i(rn, {}),
9119
9138
  htmlType: "button",
9120
9139
  onClick: o,
9121
9140
  disabled: r,
@@ -9143,7 +9162,7 @@ const { useToken: Hd } = je, ci = (e) => {
9143
9162
  tabIndex: 0,
9144
9163
  loading: r,
9145
9164
  style: { marginLeft: 15 },
9146
- icon: /* @__PURE__ */ i(sr, {}),
9165
+ icon: /* @__PURE__ */ i(ar, {}),
9147
9166
  htmlType: "submit",
9148
9167
  type: "primary",
9149
9168
  disabled: r,
@@ -9244,7 +9263,7 @@ function Gd({ refreshGraph: e }) {
9244
9263
  ] });
9245
9264
  }
9246
9265
  const { useToken: Yd } = je, { Title: qd, Text: un } = Lt;
9247
- function Rn(e) {
9266
+ function Fn(e) {
9248
9267
  const { title: t, children: n } = e, {
9249
9268
  title: o,
9250
9269
  currentView: r,
@@ -9263,7 +9282,7 @@ function Rn(e) {
9263
9282
  /* @__PURE__ */ i(
9264
9283
  un,
9265
9284
  {
9266
- copyable: { icon: /* @__PURE__ */ i(lr, { style: { color: "red" } }) },
9285
+ copyable: { icon: /* @__PURE__ */ i(dr, { style: { color: "red" } }) },
9267
9286
  children: s
9268
9287
  }
9269
9288
  ),
@@ -9377,7 +9396,7 @@ const zd = (e) => {
9377
9396
  }, [C]), de(() => {
9378
9397
  t.view_id !== _.view_id && D(!0);
9379
9398
  }, [_]);
9380
- const { clear: K, searchFilterLoading: B, searchError: $, offset: H, tableRefreshing: P } = Jo({
9399
+ const { clear: W, searchFilterLoading: B, searchError: $, offset: H, tableRefreshing: P } = Jo({
9381
9400
  model: o,
9382
9401
  setSearchTreeNameSearch: v,
9383
9402
  setSelectedRowItems: m,
@@ -9401,7 +9420,7 @@ const zd = (e) => {
9401
9420
  setLimit: R
9402
9421
  });
9403
9422
  return !n || !t ? null : /* @__PURE__ */ k(se, { children: [
9404
- /* @__PURE__ */ i(Rn, { title: t.title || t.name, children: /* @__PURE__ */ i(
9423
+ /* @__PURE__ */ i(Fn, { title: t.title || t.name, children: /* @__PURE__ */ i(
9405
9424
  Gd,
9406
9425
  {
9407
9426
  refreshGraph: () => {
@@ -9410,7 +9429,7 @@ const zd = (e) => {
9410
9429
  }
9411
9430
  ) }),
9412
9431
  /* @__PURE__ */ i(
9413
- Wo,
9432
+ Ko,
9414
9433
  {
9415
9434
  fields: { ...c.fields, ...a.fields },
9416
9435
  searchFields: Bo([
@@ -9418,7 +9437,7 @@ const zd = (e) => {
9418
9437
  c.search_fields
9419
9438
  ]),
9420
9439
  limit: T,
9421
- onClear: K,
9440
+ onClear: W,
9422
9441
  offset: H,
9423
9442
  isSearching: B,
9424
9443
  onSubmit: (J) => {
@@ -9437,7 +9456,7 @@ const zd = (e) => {
9437
9456
  view_id: t.view_id,
9438
9457
  model: o,
9439
9458
  context: r,
9440
- domain: tn(C || [], s),
9459
+ domain: nn(C || [], s),
9441
9460
  limit: N ? T : void 0,
9442
9461
  manualIds: N ? h == null ? void 0 : h.map((J) => J.id) : void 0
9443
9462
  }
@@ -9459,9 +9478,9 @@ const zd = (e) => {
9459
9478
  setCurrentItemIndex: p
9460
9479
  } = e;
9461
9480
  return t ? /* @__PURE__ */ k(se, { children: [
9462
- /* @__PURE__ */ i(Rn, { children: /* @__PURE__ */ i(Bd, { toolbar: a == null ? void 0 : a.toolbar }) }),
9481
+ /* @__PURE__ */ i(Fn, { children: /* @__PURE__ */ i(Bd, { toolbar: a == null ? void 0 : a.toolbar }) }),
9463
9482
  /* @__PURE__ */ i(
9464
- Wt,
9483
+ Ut,
9465
9484
  {
9466
9485
  rootForm: !0,
9467
9486
  ref: n,
@@ -9547,11 +9566,11 @@ function Xd(e) {
9547
9566
  limit: F,
9548
9567
  totalItems: T,
9549
9568
  isActive: R
9550
- } = X(nt), { parentContext: C = {}, treeExpandable: V, toolbar: I } = e, _ = hr(
9551
- sn.FEATURE_ADVANCED_EXPORT
9569
+ } = X(nt), { parentContext: C = {}, treeExpandable: V, toolbar: I } = e, _ = Rn(
9570
+ jt.FEATURE_ADVANCED_EXPORT
9552
9571
  ), { t: N } = he(), D = X(
9553
9572
  Kt
9554
- ), { processAction: K } = D || {}, [B, $] = b(!1);
9573
+ ), { processAction: W } = D || {}, [B, $] = b(!1);
9555
9574
  xt(
9556
9575
  "ctrl+l,command+l",
9557
9576
  () => {
@@ -9569,7 +9588,7 @@ function Xd(e) {
9569
9588
  );
9570
9589
  const H = w !== void 0 && w.trim().length > 0;
9571
9590
  function P() {
9572
- rn({
9591
+ on({
9573
9592
  confirmMessage: N("confirmRemove"),
9574
9593
  t: N,
9575
9594
  onOk: () => {
@@ -9608,7 +9627,7 @@ function Xd(e) {
9608
9627
  }
9609
9628
  }
9610
9629
  function ae(G) {
9611
- K == null || K({
9630
+ W == null || W({
9612
9631
  actionData: G,
9613
9632
  values: {
9614
9633
  active_id: r == null ? void 0 : r.map((E) => E.id)[0],
@@ -9666,7 +9685,7 @@ function Xd(e) {
9666
9685
  /* @__PURE__ */ i(
9667
9686
  Je,
9668
9687
  {
9669
- icon: /* @__PURE__ */ i(lr, {}),
9688
+ icon: /* @__PURE__ */ i(dr, {}),
9670
9689
  tooltip: N("duplicate"),
9671
9690
  disabled: !r || (r == null ? void 0 : r.length) !== 1 || c || S,
9672
9691
  loading: c,
@@ -9676,7 +9695,7 @@ function Xd(e) {
9676
9695
  /* @__PURE__ */ i(
9677
9696
  Je,
9678
9697
  {
9679
- icon: /* @__PURE__ */ i(ar, {}),
9698
+ icon: /* @__PURE__ */ i(cr, {}),
9680
9699
  tooltip: N("delete"),
9681
9700
  disabled: !(r && (r == null ? void 0 : r.length) > 0) || S,
9682
9701
  loading: a,
@@ -9729,7 +9748,7 @@ function Xd(e) {
9729
9748
  /* @__PURE__ */ i(
9730
9749
  kt,
9731
9750
  {
9732
- icon: /* @__PURE__ */ i(or, {}),
9751
+ icon: /* @__PURE__ */ i(ir, {}),
9733
9752
  placement: "bottomRight",
9734
9753
  disabled: !(r && (r == null ? void 0 : r.length) > 0) || S,
9735
9754
  onRetrieveData: async () => [
@@ -9743,7 +9762,7 @@ function Xd(e) {
9743
9762
  /* @__PURE__ */ i(
9744
9763
  kt,
9745
9764
  {
9746
- icon: /* @__PURE__ */ i(ir, {}),
9765
+ icon: /* @__PURE__ */ i(sr, {}),
9747
9766
  placement: "bottomRight",
9748
9767
  disabled: !(r && (r == null ? void 0 : r.length) > 0) || S,
9749
9768
  onRetrieveData: async () => [
@@ -9833,7 +9852,7 @@ function Xd(e) {
9833
9852
  visible: B,
9834
9853
  onClose: () => $(!1),
9835
9854
  model: u,
9836
- domain: tn(
9855
+ domain: nn(
9837
9856
  ((Z = f == null ? void 0 : f.current) == null ? void 0 : Z.getDomain()) || [],
9838
9857
  h || []
9839
9858
  ),
@@ -9869,7 +9888,7 @@ const Zd = (e) => {
9869
9888
  nt
9870
9889
  );
9871
9890
  return t ? /* @__PURE__ */ k(se, { children: [
9872
- /* @__PURE__ */ i(Rn, { children: /* @__PURE__ */ i(
9891
+ /* @__PURE__ */ i(Fn, { children: /* @__PURE__ */ i(
9873
9892
  Xd,
9874
9893
  {
9875
9894
  toolbar: a == null ? void 0 : a.toolbar,
@@ -9981,7 +10000,7 @@ const ru = (e) => {
9981
10000
  s(a);
9982
10001
  },
9983
10002
  children: [
9984
- /* @__PURE__ */ i(Rn, { children: /* @__PURE__ */ i(tu, {}) }),
10003
+ /* @__PURE__ */ i(Fn, { children: /* @__PURE__ */ i(tu, {}) }),
9985
10004
  /* @__PURE__ */ i(
9986
10005
  fu,
9987
10006
  {
@@ -10030,7 +10049,7 @@ function iu(e, t) {
10030
10049
  limit: g
10031
10050
  } = e, [w, S] = b(), [x, O] = b([]), [v, F] = b(!0), T = p || void 0, [R, C] = b(
10032
10051
  T
10033
- ), [V, I] = b([]), [_, N] = b(), [D, K] = b([]), [B, $] = b(), [H, P] = b(0), [J, te] = b(!1), [ae, Z] = b(!1), [G, E] = b(), { t: A } = he(), Y = ee(), z = ee(), me = X(
10052
+ ), [V, I] = b([]), [_, N] = b(), [D, W] = b([]), [B, $] = b(), [H, P] = b(0), [J, te] = b(!1), [ae, Z] = b(!1), [G, E] = b(), { t: A } = he(), Y = ee(), z = ee(), me = X(
10034
10053
  ct
10035
10054
  ), {
10036
10055
  setCurrentView: ce,
@@ -10048,20 +10067,20 @@ function iu(e, t) {
10048
10067
  { enableOnFormTags: !0, preventDefault: !0 },
10049
10068
  [pe, le, w, _, D]
10050
10069
  );
10051
- function Fe(W) {
10052
- C(W), q == null || q(W);
10070
+ function Fe(K) {
10071
+ C(K), q == null || q(K);
10053
10072
  }
10054
- function ke(W) {
10055
- S(W);
10073
+ function ke(K) {
10074
+ S(K);
10056
10075
  const we = { action_id: h, action_type: m };
10057
- ce == null || ce({ ...W, extra: we });
10076
+ ce == null || ce({ ...K, extra: we });
10058
10077
  }
10059
10078
  yt(t, () => ({
10060
10079
  canWeClose: xe
10061
10080
  }));
10062
- const We = async () => {
10081
+ const Ke = async () => {
10063
10082
  F(!0);
10064
- const W = [], we = [];
10083
+ const K = [], we = [];
10065
10084
  for (const Me of s) {
10066
10085
  const [ne, Se] = Me;
10067
10086
  Se !== "dashboard" ? we.push({
@@ -10083,20 +10102,20 @@ function iu(e, t) {
10083
10102
  const [, ne] = Me.viewTuple, Se = Me.info;
10084
10103
  switch (ne) {
10085
10104
  case "dashboard": {
10086
- const Ke = s.find((rt) => {
10105
+ const We = s.find((rt) => {
10087
10106
  const [, U] = rt;
10088
10107
  return U === "form";
10089
10108
  });
10090
10109
  let ue;
10091
- Ke && (ue = {
10110
+ We && (ue = {
10092
10111
  action_id: h,
10093
10112
  action_type: m,
10094
10113
  name: a,
10095
10114
  res_id: r.active_id,
10096
10115
  res_model: o,
10097
- view_id: Ke[0],
10098
- view_type: Ke[1]
10099
- }), W.push({
10116
+ view_id: We[0],
10117
+ view_type: We[1]
10118
+ }), K.push({
10100
10119
  type: "dashboard",
10101
10120
  id: r.active_id,
10102
10121
  model: o,
@@ -10106,14 +10125,14 @@ function iu(e, t) {
10106
10125
  break;
10107
10126
  }
10108
10127
  case "form": {
10109
- W.push({
10128
+ K.push({
10110
10129
  ...Se,
10111
10130
  type: ne
10112
10131
  });
10113
10132
  break;
10114
10133
  }
10115
10134
  case "tree": {
10116
- W.push({
10135
+ K.push({
10117
10136
  ...Se,
10118
10137
  isExpandable: y,
10119
10138
  type: ne
@@ -10121,7 +10140,7 @@ function iu(e, t) {
10121
10140
  break;
10122
10141
  }
10123
10142
  case "graph": {
10124
- W.push({
10143
+ K.push({
10125
10144
  ...Se,
10126
10145
  type: ne
10127
10146
  });
@@ -10130,23 +10149,23 @@ function iu(e, t) {
10130
10149
  }
10131
10150
  }
10132
10151
  let He;
10133
- !u && W.find((Me) => Me.type === "tree") ? He = W.find(
10152
+ !u && K.find((Me) => Me.type === "tree") ? He = K.find(
10134
10153
  (ne) => ne.type === "tree"
10135
- ) : u ? He = W.find((ne) => u.id ? ne.type === u.type && ne.view_id === u.id : ne.type === u.type) : He = W.find(
10154
+ ) : u ? He = K.find((ne) => u.id ? ne.type === u.type && ne.view_id === u.id : ne.type === u.type) : He = K.find(
10136
10155
  (ne) => ne.type === "form"
10137
10156
  ), He || (Ze(
10138
10157
  `Error determining the first view to show for model ${o}.
10139
10158
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
10140
- ), Ne == null || Ne(l)), ke(He), O(W), F(!1);
10159
+ ), Ne == null || Ne(l)), ke(He), O(K), F(!1);
10141
10160
  };
10142
10161
  c({ tabKey: l, canWeClose: xe }), de(() => {
10143
- const W = x.find((Ve) => Ve.type === "tree"), we = x.find((Ve) => u.id ? Ve.type === u.type && Ve.view_id === u.id : Ve.type === u.type);
10144
- ke(we || W), p ? q == null || q(T) : (Fe(void 0), N(void 0)), We();
10162
+ const K = x.find((Ve) => Ve.type === "tree"), we = x.find((Ve) => u.id ? Ve.type === u.type && Ve.view_id === u.id : Ve.type === u.type);
10163
+ ke(we || K), p ? q == null || q(T) : (Fe(void 0), N(void 0)), Ke();
10145
10164
  }, [o, s, p]), de(() => {
10146
10165
  if (pe === l) {
10147
10166
  q == null || q(R);
10148
- const W = { action_id: h, action_type: m };
10149
- ce == null || ce({ ...w, extra: W });
10167
+ const K = { action_id: h, action_type: m };
10168
+ ce == null || ce({ ...w, extra: K });
10150
10169
  }
10151
10170
  }, [le, pe]);
10152
10171
  async function xe() {
@@ -10155,33 +10174,33 @@ Please, make sure the view ids on the fields_view_get responses are the same as
10155
10174
  async function oe() {
10156
10175
  pe === l && (w.type === "form" && !await Y.current.cancelUnsavedChanges() || te(!0));
10157
10176
  }
10158
- async function Oe(W, we) {
10177
+ async function Oe(K, we) {
10159
10178
  var Me;
10160
10179
  Z(!0);
10161
10180
  let Ve, He;
10162
- if (W.length === 1) {
10181
+ if (K.length === 1) {
10163
10182
  Ve = "form", He = [];
10164
- const ne = W[0], Se = D.findIndex((ue) => ue.id === ne);
10165
- let Ke;
10183
+ const ne = K[0], Se = D.findIndex((ue) => ue.id === ne);
10184
+ let We;
10166
10185
  if (Se === -1) {
10167
10186
  try {
10168
- Ke = (Me = await M.getHandler().readObjects({
10187
+ We = (Me = await M.getHandler().readObjects({
10169
10188
  model: o,
10170
10189
  ids: [ne],
10171
10190
  context: r
10172
10191
  })) == null ? void 0 : Me[0];
10173
10192
  } catch {
10174
10193
  }
10175
- if (!Ke) {
10194
+ if (!We) {
10176
10195
  Z(!1), te(!1), ht(A("idNotFound"));
10177
10196
  return;
10178
10197
  }
10179
10198
  } else
10180
- Ke = D[Se];
10199
+ We = D[Se];
10181
10200
  } else
10182
- Ve = "tree", He = [["id", "in", W]];
10201
+ Ve = "tree", He = [["id", "in", K]];
10183
10202
  if (Z(!1), te(!1), we && Ve === "form") {
10184
- Fe(W[0]);
10203
+ Fe(K[0]);
10185
10204
  const ne = x.find(
10186
10205
  (Se) => Se.type === "form"
10187
10206
  );
@@ -10198,43 +10217,43 @@ Please, make sure the view ids on the fields_view_get responses are the same as
10198
10217
  initialView: { id: ne == null ? void 0 : ne[0], type: Ve },
10199
10218
  action_id: h,
10200
10219
  action_type: m,
10201
- res_id: W[0]
10220
+ res_id: K[0]
10202
10221
  });
10203
10222
  }
10204
10223
  }
10205
10224
  function Re() {
10206
- return x.map((W) => {
10207
- switch (W.type) {
10225
+ return x.map((K) => {
10226
+ switch (K.type) {
10208
10227
  case "form":
10209
10228
  return /* @__PURE__ */ i(
10210
10229
  Jd,
10211
10230
  {
10212
10231
  formRef: Y,
10213
10232
  currentId: R,
10214
- visible: w.type === W.type && w.view_id === W.view_id,
10215
- formView: W,
10233
+ visible: w.type === K.type && w.view_id === K.view_id,
10234
+ formView: K,
10216
10235
  model: o,
10217
10236
  context: r,
10218
10237
  domain: n,
10219
10238
  defaultValues: f,
10220
10239
  forcedValues: d,
10221
10240
  results: D,
10222
- setResults: K,
10241
+ setResults: W,
10223
10242
  setCurrentItemIndex: N
10224
10243
  },
10225
- `${W.type}-${W.view_id}`
10244
+ `${K.type}-${K.view_id}`
10226
10245
  );
10227
10246
  case "tree":
10228
10247
  return /* @__PURE__ */ i(
10229
10248
  Zd,
10230
10249
  {
10231
- visible: w.type === W.type && w.view_id === W.view_id,
10250
+ visible: w.type === K.type && w.view_id === K.view_id,
10232
10251
  limit: g,
10233
10252
  model: o,
10234
10253
  context: r,
10235
10254
  domain: n,
10236
10255
  formView: x.find((we) => we.type === "form"),
10237
- treeView: W,
10256
+ treeView: K,
10238
10257
  searchTreeRef: z,
10239
10258
  searchTreeNameSearch: G,
10240
10259
  availableViews: x,
@@ -10243,30 +10262,30 @@ Please, make sure the view ids on the fields_view_get responses are the same as
10243
10262
  setCurrentId: Fe,
10244
10263
  setCurrentView: ke
10245
10264
  },
10246
- `${W.type}-${W.view_id}`
10265
+ `${K.type}-${K.view_id}`
10247
10266
  );
10248
10267
  case "graph":
10249
10268
  return /* @__PURE__ */ i(
10250
10269
  zd,
10251
10270
  {
10252
- visible: w.type === W.type && w.view_id === W.view_id,
10253
- viewData: W,
10271
+ visible: w.type === K.type && w.view_id === K.view_id,
10272
+ viewData: K,
10254
10273
  model: o,
10255
10274
  context: r,
10256
10275
  domain: n,
10257
10276
  treeView: x.find((we) => we.type === "tree"),
10258
10277
  formView: x.find((we) => we.type === "form")
10259
10278
  },
10260
- `${W.type}-${W.view_id}`
10279
+ `${K.type}-${K.view_id}`
10261
10280
  );
10262
10281
  case "dashboard":
10263
10282
  return /* @__PURE__ */ i(
10264
10283
  ru,
10265
10284
  {
10266
- dashboardData: W,
10267
- visible: w.type === W.type && w.view_id === W.view_id
10285
+ dashboardData: K,
10286
+ visible: w.type === K.type && w.view_id === K.view_id
10268
10287
  },
10269
- `${W.type}-${W.view_id}`
10288
+ `${K.type}-${K.view_id}`
10270
10289
  );
10271
10290
  }
10272
10291
  });
@@ -10276,10 +10295,10 @@ Please, make sure the view ids on the fields_view_get responses are the same as
10276
10295
  Y.current.clearAndReload();
10277
10296
  else {
10278
10297
  Fe(void 0);
10279
- const W = x.find(
10298
+ const K = x.find(
10280
10299
  (we) => we.type === "form"
10281
10300
  );
10282
- ke(W);
10301
+ ke(K);
10283
10302
  }
10284
10303
  }
10285
10304
  return v ? /* @__PURE__ */ i(Be, {}) : w ? /* @__PURE__ */ k(
@@ -10297,7 +10316,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
10297
10316
  setCurrentItemIndex: N,
10298
10317
  currentItemIndex: _,
10299
10318
  results: D,
10300
- setResults: K,
10319
+ setResults: W,
10301
10320
  currentModel: o,
10302
10321
  sorter: B,
10303
10322
  setSorter: $,
@@ -10313,7 +10332,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
10313
10332
  children: [
10314
10333
  Re(),
10315
10334
  /* @__PURE__ */ i(
10316
- Wd,
10335
+ Kd,
10317
10336
  {
10318
10337
  visible: J,
10319
10338
  onIdSubmitted: Oe,
@@ -10367,10 +10386,10 @@ function cu(e) {
10367
10386
  domain: s = [],
10368
10387
  visible: a = !0,
10369
10388
  parentContext: c = {}
10370
- } = e, [l, u] = b(!1), [f, d] = b(!1), [p, h] = b(), [m, y] = b(), [g, w] = b(), [S, x] = b(1), [O, v] = b(0), F = ee(Ot), T = ee([]), [R, C] = b(0), [V, I] = b([]), [_, N] = b(void 0), [D, K] = b(), [B, $] = b(), [H, P] = b(), [J, te] = b(!1), ae = ee([]), Z = (q) => {
10389
+ } = e, [l, u] = b(!1), [f, d] = b(!1), [p, h] = b(), [m, y] = b(), [g, w] = b(), [S, x] = b(1), [O, v] = b(0), F = ee(Ot), T = ee([]), [R, C] = b(0), [V, I] = b([]), [_, N] = b(void 0), [D, W] = b(), [B, $] = b(), [H, P] = b(), [J, te] = b(!1), ae = ee([]), Z = (q) => {
10371
10390
  te(!0), x(q), v((q - 1) * F.current);
10372
10391
  }, G = async () => {
10373
- const q = ae.current.length > 0 ? ae.current : s, le = tn(T.current, q), { colors: pe } = It(m), { totalItems: Ee, results: Ne, attrsEvaluated: Fe } = await M.getHandler().searchForTree({
10392
+ const q = ae.current.length > 0 ? ae.current : s, le = nn(T.current, q), { colors: pe } = It(m), { totalItems: Ee, results: Ne, attrsEvaluated: Fe } = await M.getHandler().searchForTree({
10374
10393
  params: le,
10375
10394
  limit: F.current,
10376
10395
  offset: O,
@@ -10379,15 +10398,15 @@ function cu(e) {
10379
10398
  context: c,
10380
10399
  attrs: pe && { colors: pe }
10381
10400
  });
10382
- N(Zt(Fe));
10401
+ N(en(Fe));
10383
10402
  const ke = Mt({
10384
10403
  resultsToSort: Ne,
10385
10404
  sorter: D,
10386
10405
  fields: { ...m.fields, ...g.fields }
10387
10406
  });
10388
10407
  te(!1), I(ke);
10389
- const We = await Ee;
10390
- C(We);
10408
+ const Ke = await Ee;
10409
+ C(Ke);
10391
10410
  }, E = async () => {
10392
10411
  try {
10393
10412
  te(!0), await G();
@@ -10456,7 +10475,7 @@ function cu(e) {
10456
10475
  colorsForResults: _,
10457
10476
  sorter: D,
10458
10477
  onChangeSort: (q) => {
10459
- K == null || K(q);
10478
+ W == null || W(q);
10460
10479
  const le = Mt({
10461
10480
  resultsToSort: V,
10462
10481
  sorter: q,
@@ -10470,7 +10489,7 @@ function cu(e) {
10470
10489
  ] });
10471
10490
  return H ? /* @__PURE__ */ i(Xe, { className: "mt-10", message: H, type: "error", banner: !0 }) : l ? /* @__PURE__ */ i(Be, { style: { padding: "2rem" } }) : ce();
10472
10491
  }
10473
- const lu = zn(cu), du = (e) => {
10492
+ const lu = Jn(cu), du = (e) => {
10474
10493
  const { model: t } = e, [n, o] = b();
10475
10494
  de(() => {
10476
10495
  r();
@@ -10483,8 +10502,8 @@ const lu = zn(cu), du = (e) => {
10483
10502
  });
10484
10503
  s.length > 0 && o(s[0].id);
10485
10504
  }
10486
- return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(Wt, { ...e, model: t, id: n, readOnly: !0 }) });
10487
- }, Nn = "line_ids";
10505
+ return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(Ut, { ...e, model: t, id: n, readOnly: !0 }) });
10506
+ }, Pn = "line_ids";
10488
10507
  function uu(e, t) {
10489
10508
  const { model: n, context: o = {}, id: r, configAction: s } = e, [a, c] = b([]), [l, u] = b(!1), [f, d] = b(), {
10490
10509
  setIsLoading: p,
@@ -10492,8 +10511,8 @@ function uu(e, t) {
10492
10511
  moveItemsEnabled: m
10493
10512
  } = X(br), y = ee(), g = ee(), [w] = qe(M.getHandler().getView), [S] = qe(
10494
10513
  M.getHandler().readObjects
10495
- ), [x] = qe(M.getHandler().update), O = hr(
10496
- sn.FEATURE_READFORVIEW
10514
+ ), [x] = qe(M.getHandler().update), O = Rn(
10515
+ jt.FEATURE_READFORVIEW
10497
10516
  );
10498
10517
  de(() => {
10499
10518
  v();
@@ -10506,10 +10525,10 @@ function uu(e, t) {
10506
10525
  async function v() {
10507
10526
  u(!0), p(!0), d(void 0);
10508
10527
  try {
10509
- const _ = await F(), N = await R(_), D = _.fields[Nn].relation, K = N[Nn].items;
10528
+ const _ = await F(), N = await R(_), D = _.fields[Pn].relation, W = N[Pn].items;
10510
10529
  g.current = _.fields;
10511
10530
  const B = await T({
10512
- items: K,
10531
+ items: W,
10513
10532
  model: D,
10514
10533
  context: o
10515
10534
  }), $ = await C(B);
@@ -10535,7 +10554,7 @@ function uu(e, t) {
10535
10554
  type: "form",
10536
10555
  context: D
10537
10556
  })).fields;
10538
- const [K] = await mr({
10557
+ const [W] = await pr({
10539
10558
  treeView: {
10540
10559
  fields: y.current
10541
10560
  },
@@ -10547,7 +10566,7 @@ function uu(e, t) {
10547
10566
  context: D,
10548
10567
  currentView: "form"
10549
10568
  });
10550
- return K;
10569
+ return W;
10551
10570
  }
10552
10571
  async function R(_) {
10553
10572
  return (await S({
@@ -10559,13 +10578,13 @@ function uu(e, t) {
10559
10578
  }
10560
10579
  async function C(_) {
10561
10580
  const N = [];
10562
- for (const K of _) {
10563
- const { values: B } = K;
10581
+ for (const W of _) {
10582
+ const { values: B } = W;
10564
10583
  if (B.action_id && B.action_id.length > 0) {
10565
10584
  const $ = parseInt(B.action_id[0], 10), H = Do({
10566
10585
  actionId: $,
10567
10586
  rootContext: o
10568
- }).then((P) => ({ ...K, actionData: P }));
10587
+ }).then((P) => ({ ...W, actionData: P }));
10569
10588
  N.push(H);
10570
10589
  }
10571
10590
  }
@@ -10590,7 +10609,7 @@ function uu(e, t) {
10590
10609
  });
10591
10610
  if (N.length === 0)
10592
10611
  return;
10593
- const K = a.filter(($) => N.map((H) => H.id).includes($.id)).map(($) => {
10612
+ const W = a.filter(($) => N.map((H) => H.id).includes($.id)).map(($) => {
10594
10613
  const H = {
10595
10614
  ...N.find((P) => P.id === $.id)
10596
10615
  };
@@ -10604,12 +10623,12 @@ function uu(e, t) {
10604
10623
  };
10605
10624
  }), B = {
10606
10625
  fields: y.current,
10607
- items: K
10626
+ items: W
10608
10627
  };
10609
10628
  await x({
10610
10629
  model: n,
10611
10630
  id: r,
10612
- values: { [Nn]: B },
10631
+ values: { [Pn]: B },
10613
10632
  fields: g.current,
10614
10633
  context: o
10615
10634
  });
@@ -10618,7 +10637,7 @@ function uu(e, t) {
10618
10637
  h(s);
10619
10638
  }
10620
10639
  return l ? /* @__PURE__ */ i(ft, {}) : f ? /* @__PURE__ */ i(Xe, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(au, { onPositionItemsChanged: V, children: a.map((_, N) => {
10621
- const { actionData: D, values: K } = _, { position: B, id: $ } = K, {
10640
+ const { actionData: D, values: W } = _, { position: B, id: $ } = W, {
10622
10641
  actionId: H,
10623
10642
  actionType: P,
10624
10643
  key: J,
@@ -10638,7 +10657,7 @@ function uu(e, t) {
10638
10657
  }
10639
10658
  let me = null;
10640
10659
  if ((A == null ? void 0 : A.type) === "graph") {
10641
- const pe = K.server_action === !0 && O ? Lo : Ht;
10660
+ const pe = W.server_action === !0 && O ? Lo : Ht;
10642
10661
  me = /* @__PURE__ */ i(
10643
10662
  pe,
10644
10663
  {
@@ -10672,12 +10691,12 @@ function uu(e, t) {
10672
10691
  const [Ee, Ne] = pe, {
10673
10692
  actionId: Fe,
10674
10693
  actionType: ke,
10675
- title: We,
10694
+ title: Ke,
10676
10695
  model: xe
10677
10696
  } = D, oe = {
10678
10697
  action_id: Fe,
10679
10698
  action_type: ke,
10680
- name: We,
10699
+ name: Ke,
10681
10700
  res_id: le.id,
10682
10701
  res_model: xe,
10683
10702
  view_id: Ee,
@@ -10810,13 +10829,13 @@ const fu = gt(uu), mu = (e) => {
10810
10829
  };
10811
10830
  return f && a.length === 0 ? /* @__PURE__ */ i(Be, {}) : /* @__PURE__ */ i(se, { children: /* @__PURE__ */ k("div", { className: "flex flex-row", children: [
10812
10831
  /* @__PURE__ */ i(
10813
- Jt.Group,
10832
+ Qt.Group,
10814
10833
  {
10815
10834
  value: a.length ? s : [],
10816
10835
  disabled: m,
10817
10836
  onChange: T,
10818
10837
  style: { width: "100%" },
10819
- children: /* @__PURE__ */ i(De, { children: a.map((R) => /* @__PURE__ */ i(ge, { span: Math.floor(24 / g), children: /* @__PURE__ */ i(Jt, { value: R.value, children: R.label }) })) })
10838
+ children: /* @__PURE__ */ i(De, { children: a.map((R) => /* @__PURE__ */ i(ge, { span: Math.floor(24 / g), children: /* @__PURE__ */ i(Qt, { value: R.value, children: R.label }) })) })
10820
10839
  }
10821
10840
  ),
10822
10841
  !m && /* @__PURE__ */ k(ze, { children: [
@@ -10893,7 +10912,7 @@ const fu = gt(uu), mu = (e) => {
10893
10912
  }
10894
10913
  }
10895
10914
  ) });
10896
- }, { Meta: Tu } = Jn, { Text: Iu } = Lt, Ou = ({ email: e, size: t = 40, theme: n = "" }) => {
10915
+ }, { Meta: Tu } = Qn, { Text: Iu } = Lt, Ou = ({ email: e, size: t = 40, theme: n = "" }) => {
10897
10916
  const o = `https://www.gravatar.com/avatar/${Ls(
10898
10917
  e
10899
10918
  )}?s=${t}&d=${n}`;
@@ -10909,7 +10928,7 @@ function Ru({ text: e }) {
10909
10928
  }
10910
10929
  const Fu = (e) => {
10911
10930
  const { data: t, style: n } = e, { t: o } = he();
10912
- return /* @__PURE__ */ k(Jn, { style: { ...n, textAlign: "start" }, children: [
10931
+ return /* @__PURE__ */ k(Qn, { style: { ...n, textAlign: "start" }, children: [
10913
10932
  /* @__PURE__ */ i(
10914
10933
  Tu,
10915
10934
  {
@@ -10938,7 +10957,7 @@ const Fu = (e) => {
10938
10957
  children: /* @__PURE__ */ i(Fu, { data: o.event })
10939
10958
  };
10940
10959
  });
10941
- return /* @__PURE__ */ i(Pn, { mode: "alternate", items: n });
10960
+ return /* @__PURE__ */ i(Ln, { mode: "alternate", items: n });
10942
10961
  }, _u = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(Vu, {}) }), Au = (e) => /* @__PURE__ */ i(be, { ...e, children: /* @__PURE__ */ i(us, {}) }), Du = (e) => {
10943
10962
  const { ooui: t } = e, { title: n, text: o, alertType: r, icon: s } = t;
10944
10963
  function a(c) {
@@ -10950,8 +10969,8 @@ const Fu = (e) => {
10950
10969
  return /* @__PURE__ */ i(
10951
10970
  Xe,
10952
10971
  {
10953
- message: /* @__PURE__ */ i(Xt, { content: n }),
10954
- description: /* @__PURE__ */ i(Xt, { content: o }),
10972
+ message: /* @__PURE__ */ i(Zt, { content: n }),
10973
+ description: /* @__PURE__ */ i(Zt, { content: o }),
10955
10974
  type: r,
10956
10975
  showIcon: !0,
10957
10976
  icon: a(s)
@@ -10963,7 +10982,7 @@ function Mu() {
10963
10982
  return /* @__PURE__ */ i(Eu, { className: "m-5 select-none", children: /* @__PURE__ */ i(ku, { level: 5, children: e("welcome") }) });
10964
10983
  }
10965
10984
  function Nu(e, t) {
10966
- const { children: n } = e, [o, r] = b("welcome"), { t: s } = he(), { globalValues: a, rootContext: c } = pr(), [l, u] = b([
10985
+ const { children: n } = e, [o, r] = b("welcome"), { t: s } = he(), { globalValues: a, rootContext: c } = hr(), [l, u] = b([
10967
10986
  {
10968
10987
  title: s("welcome"),
10969
10988
  key: "welcome",
@@ -11008,7 +11027,7 @@ function Nu(e, t) {
11008
11027
  context: V.context,
11009
11028
  values: a,
11010
11029
  fields: {}
11011
- }), K = V.domain ? await M.getHandler().evalDomain({
11030
+ }), W = V.domain ? await M.getHandler().evalDomain({
11012
11031
  domain: V.domain,
11013
11032
  values: a,
11014
11033
  context: { ...c, ...D }
@@ -11047,7 +11066,7 @@ function Nu(e, t) {
11047
11066
  G = { id: E, type: A };
11048
11067
  }
11049
11068
  x({
11050
- domain: [...K, ...C],
11069
+ domain: [...W, ...C],
11051
11070
  context: { ...c, ...D },
11052
11071
  model: B,
11053
11072
  views: Z,
@@ -11095,7 +11114,7 @@ function Nu(e, t) {
11095
11114
  views: _,
11096
11115
  target: N,
11097
11116
  string: D,
11098
- limit: K
11117
+ limit: W
11099
11118
  } = O, [B, $] = _[0], H = { id: B, type: $ }, P = Tt({
11100
11119
  context: V,
11101
11120
  values: { ...F, ...a },
@@ -11119,7 +11138,7 @@ function Nu(e, t) {
11119
11138
  initialView: H,
11120
11139
  action_id: T,
11121
11140
  action_type: R,
11122
- limit: K
11141
+ limit: W
11123
11142
  });
11124
11143
  }
11125
11144
  async function w(O) {
@@ -11142,7 +11161,7 @@ function Nu(e, t) {
11142
11161
  values: { ...a, ...V },
11143
11162
  context: { ...c, ...N }
11144
11163
  }) : [], {
11145
- res_model: K,
11164
+ res_model: W,
11146
11165
  views: B,
11147
11166
  name: $,
11148
11167
  target: H,
@@ -11157,7 +11176,7 @@ function Nu(e, t) {
11157
11176
  ae.push([void 0, "dashboard"]);
11158
11177
  else {
11159
11178
  const { view_id: me } = await M.getHandler().getView({
11160
- model: K,
11179
+ model: W,
11161
11180
  type: z,
11162
11181
  id: Y,
11163
11182
  context: { ...c, ...N }
@@ -11175,7 +11194,7 @@ function Nu(e, t) {
11175
11194
  x({
11176
11195
  domain: D,
11177
11196
  context: { ...c, ...N },
11178
- model: K,
11197
+ model: W,
11179
11198
  views: ae,
11180
11199
  title: $,
11181
11200
  target: H,
@@ -11217,11 +11236,11 @@ function Nu(e, t) {
11217
11236
  action_type: _,
11218
11237
  res_id: N,
11219
11238
  values: D,
11220
- forced_values: K,
11239
+ forced_values: W,
11221
11240
  treeExpandable: B = !1,
11222
11241
  limit: $
11223
11242
  }) {
11224
- const H = ur();
11243
+ const H = fr();
11225
11244
  if (C !== "current") {
11226
11245
  const P = await M.getHandler().getView({
11227
11246
  model: F,
@@ -11264,7 +11283,7 @@ function Nu(e, t) {
11264
11283
  initialView: P,
11265
11284
  res_id: N,
11266
11285
  formDefaultValues: D,
11267
- formForcedValues: K,
11286
+ formForcedValues: W,
11268
11287
  treeExpandable: B,
11269
11288
  limit: $
11270
11289
  }
@@ -11356,7 +11375,7 @@ function Lu(e) {
11356
11375
  alignItems: "center"
11357
11376
  },
11358
11377
  children: /* @__PURE__ */ i(
11359
- nn,
11378
+ rn,
11360
11379
  {
11361
11380
  style: {
11362
11381
  color: a.colorPrimaryActive
@@ -11469,7 +11488,7 @@ const { useToken: Hu } = je, Nf = (e) => {
11469
11488
  ...N,
11470
11489
  id: N.id,
11471
11490
  name: N.name,
11472
- icon: N.view_type === "tree" ? /* @__PURE__ */ i(cr, {}) : /* @__PURE__ */ i(Qt, {})
11491
+ icon: N.view_type === "tree" ? /* @__PURE__ */ i(lr, {}) : /* @__PURE__ */ i(Xt, {})
11473
11492
  }))
11474
11493
  }
11475
11494
  ];
@@ -11480,16 +11499,16 @@ const { useToken: Hu } = je, Nf = (e) => {
11480
11499
  if (!w)
11481
11500
  return;
11482
11501
  const I = y.find((B) => B.key === g), { id: _, type: N } = (I == null ? void 0 : I.action) || {}, D = w.view_id;
11483
- let K = !1;
11502
+ let W = !1;
11484
11503
  if (!_ || !N) {
11485
11504
  c(!1);
11486
11505
  return;
11487
11506
  }
11488
- w.type === "form" && (K = S || !1), await o({
11507
+ w.type === "form" && (W = S || !1), await o({
11489
11508
  action_id: _,
11490
11509
  action_type: N,
11491
11510
  view_id: D,
11492
- res_id: K
11511
+ res_id: W
11493
11512
  });
11494
11513
  }
11495
11514
  await C(), c(!a);
@@ -11549,15 +11568,15 @@ export {
11549
11568
  au as DashboardGrid,
11550
11569
  Rd as Date,
11551
11570
  Fd as DateTime,
11552
- Kd as Email,
11571
+ Wd as Email,
11553
11572
  Df as ErpAllFeatureKeys,
11554
- sn as ErpFeatureKeys,
11573
+ jt as ErpFeatureKeys,
11555
11574
  Od as ExportModal,
11556
11575
  Nf as FavouriteButton,
11557
- Ko as Float,
11576
+ Wo as Float,
11558
11577
  dd as FloatTime,
11559
- Wt as Form,
11560
- Ut as FormModal,
11578
+ Ut as Form,
11579
+ Gt as FormModal,
11561
11580
  $o as GraphCard,
11562
11581
  ka as GraphIndicator,
11563
11582
  oi as Group,
@@ -11574,7 +11593,7 @@ export {
11574
11593
  yu as Radio,
11575
11594
  Ad as Reference,
11576
11595
  Ef as RootView,
11577
- Wo as SearchFilter,
11596
+ Ko as SearchFilter,
11578
11597
  wr as SearchModal,
11579
11598
  Qo as SearchTree,
11580
11599
  Io as Selection,
@@ -11590,6 +11609,6 @@ export {
11590
11609
  an as Tree,
11591
11610
  jd as Url,
11592
11611
  at as iconMapper,
11593
- rn as showConfirmDialog
11612
+ on as showConfirmDialog
11594
11613
  };
11595
11614
  //# sourceMappingURL=react-ooui.es.js.map