@gisce/react-ooui 2.11.0 → 2.11.1

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 Ci = Object.defineProperty;
2
2
  var xi = (e, t, n) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Cr = (e, t, n) => (xi(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsxs as D, jsx as i, Fragment as oe } from "react/jsx-runtime";
5
- import ot, { useContext as Z, useState as v, useEffect as ue, useRef as re, memo as Wn, useMemo as Ie, useCallback as J, createContext as Si, forwardRef as ht, useImperativeHandle as gt, createElement as Ti, Fragment as Jr } from "react";
6
- import { Tooltip as wt, theme as Ke, Typography as Nt, Form as dt, Row as Ve, Col as ye, Modal as Ze, Button as Ne, Dropdown as Ii, Menu as xr, Spin as je, Divider as pn, Space as Ue, Input as it, Select as Ot, Checkbox as qt, Alert as Je, Timeline as Dn, Statistic as Fi, Card as Gn, Tag as Xr, message as On, DatePicker as Un, TimePicker as Oi, InputNumber as Qr, Progress as Ri, Avatar as Zr, Pagination as Vi, Badge as _i, Tabs as eo, Radio as Sr, Switch as Ai, Steps as Tr, Layout as Di } from "antd";
7
- import { Label as Lt, Field as En, Tree as to, Reference as Ei, Selection as Yn, Many2one as no, Boolean as ki, parseContext as St, graphProcessor as ro, parseGraph as qn, graphFieldUtils as Mi, Container as Pi, Form as oo, Integer as kn, SearchFieldTypes as yt, SearchFilter as Ni, parseContextFields as Li, parseDomainFields as $i, transformDomainForChildWidget as zn } from "@gisce/ooui";
5
+ import ot, { useContext as Z, useState as v, useEffect as ue, useRef as re, memo as Gn, useMemo as Ie, useCallback as J, createContext as Si, forwardRef as ht, useImperativeHandle as gt, createElement as Ti, Fragment as Jr } from "react";
6
+ import { Tooltip as wt, theme as Ke, Typography as Nt, Form as dt, Row as Ve, Col as ye, Modal as Ze, Button as Ne, Dropdown as Ii, Menu as xr, Spin as je, Divider as hn, Space as Ue, Input as it, Select as Ot, Checkbox as qt, Alert as Je, Timeline as En, Statistic as Fi, Card as Un, Tag as Xr, message as Rn, DatePicker as Yn, TimePicker as Oi, InputNumber as Qr, Progress as Ri, Avatar as Zr, Pagination as Vi, Badge as _i, Tabs as eo, Radio as Sr, Switch as Ai, Steps as Tr, Layout as Di } from "antd";
7
+ import { Label as Lt, Field as kn, Tree as to, Reference as Ei, Selection as qn, Many2one as no, Boolean as ki, parseContext as St, graphProcessor as ro, parseGraph as zn, graphFieldUtils as Mi, Container as Pi, Form as oo, Integer as Mn, SearchFieldTypes as yt, SearchFilter as Ni, parseContextFields as Li, parseDomainFields as $i, transformDomainForChildWidget as Jn } from "@gisce/ooui";
8
8
  import * as Ir from "@ant-design/icons";
9
- import io, { QuestionCircleOutlined as so, ExclamationCircleOutlined as vt, LoadingOutlined as ut, DownOutlined as hn, WarningOutlined as ao, CloseOutlined as en, CheckOutlined as gn, TranslationOutlined as co, FolderOpenOutlined as Jn, DownloadOutlined as Xn, ClearOutlined as Qn, ExportOutlined as Hi, StarFilled as Bi, StarOutlined as ji, UpOutlined as Ki, SearchOutlined as Zn, ThunderboltOutlined as er, PrinterOutlined as tr, EnterOutlined as nr, PlusSquareOutlined as Wi, MinusSquareOutlined as Gi, FileAddOutlined as yn, AlignLeftOutlined as Ui, ApiOutlined as Yi, DeleteOutlined as rr, LeftOutlined as lo, RightOutlined as uo, EyeOutlined as qi, FormOutlined as zt, TableOutlined as or, AreaChartOutlined as zi, CalendarOutlined as Ji, LinkOutlined as Fr, SaveOutlined as Xi, CopyOutlined as ir, InfoCircleOutlined as fo, ReloadOutlined as wn, EditOutlined as mo, PlusOutlined as Qi, FilterOutlined as po, CloseCircleFilled as Zi, BorderOuterOutlined as es, SettingOutlined as ts } from "@ant-design/icons";
9
+ import io, { QuestionCircleOutlined as so, ExclamationCircleOutlined as vt, LoadingOutlined as ut, DownOutlined as gn, WarningOutlined as ao, CloseOutlined as en, CheckOutlined as yn, TranslationOutlined as co, FolderOpenOutlined as Xn, DownloadOutlined as Qn, ClearOutlined as Zn, ExportOutlined as Hi, StarFilled as Bi, StarOutlined as ji, UpOutlined as Ki, SearchOutlined as er, ThunderboltOutlined as tr, PrinterOutlined as nr, EnterOutlined as rr, PlusSquareOutlined as Wi, MinusSquareOutlined as Gi, FileAddOutlined as wn, AlignLeftOutlined as Ui, ApiOutlined as Yi, DeleteOutlined as or, LeftOutlined as lo, RightOutlined as uo, EyeOutlined as qi, FormOutlined as zt, TableOutlined as ir, AreaChartOutlined as zi, CalendarOutlined as Ji, LinkOutlined as Fr, SaveOutlined as Xi, CopyOutlined as sr, InfoCircleOutlined as fo, ReloadOutlined as vn, EditOutlined as mo, PlusOutlined as Qi, FilterOutlined as po, CloseCircleFilled as Zi, BorderOuterOutlined as es, SettingOutlined as ts } from "@ant-design/icons";
10
10
  import { Interweave as Jt } from "interweave";
11
11
  import { useLocale as he, FormigaConfigProvider as ns, mergeStrings as rs, Many2OneSuffix as os, Many2OneSuffixModal as Or, FieldSet as is, ExportModal as ss, Dropdown as ho, DropdownButton as Et, HTMLPreview as as, FavouriteButton as cs } from "@gisce/react-formiga-components";
12
12
  import * as Rr from "@tabler/icons-react";
13
13
  import ls from "antd/lib/input/TextArea";
14
14
  import $t from "styled-components";
15
- import sr from "react-measure";
15
+ import ar from "react-measure";
16
16
  import ds from "lodash/debounce";
17
- import { nanoid as ar } from "nanoid";
18
- import Mn from "antd/lib/typography/Title";
17
+ import { nanoid as cr } from "nanoid";
18
+ import Pn from "antd/lib/typography/Title";
19
19
  import bt from "use-deep-compare-effect";
20
20
  import { Line as us, Column as fs, Pie as ms } from "@ant-design/plots";
21
21
  import et from "dayjs";
@@ -28,13 +28,13 @@ import vs from "dayjs/plugin/relativeTime";
28
28
  import bs from "dayjs/plugin/weekday";
29
29
  import Cs from "dayjs/plugin/localeData";
30
30
  import { createRoot as go } from "react-dom/client";
31
- import { useDeepCompareCallback as It, useDeepCompareMemo as Pn } from "use-deep-compare";
31
+ import { useDeepCompareCallback as It, useDeepCompareMemo as Nn } from "use-deep-compare";
32
32
  import { Table as xs, InfiniteTable as Ss } from "@gisce/react-formiga-table";
33
33
  import { fileTypeFromBuffer as Ts } from "file-type-buffer-browser";
34
34
  import { isPresetStatusColor as Is, isPresetColor as Fs } from "antd/lib/_util/colors";
35
35
  import "@gisce/react-formiga-table/style.css";
36
36
  import Os from "antd/es/typography/Link";
37
- import cr from "antd/es/alert/ErrorBoundary";
37
+ import dn from "antd/es/alert/ErrorBoundary";
38
38
  import { GridUi as Rs } from "@gisce/fiber-diagram";
39
39
  import Vs from "validator/lib/isURL";
40
40
  import _s from "validator/lib/isEmail";
@@ -49,7 +49,7 @@ const { Text: Ls, Title: $s } = Nt, { useToken: Hs } = Ke, Bs = {
49
49
  left: "justify-start",
50
50
  center: "justify-center",
51
51
  right: "justify-end"
52
- }, vn = (e) => {
52
+ }, bn = (e) => {
53
53
  const { ooui: t, align: n, responsiveBehaviour: o } = e, { label: r, tooltip: s, fieldForLabel: a, labelSize: c, labelType: d } = t, u = a !== null && r.length > 1 ? r + " :" : r, p = n || (a ? o ? "left" : "right" : "left"), { token: h } = Hs(), m = c === void 0 ? Ls : $s;
54
54
  return /* @__PURE__ */ D(
55
55
  "div",
@@ -102,7 +102,7 @@ function Ce({
102
102
  if (!r)
103
103
  return m();
104
104
  const g = /* @__PURE__ */ i(
105
- vn,
105
+ bn,
106
106
  {
107
107
  ooui: new Lt({
108
108
  name: f + "_label",
@@ -390,12 +390,12 @@ const yo = (e) => {
390
390
  if (t.buttons.length === 0)
391
391
  return null;
392
392
  if (t.buttons.length > 1)
393
- return /* @__PURE__ */ i(Ce, { ooui: new En({ ooui: t }), children: /* @__PURE__ */ D(
393
+ return /* @__PURE__ */ i(Ce, { ooui: new kn({ ooui: t }), children: /* @__PURE__ */ D(
394
394
  Ii.Button,
395
395
  {
396
396
  disabled: !a || p,
397
397
  onClick: F,
398
- icon: /* @__PURE__ */ i(hn, {}),
398
+ icon: /* @__PURE__ */ i(gn, {}),
399
399
  type: u ? "primary" : void 0,
400
400
  overlay: /* @__PURE__ */ i(
401
401
  Us,
@@ -473,7 +473,7 @@ function Ar() {
473
473
  height: t
474
474
  };
475
475
  }
476
- function bn() {
476
+ function Cn() {
477
477
  const [e, t] = v(
478
478
  Ar()
479
479
  );
@@ -528,7 +528,7 @@ const wo = (e) => {
528
528
  content: t
529
529
  });
530
530
  }, vo = (e) => {
531
- const { visible: t, onCloseModal: n, model: o, id: r, field: s, onSubmitSucceed: a } = e, { modalWidth: c } = bn(), { t: d } = he(), [f, u] = v([]), [l, p] = v(!1), [h, m] = v(!1), [g, w] = v({}), y = re();
531
+ const { visible: t, onCloseModal: n, model: o, id: r, field: s, onSubmitSucceed: a } = e, { modalWidth: c } = Cn(), { t: d } = he(), [f, u] = v([]), [l, p] = v(!1), [h, m] = v(!1), [g, w] = v({}), y = re();
532
532
  ue(() => {
533
533
  t ? b() : w({});
534
534
  }, [t]);
@@ -606,7 +606,7 @@ const wo = (e) => {
606
606
  function V() {
607
607
  return l ? /* @__PURE__ */ i(je, {}) : /* @__PURE__ */ D(oe, { children: [
608
608
  C(),
609
- /* @__PURE__ */ i(pn, {}),
609
+ /* @__PURE__ */ i(hn, {}),
610
610
  /* @__PURE__ */ i(Ve, { justify: "end", children: /* @__PURE__ */ D(Ue, { children: [
611
611
  /* @__PURE__ */ i(
612
612
  Ne,
@@ -620,7 +620,7 @@ const wo = (e) => {
620
620
  /* @__PURE__ */ i(
621
621
  Ne,
622
622
  {
623
- icon: h ? /* @__PURE__ */ i(ut, {}) : /* @__PURE__ */ i(gn, {}),
623
+ icon: h ? /* @__PURE__ */ i(ut, {}) : /* @__PURE__ */ i(yn, {}),
624
624
  disabled: h,
625
625
  onClick: O,
626
626
  style: { marginLeft: 15 },
@@ -812,7 +812,7 @@ const So = (e) => new Promise((t, n) => {
812
812
  const o = new FileReader();
813
813
  o.readAsDataURL(e), o.onload = (r) => t(r.target.result.split(",")[1]), o.onerror = (r) => n(r);
814
814
  });
815
- function Cn(e, t) {
815
+ function xn(e, t) {
816
816
  const n = atob(e), o = new Array(n.length);
817
817
  for (let c = 0; c < n.length; c++)
818
818
  o[c] = n.charCodeAt(c);
@@ -864,7 +864,7 @@ const da = (e) => {
864
864
  ze,
865
865
  {
866
866
  tooltip: a("uploadNewImage"),
867
- icon: /* @__PURE__ */ i(Jn, {}),
867
+ icon: /* @__PURE__ */ i(Xn, {}),
868
868
  disabled: r,
869
869
  onClick: () => {
870
870
  s.current.click();
@@ -877,7 +877,7 @@ const da = (e) => {
877
877
  tooltip: a("download"),
878
878
  disabled: !n,
879
879
  onClick: d,
880
- icon: /* @__PURE__ */ i(Xn, {})
880
+ icon: /* @__PURE__ */ i(Qn, {})
881
881
  }
882
882
  ),
883
883
  /* @__PURE__ */ i(
@@ -886,7 +886,7 @@ const da = (e) => {
886
886
  tooltip: a("clear"),
887
887
  disabled: r || !n,
888
888
  onClick: u,
889
- icon: /* @__PURE__ */ i(Qn, {})
889
+ icon: /* @__PURE__ */ i(Zn, {})
890
890
  }
891
891
  )
892
892
  ] }) })
@@ -948,7 +948,7 @@ const To = (e, t, n) => e.columns.map((r) => {
948
948
  r[s] = o[s];
949
949
  else {
950
950
  const a = e.findById(s);
951
- a instanceof Ei || a instanceof Yn ? r[s] = o[s] : a instanceof no ? r[s] = o[s] && Array.isArray(o[s]) && o[s].length === 2 && {
951
+ a instanceof Ei || a instanceof qn ? r[s] = o[s] : a instanceof no ? r[s] = o[s] && Array.isArray(o[s]) && o[s].length === 2 && {
952
952
  model: a.relation,
953
953
  id: o[s][0],
954
954
  value: o[s][1]
@@ -1143,9 +1143,9 @@ const va = (e) => {
1143
1143
  }
1144
1144
  }
1145
1145
  return d ? /* @__PURE__ */ i(Je, { className: "mt-10", message: d, type: "error", banner: !0 }) : a ? /* @__PURE__ */ i(je, {}) : /* @__PURE__ */ D(oe, { children: [
1146
- /* @__PURE__ */ i(Dn, { style: { padding: "1rem" }, children: I.map((T, S) => {
1146
+ /* @__PURE__ */ i(En, { style: { padding: "1rem" }, children: I.map((T, S) => {
1147
1147
  var _, x;
1148
- return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ D(Dn.Item, { children: [
1148
+ return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ D(En.Item, { children: [
1149
1149
  /* @__PURE__ */ i(
1150
1150
  "div",
1151
1151
  {
@@ -1499,7 +1499,7 @@ const va = (e) => {
1499
1499
  }, fr = (e) => {
1500
1500
  const { erpFeatures: t } = ur();
1501
1501
  return !!t[e];
1502
- }, Fa = Wn(
1502
+ }, Fa = Gn(
1503
1503
  ({
1504
1504
  erpFeatures: e,
1505
1505
  locale: t,
@@ -1571,7 +1571,7 @@ async function Ro({
1571
1571
  title: u,
1572
1572
  actionId: e,
1573
1573
  actionType: o,
1574
- key: ar(),
1574
+ key: cr(),
1575
1575
  views: f,
1576
1576
  model: d,
1577
1577
  context: { ...t, ...a },
@@ -1666,7 +1666,7 @@ const Oa = (e) => {
1666
1666
  const n = J(
1667
1667
  async (r, s) => {
1668
1668
  var d;
1669
- const a = s || ar();
1669
+ const a = s || cr();
1670
1670
  t.current.has(a) && ((d = t.current.get(a)) == null || d.abort());
1671
1671
  const c = new AbortController();
1672
1672
  t.current.set(a, c);
@@ -1684,10 +1684,10 @@ const Oa = (e) => {
1684
1684
  r ? ((s = t.current.get(r)) == null || s.abort(), t.current.delete(r)) : (t.current.forEach((a) => a.abort()), t.current.clear());
1685
1685
  }, []);
1686
1686
  return [n, o];
1687
- }, dn = 0.7, un = 30, _o = (e) => {
1687
+ }, un = 0.7, fn = 30, _o = (e) => {
1688
1688
  const [t, n] = v(0), [o, r] = v(0), { value: s, totalValue: a, percent: c, color: d, icon: f, suffix: u, showPercent: l } = e;
1689
1689
  return /* @__PURE__ */ i(
1690
- sr,
1690
+ ar,
1691
1691
  {
1692
1692
  bounds: !0,
1693
1693
  onResize: (p) => {
@@ -1737,7 +1737,7 @@ function Ra({
1737
1737
  icon: a,
1738
1738
  suffix: c
1739
1739
  }) {
1740
- let d = n * dn < un ? un : n * dn;
1740
+ let d = n * un < fn ? fn : n * un;
1741
1741
  const f = r == null ? void 0 : r.toLocaleString("es-ES", {
1742
1742
  useGrouping: !0
1743
1743
  }), u = o == null ? void 0 : o.toLocaleString("es-ES", {
@@ -1763,7 +1763,7 @@ function Ra({
1763
1763
  justifyContent: "center",
1764
1764
  overflow: "hidden"
1765
1765
  },
1766
- children: /* @__PURE__ */ D(Mn, { style: { fontSize: d, margin: 0, color: s }, children: [
1766
+ children: /* @__PURE__ */ D(Pn, { style: { fontSize: d, margin: 0, color: s }, children: [
1767
1767
  h && /* @__PURE__ */ i(h, { style: { fontSize: d * 0.7 } }),
1768
1768
  h ? ` ${l}` : l
1769
1769
  ] })
@@ -1782,7 +1782,7 @@ function Va({
1782
1782
  suffix: d
1783
1783
  }) {
1784
1784
  const f = t * 0.65;
1785
- let u = f * dn < un ? un : f * dn;
1785
+ let u = f * un < fn ? fn : f * un;
1786
1786
  const l = s == null ? void 0 : s.toLocaleString("es-ES", {
1787
1787
  useGrouping: !0
1788
1788
  });
@@ -1816,9 +1816,9 @@ function Va({
1816
1816
  children: /* @__PURE__ */ D(Ve, { align: "middle", children: [
1817
1817
  g && /* @__PURE__ */ i(ye, { style: { fontSize: u * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ i(g, {}) }),
1818
1818
  /* @__PURE__ */ D(ye, { children: [
1819
- /* @__PURE__ */ i(Mn, { style: { fontSize: u * 0.8, margin: 0, color: a }, children: g ? ` ${o}%` : `${o}%` }),
1819
+ /* @__PURE__ */ i(Pn, { style: { fontSize: u * 0.8, margin: 0, color: a }, children: g ? ` ${o}%` : `${o}%` }),
1820
1820
  /* @__PURE__ */ i(
1821
- Mn,
1821
+ Pn,
1822
1822
  {
1823
1823
  style: {
1824
1824
  fontSize: u * 0.4,
@@ -1979,7 +1979,7 @@ const { getValueForOperator: Mr } = ro, _a = (e) => {
1979
1979
  M.getHandler().readObjects
1980
1980
  ), [F] = Xe(M.getHandler().search), C = J(async () => {
1981
1981
  f(!0), l(void 0);
1982
- const O = qn(r);
1982
+ const O = zn(r);
1983
1983
  y(O.type || "line");
1984
1984
  const V = Da({ ooui: O });
1985
1985
  let T, S;
@@ -2113,7 +2113,7 @@ et.extend(ws);
2113
2113
  et.extend(vs);
2114
2114
  et.extend(bs);
2115
2115
  et.extend(Cs);
2116
- const Rn = (e) => (t) => {
2116
+ const Vn = (e) => (t) => {
2117
2117
  const n = t.value.toLocaleString("es-ES", {
2118
2118
  useGrouping: !0
2119
2119
  });
@@ -2129,8 +2129,8 @@ const Rn = (e) => (t) => {
2129
2129
  });
2130
2130
  if (Na(e)) {
2131
2131
  const t = La(e);
2132
- return t === null ? e : et(e, fn.input[t]).format(
2133
- fn.output[t]
2132
+ return t === null ? e : et(e, mn.input[t]).format(
2133
+ mn.output[t]
2134
2134
  );
2135
2135
  } else
2136
2136
  return e;
@@ -2153,7 +2153,7 @@ const Rn = (e) => (t) => {
2153
2153
  maxItemWidth: 1e3
2154
2154
  },
2155
2155
  tooltip: {
2156
- formatter: Rn("default")
2156
+ formatter: Vn("default")
2157
2157
  }
2158
2158
  },
2159
2159
  pie: {
@@ -2166,7 +2166,7 @@ const Rn = (e) => (t) => {
2166
2166
  maxItemWidth: 1e3
2167
2167
  },
2168
2168
  tooltip: {
2169
- formatter: Rn("pie")
2169
+ formatter: Vn("pie")
2170
2170
  },
2171
2171
  interactions: [
2172
2172
  {
@@ -2181,7 +2181,7 @@ const Rn = (e) => (t) => {
2181
2181
  maxItemWidth: 1e3
2182
2182
  },
2183
2183
  tooltip: {
2184
- formatter: Rn("barGrouped")
2184
+ formatter: Vn("barGrouped")
2185
2185
  },
2186
2186
  xAxis: {
2187
2187
  label: {
@@ -2212,7 +2212,7 @@ const Rn = (e) => (t) => {
2212
2212
  function Na(e) {
2213
2213
  return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
2214
2214
  }
2215
- const fn = {
2215
+ const mn = {
2216
2216
  input: {
2217
2217
  hours: "YYYY-MM-DD HH:mm",
2218
2218
  days: "YYYY-MM-DD",
@@ -2229,10 +2229,10 @@ const fn = {
2229
2229
  }
2230
2230
  };
2231
2231
  function La(e) {
2232
- for (const t in fn.input)
2232
+ for (const t in mn.input)
2233
2233
  if (et(
2234
2234
  e,
2235
- fn.input[t],
2235
+ mn.input[t],
2236
2236
  !0
2237
2237
  ).isValid())
2238
2238
  return t;
@@ -2504,7 +2504,7 @@ const Ka = (e) => {
2504
2504
  context: r
2505
2505
  });
2506
2506
  h(b.arch);
2507
- const I = qn(b.arch);
2507
+ const I = zn(b.arch);
2508
2508
  l(I), f(!1), g == null || g(!1);
2509
2509
  } catch (b) {
2510
2510
  return console.error(b), f(!1), g == null || g(!1), /* @__PURE__ */ i(oe, { children: JSON.stringify(b) });
@@ -2719,13 +2719,14 @@ const xf = Object.values(rn), Ua = (e) => {
2719
2719
  ]
2720
2720
  }
2721
2721
  ),
2722
- /* @__PURE__ */ i("div", { style: { padding: c ? void 0 : 10 }, children: /* @__PURE__ */ i(cr, { children: n }) })
2722
+ !c && /* @__PURE__ */ i("div", { style: { padding: 10 }, children: /* @__PURE__ */ i(dn, { children: n }) }),
2723
+ c && /* @__PURE__ */ i(dn, { children: n })
2723
2724
  ]
2724
2725
  }
2725
2726
  );
2726
2727
  }, { useToken: Xa } = Ke, Qa = (e) => {
2727
2728
  const { ooui: t } = e, n = t.actionId !== void 0;
2728
- return /* @__PURE__ */ i(Ce, { ooui: t, children: n ? /* @__PURE__ */ i(cr, { children: /* @__PURE__ */ i(ec, { ooui: t }) }) : /* @__PURE__ */ i(Za, { ooui: t }) });
2729
+ return /* @__PURE__ */ i(Ce, { ooui: t, children: n ? /* @__PURE__ */ i(dn, { children: /* @__PURE__ */ i(ec, { ooui: t }) }) : /* @__PURE__ */ i(Za, { ooui: t }) });
2729
2730
  }, Za = (e) => {
2730
2731
  const { token: t } = Xa(), { ooui: n, value: o } = e, r = /* @__PURE__ */ D(oe, { children: [
2731
2732
  /* @__PURE__ */ D("span", { children: [
@@ -2751,7 +2752,7 @@ const xf = Object.values(rn), Ua = (e) => {
2751
2752
  value: a
2752
2753
  }
2753
2754
  );
2754
- return n.card ? /* @__PURE__ */ i(Gn, { children: c }) : c;
2755
+ return n.card ? /* @__PURE__ */ i(Un, { children: c }) : c;
2755
2756
  }, ec = (e) => {
2756
2757
  const { ooui: t } = e, { actionId: n } = t, { actionData: o, treeShortcut: r, loading: s, error: a, fetchData: c } = Oa(n), d = fr(
2757
2758
  rn.FEATURE_READFORVIEW
@@ -2800,7 +2801,7 @@ const xf = Object.values(rn), Ua = (e) => {
2800
2801
  } else
2801
2802
  n[o] = e[o];
2802
2803
  }), n;
2803
- }, At = (e, t) => tc(e, t), Vn = ({
2804
+ }, At = (e, t) => tc(e, t), _n = ({
2804
2805
  source: e,
2805
2806
  target: t,
2806
2807
  fields: n
@@ -3028,7 +3029,7 @@ const Rt = ({
3028
3029
  case "group":
3029
3030
  return ei;
3030
3031
  case "label":
3031
- return vn;
3032
+ return bn;
3032
3033
  case "char":
3033
3034
  return bo;
3034
3035
  case "text":
@@ -3044,7 +3045,7 @@ const Rt = ({
3044
3045
  case "boolean":
3045
3046
  return sa;
3046
3047
  case "integer":
3047
- return mn;
3048
+ return pn;
3048
3049
  case "float":
3049
3050
  return $o;
3050
3051
  case "progressbar":
@@ -3148,7 +3149,7 @@ const Rt = ({
3148
3149
  for (let s = 0; s < e; s++)
3149
3150
  r += s % 2 ? n : o, s + 1 < e && (r += " ");
3150
3151
  return r;
3151
- }, yc = (e) => e.map((n) => n.reduce((o, r) => o + r.colspan, 0)).reduce((n, o) => Math.max(n, o)), Nn = (e) => {
3152
+ }, yc = (e) => e.map((n) => n.reduce((o, r) => o + r.colspan, 0)).reduce((n, o) => Math.max(n, o)), Ln = (e) => {
3152
3153
  const { container: t, responsiveBehaviour: n } = e, { rows: o } = t;
3153
3154
  let { columns: r } = t;
3154
3155
  const s = yc(o);
@@ -3181,7 +3182,6 @@ const Rt = ({
3181
3182
  }), f = o.length === 1 ? hc(c, r) : gc(r, a);
3182
3183
  return /* @__PURE__ */ i("div", { style: {
3183
3184
  display: "grid",
3184
- alignItems: "center",
3185
3185
  gridTemplateColumns: n ? "auto" : f,
3186
3186
  gap: "1rem",
3187
3187
  minHeight: 0,
@@ -3284,7 +3284,7 @@ const Rt = ({
3284
3284
  }), T.state && s.current === !0) {
3285
3285
  s.current = !1, clearInterval(r.current), c(!1);
3286
3286
  const S = await Mt(T.result);
3287
- Cn(T.result, S.mime);
3287
+ xn(T.result, S.mime);
3288
3288
  }
3289
3289
  } catch (S) {
3290
3290
  s.current = !1, clearInterval(r.current), c(!1), Qe(S.exception || S);
@@ -3572,7 +3572,7 @@ function Rc(e, t) {
3572
3572
  (o === void 0 && k || o !== void 0 && k && o < 0) && (B.current = void 0, N(void 0)), Ut();
3573
3573
  }
3574
3574
  }, [o, n, h, m, I]), ue(() => {
3575
- $ && (Sn({
3575
+ $ && (Tn({
3576
3576
  elementHasLostFocus: !0
3577
3577
  }), E(!1));
3578
3578
  }, [$]);
@@ -3637,7 +3637,7 @@ function Rc(e, t) {
3637
3637
  extraValues: C
3638
3638
  });
3639
3639
  }, tt = () => Object.keys(
3640
- Vn({
3640
+ _n({
3641
3641
  source: L.current,
3642
3642
  target: Ye(k),
3643
3643
  fields: k
@@ -3659,7 +3659,7 @@ function Rc(e, t) {
3659
3659
  try {
3660
3660
  return await K.validateFields(), !1;
3661
3661
  } catch {
3662
- return On.error(T("fillRequiredFields")), !0;
3662
+ return Rn.error(T("fillRequiredFields")), !0;
3663
3663
  }
3664
3664
  }
3665
3665
  const Ut = async () => {
@@ -3715,15 +3715,15 @@ function Rc(e, t) {
3715
3715
  reset: ee,
3716
3716
  isDefaultGet: ne = !1
3717
3717
  }) => {
3718
- const Ge = { ...ee ? {} : K.getFieldsValue(!0), ...P }, In = At(Ge, H), vi = Object.keys(H).map((Fn) => {
3719
- const bi = In[Fn] !== void 0 ? In[Fn] : void 0;
3718
+ const Ge = { ...ee ? {} : K.getFieldsValue(!0), ...P }, Fn = At(Ge, H), vi = Object.keys(H).map((On) => {
3719
+ const bi = Fn[On] !== void 0 ? Fn[On] : void 0;
3720
3720
  return {
3721
- name: Fn,
3721
+ name: On,
3722
3722
  touched: !1,
3723
3723
  value: bi
3724
3724
  };
3725
3725
  });
3726
- ne || (de.current = In), K.setFields(vi);
3726
+ ne || (de.current = Fn), K.setFields(vi);
3727
3727
  }, ai = async ({
3728
3728
  fields: P,
3729
3729
  arch: H
@@ -3758,7 +3758,7 @@ function Rc(e, t) {
3758
3758
  }, wr = async (P) => {
3759
3759
  const { callOnSubmitSucceed: H = !0 } = P || {};
3760
3760
  if (se()) {
3761
- const ee = Vn({
3761
+ const ee = _n({
3762
3762
  source: L.current,
3763
3763
  target: Ye(k),
3764
3764
  fields: k
@@ -3808,9 +3808,9 @@ function Rc(e, t) {
3808
3808
  return te.current = !1, Hr(T), { succeed: !1, id: se() };
3809
3809
  _(!0), fe == null || fe(!0);
3810
3810
  try {
3811
- p === "api" ? await wr(P) : await ci(P), l && (B.current = void 0, ft({ values: {}, fields: k, reset: !0 })), await lt({ forceRefresh: !0 }), H = !0, On.success(T("savedRegisters"));
3811
+ p === "api" ? await wr(P) : await ci(P), l && (B.current = void 0, ft({ values: {}, fields: k, reset: !0 })), await lt({ forceRefresh: !0 }), H = !0, Rn.success(T("savedRegisters"));
3812
3812
  } catch (ne) {
3813
- te.current = !1, _(!1), fe == null || fe(!1), pe == null || pe(ne), On.error(T("errorWhileSavingForm")), R(ne != null && ne.message ? ne.message : ne);
3813
+ te.current = !1, _(!1), fe == null || fe(!1), pe == null || pe(ne), Rn.error(T("errorWhileSavingForm")), R(ne != null && ne.message ? ne.message : ne);
3814
3814
  } finally {
3815
3815
  te.current = !1, fe == null || fe(!1), _(!1);
3816
3816
  }
@@ -3846,12 +3846,12 @@ function Rc(e, t) {
3846
3846
  operationInProgress: ne
3847
3847
  });
3848
3848
  N(we), we.string && we.string !== Me && (He == null || He(we.string)), q && we.string && ((Ge = q.setTitle) == null || Ge.call(q, we.string));
3849
- }, Sn = async ({
3849
+ }, Tn = async ({
3850
3850
  elementHasLostFocus: P = !1
3851
3851
  }) => {
3852
3852
  if (te.current)
3853
3853
  return;
3854
- const H = Vn({
3854
+ const H = _n({
3855
3855
  source: de.current,
3856
3856
  target: Ye(k),
3857
3857
  fields: k
@@ -3874,7 +3874,7 @@ function Rc(e, t) {
3874
3874
  const ne = At(K.getFieldsValue(!0), k);
3875
3875
  de.current = ne, d == null || d(ne), Fe == null || Fe(!0), di(ee);
3876
3876
  }
3877
- }, li = ds(Sn, 100), di = async (P) => {
3877
+ }, li = ds(Tn, 100), di = async (P) => {
3878
3878
  try {
3879
3879
  for (let H = 0; H < P.length; H += 1) {
3880
3880
  const ee = P[H];
@@ -4016,9 +4016,9 @@ function Rc(e, t) {
4016
4016
  !F && ee && (ge == null || ge(se(), Pe(), le()));
4017
4017
  }
4018
4018
  function hi() {
4019
- Sn({ elementHasLostFocus: !0 });
4019
+ Tn({ elementHasLostFocus: !0 });
4020
4020
  }
4021
- function Tn(P) {
4021
+ function In(P) {
4022
4022
  Yt({
4023
4023
  fields: k,
4024
4024
  arch: j,
@@ -4041,11 +4041,11 @@ function Rc(e, t) {
4041
4041
  }
4042
4042
  let ne = !1;
4043
4043
  try {
4044
- !u && (tt() || se() === void 0) && (ne = !0, Tn(!0), p === "2many" ? (await wr({ callOnSubmitSucceed: !1 }), ve.current = !0) : await an({ callOnSubmitSucceed: !1 }));
4044
+ !u && (tt() || se() === void 0) && (ne = !0, In(!0), p === "2many" ? (await wr({ callOnSubmitSucceed: !1 }), ve.current = !0) : await an({ callOnSubmitSucceed: !1 }));
4045
4045
  const we = ve.current ? Te() : {}, Ge = { ...ee, ...we };
4046
- P === "object" ? await fi({ action: H, context: Ge }) : P === "workflow" ? await mi({ action: H }) : P === "action" && await pi({ action: H, context: Ge }), ne && Tn(!1);
4046
+ P === "object" ? await fi({ action: H, context: Ge }) : P === "workflow" ? await mi({ action: H }) : P === "action" && await pi({ action: H, context: Ge }), ne && In(!1);
4047
4047
  } catch (we) {
4048
- ne && Tn(!1), Qe(we);
4048
+ ne && In(!1), Qe(we);
4049
4049
  }
4050
4050
  }
4051
4051
  const yi = () => !A && !x ? /* @__PURE__ */ i(je, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(oe, { children: /* @__PURE__ */ i(
@@ -4075,7 +4075,7 @@ function Rc(e, t) {
4075
4075
  },
4076
4076
  component: !1,
4077
4077
  children: A && /* @__PURE__ */ i(
4078
- Nn,
4078
+ Ln,
4079
4079
  {
4080
4080
  container: A.container,
4081
4081
  responsiveBehaviour: ae
@@ -4085,7 +4085,7 @@ function Rc(e, t) {
4085
4085
  )
4086
4086
  }
4087
4087
  ) }), wi = () => /* @__PURE__ */ D(oe, { children: [
4088
- /* @__PURE__ */ i(pn, {}),
4088
+ /* @__PURE__ */ i(hn, {}),
4089
4089
  /* @__PURE__ */ i(Ve, { justify: "end", children: /* @__PURE__ */ D(Ue, { children: [
4090
4090
  /* @__PURE__ */ i(
4091
4091
  Ne,
@@ -4103,7 +4103,7 @@ function Rc(e, t) {
4103
4103
  {
4104
4104
  disabled: S || u,
4105
4105
  loading: S,
4106
- icon: /* @__PURE__ */ i(gn, {}),
4106
+ icon: /* @__PURE__ */ i(yn, {}),
4107
4107
  onClick: async () => {
4108
4108
  await an();
4109
4109
  },
@@ -4114,7 +4114,7 @@ function Rc(e, t) {
4114
4114
  ] }) })
4115
4115
  ] });
4116
4116
  return I ? /* @__PURE__ */ i(
4117
- sr,
4117
+ ar,
4118
4118
  {
4119
4119
  bounds: !0,
4120
4120
  onResize: (P) => {
@@ -4139,7 +4139,7 @@ const Kt = ht(Rc), Wt = (e) => {
4139
4139
  isMenuAction: a = !1,
4140
4140
  actionData: c,
4141
4141
  ...d
4142
- } = e, { model: f } = d, { modalWidth: u } = bn(), [l, p] = v(o), [h, m] = v(!1), [g, w] = v(), { action_id: y, res_id: b, action_type: I, view_id: F } = c || {};
4142
+ } = e, { model: f } = d, { modalWidth: u } = Cn(), [l, p] = v(o), [h, m] = v(!1), [g, w] = v(), { action_id: y, res_id: b, action_type: I, view_id: F } = c || {};
4143
4143
  ue(() => {
4144
4144
  a && C();
4145
4145
  }, [c, a]);
@@ -4209,12 +4209,12 @@ const Kt = ht(Rc), Wt = (e) => {
4209
4209
  }
4210
4210
  ) });
4211
4211
  }, Vc = (e) => /* @__PURE__ */ i(Ce, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
4212
- Un.RangePicker,
4212
+ Yn.RangePicker,
4213
4213
  {
4214
4214
  allowEmpty: [!0, !0],
4215
4215
  format: "DD/MM/YYYY"
4216
4216
  }
4217
- ) }), Ln = ({
4217
+ ) }), $n = ({
4218
4218
  value: e,
4219
4219
  onChange: t,
4220
4220
  numberOfSelectsToHide: n = 2,
@@ -4238,18 +4238,18 @@ const Kt = ht(Rc), Wt = (e) => {
4238
4238
  );
4239
4239
  }, _c = (e) => {
4240
4240
  const { ooui: t, showLabel: n = !1 } = e, { label: o, id: r } = t, s = [
4241
- new En({
4241
+ new kn({
4242
4242
  name: r + "#date",
4243
4243
  label: ""
4244
4244
  }),
4245
- new En({
4245
+ new kn({
4246
4246
  name: r + "#time",
4247
4247
  label: ""
4248
4248
  })
4249
4249
  ];
4250
4250
  return /* @__PURE__ */ D(oe, { children: [
4251
4251
  n && /* @__PURE__ */ i(
4252
- vn,
4252
+ bn,
4253
4253
  {
4254
4254
  ooui: new Lt({
4255
4255
  name: r + "_label",
@@ -4262,7 +4262,7 @@ const Kt = ht(Rc), Wt = (e) => {
4262
4262
  ),
4263
4263
  /* @__PURE__ */ D(Ve, { align: "bottom", className: "p-0", children: [
4264
4264
  /* @__PURE__ */ i(ye, { className: "mr-2", children: /* @__PURE__ */ i(Ce, { ...e, ooui: s[0], showLabel: !1, children: /* @__PURE__ */ i(
4265
- Un.RangePicker,
4265
+ Yn.RangePicker,
4266
4266
  {
4267
4267
  className: "w-60",
4268
4268
  allowEmpty: [!0, !0],
@@ -4277,7 +4277,7 @@ const Kt = ht(Rc), Wt = (e) => {
4277
4277
  onChange: t
4278
4278
  }) => /* @__PURE__ */ D("div", { style: { marginTop: 5 }, children: [
4279
4279
  /* @__PURE__ */ i(
4280
- Ln,
4280
+ $n,
4281
4281
  {
4282
4282
  placeholder: "Start time",
4283
4283
  format: "HH:mm",
@@ -4289,7 +4289,7 @@ const Kt = ht(Rc), Wt = (e) => {
4289
4289
  }
4290
4290
  ),
4291
4291
  /* @__PURE__ */ i(
4292
- Ln,
4292
+ $n,
4293
4293
  {
4294
4294
  placeholder: "End time",
4295
4295
  style: { width: 115 },
@@ -4316,7 +4316,7 @@ const Kt = ht(Rc), Wt = (e) => {
4316
4316
  wheel: !1
4317
4317
  }
4318
4318
  ) });
4319
- }, { useToken: Ec } = Ke, mn = (e) => {
4319
+ }, { useToken: Ec } = Ke, pn = (e) => {
4320
4320
  const { ooui: t, onChange: n } = e, { id: o, readOnly: r, required: s } = t, { token: a } = Ec(), c = s && !r ? { backgroundColor: a.colorPrimaryBg } : void 0, d = Z(Le), { elementHasLostFocus: f } = d || {};
4321
4321
  return /* @__PURE__ */ i(Ce, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
4322
4322
  Qr,
@@ -4337,7 +4337,7 @@ const Kt = ht(Rc), Wt = (e) => {
4337
4337
  ) });
4338
4338
  };
4339
4339
  function kc(e) {
4340
- const { ooui: t, showLabel: n } = e, { id: o, label: r, tooltip: s } = t, a = t instanceof kn ? mn : $o, c = (d) => /* @__PURE__ */ i(
4340
+ const { ooui: t, showLabel: n } = e, { id: o, label: r, tooltip: s } = t, a = t instanceof Mn ? pn : $o, c = (d) => /* @__PURE__ */ i(
4341
4341
  a,
4342
4342
  {
4343
4343
  ooui: {
@@ -4351,7 +4351,7 @@ function kc(e) {
4351
4351
  );
4352
4352
  return /* @__PURE__ */ D(oe, { children: [
4353
4353
  n && /* @__PURE__ */ i(
4354
- vn,
4354
+ bn,
4355
4355
  {
4356
4356
  ooui: new Lt({
4357
4357
  name: o + "_label",
@@ -4413,7 +4413,7 @@ function jc(e) {
4413
4413
  const { t: n } = he();
4414
4414
  switch (t.type) {
4415
4415
  case yt.boolean: {
4416
- const r = new Yn({
4416
+ const r = new qn({
4417
4417
  name: t._id,
4418
4418
  string: t.label,
4419
4419
  selection: [
@@ -4442,15 +4442,15 @@ function Kc(e) {
4442
4442
  const { onAdvancedFilterToggle: t, advancedFilter: n, onClear: o, isSearching: r } = e, { t: s } = he();
4443
4443
  return /* @__PURE__ */ D(Ve, { children: [
4444
4444
  /* @__PURE__ */ i(ye, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ D("a", { className: "text-xs", onClick: t, children: [
4445
- n ? /* @__PURE__ */ i(Ki, { className: "pr-1" }) : /* @__PURE__ */ i(hn, { className: "pr-1" }),
4445
+ n ? /* @__PURE__ */ i(Ki, { className: "pr-1" }) : /* @__PURE__ */ i(gn, { className: "pr-1" }),
4446
4446
  s(n ? "simple_search" : "advanced_search")
4447
4447
  ] }) }),
4448
4448
  /* @__PURE__ */ D(ye, { span: 12, className: "text-right pb-2", children: [
4449
- /* @__PURE__ */ i(Ne, { className: "mr-5", icon: /* @__PURE__ */ i(Qn, {}), onClick: o, children: s("clear") }),
4449
+ /* @__PURE__ */ i(Ne, { className: "mr-5", icon: /* @__PURE__ */ i(Zn, {}), onClick: o, children: s("clear") }),
4450
4450
  /* @__PURE__ */ i(
4451
4451
  Ne,
4452
4452
  {
4453
- icon: /* @__PURE__ */ i(Zn, {}),
4453
+ icon: /* @__PURE__ */ i(er, {}),
4454
4454
  loading: r,
4455
4455
  className: "mr-2",
4456
4456
  type: "primary",
@@ -4462,13 +4462,13 @@ function Kc(e) {
4462
4462
  ] });
4463
4463
  }
4464
4464
  function Wc(e) {
4465
- const { onLimitChange: t } = e, { t: n } = he(), o = new kn({ name: "limit" }), r = new kn({ name: "offset" });
4465
+ const { onLimitChange: t } = e, { t: n } = he(), o = new Mn({ name: "limit" }), r = new Mn({ name: "offset" });
4466
4466
  return /* @__PURE__ */ D("div", { className: "pl-2 pt-2", children: [
4467
4467
  /* @__PURE__ */ i(Ve, { children: n("parameters") }, "count_params"),
4468
4468
  /* @__PURE__ */ D(Ue, { align: "center", children: [
4469
4469
  n("limit") + " :",
4470
4470
  /* @__PURE__ */ i(
4471
- mn,
4471
+ pn,
4472
4472
  {
4473
4473
  ooui: o,
4474
4474
  onChange: (s) => {
@@ -4477,7 +4477,7 @@ function Wc(e) {
4477
4477
  }
4478
4478
  ),
4479
4479
  n("first") + " :",
4480
- /* @__PURE__ */ i(mn, { ooui: r })
4480
+ /* @__PURE__ */ i(pn, { ooui: r })
4481
4481
  ] })
4482
4482
  ] });
4483
4483
  }
@@ -4594,7 +4594,7 @@ function Ho(e) {
4594
4594
  r({ params: A, offset: R, limit: x, searchValues: _ });
4595
4595
  };
4596
4596
  return /* @__PURE__ */ i(
4597
- sr,
4597
+ ar,
4598
4598
  {
4599
4599
  bounds: !0,
4600
4600
  onResize: (_) => {
@@ -4771,13 +4771,13 @@ const ol = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(jo,
4771
4771
  id: "action",
4772
4772
  name: c("action"),
4773
4773
  disabled: !l || l.length === 0,
4774
- icon: /* @__PURE__ */ i(er, {})
4774
+ icon: /* @__PURE__ */ i(tr, {})
4775
4775
  },
4776
4776
  {
4777
4777
  id: "print",
4778
4778
  name: c("report"),
4779
4779
  disabled: !h || h.length === 0,
4780
- icon: /* @__PURE__ */ i(tr, {})
4780
+ icon: /* @__PURE__ */ i(nr, {})
4781
4781
  },
4782
4782
  {
4783
4783
  id: "divider",
@@ -4787,7 +4787,7 @@ const ol = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(jo,
4787
4787
  },
4788
4788
  {
4789
4789
  label: c("related"),
4790
- icon: /* @__PURE__ */ i(nr, {}),
4790
+ icon: /* @__PURE__ */ i(rr, {}),
4791
4791
  items: p
4792
4792
  }
4793
4793
  ];
@@ -4980,7 +4980,7 @@ const ol = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(jo,
4980
4980
  l(m.format(mt[u].dateInternalFormat));
4981
4981
  }, h = t ? et(t, mt[u].dateInternalFormat) : void 0;
4982
4982
  return /* @__PURE__ */ i(
4983
- Un,
4983
+ Yn,
4984
4984
  {
4985
4985
  style: { width: "100%", ...f },
4986
4986
  placeholder: r ? mt.time.placeholder : mt.date.placeholder,
@@ -5260,7 +5260,7 @@ const ol = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(jo,
5260
5260
  if (R !== null && Y && Y.length > 0)
5261
5261
  return el(Y, S, 600);
5262
5262
  }, [Y, S, R]), L = Ie(() => h && (R != null && R.columns.some((Q) => Q.sum !== void 0)) ? h - 30 : h, [h, R == null ? void 0 : R.columns]);
5263
- return R === null || !B || ((de = B == null ? void 0 : B.columns) == null ? void 0 : de.length) === 0 ? /* @__PURE__ */ i(je, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(cr, { children: [
5263
+ return R === null || !B || ((de = B == null ? void 0 : B.columns) == null ? void 0 : de.length) === 0 ? /* @__PURE__ */ i(je, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(dn, { children: [
5264
5264
  $,
5265
5265
  /* @__PURE__ */ i(
5266
5266
  xs,
@@ -5296,7 +5296,7 @@ const ol = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(jo,
5296
5296
  E
5297
5297
  ] });
5298
5298
  }
5299
- ), on = Wn(Go);
5299
+ ), on = Gn(Go);
5300
5300
  on.displayName = "Tree";
5301
5301
  Go.displayName = "UnmemoizedTree";
5302
5302
  const Uo = (e) => {
@@ -5538,7 +5538,7 @@ function Fl(e, t) {
5538
5538
  rootTree: u = !1,
5539
5539
  parentContext: l = {},
5540
5540
  onChangeSelectedRowKeys: p
5541
- } = e, [h, m] = v(!1), [g, w] = v(!1), y = re(!1), b = re(null), [I, F] = v(), [C, O] = v(), [V, T] = v(), [S, _] = v(), [x, R] = v(200), A = re(), { height: N } = bn(), K = Z(
5541
+ } = e, [h, m] = v(!1), [g, w] = v(!1), y = re(!1), b = re(null), [I, F] = v(), [C, O] = v(), [V, T] = v(), [S, _] = v(), [x, R] = v(200), A = re(), { height: N } = Cn(), K = Z(
5542
5542
  jt
5543
5543
  ), { processAction: j } = K || {}, G = Z(
5544
5544
  nt
@@ -5785,7 +5785,7 @@ const Yo = ht(Fl), { error: Ol } = Ze, Pt = (e) => {
5785
5785
  centered: !0,
5786
5786
  content: e
5787
5787
  });
5788
- }, $n = (e) => {
5788
+ }, Hn = (e) => {
5789
5789
  const t = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
5790
5790
  Pt(t);
5791
5791
  }, hr = (e) => {
@@ -5797,7 +5797,7 @@ const Yo = ht(Fl), { error: Ol } = Ze, Pt = (e) => {
5797
5797
  nameSearch: s,
5798
5798
  domain: a,
5799
5799
  context: c = {}
5800
- } = e, [d, f] = v(!1), { modalWidth: u, modalHeight: l } = bn(), { t: p } = he(), [h, m] = v([]), [g, w] = v(!1), y = J(
5800
+ } = e, [d, f] = v(!1), { modalWidth: u, modalHeight: l } = Cn(), { t: p } = he(), [h, m] = v([]), [g, w] = v(!1), y = J(
5801
5801
  async (O) => {
5802
5802
  w(!0);
5803
5803
  try {
@@ -5834,13 +5834,13 @@ const Yo = ht(Fl), { error: Ol } = Ze, Pt = (e) => {
5834
5834
  onChangeSelectedRowKeys: m
5835
5835
  }
5836
5836
  ),
5837
- /* @__PURE__ */ i(pn, {}),
5837
+ /* @__PURE__ */ i(hn, {}),
5838
5838
  /* @__PURE__ */ i(Ve, { justify: "end", children: /* @__PURE__ */ D(Ue, { children: [
5839
5839
  /* @__PURE__ */ i(
5840
5840
  Ne,
5841
5841
  {
5842
5842
  disabled: g,
5843
- icon: /* @__PURE__ */ i(yn, {}),
5843
+ icon: /* @__PURE__ */ i(wn, {}),
5844
5844
  onClick: () => {
5845
5845
  f(!0);
5846
5846
  },
@@ -5851,7 +5851,7 @@ const Yo = ht(Fl), { error: Ol } = Ze, Pt = (e) => {
5851
5851
  Ne,
5852
5852
  {
5853
5853
  disabled: g,
5854
- icon: g ? /* @__PURE__ */ i(ut, {}) : /* @__PURE__ */ i(gn, {}),
5854
+ icon: g ? /* @__PURE__ */ i(ut, {}) : /* @__PURE__ */ i(yn, {}),
5855
5855
  onClick: () => {
5856
5856
  F();
5857
5857
  },
@@ -5983,7 +5983,7 @@ const Yo = ht(Fl), { error: Ol } = Ze, Pt = (e) => {
5983
5983
  fields: _(),
5984
5984
  context: x()
5985
5985
  })), T && T.length > 0 && (A.current = A.current.concat(
5986
- zn({
5986
+ Jn({
5987
5987
  domain: T,
5988
5988
  widgetFieldName: d
5989
5989
  })
@@ -6020,7 +6020,7 @@ const Yo = ht(Fl), { error: Ol } = Ze, Pt = (e) => {
6020
6020
  /* @__PURE__ */ i(ye, { flex: "none", style: { paddingRight: 0, paddingLeft: 0 }, children: /* @__PURE__ */ i(
6021
6021
  Ne,
6022
6022
  {
6023
- icon: /* @__PURE__ */ i(Jn, {}),
6023
+ icon: /* @__PURE__ */ i(Xn, {}),
6024
6024
  disabled: j === void 0 || G === "" || F === void 0,
6025
6025
  onClick: () => {
6026
6026
  m(!0);
@@ -6032,7 +6032,7 @@ const Yo = ht(Fl), { error: Ol } = Ze, Pt = (e) => {
6032
6032
  /* @__PURE__ */ i(ye, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ i(
6033
6033
  Ne,
6034
6034
  {
6035
- icon: g ? /* @__PURE__ */ i(ut, {}) : /* @__PURE__ */ i(Zn, {}),
6035
+ icon: g ? /* @__PURE__ */ i(ut, {}) : /* @__PURE__ */ i(er, {}),
6036
6036
  disabled: a || g,
6037
6037
  onClick: () => {
6038
6038
  I.current = !0, ie(G);
@@ -6229,7 +6229,7 @@ const Yo = ht(Fl), { error: Ol } = Ze, Pt = (e) => {
6229
6229
  ze,
6230
6230
  {
6231
6231
  tooltip: l ? "Unlink" : "Delete",
6232
- icon: l ? /* @__PURE__ */ i(Yi, {}) : /* @__PURE__ */ i(rr, {}),
6232
+ icon: l ? /* @__PURE__ */ i(Yi, {}) : /* @__PURE__ */ i(or, {}),
6233
6233
  onClick: a,
6234
6234
  disabled: c === 0 || n || s !== "form" && h.length === 0
6235
6235
  }
@@ -6274,7 +6274,7 @@ const Yo = ht(Fl), { error: Ol } = Ze, Pt = (e) => {
6274
6274
  ze,
6275
6275
  {
6276
6276
  tooltip: "Create new item",
6277
- icon: /* @__PURE__ */ i(yn, {}),
6277
+ icon: /* @__PURE__ */ i(wn, {}),
6278
6278
  disabled: n,
6279
6279
  onClick: o
6280
6280
  }
@@ -6285,7 +6285,7 @@ const Yo = ht(Fl), { error: Ol } = Ze, Pt = (e) => {
6285
6285
  ze,
6286
6286
  {
6287
6287
  tooltip: "Search existing item",
6288
- icon: /* @__PURE__ */ i(Zn, {}),
6288
+ icon: /* @__PURE__ */ i(er, {}),
6289
6289
  disabled: n,
6290
6290
  onClick: p
6291
6291
  }
@@ -6384,7 +6384,7 @@ const Nl = (e) => {
6384
6384
  fields: p(),
6385
6385
  context: m()
6386
6386
  })), g && g.length > 0 && (G.current = G.current.concat(
6387
- zn({
6387
+ Jn({
6388
6388
  domain: g,
6389
6389
  widgetFieldName: Q
6390
6390
  })
@@ -6549,7 +6549,7 @@ const Nl = (e) => {
6549
6549
  function pe() {
6550
6550
  const z = Ml[a];
6551
6551
  if (a === "graph")
6552
- return qn(r.get("graph").arch).string;
6552
+ return zn(r.get("graph").arch).string;
6553
6553
  {
6554
6554
  const le = new z(r.get(a).fields);
6555
6555
  return le.parse(r.get(a).arch), le.string;
@@ -6707,7 +6707,7 @@ const Nl = (e) => {
6707
6707
  fields: o(),
6708
6708
  context: s()
6709
6709
  })), a && a.length > 0 && (n.current = n.current.concat(
6710
- zn({
6710
+ Jn({
6711
6711
  domain: a,
6712
6712
  widgetFieldName: e
6713
6713
  })
@@ -6819,7 +6819,7 @@ const Nl = (e) => {
6819
6819
  };
6820
6820
  }, Bl = ({
6821
6821
  one2manyItems: e
6822
- }) => Pn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), jl = ({
6822
+ }) => Nn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), jl = ({
6823
6823
  formView: e,
6824
6824
  items: t,
6825
6825
  context: n,
@@ -6874,7 +6874,7 @@ const Nl = (e) => {
6874
6874
  } : y);
6875
6875
  t(w), s([]);
6876
6876
  } catch (g) {
6877
- $n(g);
6877
+ Hn(g);
6878
6878
  }
6879
6879
  f(0);
6880
6880
  }, [
@@ -6896,7 +6896,7 @@ const Nl = (e) => {
6896
6896
  } else
6897
6897
  t(n.filter((m) => m.id !== n[d].id));
6898
6898
  } catch (m) {
6899
- $n(m);
6899
+ Hn(m);
6900
6900
  }
6901
6901
  f(0);
6902
6902
  }, [n, d, o, f, t]), p = J(async () => c === "form" ? await l() : await u(), [c, l, u]);
@@ -7037,7 +7037,7 @@ const Gl = ({
7037
7037
  });
7038
7038
  }), o(m);
7039
7039
  } catch (w) {
7040
- $n(w);
7040
+ Hn(w);
7041
7041
  }
7042
7042
  },
7043
7043
  [r, n, a, o, s]
@@ -7091,7 +7091,7 @@ const Gl = ({
7091
7091
  }
7092
7092
  I.current = e, (x = y == null ? void 0 : y.current) == null || x.refresh(), (R = y == null ? void 0 : y.current) == null || R.unselectAll();
7093
7093
  }, [e]);
7094
- const C = Pn(() => e.length, [e]), O = Pn(() => To(
7094
+ const C = Nn(() => e.length, [e]), O = Nn(() => To(
7095
7095
  r,
7096
7096
  {
7097
7097
  ...Wo
@@ -7453,13 +7453,13 @@ const Gl = ({
7453
7453
  function ei(e) {
7454
7454
  const { ooui: t, showLabel: n = !0, responsiveBehaviour: o } = e, r = st(t.icon || "");
7455
7455
  return /* @__PURE__ */ i(oe, { children: (t.label || r) && n ? /* @__PURE__ */ i(is, { label: t.label, icon: r, children: /* @__PURE__ */ i(
7456
- Nn,
7456
+ Ln,
7457
7457
  {
7458
7458
  container: t.container,
7459
7459
  responsiveBehaviour: o
7460
7460
  }
7461
7461
  ) }) : /* @__PURE__ */ i(
7462
- Nn,
7462
+ Ln,
7463
7463
  {
7464
7464
  container: t.container,
7465
7465
  responsiveBehaviour: o
@@ -7495,7 +7495,7 @@ function rd(e) {
7495
7495
  s.label
7496
7496
  )) });
7497
7497
  }
7498
- const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7498
+ const { useToken: od } = Ke, { TextArea: Bn } = it, id = (e) => {
7499
7499
  const { ooui: t } = e, { id: n, readOnly: o, required: r, height: s, translatable: a } = t, { token: c } = od(), d = r && !o ? { backgroundColor: c.colorPrimaryBg } : void 0, f = Z(Le), { elementHasLostFocus: u } = f || {};
7500
7500
  return /* @__PURE__ */ i(Ce, { required: r, ...e, children: a ? /* @__PURE__ */ i(
7501
7501
  sd,
@@ -7505,7 +7505,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7505
7505
  requiredStyle: d
7506
7506
  }
7507
7507
  ) : /* @__PURE__ */ i(
7508
- Hn,
7508
+ Bn,
7509
7509
  {
7510
7510
  disabled: o || a,
7511
7511
  style: {
@@ -7542,7 +7542,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7542
7542
  l || p(!0);
7543
7543
  },
7544
7544
  children: /* @__PURE__ */ i(
7545
- Hn,
7545
+ Bn,
7546
7546
  {
7547
7547
  value: e,
7548
7548
  onChange: (m) => {
@@ -7579,7 +7579,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7579
7579
  )
7580
7580
  ] }) : /* @__PURE__ */ D(oe, { children: [
7581
7581
  /* @__PURE__ */ i(Ve, { gutter: 8, wrap: !1, children: /* @__PURE__ */ i(
7582
- Hn,
7582
+ Bn,
7583
7583
  {
7584
7584
  value: e,
7585
7585
  onChange: (m) => {
@@ -7608,7 +7608,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7608
7608
  ] });
7609
7609
  }, ad = (e) => {
7610
7610
  const { ooui: t } = e, { label: n, icon: o } = t, r = st(o || "");
7611
- return /* @__PURE__ */ i(pn, { orientation: "left", className: "text-sm", children: (r || n) && /* @__PURE__ */ D(Ue, { children: [
7611
+ return /* @__PURE__ */ i(hn, { orientation: "left", className: "text-sm", children: (r || n) && /* @__PURE__ */ D(Ue, { children: [
7612
7612
  r ? /* @__PURE__ */ i(r, {}) : null,
7613
7613
  n
7614
7614
  ] }) });
@@ -7643,7 +7643,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7643
7643
  });
7644
7644
  s(), await new Promise((F) => setTimeout(F, 200));
7645
7645
  const I = await Mt(b);
7646
- Cn(b, I.mime);
7646
+ xn(b, I.mime);
7647
7647
  },
7648
7648
  [o, n, e, r, t, s, d]
7649
7649
  ), u = J(async () => {
@@ -7655,7 +7655,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7655
7655
  return a.current["/"] = w, Yr({ fields: w });
7656
7656
  }, [e, t, a]), l = J(
7657
7657
  async (w) => {
7658
- const b = Kn(w, a.current)[jn(w)], I = b.relation, F = await M.getHandler().getFields({
7658
+ const b = Wn(w, a.current)[Kn(w)], I = b.relation, F = await M.getHandler().getFields({
7659
7659
  model: I,
7660
7660
  context: t,
7661
7661
  fields: []
@@ -7681,7 +7681,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7681
7681
  predefinedExports: w.map((I) => ({
7682
7682
  ...I,
7683
7683
  fields: I.fields.map((F) => {
7684
- const C = jn(F.key), V = Kn(F.key, a.current)[C];
7684
+ const C = Kn(F.key), V = Wn(F.key, a.current)[C];
7685
7685
  return V ? {
7686
7686
  key: F.key,
7687
7687
  title: V.string
@@ -7768,12 +7768,12 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7768
7768
  }, ti = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", ld = ({
7769
7769
  parentKey: e,
7770
7770
  key: t
7771
- }) => `${e ? e + "/" : ""}${t}`, Bn = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), jn = (e) => {
7771
+ }) => `${e ? e + "/" : ""}${t}`, jn = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Kn = (e) => {
7772
7772
  if (e.indexOf("/") === -1)
7773
7773
  return e;
7774
7774
  const t = e.split("/");
7775
7775
  return t[t.length - 1];
7776
- }, Kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Bn(e)], dd = ({
7776
+ }, Wn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[jn(e)], dd = ({
7777
7777
  title: e,
7778
7778
  parentTitle: t
7779
7779
  }) => `${t ? t + " → " : ""}${e}`, ud = async ({
@@ -7803,8 +7803,8 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7803
7803
  ...new Set(
7804
7804
  t.filter((n) => {
7805
7805
  var o, r;
7806
- return n.indexOf("/") === -1 ? !((o = e["/"]) != null && o[n]) : !((r = e == null ? void 0 : e[Bn(n)]) != null && r[n]);
7807
- }).map((n) => Bn(n))
7806
+ return n.indexOf("/") === -1 ? !((o = e["/"]) != null && o[n]) : !((r = e == null ? void 0 : e[jn(n)]) != null && r[n]);
7807
+ }).map((n) => jn(n))
7808
7808
  )
7809
7809
  ]), md = async ({
7810
7810
  predefinedExports: e,
@@ -7831,7 +7831,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7831
7831
  keys: e,
7832
7832
  fields: t
7833
7833
  }) => e.map((n) => {
7834
- const o = jn(n), s = Kn(n, t)[o];
7834
+ const o = Kn(n), s = Wn(n, t)[o];
7835
7835
  return ti(s) ? `${n}/id` : n;
7836
7836
  }), hd = (e) => {
7837
7837
  const t = /* @__PURE__ */ new Map(), n = [];
@@ -7899,7 +7899,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7899
7899
  const { ooui: t } = e;
7900
7900
  return /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(bd, { ooui: t }) });
7901
7901
  }, bd = (e) => /* @__PURE__ */ i(
7902
- Ln,
7902
+ $n,
7903
7903
  {
7904
7904
  onChange: (n, o) => {
7905
7905
  e.onChange && e.onChange(o);
@@ -7923,7 +7923,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7923
7923
  /* @__PURE__ */ i(ye, { flex: "1", children: /* @__PURE__ */ i(
7924
7924
  xo,
7925
7925
  {
7926
- ooui: new Yn({
7926
+ ooui: new qn({
7927
7927
  name: "model_selection",
7928
7928
  selection: s,
7929
7929
  readonly: a,
@@ -7971,7 +7971,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
7971
7971
  }
7972
7972
  async function w() {
7973
7973
  const I = await Mt(n);
7974
- Cn(n, I.mime);
7974
+ xn(n, I.mime);
7975
7975
  }
7976
7976
  async function y(I) {
7977
7977
  I.stopPropagation(), I.preventDefault();
@@ -8007,7 +8007,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
8007
8007
  /* @__PURE__ */ i(
8008
8008
  Ne,
8009
8009
  {
8010
- icon: /* @__PURE__ */ i(Jn, {}),
8010
+ icon: /* @__PURE__ */ i(Xn, {}),
8011
8011
  disabled: r,
8012
8012
  onClick: () => {
8013
8013
  f.current.click();
@@ -8022,7 +8022,7 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
8022
8022
  tooltip: p("download"),
8023
8023
  disabled: !n,
8024
8024
  onClick: g,
8025
- icon: /* @__PURE__ */ i(Xn, {})
8025
+ icon: /* @__PURE__ */ i(Qn, {})
8026
8026
  }
8027
8027
  ),
8028
8028
  /* @__PURE__ */ i(
@@ -8031,19 +8031,19 @@ const { useToken: od } = Ke, { TextArea: Hn } = it, id = (e) => {
8031
8031
  tooltip: p("clear"),
8032
8032
  disabled: r || !n,
8033
8033
  onClick: b,
8034
- icon: /* @__PURE__ */ i(Qn, {})
8034
+ icon: /* @__PURE__ */ i(Zn, {})
8035
8035
  }
8036
8036
  )
8037
8037
  ] }) })
8038
8038
  ] });
8039
- }, _n = {
8040
- tree: /* @__PURE__ */ i(or, {}),
8039
+ }, An = {
8040
+ tree: /* @__PURE__ */ i(ir, {}),
8041
8041
  form: /* @__PURE__ */ i(zt, {}),
8042
8042
  graph: /* @__PURE__ */ i(zi, {}),
8043
8043
  calendar: /* @__PURE__ */ i(Ji, {})
8044
8044
  };
8045
8045
  function qr(e) {
8046
- return e ? (_n == null ? void 0 : _n[e.type]) || /* @__PURE__ */ i(zt, {}) : /* @__PURE__ */ i(zt, {});
8046
+ return e ? (An == null ? void 0 : An[e.type]) || /* @__PURE__ */ i(zt, {}) : /* @__PURE__ */ i(zt, {});
8047
8047
  }
8048
8048
  function gr(e) {
8049
8049
  const {
@@ -8119,7 +8119,7 @@ function gr(e) {
8119
8119
  borderTopLeftRadius: 0,
8120
8120
  borderBottomLeftRadius: 0
8121
8121
  },
8122
- icon: /* @__PURE__ */ i(hn, { style: { fontSize: "0.5em" } }),
8122
+ icon: /* @__PURE__ */ i(gn, { style: { fontSize: "0.5em" } }),
8123
8123
  onClick: (l) => l.preventDefault()
8124
8124
  }
8125
8125
  )
@@ -8169,7 +8169,7 @@ function ni(e) {
8169
8169
  return /* @__PURE__ */ i(
8170
8170
  qe,
8171
8171
  {
8172
- icon: /* @__PURE__ */ i(yn, {}),
8172
+ icon: /* @__PURE__ */ i(wn, {}),
8173
8173
  tooltip: r("new"),
8174
8174
  onClick: s,
8175
8175
  disabled: t
@@ -8227,7 +8227,7 @@ const Rd = (e) => {
8227
8227
  } = e, { t: d } = he(), f = re(null), u = /* @__PURE__ */ D(Ne, { children: [
8228
8228
  /* @__PURE__ */ i(Fr, {}),
8229
8229
  `(${t})`,
8230
- /* @__PURE__ */ i(hn, { style: { fontSize: 12 } })
8230
+ /* @__PURE__ */ i(gn, { style: { fontSize: 12 } })
8231
8231
  ] });
8232
8232
  return /* @__PURE__ */ i(
8233
8233
  ho,
@@ -8236,7 +8236,7 @@ const Rd = (e) => {
8236
8236
  onRetrieveData: async () => [
8237
8237
  {
8238
8238
  items: n.map((l) => {
8239
- const p = l.link ? Fr : Xn, h = /* @__PURE__ */ D(Ve, { wrap: !1, align: "middle", gutter: 8, children: [
8239
+ const p = l.link ? Fr : Qn, h = /* @__PURE__ */ D(Ve, { wrap: !1, align: "middle", gutter: 8, children: [
8240
8240
  /* @__PURE__ */ i(ye, { style: { textAlign: "center" }, children: (l.datas_fname || l.link) && /* @__PURE__ */ i(
8241
8241
  wt,
8242
8242
  {
@@ -8286,7 +8286,7 @@ const Rd = (e) => {
8286
8286
  (l = f.current) == null || l.close(), c();
8287
8287
  },
8288
8288
  children: [
8289
- /* @__PURE__ */ i(or, {}),
8289
+ /* @__PURE__ */ i(ir, {}),
8290
8290
  " ",
8291
8291
  d("listAllAttachments")
8292
8292
  ]
@@ -8302,7 +8302,7 @@ const Rd = (e) => {
8302
8302
  (l = f.current) == null || l.close(), r();
8303
8303
  },
8304
8304
  children: [
8305
- /* @__PURE__ */ i(yn, {}),
8305
+ /* @__PURE__ */ i(wn, {}),
8306
8306
  " ",
8307
8307
  d("addNewAttachment")
8308
8308
  ]
@@ -8363,7 +8363,7 @@ function Vd(e) {
8363
8363
  if (p(!1), !!b)
8364
8364
  if (b.datas) {
8365
8365
  const I = await Mt(b.datas);
8366
- Cn(b.datas, I.mime);
8366
+ xn(b.datas, I.mime);
8367
8367
  } else
8368
8368
  s(b);
8369
8369
  },
@@ -8543,7 +8543,7 @@ function _d({ toolbar: e }) {
8543
8543
  /* @__PURE__ */ i(
8544
8544
  qe,
8545
8545
  {
8546
- icon: /* @__PURE__ */ i(ir, {}),
8546
+ icon: /* @__PURE__ */ i(sr, {}),
8547
8547
  tooltip: S("duplicate"),
8548
8548
  disabled: s || a || c === void 0 || g || b,
8549
8549
  loading: g,
@@ -8553,7 +8553,7 @@ function _d({ toolbar: e }) {
8553
8553
  /* @__PURE__ */ i(
8554
8554
  qe,
8555
8555
  {
8556
- icon: /* @__PURE__ */ i(rr, {}),
8556
+ icon: /* @__PURE__ */ i(or, {}),
8557
8557
  tooltip: S("delete"),
8558
8558
  disabled: a || c === void 0 || m || g || b,
8559
8559
  loading: m,
@@ -8576,7 +8576,7 @@ function _d({ toolbar: e }) {
8576
8576
  /* @__PURE__ */ i(
8577
8577
  qe,
8578
8578
  {
8579
- icon: /* @__PURE__ */ i(wn, {}),
8579
+ icon: /* @__PURE__ */ i(vn, {}),
8580
8580
  tooltip: S("refresh"),
8581
8581
  disabled: a || c === void 0 || m || g || b,
8582
8582
  loading: !1,
@@ -8632,7 +8632,7 @@ function _d({ toolbar: e }) {
8632
8632
  /* @__PURE__ */ i(
8633
8633
  Et,
8634
8634
  {
8635
- icon: /* @__PURE__ */ i(er, {}),
8635
+ icon: /* @__PURE__ */ i(tr, {}),
8636
8636
  placement: "bottomRight",
8637
8637
  disabled: W,
8638
8638
  onRetrieveData: async () => [
@@ -8648,7 +8648,7 @@ function _d({ toolbar: e }) {
8648
8648
  /* @__PURE__ */ i(
8649
8649
  Et,
8650
8650
  {
8651
- icon: /* @__PURE__ */ i(tr, {}),
8651
+ icon: /* @__PURE__ */ i(nr, {}),
8652
8652
  disabled: W,
8653
8653
  placement: "bottomRight",
8654
8654
  onRetrieveData: async () => [
@@ -8673,7 +8673,7 @@ function _d({ toolbar: e }) {
8673
8673
  /* @__PURE__ */ i(
8674
8674
  Et,
8675
8675
  {
8676
- icon: /* @__PURE__ */ i(nr, {}),
8676
+ icon: /* @__PURE__ */ i(rr, {}),
8677
8677
  disabled: W,
8678
8678
  placement: "bottomRight",
8679
8679
  onRetrieveData: async () => [
@@ -8771,7 +8771,7 @@ const { useToken: Ad } = Ke, oi = (e) => {
8771
8771
  c ? null : /* @__PURE__ */ i(ye, { flex: "none", children: h ? /* @__PURE__ */ i(
8772
8772
  Ne,
8773
8773
  {
8774
- icon: /* @__PURE__ */ i(gn, {}),
8774
+ icon: /* @__PURE__ */ i(yn, {}),
8775
8775
  onClick: () => {
8776
8776
  r(n) && (m(!1), w(!1));
8777
8777
  },
@@ -8902,7 +8902,7 @@ const { useToken: Ad } = Ke, oi = (e) => {
8902
8902
  tabIndex: 0,
8903
8903
  loading: r,
8904
8904
  style: { marginLeft: 15 },
8905
- icon: /* @__PURE__ */ i(nr, {}),
8905
+ icon: /* @__PURE__ */ i(rr, {}),
8906
8906
  htmlType: "submit",
8907
8907
  type: "primary",
8908
8908
  disabled: r,
@@ -8979,7 +8979,7 @@ function Pd({ refreshGraph: e }) {
8979
8979
  /* @__PURE__ */ i(
8980
8980
  qe,
8981
8981
  {
8982
- icon: /* @__PURE__ */ i(wn, {}),
8982
+ icon: /* @__PURE__ */ i(vn, {}),
8983
8983
  tooltip: t("refresh"),
8984
8984
  disabled: d,
8985
8985
  loading: !1,
@@ -9003,7 +9003,7 @@ function Pd({ refreshGraph: e }) {
9003
9003
  ] });
9004
9004
  }
9005
9005
  const { useToken: Nd } = Ke, { Title: Ld, Text: ln } = Nt;
9006
- function xn(e) {
9006
+ function Sn(e) {
9007
9007
  const { title: t, children: n } = e, {
9008
9008
  title: o,
9009
9009
  currentView: r,
@@ -9022,7 +9022,7 @@ function xn(e) {
9022
9022
  /* @__PURE__ */ i(
9023
9023
  ln,
9024
9024
  {
9025
- copyable: { icon: /* @__PURE__ */ i(ir, { style: { color: "red" } }) },
9025
+ copyable: { icon: /* @__PURE__ */ i(sr, { style: { color: "red" } }) },
9026
9026
  children: s
9027
9027
  }
9028
9028
  ),
@@ -9160,7 +9160,7 @@ const $d = (e) => {
9160
9160
  setLimit: T
9161
9161
  });
9162
9162
  return !n || !t ? null : /* @__PURE__ */ D(oe, { children: [
9163
- /* @__PURE__ */ i(xn, { title: t.title || t.name, children: /* @__PURE__ */ i(
9163
+ /* @__PURE__ */ i(Sn, { title: t.title || t.name, children: /* @__PURE__ */ i(
9164
9164
  Pd,
9165
9165
  {
9166
9166
  refreshGraph: () => {
@@ -9218,7 +9218,7 @@ const $d = (e) => {
9218
9218
  setCurrentItemIndex: p
9219
9219
  } = e;
9220
9220
  return t ? /* @__PURE__ */ D(oe, { children: [
9221
- /* @__PURE__ */ i(xn, { children: /* @__PURE__ */ i(_d, { toolbar: a == null ? void 0 : a.toolbar }) }),
9221
+ /* @__PURE__ */ i(Sn, { children: /* @__PURE__ */ i(_d, { toolbar: a == null ? void 0 : a.toolbar }) }),
9222
9222
  /* @__PURE__ */ i(
9223
9223
  Kt,
9224
9224
  {
@@ -9408,7 +9408,7 @@ function jd(e) {
9408
9408
  /* @__PURE__ */ i(
9409
9409
  qe,
9410
9410
  {
9411
- icon: /* @__PURE__ */ i(ir, {}),
9411
+ icon: /* @__PURE__ */ i(sr, {}),
9412
9412
  tooltip: R("duplicate"),
9413
9413
  disabled: !r || (r == null ? void 0 : r.length) !== 1 || c || b,
9414
9414
  loading: c,
@@ -9418,7 +9418,7 @@ function jd(e) {
9418
9418
  /* @__PURE__ */ i(
9419
9419
  qe,
9420
9420
  {
9421
- icon: /* @__PURE__ */ i(rr, {}),
9421
+ icon: /* @__PURE__ */ i(or, {}),
9422
9422
  tooltip: R("delete"),
9423
9423
  disabled: !(r && (r == null ? void 0 : r.length) > 0) || b,
9424
9424
  loading: a,
@@ -9442,7 +9442,7 @@ function jd(e) {
9442
9442
  /* @__PURE__ */ i(
9443
9443
  qe,
9444
9444
  {
9445
- icon: /* @__PURE__ */ i(wn, {}),
9445
+ icon: /* @__PURE__ */ i(vn, {}),
9446
9446
  tooltip: R("refresh"),
9447
9447
  disabled: c || a || b,
9448
9448
  loading: !1,
@@ -9471,7 +9471,7 @@ function jd(e) {
9471
9471
  /* @__PURE__ */ i(
9472
9472
  Et,
9473
9473
  {
9474
- icon: /* @__PURE__ */ i(er, {}),
9474
+ icon: /* @__PURE__ */ i(tr, {}),
9475
9475
  placement: "bottomRight",
9476
9476
  disabled: !(r && (r == null ? void 0 : r.length) > 0) || b,
9477
9477
  onRetrieveData: async () => [
@@ -9485,7 +9485,7 @@ function jd(e) {
9485
9485
  /* @__PURE__ */ i(
9486
9486
  Et,
9487
9487
  {
9488
- icon: /* @__PURE__ */ i(tr, {}),
9488
+ icon: /* @__PURE__ */ i(nr, {}),
9489
9489
  placement: "bottomRight",
9490
9490
  disabled: !(r && (r == null ? void 0 : r.length) > 0) || b,
9491
9491
  onRetrieveData: async () => [
@@ -9611,7 +9611,7 @@ const Kd = (e) => {
9611
9611
  nt
9612
9612
  );
9613
9613
  return t ? /* @__PURE__ */ D(oe, { children: [
9614
- /* @__PURE__ */ i(xn, { children: /* @__PURE__ */ i(
9614
+ /* @__PURE__ */ i(Sn, { children: /* @__PURE__ */ i(
9615
9615
  jd,
9616
9616
  {
9617
9617
  toolbar: a == null ? void 0 : a.toolbar,
@@ -9697,7 +9697,7 @@ function Gd() {
9697
9697
  /* @__PURE__ */ i(
9698
9698
  qe,
9699
9699
  {
9700
- icon: /* @__PURE__ */ i(wn, {}),
9700
+ icon: /* @__PURE__ */ i(vn, {}),
9701
9701
  tooltip: r("refresh"),
9702
9702
  disabled: e,
9703
9703
  loading: !1,
@@ -9723,7 +9723,7 @@ const Yd = (e) => {
9723
9723
  s(a);
9724
9724
  },
9725
9725
  children: [
9726
- /* @__PURE__ */ i(xn, { children: /* @__PURE__ */ i(Gd, {}) }),
9726
+ /* @__PURE__ */ i(Sn, { children: /* @__PURE__ */ i(Gd, {}) }),
9727
9727
  /* @__PURE__ */ i(
9728
9728
  nu,
9729
9729
  {
@@ -10210,7 +10210,7 @@ function Qd(e) {
10210
10210
  ] });
10211
10211
  return k ? /* @__PURE__ */ i(Je, { className: "mt-10", message: k, type: "error", banner: !0 }) : d ? /* @__PURE__ */ i(je, { style: { padding: "2rem" } }) : ve();
10212
10212
  }
10213
- const Zd = Wn(Qd), eu = (e) => {
10213
+ const Zd = Gn(Qd), eu = (e) => {
10214
10214
  const { model: t } = e, [n, o] = v();
10215
10215
  ue(() => {
10216
10216
  r();
@@ -10224,7 +10224,7 @@ const Zd = Wn(Qd), eu = (e) => {
10224
10224
  s.length > 0 && o(s[0].id);
10225
10225
  }
10226
10226
  return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(Kt, { ...e, model: t, id: n, readOnly: !0 }) });
10227
- }, An = "line_ids";
10227
+ }, Dn = "line_ids";
10228
10228
  function tu(e, t) {
10229
10229
  const { model: n, context: o = {}, id: r, configAction: s } = e, [a, c] = v([]), [d, f] = v(!1), [u, l] = v(), {
10230
10230
  setIsLoading: p,
@@ -10246,7 +10246,7 @@ function tu(e, t) {
10246
10246
  async function C() {
10247
10247
  f(!0), p(!0), l(void 0);
10248
10248
  try {
10249
- const R = await O(), A = await T(R), N = R.fields[An].relation, K = A[An].items;
10249
+ const R = await O(), A = await T(R), N = R.fields[Dn].relation, K = A[Dn].items;
10250
10250
  w.current = R.fields;
10251
10251
  const j = await V({
10252
10252
  items: K,
@@ -10349,7 +10349,7 @@ function tu(e, t) {
10349
10349
  await I({
10350
10350
  model: n,
10351
10351
  id: r,
10352
- values: { [An]: j },
10352
+ values: { [Dn]: j },
10353
10353
  fields: w.current,
10354
10354
  context: o
10355
10355
  });
@@ -10633,7 +10633,7 @@ const nu = ht(tu), ru = (e) => {
10633
10633
  }
10634
10634
  }
10635
10635
  ) });
10636
- }, { Meta: pu } = Gn, { Text: hu } = Nt, gu = ({ email: e, size: t = 40, theme: n = "" }) => {
10636
+ }, { Meta: pu } = Un, { Text: hu } = Nt, gu = ({ email: e, size: t = 40, theme: n = "" }) => {
10637
10637
  const o = `https://www.gravatar.com/avatar/${Ms(
10638
10638
  e
10639
10639
  )}?s=${t}&d=${n}`;
@@ -10649,7 +10649,7 @@ function yu({ text: e }) {
10649
10649
  }
10650
10650
  const wu = (e) => {
10651
10651
  const { data: t, style: n } = e, { t: o } = he();
10652
- return /* @__PURE__ */ D(Gn, { style: { ...n, textAlign: "start" }, children: [
10652
+ return /* @__PURE__ */ D(Un, { style: { ...n, textAlign: "start" }, children: [
10653
10653
  /* @__PURE__ */ i(
10654
10654
  pu,
10655
10655
  {
@@ -10678,7 +10678,7 @@ const wu = (e) => {
10678
10678
  children: /* @__PURE__ */ i(wu, { data: o.event })
10679
10679
  };
10680
10680
  });
10681
- return /* @__PURE__ */ i(Dn, { mode: "alternate", items: n });
10681
+ return /* @__PURE__ */ i(En, { mode: "alternate", items: n });
10682
10682
  }, bu = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(vu, {}) }), Cu = (e) => /* @__PURE__ */ i(Ce, { ...e, children: /* @__PURE__ */ i(as, {}) }), xu = (e) => {
10683
10683
  const { ooui: t } = e, { title: n, text: o, alertType: r, icon: s } = t;
10684
10684
  function a(c) {
@@ -10961,7 +10961,7 @@ function Fu(e, t) {
10961
10961
  treeExpandable: j = !1,
10962
10962
  limit: G
10963
10963
  }) {
10964
- const k = ar();
10964
+ const k = cr();
10965
10965
  if (S !== "current") {
10966
10966
  const Y = await M.getHandler().getView({
10967
10967
  model: O,
@@ -11209,7 +11209,7 @@ const { useToken: Au } = Ke, Ff = (e) => {
11209
11209
  ...A,
11210
11210
  id: A.id,
11211
11211
  name: A.name,
11212
- icon: A.view_type === "tree" ? /* @__PURE__ */ i(or, {}) : /* @__PURE__ */ i(zt, {})
11212
+ icon: A.view_type === "tree" ? /* @__PURE__ */ i(ir, {}) : /* @__PURE__ */ i(zt, {})
11213
11213
  }))
11214
11214
  }
11215
11215
  ];
@@ -11303,8 +11303,8 @@ export {
11303
11303
  ei as Group,
11304
11304
  Cu as HTMLPreview,
11305
11305
  da as Image,
11306
- mn as Integer,
11307
- vn as Label,
11306
+ pn as Integer,
11307
+ bn as Label,
11308
11308
  _l as Many2one,
11309
11309
  iu as Markdown,
11310
11310
  ru as MultiCheckbox,