@gisce/react-ooui 2.0.0-alpha.49 → 2.0.0-alpha.50

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.
@@ -3,8 +3,8 @@ var zo = (e, t, r) => t in e ? qo(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var ir = (e, t, r) => (zo(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { jsxs as A, jsx as n, Fragment as Z } from "react/jsx-runtime";
5
5
  import et, { useContext as H, useState as w, useEffect as me, useRef as de, useCallback as De, forwardRef as wt, useImperativeHandle as bt, Fragment as Jo } from "react";
6
- import { Tooltip as ht, theme as Pe, Typography as Yt, Form as lt, Row as be, Col as ae, Modal as Je, Button as Oe, Dropdown as Gt, Menu as He, Spin as Ae, Divider as cn, Space as je, Input as it, Select as Ct, Checkbox as Ht, Alert as tt, Timeline as Rn, Statistic as Xo, Card as Nn, Tag as _r, message as xn, DatePicker as Pn, TimePicker as Vr, InputNumber as Ar, Progress as Zo, Avatar as Dr, Badge as Qo, Pagination as ei, Tabs as kr, Popover as ti, Radio as sr, Switch as ni, Steps as ar, Layout as ri } from "antd";
7
- import { Label as Dt, Field as _n, Tree as Er, Reference as oi, Selection as Ln, Many2one as Mr, Boolean as ii, Container as si, parseContext as vt, Form as Nr, Integer as Vn, SearchFieldTypes as mt, SearchFilter as ai, parseContextFields as Sn, parseDomainFields as lr, transformDomainForChildWidget as Pr, graphProcessor as Lr, parseGraph as Bn, graphFieldUtils as li } from "@gisce/ooui";
6
+ import { Tooltip as ht, theme as Pe, Typography as Yt, Form as lt, Row as be, Col as ae, Modal as Je, Button as Oe, Dropdown as Gt, Menu as He, Spin as Ae, Divider as cn, Space as je, Input as it, Select as Ct, Checkbox as Ht, Alert as tt, Timeline as _n, Statistic as Xo, Card as Nn, Tag as Rr, message as xn, DatePicker as Pn, TimePicker as Vr, InputNumber as Ar, Progress as Zo, Avatar as Dr, Badge as Qo, Pagination as ei, Tabs as kr, Popover as ti, Radio as sr, Switch as ni, Steps as ar, Layout as ri } from "antd";
7
+ import { Label as Dt, Field as Rn, Tree as Er, Reference as oi, Selection as Ln, Many2one as Mr, Boolean as ii, Container as si, parseContext as vt, Form as Nr, Integer as Vn, SearchFieldTypes as mt, SearchFilter as ai, parseContextFields as Sn, parseDomainFields as lr, transformDomainForChildWidget as Pr, graphProcessor as Lr, parseGraph as Bn, graphFieldUtils as li } from "@gisce/ooui";
8
8
  import * as cr from "@ant-design/icons";
9
9
  import Br, { QuestionCircleOutlined as $r, ExclamationCircleOutlined as pt, LoadingOutlined as at, DownOutlined as kt, WarningOutlined as Hr, CloseOutlined as Ut, CheckOutlined as Et, TranslationOutlined as Kr, FolderOpenOutlined as $n, DownloadOutlined as Hn, ClearOutlined as Kn, StarFilled as Wr, StarOutlined as jr, UpOutlined as ci, SearchOutlined as Wn, RightCircleOutlined as di, ThunderboltOutlined as jn, PrinterOutlined as Yn, EnterOutlined as Yr, PlusSquareOutlined as ui, MinusSquareOutlined as fi, FileAddOutlined as dn, AlignLeftOutlined as mi, ApiOutlined as hi, DeleteOutlined as Gn, LeftOutlined as Gr, RightOutlined as Ur, EyeOutlined as pi, FormOutlined as Kt, TableOutlined as Un, AreaChartOutlined as gi, CalendarOutlined as yi, LinkOutlined as qr, SaveOutlined as vi, CopyOutlined as qn, InfoCircleOutlined as zr, ReloadOutlined as un, EditOutlined as Jr, FilterOutlined as Xr, CloseCircleFilled as wi, BorderOuterOutlined as bi, SettingOutlined as Ci, ExportOutlined as xi } from "@ant-design/icons";
10
10
  import { Interweave as zn } from "interweave";
@@ -17,8 +17,8 @@ import An from "antd/lib/typography/Title";
17
17
  import { Line as Ii, Column as Fi, Pie as Oi } from "@ant-design/plots";
18
18
  import nt from "dayjs";
19
19
  import xt from "use-deep-compare-effect";
20
- import { Table as Ri } from "@gisce/react-formiga-table";
21
- import { fileTypeFromBuffer as _i } from "file-type-buffer-browser";
20
+ import { Table as _i } from "@gisce/react-formiga-table";
21
+ import { fileTypeFromBuffer as Ri } from "file-type-buffer-browser";
22
22
  import { isPresetStatusColor as Vi, isPresetColor as Ai } from "antd/lib/_util/colors";
23
23
  import Di from "dayjs/plugin/advancedFormat";
24
24
  import ki from "dayjs/plugin/customParseFormat";
@@ -658,8 +658,8 @@ const Qr = (e) => {
658
658
  if (y)
659
659
  return /* @__PURE__ */ n(at, {});
660
660
  if (u) {
661
- const R = ct(u);
662
- return R && /* @__PURE__ */ n(R, {});
661
+ const _ = ct(u);
662
+ return _ && /* @__PURE__ */ n(_, {});
663
663
  }
664
664
  }
665
665
  async function b() {
@@ -681,7 +681,7 @@ const Qr = (e) => {
681
681
  if (t.buttons.length === 0)
682
682
  return null;
683
683
  if (t.buttons.length > 1)
684
- return /* @__PURE__ */ n(ge, { ooui: new _n({ ooui: t }), children: /* @__PURE__ */ A(
684
+ return /* @__PURE__ */ n(ge, { ooui: new Rn({ ooui: t }), children: /* @__PURE__ */ A(
685
685
  Gt.Button,
686
686
  {
687
687
  disabled: !a || p,
@@ -876,7 +876,7 @@ const eo = (e) => {
876
876
  ) })
877
877
  ] }, S));
878
878
  }
879
- async function R() {
879
+ async function _() {
880
880
  h(!0);
881
881
  try {
882
882
  for (const x of Object.keys(g))
@@ -913,7 +913,7 @@ const eo = (e) => {
913
913
  {
914
914
  icon: p ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(Et, {}),
915
915
  disabled: p,
916
- onClick: R,
916
+ onClick: _,
917
917
  style: { marginLeft: 15 },
918
918
  type: "primary",
919
919
  children: d("ok")
@@ -1073,11 +1073,11 @@ const { info: ys } = Je, ft = (e) => {
1073
1073
  }
1074
1074
  `, { defaultAlgorithm: Is, defaultSeed: Fs } = Pe, hr = Is(Fs), Os = (e) => {
1075
1075
  const { ooui: t } = e, { id: r, readOnly: i, required: o } = t;
1076
- return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(Rs, { id: r, readOnly: i, required: o }) });
1077
- }, Rs = (e) => {
1076
+ return /* @__PURE__ */ n(ge, { ...e, valuePropName: "checked", children: /* @__PURE__ */ n(_s, { id: r, readOnly: i, required: o }) });
1077
+ }, _s = (e) => {
1078
1078
  const { required: t, readOnly: r, ...i } = e;
1079
- return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(t && !r ? _s : Ht, { disabled: r, ...i }) });
1080
- }, _s = Mt(Ht)`
1079
+ return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(t && !r ? Rs : Ht, { disabled: r, ...i }) });
1080
+ }, Rs = Mt(Ht)`
1081
1081
  .ant-checkbox-inner {
1082
1082
  background-color: ${hr.colorPrimaryBg};
1083
1083
  }
@@ -1091,7 +1091,7 @@ function Vs(e) {
1091
1091
  return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
1092
1092
  }
1093
1093
  async function At(e) {
1094
- const t = await _i(
1094
+ const t = await Ri(
1095
1095
  Buffer.from(e, "base64")
1096
1096
  );
1097
1097
  return t || {
@@ -1203,7 +1203,7 @@ const As = (e) => {
1203
1203
  }
1204
1204
  }
1205
1205
  );
1206
- }, Rt = (e) => {
1206
+ }, _t = (e) => {
1207
1207
  const t = e.arch, r = e.fields, i = new Er(r);
1208
1208
  return i.parse(t), i;
1209
1209
  }, Ms = (e, t, r) => e.columns.map((o) => {
@@ -1249,7 +1249,7 @@ function ao(e, t) {
1249
1249
  r[i.id] = i[t];
1250
1250
  }), r;
1251
1251
  }
1252
- function _t({
1252
+ function Rt({
1253
1253
  resultsToSort: e,
1254
1254
  sorter: t,
1255
1255
  fields: r
@@ -1286,7 +1286,7 @@ const Xn = async (e) => {
1286
1286
  };
1287
1287
  let c = [], f;
1288
1288
  if (a === "tree" && (o != null && o.arch)) {
1289
- const g = (h = Rt(o)) == null ? void 0 : h.colors, y = await E.getHandler().readEvalUiObjects({
1289
+ const g = (h = _t(o)) == null ? void 0 : h.colors, y = await E.getHandler().readEvalUiObjects({
1290
1290
  model: r,
1291
1291
  ids: d,
1292
1292
  arch: o == null ? void 0 : o.arch,
@@ -1358,7 +1358,7 @@ const Xn = async (e) => {
1358
1358
  xt(() => {
1359
1359
  k();
1360
1360
  }, [s]);
1361
- const R = (x) => {
1361
+ const _ = (x) => {
1362
1362
  o == null || o({
1363
1363
  items: x
1364
1364
  });
@@ -1379,7 +1379,7 @@ const Xn = async (e) => {
1379
1379
  context: { ...O == null ? void 0 : O(), ...g },
1380
1380
  currentView: "form"
1381
1381
  });
1382
- R(x);
1382
+ _(x);
1383
1383
  } catch (x) {
1384
1384
  u(x);
1385
1385
  } finally {
@@ -1387,9 +1387,9 @@ const Xn = async (e) => {
1387
1387
  }
1388
1388
  }
1389
1389
  return d ? /* @__PURE__ */ n(tt, { className: "mt-10", message: d, type: "error", banner: !0 }) : a ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ A(Z, { children: [
1390
- /* @__PURE__ */ n(Rn, { style: { padding: "1rem" }, children: F.map((x, S) => {
1390
+ /* @__PURE__ */ n(_n, { style: { padding: "1rem" }, children: F.map((x, S) => {
1391
1391
  var I, C;
1392
- return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ A(Rn.Item, { children: [
1392
+ return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ A(_n.Item, { children: [
1393
1393
  /* @__PURE__ */ n(
1394
1394
  "div",
1395
1395
  {
@@ -1617,25 +1617,25 @@ const Nt = ({
1617
1617
  borderColor: t,
1618
1618
  borderStyle: "solid",
1619
1619
  borderWidth: "1px"
1620
- }, t = `${t}20`), /* @__PURE__ */ n(_r, { ...e, style: r, color: t, children: e.children });
1620
+ }, t = `${t}20`), /* @__PURE__ */ n(Rr, { ...e, style: r, color: t, children: e.children });
1621
1621
  }, Xs = (e) => {
1622
1622
  const { ooui: t } = e;
1623
1623
  return /* @__PURE__ */ n(ge, { type: "array", ...e, children: /* @__PURE__ */ n(Zs, { ooui: t }) });
1624
1624
  }, Zs = (e) => {
1625
- const { value: t, ooui: r, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((R) => R.operation !== "pendingRemove").map((R) => R.id), [a, l] = w([]), [d, u] = w(), [c, f] = w(!1), { relation: m, context: p, readOnly: h, field: g } = r, y = H(Ne), { getContext: v } = y || {};
1625
+ const { value: t, ooui: r, onChange: i } = e, { items: o = [] } = t || {}, s = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [a, l] = w([]), [d, u] = w(), [c, f] = w(!1), { relation: m, context: p, readOnly: h, field: g } = r, y = H(Ne), { getContext: v } = y || {};
1626
1626
  xt(() => {
1627
1627
  F();
1628
1628
  }, [o]);
1629
- const T = (R) => {
1629
+ const T = (_) => {
1630
1630
  i == null || i({
1631
- items: R
1631
+ items: _
1632
1632
  });
1633
1633
  };
1634
1634
  async function F() {
1635
1635
  f(!0);
1636
- let R = [];
1636
+ let _ = [];
1637
1637
  try {
1638
- if (h && (R = [["id", "in", s]]), r.domain) {
1638
+ if (h && (_ = [["id", "in", s]]), r.domain) {
1639
1639
  const S = await E.getHandler().evalDomain({
1640
1640
  domain: r.domain,
1641
1641
  values: Nt({
@@ -1645,11 +1645,11 @@ const Nt = ({
1645
1645
  fields: y == null ? void 0 : y.getFields(),
1646
1646
  context: y.getContext()
1647
1647
  });
1648
- R = [...R, ...S];
1648
+ _ = [..._, ...S];
1649
1649
  }
1650
1650
  const x = (await E.getHandler().search({
1651
1651
  model: m,
1652
- params: R,
1652
+ params: _,
1653
1653
  fieldsToRetrieve: [g],
1654
1654
  context: { ...v == null ? void 0 : v(), ...p }
1655
1655
  })).map((S) => {
@@ -1664,16 +1664,16 @@ const Nt = ({
1664
1664
  f(!1);
1665
1665
  }
1666
1666
  }
1667
- const b = (R) => {
1668
- const k = o.map((S) => R.includes(S.id) ? S.operation == "pendingRemove" ? {
1667
+ const b = (_) => {
1668
+ const k = o.map((S) => _.includes(S.id) ? S.operation == "pendingRemove" ? {
1669
1669
  ...S,
1670
1670
  operation: "pendingLink"
1671
1671
  } : S : { id: S.id, operation: "pendingRemove" }), x = k.map((S) => S.id);
1672
- R.filter((S) => !x.includes(S)).map((S) => {
1672
+ _.filter((S) => !x.includes(S)).map((S) => {
1673
1673
  k.push({ id: S, operation: "pendingLink" });
1674
1674
  }), T(k);
1675
- }, O = (R) => {
1676
- const { label: k, closable: x, onClose: S } = R, I = (D) => {
1675
+ }, O = (_) => {
1676
+ const { label: k, closable: x, onClose: S } = _, I = (D) => {
1677
1677
  D.preventDefault(), D.stopPropagation();
1678
1678
  }, C = nn(k);
1679
1679
  return /* @__PURE__ */ n(
@@ -1754,7 +1754,7 @@ const Nt = ({
1754
1754
  case "url":
1755
1755
  return Oc;
1756
1756
  case "email":
1757
- return Rc;
1757
+ return _c;
1758
1758
  case "float_time":
1759
1759
  return Ul;
1760
1760
  case "fiber_grid":
@@ -2003,9 +2003,9 @@ const Nt = ({
2003
2003
  currentId: F,
2004
2004
  limit: b,
2005
2005
  setLimit: O,
2006
- searchParams: R = [],
2006
+ searchParams: _ = [],
2007
2007
  setSearchValues: k
2008
- } = e, [x, S] = w(!1), [I, C] = w(!1), [D, P] = w(), [L, j] = w(1), [M, B] = w(0), [K, V] = w(), [G, ne] = w([]), [J, le] = w(void 0), [Y, _] = w(void 0), N = de(b || jt), ee = de([]), ce = De((re) => {
2008
+ } = e, [x, S] = w(!1), [I, C] = w(!1), [D, P] = w(), [L, j] = w(1), [M, B] = w(0), [K, V] = w(), [G, ne] = w([]), [J, le] = w(void 0), [Y, R] = w(void 0), N = de(b || jt), ee = de([]), ce = De((re) => {
2009
2009
  y == null || y([...re]), ne([...re]);
2010
2010
  }, []), Ie = De(() => v || G, [v, G]), X = De(async () => {
2011
2011
  const re = await E.getHandler().nameSearch({
@@ -2016,18 +2016,18 @@ const Nt = ({
2016
2016
  context: u
2017
2017
  });
2018
2018
  if (V(re.length), c == null || c(re.length), re.length > 0) {
2019
- const Ee = re.map((oe) => oe == null ? void 0 : oe[0]), { colors: ye, status: Me } = Rt(f), Ke = {};
2019
+ const Ee = re.map((oe) => oe == null ? void 0 : oe[0]), { colors: ye, status: Me } = _t(f), Ke = {};
2020
2020
  ye && (Ke.colors = ye), Me && (Ke.status = Me);
2021
- const z = await E.getHandler().readEvalUiObjects({
2021
+ const q = await E.getHandler().readEvalUiObjects({
2022
2022
  model: t,
2023
2023
  ids: Ee,
2024
2024
  arch: f == null ? void 0 : f.arch,
2025
2025
  fields: f.field_parent ? { ...f.fields, [f.field_parent]: {} } : f.fields,
2026
2026
  context: u,
2027
2027
  attrs: Ke
2028
- }), ve = z[0];
2029
- ee.current = [...ve], le(tn(z[1])), _(pr(z[1]));
2030
- const Ve = ve.map((oe) => oe.id), Be = p !== void 0 ? _t({
2028
+ }), ve = q[0];
2029
+ ee.current = [...ve], le(tn(q[1])), R(pr(q[1]));
2030
+ const Ve = ve.map((oe) => oe.id), Be = p !== void 0 ? Rt({
2031
2031
  resultsToSort: ve,
2032
2032
  sorter: p,
2033
2033
  fields: { ...f.fields, ...m.fields }
@@ -2050,8 +2050,8 @@ const Nt = ({
2050
2050
  c
2051
2051
  ]), U = De(
2052
2052
  async (re) => {
2053
- const { params: Ee, newOffset: ye } = re || {}, Me = Wt(Ee || R, T), { colors: Ke, status: z } = Rt(f), ve = {};
2054
- Ke && (ve.colors = Ke), z && (ve.status = z);
2053
+ const { params: Ee, newOffset: ye } = re || {}, Me = Wt(Ee || _, T), { colors: Ke, status: q } = _t(f), ve = {};
2054
+ Ke && (ve.colors = Ke), q && (ve.status = q);
2055
2055
  const { totalItems: Ve, results: Be, attrsEvaluated: oe } = await E.getHandler().searchForTree({
2056
2056
  params: Me,
2057
2057
  limit: N.current,
@@ -2061,8 +2061,8 @@ const Nt = ({
2061
2061
  context: u,
2062
2062
  attrs: ve
2063
2063
  });
2064
- le(tn(oe)), _(pr(oe)), ee.current = [...Be];
2065
- const ue = p !== void 0 ? _t({
2064
+ le(tn(oe)), R(pr(oe)), ee.current = [...Be];
2065
+ const ue = p !== void 0 ? Rt({
2066
2066
  resultsToSort: Be,
2067
2067
  sorter: p,
2068
2068
  fields: { ...f.fields, ...m.fields }
@@ -2092,7 +2092,7 @@ const Nt = ({
2092
2092
  c,
2093
2093
  b,
2094
2094
  M,
2095
- R
2095
+ _
2096
2096
  ]
2097
2097
  ), Ce = De(
2098
2098
  async (re) => {
@@ -2130,7 +2130,7 @@ const Nt = ({
2130
2130
  if (JSON.stringify(re) === JSON.stringify(p))
2131
2131
  return;
2132
2132
  h == null || h(re);
2133
- const Ee = re !== void 0 ? _t({
2133
+ const Ee = re !== void 0 ? Rt({
2134
2134
  resultsToSort: Ie(),
2135
2135
  sorter: re,
2136
2136
  fields: { ...f.fields, ...m.fields }
@@ -2183,15 +2183,15 @@ const Nt = ({
2183
2183
  fields: f.field_parent ? { ...f.fields, [f.field_parent]: {} } : f.fields,
2184
2184
  context: u
2185
2185
  });
2186
- return ce([...Ie(), ...ye]), so(Rt(f), ye);
2186
+ return ce([...Ie(), ...ye]), so(_t(f), ye);
2187
2187
  },
2188
2188
  [f, t, u, Ie, ce]
2189
2189
  ), xe = De(async () => await E.getHandler().searchAllIds({
2190
- params: Wt(R, T),
2190
+ params: Wt(_, T),
2191
2191
  model: t,
2192
2192
  context: u,
2193
2193
  totalItems: K
2194
- }), [t, u, K, R, T]);
2194
+ }), [t, u, K, _, T]);
2195
2195
  return {
2196
2196
  submit: Ye,
2197
2197
  clear: Le,
@@ -2234,11 +2234,11 @@ const Nt = ({
2234
2234
  setTotalItems: F,
2235
2235
  setSelectedRowItems: b,
2236
2236
  selectedRowItems: O,
2237
- searchTreeNameSearch: R,
2237
+ searchTreeNameSearch: _,
2238
2238
  setSearchTreeNameSearch: k,
2239
2239
  goToResourceId: x,
2240
2240
  limit: S
2241
- } = e, [I, C] = w(!1), [D, P] = w(!1), [L, j] = w(!1), [M, B] = w(!0), [K, V] = w(!0), [G, ne] = w([]), [J, le] = w(!1), [Y, _] = w([]), [N, ee] = w(!1), [ce, Ie] = w(!0), [X, U] = w(), [Ce, we] = w({}), [Ye, ke] = w(
2241
+ } = e, [I, C] = w(!1), [D, P] = w(!1), [L, j] = w(!1), [M, B] = w(!0), [K, V] = w(!0), [G, ne] = w([]), [J, le] = w(!1), [Y, R] = w([]), [N, ee] = w(!1), [ce, Ie] = w(!0), [X, U] = w(), [Ce, we] = w({}), [Ye, ke] = w(
2242
2242
  S !== void 0 ? S : jt
2243
2243
  ), [Le, Ue] = w(i);
2244
2244
  me(() => {
@@ -2297,7 +2297,7 @@ const Nt = ({
2297
2297
  setSelectedRowItems: b,
2298
2298
  duplicatingItem: J,
2299
2299
  setDuplicatingItem: le,
2300
- setSearchParams: _,
2300
+ setSearchParams: R,
2301
2301
  searchParams: Y,
2302
2302
  searchVisible: N,
2303
2303
  setSearchVisible: ee,
@@ -2305,7 +2305,7 @@ const Nt = ({
2305
2305
  setSorter: v,
2306
2306
  totalItems: T,
2307
2307
  setTotalItems: F,
2308
- searchTreeNameSearch: R,
2308
+ searchTreeNameSearch: _,
2309
2309
  setSearchTreeNameSearch: k,
2310
2310
  setGraphIsLoading: Ie,
2311
2311
  graphIsLoading: ce,
@@ -2527,7 +2527,7 @@ const Nt = ({
2527
2527
  actionData: void 0
2528
2528
  }), p(!1), await new Promise((D) => setTimeout(D, 300)), g({ domain: k, model: x, context: I, formView: S, actionData: C }), p(!0);
2529
2529
  }
2530
- async function R() {
2530
+ async function _() {
2531
2531
  wr(c.current), c.current = [], p(!1), g({
2532
2532
  domain: void 0,
2533
2533
  model: void 0,
@@ -2565,7 +2565,7 @@ const Nt = ({
2565
2565
  model: h.model,
2566
2566
  formView: h.formView,
2567
2567
  visible: m,
2568
- onSubmitSucceed: R,
2568
+ onSubmitSucceed: _,
2569
2569
  onCancel: () => {
2570
2570
  wr(c.current), c.current = [], p(!1), g({
2571
2571
  domain: void 0,
@@ -2678,9 +2678,9 @@ function Oa(e, t) {
2678
2678
  visible: F = !0,
2679
2679
  rootForm: b = !1,
2680
2680
  defaultValues: O,
2681
- forcedValues: R = {},
2681
+ forcedValues: _ = {},
2682
2682
  parentWidth: k
2683
- } = e, { t: x, lang: S } = H(he), [I, C] = w(!1), [D, P] = w(), [L, j] = w(), [M] = lt.useForm(), [B, K] = w(), [V, G] = w(), ne = H(fo), [J, le] = w(), [Y, _] = w(!1), N = de(), ee = de({}), ce = de({}), Ie = de(!1), X = de(!1), U = de(!1), we = (k !== void 0 ? k : J) < Fa, Ye = H(Ne), { activeId: ke, getPlainValues: Le } = Ye || {}, Ue = H(
2683
+ } = e, { t: x, lang: S } = H(he), [I, C] = w(!1), [D, P] = w(), [L, j] = w(), [M] = lt.useForm(), [B, K] = w(), [V, G] = w(), ne = H(fo), [J, le] = w(), [Y, R] = w(!1), N = de(), ee = de({}), ce = de({}), Ie = de(!1), X = de(!1), U = de(!1), we = (k !== void 0 ? k : J) < Fa, Ye = H(Ne), { activeId: ke, getPlainValues: Le } = Ye || {}, Ue = H(
2684
2684
  st
2685
2685
  ), {
2686
2686
  setFormIsSaving: xe = void 0,
@@ -2689,7 +2689,7 @@ function Oa(e, t) {
2689
2689
  setFormIsLoading: ye = void 0,
2690
2690
  setAttachments: Me = void 0,
2691
2691
  title: Ke = void 0,
2692
- setTitle: z = void 0
2692
+ setTitle: q = void 0
2693
2693
  } = (b ? Ue : {}) || {}, ve = H(
2694
2694
  Pt
2695
2695
  ), { processAction: Ve, globalValues: Be } = ve || {};
@@ -2697,7 +2697,7 @@ function Oa(e, t) {
2697
2697
  submitForm: Zt,
2698
2698
  getFields: Qe,
2699
2699
  getValues: We,
2700
- getPlainValues: q,
2700
+ getPlainValues: z,
2701
2701
  getContext: Se,
2702
2702
  fetchValues: gt,
2703
2703
  cancelUnsavedChanges: nr,
@@ -2715,7 +2715,7 @@ function Oa(e, t) {
2715
2715
  }, [i, r, p, h, F]), me(() => {
2716
2716
  Y && (vn({
2717
2717
  elementHasLostFocus: !0
2718
- }), _(!1));
2718
+ }), R(!1));
2719
2719
  }, [Y]);
2720
2720
  const oe = ($, W, Q, te) => {
2721
2721
  re == null || re(!1), xe == null || xe(!1), s == null || s($, W, Q, te), Ee == null || Ee($);
@@ -2739,7 +2739,7 @@ function Oa(e, t) {
2739
2739
  $[W] === void 0 && delete $[W];
2740
2740
  return $;
2741
2741
  }
2742
- function q() {
2742
+ function z() {
2743
2743
  const $ = We(), W = Qe(), Q = {};
2744
2744
  return Object.keys($).forEach((te) => {
2745
2745
  const fe = $[te];
@@ -2769,7 +2769,7 @@ function Oa(e, t) {
2769
2769
  ...Be
2770
2770
  };
2771
2771
  }
2772
- const Re = async ($) => {
2772
+ const _e = async ($) => {
2773
2773
  const W = se() ? L == null ? void 0 : L.context : {};
2774
2774
  return await E.getHandler().defaultGet({
2775
2775
  model: r,
@@ -2786,7 +2786,7 @@ function Oa(e, t) {
2786
2786
  ).length !== 0, qe = ($) => {
2787
2787
  const W = M.getFieldsValue(!0);
2788
2788
  return Ft(W, $);
2789
- }, _e = ($, W) => {
2789
+ }, Re = ($, W) => {
2790
2790
  Lt({
2791
2791
  values: {
2792
2792
  ...Ft(M.getFieldsValue(!0), V),
@@ -2826,7 +2826,7 @@ function Oa(e, t) {
2826
2826
  fields: Q,
2827
2827
  reset: !0,
2828
2828
  isDefaultGet: fe
2829
- }), Bt({ fields: Q, arch: te, values: W }), ye == null || ye(!1), re == null || re(!1), fe && _(!0);
2829
+ }), Bt({ fields: Q, arch: te, values: W }), ye == null || ye(!1), re == null || re(!1), fe && R(!0);
2830
2830
  }, nr = async () => new Promise(async ($) => {
2831
2831
  rt() ? zt({
2832
2832
  lang: S,
@@ -2888,7 +2888,7 @@ function Oa(e, t) {
2888
2888
  });
2889
2889
  Me == null || Me(fe);
2890
2890
  } else
2891
- Me == null || Me([]), Q = await Re($), te = !0;
2891
+ Me == null || Me([]), Q = await _e($), te = !0;
2892
2892
  return { values: Q, defaultGetCalled: te };
2893
2893
  }, rr = async ($) => {
2894
2894
  const { callOnSubmitSucceed: W = !0 } = $ || {};
@@ -2901,7 +2901,7 @@ function Oa(e, t) {
2901
2901
  await E.getHandler().update({
2902
2902
  model: r,
2903
2903
  id: se(),
2904
- values: { ...Q, ...R },
2904
+ values: { ...Q, ..._ },
2905
2905
  fields: V,
2906
2906
  context: {
2907
2907
  ...v,
@@ -2911,7 +2911,7 @@ function Oa(e, t) {
2911
2911
  } else {
2912
2912
  const Q = qe(V), te = await E.getHandler().create({
2913
2913
  model: r,
2914
- values: { ...Q, ...R },
2914
+ values: { ...Q, ..._ },
2915
2915
  fields: V,
2916
2916
  context: {
2917
2917
  ...v,
@@ -2967,7 +2967,7 @@ function Oa(e, t) {
2967
2967
  },
2968
2968
  $
2969
2969
  )
2970
- }), j(fe), fe.string && fe.string !== Ke && (z == null || z(fe.string)), ne && fe.string && ((ot = ne.setTitle) == null || ot.call(ne, fe.string));
2970
+ }), j(fe), fe.string && fe.string !== Ke && (q == null || q(fe.string)), ne && fe.string && ((ot = ne.setTitle) == null || ot.call(ne, fe.string));
2971
2971
  }, vn = async ({
2972
2972
  elementHasLostFocus: $ = !1
2973
2973
  }) => {
@@ -3167,12 +3167,12 @@ function Oa(e, t) {
3167
3167
  ds,
3168
3168
  {
3169
3169
  getValues: We,
3170
- getPlainValues: q,
3170
+ getPlainValues: z,
3171
3171
  getFields: Qe,
3172
3172
  domain: T,
3173
3173
  activeId: i,
3174
3174
  activeModel: r,
3175
- setFieldValue: _e,
3175
+ setFieldValue: Re,
3176
3176
  getFieldValue: Ge,
3177
3177
  executeButtonAction: Wo,
3178
3178
  getContext: Se,
@@ -3258,9 +3258,9 @@ const Jt = wt(Oa), Xt = (e) => {
3258
3258
  a && y();
3259
3259
  }, [l, a]);
3260
3260
  async function y() {
3261
- const { action_id: b, res_id: O, action_type: R, view_id: k } = l, x = await E.getHandler().isShortcutFavorite({
3261
+ const { action_id: b, res_id: O, action_type: _, view_id: k } = l, x = await E.getHandler().isShortcutFavorite({
3262
3262
  action_id: b,
3263
- action_type: R,
3263
+ action_type: _,
3264
3264
  view_id: k,
3265
3265
  res_id: O || !1
3266
3266
  });
@@ -3272,10 +3272,10 @@ const Jt = wt(Oa), Xt = (e) => {
3272
3272
  shortcut_id: h
3273
3273
  });
3274
3274
  else {
3275
- const { action_id: b, res_id: O, action_type: R, view_id: k } = l;
3275
+ const { action_id: b, res_id: O, action_type: _, view_id: k } = l;
3276
3276
  await E.getHandler().addFavourite({
3277
3277
  action_id: b,
3278
- action_type: R,
3278
+ action_type: _,
3279
3279
  view_id: k,
3280
3280
  res_id: O || !1
3281
3281
  });
@@ -3321,19 +3321,19 @@ const Jt = wt(Oa), Xt = (e) => {
3321
3321
  )
3322
3322
  }
3323
3323
  ) });
3324
- }, Ra = (e) => /* @__PURE__ */ n(ge, { ...e, layout: "vertical", children: /* @__PURE__ */ n(
3324
+ }, _a = (e) => /* @__PURE__ */ n(ge, { ...e, layout: "vertical", children: /* @__PURE__ */ n(
3325
3325
  Pn.RangePicker,
3326
3326
  {
3327
3327
  allowEmpty: [!0, !0],
3328
3328
  format: "DD/MM/YYYY"
3329
3329
  }
3330
- ) }), _a = (e) => {
3330
+ ) }), Ra = (e) => {
3331
3331
  const { ooui: t, showLabel: r = !1 } = e, { label: i, id: o } = t, s = [
3332
- new _n({
3332
+ new Rn({
3333
3333
  name: o + "#date",
3334
3334
  label: ""
3335
3335
  }),
3336
- new _n({
3336
+ new Rn({
3337
3337
  name: o + "#time",
3338
3338
  label: ""
3339
3339
  })
@@ -3497,9 +3497,9 @@ function $a(e) {
3497
3497
  case mt.integer:
3498
3498
  return /* @__PURE__ */ n(Da, { ooui: t, showLabel: !0 });
3499
3499
  case mt.date:
3500
- return /* @__PURE__ */ n(Ra, { ooui: t, layout: "vertical", showLabel: !0 });
3501
- case mt.datetime:
3502
3500
  return /* @__PURE__ */ n(_a, { ooui: t, layout: "vertical", showLabel: !0 });
3501
+ case mt.datetime:
3502
+ return /* @__PURE__ */ n(Ra, { ooui: t, layout: "vertical", showLabel: !0 });
3503
3503
  case mt.selection:
3504
3504
  return /* @__PURE__ */ n(Pa, { layout: "vertical", ooui: t, showLabel: !0 });
3505
3505
  default:
@@ -3565,9 +3565,9 @@ function po(e) {
3565
3565
  searchError: f,
3566
3566
  searchValues: m,
3567
3567
  showLimitOptions: p = !0
3568
- } = e, [h, g] = w(), [y, v] = w(), [T, F] = w(!1), b = de(), { token: O } = Wa(), [R] = lt.useForm();
3568
+ } = e, [h, g] = w(), [y, v] = w(), [T, F] = w(!1), b = de(), { token: O } = Wa(), [_] = lt.useForm();
3569
3569
  me(() => {
3570
- R.setFieldsValue(m);
3570
+ _.setFieldsValue(m);
3571
3571
  }, [m]);
3572
3572
  const k = () => {
3573
3573
  if (!y)
@@ -3602,7 +3602,7 @@ function po(e) {
3602
3602
  {
3603
3603
  className: "p-3 shadow-md",
3604
3604
  style: { borderRadius: O.borderRadius },
3605
- form: R,
3605
+ form: _,
3606
3606
  onFinish: S,
3607
3607
  initialValues: { offset: a, limit: l },
3608
3608
  children: [
@@ -3616,7 +3616,7 @@ function po(e) {
3616
3616
  F(!T);
3617
3617
  },
3618
3618
  onClear: () => {
3619
- R.resetFields(), i();
3619
+ _.resetFields(), i();
3620
3620
  },
3621
3621
  isSearching: s
3622
3622
  }
@@ -3833,7 +3833,7 @@ const Ga = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
3833
3833
  });
3834
3834
  }
3835
3835
  }
3836
- function R(I) {
3836
+ function _(I) {
3837
3837
  s(!1), T == null || T({
3838
3838
  actionData: I,
3839
3839
  values: m,
@@ -3866,7 +3866,7 @@ const Ga = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(yo,
3866
3866
  {
3867
3867
  visible: o,
3868
3868
  items: (x = c == null ? void 0 : c.toolbar) == null ? void 0 : x.action,
3869
- onItemClicked: R,
3869
+ onItemClicked: _,
3870
3870
  onCancel: () => s(!1)
3871
3871
  }
3872
3872
  ),
@@ -4072,12 +4072,12 @@ function pn(e) {
4072
4072
  context: F,
4073
4073
  readonly: b,
4074
4074
  onSelectAllRecords: O
4075
- } = e, [R, k] = w([]), [x, S] = w([]), I = de(!1), C = de(null), { t: D } = H(he), P = de(r), L = H(
4075
+ } = e, [_, k] = w([]), [x, S] = w([]), I = de(!1), C = de(null), { t: D } = H(he), P = de(r), L = H(
4076
4076
  st
4077
4077
  ), { title: j = void 0, setTitle: M = void 0 } = (T ? L : {}) || {};
4078
4078
  me(() => {
4079
- C.current = Rt(o);
4080
- const _ = Ms(
4079
+ C.current = _t(o);
4080
+ const R = Ms(
4081
4081
  C.current,
4082
4082
  {
4083
4083
  boolean: tl,
@@ -4099,17 +4099,17 @@ function pn(e) {
4099
4099
  },
4100
4100
  F
4101
4101
  );
4102
- S(_), C.current.string && j !== C.current.string && (M == null || M(C.current.string));
4102
+ S(R), C.current.string && j !== C.current.string && (M == null || M(C.current.string));
4103
4103
  }, [o]), me(() => {
4104
4104
  I.current = !1;
4105
- const _ = so(C.current, s);
4106
- k(_), P.current = r;
4105
+ const R = so(C.current, s);
4106
+ k(R), P.current = r;
4107
4107
  }, [s]);
4108
- const B = (t - 1) * P.current + 1, K = B - 1 + R.length, V = i === void 0 ? null : i === 0 ? D("no_results") : D("summary").replace("{from}", B == null ? void 0 : B.toString()).replace("{to}", K == null ? void 0 : K.toString()).replace("{total}", i == null ? void 0 : i.toString()), G = () => {
4108
+ const B = (t - 1) * P.current + 1, K = B - 1 + _.length, V = i === void 0 ? null : i === 0 ? D("no_results") : D("summary").replace("{from}", B == null ? void 0 : B.toString()).replace("{to}", K == null ? void 0 : K.toString()).replace("{total}", i == null ? void 0 : i.toString()), G = () => {
4109
4109
  var N;
4110
4110
  if (!u || o.isExpandable)
4111
4111
  return null;
4112
- const _ = R == null ? void 0 : R.filter(
4112
+ const R = _ == null ? void 0 : _.filter(
4113
4113
  (ee) => (c == null ? void 0 : c.selectedRowKeys) && (c == null ? void 0 : c.selectedRowKeys.includes(ee.id))
4114
4114
  ).length;
4115
4115
  return l ? null : i === void 0 ? /* @__PURE__ */ n(Ae, { className: "pb-4" }) : /* @__PURE__ */ A(be, { align: "bottom", className: "pb-4", children: [
@@ -4126,9 +4126,9 @@ function pn(e) {
4126
4126
  O && /* @__PURE__ */ n(ae, { span: 8, className: "text-center", children: /* @__PURE__ */ n(
4127
4127
  el,
4128
4128
  {
4129
- numberOfVisibleSelectedRows: _,
4129
+ numberOfVisibleSelectedRows: R,
4130
4130
  numberOfRealSelectedRows: ((N = c == null ? void 0 : c.selectedRowKeys) == null ? void 0 : N.length) || 0,
4131
- numberOfTotalRows: R.length,
4131
+ numberOfTotalRows: _.length,
4132
4132
  totalRecords: i || 0,
4133
4133
  onSelectAllRecords: O
4134
4134
  }
@@ -4141,7 +4141,7 @@ function pn(e) {
4141
4141
  const N = C.current.columns.filter((X) => X.sum !== void 0).map((X) => ({ label: X.sum, field: X.id }));
4142
4142
  if (!N || N.length === 0)
4143
4143
  return null;
4144
- const ee = [], ce = ((Ie = c == null ? void 0 : c.selectedRowKeys) == null ? void 0 : Ie.length) > 0 ? R.filter((X) => c == null ? void 0 : c.selectedRowKeys.includes(X.id)) : R;
4144
+ const ee = [], ce = ((Ie = c == null ? void 0 : c.selectedRowKeys) == null ? void 0 : Ie.length) > 0 ? _.filter((X) => c == null ? void 0 : c.selectedRowKeys.includes(X.id)) : _;
4145
4145
  return N.forEach((X) => {
4146
4146
  const U = ce.reduce((Ce, we) => we[X.field] && !isNaN(we[X.field]) ? Ce + we[X.field] : Ce, 0);
4147
4147
  ee.push(`${X.label}: ${Math.round(U * 100) / 100}`);
@@ -4149,27 +4149,27 @@ function pn(e) {
4149
4149
  }
4150
4150
  let J, le = f;
4151
4151
  if (C.current !== null) {
4152
- J = ja(x, R, 600);
4152
+ J = ja(x, _, 600);
4153
4153
  const N = C.current;
4154
4154
  f && N.columns.some((ee) => ee.sum !== void 0) && (le = f - 30);
4155
4155
  }
4156
4156
  return C.current === null || !J || ((Y = J.columns) == null ? void 0 : Y.length) === 0 ? /* @__PURE__ */ n(Ae, { style: { padding: "2rem" } }) : /* @__PURE__ */ A("div", { children: [
4157
4157
  G(),
4158
4158
  /* @__PURE__ */ n(
4159
- Ri,
4159
+ _i,
4160
4160
  {
4161
4161
  height: le,
4162
4162
  columns: J.columns,
4163
- dataSource: R,
4163
+ dataSource: _,
4164
4164
  loading: l,
4165
4165
  loadingComponent: /* @__PURE__ */ n(Ae, {}),
4166
- onRowStyle: (_) => {
4167
- if (m[_.id])
4168
- return { color: m[_.id] };
4166
+ onRowStyle: (R) => {
4167
+ if (m[R.id])
4168
+ return { color: m[R.id] };
4169
4169
  },
4170
- onRowStatus: Ns(p) ? (_) => {
4171
- if (p[_.id])
4172
- return /* @__PURE__ */ n(Qo, { color: p[_.id] });
4170
+ onRowStatus: Ns(p) ? (R) => {
4171
+ if (p[R.id])
4172
+ return /* @__PURE__ */ n(Qo, { color: p[R.id] });
4173
4173
  } : void 0,
4174
4174
  onRowDoubleClick: d,
4175
4175
  selectionRowKeys: c == null ? void 0 : c.selectedRowKeys,
@@ -4202,7 +4202,7 @@ function ml(e, t) {
4202
4202
  rootTree: c = !1,
4203
4203
  parentContext: f = {},
4204
4204
  onChangeSelectedRowKeys: m
4205
- } = e, [p, h] = w(!1), [g, y] = w(!1), v = de(!1), [T, F] = w(), [b, O] = w(), [R, k] = w(), [x, S] = w(), [I, C] = w(200), D = de(), { height: P } = mn(), L = H(
4205
+ } = e, [p, h] = w(!1), [g, y] = w(!1), v = de(!1), [T, F] = w(), [b, O] = w(), [_, k] = w(), [x, S] = w(), [I, C] = w(200), D = de(), { height: P } = mn(), L = H(
4206
4206
  Pt
4207
4207
  ), { processAction: j } = L || {}, M = H(
4208
4208
  st
@@ -4215,7 +4215,7 @@ function ml(e, t) {
4215
4215
  setSelectedRowItems: J = void 0,
4216
4216
  searchParams: le = [],
4217
4217
  setSearchParams: Y = void 0,
4218
- searchVisible: _ = !0,
4218
+ searchVisible: R = !0,
4219
4219
  setSearchVisible: N = void 0,
4220
4220
  sorter: ee = void 0,
4221
4221
  setSorter: ce = void 0,
@@ -4235,7 +4235,7 @@ function ml(e, t) {
4235
4235
  searchError: ye,
4236
4236
  page: Me,
4237
4237
  offset: Ke,
4238
- getResults: z,
4238
+ getResults: q,
4239
4239
  requestPageChange: ve,
4240
4240
  changeSort: Ve,
4241
4241
  fetchChildrenForRecord: Be,
@@ -4255,7 +4255,7 @@ function ml(e, t) {
4255
4255
  nameSearch: a,
4256
4256
  searchNameGetDoneRef: v,
4257
4257
  context: f,
4258
- formView: R,
4258
+ formView: _,
4259
4259
  treeView: b,
4260
4260
  sorter: ee,
4261
4261
  setSorter: ce,
@@ -4281,15 +4281,15 @@ function ml(e, t) {
4281
4281
  y(!1), h(!0), S(void 0), U == null || U(!0);
4282
4282
  try {
4283
4283
  await We(), y(!0);
4284
- } catch (_e) {
4285
- S(_e), U == null || U(!1);
4284
+ } catch (Re) {
4285
+ S(Re), U == null || U(!1);
4286
4286
  } finally {
4287
4287
  h(!1);
4288
4288
  }
4289
4289
  }, We = async () => {
4290
4290
  F(r);
4291
- let _e = i;
4292
- i || (_e = await E.getHandler().getView({
4291
+ let Re = i;
4292
+ i || (Re = await E.getHandler().getView({
4293
4293
  model: r,
4294
4294
  type: "form",
4295
4295
  context: f
@@ -4299,15 +4299,15 @@ function ml(e, t) {
4299
4299
  model: r,
4300
4300
  type: "tree",
4301
4301
  context: f
4302
- })), k(_e), O(Ge);
4302
+ })), k(Re), O(Ge);
4303
4303
  };
4304
4304
  me(() => {
4305
4305
  Qe();
4306
4306
  }, [r]);
4307
- const q = (_e) => {
4308
- ke == null || ke(_e);
4309
- }, ie = async (_e) => {
4310
- const { id: Ge } = _e;
4307
+ const z = (Re) => {
4308
+ ke == null || ke(Re);
4309
+ }, ie = async (Re) => {
4310
+ const { id: Ge } = Re;
4311
4311
  D.current || (D.current = await E.getHandler().treeButOpen({
4312
4312
  id: b.view_id,
4313
4313
  model: T,
@@ -4319,15 +4319,15 @@ function ml(e, t) {
4319
4319
  fields: b.fields,
4320
4320
  values: {
4321
4321
  active_id: Ge,
4322
- ..._e
4322
+ ...Re
4323
4323
  },
4324
4324
  context: f
4325
4325
  }));
4326
- }, Se = async (_e) => {
4327
- const { id: Ge } = _e;
4326
+ }, Se = async (Re) => {
4327
+ const { id: Ge } = Re;
4328
4328
  if (b != null && b.isExpandable) {
4329
4329
  try {
4330
- await ie(_e);
4330
+ await ie(Re);
4331
4331
  } catch (St) {
4332
4332
  ze(St);
4333
4333
  }
@@ -4336,27 +4336,27 @@ function ml(e, t) {
4336
4336
  s({
4337
4337
  id: Ge,
4338
4338
  model: T,
4339
- formView: R,
4339
+ formView: _,
4340
4340
  treeView: b
4341
4341
  });
4342
4342
  };
4343
- function pe(_e) {
4344
- J == null || J(_e.map((Ge) => ({ id: Ge }))), m == null || m(_e);
4343
+ function pe(Re) {
4344
+ J == null || J(Re.map((Ge) => ({ id: Ge }))), m == null || m(Re);
4345
4345
  }
4346
4346
  async function Te() {
4347
- const _e = await se();
4348
- J == null || J(_e.map((Ge) => ({ id: Ge }))), m == null || m(_e);
4347
+ const Re = await se();
4348
+ J == null || J(Re.map((Ge) => ({ id: Ge }))), m == null || m(Re);
4349
4349
  }
4350
- function Re() {
4350
+ function _e() {
4351
4351
  return b != null && b.isExpandable ? P - 160 : P - (I + 210);
4352
4352
  }
4353
- const rt = () => !b || !R ? null : /* @__PURE__ */ A(Z, { children: [
4353
+ const rt = () => !b || !_ ? null : /* @__PURE__ */ A(Z, { children: [
4354
4354
  /* @__PURE__ */ n(
4355
4355
  po,
4356
4356
  {
4357
- fields: { ...R.fields, ...b.fields },
4357
+ fields: { ..._.fields, ...b.fields },
4358
4358
  searchFields: lo([
4359
- R.search_fields,
4359
+ _.search_fields,
4360
4360
  b.search_fields
4361
4361
  ]),
4362
4362
  onClear: Ue,
@@ -4364,10 +4364,10 @@ function ml(e, t) {
4364
4364
  offset: Ke,
4365
4365
  isSearching: Ee,
4366
4366
  onSubmit: Le,
4367
- onLimitChange: q,
4367
+ onLimitChange: z,
4368
4368
  setSearchFilterHeight: C,
4369
4369
  searchError: ye,
4370
- searchVisible: _,
4370
+ searchVisible: R,
4371
4371
  searchValues: Ce
4372
4372
  }
4373
4373
  ),
@@ -4379,15 +4379,15 @@ function ml(e, t) {
4379
4379
  limit: Ye,
4380
4380
  page: Me,
4381
4381
  treeView: b,
4382
- results: z(),
4382
+ results: q(),
4383
4383
  onRequestPageChange: ve,
4384
4384
  loading: re,
4385
4385
  onRowClicked: Se,
4386
- scrollY: l || Re(),
4386
+ scrollY: l || _e(),
4387
4387
  colorsForResults: oe,
4388
4388
  statusForResults: ue,
4389
4389
  rowSelection: {
4390
- selectedRowKeys: ne == null ? void 0 : ne.map((_e) => _e.id),
4390
+ selectedRowKeys: ne == null ? void 0 : ne.map((Re) => Re.id),
4391
4391
  onChange: pe
4392
4392
  },
4393
4393
  sorter: ee,
@@ -4520,16 +4520,16 @@ const wo = wt(ml), bo = (e) => {
4520
4520
  context: l,
4521
4521
  id: d,
4522
4522
  domain: u
4523
- } = i, c = o && !a ? { backgroundColor: Co.colorPrimaryBg } : void 0, [f, m] = w(!1), [p, h] = w(!1), [g, y] = w(!1), [v, T] = w(), F = de(!1), [b, O] = w(""), R = de(), k = H(Ne), { domain: x, getValues: S, getFields: I, getContext: C, elementHasLostFocus: D } = k || {}, P = de([]), [L, j] = w([]), M = t && t[0] || void 0, B = t && t[1] || "";
4523
+ } = i, c = o && !a ? { backgroundColor: Co.colorPrimaryBg } : void 0, [f, m] = w(!1), [p, h] = w(!1), [g, y] = w(!1), [v, T] = w(), F = de(!1), [b, O] = w(""), _ = de(), k = H(Ne), { domain: x, getValues: S, getFields: I, getContext: C, elementHasLostFocus: D } = k || {}, P = de([]), [L, j] = w([]), M = t && t[0] || void 0, B = t && t[1] || "";
4524
4524
  me(() => {
4525
4525
  !Array.isArray(t) && t && J(t);
4526
4526
  }, [t]), me(() => {
4527
- M && B.length === 0 ? J(M) : M && B.length > 0 ? O(B) : !M && !B && O(R.current || "");
4527
+ M && B.length === 0 ? J(M) : M && B.length > 0 ? O(B) : !M && !B && O(_.current || "");
4528
4528
  }, [t]);
4529
4529
  const K = (N) => {
4530
4530
  r == null || r(N), D == null || D();
4531
4531
  }, V = (N) => {
4532
- R.current = N.target.value, K([void 0, ""]);
4532
+ _.current = N.target.value, K([void 0, ""]);
4533
4533
  }, G = async () => {
4534
4534
  if (!g && b !== B) {
4535
4535
  if (await new Promise((N) => setTimeout(N, 100)), F.current) {
@@ -4539,14 +4539,14 @@ const wo = wt(ml), bo = (e) => {
4539
4539
  y(!0);
4540
4540
  try {
4541
4541
  if (P.current && P.current.length > 0)
4542
- ne(R.current);
4542
+ ne(_.current);
4543
4543
  else {
4544
4544
  const N = await E.getHandler().nameSearch({
4545
4545
  model: s,
4546
- payload: R.current,
4546
+ payload: _.current,
4547
4547
  context: { ...C == null ? void 0 : C(), ...l }
4548
4548
  });
4549
- N.length === 1 ? (R.current = void 0, K(N[0])) : ne(R.current);
4549
+ N.length === 1 ? (_.current = void 0, K(N[0])) : ne(_.current);
4550
4550
  }
4551
4551
  } catch (N) {
4552
4552
  on(N);
@@ -4655,7 +4655,7 @@ const wo = wt(ml), bo = (e) => {
4655
4655
  visible: f,
4656
4656
  nameSearch: M ? void 0 : v,
4657
4657
  onSelectValues: (N) => {
4658
- m(!1), J(N[0]), F.current = !1, R.current = void 0;
4658
+ m(!1), J(N[0]), F.current = !1, _.current = void 0;
4659
4659
  },
4660
4660
  onCloseModal: () => {
4661
4661
  m(!1), F.current = !1;
@@ -4718,7 +4718,7 @@ const wo = wt(ml), bo = (e) => {
4718
4718
  field: u,
4719
4719
  operator: c,
4720
4720
  manualIds: f
4721
- } = e, [m, p] = w(!1), [h, g] = w(), [y, v] = w(), [T, F] = w(), [b, O] = w(0), [R, k] = w(0), [x, S] = w(), [I, C] = w(), [D, P] = w();
4721
+ } = e, [m, p] = w(!1), [h, g] = w(), [y, v] = w(), [T, F] = w(), [b, O] = w(0), [_, k] = w(0), [x, S] = w(), [I, C] = w(), [D, P] = w();
4722
4722
  me(() => {
4723
4723
  M();
4724
4724
  }, [t, o]);
@@ -4830,7 +4830,7 @@ const wo = wt(ml), bo = (e) => {
4830
4830
  percent: y,
4831
4831
  measureRef: B,
4832
4832
  height: b,
4833
- width: R,
4833
+ width: _,
4834
4834
  color: x,
4835
4835
  icon: I,
4836
4836
  suffix: d
@@ -4842,7 +4842,7 @@ const wo = wt(ml), bo = (e) => {
4842
4842
  total: T,
4843
4843
  measureRef: B,
4844
4844
  height: b,
4845
- width: R,
4845
+ width: _,
4846
4846
  color: x,
4847
4847
  icon: I,
4848
4848
  suffix: d
@@ -5092,7 +5092,7 @@ function Fl(e) {
5092
5092
  return t;
5093
5093
  return null;
5094
5094
  }
5095
- const { processGraphData: Ol } = Lr, { getFieldsToRetrieve: Rl } = li, _l = (e) => {
5095
+ const { processGraphData: Ol } = Lr, { getFieldsToRetrieve: _l } = li, Rl = (e) => {
5096
5096
  const {
5097
5097
  model: t,
5098
5098
  domain: r = [],
@@ -5107,7 +5107,7 @@ const { processGraphData: Ol } = Lr, { getFieldsToRetrieve: Rl } = li, _l = (e)
5107
5107
  u(!0), f(void 0);
5108
5108
  const T = Bn(o);
5109
5109
  v(T.type || "line");
5110
- const F = Rl({ ooui: T });
5110
+ const F = _l({ ooui: T });
5111
5111
  let b, O;
5112
5112
  try {
5113
5113
  ({ values: b, fields: O } = await Al({
@@ -5119,8 +5119,8 @@ const { processGraphData: Ol } = Lr, { getFieldsToRetrieve: Rl } = li, _l = (e)
5119
5119
  fields: F,
5120
5120
  manualIds: l
5121
5121
  }));
5122
- } catch (R) {
5123
- f("Error fetching graph data values: " + JSON.stringify(R)), u(!1);
5122
+ } catch (_) {
5123
+ f("Error fetching graph data values: " + JSON.stringify(_)), u(!1);
5124
5124
  return;
5125
5125
  }
5126
5126
  try {
@@ -5129,7 +5129,7 @@ const { processGraphData: Ol } = Lr, { getFieldsToRetrieve: Rl } = li, _l = (e)
5129
5129
  return;
5130
5130
  }
5131
5131
  g(b);
5132
- const R = Ol({
5132
+ const _ = Ol({
5133
5133
  ooui: T,
5134
5134
  values: b,
5135
5135
  fields: O,
@@ -5137,9 +5137,9 @@ const { processGraphData: Ol } = Lr, { getFieldsToRetrieve: Rl } = li, _l = (e)
5137
5137
  uninformedString: a
5138
5138
  }
5139
5139
  });
5140
- p(R);
5141
- } catch (R) {
5142
- f("Error processing graph data: " + R), u(!1);
5140
+ p(_);
5141
+ } catch (_) {
5142
+ f("Error processing graph data: " + _), u(!1);
5143
5143
  return;
5144
5144
  }
5145
5145
  u(!1);
@@ -5203,7 +5203,7 @@ const Dl = {
5203
5203
  pie: Oi
5204
5204
  }, kl = (e) => {
5205
5205
  var v;
5206
- const { model: t, domain: r, context: i, xml: o, limit: s, manualIds: a } = e, { t: l } = H(he), { error: d, loading: u, values: c, type: f, evaluatedEntries: m } = _l({
5206
+ const { model: t, domain: r, context: i, xml: o, limit: s, manualIds: a } = e, { t: l } = H(he), { error: d, loading: u, values: c, type: f, evaluatedEntries: m } = Rl({
5207
5207
  model: t,
5208
5208
  xml: o,
5209
5209
  limit: s,
@@ -5395,10 +5395,10 @@ const Ml = (e, t) => {
5395
5395
  );
5396
5396
  }
5397
5397
  function b() {
5398
- let R = "_";
5399
- return l === 0 ? R = "_" : R = (d + 1).toString(), /* @__PURE__ */ A("span", { className: "pl-1 pr-1", children: [
5398
+ let _ = "_";
5399
+ return l === 0 ? _ = "_" : _ = (d + 1).toString(), /* @__PURE__ */ A("span", { className: "pl-1 pr-1", children: [
5400
5400
  "(",
5401
- R,
5401
+ _,
5402
5402
  "/",
5403
5403
  l,
5404
5404
  ")"
@@ -5477,13 +5477,13 @@ const jl = (e) => {
5477
5477
  var We;
5478
5478
  const { value: t, onChange: r, ooui: i, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = H(
5479
5479
  So
5480
- ), c = H(Ne), { activeId: f, getFields: m, getValues: p, getContext: h, domain: g } = c || {}, { lang: y, t: v } = H(he), [T, F] = w(!1), [b, O] = w(!1), [R, k] = w(), [x, S] = w(!1), [I, C] = w(!1), [D, P] = w(), [L, j] = w([]), [M, B] = w(!1), K = de([]), [V, G] = w(), ne = de(), [J, le] = w(void 0), {
5480
+ ), c = H(Ne), { activeId: f, getFields: m, getValues: p, getContext: h, domain: g } = c || {}, { lang: y, t: v } = H(he), [T, F] = w(!1), [b, O] = w(!1), [_, k] = w(), [x, S] = w(!1), [I, C] = w(!1), [D, P] = w(), [L, j] = w([]), [M, B] = w(!1), K = de([]), [V, G] = w(), ne = de(), [J, le] = w(void 0), {
5481
5481
  readOnly: Y,
5482
- relation: _,
5482
+ relation: R,
5483
5483
  context: N,
5484
5484
  domain: ee
5485
5485
  } = i, ce = i.type === "many2many", { id: Ie } = i, X = s.filter(
5486
- (q) => (q.values || q.treeValues) && q.operation !== "pendingRemove"
5486
+ (z) => (z.values || z.treeValues) && z.operation !== "pendingRemove"
5487
5487
  ), U = de();
5488
5488
  me(() => {
5489
5489
  if (U.current !== a) {
@@ -5493,24 +5493,24 @@ const jl = (e) => {
5493
5493
  Ce();
5494
5494
  }, [s, a]);
5495
5495
  const Ce = De(() => {
5496
- (a === "form" && s.some((q) => !q.values) || a === "tree" && s.some((q) => !q.treeValues)) && Ye();
5496
+ (a === "form" && s.some((z) => !z.values) || a === "tree" && s.some((z) => !z.treeValues)) && Ye();
5497
5497
  }, [s, a]);
5498
5498
  me(() => {
5499
5499
  Le();
5500
5500
  }, [g]);
5501
- const we = (q) => {
5501
+ const we = (z) => {
5502
5502
  var ie, Se;
5503
5503
  r == null || r({
5504
5504
  fields: ((ie = o.get("form")) == null ? void 0 : ie.fields) || ((Se = o.get("tree")) == null ? void 0 : Se.fields),
5505
- items: Wl(q)
5505
+ items: Wl(z)
5506
5506
  });
5507
5507
  }, Ye = async () => {
5508
5508
  await ke(), d > X.length - 1 && d !== 0 && u(0);
5509
- }, ke = async (q) => {
5509
+ }, ke = async (z) => {
5510
5510
  var ie, Se, pe;
5511
5511
  O(!0), F(!1), k(void 0);
5512
5512
  try {
5513
- const [Te, Re] = await Xn({
5513
+ const [Te, _e] = await Xn({
5514
5514
  treeView: {
5515
5515
  arch: (ie = o.get("tree")) == null ? void 0 : ie.arch,
5516
5516
  fields: (Se = o.get("tree")) == null ? void 0 : Se.fields
@@ -5518,12 +5518,12 @@ const jl = (e) => {
5518
5518
  formView: {
5519
5519
  fields: ((pe = o.get("form")) == null ? void 0 : pe.fields) || {}
5520
5520
  },
5521
- model: _,
5521
+ model: R,
5522
5522
  items: s,
5523
5523
  context: { ...h == null ? void 0 : h(), ...N },
5524
- currentView: q || a
5524
+ currentView: z || a
5525
5525
  });
5526
- return ne.current || (ne.current = Te.map((rt) => rt.id)), (a || q) === "tree" && Re && le(Re), we(Te), Te;
5526
+ return ne.current || (ne.current = Te.map((rt) => rt.id)), (a || z) === "tree" && _e && le(_e), we(Te), Te;
5527
5527
  } catch (Te) {
5528
5528
  k(Te);
5529
5529
  } finally {
@@ -5547,7 +5547,7 @@ const jl = (e) => {
5547
5547
  ));
5548
5548
  }
5549
5549
  const Ue = () => {
5550
- const q = Array.from(o.keys()), ie = q[(q.indexOf(a) + 1) % q.length];
5550
+ const z = Array.from(o.keys()), ie = z[(z.indexOf(a) + 1) % z.length];
5551
5551
  a === "form" ? ye(() => {
5552
5552
  l(ie);
5553
5553
  }) : l(ie);
@@ -5556,35 +5556,35 @@ const jl = (e) => {
5556
5556
  u(d - 1);
5557
5557
  }) : u(d - 1));
5558
5558
  }, re = () => {
5559
- const q = X.length;
5560
- d < q - 1 && (a === "form" ? ye(() => {
5559
+ const z = X.length;
5560
+ d < z - 1 && (a === "form" ? ye(() => {
5561
5561
  u(d + 1);
5562
5562
  }) : u(d + 1));
5563
5563
  }, Ee = async () => {
5564
- const q = X[d].id, ie = (await E.getHandler().readObjects({
5565
- model: _,
5566
- ids: [q],
5564
+ const z = X[d].id, ie = (await E.getHandler().readObjects({
5565
+ model: R,
5566
+ ids: [z],
5567
5567
  fields: o.get("form").fields,
5568
5568
  context: { ...h == null ? void 0 : h(), ...N }
5569
5569
  }))[0], Se = (await E.getHandler().readObjects({
5570
- model: _,
5571
- ids: [q],
5570
+ model: R,
5571
+ ids: [z],
5572
5572
  fields: o.get("tree").fields,
5573
5573
  context: { ...h == null ? void 0 : h(), ...N }
5574
- }))[0], pe = s.map((Te) => Te.id === q ? {
5574
+ }))[0], pe = s.map((Te) => Te.id === z ? {
5575
5575
  ...Te,
5576
5576
  operation: "original",
5577
5577
  values: ie,
5578
5578
  treeValues: Se
5579
5579
  } : Te);
5580
5580
  we(pe);
5581
- }, ye = (q) => {
5581
+ }, ye = (z) => {
5582
5582
  T ? zt({
5583
5583
  lang: y,
5584
5584
  onOk: () => {
5585
- Ee(), q(), F(!1);
5585
+ Ee(), z(), F(!1);
5586
5586
  }
5587
- }) : q();
5587
+ }) : z();
5588
5588
  }, Me = () => {
5589
5589
  if (ce) {
5590
5590
  Bl({
@@ -5602,12 +5602,12 @@ const jl = (e) => {
5602
5602
  }
5603
5603
  });
5604
5604
  }, Ke = async () => {
5605
- const { inv_field: q } = i;
5605
+ const { inv_field: z } = i;
5606
5606
  let ie;
5607
- q && f && (ie = { [q]: f }), a === "form" ? ye(() => {
5607
+ z && f && (ie = { [z]: f }), a === "form" ? ye(() => {
5608
5608
  B(!0), P({ defaultValues: ie }), S(!0);
5609
5609
  }) : (B(!0), P({ defaultValues: ie }), S(!0));
5610
- }, z = async () => {
5610
+ }, q = async () => {
5611
5611
  a === "form" ? ye(() => {
5612
5612
  C(!0);
5613
5613
  }) : C(!0);
@@ -5615,24 +5615,24 @@ const jl = (e) => {
5615
5615
  O(!0), F(!1), k(void 0);
5616
5616
  try {
5617
5617
  if (X[d].id > 0) {
5618
- const q = s.map((ie) => ie.id === X[d].id ? {
5618
+ const z = s.map((ie) => ie.id === X[d].id ? {
5619
5619
  ...ie,
5620
5620
  operation: "pendingRemove"
5621
5621
  } : ie);
5622
- we(q);
5622
+ we(z);
5623
5623
  } else
5624
5624
  we(
5625
- s.filter((q) => q.id !== X[d].id)
5625
+ s.filter((z) => z.id !== X[d].id)
5626
5626
  );
5627
- } catch (q) {
5628
- k(q);
5627
+ } catch (z) {
5628
+ k(z);
5629
5629
  }
5630
5630
  u(0), O(!1);
5631
5631
  }, Ve = async () => {
5632
- const q = X.filter((ie) => L.includes(ie.id));
5632
+ const z = X.filter((ie) => L.includes(ie.id));
5633
5633
  O(!0), F(!1), k(void 0);
5634
5634
  try {
5635
- const ie = q.map((pe) => pe.id), Se = s.filter((pe) => !(ie.includes(pe.id) && pe.id < 0)).map((pe) => ie.includes(pe.id) ? {
5635
+ const ie = z.map((pe) => pe.id), Se = s.filter((pe) => !(ie.includes(pe.id) && pe.id < 0)).map((pe) => ie.includes(pe.id) ? {
5636
5636
  ...pe,
5637
5637
  operation: "pendingRemove"
5638
5638
  } : pe);
@@ -5641,49 +5641,49 @@ const jl = (e) => {
5641
5641
  k(ie);
5642
5642
  }
5643
5643
  u(0), O(!1);
5644
- }, Be = (q, ie, Se, pe = !1) => {
5644
+ }, Be = (z, ie, Se, pe = !1) => {
5645
5645
  let Te;
5646
5646
  if (pe)
5647
5647
  Te = s.concat({
5648
- id: q,
5648
+ id: z,
5649
5649
  operation: "pendingLink",
5650
- values: { ...Se, id: q },
5651
- treeValues: { ...Se, id: q }
5650
+ values: { ...Se, id: z },
5651
+ treeValues: { ...Se, id: z }
5652
5652
  });
5653
- else if (q)
5654
- Te = s.map((Re) => Re.id === q ? {
5655
- id: q,
5656
- operation: q > 0 ? "pendingUpdate" : "pendingCreate",
5657
- values: { ...Se, id: q },
5658
- treeValues: { ...Se, id: q }
5659
- } : Re);
5653
+ else if (z)
5654
+ Te = s.map((_e) => _e.id === z ? {
5655
+ id: z,
5656
+ operation: z > 0 ? "pendingUpdate" : "pendingCreate",
5657
+ values: { ...Se, id: z },
5658
+ treeValues: { ...Se, id: z }
5659
+ } : _e);
5660
5660
  else {
5661
- const Re = Ps(s);
5661
+ const _e = Ps(s);
5662
5662
  Te = s.concat({
5663
- id: Re,
5663
+ id: _e,
5664
5664
  operation: "pendingCreate",
5665
- values: { ...Se, id: Re },
5666
- treeValues: { ...Se, id: Re }
5665
+ values: { ...Se, id: _e },
5666
+ treeValues: { ...Se, id: _e }
5667
5667
  });
5668
5668
  }
5669
5669
  we(Te), M || S(!1);
5670
- }, oe = async (q) => {
5671
- const { id: ie } = q;
5670
+ }, oe = async (z) => {
5671
+ const { id: ie } = z;
5672
5672
  let Se = s;
5673
5673
  const pe = s.find((Te) => Te.id === ie);
5674
5674
  (pe == null ? void 0 : pe.values) === void 0 && (Se = await ke("form")), P(Se.find((Te) => Te.id === ie)), B(!1), S(!0);
5675
- }, ue = async (q) => {
5675
+ }, ue = async (z) => {
5676
5676
  O(!0);
5677
- const ie = s, Se = q.filter((pe) => !s.find((Te) => Te.id === pe));
5677
+ const ie = s, Se = z.filter((pe) => !s.find((Te) => Te.id === pe));
5678
5678
  try {
5679
5679
  for (const pe of Se) {
5680
5680
  const Te = (await E.getHandler().readObjects({
5681
- model: _,
5681
+ model: R,
5682
5682
  ids: [pe],
5683
5683
  fields: o.get("form").fields,
5684
5684
  context: { ...h == null ? void 0 : h(), ...N }
5685
- }))[0], Re = (await E.getHandler().readObjects({
5686
- model: _,
5685
+ }))[0], _e = (await E.getHandler().readObjects({
5686
+ model: R,
5687
5687
  ids: [pe],
5688
5688
  fields: o.get("tree").fields,
5689
5689
  context: { ...h == null ? void 0 : h(), ...N }
@@ -5692,7 +5692,7 @@ const jl = (e) => {
5692
5692
  id: pe,
5693
5693
  operation: "pendingLink",
5694
5694
  values: Te,
5695
- treeValues: Re
5695
+ treeValues: _e
5696
5696
  });
5697
5697
  }
5698
5698
  we(ie);
@@ -5703,55 +5703,55 @@ const jl = (e) => {
5703
5703
  }
5704
5704
  };
5705
5705
  function $e() {
5706
- const q = Kl[a];
5706
+ const z = Kl[a];
5707
5707
  if (a === "graph")
5708
5708
  return Bn(o.get("graph").arch).string;
5709
5709
  {
5710
- const ie = new q(o.get(a).fields);
5710
+ const ie = new z(o.get(a).fields);
5711
5711
  return ie.parse(o.get(a).arch), ie.string;
5712
5712
  }
5713
5713
  }
5714
5714
  const se = () => {
5715
5715
  var ie, Se, pe, Te;
5716
5716
  if (a === "form")
5717
- return X.length === 0 ? v("noCurrentEntries") : a !== U.current && s.some((Re) => !Re.values) ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(
5717
+ return X.length === 0 ? v("noCurrentEntries") : a !== U.current && s.some((_e) => !_e.values) ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(
5718
5718
  Jt,
5719
5719
  {
5720
5720
  formView: o.get("form"),
5721
5721
  values: (ie = X[d]) == null ? void 0 : ie.values,
5722
5722
  parentContext: { ...h == null ? void 0 : h(), ...N },
5723
- model: _,
5723
+ model: R,
5724
5724
  id: (Se = X[d]) == null ? void 0 : Se.id,
5725
5725
  submitMode: "values",
5726
- onFieldsChange: (Re) => {
5727
- var _e;
5728
- const rt = (_e = X[d]) == null ? void 0 : _e.id, qe = s.map((Ge) => Ge.id === rt ? {
5726
+ onFieldsChange: (_e) => {
5727
+ var Re;
5728
+ const rt = (Re = X[d]) == null ? void 0 : Re.id, qe = s.map((Ge) => Ge.id === rt ? {
5729
5729
  ...Ge,
5730
5730
  operation: Ge.operation === "original" ? "pendingUpdate" : Ge.operation,
5731
- values: { ...Re, id: rt },
5732
- treeValues: { ...Re, id: rt }
5731
+ values: { ..._e, id: rt },
5732
+ treeValues: { ..._e, id: rt }
5733
5733
  } : Ge);
5734
5734
  we(qe), F(!0);
5735
5735
  },
5736
5736
  readOnly: Y
5737
5737
  }
5738
5738
  );
5739
- let q = [];
5740
- if (X.some((Re) => Re.treeValues) && (q = V ? _t({
5741
- resultsToSort: X.map((Re) => Re.treeValues),
5739
+ let z = [];
5740
+ if (X.some((_e) => _e.treeValues) && (z = V ? Rt({
5741
+ resultsToSort: X.map((_e) => _e.treeValues),
5742
5742
  sorter: V,
5743
5743
  fields: {
5744
5744
  ...o.get("tree").fields,
5745
5745
  ...((pe = o.get("form")) == null ? void 0 : pe.fields) || {}
5746
5746
  }
5747
- }) : X.map((Re) => Re.treeValues)), a === "tree")
5747
+ }) : X.map((_e) => _e.treeValues)), a === "tree")
5748
5748
  return /* @__PURE__ */ n(
5749
5749
  pn,
5750
5750
  {
5751
5751
  total: X.length,
5752
5752
  limit: X.length,
5753
5753
  treeView: o.get("tree"),
5754
- results: q,
5754
+ results: z,
5755
5755
  loading: b,
5756
5756
  onRowClicked: ((Te = o.get("form")) == null ? void 0 : Te.fields) !== void 0 ? oe : void 0,
5757
5757
  showPagination: !1,
@@ -5767,21 +5767,21 @@ const jl = (e) => {
5767
5767
  }
5768
5768
  );
5769
5769
  if (a === "graph") {
5770
- const Re = [[`${i.inv_field}`, "=", f]];
5770
+ const _e = [[`${i.inv_field}`, "=", f]];
5771
5771
  return /* @__PURE__ */ n(
5772
5772
  gn,
5773
5773
  {
5774
5774
  view_id: o.get("graph").view_id,
5775
5775
  model: i.relation,
5776
- domain: Re,
5776
+ domain: _e,
5777
5777
  context: { ...h == null ? void 0 : h(), ...N },
5778
5778
  limit: 0
5779
5779
  }
5780
5780
  );
5781
5781
  }
5782
5782
  };
5783
- if (R)
5784
- return /* @__PURE__ */ n(tt, { className: "mt-10", message: R, type: "error", banner: !0 });
5783
+ if (_)
5784
+ return /* @__PURE__ */ n(tt, { className: "mt-10", message: _, type: "error", banner: !0 });
5785
5785
  const Qe = M;
5786
5786
  return b ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ A(Z, { children: [
5787
5787
  /* @__PURE__ */ n(
@@ -5799,7 +5799,7 @@ const jl = (e) => {
5799
5799
  onToggleViewMode: Ue,
5800
5800
  onPreviousItem: xe,
5801
5801
  onNextItem: re,
5802
- onSearchItem: z,
5802
+ onSearchItem: q,
5803
5803
  selectedRowKeys: L,
5804
5804
  showCreateButton: ((We = o.get("form")) == null ? void 0 : We.fields) !== void 0,
5805
5805
  showToggleButton: o.size > 1
@@ -5810,7 +5810,7 @@ const jl = (e) => {
5810
5810
  Xt,
5811
5811
  {
5812
5812
  formView: o.get("form"),
5813
- model: _,
5813
+ model: R,
5814
5814
  id: D == null ? void 0 : D.id,
5815
5815
  submitMode: "2many",
5816
5816
  values: D == null ? void 0 : D.values,
@@ -5829,11 +5829,11 @@ const jl = (e) => {
5829
5829
  bo,
5830
5830
  {
5831
5831
  domain: K.current,
5832
- model: _,
5832
+ model: R,
5833
5833
  context: { ...h == null ? void 0 : h(), ...N },
5834
5834
  visible: I,
5835
- onSelectValues: async (q) => {
5836
- C(!1), ue(q);
5835
+ onSelectValues: async (z) => {
5836
+ C(!1), ue(z);
5837
5837
  },
5838
5838
  onCloseModal: () => {
5839
5839
  C(!1);
@@ -6132,10 +6132,10 @@ const { useToken: Xl } = Pe, { TextArea: kn } = it, Zl = (e) => {
6132
6132
  context: t,
6133
6133
  fields: []
6134
6134
  });
6135
- for (const [O, R] of Object.entries(b))
6135
+ for (const [O, _] of Object.entries(b))
6136
6136
  b[O].string = rc({
6137
6137
  parentTitle: T.string,
6138
- title: R.string
6138
+ title: _.string
6139
6139
  });
6140
6140
  return l.current[y] = b, Fr({
6141
6141
  fields: b,
@@ -6437,8 +6437,8 @@ const { useToken: Xl } = Pe, { TextArea: kn } = it, Zl = (e) => {
6437
6437
  i == null || i(F);
6438
6438
  };
6439
6439
  async function g() {
6440
- const F = await At(r), b = `data:${F == null ? void 0 : F.mime};base64,${r}`, O = document.createElement("a"), R = f(a), k = f("name");
6441
- O.href = b, O.download = R || k, O.click();
6440
+ const F = await At(r), b = `data:${F == null ? void 0 : F.mime};base64,${r}`, O = document.createElement("a"), _ = f(a), k = f("name");
6441
+ O.href = b, O.download = _ || k, O.click();
6442
6442
  }
6443
6443
  async function y() {
6444
6444
  const F = await At(r);
@@ -6721,7 +6721,7 @@ const { confirm: bc } = Je, Cc = ({
6721
6721
  onCancel: t
6722
6722
  });
6723
6723
  };
6724
- async function Ro(e, t, r) {
6724
+ async function _o(e, t, r) {
6725
6725
  const i = (await E.getHandler().getLogInfo({
6726
6726
  model: e,
6727
6727
  ids: [t]
@@ -6952,7 +6952,7 @@ function Ic({ toolbar: e }) {
6952
6952
  attachments: F,
6953
6953
  formRef: b,
6954
6954
  setFormHasChanges: O,
6955
- previousView: R,
6955
+ previousView: _,
6956
6956
  setPreviousView: k,
6957
6957
  goToResourceId: x
6958
6958
  } = H(st), { t: S, lang: I } = H(he), C = H(
@@ -6960,29 +6960,29 @@ function Ic({ toolbar: e }) {
6960
6960
  ), { processAction: D } = C || {}, P = H(
6961
6961
  dt
6962
6962
  ), { openRelate: L, openDefaultActionForModel: j } = P || {};
6963
- function M(_) {
6963
+ function M(R) {
6964
6964
  if (s) {
6965
6965
  Cc({
6966
6966
  lang: I,
6967
6967
  onOk: () => {
6968
- _();
6968
+ R();
6969
6969
  }
6970
6970
  });
6971
6971
  return;
6972
6972
  }
6973
- _();
6973
+ R();
6974
6974
  }
6975
- function B(_) {
6975
+ function B(R) {
6976
6976
  if (s) {
6977
6977
  zt({
6978
6978
  lang: I,
6979
6979
  onOk: () => {
6980
- _();
6980
+ R();
6981
6981
  }
6982
6982
  });
6983
6983
  return;
6984
6984
  }
6985
- _();
6985
+ R();
6986
6986
  }
6987
6987
  function K() {
6988
6988
  d && d.length > c + 1 ? (u == null || u(c + 1), f == null || f(d[c + 1].id)) : d && c + 1 === d.length && (u == null || u(0), f == null || f(d[0].id));
@@ -7006,12 +7006,12 @@ function Ic({ toolbar: e }) {
7006
7006
  ids: [l],
7007
7007
  context: b.current.getContext()
7008
7008
  });
7009
- const _ = d == null ? void 0 : d.filter((ee) => ee.id !== l);
7010
- v == null || v(_);
7009
+ const R = d == null ? void 0 : d.filter((ee) => ee.id !== l);
7010
+ v == null || v(R);
7011
7011
  let N = 0;
7012
- c > 0 && c <= d.length - 1 && (N = c - 1), _ != null && _[N] ? (f == null || f(_ == null ? void 0 : _[N].id), u == null || u(N)) : (f == null || f(void 0), u == null || u(void 0));
7013
- } catch (_) {
7014
- on(JSON.stringify(_));
7012
+ c > 0 && c <= d.length - 1 && (N = c - 1), R != null && R[N] ? (f == null || f(R == null ? void 0 : R[N].id), u == null || u(N)) : (f == null || f(void 0), u == null || u(void 0));
7013
+ } catch (R) {
7014
+ on(JSON.stringify(R));
7015
7015
  } finally {
7016
7016
  p == null || p(!1);
7017
7017
  }
@@ -7019,22 +7019,22 @@ function Ic({ toolbar: e }) {
7019
7019
  async function J() {
7020
7020
  try {
7021
7021
  y == null || y(!0);
7022
- const _ = await E.getHandler().duplicate({
7022
+ const R = await E.getHandler().duplicate({
7023
7023
  id: l,
7024
7024
  model: m,
7025
7025
  context: b.current.getContext()
7026
7026
  });
7027
- _ && await (x == null ? void 0 : x([_]));
7028
- } catch (_) {
7029
- on(JSON.stringify(_));
7027
+ R && await (x == null ? void 0 : x([R]));
7028
+ } catch (R) {
7029
+ on(JSON.stringify(R));
7030
7030
  } finally {
7031
7031
  y == null || y(!1);
7032
7032
  }
7033
7033
  }
7034
7034
  const le = a || h || T || g;
7035
- function Y(_) {
7035
+ function Y(R) {
7036
7036
  D == null || D({
7037
- actionData: _,
7037
+ actionData: R,
7038
7038
  values: b.current.getValues(),
7039
7039
  fields: b.current.getFields(),
7040
7040
  context: b.current.getContext(),
@@ -7094,7 +7094,7 @@ function Ic({ toolbar: e }) {
7094
7094
  disabled: a || l === void 0 || h || g || T,
7095
7095
  loading: !1,
7096
7096
  onClick: () => {
7097
- Ro(m, l, S);
7097
+ _o(m, l, S);
7098
7098
  }
7099
7099
  }
7100
7100
  ),
@@ -7117,10 +7117,10 @@ function Ic({ toolbar: e }) {
7117
7117
  Qn,
7118
7118
  {
7119
7119
  currentView: r,
7120
- previousView: R,
7120
+ previousView: _,
7121
7121
  availableViews: t,
7122
- onChangeView: (_) => {
7123
- k == null || k(r), O == null || O(!1), i == null || i(_);
7122
+ onChangeView: (R) => {
7123
+ k == null || k(r), O == null || O(!1), i == null || i(R);
7124
7124
  },
7125
7125
  disabled: le,
7126
7126
  formHasChanges: s
@@ -7161,10 +7161,10 @@ function Ic({ toolbar: e }) {
7161
7161
  disabled: le,
7162
7162
  tooltip: S("actions"),
7163
7163
  items: e == null ? void 0 : e.action,
7164
- onItemClick: async (_) => {
7165
- !_ || !(await It({
7164
+ onItemClick: async (R) => {
7165
+ !R || !(await It({
7166
7166
  onFormSave: o
7167
- })).succeed || Y(_);
7167
+ })).succeed || Y(R);
7168
7168
  }
7169
7169
  }
7170
7170
  ),
@@ -7175,16 +7175,16 @@ function Ic({ toolbar: e }) {
7175
7175
  disabled: le,
7176
7176
  tooltip: S("reports"),
7177
7177
  items: e == null ? void 0 : e.print,
7178
- onItemClick: async (_) => {
7179
- if (!_)
7178
+ onItemClick: async (R) => {
7179
+ if (!R)
7180
7180
  return;
7181
7181
  const N = await It({
7182
7182
  onFormSave: o
7183
7183
  });
7184
7184
  N.succeed && Y({
7185
- ..._,
7185
+ ...R,
7186
7186
  datas: {
7187
- ..._.datas || {},
7187
+ ...R.datas || {},
7188
7188
  ids: [N.currentId]
7189
7189
  }
7190
7190
  });
@@ -7198,15 +7198,15 @@ function Ic({ toolbar: e }) {
7198
7198
  disabled: le,
7199
7199
  tooltip: S("related"),
7200
7200
  items: e == null ? void 0 : e.relate,
7201
- onItemClick: async (_) => {
7202
- !_ || !(await It({
7201
+ onItemClick: async (R) => {
7202
+ !R || !(await It({
7203
7203
  onFormSave: o
7204
7204
  })).succeed || L({
7205
- relateData: _,
7205
+ relateData: R,
7206
7206
  values: b.current.getValues(),
7207
7207
  fields: b.current.getFields(),
7208
- action_id: _.id,
7209
- action_type: _.type
7208
+ action_id: R.id,
7209
+ action_type: R.type
7210
7210
  });
7211
7211
  }
7212
7212
  }
@@ -7217,35 +7217,35 @@ function Ic({ toolbar: e }) {
7217
7217
  disabled: le,
7218
7218
  attachments: F,
7219
7219
  onAddNewAttachment: async () => {
7220
- const _ = await It({
7220
+ const R = await It({
7221
7221
  onFormSave: o
7222
7222
  });
7223
- if (!_.succeed)
7223
+ if (!R.succeed)
7224
7224
  return;
7225
- const N = _.currentId;
7225
+ const N = R.currentId;
7226
7226
  j({
7227
- ...Rr(m, N),
7227
+ ..._r(m, N),
7228
7228
  initialViewType: "form"
7229
7229
  });
7230
7230
  },
7231
7231
  onListAllAttachments: async () => {
7232
- const _ = await It({
7232
+ const R = await It({
7233
7233
  onFormSave: o
7234
7234
  });
7235
- if (!_.succeed)
7235
+ if (!R.succeed)
7236
7236
  return;
7237
- const N = _.currentId;
7237
+ const N = R.currentId;
7238
7238
  j({
7239
- ...Rr(m, N),
7239
+ ..._r(m, N),
7240
7240
  initialViewType: "tree"
7241
7241
  });
7242
7242
  },
7243
- onViewAttachmentDetails: async (_) => {
7243
+ onViewAttachmentDetails: async (R) => {
7244
7244
  (await It({
7245
7245
  onFormSave: o
7246
7246
  })).succeed && j({
7247
7247
  model: "ir.attachment",
7248
- res_id: _.id,
7248
+ res_id: R.id,
7249
7249
  initialViewType: "form"
7250
7250
  });
7251
7251
  }
@@ -7262,7 +7262,7 @@ async function It({
7262
7262
  const t = await (e == null ? void 0 : e());
7263
7263
  return t != null && t.succeed ? { succeed: !0, currentId: t.id } : { succeed: !1, currentId: void 0 };
7264
7264
  }
7265
- function Rr(e, t) {
7265
+ function _r(e, t) {
7266
7266
  return {
7267
7267
  model: "ir.attachment",
7268
7268
  domain: [
@@ -7278,7 +7278,7 @@ function Rr(e, t) {
7278
7278
  }
7279
7279
  };
7280
7280
  }
7281
- const { useToken: Fc } = Pe, _o = (e) => {
7281
+ const { useToken: Fc } = Pe, Ro = (e) => {
7282
7282
  const { ooui: t, value: r, onChange: i, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: d } = t, { token: u } = Fc(), c = d && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, f = H(Ne), { elementHasLostFocus: m } = f || {}, [p, h] = w(!1), [g, y] = w(!1);
7283
7283
  me(() => {
7284
7284
  l && !p && y(!1), !r && !l && (h(!0), y(!0));
@@ -7337,23 +7337,23 @@ const { useToken: Fc } = Pe, _o = (e) => {
7337
7337
  }, Oc = (e) => {
7338
7338
  const { ooui: t } = e, { required: r } = t;
7339
7339
  return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
7340
- _o,
7340
+ Ro,
7341
7341
  {
7342
7342
  ooui: t,
7343
7343
  valueValidator: (i) => i ? ji(i) : !1
7344
7344
  }
7345
7345
  ) });
7346
- }, Rc = (e) => {
7346
+ }, _c = (e) => {
7347
7347
  const { ooui: t } = e, { required: r } = t;
7348
7348
  return /* @__PURE__ */ n(ge, { required: r, ...e, children: /* @__PURE__ */ n(
7349
- _o,
7349
+ Ro,
7350
7350
  {
7351
7351
  ooui: t,
7352
7352
  linkPrefix: "mailto:",
7353
7353
  valueValidator: (i) => i ? Yi(i) : !1
7354
7354
  }
7355
7355
  ) });
7356
- }, _c = (e) => {
7356
+ }, Rc = (e) => {
7357
7357
  const { visible: t, onIdSubmitted: r, onCancel: i, isSearching: o } = e, { t: s } = H(he), a = de();
7358
7358
  function l(d) {
7359
7359
  const u = d.id.split(",").map((c) => parseInt(c.trim()));
@@ -7610,7 +7610,7 @@ const Ec = (e) => {
7610
7610
  setSorter: F = void 0,
7611
7611
  setTotalItems: b = void 0,
7612
7612
  setSearchTreeNameSearch: O = void 0,
7613
- setTreeIsLoading: R = void 0,
7613
+ setTreeIsLoading: _ = void 0,
7614
7614
  limit: k,
7615
7615
  setLimit: x,
7616
7616
  searchParams: S,
@@ -7632,7 +7632,7 @@ const Ec = (e) => {
7632
7632
  setSearchValues: C,
7633
7633
  setSearchParams: g,
7634
7634
  setSearchVisible: v,
7635
- setTreeIsLoading: R,
7635
+ setTreeIsLoading: _,
7636
7636
  context: o,
7637
7637
  formView: a,
7638
7638
  treeView: l,
@@ -7799,7 +7799,7 @@ function $c(e) {
7799
7799
  setPreviousView: F,
7800
7800
  previousView: b,
7801
7801
  results: O,
7802
- limit: R,
7802
+ limit: _,
7803
7803
  totalItems: k
7804
7804
  } = H(st), { parentContext: x = {}, treeExpandable: S, toolbar: I } = e, C = Bc(
7805
7805
  Ao.FEATURE_ADVANCED_EXPORT
@@ -7820,11 +7820,11 @@ function $c(e) {
7820
7820
  try {
7821
7821
  s == null || s(!0), await E.getHandler().deleteObjects({
7822
7822
  model: u,
7823
- ids: o.map((_) => _.id),
7823
+ ids: o.map((R) => R.id),
7824
7824
  context: { ...x }
7825
7825
  }), f == null || f(void 0), m == null || m(void 0), (Y = c == null ? void 0 : c.current) == null || Y.refreshResults();
7826
- } catch (_) {
7827
- ze(_);
7826
+ } catch (R) {
7827
+ ze(R);
7828
7828
  } finally {
7829
7829
  s == null || s(!1);
7830
7830
  }
@@ -7833,14 +7833,14 @@ function $c(e) {
7833
7833
  var Y;
7834
7834
  try {
7835
7835
  d == null || d(!0);
7836
- const _ = o[0].id;
7836
+ const R = o[0].id;
7837
7837
  await E.getHandler().duplicate({
7838
- id: _,
7838
+ id: R,
7839
7839
  model: u,
7840
7840
  context: { ...x }
7841
7841
  }) && ((Y = c == null ? void 0 : c.current) == null || Y.refreshResults());
7842
- } catch (_) {
7843
- ze(_);
7842
+ } catch (R) {
7843
+ ze(R);
7844
7844
  } finally {
7845
7845
  d == null || d(!1);
7846
7846
  }
@@ -7849,18 +7849,18 @@ function $c(e) {
7849
7849
  j == null || j({
7850
7850
  actionData: Y,
7851
7851
  values: {
7852
- active_id: o == null ? void 0 : o.map((_) => _.id)[0],
7853
- active_ids: o == null ? void 0 : o.map((_) => _.id)
7852
+ active_id: o == null ? void 0 : o.map((R) => R.id)[0],
7853
+ active_ids: o == null ? void 0 : o.map((R) => R.id)
7854
7854
  },
7855
7855
  fields: {},
7856
7856
  context: {
7857
7857
  ...x,
7858
- active_id: o == null ? void 0 : o.map((_) => _.id)[0],
7859
- active_ids: o == null ? void 0 : o.map((_) => _.id)
7858
+ active_id: o == null ? void 0 : o.map((R) => R.id)[0],
7859
+ active_ids: o == null ? void 0 : o.map((R) => R.id)
7860
7860
  },
7861
7861
  onRefreshParentValues: () => {
7862
- var _;
7863
- (_ = c == null ? void 0 : c.current) == null || _.refreshResults();
7862
+ var R;
7863
+ (R = c == null ? void 0 : c.current) == null || R.refreshResults();
7864
7864
  }
7865
7865
  });
7866
7866
  }
@@ -7931,7 +7931,7 @@ function $c(e) {
7931
7931
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || T,
7932
7932
  loading: !1,
7933
7933
  onClick: () => {
7934
- Ro(u, o[0].id, D);
7934
+ _o(u, o[0].id, D);
7935
7935
  }
7936
7936
  }
7937
7937
  ),
@@ -7988,7 +7988,7 @@ function $c(e) {
7988
7988
  ...Y,
7989
7989
  datas: {
7990
7990
  ...Y.datas || {},
7991
- ids: o.map((_) => _.id)
7991
+ ids: o.map((R) => R.id)
7992
7992
  }
7993
7993
  });
7994
7994
  }
@@ -8038,15 +8038,15 @@ function $c(e) {
8038
8038
  ],
8039
8039
  onItemClick: (Y) => {
8040
8040
  if (Y.id === "print_screen") {
8041
- let _ = (o == null ? void 0 : o.map((N) => N.id)) || [];
8042
- _.length === 0 && (_ = (O == null ? void 0 : O.map((N) => N.id)) || []), J({
8041
+ let R = (o == null ? void 0 : o.map((N) => N.id)) || [];
8042
+ R.length === 0 && (R = (O == null ? void 0 : O.map((N) => N.id)) || []), J({
8043
8043
  id: -1,
8044
8044
  model: u,
8045
8045
  report_name: "printscreen.list",
8046
8046
  type: "ir.actions.report.xml",
8047
8047
  datas: {
8048
8048
  model: u,
8049
- ids: _
8049
+ ids: R
8050
8050
  }
8051
8051
  });
8052
8052
  return;
@@ -8067,7 +8067,7 @@ function $c(e) {
8067
8067
  ((le = c == null ? void 0 : c.current) == null ? void 0 : le.getDomain()) || [],
8068
8068
  p || []
8069
8069
  ),
8070
- limit: R,
8070
+ limit: _,
8071
8071
  totalRegisters: k || 0,
8072
8072
  selectedRegistersToExport: o,
8073
8073
  visibleRegisters: (O == null ? void 0 : O.length) || 0,
@@ -8200,22 +8200,22 @@ function jc() {
8200
8200
  return /* @__PURE__ */ n("div", { className: "inline-block w-2" });
8201
8201
  }
8202
8202
  const Yc = (e) => {
8203
- const { dashboardData: t } = e, r = de(), i = H(
8203
+ const { dashboardData: t, visible: r } = e, i = de(), o = H(
8204
8204
  dt
8205
- ), { openShortcut: o } = i || {};
8206
- return t ? /* @__PURE__ */ A(
8205
+ ), { openShortcut: s } = o || {};
8206
+ return !t || !r ? null : /* @__PURE__ */ A(
8207
8207
  Kc,
8208
8208
  {
8209
- dashboardRef: r,
8210
- openAction: (s) => {
8211
- o(s);
8209
+ dashboardRef: i,
8210
+ openAction: (a) => {
8211
+ s(a);
8212
8212
  },
8213
8213
  children: [
8214
8214
  /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(Wc, {}) }),
8215
8215
  /* @__PURE__ */ n(
8216
8216
  od,
8217
8217
  {
8218
- ref: r,
8218
+ ref: i,
8219
8219
  model: t.model,
8220
8220
  id: t.id,
8221
8221
  context: t == null ? void 0 : t.context,
@@ -8224,7 +8224,7 @@ const Yc = (e) => {
8224
8224
  )
8225
8225
  ]
8226
8226
  }
8227
- ) : null;
8227
+ );
8228
8228
  };
8229
8229
  async function Gc(e) {
8230
8230
  const t = await Promise.all(
@@ -8258,9 +8258,9 @@ function Uc(e, t) {
8258
8258
  action_type: h,
8259
8259
  treeExpandable: g = !1,
8260
8260
  limit: y
8261
- } = e, [v, T] = w(), [F, b] = w([]), [O, R] = w(!0), k = m || void 0, [x, S] = w(
8261
+ } = e, [v, T] = w(), [F, b] = w([]), [O, _] = w(!0), k = m || void 0, [x, S] = w(
8262
8262
  k
8263
- ), [I, C] = w([]), [D, P] = w(), [L, j] = w([]), [M, B] = w(), [K, V] = w(0), [G, ne] = w(!1), [J, le] = w(!1), [Y, _] = w(), { t: N } = H(he) || {}, ee = de(), ce = de(), Ie = H(
8263
+ ), [I, C] = w([]), [D, P] = w(), [L, j] = w([]), [M, B] = w(), [K, V] = w(0), [G, ne] = w(!1), [J, le] = w(!1), [Y, R] = w(), { t: N } = H(he) || {}, ee = de(), ce = de(), Ie = H(
8264
8264
  dt
8265
8265
  ), {
8266
8266
  setCurrentView: X,
@@ -8272,23 +8272,23 @@ function Uc(e, t) {
8272
8272
  } = Ie || {};
8273
8273
  Gi(
8274
8274
  "ctrl+g,command+g",
8275
- (z) => {
8276
- z.preventDefault(), Ee();
8275
+ (q) => {
8276
+ q.preventDefault(), Ee();
8277
8277
  },
8278
8278
  [we, Ce, v, D, L]
8279
8279
  );
8280
- function Le(z) {
8281
- S(z), U == null || U(z);
8280
+ function Le(q) {
8281
+ S(q), U == null || U(q);
8282
8282
  }
8283
- function Ue(z) {
8284
- T(z), X == null || X(z);
8283
+ function Ue(q) {
8284
+ T(q), X == null || X(q);
8285
8285
  }
8286
8286
  bt(t, () => ({
8287
8287
  canWeClose: re
8288
8288
  }));
8289
8289
  const xe = async () => {
8290
- R(!0);
8291
- const z = [], ve = [];
8290
+ _(!0);
8291
+ const q = [], ve = [];
8292
8292
  for (const oe of s) {
8293
8293
  const [ue, $e] = oe;
8294
8294
  $e !== "dashboard" ? ve.push({
@@ -8311,8 +8311,8 @@ function Uc(e, t) {
8311
8311
  switch (ue) {
8312
8312
  case "dashboard": {
8313
8313
  const se = s.find((We) => {
8314
- const [, q] = We;
8315
- return q === "form";
8314
+ const [, z] = We;
8315
+ return z === "form";
8316
8316
  });
8317
8317
  let Qe;
8318
8318
  se && (Qe = {
@@ -8323,7 +8323,7 @@ function Uc(e, t) {
8323
8323
  res_model: i,
8324
8324
  view_id: se[0],
8325
8325
  view_type: se[1]
8326
- }), z.push({
8326
+ }), q.push({
8327
8327
  type: "dashboard",
8328
8328
  id: o.active_id,
8329
8329
  model: i,
@@ -8333,14 +8333,14 @@ function Uc(e, t) {
8333
8333
  break;
8334
8334
  }
8335
8335
  case "form": {
8336
- z.push({
8336
+ q.push({
8337
8337
  ...$e,
8338
8338
  type: ue
8339
8339
  });
8340
8340
  break;
8341
8341
  }
8342
8342
  case "tree": {
8343
- z.push({
8343
+ q.push({
8344
8344
  ...$e,
8345
8345
  isExpandable: g,
8346
8346
  type: ue
@@ -8348,7 +8348,7 @@ function Uc(e, t) {
8348
8348
  break;
8349
8349
  }
8350
8350
  case "graph": {
8351
- z.push({
8351
+ q.push({
8352
8352
  ...$e,
8353
8353
  type: ue
8354
8354
  });
@@ -8357,18 +8357,18 @@ function Uc(e, t) {
8357
8357
  }
8358
8358
  }
8359
8359
  let Be;
8360
- !u && z.find((oe) => oe.type === "tree") ? Be = z.find(
8360
+ !u && q.find((oe) => oe.type === "tree") ? Be = q.find(
8361
8361
  (ue) => ue.type === "tree"
8362
- ) : u ? Be = z.find((ue) => u.id ? ue.type === u.type && ue.view_id === u.id : ue.type === u.type) : Be = z.find(
8362
+ ) : u ? Be = q.find((ue) => u.id ? ue.type === u.type && ue.view_id === u.id : ue.type === u.type) : Be = q.find(
8363
8363
  (ue) => ue.type === "form"
8364
8364
  ), Be || (ze(
8365
8365
  `Error determining the first view to show for model ${i}.
8366
8366
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
8367
- ), ke == null || ke(d)), Ue(Be), b(z), R(!1);
8367
+ ), ke == null || ke(d)), Ue(Be), b(q), _(!1);
8368
8368
  };
8369
8369
  l({ tabKey: d, canWeClose: re }), me(() => {
8370
- const z = F.find((Ve) => Ve.type === "tree"), ve = F.find((Ve) => u.id ? Ve.type === u.type && Ve.view_id === u.id : Ve.type === u.type);
8371
- Ue(ve || z), m ? U == null || U(k) : (Le(void 0), P(void 0)), xe();
8370
+ const q = F.find((Ve) => Ve.type === "tree"), ve = F.find((Ve) => u.id ? Ve.type === u.type && Ve.view_id === u.id : Ve.type === u.type);
8371
+ Ue(ve || q), m ? U == null || U(k) : (Le(void 0), P(void 0)), xe();
8372
8372
  }, [i, s, m]), me(() => {
8373
8373
  we === d && (U == null || U(x), X == null || X(v));
8374
8374
  }, [Ce, we]);
@@ -8378,13 +8378,13 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8378
8378
  async function Ee() {
8379
8379
  we === d && (v.type === "form" && !await ee.current.cancelUnsavedChanges() || ne(!0));
8380
8380
  }
8381
- async function ye(z) {
8381
+ async function ye(q) {
8382
8382
  var oe;
8383
8383
  le(!0);
8384
8384
  let ve, Ve;
8385
- if (z.length === 1) {
8385
+ if (q.length === 1) {
8386
8386
  ve = "form", Ve = [];
8387
- const ue = z[0], $e = L.findIndex((Qe) => Qe.id === ue);
8387
+ const ue = q[0], $e = L.findIndex((Qe) => Qe.id === ue);
8388
8388
  let se;
8389
8389
  if ($e === -1) {
8390
8390
  try {
@@ -8402,7 +8402,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8402
8402
  } else
8403
8403
  se = L[$e];
8404
8404
  } else
8405
- ve = "tree", Ve = [["id", "in", z]];
8405
+ ve = "tree", Ve = [["id", "in", q]];
8406
8406
  le(!1), ne(!1);
8407
8407
  const Be = s.find((ue) => ue[1] === ve);
8408
8408
  Ye({
@@ -8415,20 +8415,20 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8415
8415
  initialView: { id: Be == null ? void 0 : Be[0], type: ve },
8416
8416
  action_id: p,
8417
8417
  action_type: h,
8418
- res_id: z[0]
8418
+ res_id: q[0]
8419
8419
  });
8420
8420
  }
8421
8421
  function Me() {
8422
- return F.map((z) => {
8423
- switch (z.type) {
8422
+ return F.map((q) => {
8423
+ switch (q.type) {
8424
8424
  case "form":
8425
8425
  return /* @__PURE__ */ n(
8426
8426
  Mc,
8427
8427
  {
8428
8428
  formRef: ee,
8429
8429
  currentId: x,
8430
- visible: v.type === z.type && v.view_id === z.view_id,
8431
- formView: z,
8430
+ visible: v.type === q.type && v.view_id === q.view_id,
8431
+ formView: q,
8432
8432
  model: i,
8433
8433
  context: o,
8434
8434
  domain: r,
@@ -8438,19 +8438,19 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8438
8438
  setResults: j,
8439
8439
  setCurrentItemIndex: P
8440
8440
  },
8441
- `${z.type}-${z.view_id}`
8441
+ `${q.type}-${q.view_id}`
8442
8442
  );
8443
8443
  case "tree":
8444
8444
  return /* @__PURE__ */ n(
8445
8445
  Hc,
8446
8446
  {
8447
- visible: v.type === z.type && v.view_id === z.view_id,
8447
+ visible: v.type === q.type && v.view_id === q.view_id,
8448
8448
  limit: y,
8449
8449
  model: i,
8450
8450
  context: o,
8451
8451
  domain: r,
8452
8452
  formView: F.find((ve) => ve.type === "form"),
8453
- treeView: z,
8453
+ treeView: q,
8454
8454
  searchTreeRef: ce,
8455
8455
  searchTreeNameSearch: Y,
8456
8456
  availableViews: F,
@@ -8459,29 +8459,30 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8459
8459
  setCurrentId: Le,
8460
8460
  setCurrentView: Ue
8461
8461
  },
8462
- `${z.type}-${z.view_id}`
8462
+ `${q.type}-${q.view_id}`
8463
8463
  );
8464
8464
  case "graph":
8465
8465
  return /* @__PURE__ */ n(
8466
8466
  Ec,
8467
8467
  {
8468
- visible: v.type === z.type && v.view_id === z.view_id,
8469
- viewData: z,
8468
+ visible: v.type === q.type && v.view_id === q.view_id,
8469
+ viewData: q,
8470
8470
  model: i,
8471
8471
  context: o,
8472
8472
  domain: r,
8473
8473
  treeView: F.find((ve) => ve.type === "tree"),
8474
8474
  formView: F.find((ve) => ve.type === "form")
8475
8475
  },
8476
- `${z.type}-${z.view_id}`
8476
+ `${q.type}-${q.view_id}`
8477
8477
  );
8478
8478
  case "dashboard":
8479
8479
  return /* @__PURE__ */ n(
8480
8480
  Yc,
8481
8481
  {
8482
- dashboardData: z
8482
+ dashboardData: q,
8483
+ visible: v.type === q.type && v.view_id === q.view_id
8483
8484
  },
8484
- `${z.type}-${z.view_id}`
8485
+ `${q.type}-${q.view_id}`
8485
8486
  );
8486
8487
  }
8487
8488
  });
@@ -8491,10 +8492,10 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8491
8492
  ee.current.clearAndReload();
8492
8493
  else {
8493
8494
  Le(void 0);
8494
- const z = F.find(
8495
+ const q = F.find(
8495
8496
  (ve) => ve.type === "form"
8496
8497
  );
8497
- Ue(z);
8498
+ Ue(q);
8498
8499
  }
8499
8500
  }
8500
8501
  return O ? /* @__PURE__ */ n(Ae, {}) : v ? /* @__PURE__ */ A(
@@ -8520,14 +8521,14 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8520
8521
  setTotalItems: V,
8521
8522
  selectedRowItems: I,
8522
8523
  setSelectedRowItems: C,
8523
- setSearchTreeNameSearch: _,
8524
+ setSearchTreeNameSearch: R,
8524
8525
  searchTreeNameSearch: Y,
8525
8526
  goToResourceId: ye,
8526
8527
  limit: y,
8527
8528
  children: [
8528
8529
  Me(),
8529
8530
  /* @__PURE__ */ n(
8530
- _c,
8531
+ Rc,
8531
8532
  {
8532
8533
  visible: G,
8533
8534
  onIdSubmitted: ye,
@@ -8689,12 +8690,12 @@ function td(e) {
8689
8690
  domain: s = [],
8690
8691
  visible: a = !0,
8691
8692
  parentContext: l = {}
8692
- } = e, [d, u] = w(!1), [c, f] = w(!1), [m, p] = w(), [h, g] = w(), [y, v] = w(), [T, F] = w(1), [b, O] = w(0), R = de(ed), k = de([]), [x, S] = w(0), [I, C] = w([]), [D, P] = w(void 0), [L, j] = w(), [M, B] = w(), [K, V] = w(), [G, ne] = w(!1), J = de([]), le = (U) => {
8693
- ne(!0), F(U), O((U - 1) * R.current);
8693
+ } = e, [d, u] = w(!1), [c, f] = w(!1), [m, p] = w(), [h, g] = w(), [y, v] = w(), [T, F] = w(1), [b, O] = w(0), _ = de(ed), k = de([]), [x, S] = w(0), [I, C] = w([]), [D, P] = w(void 0), [L, j] = w(), [M, B] = w(), [K, V] = w(), [G, ne] = w(!1), J = de([]), le = (U) => {
8694
+ ne(!0), F(U), O((U - 1) * _.current);
8694
8695
  }, Y = async () => {
8695
- const U = J.current.length > 0 ? J.current : s, Ce = Wt(k.current, U), { colors: we } = Rt(h), { totalItems: Ye, results: ke, attrsEvaluated: Le } = await E.getHandler().searchForTree({
8696
+ const U = J.current.length > 0 ? J.current : s, Ce = Wt(k.current, U), { colors: we } = _t(h), { totalItems: Ye, results: ke, attrsEvaluated: Le } = await E.getHandler().searchForTree({
8696
8697
  params: Ce,
8697
- limit: R.current,
8698
+ limit: _.current,
8698
8699
  offset: b,
8699
8700
  model: m,
8700
8701
  fields: h.fields,
@@ -8702,7 +8703,7 @@ function td(e) {
8702
8703
  attrs: we && { colors: we }
8703
8704
  });
8704
8705
  P(tn(Le));
8705
- const Ue = _t({
8706
+ const Ue = Rt({
8706
8707
  resultsToSort: ke,
8707
8708
  sorter: L,
8708
8709
  fields: { ...h.fields, ...y.fields }
@@ -8710,7 +8711,7 @@ function td(e) {
8710
8711
  ne(!1), C(Ue);
8711
8712
  const xe = await Ye;
8712
8713
  S(xe);
8713
- }, _ = async () => {
8714
+ }, R = async () => {
8714
8715
  try {
8715
8716
  ne(!0), await Y();
8716
8717
  } catch (U) {
@@ -8718,7 +8719,7 @@ function td(e) {
8718
8719
  }
8719
8720
  };
8720
8721
  me(() => {
8721
- c && a && _();
8722
+ c && a && R();
8722
8723
  }, [T, b, c, a]);
8723
8724
  const N = async (U) => {
8724
8725
  f(!1), u(!0), V(void 0);
@@ -8734,7 +8735,7 @@ function td(e) {
8734
8735
  action: t,
8735
8736
  context: l
8736
8737
  });
8737
- J.current = U.domain, v(U.views.get("form")), g(U.views.get("tree")), p(U.model), R.current = U.limit;
8738
+ J.current = U.domain, v(U.views.get("form")), g(U.views.get("tree")), p(U.model), _.current = U.limit;
8738
8739
  }, ce = async () => {
8739
8740
  p(r);
8740
8741
  const U = await E.getHandler().getView({
@@ -8768,7 +8769,7 @@ function td(e) {
8768
8769
  {
8769
8770
  showPagination: !1,
8770
8771
  total: x,
8771
- limit: R.current,
8772
+ limit: _.current,
8772
8773
  page: T,
8773
8774
  treeView: h,
8774
8775
  results: I,
@@ -8779,7 +8780,7 @@ function td(e) {
8779
8780
  sorter: L,
8780
8781
  onChangeSort: (U) => {
8781
8782
  j == null || j(U);
8782
- const Ce = _t({
8783
+ const Ce = Rt({
8783
8784
  resultsToSort: I,
8784
8785
  sorter: U,
8785
8786
  fields: { ...h.fields, ...y.fields }
@@ -8889,7 +8890,7 @@ function rd(e, t) {
8889
8890
  }
8890
8891
  return S;
8891
8892
  }
8892
- async function R(x) {
8893
+ async function _(x) {
8893
8894
  if (!h)
8894
8895
  return;
8895
8896
  const S = x.filter((P) => {
@@ -8935,7 +8936,7 @@ function rd(e, t) {
8935
8936
  async function k() {
8936
8937
  p(s);
8937
8938
  }
8938
- return c ? (console.log(c), /* @__PURE__ */ n(tt, { className: "mt-10 mb-20", message: c, type: "error", banner: !0 })) : d ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(Jc, { onPositionItemsChanged: R, children: a.map((x, S) => {
8939
+ return c ? (console.log(c), /* @__PURE__ */ n(tt, { className: "mt-10 mb-20", message: c, type: "error", banner: !0 })) : d ? /* @__PURE__ */ n(at, {}) : /* @__PURE__ */ n(Jc, { onPositionItemsChanged: _, children: a.map((x, S) => {
8939
8940
  const { actionData: I, values: C } = x, { position: D, id: P } = C, {
8940
8941
  actionId: L,
8941
8942
  actionType: j,
@@ -8954,9 +8955,9 @@ function rd(e, t) {
8954
8955
  } catch {
8955
8956
  Y = { x: S * 2, y: 0, w: 2, h: 3 };
8956
8957
  }
8957
- let _ = null;
8958
+ let R = null;
8958
8959
  if ((J == null ? void 0 : J.type) === "graph")
8959
- _ = /* @__PURE__ */ n(
8960
+ R = /* @__PURE__ */ n(
8960
8961
  gn,
8961
8962
  {
8962
8963
  view_id: K.filter(
@@ -8969,9 +8970,9 @@ function rd(e, t) {
8969
8970
  }
8970
8971
  );
8971
8972
  else if ((J == null ? void 0 : J.type) === "form")
8972
- _ = /* @__PURE__ */ n(nd, { model: V, actionDomain: ne });
8973
+ R = /* @__PURE__ */ n(nd, { model: V, actionDomain: ne });
8973
8974
  else if ((J == null ? void 0 : J.type) === "tree")
8974
- _ = /* @__PURE__ */ n(
8975
+ R = /* @__PURE__ */ n(
8975
8976
  td,
8976
8977
  {
8977
8978
  model: V,
@@ -9006,7 +9007,7 @@ function rd(e, t) {
9006
9007
  );
9007
9008
  else if (J !== void 0) {
9008
9009
  const ce = J && Array.isArray(J.id) ? { ...J, id: J.id[0] } : J;
9009
- _ = /* @__PURE__ */ n(
9010
+ R = /* @__PURE__ */ n(
9010
9011
  Do,
9011
9012
  {
9012
9013
  action_id: L,
@@ -9054,7 +9055,7 @@ function rd(e, t) {
9054
9055
  parms: Y,
9055
9056
  action: N,
9056
9057
  openAction: p,
9057
- children: _
9058
+ children: R
9058
9059
  },
9059
9060
  P
9060
9061
  );
@@ -9110,7 +9111,7 @@ const od = wt(rd), id = (e) => {
9110
9111
  }
9111
9112
  const O = () => {
9112
9113
  k(a.map((x) => x.value));
9113
- }, R = () => {
9114
+ }, _ = () => {
9114
9115
  k([]);
9115
9116
  }, k = (x) => {
9116
9117
  const S = o.map((C) => x.includes(C.id) ? C.operation == "pendingRemove" ? {
@@ -9141,7 +9142,7 @@ const od = wt(rd), id = (e) => {
9141
9142
  children: "Check all"
9142
9143
  }
9143
9144
  ),
9144
- /* @__PURE__ */ n(Oe, { onClick: R, disabled: s.length === 0, children: "Uncheck all" })
9145
+ /* @__PURE__ */ n(Oe, { onClick: _, disabled: s.length === 0, children: "Uncheck all" })
9145
9146
  ] })
9146
9147
  ] }) });
9147
9148
  }, ad = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(ld, { ...e }) }), ld = (e) => {
@@ -9227,7 +9228,7 @@ const bd = (e) => {
9227
9228
  title: t.author,
9228
9229
  description: /* @__PURE__ */ A(je, { direction: "horizontal", children: [
9229
9230
  /* @__PURE__ */ n("span", { title: t.date, children: nt(t.date).fromNow() }),
9230
- t.isAuthor && /* @__PURE__ */ n(_r, { color: "blue", children: i("author") })
9231
+ t.isAuthor && /* @__PURE__ */ n(Rr, { color: "blue", children: i("author") })
9231
9232
  ] }),
9232
9233
  style: { marginBottom: "5px" }
9233
9234
  }
@@ -9248,7 +9249,7 @@ const bd = (e) => {
9248
9249
  children: /* @__PURE__ */ n(bd, { data: i.event })
9249
9250
  };
9250
9251
  });
9251
- return /* @__PURE__ */ n(Rn, { mode: "alternate", items: r });
9252
+ return /* @__PURE__ */ n(_n, { mode: "alternate", items: r });
9252
9253
  }, xd = (e) => /* @__PURE__ */ n(ge, { ...e, children: /* @__PURE__ */ n(Cd, {}) }), { Content: Sd } = ri, { Title: Td } = Yt;
9253
9254
  function Id() {
9254
9255
  const { t: e } = H(he);
@@ -9269,7 +9270,7 @@ function Fd(e, t) {
9269
9270
  }));
9270
9271
  function m(b) {
9271
9272
  if (b === a) {
9272
- const O = d.findIndex((R) => R.key === b);
9273
+ const O = d.findIndex((_) => _.key === b);
9273
9274
  d[O - 1] && l(d[O - 1].key), d[O + 1] && l(d[O + 1].key);
9274
9275
  }
9275
9276
  u(d.filter((O) => O.key !== b)), c.current.delete(b);
@@ -9283,7 +9284,7 @@ function Fd(e, t) {
9283
9284
  async function h({
9284
9285
  action: b,
9285
9286
  values: O,
9286
- forced_values: R,
9287
+ forced_values: _,
9287
9288
  initialViewType: k,
9288
9289
  res_id: x,
9289
9290
  domain: S = []
@@ -9312,10 +9313,10 @@ function Fd(e, t) {
9312
9313
  view_type: G,
9313
9314
  limit: ne
9314
9315
  } = I, J = G === "tree", le = [];
9315
- for (const _ of B) {
9316
- const [N, ee] = _;
9316
+ for (const R of B) {
9317
+ const [N, ee] = R;
9317
9318
  if (N)
9318
- le.push(_);
9319
+ le.push(R);
9319
9320
  else if (ee === "dashboard")
9320
9321
  le.push([void 0, "dashboard"]);
9321
9322
  else {
@@ -9330,13 +9331,13 @@ function Fd(e, t) {
9330
9331
  }
9331
9332
  let Y;
9332
9333
  if (k) {
9333
- const [_, N] = le.find(
9334
+ const [R, N] = le.find(
9334
9335
  ([ee, ce]) => ce === k
9335
9336
  );
9336
- Y = { id: _, type: N };
9337
+ Y = { id: R, type: N };
9337
9338
  } else {
9338
- const [_, N] = le[0];
9339
- Y = { id: _, type: N };
9339
+ const [R, N] = le[0];
9340
+ Y = { id: R, type: N };
9340
9341
  }
9341
9342
  F({
9342
9343
  domain: [...j, ...S],
@@ -9349,7 +9350,7 @@ function Fd(e, t) {
9349
9350
  action_type: C,
9350
9351
  action_id: P,
9351
9352
  values: O,
9352
- forced_values: R,
9353
+ forced_values: _,
9353
9354
  res_id: x,
9354
9355
  treeExpandable: J,
9355
9356
  limit: ne
@@ -9358,7 +9359,7 @@ function Fd(e, t) {
9358
9359
  function g({
9359
9360
  title: b,
9360
9361
  content: O,
9361
- key: R,
9362
+ key: _,
9362
9363
  action: k
9363
9364
  }) {
9364
9365
  let x = [...d];
@@ -9366,17 +9367,17 @@ function Fd(e, t) {
9366
9367
  ...x,
9367
9368
  {
9368
9369
  title: b,
9369
- key: R,
9370
+ key: _,
9370
9371
  closable: !0,
9371
9372
  content: O,
9372
9373
  action: k
9373
9374
  }
9374
- ]), l(R);
9375
+ ]), l(_);
9375
9376
  }
9376
9377
  async function y({
9377
9378
  relateData: b,
9378
9379
  fields: O,
9379
- values: R,
9380
+ values: _,
9380
9381
  action_id: k,
9381
9382
  action_type: x
9382
9383
  }) {
@@ -9390,13 +9391,13 @@ function Fd(e, t) {
9390
9391
  limit: j
9391
9392
  } = b, [M, B] = D[0], K = { id: M, type: B }, V = vt({
9392
9393
  context: I,
9393
- values: { ...R, ...i },
9394
+ values: { ..._, ...i },
9394
9395
  fields: O
9395
9396
  }), G = C ? await E.getHandler().evalDomain({
9396
9397
  domain: C,
9397
9398
  values: Nt({
9398
9399
  fields: O,
9399
- values: { ...R, ...i }
9400
+ values: { ..._, ...i }
9400
9401
  }),
9401
9402
  fields: O,
9402
9403
  context: { ...o, ...V }
@@ -9415,7 +9416,7 @@ function Fd(e, t) {
9415
9416
  });
9416
9417
  }
9417
9418
  async function v(b) {
9418
- const { action_id: O, action_type: R, res_id: k, view_id: x } = b, S = `${R},${O}`, I = await E.getHandler().getActionData({
9419
+ const { action_id: O, action_type: _, res_id: k, view_id: x } = b, S = `${_},${O}`, I = await E.getHandler().getActionData({
9419
9420
  action: S,
9420
9421
  context: o
9421
9422
  }), C = vt({
@@ -9435,8 +9436,8 @@ function Fd(e, t) {
9435
9436
  limit: K
9436
9437
  } = I, V = B === "tree", G = [];
9437
9438
  for (const Y of L) {
9438
- const [_, N] = Y;
9439
- if (_)
9439
+ const [R, N] = Y;
9440
+ if (R)
9440
9441
  G.push(Y);
9441
9442
  else if (N === "dashboard")
9442
9443
  G.push([void 0, "dashboard"]);
@@ -9444,7 +9445,7 @@ function Fd(e, t) {
9444
9445
  const { view_id: ee } = await E.getHandler().getView({
9445
9446
  model: P,
9446
9447
  type: N,
9447
- id: _,
9448
+ id: R,
9448
9449
  context: { ...o, ...C }
9449
9450
  });
9450
9451
  G.push([ee, N]);
@@ -9452,7 +9453,7 @@ function Fd(e, t) {
9452
9453
  }
9453
9454
  let ne, J;
9454
9455
  if (x == null) {
9455
- const Y = G.find((_) => _[0] === void 0);
9456
+ const Y = G.find((R) => R[0] === void 0);
9456
9457
  ne = void 0, J = Y[1];
9457
9458
  } else
9458
9459
  [ne, J] = G.find((Y) => Y[0] === void 0 ? !1 : Y[0] === x);
@@ -9466,7 +9467,7 @@ function Fd(e, t) {
9466
9467
  target: M,
9467
9468
  initialView: le,
9468
9469
  action_id: O,
9469
- action_type: R,
9470
+ action_type: _,
9470
9471
  res_id: k,
9471
9472
  treeExpandable: V,
9472
9473
  limit: K
@@ -9475,7 +9476,7 @@ function Fd(e, t) {
9475
9476
  async function T({
9476
9477
  model: b,
9477
9478
  values: O,
9478
- forced_values: R,
9479
+ forced_values: _,
9479
9480
  initialViewType: k,
9480
9481
  res_id: x,
9481
9482
  domain: S
@@ -9484,7 +9485,7 @@ function Fd(e, t) {
9484
9485
  await h({
9485
9486
  action: I,
9486
9487
  values: O,
9487
- forced_values: R,
9488
+ forced_values: _,
9488
9489
  initialViewType: k,
9489
9490
  res_id: x,
9490
9491
  domain: S
@@ -9493,7 +9494,7 @@ function Fd(e, t) {
9493
9494
  async function F({
9494
9495
  domain: b,
9495
9496
  context: O,
9496
- model: R,
9497
+ model: _,
9497
9498
  views: k,
9498
9499
  title: x,
9499
9500
  target: S,
@@ -9509,14 +9510,14 @@ function Fd(e, t) {
9509
9510
  const K = Zr();
9510
9511
  if (S !== "current") {
9511
9512
  const V = await E.getHandler().getView({
9512
- model: R,
9513
+ model: _,
9513
9514
  type: "form",
9514
9515
  id: I.type === "form" ? I.id : void 0,
9515
9516
  context: { ...o, ...O }
9516
9517
  });
9517
9518
  f.current.openActionModal({
9518
9519
  domain: b,
9519
- model: R,
9520
+ model: _,
9520
9521
  formView: V,
9521
9522
  context: { ...o, ...O },
9522
9523
  actionData: {
@@ -9542,7 +9543,7 @@ function Fd(e, t) {
9542
9543
  tabKey: K,
9543
9544
  title: x,
9544
9545
  views: k,
9545
- model: R,
9546
+ model: _,
9546
9547
  context: { ...o, ...O },
9547
9548
  domain: b,
9548
9549
  setCanWeClose: p,
@@ -9588,7 +9589,7 @@ function Fd(e, t) {
9588
9589
  ) });
9589
9590
  }
9590
9591
  const vu = wt(Fd), { useToken: Od } = Pe;
9591
- function Rd(e) {
9592
+ function _d(e) {
9592
9593
  const { label: t, onClose: r, tabKey: i, isActive: o, onSelected: s } = e, { token: a } = Od(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
9593
9594
  return /* @__PURE__ */ A(
9594
9595
  "div",
@@ -9664,7 +9665,7 @@ function wu() {
9664
9665
  dt
9665
9666
  ), { activeKey: t, tabs: r, onRemoveTab: i, onChangeTab: o } = e || {};
9666
9667
  return /* @__PURE__ */ n(Z, { children: r.map((s) => /* @__PURE__ */ n(
9667
- Rd,
9668
+ _d,
9668
9669
  {
9669
9670
  tabKey: s.key,
9670
9671
  label: s.title,
@@ -9675,7 +9676,7 @@ function wu() {
9675
9676
  s.key
9676
9677
  )) });
9677
9678
  }
9678
- function _d(e) {
9679
+ function Rd(e) {
9679
9680
  const { tab: t } = e, r = H(
9680
9681
  dt
9681
9682
  ), { activeKey: i } = r || {}, o = {
@@ -9683,7 +9684,7 @@ function _d(e) {
9683
9684
  };
9684
9685
  return /* @__PURE__ */ n("div", { style: t.key !== i ? o : void 0, children: t.content });
9685
9686
  }
9686
- const Vd = et.memo(_d, () => !0);
9687
+ const Vd = et.memo(Rd, () => !0);
9687
9688
  function bu() {
9688
9689
  const e = H(
9689
9690
  dt
@@ -9703,14 +9704,14 @@ const { useToken: Ad } = Pe, Cu = (e) => {
9703
9704
  tabs: F,
9704
9705
  activeKey: b,
9705
9706
  currentView: O,
9706
- currentId: R,
9707
+ currentId: _,
9707
9708
  openDefaultActionForModel: k
9708
9709
  } = v || {};
9709
9710
  me(() => {
9710
9711
  x();
9711
9712
  }, []), me(() => {
9712
9713
  C();
9713
- }, [F, b, O, R]);
9714
+ }, [F, b, O, _]);
9714
9715
  async function x() {
9715
9716
  try {
9716
9717
  m(!0);
@@ -9739,7 +9740,7 @@ const { useToken: Ad } = Pe, Cu = (e) => {
9739
9740
  }
9740
9741
  const V = O.view_id;
9741
9742
  let G = !1;
9742
- O.type === "form" && (G = R || !1);
9743
+ O.type === "form" && (G = _ || !1);
9743
9744
  const ne = await r({
9744
9745
  action_id: B,
9745
9746
  action_type: K,
@@ -9789,7 +9790,7 @@ const { useToken: Ad } = Pe, Cu = (e) => {
9789
9790
  a(!1);
9790
9791
  return;
9791
9792
  }
9792
- O.type === "form" && (G = R || !1), await i({
9793
+ O.type === "form" && (G = _ || !1), await i({
9793
9794
  action_id: B,
9794
9795
  action_type: K,
9795
9796
  view_id: V,
@@ -9853,7 +9854,7 @@ export {
9853
9854
  Qc as DashboardGridItem,
9854
9855
  dc as Date,
9855
9856
  uc as DateTime,
9856
- Rc as Email,
9857
+ _c as Email,
9857
9858
  cc as ExportModal,
9858
9859
  Cu as FavouriteButton,
9859
9860
  ho as Float,
@@ -9881,7 +9882,7 @@ export {
9881
9882
  ec as Separator,
9882
9883
  md as Steps,
9883
9884
  ud as Switch,
9884
- Rd as Tab,
9885
+ _d as Tab,
9885
9886
  wu as TabSelector,
9886
9887
  Js as Tag,
9887
9888
  Xs as Tags,