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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  import Qe, { useContext as W, useState as _, useEffect as ge, useRef as ue, useCallback as ke, forwardRef as bt, useImperativeHandle as xt } from "react";
2
- import { Tooltip as pt, theme as Pe, Typography as Ut, Form as lt, Row as xe, Col as ce, Modal as Je, Button as Ie, Dropdown as Gt, Menu as Be, Spin as Re, Divider as dn, Space as Ye, Input as it, Select as Ct, Checkbox as jt, Alert as et, Timeline as An, Statistic as li, Card as Nn, Tag as $r, message as Sn, DatePicker as Pn, TimePicker as Lr, InputNumber as Hn, Progress as ci, Avatar as Nr, Badge as di, Pagination as ui, Tabs as Pr, Popover as fi, Radio as lr, Switch as mi, Steps as cr, Layout as hi } from "antd";
3
- import { Label as Vt, Field as Rn, Tree as Hr, Reference as pi, Selection as Bn, Many2one as Br, Boolean as gi, Container as yi, parseContext as wt, Form as jr, Integer as Vn, SearchFieldTypes as ht, SearchFilter as vi, parseContextFields as Tn, parseDomainFields as dr, transformDomainForChildWidget as Kr, graphProcessor as Yr, parseGraph as jn, graphFieldUtils as wi } from "@gisce/ooui";
4
- import * as ur from "@ant-design/icons";
5
- import Wr, { QuestionCircleOutlined as Ur, ExclamationCircleOutlined as gt, LoadingOutlined as st, DownOutlined as kt, WarningOutlined as Gr, CloseOutlined as qt, CheckOutlined as Mt, TranslationOutlined as qr, FolderOpenOutlined as Kn, DownloadOutlined as Yn, ClearOutlined as Wn, StarFilled as zr, StarOutlined as Jr, UpOutlined as bi, SearchOutlined as Un, RightCircleOutlined as xi, ThunderboltOutlined as Gn, PrinterOutlined as qn, EnterOutlined as Zr, PlusSquareOutlined as Ci, MinusSquareOutlined as Si, FileAddOutlined as un, AlignLeftOutlined as Ti, ApiOutlined as Fi, DeleteOutlined as zn, LeftOutlined as Xr, RightOutlined as Qr, EyeOutlined as Oi, FormOutlined as Kt, TableOutlined as Jn, AreaChartOutlined as Ii, CalendarOutlined as _i, LinkOutlined as eo, SaveOutlined as Di, CopyOutlined as Zn, InfoCircleOutlined as to, ReloadOutlined as fn, EditOutlined as no, FilterOutlined as ro, CloseCircleFilled as Ai, BorderOuterOutlined as Ri, SettingOutlined as Vi, ExportOutlined as ki } from "@ant-design/icons";
6
- import { Interweave as Xn } from "interweave";
2
+ import { Tooltip as pt, theme as Pe, Typography as Ut, Form as lt, Row as Ce, Col as de, Modal as Je, Button as Ie, Dropdown as Gt, Menu as je, Spin as Re, Divider as dn, Space as We, Input as it, Select as Ct, Checkbox as jt, Alert as tt, Timeline as An, Statistic as li, Card as Nn, Tag as Er, message as Sn, DatePicker as Pn, TimePicker as $r, InputNumber as Lr, Progress as ci, Avatar as Nr, Badge as di, Pagination as ui, Tabs as Pr, Popover as fi, Radio as ar, Switch as mi, Steps as lr, Layout as hi } from "antd";
3
+ import { Label as Vt, Field as Rn, Tree as Hr, Reference as pi, Selection as Hn, Many2one as Br, Boolean as gi, Container as yi, parseContext as wt, Form as jr, Integer as Vn, SearchFieldTypes as ht, SearchFilter as vi, parseContextFields as Tn, parseDomainFields as cr, transformDomainForChildWidget as Kr, graphProcessor as Yr, parseGraph as Bn, graphFieldUtils as wi } from "@gisce/ooui";
4
+ import * as dr from "@ant-design/icons";
5
+ import Wr, { QuestionCircleOutlined as Ur, ExclamationCircleOutlined as gt, LoadingOutlined as st, DownOutlined as kt, WarningOutlined as Gr, CloseOutlined as qt, CheckOutlined as Mt, TranslationOutlined as qr, FolderOpenOutlined as jn, DownloadOutlined as Kn, ClearOutlined as Yn, StarFilled as zr, StarOutlined as Jr, UpOutlined as bi, SearchOutlined as Wn, RightCircleOutlined as xi, ThunderboltOutlined as Un, PrinterOutlined as Gn, EnterOutlined as Zr, PlusSquareOutlined as Ci, MinusSquareOutlined as Si, FileAddOutlined as un, AlignLeftOutlined as Ti, ApiOutlined as Fi, DeleteOutlined as qn, LeftOutlined as Xr, RightOutlined as Qr, EyeOutlined as Oi, FormOutlined as Kt, TableOutlined as zn, AreaChartOutlined as Ii, CalendarOutlined as _i, LinkOutlined as eo, SaveOutlined as Di, CopyOutlined as Jn, InfoCircleOutlined as to, ReloadOutlined as fn, EditOutlined as no, FilterOutlined as ro, CloseCircleFilled as Ai, BorderOuterOutlined as Ri, SettingOutlined as Vi, ExportOutlined as ki } from "@ant-design/icons";
6
+ import { Interweave as Zn } from "interweave";
7
7
  import { jsxs as P, jsx as n, Fragment as te } from "react/jsx-runtime";
8
- import * as fr from "@tabler/icons-react";
8
+ import * as ur from "@tabler/icons-react";
9
9
  import Mi from "antd/lib/input/TextArea";
10
10
  import Et from "styled-components";
11
- import Qn from "react-measure";
11
+ import Xn from "react-measure";
12
12
  import kn from "antd/lib/typography/Title";
13
13
  import { Line as Ei, Column as $i, Pie as Li } from "@ant-design/plots";
14
14
  import St from "use-deep-compare-effect";
