@gisce/react-ooui 1.4.4-rc.0 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import Je, { useContext as Y, useState as T, useEffect as pe, useRef as de, useCallback as Le, forwardRef as bt, useImperativeHandle as xt } from "react";
2
- import { Tooltip as ht, theme as Pe, Typography as an, Form as ot, Row as Ce, Col as le, Modal as Ge, Button as _e, Dropdown as Bt, Menu as He, Spin as Me, Divider as ln, Space as Ye, Input as nt, Select as Ct, Checkbox as Nt, Alert as Ze, Timeline as tr, Statistic as Qo, Card as ei, Tag as ti, message as xn, DatePicker as Mn, TimePicker as Dr, InputNumber as En, Progress as ni, Avatar as ri, Badge as oi, Pagination as ii, Tabs as Vr, Popover as si, Radio as nr, Switch as ai, Steps as rr, Layout as li } from "antd";
3
- import { Label as At, Field as _n, Tree as Ar, Reference as ci, Selection as $n, Many2one as Rr, Boolean as di, Container as ui, parseContext as wt, Form as kr, Integer as In, SearchFieldTypes as ft, SearchFilter as fi, transformDomainForChildWidget as Mr, graphProcessor as Er, parseGraph as Ln, graphFieldUtils as mi } from "@gisce/ooui";
1
+ import Je, { useContext as Y, useState as T, useEffect as pe, useRef as de, useCallback as $e, forwardRef as wt, useImperativeHandle as bt } from "react";
2
+ import { Tooltip as ht, theme as Pe, Typography as an, Form as ot, Row as Ce, Col as le, Modal as Ge, Button as _e, Dropdown as Bt, Menu as He, Spin as Le, Divider as ln, Space as Ye, Input as nt, Select as xt, Checkbox as Nt, Alert as Ze, Timeline as tr, Statistic as Qo, Card as ei, Tag as ti, message as xn, DatePicker as Mn, TimePicker as Dr, InputNumber as En, Progress as ni, Avatar as ri, Badge as oi, Pagination as ii, Tabs as Vr, Popover as si, Radio as nr, Switch as ai, Steps as rr, Layout as li } from "antd";
3
+ import { Label as Vt, Field as _n, Tree as Ar, Reference as ci, Selection as $n, Many2one as Rr, Boolean as di, Container as ui, parseContext as vt, Form as kr, Integer as In, SearchFieldTypes as ft, SearchFilter as fi, transformDomainForChildWidget as Mr, graphProcessor as Er, parseGraph as Ln, graphFieldUtils as mi } from "@gisce/ooui";
4
4
  import * as or from "@ant-design/icons";
5
- import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as pt, LoadingOutlined as rt, DownOutlined as Rt, WarningOutlined as Nr, CloseOutlined as jt, CheckOutlined as kt, TranslationOutlined as Pr, FolderOpenOutlined as Nn, DownloadOutlined as Pn, ClearOutlined as Hn, StarFilled as Hr, StarOutlined as Br, UpOutlined as hi, SearchOutlined as Bn, RightCircleOutlined as pi, ThunderboltOutlined as jn, PrinterOutlined as Kn, EnterOutlined as jr, PlusSquareOutlined as gi, MinusSquareOutlined as yi, FileAddOutlined as cn, AlignLeftOutlined as vi, ApiOutlined as wi, DeleteOutlined as Yn, LeftOutlined as Kr, RightOutlined as Yr, EyeOutlined as bi, FormOutlined as Pt, TableOutlined as Wn, AreaChartOutlined as xi, CalendarOutlined as Ci, LinkOutlined as Wr, SaveOutlined as Si, CopyOutlined as Un, InfoCircleOutlined as Ur, ReloadOutlined as dn, EditOutlined as Gr, FilterOutlined as qr, CloseCircleFilled as Ti, BorderOuterOutlined as Fi, SettingOutlined as Oi, ExportOutlined as _i } from "@ant-design/icons";
5
+ import $r, { QuestionCircleOutlined as Lr, ExclamationCircleOutlined as pt, LoadingOutlined as rt, DownOutlined as At, WarningOutlined as Nr, CloseOutlined as jt, CheckOutlined as Rt, TranslationOutlined as Pr, FolderOpenOutlined as Nn, DownloadOutlined as Pn, ClearOutlined as Hn, StarFilled as Hr, StarOutlined as Br, UpOutlined as hi, SearchOutlined as Bn, RightCircleOutlined as pi, ThunderboltOutlined as jn, PrinterOutlined as Kn, EnterOutlined as jr, PlusSquareOutlined as gi, MinusSquareOutlined as yi, FileAddOutlined as cn, AlignLeftOutlined as vi, ApiOutlined as wi, DeleteOutlined as Yn, LeftOutlined as Kr, RightOutlined as Yr, EyeOutlined as bi, FormOutlined as Pt, TableOutlined as Wn, AreaChartOutlined as xi, CalendarOutlined as Ci, LinkOutlined as Wr, SaveOutlined as Si, CopyOutlined as Un, InfoCircleOutlined as Ur, ReloadOutlined as dn, EditOutlined as Gr, FilterOutlined as qr, CloseCircleFilled as Ti, BorderOuterOutlined as Fi, SettingOutlined as Oi, ExportOutlined as _i } from "@ant-design/icons";
6
6
  import { Interweave as Gn } from "interweave";
7
7
  import { jsxs as P, jsx as n, Fragment as ne } from "react/jsx-runtime";
8
8
  import * as ir from "@tabler/icons-react";
@@ -11,7 +11,7 @@ import Kt from "styled-components";
11
11
  import qn from "react-measure";
12
12
  import Dn from "antd/lib/typography/Title";
13
13
  import { Line as Di, Column as Vi, Pie as Ai } from "@ant-design/plots";
14
- import St from "use-deep-compare-effect";
14
+ import Ct from "use-deep-compare-effect";
15
15
  import { Table as Ri } from "@gisce/react-formiga-table";
16
16
  import { fileTypeFromBuffer as ki } from "file-type-buffer-browser";
17
17
  import { isPresetStatusColor as Mi, isPresetColor as Ei } from "antd/lib/_util/colors";