@@ -65,7 +65,7 @@ const {
65
65
  children: /* @__PURE__ */ n(p, {
66
66
  level: l,
67
67
  type: f,
68
- children: /* @__PURE__ */ n(Xn, {
68
+ children: /* @__PURE__ */ n(Zn, {
69
69
  content: d
70
70
  })
71
71
  })
@@ -140,6 +140,7 @@ const {
140
140
  lastUpdatedDate: "Data \xFAltima modificaci\xF3",
141
141
  goToResourceId: "V\xE9s al recurs amb ID",
142
142
  searchId: "ID de cerca:",
143
+ searchIdHelp: "Es pot utiltizar un ID o una llista d'IDs separats per comes",
143
144
  idNotFound: "No es troba aquesta id de recurs per l'objecte",
144
145
  selectedRegisters: "registres seleccionats",
145
146
  translate: "Tradu\xEFr",
@@ -230,6 +231,7 @@ const {
230
231
  lastUpdatedDate: "Date of last modification",
231
232
  goToResourceId: "Go to resource ID",
232
233
  searchId: "Search ID:",
234
+ searchIdHelp: "You can use an ID or a list of IDs separated by commas.",
233
235
  idNotFound: "Resource ID does not exist for this object!",
234
236
  selectedRegisters: "selected registers",
235
237
  translate: "Translate",
@@ -320,6 +322,7 @@ const {
320
322
  lastUpdatedDate: "Fecha \xFAltima modificaci\xF3n",
321
323
  goToResourceId: "Ir al recurso con ID",
322
324
  searchId: "ID de b\xFAsqueda:",
325
+ searchIdHelp: "Se puede utilizar un ID o una lista de IDs separados por comas",
323
326
  idNotFound: "No se encuentra \xE9sta ID de recursos para el objeto",
324
327
  selectedRegisters: "registros seleccionados",
325
328
  translate: "Traducir",
@@ -404,17 +407,17 @@ function we({
404
407
  }),
405
408
  align: s
406
409
  });
407
- return r === "horizontal" ? (() => /* @__PURE__ */ P(xe, {
410
+ return r === "horizontal" ? (() => /* @__PURE__ */ P(Ce, {
408
411
  align: "middle",
409
412
  className: "pb-1 pt-1",
410
- children: [/* @__PURE__ */ n(ce, {
413
+ children: [/* @__PURE__ */ n(de, {
411
414
  className: "ml-2",
412
415
  flex: "7rem",
413
416
  children: /* @__PURE__ */ n("div", {
414
417
  className: "flex flex-col items-end",
415
418
  children: h
416
419
  })
417
- }), /* @__PURE__ */ n(ce, {
420
+ }), /* @__PURE__ */ n(de, {
418
421
  flex: "auto",
419
422
  children: p()
420
423
  })]
@@ -475,7 +478,7 @@ const {
475
478
  },
476
479
  children: t
477
480
  });
478
- }, mr = {
481
+ }, fr = {
479
482
  "terp-purchase": "ShoppingCart",
480
483
  "terp-graph": "PieChart",
481
484
  "terp-crm": "Contacts",
@@ -567,7 +570,7 @@ const {
567
570
  STOCK_CLEAR: "CloseSquare",
568
571
  STOCK_UNINDENT: "AlignLeft",
569
572
  STOCK_PREFERENCES: "Setting"
570
- }, ct = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), mr.hasOwnProperty(e) ? hr(mr[e], t) : hr(e, t));
573
+ }, ct = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), fr.hasOwnProperty(e) ? mr(fr[e], t) : mr(e, t));
571
574
  function us(e) {
572
575
  return `${e.split("-").map(
573
576
  (t) => t.replace(
@@ -576,19 +579,19 @@ function us(e) {
576
579
  )
577
580
  ).join("")}`;
578
581
  }
579
- function hr(e, t) {
582
+ function mr(e, t) {
580
583
  let r = e.charAt(0).toUpperCase() + e.slice(1);
581
584
  r.indexOf("-") !== -1 && (r = us(r));
582
585
  const i = `${r}Outlined`;
583
- if (ur[i])
584
- return () => Qe.createElement(ur[i], {
586
+ if (dr[i])
587
+ return () => Qe.createElement(dr[i], {
585
588
  ...t
586
589
  });
587
590
  const o = `Icon${r}`;
588
- if (fr[o]) {
591
+ if (ur[o]) {
589
592
  const s = () => {
590
593
  var l;
591
- return Qe.createElement(fr[o], {
594
+ return Qe.createElement(ur[o], {
592
595
  fill: "transparent",
593
596
  size: ((l = t == null ? void 0 : t.style) == null ? void 0 : l.fontSize) || 17
594
597
  });
@@ -782,7 +785,7 @@ const io = (e) => {
782
785
  return b && /* @__PURE__ */ n(b, {});
783
786
  }
784
787
  }
785
- return /* @__PURE__ */ n(Be.Item, {
788
+ return /* @__PURE__ */ n(je.Item, {
786
789
  disabled: !f || y,
787
790
  onClick: C,
788
791
  icon: R(),
@@ -790,11 +793,11 @@ const io = (e) => {
790
793
  children: l
791
794
  });
792
795
  });
793
- return /* @__PURE__ */ n(Be, {
796
+ return /* @__PURE__ */ n(je, {
794
797
  children: o
795
798
  });
796
799
  }, hs = 0.7;
797
- function pr() {
800
+ function hr() {
798
801
  const { innerWidth: e, innerHeight: t } = window;
799
802
  return {
800
803
  width: e,
@@ -803,11 +806,11 @@ function pr() {
803
806
  }
804
807
  function hn() {
805
808
  const [e, t] = _(
806
- pr()
809
+ hr()
807
810
  );
808
811
  return ge(() => {
809
812
  function r() {
810
- t(pr());
813
+ t(hr());
811
814
  }
812
815
  return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
813
816
  }, []), {
@@ -913,17 +916,17 @@ const so = (e) => {
913
916
  v.current = T, g(T);
914
917
  }
915
918
  function A() {
916
- return c.map((x, T) => /* @__PURE__ */ P(xe, {
919
+ return c.map((x, T) => /* @__PURE__ */ P(Ce, {
917
920
  style: {
918
921
  paddingBottom: 20
919
922
  },
920
- children: [/* @__PURE__ */ n(ce, {
923
+ children: [/* @__PURE__ */ n(de, {
921
924
  flex: "8rem",
922
925
  style: {
923
926
  paddingRight: 10
924
927
  },
925
928
  children: x.name
926
- }), /* @__PURE__ */ n(ce, {
929
+ }), /* @__PURE__ */ n(de, {
927
930
  flex: "auto",
928
931
  children: /* @__PURE__ */ n(Mi, {
929
932
  rows: 4,
@@ -961,9 +964,9 @@ const so = (e) => {
961
964
  }
962
965
  function E() {
963
966
  return u ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ P(te, {
964
- children: [A(), /* @__PURE__ */ n(dn, {}), /* @__PURE__ */ n(xe, {
967
+ children: [A(), /* @__PURE__ */ n(dn, {}), /* @__PURE__ */ n(Ce, {
965
968
  justify: "end",
966
- children: /* @__PURE__ */ P(Ye, {
969
+ children: /* @__PURE__ */ P(We, {
967
970
  children: [/* @__PURE__ */ n(Ie, {
968
971
  icon: /* @__PURE__ */ n(qt, {}),
969
972
  onClick: r,
@@ -1105,10 +1108,10 @@ const {
1105
1108
  }
1106
1109
  })]
1107
1110
  }) : /* @__PURE__ */ n(te, {
1108
- children: /* @__PURE__ */ P(xe, {
1111
+ children: /* @__PURE__ */ P(Ce, {
1109
1112
  gutter: 8,
1110
1113
  wrap: !1,
1111
- children: [/* @__PURE__ */ n(ce, {
1114
+ children: [/* @__PURE__ */ n(de, {
1112
1115
  flex: "auto",
1113
1116
  children: /* @__PURE__ */ n(it, {
1114
1117
  value: e,
@@ -1119,7 +1122,7 @@ const {
1119
1122
  },
1120
1123
  onBlur: c
1121
1124
  })
1122
- }), /* @__PURE__ */ n(ce, {
1125
+ }), /* @__PURE__ */ n(de, {
1123
1126
  flex: "32px",
1124
1127
  children: /* @__PURE__ */ n(Xe, {
1125
1128
  tooltip: m("translate"),
@@ -1183,7 +1186,7 @@ const {
1183
1186
  `, {
1184
1187
  defaultAlgorithm: Fs,
1185
1188
  defaultSeed: Os
1186
- } = Pe, gr = Fs(Os), Is = (e) => {
1189
+ } = Pe, pr = Fs(Os), Is = (e) => {
1187
1190
  const {
1188
1191
  ooui: t
1189
1192
  } = e, {
@@ -1215,11 +1218,11 @@ const {
1215
1218
  });
1216
1219
  }, Ds = Et(jt)`
1217
1220
  .ant-checkbox-inner {
1218
- background-color: ${gr.colorPrimaryBg};
1221
+ background-color: ${pr.colorPrimaryBg};
1219
1222
  }
1220
1223
 
1221
1224
  .ant-checkbox-checked .ant-checkbox-inner {
1222
- background-color: ${gr.colorPrimary};
1225
+ background-color: ${pr.colorPrimary};
1223
1226
  }
1224
1227
  `;
1225
1228
  var ft = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -1239,7 +1242,7 @@ var Bs = Hs, js = Bs, Ks = /^\s+/;
1239
1242
  function Ys(e) {
1240
1243
  return e && e.slice(0, js(e) + 1).replace(Ks, "");
1241
1244
  }
1242
- var Ws = Ys, Us = mo, Gs = Us.Symbol, ho = Gs, yr = ho, po = Object.prototype, qs = po.hasOwnProperty, zs = po.toString, Ht = yr ? yr.toStringTag : void 0;
1245
+ var Ws = Ys, Us = mo, Gs = Us.Symbol, ho = Gs, gr = ho, po = Object.prototype, qs = po.hasOwnProperty, zs = po.toString, Ht = gr ? gr.toStringTag : void 0;
1243
1246
  function Js(e) {
1244
1247
  var t = qs.call(e, Ht), r = e[Ht];
1245
1248
  try {
@@ -1254,9 +1257,9 @@ var Zs = Js, Xs = Object.prototype, Qs = Xs.toString;
1254
1257
  function ea(e) {
1255
1258
  return Qs.call(e);
1256
1259
  }
1257
- var ta = ea, vr = ho, na = Zs, ra = ta, oa = "[object Null]", ia = "[object Undefined]", wr = vr ? vr.toStringTag : void 0;
1260
+ var ta = ea, yr = ho, na = Zs, ra = ta, oa = "[object Null]", ia = "[object Undefined]", vr = yr ? yr.toStringTag : void 0;
1258
1261
  function sa(e) {
1259
- return e == null ? e === void 0 ? ia : oa : wr && wr in Object(e) ? na(e) : ra(e);
1262
+ return e == null ? e === void 0 ? ia : oa : vr && vr in Object(e) ? na(e) : ra(e);
1260
1263
  }
1261
1264
  var aa = sa;
1262
1265
  function la(e) {
@@ -1266,28 +1269,28 @@ var ca = la, da = aa, ua = ca, fa = "[object Symbol]";
1266
1269
  function ma(e) {
1267
1270
  return typeof e == "symbol" || ua(e) && da(e) == fa;
1268
1271
  }
1269
- var ha = ma, pa = Ws, br = fo, ga = ha, xr = 0 / 0, ya = /^[-+]0x[0-9a-f]+$/i, va = /^0b[01]+$/i, wa = /^0o[0-7]+$/i, ba = parseInt;
1272
+ var ha = ma, pa = Ws, wr = fo, ga = ha, br = 0 / 0, ya = /^[-+]0x[0-9a-f]+$/i, va = /^0b[01]+$/i, wa = /^0o[0-7]+$/i, ba = parseInt;
1270
1273
  function xa(e) {
1271
1274
  if (typeof e == "number")
1272
1275
  return e;
1273
1276
  if (ga(e))
1274
- return xr;
1275
- if (br(e)) {
1277
+ return br;
1278
+ if (wr(e)) {
1276
1279
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
1277
- e = br(t) ? t + "" : t;
1280
+ e = wr(t) ? t + "" : t;
1278
1281
  }
1279
1282
  if (typeof e != "string")
1280
1283
  return e === 0 ? e : +e;
1281
1284
  e = pa(e);
1282
1285
  var r = va.test(e);
1283
- return r || wa.test(e) ? ba(e.slice(2), r ? 2 : 8) : ya.test(e) ? xr : +e;
1286
+ return r || wa.test(e) ? ba(e.slice(2), r ? 2 : 8) : ya.test(e) ? br : +e;
1284
1287
  }
1285
- var Ca = xa, Sa = fo, Fn = Ns, Cr = Ca, Ta = "Expected a function", Fa = Math.max, Oa = Math.min;
1288
+ var Ca = xa, Sa = fo, Fn = Ns, xr = Ca, Ta = "Expected a function", Fa = Math.max, Oa = Math.min;
1286
1289
  function Ia(e, t, r) {
1287
1290
  var i, o, s, a, l, f, c = 0, d = !1, u = !1, m = !0;
1288
1291
  if (typeof e != "function")
1289
1292
  throw new TypeError(Ta);
1290
- t = Cr(t) || 0, Sa(r) && (d = !!r.leading, u = "maxWait" in r, s = u ? Fa(Cr(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
1293
+ t = xr(t) || 0, Sa(r) && (d = !!r.leading, u = "maxWait" in r, s = u ? Fa(xr(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
1291
1294
  function y(S) {
1292
1295
  var E = i, x = o;
1293
1296
  return i = o = void 0, c = S, a = e.apply(x, E), a;
@@ -1393,7 +1396,7 @@ const Aa = (e) => {
1393
1396
  l(void 0);
1394
1397
  }
1395
1398
  return /* @__PURE__ */ P(te, {
1396
- children: [/* @__PURE__ */ P(xe, {
1399
+ children: [/* @__PURE__ */ P(Ce, {
1397
1400
  gutter: 8,
1398
1401
  wrap: !1,
1399
1402
  justify: "center",
@@ -1412,15 +1415,15 @@ const Aa = (e) => {
1412
1415
  },
1413
1416
  onChange: c
1414
1417
  })]
1415
- }), /* @__PURE__ */ n(xe, {
1418
+ }), /* @__PURE__ */ n(Ce, {
1416
1419
  gutter: 8,
1417
1420
  wrap: !1,
1418
1421
  justify: "center",
1419
1422
  className: "pt-5",
1420
- children: /* @__PURE__ */ P(Ye, {
1423
+ children: /* @__PURE__ */ P(We, {
1421
1424
  children: [/* @__PURE__ */ n(Xe, {
1422
1425
  tooltip: a("uploadNewImage"),
1423
- icon: /* @__PURE__ */ n(Kn, {}),
1426
+ icon: /* @__PURE__ */ n(jn, {}),
1424
1427
  disabled: o,
1425
1428
  onClick: () => {
1426
1429
  s.current.click();
@@ -1429,12 +1432,12 @@ const Aa = (e) => {
1429
1432
  tooltip: a("download"),
1430
1433
  disabled: !r,
1431
1434
  onClick: f,
1432
- icon: /* @__PURE__ */ n(Yn, {})
1435
+ icon: /* @__PURE__ */ n(Kn, {})
1433
1436
  }), /* @__PURE__ */ n(Xe, {
1434
1437
  tooltip: a("clear"),
1435
1438
  disabled: o || !r,
1436
1439
  onClick: d,
1437
- icon: /* @__PURE__ */ n(Wn, {})
1440
+ icon: /* @__PURE__ */ n(Yn, {})
1438
1441
  })]
1439
1442
  })
1440
1443
  })]
@@ -1492,7 +1495,7 @@ const Aa = (e) => {
1492
1495
  o[s] = i[s];
1493
1496
  else {
1494
1497
  const a = e.findById(s);
1495
- a instanceof pi || a instanceof Bn ? o[s] = i[s] : a instanceof Br ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
1498
+ a instanceof pi || a instanceof Hn ? o[s] = i[s] : a instanceof Br ? o[s] = i[s] && Array.isArray(i[s]) && i[s].length === 2 && {
1496
1499
  model: a.relation,
1497
1500
  id: i[s][0],
1498
1501
  value: i[s][1]
@@ -1503,7 +1506,7 @@ const Aa = (e) => {
1503
1506
  function nn(e) {
1504
1507
  return vo(e, "colors");
1505
1508
  }
1506
- function Sr(e) {
1509
+ function Cr(e) {
1507
1510
  return vo(e, "status");
1508
1511
  }
1509
1512
  function vo(e, t) {
@@ -1534,7 +1537,7 @@ function Ea(e) {
1534
1537
  return !0;
1535
1538
  return !1;
1536
1539
  }
1537
- const er = async (e) => {
1540
+ const Qn = async (e) => {
1538
1541
  var p;
1539
1542
  const {
1540
1543
  items: t,
@@ -1628,7 +1631,7 @@ const er = async (e) => {
1628
1631
  a(!1);
1629
1632
  }
1630
1633
  };
1631
- return s ? /* @__PURE__ */ n(Re, {}) : l ? /* @__PURE__ */ n(et, {
1634
+ return s ? /* @__PURE__ */ n(Re, {}) : l ? /* @__PURE__ */ n(tt, {
1632
1635
  className: "mt-10",
1633
1636
  message: l,
1634
1637
  type: "error",
@@ -1669,7 +1672,7 @@ const er = async (e) => {
1669
1672
  async function E() {
1670
1673
  l(!0), c(void 0);
1671
1674
  try {
1672
- const [x] = await er({
1675
+ const [x] = await Qn({
1673
1676
  treeView: {
1674
1677
  fields: r.get("tree").fields,
1675
1678
  arch: r.get("tree").arch
@@ -1692,7 +1695,7 @@ const er = async (e) => {
1692
1695
  l(!1);
1693
1696
  }
1694
1697
  }
1695
- return f ? /* @__PURE__ */ n(et, {
1698
+ return f ? /* @__PURE__ */ n(tt, {
1696
1699
  className: "mt-10",
1697
1700
  message: f,
1698
1701
  type: "error",
@@ -1895,11 +1898,11 @@ const er = async (e) => {
1895
1898
  r.secondary
1896
1899
  ));
1897
1900
  }), {
1898
- primary: t.primary.filter(Tr),
1899
- secondary: t.secondary.filter(Tr)
1901
+ primary: t.primary.filter(Sr),
1902
+ secondary: t.secondary.filter(Sr)
1900
1903
  };
1901
1904
  };
1902
- function Tr(e, t, r) {
1905
+ function Sr(e, t, r) {
1903
1906
  return r.indexOf(e) === t;
1904
1907
  }
1905
1908
  const $t = ({
@@ -1949,7 +1952,7 @@ const $t = ({
1949
1952
  borderColor: t,
1950
1953
  borderStyle: "solid",
1951
1954
  borderWidth: "1px"
1952
- }, t = `${t}20`), /* @__PURE__ */ n($r, {
1955
+ }, t = `${t}20`), /* @__PURE__ */ n(Er, {
1953
1956
  ...e,
1954
1957
  style: r,
1955
1958
  color: t,
@@ -2064,7 +2067,7 @@ const $t = ({
2064
2067
  children: E
2065
2068
  });
2066
2069
  };
2067
- return f ? /* @__PURE__ */ n(et, {
2070
+ return f ? /* @__PURE__ */ n(tt, {
2068
2071
  className: "mt-10",
2069
2072
  message: f,
2070
2073
  type: "error",
@@ -2281,7 +2284,7 @@ const $t = ({
2281
2284
  });
2282
2285
  }, {
2283
2286
  error: al
2284
- } = Je, Fr = (e) => {
2287
+ } = Je, Tr = (e) => {
2285
2288
  al({
2286
2289
  title: Oe("formHasErrors", e),
2287
2290
  icon: /* @__PURE__ */ n(gt, {}),
@@ -2309,7 +2312,7 @@ const $t = ({
2309
2312
  },
2310
2313
  children: t
2311
2314
  });
2312
- }, Or = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, ul = (e, t) => {
2315
+ }, Fr = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, ul = (e, t) => {
2313
2316
  const r = yl(e), i = pl(r), o = gl(i, t);
2314
2317
  return [
2315
2318
  ...Object.keys(o).map((l) => fl(l, o[l], t))
@@ -2333,9 +2336,9 @@ const $t = ({
2333
2336
  e,
2334
2337
  "in",
2335
2338
  t.map(
2336
- (a) => Or(a)
2339
+ (a) => Fr(a)
2337
2340
  )
2338
- ] : [e, "=", Or(t)];
2341
+ ] : [e, "=", Fr(t)];
2339
2342
  }, ml = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), hl = (e) => {
2340
2343
  const t = { ...e };
2341
2344
  return Object.keys(t).forEach(
@@ -2416,19 +2419,19 @@ const $t = ({
2416
2419
  context: c
2417
2420
  });
2418
2421
  if (I(ie.length), d == null || d(ie.length), ie.length > 0) {
2419
- const Ee = ie.map((se) => se == null ? void 0 : se[0]), { colors: be, status: $e } = _t(u), je = {};
2420
- be && (je.colors = be), $e && (je.status = $e);
2422
+ const Ee = ie.map((se) => se == null ? void 0 : se[0]), { colors: be, status: $e } = _t(u), Ke = {};
2423
+ be && (Ke.colors = be), $e && (Ke.status = $e);
2421
2424
  const ee = await H.getHandler().readEvalUiObjects({
2422
2425
  model: t,
2423
2426
  ids: Ee,
2424
2427
  arch: u == null ? void 0 : u.arch,
2425
2428
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
2426
2429
  context: c,
2427
- attrs: je
2428
- }), Se = ee[0];
2429
- X.current = [...Se], Y(nn(ee[1])), N(Sr(ee[1]));
2430
- const Ve = Se.map((se) => se.id), He = y !== void 0 ? Dt({
2431
- resultsToSort: Se,
2430
+ attrs: Ke
2431
+ }), xe = ee[0];
2432
+ X.current = [...xe], Y(nn(ee[1])), N(Cr(ee[1]));
2433
+ const Ve = xe.map((se) => se.id), He = y !== void 0 ? Dt({
2434
+ resultsToSort: xe,
2432
2435
  sorter: y,
2433
2436
  fields: { ...u.fields, ...m.fields }
2434
2437
  }) : [...X.current];
@@ -2450,8 +2453,8 @@ const $t = ({
2450
2453
  d
2451
2454
  ]), Z = ke(
2452
2455
  async (ie) => {
2453
- const { params: Ee, newOffset: be } = ie || {}, $e = Yt(Ee || S, C), { colors: je, status: ee } = _t(u), Se = {};
2454
- je && (Se.colors = je), ee && (Se.status = ee);
2456
+ const { params: Ee, newOffset: be } = ie || {}, $e = Yt(Ee || S, C), { colors: Ke, status: ee } = _t(u), xe = {};
2457
+ Ke && (xe.colors = Ke), ee && (xe.status = ee);
2455
2458
  const { totalItems: Ve, results: He, attrsEvaluated: se } = await H.getHandler().searchForTree({
2456
2459
  params: $e,
2457
2460
  limit: B.current,
@@ -2459,24 +2462,24 @@ const $t = ({
2459
2462
  model: t,
2460
2463
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
2461
2464
  context: c,
2462
- attrs: Se
2465
+ attrs: xe
2463
2466
  });
2464
- Y(nn(se)), N(Sr(se)), X.current = [...He];
2467
+ Y(nn(se)), N(Cr(se)), X.current = [...He];
2465
2468
  const me = y !== void 0 ? Dt({
2466
2469
  resultsToSort: He,
2467
2470
  sorter: y,
2468
2471
  fields: { ...u.fields, ...m.fields }
2469
2472
  }) : [...X.current];
2470
2473
  if (ne(me), v && me.length > 0) {
2471
- const de = me.findIndex(
2472
- (ot) => R === ot.id
2474
+ const ce = me.findIndex(
2475
+ (et) => R === et.id
2473
2476
  );
2474
- de === -1 ? h == null || h(0) : h == null || h(de);
2477
+ ce === -1 ? h == null || h(0) : h == null || h(ce);
2475
2478
  } else
2476
2479
  h == null || h(void 0);
2477
2480
  T(!1);
2478
- const Ge = await Ve;
2479
- I(Ge), d == null || d(Ge);
2481
+ const Be = await Ve;
2482
+ I(Be), d == null || d(Be);
2480
2483
  },
2481
2484
  [
2482
2485
  h,
@@ -2540,10 +2543,10 @@ const $t = ({
2540
2543
  [p, le, u, m, ne]
2541
2544
  ), Me = ke(
2542
2545
  (ie) => {
2543
- const { params: Ee, searchValues: be, limit: $e, offset: je } = ie;
2544
- x || (r == null || r(void 0), i == null || i([]), E == null || E(be), o == null || o(Ee), s == null || s(!1), w(!0), V(void 0), M(1), $e && (B.current = $e, A == null || A($e)), je && D(je), fe({
2546
+ const { params: Ee, searchValues: be, limit: $e, offset: Ke } = ie;
2547
+ x || (r == null || r(void 0), i == null || i([]), E == null || E(be), o == null || o(Ee), s == null || s(!1), w(!0), V(void 0), M(1), $e && (B.current = $e, A == null || A($e)), Ke && D(Ke), fe({
2545
2548
  params: Ee,
2546
- newOffset: je
2549
+ newOffset: Ke
2547
2550
  }));
2548
2551
  },
2549
2552
  [
@@ -2575,7 +2578,7 @@ const $t = ({
2575
2578
  M,
2576
2579
  A,
2577
2580
  b
2578
- ]), Ue = ke(
2581
+ ]), Ge = ke(
2579
2582
  async (ie) => {
2580
2583
  const Ee = ie[(u == null ? void 0 : u.field_parent) || "child_id"], be = await H.getHandler().readObjects({
2581
2584
  model: t,
@@ -2586,7 +2589,7 @@ const $t = ({
2586
2589
  return ne([...le(), ...be]), yo(_t(u), be);
2587
2590
  },
2588
2591
  [u, t, c, le, ne]
2589
- ), Ce = ke(async () => await H.getHandler().searchAllIds({
2592
+ ), Se = ke(async () => await H.getHandler().searchAllIds({
2590
2593
  params: Yt(S, C),
2591
2594
  model: t,
2592
2595
  context: c,
@@ -2605,13 +2608,13 @@ const $t = ({
2605
2608
  getResults: le,
2606
2609
  requestPageChange: De,
2607
2610
  changeSort: he,
2608
- fetchChildrenForRecord: Ue,
2611
+ fetchChildrenForRecord: Ge,
2609
2612
  colorsForResults: U,
2610
2613
  statusForResults: z,
2611
2614
  totalItems: $,
2612
- getAllIds: Ce
2615
+ getAllIds: Se
2613
2616
  };
2614
- }, rt = Qe.createContext(null), wl = (e) => {
2617
+ }, ot = Qe.createContext(null), wl = (e) => {
2615
2618
  const {
2616
2619
  children: t,
2617
2620
  currentView: r,
@@ -2638,7 +2641,7 @@ const $t = ({
2638
2641
  setSearchTreeNameSearch: E,
2639
2642
  goToResourceId: x,
2640
2643
  limit: T
2641
- } = e, [F, w] = _(!1), [L, V] = _(!1), [O, M] = _(!1), [k, D] = _(!0), [$, I] = _(!0), [j, G] = _([]), [U, Y] = _(!1), [z, N] = _([]), [B, X] = _(!1), [ne, le] = _(!0), [J, Z] = _(), [fe, he] = _({}), [Me, De] = _(T !== void 0 ? T : Wt), [Ne, Ue] = _(i);
2644
+ } = e, [F, w] = _(!1), [L, V] = _(!1), [O, M] = _(!1), [k, D] = _(!0), [$, I] = _(!0), [j, G] = _([]), [U, Y] = _(!1), [z, N] = _([]), [B, X] = _(!1), [ne, le] = _(!0), [J, Z] = _(), [fe, he] = _({}), [Me, De] = _(T !== void 0 ? T : Wt), [Ne, Ge] = _(i);
2642
2645
  ge(() => {
2643
2646
  m && m.length > 0 && !y && (p == null || p(0), d == null || d(m[0].id));
2644
2647
  }, [m]), ge(() => {
@@ -2648,11 +2651,11 @@ const $t = ({
2648
2651
  }, [s]), ge(() => {
2649
2652
  (J == null ? void 0 : J.view_id) === r.view_id && s.length > 1 && Z(s.filter((ie) => ie.view_id !== r.view_id)[0]);
2650
2653
  }, [r]);
2651
- const Ce = async () => {
2654
+ const Se = async () => {
2652
2655
  var ie;
2653
2656
  return await ((ie = a.current) == null ? void 0 : ie.submitForm());
2654
2657
  };
2655
- return /* @__PURE__ */ n(rt.Provider, {
2658
+ return /* @__PURE__ */ n(ot.Provider, {
2656
2659
  value: {
2657
2660
  title: Ne,
2658
2661
  currentView: r,
@@ -2664,7 +2667,7 @@ const $t = ({
2664
2667
  setFormHasChanges: V,
2665
2668
  formRef: a,
2666
2669
  searchTreeRef: l,
2667
- onFormSave: Ce,
2670
+ onFormSave: Se,
2668
2671
  onNewClicked: f,
2669
2672
  currentId: c,
2670
2673
  setCurrentId: d,
@@ -2704,7 +2707,7 @@ const $t = ({
2704
2707
  setSearchValues: he,
2705
2708
  limit: Me,
2706
2709
  setLimit: De,
2707
- setTitle: Ue
2710
+ setTitle: Ge
2708
2711
  },
2709
2712
  children: t
2710
2713
  });
@@ -2737,7 +2740,7 @@ const $t = ({
2737
2740
  },
2738
2741
  children: t
2739
2742
  });
2740
- }, Lt = Qe.createContext(null), Ir = async (e) => {
2743
+ }, Lt = Qe.createContext(null), Or = async (e) => {
2741
2744
  var t;
2742
2745
  for (let r = 0; r < e.length; r++)
2743
2746
  await ((t = e == null ? void 0 : e[r]) == null ? void 0 : t.call(e));
@@ -2963,7 +2966,7 @@ const $t = ({
2963
2966
  }), y(!0);
2964
2967
  }
2965
2968
  async function S() {
2966
- Ir(d.current), d.current = [], y(!1), h({
2969
+ Or(d.current), d.current = [], y(!1), h({
2967
2970
  domain: void 0,
2968
2971
  model: void 0,
2969
2972
  context: {},
@@ -2994,7 +2997,7 @@ const $t = ({
2994
2997
  visible: m,
2995
2998
  onSubmitSucceed: S,
2996
2999
  onCancel: () => {
2997
- Ir(d.current), d.current = [], y(!1), h({
3000
+ Or(d.current), d.current = [], y(!1), h({
2998
3001
  domain: void 0,
2999
3002
  model: void 0,
3000
3003
  context: {},
@@ -3077,12 +3080,12 @@ const Sl = bt(xl), Tl = ({
3077
3080
  type: s,
3078
3081
  title: a
3079
3082
  } = so(e);
3080
- r = /* @__PURE__ */ n(Xn, {
3083
+ r = /* @__PURE__ */ n(Zn, {
3081
3084
  content: `${a}<br />${o}`
3082
3085
  }), i = s;
3083
3086
  } else
3084
3087
  r = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
3085
- return /* @__PURE__ */ n(et, {
3088
+ return /* @__PURE__ */ n(tt, {
3086
3089
  className: t,
3087
3090
  message: r,
3088
3091
  type: i,
@@ -3119,28 +3122,28 @@ function Ol(e, t) {
3119
3122
  } = W(ye), [F, w] = _(!1), [L, V] = _(), [O, M] = _(), [k] = lt.useForm(), [D, $] = _(), [I, j] = _(), G = W(Co), [U, Y] = _(), [z, N] = _(!1), B = ue(), X = ue({}), ne = ue({}), le = ue(!1), J = ue(!1), Z = ue(!1), he = (E !== void 0 ? E : U) < Fl, Me = W(Le), {
3120
3123
  activeId: De,
3121
3124
  getPlainValues: Ne
3122
- } = Me || {}, Ue = W(rt), {
3123
- setFormIsSaving: Ce = void 0,
3125
+ } = Me || {}, Ge = W(ot), {
3126
+ setFormIsSaving: Se = void 0,
3124
3127
  setFormHasChanges: ie = void 0,
3125
3128
  setCurrentId: Ee = void 0,
3126
3129
  setFormIsLoading: be = void 0,
3127
3130
  setAttachments: $e = void 0,
3128
- title: je = void 0,
3131
+ title: Ke = void 0,
3129
3132
  setTitle: ee = void 0
3130
- } = (b ? Ue : {}) || {}, Se = W(Lt), {
3133
+ } = (b ? Ge : {}) || {}, xe = W(Lt), {
3131
3134
  processAction: Ve,
3132
3135
  globalValues: He
3133
- } = Se || {};
3136
+ } = xe || {};
3134
3137
  xt(t, () => ({
3135
3138
  submitForm: Qt,
3136
- getFields: ot,
3137
- getValues: Ke,
3139
+ getFields: et,
3140
+ getValues: Ye,
3138
3141
  getPlainValues: Q,
3139
3142
  getContext: Te,
3140
3143
  fetchValues: yt,
3141
- cancelUnsavedChanges: ir,
3144
+ cancelUnsavedChanges: or,
3142
3145
  clearAndReload: () => {
3143
- B.current = void 0, M(void 0), or();
3146
+ B.current = void 0, M(void 0), rr();
3144
3147
  }
3145
3148
  })), ge(() => {
3146
3149
  if (V(void 0), !(!r && !p)) {
@@ -3148,7 +3151,7 @@ function Ol(e, t) {
3148
3151
  B.current = void 0, M(void 0);
3149
3152
  return;
3150
3153
  }
3151
- (i === void 0 && I || i !== void 0 && I && i < 0) && (B.current = void 0, M(void 0)), or();
3154
+ (i === void 0 && I || i !== void 0 && I && i < 0) && (B.current = void 0, M(void 0)), rr();
3152
3155
  }
3153
3156
  }, [i, r, y, p, R]), ge(() => {
3154
3157
  z && (wn({
@@ -3156,19 +3159,19 @@ function Ol(e, t) {
3156
3159
  }), N(!1));
3157
3160
  }, [z]);
3158
3161
  const se = (K, q, re, oe) => {
3159
- ie == null || ie(!1), Ce == null || Ce(!1), s == null || s(K, q, re, oe), Ee == null || Ee(K);
3162
+ ie == null || ie(!1), Se == null || Se(!1), s == null || s(K, q, re, oe), Ee == null || Ee(K);
3160
3163
  }, me = () => {
3161
- Ce == null || Ce(!1), o == null || o();
3162
- }, Ge = (K) => {
3163
- Ce == null || Ce(!1), c == null || c(K);
3164
+ Se == null || Se(!1), o == null || o();
3165
+ }, Be = (K) => {
3166
+ Se == null || Se(!1), c == null || c(K);
3164
3167
  };
3165
- function de() {
3168
+ function ce() {
3166
3169
  return i || B.current;
3167
3170
  }
3168
- function ot() {
3171
+ function et() {
3169
3172
  return I;
3170
3173
  }
3171
- function Ke() {
3174
+ function Ye() {
3172
3175
  const K = {
3173
3176
  ...qe(I),
3174
3177
  ...Fe()
@@ -3178,11 +3181,11 @@ function Ol(e, t) {
3178
3181
  return K;
3179
3182
  }
3180
3183
  function Q() {
3181
- const K = Ke(), q = ot();
3184
+ const K = Ye(), q = et();
3182
3185
  let re = {};
3183
3186
  return Object.keys(K).forEach((oe) => {
3184
3187
  const pe = K[oe];
3185
- q[oe] && q[oe].type === "many2one" && pe && Array.isArray(pe) && pe.length === 2 ? re[oe] = pe[0] : q[oe] && (q[oe].type === "one2many" || q[oe].type === "many2many") && pe && pe.items ? re[oe] = pe.items.filter((nt) => nt.operation !== "pendingRemove").map((nt) => nt.id) : re[oe] = pe;
3188
+ q[oe] && q[oe].type === "many2one" && pe && Array.isArray(pe) && pe.length === 2 ? re[oe] = pe[0] : q[oe] && (q[oe].type === "one2many" || q[oe].type === "many2many") && pe && pe.items ? re[oe] = pe.items.filter((rt) => rt.operation !== "pendingRemove").map((rt) => rt.id) : re[oe] = pe;
3186
3189
  }), re;
3187
3190
  }
3188
3191
  function ae() {
@@ -3200,22 +3203,22 @@ function Ol(e, t) {
3200
3203
  };
3201
3204
  }
3202
3205
  function ve() {
3203
- return de() ? {
3204
- active_id: de(),
3205
- active_ids: [de()]
3206
+ return ce() ? {
3207
+ active_id: ce(),
3208
+ active_ids: [ce()]
3206
3209
  } : {};
3207
3210
  }
3208
3211
  function Fe() {
3209
3212
  return {
3210
- id: de(),
3211
- active_id: de(),
3212
- active_ids: [de()],
3213
+ id: ce(),
3214
+ active_id: ce(),
3215
+ active_ids: [ce()],
3213
3216
  parent_id: De,
3214
3217
  ...He
3215
3218
  };
3216
3219
  }
3217
3220
  const _e = async (K) => {
3218
- const q = de() ? O == null ? void 0 : O.context : {};
3221
+ const q = ce() ? O == null ? void 0 : O.context : {};
3219
3222
  return await H.getHandler().defaultGet({
3220
3223
  model: r,
3221
3224
  fields: K,
@@ -3225,7 +3228,7 @@ function Ol(e, t) {
3225
3228
  },
3226
3229
  extraValues: A
3227
3230
  });
3228
- }, tt = () => Object.keys(On({
3231
+ }, nt = () => Object.keys(On({
3229
3232
  source: X.current,
3230
3233
  target: qe(I),
3231
3234
  fields: I
@@ -3241,7 +3244,7 @@ function Ol(e, t) {
3241
3244
  fields: I,
3242
3245
  reset: !1
3243
3246
  });
3244
- }, We = (K) => k.getFieldsValue(!0)[K];
3247
+ }, Ue = (K) => k.getFieldsValue(!0)[K];
3245
3248
  async function Tt() {
3246
3249
  try {
3247
3250
  return await k.validateFields(), !1;
@@ -3249,7 +3252,7 @@ function Ol(e, t) {
3249
3252
  return Sn.error(x("fillRequiredFields")), !0;
3250
3253
  }
3251
3254
  }
3252
- const or = async () => {
3255
+ const rr = async () => {
3253
3256
  V(void 0), be == null || be(!0);
3254
3257
  let K;
3255
3258
  try {
@@ -3289,8 +3292,8 @@ function Ol(e, t) {
3289
3292
  arch: oe,
3290
3293
  values: q
3291
3294
  }), be == null || be(!1), ie == null || ie(!1), pe && N(!0);
3292
- }, ir = async () => new Promise(async (K) => {
3293
- tt() ? Jt({
3295
+ }, or = async () => new Promise(async (K) => {
3296
+ nt() ? Jt({
3294
3297
  lang: T,
3295
3298
  onOk: () => {
3296
3299
  me == null || me(), K(!0);
@@ -3318,10 +3321,10 @@ function Ol(e, t) {
3318
3321
  reset: re,
3319
3322
  isDefaultGet: oe = !1
3320
3323
  }) => {
3321
- const nt = {
3324
+ const rt = {
3322
3325
  ...re ? {} : k.getFieldsValue(!0),
3323
3326
  ...K
3324
- }, xn = It(nt, q), si = Object.keys(q).map((Cn) => {
3327
+ }, xn = It(rt, q), si = Object.keys(q).map((Cn) => {
3325
3328
  const ai = xn[Cn] !== void 0 ? xn[Cn] : void 0;
3326
3329
  return {
3327
3330
  name: Cn,
@@ -3335,15 +3338,15 @@ function Ol(e, t) {
3335
3338
  arch: q
3336
3339
  }) => {
3337
3340
  let re = {}, oe = !1;
3338
- if (de()) {
3341
+ if (ce()) {
3339
3342
  re = (await H.getHandler().readObjects({
3340
3343
  model: r,
3341
- ids: [de()],
3344
+ ids: [ce()],
3342
3345
  fields: K,
3343
3346
  context: v
3344
3347
  }))[0];
3345
3348
  const pe = await H.getHandler().search({
3346
- params: [["res_model", "=", r], ["res_id", "=", de()]],
3349
+ params: [["res_model", "=", r], ["res_id", "=", ce()]],
3347
3350
  fields: ["id", "name"],
3348
3351
  context: Te(),
3349
3352
  model: "ir.attachment"
@@ -3355,11 +3358,11 @@ function Ol(e, t) {
3355
3358
  values: re,
3356
3359
  defaultGetCalled: oe
3357
3360
  };
3358
- }, sr = async (K) => {
3361
+ }, ir = async (K) => {
3359
3362
  const {
3360
3363
  callOnSubmitSucceed: q = !0
3361
3364
  } = K || {};
3362
- if (de()) {
3365
+ if (ce()) {
3363
3366
  const re = On({
3364
3367
  source: X.current,
3365
3368
  target: qe(I),
@@ -3367,7 +3370,7 @@ function Ol(e, t) {
3367
3370
  });
3368
3371
  await H.getHandler().update({
3369
3372
  model: r,
3370
- id: de(),
3373
+ id: ce(),
3371
3374
  values: {
3372
3375
  ...re,
3373
3376
  ...S
@@ -3393,20 +3396,20 @@ function Ol(e, t) {
3393
3396
  });
3394
3397
  B.current = oe, X.current = re;
3395
3398
  }
3396
- h && await h([de()]), !g && q && (se == null || se(de(), Ke(), ae()));
3399
+ h && await h([ce()]), !g && q && (se == null || se(ce(), Ye(), ae()));
3397
3400
  }, zo = async (K) => {
3398
3401
  const {
3399
3402
  callOnSubmitSucceed: q = !0
3400
3403
  } = K || {};
3401
- !g && q && (se == null || se(de(), Ke(), ae()));
3404
+ !g && q && (se == null || se(ce(), Ye(), ae()));
3402
3405
  }, Qt = async (K) => {
3403
3406
  let q = !1;
3404
3407
  const {
3405
3408
  callOnSubmitSucceed: re = !0
3406
3409
  } = K || {};
3407
- if (J.current = !0, V(void 0), Z.current && !tt() && de() && re) {
3408
- J.current = !1, ie == null || ie(!1), se == null || se(de(), Ke(), ae(), Z.current), Z.current = !1;
3409
- const oe = de();
3410
+ if (J.current = !0, V(void 0), Z.current && !nt() && ce() && re) {
3411
+ J.current = !1, ie == null || ie(!1), se == null || se(ce(), Ye(), ae(), Z.current), Z.current = !1;
3412
+ const oe = ce();
3410
3413
  return u && (B.current = void 0, Nt({
3411
3414
  values: {},
3412
3415
  fields: I,
@@ -3416,19 +3419,19 @@ function Ol(e, t) {
3416
3419
  id: oe
3417
3420
  };
3418
3421
  }
3419
- if (!tt() && de() && re)
3422
+ if (!nt() && ce() && re)
3420
3423
  return J.current = !1, ie == null || ie(!1), me == null || me(), {
3421
3424
  succeed: !0,
3422
- id: de()
3425
+ id: ce()
3423
3426
  };
3424
3427
  if (await Tt())
3425
- return J.current = !1, Fr(T), {
3428
+ return J.current = !1, Tr(T), {
3426
3429
  succeed: !1,
3427
- id: de()
3430
+ id: ce()
3428
3431
  };
3429
- w(!0), Ce == null || Ce(!0);
3432
+ w(!0), Se == null || Se(!0);
3430
3433
  try {
3431
- m === "api" ? await sr(K) : await zo(K), u && (B.current = void 0, Nt({
3434
+ m === "api" ? await ir(K) : await zo(K), u && (B.current = void 0, Nt({
3432
3435
  values: {},
3433
3436
  fields: I,
3434
3437
  reset: !0
@@ -3436,13 +3439,13 @@ function Ol(e, t) {
3436
3439
  forceRefresh: !0
3437
3440
  }), q = !0, Sn.success(x("savedRegisters"));
3438
3441
  } catch (oe) {
3439
- J.current = !1, w(!1), Ce == null || Ce(!1), Ge == null || Ge(oe), Sn.error(x("errorWhileSavingForm")), V(oe != null && oe.message ? oe.message : oe);
3442
+ J.current = !1, w(!1), Se == null || Se(!1), Be == null || Be(oe), Sn.error(x("errorWhileSavingForm")), V(oe != null && oe.message ? oe.message : oe);
3440
3443
  } finally {
3441
- J.current = !1, Ce == null || Ce(!1), w(!1);
3444
+ J.current = !1, Se == null || Se(!1), w(!1);
3442
3445
  }
3443
3446
  return {
3444
3447
  succeed: q,
3445
- id: de()
3448
+ id: ce()
3446
3449
  };
3447
3450
  }, Pt = ({
3448
3451
  fields: K,
@@ -3450,7 +3453,7 @@ function Ol(e, t) {
3450
3453
  values: re,
3451
3454
  operationInProgress: oe = !1
3452
3455
  }) => {
3453
- var nt;
3456
+ var rt;
3454
3457
  const pe = new jr(K);
3455
3458
  pe.parse(q, {
3456
3459
  readOnly: d || oe,
@@ -3458,7 +3461,7 @@ function Ol(e, t) {
3458
3461
  ...re,
3459
3462
  ...Fe()
3460
3463
  }, K)
3461
- }), M(pe), pe.string && pe.string !== je && (ee == null || ee(pe.string)), G && pe.string && ((nt = G.setTitle) == null || nt.call(G, pe.string));
3464
+ }), M(pe), pe.string && pe.string !== Ke && (ee == null || ee(pe.string)), G && pe.string && ((rt = G.setTitle) == null || rt.call(G, pe.string));
3462
3465
  }, wn = async ({
3463
3466
  elementHasLostFocus: K = !1
3464
3467
  }) => {
@@ -3513,7 +3516,7 @@ function Ol(e, t) {
3513
3516
  }), oe = await H.getHandler().executeOnChange({
3514
3517
  model: r,
3515
3518
  action: q.method,
3516
- ids: de() ? [de()] : [],
3519
+ ids: ce() ? [ce()] : [],
3517
3520
  payload: re,
3518
3521
  fields: I
3519
3522
  });
@@ -3535,9 +3538,9 @@ function Ol(e, t) {
3535
3538
  if (oe.warning && oe.warning.title && oe.warning.message && !le.current) {
3536
3539
  const {
3537
3540
  title: pe,
3538
- message: nt
3541
+ message: rt
3539
3542
  } = oe.warning;
3540
- le.current = !0, cl(pe, nt, () => {
3543
+ le.current = !0, cl(pe, rt, () => {
3541
3544
  le.current = !1;
3542
3545
  });
3543
3546
  }
@@ -3560,7 +3563,7 @@ function Ol(e, t) {
3560
3563
  const re = await H.getHandler().execute({
3561
3564
  model: r,
3562
3565
  action: K,
3563
- payload: [de()],
3566
+ payload: [ce()],
3564
3567
  context: {
3565
3568
  ...O == null ? void 0 : O.context,
3566
3569
  ...v,
@@ -3568,16 +3571,16 @@ function Ol(e, t) {
3568
3571
  }
3569
3572
  });
3570
3573
  if (typeof re == "object" && re !== null && Object.keys(re).length === 0 && g)
3571
- se == null || se(de(), Ke(), ae());
3574
+ se == null || se(ce(), Ye(), ae());
3572
3575
  else if (re.type && re.type === "ir.actions.act_window_close")
3573
- se == null || se(de(), Ke(), ae());
3576
+ se == null || se(ce(), Ye(), ae());
3574
3577
  else if (re.type) {
3575
3578
  let oe = {};
3576
3579
  re.context && (oe = wt({
3577
3580
  context: re.context,
3578
3581
  fields: I,
3579
- values: Ke()
3580
- })), await ar({
3582
+ values: Ye()
3583
+ })), await sr({
3581
3584
  actionData: re,
3582
3585
  context: {
3583
3586
  ...q,
@@ -3595,9 +3598,9 @@ function Ol(e, t) {
3595
3598
  const q = await H.getHandler().executeWorkflow({
3596
3599
  model: r,
3597
3600
  action: K,
3598
- payload: de()
3601
+ payload: ce()
3599
3602
  });
3600
- q.type && q.type === "ir.actions.act_window_close" ? se == null || se(de(), Ke(), ae()) : await yt({
3603
+ q.type && q.type === "ir.actions.act_window_close" ? se == null || se(ce(), Ye(), ae()) : await yt({
3601
3604
  forceRefresh: !0
3602
3605
  });
3603
3606
  }
@@ -3610,12 +3613,12 @@ function Ol(e, t) {
3610
3613
  ids: [parseInt(K)],
3611
3614
  context: v
3612
3615
  }))[0];
3613
- await ar({
3616
+ await sr({
3614
3617
  actionData: re,
3615
3618
  context: q
3616
3619
  });
3617
3620
  }
3618
- async function ar({
3621
+ async function sr({
3619
3622
  actionData: K,
3620
3623
  context: q
3621
3624
  }) {
@@ -3624,7 +3627,7 @@ function Ol(e, t) {
3624
3627
  } = await (Ve == null ? void 0 : Ve({
3625
3628
  actionData: K,
3626
3629
  fields: I,
3627
- values: Ke(),
3630
+ values: Ye(),
3628
3631
  context: {
3629
3632
  ...v,
3630
3633
  ...O == null ? void 0 : O.context,
@@ -3636,7 +3639,7 @@ function Ol(e, t) {
3636
3639
  });
3637
3640
  }
3638
3641
  })) || {};
3639
- !b && re && (se == null || se(de(), Ke(), ae()));
3642
+ !b && re && (se == null || se(ce(), Ye(), ae()));
3640
3643
  }
3641
3644
  function ni() {
3642
3645
  wn({
@@ -3661,28 +3664,28 @@ function Ol(e, t) {
3661
3664
  return;
3662
3665
  }
3663
3666
  if (await Tt()) {
3664
- Fr(T);
3667
+ Tr(T);
3665
3668
  return;
3666
3669
  }
3667
3670
  let oe = !1;
3668
3671
  try {
3669
- !d && (tt() || de() === void 0) && (oe = !0, bn(!0), m === "2many" ? (await sr({
3672
+ (nt() || ce() === void 0) && (oe = !0, bn(!0), m === "2many" ? (await ir({
3670
3673
  callOnSubmitSucceed: !1
3671
3674
  }), Z.current = !0) : await Qt({
3672
3675
  callOnSubmitSucceed: !1
3673
3676
  }));
3674
- const pe = Z.current ? ve() : {}, nt = {
3677
+ const pe = Z.current ? ve() : {}, rt = {
3675
3678
  ...re,
3676
3679
  ...pe
3677
3680
  };
3678
3681
  K === "object" ? await Qo({
3679
3682
  action: q,
3680
- context: nt
3683
+ context: rt
3681
3684
  }) : K === "workflow" ? await ei({
3682
3685
  action: q
3683
3686
  }) : K === "action" && await ti({
3684
3687
  action: q,
3685
- context: nt
3688
+ context: rt
3686
3689
  }), oe && bn(!1);
3687
3690
  } catch (pe) {
3688
3691
  oe && bn(!1), ze(pe);
@@ -3690,19 +3693,19 @@ function Ol(e, t) {
3690
3693
  }
3691
3694
  const oi = () => !O && !L ? /* @__PURE__ */ n(Re, {}) : !r && !p || !R ? null : /* @__PURE__ */ n(te, {
3692
3695
  children: /* @__PURE__ */ n(ds, {
3693
- getValues: Ke,
3696
+ getValues: Ye,
3694
3697
  getPlainValues: Q,
3695
- getFields: ot,
3698
+ getFields: et,
3696
3699
  domain: C,
3697
3700
  activeId: i,
3698
3701
  activeModel: r,
3699
3702
  setFieldValue: Ae,
3700
- getFieldValue: We,
3703
+ getFieldValue: Ue,
3701
3704
  executeButtonAction: ri,
3702
3705
  getContext: Te,
3703
3706
  submitForm: Qt,
3704
3707
  fetchValues: yt,
3705
- formHasChanges: tt,
3708
+ formHasChanges: nt,
3706
3709
  elementHasLostFocus: ni,
3707
3710
  children: /* @__PURE__ */ n(lt, {
3708
3711
  form: k,
@@ -3719,14 +3722,14 @@ function Ol(e, t) {
3719
3722
  })
3720
3723
  })
3721
3724
  }), ii = () => /* @__PURE__ */ P(te, {
3722
- children: [/* @__PURE__ */ n(dn, {}), /* @__PURE__ */ n(xe, {
3725
+ children: [/* @__PURE__ */ n(dn, {}), /* @__PURE__ */ n(Ce, {
3723
3726
  justify: "end",
3724
- children: /* @__PURE__ */ P(Ye, {
3727
+ children: /* @__PURE__ */ P(We, {
3725
3728
  children: [/* @__PURE__ */ n(Ie, {
3726
3729
  icon: /* @__PURE__ */ n(qt, {}),
3727
3730
  disabled: F,
3728
3731
  onClick: async () => {
3729
- await ir();
3732
+ await or();
3730
3733
  },
3731
3734
  children: "Cancel"
3732
3735
  }), /* @__PURE__ */ n(Ie, {
@@ -3742,7 +3745,7 @@ function Ol(e, t) {
3742
3745
  })
3743
3746
  })]
3744
3747
  });
3745
- return R ? /* @__PURE__ */ n(Qn, {
3748
+ return R ? /* @__PURE__ */ n(Xn, {
3746
3749
  bounds: !0,
3747
3750
  onResize: (K) => {
3748
3751
  var q;
@@ -3812,9 +3815,9 @@ const Zt = bt(Ol), Xt = (e) => {
3812
3815
  y(!m);
3813
3816
  }
3814
3817
  function C() {
3815
- return /* @__PURE__ */ P(xe, {
3818
+ return /* @__PURE__ */ P(Ce, {
3816
3819
  align: "middle",
3817
- children: [/* @__PURE__ */ n(ce, {
3820
+ children: [/* @__PURE__ */ n(de, {
3818
3821
  children: /* @__PURE__ */ n(Ie, {
3819
3822
  type: m ? "primary" : "default",
3820
3823
  icon: m ? /* @__PURE__ */ n(zr, {
@@ -3827,7 +3830,7 @@ const Zt = bt(Ol), Xt = (e) => {
3827
3830
  },
3828
3831
  onClick: v
3829
3832
  })
3830
- }), /* @__PURE__ */ n(ce, {
3833
+ }), /* @__PURE__ */ n(de, {
3831
3834
  style: {
3832
3835
  paddingLeft: 10
3833
3836
  },
@@ -3887,10 +3890,10 @@ const Zt = bt(Ol), Xt = (e) => {
3887
3890
  fieldForLabel: o
3888
3891
  }),
3889
3892
  align: "left"
3890
- }), /* @__PURE__ */ P(xe, {
3893
+ }), /* @__PURE__ */ P(Ce, {
3891
3894
  align: "bottom",
3892
3895
  className: "p-0",
3893
- children: [/* @__PURE__ */ n(ce, {
3896
+ children: [/* @__PURE__ */ n(de, {
3894
3897
  className: "mr-2",
3895
3898
  children: /* @__PURE__ */ n(we, {
3896
3899
  ...e,
@@ -3902,12 +3905,12 @@ const Zt = bt(Ol), Xt = (e) => {
3902
3905
  format: "DD/MM/YYYY"
3903
3906
  })
3904
3907
  })
3905
- }), /* @__PURE__ */ n(ce, {
3908
+ }), /* @__PURE__ */ n(de, {
3906
3909
  children: /* @__PURE__ */ n(we, {
3907
3910
  ...e,
3908
3911
  ooui: s[1],
3909
3912
  showLabel: !1,
3910
- children: /* @__PURE__ */ n(Lr.RangePicker, {
3913
+ children: /* @__PURE__ */ n($r.RangePicker, {
3911
3914
  className: "w-60",
3912
3915
  allowEmpty: [!0, !0],
3913
3916
  format: "HH:mm"
@@ -3937,7 +3940,7 @@ const Zt = bt(Ol), Xt = (e) => {
3937
3940
  required: s,
3938
3941
  type: "number",
3939
3942
  ...e,
3940
- children: /* @__PURE__ */ n(Hn, {
3943
+ children: /* @__PURE__ */ n(Lr, {
3941
3944
  disabled: o,
3942
3945
  className: "w-full",
3943
3946
  style: l,
@@ -3969,7 +3972,7 @@ const Zt = bt(Ol), Xt = (e) => {
3969
3972
  required: s,
3970
3973
  type: "number",
3971
3974
  ...e,
3972
- children: /* @__PURE__ */ n(Hn, {
3975
+ children: /* @__PURE__ */ n(Lr, {
3973
3976
  id: i,
3974
3977
  className: "w-full ",
3975
3978
  disabled: o,
@@ -4010,19 +4013,19 @@ function Rl(e) {
4010
4013
  fieldForLabel: i
4011
4014
  }),
4012
4015
  align: "left"
4013
- }), /* @__PURE__ */ P(xe, {
4016
+ }), /* @__PURE__ */ P(Ce, {
4014
4017
  align: "bottom",
4015
4018
  className: "mt-0",
4016
4019
  wrap: !1,
4017
- children: [/* @__PURE__ */ n(ce, {
4020
+ children: [/* @__PURE__ */ n(de, {
4018
4021
  children: l("#from")
4019
- }), /* @__PURE__ */ n(ce, {
4022
+ }), /* @__PURE__ */ n(de, {
4020
4023
  className: "pb-1",
4021
4024
  children: /* @__PURE__ */ n("span", {
4022
4025
  className: "pl-2 pr-2 h-full",
4023
4026
  children: " - "
4024
4027
  })
4025
- }), /* @__PURE__ */ n(ce, {
4028
+ }), /* @__PURE__ */ n(de, {
4026
4029
  children: l("#to")
4027
4030
  })]
4028
4031
  })]
@@ -4100,7 +4103,7 @@ function Pl(e) {
4100
4103
  } = W(ye);
4101
4104
  switch (t.type) {
4102
4105
  case ht.boolean: {
4103
- const o = new Bn({
4106
+ const o = new Hn({
4104
4107
  name: t._id,
4105
4108
  string: t.label,
4106
4109
  selection: [["true", r("true")], ["false", r("false")]]
@@ -4155,8 +4158,8 @@ function Hl(e) {
4155
4158
  } = e, {
4156
4159
  t: s
4157
4160
  } = W(ye);
4158
- return /* @__PURE__ */ P(xe, {
4159
- children: [/* @__PURE__ */ n(ce, {
4161
+ return /* @__PURE__ */ P(Ce, {
4162
+ children: [/* @__PURE__ */ n(de, {
4160
4163
  span: 12,
4161
4164
  className: "text-left pt-4 pb-2 pl-2",
4162
4165
  children: /* @__PURE__ */ P("a", {
@@ -4168,16 +4171,16 @@ function Hl(e) {
4168
4171
  className: "pr-1"
4169
4172
  }), s(r ? "simple_search" : "advanced_search")]
4170
4173
  })
4171
- }), /* @__PURE__ */ P(ce, {
4174
+ }), /* @__PURE__ */ P(de, {
4172
4175
  span: 12,
4173
4176
  className: "text-right pb-2",
4174
4177
  children: [/* @__PURE__ */ n(Ie, {
4175
4178
  className: "mr-5",
4176
- icon: /* @__PURE__ */ n(Wn, {}),
4179
+ icon: /* @__PURE__ */ n(Yn, {}),
4177
4180
  onClick: i,
4178
4181
  children: s("clear")
4179
4182
  }), /* @__PURE__ */ n(Ie, {
4180
- icon: /* @__PURE__ */ n(Un, {}),
4183
+ icon: /* @__PURE__ */ n(Wn, {}),
4181
4184
  loading: o,
4182
4185
  className: "mr-2",
4183
4186
  type: "primary",
@@ -4199,9 +4202,9 @@ function Bl(e) {
4199
4202
  });
4200
4203
  return /* @__PURE__ */ P("div", {
4201
4204
  className: "pl-2 pt-2",
4202
- children: [/* @__PURE__ */ n(xe, {
4205
+ children: [/* @__PURE__ */ n(Ce, {
4203
4206
  children: r("parameters")
4204
- }, "count_params"), /* @__PURE__ */ P(Ye, {
4207
+ }, "count_params"), /* @__PURE__ */ P(We, {
4205
4208
  align: "center",
4206
4209
  children: [r("limit") + " :", /* @__PURE__ */ n(on, {
4207
4210
  ooui: i,
@@ -4245,8 +4248,8 @@ function Fo(e) {
4245
4248
  if (!g)
4246
4249
  return;
4247
4250
  const F = C ? g : p, w = F == null ? void 0 : F.rows;
4248
- return w == null ? void 0 : w.map((L, V) => /* @__PURE__ */ n(xe, {
4249
- children: L.map((O, M) => /* @__PURE__ */ n(ce, {
4251
+ return w == null ? void 0 : w.map((L, V) => /* @__PURE__ */ n(Ce, {
4252
+ children: L.map((O, M) => /* @__PURE__ */ n(de, {
4250
4253
  xs: 24,
4251
4254
  className: "p-2",
4252
4255
  xl: 6,
@@ -4274,7 +4277,7 @@ function Fo(e) {
4274
4277
  searchValues: F
4275
4278
  });
4276
4279
  };
4277
- return /* @__PURE__ */ n(Qn, {
4280
+ return /* @__PURE__ */ n(Xn, {
4278
4281
  bounds: !0,
4279
4282
  onResize: (F) => {
4280
4283
  var w;
@@ -4311,7 +4314,7 @@ function Fo(e) {
4311
4314
  },
4312
4315
  isSearching: s
4313
4316
  })]
4314
- }), u && /* @__PURE__ */ n(et, {
4317
+ }), u && /* @__PURE__ */ n(tt, {
4315
4318
  className: "mt-10",
4316
4319
  message: u,
4317
4320
  type: "error",
@@ -4323,7 +4326,7 @@ function Fo(e) {
4323
4326
  })
4324
4327
  });
4325
4328
  }
4326
- const _r = (e, t = "14px -apple-system") => {
4329
+ const Ir = (e, t = "14px -apple-system") => {
4327
4330
  const i = document.createElement("canvas").getContext("2d");
4328
4331
  i.font = t;
4329
4332
  const o = i.measureText(e);
@@ -4333,13 +4336,13 @@ const _r = (e, t = "14px -apple-system") => {
4333
4336
  return e;
4334
4337
  const i = e.map(
4335
4338
  (s) => Object.assign(s, {
4336
- width: _r(s.title)
4339
+ width: Ir(s.title)
4337
4340
  })
4338
4341
  );
4339
4342
  t.map((s) => {
4340
4343
  i.map((a, l) => {
4341
4344
  const f = a.width, c = s[a.key] || "";
4342
- let d = _r(c);
4345
+ let d = Ir(c);
4343
4346
  d < f && (d = f), d > r && (d = r), i[l].width = d;
4344
4347
  });
4345
4348
  });
@@ -4415,7 +4418,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4415
4418
  .ant-progress-text {
4416
4419
  display: none;
4417
4420
  }
4418
- `, Dr = (e) => {
4421
+ `, _r = (e) => {
4419
4422
  const {
4420
4423
  visible: t,
4421
4424
  onCancel: r,
@@ -4432,7 +4435,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4432
4435
  destroyOnClose: !0,
4433
4436
  onCancel: r,
4434
4437
  maskClosable: !1,
4435
- children: /* @__PURE__ */ n(Ye, {
4438
+ children: /* @__PURE__ */ n(We, {
4436
4439
  direction: "vertical",
4437
4440
  className: "w-full",
4438
4441
  children: i.map((a) => /* @__PURE__ */ n(Ie, {
@@ -4444,7 +4447,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4444
4447
  }))
4445
4448
  })
4446
4449
  });
4447
- }, tr = (e) => {
4450
+ }, er = (e) => {
4448
4451
  var x, T;
4449
4452
  const {
4450
4453
  id: t,
@@ -4473,7 +4476,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4473
4476
  const {
4474
4477
  toolbar: D
4475
4478
  } = M;
4476
- (F = D.action) == null || F.filter((I) => I.hasOwnProperty("context")).map((I) => k.push(...Tn(I.context))), (w = D.action) == null || w.filter((I) => I.hasOwnProperty("domain")).map((I) => k.push(...dr(I.domain))), (L = D.relate) == null || L.filter((I) => I.hasOwnProperty("context")).map((I) => k.push(...Tn(I.context))), (V = D.relate) == null || V.filter((I) => I.hasOwnProperty("domain")).map((I) => k.push(...dr(I.domain))), (O = D.print) == null || O.filter((I) => I.hasOwnProperty("context")).map((I) => k.push(...Tn(I.context))), k = k.filter((I) => Object.keys(M.fields).indexOf(I) > -1);
4479
+ (F = D.action) == null || F.filter((I) => I.hasOwnProperty("context")).map((I) => k.push(...Tn(I.context))), (w = D.action) == null || w.filter((I) => I.hasOwnProperty("domain")).map((I) => k.push(...cr(I.domain))), (L = D.relate) == null || L.filter((I) => I.hasOwnProperty("context")).map((I) => k.push(...Tn(I.context))), (V = D.relate) == null || V.filter((I) => I.hasOwnProperty("domain")).map((I) => k.push(...cr(I.domain))), (O = D.print) == null || O.filter((I) => I.hasOwnProperty("context")).map((I) => k.push(...Tn(I.context))), k = k.filter((I) => Object.keys(M.fields).indexOf(I) > -1);
4477
4480
  let $ = {};
4478
4481
  k.length > 0 && ($ = (await H.getHandler().readObjects({
4479
4482
  model: r,
@@ -4492,7 +4495,7 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4492
4495
  function b() {
4493
4496
  var w;
4494
4497
  if (f)
4495
- return /* @__PURE__ */ n(Be, {
4498
+ return /* @__PURE__ */ n(je, {
4496
4499
  children: /* @__PURE__ */ n("div", {
4497
4500
  style: {
4498
4501
  padding: 15
@@ -4501,21 +4504,21 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4501
4504
  })
4502
4505
  });
4503
4506
  if (!d || !d.toolbar)
4504
- return /* @__PURE__ */ n(Be, {});
4505
- const F = (w = d == null ? void 0 : d.toolbar) == null ? void 0 : w.relate.map((L) => /* @__PURE__ */ n(Be.Item, {
4507
+ return /* @__PURE__ */ n(je, {});
4508
+ const F = (w = d == null ? void 0 : d.toolbar) == null ? void 0 : w.relate.map((L) => /* @__PURE__ */ n(je.Item, {
4506
4509
  children: L.name
4507
4510
  }, L.id));
4508
- return /* @__PURE__ */ n(Be, {
4511
+ return /* @__PURE__ */ n(je, {
4509
4512
  onClick: A,
4510
- children: [/* @__PURE__ */ n(Be.Item, {
4513
+ children: [/* @__PURE__ */ n(je.Item, {
4511
4514
  disabled: !d.toolbar.action || d.toolbar.action.length === 0,
4512
- icon: /* @__PURE__ */ n(Gn, {}),
4515
+ icon: /* @__PURE__ */ n(Un, {}),
4513
4516
  children: p("action")
4514
- }, "action"), /* @__PURE__ */ n(Be.Item, {
4517
+ }, "action"), /* @__PURE__ */ n(je.Item, {
4515
4518
  disabled: !d.toolbar.print || d.toolbar.print.length === 0,
4516
- icon: /* @__PURE__ */ n(qn, {}),
4519
+ icon: /* @__PURE__ */ n(Gn, {}),
4517
4520
  children: p("report")
4518
- }, "print"), /* @__PURE__ */ n(Be.Divider, {}), /* @__PURE__ */ n(Be.ItemGroup, {
4521
+ }, "print"), /* @__PURE__ */ n(je.Divider, {}), /* @__PURE__ */ n(je.ItemGroup, {
4519
4522
  title: /* @__PURE__ */ P(te, {
4520
4523
  children: [/* @__PURE__ */ n(Zr, {}), " ", /* @__PURE__ */ P("span", {
4521
4524
  children: [" ", p("related")]
@@ -4579,12 +4582,12 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4579
4582
  F.preventDefault(), R();
4580
4583
  }
4581
4584
  })
4582
- }), /* @__PURE__ */ n(Dr, {
4585
+ }), /* @__PURE__ */ n(_r, {
4583
4586
  visible: o,
4584
4587
  items: (x = d == null ? void 0 : d.toolbar) == null ? void 0 : x.action,
4585
4588
  onItemClicked: S,
4586
4589
  onCancel: () => s(!1)
4587
- }), /* @__PURE__ */ n(Dr, {
4590
+ }), /* @__PURE__ */ n(_r, {
4588
4591
  visible: a,
4589
4592
  items: (T = d == null ? void 0 : d.toolbar) == null ? void 0 : T.print,
4590
4593
  onItemClicked: E,
@@ -4595,10 +4598,10 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4595
4598
  const {
4596
4599
  m2oField: t
4597
4600
  } = e;
4598
- return t ? /* @__PURE__ */ P(Ye, {
4601
+ return t ? /* @__PURE__ */ P(We, {
4599
4602
  children: [/* @__PURE__ */ n(te, {
4600
4603
  children: t.value
4601
- }), /* @__PURE__ */ n(tr, {
4604
+ }), /* @__PURE__ */ n(er, {
4602
4605
  id: t.id,
4603
4606
  model: t.model
4604
4607
  })]
@@ -4627,12 +4630,12 @@ const Wl = (e) => /* @__PURE__ */ n(we, {
4627
4630
  if (a)
4628
4631
  return /* @__PURE__ */ n(st, {});
4629
4632
  const m = i.get(f);
4630
- return /* @__PURE__ */ P(Ye, {
4633
+ return /* @__PURE__ */ P(We, {
4631
4634
  children: [/* @__PURE__ */ n(te, {
4632
4635
  children: `${m}:`
4633
4636
  }), /* @__PURE__ */ n(te, {
4634
4637
  children: o
4635
- }), /* @__PURE__ */ n(tr, {
4638
+ }), /* @__PURE__ */ n(er, {
4636
4639
  id: d,
4637
4640
  model: f
4638
4641
  })]
@@ -5077,7 +5080,7 @@ const ut = {
5077
5080
  })
5078
5081
  }), rc = (e) => /* @__PURE__ */ n(Gl, {
5079
5082
  m2oField: e
5080
- }), oc = (e) => /* @__PURE__ */ n(Xn, {
5083
+ }), oc = (e) => /* @__PURE__ */ n(Zn, {
5081
5084
  content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
5082
5085
  }), ic = (e) => {
5083
5086
  if (!e || e && e.length === 0)
@@ -5093,7 +5096,7 @@ const ut = {
5093
5096
  return /* @__PURE__ */ n(te, {
5094
5097
  children: t
5095
5098
  });
5096
- }, Ar = (e) => {
5099
+ }, Dr = (e) => {
5097
5100
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
5098
5101
  return /* @__PURE__ */ n(te, {
5099
5102
  children: `( ${t} )`
@@ -5102,7 +5105,7 @@ const ut = {
5102
5105
  value: e
5103
5106
  }), lc = (e) => /* @__PURE__ */ n(te, {
5104
5107
  children: Oo(e)
5105
- }), Rr = (e) => /* @__PURE__ */ n("div", {
5108
+ }), Ar = (e) => /* @__PURE__ */ n("div", {
5106
5109
  style: {
5107
5110
  textAlign: "right"
5108
5111
  },
@@ -5154,7 +5157,7 @@ function gn(e) {
5154
5157
  onSelectAllRecords: A
5155
5158
  } = e, [S, E] = _([]), [x, T] = _([]), F = ue(!1), w = ue(null), {
5156
5159
  t: L
5157
- } = W(ye), V = ue(r), O = W(rt), {
5160
+ } = W(ye), V = ue(r), O = W(ot), {
5158
5161
  title: M = void 0,
5159
5162
  setTitle: k = void 0
5160
5163
  } = (C ? O : {}) || {};
@@ -5164,13 +5167,13 @@ function gn(e) {
5164
5167
  boolean: nc,
5165
5168
  many2one: rc,
5166
5169
  text: oc,
5167
- one2many: Ar,
5168
- many2many: Ar,
5170
+ one2many: Dr,
5171
+ many2many: Dr,
5169
5172
  progressbar: ac,
5170
5173
  float_time: lc,
5171
5174
  image: cc,
5172
- integer: Rr,
5173
- float: Rr,
5175
+ integer: Ar,
5176
+ float: Ar,
5174
5177
  reference: fc,
5175
5178
  tag: dc,
5176
5179
  selection: uc,
@@ -5191,10 +5194,10 @@ function gn(e) {
5191
5194
  const N = S == null ? void 0 : S.filter((X) => (d == null ? void 0 : d.selectedRowKeys) && (d == null ? void 0 : d.selectedRowKeys.includes(X.id))).length;
5192
5195
  return l ? null : i === void 0 ? /* @__PURE__ */ n(Re, {
5193
5196
  className: "pb-4"
5194
- }) : /* @__PURE__ */ P(xe, {
5197
+ }) : /* @__PURE__ */ P(Ce, {
5195
5198
  align: "bottom",
5196
5199
  className: "pb-4",
5197
- children: [/* @__PURE__ */ n(ce, {
5200
+ children: [/* @__PURE__ */ n(de, {
5198
5201
  span: A ? 8 : 12,
5199
5202
  children: /* @__PURE__ */ n(ui, {
5200
5203
  total: i,
@@ -5203,7 +5206,7 @@ function gn(e) {
5203
5206
  showSizeChanger: !1,
5204
5207
  onChange: a
5205
5208
  })
5206
- }), A && /* @__PURE__ */ n(ce, {
5209
+ }), A && /* @__PURE__ */ n(de, {
5207
5210
  span: 8,
5208
5211
  className: "text-center",
5209
5212
  children: /* @__PURE__ */ n(tc, {
@@ -5213,7 +5216,7 @@ function gn(e) {
5213
5216
  totalRecords: i || 0,
5214
5217
  onSelectAllRecords: A
5215
5218
  })
5216
- }), /* @__PURE__ */ n(ce, {
5219
+ }), /* @__PURE__ */ n(de, {
5217
5220
  span: A ? 8 : 12,
5218
5221
  className: "text-right",
5219
5222
  children: I
@@ -5301,7 +5304,7 @@ function hc(e, t) {
5301
5304
  height: V
5302
5305
  } = hn(), O = W(Lt), {
5303
5306
  processAction: M
5304
- } = O || {}, k = W(rt), {
5307
+ } = O || {}, k = W(ot), {
5305
5308
  setResults: D = void 0,
5306
5309
  setCurrentItemIndex: $ = void 0,
5307
5310
  currentId: I = void 0,
@@ -5323,21 +5326,21 @@ function hc(e, t) {
5323
5326
  setLimit: De = void 0
5324
5327
  } = (d ? k : {}) || {}, {
5325
5328
  submit: Ne,
5326
- clear: Ue,
5327
- fetchResults: Ce,
5329
+ clear: Ge,
5330
+ fetchResults: Se,
5328
5331
  tableRefreshing: ie,
5329
5332
  searchFilterLoading: Ee,
5330
5333
  searchError: be,
5331
5334
  page: $e,
5332
- offset: je,
5335
+ offset: Ke,
5333
5336
  getResults: ee,
5334
- requestPageChange: Se,
5337
+ requestPageChange: xe,
5335
5338
  changeSort: Ve,
5336
5339
  fetchChildrenForRecord: He,
5337
5340
  colorsForResults: se,
5338
5341
  statusForResults: me,
5339
- totalItems: Ge,
5340
- getAllIds: de
5342
+ totalItems: Be,
5343
+ getAllIds: ce
5341
5344
  } = So({
5342
5345
  model: C,
5343
5346
  setSearchTreeNameSearch: J,
@@ -5365,23 +5368,23 @@ function hc(e, t) {
5365
5368
  });
5366
5369
  xt(t, () => ({
5367
5370
  refreshResults: () => {
5368
- v.current = !1, Ce();
5371
+ v.current = !1, Se();
5369
5372
  },
5370
5373
  getFields: () => b == null ? void 0 : b.fields,
5371
5374
  getDomain: () => f
5372
5375
  })), ge(() => {
5373
- !h || c && (v.current = !1, Ce());
5374
- }, [$e, je, h, c, a]);
5375
- const ot = async () => {
5376
+ !h || c && (v.current = !1, Se());
5377
+ }, [$e, Ke, h, c, a]);
5378
+ const et = async () => {
5376
5379
  g(!1), p(!0), T(void 0), Z == null || Z(!0);
5377
5380
  try {
5378
- await Ke(), g(!0);
5381
+ await Ye(), g(!0);
5379
5382
  } catch (Ae) {
5380
5383
  T(Ae), Z == null || Z(!1);
5381
5384
  } finally {
5382
5385
  p(!1);
5383
5386
  }
5384
- }, Ke = async () => {
5387
+ }, Ye = async () => {
5385
5388
  R(r);
5386
5389
  let Ae = i;
5387
5390
  i || (Ae = await H.getHandler().getView({
@@ -5389,21 +5392,21 @@ function hc(e, t) {
5389
5392
  type: "form",
5390
5393
  context: u
5391
5394
  }));
5392
- let We = o;
5393
- o || (We = await H.getHandler().getView({
5395
+ let Ue = o;
5396
+ o || (Ue = await H.getHandler().getView({
5394
5397
  model: r,
5395
5398
  type: "tree",
5396
5399
  context: u
5397
- })), E(Ae), A(We);
5400
+ })), E(Ae), A(Ue);
5398
5401
  };
5399
5402
  ge(() => {
5400
- ot();
5403
+ et();
5401
5404
  }, [r]);
5402
5405
  const Q = (Ae) => {
5403
5406
  De == null || De(Ae);
5404
5407
  }, ae = async (Ae) => {
5405
5408
  const {
5406
- id: We
5409
+ id: Ue
5407
5410
  } = Ae;
5408
5411
  L.current || (L.current = await H.getHandler().treeButOpen({
5409
5412
  id: b.view_id,
@@ -5415,14 +5418,14 @@ function hc(e, t) {
5415
5418
  actionData: Tt,
5416
5419
  fields: b.fields,
5417
5420
  values: {
5418
- active_id: We,
5421
+ active_id: Ue,
5419
5422
  ...Ae
5420
5423
  },
5421
5424
  context: u
5422
5425
  }));
5423
5426
  }, Te = async (Ae) => {
5424
5427
  const {
5425
- id: We
5428
+ id: Ue
5426
5429
  } = Ae;
5427
5430
  if (b != null && b.isExpandable) {
5428
5431
  try {
@@ -5433,36 +5436,36 @@ function hc(e, t) {
5433
5436
  return;
5434
5437
  }
5435
5438
  s({
5436
- id: We,
5439
+ id: Ue,
5437
5440
  model: C,
5438
5441
  formView: S,
5439
5442
  treeView: b
5440
5443
  });
5441
5444
  };
5442
5445
  function ve(Ae) {
5443
- U == null || U(Ae.map((We) => ({
5444
- id: We
5446
+ U == null || U(Ae.map((Ue) => ({
5447
+ id: Ue
5445
5448
  }))), m == null || m(Ae);
5446
5449
  }
5447
5450
  async function Fe() {
5448
- const Ae = await de();
5449
- U == null || U(Ae.map((We) => ({
5450
- id: We
5451
+ const Ae = await ce();
5452
+ U == null || U(Ae.map((Ue) => ({
5453
+ id: Ue
5451
5454
  }))), m == null || m(Ae);
5452
5455
  }
5453
5456
  function _e() {
5454
5457
  return b != null && b.isExpandable ? V - 160 : V - (F + 210);
5455
5458
  }
5456
- const tt = () => !b || !S ? null : /* @__PURE__ */ P(te, {
5459
+ const nt = () => !b || !S ? null : /* @__PURE__ */ P(te, {
5457
5460
  children: [/* @__PURE__ */ n(Fo, {
5458
5461
  fields: {
5459
5462
  ...S.fields,
5460
5463
  ...b.fields
5461
5464
  },
5462
5465
  searchFields: wo([S.search_fields, b.search_fields]),
5463
- onClear: Ue,
5466
+ onClear: Ge,
5464
5467
  limit: Me,
5465
- offset: je,
5468
+ offset: Ke,
5466
5469
  isSearching: Ee,
5467
5470
  onSubmit: Ne,
5468
5471
  onLimitChange: Q,
@@ -5472,12 +5475,12 @@ function hc(e, t) {
5472
5475
  searchValues: fe
5473
5476
  }), /* @__PURE__ */ n(gn, {
5474
5477
  context: u,
5475
- total: Ge,
5478
+ total: Be,
5476
5479
  limit: Me,
5477
5480
  page: $e,
5478
5481
  treeView: b,
5479
5482
  results: ee(),
5480
- onRequestPageChange: Se,
5483
+ onRequestPageChange: xe,
5481
5484
  loading: ie,
5482
5485
  onRowClicked: Te,
5483
5486
  scrollY: l || _e(),
@@ -5495,7 +5498,7 @@ function hc(e, t) {
5495
5498
  onSelectAllRecords: Fe
5496
5499
  })]
5497
5500
  }), qe = x || be;
5498
- return qe ? /* @__PURE__ */ n(et, {
5501
+ return qe ? /* @__PURE__ */ n(tt, {
5499
5502
  className: "mt-10",
5500
5503
  message: qe,
5501
5504
  type: "error",
@@ -5504,7 +5507,7 @@ function hc(e, t) {
5504
5507
  style: c ? {} : {
5505
5508
  display: "none"
5506
5509
  },
5507
- children: y ? /* @__PURE__ */ n(Re, {}) : tt()
5510
+ children: y ? /* @__PURE__ */ n(Re, {}) : nt()
5508
5511
  });
5509
5512
  }
5510
5513
  const Vo = bt(hc), ko = (e) => {
@@ -5547,9 +5550,9 @@ const Vo = bt(hc), ko = (e) => {
5547
5550
  onChangeSelectedRowKeys: (R) => {
5548
5551
  p(R);
5549
5552
  }
5550
- }), /* @__PURE__ */ n(dn, {}), /* @__PURE__ */ n(xe, {
5553
+ }), /* @__PURE__ */ n(dn, {}), /* @__PURE__ */ n(Ce, {
5551
5554
  justify: "end",
5552
- children: /* @__PURE__ */ P(Ye, {
5555
+ children: /* @__PURE__ */ P(We, {
5553
5556
  children: [/* @__PURE__ */ n(Ie, {
5554
5557
  icon: /* @__PURE__ */ n(un, {}),
5555
5558
  onClick: () => {
@@ -5737,10 +5740,10 @@ const Vo = bt(hc), ko = (e) => {
5737
5740
  async function z(B) {
5738
5741
  B.keyCode === 13 ? (B.preventDefault(), B.stopPropagation(), await j()) : B.code === "Backspace" && k !== void 0 && (B.preventDefault(), B.stopPropagation(), $([void 0, ""]));
5739
5742
  }
5740
- return /* @__PURE__ */ P(xe, {
5743
+ return /* @__PURE__ */ P(Ce, {
5741
5744
  gutter: 8,
5742
5745
  wrap: !1,
5743
- children: [/* @__PURE__ */ n(ce, {
5746
+ children: [/* @__PURE__ */ n(de, {
5744
5747
  flex: "auto",
5745
5748
  children: /* @__PURE__ */ n(o && !a ? wc : it, {
5746
5749
  type: "text",
@@ -5750,7 +5753,7 @@ const Vo = bt(hc), ko = (e) => {
5750
5753
  style: d,
5751
5754
  onBlur: j,
5752
5755
  onKeyDown: z,
5753
- suffix: /* @__PURE__ */ n(tr, {
5756
+ suffix: /* @__PURE__ */ n(er, {
5754
5757
  id: k,
5755
5758
  model: s,
5756
5759
  context: {
@@ -5759,13 +5762,13 @@ const Vo = bt(hc), ko = (e) => {
5759
5762
  }
5760
5763
  })
5761
5764
  })
5762
- }), /* @__PURE__ */ n(ce, {
5765
+ }), /* @__PURE__ */ n(de, {
5763
5766
  flex: "32px",
5764
5767
  style: {
5765
5768
  paddingRight: 0
5766
5769
  },
5767
5770
  children: /* @__PURE__ */ n(Ie, {
5768
- icon: /* @__PURE__ */ n(Kn, {}),
5771
+ icon: /* @__PURE__ */ n(jn, {}),
5769
5772
  disabled: k === void 0 || D === "" || b === void 0,
5770
5773
  onClick: () => {
5771
5774
  p(!0);
@@ -5776,13 +5779,13 @@ const Vo = bt(hc), ko = (e) => {
5776
5779
  },
5777
5780
  tabIndex: -1
5778
5781
  })
5779
- }), /* @__PURE__ */ n(ce, {
5782
+ }), /* @__PURE__ */ n(de, {
5780
5783
  flex: "32px",
5781
5784
  style: {
5782
5785
  paddingLeft: 0
5783
5786
  },
5784
5787
  children: /* @__PURE__ */ n(Ie, {
5785
- icon: h ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Un, {}),
5788
+ icon: h ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Wn, {}),
5786
5789
  disabled: a || h,
5787
5790
  onClick: () => {
5788
5791
  R.current = !0, G(D);
@@ -5847,7 +5850,7 @@ const Vo = bt(hc), ko = (e) => {
5847
5850
  children: e
5848
5851
  });
5849
5852
  }, {
5850
- getValueForOperator: Vr
5853
+ getValueForOperator: Rr
5851
5854
  } = Yr, an = 0.7, ln = 30, xc = (e) => {
5852
5855
  const {
5853
5856
  model: t,
@@ -5884,7 +5887,7 @@ const Vo = bt(hc), ko = (e) => {
5884
5887
  fieldsToRetrieve: [c],
5885
5888
  context: i
5886
5889
  });
5887
- return Vr({
5890
+ return Rr({
5888
5891
  values: j.map((G) => G[c]),
5889
5892
  operator: d
5890
5893
  });
@@ -5909,7 +5912,7 @@ const Vo = bt(hc), ko = (e) => {
5909
5912
  fieldsToRetrieve: [c],
5910
5913
  context: i
5911
5914
  });
5912
- return Vr({
5915
+ return Rr({
5913
5916
  values: I.map((j) => j[c]),
5914
5917
  operator: d
5915
5918
  });
@@ -5968,7 +5971,7 @@ const Vo = bt(hc), ko = (e) => {
5968
5971
  }
5969
5972
  y(!1);
5970
5973
  }
5971
- return L ? /* @__PURE__ */ n(et, {
5974
+ return L ? /* @__PURE__ */ n(tt, {
5972
5975
  className: "mt-10",
5973
5976
  message: L,
5974
5977
  type: "error",
@@ -5982,7 +5985,7 @@ const Vo = bt(hc), ko = (e) => {
5982
5985
  height: "12px"
5983
5986
  }
5984
5987
  })
5985
- }) : /* @__PURE__ */ n(Qn, {
5988
+ }) : /* @__PURE__ */ n(Xn, {
5986
5989
  bounds: !0,
5987
5990
  onResize: (D) => {
5988
5991
  var $, I;
@@ -6105,16 +6108,16 @@ function Sc({
6105
6108
  flexDirection: "column",
6106
6109
  padding: "0.2rem"
6107
6110
  },
6108
- children: /* @__PURE__ */ P(xe, {
6111
+ children: /* @__PURE__ */ P(Ce, {
6109
6112
  align: "middle",
6110
- children: [h && /* @__PURE__ */ n(ce, {
6113
+ children: [h && /* @__PURE__ */ n(de, {
6111
6114
  style: {
6112
6115
  fontSize: d * 1,
6113
6116
  color: a,
6114
6117
  paddingRight: "10px"
6115
6118
  },
6116
6119
  children: /* @__PURE__ */ n(h, {})
6117
- }), /* @__PURE__ */ P(ce, {
6120
+ }), /* @__PURE__ */ P(de, {
6118
6121
  children: [/* @__PURE__ */ n(kn, {
6119
6122
  style: {
6120
6123
  fontSize: d * 0.8,
@@ -6156,7 +6159,7 @@ const In = (e) => (t) => {
6156
6159
  );
6157
6160
  } else
6158
6161
  return e;
6159
- }, Tc = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Fc = (e) => typeof e == "number" && !isNaN(e), kr = {
6162
+ }, Tc = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Fc = (e) => typeof e == "number" && !isNaN(e), Vr = {
6160
6163
  default: {
6161
6164
  padding: "auto",
6162
6165
  xAxis: {
@@ -6284,7 +6287,7 @@ const {
6284
6287
  return St(() => {
6285
6288
  (async () => {
6286
6289
  c(!0), u(void 0);
6287
- const C = jn(o);
6290
+ const C = Bn(o);
6288
6291
  v(C.type || "line");
6289
6292
  const R = Dc({
6290
6293
  ooui: C
@@ -6416,7 +6419,7 @@ const kc = {
6416
6419
  manualIds: a
6417
6420
  });
6418
6421
  if (f)
6419
- return /* @__PURE__ */ n(et, {
6422
+ return /* @__PURE__ */ n(tt, {
6420
6423
  message: f,
6421
6424
  type: "error",
6422
6425
  banner: !0
@@ -6424,7 +6427,7 @@ const kc = {
6424
6427
  if (c)
6425
6428
  return /* @__PURE__ */ n(Re, {});
6426
6429
  if (!d)
6427
- return /* @__PURE__ */ n(et, {
6430
+ return /* @__PURE__ */ n(tt, {
6428
6431
  message: "No data to display",
6429
6432
  type: "info"
6430
6433
  });
@@ -6463,8 +6466,8 @@ function Ec(e) {
6463
6466
  isGroup: i,
6464
6467
  isStack: o
6465
6468
  } = e;
6466
- let s = kr[t];
6467
- return s || (s = kr.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;
6469
+ let s = Vr[t];
6470
+ return s || (s = Vr.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;
6468
6471
  }
6469
6472
  const $c = (e, t) => {
6470
6473
  const {
@@ -6474,7 +6477,7 @@ const $c = (e, t) => {
6474
6477
  domain: s,
6475
6478
  limit: a,
6476
6479
  manualIds: l
6477
- } = e, [f, c] = _(!1), [d, u] = _(), [m, y] = _(), p = W(rt), {
6480
+ } = e, [f, c] = _(!1), [d, u] = _(), [m, y] = _(), p = W(ot), {
6478
6481
  setGraphIsLoading: h = void 0
6479
6482
  } = p || {};
6480
6483
  xt(t, () => ({
@@ -6494,7 +6497,7 @@ const $c = (e, t) => {
6494
6497
  context: o
6495
6498
  });
6496
6499
  y(v.arch);
6497
- const C = jn(v.arch);
6500
+ const C = Bn(v.arch);
6498
6501
  u(C);
6499
6502
  } catch (v) {
6500
6503
  return console.error(v), /* @__PURE__ */ n(te, {
@@ -6633,7 +6636,7 @@ const $c = (e, t) => {
6633
6636
  function R() {
6634
6637
  return /* @__PURE__ */ n(Xe, {
6635
6638
  tooltip: u ? "Unlink" : "Delete",
6636
- icon: u ? /* @__PURE__ */ n(Fi, {}) : /* @__PURE__ */ n(zn, {}),
6639
+ icon: u ? /* @__PURE__ */ n(Fi, {}) : /* @__PURE__ */ n(qn, {}),
6637
6640
  onClick: a,
6638
6641
  disabled: l === 0 || r || s !== "form" && y.length === 0
6639
6642
  });
@@ -6669,7 +6672,7 @@ const $c = (e, t) => {
6669
6672
  onClick: i
6670
6673
  }), u && p && /* @__PURE__ */ n(Xe, {
6671
6674
  tooltip: "Search existing item",
6672
- icon: /* @__PURE__ */ n(Un, {}),
6675
+ icon: /* @__PURE__ */ n(Wn, {}),
6673
6676
  disabled: r,
6674
6677
  onClick: m
6675
6678
  }), s !== "graph" && v(), s !== "graph" && R(), s === "form" && A(), v(), h && /* @__PURE__ */ n(Xe, {
@@ -6694,7 +6697,7 @@ function Yc(e) {
6694
6697
  });
6695
6698
  }
6696
6699
  const Wc = (e) => {
6697
- var Ke;
6700
+ var Ye;
6698
6701
  const {
6699
6702
  value: t,
6700
6703
  onChange: r,
@@ -6749,7 +6752,7 @@ const Wc = (e) => {
6749
6752
  var ae, Te, ve;
6750
6753
  A(!0), R(!1), E(void 0);
6751
6754
  try {
6752
- const [Fe, _e] = await er({
6755
+ const [Fe, _e] = await Qn({
6753
6756
  treeView: {
6754
6757
  arch: (ae = o.get("tree")) == null ? void 0 : ae.arch,
6755
6758
  fields: (Te = o.get("tree")) == null ? void 0 : Te.fields
@@ -6765,7 +6768,7 @@ const Wc = (e) => {
6765
6768
  },
6766
6769
  currentView: Q || a
6767
6770
  });
6768
- return G.current || (G.current = Fe.map((tt) => tt.id)), (a || Q) === "tree" && _e && Y(_e), he(Fe), Fe;
6771
+ return G.current || (G.current = Fe.map((nt) => nt.id)), (a || Q) === "tree" && _e && Y(_e), he(Fe), Fe;
6769
6772
  } catch (Fe) {
6770
6773
  E(Fe);
6771
6774
  } finally {
@@ -6786,12 +6789,12 @@ const Wc = (e) => {
6786
6789
  widgetFieldName: le
6787
6790
  })));
6788
6791
  }
6789
- const Ue = () => {
6792
+ const Ge = () => {
6790
6793
  const Q = Array.from(o.keys()), ae = Q[(Q.indexOf(a) + 1) % Q.length];
6791
6794
  a === "form" ? be(() => {
6792
6795
  l(ae);
6793
6796
  }) : l(ae);
6794
- }, Ce = () => {
6797
+ }, Se = () => {
6795
6798
  f > 0 && (a === "form" ? be(() => {
6796
6799
  c(f - 1);
6797
6800
  }) : c(f - 1));
@@ -6836,7 +6839,7 @@ const Wc = (e) => {
6836
6839
  Hc({
6837
6840
  lang: g,
6838
6841
  onOk: () => {
6839
- a === "form" ? Se() : Ve();
6842
+ a === "form" ? xe() : Ve();
6840
6843
  }
6841
6844
  });
6842
6845
  return;
@@ -6844,10 +6847,10 @@ const Wc = (e) => {
6844
6847
  Nc({
6845
6848
  lang: g,
6846
6849
  onOk: () => {
6847
- a === "form" ? Se() : Ve();
6850
+ a === "form" ? xe() : Ve();
6848
6851
  }
6849
6852
  });
6850
- }, je = async () => {
6853
+ }, Ke = async () => {
6851
6854
  const {
6852
6855
  inv_field: Q
6853
6856
  } = i;
@@ -6865,7 +6868,7 @@ const Wc = (e) => {
6865
6868
  a === "form" ? be(() => {
6866
6869
  w(!0);
6867
6870
  }) : w(!0);
6868
- }, Se = async () => {
6871
+ }, xe = async () => {
6869
6872
  A(!0), R(!1), E(void 0);
6870
6873
  try {
6871
6874
  if (J[f].id > 0) {
@@ -6981,16 +6984,16 @@ const Wc = (e) => {
6981
6984
  A(!1);
6982
6985
  }
6983
6986
  };
6984
- function Ge() {
6987
+ function Be() {
6985
6988
  const Q = Kc[a];
6986
6989
  if (a === "graph")
6987
- return jn(o.get("graph").arch).string;
6990
+ return Bn(o.get("graph").arch).string;
6988
6991
  {
6989
6992
  const ae = new Q(o.get(a).fields);
6990
6993
  return ae.parse(o.get(a).arch), ae.string;
6991
6994
  }
6992
6995
  }
6993
- const de = () => {
6996
+ const ce = () => {
6994
6997
  var ae, Te, ve, Fe;
6995
6998
  if (a === "form")
6996
6999
  return J.length === 0 ? v("noCurrentEntries") : a !== Z.current && s.some((_e) => !_e.values) ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ n(Zt, {
@@ -7005,18 +7008,18 @@ const Wc = (e) => {
7005
7008
  submitMode: "values",
7006
7009
  onFieldsChange: (_e) => {
7007
7010
  var Ae;
7008
- const tt = (Ae = J[f]) == null ? void 0 : Ae.id, qe = s.map((We) => We.id === tt ? {
7009
- ...We,
7010
- operation: We.operation === "original" ? "pendingUpdate" : We.operation,
7011
+ const nt = (Ae = J[f]) == null ? void 0 : Ae.id, qe = s.map((Ue) => Ue.id === nt ? {
7012
+ ...Ue,
7013
+ operation: Ue.operation === "original" ? "pendingUpdate" : Ue.operation,
7011
7014
  values: {
7012
7015
  ..._e,
7013
- id: tt
7016
+ id: nt
7014
7017
  },
7015
7018
  treeValues: {
7016
7019
  ..._e,
7017
- id: tt
7020
+ id: nt
7018
7021
  }
7019
- } : We);
7022
+ } : Ue);
7020
7023
  he(qe), R(!0);
7021
7024
  },
7022
7025
  readOnly: z
@@ -7066,32 +7069,32 @@ const Wc = (e) => {
7066
7069
  }
7067
7070
  };
7068
7071
  if (S)
7069
- return /* @__PURE__ */ n(et, {
7072
+ return /* @__PURE__ */ n(tt, {
7070
7073
  className: "mt-10",
7071
7074
  message: S,
7072
7075
  type: "error",
7073
7076
  banner: !0
7074
7077
  });
7075
- const ot = k;
7078
+ const et = k;
7076
7079
  return b ? /* @__PURE__ */ n(Re, {}) : /* @__PURE__ */ P(te, {
7077
7080
  children: [/* @__PURE__ */ n(jc, {
7078
7081
  mode: a,
7079
- title: Ge(),
7080
- readOnly: z || !1,
7082
+ title: Be(),
7083
+ readOnly: z,
7081
7084
  isMany2Many: ne,
7082
7085
  formHasChanges: C,
7083
7086
  totalItems: J.length,
7084
7087
  currentItemIndex: f,
7085
7088
  onDelete: $e,
7086
- onCreateItem: je,
7087
- onToggleViewMode: Ue,
7088
- onPreviousItem: Ce,
7089
+ onCreateItem: Ke,
7090
+ onToggleViewMode: Ge,
7091
+ onPreviousItem: Se,
7089
7092
  onNextItem: ie,
7090
7093
  onSearchItem: ee,
7091
7094
  selectedRowKeys: O,
7092
- showCreateButton: ((Ke = o.get("form")) == null ? void 0 : Ke.fields) !== void 0,
7095
+ showCreateButton: ((Ye = o.get("form")) == null ? void 0 : Ye.fields) !== void 0,
7093
7096
  showToggleButton: o.size > 1
7094
- }), de(), /* @__PURE__ */ n(Xt, {
7097
+ }), ce(), /* @__PURE__ */ n(Xt, {
7095
7098
  formView: o.get("form"),
7096
7099
  model: N,
7097
7100
  id: L == null ? void 0 : L.id,
@@ -7108,7 +7111,7 @@ const Wc = (e) => {
7108
7111
  D(!1), T(!1);
7109
7112
  },
7110
7113
  readOnly: z,
7111
- mustClearAfterSave: ot
7114
+ mustClearAfterSave: et
7112
7115
  }), /* @__PURE__ */ n(ko, {
7113
7116
  domain: $.current,
7114
7117
  model: N,
@@ -7168,7 +7171,7 @@ const Wc = (e) => {
7168
7171
  c(!1);
7169
7172
  }
7170
7173
  };
7171
- return r && r.length > 0 ? l = r[0] : l = "tree", f ? /* @__PURE__ */ n(Re, {}) : d ? /* @__PURE__ */ n(et, {
7174
+ return r && r.length > 0 ? l = r[0] : l = "tree", f ? /* @__PURE__ */ n(Re, {}) : d ? /* @__PURE__ */ n(tt, {
7172
7175
  className: "mt-10",
7173
7176
  message: d,
7174
7177
  type: "error",
@@ -7390,7 +7393,7 @@ const {
7390
7393
  }
7391
7394
  })]
7392
7395
  }) : /* @__PURE__ */ P(te, {
7393
- children: [/* @__PURE__ */ n(xe, {
7396
+ children: [/* @__PURE__ */ n(Ce, {
7394
7397
  gutter: 8,
7395
7398
  wrap: !1,
7396
7399
  children: /* @__PURE__ */ n(En, {
@@ -7406,7 +7409,7 @@ const {
7406
7409
  rows: 4,
7407
7410
  onBlur: d
7408
7411
  })
7409
- }), /* @__PURE__ */ n(xe, {
7412
+ }), /* @__PURE__ */ n(Ce, {
7410
7413
  justify: "end",
7411
7414
  style: {
7412
7415
  paddingTop: 5
@@ -7431,7 +7434,7 @@ const {
7431
7434
  return /* @__PURE__ */ n(dn, {
7432
7435
  orientation: "left",
7433
7436
  className: "text-sm",
7434
- children: (o || r) && /* @__PURE__ */ P(Ye, {
7437
+ children: (o || r) && /* @__PURE__ */ P(We, {
7435
7438
  children: [o ? /* @__PURE__ */ n(o, {}) : null, r]
7436
7439
  })
7437
7440
  });
@@ -7476,7 +7479,7 @@ const {
7476
7479
  context: t,
7477
7480
  fields: []
7478
7481
  });
7479
- return l.current["/"] = g, Mr({ fields: g });
7482
+ return l.current["/"] = g, kr({ fields: g });
7480
7483
  }, [e, t, l]), u = ke(
7481
7484
  async (g) => {
7482
7485
  const C = Ln(g, l.current)[$n(g)], R = C.relation, b = await H.getHandler().getFields({
@@ -7489,7 +7492,7 @@ const {
7489
7492
  parentTitle: C.string,
7490
7493
  title: S.string
7491
7494
  });
7492
- return l.current[g] = b, Mr({
7495
+ return l.current[g] = b, kr({
7493
7496
  fields: b,
7494
7497
  parentKey: g
7495
7498
  });
@@ -7567,7 +7570,7 @@ const {
7567
7570
  onSavePredefinedExport: y,
7568
7571
  onRemovePredefinedExport: p
7569
7572
  };
7570
- }, Mr = ({
7573
+ }, kr = ({
7571
7574
  fields: e,
7572
7575
  parentKey: t
7573
7576
  }) => {
@@ -7868,7 +7871,7 @@ const hd = (e) => {
7868
7871
  ooui: t
7869
7872
  })
7870
7873
  });
7871
- }, pd = (e) => /* @__PURE__ */ n(Lr, {
7874
+ }, pd = (e) => /* @__PURE__ */ n($r, {
7872
7875
  onChange: (r, i) => {
7873
7876
  e.onChange && e.onChange(i);
7874
7877
  },
@@ -7903,13 +7906,13 @@ const hd = (e) => {
7903
7906
  }
7904
7907
  const m = t && l && l[0], y = t && l && l[1] && parseInt(l[1]);
7905
7908
  c([y, void 0]), u(m);
7906
- }, [t]), /* @__PURE__ */ P(xe, {
7909
+ }, [t]), /* @__PURE__ */ P(Ce, {
7907
7910
  gutter: 8,
7908
7911
  wrap: !1,
7909
- children: [/* @__PURE__ */ n(ce, {
7912
+ children: [/* @__PURE__ */ n(de, {
7910
7913
  flex: "1",
7911
7914
  children: /* @__PURE__ */ n(uo, {
7912
- ooui: new Bn({
7915
+ ooui: new Hn({
7913
7916
  name: "model_selection",
7914
7917
  selection: s,
7915
7918
  readonly: a,
@@ -7924,7 +7927,7 @@ const hd = (e) => {
7924
7927
  },
7925
7928
  value: d
7926
7929
  })
7927
- }), /* @__PURE__ */ n(ce, {
7930
+ }), /* @__PURE__ */ n(de, {
7928
7931
  flex: "3",
7929
7932
  children: /* @__PURE__ */ n(Eo, {
7930
7933
  ooui: new Br({
@@ -7994,9 +7997,9 @@ const hd = (e) => {
7994
7997
  function C() {
7995
7998
  d(a, void 0), p(void 0);
7996
7999
  }
7997
- return /* @__PURE__ */ P(xe, {
8000
+ return /* @__PURE__ */ P(Ce, {
7998
8001
  gutter: 8,
7999
- children: [/* @__PURE__ */ P(ce, {
8002
+ children: [/* @__PURE__ */ P(de, {
8000
8003
  style: {
8001
8004
  paddingBottom: 5
8002
8005
  },
@@ -8014,10 +8017,10 @@ const hd = (e) => {
8014
8017
  style: f,
8015
8018
  value: y
8016
8019
  })]
8017
- }), /* @__PURE__ */ n(ce, {
8018
- children: /* @__PURE__ */ P(Ye, {
8020
+ }), /* @__PURE__ */ n(de, {
8021
+ children: /* @__PURE__ */ P(We, {
8019
8022
  children: [/* @__PURE__ */ n(Ie, {
8020
- icon: /* @__PURE__ */ n(Kn, {}),
8023
+ icon: /* @__PURE__ */ n(jn, {}),
8021
8024
  disabled: o,
8022
8025
  onClick: () => {
8023
8026
  c.current.click();
@@ -8032,26 +8035,26 @@ const hd = (e) => {
8032
8035
  tooltip: m("download"),
8033
8036
  disabled: !r,
8034
8037
  onClick: h,
8035
- icon: /* @__PURE__ */ n(Yn, {})
8038
+ icon: /* @__PURE__ */ n(Kn, {})
8036
8039
  }), /* @__PURE__ */ n(Xe, {
8037
8040
  tooltip: m("clear"),
8038
8041
  disabled: o || !r,
8039
8042
  onClick: C,
8040
- icon: /* @__PURE__ */ n(Wn, {})
8043
+ icon: /* @__PURE__ */ n(Yn, {})
8041
8044
  })]
8042
8045
  })
8043
8046
  })]
8044
8047
  });
8045
8048
  }, _n = {
8046
- tree: /* @__PURE__ */ n(Jn, {}),
8049
+ tree: /* @__PURE__ */ n(zn, {}),
8047
8050
  form: /* @__PURE__ */ n(Kt, {}),
8048
8051
  graph: /* @__PURE__ */ n(Ii, {}),
8049
8052
  calendar: /* @__PURE__ */ n(_i, {})
8050
8053
  };
8051
- function Er(e) {
8054
+ function Mr(e) {
8052
8055
  return e ? (_n == null ? void 0 : _n[e.type]) || /* @__PURE__ */ n(Kt, {}) : /* @__PURE__ */ n(Kt, {});
8053
8056
  }
8054
- function nr(e) {
8057
+ function tr(e) {
8055
8058
  const {
8056
8059
  currentView: t,
8057
8060
  availableViews: r,
@@ -8064,22 +8067,22 @@ function nr(e) {
8064
8067
  lang: f
8065
8068
  } = W(ye);
8066
8069
  function c() {
8067
- const m = r.map((y, p) => /* @__PURE__ */ n(Be.Item, {
8068
- children: /* @__PURE__ */ P(xe, {
8070
+ const m = r.map((y, p) => /* @__PURE__ */ n(je.Item, {
8071
+ children: /* @__PURE__ */ P(Ce, {
8069
8072
  wrap: !1,
8070
- children: [/* @__PURE__ */ n(ce, {
8073
+ children: [/* @__PURE__ */ n(de, {
8071
8074
  flex: "none",
8072
8075
  style: {
8073
8076
  paddingRight: 20
8074
8077
  },
8075
- children: Er(y)
8076
- }), /* @__PURE__ */ n(ce, {
8078
+ children: Mr(y)
8079
+ }), /* @__PURE__ */ n(de, {
8077
8080
  flex: "auto",
8078
8081
  style: {
8079
8082
  paddingRight: 20
8080
8083
  },
8081
8084
  children: y.type.charAt(0).toUpperCase() + y.type.slice(1)
8082
- }), /* @__PURE__ */ n(ce, {
8085
+ }), /* @__PURE__ */ n(de, {
8083
8086
  flex: "none",
8084
8087
  children: /* @__PURE__ */ n(Mt, {
8085
8088
  style: {
@@ -8089,9 +8092,9 @@ function nr(e) {
8089
8092
  })]
8090
8093
  })
8091
8094
  }, y.view_id || p));
8092
- return /* @__PURE__ */ n(Be, {
8095
+ return /* @__PURE__ */ n(je, {
8093
8096
  onClick: u,
8094
- children: /* @__PURE__ */ n(Be.ItemGroup, {
8097
+ children: /* @__PURE__ */ n(je.ItemGroup, {
8095
8098
  title: l("viewAs"),
8096
8099
  children: m
8097
8100
  })
@@ -8121,7 +8124,7 @@ function nr(e) {
8121
8124
  },
8122
8125
  children: [/* @__PURE__ */ n(Xe, {
8123
8126
  tooltip: a ? l("viewAs") + " " + l(a.type) : "",
8124
- icon: Er(a),
8127
+ icon: Mr(a),
8125
8128
  style: {
8126
8129
  width: 50,
8127
8130
  borderTopRightRadius: 0,
@@ -8162,12 +8165,12 @@ function At(e) {
8162
8165
  disabled: a = !1
8163
8166
  } = e;
8164
8167
  function l() {
8165
- const c = i == null ? void 0 : i.map((d, u) => d.name === "divider" ? /* @__PURE__ */ n(Be.Divider, {}, "divider" + u) : /* @__PURE__ */ n(Be.Item, {
8168
+ const c = i == null ? void 0 : i.map((d, u) => d.name === "divider" ? /* @__PURE__ */ n(je.Divider, {}, "divider" + u) : /* @__PURE__ */ n(je.Item, {
8166
8169
  children: d.name
8167
8170
  }, d.id));
8168
- return /* @__PURE__ */ n(Be, {
8171
+ return /* @__PURE__ */ n(je, {
8169
8172
  onClick: f,
8170
- children: /* @__PURE__ */ n(Be.ItemGroup, {
8173
+ children: /* @__PURE__ */ n(je.ItemGroup, {
8171
8174
  title: r,
8172
8175
  children: c
8173
8176
  })
@@ -8209,7 +8212,7 @@ function Bo(e) {
8209
8212
  } = e, {
8210
8213
  formHasChanges: r,
8211
8214
  onNewClicked: i
8212
- } = W(rt), {
8215
+ } = W(ot), {
8213
8216
  t: o,
8214
8217
  lang: s
8215
8218
  } = W(ye), a = () => {
@@ -8311,7 +8314,7 @@ const Sd = (e) => {
8311
8314
  onClick: () => {
8312
8315
  t(!1), f();
8313
8316
  },
8314
- children: [/* @__PURE__ */ n(Jn, {}), " ", Oe("listAllAttachments", r)]
8317
+ children: [/* @__PURE__ */ n(zn, {}), " ", Oe("listAllAttachments", r)]
8315
8318
  }), /* @__PURE__ */ P("a", {
8316
8319
  style: {
8317
8320
  display: "block"
@@ -8325,18 +8328,18 @@ const Sd = (e) => {
8325
8328
  children: [/* @__PURE__ */ n("li", {
8326
8329
  className: "ant-dropdown-menu-item-divider"
8327
8330
  }), i.map((c) => {
8328
- const d = c.link ? eo : Yn;
8329
- return /* @__PURE__ */ P(xe, {
8331
+ const d = c.link ? eo : Kn;
8332
+ return /* @__PURE__ */ P(Ce, {
8330
8333
  style: {
8331
8334
  paddingTop: 4,
8332
8335
  paddingBottom: 4
8333
8336
  },
8334
8337
  wrap: !1,
8335
8338
  align: "middle",
8336
- children: [/* @__PURE__ */ n(ce, {
8339
+ children: [/* @__PURE__ */ n(de, {
8337
8340
  flex: "auto",
8338
8341
  children: c.name
8339
- }), /* @__PURE__ */ n(ce, {
8342
+ }), /* @__PURE__ */ n(de, {
8340
8343
  flex: "25px",
8341
8344
  style: {
8342
8345
  textAlign: "center"
@@ -8352,7 +8355,7 @@ const Sd = (e) => {
8352
8355
  }
8353
8356
  })
8354
8357
  })
8355
- }), /* @__PURE__ */ n(ce, {
8358
+ }), /* @__PURE__ */ n(de, {
8356
8359
  flex: "25px",
8357
8360
  style: {
8358
8361
  textAlign: "center"
@@ -8383,7 +8386,7 @@ function Fd(e) {
8383
8386
  onViewAttachmentDetails: s
8384
8387
  } = e, {
8385
8388
  formRef: a
8386
- } = W(rt), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!1), {
8389
+ } = W(ot), [l, f] = _(!1), [c, d] = _([]), [u, m] = _(!1), {
8387
8390
  t: y
8388
8391
  } = W(ye), p = ke(async () => {
8389
8392
  f(!0);
@@ -8480,7 +8483,7 @@ function Od({
8480
8483
  previousView: S,
8481
8484
  setPreviousView: E,
8482
8485
  goToResourceId: x
8483
- } = W(rt), {
8486
+ } = W(ot), {
8484
8487
  t: T,
8485
8488
  lang: F
8486
8489
  } = W(ye), w = W(Lt), {
@@ -8571,7 +8574,7 @@ function Od({
8571
8574
  }
8572
8575
  });
8573
8576
  }
8574
- return r ? /* @__PURE__ */ P(Ye, {
8577
+ return r ? /* @__PURE__ */ P(We, {
8575
8578
  wrap: !0,
8576
8579
  children: [C && /* @__PURE__ */ P(te, {
8577
8580
  children: [/* @__PURE__ */ n(Re, {}), Ft(), Ft()]
@@ -8584,13 +8587,13 @@ function Od({
8584
8587
  loading: a,
8585
8588
  onClick: o
8586
8589
  }), /* @__PURE__ */ n(Ze, {
8587
- icon: /* @__PURE__ */ n(Zn, {}),
8590
+ icon: /* @__PURE__ */ n(Jn, {}),
8588
8591
  tooltip: T("duplicate"),
8589
8592
  disabled: s || a || l === void 0 || h || C,
8590
8593
  loading: h,
8591
8594
  onClick: U
8592
8595
  }), /* @__PURE__ */ n(Ze, {
8593
- icon: /* @__PURE__ */ n(zn, {}),
8596
+ icon: /* @__PURE__ */ n(qn, {}),
8594
8597
  tooltip: T("delete"),
8595
8598
  disabled: a || l === void 0 || p || h || C,
8596
8599
  loading: p,
@@ -8613,7 +8616,7 @@ function Od({
8613
8616
  b.current.fetchValues();
8614
8617
  });
8615
8618
  }
8616
- }), Ft(), /* @__PURE__ */ n(nr, {
8619
+ }), Ft(), /* @__PURE__ */ n(tr, {
8617
8620
  currentView: r,
8618
8621
  previousView: S,
8619
8622
  availableViews: t,
@@ -8622,7 +8625,7 @@ function Od({
8622
8625
  },
8623
8626
  disabled: Y,
8624
8627
  formHasChanges: s
8625
- }), Ft(), /* @__PURE__ */ P(Ye, {
8628
+ }), Ft(), /* @__PURE__ */ P(We, {
8626
8629
  children: [/* @__PURE__ */ n(Ze, {
8627
8630
  icon: /* @__PURE__ */ n(Xr, {}),
8628
8631
  tooltip: T("previous"),
@@ -8641,7 +8644,7 @@ function Od({
8641
8644
  }
8642
8645
  })]
8643
8646
  }), Ft(), /* @__PURE__ */ n(At, {
8644
- icon: /* @__PURE__ */ n(Gn, {}),
8647
+ icon: /* @__PURE__ */ n(Un, {}),
8645
8648
  disabled: Y,
8646
8649
  tooltip: T("actions"),
8647
8650
  items: e == null ? void 0 : e.action,
@@ -8651,7 +8654,7 @@ function Od({
8651
8654
  })).succeed || z(N);
8652
8655
  }
8653
8656
  }), /* @__PURE__ */ n(At, {
8654
- icon: /* @__PURE__ */ n(qn, {}),
8657
+ icon: /* @__PURE__ */ n(Gn, {}),
8655
8658
  disabled: Y,
8656
8659
  tooltip: T("reports"),
8657
8660
  items: e == null ? void 0 : e.print,
@@ -8775,11 +8778,11 @@ const {
8775
8778
  const v = (C) => {
8776
8779
  i == null || i(C.target.value);
8777
8780
  };
8778
- return /* @__PURE__ */ P(xe, {
8781
+ return /* @__PURE__ */ P(Ce, {
8779
8782
  gutter: 8,
8780
8783
  wrap: !1,
8781
8784
  align: "middle",
8782
- children: [l ? null : /* @__PURE__ */ n(ce, {
8785
+ children: [l ? null : /* @__PURE__ */ n(de, {
8783
8786
  flex: "32px",
8784
8787
  children: y ? /* @__PURE__ */ n(Ie, {
8785
8788
  icon: /* @__PURE__ */ n(Mt, {}),
@@ -8802,7 +8805,7 @@ const {
8802
8805
  },
8803
8806
  tabIndex: -1
8804
8807
  })
8805
- }), /* @__PURE__ */ n(ce, {
8808
+ }), /* @__PURE__ */ n(de, {
8806
8809
  flex: "auto",
8807
8810
  children: h ? /* @__PURE__ */ n(it, {
8808
8811
  style: {
@@ -8866,7 +8869,8 @@ const {
8866
8869
  t: s
8867
8870
  } = W(ye), a = ue();
8868
8871
  function l(f) {
8869
- r(f.id);
8872
+ const c = f.id.split(",").map((d) => parseInt(d.trim()));
8873
+ r(c);
8870
8874
  }
8871
8875
  return /* @__PURE__ */ n(Je, {
8872
8876
  title: s("goToResourceId"),
@@ -8888,21 +8892,21 @@ const {
8888
8892
  name: "id",
8889
8893
  label: s("searchId"),
8890
8894
  rules: [{
8891
- required: !0,
8892
- type: "number"
8895
+ required: !0
8893
8896
  }],
8894
- children: /* @__PURE__ */ n(Hn, {
8897
+ help: s("searchIdHelp"),
8898
+ children: /* @__PURE__ */ n(it, {
8895
8899
  style: {
8896
8900
  width: "100%"
8897
8901
  },
8898
8902
  autoFocus: !0,
8899
8903
  ref: a
8900
8904
  })
8901
- }), /* @__PURE__ */ n(xe, {
8905
+ }), /* @__PURE__ */ n(Ce, {
8902
8906
  align: "middle",
8903
8907
  justify: "end",
8904
- children: /* @__PURE__ */ n(ce, {
8905
- children: /* @__PURE__ */ P(Ye, {
8908
+ children: /* @__PURE__ */ n(de, {
8909
+ children: /* @__PURE__ */ P(We, {
8906
8910
  children: [/* @__PURE__ */ n(Ie, {
8907
8911
  icon: /* @__PURE__ */ n(qt, {}),
8908
8912
  htmlType: "button",
@@ -8983,8 +8987,8 @@ function Vd({
8983
8987
  graphIsLoading: f,
8984
8988
  previousView: c,
8985
8989
  setPreviousView: d
8986
- } = W(rt);
8987
- return /* @__PURE__ */ P(Ye, {
8990
+ } = W(ot);
8991
+ return /* @__PURE__ */ P(We, {
8988
8992
  wrap: !0,
8989
8993
  children: [/* @__PURE__ */ n(Yo, {
8990
8994
  icon: /* @__PURE__ */ n(ro, {
@@ -9007,7 +9011,7 @@ function Vd({
9007
9011
  onClick: () => {
9008
9012
  e();
9009
9013
  }
9010
- }), /* @__PURE__ */ n(nr, {
9014
+ }), /* @__PURE__ */ n(tr, {
9011
9015
  currentView: i,
9012
9016
  availableViews: r,
9013
9017
  onChangeView: (u) => {
@@ -9036,7 +9040,7 @@ function vn(e) {
9036
9040
  results: l,
9037
9041
  totalItems: f,
9038
9042
  selectedRowItems: c
9039
- } = W(rt), {
9043
+ } = W(ot), {
9040
9044
  t: d
9041
9045
  } = W(ye), {
9042
9046
  token: u
@@ -9046,7 +9050,7 @@ function vn(e) {
9046
9050
  return s ? f === 0 ? /* @__PURE__ */ P(te, {
9047
9051
  children: [d("editingDocument"), " (id:", " ", /* @__PURE__ */ n(tn, {
9048
9052
  copyable: {
9049
- icon: /* @__PURE__ */ n(Zn, {
9053
+ icon: /* @__PURE__ */ n(Jn, {
9050
9054
  style: {
9051
9055
  color: "red"
9052
9056
  }
@@ -9085,7 +9089,7 @@ function vn(e) {
9085
9089
  top: 80,
9086
9090
  zIndex: 3
9087
9091
  },
9088
- children: [/* @__PURE__ */ P(xe, {
9092
+ children: [/* @__PURE__ */ P(Ce, {
9089
9093
  className: "shadow-md",
9090
9094
  style: {
9091
9095
  padding: "1em",
@@ -9093,7 +9097,7 @@ function vn(e) {
9093
9097
  backgroundColor: u.colorPrimaryBg
9094
9098
  },
9095
9099
  align: "middle",
9096
- children: [/* @__PURE__ */ P(ce, {
9100
+ children: [/* @__PURE__ */ P(de, {
9097
9101
  flex: 2,
9098
9102
  children: [/* @__PURE__ */ n(Md, {
9099
9103
  level: 3,
@@ -9102,9 +9106,9 @@ function vn(e) {
9102
9106
  },
9103
9107
  children: t || i
9104
9108
  }), m()]
9105
- }), /* @__PURE__ */ n(ce, {
9109
+ }), /* @__PURE__ */ n(de, {
9106
9110
  flex: 3,
9107
- children: /* @__PURE__ */ n(xe, {
9111
+ children: /* @__PURE__ */ n(Ce, {
9108
9112
  justify: "end",
9109
9113
  children: r
9110
9114
  })
@@ -9123,7 +9127,7 @@ const Ed = (e) => {
9123
9127
  domain: s,
9124
9128
  formView: a,
9125
9129
  treeView: l
9126
- } = e, f = ue(), c = W(rt), {
9130
+ } = e, f = ue(), c = W(ot), {
9127
9131
  setResults: d = void 0,
9128
9132
  setCurrentItemIndex: u = void 0,
9129
9133
  currentId: m = void 0,
@@ -9275,10 +9279,10 @@ function Ld(e) {
9275
9279
  form: s,
9276
9280
  onFinish: f,
9277
9281
  autoComplete: "off",
9278
- children: /* @__PURE__ */ P(xe, {
9282
+ children: /* @__PURE__ */ P(Ce, {
9279
9283
  align: "middle",
9280
9284
  justify: "end",
9281
- children: [/* @__PURE__ */ n(ce, {
9285
+ children: [/* @__PURE__ */ n(de, {
9282
9286
  children: /* @__PURE__ */ n(lt.Item, {
9283
9287
  name: "search",
9284
9288
  noStyle: !0,
@@ -9303,7 +9307,7 @@ function Ld(e) {
9303
9307
  })
9304
9308
  })
9305
9309
  })
9306
- }), /* @__PURE__ */ n(ce, {
9310
+ }), /* @__PURE__ */ n(de, {
9307
9311
  children: /* @__PURE__ */ n(Ie, {
9308
9312
  htmlType: "submit",
9309
9313
  disabled: r,
@@ -9346,7 +9350,7 @@ function Pd(e) {
9346
9350
  results: A,
9347
9351
  limit: S,
9348
9352
  totalItems: E
9349
- } = W(rt), {
9353
+ } = W(ot), {
9350
9354
  parentContext: x = {},
9351
9355
  treeExpandable: T,
9352
9356
  toolbar: F
@@ -9417,7 +9421,7 @@ function Pd(e) {
9417
9421
  }
9418
9422
  });
9419
9423
  }
9420
- return /* @__PURE__ */ P(Ye, {
9424
+ return /* @__PURE__ */ P(We, {
9421
9425
  wrap: !0,
9422
9426
  children: [C && /* @__PURE__ */ P(te, {
9423
9427
  children: [/* @__PURE__ */ n(Re, {}), vt(), vt()]
@@ -9444,13 +9448,13 @@ function Pd(e) {
9444
9448
  }), vt(), /* @__PURE__ */ n(Bo, {
9445
9449
  disabled: C
9446
9450
  }), /* @__PURE__ */ n(Ze, {
9447
- icon: /* @__PURE__ */ n(Zn, {}),
9451
+ icon: /* @__PURE__ */ n(Jn, {}),
9448
9452
  tooltip: w("duplicate"),
9449
9453
  disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || C,
9450
9454
  loading: l,
9451
9455
  onClick: j
9452
9456
  }), /* @__PURE__ */ n(Ze, {
9453
- icon: /* @__PURE__ */ n(zn, {}),
9457
+ icon: /* @__PURE__ */ n(qn, {}),
9454
9458
  tooltip: w("delete"),
9455
9459
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || C,
9456
9460
  loading: a,
@@ -9474,7 +9478,7 @@ function Pd(e) {
9474
9478
  (Y = d == null ? void 0 : d.current) == null || Y.refreshResults();
9475
9479
  }
9476
9480
  }), !T && /* @__PURE__ */ P(te, {
9477
- children: [vt(), /* @__PURE__ */ n(nr, {
9481
+ children: [vt(), /* @__PURE__ */ n(tr, {
9478
9482
  currentView: r,
9479
9483
  availableViews: t,
9480
9484
  onChangeView: (Y) => {
@@ -9484,7 +9488,7 @@ function Pd(e) {
9484
9488
  disabled: C
9485
9489
  })]
9486
9490
  }), vt(), /* @__PURE__ */ n(At, {
9487
- icon: /* @__PURE__ */ n(Gn, {}),
9491
+ icon: /* @__PURE__ */ n(Un, {}),
9488
9492
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || C,
9489
9493
  tooltip: w("actions"),
9490
9494
  items: F == null ? void 0 : F.action,
@@ -9492,7 +9496,7 @@ function Pd(e) {
9492
9496
  !Y || G(Y);
9493
9497
  }
9494
9498
  }), /* @__PURE__ */ n(At, {
9495
- icon: /* @__PURE__ */ n(qn, {}),
9499
+ icon: /* @__PURE__ */ n(Gn, {}),
9496
9500
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || C,
9497
9501
  tooltip: w("reports"),
9498
9502
  items: F == null ? void 0 : F.print,
@@ -9597,7 +9601,7 @@ const Hd = (e) => {
9597
9601
  } = e, {
9598
9602
  currentView: p,
9599
9603
  setPreviousView: h
9600
- } = W(rt);
9604
+ } = W(ot);
9601
9605
  return t ? /* @__PURE__ */ P(te, {
9602
9606
  children: [/* @__PURE__ */ n(vn, {
9603
9607
  children: /* @__PURE__ */ n(Pd, {
@@ -9626,13 +9630,13 @@ const Hd = (e) => {
9626
9630
  }
9627
9631
  })]
9628
9632
  }) : null;
9629
- }, rr = Qe.createContext(null), Bd = (e) => {
9633
+ }, nr = Qe.createContext(null), Bd = (e) => {
9630
9634
  const [t, r] = _(!1), [i, o] = _(!1), {
9631
9635
  children: s,
9632
9636
  dashboardRef: a,
9633
9637
  openAction: l
9634
9638
  } = e;
9635
- return /* @__PURE__ */ n(rr.Provider, {
9639
+ return /* @__PURE__ */ n(nr.Provider, {
9636
9640
  value: {
9637
9641
  isLoading: t,
9638
9642
  setIsLoading: r,
@@ -9650,10 +9654,10 @@ function jd() {
9650
9654
  dashboardRef: t,
9651
9655
  moveItemsEnabled: r,
9652
9656
  setMoveItemsEnabled: i
9653
- } = W(rr), {
9657
+ } = W(nr), {
9654
9658
  t: o
9655
9659
  } = W(ye);
9656
- return /* @__PURE__ */ P(Ye, {
9660
+ return /* @__PURE__ */ P(We, {
9657
9661
  wrap: !0,
9658
9662
  children: [/* @__PURE__ */ n(Ze, {
9659
9663
  icon: /* @__PURE__ */ n(Ri, {
@@ -9762,69 +9766,69 @@ function Ud(e, t) {
9762
9766
  function Ne(ee) {
9763
9767
  T(ee), Z == null || Z(ee);
9764
9768
  }
9765
- function Ue(ee) {
9769
+ function Ge(ee) {
9766
9770
  C(ee), J == null || J(ee);
9767
9771
  }
9768
9772
  xt(t, () => ({
9769
9773
  canWeClose: ie
9770
9774
  }));
9771
- const Ce = async () => {
9775
+ const Se = async () => {
9772
9776
  S(!0);
9773
- const ee = [], Se = [];
9777
+ const ee = [], xe = [];
9774
9778
  for (const se of s) {
9775
- const [me, Ge] = se;
9776
- Ge !== "dashboard" ? Se.push({
9779
+ const [me, Be] = se;
9780
+ Be !== "dashboard" ? xe.push({
9777
9781
  viewTuple: se,
9778
9782
  promise: H.getHandler().getView({
9779
9783
  model: i,
9780
- type: Ge,
9784
+ type: Be,
9781
9785
  id: me,
9782
9786
  context: o
9783
9787
  })
9784
- }) : Se.push({
9788
+ }) : xe.push({
9785
9789
  viewTuple: se
9786
9790
  });
9787
9791
  }
9788
- const Ve = await Wd(Se);
9792
+ const Ve = await Wd(xe);
9789
9793
  for (const se of Ve) {
9790
9794
  if (!se)
9791
9795
  continue;
9792
9796
  const [, me] = se.viewTuple;
9793
- let Ge = se.info;
9797
+ let Be = se.info;
9794
9798
  switch (me) {
9795
9799
  case "dashboard": {
9796
- const de = s.find((Ke) => {
9797
- const [, Q] = Ke;
9800
+ const ce = s.find((Ye) => {
9801
+ const [, Q] = Ye;
9798
9802
  return Q === "form";
9799
9803
  });
9800
- let ot;
9801
- de && (ot = {
9804
+ let et;
9805
+ ce && (et = {
9802
9806
  action_id: y,
9803
9807
  action_type: p,
9804
9808
  name: a,
9805
9809
  res_id: o.active_id,
9806
9810
  res_model: i,
9807
- view_id: de[0],
9808
- view_type: de[1]
9811
+ view_id: ce[0],
9812
+ view_type: ce[1]
9809
9813
  }), ee.push({
9810
9814
  type: "dashboard",
9811
9815
  id: o.active_id,
9812
9816
  model: i,
9813
9817
  context: o,
9814
- configAction: ot
9818
+ configAction: et
9815
9819
  });
9816
9820
  break;
9817
9821
  }
9818
9822
  case "form": {
9819
9823
  ee.push({
9820
- ...Ge,
9824
+ ...Be,
9821
9825
  type: me
9822
9826
  });
9823
9827
  break;
9824
9828
  }
9825
9829
  case "tree": {
9826
9830
  ee.push({
9827
- ...Ge,
9831
+ ...Be,
9828
9832
  isExpandable: h,
9829
9833
  type: me
9830
9834
  });
@@ -9832,7 +9836,7 @@ function Ud(e, t) {
9832
9836
  }
9833
9837
  case "graph": {
9834
9838
  ee.push({
9835
- ...Ge,
9839
+ ...Be,
9836
9840
  type: me
9837
9841
  });
9838
9842
  break;
@@ -9841,14 +9845,14 @@ function Ud(e, t) {
9841
9845
  }
9842
9846
  let He;
9843
9847
  !c && ee.find((se) => se.type === "tree") ? He = ee.find((me) => me.type === "tree") : c ? He = ee.find((me) => c.id ? me.type === c.type && me.view_id === c.id : me.type === c.type) : He = ee.find((me) => me.type === "form"), He || (ze(`Error determining the first view to show for model ${i}.
9844
- Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), De == null || De(f)), Ue(He), b(ee), S(!1);
9848
+ Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), De == null || De(f)), Ge(He), b(ee), S(!1);
9845
9849
  };
9846
9850
  l({
9847
9851
  tabKey: f,
9848
9852
  canWeClose: ie
9849
9853
  }), ge(() => {
9850
- const ee = R.find((Ve) => Ve.type === "tree"), Se = R.find((Ve) => c.id ? Ve.type === c.type && Ve.view_id === c.id : Ve.type === c.type);
9851
- Ue(Se || ee), m ? Z == null || Z(E) : (Ne(void 0), V(void 0)), Ce();
9854
+ const ee = R.find((Ve) => Ve.type === "tree"), xe = R.find((Ve) => c.id ? Ve.type === c.type && Ve.view_id === c.id : Ve.type === c.type);
9855
+ Ge(xe || ee), m ? Z == null || Z(E) : (Ne(void 0), V(void 0)), Se();
9852
9856
  }, [i, s, m]), ge(() => {
9853
9857
  he === f && (Z == null || Z(x), J == null || J(v));
9854
9858
  }, [fe, he]);
@@ -9861,27 +9865,32 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9861
9865
  async function be(ee) {
9862
9866
  var se;
9863
9867
  Y(!0);
9864
- const Se = O.findIndex((me) => me.id === ee);
9865
- let Ve;
9866
- if (Se === -1) {
9867
- try {
9868
- Ve = (se = await H.getHandler().readObjects({
9869
- model: i,
9870
- ids: [ee],
9871
- context: o
9872
- })) == null ? void 0 : se[0];
9873
- } catch {
9874
- }
9875
- if (!Ve) {
9876
- Y(!1), G(!1), mt(B("idNotFound"));
9877
- return;
9878
- }
9868
+ let xe, Ve;
9869
+ if (ee.length === 1) {
9870
+ xe = "form", Ve = [];
9871
+ const me = ee[0], Be = O.findIndex((et) => et.id === me);
9872
+ let ce;
9873
+ if (Be === -1) {
9874
+ try {
9875
+ ce = (se = await H.getHandler().readObjects({
9876
+ model: i,
9877
+ ids: [me],
9878
+ context: o
9879
+ })) == null ? void 0 : se[0];
9880
+ } catch {
9881
+ }
9882
+ if (!ce) {
9883
+ Y(!1), G(!1), mt(B("idNotFound"));
9884
+ return;
9885
+ }
9886
+ } else
9887
+ ce = O[Be];
9879
9888
  } else
9880
- Ve = O[Se];
9889
+ xe = "tree", Ve = [["id", "in", ee]];
9881
9890
  Y(!1), G(!1);
9882
- const He = s.find((me) => me[1] === "form");
9891
+ const He = s.find((me) => me[1] === xe);
9883
9892
  Me({
9884
- domain: [],
9893
+ domain: Ve,
9885
9894
  context: o,
9886
9895
  model: i,
9887
9896
  views: s,
@@ -9889,11 +9898,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9889
9898
  target: "current",
9890
9899
  initialView: {
9891
9900
  id: He == null ? void 0 : He[0],
9892
- type: "form"
9901
+ type: xe
9893
9902
  },
9894
9903
  action_id: y,
9895
9904
  action_type: p,
9896
- res_id: ee
9905
+ res_id: ee[0]
9897
9906
  });
9898
9907
  }
9899
9908
  function $e() {
@@ -9921,7 +9930,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9921
9930
  model: i,
9922
9931
  context: o,
9923
9932
  domain: r,
9924
- formView: R.find((Se) => Se.type === "form"),
9933
+ formView: R.find((xe) => xe.type === "form"),
9925
9934
  treeView: ee,
9926
9935
  searchTreeRef: ne,
9927
9936
  searchTreeNameSearch: z,
@@ -9929,7 +9938,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9929
9938
  results: O,
9930
9939
  setCurrentItemIndex: V,
9931
9940
  setCurrentId: Ne,
9932
- setCurrentView: Ue
9941
+ setCurrentView: Ge
9933
9942
  }, `${ee.type}-${ee.view_id}`);
9934
9943
  case "graph":
9935
9944
  return /* @__PURE__ */ n(Ed, {
@@ -9938,8 +9947,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9938
9947
  model: i,
9939
9948
  context: o,
9940
9949
  domain: r,
9941
- treeView: R.find((Se) => Se.type === "tree"),
9942
- formView: R.find((Se) => Se.type === "form")
9950
+ treeView: R.find((xe) => xe.type === "tree"),
9951
+ formView: R.find((xe) => xe.type === "form")
9943
9952
  }, `${ee.type}-${ee.view_id}`);
9944
9953
  case "dashboard":
9945
9954
  return /* @__PURE__ */ n(Yd, {
@@ -9948,23 +9957,23 @@ Please, make sure the view ids on the fields_view_get responses are the same as
9948
9957
  }
9949
9958
  });
9950
9959
  }
9951
- function je() {
9960
+ function Ke() {
9952
9961
  if (x === void 0 && v.type === "form")
9953
9962
  X.current.clearAndReload();
9954
9963
  else {
9955
9964
  Ne(void 0);
9956
- const ee = R.find((Se) => Se.type === "form");
9957
- Ue(ee);
9965
+ const ee = R.find((xe) => xe.type === "form");
9966
+ Ge(ee);
9958
9967
  }
9959
9968
  }
9960
9969
  return A ? /* @__PURE__ */ n(Re, {}) : v ? /* @__PURE__ */ P(wl, {
9961
9970
  title: a,
9962
9971
  currentView: v,
9963
- setCurrentView: Ue,
9972
+ setCurrentView: Ge,
9964
9973
  availableViews: R,
9965
9974
  formRef: X,
9966
9975
  searchTreeRef: ne,
9967
- onNewClicked: je,
9976
+ onNewClicked: Ke,
9968
9977
  currentId: x,
9969
9978
  setCurrentId: Ne,
9970
9979
  setCurrentItemIndex: V,
@@ -10105,14 +10114,14 @@ const qd = Xi(Qi), zd = (e) => {
10105
10114
  backgroundColor: "white",
10106
10115
  borderRadius: s.borderRadius
10107
10116
  },
10108
- children: [/* @__PURE__ */ P(xe, {
10117
+ children: [/* @__PURE__ */ P(Ce, {
10109
10118
  align: "middle",
10110
10119
  style: {
10111
10120
  borderBottom: "1px solid #ddd",
10112
10121
  backgroundColor: s.colorPrimaryBg
10113
10122
  },
10114
10123
  wrap: !1,
10115
- children: [/* @__PURE__ */ n(ce, {
10124
+ children: [/* @__PURE__ */ n(de, {
10116
10125
  flex: "auto",
10117
10126
  className: "draggable-head",
10118
10127
  style: {
@@ -10125,12 +10134,12 @@ const qd = Xi(Qi), zd = (e) => {
10125
10134
  ellipsis: !0,
10126
10135
  children: t
10127
10136
  })
10128
- }), i && /* @__PURE__ */ n(ce, {
10137
+ }), i && /* @__PURE__ */ n(de, {
10129
10138
  flex: "25px",
10130
10139
  style: {
10131
10140
  padding: "0.5rem"
10132
10141
  },
10133
- children: /* @__PURE__ */ n(xe, {
10142
+ children: /* @__PURE__ */ n(Ce, {
10134
10143
  justify: "end",
10135
10144
  align: "middle",
10136
10145
  children: /* @__PURE__ */ n(ki, {
@@ -10176,7 +10185,7 @@ function eu(e) {
10176
10185
  }
10177
10186
  });
10178
10187
  V(nn(Ne));
10179
- const Ue = Dt({
10188
+ const Ge = Dt({
10180
10189
  resultsToSort: De,
10181
10190
  sorter: O,
10182
10191
  fields: {
@@ -10184,9 +10193,9 @@ function eu(e) {
10184
10193
  ...g.fields
10185
10194
  }
10186
10195
  });
10187
- G(!1), w(Ue);
10188
- const Ce = await Me;
10189
- T(Ce);
10196
+ G(!1), w(Ge);
10197
+ const Se = await Me;
10198
+ T(Se);
10190
10199
  }, N = async () => {
10191
10200
  try {
10192
10201
  G(!0), await z();
@@ -10244,7 +10253,7 @@ function eu(e) {
10244
10253
  style: {
10245
10254
  overflowY: "scroll"
10246
10255
  },
10247
- children: [k && /* @__PURE__ */ n(et, {
10256
+ children: [k && /* @__PURE__ */ n(tt, {
10248
10257
  className: "mt-10",
10249
10258
  message: k,
10250
10259
  type: "error",
@@ -10276,7 +10285,7 @@ function eu(e) {
10276
10285
  context: l
10277
10286
  })]
10278
10287
  });
10279
- return $ ? /* @__PURE__ */ n(et, {
10288
+ return $ ? /* @__PURE__ */ n(tt, {
10280
10289
  className: "mt-10",
10281
10290
  message: $,
10282
10291
  type: "error",
@@ -10325,7 +10334,7 @@ function nu(e, t) {
10325
10334
  setIsLoading: m,
10326
10335
  openAction: y,
10327
10336
  moveItemsEnabled: p
10328
- } = W(rr), h = ue(), g = ue();
10337
+ } = W(nr), h = ue(), g = ue();
10329
10338
  ge(() => {
10330
10339
  v();
10331
10340
  }, [r, o, i]), xt(t, () => ({
@@ -10366,7 +10375,7 @@ function nu(e, t) {
10366
10375
  type: "form",
10367
10376
  context: F
10368
10377
  })).fields;
10369
- const [w] = await er({
10378
+ const [w] = await Qn({
10370
10379
  treeView: {
10371
10380
  fields: h.current
10372
10381
  },
@@ -10455,7 +10464,7 @@ function nu(e, t) {
10455
10464
  async function E() {
10456
10465
  y(s);
10457
10466
  }
10458
- return d ? (console.log(d), /* @__PURE__ */ n(et, {
10467
+ return d ? (console.log(d), /* @__PURE__ */ n(tt, {
10459
10468
  className: "mt-10 mb-20",
10460
10469
  message: d,
10461
10470
  type: "error",
@@ -10662,7 +10671,7 @@ const ru = bt(nu), ou = (e) => {
10662
10671
  u(!1);
10663
10672
  }
10664
10673
  if (f)
10665
- return /* @__PURE__ */ n(et, {
10674
+ return /* @__PURE__ */ n(tt, {
10666
10675
  className: "mt-10",
10667
10676
  message: f,
10668
10677
  type: "error",
@@ -10698,8 +10707,8 @@ const ru = bt(nu), ou = (e) => {
10698
10707
  style: {
10699
10708
  width: "100%"
10700
10709
  },
10701
- children: /* @__PURE__ */ n(xe, {
10702
- children: a.map((x) => /* @__PURE__ */ n(ce, {
10710
+ children: /* @__PURE__ */ n(Ce, {
10711
+ children: a.map((x) => /* @__PURE__ */ n(de, {
10703
10712
  span: Math.floor(24 / g),
10704
10713
  children: /* @__PURE__ */ n(jt, {
10705
10714
  value: x.value,
@@ -10707,7 +10716,7 @@ const ru = bt(nu), ou = (e) => {
10707
10716
  })
10708
10717
  }))
10709
10718
  })
10710
- }), !p && /* @__PURE__ */ P(Ye, {
10719
+ }), !p && /* @__PURE__ */ P(We, {
10711
10720
  children: [/* @__PURE__ */ n(Ie, {
10712
10721
  onClick: A,
10713
10722
  disabled: s.length == a.length,
@@ -10765,16 +10774,16 @@ const ru = bt(nu), ou = (e) => {
10765
10774
  direction: a
10766
10775
  } = t, l = Array.from(o.entries()), f = l && l.length && l.map((c) => {
10767
10776
  const [d, u] = c;
10768
- return /* @__PURE__ */ n(lr, {
10777
+ return /* @__PURE__ */ n(ar, {
10769
10778
  value: d,
10770
10779
  children: u
10771
10780
  }, d);
10772
10781
  });
10773
- return /* @__PURE__ */ n(lr.Group, {
10782
+ return /* @__PURE__ */ n(ar.Group, {
10774
10783
  disabled: s,
10775
10784
  onChange: r,
10776
10785
  value: i,
10777
- children: /* @__PURE__ */ n(Ye, {
10786
+ children: /* @__PURE__ */ n(We, {
10778
10787
  direction: a,
10779
10788
  children: f
10780
10789
  })
@@ -10832,10 +10841,10 @@ const ru = bt(nu), ou = (e) => {
10832
10841
  errorField: o
10833
10842
  } = t, s = W(Le), a = Array.from(i.entries()), l = a.map((d) => d[0]).indexOf(r);
10834
10843
  let f = "process", c = "";
10835
- return o && (c = s.getFieldValue(o), c && (f = "error")), /* @__PURE__ */ n(cr, {
10844
+ return o && (c = s.getFieldValue(o), c && (f = "error")), /* @__PURE__ */ n(lr, {
10836
10845
  current: l,
10837
10846
  status: f,
10838
- children: a.map((d, u) => /* @__PURE__ */ n(cr.Step, {
10847
+ children: a.map((d, u) => /* @__PURE__ */ n(lr.Step, {
10839
10848
  title: d[1],
10840
10849
  description: u === l && f === "error" ? c : null
10841
10850
  }))
@@ -10949,12 +10958,12 @@ const bu = (e) => {
10949
10958
  theme: "mp"
10950
10959
  }),
10951
10960
  title: t.author,
10952
- description: /* @__PURE__ */ P(Ye, {
10961
+ description: /* @__PURE__ */ P(We, {
10953
10962
  direction: "horizontal",
10954
10963
  children: [/* @__PURE__ */ n("span", {
10955
10964
  title: t.date,
10956
10965
  children: at(t.date).fromNow()
10957
- }), t.isAuthor && /* @__PURE__ */ n($r, {
10966
+ }), t.isAuthor && /* @__PURE__ */ n(Er, {
10958
10967
  color: "blue",
10959
10968
  children: i("author")
10960
10969
  })]
@@ -11576,7 +11585,7 @@ const {
11576
11585
  model: "ir.ui.view_sc"
11577
11586
  });
11578
11587
  }
11579
- const V = /* @__PURE__ */ P(Be, {
11588
+ const V = /* @__PURE__ */ P(je, {
11580
11589
  onClick: T,
11581
11590
  children: [/* @__PURE__ */ P("div", {
11582
11591
  style: {
@@ -11606,12 +11615,12 @@ const {
11606
11615
  })
11607
11616
  })
11608
11617
  })]
11609
- }), /* @__PURE__ */ n(Be.Divider, {}), u ? /* @__PURE__ */ n(Re, {
11618
+ }), /* @__PURE__ */ n(je.Divider, {}), u ? /* @__PURE__ */ n(Re, {
11610
11619
  style: {
11611
11620
  padding: "1rem"
11612
11621
  }
11613
11622
  }) : c.length > 0 ? /* @__PURE__ */ n(te, {
11614
- children: c.map((k) => /* @__PURE__ */ n(Be.Item, {
11623
+ children: c.map((k) => /* @__PURE__ */ n(je.Item, {
11615
11624
  children: /* @__PURE__ */ n(O, {
11616
11625
  title: k.name,
11617
11626
  type: k.view_type
@@ -11630,15 +11639,15 @@ const {
11630
11639
  title: k,
11631
11640
  type: D
11632
11641
  }) {
11633
- return /* @__PURE__ */ P(xe, {
11642
+ return /* @__PURE__ */ P(Ce, {
11634
11643
  wrap: !1,
11635
- children: [/* @__PURE__ */ n(ce, {
11644
+ children: [/* @__PURE__ */ n(de, {
11636
11645
  flex: "none",
11637
11646
  style: {
11638
11647
  paddingRight: 20
11639
11648
  },
11640
- children: D === "tree" ? /* @__PURE__ */ n(Jn, {}) : /* @__PURE__ */ n(Kt, {})
11641
- }), /* @__PURE__ */ n(ce, {
11649
+ children: D === "tree" ? /* @__PURE__ */ n(zn, {}) : /* @__PURE__ */ n(Kt, {})
11650
+ }), /* @__PURE__ */ n(de, {
11642
11651
  flex: "auto",
11643
11652
  children: k
11644
11653
  })]