@@ -382,7 +382,7 @@ function ve({
382
382
  if (!o)
383
383
  return p();
384
384
  const h = /* @__PURE__ */ n(un, {
385
- ooui: new At({
385
+ ooui: new Vt({
386
386
  name: c + "_label",
387
387
  string: f,
388
388
  help: d,
@@ -704,7 +704,7 @@ const Jr = (e) => {
704
704
  children: /* @__PURE__ */ P(Bt.Button, {
705
705
  disabled: !a || v,
706
706
  onClick: V,
707
- icon: /* @__PURE__ */ n(Rt, {}),
707
+ icon: /* @__PURE__ */ n(At, {}),
708
708
  type: f ? "primary" : void 0,
709
709
  overlay: /* @__PURE__ */ n(is, {
710
710
  ooui: i,
@@ -944,7 +944,7 @@ const Zr = (e) => {
944
944
  p(!1), a();
945
945
  }
946
946
  function E() {
947
- return d ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
947
+ return d ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
948
948
  children: [V(), /* @__PURE__ */ n(ln, {}), /* @__PURE__ */ n(Ce, {
949
949
  justify: "end",
950
950
  children: /* @__PURE__ */ P(Ye, {
@@ -954,7 +954,7 @@ const Zr = (e) => {
954
954
  disabled: v,
955
955
  children: u("cancel")
956
956
  }), /* @__PURE__ */ n(_e, {
957
- icon: v ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(kt, {}),
957
+ icon: v ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Rt, {}),
958
958
  disabled: v,
959
959
  onClick: D,
960
960
  style: {
@@ -1121,7 +1121,7 @@ const {
1121
1121
  defaultSeed: ms
1122
1122
  } = Pe, hs = fs(ms), {
1123
1123
  Option: ps
1124
- } = Ct, eo = (e) => {
1124
+ } = xt, eo = (e) => {
1125
1125
  const {
1126
1126
  ooui: t
1127
1127
  } = e, {
@@ -1151,7 +1151,7 @@ const {
1151
1151
  children: m
1152
1152
  }, d);
1153
1153
  });
1154
- return /* @__PURE__ */ n(a && !s ? gs : Ct, {
1154
+ return /* @__PURE__ */ n(a && !s ? gs : xt, {
1155
1155
  disabled: s,
1156
1156
  onChange: r,
1157
1157
  value: i,
@@ -1160,7 +1160,7 @@ const {
1160
1160
  showSearch: !0,
1161
1161
  children: u
1162
1162
  });
1163
- }, gs = Kt(Ct)`
1163
+ }, gs = Kt(xt)`
1164
1164
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
1165
1165
  background-color: ${hs.colorPrimaryBg};
1166
1166
  }
@@ -1223,16 +1223,16 @@ var ks = Rs, Ms = ks, Es = /^\s+/;
1223
1223
  function $s(e) {
1224
1224
  return e && e.slice(0, Ms(e) + 1).replace(Es, "");
1225
1225
  }
1226
- var Ls = $s, Ns = ro, Ps = Ns.Symbol, oo = Ps, dr = oo, io = Object.prototype, Hs = io.hasOwnProperty, Bs = io.toString, $t = dr ? dr.toStringTag : void 0;
1226
+ var Ls = $s, Ns = ro, Ps = Ns.Symbol, oo = Ps, dr = oo, io = Object.prototype, Hs = io.hasOwnProperty, Bs = io.toString, Et = dr ? dr.toStringTag : void 0;
1227
1227
  function js(e) {
1228
- var t = Hs.call(e, $t), r = e[$t];
1228
+ var t = Hs.call(e, Et), r = e[Et];
1229
1229
  try {
1230
- e[$t] = void 0;
1230
+ e[Et] = void 0;
1231
1231
  var i = !0;
1232
1232
  } catch {
1233
1233
  }
1234
1234
  var o = Bs.call(e);
1235
- return i && (t ? e[$t] = r : delete e[$t]), o;
1235
+ return i && (t ? e[Et] = r : delete e[Et]), o;
1236
1236
  }
1237
1237
  var Ks = js, Ys = Object.prototype, Ws = Ys.toString;
1238
1238
  function Us(e) {
@@ -1319,7 +1319,7 @@ function xa(e) {
1319
1319
  const r = Buffer.from(e, "base64").length / 1e3;
1320
1320
  return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
1321
1321
  }
1322
- async function Vt(e) {
1322
+ async function Dt(e) {
1323
1323
  const t = await ki(
1324
1324
  Buffer.from(e, "base64")
1325
1325
  );
@@ -1365,7 +1365,7 @@ const Ca = (e) => {
1365
1365
  i == null || i(d);
1366
1366
  };
1367
1367
  async function u() {
1368
- const d = await Vt(r), m = `data:${d == null ? void 0 : d.mime};base64,${r}`, v = document.createElement("a");
1368
+ const d = await Dt(r), m = `data:${d == null ? void 0 : d.mime};base64,${r}`, v = document.createElement("a");
1369
1369
  v.href = m, v.download = `image.${d == null ? void 0 : d.ext}`, v.click();
1370
1370
  }
1371
1371
  async function c(d) {
@@ -1452,7 +1452,7 @@ const Ca = (e) => {
1452
1452
  r && r(i);
1453
1453
  }
1454
1454
  });
1455
- }, _t = (e) => {
1455
+ }, Ot = (e) => {
1456
1456
  const t = e.arch, r = e.fields, i = new Ar(r);
1457
1457
  return i.parse(t), i;
1458
1458
  }, Oa = (e, t, r) => e.columns.map((o) => {
@@ -1498,7 +1498,7 @@ function lo(e, t) {
1498
1498
  r[i.id] = i[t];
1499
1499
  }), r;
1500
1500
  }
1501
- function It({
1501
+ function _t({
1502
1502
  resultsToSort: e,
1503
1503
  sorter: t,
1504
1504
  fields: r
@@ -1529,7 +1529,7 @@ const zn = async (e) => {
1529
1529
  };
1530
1530
  let f = [], d;
1531
1531
  if (a === "tree" && (o == null ? void 0 : o.arch)) {
1532
- const h = (p = _t(o)) == null ? void 0 : p.colors, g = await H.getHandler().readEvalUiObjects({
1532
+ const h = (p = Ot(o)) == null ? void 0 : p.colors, g = await H.getHandler().readEvalUiObjects({
1533
1533
  model: r,
1534
1534
  ids: u,
1535
1535
  arch: o == null ? void 0 : o.arch,
@@ -1585,7 +1585,7 @@ const zn = async (e) => {
1585
1585
  } = t, [s, a] = T(!0), [l, u] = T(), [c, f] = T(/* @__PURE__ */ new Map()), d = Y(Ne), {
1586
1586
  getContext: m
1587
1587
  } = d || {};
1588
- St(() => {
1588
+ Ct(() => {
1589
1589
  p();
1590
1590
  }, [t]);
1591
1591
  const v = async (h) => o && o[h] ? o[h] : await H.getHandler().getView({
@@ -1606,7 +1606,7 @@ const zn = async (e) => {
1606
1606
  a(!1);
1607
1607
  }
1608
1608
  };
1609
- return s ? /* @__PURE__ */ n(Me, {}) : l ? /* @__PURE__ */ n(Ze, {
1609
+ return s ? /* @__PURE__ */ n(Le, {}) : l ? /* @__PURE__ */ n(Ze, {
1610
1610
  className: "mt-10",
1611
1611
  message: l,
1612
1612
  type: "error",
@@ -1636,7 +1636,7 @@ const zn = async (e) => {
1636
1636
  } = i, I = s.filter((b) => b.values), w = Y(Ne), {
1637
1637
  getContext: V
1638
1638
  } = w || {};
1639
- St(() => {
1639
+ Ct(() => {
1640
1640
  E();
1641
1641
  }, [s]);
1642
1642
  const D = (b) => {
@@ -1675,7 +1675,7 @@ const zn = async (e) => {
1675
1675
  message: u,
1676
1676
  type: "error",
1677
1677
  banner: !0
1678
- }) : a ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
1678
+ }) : a ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
1679
1679
  children: [/* @__PURE__ */ n(tr, {
1680
1680
  style: {
1681
1681
  padding: "1rem"
@@ -1785,7 +1785,7 @@ const zn = async (e) => {
1785
1785
  } else
1786
1786
  r[i] = e[i];
1787
1787
  }), r;
1788
- }, Ot = (e, t) => Ma(e, t), Sn = ({
1788
+ }, Ft = (e, t) => Ma(e, t), Sn = ({
1789
1789
  source: e,
1790
1790
  target: t,
1791
1791
  fields: r
@@ -1880,7 +1880,7 @@ const zn = async (e) => {
1880
1880
  function yr(e, t, r) {
1881
1881
  return r.indexOf(e) === t;
1882
1882
  }
1883
- const Mt = ({
1883
+ const kt = ({
1884
1884
  values: e,
1885
1885
  fields: t
1886
1886
  }) => {
@@ -1900,7 +1900,7 @@ const Mt = ({
1900
1900
  r += ("00" + i.toString(16)).slice(-2);
1901
1901
  }
1902
1902
  return r;
1903
- }, Pa = (e) => /* @__PURE__ */ n(ve, {
1903
+ }, Pa = (e, t) => e.replace(/\{([^}]+)\}/g, (r, i) => t[i] !== void 0 ? t[i] : r), Ha = (e) => /* @__PURE__ */ n(ve, {
1904
1904
  ...e,
1905
1905
  children: /* @__PURE__ */ n(uo, {
1906
1906
  ...e
@@ -1933,18 +1933,18 @@ const Mt = ({
1933
1933
  color: t,
1934
1934
  children: e.children
1935
1935
  });
1936
- }, Ha = (e) => {
1936
+ }, Ba = (e) => {
1937
1937
  const {
1938
1938
  ooui: t
1939
1939
  } = e;
1940
1940
  return /* @__PURE__ */ n(ve, {
1941
1941
  type: "array",
1942
1942
  ...e,
1943
- children: /* @__PURE__ */ n(Ba, {
1943
+ children: /* @__PURE__ */ n(ja, {
1944
1944
  ooui: t
1945
1945
  })
1946
1946
  });
1947
- }, Ba = (e) => {
1947
+ }, ja = (e) => {
1948
1948
  const {
1949
1949
  value: t,
1950
1950
  ooui: r,
@@ -1959,7 +1959,7 @@ const Mt = ({
1959
1959
  } = r, g = Y(Ne), {
1960
1960
  getContext: y
1961
1961
  } = g || {};
1962
- St(() => {
1962
+ Ct(() => {
1963
1963
  I();
1964
1964
  }, [o]);
1965
1965
  const O = (D) => {
@@ -1974,7 +1974,7 @@ const Mt = ({
1974
1974
  if (p && (D = [["id", "in", s]]), r.domain) {
1975
1975
  const C = await H.getHandler().evalDomain({
1976
1976
  domain: r.domain,
1977
- values: Mt({
1977
+ values: kt({
1978
1978
  fields: g == null ? void 0 : g.getFields(),
1979
1979
  values: g.getPlainValues()
1980
1980
  }),
@@ -2050,7 +2050,7 @@ const Mt = ({
2050
2050
  }) : /* @__PURE__ */ n(ne, {
2051
2051
  children: /* @__PURE__ */ n("div", {
2052
2052
  className: "flex flex-row",
2053
- children: /* @__PURE__ */ n(Ct, {
2053
+ children: /* @__PURE__ */ n(xt, {
2054
2054
  mode: "multiple",
2055
2055
  value: a.length ? s : [],
2056
2056
  tagRender: V,
@@ -2062,14 +2062,14 @@ const Mt = ({
2062
2062
  })
2063
2063
  })
2064
2064
  });
2065
- }, ja = (e) => {
2065
+ }, Ka = (e) => {
2066
2066
  switch (e) {
2067
2067
  case "form":
2068
2068
  return Ut;
2069
2069
  case "tree":
2070
2070
  return pn;
2071
2071
  case "notebook":
2072
- return Pc;
2072
+ return Hc;
2073
2073
  case "group":
2074
2074
  return Do;
2075
2075
  case "label":
@@ -2077,7 +2077,7 @@ const Mt = ({
2077
2077
  case "char":
2078
2078
  return Qr;
2079
2079
  case "text":
2080
- return Bc;
2080
+ return jc;
2081
2081
  case "button":
2082
2082
  return Jr;
2083
2083
  case "buttonGroup":
@@ -2085,7 +2085,7 @@ const Mt = ({
2085
2085
  case "selection":
2086
2086
  return eo;
2087
2087
  case "many2one":
2088
- return sc;
2088
+ return ac;
2089
2089
  case "boolean":
2090
2090
  return ws;
2091
2091
  case "integer":
@@ -2093,31 +2093,31 @@ const Mt = ({
2093
2093
  case "float":
2094
2094
  return po;
2095
2095
  case "progressbar":
2096
- return El;
2096
+ return $l;
2097
2097
  case "date":
2098
- return Qc;
2099
- case "datetime":
2100
2098
  return ed;
2099
+ case "datetime":
2100
+ return td;
2101
2101
  case "time":
2102
- return nd;
2102
+ return rd;
2103
2103
  case "one2many":
2104
2104
  case "one2many_list":
2105
2105
  case "many2many":
2106
- return Mc;
2106
+ return Ec;
2107
2107
  case "separator":
2108
- return Kc;
2108
+ return Yc;
2109
2109
  case "reference":
2110
- return od;
2110
+ return id;
2111
2111
  case "binary":
2112
- return ad;
2112
+ return ld;
2113
2113
  case "image":
2114
2114
  return Ca;
2115
2115
  case "url":
2116
- return gd;
2117
- case "email":
2118
2116
  return yd;
2117
+ case "email":
2118
+ return vd;
2119
2119
  case "float_time":
2120
- return $c;
2120
+ return Lc;
2121
2121
  case "fiber_grid":
2122
2122
  return Ta;
2123
2123
  case "timeline":
@@ -2125,37 +2125,37 @@ const Mt = ({
2125
2125
  case "indicator":
2126
2126
  return Ra;
2127
2127
  case "tags":
2128
- return Ha;
2128
+ return Ba;
2129
2129
  case "tag":
2130
- return Pa;
2130
+ return Ha;
2131
2131
  case "multicheckbox":
2132
- return Ud;
2132
+ return Gd;
2133
2133
  case "markdown":
2134
- return qd;
2134
+ return zd;
2135
2135
  case "radio":
2136
- return Jd;
2136
+ return Zd;
2137
2137
  case "switch":
2138
- return Xd;
2138
+ return Qd;
2139
2139
  case "steps":
2140
- return eu;
2140
+ return tu;
2141
2141
  case "codeeditor":
2142
- return nu;
2142
+ return ru;
2143
2143
  default:
2144
2144
  return;
2145
2145
  }
2146
- }, Ka = (e) => {
2146
+ }, Ya = (e) => {
2147
2147
  const {
2148
2148
  ooui: t
2149
2149
  } = e, {
2150
2150
  type: r
2151
- } = t, i = ja(r);
2151
+ } = t, i = Ka(r);
2152
2152
  return i ? Je.createElement(i, e) : null;
2153
- }, Ya = ({
2153
+ }, Wa = ({
2154
2154
  item: e,
2155
2155
  responsiveBehaviour: t
2156
2156
  }) => ({
2157
2157
  gridColumnStart: "span " + (t ? 1 : e.colspan)
2158
- }), Wa = ({
2158
+ }), Ua = ({
2159
2159
  row: e,
2160
2160
  mustFillWithEmpties: t,
2161
2161
  numberOfColumns: r
@@ -2171,27 +2171,27 @@ const Mt = ({
2171
2171
  if (i.push(a), s(l)) {
2172
2172
  const u = r - o;
2173
2173
  for (let c = 0; c < u; c += 1)
2174
- i.push(new At({ string: "" }));
2174
+ i.push(new Vt({ string: "" }));
2175
2175
  }
2176
2176
  }), i;
2177
- }, Ua = ({
2177
+ }, Ga = ({
2178
2178
  row: e,
2179
2179
  numberOfColumns: t
2180
- }) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), Ga = (e, t) => {
2181
- const r = e.map((i) => i instanceof At && i.fieldForLabel || i instanceof ui ? "auto" : "1fr");
2180
+ }) => e.map((r) => (r._mustExpand && (r.colspan = t), r)), qa = (e, t) => {
2181
+ const r = e.map((i) => i instanceof Vt && i.fieldForLabel || i instanceof ui ? "auto" : "1fr");
2182
2182
  if (r.length < t) {
2183
2183
  const i = t - r.length;
2184
2184
  for (let o = 0; o < i; o++)
2185
2185
  r.push("1fr");
2186
2186
  }
2187
2187
  return r.join(" ");
2188
- }, qa = (e, t) => {
2188
+ }, za = (e, t) => {
2189
2189
  const r = t ? "1fr" : "auto", i = "auto";
2190
2190
  let o = "";
2191
2191
  for (let s = 0; s < e; s++)
2192
2192
  o += s % 2 ? r : i, s + 1 < e && (o += " ");
2193
2193
  return o;
2194
- }, za = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Vn = (e) => {
2194
+ }, Ja = (e) => e.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Vn = (e) => {
2195
2195
  const {
2196
2196
  container: t,
2197
2197
  responsiveBehaviour: r
@@ -2201,33 +2201,33 @@ const Mt = ({
2201
2201
  let {
2202
2202
  columns: o
2203
2203
  } = t;
2204
- const s = za(i);
2204
+ const s = Ja(i);
2205
2205
  s < o && (o = s);
2206
2206
  let a = !1, l = [];
2207
2207
  const u = i.map((d, m) => {
2208
- const v = d.filter((g) => !g.invisible), p = Ua({
2208
+ const v = d.filter((g) => !g.invisible), p = Ga({
2209
2209
  row: v,
2210
2210
  numberOfColumns: o
2211
2211
  });
2212
2212
  let h = p;
2213
- return (m === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (h = Wa({
2213
+ return (m === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (h = Ua({
2214
2214
  row: p,
2215
2215
  numberOfColumns: o,
2216
2216
  mustFillWithEmpties: r
2217
- }), l = l.concat(h)), h.map((g) => (g instanceof At && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2217
+ }), l = l.concat(h)), h.map((g) => (g instanceof Vt && g.fieldForLabel && (a = !0), /* @__PURE__ */ n("div", {
2218
2218
  style: {
2219
- ...Ya({
2219
+ ...Wa({
2220
2220
  item: g,
2221
2221
  responsiveBehaviour: r
2222
2222
  }),
2223
2223
  minWidth: 0
2224
2224
  },
2225
- children: Ka({
2225
+ children: Ya({
2226
2226
  ooui: g,
2227
2227
  responsiveBehaviour: r
2228
2228
  })
2229
2229
  }, g.key)));
2230
- }), c = i.length === 1 ? Ga(l, o) : qa(o, a);
2230
+ }), c = i.length === 1 ? qa(l, o) : za(o, a);
2231
2231
  return /* @__PURE__ */ n("div", {
2232
2232
  style: {
2233
2233
  display: "grid",
@@ -2239,13 +2239,13 @@ const Mt = ({
2239
2239
  children: u
2240
2240
  });
2241
2241
  }, {
2242
- confirm: Ja
2242
+ confirm: Za
2243
2243
  } = Ge, Wt = ({
2244
2244
  onOk: e,
2245
2245
  onCancel: t,
2246
2246
  lang: r
2247
2247
  }) => {
2248
- Ja({
2248
+ Za({
2249
2249
  title: Oe("unsavedChanges", r),
2250
2250
  icon: /* @__PURE__ */ n(pt, {}),
2251
2251
  centered: !0,
@@ -2256,25 +2256,25 @@ const Mt = ({
2256
2256
  cancelText: Oe("cancel", r)
2257
2257
  });
2258
2258
  }, {
2259
- error: Za
2259
+ error: Xa
2260
2260
  } = Ge, vr = (e) => {
2261
- Za({
2261
+ Xa({
2262
2262
  title: Oe("formHasErrors", e),
2263
2263
  icon: /* @__PURE__ */ n(pt, {}),
2264
2264
  centered: !0,
2265
2265
  content: Oe("fillRequiredFields", e)
2266
2266
  });
2267
2267
  }, {
2268
- warning: Xa
2269
- } = Ge, Qa = (e, t, r) => {
2270
- Xa({
2268
+ warning: Qa
2269
+ } = Ge, el = (e, t, r) => {
2270
+ Qa({
2271
2271
  title: e,
2272
2272
  icon: /* @__PURE__ */ n(Nr, {}),
2273
2273
  centered: !0,
2274
2274
  content: t,
2275
2275
  onOk: r
2276
2276
  });
2277
- }, mo = Je.createContext(null), el = (e) => {
2277
+ }, mo = Je.createContext(null), tl = (e) => {
2278
2278
  const {
2279
2279
  children: t,
2280
2280
  setTitle: r
@@ -2285,12 +2285,12 @@ const Mt = ({
2285
2285
  },
2286
2286
  children: t
2287
2287
  });
2288
- }, wr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, tl = (e, t) => {
2289
- const r = al(e), i = il(r), o = sl(i, t);
2288
+ }, wr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, nl = (e, t) => {
2289
+ const r = ll(e), i = sl(r), o = al(i, t);
2290
2290
  return [
2291
- ...Object.keys(o).map((l) => nl(l, o[l], t))
2291
+ ...Object.keys(o).map((l) => rl(l, o[l], t))
2292
2292
  ].reduce((l, u) => Array.isArray(u[0]) ? l.concat(u) : [...l, u], []);
2293
- }, nl = (e, t, r) => {
2293
+ }, rl = (e, t, r) => {
2294
2294
  var s;
2295
2295
  const i = e.split("#")[0], o = (s = r.findById(i)) == null ? void 0 : s.type;
2296
2296
  if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
@@ -2312,14 +2312,14 @@ const Mt = ({
2312
2312
  (a) => wr(a)
2313
2313
  )
2314
2314
  ] : [e, "=", wr(t)];
2315
- }, rl = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), ol = (e) => {
2315
+ }, ol = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), il = (e) => {
2316
2316
  const t = { ...e };
2317
2317
  return Object.keys(t).forEach(
2318
2318
  (r) => (r.indexOf("#time") !== -1 || r.indexOf("#date") !== -1) && delete t[r]
2319
2319
  ), t;
2320
- }, il = (e) => {
2321
- const t = { ...ol(e) };
2322
- return rl(e).forEach((i) => {
2320
+ }, sl = (e) => {
2321
+ const t = { ...il(e) };
2322
+ return ol(e).forEach((i) => {
2323
2323
  const o = e[i], s = i.split("#")[0], a = s + "#time", l = e[a];
2324
2324
  let u, c;
2325
2325
  if (o[0] !== null && (u = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
@@ -2332,7 +2332,7 @@ const Mt = ({
2332
2332
  }
2333
2333
  t[s + "#datetime"] = [u, c];
2334
2334
  }), t;
2335
- }, sl = (e, t) => {
2335
+ }, al = (e, t) => {
2336
2336
  const r = Object.keys(e).filter((o) => {
2337
2337
  const s = t.findById(o);
2338
2338
  return s && s.type === "date";
@@ -2341,18 +2341,18 @@ const Mt = ({
2341
2341
  return r.forEach((o) => {
2342
2342
  delete i[o], e[o][0] !== null && (i[o + "#from"] = e[o][0]), e[o][1] !== null && (i[o + "#to"] = e[o][1]);
2343
2343
  }), i;
2344
- }, al = (e) => {
2344
+ }, ll = (e) => {
2345
2345
  const t = { ...e };
2346
2346
  return Object.keys(t).forEach(
2347
2347
  (r) => (t[r] === void 0 || t[r] === null || t[r] === "") && delete t[r]
2348
2348
  ), t;
2349
- }, ll = (e) => {
2349
+ }, cl = (e) => {
2350
2350
  const t = {};
2351
2351
  return e.forEach((r) => {
2352
2352
  Array.isArray(r) && r[0] ? t[r[0]] = !0 : t[r] = !0;
2353
2353
  }), Object.keys(t);
2354
2354
  }, hn = (e, t) => {
2355
- const r = [...e], i = ll(e);
2355
+ const r = [...e], i = cl(e);
2356
2356
  return t.forEach((o) => {
2357
2357
  Array.isArray(o) && o[0] ? i.includes(o[0]) || r.push(o) : i.includes(o) || r.push(o);
2358
2358
  }), r;
@@ -2381,9 +2381,9 @@ const Mt = ({
2381
2381
  setLimit: V,
2382
2382
  searchParams: D = [],
2383
2383
  setSearchValues: E
2384
- } = e, [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T(1), [M, _] = T(0), [N, k] = T(), [j, q] = T([]), [W, z] = T(void 0), [U, L] = T(void 0), B = de(w || Ht), ee = de([]), Z = Le((se) => {
2384
+ } = e, [b, C] = T(!1), [S, x] = T(!1), [$, R] = T(), [F, A] = T(1), [M, _] = T(0), [N, k] = T(), [j, q] = T([]), [W, z] = T(void 0), [U, L] = T(void 0), B = de(w || Ht), ee = de([]), Z = $e((se) => {
2385
2385
  g == null || g([...se]), q([...se]);
2386
- }, []), ie = Le(() => y || j, [y, j]), Q = Le(async () => {
2386
+ }, []), ie = $e(() => y || j, [y, j]), Q = $e(async () => {
2387
2387
  const se = await H.getHandler().nameSearch({
2388
2388
  model: t,
2389
2389
  payload: l,
@@ -2392,7 +2392,7 @@ const Mt = ({
2392
2392
  context: c
2393
2393
  });
2394
2394
  if (k(se.length), f == null || f(se.length), se.length > 0) {
2395
- const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } = _t(d), je = {};
2395
+ const Se = se.map((ce) => ce == null ? void 0 : ce[0]), { colors: De, status: Ve } = Ot(d), je = {};
2396
2396
  De && (je.colors = De), Ve && (je.status = Ve);
2397
2397
  const We = await H.getHandler().readEvalUiObjects({
2398
2398
  model: t,
@@ -2403,12 +2403,12 @@ const Mt = ({
2403
2403
  attrs: je
2404
2404
  }), te = We[0];
2405
2405
  ee.current = [...te], z(Qt(We[1])), L(gr(We[1]));
2406
- const Fe = te.map((ce) => ce.id), Ee = v !== void 0 ? It({
2406
+ const Fe = te.map((ce) => ce.id), Me = v !== void 0 ? _t({
2407
2407
  resultsToSort: te,
2408
2408
  sorter: v,
2409
2409
  fields: { ...d.fields, ...m.fields }
2410
2410
  }) : [...ee.current];
2411
- Z(Ee), Fe.length > 0 ? h == null || h(0) : h == null || h(void 0);
2411
+ Z(Me), Fe.length > 0 ? h == null || h(0) : h == null || h(void 0);
2412
2412
  } else
2413
2413
  Z([]), h == null || h(void 0);
2414
2414
  C(!1), u.current = !0;
@@ -2424,11 +2424,11 @@ const Mt = ({
2424
2424
  v,
2425
2425
  h,
2426
2426
  f
2427
- ]), J = Le(
2427
+ ]), J = $e(
2428
2428
  async (se) => {
2429
- const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } = _t(d), te = {};
2429
+ const { params: Se, newOffset: De } = se || {}, Ve = hn(Se || D, O), { colors: je, status: We } = Ot(d), te = {};
2430
2430
  je && (te.colors = je), We && (te.status = We);
2431
- const { totalItems: Fe, results: Ee, attrsEvaluated: ce } = await H.getHandler().searchForTree({
2431
+ const { totalItems: Fe, results: Me, attrsEvaluated: ce } = await H.getHandler().searchForTree({
2432
2432
  params: Ve,
2433
2433
  limit: B.current,
2434
2434
  offset: De || M,
@@ -2437,9 +2437,9 @@ const Mt = ({
2437
2437
  context: c,
2438
2438
  attrs: te
2439
2439
  });
2440
- z(Qt(ce)), L(gr(ce)), ee.current = [...Ee];
2441
- const me = v !== void 0 ? It({
2442
- resultsToSort: Ee,
2440
+ z(Qt(ce)), L(gr(ce)), ee.current = [...Me];
2441
+ const me = v !== void 0 ? _t({
2442
+ resultsToSort: Me,
2443
2443
  sorter: v,
2444
2444
  fields: { ...d.fields, ...m.fields }
2445
2445
  }) : [...ee.current];
@@ -2470,7 +2470,7 @@ const Mt = ({
2470
2470
  M,
2471
2471
  D
2472
2472
  ]
2473
- ), fe = Le(
2473
+ ), fe = $e(
2474
2474
  async (se) => {
2475
2475
  try {
2476
2476
  C(!0), a == null || a(!0), l && !u.current ? await Q() : await J(se);
@@ -2501,12 +2501,10 @@ const Mt = ({
2501
2501
  v,
2502
2502
  d
2503
2503
  ]
2504
- ), be = Le(
2504
+ ), be = $e(
2505
2505
  (se) => {
2506
- if (JSON.stringify(se) === JSON.stringify(v))
2507
- return;
2508
2506
  p == null || p(se);
2509
- const Se = se !== void 0 ? It({
2507
+ const Se = se !== void 0 ? _t({
2510
2508
  resultsToSort: ie(),
2511
2509
  sorter: se,
2512
2510
  fields: { ...d.fields, ...m.fields }
@@ -2514,7 +2512,7 @@ const Mt = ({
2514
2512
  Z(Se);
2515
2513
  },
2516
2514
  [p, ie, d, m, Z]
2517
- ), $e = Le(
2515
+ ), Ee = $e(
2518
2516
  (se) => {
2519
2517
  const { params: Se, searchValues: De, limit: Ve, offset: je } = se;
2520
2518
  b || (r == null || r(void 0), i == null || i([]), E == null || E(De), o == null || o(Se), s == null || s(!1), x(!0), R(void 0), A(1), Ve && (B.current = Ve, V == null || V(Ve)), je && _(je), fe({
@@ -2535,12 +2533,12 @@ const Mt = ({
2535
2533
  _,
2536
2534
  fe
2537
2535
  ]
2538
- ), Ie = Le(
2536
+ ), Ie = $e(
2539
2537
  (se) => {
2540
2538
  C(!0), A(se), _((se - 1) * w);
2541
2539
  },
2542
2540
  [C, w, _, A]
2543
- ), Be = Le(() => {
2541
+ ), Be = $e(() => {
2544
2542
  b || (r == null || r(void 0), o == null || o([]), E == null || E({}), R(void 0), _(0), A(1), V == null || V(w || Ht));
2545
2543
  }, [
2546
2544
  b,
@@ -2551,7 +2549,7 @@ const Mt = ({
2551
2549
  A,
2552
2550
  V,
2553
2551
  w
2554
- ]), ge = Le(
2552
+ ]), ge = $e(
2555
2553
  async (se) => {
2556
2554
  const Se = se[(d == null ? void 0 : d.field_parent) || "child_id"], De = await H.getHandler().readObjects({
2557
2555
  model: t,
@@ -2559,12 +2557,12 @@ const Mt = ({
2559
2557
  fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
2560
2558
  context: c
2561
2559
  });
2562
- return Z([...ie(), ...De]), ao(_t(d), De);
2560
+ return Z([...ie(), ...De]), ao(Ot(d), De);
2563
2561
  },
2564
2562
  [d, t, c, ie, Z]
2565
2563
  );
2566
2564
  return {
2567
- submit: $e,
2565
+ submit: Ee,
2568
2566
  clear: Be,
2569
2567
  fetchResults: fe,
2570
2568
  tableRefreshing: b,
@@ -2581,7 +2579,7 @@ const Mt = ({
2581
2579
  statusForResults: U,
2582
2580
  totalItems: N
2583
2581
  };
2584
- }, Qe = Je.createContext(null), cl = (e) => {
2582
+ }, Qe = Je.createContext(null), dl = (e) => {
2585
2583
  const {
2586
2584
  children: t,
2587
2585
  currentView: r,
@@ -2608,7 +2606,7 @@ const Mt = ({
2608
2606
  setSearchTreeNameSearch: E,
2609
2607
  goToResourceId: b,
2610
2608
  limit: C
2611
- } = e, [S, x] = T(!1), [$, R] = T(!1), [F, A] = T(!1), [M, _] = T(!0), [N, k] = T(!0), [j, q] = T([]), [W, z] = T(!1), [U, L] = T([]), [B, ee] = T(!1), [Z, ie] = T(!0), [Q, J] = T(), [fe, be] = T({}), [$e, Ie] = T(C !== void 0 ? C : Ht), [Be, ge] = T(i);
2609
+ } = e, [S, x] = T(!1), [$, R] = T(!1), [F, A] = T(!1), [M, _] = T(!0), [N, k] = T(!0), [j, q] = T([]), [W, z] = T(!1), [U, L] = T([]), [B, ee] = T(!1), [Z, ie] = T(!0), [Q, J] = T(), [fe, be] = T({}), [Ee, Ie] = T(C !== void 0 ? C : Ht), [Be, ge] = T(i);
2612
2610
  pe(() => {
2613
2611
  m && m.length > 0 && !v && (p == null || p(0), f == null || f(m[0].id));
2614
2612
  }, [m]), pe(() => {
@@ -2672,13 +2670,13 @@ const Mt = ({
2672
2670
  goToResourceId: b,
2673
2671
  searchValues: fe,
2674
2672
  setSearchValues: be,
2675
- limit: $e,
2673
+ limit: Ee,
2676
2674
  setLimit: Ie,
2677
2675
  setTitle: ge
2678
2676
  },
2679
2677
  children: t
2680
2678
  });
2681
- }, st = Je.createContext(null), dl = (e) => {
2679
+ }, st = Je.createContext(null), ul = (e) => {
2682
2680
  const {
2683
2681
  children: t,
2684
2682
  openAction: r,
@@ -2707,11 +2705,11 @@ const Mt = ({
2707
2705
  },
2708
2706
  children: t
2709
2707
  });
2710
- }, Et = Je.createContext(null), br = async (e) => {
2708
+ }, Mt = Je.createContext(null), br = async (e) => {
2711
2709
  var t;
2712
2710
  for (let r = 0; r < e.length; r++)
2713
2711
  await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
2714
- }, ul = (e, t) => {
2712
+ }, fl = (e, t) => {
2715
2713
  const {
2716
2714
  children: r,
2717
2715
  globalValues: i = {}
@@ -2720,7 +2718,7 @@ const Mt = ({
2720
2718
  } = u || {}, f = de([]), {
2721
2719
  t: d
2722
2720
  } = Y(we);
2723
- xt(t, () => ({
2721
+ bt(t, () => ({
2724
2722
  openActionModal: w
2725
2723
  }));
2726
2724
  const [m, v] = T(!1), [p, h] = T({
@@ -2747,7 +2745,7 @@ const Mt = ({
2747
2745
  ids: _
2748
2746
  } = F || {};
2749
2747
  let N = _ || [];
2750
- const k = typeof $ == "string" ? wt({
2748
+ const k = typeof $ == "string" ? vt({
2751
2749
  context: $,
2752
2750
  fields: C,
2753
2751
  values: S
@@ -2777,7 +2775,7 @@ const Mt = ({
2777
2775
  id: E
2778
2776
  }), b.state && s.current === !0) {
2779
2777
  s.current = !1, clearInterval(o.current), l(!1);
2780
- const C = await Vt(b.result);
2778
+ const C = await Dt(b.result);
2781
2779
  mn(b.result, C.mime);
2782
2780
  }
2783
2781
  } catch (C) {
@@ -2794,17 +2792,27 @@ const Mt = ({
2794
2792
  const {
2795
2793
  type: $
2796
2794
  } = E;
2797
- return f.current.push(x), $ === "ir.actions.report.xml" ? await g({
2798
- reportData: E,
2799
- fields: b,
2800
- values: C,
2801
- context: S
2802
- }) : $ === "ir.actions.act_window" ? await I({
2803
- actionData: E,
2804
- fields: b,
2805
- values: C,
2806
- context: S
2807
- }) : (Ue(`${$} action not supported`), {});
2795
+ if (f.current.push(x), $ === "ir.actions.report.xml")
2796
+ return await g({
2797
+ reportData: E,
2798
+ fields: b,
2799
+ values: C,
2800
+ context: S
2801
+ });
2802
+ if ($ === "ir.actions.act_window")
2803
+ return await I({
2804
+ actionData: E,
2805
+ fields: b,
2806
+ values: C,
2807
+ context: S
2808
+ });
2809
+ if ($ === "ir.actions.act_url")
2810
+ window.open(Pa(E.url, {
2811
+ ...C,
2812
+ context: S
2813
+ }), "_blank");
2814
+ else
2815
+ return Ue(`${$} action not supported`), {};
2808
2816
  }
2809
2817
  async function I({
2810
2818
  actionData: E,
@@ -2820,7 +2828,7 @@ const Mt = ({
2820
2828
  context: S
2821
2829
  }))[0]);
2822
2830
  const R = {
2823
- ...typeof (x == null ? void 0 : x.context) == "string" ? wt({
2831
+ ...typeof (x == null ? void 0 : x.context) == "string" ? vt({
2824
2832
  context: x.context,
2825
2833
  fields: b,
2826
2834
  values: {
@@ -2833,7 +2841,7 @@ const Mt = ({
2833
2841
  let F = [];
2834
2842
  if (x.domain && (F = await H.getHandler().evalDomain({
2835
2843
  domain: x.domain,
2836
- values: Mt({
2844
+ values: kt({
2837
2845
  fields: b,
2838
2846
  values: {
2839
2847
  ...C,
@@ -2859,7 +2867,7 @@ const Mt = ({
2859
2867
  const {
2860
2868
  initialView: M,
2861
2869
  views: _
2862
- } = await fl({
2870
+ } = await ml({
2863
2871
  model: x.res_model,
2864
2872
  context: R,
2865
2873
  view_mode: x.view_mode,
@@ -2932,7 +2940,7 @@ const Mt = ({
2932
2940
  });
2933
2941
  }
2934
2942
  return /* @__PURE__ */ n(ne, {
2935
- children: /* @__PURE__ */ n(Et.Provider, {
2943
+ children: /* @__PURE__ */ n(Mt.Provider, {
2936
2944
  value: {
2937
2945
  processAction: O,
2938
2946
  globalValues: i
@@ -2945,7 +2953,7 @@ const Mt = ({
2945
2953
  closable: !1,
2946
2954
  centered: !0,
2947
2955
  maskClosable: !1,
2948
- children: /* @__PURE__ */ n(Me, {})
2956
+ children: /* @__PURE__ */ n(Le, {})
2949
2957
  }), /* @__PURE__ */ n(Gt, {
2950
2958
  buttonModal: !0,
2951
2959
  parentContext: p.context,
@@ -2971,7 +2979,7 @@ const Mt = ({
2971
2979
  })
2972
2980
  });
2973
2981
  };
2974
- async function fl({
2982
+ async function ml({
2975
2983
  views: e,
2976
2984
  view_mode: t,
2977
2985
  model: r,
@@ -3024,7 +3032,7 @@ async function fl({
3024
3032
  initialView: a
3025
3033
  };
3026
3034
  }
3027
- const ml = bt(ul), hl = ({
3035
+ const hl = wt(fl), pl = ({
3028
3036
  error: e,
3029
3037
  className: t
3030
3038
  }) => {
@@ -3048,8 +3056,8 @@ const ml = bt(ul), hl = ({
3048
3056
  type: i,
3049
3057
  banner: !0
3050
3058
  });
3051
- }, pl = 800;
3052
- function gl(e, t) {
3059
+ }, gl = 800;
3060
+ function yl(e, t) {
3053
3061
  const {
3054
3062
  model: r,
3055
3063
  id: i,
@@ -3076,8 +3084,8 @@ function gl(e, t) {
3076
3084
  } = e, {
3077
3085
  t: b,
3078
3086
  lang: C
3079
- } = Y(we), [S, x] = T(!1), [$, R] = T(), [F, A] = T(), [M] = ot.useForm(), [_, N] = T(), [k, j] = T(), q = Y(mo), [W, z] = T(), [U, L] = T(!1), B = de(), ee = de({}), Z = de({}), ie = de(!1), Q = de(!1), fe = (E !== void 0 ? E : W) < pl, be = Y(Ne), {
3080
- activeId: $e,
3087
+ } = Y(we), [S, x] = T(!1), [$, R] = T(), [F, A] = T(), [M] = ot.useForm(), [_, N] = T(), [k, j] = T(), q = Y(mo), [W, z] = T(), [U, L] = T(!1), B = de(), ee = de({}), Z = de({}), ie = de(!1), Q = de(!1), fe = (E !== void 0 ? E : W) < gl, be = Y(Ne), {
3088
+ activeId: Ee,
3081
3089
  getPlainValues: Ie
3082
3090
  } = be || {}, Be = Y(Qe), {
3083
3091
  setFormIsSaving: ge = void 0,
@@ -3087,11 +3095,11 @@ function gl(e, t) {
3087
3095
  setAttachments: Ve = void 0,
3088
3096
  title: je = void 0,
3089
3097
  setTitle: We = void 0
3090
- } = (w ? Be : {}) || {}, te = Y(Et), {
3098
+ } = (w ? Be : {}) || {}, te = Y(Mt), {
3091
3099
  processAction: Fe,
3092
- globalValues: Ee
3100
+ globalValues: Me
3093
3101
  } = te || {};
3094
- xt(t, () => ({
3102
+ bt(t, () => ({
3095
3103
  submitForm: zt,
3096
3104
  getFields: Xe,
3097
3105
  getValues: Ke,
@@ -3164,8 +3172,8 @@ function gl(e, t) {
3164
3172
  id: ue(),
3165
3173
  active_id: ue(),
3166
3174
  active_ids: [ue()],
3167
- parent_id: $e,
3168
- ...Ee
3175
+ parent_id: Ee,
3176
+ ...Me
3169
3177
  };
3170
3178
  }
3171
3179
  const he = async (K) => {
@@ -3185,11 +3193,11 @@ function gl(e, t) {
3185
3193
  fields: k
3186
3194
  })).length !== 0, xe = (K) => {
3187
3195
  const G = M.getFieldsValue(!0);
3188
- return Ot(G, K);
3196
+ return Ft(G, K);
3189
3197
  }, ke = (K, G) => {
3190
3198
  qt({
3191
3199
  values: {
3192
- ...Ot(M.getFieldsValue(!0), k),
3200
+ ...Ft(M.getFieldsValue(!0), k),
3193
3201
  [K]: G
3194
3202
  },
3195
3203
  fields: k,
@@ -3233,7 +3241,7 @@ function gl(e, t) {
3233
3241
  }), O && (G = {
3234
3242
  ...La(O),
3235
3243
  ...G
3236
- }), ee.current = Ot(G, re), qt({
3244
+ }), ee.current = Ft(G, re), qt({
3237
3245
  values: G,
3238
3246
  fields: re,
3239
3247
  reset: !0,
@@ -3275,7 +3283,7 @@ function gl(e, t) {
3275
3283
  const yt = {
3276
3284
  ...re ? {} : M.getFieldsValue(!0),
3277
3285
  ...K
3278
- }, wn = Ot(yt, G), Zo = Object.keys(G).map((bn) => {
3286
+ }, wn = Ft(yt, G), Zo = Object.keys(G).map((bn) => {
3279
3287
  const Xo = wn[bn] !== void 0 ? wn[bn] : void 0;
3280
3288
  return {
3281
3289
  name: bn,
@@ -3418,7 +3426,7 @@ function gl(e, t) {
3418
3426
  }) && K !== !0)
3419
3427
  return;
3420
3428
  {
3421
- const oe = Ot(M.getFieldsValue(!0), k);
3429
+ const oe = Ft(M.getFieldsValue(!0), k);
3422
3430
  Z.current = oe, u == null || u(oe), se == null || se(!0), jo(re);
3423
3431
  }
3424
3432
  }
@@ -3478,7 +3486,7 @@ function gl(e, t) {
3478
3486
  title: Re,
3479
3487
  message: yt
3480
3488
  } = oe.warning;
3481
- ie.current = !0, Qa(Re, yt, () => {
3489
+ ie.current = !0, el(Re, yt, () => {
3482
3490
  ie.current = !1;
3483
3491
  });
3484
3492
  }
@@ -3514,7 +3522,7 @@ function gl(e, t) {
3514
3522
  ce == null || ce(ue(), Ke(), X());
3515
3523
  else if (re.type) {
3516
3524
  let oe = {};
3517
- re.context && (oe = wt({
3525
+ re.context && (oe = vt({
3518
3526
  context: re.context,
3519
3527
  fields: k,
3520
3528
  values: Ke()
@@ -3613,7 +3621,7 @@ function gl(e, t) {
3613
3621
  Ue(oe);
3614
3622
  }
3615
3623
  }
3616
- const zo = () => !F && !$ ? /* @__PURE__ */ n(Me, {}) : !r && !p || !I ? null : /* @__PURE__ */ n(ne, {
3624
+ const zo = () => !F && !$ ? /* @__PURE__ */ n(Le, {}) : !r && !p || !I ? null : /* @__PURE__ */ n(ne, {
3617
3625
  children: /* @__PURE__ */ n(ns, {
3618
3626
  getValues: Ke,
3619
3627
  getPlainValues: at,
@@ -3657,7 +3665,7 @@ function gl(e, t) {
3657
3665
  }), /* @__PURE__ */ n(_e, {
3658
3666
  disabled: S || f,
3659
3667
  loading: S,
3660
- icon: /* @__PURE__ */ n(kt, {}),
3668
+ icon: /* @__PURE__ */ n(Rt, {}),
3661
3669
  onClick: async () => {
3662
3670
  await zt();
3663
3671
  },
@@ -3678,14 +3686,14 @@ function gl(e, t) {
3678
3686
  }) => /* @__PURE__ */ P("div", {
3679
3687
  className: "pb-2",
3680
3688
  ref: K,
3681
- children: [$ && /* @__PURE__ */ n(hl, {
3689
+ children: [$ && /* @__PURE__ */ n(pl, {
3682
3690
  className: "mt-5 mb-10",
3683
3691
  error: $
3684
3692
  }), zo(), a && Jo()]
3685
3693
  })
3686
3694
  }) : null;
3687
3695
  }
3688
- const Ut = bt(gl), Gt = (e) => {
3696
+ const Ut = wt(yl), Gt = (e) => {
3689
3697
  const {
3690
3698
  visible: t,
3691
3699
  id: r,
@@ -3761,7 +3769,7 @@ const Ut = bt(gl), Gt = (e) => {
3761
3769
  });
3762
3770
  }
3763
3771
  const I = c * 0.95;
3764
- return /* @__PURE__ */ n(el, {
3772
+ return /* @__PURE__ */ n(tl, {
3765
3773
  setTitle: d,
3766
3774
  children: /* @__PURE__ */ n(Ge, {
3767
3775
  title: a ? O() : f,
@@ -3782,14 +3790,14 @@ const Ut = bt(gl), Gt = (e) => {
3782
3790
  })
3783
3791
  })
3784
3792
  });
3785
- }, yl = (e) => /* @__PURE__ */ n(ve, {
3793
+ }, vl = (e) => /* @__PURE__ */ n(ve, {
3786
3794
  ...e,
3787
3795
  layout: "vertical",
3788
3796
  children: /* @__PURE__ */ n(Mn.RangePicker, {
3789
3797
  allowEmpty: [!0, !0],
3790
3798
  format: "DD/MM/YYYY"
3791
3799
  })
3792
- }), vl = (e) => {
3800
+ }), wl = (e) => {
3793
3801
  const {
3794
3802
  ooui: t,
3795
3803
  showLabel: r = !1
@@ -3805,7 +3813,7 @@ const Ut = bt(gl), Gt = (e) => {
3805
3813
  })];
3806
3814
  return /* @__PURE__ */ P(ne, {
3807
3815
  children: [r && /* @__PURE__ */ n(un, {
3808
- ooui: new At({
3816
+ ooui: new Vt({
3809
3817
  name: o + "_label",
3810
3818
  string: i,
3811
3819
  help: t.tooltip,
@@ -3842,7 +3850,7 @@ const Ut = bt(gl), Gt = (e) => {
3842
3850
  })]
3843
3851
  });
3844
3852
  }, {
3845
- useToken: wl
3853
+ useToken: bl
3846
3854
  } = Pe, po = (e) => {
3847
3855
  const {
3848
3856
  ooui: t
@@ -3853,7 +3861,7 @@ const Ut = bt(gl), Gt = (e) => {
3853
3861
  required: s
3854
3862
  } = t, {
3855
3863
  token: a
3856
- } = wl(), l = s && !o ? {
3864
+ } = bl(), l = s && !o ? {
3857
3865
  backgroundColor: a.colorPrimaryBg
3858
3866
  } : void 0, u = Y(Ne), {
3859
3867
  elementHasLostFocus: c
@@ -3875,7 +3883,7 @@ const Ut = bt(gl), Gt = (e) => {
3875
3883
  })
3876
3884
  });
3877
3885
  }, {
3878
- useToken: bl
3886
+ useToken: xl
3879
3887
  } = Pe, tn = (e) => {
3880
3888
  const {
3881
3889
  ooui: t,
@@ -3886,7 +3894,7 @@ const Ut = bt(gl), Gt = (e) => {
3886
3894
  required: s
3887
3895
  } = t, {
3888
3896
  token: a
3889
- } = bl(), l = s && !o ? {
3897
+ } = xl(), l = s && !o ? {
3890
3898
  backgroundColor: a.colorPrimaryBg
3891
3899
  } : void 0, u = Y(Ne), {
3892
3900
  elementHasLostFocus: c
@@ -3911,7 +3919,7 @@ const Ut = bt(gl), Gt = (e) => {
3911
3919
  })
3912
3920
  });
3913
3921
  };
3914
- function xl(e) {
3922
+ function Cl(e) {
3915
3923
  const {
3916
3924
  ooui: t,
3917
3925
  showLabel: r
@@ -3930,7 +3938,7 @@ function xl(e) {
3930
3938
  });
3931
3939
  return /* @__PURE__ */ P(ne, {
3932
3940
  children: [r && /* @__PURE__ */ n(un, {
3933
- ooui: new At({
3941
+ ooui: new Vt({
3934
3942
  name: i + "_label",
3935
3943
  string: o,
3936
3944
  help: s,
@@ -3956,11 +3964,11 @@ function xl(e) {
3956
3964
  });
3957
3965
  }
3958
3966
  const {
3959
- defaultAlgorithm: Cl,
3960
- defaultSeed: Sl
3961
- } = Pe, Tl = Cl(Sl), {
3962
- Option: Fl
3963
- } = Ct, Ol = (e) => {
3967
+ defaultAlgorithm: Sl,
3968
+ defaultSeed: Tl
3969
+ } = Pe, Fl = Sl(Tl), {
3970
+ Option: Ol
3971
+ } = xt, _l = (e) => {
3964
3972
  const {
3965
3973
  ooui: t
3966
3974
  } = e, {
@@ -3970,11 +3978,11 @@ const {
3970
3978
  required: r,
3971
3979
  type: "any",
3972
3980
  ...e,
3973
- children: /* @__PURE__ */ n(_l, {
3981
+ children: /* @__PURE__ */ n(Il, {
3974
3982
  ...e
3975
3983
  })
3976
3984
  });
3977
- }, _l = (e) => {
3985
+ }, Il = (e) => {
3978
3986
  const {
3979
3987
  ooui: t,
3980
3988
  onChange: r,
@@ -3988,11 +3996,11 @@ const {
3988
3996
  return i ? !i.includes(m) : !0;
3989
3997
  }).map((d) => {
3990
3998
  const [m, v] = d;
3991
- return /* @__PURE__ */ n(Fl, {
3999
+ return /* @__PURE__ */ n(Ol, {
3992
4000
  value: v,
3993
4001
  children: v
3994
4002
  }, m);
3995
- }), c = a && !s ? Il : Ct;
4003
+ }), c = a && !s ? Dl : xt;
3996
4004
  function f(d) {
3997
4005
  const m = d.map((v) => {
3998
4006
  const p = l.find(([h, g]) => v === g);
@@ -4012,12 +4020,12 @@ const {
4012
4020
  showArrow: !0,
4013
4021
  children: u
4014
4022
  });
4015
- }, Il = Kt(Ct)`
4023
+ }, Dl = Kt(xt)`
4016
4024
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
4017
- background-color: ${Tl.colorPrimaryBg};
4025
+ background-color: ${Fl.colorPrimaryBg};
4018
4026
  }
4019
4027
  `;
4020
- function Dl(e) {
4028
+ function Vl(e) {
4021
4029
  const {
4022
4030
  field: t
4023
4031
  } = e;
@@ -4042,24 +4050,24 @@ function Dl(e) {
4042
4050
  case ft.progressbar:
4043
4051
  case ft.float_time:
4044
4052
  case ft.integer:
4045
- return /* @__PURE__ */ n(xl, {
4053
+ return /* @__PURE__ */ n(Cl, {
4046
4054
  ooui: t,
4047
4055
  showLabel: !0
4048
4056
  });
4049
4057
  case ft.date:
4050
- return /* @__PURE__ */ n(yl, {
4058
+ return /* @__PURE__ */ n(vl, {
4051
4059
  ooui: t,
4052
4060
  layout: "vertical",
4053
4061
  showLabel: !0
4054
4062
  });
4055
4063
  case ft.datetime:
4056
- return /* @__PURE__ */ n(vl, {
4064
+ return /* @__PURE__ */ n(wl, {
4057
4065
  ooui: t,
4058
4066
  layout: "vertical",
4059
4067
  showLabel: !0
4060
4068
  });
4061
4069
  case ft.selection:
4062
- return /* @__PURE__ */ n(Ol, {
4070
+ return /* @__PURE__ */ n(_l, {
4063
4071
  layout: "vertical",
4064
4072
  ooui: t,
4065
4073
  showLabel: !0
@@ -4073,7 +4081,7 @@ function Dl(e) {
4073
4081
  });
4074
4082
  }
4075
4083
  }
4076
- function Vl(e) {
4084
+ function Al(e) {
4077
4085
  const {
4078
4086
  onAdvancedFilterToggle: t,
4079
4087
  advancedFilter: r,
@@ -4091,7 +4099,7 @@ function Vl(e) {
4091
4099
  onClick: t,
4092
4100
  children: [r ? /* @__PURE__ */ n(hi, {
4093
4101
  className: "pr-1"
4094
- }) : /* @__PURE__ */ n(Rt, {
4102
+ }) : /* @__PURE__ */ n(At, {
4095
4103
  className: "pr-1"
4096
4104
  }), s(r ? "simple_search" : "advanced_search")]
4097
4105
  })
@@ -4114,7 +4122,7 @@ function Vl(e) {
4114
4122
  })]
4115
4123
  });
4116
4124
  }
4117
- function Al(e) {
4125
+ function Rl(e) {
4118
4126
  const {
4119
4127
  onLimitChange: t
4120
4128
  } = e, {
@@ -4142,7 +4150,7 @@ function Al(e) {
4142
4150
  });
4143
4151
  }
4144
4152
  const {
4145
- useToken: Rl
4153
+ useToken: kl
4146
4154
  } = Pe;
4147
4155
  function go(e) {
4148
4156
  const {
@@ -4165,7 +4173,7 @@ function go(e) {
4165
4173
  formXml: p
4166
4174
  } = e, [h, g] = T(), [y, O] = T(), [I, w] = T(!1), V = de(), {
4167
4175
  token: D
4168
- } = Rl(), [E] = ot.useForm();
4176
+ } = kl(), [E] = ot.useForm();
4169
4177
  pe(() => {
4170
4178
  E.setFieldsValue(m);
4171
4179
  }, [m]);
@@ -4178,13 +4186,13 @@ function go(e) {
4178
4186
  xs: 24,
4179
4187
  className: "p-2",
4180
4188
  xl: 6,
4181
- children: /* @__PURE__ */ n(Dl, {
4189
+ children: /* @__PURE__ */ n(Vl, {
4182
4190
  field: A
4183
4191
  })
4184
4192
  }, M))
4185
4193
  }, F));
4186
4194
  };
4187
- St(() => {
4195
+ Ct(() => {
4188
4196
  w(!1), V.current = new fi(r, t, p), V.current.parse(), g(V.current._simpleSearchContainer), O(V.current._advancedSearchContainer);
4189
4197
  }, [t, r]);
4190
4198
  const C = b(), S = (x) => {
@@ -4194,7 +4202,7 @@ function go(e) {
4194
4202
  offset: R
4195
4203
  } = x;
4196
4204
  delete x.offset, delete x.limit;
4197
- const F = tl(x, (A = V.current) == null ? void 0 : A._advancedSearchContainer);
4205
+ const F = nl(x, (A = V.current) == null ? void 0 : A._advancedSearchContainer);
4198
4206
  o({
4199
4207
  params: F,
4200
4208
  offset: R,
@@ -4227,9 +4235,9 @@ function go(e) {
4227
4235
  offset: a,
4228
4236
  limit: l
4229
4237
  },
4230
- children: [C, I && v && /* @__PURE__ */ n(Al, {
4238
+ children: [C, I && v && /* @__PURE__ */ n(Rl, {
4231
4239
  onLimitChange: u
4232
- }), /* @__PURE__ */ n(Vl, {
4240
+ }), /* @__PURE__ */ n(Al, {
4233
4241
  advancedFilter: I,
4234
4242
  onAdvancedFilterToggle: () => {
4235
4243
  w(!I);
@@ -4256,7 +4264,7 @@ const xr = (e, t = "14px -apple-system") => {
4256
4264
  i.font = t;
4257
4265
  const o = i.measureText(e);
4258
4266
  return Math.round((o.width + 80) * 1.5);
4259
- }, kl = (e, t, r = 500) => {
4267
+ }, Ml = (e, t, r = 500) => {
4260
4268
  if (e.length === 0)
4261
4269
  return e;
4262
4270
  const i = e.map(
@@ -4278,7 +4286,7 @@ const xr = (e, t = "14px -apple-system") => {
4278
4286
  tableWidth: o
4279
4287
  };
4280
4288
  };
4281
- function Ml(e) {
4289
+ function El(e) {
4282
4290
  if (!!e)
4283
4291
  try {
4284
4292
  if (e.includes(":")) {
@@ -4308,7 +4316,7 @@ function yo(e) {
4308
4316
  });
4309
4317
  return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
4310
4318
  }
4311
- const El = (e) => /* @__PURE__ */ n(ve, {
4319
+ const $l = (e) => /* @__PURE__ */ n(ve, {
4312
4320
  ...e,
4313
4321
  children: /* @__PURE__ */ n(vo, {})
4314
4322
  }), vo = ({
@@ -4325,7 +4333,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4325
4333
  display: "flex",
4326
4334
  alignItems: "center"
4327
4335
  },
4328
- children: [/* @__PURE__ */ n($l, {
4336
+ children: [/* @__PURE__ */ n(Ll, {
4329
4337
  percent: e
4330
4338
  }), /* @__PURE__ */ n("div", {
4331
4339
  style: {
@@ -4335,7 +4343,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4335
4343
  children: t
4336
4344
  })]
4337
4345
  });
4338
- }, $l = Kt(ni)`
4346
+ }, Ll = Kt(ni)`
4339
4347
  .ant-progress-outer {
4340
4348
  margin-right: 0px;
4341
4349
  padding-right: 0px;
@@ -4382,7 +4390,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4382
4390
  t: p
4383
4391
  } = Y(we), h = Y(st), {
4384
4392
  openRelate: g
4385
- } = h || {}, y = Y(Et), {
4393
+ } = h || {}, y = Y(Mt), {
4386
4394
  processAction: O
4387
4395
  } = y || {};
4388
4396
  if (!t)
@@ -4406,7 +4414,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4406
4414
  context: i
4407
4415
  }))[0];
4408
4416
  v({
4409
- ...Ot(R, x),
4417
+ ...Ft(R, x),
4410
4418
  active_id: t
4411
4419
  }), c(!1);
4412
4420
  } catch (S) {
@@ -4422,7 +4430,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4422
4430
  style: {
4423
4431
  padding: 15
4424
4432
  },
4425
- children: /* @__PURE__ */ n(Me, {})
4433
+ children: /* @__PURE__ */ n(Le, {})
4426
4434
  })
4427
4435
  });
4428
4436
  if (!f || !f.toolbar)
@@ -4516,7 +4524,7 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4516
4524
  onCancel: () => l(!1)
4517
4525
  })]
4518
4526
  });
4519
- }, Ll = (e) => {
4527
+ }, Nl = (e) => {
4520
4528
  const {
4521
4529
  m2oField: t
4522
4530
  } = e;
@@ -4528,12 +4536,12 @@ const El = (e) => /* @__PURE__ */ n(ve, {
4528
4536
  model: t.model
4529
4537
  })]
4530
4538
  }) : /* @__PURE__ */ n(ne, {});
4531
- }, Nl = (e) => {
4539
+ }, Pl = (e) => {
4532
4540
  const {
4533
4541
  value: t,
4534
4542
  context: r,
4535
4543
  selectionValues: i
4536
- } = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = Le(async () => {
4544
+ } = e, [o, s] = T(), [a, l] = T(!1), [u, c] = t ? t.split(",") : [], f = parseInt(c), d = $e(async () => {
4537
4545
  if (!t || t && o)
4538
4546
  return;
4539
4547
  l(!0);
@@ -4771,7 +4779,7 @@ var wo = { exports: {} };
4771
4779
  }, C.en = D[V], C.Ls = D, C.p = {}, C;
4772
4780
  });
4773
4781
  })(wo);
4774
- const dt = wo.exports, Pl = (e) => {
4782
+ const dt = wo.exports, Hl = (e) => {
4775
4783
  console.log("Avatar Props", e);
4776
4784
  const {
4777
4785
  ooui: t,
@@ -4806,7 +4814,7 @@ var bo = { exports: {} };
4806
4814
  };
4807
4815
  });
4808
4816
  })(bo);
4809
- const Hl = bo.exports;
4817
+ const Bl = bo.exports;
4810
4818
  var xo = { exports: {} };
4811
4819
  (function(e, t) {
4812
4820
  (function(r, i) {
@@ -4884,11 +4892,11 @@ var xo = { exports: {} };
4884
4892
  };
4885
4893
  });
4886
4894
  })(xo);
4887
- const Bl = xo.exports, {
4888
- useToken: jl
4895
+ const jl = xo.exports, {
4896
+ useToken: Kl
4889
4897
  } = Pe;
4890
- dt.extend(Hl);
4891
4898
  dt.extend(Bl);
4899
+ dt.extend(jl);
4892
4900
  const lt = {
4893
4901
  date: {
4894
4902
  placeholder: "__/__/____",
@@ -4910,12 +4918,12 @@ const lt = {
4910
4918
  return /* @__PURE__ */ n(ve, {
4911
4919
  required: i,
4912
4920
  ...e,
4913
- children: /* @__PURE__ */ n(Kl, {
4921
+ children: /* @__PURE__ */ n(Yl, {
4914
4922
  ooui: t,
4915
4923
  showTime: r
4916
4924
  })
4917
4925
  });
4918
- }, Kl = (e) => {
4926
+ }, Yl = (e) => {
4919
4927
  const {
4920
4928
  value: t,
4921
4929
  onChange: r,
@@ -4927,7 +4935,7 @@ const lt = {
4927
4935
  required: l
4928
4936
  } = i, {
4929
4937
  token: u
4930
- } = jl(), c = l && !a ? {
4938
+ } = Kl(), c = l && !a ? {
4931
4939
  backgroundColor: u.colorPrimaryBg
4932
4940
  } : void 0, f = o ? "time" : "date", d = (p) => {
4933
4941
  r == null || r(p);
@@ -4952,7 +4960,7 @@ const lt = {
4952
4960
  value: v,
4953
4961
  onChange: m
4954
4962
  });
4955
- }, Yl = (e) => /* @__PURE__ */ n("div", {
4963
+ }, Wl = (e) => /* @__PURE__ */ n("div", {
4956
4964
  style: {
4957
4965
  display: "flex",
4958
4966
  justifyContent: "center",
@@ -4962,18 +4970,18 @@ const lt = {
4962
4970
  checked: e,
4963
4971
  disabled: !0
4964
4972
  })
4965
- }), Wl = (e) => /* @__PURE__ */ n(Ll, {
4973
+ }), Ul = (e) => /* @__PURE__ */ n(Nl, {
4966
4974
  m2oField: e
4967
- }), Ul = (e) => /* @__PURE__ */ n(Gn, {
4975
+ }), Gl = (e) => /* @__PURE__ */ n(Gn, {
4968
4976
  content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
4969
- }), Gl = (e) => {
4977
+ }), ql = (e) => {
4970
4978
  if (!e || e && e.length === 0)
4971
4979
  return /* @__PURE__ */ n(ne, {});
4972
4980
  const t = dt(e, lt.date.dateInternalFormat).format(lt.date.dateDisplayFormat);
4973
4981
  return /* @__PURE__ */ n(ne, {
4974
4982
  children: t
4975
4983
  });
4976
- }, ql = (e) => {
4984
+ }, zl = (e) => {
4977
4985
  if (!e || e && e.length === 0)
4978
4986
  return /* @__PURE__ */ n(ne, {});
4979
4987
  const t = dt(e, lt.time.dateInternalFormat).format(lt.time.dateDisplayFormat);
@@ -4985,33 +4993,33 @@ const lt = {
4985
4993
  return /* @__PURE__ */ n(ne, {
4986
4994
  children: `( ${t} )`
4987
4995
  });
4988
- }, zl = (e) => /* @__PURE__ */ n(vo, {
4996
+ }, Jl = (e) => /* @__PURE__ */ n(vo, {
4989
4997
  value: e
4990
- }), Jl = (e) => /* @__PURE__ */ n(ne, {
4998
+ }), Zl = (e) => /* @__PURE__ */ n(ne, {
4991
4999
  children: yo(e)
4992
5000
  }), Tr = (e) => /* @__PURE__ */ n("div", {
4993
5001
  style: {
4994
5002
  textAlign: "right"
4995
5003
  },
4996
5004
  children: e
4997
- }), Zl = (e) => /* @__PURE__ */ n("img", {
5005
+ }), Xl = (e) => /* @__PURE__ */ n("img", {
4998
5006
  src: `data:image/*;base64,${e}`,
4999
5007
  style: {
5000
5008
  maxWidth: "50px",
5001
5009
  padding: "5px"
5002
5010
  }
5003
- }), Xl = (e, t, r, i) => /* @__PURE__ */ n(uo, {
5011
+ }), Ql = (e, t, r, i) => /* @__PURE__ */ n(uo, {
5004
5012
  ooui: r,
5005
5013
  value: e
5006
- }), Ql = (e, t, r, i) => /* @__PURE__ */ n(ne, {
5007
- children: r.selectionValues.get(e)
5008
5014
  }), ec = (e, t, r, i) => /* @__PURE__ */ n(ne, {
5009
- children: /* @__PURE__ */ n(Nl, {
5015
+ children: r.selectionValues.get(e)
5016
+ }), tc = (e, t, r, i) => /* @__PURE__ */ n(ne, {
5017
+ children: /* @__PURE__ */ n(Pl, {
5010
5018
  value: e,
5011
5019
  selectionValues: r.selectionValues,
5012
5020
  context: i
5013
5021
  })
5014
- }), tc = (e, t, r, i) => /* @__PURE__ */ n(Pl, {
5022
+ }), nc = (e, t, r, i) => /* @__PURE__ */ n(Hl, {
5015
5023
  ooui: r,
5016
5024
  value: e
5017
5025
  });
@@ -5044,24 +5052,24 @@ function pn(e) {
5044
5052
  setTitle: A = void 0
5045
5053
  } = (O ? R : {}) || {};
5046
5054
  pe(() => {
5047
- S.current = _t(o);
5055
+ S.current = Ot(o);
5048
5056
  const z = Oa(S.current, {
5049
- boolean: Yl,
5050
- many2one: Wl,
5051
- text: Ul,
5057
+ boolean: Wl,
5058
+ many2one: Ul,
5059
+ text: Gl,
5052
5060
  one2many: Sr,
5053
5061
  many2many: Sr,
5054
- progressbar: zl,
5055
- float_time: Jl,
5056
- image: Zl,
5062
+ progressbar: Jl,
5063
+ float_time: Zl,
5064
+ image: Xl,
5057
5065
  integer: Tr,
5058
5066
  float: Tr,
5059
- reference: ec,
5060
- tag: Xl,
5061
- selection: Ql,
5062
- date: Gl,
5063
- datetime: ql,
5064
- avatar: tc
5067
+ reference: tc,
5068
+ tag: Ql,
5069
+ selection: ec,
5070
+ date: ql,
5071
+ datetime: zl,
5072
+ avatar: nc
5065
5073
  }, I);
5066
5074
  b(z), S.current.string && F !== S.current.string && (A == null || A(S.current.string));
5067
5075
  }, [o]), pe(() => {
@@ -5069,7 +5077,7 @@ function pn(e) {
5069
5077
  const z = ao(S.current, s);
5070
5078
  D(z), $.current = r;
5071
5079
  }, [s]);
5072
- const M = (t - 1) * $.current + 1, _ = M - 1 + V.length, N = i === void 0 ? null : i === 0 ? x("no_results") : x("summary").replace("{from}", M == null ? void 0 : M.toString()).replace("{to}", _ == null ? void 0 : _.toString()).replace("{total}", i == null ? void 0 : i.toString()), k = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Me, {
5080
+ const M = (t - 1) * $.current + 1, _ = M - 1 + V.length, N = i === void 0 ? null : i === 0 ? x("no_results") : x("summary").replace("{from}", M == null ? void 0 : M.toString()).replace("{to}", _ == null ? void 0 : _.toString()).replace("{total}", i == null ? void 0 : i.toString()), k = () => !c || o.isExpandable || l ? null : i === void 0 ? /* @__PURE__ */ n(Le, {
5073
5081
  className: "pb-4"
5074
5082
  }) : /* @__PURE__ */ P(Ce, {
5075
5083
  align: "bottom",
@@ -5108,23 +5116,21 @@ function pn(e) {
5108
5116
  }
5109
5117
  let q, W = d;
5110
5118
  if (S.current !== null) {
5111
- q = kl(E, V, 600);
5119
+ q = Ml(E, V, 600);
5112
5120
  const U = S.current;
5113
5121
  d && U.columns.some((L) => L.sum !== void 0) && (W = d - 30);
5114
5122
  }
5115
- return S.current === null ? /* @__PURE__ */ n(Me, {
5123
+ return S.current === null ? /* @__PURE__ */ n(Le, {
5116
5124
  style: {
5117
5125
  padding: "2rem"
5118
5126
  }
5119
5127
  }) : /* @__PURE__ */ P("div", {
5120
- children: [k(), l && /* @__PURE__ */ n(Me, {
5121
- className: "pb-4"
5122
- }), /* @__PURE__ */ n(Ri, {
5128
+ children: [k(), /* @__PURE__ */ n(Ri, {
5123
5129
  height: W,
5124
5130
  columns: q.columns,
5125
5131
  dataSource: V,
5126
- loading: !1,
5127
- loadingComponent: /* @__PURE__ */ n(Me, {}),
5132
+ loading: l,
5133
+ loadingComponent: /* @__PURE__ */ n(Le, {}),
5128
5134
  onRowStyle: (z) => {
5129
5135
  if (m[z.id])
5130
5136
  return {
@@ -5152,7 +5158,7 @@ function pn(e) {
5152
5158
  }), j()]
5153
5159
  });
5154
5160
  }
5155
- function nc(e, t) {
5161
+ function rc(e, t) {
5156
5162
  const {
5157
5163
  model: r,
5158
5164
  formView: i,
@@ -5167,7 +5173,7 @@ function nc(e, t) {
5167
5173
  onChangeSelectedRowKeys: m
5168
5174
  } = e, [v, p] = T(!1), [h, g] = T(!1), y = de(!1), [O, I] = T(), [w, V] = T(), [D, E] = T(), [b, C] = T(), [S, x] = T(200), $ = de(), {
5169
5175
  height: R
5170
- } = fn(), F = Y(Et), {
5176
+ } = fn(), F = Y(Mt), {
5171
5177
  processAction: A
5172
5178
  } = F || {}, M = Y(Qe), {
5173
5179
  setResults: _ = void 0,
@@ -5187,7 +5193,7 @@ function nc(e, t) {
5187
5193
  setTreeIsLoading: J = void 0,
5188
5194
  searchValues: fe = {},
5189
5195
  setSearchValues: be = void 0,
5190
- limit: $e = Ht,
5196
+ limit: Ee = Ht,
5191
5197
  setLimit: Ie = void 0
5192
5198
  } = (f ? M : {}) || {}, {
5193
5199
  submit: Be,
@@ -5200,7 +5206,7 @@ function nc(e, t) {
5200
5206
  offset: We,
5201
5207
  getResults: te,
5202
5208
  requestPageChange: Fe,
5203
- changeSort: Ee,
5209
+ changeSort: Me,
5204
5210
  fetchChildrenForRecord: ce,
5205
5211
  colorsForResults: me,
5206
5212
  statusForResults: Te,
@@ -5227,10 +5233,10 @@ function nc(e, t) {
5227
5233
  domain: u,
5228
5234
  currentId: k,
5229
5235
  setActionViewTotalItems: ie,
5230
- limit: $e,
5236
+ limit: Ee,
5231
5237
  setLimit: Ie
5232
5238
  });
5233
- xt(t, () => ({
5239
+ bt(t, () => ({
5234
5240
  refreshResults: () => {
5235
5241
  y.current = !1, se();
5236
5242
  },
@@ -5244,9 +5250,9 @@ function nc(e, t) {
5244
5250
  try {
5245
5251
  await Ke(), g(!0);
5246
5252
  } catch (ke) {
5247
- C(ke), J == null || J(!1);
5253
+ C(ke);
5248
5254
  } finally {
5249
- p(!1);
5255
+ p(!1), J == null || J(!1);
5250
5256
  }
5251
5257
  }, Ke = async () => {
5252
5258
  I(r);
@@ -5322,7 +5328,7 @@ function nc(e, t) {
5322
5328
  searchFields: co([D.search_fields, w.search_fields]),
5323
5329
  formXml: D.arch,
5324
5330
  onClear: ge,
5325
- limit: $e,
5331
+ limit: Ee,
5326
5332
  offset: We,
5327
5333
  isSearching: De,
5328
5334
  onSubmit: Be,
@@ -5334,7 +5340,7 @@ function nc(e, t) {
5334
5340
  }), /* @__PURE__ */ n(pn, {
5335
5341
  context: d,
5336
5342
  total: ue,
5337
- limit: $e,
5343
+ limit: Ee,
5338
5344
  page: je,
5339
5345
  treeView: w,
5340
5346
  results: te(),
@@ -5349,7 +5355,7 @@ function nc(e, t) {
5349
5355
  onChange: Ae
5350
5356
  },
5351
5357
  sorter: ee,
5352
- onChangeSort: Ee,
5358
+ onChangeSort: Me,
5353
5359
  onFetchChildrenForRecord: w.isExpandable ? ce : void 0,
5354
5360
  childField: w.field_parent,
5355
5361
  rootTree: f
@@ -5364,10 +5370,10 @@ function nc(e, t) {
5364
5370
  style: c ? {} : {
5365
5371
  display: "none"
5366
5372
  },
5367
- children: v ? /* @__PURE__ */ n(Me, {}) : ye()
5373
+ children: v ? /* @__PURE__ */ n(Le, {}) : ye()
5368
5374
  });
5369
5375
  }
5370
- const So = bt(nc), To = (e) => {
5376
+ const So = wt(rc), To = (e) => {
5371
5377
  const {
5372
5378
  visible: t,
5373
5379
  onCloseModal: r,
@@ -5417,7 +5423,7 @@ const So = bt(nc), To = (e) => {
5417
5423
  },
5418
5424
  children: m("new")
5419
5425
  }), /* @__PURE__ */ n(_e, {
5420
- icon: /* @__PURE__ */ n(kt, {}),
5426
+ icon: /* @__PURE__ */ n(Rt, {}),
5421
5427
  onClick: () => {
5422
5428
  y();
5423
5429
  },
@@ -5456,18 +5462,18 @@ const So = bt(nc), To = (e) => {
5456
5462
  })]
5457
5463
  });
5458
5464
  }, {
5459
- error: rc
5465
+ error: oc
5460
5466
  } = Ge, nn = (e) => {
5461
- rc({
5467
+ oc({
5462
5468
  title: "Error",
5463
5469
  icon: /* @__PURE__ */ n(pt, {}),
5464
5470
  centered: !0,
5465
5471
  content: e
5466
5472
  });
5467
5473
  }, {
5468
- defaultAlgorithm: oc,
5469
- defaultSeed: ic
5470
- } = Pe, Fo = oc(ic), sc = (e) => {
5474
+ defaultAlgorithm: ic,
5475
+ defaultSeed: sc
5476
+ } = Pe, Fo = ic(sc), ac = (e) => {
5471
5477
  const {
5472
5478
  ooui: t
5473
5479
  } = e, {
@@ -5583,7 +5589,7 @@ const So = bt(nc), To = (e) => {
5583
5589
  async function z() {
5584
5590
  c && (R.current = await H.getHandler().evalDomain({
5585
5591
  domain: c,
5586
- values: Mt({
5592
+ values: kt({
5587
5593
  fields: S(),
5588
5594
  values: C()
5589
5595
  }),
@@ -5602,7 +5608,7 @@ const So = bt(nc), To = (e) => {
5602
5608
  wrap: !1,
5603
5609
  children: [/* @__PURE__ */ n(le, {
5604
5610
  flex: "auto",
5605
- children: /* @__PURE__ */ n(o && !a ? ac : nt, {
5611
+ children: /* @__PURE__ */ n(o && !a ? lc : nt, {
5606
5612
  type: "text",
5607
5613
  value: w,
5608
5614
  disabled: a,
@@ -5686,11 +5692,11 @@ const So = bt(nc), To = (e) => {
5686
5692
  readOnly: a
5687
5693
  })]
5688
5694
  });
5689
- }, ac = Kt(nt)`
5695
+ }, lc = Kt(nt)`
5690
5696
  .ant-input {
5691
5697
  background-color: ${Fo.colorPrimaryBg};
5692
5698
  }
5693
- `, _o = Je.createContext(null), lc = ({
5699
+ `, _o = Je.createContext(null), cc = ({
5694
5700
  children: e,
5695
5701
  initialView: t
5696
5702
  }) => {
@@ -5708,7 +5714,7 @@ const So = bt(nc), To = (e) => {
5708
5714
  });
5709
5715
  }, {
5710
5716
  getValueForOperator: Fr
5711
- } = Er, rn = 0.7, on = 30, cc = (e) => {
5717
+ } = Er, rn = 0.7, on = 30, dc = (e) => {
5712
5718
  const {
5713
5719
  model: t,
5714
5720
  domain: r,
@@ -5850,7 +5856,7 @@ const So = bt(nc), To = (e) => {
5850
5856
  },
5851
5857
  children: ({
5852
5858
  measureRef: _
5853
- }) => a ? /* @__PURE__ */ n(uc, {
5859
+ }) => a ? /* @__PURE__ */ n(fc, {
5854
5860
  value: p,
5855
5861
  total: O,
5856
5862
  percent: g,
@@ -5860,7 +5866,7 @@ const So = bt(nc), To = (e) => {
5860
5866
  color: b,
5861
5867
  icon: S,
5862
5868
  suffix: u
5863
- }) : /* @__PURE__ */ n(dc, {
5869
+ }) : /* @__PURE__ */ n(uc, {
5864
5870
  value: p,
5865
5871
  total: O,
5866
5872
  measureRef: _,
@@ -5876,7 +5882,7 @@ function Io(e, t) {
5876
5882
  const i = document.createElement("canvas").getContext("2d");
5877
5883
  return i.font = t || getComputedStyle(document.body).font, i.measureText(e).width;
5878
5884
  }
5879
- function dc({
5885
+ function uc({
5880
5886
  measureRef: e,
5881
5887
  width: t,
5882
5888
  height: r,
@@ -5919,7 +5925,7 @@ function dc({
5919
5925
  })
5920
5926
  });
5921
5927
  }
5922
- function uc({
5928
+ function fc({
5923
5929
  measureRef: e,
5924
5930
  height: t,
5925
5931
  width: r,
@@ -5993,22 +5999,22 @@ const Tn = (e) => (t) => {
5993
5999
  });
5994
6000
  return { name: e === "pie" ? t.x : t.type, value: r };
5995
6001
  }, Zt = (e) => {
5996
- if (typeof e == "string" && fc(e))
6002
+ if (typeof e == "string" && mc(e))
5997
6003
  return parseFloat(e).toLocaleString("es-ES", {
5998
6004
  useGrouping: !0
5999
6005
  });
6000
- if (mc(e))
6006
+ if (hc(e))
6001
6007
  return e.toLocaleString("es-ES", {
6002
6008
  useGrouping: !0
6003
6009
  });
6004
- if (hc(e)) {
6005
- const t = pc(e);
6010
+ if (pc(e)) {
6011
+ const t = gc(e);
6006
6012
  return t === null ? e : dt(e, sn.input[t]).format(
6007
6013
  sn.output[t]
6008
6014
  );
6009
6015
  } else
6010
6016
  return e;
6011
- }, fc = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), mc = (e) => typeof e == "number" && !isNaN(e), Or = {
6017
+ }, mc = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), hc = (e) => typeof e == "number" && !isNaN(e), Or = {
6012
6018
  default: {
6013
6019
  padding: "auto",
6014
6020
  xAxis: {
@@ -6090,7 +6096,7 @@ const Tn = (e) => (t) => {
6090
6096
  }
6091
6097
  }
6092
6098
  };
6093
- function hc(e) {
6099
+ function pc(e) {
6094
6100
  return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
6095
6101
  }
6096
6102
  const sn = {
@@ -6109,7 +6115,7 @@ const sn = {
6109
6115
  years: "YYYY"
6110
6116
  }
6111
6117
  };
6112
- function pc(e) {
6118
+ function gc(e) {
6113
6119
  for (const t in sn.input)
6114
6120
  if (dt(
6115
6121
  e,
@@ -6120,10 +6126,10 @@ function pc(e) {
6120
6126
  return null;
6121
6127
  }
6122
6128
  const {
6123
- processGraphData: gc
6129
+ processGraphData: yc
6124
6130
  } = Er, {
6125
- getFieldsToRetrieve: yc
6126
- } = mi, vc = (e) => {
6131
+ getFieldsToRetrieve: vc
6132
+ } = mi, wc = (e) => {
6127
6133
  const {
6128
6134
  model: t,
6129
6135
  domain: r = [],
@@ -6133,12 +6139,12 @@ const {
6133
6139
  uninformedString: a,
6134
6140
  manualIds: l
6135
6141
  } = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), [p, h] = T(), [g, y] = T("line");
6136
- return St(() => {
6142
+ return Ct(() => {
6137
6143
  (async () => {
6138
6144
  c(!0), d(void 0);
6139
6145
  const O = Ln(o);
6140
6146
  y(O.type || "line");
6141
- const I = yc({
6147
+ const I = vc({
6142
6148
  ooui: O
6143
6149
  });
6144
6150
  let w, V;
@@ -6146,7 +6152,7 @@ const {
6146
6152
  ({
6147
6153
  values: w,
6148
6154
  fields: V
6149
- } = await bc({
6155
+ } = await xc({
6150
6156
  model: t,
6151
6157
  domain: r,
6152
6158
  context: i,
@@ -6165,7 +6171,7 @@ const {
6165
6171
  return;
6166
6172
  }
6167
6173
  h(w);
6168
- const D = gc({
6174
+ const D = yc({
6169
6175
  ooui: O,
6170
6176
  values: w,
6171
6177
  fields: V,
@@ -6188,7 +6194,7 @@ const {
6188
6194
  evaluatedEntries: p
6189
6195
  };
6190
6196
  };
6191
- async function wc({
6197
+ async function bc({
6192
6198
  model: e,
6193
6199
  context: t,
6194
6200
  fields: r
@@ -6199,7 +6205,7 @@ async function wc({
6199
6205
  fields: r
6200
6206
  });
6201
6207
  }
6202
- async function bc({
6208
+ async function xc({
6203
6209
  fields: e,
6204
6210
  model: t,
6205
6211
  domain: r,
@@ -6208,7 +6214,7 @@ async function bc({
6208
6214
  limit: s,
6209
6215
  manualIds: a
6210
6216
  }) {
6211
- const l = await wc({
6217
+ const l = await bc({
6212
6218
  model: t,
6213
6219
  context: i,
6214
6220
  fields: e
@@ -6237,11 +6243,11 @@ async function bc({
6237
6243
  fields: l
6238
6244
  };
6239
6245
  }
6240
- const xc = {
6246
+ const Cc = {
6241
6247
  line: Di,
6242
6248
  bar: Vi,
6243
6249
  pie: Ai
6244
- }, Cc = (e) => {
6250
+ }, Sc = (e) => {
6245
6251
  var y;
6246
6252
  const {
6247
6253
  model: t,
@@ -6258,7 +6264,7 @@ const xc = {
6258
6264
  values: f,
6259
6265
  type: d,
6260
6266
  evaluatedEntries: m
6261
- } = vc({
6267
+ } = wc({
6262
6268
  model: t,
6263
6269
  xml: o,
6264
6270
  limit: s,
@@ -6274,7 +6280,7 @@ const xc = {
6274
6280
  banner: !0
6275
6281
  });
6276
6282
  if (c)
6277
- return /* @__PURE__ */ n(Me, {});
6283
+ return /* @__PURE__ */ n(Le, {});
6278
6284
  if (!f)
6279
6285
  return /* @__PURE__ */ n(Ze, {
6280
6286
  message: "No data to display",
@@ -6284,7 +6290,7 @@ const xc = {
6284
6290
  data: v,
6285
6291
  isGroup: p,
6286
6292
  isStack: h
6287
- } = f, g = xc[d];
6293
+ } = f, g = Cc[d];
6288
6294
  return g ? /* @__PURE__ */ P("div", {
6289
6295
  style: {
6290
6296
  padding: "1rem"
@@ -6297,7 +6303,7 @@ const xc = {
6297
6303
  useGrouping: !0
6298
6304
  })}`
6299
6305
  }), /* @__PURE__ */ n(g, {
6300
- ...Sc({
6306
+ ...Tc({
6301
6307
  type: d,
6302
6308
  data: v,
6303
6309
  isGroup: p,
@@ -6308,7 +6314,7 @@ const xc = {
6308
6314
  children: `Unknown graph type: ${d}`
6309
6315
  });
6310
6316
  };
6311
- function Sc(e) {
6317
+ function Tc(e) {
6312
6318
  const {
6313
6319
  type: t,
6314
6320
  data: r,
@@ -6318,7 +6324,7 @@ function Sc(e) {
6318
6324
  let s = Or[t];
6319
6325
  return s || (s = Or.default), s.data = r, t === "pie" ? (s.colorField = "x", s.angleField = "value") : (s.xField = "x", s.yField = "value", s.seriesField = "type", s.isGroup = i, o && (s.isStack = !0, s.groupField = "stacked")), s;
6320
6326
  }
6321
- const Tc = (e, t) => {
6327
+ const Fc = (e, t) => {
6322
6328
  const {
6323
6329
  view_id: r,
6324
6330
  model: i,
@@ -6329,7 +6335,7 @@ const Tc = (e, t) => {
6329
6335
  } = e, [u, c] = T(!1), [f, d] = T(), [m, v] = T(), p = Y(Qe), {
6330
6336
  setGraphIsLoading: h = void 0
6331
6337
  } = p || {};
6332
- xt(t, () => ({
6338
+ bt(t, () => ({
6333
6339
  refresh: () => {
6334
6340
  g();
6335
6341
  }
@@ -6380,7 +6386,7 @@ const Tc = (e, t) => {
6380
6386
  field: y.field,
6381
6387
  operator: y.operator
6382
6388
  } : {};
6383
- return /* @__PURE__ */ n(cc, {
6389
+ return /* @__PURE__ */ n(dc, {
6384
6390
  showPercent: y.showPercent,
6385
6391
  totalDomain: y.totalDomain,
6386
6392
  colorCondition: y.color,
@@ -6396,7 +6402,7 @@ const Tc = (e, t) => {
6396
6402
  case "line":
6397
6403
  case "bar":
6398
6404
  case "pie":
6399
- return /* @__PURE__ */ n(Cc, {
6405
+ return /* @__PURE__ */ n(Sc, {
6400
6406
  model: i,
6401
6407
  context: o,
6402
6408
  domain: s,
@@ -6409,13 +6415,13 @@ const Tc = (e, t) => {
6409
6415
  children: `Graph ${f.type} not implemented`
6410
6416
  });
6411
6417
  }
6412
- }, gn = bt(Tc), {
6413
- confirm: Fc
6414
- } = Ge, Oc = ({
6418
+ }, gn = wt(Fc), {
6419
+ confirm: Oc
6420
+ } = Ge, _c = ({
6415
6421
  onOk: e,
6416
6422
  lang: t
6417
6423
  }) => {
6418
- Fc({
6424
+ Oc({
6419
6425
  title: Oe("removeItems", t),
6420
6426
  icon: /* @__PURE__ */ n(pt, {}),
6421
6427
  centered: !0,
@@ -6425,12 +6431,12 @@ const Tc = (e, t) => {
6425
6431
  cancelText: Oe("cancel", t)
6426
6432
  });
6427
6433
  }, {
6428
- confirm: _c
6429
- } = Ge, Ic = ({
6434
+ confirm: Ic
6435
+ } = Ge, Dc = ({
6430
6436
  onOk: e,
6431
6437
  lang: t
6432
6438
  }) => {
6433
- _c({
6439
+ Ic({
6434
6440
  title: Oe("unlinkItems", t),
6435
6441
  icon: /* @__PURE__ */ n(pt, {}),
6436
6442
  centered: !0,
@@ -6440,8 +6446,8 @@ const Tc = (e, t) => {
6440
6446
  cancelText: Oe("cancel", t)
6441
6447
  });
6442
6448
  }, {
6443
- useToken: Dc
6444
- } = Pe, Vc = (e) => {
6449
+ useToken: Vc
6450
+ } = Pe, Ac = (e) => {
6445
6451
  const {
6446
6452
  title: t,
6447
6453
  readOnly: r,
@@ -6460,7 +6466,7 @@ const Tc = (e, t) => {
6460
6466
  showToggleButton: h
6461
6467
  } = e, {
6462
6468
  token: g
6463
- } = Dc();
6469
+ } = Vc();
6464
6470
  function y() {
6465
6471
  return /* @__PURE__ */ n("div", {
6466
6472
  className: "inline-block w-3"
@@ -6531,12 +6537,12 @@ const Tc = (e, t) => {
6531
6537
  })]
6532
6538
  })]
6533
6539
  });
6534
- }, Ac = {
6540
+ }, Rc = {
6535
6541
  form: kr,
6536
6542
  tree: Ar,
6537
6543
  graph: gn
6538
6544
  };
6539
- function Rc(e) {
6545
+ function kc(e) {
6540
6546
  const t = e.map((i) => i.id);
6541
6547
  return e.filter((i, o) => {
6542
6548
  const {
@@ -6545,7 +6551,7 @@ function Rc(e) {
6545
6551
  return !t.includes(s, o + 1);
6546
6552
  });
6547
6553
  }
6548
- const kc = (e) => {
6554
+ const Mc = (e) => {
6549
6555
  var at;
6550
6556
  const {
6551
6557
  value: t,
@@ -6583,8 +6589,8 @@ const kc = (e) => {
6583
6589
  }
6584
6590
  fe();
6585
6591
  }, [s, a]);
6586
- const fe = Le(() => {
6587
- (a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && $e();
6592
+ const fe = $e(() => {
6593
+ (a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && Ee();
6588
6594
  }, [s, a]);
6589
6595
  pe(() => {
6590
6596
  Be();
@@ -6593,9 +6599,9 @@ const kc = (e) => {
6593
6599
  var ae, Ae;
6594
6600
  r == null || r({
6595
6601
  fields: ((ae = o.get("form")) == null ? void 0 : ae.fields) || ((Ae = o.get("tree")) == null ? void 0 : Ae.fields),
6596
- items: Rc(X)
6602
+ items: kc(X)
6597
6603
  });
6598
- }, $e = async () => {
6604
+ }, Ee = async () => {
6599
6605
  await Ie(), u > Q.length - 1 && u !== 0 && c(0);
6600
6606
  }, Ie = async (X) => {
6601
6607
  var ae, Ae, he;
@@ -6627,7 +6633,7 @@ const kc = (e) => {
6627
6633
  async function Be() {
6628
6634
  ee && (N.current = await H.getHandler().evalDomain({
6629
6635
  domain: ee,
6630
- values: Mt({
6636
+ values: kt({
6631
6637
  fields: m(),
6632
6638
  values: v()
6633
6639
  }),
@@ -6685,18 +6691,18 @@ const kc = (e) => {
6685
6691
  }) : X();
6686
6692
  }, je = () => {
6687
6693
  if (Z) {
6688
- Ic({
6694
+ Dc({
6689
6695
  lang: g,
6690
6696
  onOk: () => {
6691
- a === "form" ? Fe() : Ee();
6697
+ a === "form" ? Fe() : Me();
6692
6698
  }
6693
6699
  });
6694
6700
  return;
6695
6701
  }
6696
- Oc({
6702
+ _c({
6697
6703
  lang: g,
6698
6704
  onOk: () => {
6699
- a === "form" ? Fe() : Ee();
6705
+ a === "form" ? Fe() : Me();
6700
6706
  }
6701
6707
  });
6702
6708
  }, We = async () => {
@@ -6732,7 +6738,7 @@ const kc = (e) => {
6732
6738
  E(X);
6733
6739
  }
6734
6740
  c(0), V(!1);
6735
- }, Ee = async () => {
6741
+ }, Me = async () => {
6736
6742
  const X = Q.filter((ae) => F.includes(ae.id));
6737
6743
  V(!0), I(!1), E(void 0);
6738
6744
  try {
@@ -6821,7 +6827,7 @@ const kc = (e) => {
6821
6827
  }
6822
6828
  };
6823
6829
  function ue() {
6824
- const X = Ac[a];
6830
+ const X = Rc[a];
6825
6831
  if (a === "graph")
6826
6832
  return Ln(o.get("graph").arch).string;
6827
6833
  {
@@ -6832,7 +6838,7 @@ const kc = (e) => {
6832
6838
  const Xe = () => {
6833
6839
  var ae, Ae, he, ye;
6834
6840
  if (a === "form")
6835
- return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(Ut, {
6841
+ return Q.length === 0 ? y("noCurrentEntries") : a !== J.current && s.some((xe) => !xe.values) ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(Ut, {
6836
6842
  formView: o.get("form"),
6837
6843
  values: (ae = Q[u]) == null ? void 0 : ae.values,
6838
6844
  parentContext: {
@@ -6861,7 +6867,7 @@ const kc = (e) => {
6861
6867
  readOnly: U
6862
6868
  });
6863
6869
  let X = [];
6864
- if (Q.some((xe) => xe.treeValues) && (X = k ? It({
6870
+ if (Q.some((xe) => xe.treeValues) && (X = k ? _t({
6865
6871
  resultsToSort: Q.map((xe) => xe.treeValues),
6866
6872
  sorter: k,
6867
6873
  fields: {
@@ -6912,8 +6918,8 @@ const kc = (e) => {
6912
6918
  banner: !0
6913
6919
  });
6914
6920
  const Ke = M;
6915
- return w ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ P(ne, {
6916
- children: [/* @__PURE__ */ n(Vc, {
6921
+ return w ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ P(ne, {
6922
+ children: [/* @__PURE__ */ n(Ac, {
6917
6923
  mode: a,
6918
6924
  title: ue(),
6919
6925
  readOnly: U,
@@ -6964,7 +6970,7 @@ const kc = (e) => {
6964
6970
  }
6965
6971
  })]
6966
6972
  });
6967
- }, Mc = (e) => {
6973
+ }, Ec = (e) => {
6968
6974
  const {
6969
6975
  ooui: t
6970
6976
  } = e, {
@@ -6978,7 +6984,7 @@ const kc = (e) => {
6978
6984
  const [u, c] = T(!0), [f, d] = T(), [m, v] = T(/* @__PURE__ */ new Map()), p = Y(Ne), {
6979
6985
  getContext: h
6980
6986
  } = p || {};
6981
- St(() => {
6987
+ Ct(() => {
6982
6988
  y();
6983
6989
  }, [t]);
6984
6990
  const g = async (I) => o && o[I] ? o[I] : await H.getHandler().getView({
@@ -7007,12 +7013,12 @@ const kc = (e) => {
7007
7013
  c(!1);
7008
7014
  }
7009
7015
  };
7010
- return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(Me, {}) : f ? /* @__PURE__ */ n(Ze, {
7016
+ return r && r.length > 0 ? l = r[0] : l = "tree", u ? /* @__PURE__ */ n(Le, {}) : f ? /* @__PURE__ */ n(Ze, {
7011
7017
  className: "mt-10",
7012
7018
  message: f,
7013
7019
  type: "error",
7014
7020
  banner: !0
7015
- }) : /* @__PURE__ */ n(lc, {
7021
+ }) : /* @__PURE__ */ n(cc, {
7016
7022
  initialView: l,
7017
7023
  children: /* @__PURE__ */ n(ve, {
7018
7024
  required: s,
@@ -7028,15 +7034,15 @@ const kc = (e) => {
7028
7034
  throw new Error();
7029
7035
  },
7030
7036
  ...e,
7031
- children: /* @__PURE__ */ n(kc, {
7037
+ children: /* @__PURE__ */ n(Mc, {
7032
7038
  ooui: t,
7033
7039
  views: m
7034
7040
  })
7035
7041
  })
7036
7042
  });
7037
7043
  }, {
7038
- useToken: Ec
7039
- } = Pe, $c = (e) => {
7044
+ useToken: $c
7045
+ } = Pe, Lc = (e) => {
7040
7046
  const {
7041
7047
  ooui: t
7042
7048
  } = e, {
@@ -7046,11 +7052,11 @@ const kc = (e) => {
7046
7052
  required: r,
7047
7053
  type: "number",
7048
7054
  ...e,
7049
- children: /* @__PURE__ */ n(Lc, {
7055
+ children: /* @__PURE__ */ n(Nc, {
7050
7056
  ooui: t
7051
7057
  })
7052
7058
  });
7053
- }, Lc = (e) => {
7059
+ }, Nc = (e) => {
7054
7060
  const {
7055
7061
  ooui: t,
7056
7062
  value: r,
@@ -7061,7 +7067,7 @@ const kc = (e) => {
7061
7067
  required: a
7062
7068
  } = t, {
7063
7069
  token: l
7064
- } = Ec(), u = a && !s ? {
7070
+ } = $c(), u = a && !s ? {
7065
7071
  backgroundColor: l.colorPrimaryBg
7066
7072
  } : void 0, c = de(), [f, d] = T(), m = Y(Ne), {
7067
7073
  elementHasLostFocus: v
@@ -7076,7 +7082,7 @@ const kc = (e) => {
7076
7082
  c.current = y.target.value, d(y.target.value);
7077
7083
  }
7078
7084
  async function g() {
7079
- p(Ml(f)), await new Promise((y) => setTimeout(y, 300)), v == null || v();
7085
+ p(El(f)), await new Promise((y) => setTimeout(y, 300)), v == null || v();
7080
7086
  }
7081
7087
  return /* @__PURE__ */ n(nt, {
7082
7088
  value: f,
@@ -7110,9 +7116,9 @@ function Do(e) {
7110
7116
  });
7111
7117
  }
7112
7118
  const {
7113
- TabPane: Nc
7119
+ TabPane: Pc
7114
7120
  } = Vr;
7115
- function Pc(e) {
7121
+ function Hc(e) {
7116
7122
  const {
7117
7123
  ooui: t,
7118
7124
  responsiveBehaviour: r
@@ -7126,7 +7132,7 @@ function Pc(e) {
7126
7132
  return /* @__PURE__ */ n(Vr, {
7127
7133
  defaultActiveKey: "1",
7128
7134
  tabPosition: t.tabPosition,
7129
- children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Nc, {
7135
+ children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(Pc, {
7130
7136
  tab: /* @__PURE__ */ P(ne, {
7131
7137
  children: [o(s.icon), " ", s.label]
7132
7138
  }),
@@ -7139,10 +7145,10 @@ function Pc(e) {
7139
7145
  });
7140
7146
  }
7141
7147
  const {
7142
- useToken: Hc
7148
+ useToken: Bc
7143
7149
  } = Pe, {
7144
7150
  TextArea: An
7145
- } = nt, Bc = (e) => {
7151
+ } = nt, jc = (e) => {
7146
7152
  const {
7147
7153
  ooui: t
7148
7154
  } = e, {
@@ -7153,7 +7159,7 @@ const {
7153
7159
  translatable: a
7154
7160
  } = t, {
7155
7161
  token: l
7156
- } = Hc(), u = o && !i ? {
7162
+ } = Bc(), u = o && !i ? {
7157
7163
  backgroundColor: l.colorPrimaryBg
7158
7164
  } : void 0, c = Y(Ne), {
7159
7165
  elementHasLostFocus: f
@@ -7161,7 +7167,7 @@ const {
7161
7167
  return /* @__PURE__ */ n(ve, {
7162
7168
  required: o,
7163
7169
  ...e,
7164
- children: a ? /* @__PURE__ */ n(jc, {
7170
+ children: a ? /* @__PURE__ */ n(Kc, {
7165
7171
  field: r,
7166
7172
  height: s,
7167
7173
  requiredStyle: u
@@ -7175,7 +7181,7 @@ const {
7175
7181
  onBlur: f
7176
7182
  })
7177
7183
  });
7178
- }, jc = ({
7184
+ }, Kc = ({
7179
7185
  value: e,
7180
7186
  field: t,
7181
7187
  requiredStyle: r,
@@ -7260,7 +7266,7 @@ const {
7260
7266
  })
7261
7267
  })]
7262
7268
  });
7263
- }, Kc = (e) => {
7269
+ }, Yc = (e) => {
7264
7270
  const {
7265
7271
  ooui: t
7266
7272
  } = e, {
@@ -7274,7 +7280,7 @@ const {
7274
7280
  children: [o ? /* @__PURE__ */ n(o, {}) : null, r]
7275
7281
  })
7276
7282
  });
7277
- }, Yc = ({
7283
+ }, Wc = ({
7278
7284
  model: e,
7279
7285
  context: t,
7280
7286
  locale: r,
@@ -7283,7 +7289,7 @@ const {
7283
7289
  limit: s,
7284
7290
  onClose: a
7285
7291
  }) => {
7286
- const l = de({}), u = de(/* @__PURE__ */ new Map()), c = Le(
7292
+ const l = de({}), u = de(/* @__PURE__ */ new Map()), c = $e(
7287
7293
  async (g) => {
7288
7294
  if (g.selectedKeys === void 0 || g.selectedKeys.length === 0) {
7289
7295
  ct(Oe("selectAtLeastOneField", r));
@@ -7295,7 +7301,7 @@ const {
7295
7301
  ]);
7296
7302
  const { datas: O } = await H.getHandler().exportData({
7297
7303
  model: e,
7298
- fields: Jc({
7304
+ fields: Zc({
7299
7305
  keys: g.selectedKeys,
7300
7306
  fields: l.current
7301
7307
  }),
@@ -7305,18 +7311,18 @@ const {
7305
7311
  format: g.exportType
7306
7312
  });
7307
7313
  a(), await new Promise((w) => setTimeout(w, 200));
7308
- const I = await Vt(O);
7314
+ const I = await Dt(O);
7309
7315
  mn(O, I.mime);
7310
7316
  },
7311
7317
  [r, e, o, s, t, a]
7312
- ), f = Le(async () => {
7318
+ ), f = $e(async () => {
7313
7319
  const g = await H.getHandler().getFields({
7314
7320
  model: e,
7315
7321
  context: t,
7316
7322
  fields: []
7317
7323
  });
7318
7324
  return l.current["/"] = g, _r({ fields: g });
7319
- }, [e, t, l]), d = Le(
7325
+ }, [e, t, l]), d = $e(
7320
7326
  async (g) => {
7321
7327
  const O = kn(g, l.current)[Rn(g)], I = O.relation, w = await H.getHandler().getFields({
7322
7328
  model: I,
@@ -7324,7 +7330,7 @@ const {
7324
7330
  fields: []
7325
7331
  });
7326
7332
  for (const [V, D] of Object.entries(w))
7327
- w[V].string = Uc({
7333
+ w[V].string = Gc({
7328
7334
  parentTitle: O.string,
7329
7335
  title: D.string
7330
7336
  });
@@ -7334,8 +7340,8 @@ const {
7334
7340
  });
7335
7341
  },
7336
7342
  [l.current, e, t]
7337
- ), m = Le(async () => {
7338
- const g = await Gc({ model: e, context: t }), y = await zc({
7343
+ ), m = $e(async () => {
7344
+ const g = await qc({ model: e, context: t }), y = await Jc({
7339
7345
  predefinedExports: g,
7340
7346
  fields: l.current,
7341
7347
  onGetFieldChilds: d
@@ -7353,7 +7359,7 @@ const {
7353
7359
  })),
7354
7360
  keysWithChilds: y
7355
7361
  };
7356
- }, [l.current]), v = Le(
7362
+ }, [l.current]), v = $e(
7357
7363
  async (g) => {
7358
7364
  const y = await h("ir.exports"), O = await h("ir.exports.line"), I = await H.getHandler().create({
7359
7365
  model: "ir.exports",
@@ -7377,7 +7383,7 @@ const {
7377
7383
  ), { ...g, id: I };
7378
7384
  },
7379
7385
  []
7380
- ), p = Le(
7386
+ ), p = $e(
7381
7387
  async (g) => {
7382
7388
  await H.getHandler().delete({
7383
7389
  model: "ir.exports",
@@ -7385,7 +7391,7 @@ const {
7385
7391
  });
7386
7392
  },
7387
7393
  []
7388
- ), h = Le(
7394
+ ), h = $e(
7389
7395
  async (g) => {
7390
7396
  if (u.current.has(g))
7391
7397
  return u.current.get(g);
@@ -7417,7 +7423,7 @@ const {
7417
7423
  continue;
7418
7424
  const s = Vo(o);
7419
7425
  r.push({
7420
- key: Wc({ key: i, parentKey: t }),
7426
+ key: Uc({ key: i, parentKey: t }),
7421
7427
  title: o.string,
7422
7428
  tooltip: o.help,
7423
7429
  required: o.required,
@@ -7425,7 +7431,7 @@ const {
7425
7431
  });
7426
7432
  }
7427
7433
  return r;
7428
- }, Vo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Wc = ({
7434
+ }, Vo = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Uc = ({
7429
7435
  parentKey: e,
7430
7436
  key: t
7431
7437
  }) => `${e ? e + "/" : ""}${t}`, Lt = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Rn = (e) => {
@@ -7433,10 +7439,10 @@ const {
7433
7439
  return e;
7434
7440
  const t = e.split("/");
7435
7441
  return t[t.length - 1];
7436
- }, kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lt(e)], Uc = ({
7442
+ }, kn = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[Lt(e)], Gc = ({
7437
7443
  title: e,
7438
7444
  parentTitle: t
7439
- }) => `${t ? t + " \u2192 " : ""}${e}`, Gc = async ({
7445
+ }) => `${t ? t + " \u2192 " : ""}${e}`, qc = async ({
7440
7446
  model: e,
7441
7447
  context: t
7442
7448
  }) => {
@@ -7456,10 +7462,10 @@ const {
7456
7462
  key: o.find((u) => u.id === a).name
7457
7463
  }))
7458
7464
  }));
7459
- }, qc = ({
7465
+ }, zc = ({
7460
7466
  fields: e,
7461
7467
  keys: t
7462
- }) => Zc([
7468
+ }) => Xc([
7463
7469
  ...new Set(
7464
7470
  t.filter((r) => {
7465
7471
  var i, o, s;
@@ -7473,27 +7479,27 @@ const {
7473
7479
  }
7474
7480
  }).map((r) => Lt(r))
7475
7481
  )
7476
- ]), zc = async ({
7482
+ ]), Jc = async ({
7477
7483
  predefinedExports: e,
7478
7484
  fields: t,
7479
7485
  onGetFieldChilds: r
7480
7486
  }) => {
7481
7487
  const i = e.flatMap(
7482
7488
  (a) => a.fields.map((l) => l.key)
7483
- ), o = qc({
7489
+ ), o = zc({
7484
7490
  fields: t,
7485
7491
  keys: i
7486
7492
  }), s = [];
7487
7493
  for (const a of o)
7488
7494
  s.push({ key: a, childs: await r(a) });
7489
7495
  return s;
7490
- }, Jc = ({
7496
+ }, Zc = ({
7491
7497
  keys: e,
7492
7498
  fields: t
7493
7499
  }) => e.map((r) => {
7494
7500
  const i = Rn(r), s = kn(r, t)[i];
7495
7501
  return Vo(s) ? `${r}/id` : r;
7496
- }), Zc = (e) => {
7502
+ }), Xc = (e) => {
7497
7503
  const t = /* @__PURE__ */ new Map(), r = [];
7498
7504
  for (const i of e) {
7499
7505
  const o = i.split("/");
@@ -7507,7 +7513,7 @@ const {
7507
7513
  const s = i.split("/").length, a = o.split("/").length;
7508
7514
  return s - a;
7509
7515
  }), r;
7510
- }, Xc = (e) => {
7516
+ }, Qc = (e) => {
7511
7517
  const {
7512
7518
  visible: t,
7513
7519
  locale: r,
@@ -7526,7 +7532,7 @@ const {
7526
7532
  onGetPredefinedExports: p,
7527
7533
  onSavePredefinedExport: h,
7528
7534
  onRemovePredefinedExport: g
7529
- } = Yc({
7535
+ } = Wc({
7530
7536
  model: o,
7531
7537
  context: s,
7532
7538
  domain: u,
@@ -7549,14 +7555,14 @@ const {
7549
7555
  onSavePredefinedExport: h,
7550
7556
  onRemovePredefinedExport: g
7551
7557
  });
7552
- }, Qc = (e) => {
7558
+ }, ed = (e) => {
7553
7559
  const {
7554
7560
  ooui: t
7555
7561
  } = e;
7556
7562
  return /* @__PURE__ */ n(Co, {
7557
7563
  ooui: t
7558
7564
  });
7559
- }, ed = (e) => {
7565
+ }, td = (e) => {
7560
7566
  const {
7561
7567
  ooui: t
7562
7568
  } = e;
@@ -7673,8 +7679,8 @@ var Ao = { exports: {} };
7673
7679
  return new Date((_ === "X" ? 1e3 : 1) * M);
7674
7680
  var k = p(_)(M), j = k.year, q = k.month, W = k.day, z = k.hours, U = k.minutes, L = k.seconds, B = k.milliseconds, ee = k.zone, Z = new Date(), ie = W || (j || q ? 1 : Z.getDate()), Q = j || Z.getFullYear(), J = 0;
7675
7681
  j && !q || (J = q > 0 ? q - 1 : Z.getMonth());
7676
- var fe = z || 0, be = U || 0, $e = L || 0, Ie = B || 0;
7677
- return ee ? new Date(Date.UTC(Q, J, ie, fe, be, $e, Ie + 60 * ee.offset * 1e3)) : N ? new Date(Date.UTC(Q, J, ie, fe, be, $e, Ie)) : new Date(Q, J, ie, fe, be, $e, Ie);
7682
+ var fe = z || 0, be = U || 0, Ee = L || 0, Ie = B || 0;
7683
+ return ee ? new Date(Date.UTC(Q, J, ie, fe, be, Ee, Ie + 60 * ee.offset * 1e3)) : N ? new Date(Date.UTC(Q, J, ie, fe, be, Ee, Ie)) : new Date(Q, J, ie, fe, be, Ee, Ie);
7678
7684
  } catch {
7679
7685
  return new Date("");
7680
7686
  }
@@ -7695,24 +7701,24 @@ var Ao = { exports: {} };
7695
7701
  };
7696
7702
  });
7697
7703
  })(Ao);
7698
- const td = Ao.exports;
7699
- dt.extend(td);
7700
- const nd = (e) => {
7704
+ const nd = Ao.exports;
7705
+ dt.extend(nd);
7706
+ const rd = (e) => {
7701
7707
  const {
7702
7708
  ooui: t
7703
7709
  } = e;
7704
7710
  return /* @__PURE__ */ n(ve, {
7705
7711
  ...e,
7706
- children: /* @__PURE__ */ n(rd, {
7712
+ children: /* @__PURE__ */ n(od, {
7707
7713
  ooui: t
7708
7714
  })
7709
7715
  });
7710
- }, rd = (e) => /* @__PURE__ */ n(Dr, {
7716
+ }, od = (e) => /* @__PURE__ */ n(Dr, {
7711
7717
  onChange: (r, i) => {
7712
7718
  e.onChange && e.onChange(i);
7713
7719
  },
7714
7720
  value: e.value ? dt(e.value, "HH:mm:ss") : void 0
7715
- }), od = (e) => {
7721
+ }), id = (e) => {
7716
7722
  const {
7717
7723
  ooui: t
7718
7724
  } = e, {
@@ -7721,11 +7727,11 @@ const nd = (e) => {
7721
7727
  return /* @__PURE__ */ n(ve, {
7722
7728
  required: r,
7723
7729
  ...e,
7724
- children: /* @__PURE__ */ n(id, {
7730
+ children: /* @__PURE__ */ n(sd, {
7725
7731
  ooui: t
7726
7732
  })
7727
7733
  });
7728
- }, id = (e) => {
7734
+ }, sd = (e) => {
7729
7735
  const {
7730
7736
  value: t,
7731
7737
  onChange: r,
@@ -7782,8 +7788,8 @@ const nd = (e) => {
7782
7788
  })]
7783
7789
  });
7784
7790
  }, {
7785
- useToken: sd
7786
- } = Pe, ad = (e) => {
7791
+ useToken: ad
7792
+ } = Pe, ld = (e) => {
7787
7793
  const {
7788
7794
  ooui: t
7789
7795
  } = e, {
@@ -7792,11 +7798,11 @@ const nd = (e) => {
7792
7798
  return /* @__PURE__ */ n(ve, {
7793
7799
  required: r,
7794
7800
  ...e,
7795
- children: /* @__PURE__ */ n(ld, {
7801
+ children: /* @__PURE__ */ n(cd, {
7796
7802
  ooui: t
7797
7803
  })
7798
7804
  });
7799
- }, ld = (e) => {
7805
+ }, cd = (e) => {
7800
7806
  const {
7801
7807
  ooui: t,
7802
7808
  value: r,
@@ -7807,7 +7813,7 @@ const nd = (e) => {
7807
7813
  filenameField: a
7808
7814
  } = t, {
7809
7815
  token: l
7810
- } = sd(), u = s && !o ? {
7816
+ } = ad(), u = s && !o ? {
7811
7817
  backgroundColor: l.colorPrimaryBg
7812
7818
  } : void 0, c = de(null), {
7813
7819
  setFieldValue: f,
@@ -7818,11 +7824,11 @@ const nd = (e) => {
7818
7824
  i == null || i(I);
7819
7825
  };
7820
7826
  async function h() {
7821
- const I = await Vt(r), w = `data:${I == null ? void 0 : I.mime};base64,${r}`, V = document.createElement("a"), D = d(a), E = d("name");
7827
+ const I = await Dt(r), w = `data:${I == null ? void 0 : I.mime};base64,${r}`, V = document.createElement("a"), D = d(a), E = d("name");
7822
7828
  V.href = w, V.download = D || E, V.click();
7823
7829
  }
7824
7830
  async function g() {
7825
- const I = await Vt(r);
7831
+ const I = await Dt(r);
7826
7832
  mn(r, I.mime);
7827
7833
  }
7828
7834
  async function y(I) {
@@ -7920,7 +7926,7 @@ function Zn(e) {
7920
7926
  children: v.type.charAt(0).toUpperCase() + v.type.slice(1)
7921
7927
  }), /* @__PURE__ */ n(le, {
7922
7928
  flex: "none",
7923
- children: /* @__PURE__ */ n(kt, {
7929
+ children: /* @__PURE__ */ n(Rt, {
7924
7930
  style: {
7925
7931
  opacity: t.view_id === v.view_id ? 1 : 0
7926
7932
  }
@@ -7981,7 +7987,7 @@ function Zn(e) {
7981
7987
  borderTopLeftRadius: 0,
7982
7988
  borderBottomLeftRadius: 0
7983
7989
  },
7984
- icon: /* @__PURE__ */ n(Rt, {
7990
+ icon: /* @__PURE__ */ n(At, {
7985
7991
  style: {
7986
7992
  fontSize: "0.5em"
7987
7993
  }
@@ -7991,7 +7997,7 @@ function Zn(e) {
7991
7997
  })]
7992
7998
  });
7993
7999
  }
7994
- function Dt(e) {
8000
+ function It(e) {
7995
8001
  const {
7996
8002
  icon: t,
7997
8003
  tooltip: r,
@@ -8020,7 +8026,7 @@ function Dt(e) {
8020
8026
  overlay: l(),
8021
8027
  disabled: a || !i || i.length === 0,
8022
8028
  children: /* @__PURE__ */ P(_e, {
8023
- children: [t, " ", s, " ", /* @__PURE__ */ n(Rt, {})]
8029
+ children: [t, " ", s, " ", /* @__PURE__ */ n(At, {})]
8024
8030
  })
8025
8031
  });
8026
8032
  }
@@ -8071,13 +8077,13 @@ function Ro(e) {
8071
8077
  });
8072
8078
  }
8073
8079
  const {
8074
- confirm: cd
8075
- } = Ge, dd = ({
8080
+ confirm: dd
8081
+ } = Ge, ud = ({
8076
8082
  onOk: e,
8077
8083
  onCancel: t,
8078
8084
  lang: r
8079
8085
  }) => {
8080
- cd({
8086
+ dd({
8081
8087
  title: Oe("unsavedChanges", r),
8082
8088
  icon: /* @__PURE__ */ n(pt, {}),
8083
8089
  centered: !0,
@@ -8103,7 +8109,7 @@ async function ko(e, t, r) {
8103
8109
  children: ["ID: " + a, " ", /* @__PURE__ */ n("br", {}), r("createdBy") + ": " + s[1], " ", /* @__PURE__ */ n("br", {}), r("creationDate") + ": " + o, " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedBy") + ": " + u[1], " ", /* @__PURE__ */ n("br", {}), r("lastUpdatedDate") + ": " + l]
8104
8110
  }));
8105
8111
  }
8106
- const ud = (e) => {
8112
+ const fd = (e) => {
8107
8113
  const {
8108
8114
  numberOfAttachments: t,
8109
8115
  disabled: r
@@ -8112,7 +8118,7 @@ const ud = (e) => {
8112
8118
  lang: o
8113
8119
  } = Y(we), [s, a] = T(!1), l = /* @__PURE__ */ P(_e, {
8114
8120
  disabled: r,
8115
- children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(Rt, {
8121
+ children: [/* @__PURE__ */ n(Wr, {}), `(${t})`, /* @__PURE__ */ n(At, {
8116
8122
  style: {
8117
8123
  fontSize: 12
8118
8124
  }
@@ -8122,12 +8128,12 @@ const ud = (e) => {
8122
8128
  onVisibleChange: (u) => a(u),
8123
8129
  visible: s,
8124
8130
  placement: "bottom",
8125
- content: fd(e, a, o),
8131
+ content: md(e, a, o),
8126
8132
  title: i("attachments"),
8127
8133
  arrowContent: null,
8128
8134
  children: l
8129
8135
  });
8130
- }, fd = (e, t, r) => {
8136
+ }, md = (e, t, r) => {
8131
8137
  const {
8132
8138
  attachments: i = [],
8133
8139
  loading: o,
@@ -8136,7 +8142,7 @@ const ud = (e) => {
8136
8142
  onOpenAttachmentDetail: l,
8137
8143
  onListAllAttachments: u
8138
8144
  } = e;
8139
- return o ? /* @__PURE__ */ n(Me, {
8145
+ return o ? /* @__PURE__ */ n(Le, {
8140
8146
  style: {
8141
8147
  padding: 20
8142
8148
  }
@@ -8213,7 +8219,7 @@ const ud = (e) => {
8213
8219
  })]
8214
8220
  });
8215
8221
  };
8216
- function md(e) {
8222
+ function hd(e) {
8217
8223
  const {
8218
8224
  attachments: t,
8219
8225
  disabled: r = !1,
@@ -8224,7 +8230,7 @@ function md(e) {
8224
8230
  formRef: a
8225
8231
  } = Y(Qe), [l, u] = T(!1), [c, f] = T([]), [d, m] = T(!1), {
8226
8232
  t: v
8227
- } = Y(we), p = Le(async () => {
8233
+ } = Y(we), p = $e(async () => {
8228
8234
  u(!0);
8229
8235
  try {
8230
8236
  const y = await H.getHandler().readObjects({
@@ -8243,7 +8249,7 @@ function md(e) {
8243
8249
  Ue(y);
8244
8250
  }
8245
8251
  u(!1);
8246
- }, t), h = Le(async (y) => {
8252
+ }, t), h = $e(async (y) => {
8247
8253
  if (y.link) {
8248
8254
  window.open(y.link);
8249
8255
  return;
@@ -8261,17 +8267,17 @@ function md(e) {
8261
8267
  }
8262
8268
  if (m(!1), !!O)
8263
8269
  if (O.datas) {
8264
- const I = await Vt(O.datas);
8270
+ const I = await Dt(O.datas);
8265
8271
  mn(O.datas, I.mime);
8266
8272
  } else
8267
8273
  s(O);
8268
- }, []), g = Le(async (y) => {
8274
+ }, []), g = $e(async (y) => {
8269
8275
  s(y);
8270
8276
  }, []);
8271
8277
  return pe(() => {
8272
8278
  p();
8273
8279
  }, [p]), /* @__PURE__ */ P(ne, {
8274
- children: [/* @__PURE__ */ n(ud, {
8280
+ children: [/* @__PURE__ */ n(fd, {
8275
8281
  numberOfAttachments: t.length,
8276
8282
  attachments: c,
8277
8283
  disabled: r,
@@ -8287,11 +8293,11 @@ function md(e) {
8287
8293
  closable: !1,
8288
8294
  centered: !0,
8289
8295
  maskClosable: !1,
8290
- children: /* @__PURE__ */ n(Me, {})
8296
+ children: /* @__PURE__ */ n(Le, {})
8291
8297
  })]
8292
8298
  });
8293
8299
  }
8294
- function hd({
8300
+ function pd({
8295
8301
  toolbar: e
8296
8302
  }) {
8297
8303
  const {
@@ -8322,7 +8328,7 @@ function hd({
8322
8328
  } = Y(Qe), {
8323
8329
  t: C,
8324
8330
  lang: S
8325
- } = Y(we), x = Y(Et), {
8331
+ } = Y(we), x = Y(Mt), {
8326
8332
  processAction: $
8327
8333
  } = x || {}, R = Y(st), {
8328
8334
  openRelate: F,
@@ -8330,7 +8336,7 @@ function hd({
8330
8336
  } = R || {};
8331
8337
  function M(L) {
8332
8338
  if (s) {
8333
- dd({
8339
+ ud({
8334
8340
  lang: S,
8335
8341
  onOk: () => {
8336
8342
  L();
@@ -8413,7 +8419,7 @@ function hd({
8413
8419
  return r ? /* @__PURE__ */ P(Ye, {
8414
8420
  wrap: !0,
8415
8421
  children: [O && /* @__PURE__ */ P(ne, {
8416
- children: [/* @__PURE__ */ n(Me, {}), Tt(), Tt()]
8422
+ children: [/* @__PURE__ */ n(Le, {}), St(), St()]
8417
8423
  }), /* @__PURE__ */ n(Ro, {
8418
8424
  disabled: a || O || p || h
8419
8425
  }), /* @__PURE__ */ n(qe, {
@@ -8434,7 +8440,7 @@ function hd({
8434
8440
  disabled: a || l === void 0 || p || h || O,
8435
8441
  loading: p,
8436
8442
  onClick: j
8437
- }), Tt(), /* @__PURE__ */ n(qe, {
8443
+ }), St(), /* @__PURE__ */ n(qe, {
8438
8444
  icon: /* @__PURE__ */ n(Ur, {}),
8439
8445
  tooltip: C("showLogs"),
8440
8446
  disabled: a || l === void 0 || p || h || O,
@@ -8452,7 +8458,7 @@ function hd({
8452
8458
  w.current.fetchValues();
8453
8459
  });
8454
8460
  }
8455
- }), Tt(), /* @__PURE__ */ n(Zn, {
8461
+ }), St(), /* @__PURE__ */ n(Zn, {
8456
8462
  currentView: r,
8457
8463
  previousView: D,
8458
8464
  availableViews: t,
@@ -8461,7 +8467,7 @@ function hd({
8461
8467
  },
8462
8468
  disabled: z,
8463
8469
  formHasChanges: s
8464
- }), Tt(), /* @__PURE__ */ P(Ye, {
8470
+ }), St(), /* @__PURE__ */ P(Ye, {
8465
8471
  children: [/* @__PURE__ */ n(qe, {
8466
8472
  icon: /* @__PURE__ */ n(Kr, {}),
8467
8473
  tooltip: C("previous"),
@@ -8479,17 +8485,17 @@ function hd({
8479
8485
  _(N);
8480
8486
  }
8481
8487
  })]
8482
- }), Tt(), /* @__PURE__ */ n(Dt, {
8488
+ }), St(), /* @__PURE__ */ n(It, {
8483
8489
  icon: /* @__PURE__ */ n(jn, {}),
8484
8490
  disabled: z,
8485
8491
  tooltip: C("actions"),
8486
8492
  items: e == null ? void 0 : e.action,
8487
8493
  onItemClick: async (L) => {
8488
- !L || !(await Ft({
8494
+ !L || !(await Tt({
8489
8495
  onFormSave: o
8490
8496
  })).succeed || U(L);
8491
8497
  }
8492
- }), /* @__PURE__ */ n(Dt, {
8498
+ }), /* @__PURE__ */ n(It, {
8493
8499
  icon: /* @__PURE__ */ n(Kn, {}),
8494
8500
  disabled: z,
8495
8501
  tooltip: C("reports"),
@@ -8497,7 +8503,7 @@ function hd({
8497
8503
  onItemClick: async (L) => {
8498
8504
  if (!L)
8499
8505
  return;
8500
- const B = await Ft({
8506
+ const B = await Tt({
8501
8507
  onFormSave: o
8502
8508
  });
8503
8509
  !B.succeed || U({
@@ -8508,13 +8514,13 @@ function hd({
8508
8514
  }
8509
8515
  });
8510
8516
  }
8511
- }), /* @__PURE__ */ n(Dt, {
8517
+ }), /* @__PURE__ */ n(It, {
8512
8518
  icon: /* @__PURE__ */ n(jr, {}),
8513
8519
  disabled: z,
8514
8520
  tooltip: C("related"),
8515
8521
  items: e == null ? void 0 : e.relate,
8516
8522
  onItemClick: async (L) => {
8517
- !L || !(await Ft({
8523
+ !L || !(await Tt({
8518
8524
  onFormSave: o
8519
8525
  })).succeed || F({
8520
8526
  relateData: L,
@@ -8524,11 +8530,11 @@ function hd({
8524
8530
  action_type: L.type
8525
8531
  });
8526
8532
  }
8527
- }), /* @__PURE__ */ n(md, {
8533
+ }), /* @__PURE__ */ n(hd, {
8528
8534
  disabled: z,
8529
8535
  attachments: I,
8530
8536
  onAddNewAttachment: async () => {
8531
- const L = await Ft({
8537
+ const L = await Tt({
8532
8538
  onFormSave: o
8533
8539
  });
8534
8540
  if (!L.succeed)
@@ -8547,7 +8553,7 @@ function hd({
8547
8553
  });
8548
8554
  },
8549
8555
  onListAllAttachments: async () => {
8550
- const L = await Ft({
8556
+ const L = await Tt({
8551
8557
  onFormSave: o
8552
8558
  });
8553
8559
  if (!L.succeed)
@@ -8560,7 +8566,7 @@ function hd({
8560
8566
  });
8561
8567
  },
8562
8568
  onViewAttachmentDetails: async (L) => {
8563
- !(await Ft({
8569
+ !(await Tt({
8564
8570
  onFormSave: o
8565
8571
  })).succeed || A({
8566
8572
  model: "ir.attachment",
@@ -8571,12 +8577,12 @@ function hd({
8571
8577
  })]
8572
8578
  }) : null;
8573
8579
  }
8574
- function Tt() {
8580
+ function St() {
8575
8581
  return /* @__PURE__ */ n("div", {
8576
8582
  className: "inline-block w-2"
8577
8583
  });
8578
8584
  }
8579
- async function Ft({
8585
+ async function Tt({
8580
8586
  onFormSave: e
8581
8587
  }) {
8582
8588
  const t = await (e == null ? void 0 : e());
@@ -8589,7 +8595,7 @@ async function Ft({
8589
8595
  };
8590
8596
  }
8591
8597
  const {
8592
- useToken: pd
8598
+ useToken: gd
8593
8599
  } = Pe, Mo = (e) => {
8594
8600
  const {
8595
8601
  ooui: t,
@@ -8603,7 +8609,7 @@ const {
8603
8609
  required: u
8604
8610
  } = t, {
8605
8611
  token: c
8606
- } = pd(), f = u && !l ? {
8612
+ } = gd(), f = u && !l ? {
8607
8613
  backgroundColor: c.colorPrimaryBg
8608
8614
  } : void 0, d = Y(Ne), {
8609
8615
  elementHasLostFocus: m
@@ -8621,7 +8627,7 @@ const {
8621
8627
  children: [l ? null : /* @__PURE__ */ n(le, {
8622
8628
  flex: "32px",
8623
8629
  children: v ? /* @__PURE__ */ n(_e, {
8624
- icon: /* @__PURE__ */ n(kt, {}),
8630
+ icon: /* @__PURE__ */ n(Rt, {}),
8625
8631
  onClick: () => {
8626
8632
  o(r) && (p(!1), g(!1));
8627
8633
  },
@@ -8666,7 +8672,7 @@ const {
8666
8672
  })
8667
8673
  })]
8668
8674
  });
8669
- }, gd = (e) => {
8675
+ }, yd = (e) => {
8670
8676
  const {
8671
8677
  ooui: t
8672
8678
  } = e, {
@@ -8680,7 +8686,7 @@ const {
8680
8686
  valueValidator: (i) => i ? Pi(i) : !1
8681
8687
  })
8682
8688
  });
8683
- }, yd = (e) => {
8689
+ }, vd = (e) => {
8684
8690
  const {
8685
8691
  ooui: t
8686
8692
  } = e, {
@@ -8695,7 +8701,7 @@ const {
8695
8701
  valueValidator: (i) => i ? Hi(i) : !1
8696
8702
  })
8697
8703
  });
8698
- }, vd = (e) => {
8704
+ }, wd = (e) => {
8699
8705
  const {
8700
8706
  visible: t,
8701
8707
  onIdSubmitted: r,
@@ -8753,7 +8759,7 @@ const {
8753
8759
  style: {
8754
8760
  marginLeft: 15
8755
8761
  },
8756
- icon: /* @__PURE__ */ n(kt, {}),
8762
+ icon: /* @__PURE__ */ n(Rt, {}),
8757
8763
  htmlType: "submit",
8758
8764
  type: "primary",
8759
8765
  disabled: o,
@@ -8765,7 +8771,7 @@ const {
8765
8771
  })
8766
8772
  });
8767
8773
  }, {
8768
- useToken: wd
8774
+ useToken: bd
8769
8775
  } = Pe;
8770
8776
  function Eo(e) {
8771
8777
  const {
@@ -8773,7 +8779,7 @@ function Eo(e) {
8773
8779
  ...r
8774
8780
  } = e, {
8775
8781
  token: i
8776
- } = wd();
8782
+ } = bd();
8777
8783
  return /* @__PURE__ */ P("div", {
8778
8784
  style: {
8779
8785
  position: "relative"
@@ -8807,7 +8813,7 @@ function Eo(e) {
8807
8813
  })]
8808
8814
  });
8809
8815
  }
8810
- function bd({
8816
+ function xd({
8811
8817
  refreshGraph: e
8812
8818
  }) {
8813
8819
  const {
@@ -8858,9 +8864,9 @@ function bd({
8858
8864
  });
8859
8865
  }
8860
8866
  const {
8861
- useToken: xd
8867
+ useToken: Cd
8862
8868
  } = Pe, {
8863
- Title: Cd,
8869
+ Title: Sd,
8864
8870
  Text: Xt
8865
8871
  } = an;
8866
8872
  function yn(e) {
@@ -8879,7 +8885,7 @@ function yn(e) {
8879
8885
  t: f
8880
8886
  } = Y(we), {
8881
8887
  token: d
8882
- } = xd();
8888
+ } = Cd();
8883
8889
  function m() {
8884
8890
  if ((o == null ? void 0 : o.type) === "form")
8885
8891
  return s ? u === 0 ? /* @__PURE__ */ P(ne, {
@@ -8934,7 +8940,7 @@ function yn(e) {
8934
8940
  align: "middle",
8935
8941
  children: [/* @__PURE__ */ P(le, {
8936
8942
  flex: 2,
8937
- children: [/* @__PURE__ */ n(Cd, {
8943
+ children: [/* @__PURE__ */ n(Sd, {
8938
8944
  level: 3,
8939
8945
  style: {
8940
8946
  marginBottom: 0
@@ -8953,7 +8959,7 @@ function yn(e) {
8953
8959
  })]
8954
8960
  });
8955
8961
  }
8956
- const Sd = (e) => {
8962
+ const Td = (e) => {
8957
8963
  const {
8958
8964
  viewData: t,
8959
8965
  visible: r,
@@ -9021,7 +9027,7 @@ const Sd = (e) => {
9021
9027
  return !r || !t ? null : /* @__PURE__ */ P(ne, {
9022
9028
  children: [/* @__PURE__ */ n(yn, {
9023
9029
  title: t.name,
9024
- children: /* @__PURE__ */ n(bd, {
9030
+ children: /* @__PURE__ */ n(xd, {
9025
9031
  refreshGraph: () => {
9026
9032
  u.current.refresh();
9027
9033
  }
@@ -9044,7 +9050,7 @@ const Sd = (e) => {
9044
9050
  searchVisible: g,
9045
9051
  searchValues: S,
9046
9052
  showLimitOptions: !1
9047
- }), k ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(gn, {
9053
+ }), k ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(gn, {
9048
9054
  ref: u,
9049
9055
  view_id: t.view_id,
9050
9056
  model: i,
@@ -9054,7 +9060,7 @@ const Sd = (e) => {
9054
9060
  manualIds: R ? v == null ? void 0 : v.map((j) => j.id) : void 0
9055
9061
  })]
9056
9062
  });
9057
- }, Td = (e) => {
9063
+ }, Fd = (e) => {
9058
9064
  const {
9059
9065
  visible: t,
9060
9066
  formRef: r,
@@ -9071,7 +9077,7 @@ const Sd = (e) => {
9071
9077
  } = e;
9072
9078
  return t ? /* @__PURE__ */ P(ne, {
9073
9079
  children: [/* @__PURE__ */ n(yn, {
9074
- children: /* @__PURE__ */ n(hd, {
9080
+ children: /* @__PURE__ */ n(pd, {
9075
9081
  toolbar: a == null ? void 0 : a.toolbar
9076
9082
  })
9077
9083
  }), /* @__PURE__ */ n(Ut, {
@@ -9090,7 +9096,7 @@ const Sd = (e) => {
9090
9096
  })]
9091
9097
  }) : null;
9092
9098
  };
9093
- function Fd(e) {
9099
+ function Od(e) {
9094
9100
  const {
9095
9101
  onSearch: t,
9096
9102
  disabled: r = !1,
@@ -9157,10 +9163,10 @@ function Fd(e) {
9157
9163
  })
9158
9164
  });
9159
9165
  }
9160
- const Od = Je.createContext({
9166
+ const _d = Je.createContext({
9161
9167
  previewFeatures: !1
9162
9168
  });
9163
- function _d(e) {
9169
+ function Id(e) {
9164
9170
  var z;
9165
9171
  const {
9166
9172
  availableViews: t,
@@ -9192,10 +9198,10 @@ function _d(e) {
9192
9198
  toolbar: S
9193
9199
  } = e, {
9194
9200
  previewFeatures: x
9195
- } = Y(Od), {
9201
+ } = Y(_d), {
9196
9202
  t: $,
9197
9203
  lang: R
9198
- } = Y(we), F = Y(Et), {
9204
+ } = Y(we), F = Y(Mt), {
9199
9205
  processAction: A
9200
9206
  } = F || {}, [M, _] = T(!1), N = y !== void 0 && y.trim().length > 0;
9201
9207
  function k() {
@@ -9259,10 +9265,8 @@ function _d(e) {
9259
9265
  }
9260
9266
  return /* @__PURE__ */ P(Ye, {
9261
9267
  wrap: !0,
9262
- children: [O && /* @__PURE__ */ P(ne, {
9263
- children: [/* @__PURE__ */ n(Me, {}), vt(), vt()]
9264
- }), C ? null : /* @__PURE__ */ P(ne, {
9265
- children: [/* @__PURE__ */ n(Fd, {
9268
+ children: [C ? null : /* @__PURE__ */ P(ne, {
9269
+ children: [/* @__PURE__ */ n(Od, {
9266
9270
  disabled: l || a || O,
9267
9271
  searchText: y,
9268
9272
  onSearch: (U) => {
@@ -9281,7 +9285,7 @@ function _d(e) {
9281
9285
  },
9282
9286
  disabled: l || a || O,
9283
9287
  badgeNumber: v == null ? void 0 : v.length
9284
- }), vt(), /* @__PURE__ */ n(Ro, {
9288
+ }), $t(), /* @__PURE__ */ n(Ro, {
9285
9289
  disabled: O
9286
9290
  }), /* @__PURE__ */ n(qe, {
9287
9291
  icon: /* @__PURE__ */ n(Un, {}),
@@ -9295,7 +9299,7 @@ function _d(e) {
9295
9299
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
9296
9300
  loading: a,
9297
9301
  onClick: k
9298
- }), vt()]
9302
+ }), $t()]
9299
9303
  }), /* @__PURE__ */ n(qe, {
9300
9304
  icon: /* @__PURE__ */ n(Ur, {}),
9301
9305
  tooltip: $("showLogs"),
@@ -9314,7 +9318,7 @@ function _d(e) {
9314
9318
  (U = f == null ? void 0 : f.current) == null || U.refreshResults();
9315
9319
  }
9316
9320
  }), !C && /* @__PURE__ */ P(ne, {
9317
- children: [vt(), /* @__PURE__ */ n(Zn, {
9321
+ children: [$t(), /* @__PURE__ */ n(Zn, {
9318
9322
  currentView: r,
9319
9323
  availableViews: t,
9320
9324
  onChangeView: (U) => {
@@ -9323,7 +9327,7 @@ function _d(e) {
9323
9327
  previousView: w,
9324
9328
  disabled: O
9325
9329
  })]
9326
- }), vt(), /* @__PURE__ */ n(Dt, {
9330
+ }), $t(), /* @__PURE__ */ n(It, {
9327
9331
  icon: /* @__PURE__ */ n(jn, {}),
9328
9332
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
9329
9333
  tooltip: $("actions"),
@@ -9331,7 +9335,7 @@ function _d(e) {
9331
9335
  onItemClick: (U) => {
9332
9336
  !U || W(U);
9333
9337
  }
9334
- }), /* @__PURE__ */ n(Dt, {
9338
+ }), /* @__PURE__ */ n(It, {
9335
9339
  icon: /* @__PURE__ */ n(Kn, {}),
9336
9340
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || O,
9337
9341
  tooltip: $("reports"),
@@ -9346,7 +9350,7 @@ function _d(e) {
9346
9350
  });
9347
9351
  }
9348
9352
  }), x && /* @__PURE__ */ P(ne, {
9349
- children: [vt(), /* @__PURE__ */ n(Dt, {
9353
+ children: [$t(), /* @__PURE__ */ n(It, {
9350
9354
  icon: /* @__PURE__ */ n($r, {
9351
9355
  component: () => /* @__PURE__ */ P("svg", {
9352
9356
  xmlns: "http://www.w3.org/2000/svg",
@@ -9401,7 +9405,7 @@ function _d(e) {
9401
9405
  _(!0);
9402
9406
  },
9403
9407
  disabled: l || a || O || N
9404
- }), /* @__PURE__ */ n(Xc, {
9408
+ }), /* @__PURE__ */ n(Qc, {
9405
9409
  visible: M,
9406
9410
  locale: R,
9407
9411
  onClose: () => _(!1),
@@ -9416,12 +9420,12 @@ function _d(e) {
9416
9420
  })]
9417
9421
  });
9418
9422
  }
9419
- function vt() {
9423
+ function $t() {
9420
9424
  return /* @__PURE__ */ n("div", {
9421
9425
  className: "inline-block w-2"
9422
9426
  });
9423
9427
  }
9424
- const Id = (e) => {
9428
+ const Dd = (e) => {
9425
9429
  const {
9426
9430
  visible: t,
9427
9431
  searchTreeRef: r,
@@ -9442,7 +9446,7 @@ const Id = (e) => {
9442
9446
  } = Y(Qe);
9443
9447
  return t ? /* @__PURE__ */ P(ne, {
9444
9448
  children: [/* @__PURE__ */ n(yn, {
9445
- children: /* @__PURE__ */ n(_d, {
9449
+ children: /* @__PURE__ */ n(Id, {
9446
9450
  toolbar: a == null ? void 0 : a.toolbar,
9447
9451
  parentContext: o,
9448
9452
  treeExpandable: (a == null ? void 0 : a.isExpandable) || !1
@@ -9468,7 +9472,7 @@ const Id = (e) => {
9468
9472
  }
9469
9473
  })]
9470
9474
  }) : null;
9471
- }, Xn = Je.createContext(null), Dd = (e) => {
9475
+ }, Xn = Je.createContext(null), Vd = (e) => {
9472
9476
  const [t, r] = T(!1), [i, o] = T(!1), {
9473
9477
  children: s,
9474
9478
  dashboardRef: a,
@@ -9486,7 +9490,7 @@ const Id = (e) => {
9486
9490
  children: s
9487
9491
  });
9488
9492
  };
9489
- function Vd() {
9493
+ function Ad() {
9490
9494
  const {
9491
9495
  isLoading: e,
9492
9496
  dashboardRef: t,
@@ -9510,7 +9514,7 @@ function Vd() {
9510
9514
  onClick: () => {
9511
9515
  i(!r);
9512
9516
  }
9513
- }), Ad(), /* @__PURE__ */ n(qe, {
9517
+ }), Rd(), /* @__PURE__ */ n(qe, {
9514
9518
  icon: /* @__PURE__ */ n(Oi, {}),
9515
9519
  tooltip: o("configDashboard"),
9516
9520
  disabled: e,
@@ -9529,25 +9533,25 @@ function Vd() {
9529
9533
  })]
9530
9534
  });
9531
9535
  }
9532
- function Ad() {
9536
+ function Rd() {
9533
9537
  return /* @__PURE__ */ n("div", {
9534
9538
  className: "inline-block w-2"
9535
9539
  });
9536
9540
  }
9537
- const Rd = (e) => {
9541
+ const kd = (e) => {
9538
9542
  const {
9539
9543
  dashboardData: t
9540
9544
  } = e, r = de(), i = Y(st), {
9541
9545
  openShortcut: o
9542
9546
  } = i || {};
9543
- return t ? /* @__PURE__ */ P(Dd, {
9547
+ return t ? /* @__PURE__ */ P(Vd, {
9544
9548
  dashboardRef: r,
9545
9549
  openAction: (s) => {
9546
9550
  o(s);
9547
9551
  },
9548
9552
  children: [/* @__PURE__ */ n(yn, {
9549
- children: /* @__PURE__ */ n(Vd, {})
9550
- }), /* @__PURE__ */ n(Wd, {
9553
+ children: /* @__PURE__ */ n(Ad, {})
9554
+ }), /* @__PURE__ */ n(Ud, {
9551
9555
  ref: r,
9552
9556
  model: t.model,
9553
9557
  id: t.id,
@@ -9556,7 +9560,7 @@ const Rd = (e) => {
9556
9560
  })]
9557
9561
  }) : null;
9558
9562
  };
9559
- async function kd(e) {
9563
+ async function Md(e) {
9560
9564
  const t = await Promise.all(
9561
9565
  e.map(async (i) => {
9562
9566
  try {
@@ -9571,7 +9575,7 @@ async function kd(e) {
9571
9575
  info: t[o]
9572
9576
  })).filter((i) => i.info !== null);
9573
9577
  }
9574
- function Md(e, t) {
9578
+ function Ed(e, t) {
9575
9579
  const {
9576
9580
  domain: r,
9577
9581
  model: i,
@@ -9595,7 +9599,7 @@ function Md(e, t) {
9595
9599
  setCurrentId: J,
9596
9600
  tabs: fe,
9597
9601
  activeKey: be,
9598
- openAction: $e,
9602
+ openAction: Ee,
9599
9603
  onRemoveTab: Ie
9600
9604
  } = ie || {};
9601
9605
  Bi("ctrl+g,command+g", (te) => {
@@ -9607,7 +9611,7 @@ function Md(e, t) {
9607
9611
  function ge(te) {
9608
9612
  O(te), Q == null || Q(te);
9609
9613
  }
9610
- xt(t, () => ({
9614
+ bt(t, () => ({
9611
9615
  canWeClose: Se
9612
9616
  }));
9613
9617
  const se = async () => {
@@ -9627,8 +9631,8 @@ function Md(e, t) {
9627
9631
  viewTuple: me
9628
9632
  });
9629
9633
  }
9630
- const Ee = await kd(Fe);
9631
- for (const me of Ee) {
9634
+ const Me = await Md(Fe);
9635
+ for (const me of Me) {
9632
9636
  if (!me)
9633
9637
  continue;
9634
9638
  const [, Te] = me.viewTuple;
@@ -9689,7 +9693,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9689
9693
  tabKey: u,
9690
9694
  canWeClose: Se
9691
9695
  }), pe(() => {
9692
- const te = I.find((Ee) => Ee.type === "tree"), Fe = I.find((Ee) => c.id ? Ee.type === c.type && Ee.view_id === c.id : Ee.type === c.type);
9696
+ const te = I.find((Me) => Me.type === "tree"), Fe = I.find((Me) => c.id ? Me.type === c.type && Me.view_id === c.id : Me.type === c.type);
9693
9697
  ge(Fe || te), m ? J == null || J(E) : (Be(void 0), R(void 0)), se();
9694
9698
  }, [i, s, m]), pe(() => {
9695
9699
  be === u && (J == null || J(b), Q == null || Q(y));
@@ -9704,25 +9708,25 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9704
9708
  var me;
9705
9709
  z(!0);
9706
9710
  const Fe = F.findIndex((Te) => Te.id === te);
9707
- let Ee;
9711
+ let Me;
9708
9712
  if (Fe === -1) {
9709
9713
  try {
9710
- Ee = (me = await H.getHandler().readObjects({
9714
+ Me = (me = await H.getHandler().readObjects({
9711
9715
  model: i,
9712
9716
  ids: [te],
9713
9717
  context: o
9714
9718
  })) == null ? void 0 : me[0];
9715
9719
  } catch {
9716
9720
  }
9717
- if (!Ee) {
9721
+ if (!Me) {
9718
9722
  z(!1), q(!1), ct(B("idNotFound"));
9719
9723
  return;
9720
9724
  }
9721
9725
  } else
9722
- Ee = F[Fe];
9726
+ Me = F[Fe];
9723
9727
  z(!1), q(!1);
9724
9728
  const ce = s.find((Te) => Te[1] === "form");
9725
- $e({
9729
+ Ee({
9726
9730
  domain: [],
9727
9731
  context: o,
9728
9732
  model: i,
@@ -9742,7 +9746,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9742
9746
  return I.map((te) => {
9743
9747
  switch (te.type) {
9744
9748
  case "form":
9745
- return /* @__PURE__ */ n(Td, {
9749
+ return /* @__PURE__ */ n(Fd, {
9746
9750
  formRef: ee,
9747
9751
  currentId: b,
9748
9752
  visible: y.type === te.type && y.view_id === te.view_id,
@@ -9757,7 +9761,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9757
9761
  setCurrentItemIndex: R
9758
9762
  }, `${te.type}-${te.view_id}`);
9759
9763
  case "tree":
9760
- return /* @__PURE__ */ n(Id, {
9764
+ return /* @__PURE__ */ n(Dd, {
9761
9765
  visible: y.type === te.type && y.view_id === te.view_id,
9762
9766
  limit: g,
9763
9767
  model: i,
@@ -9774,7 +9778,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9774
9778
  setCurrentView: ge
9775
9779
  }, `${te.type}-${te.view_id}`);
9776
9780
  case "graph":
9777
- return /* @__PURE__ */ n(Sd, {
9781
+ return /* @__PURE__ */ n(Td, {
9778
9782
  visible: y.type === te.type && y.view_id === te.view_id,
9779
9783
  viewData: te,
9780
9784
  model: i,
@@ -9784,7 +9788,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9784
9788
  formView: I.find((Fe) => Fe.type === "form")
9785
9789
  }, `${te.type}-${te.view_id}`);
9786
9790
  case "dashboard":
9787
- return /* @__PURE__ */ n(Rd, {
9791
+ return /* @__PURE__ */ n(kd, {
9788
9792
  dashboardData: te
9789
9793
  }, `${te.type}-${te.view_id}`);
9790
9794
  }
@@ -9799,7 +9803,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9799
9803
  ge(te);
9800
9804
  }
9801
9805
  }
9802
- return V ? /* @__PURE__ */ n(Me, {}) : y ? /* @__PURE__ */ P(cl, {
9806
+ return V ? /* @__PURE__ */ n(Le, {}) : y ? /* @__PURE__ */ P(dl, {
9803
9807
  title: a,
9804
9808
  currentView: y,
9805
9809
  setCurrentView: ge,
@@ -9824,7 +9828,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9824
9828
  searchTreeNameSearch: U,
9825
9829
  goToResourceId: Ve,
9826
9830
  limit: g,
9827
- children: [je(), /* @__PURE__ */ n(vd, {
9831
+ children: [je(), /* @__PURE__ */ n(wd, {
9828
9832
  visible: j,
9829
9833
  onIdSubmitted: Ve,
9830
9834
  isSearching: W,
@@ -9834,8 +9838,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9834
9838
  })]
9835
9839
  }) : null;
9836
9840
  }
9837
- const $o = bt(Md);
9838
- async function Ed({
9841
+ const $o = wt(Ed);
9842
+ async function $d({
9839
9843
  actionId: e,
9840
9844
  rootContext: t = {},
9841
9845
  globalValues: r = {}
@@ -9843,7 +9847,7 @@ async function Ed({
9843
9847
  const i = "ir.actions.act_window", o = `${i},${e}`, s = await H.getHandler().getActionData({
9844
9848
  action: o,
9845
9849
  context: t
9846
- }), a = wt({
9850
+ }), a = vt({
9847
9851
  context: s.context,
9848
9852
  values: r,
9849
9853
  fields: {}
@@ -9887,7 +9891,7 @@ async function Ed({
9887
9891
  treeExpandable: v
9888
9892
  };
9889
9893
  }
9890
- const $d = Yi(Wi), Ld = (e) => {
9894
+ const Ld = Yi(Wi), Nd = (e) => {
9891
9895
  const {
9892
9896
  children: t = [],
9893
9897
  onPositionItemsChanged: r
@@ -9901,7 +9905,7 @@ const $d = Yi(Wi), Ld = (e) => {
9901
9905
  children: o
9902
9906
  }, a);
9903
9907
  });
9904
- return /* @__PURE__ */ n($d, {
9908
+ return /* @__PURE__ */ n(Ld, {
9905
9909
  className: "layout",
9906
9910
  cols: {
9907
9911
  lg: 12,
@@ -9924,10 +9928,10 @@ const $d = Yi(Wi), Ld = (e) => {
9924
9928
  children: i
9925
9929
  });
9926
9930
  }, {
9927
- useToken: Nd
9931
+ useToken: Pd
9928
9932
  } = Pe, {
9929
- Text: Pd
9930
- } = an, Hd = (e) => {
9933
+ Text: Hd
9934
+ } = an, Bd = (e) => {
9931
9935
  const {
9932
9936
  title: t,
9933
9937
  children: r,
@@ -9935,7 +9939,7 @@ const $d = Yi(Wi), Ld = (e) => {
9935
9939
  openAction: o
9936
9940
  } = e, {
9937
9941
  token: s
9938
- } = Nd();
9942
+ } = Pd();
9939
9943
  return /* @__PURE__ */ P("div", {
9940
9944
  className: "shadow-md",
9941
9945
  style: {
@@ -9963,7 +9967,7 @@ const $d = Yi(Wi), Ld = (e) => {
9963
9967
  cursor: "grab",
9964
9968
  overflow: "hidden"
9965
9969
  },
9966
- children: /* @__PURE__ */ n(Pd, {
9970
+ children: /* @__PURE__ */ n(Hd, {
9967
9971
  ellipsis: !0,
9968
9972
  children: t
9969
9973
  })
@@ -9987,8 +9991,8 @@ const $d = Yi(Wi), Ld = (e) => {
9987
9991
  })]
9988
9992
  }), r]
9989
9993
  });
9990
- }, Bd = 80;
9991
- function jd(e) {
9994
+ }, jd = 80;
9995
+ function Kd(e) {
9992
9996
  const {
9993
9997
  action: t,
9994
9998
  model: r,
@@ -9997,13 +10001,13 @@ function jd(e) {
9997
10001
  domain: s = [],
9998
10002
  visible: a = !0,
9999
10003
  parentContext: l = {}
10000
- } = e, [u, c] = T(!1), [f, d] = T(!1), [m, v] = T(), [p, h] = T(), [g, y] = T(), [O, I] = T(1), [w, V] = T(0), D = de(Bd), E = de([]), [b, C] = T(0), [S, x] = T([]), [$, R] = T(void 0), [F, A] = T(), [M, _] = T(), [N, k] = T(), [j, q] = T(!1), W = de([]), z = (J) => {
10004
+ } = e, [u, c] = T(!1), [f, d] = T(!1), [m, v] = T(), [p, h] = T(), [g, y] = T(), [O, I] = T(1), [w, V] = T(0), D = de(jd), E = de([]), [b, C] = T(0), [S, x] = T([]), [$, R] = T(void 0), [F, A] = T(), [M, _] = T(), [N, k] = T(), [j, q] = T(!1), W = de([]), z = (J) => {
10001
10005
  q(!0), I(J), V((J - 1) * D.current);
10002
10006
  }, U = async () => {
10003
10007
  const J = W.current.length > 0 ? W.current : s, fe = hn(E.current, J), {
10004
10008
  colors: be
10005
- } = _t(p), {
10006
- totalItems: $e,
10009
+ } = Ot(p), {
10010
+ totalItems: Ee,
10007
10011
  results: Ie,
10008
10012
  attrsEvaluated: Be
10009
10013
  } = await H.getHandler().searchForTree({
@@ -10018,7 +10022,7 @@ function jd(e) {
10018
10022
  }
10019
10023
  });
10020
10024
  R(Qt(Be));
10021
- const ge = It({
10025
+ const ge = _t({
10022
10026
  resultsToSort: Ie,
10023
10027
  sorter: F,
10024
10028
  fields: {
@@ -10027,7 +10031,7 @@ function jd(e) {
10027
10031
  }
10028
10032
  });
10029
10033
  q(!1), x(ge);
10030
- const se = await $e;
10034
+ const se = await Ee;
10031
10035
  C(se);
10032
10036
  }, L = async () => {
10033
10037
  try {
@@ -10105,7 +10109,7 @@ function jd(e) {
10105
10109
  sorter: F,
10106
10110
  onChangeSort: (J) => {
10107
10111
  A == null || A(J);
10108
- const fe = It({
10112
+ const fe = _t({
10109
10113
  resultsToSort: S,
10110
10114
  sorter: J,
10111
10115
  fields: {
@@ -10123,13 +10127,13 @@ function jd(e) {
10123
10127
  message: N,
10124
10128
  type: "error",
10125
10129
  banner: !0
10126
- }) : u ? /* @__PURE__ */ n(Me, {
10130
+ }) : u ? /* @__PURE__ */ n(Le, {
10127
10131
  style: {
10128
10132
  padding: "2rem"
10129
10133
  }
10130
10134
  }) : Q();
10131
10135
  }
10132
- const Kd = (e) => {
10136
+ const Yd = (e) => {
10133
10137
  const {
10134
10138
  model: t
10135
10139
  } = e, [r, i] = T();
@@ -10157,7 +10161,7 @@ const Kd = (e) => {
10157
10161
  })
10158
10162
  });
10159
10163
  }, On = "line_ids";
10160
- function Yd(e, t) {
10164
+ function Wd(e, t) {
10161
10165
  const {
10162
10166
  model: r,
10163
10167
  context: i = {},
@@ -10170,7 +10174,7 @@ function Yd(e, t) {
10170
10174
  } = Y(Xn), h = de(), g = de();
10171
10175
  pe(() => {
10172
10176
  y();
10173
- }, [r, o, i]), xt(t, () => ({
10177
+ }, [r, o, i]), bt(t, () => ({
10174
10178
  refresh: () => {
10175
10179
  y();
10176
10180
  },
@@ -10237,7 +10241,7 @@ function Yd(e, t) {
10237
10241
  values: x
10238
10242
  } = S;
10239
10243
  if (x.action_id && x.action_id.length > 0) {
10240
- const $ = parseInt(x.action_id[0], 10), R = await Ed({
10244
+ const $ = parseInt(x.action_id[0], 10), R = await $d({
10241
10245
  actionId: $,
10242
10246
  rootContext: i
10243
10247
  });
@@ -10302,7 +10306,7 @@ function Yd(e, t) {
10302
10306
  message: f,
10303
10307
  type: "error",
10304
10308
  banner: !0
10305
- })) : u ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Ld, {
10309
+ })) : u ? /* @__PURE__ */ n(rt, {}) : /* @__PURE__ */ n(Nd, {
10306
10310
  onPositionItemsChanged: D,
10307
10311
  children: a.map((b, C) => {
10308
10312
  const {
@@ -10344,12 +10348,12 @@ function Yd(e, t) {
10344
10348
  limit: z
10345
10349
  });
10346
10350
  else if ((W == null ? void 0 : W.type) === "form")
10347
- L = /* @__PURE__ */ n(Kd, {
10351
+ L = /* @__PURE__ */ n(Yd, {
10348
10352
  model: k,
10349
10353
  actionDomain: q
10350
10354
  });
10351
10355
  else if ((W == null ? void 0 : W.type) === "tree")
10352
- L = /* @__PURE__ */ n(jd, {
10356
+ L = /* @__PURE__ */ n(Kd, {
10353
10357
  model: k,
10354
10358
  domain: q,
10355
10359
  view_id: N.filter((Z) => Z[1] === "tree")[0][0],
@@ -10362,12 +10366,12 @@ function Yd(e, t) {
10362
10366
  const [Q, J] = ie, {
10363
10367
  actionId: fe,
10364
10368
  actionType: be,
10365
- title: $e,
10369
+ title: Ee,
10366
10370
  model: Ie
10367
10371
  } = S, Be = {
10368
10372
  action_id: fe,
10369
10373
  action_type: be,
10370
- name: $e,
10374
+ name: Ee,
10371
10375
  res_id: Z.id,
10372
10376
  res_model: Ie,
10373
10377
  view_id: Q,
@@ -10419,7 +10423,7 @@ function Yd(e, t) {
10419
10423
  view_type: ie
10420
10424
  };
10421
10425
  }
10422
- return /* @__PURE__ */ n(Hd, {
10426
+ return /* @__PURE__ */ n(Bd, {
10423
10427
  id: R,
10424
10428
  title: _,
10425
10429
  parms: U,
@@ -10430,18 +10434,18 @@ function Yd(e, t) {
10430
10434
  })
10431
10435
  });
10432
10436
  }
10433
- const Wd = bt(Yd), Ud = (e) => {
10437
+ const Ud = wt(Wd), Gd = (e) => {
10434
10438
  const {
10435
10439
  ooui: t
10436
10440
  } = e;
10437
10441
  return /* @__PURE__ */ n(ve, {
10438
10442
  type: "array",
10439
10443
  ...e,
10440
- children: /* @__PURE__ */ n(Gd, {
10444
+ children: /* @__PURE__ */ n(qd, {
10441
10445
  ooui: t
10442
10446
  })
10443
10447
  });
10444
- }, Gd = (e) => {
10448
+ }, qd = (e) => {
10445
10449
  const {
10446
10450
  value: t,
10447
10451
  ooui: r,
@@ -10457,7 +10461,7 @@ const Wd = bt(Yd), Ud = (e) => {
10457
10461
  } = r, y = Y(Ne), {
10458
10462
  getContext: O
10459
10463
  } = y || {};
10460
- St(() => {
10464
+ Ct(() => {
10461
10465
  w();
10462
10466
  }, [o]);
10463
10467
  const I = (b) => {
@@ -10471,7 +10475,7 @@ const Wd = bt(Yd), Ud = (e) => {
10471
10475
  if (r.domain) {
10472
10476
  const C = await H.getHandler().evalDomain({
10473
10477
  domain: r.domain,
10474
- values: Mt({
10478
+ values: kt({
10475
10479
  fields: y == null ? void 0 : y.getFields(),
10476
10480
  values: y.getPlainValues()
10477
10481
  }),
@@ -10530,7 +10534,7 @@ const Wd = bt(Yd), Ud = (e) => {
10530
10534
  });
10531
10535
  }), I(C);
10532
10536
  };
10533
- return f && a.length === 0 ? /* @__PURE__ */ n(Me, {}) : /* @__PURE__ */ n(ne, {
10537
+ return f && a.length === 0 ? /* @__PURE__ */ n(Le, {}) : /* @__PURE__ */ n(ne, {
10534
10538
  children: /* @__PURE__ */ P("div", {
10535
10539
  className: "flex flex-row",
10536
10540
  children: [/* @__PURE__ */ n(Nt.Group, {
@@ -10562,12 +10566,12 @@ const Wd = bt(Yd), Ud = (e) => {
10562
10566
  })]
10563
10567
  })
10564
10568
  });
10565
- }, qd = (e) => /* @__PURE__ */ n(ve, {
10569
+ }, zd = (e) => /* @__PURE__ */ n(ve, {
10566
10570
  ...e,
10567
- children: /* @__PURE__ */ n(zd, {
10571
+ children: /* @__PURE__ */ n(Jd, {
10568
10572
  ...e
10569
10573
  })
10570
- }), zd = (e) => {
10574
+ }), Jd = (e) => {
10571
10575
  const {
10572
10576
  value: t,
10573
10577
  ooui: r
@@ -10582,7 +10586,7 @@ const Wd = bt(Yd), Ud = (e) => {
10582
10586
  className: "ant-typography"
10583
10587
  })
10584
10588
  });
10585
- }, Jd = (e) => {
10589
+ }, Zd = (e) => {
10586
10590
  const {
10587
10591
  ooui: t
10588
10592
  } = e, {
@@ -10592,11 +10596,11 @@ const Wd = bt(Yd), Ud = (e) => {
10592
10596
  required: r,
10593
10597
  type: "any",
10594
10598
  ...e,
10595
- children: /* @__PURE__ */ n(Zd, {
10599
+ children: /* @__PURE__ */ n(Xd, {
10596
10600
  ...e
10597
10601
  })
10598
10602
  });
10599
- }, Zd = (e) => {
10603
+ }, Xd = (e) => {
10600
10604
  const {
10601
10605
  ooui: t,
10602
10606
  onChange: r,
@@ -10621,7 +10625,7 @@ const Wd = bt(Yd), Ud = (e) => {
10621
10625
  children: u
10622
10626
  })
10623
10627
  });
10624
- }, Xd = (e) => {
10628
+ }, Qd = (e) => {
10625
10629
  const {
10626
10630
  ooui: t
10627
10631
  } = e, {
@@ -10632,13 +10636,13 @@ const Wd = bt(Yd), Ud = (e) => {
10632
10636
  return /* @__PURE__ */ n(ve, {
10633
10637
  ...e,
10634
10638
  valuePropName: "checked",
10635
- children: /* @__PURE__ */ n(Qd, {
10639
+ children: /* @__PURE__ */ n(eu, {
10636
10640
  id: r,
10637
10641
  readOnly: i,
10638
10642
  required: o
10639
10643
  })
10640
10644
  });
10641
- }, Qd = (e) => {
10645
+ }, eu = (e) => {
10642
10646
  const {
10643
10647
  required: t,
10644
10648
  readOnly: r,
@@ -10651,7 +10655,7 @@ const Wd = bt(Yd), Ud = (e) => {
10651
10655
  ...i
10652
10656
  })
10653
10657
  });
10654
- }, eu = (e) => {
10658
+ }, tu = (e) => {
10655
10659
  const {
10656
10660
  ooui: t
10657
10661
  } = e, {
@@ -10661,11 +10665,11 @@ const Wd = bt(Yd), Ud = (e) => {
10661
10665
  required: r,
10662
10666
  type: "any",
10663
10667
  ...e,
10664
- children: /* @__PURE__ */ n(tu, {
10668
+ children: /* @__PURE__ */ n(nu, {
10665
10669
  ...e
10666
10670
  })
10667
10671
  });
10668
- }, tu = (e) => {
10672
+ }, nu = (e) => {
10669
10673
  const {
10670
10674
  ooui: t,
10671
10675
  value: r
@@ -10682,7 +10686,7 @@ const Wd = bt(Yd), Ud = (e) => {
10682
10686
  description: d === l && u === "error" ? c : null
10683
10687
  }))
10684
10688
  });
10685
- }, nu = (e) => {
10689
+ }, ru = (e) => {
10686
10690
  const {
10687
10691
  ooui: t
10688
10692
  } = e, {
@@ -10702,23 +10706,23 @@ const Wd = bt(Yd), Ud = (e) => {
10702
10706
  })
10703
10707
  });
10704
10708
  }, {
10705
- Content: ru
10709
+ Content: ou
10706
10710
  } = li, {
10707
- Title: ou
10711
+ Title: iu
10708
10712
  } = an;
10709
- function iu() {
10713
+ function su() {
10710
10714
  const {
10711
10715
  t: e
10712
10716
  } = Y(we);
10713
- return /* @__PURE__ */ n(ru, {
10717
+ return /* @__PURE__ */ n(ou, {
10714
10718
  className: "m-5 select-none",
10715
- children: /* @__PURE__ */ n(ou, {
10719
+ children: /* @__PURE__ */ n(iu, {
10716
10720
  level: 5,
10717
10721
  children: e("welcome")
10718
10722
  })
10719
10723
  });
10720
10724
  }
10721
- function su(e, t) {
10725
+ function au(e, t) {
10722
10726
  const {
10723
10727
  children: r,
10724
10728
  globalValues: i = {},
@@ -10728,9 +10732,9 @@ function su(e, t) {
10728
10732
  title: Oe("welcome", s),
10729
10733
  key: "welcome",
10730
10734
  closable: !0,
10731
- content: /* @__PURE__ */ n(iu, {})
10735
+ content: /* @__PURE__ */ n(su, {})
10732
10736
  }]), f = de(/* @__PURE__ */ new Map()), d = de();
10733
- xt(t, () => ({
10737
+ bt(t, () => ({
10734
10738
  retrieveAndOpenAction: p,
10735
10739
  openShortcut: y
10736
10740
  }));
@@ -10763,7 +10767,7 @@ function su(e, t) {
10763
10767
  Ue("Action type not supported");
10764
10768
  return;
10765
10769
  }
10766
- const [x, $] = w.split(","), R = parseInt($), F = wt({
10770
+ const [x, $] = w.split(","), R = parseInt($), F = vt({
10767
10771
  context: S.context,
10768
10772
  values: i,
10769
10773
  fields: {}
@@ -10870,7 +10874,7 @@ function su(e, t) {
10870
10874
  } = w, [M, _] = $[0], N = {
10871
10875
  id: M,
10872
10876
  type: _
10873
- }, k = wt({
10877
+ }, k = vt({
10874
10878
  context: S,
10875
10879
  values: {
10876
10880
  ...D,
@@ -10879,7 +10883,7 @@ function su(e, t) {
10879
10883
  fields: V
10880
10884
  }), j = x ? await H.getHandler().evalDomain({
10881
10885
  domain: x,
10882
- values: Mt({
10886
+ values: kt({
10883
10887
  fields: V,
10884
10888
  values: {
10885
10889
  ...D,
@@ -10917,7 +10921,7 @@ function su(e, t) {
10917
10921
  } = w, C = `${D},${V}`, S = await H.getHandler().getActionData({
10918
10922
  action: C,
10919
10923
  context: o
10920
- }), x = wt({
10924
+ }), x = vt({
10921
10925
  context: S.context,
10922
10926
  values: i,
10923
10927
  fields: {}
@@ -11082,7 +11086,7 @@ function su(e, t) {
11082
11086
  }
11083
11087
  return /* @__PURE__ */ n(es, {
11084
11088
  lang: s,
11085
- children: /* @__PURE__ */ n(dl, {
11089
+ children: /* @__PURE__ */ n(ul, {
11086
11090
  openShortcut: y,
11087
11091
  openAction: I,
11088
11092
  openRelate: g,
@@ -11096,7 +11100,7 @@ function su(e, t) {
11096
11100
  onChangeTab: (w) => {
11097
11101
  l(w);
11098
11102
  },
11099
- children: /* @__PURE__ */ n(ml, {
11103
+ children: /* @__PURE__ */ n(hl, {
11100
11104
  ref: d,
11101
11105
  globalValues: i,
11102
11106
  children: r
@@ -11104,10 +11108,10 @@ function su(e, t) {
11104
11108
  })
11105
11109
  });
11106
11110
  }
11107
- const Lu = bt(su), {
11108
- useToken: au
11111
+ const Nu = wt(au), {
11112
+ useToken: lu
11109
11113
  } = Pe;
11110
- function lu(e) {
11114
+ function cu(e) {
11111
11115
  const {
11112
11116
  label: t,
11113
11117
  onClose: r,
@@ -11116,7 +11120,7 @@ function lu(e) {
11116
11120
  onSelected: s
11117
11121
  } = e, {
11118
11122
  token: a
11119
- } = au(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
11123
+ } = lu(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
11120
11124
  return /* @__PURE__ */ P("div", {
11121
11125
  onClick: () => {
11122
11126
  !o && s(i);
@@ -11171,7 +11175,7 @@ function lu(e) {
11171
11175
  })]
11172
11176
  });
11173
11177
  }
11174
- function Nu() {
11178
+ function Pu() {
11175
11179
  const e = Y(st), {
11176
11180
  activeKey: t,
11177
11181
  tabs: r,
@@ -11179,7 +11183,7 @@ function Nu() {
11179
11183
  onChangeTab: o
11180
11184
  } = e || {};
11181
11185
  return /* @__PURE__ */ n(ne, {
11182
- children: r.map((s) => /* @__PURE__ */ n(lu, {
11186
+ children: r.map((s) => /* @__PURE__ */ n(cu, {
11183
11187
  tabKey: s.key,
11184
11188
  label: s.title,
11185
11189
  onClose: i,
@@ -11188,7 +11192,7 @@ function Nu() {
11188
11192
  }, s.key))
11189
11193
  });
11190
11194
  }
11191
- function cu(e) {
11195
+ function du(e) {
11192
11196
  const {
11193
11197
  tab: t
11194
11198
  } = e, r = Y(st), {
@@ -11201,11 +11205,11 @@ function cu(e) {
11201
11205
  children: t.content
11202
11206
  });
11203
11207
  }
11204
- const du = Je.memo(cu, () => !0);
11205
- function Pu() {
11208
+ const uu = Je.memo(du, () => !0);
11209
+ function Hu() {
11206
11210
  const e = Y(st), {
11207
11211
  tabs: t
11208
- } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(du, {
11212
+ } = e || {}, r = (t == null ? void 0 : t.map((i) => /* @__PURE__ */ n(uu, {
11209
11213
  tab: i
11210
11214
  }, i.key))) || null;
11211
11215
  return /* @__PURE__ */ n(ne, {
@@ -11213,8 +11217,8 @@ function Pu() {
11213
11217
  });
11214
11218
  }
11215
11219
  const {
11216
- useToken: uu
11217
- } = Pe, Hu = (e) => {
11220
+ useToken: fu
11221
+ } = Pe, Bu = (e) => {
11218
11222
  const {
11219
11223
  onRetrieveShortcuts: t,
11220
11224
  onCheckIsFavourite: r,
@@ -11224,7 +11228,7 @@ const {
11224
11228
  t: h
11225
11229
  } = Y(we) || {}, {
11226
11230
  token: g
11227
- } = uu(), y = Y(st), {
11231
+ } = fu(), y = Y(st), {
11228
11232
  openShortcut: O,
11229
11233
  tabs: I,
11230
11234
  activeKey: w,
@@ -11314,7 +11318,7 @@ const {
11314
11318
  })
11315
11319
  })
11316
11320
  })]
11317
- }), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n(Me, {
11321
+ }), /* @__PURE__ */ n(He.Divider, {}), d ? /* @__PURE__ */ n(Le, {
11318
11322
  style: {
11319
11323
  padding: "1rem"
11320
11324
  }
@@ -11400,7 +11404,7 @@ const {
11400
11404
  borderTopLeftRadius: 0,
11401
11405
  borderBottomLeftRadius: 0
11402
11406
  },
11403
- icon: /* @__PURE__ */ n(Rt, {
11407
+ icon: /* @__PURE__ */ n(At, {
11404
11408
  style: {
11405
11409
  fontSize: "0.5em"
11406
11410
  }
@@ -11411,57 +11415,57 @@ const {
11411
11415
  });
11412
11416
  };
11413
11417
  export {
11414
- hd as ActionBar,
11415
- ad as Binary,
11418
+ pd as ActionBar,
11419
+ ld as Binary,
11416
11420
  ws as Boolean,
11417
11421
  Jr as Button,
11418
11422
  os as ButtonGroup,
11419
11423
  Qr as Char,
11420
- nu as CodeEditor,
11421
- Od as ConfigContext,
11424
+ ru as CodeEditor,
11425
+ _d as ConfigContext,
11422
11426
  H as ConnectionProvider,
11423
- ml as ContentRootProvider,
11424
- Pu as CurrentTabContent,
11425
- Wd as Dashboard,
11426
- Ld as DashboardGrid,
11427
- Hd as DashboardGridItem,
11428
- Qc as Date,
11429
- ed as DateTime,
11430
- yd as Email,
11431
- Xc as ExportModal,
11432
- Hu as FavouriteButton,
11427
+ hl as ContentRootProvider,
11428
+ Hu as CurrentTabContent,
11429
+ Ud as Dashboard,
11430
+ Nd as DashboardGrid,
11431
+ Bd as DashboardGridItem,
11432
+ ed as Date,
11433
+ td as DateTime,
11434
+ vd as Email,
11435
+ Qc as ExportModal,
11436
+ Bu as FavouriteButton,
11433
11437
  po as Float,
11434
- $c as FloatTime,
11438
+ Lc as FloatTime,
11435
11439
  Ut as Form,
11436
11440
  Gt as FormModal,
11437
- cc as GraphIndicator,
11441
+ dc as GraphIndicator,
11438
11442
  Do as Group,
11439
11443
  Ca as Image,
11440
11444
  tn as Integer,
11441
11445
  un as Label,
11442
- sc as Many2one,
11443
- qd as Markdown,
11444
- Ud as MultiCheckbox,
11445
- Pc as Notebook,
11446
- Mc as One2many,
11447
- El as ProgressBar,
11448
- Jd as Radio,
11449
- od as Reference,
11450
- Lu as RootView,
11446
+ ac as Many2one,
11447
+ zd as Markdown,
11448
+ Gd as MultiCheckbox,
11449
+ Hc as Notebook,
11450
+ Ec as One2many,
11451
+ $l as ProgressBar,
11452
+ Zd as Radio,
11453
+ id as Reference,
11454
+ Nu as RootView,
11451
11455
  go as SearchFilter,
11452
11456
  To as SearchModal,
11453
11457
  So as SearchTree,
11454
11458
  eo as Selection,
11455
- Kc as Separator,
11456
- eu as Steps,
11457
- Xd as Switch,
11458
- Nu as TabSelector,
11459
- Pa as Tag,
11460
- Ha as Tags,
11461
- Bc as Text,
11462
- nd as Time,
11459
+ Yc as Separator,
11460
+ tu as Steps,
11461
+ Qd as Switch,
11462
+ Pu as TabSelector,
11463
+ Ha as Tag,
11464
+ Ba as Tags,
11465
+ jc as Text,
11466
+ rd as Time,
11463
11467
  pn as Tree,
11464
- gd as Url,
11468
+ yd as Url,
11465
11469
  it as iconMapper,
11466
11470
  Yt as showConfirmDialog
11467
11471
  };