@gisce/react-ooui 2.0.0-alpha.23 → 2.0.0-alpha.25

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.
@@ -30,22 +30,23 @@ import Ni from "validator/lib/isURL";
30
30
  import Pi from "validator/lib/isEmail";
31
31
  import { useHotkeys as Li } from "react-hotkeys-hook";
32
32
  import Bi from "react-markdown";
33
- import $i from "@monaco-editor/react";
34
- import Hi from "dayjs/plugin/relativeTime";
35
- import Ki from "md5";
36
- import { WidthProvider as Wi, Responsive as ji } from "react-grid-layout";
33
+ import $i from "remark-gfm";
34
+ import Hi from "@monaco-editor/react";
35
+ import Ki from "dayjs/plugin/relativeTime";
36
+ import Wi from "md5";
37
+ import { WidthProvider as ji, Responsive as Yi } from "react-grid-layout";
37
38
  import "react-grid-layout/css/styles.css";
38
39
  import { v4 as Zr } from "uuid";
39
- const { Text: Yi, Title: Gi } = Yt, { useToken: Ui } = Pe, qi = {
40
+ const { Text: Gi, Title: Ui } = Yt, { useToken: qi } = Pe, zi = {
40
41
  left: "justify-start",
41
42
  center: "justify-center",
42
43
  right: "justify-end"
43
44
  }, fn = (t) => {
44
- const { ooui: e, align: r, responsiveBehaviour: i } = t, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: d } = e, c = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), { token: g } = Ui(), h = l === void 0 ? Yi : Gi;
45
+ const { ooui: e, align: r, responsiveBehaviour: i } = t, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: d } = e, c = a !== null && o.length > 1 ? o + " :" : o, m = r || (a ? i ? "left" : "right" : "left"), { token: g } = qi(), h = l === void 0 ? Gi : Ui;
45
46
  return /* @__PURE__ */ V(
46
47
  "div",
47
48
  {
48
- className: `flex flex-row items-center pb-1 pt-1 ${qi[m]}`,
49
+ className: `flex flex-row items-center pb-1 pt-1 ${zi[m]}`,
49
50
  children: [
50
51
  s && /* @__PURE__ */ n(ht, { title: s, children: /* @__PURE__ */ n(
51
52
  Br,
@@ -60,7 +61,7 @@ const { Text: Yi, Title: Gi } = Yt, { useToken: Ui } = Pe, qi = {
60
61
  ]
61
62
  }
62
63
  );
63
- }, zi = {
64
+ }, Ji = {
64
65
  true: "Sí",
65
66
  false: "No",
66
67
  simple_search: "Búsqueda simple",
@@ -150,7 +151,7 @@ const { Text: Yi, Title: Gi } = Yt, { useToken: Ui } = Pe, qi = {
150
151
  recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta pàgina.",
151
152
  selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
152
153
  allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
153
- }, Ji = {
154
+ }, Zi = {
154
155
  true: "Yes",
155
156
  false: "No",
156
157
  simple_search: "Simple search",
@@ -240,7 +241,7 @@ const { Text: Yi, Title: Gi } = Yt, { useToken: Ui } = Pe, qi = {
240
241
  recordsSelected: "Hi ha {numberOfSelectedRows} registres seleccionats en aquesta pàgina.",
241
242
  selectAllRecords: "Seleccionar tots els {totalRecords} registres.",
242
243
  allRecordsSelected: "Hi ha {totalRecords} registres seleccionats."
243
- }, Zi = {
244
+ }, Xi = {
244
245
  true: "Sí",
245
246
  false: "No",
246
247
  simple_search: "Búsqueda simple",
@@ -330,13 +331,13 @@ const { Text: Yi, Title: Gi } = Yt, { useToken: Ui } = Pe, qi = {
330
331
  recordsSelected: "Hay {numberOfSelectedRows} registros seleccionados en ésta página.",
331
332
  selectAllRecords: "Seleccionar todos los {totalRecords} registros.",
332
333
  allRecordsSelected: "Hay {totalRecords} registros seleccionados."
333
- }, Xi = {
334
- ca_ES: zi,
335
- en_US: Ji,
336
- es_ES: Zi
334
+ }, Qi = {
335
+ ca_ES: Ji,
336
+ en_US: Zi,
337
+ es_ES: Xi
337
338
  }, he = Qe.createContext(
338
339
  null
339
- ), Qi = (t) => {
340
+ ), es = (t) => {
340
341
  const { children: e, lang: r } = t;
341
342
  function i(o) {
342
343
  return Ie(o, r);
@@ -353,7 +354,7 @@ const { Text: Yi, Title: Gi } = Yt, { useToken: Ui } = Pe, qi = {
353
354
  );
354
355
  }, Ie = (t, e) => {
355
356
  var i;
356
- return ((i = Xi[e]) == null ? void 0 : i[t]) || t;
357
+ return ((i = Qi[e]) == null ? void 0 : i[t]) || t;
357
358
  };
358
359
  function ge({
359
360
  ooui: t,
@@ -405,12 +406,12 @@ function ge({
405
406
  h()
406
407
  ] }))();
407
408
  }
408
- const { confirm: es } = Je, qt = ({
409
+ const { confirm: ts } = Je, qt = ({
409
410
  onOk: t,
410
411
  confirmMessage: e,
411
412
  lang: r
412
413
  }) => {
413
- es({
414
+ ts({
414
415
  title: Ie("confirmation", r),
415
416
  icon: /* @__PURE__ */ n(pt, {}),
416
417
  centered: !0,
@@ -419,7 +420,7 @@ const { confirm: es } = Je, qt = ({
419
420
  cancelText: Ie("cancel", r),
420
421
  onOk: t
421
422
  });
422
- }, Ne = Qe.createContext(null), ts = (t) => {
423
+ }, Ne = Qe.createContext(null), ns = (t) => {
423
424
  const {
424
425
  children: e,
425
426
  activeId: r,
@@ -552,7 +553,7 @@ const { confirm: es } = Je, qt = ({
552
553
  STOCK_UNINDENT: "AlignLeft",
553
554
  STOCK_PREFERENCES: "Setting"
554
555
  }, ct = (t, e) => (t.indexOf("gtk-") !== -1 && (t = `STOCK_${t.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), fr.hasOwnProperty(t) ? mr(fr[t], e) : mr(t, e));
555
- function ns(t) {
556
+ function rs(t) {
556
557
  return `${t.split("-").map(
557
558
  (e) => e.replace(
558
559
  /\w\S*/g,
@@ -562,7 +563,7 @@ function ns(t) {
562
563
  }
563
564
  function mr(t, e) {
564
565
  let r = t.charAt(0).toUpperCase() + t.slice(1);
565
- r.indexOf("-") !== -1 && (r = ns(r));
566
+ r.indexOf("-") !== -1 && (r = rs(r));
566
567
  const i = `${r}Outlined`;
567
568
  if (dr[i])
568
569
  return () => Qe.createElement(dr[i], {
@@ -631,7 +632,7 @@ const Xr = (t) => {
631
632
  children: i
632
633
  }
633
634
  ) });
634
- }, rs = (t) => {
635
+ }, os = (t) => {
635
636
  const { ooui: e } = t, { defaultButton: r, secondaryButtons: i } = e, {
636
637
  id: o,
637
638
  caption: s,
@@ -679,7 +680,7 @@ const Xr = (t) => {
679
680
  icon: /* @__PURE__ */ n(kt, {}),
680
681
  type: c ? "primary" : void 0,
681
682
  overlay: /* @__PURE__ */ n(
682
- os,
683
+ is,
683
684
  {
684
685
  ooui: i,
685
686
  executeButtonAction: p,
@@ -694,7 +695,7 @@ const Xr = (t) => {
694
695
  ) });
695
696
  if (r)
696
697
  return /* @__PURE__ */ n(Xr, { ooui: r });
697
- }, os = (t) => {
698
+ }, is = (t) => {
698
699
  const { ooui: e, executeButtonAction: r, lang: i } = t;
699
700
  if (!e)
700
701
  return null;
@@ -746,7 +747,7 @@ const Xr = (t) => {
746
747
  );
747
748
  });
748
749
  return /* @__PURE__ */ n($e, { children: o });
749
- }, is = 0.7;
750
+ }, ss = 0.7;
750
751
  function hr() {
751
752
  const { innerWidth: t, innerHeight: e } = window;
752
753
  return {
@@ -764,7 +765,7 @@ function mn() {
764
765
  }
765
766
  return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
766
767
  }, []), {
767
- modalWidth: t.width * is,
768
+ modalWidth: t.width * ss,
768
769
  modalHeight: t.height,
769
770
  width: t.width,
770
771
  height: t.height
@@ -800,9 +801,9 @@ const Qr = (t) => {
800
801
  message: e,
801
802
  title: i
802
803
  };
803
- }, { error: ss, warning: as } = Je, ze = (t) => {
804
+ }, { error: as, warning: ls } = Je, ze = (t) => {
804
805
  const { message: e, type: r, title: i } = Qr(t);
805
- (r === "error" ? ss : as)({
806
+ (r === "error" ? as : ls)({
806
807
  title: i,
807
808
  icon: r === "error" ? /* @__PURE__ */ n(pt, {}) : /* @__PURE__ */ n($r, {}),
808
809
  centered: !0,
@@ -932,14 +933,14 @@ function Xe(t) {
932
933
  const { tooltip: e, ...r } = t;
933
934
  return /* @__PURE__ */ n(ht, { title: e, children: /* @__PURE__ */ n(Oe, { ...r }) });
934
935
  }
935
- const { info: ls } = Je, ft = (t) => {
936
- ls({
936
+ const { info: cs } = Je, ft = (t) => {
937
+ cs({
937
938
  title: "",
938
939
  centered: !0,
939
940
  content: t
940
941
  });
941
- }, { useToken: cs } = Pe, to = (t) => {
942
- const { ooui: e, isSearchField: r = !1 } = t, { id: i, readOnly: o, isPassword: s, required: a, translatable: l } = e, { token: d } = cs(), u = a && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, c = H(Ne), { elementHasLostFocus: f } = c || {};
942
+ }, { useToken: ds } = Pe, to = (t) => {
943
+ const { ooui: e, isSearchField: r = !1 } = t, { id: i, readOnly: o, isPassword: s, required: a, translatable: l } = e, { token: d } = ds(), u = a && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, c = H(Ne), { elementHasLostFocus: f } = c || {};
943
944
  let m = /* @__PURE__ */ n(
944
945
  it,
945
946
  {
@@ -957,8 +958,8 @@ const { info: ls } = Je, ft = (t) => {
957
958
  id: i,
958
959
  onBlur: f
959
960
  }
960
- )), l && !o && !r && (m = /* @__PURE__ */ n(ds, { field: i, requiredStyle: u })), /* @__PURE__ */ n(ge, { required: a, ...t, children: m });
961
- }, ds = ({
961
+ )), l && !o && !r && (m = /* @__PURE__ */ n(us, { field: i, requiredStyle: u })), /* @__PURE__ */ n(ge, { required: a, ...t, children: m });
962
+ }, us = ({
962
963
  value: t,
963
964
  field: e,
964
965
  requiredStyle: r,
@@ -1037,16 +1038,16 @@ const { info: ls } = Je, ft = (t) => {
1037
1038
  }
1038
1039
  ) })
1039
1040
  ] }) });
1040
- }, { defaultAlgorithm: us, defaultSeed: fs } = Pe, ms = us(fs), { Option: hs } = Ct, no = (t) => {
1041
+ }, { defaultAlgorithm: fs, defaultSeed: ms } = Pe, hs = fs(ms), { Option: ps } = Ct, no = (t) => {
1041
1042
  const { ooui: e } = t, { required: r } = e;
1042
1043
  return /* @__PURE__ */ n(ge, { required: r, type: "any", ...t, children: /* @__PURE__ */ n(ro, { ...t }) });
1043
1044
  }, ro = (t) => {
1044
1045
  const { ooui: e, onChange: r, value: i } = t, { selectionValues: o, readOnly: s, required: a } = e, l = Array.from(o.entries()), d = l && l.length && l.map((c) => {
1045
1046
  const [f, m] = c;
1046
- return /* @__PURE__ */ n(hs, { value: f, children: m }, f);
1047
+ return /* @__PURE__ */ n(ps, { value: f, children: m }, f);
1047
1048
  });
1048
1049
  return /* @__PURE__ */ n(
1049
- a && !s ? ps : Ct,
1050
+ a && !s ? gs : Ct,
1050
1051
  {
1051
1052
  disabled: s,
1052
1053
  onChange: r,
@@ -1057,17 +1058,17 @@ const { info: ls } = Je, ft = (t) => {
1057
1058
  children: d
1058
1059
  }
1059
1060
  );
1060
- }, ps = Mt(Ct)`
1061
+ }, gs = Mt(Ct)`
1061
1062
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
1062
- background-color: ${ms.colorPrimaryBg};
1063
+ background-color: ${hs.colorPrimaryBg};
1063
1064
  }
1064
- `, { defaultAlgorithm: gs, defaultSeed: ys } = Pe, pr = gs(ys), ws = (t) => {
1065
+ `, { defaultAlgorithm: ys, defaultSeed: ws } = Pe, pr = ys(ws), vs = (t) => {
1065
1066
  const { ooui: e } = t, { id: r, readOnly: i, required: o } = e;
1066
- return /* @__PURE__ */ n(ge, { ...t, valuePropName: "checked", children: /* @__PURE__ */ n(vs, { id: r, readOnly: i, required: o }) });
1067
- }, vs = (t) => {
1067
+ return /* @__PURE__ */ n(ge, { ...t, valuePropName: "checked", children: /* @__PURE__ */ n(bs, { id: r, readOnly: i, required: o }) });
1068
+ }, bs = (t) => {
1068
1069
  const { required: e, readOnly: r, ...i } = t;
1069
- return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(e && !r ? bs : Ht, { disabled: r, ...i }) });
1070
- }, bs = Mt(Ht)`
1070
+ return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(e && !r ? Cs : Ht, { disabled: r, ...i }) });
1071
+ }, Cs = Mt(Ht)`
1071
1072
  .ant-checkbox-inner {
1072
1073
  background-color: ${pr.colorPrimaryBg};
1073
1074
  }
@@ -1076,7 +1077,7 @@ const { info: ls } = Je, ft = (t) => {
1076
1077
  background-color: ${pr.colorPrimary};
1077
1078
  }
1078
1079
  `;
1079
- function Cs(t) {
1080
+ function xs(t) {
1080
1081
  const r = Buffer.from(t, "base64").length / 1e3;
1081
1082
  return `${Math.round((r + Number.EPSILON) * 100) / 100} KB`;
1082
1083
  }
@@ -1100,10 +1101,10 @@ function hn(t, e) {
1100
1101
  const o = new Uint8Array(i), s = new Blob([o], { type: e + ";base64" }), a = URL.createObjectURL(s);
1101
1102
  window.open(a);
1102
1103
  }
1103
- const xs = (t) => {
1104
+ const Ss = (t) => {
1104
1105
  const { ooui: e } = t, { required: r, id: i } = e, o = ct(i);
1105
- return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(Ss, { ooui: e }) });
1106
- }, Ss = (t) => {
1106
+ return o ? /* @__PURE__ */ n(o, {}) : /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(Ts, { ooui: e }) });
1107
+ }, Ts = (t) => {
1107
1108
  const { ooui: e, value: r, onChange: i } = t, { readOnly: o } = e, s = de(null), { t: a } = H(he), l = (f) => {
1108
1109
  i == null || i(f);
1109
1110
  };
@@ -1172,10 +1173,10 @@ const xs = (t) => {
1172
1173
  )
1173
1174
  ] }) })
1174
1175
  ] });
1175
- }, Ts = (t) => {
1176
- const { ooui: e } = t, { required: r } = e;
1177
- return /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(Fs, {}) });
1178
1176
  }, Fs = (t) => {
1177
+ const { ooui: e } = t, { required: r } = e;
1178
+ return /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(Is, {}) });
1179
+ }, Is = (t) => {
1179
1180
  const { value: e, onChange: r } = t;
1180
1181
  if (!e)
1181
1182
  return null;
@@ -1196,7 +1197,7 @@ const xs = (t) => {
1196
1197
  }, _t = (t) => {
1197
1198
  const e = t.arch, r = t.fields, i = new kr(r);
1198
1199
  return i.parse(e), i;
1199
- }, Is = (t, e, r) => t.columns.map((o) => {
1200
+ }, Os = (t, e, r) => t.columns.map((o) => {
1200
1201
  const s = o.type, a = o.id, l = e == null ? void 0 : e[s];
1201
1202
  let d;
1202
1203
  return l && (d = (u) => l(u, a, o, r)), {
@@ -1253,7 +1254,7 @@ function Rt({
1253
1254
  };
1254
1255
  return t.sort(l);
1255
1256
  }
1256
- function Os(t) {
1257
+ function _s(t) {
1257
1258
  for (const e in t)
1258
1259
  if (Object.prototype.hasOwnProperty.call(t, e) && t[e] !== void 0)
1259
1260
  return !0;
@@ -1311,10 +1312,10 @@ const Xn = async (t) => {
1311
1312
  }).concat(l),
1312
1313
  f
1313
1314
  ];
1314
- }, _s = (t) => {
1315
+ }, Rs = (t) => {
1315
1316
  const e = t.filter((r) => r.id && r.id < 0).map((r) => r.id);
1316
1317
  return e.length === 0 ? -1 : Math.min(...e) - 1;
1317
- }, Rs = (t, e) => {
1318
+ }, Vs = (t, e) => {
1318
1319
  const r = {};
1319
1320
  return Object.keys(t).forEach((i) => {
1320
1321
  var o;
@@ -1322,7 +1323,7 @@ const Xn = async (t) => {
1322
1323
  (s) => s.operation !== "pendingRemove"
1323
1324
  ) : r[i] = t[i];
1324
1325
  }), r;
1325
- }, Vs = (t) => {
1326
+ }, As = (t) => {
1326
1327
  const { ooui: e } = t, { relation: r, context: i, views: o } = e, [s, a] = b(!0), [l, d] = b(), [u, c] = b(/* @__PURE__ */ new Map()), f = H(Ne), { getContext: m } = f || {};
1327
1328
  xt(() => {
1328
1329
  h();
@@ -1342,8 +1343,8 @@ const Xn = async (t) => {
1342
1343
  a(!1);
1343
1344
  }
1344
1345
  };
1345
- return s ? /* @__PURE__ */ n(Ae, {}) : l ? /* @__PURE__ */ n(et, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ n(ge, { type: "array", ...t, children: /* @__PURE__ */ n(As, { ooui: e, views: u }) });
1346
- }, As = (t) => {
1346
+ return s ? /* @__PURE__ */ n(Ae, {}) : l ? /* @__PURE__ */ n(et, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ n(ge, { type: "array", ...t, children: /* @__PURE__ */ n(Ds, { ooui: e, views: u }) });
1347
+ }, Ds = (t) => {
1347
1348
  const { value: e, views: r, ooui: i, onChange: o } = t, { items: s = [] } = e || {}, [a, l] = b(!1), [d, u] = b(), [c, f] = b(!1), [m, g] = b(), { relation: h, context: p, readOnly: y, summaryField: w, titleField: T } = i, I = s.filter((x) => x.values), C = H(Ne), { getContext: O } = C || {};
1348
1349
  xt(() => {
1349
1350
  A();
@@ -1432,11 +1433,11 @@ const Xn = async (t) => {
1432
1433
  }
1433
1434
  )
1434
1435
  ] });
1435
- }, { useToken: Ds } = Pe, ks = (t) => {
1436
+ }, { useToken: ks } = Pe, Es = (t) => {
1436
1437
  const { ooui: e } = t;
1437
- return /* @__PURE__ */ n(ge, { ooui: e, children: /* @__PURE__ */ n(Es, { ooui: e }) });
1438
- }, Es = (t) => {
1439
- const { token: e } = Ds(), { ooui: r, value: i } = t, o = /* @__PURE__ */ V(Q, { children: [
1438
+ return /* @__PURE__ */ n(ge, { ooui: e, children: /* @__PURE__ */ n(Ms, { ooui: e }) });
1439
+ }, Ms = (t) => {
1440
+ const { token: e } = ks(), { ooui: r, value: i } = t, o = /* @__PURE__ */ V(Q, { children: [
1440
1441
  /* @__PURE__ */ V("span", { children: [
1441
1442
  r.label,
1442
1443
  " "
@@ -1461,7 +1462,7 @@ const Xn = async (t) => {
1461
1462
  }
1462
1463
  );
1463
1464
  return r.card ? /* @__PURE__ */ n(Nn, { children: l }) : l;
1464
- }, Ms = (t, e) => {
1465
+ }, Ns = (t, e) => {
1465
1466
  if (!e)
1466
1467
  return t;
1467
1468
  const r = {};
@@ -1475,7 +1476,7 @@ const Xn = async (t) => {
1475
1476
  } else
1476
1477
  r[i] = t[i];
1477
1478
  }), r;
1478
- }, It = (t, e) => Ms(t, e), Tn = ({
1479
+ }, It = (t, e) => Ns(t, e), Tn = ({
1479
1480
  source: t,
1480
1481
  target: e,
1481
1482
  fields: r
@@ -1508,7 +1509,7 @@ const Xn = async (t) => {
1508
1509
  else
1509
1510
  t[o] !== e[o] && (e[o] === void 0 ? i[o] = null : i[o] = e[o]);
1510
1511
  }), i;
1511
- }, Ns = ({
1512
+ }, Ps = ({
1512
1513
  changedFields: t,
1513
1514
  formOoui: e,
1514
1515
  types: r
@@ -1516,7 +1517,7 @@ const Xn = async (t) => {
1516
1517
  var a;
1517
1518
  const s = (a = e == null ? void 0 : e.findById(o)) == null ? void 0 : a.type;
1518
1519
  return r.includes(s);
1519
- }).some((o) => o === !0), Ps = ({
1520
+ }).some((o) => o === !0), Ls = ({
1520
1521
  fieldsDomain: t,
1521
1522
  fields: e
1522
1523
  }) => {
@@ -1524,12 +1525,12 @@ const Xn = async (t) => {
1524
1525
  return Object.keys(e).forEach((i) => {
1525
1526
  r[i] = e[i], t[i] && (r[i].domain = t[i]);
1526
1527
  }), r;
1527
- }, Ls = (t) => {
1528
+ }, Bs = (t) => {
1528
1529
  const e = {};
1529
1530
  return !t || !Array.isArray(t) || (t == null ? void 0 : t.length) === 0 ? {} : (t.forEach((r) => {
1530
1531
  (r == null ? void 0 : r[1]) === "=" && (e[r[0]] = r[2]);
1531
1532
  }), e);
1532
- }, Bs = ({
1533
+ }, $s = ({
1533
1534
  onChangeFieldActionArgs: t,
1534
1535
  values: e,
1535
1536
  parentValues: r = {}
@@ -1590,10 +1591,10 @@ const Nt = ({
1590
1591
  r += ("00" + o.toString(16)).slice(-2);
1591
1592
  }
1592
1593
  return r;
1593
- }, $s = (t, e) => t.replace(
1594
+ }, Hs = (t, e) => t.replace(
1594
1595
  /\{([^}]+)\}/g,
1595
1596
  (r, i) => e[i] !== void 0 ? e[i] : r
1596
- ), Hs = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(lo, { ...t }) }), lo = (t) => {
1597
+ ), Ks = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(lo, { ...t }) }), lo = (t) => {
1597
1598
  const { ooui: e, value: r } = t;
1598
1599
  let i = r, o = r;
1599
1600
  if (e.selectionValues.size ? i = e.selectionValues.get(r) : Array.isArray(r) && (o = r[0], i = r[1]), !r)
@@ -1608,10 +1609,10 @@ const Nt = ({
1608
1609
  borderStyle: "solid",
1609
1610
  borderWidth: "1px"
1610
1611
  }, e = `${e}20`), /* @__PURE__ */ n(Rr, { ...t, style: r, color: e, children: t.children });
1611
- }, Ks = (t) => {
1612
- const { ooui: e } = t;
1613
- return /* @__PURE__ */ n(ge, { type: "array", ...t, children: /* @__PURE__ */ n(Ws, { ooui: e }) });
1614
1612
  }, Ws = (t) => {
1613
+ const { ooui: e } = t;
1614
+ return /* @__PURE__ */ n(ge, { type: "array", ...t, children: /* @__PURE__ */ n(js, { ooui: e }) });
1615
+ }, js = (t) => {
1615
1616
  const { value: e, ooui: r, onChange: i } = t, { items: o = [] } = e || {}, s = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [a, l] = b([]), [d, u] = b(), [c, f] = b(!1), { relation: m, context: g, readOnly: h, field: p } = r, y = H(Ne), { getContext: w } = y || {};
1616
1617
  xt(() => {
1617
1618
  I();
@@ -1691,14 +1692,14 @@ const Nt = ({
1691
1692
  loading: c
1692
1693
  }
1693
1694
  ) }) });
1694
- }, js = (t) => {
1695
+ }, Ys = (t) => {
1695
1696
  switch (t) {
1696
1697
  case "form":
1697
1698
  return Jt;
1698
1699
  case "tree":
1699
1700
  return pn;
1700
1701
  case "notebook":
1701
- return Hl;
1702
+ return Kl;
1702
1703
  case "group":
1703
1704
  return To;
1704
1705
  case "label":
@@ -1706,83 +1707,83 @@ const Nt = ({
1706
1707
  case "char":
1707
1708
  return to;
1708
1709
  case "text":
1709
- return Wl;
1710
+ return jl;
1710
1711
  case "button":
1711
1712
  return Xr;
1712
1713
  case "buttonGroup":
1713
- return rs;
1714
+ return os;
1714
1715
  case "selection":
1715
1716
  return no;
1716
1717
  case "many2one":
1717
- return ll;
1718
+ return cl;
1718
1719
  case "boolean":
1719
- return ws;
1720
+ return vs;
1720
1721
  case "integer":
1721
1722
  return rn;
1722
1723
  case "float":
1723
1724
  return mo;
1724
1725
  case "progressbar":
1725
- return Pa;
1726
+ return La;
1726
1727
  case "date":
1727
- return tc;
1728
- case "datetime":
1729
1728
  return nc;
1730
- case "time":
1729
+ case "datetime":
1731
1730
  return rc;
1731
+ case "time":
1732
+ return oc;
1732
1733
  case "one2many":
1733
1734
  case "one2many_list":
1734
1735
  case "many2many":
1735
- return Nl;
1736
+ return Pl;
1736
1737
  case "separator":
1737
- return Yl;
1738
+ return Gl;
1738
1739
  case "reference":
1739
- return ic;
1740
+ return sc;
1740
1741
  case "binary":
1741
- return lc;
1742
+ return cc;
1742
1743
  case "image":
1743
- return xs;
1744
+ return Ss;
1744
1745
  case "url":
1745
- return yc;
1746
- case "email":
1747
1746
  return wc;
1747
+ case "email":
1748
+ return vc;
1748
1749
  case "float_time":
1749
- return Ll;
1750
+ return Bl;
1750
1751
  case "fiber_grid":
1751
- return Ts;
1752
+ return Fs;
1752
1753
  case "timeline":
1753
- return Vs;
1754
+ return As;
1754
1755
  case "indicator":
1755
- return ks;
1756
+ return Es;
1756
1757
  case "tags":
1757
- return Ks;
1758
+ return Ws;
1758
1759
  case "tag":
1759
- return Hs;
1760
+ return Ks;
1760
1761
  case "multicheckbox":
1761
- return Uc;
1762
+ return qc;
1762
1763
  case "markdown":
1763
- return zc;
1764
+ return Jc;
1764
1765
  case "radio":
1765
- return Zc;
1766
+ return Xc;
1766
1767
  case "switch":
1767
- return Qc;
1768
+ return ed;
1768
1769
  case "steps":
1769
- return td;
1770
+ return nd;
1770
1771
  case "codeeditor":
1771
- return rd;
1772
+ return od;
1772
1773
  case "comments_timeline":
1773
- return dd;
1774
+ return ud;
1774
1775
  default:
1775
1776
  return;
1776
1777
  }
1777
- }, Ys = (t) => {
1778
- const { ooui: e } = t, { type: r } = e, i = js(r);
1778
+ }, Gs = (t) => {
1779
+ const { ooui: e } = t, { type: r } = e, i = Ys(r);
1779
1780
  return i ? Qe.createElement(i, t) : null;
1780
- }, Gs = ({
1781
+ }, Us = ({
1781
1782
  item: t,
1782
1783
  responsiveBehaviour: e
1783
1784
  }) => ({
1784
1785
  gridColumnStart: "span " + (e ? 1 : t.colspan)
1785
- }), Us = ({
1786
+ }), qs = ({
1786
1787
  row: t,
1787
1788
  mustFillWithEmpties: e,
1788
1789
  numberOfColumns: r
@@ -1801,10 +1802,10 @@ const Nt = ({
1801
1802
  i.push(new Dt({ string: "" }));
1802
1803
  }
1803
1804
  }), i;
1804
- }, qs = ({
1805
+ }, zs = ({
1805
1806
  row: t,
1806
1807
  numberOfColumns: e
1807
- }) => t.map((r) => (r._mustExpand && (r.colspan = e), r)), zs = (t, e) => {
1808
+ }) => t.map((r) => (r._mustExpand && (r.colspan = e), r)), Js = (t, e) => {
1808
1809
  const r = t.map((i) => i instanceof Dt && i.fieldForLabel || i instanceof ri ? "auto" : "1fr");
1809
1810
  if (r.length < e) {
1810
1811
  const i = e - r.length;
@@ -1812,25 +1813,25 @@ const Nt = ({
1812
1813
  r.push("1fr");
1813
1814
  }
1814
1815
  return r.join(" ");
1815
- }, Js = (t, e) => {
1816
+ }, Zs = (t, e) => {
1816
1817
  const r = e ? "1fr" : "auto", i = "auto";
1817
1818
  let o = "";
1818
1819
  for (let s = 0; s < t; s++)
1819
1820
  o += s % 2 ? r : i, s + 1 < t && (o += " ");
1820
1821
  return o;
1821
- }, Zs = (t) => t.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Dn = (t) => {
1822
+ }, Xs = (t) => t.map((r) => r.reduce((i, o) => i + o.colspan, 0)).reduce((r, i) => Math.max(r, i)), Dn = (t) => {
1822
1823
  const { container: e, responsiveBehaviour: r } = t, { rows: i } = e;
1823
1824
  let { columns: o } = e;
1824
- const s = Zs(i);
1825
+ const s = Xs(i);
1825
1826
  s < o && (o = s);
1826
1827
  let a = !1, l = [];
1827
1828
  const d = i.map((f, m) => {
1828
- const g = f.filter((y) => !y.invisible), h = qs({
1829
+ const g = f.filter((y) => !y.invisible), h = zs({
1829
1830
  row: g,
1830
1831
  numberOfColumns: o
1831
1832
  });
1832
1833
  let p = h;
1833
- return (m === 0 || !(f.length === 1 && f.some((y) => y.type === "group"))) && (p = Us({
1834
+ return (m === 0 || !(f.length === 1 && f.some((y) => y.type === "group"))) && (p = qs({
1834
1835
  row: h,
1835
1836
  numberOfColumns: o,
1836
1837
  mustFillWithEmpties: r
@@ -1838,17 +1839,17 @@ const Nt = ({
1838
1839
  "div",
1839
1840
  {
1840
1841
  style: {
1841
- ...Gs({ item: y, responsiveBehaviour: r }),
1842
+ ...Us({ item: y, responsiveBehaviour: r }),
1842
1843
  minWidth: 0
1843
1844
  },
1844
- children: Ys({
1845
+ children: Gs({
1845
1846
  ooui: y,
1846
1847
  responsiveBehaviour: r
1847
1848
  })
1848
1849
  },
1849
1850
  y.key
1850
1851
  )));
1851
- }), u = i.length === 1 ? zs(l, o) : Js(o, a);
1852
+ }), u = i.length === 1 ? Js(l, o) : Zs(o, a);
1852
1853
  return /* @__PURE__ */ n("div", { style: {
1853
1854
  display: "grid",
1854
1855
  gridTemplateColumns: r ? "auto" : u,
@@ -1856,12 +1857,12 @@ const Nt = ({
1856
1857
  minHeight: 0,
1857
1858
  minWidth: 0
1858
1859
  }, children: d });
1859
- }, { confirm: Xs } = Je, zt = ({
1860
+ }, { confirm: Qs } = Je, zt = ({
1860
1861
  onOk: t,
1861
1862
  onCancel: e,
1862
1863
  lang: r
1863
1864
  }) => {
1864
- Xs({
1865
+ Qs({
1865
1866
  title: Ie("unsavedChanges", r),
1866
1867
  icon: /* @__PURE__ */ n(pt, {}),
1867
1868
  centered: !0,
@@ -1871,22 +1872,22 @@ const Nt = ({
1871
1872
  onCancel: e,
1872
1873
  cancelText: Ie("cancel", r)
1873
1874
  });
1874
- }, { error: Qs } = Je, wr = (t) => {
1875
- Qs({
1875
+ }, { error: ea } = Je, wr = (t) => {
1876
+ ea({
1876
1877
  title: Ie("formHasErrors", t),
1877
1878
  icon: /* @__PURE__ */ n(pt, {}),
1878
1879
  centered: !0,
1879
1880
  content: Ie("fillRequiredFields", t)
1880
1881
  });
1881
- }, { warning: ea } = Je, ta = (t, e, r) => {
1882
- ea({
1882
+ }, { warning: ta } = Je, na = (t, e, r) => {
1883
+ ta({
1883
1884
  title: t,
1884
1885
  icon: /* @__PURE__ */ n($r, {}),
1885
1886
  centered: !0,
1886
1887
  content: e,
1887
1888
  onOk: r
1888
1889
  });
1889
- }, uo = Qe.createContext(null), na = (t) => {
1890
+ }, uo = Qe.createContext(null), ra = (t) => {
1890
1891
  const { children: e, setTitle: r } = t;
1891
1892
  return /* @__PURE__ */ n(
1892
1893
  uo.Provider,
@@ -1897,15 +1898,15 @@ const Nt = ({
1897
1898
  children: e
1898
1899
  }
1899
1900
  );
1900
- }, vr = (t) => typeof t == "string" && t === "true" || t === "false" ? t === "true" : t, ra = (t, e) => {
1901
- const r = ca(t), i = aa(r), o = la(
1901
+ }, vr = (t) => typeof t == "string" && t === "true" || t === "false" ? t === "true" : t, oa = (t, e) => {
1902
+ const r = da(t), i = la(r), o = ca(
1902
1903
  i,
1903
1904
  e
1904
1905
  );
1905
1906
  return [
1906
- ...Object.keys(o).map((l) => oa(l, o[l], e))
1907
+ ...Object.keys(o).map((l) => ia(l, o[l], e))
1907
1908
  ].reduce((l, d) => Array.isArray(d[0]) ? l.concat(d) : [...l, d], []);
1908
- }, oa = (t, e, r) => {
1909
+ }, ia = (t, e, r) => {
1909
1910
  var s;
1910
1911
  const i = t.split("#")[0], o = (s = r.findById(i)) == null ? void 0 : s.type;
1911
1912
  if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
@@ -1927,14 +1928,14 @@ const Nt = ({
1927
1928
  (a) => vr(a)
1928
1929
  )
1929
1930
  ] : [t, "=", vr(e)];
1930
- }, ia = (t) => Object.keys(t).filter((e) => e.indexOf("#date") !== -1), sa = (t) => {
1931
+ }, sa = (t) => Object.keys(t).filter((e) => e.indexOf("#date") !== -1), aa = (t) => {
1931
1932
  const e = { ...t };
1932
1933
  return Object.keys(e).forEach(
1933
1934
  (r) => (r.indexOf("#time") !== -1 || r.indexOf("#date") !== -1) && delete e[r]
1934
1935
  ), e;
1935
- }, aa = (t) => {
1936
- const e = { ...sa(t) };
1937
- return ia(t).forEach((i) => {
1936
+ }, la = (t) => {
1937
+ const e = { ...aa(t) };
1938
+ return sa(t).forEach((i) => {
1938
1939
  const o = t[i], s = i.split("#")[0], a = s + "#time", l = t[a];
1939
1940
  let d, u;
1940
1941
  if (o[0] !== null && (d = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
@@ -1947,7 +1948,7 @@ const Nt = ({
1947
1948
  }
1948
1949
  e[s + "#datetime"] = [d, u];
1949
1950
  }), e;
1950
- }, la = (t, e) => {
1951
+ }, ca = (t, e) => {
1951
1952
  const r = Object.keys(t).filter((o) => {
1952
1953
  const s = e.findById(o);
1953
1954
  return s && s.type === "date";
@@ -1955,18 +1956,18 @@ const Nt = ({
1955
1956
  return r.forEach((o) => {
1956
1957
  delete i[o], t[o][0] !== null && (i[o + "#from"] = t[o][0]), t[o][1] !== null && (i[o + "#to"] = t[o][1]);
1957
1958
  }), i;
1958
- }, ca = (t) => {
1959
+ }, da = (t) => {
1959
1960
  const e = { ...t };
1960
1961
  return Object.keys(e).forEach(
1961
1962
  (r) => (e[r] === void 0 || e[r] === null || e[r] === "") && delete e[r]
1962
1963
  ), e;
1963
- }, da = (t) => {
1964
+ }, ua = (t) => {
1964
1965
  const e = {};
1965
1966
  return t.forEach((r) => {
1966
1967
  Array.isArray(r) && r[0] ? e[r[0]] = !0 : e[r] = !0;
1967
1968
  }), Object.keys(e);
1968
1969
  }, Wt = (t, e) => {
1969
- const r = [...t], i = da(t);
1970
+ const r = [...t], i = ua(t);
1970
1971
  return e.forEach((o) => {
1971
1972
  Array.isArray(o) && o[0] ? i.includes(o[0]) || r.push(o) : i.includes(o) || r.push(o);
1972
1973
  }), r;
@@ -2201,7 +2202,7 @@ const Nt = ({
2201
2202
  totalItems: K,
2202
2203
  getAllIds: Ce
2203
2204
  };
2204
- }, rt = Qe.createContext(null), ua = (t) => {
2205
+ }, rt = Qe.createContext(null), fa = (t) => {
2205
2206
  const {
2206
2207
  children: e,
2207
2208
  currentView: r,
@@ -2311,7 +2312,7 @@ const Nt = ({
2311
2312
  children: e
2312
2313
  }
2313
2314
  );
2314
- }, dt = Qe.createContext(null), fa = (t) => {
2315
+ }, dt = Qe.createContext(null), ma = (t) => {
2315
2316
  const {
2316
2317
  children: e,
2317
2318
  openAction: r,
@@ -2347,7 +2348,7 @@ const Nt = ({
2347
2348
  var e;
2348
2349
  for (let r = 0; r < t.length; r++)
2349
2350
  await ((e = t == null ? void 0 : t[r]) == null ? void 0 : e.call(t));
2350
- }, ma = (t, e) => {
2351
+ }, ha = (t, e) => {
2351
2352
  const { children: r, globalValues: i = {} } = t, o = de(), s = de(), [a, l] = b(!1), d = H(
2352
2353
  dt
2353
2354
  ), { openAction: u } = d || {}, c = de([]), { t: f } = H(he);
@@ -2424,7 +2425,7 @@ const Nt = ({
2424
2425
  return await I({ actionData: A, fields: x, values: S, context: F });
2425
2426
  if (E === "ir.actions.act_url")
2426
2427
  window.open(
2427
- $s(A.url, { ...S, context: F }),
2428
+ Hs(A.url, { ...S, context: F }),
2428
2429
  "_blank"
2429
2430
  );
2430
2431
  else
@@ -2474,7 +2475,7 @@ const Nt = ({
2474
2475
  context: P
2475
2476
  }), {};
2476
2477
  } else {
2477
- const { initialView: N, views: B } = await ha({
2478
+ const { initialView: N, views: B } = await pa({
2478
2479
  model: v.res_model,
2479
2480
  context: P,
2480
2481
  view_mode: v.view_mode,
@@ -2575,7 +2576,7 @@ const Nt = ({
2575
2576
  }
2576
2577
  ) });
2577
2578
  };
2578
- async function ha({
2579
+ async function pa({
2579
2580
  views: t,
2580
2581
  view_mode: e,
2581
2582
  model: r,
@@ -2624,7 +2625,7 @@ async function ha({
2624
2625
  }
2625
2626
  return { views: s, initialView: a };
2626
2627
  }
2627
- const pa = vt(ma), ga = ({
2628
+ const ga = vt(ha), ya = ({
2628
2629
  error: t,
2629
2630
  className: e
2630
2631
  }) => {
@@ -2645,8 +2646,8 @@ const pa = vt(ma), ga = ({
2645
2646
  banner: !0
2646
2647
  }
2647
2648
  );
2648
- }, ya = 800;
2649
- function wa(t, e) {
2649
+ }, wa = 800;
2650
+ function va(t, e) {
2650
2651
  const {
2651
2652
  model: r,
2652
2653
  id: i,
@@ -2670,7 +2671,7 @@ function wa(t, e) {
2670
2671
  defaultValues: O,
2671
2672
  forcedValues: _ = {},
2672
2673
  parentWidth: A
2673
- } = t, { t: x, lang: S } = H(he), [F, v] = b(!1), [E, P] = b(), [M, j] = b(), [N] = lt.useForm(), [B, K] = b(), [R, U] = b(), ne = H(uo), [X, Y] = b(), [G, k] = b(!1), L = de(), ee = de({}), le = de({}), Fe = de(!1), J = de(!1), q = de(!1), we = (A !== void 0 ? A : X) < ya, je = H(Ne), { activeId: ke, getPlainValues: Le } = je || {}, Ge = H(
2674
+ } = t, { t: x, lang: S } = H(he), [F, v] = b(!1), [E, P] = b(), [M, j] = b(), [N] = lt.useForm(), [B, K] = b(), [R, U] = b(), ne = H(uo), [X, Y] = b(), [G, k] = b(!1), L = de(), ee = de({}), le = de({}), Fe = de(!1), J = de(!1), q = de(!1), we = (A !== void 0 ? A : X) < wa, je = H(Ne), { activeId: ke, getPlainValues: Le } = je || {}, Ge = H(
2674
2675
  rt
2675
2676
  ), {
2676
2677
  setFormIsSaving: Ce = void 0,
@@ -2811,7 +2812,7 @@ function wa(t, e) {
2811
2812
  ye == null || ye(!0), P(void 0), $ != null && $.fields ? (te = $.fields, re = $.arch) : (te = R, re = B), g && ($ == null ? void 0 : $.forceRefresh) !== !0 ? W = g : { values: W, defaultGetCalled: fe } = await Do({
2812
2813
  fields: te,
2813
2814
  arch: re
2814
- }), T && (W = { ...Ls(T), ...W }), ee.current = It(W, te), Lt({
2815
+ }), T && (W = { ...Bs(T), ...W }), ee.current = It(W, te), Lt({
2815
2816
  values: W,
2816
2817
  fields: te,
2817
2818
  reset: !0,
@@ -2950,7 +2951,7 @@ function wa(t, e) {
2950
2951
  const fe = new Mr($);
2951
2952
  fe.parse(W, {
2952
2953
  readOnly: c || re,
2953
- values: Rs(
2954
+ values: Vs(
2954
2955
  {
2955
2956
  ...te,
2956
2957
  ...Te()
@@ -2968,7 +2969,7 @@ function wa(t, e) {
2968
2969
  target: qe(R),
2969
2970
  fields: R
2970
2971
  }), te = Object.keys(W);
2971
- if (te.length !== 0 && !(Ns({
2972
+ if (te.length !== 0 && !(Ps({
2972
2973
  changedFields: te,
2973
2974
  formOoui: M,
2974
2975
  types: [
@@ -3005,7 +3006,7 @@ function wa(t, e) {
3005
3006
  });
3006
3007
  return;
3007
3008
  }
3008
- const te = Bs({
3009
+ const te = $s({
3009
3010
  values: {
3010
3011
  ...qe(R),
3011
3012
  context: {
@@ -3035,12 +3036,12 @@ function wa(t, e) {
3035
3036
  }
3036
3037
  if (re.warning && re.warning.title && re.warning.message && !Fe.current) {
3037
3038
  const { title: fe, message: nt } = re.warning;
3038
- Fe.current = !0, ta(fe, nt, () => {
3039
+ Fe.current = !0, na(fe, nt, () => {
3039
3040
  Fe.current = !1;
3040
3041
  });
3041
3042
  }
3042
3043
  if (re.domain && Object.keys(re.domain).length > 0) {
3043
- const fe = Ps({
3044
+ const fe = Ls({
3044
3045
  fieldsDomain: re.domain,
3045
3046
  fields: R
3046
3047
  });
@@ -3154,7 +3155,7 @@ function wa(t, e) {
3154
3155
  }
3155
3156
  }
3156
3157
  const Ko = () => !M && !E ? /* @__PURE__ */ n(Ae, {}) : !r && !h || !I ? null : /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(
3157
- ts,
3158
+ ns,
3158
3159
  {
3159
3160
  getValues: Ke,
3160
3161
  getPlainValues: z,
@@ -3226,14 +3227,14 @@ function wa(t, e) {
3226
3227
  Y((W = $.bounds) == null ? void 0 : W.width);
3227
3228
  },
3228
3229
  children: ({ measureRef: $ }) => /* @__PURE__ */ V("div", { className: "pb-2", ref: $, children: [
3229
- E && /* @__PURE__ */ n(ga, { className: "mt-5 mb-10", error: E }),
3230
+ E && /* @__PURE__ */ n(ya, { className: "mt-5 mb-10", error: E }),
3230
3231
  Ko(),
3231
3232
  a && Wo()
3232
3233
  ] })
3233
3234
  }
3234
3235
  ) : null;
3235
3236
  }
3236
- const Jt = vt(wa), Zt = (t) => {
3237
+ const Jt = vt(va), Zt = (t) => {
3237
3238
  const {
3238
3239
  visible: e,
3239
3240
  id: r,
@@ -3287,7 +3288,7 @@ const Jt = vt(wa), Zt = (t) => {
3287
3288
  ] });
3288
3289
  }
3289
3290
  const I = u * 0.95;
3290
- return /* @__PURE__ */ n(na, { setTitle: f, children: /* @__PURE__ */ n(
3291
+ return /* @__PURE__ */ n(ra, { setTitle: f, children: /* @__PURE__ */ n(
3291
3292
  Je,
3292
3293
  {
3293
3294
  title: a ? T() : c,
@@ -3311,13 +3312,13 @@ const Jt = vt(wa), Zt = (t) => {
3311
3312
  )
3312
3313
  }
3313
3314
  ) });
3314
- }, va = (t) => /* @__PURE__ */ n(ge, { ...t, layout: "vertical", children: /* @__PURE__ */ n(
3315
+ }, ba = (t) => /* @__PURE__ */ n(ge, { ...t, layout: "vertical", children: /* @__PURE__ */ n(
3315
3316
  Pn.RangePicker,
3316
3317
  {
3317
3318
  allowEmpty: [!0, !0],
3318
3319
  format: "DD/MM/YYYY"
3319
3320
  }
3320
- ) }), ba = (t) => {
3321
+ ) }), Ca = (t) => {
3321
3322
  const { ooui: e, showLabel: r = !1 } = t, { label: i, id: o } = e, s = [
3322
3323
  new Rn({
3323
3324
  name: o + "#date",
@@ -3360,8 +3361,8 @@ const Jt = vt(wa), Zt = (t) => {
3360
3361
  ) }) })
3361
3362
  ] })
3362
3363
  ] });
3363
- }, { useToken: Ca } = Pe, mo = (t) => {
3364
- const { ooui: e } = t, { id: r, decimalDigits: i, readOnly: o, required: s } = e, { token: a } = Ca(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
3364
+ }, { useToken: xa } = Pe, mo = (t) => {
3365
+ const { ooui: e } = t, { id: r, decimalDigits: i, readOnly: o, required: s } = e, { token: a } = xa(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
3365
3366
  return /* @__PURE__ */ n(ge, { required: s, type: "number", ...t, children: /* @__PURE__ */ n(
3366
3367
  Ln,
3367
3368
  {
@@ -3375,8 +3376,8 @@ const Jt = vt(wa), Zt = (t) => {
3375
3376
  onBlur: u
3376
3377
  }
3377
3378
  ) });
3378
- }, { useToken: xa } = Pe, rn = (t) => {
3379
- const { ooui: e, onChange: r } = t, { id: i, readOnly: o, required: s } = e, { token: a } = xa(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
3379
+ }, { useToken: Sa } = Pe, rn = (t) => {
3380
+ const { ooui: e, onChange: r } = t, { id: i, readOnly: o, required: s } = e, { token: a } = Sa(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, d = H(Ne), { elementHasLostFocus: u } = d || {};
3380
3381
  return /* @__PURE__ */ n(ge, { required: s, type: "number", ...t, children: /* @__PURE__ */ n(
3381
3382
  Ln,
3382
3383
  {
@@ -3394,7 +3395,7 @@ const Jt = vt(wa), Zt = (t) => {
3394
3395
  }
3395
3396
  ) });
3396
3397
  };
3397
- function Sa(t) {
3398
+ function Ta(t) {
3398
3399
  const { ooui: e, showLabel: r } = t, { id: i, label: o, tooltip: s } = e, a = e instanceof Vn ? rn : mo, l = (d) => /* @__PURE__ */ n(
3399
3400
  a,
3400
3401
  {
@@ -3427,17 +3428,17 @@ function Sa(t) {
3427
3428
  ] })
3428
3429
  ] });
3429
3430
  }
3430
- const { defaultAlgorithm: Ta, defaultSeed: Fa } = Pe, Ia = Ta(Fa), { Option: Oa } = Ct, _a = (t) => {
3431
+ const { defaultAlgorithm: Fa, defaultSeed: Ia } = Pe, Oa = Fa(Ia), { Option: _a } = Ct, Ra = (t) => {
3431
3432
  const { ooui: e } = t, { required: r } = e;
3432
- return /* @__PURE__ */ n(ge, { required: r, type: "any", ...t, children: /* @__PURE__ */ n(Ra, { ...t }) });
3433
- }, Ra = (t) => {
3433
+ return /* @__PURE__ */ n(ge, { required: r, type: "any", ...t, children: /* @__PURE__ */ n(Va, { ...t }) });
3434
+ }, Va = (t) => {
3434
3435
  const { ooui: e, onChange: r, value: i } = t, { selectionValues: o, readOnly: s, required: a } = e, l = Array.from(o.entries()), d = l && l.length && l.filter((f) => {
3435
3436
  const [m] = f;
3436
3437
  return i ? !i.includes(m) : !0;
3437
3438
  }).map((f) => {
3438
3439
  const [m, g] = f;
3439
- return /* @__PURE__ */ n(Oa, { value: g, children: g }, m);
3440
- }), u = a && !s ? Va : Ct;
3440
+ return /* @__PURE__ */ n(_a, { value: g, children: g }, m);
3441
+ }), u = a && !s ? Aa : Ct;
3441
3442
  function c(f) {
3442
3443
  const m = f.map((g) => {
3443
3444
  const h = l.find(([p, y]) => g === y);
@@ -3460,12 +3461,12 @@ const { defaultAlgorithm: Ta, defaultSeed: Fa } = Pe, Ia = Ta(Fa), { Option: Oa
3460
3461
  children: d
3461
3462
  }
3462
3463
  );
3463
- }, Va = Mt(Ct)`
3464
+ }, Aa = Mt(Ct)`
3464
3465
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
3465
- background-color: ${Ia.colorPrimaryBg};
3466
+ background-color: ${Oa.colorPrimaryBg};
3466
3467
  }
3467
3468
  `;
3468
- function Aa(t) {
3469
+ function Da(t) {
3469
3470
  const { field: e } = t;
3470
3471
  e.readOnly = !1, e.required = !1;
3471
3472
  const { t: r } = H(he);
@@ -3485,18 +3486,18 @@ function Aa(t) {
3485
3486
  case mt.progressbar:
3486
3487
  case mt.float_time:
3487
3488
  case mt.integer:
3488
- return /* @__PURE__ */ n(Sa, { ooui: e, showLabel: !0 });
3489
+ return /* @__PURE__ */ n(Ta, { ooui: e, showLabel: !0 });
3489
3490
  case mt.date:
3490
- return /* @__PURE__ */ n(va, { ooui: e, layout: "vertical", showLabel: !0 });
3491
- case mt.datetime:
3492
3491
  return /* @__PURE__ */ n(ba, { ooui: e, layout: "vertical", showLabel: !0 });
3492
+ case mt.datetime:
3493
+ return /* @__PURE__ */ n(Ca, { ooui: e, layout: "vertical", showLabel: !0 });
3493
3494
  case mt.selection:
3494
- return /* @__PURE__ */ n(_a, { layout: "vertical", ooui: e, showLabel: !0 });
3495
+ return /* @__PURE__ */ n(Ra, { layout: "vertical", ooui: e, showLabel: !0 });
3495
3496
  default:
3496
3497
  return /* @__PURE__ */ n(to, { ooui: e, layout: "vertical", showLabel: !0, isSearchField: !0 });
3497
3498
  }
3498
3499
  }
3499
- function Da(t) {
3500
+ function ka(t) {
3500
3501
  const { onAdvancedFilterToggle: e, advancedFilter: r, onClear: i, isSearching: o } = t, { t: s } = H(he);
3501
3502
  return /* @__PURE__ */ V(ve, { children: [
3502
3503
  /* @__PURE__ */ n(ae, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ V("a", { className: "text-xs", onClick: e, children: [
@@ -3519,7 +3520,7 @@ function Da(t) {
3519
3520
  ] })
3520
3521
  ] });
3521
3522
  }
3522
- function ka(t) {
3523
+ function Ea(t) {
3523
3524
  const { onLimitChange: e } = t, { t: r } = H(he), i = new Vn({ name: "limit" }), o = new Vn({ name: "offset" });
3524
3525
  return /* @__PURE__ */ V("div", { className: "pl-2 pt-2", children: [
3525
3526
  /* @__PURE__ */ n(ve, { children: r("parameters") }, "count_params"),
@@ -3539,7 +3540,7 @@ function ka(t) {
3539
3540
  ] })
3540
3541
  ] });
3541
3542
  }
3542
- const { useToken: Ea } = Pe;
3543
+ const { useToken: Ma } = Pe;
3543
3544
  function ho(t) {
3544
3545
  const {
3545
3546
  fields: e,
@@ -3555,7 +3556,7 @@ function ho(t) {
3555
3556
  searchError: f,
3556
3557
  searchValues: m,
3557
3558
  showLimitOptions: g = !0
3558
- } = t, [h, p] = b(), [y, w] = b(), [T, I] = b(!1), C = de(), { token: O } = Ea(), [_] = lt.useForm();
3559
+ } = t, [h, p] = b(), [y, w] = b(), [T, I] = b(!1), C = de(), { token: O } = Ma(), [_] = lt.useForm();
3559
3560
  me(() => {
3560
3561
  _.setFieldsValue(m);
3561
3562
  }, [m]);
@@ -3563,7 +3564,7 @@ function ho(t) {
3563
3564
  if (!y)
3564
3565
  return;
3565
3566
  const F = T ? y : h, v = F == null ? void 0 : F.rows;
3566
- return v == null ? void 0 : v.map((E, P) => /* @__PURE__ */ n(ve, { children: E.map((M, j) => /* @__PURE__ */ n(ae, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ n(Aa, { field: M }) }, j)) }, P));
3567
+ return v == null ? void 0 : v.map((E, P) => /* @__PURE__ */ n(ve, { children: E.map((M, j) => /* @__PURE__ */ n(ae, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ n(Da, { field: M }) }, j)) }, P));
3567
3568
  };
3568
3569
  xt(() => {
3569
3570
  I(!1), C.current = new oi(r, e), C.current.parse(), p(C.current._simpleSearchContainer), w(C.current._advancedSearchContainer);
@@ -3572,7 +3573,7 @@ function ho(t) {
3572
3573
  var M;
3573
3574
  const { limit: v, offset: E } = F;
3574
3575
  delete F.offset, delete F.limit;
3575
- const P = ra(
3576
+ const P = oa(
3576
3577
  F,
3577
3578
  (M = C.current) == null ? void 0 : M._advancedSearchContainer
3578
3579
  );
@@ -3597,9 +3598,9 @@ function ho(t) {
3597
3598
  initialValues: { offset: a, limit: l },
3598
3599
  children: [
3599
3600
  x,
3600
- T && g && /* @__PURE__ */ n(ka, { onLimitChange: d }),
3601
+ T && g && /* @__PURE__ */ n(Ea, { onLimitChange: d }),
3601
3602
  /* @__PURE__ */ n(
3602
- Da,
3603
+ ka,
3603
3604
  {
3604
3605
  advancedFilter: T,
3605
3606
  onAdvancedFilterToggle: () => {
@@ -3633,7 +3634,7 @@ const Cr = (t, e = "14px -apple-system") => {
3633
3634
  i.font = e;
3634
3635
  const o = i.measureText(t);
3635
3636
  return Math.round((o.width + 80) * 1.5);
3636
- }, Ma = (t, e, r = 500) => {
3637
+ }, Na = (t, e, r = 500) => {
3637
3638
  if (t.length === 0)
3638
3639
  return { columns: t };
3639
3640
  const i = t.map(
@@ -3655,7 +3656,7 @@ const Cr = (t, e = "14px -apple-system") => {
3655
3656
  tableWidth: o
3656
3657
  };
3657
3658
  };
3658
- function Na(t) {
3659
+ function Pa(t) {
3659
3660
  if (t)
3660
3661
  try {
3661
3662
  if (t.includes(":")) {
@@ -3685,17 +3686,17 @@ function po(t) {
3685
3686
  });
3686
3687
  return e = `${o}:${s}`, t < 0 && (e = "-" + e), e;
3687
3688
  }
3688
- const Pa = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(go, {}) }), go = ({ value: t }) => {
3689
+ const La = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(go, {}) }), go = ({ value: t }) => {
3689
3690
  const e = `${(t || 0).toLocaleString("en-US", {
3690
3691
  minimumIntegerDigits: 1,
3691
3692
  maximumFractionDigits: 4,
3692
3693
  useGrouping: !1
3693
3694
  })}%`;
3694
3695
  return /* @__PURE__ */ V("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
3695
- /* @__PURE__ */ n(La, { percent: t }),
3696
+ /* @__PURE__ */ n(Ba, { percent: t }),
3696
3697
  /* @__PURE__ */ n("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: e })
3697
3698
  ] });
3698
- }, La = Mt(zo)`
3699
+ }, Ba = Mt(zo)`
3699
3700
  .ant-progress-outer {
3700
3701
  margin-right: 0px;
3701
3702
  padding-right: 0px;
@@ -3870,13 +3871,13 @@ const Pa = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(go,
3870
3871
  }
3871
3872
  )
3872
3873
  ] });
3873
- }, Ba = (t) => {
3874
+ }, $a = (t) => {
3874
3875
  const { m2oField: e } = t;
3875
3876
  return e ? /* @__PURE__ */ V(We, { children: [
3876
3877
  /* @__PURE__ */ n(Q, { children: e.value }),
3877
3878
  /* @__PURE__ */ n(Qn, { id: e.id, model: e.model })
3878
3879
  ] }) : /* @__PURE__ */ n(Q, {});
3879
- }, $a = (t) => {
3880
+ }, Ha = (t) => {
3880
3881
  const { value: e, context: r, selectionValues: i } = t, [o, s] = b(), [a, l] = b(!1), [d, u] = e ? e.split(",") : [], c = parseInt(u), f = De(async () => {
3881
3882
  if (!e || e && o)
3882
3883
  return;
@@ -3901,7 +3902,7 @@ const Pa = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(go,
3901
3902
  /* @__PURE__ */ n(Q, { children: o }),
3902
3903
  /* @__PURE__ */ n(Qn, { id: c, model: d })
3903
3904
  ] });
3904
- }, Ha = (t) => {
3905
+ }, Ka = (t) => {
3905
3906
  const { ooui: e, value: r } = t;
3906
3907
  if (!r)
3907
3908
  return null;
@@ -3909,7 +3910,7 @@ const Pa = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(go,
3909
3910
  e.selectionValues.size ? i = e.selectionValues.get(r) : Array.isArray(r) && (i = r[1]);
3910
3911
  const o = i.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = nn(i);
3911
3912
  return /* @__PURE__ */ n(ht, { title: i, children: /* @__PURE__ */ n(Ar, { alt: i, style: { backgroundColor: s }, children: o }) });
3912
- }, { useToken: Ka } = Pe;
3913
+ }, { useToken: Wa } = Pe;
3913
3914
  at.extend(Ri);
3914
3915
  at.extend(Vi);
3915
3916
  const ut = {
@@ -3925,9 +3926,9 @@ const ut = {
3925
3926
  }
3926
3927
  }, yo = (t) => {
3927
3928
  const { ooui: e, showTime: r = !1 } = t, { required: i } = e;
3928
- return /* @__PURE__ */ n(ge, { required: i, ...t, children: /* @__PURE__ */ n(Wa, { ooui: e, showTime: r }) });
3929
- }, Wa = (t) => {
3930
- const { value: e, onChange: r, ooui: i, showTime: o } = t, { id: s, readOnly: a, required: l } = i, { token: d } = Ka(), u = l && !a ? { backgroundColor: d.colorPrimaryBg } : void 0, c = o ? "time" : "date", f = (h) => {
3929
+ return /* @__PURE__ */ n(ge, { required: i, ...t, children: /* @__PURE__ */ n(ja, { ooui: e, showTime: r }) });
3930
+ }, ja = (t) => {
3931
+ const { value: e, onChange: r, ooui: i, showTime: o } = t, { id: s, readOnly: a, required: l } = i, { token: d } = Wa(), u = l && !a ? { backgroundColor: d.colorPrimaryBg } : void 0, c = o ? "time" : "date", f = (h) => {
3931
3932
  r == null || r(h);
3932
3933
  }, m = (h) => {
3933
3934
  if (h === null) {
@@ -3950,11 +3951,11 @@ const ut = {
3950
3951
  onChange: m
3951
3952
  }
3952
3953
  );
3953
- }, ja = Mt.div`
3954
+ }, Ya = Mt.div`
3954
3955
  display: flex;
3955
3956
  align-items: center;
3956
3957
  justify-content: center;
3957
- `, Ya = ({
3958
+ `, Ga = ({
3958
3959
  numberOfVisibleSelectedRows: t,
3959
3960
  totalRecords: e,
3960
3961
  numberOfTotalRows: r,
@@ -3983,8 +3984,8 @@ const ut = {
3983
3984
  "{totalRecords}",
3984
3985
  o.toString()
3985
3986
  ) + " " });
3986
- return /* @__PURE__ */ n(ja, { children: o > r ? f : c });
3987
- }, Ga = (t) => /* @__PURE__ */ n(
3987
+ return /* @__PURE__ */ n(Ya, { children: o > r ? f : c });
3988
+ }, Ua = (t) => /* @__PURE__ */ n(
3988
3989
  "div",
3989
3990
  {
3990
3991
  style: {
@@ -3994,12 +3995,12 @@ const ut = {
3994
3995
  },
3995
3996
  children: /* @__PURE__ */ n(Ht, { checked: t, disabled: !0 })
3996
3997
  }
3997
- ), Ua = (t) => /* @__PURE__ */ n(Ba, { m2oField: t }), qa = (t) => /* @__PURE__ */ n(
3998
+ ), qa = (t) => /* @__PURE__ */ n($a, { m2oField: t }), za = (t) => /* @__PURE__ */ n(
3998
3999
  Jn,
3999
4000
  {
4000
4001
  content: t == null ? void 0 : t.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
4001
4002
  }
4002
- ), za = (t) => {
4003
+ ), Ja = (t) => {
4003
4004
  if (!t || t && t.length === 0)
4004
4005
  return /* @__PURE__ */ n(Q, {});
4005
4006
  const e = at(
@@ -4007,7 +4008,7 @@ const ut = {
4007
4008
  ut.date.dateInternalFormat
4008
4009
  ).format(ut.date.dateDisplayFormat);
4009
4010
  return /* @__PURE__ */ n(Q, { children: e });
4010
- }, Ja = (t) => {
4011
+ }, Za = (t) => {
4011
4012
  if (!t || t && t.length === 0)
4012
4013
  return /* @__PURE__ */ n(Q, {});
4013
4014
  const e = at(
@@ -4018,20 +4019,20 @@ const ut = {
4018
4019
  }, Sr = (t) => {
4019
4020
  const e = Array.isArray(t == null ? void 0 : t.items) ? t == null ? void 0 : t.items.length : 0;
4020
4021
  return /* @__PURE__ */ n(Q, { children: `( ${e} )` });
4021
- }, Za = (t) => /* @__PURE__ */ n(go, { value: t }), Xa = (t) => /* @__PURE__ */ n(Q, { children: po(t) }), Tr = (t) => /* @__PURE__ */ n("div", { style: { textAlign: "right" }, children: t }), Qa = (t) => /* @__PURE__ */ n(
4022
+ }, Xa = (t) => /* @__PURE__ */ n(go, { value: t }), Qa = (t) => /* @__PURE__ */ n(Q, { children: po(t) }), Tr = (t) => /* @__PURE__ */ n("div", { style: { textAlign: "right" }, children: t }), el = (t) => /* @__PURE__ */ n(
4022
4023
  "img",
4023
4024
  {
4024
4025
  src: `data:image/*;base64,${t}`,
4025
4026
  style: { maxWidth: "50px", padding: "5px" }
4026
4027
  }
4027
- ), el = (t, e, r, i) => /* @__PURE__ */ n(lo, { ooui: r, value: t }), tl = (t, e, r, i) => /* @__PURE__ */ n(Q, { children: r.selectionValues.get(t) }), nl = (t, e, r, i) => /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(
4028
- $a,
4028
+ ), tl = (t, e, r, i) => /* @__PURE__ */ n(lo, { ooui: r, value: t }), nl = (t, e, r, i) => /* @__PURE__ */ n(Q, { children: r.selectionValues.get(t) }), rl = (t, e, r, i) => /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(
4029
+ Ha,
4029
4030
  {
4030
4031
  value: t,
4031
4032
  selectionValues: r.selectionValues,
4032
4033
  context: i
4033
4034
  }
4034
- ) }), rl = (t, e, r, i) => /* @__PURE__ */ n(Ha, { ooui: r, value: t });
4035
+ ) }), ol = (t, e, r, i) => /* @__PURE__ */ n(Ka, { ooui: r, value: t });
4035
4036
  function pn(t) {
4036
4037
  var G;
4037
4038
  const {
@@ -4061,25 +4062,25 @@ function pn(t) {
4061
4062
  ), { title: j = void 0, setTitle: N = void 0 } = (T ? M : {}) || {};
4062
4063
  me(() => {
4063
4064
  v.current = _t(o);
4064
- const k = Is(
4065
+ const k = Os(
4065
4066
  v.current,
4066
4067
  {
4067
- boolean: Ga,
4068
- many2one: Ua,
4069
- text: qa,
4068
+ boolean: Ua,
4069
+ many2one: qa,
4070
+ text: za,
4070
4071
  one2many: Sr,
4071
4072
  many2many: Sr,
4072
- progressbar: Za,
4073
- float_time: Xa,
4074
- image: Qa,
4073
+ progressbar: Xa,
4074
+ float_time: Qa,
4075
+ image: el,
4075
4076
  integer: Tr,
4076
4077
  float: Tr,
4077
- reference: nl,
4078
- tag: el,
4079
- selection: tl,
4080
- date: za,
4081
- datetime: Ja,
4082
- avatar: rl
4078
+ reference: rl,
4079
+ tag: tl,
4080
+ selection: nl,
4081
+ date: Ja,
4082
+ datetime: Za,
4083
+ avatar: ol
4083
4084
  },
4084
4085
  I
4085
4086
  );
@@ -4108,7 +4109,7 @@ function pn(t) {
4108
4109
  }
4109
4110
  ) }),
4110
4111
  O && /* @__PURE__ */ n(ae, { span: 8, className: "text-center", children: /* @__PURE__ */ n(
4111
- Ya,
4112
+ Ga,
4112
4113
  {
4113
4114
  numberOfVisibleSelectedRows: k,
4114
4115
  numberOfRealSelectedRows: ((L = c == null ? void 0 : c.selectedRowKeys) == null ? void 0 : L.length) || 0,
@@ -4133,7 +4134,7 @@ function pn(t) {
4133
4134
  }
4134
4135
  let X, Y = f;
4135
4136
  if (v.current !== null) {
4136
- X = Ma(x, _, 600);
4137
+ X = Na(x, _, 600);
4137
4138
  const L = v.current;
4138
4139
  f && L.columns.some((ee) => ee.sum !== void 0) && (Y = f - 30);
4139
4140
  }
@@ -4151,7 +4152,7 @@ function pn(t) {
4151
4152
  if (m[k.id])
4152
4153
  return { color: m[k.id] };
4153
4154
  },
4154
- onRowStatus: Os(g) ? (k) => {
4155
+ onRowStatus: _s(g) ? (k) => {
4155
4156
  if (g[k.id])
4156
4157
  return /* @__PURE__ */ n(Jo, { color: g[k.id] });
4157
4158
  } : void 0,
@@ -4173,7 +4174,7 @@ function pn(t) {
4173
4174
  ne()
4174
4175
  ] });
4175
4176
  }
4176
- function ol(t, e) {
4177
+ function il(t, e) {
4177
4178
  const {
4178
4179
  model: r,
4179
4180
  formView: i,
@@ -4385,7 +4386,7 @@ function ol(t, e) {
4385
4386
  ] }), qe = x || ye;
4386
4387
  return qe ? /* @__PURE__ */ n(et, { className: "mt-10", message: qe, type: "error", banner: !0 }) : /* @__PURE__ */ n("div", { style: u ? {} : { display: "none" }, children: g ? /* @__PURE__ */ n(Ae, {}) : tt() });
4387
4388
  }
4388
- const wo = vt(ol), vo = (t) => {
4389
+ const wo = vt(il), vo = (t) => {
4389
4390
  const {
4390
4391
  visible: e,
4391
4392
  onCloseModal: r,
@@ -4479,14 +4480,14 @@ const wo = vt(ol), vo = (t) => {
4479
4480
  }
4480
4481
  )
4481
4482
  ] });
4482
- }, { error: il } = Je, on = (t) => {
4483
- il({
4483
+ }, { error: sl } = Je, on = (t) => {
4484
+ sl({
4484
4485
  title: "Error",
4485
4486
  icon: /* @__PURE__ */ n(pt, {}),
4486
4487
  centered: !0,
4487
4488
  content: t
4488
4489
  });
4489
- }, { defaultAlgorithm: sl, defaultSeed: al } = Pe, bo = sl(al), ll = (t) => {
4490
+ }, { defaultAlgorithm: al, defaultSeed: ll } = Pe, bo = al(ll), cl = (t) => {
4490
4491
  const { ooui: e } = t, { required: r } = e;
4491
4492
  return /* @__PURE__ */ n(ge, { required: r, type: "array", validator: async (o, s) => {
4492
4493
  if (!s)
@@ -4587,7 +4588,7 @@ const wo = vt(ol), vo = (t) => {
4587
4588
  }
4588
4589
  return /* @__PURE__ */ V(ve, { gutter: 8, wrap: !1, children: [
4589
4590
  /* @__PURE__ */ n(ae, { flex: "auto", children: /* @__PURE__ */ n(
4590
- o && !a ? cl : it,
4591
+ o && !a ? dl : it,
4591
4592
  {
4592
4593
  type: "text",
4593
4594
  value: C,
@@ -4664,13 +4665,13 @@ const wo = vt(ol), vo = (t) => {
4664
4665
  }
4665
4666
  )
4666
4667
  ] });
4667
- }, cl = Mt(it)`
4668
+ }, dl = Mt(it)`
4668
4669
  .ant-input {
4669
4670
  background-color: ${bo.colorPrimaryBg};
4670
4671
  }
4671
4672
  `, xo = Qe.createContext(
4672
4673
  null
4673
- ), dl = ({
4674
+ ), ul = ({
4674
4675
  children: t,
4675
4676
  initialView: e
4676
4677
  }) => {
@@ -4689,7 +4690,7 @@ const wo = vt(ol), vo = (t) => {
4689
4690
  children: t
4690
4691
  }
4691
4692
  );
4692
- }, { getValueForOperator: Fr } = Pr, sn = 0.7, an = 30, ul = (t) => {
4693
+ }, { getValueForOperator: Fr } = Pr, sn = 0.7, an = 30, fl = (t) => {
4693
4694
  const {
4694
4695
  model: e,
4695
4696
  domain: r,
@@ -4807,7 +4808,7 @@ const wo = vt(ol), vo = (t) => {
4807
4808
  O((K = B.bounds) == null ? void 0 : K.height), A((R = B.bounds) == null ? void 0 : R.width);
4808
4809
  },
4809
4810
  children: ({ measureRef: B }) => a ? /* @__PURE__ */ n(
4810
- ml,
4811
+ hl,
4811
4812
  {
4812
4813
  value: h,
4813
4814
  total: T,
@@ -4820,7 +4821,7 @@ const wo = vt(ol), vo = (t) => {
4820
4821
  suffix: d
4821
4822
  }
4822
4823
  ) : /* @__PURE__ */ n(
4823
- fl,
4824
+ ml,
4824
4825
  {
4825
4826
  value: h,
4826
4827
  total: T,
@@ -4839,7 +4840,7 @@ function So(t, e) {
4839
4840
  const i = document.createElement("canvas").getContext("2d");
4840
4841
  return i.font = e || getComputedStyle(document.body).font, i.measureText(t).width;
4841
4842
  }
4842
- function fl({
4843
+ function ml({
4843
4844
  measureRef: t,
4844
4845
  width: e,
4845
4846
  height: r,
@@ -4880,7 +4881,7 @@ function fl({
4880
4881
  }
4881
4882
  );
4882
4883
  }
4883
- function ml({
4884
+ function hl({
4884
4885
  measureRef: t,
4885
4886
  height: e,
4886
4887
  width: r,
@@ -4950,22 +4951,22 @@ const Fn = (t) => (e) => {
4950
4951
  });
4951
4952
  return { name: t === "pie" ? e.x : e.type, value: r };
4952
4953
  }, Qt = (t) => {
4953
- if (typeof t == "string" && hl(t))
4954
+ if (typeof t == "string" && pl(t))
4954
4955
  return parseFloat(t).toLocaleString("es-ES", {
4955
4956
  useGrouping: !0
4956
4957
  });
4957
- if (pl(t))
4958
+ if (gl(t))
4958
4959
  return t.toLocaleString("es-ES", {
4959
4960
  useGrouping: !0
4960
4961
  });
4961
- if (gl(t)) {
4962
- const e = yl(t);
4962
+ if (yl(t)) {
4963
+ const e = wl(t);
4963
4964
  return e === null ? t : at(t, ln.input[e]).format(
4964
4965
  ln.output[e]
4965
4966
  );
4966
4967
  } else
4967
4968
  return t;
4968
- }, hl = (t) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t), pl = (t) => typeof t == "number" && !isNaN(t), Ir = {
4969
+ }, pl = (t) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(t), gl = (t) => typeof t == "number" && !isNaN(t), Ir = {
4969
4970
  default: {
4970
4971
  padding: "auto",
4971
4972
  xAxis: {
@@ -5047,7 +5048,7 @@ const Fn = (t) => (e) => {
5047
5048
  }
5048
5049
  }
5049
5050
  };
5050
- function gl(t) {
5051
+ function yl(t) {
5051
5052
  return typeof t != "string" || t === void 0 ? !1 : new Date(t).toString() !== "Invalid Date";
5052
5053
  }
5053
5054
  const ln = {
@@ -5066,7 +5067,7 @@ const ln = {
5066
5067
  years: "YYYY"
5067
5068
  }
5068
5069
  };
5069
- function yl(t) {
5070
+ function wl(t) {
5070
5071
  for (const e in ln.input)
5071
5072
  if (at(
5072
5073
  t,
@@ -5076,7 +5077,7 @@ function yl(t) {
5076
5077
  return e;
5077
5078
  return null;
5078
5079
  }
5079
- const { processGraphData: wl } = Pr, { getFieldsToRetrieve: vl } = ii, bl = (t) => {
5080
+ const { processGraphData: vl } = Pr, { getFieldsToRetrieve: bl } = ii, Cl = (t) => {
5080
5081
  const {
5081
5082
  model: e,
5082
5083
  domain: r = [],
@@ -5091,10 +5092,10 @@ const { processGraphData: wl } = Pr, { getFieldsToRetrieve: vl } = ii, bl = (t)
5091
5092
  u(!0), f(void 0);
5092
5093
  const T = $n(o);
5093
5094
  w(T.type || "line");
5094
- const I = vl({ ooui: T });
5095
+ const I = bl({ ooui: T });
5095
5096
  let C, O;
5096
5097
  try {
5097
- ({ values: C, fields: O } = await xl({
5098
+ ({ values: C, fields: O } = await Sl({
5098
5099
  model: e,
5099
5100
  domain: r,
5100
5101
  context: i,
@@ -5113,7 +5114,7 @@ const { processGraphData: wl } = Pr, { getFieldsToRetrieve: vl } = ii, bl = (t)
5113
5114
  return;
5114
5115
  }
5115
5116
  p(C);
5116
- const _ = wl({
5117
+ const _ = vl({
5117
5118
  ooui: T,
5118
5119
  values: C,
5119
5120
  fields: O,
@@ -5136,7 +5137,7 @@ const { processGraphData: wl } = Pr, { getFieldsToRetrieve: vl } = ii, bl = (t)
5136
5137
  evaluatedEntries: h
5137
5138
  };
5138
5139
  };
5139
- async function Cl({
5140
+ async function xl({
5140
5141
  model: t,
5141
5142
  context: e,
5142
5143
  fields: r
@@ -5147,7 +5148,7 @@ async function Cl({
5147
5148
  fields: r
5148
5149
  });
5149
5150
  }
5150
- async function xl({
5151
+ async function Sl({
5151
5152
  fields: t,
5152
5153
  model: e,
5153
5154
  domain: r,
@@ -5156,7 +5157,7 @@ async function xl({
5156
5157
  limit: s,
5157
5158
  manualIds: a
5158
5159
  }) {
5159
- const l = await Cl({ model: e, context: i, fields: t });
5160
+ const l = await xl({ model: e, context: i, fields: t });
5160
5161
  if (a) {
5161
5162
  let u = await D.getHandler().readObjects({
5162
5163
  model: e,
@@ -5181,13 +5182,13 @@ async function xl({
5181
5182
  fields: l
5182
5183
  };
5183
5184
  }
5184
- const Sl = {
5185
+ const Tl = {
5185
5186
  line: xi,
5186
5187
  bar: Si,
5187
5188
  pie: Ti
5188
- }, Tl = (t) => {
5189
+ }, Fl = (t) => {
5189
5190
  var w;
5190
- const { model: e, domain: r, context: i, xml: o, limit: s, manualIds: a } = t, { t: l } = H(he), { error: d, loading: u, values: c, type: f, evaluatedEntries: m } = bl({
5191
+ const { model: e, domain: r, context: i, xml: o, limit: s, manualIds: a } = t, { t: l } = H(he), { error: d, loading: u, values: c, type: f, evaluatedEntries: m } = Cl({
5191
5192
  model: e,
5192
5193
  xml: o,
5193
5194
  limit: s,
@@ -5202,7 +5203,7 @@ const Sl = {
5202
5203
  return /* @__PURE__ */ n(Ae, {});
5203
5204
  if (!c)
5204
5205
  return /* @__PURE__ */ n(et, { message: "No data to display", type: "info" });
5205
- const { data: g, isGroup: h, isStack: p } = c, y = Sl[f];
5206
+ const { data: g, isGroup: h, isStack: p } = c, y = Tl[f];
5206
5207
  return y ? /* @__PURE__ */ V("div", { style: { padding: "1rem" }, children: [
5207
5208
  /* @__PURE__ */ n("p", { style: { textAlign: "right" }, children: `${l("totalRegisters")} ${(w = m == null ? void 0 : m.length) == null ? void 0 : w.toLocaleString(
5208
5209
  "es-ES",
@@ -5213,7 +5214,7 @@ const Sl = {
5213
5214
  /* @__PURE__ */ n(
5214
5215
  y,
5215
5216
  {
5216
- ...Fl({
5217
+ ...Il({
5217
5218
  type: f,
5218
5219
  data: g,
5219
5220
  isGroup: h,
@@ -5223,12 +5224,12 @@ const Sl = {
5223
5224
  )
5224
5225
  ] }) : /* @__PURE__ */ n(Q, { children: `Unknown graph type: ${f}` });
5225
5226
  };
5226
- function Fl(t) {
5227
+ function Il(t) {
5227
5228
  const { type: e, data: r, isGroup: i, isStack: o } = t;
5228
5229
  let s = Ir[e];
5229
5230
  return s || (s = Ir.default), s.data = r, e === "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;
5230
5231
  }
5231
- const Il = (t, e) => {
5232
+ const Ol = (t, e) => {
5232
5233
  const { view_id: r, model: i, context: o, domain: s, limit: a, manualIds: l } = t, [d, u] = b(!1), [c, f] = b(), [m, g] = b(), h = H(
5233
5234
  rt
5234
5235
  ), { setGraphIsLoading: p = void 0 } = h || {};
@@ -5281,7 +5282,7 @@ const Il = (t, e) => {
5281
5282
  operator: w.operator
5282
5283
  } : {};
5283
5284
  return /* @__PURE__ */ n(
5284
- ul,
5285
+ fl,
5285
5286
  {
5286
5287
  showPercent: w.showPercent,
5287
5288
  totalDomain: w.totalDomain,
@@ -5300,7 +5301,7 @@ const Il = (t, e) => {
5300
5301
  case "bar":
5301
5302
  case "pie":
5302
5303
  return /* @__PURE__ */ n(
5303
- Tl,
5304
+ Fl,
5304
5305
  {
5305
5306
  model: i,
5306
5307
  context: o,
@@ -5313,8 +5314,8 @@ const Il = (t, e) => {
5313
5314
  default:
5314
5315
  return /* @__PURE__ */ n(Q, { children: `Graph ${c.type} not implemented` });
5315
5316
  }
5316
- }, gn = vt(Il), { confirm: Ol } = Je, _l = ({ onOk: t, lang: e }) => {
5317
- Ol({
5317
+ }, gn = vt(Ol), { confirm: _l } = Je, Rl = ({ onOk: t, lang: e }) => {
5318
+ _l({
5318
5319
  title: Ie("removeItems", e),
5319
5320
  icon: /* @__PURE__ */ n(pt, {}),
5320
5321
  centered: !0,
@@ -5323,8 +5324,8 @@ const Il = (t, e) => {
5323
5324
  onOk: t,
5324
5325
  cancelText: Ie("cancel", e)
5325
5326
  });
5326
- }, { confirm: Rl } = Je, Vl = ({ onOk: t, lang: e }) => {
5327
- Rl({
5327
+ }, { confirm: Vl } = Je, Al = ({ onOk: t, lang: e }) => {
5328
+ Vl({
5328
5329
  title: Ie("unlinkItems", e),
5329
5330
  icon: /* @__PURE__ */ n(pt, {}),
5330
5331
  centered: !0,
@@ -5333,7 +5334,7 @@ const Il = (t, e) => {
5333
5334
  onOk: t,
5334
5335
  cancelText: Ie("cancel", e)
5335
5336
  });
5336
- }, { useToken: Al } = Pe, Dl = (t) => {
5337
+ }, { useToken: Dl } = Pe, kl = (t) => {
5337
5338
  const {
5338
5339
  title: e,
5339
5340
  readOnly: r,
@@ -5350,7 +5351,7 @@ const Il = (t, e) => {
5350
5351
  selectedRowKeys: g,
5351
5352
  showCreateButton: h,
5352
5353
  showToggleButton: p
5353
- } = t, { token: y } = Al();
5354
+ } = t, { token: y } = Dl();
5354
5355
  function w() {
5355
5356
  return /* @__PURE__ */ n("div", { className: "inline-block w-3" });
5356
5357
  }
@@ -5445,19 +5446,19 @@ const Il = (t, e) => {
5445
5446
  )
5446
5447
  ] })
5447
5448
  ] });
5448
- }, kl = {
5449
+ }, El = {
5449
5450
  form: Mr,
5450
5451
  tree: kr,
5451
5452
  graph: gn
5452
5453
  };
5453
- function El(t) {
5454
+ function Ml(t) {
5454
5455
  const e = t.map((i) => i.id);
5455
5456
  return t.filter((i, o) => {
5456
5457
  const { id: s } = i;
5457
5458
  return !e.includes(s, o + 1);
5458
5459
  });
5459
5460
  }
5460
- const Ml = (t) => {
5461
+ const Nl = (t) => {
5461
5462
  var Ke;
5462
5463
  const { value: e, onChange: r, ooui: i, views: o } = t, { items: s = [] } = e || {}, { currentView: a, setCurrentView: l, itemIndex: d, setItemIndex: u } = H(
5463
5464
  xo
@@ -5486,7 +5487,7 @@ const Ml = (t) => {
5486
5487
  var se, Se;
5487
5488
  r == null || r({
5488
5489
  fields: ((se = o.get("form")) == null ? void 0 : se.fields) || ((Se = o.get("tree")) == null ? void 0 : Se.fields),
5489
- items: El(z)
5490
+ items: Ml(z)
5490
5491
  });
5491
5492
  }, je = async () => {
5492
5493
  await ke(), d > J.length - 1 && d !== 0 && u(0);
@@ -5571,7 +5572,7 @@ const Ml = (t) => {
5571
5572
  }) : z();
5572
5573
  }, Me = () => {
5573
5574
  if (le) {
5574
- Vl({
5575
+ Al({
5575
5576
  lang: y,
5576
5577
  onOk: () => {
5577
5578
  a === "form" ? xe() : Ve();
@@ -5579,7 +5580,7 @@ const Ml = (t) => {
5579
5580
  });
5580
5581
  return;
5581
5582
  }
5582
- _l({
5583
+ Rl({
5583
5584
  lang: y,
5584
5585
  onOk: () => {
5585
5586
  a === "form" ? xe() : Ve();
@@ -5642,7 +5643,7 @@ const Ml = (t) => {
5642
5643
  treeValues: { ...Se, id: z }
5643
5644
  } : _e);
5644
5645
  else {
5645
- const _e = _s(s);
5646
+ const _e = Rs(s);
5646
5647
  Te = s.concat({
5647
5648
  id: _e,
5648
5649
  operation: "pendingCreate",
@@ -5687,7 +5688,7 @@ const Ml = (t) => {
5687
5688
  }
5688
5689
  };
5689
5690
  function Ue() {
5690
- const z = kl[a];
5691
+ const z = El[a];
5691
5692
  if (a === "graph")
5692
5693
  return $n(o.get("graph").arch).string;
5693
5694
  {
@@ -5769,7 +5770,7 @@ const Ml = (t) => {
5769
5770
  const ot = N;
5770
5771
  return C ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ V(Q, { children: [
5771
5772
  /* @__PURE__ */ n(
5772
- Dl,
5773
+ kl,
5773
5774
  {
5774
5775
  mode: a,
5775
5776
  title: Ue(),
@@ -5825,7 +5826,7 @@ const Ml = (t) => {
5825
5826
  }
5826
5827
  )
5827
5828
  ] });
5828
- }, Nl = (t) => {
5829
+ }, Pl = (t) => {
5829
5830
  const { ooui: e } = t, { mode: r, relation: i, views: o, required: s, context: a } = e;
5830
5831
  let l;
5831
5832
  const [d, u] = b(!0), [c, f] = b(), [m, g] = b(/* @__PURE__ */ new Map()), h = H(Ne), { getContext: p } = h || {};
@@ -5855,7 +5856,7 @@ const Ml = (t) => {
5855
5856
  u(!1);
5856
5857
  }
5857
5858
  };
5858
- return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(Ae, {}) : c ? /* @__PURE__ */ n(et, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ n(dl, { initialView: l, children: /* @__PURE__ */ n(
5859
+ return r && r.length > 0 ? l = r[0] : l = "tree", d ? /* @__PURE__ */ n(Ae, {}) : c ? /* @__PURE__ */ n(et, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ n(ul, { initialView: l, children: /* @__PURE__ */ n(
5859
5860
  ge,
5860
5861
  {
5861
5862
  required: s,
@@ -5871,14 +5872,14 @@ const Ml = (t) => {
5871
5872
  throw new Error();
5872
5873
  },
5873
5874
  ...t,
5874
- children: /* @__PURE__ */ n(Ml, { ooui: e, views: m })
5875
+ children: /* @__PURE__ */ n(Nl, { ooui: e, views: m })
5875
5876
  }
5876
5877
  ) });
5877
- }, { useToken: Pl } = Pe, Ll = (t) => {
5878
+ }, { useToken: Ll } = Pe, Bl = (t) => {
5878
5879
  const { ooui: e } = t, { required: r } = e;
5879
- return /* @__PURE__ */ n(ge, { required: r, type: "number", ...t, children: /* @__PURE__ */ n(Bl, { ooui: e }) });
5880
- }, Bl = (t) => {
5881
- const { ooui: e, value: r, onChange: i } = t, { id: o, readOnly: s, required: a } = e, { token: l } = Pl(), d = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(), [c, f] = b(), m = H(Ne), { elementHasLostFocus: g } = m || {};
5880
+ return /* @__PURE__ */ n(ge, { required: r, type: "number", ...t, children: /* @__PURE__ */ n($l, { ooui: e }) });
5881
+ }, $l = (t) => {
5882
+ const { ooui: e, value: r, onChange: i } = t, { id: o, readOnly: s, required: a } = e, { token: l } = Ll(), d = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(), [c, f] = b(), m = H(Ne), { elementHasLostFocus: g } = m || {};
5882
5883
  me(() => {
5883
5884
  f(po(r));
5884
5885
  }, [r]);
@@ -5889,7 +5890,7 @@ const Ml = (t) => {
5889
5890
  u.current = w.target.value, f(w.target.value);
5890
5891
  }
5891
5892
  async function y() {
5892
- h(Na(c)), await new Promise((w) => setTimeout(w, 300)), g == null || g();
5893
+ h(Pa(c)), await new Promise((w) => setTimeout(w, 300)), g == null || g();
5893
5894
  }
5894
5895
  return /* @__PURE__ */ n(
5895
5896
  it,
@@ -5921,8 +5922,8 @@ function To(t) {
5921
5922
  }
5922
5923
  ) });
5923
5924
  }
5924
- const { TabPane: $l } = Dr;
5925
- function Hl(t) {
5925
+ const { TabPane: Hl } = Dr;
5926
+ function Kl(t) {
5926
5927
  const { ooui: e, responsiveBehaviour: r } = t, i = e.pages;
5927
5928
  function o(s) {
5928
5929
  if (s) {
@@ -5931,7 +5932,7 @@ function Hl(t) {
5931
5932
  }
5932
5933
  }
5933
5934
  return /* @__PURE__ */ n(Dr, { defaultActiveKey: "1", tabPosition: e.tabPosition, children: i.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ n(
5934
- $l,
5935
+ Hl,
5935
5936
  {
5936
5937
  tab: /* @__PURE__ */ V(Q, { children: [
5937
5938
  o(s.icon),
@@ -5950,10 +5951,10 @@ function Hl(t) {
5950
5951
  s.label
5951
5952
  )) });
5952
5953
  }
5953
- const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
5954
- const { ooui: e } = t, { id: r, readOnly: i, required: o, height: s, translatable: a } = e, { token: l } = Kl(), d = o && !i ? { backgroundColor: l.colorPrimaryBg } : void 0, u = H(Ne), { elementHasLostFocus: c } = u || {};
5954
+ const { useToken: Wl } = Pe, { TextArea: kn } = it, jl = (t) => {
5955
+ const { ooui: e } = t, { id: r, readOnly: i, required: o, height: s, translatable: a } = e, { token: l } = Wl(), d = o && !i ? { backgroundColor: l.colorPrimaryBg } : void 0, u = H(Ne), { elementHasLostFocus: c } = u || {};
5955
5956
  return /* @__PURE__ */ n(ge, { required: o, ...t, children: a ? /* @__PURE__ */ n(
5956
- jl,
5957
+ Yl,
5957
5958
  {
5958
5959
  field: r,
5959
5960
  height: s,
@@ -5971,7 +5972,7 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
5971
5972
  onBlur: c
5972
5973
  }
5973
5974
  ) });
5974
- }, jl = ({
5975
+ }, Yl = ({
5975
5976
  value: t,
5976
5977
  field: e,
5977
5978
  requiredStyle: r,
@@ -6061,13 +6062,13 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6061
6062
  }
6062
6063
  ) })
6063
6064
  ] });
6064
- }, Yl = (t) => {
6065
+ }, Gl = (t) => {
6065
6066
  const { ooui: e } = t, { label: r, icon: i } = e, o = ct(i || "");
6066
6067
  return /* @__PURE__ */ n(cn, { orientation: "left", className: "text-sm", children: (o || r) && /* @__PURE__ */ V(We, { children: [
6067
6068
  o ? /* @__PURE__ */ n(o, {}) : null,
6068
6069
  r
6069
6070
  ] }) });
6070
- }, Gl = ({
6071
+ }, Ul = ({
6071
6072
  model: t,
6072
6073
  context: e,
6073
6074
  locale: r,
@@ -6088,7 +6089,7 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6088
6089
  ]);
6089
6090
  const { datas: T } = await D.getHandler().exportData({
6090
6091
  model: t,
6091
- fields: Xl({
6092
+ fields: Ql({
6092
6093
  keys: y.selectedKeys,
6093
6094
  fields: l.current
6094
6095
  }),
@@ -6117,7 +6118,7 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6117
6118
  fields: []
6118
6119
  });
6119
6120
  for (const [O, _] of Object.entries(C))
6120
- C[O].string = ql({
6121
+ C[O].string = zl({
6121
6122
  parentTitle: T.string,
6122
6123
  title: _.string
6123
6124
  });
@@ -6128,7 +6129,7 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6128
6129
  },
6129
6130
  [l.current, t, e]
6130
6131
  ), m = De(async () => {
6131
- const y = await zl({ model: t, context: e }), w = await Zl({
6132
+ const y = await Jl({ model: t, context: e }), w = await Xl({
6132
6133
  predefinedExports: y,
6133
6134
  fields: l.current,
6134
6135
  onGetFieldChilds: f
@@ -6210,7 +6211,7 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6210
6211
  continue;
6211
6212
  const s = Fo(o);
6212
6213
  r.push({
6213
- key: Ul({ key: i, parentKey: e }),
6214
+ key: ql({ key: i, parentKey: e }),
6214
6215
  title: o.string,
6215
6216
  tooltip: o.help,
6216
6217
  required: o.required,
@@ -6218,7 +6219,7 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6218
6219
  });
6219
6220
  }
6220
6221
  return r;
6221
- }, Fo = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", Ul = ({
6222
+ }, Fo = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", ql = ({
6222
6223
  parentKey: t,
6223
6224
  key: e
6224
6225
  }) => `${t ? t + "/" : ""}${e}`, $t = (t) => t.indexOf("/") === -1 ? t : t.split("/").slice(0, -1).join("/"), En = (t) => {
@@ -6226,10 +6227,10 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6226
6227
  return t;
6227
6228
  const e = t.split("/");
6228
6229
  return e[e.length - 1];
6229
- }, Mn = (t, e) => t.indexOf("/") === -1 ? e["/"] : e[$t(t)], ql = ({
6230
+ }, Mn = (t, e) => t.indexOf("/") === -1 ? e["/"] : e[$t(t)], zl = ({
6230
6231
  title: t,
6231
6232
  parentTitle: e
6232
- }) => `${e ? e + " → " : ""}${t}`, zl = async ({
6233
+ }) => `${e ? e + " → " : ""}${t}`, Jl = async ({
6233
6234
  model: t,
6234
6235
  context: e
6235
6236
  }) => {
@@ -6249,10 +6250,10 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6249
6250
  key: o.find((d) => d.id === a).name
6250
6251
  }))
6251
6252
  }));
6252
- }, Jl = ({
6253
+ }, Zl = ({
6253
6254
  fields: t,
6254
6255
  keys: e
6255
- }) => Ql([
6256
+ }) => ec([
6256
6257
  ...new Set(
6257
6258
  e.filter((r) => {
6258
6259
  var i, o, s;
@@ -6266,27 +6267,27 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6266
6267
  }
6267
6268
  }).map((r) => $t(r))
6268
6269
  )
6269
- ]), Zl = async ({
6270
+ ]), Xl = async ({
6270
6271
  predefinedExports: t,
6271
6272
  fields: e,
6272
6273
  onGetFieldChilds: r
6273
6274
  }) => {
6274
6275
  const i = t.flatMap(
6275
6276
  (a) => a.fields.map((l) => l.key)
6276
- ), o = Jl({
6277
+ ), o = Zl({
6277
6278
  fields: e,
6278
6279
  keys: i
6279
6280
  }), s = [];
6280
6281
  for (const a of o)
6281
6282
  s.push({ key: a, childs: await r(a) });
6282
6283
  return s;
6283
- }, Xl = ({
6284
+ }, Ql = ({
6284
6285
  keys: t,
6285
6286
  fields: e
6286
6287
  }) => t.map((r) => {
6287
6288
  const i = En(r), s = Mn(r, e)[i];
6288
6289
  return Fo(s) ? `${r}/id` : r;
6289
- }), Ql = (t) => {
6290
+ }), ec = (t) => {
6290
6291
  const e = /* @__PURE__ */ new Map(), r = [];
6291
6292
  for (const i of t) {
6292
6293
  const o = i.split("/");
@@ -6300,7 +6301,7 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6300
6301
  const s = i.split("/").length, a = o.split("/").length;
6301
6302
  return s - a;
6302
6303
  }), r;
6303
- }, ec = (t) => {
6304
+ }, tc = (t) => {
6304
6305
  const {
6305
6306
  visible: e,
6306
6307
  locale: r,
@@ -6319,7 +6320,7 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6319
6320
  onGetPredefinedExports: h,
6320
6321
  onSavePredefinedExport: p,
6321
6322
  onRemovePredefinedExport: y
6322
- } = Gl({
6323
+ } = Ul({
6323
6324
  model: o,
6324
6325
  context: s,
6325
6326
  domain: d,
@@ -6345,18 +6346,18 @@ const { useToken: Kl } = Pe, { TextArea: kn } = it, Wl = (t) => {
6345
6346
  onRemovePredefinedExport: y
6346
6347
  }
6347
6348
  );
6348
- }, tc = (t) => {
6349
+ }, nc = (t) => {
6349
6350
  const { ooui: e } = t;
6350
6351
  return /* @__PURE__ */ n(yo, { ooui: e });
6351
- }, nc = (t) => {
6352
+ }, rc = (t) => {
6352
6353
  const { ooui: e } = t;
6353
6354
  return /* @__PURE__ */ n(yo, { ooui: e, showTime: !0 });
6354
6355
  };
6355
6356
  at.extend(Mi);
6356
- const rc = (t) => {
6357
+ const oc = (t) => {
6357
6358
  const { ooui: e } = t;
6358
- return /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(oc, { ooui: e }) });
6359
- }, oc = (t) => /* @__PURE__ */ n(
6359
+ return /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(ic, { ooui: e }) });
6360
+ }, ic = (t) => /* @__PURE__ */ n(
6360
6361
  Vr,
6361
6362
  {
6362
6363
  onChange: (r, i) => {
@@ -6364,10 +6365,10 @@ const rc = (t) => {
6364
6365
  },
6365
6366
  value: t.value ? at(t.value, "HH:mm:ss") : void 0
6366
6367
  }
6367
- ), ic = (t) => {
6368
+ ), sc = (t) => {
6368
6369
  const { ooui: e } = t, { required: r } = e;
6369
- return /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(sc, { ooui: e }) });
6370
- }, sc = (t) => {
6370
+ return /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(ac, { ooui: e }) });
6371
+ }, ac = (t) => {
6371
6372
  const { value: e, onChange: r, ooui: i } = t, { required: o, selectionValues: s, readOnly: a } = i, l = e == null ? void 0 : e.split(","), [d, u] = b([]), [c, f] = b();
6372
6373
  return me(() => {
6373
6374
  if (!e) {
@@ -6414,11 +6415,11 @@ const rc = (t) => {
6414
6415
  }
6415
6416
  ) })
6416
6417
  ] });
6417
- }, { useToken: ac } = Pe, lc = (t) => {
6418
+ }, { useToken: lc } = Pe, cc = (t) => {
6418
6419
  const { ooui: e } = t, { required: r } = e;
6419
- return /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(cc, { ooui: e }) });
6420
- }, cc = (t) => {
6421
- const { ooui: e, value: r, onChange: i } = t, { readOnly: o, required: s, filenameField: a } = e, { token: l } = ac(), d = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(null), { setFieldValue: c, getFieldValue: f } = H(Ne) || {}, { t: m } = H(he), g = r ? Cs(r) : "", h = (I) => {
6420
+ return /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(dc, { ooui: e }) });
6421
+ }, dc = (t) => {
6422
+ const { ooui: e, value: r, onChange: i } = t, { readOnly: o, required: s, filenameField: a } = e, { token: l } = lc(), d = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = de(null), { setFieldValue: c, getFieldValue: f } = H(Ne) || {}, { t: m } = H(he), g = r ? xs(r) : "", h = (I) => {
6422
6423
  i == null || i(I);
6423
6424
  };
6424
6425
  async function p() {
@@ -6664,12 +6665,12 @@ function Io(t) {
6664
6665
  }
6665
6666
  );
6666
6667
  }
6667
- const { confirm: dc } = Je, uc = ({
6668
+ const { confirm: uc } = Je, fc = ({
6668
6669
  onOk: t,
6669
6670
  onCancel: e,
6670
6671
  lang: r
6671
6672
  }) => {
6672
- dc({
6673
+ uc({
6673
6674
  title: Ie("unsavedChanges", r),
6674
6675
  icon: /* @__PURE__ */ n(pt, {}),
6675
6676
  centered: !0,
@@ -6703,7 +6704,7 @@ async function Oo(t, e, r) {
6703
6704
  ] })
6704
6705
  );
6705
6706
  }
6706
- const fc = (t) => {
6707
+ const mc = (t) => {
6707
6708
  const { numberOfAttachments: e, disabled: r } = t, { t: i, lang: o } = H(he), [s, a] = b(!1), l = /* @__PURE__ */ V(Oe, { disabled: r, children: [
6708
6709
  /* @__PURE__ */ n(Ur, {}),
6709
6710
  `(${e})`,
@@ -6715,13 +6716,13 @@ const fc = (t) => {
6715
6716
  onVisibleChange: (d) => a(d),
6716
6717
  visible: s,
6717
6718
  placement: "bottom",
6718
- content: mc(t, a, o),
6719
+ content: hc(t, a, o),
6719
6720
  title: i("attachments"),
6720
6721
  arrowContent: null,
6721
6722
  children: l
6722
6723
  }
6723
6724
  );
6724
- }, mc = (t, e, r) => {
6725
+ }, hc = (t, e, r) => {
6725
6726
  const {
6726
6727
  attachments: i = [],
6727
6728
  loading: o,
@@ -6805,7 +6806,7 @@ const fc = (t) => {
6805
6806
  ] })
6806
6807
  ] });
6807
6808
  };
6808
- function hc(t) {
6809
+ function pc(t) {
6809
6810
  const {
6810
6811
  attachments: e,
6811
6812
  disabled: r = !1,
@@ -6862,7 +6863,7 @@ function hc(t) {
6862
6863
  h();
6863
6864
  }, [h]), /* @__PURE__ */ V(Q, { children: [
6864
6865
  /* @__PURE__ */ n(
6865
- fc,
6866
+ mc,
6866
6867
  {
6867
6868
  numberOfAttachments: e.length,
6868
6869
  attachments: u,
@@ -6888,7 +6889,7 @@ function hc(t) {
6888
6889
  )
6889
6890
  ] });
6890
6891
  }
6891
- function pc({ toolbar: t }) {
6892
+ function gc({ toolbar: t }) {
6892
6893
  const {
6893
6894
  availableViews: e,
6894
6895
  currentView: r,
@@ -6921,7 +6922,7 @@ function pc({ toolbar: t }) {
6921
6922
  ), { openRelate: M, openDefaultActionForModel: j } = P || {};
6922
6923
  function N(k) {
6923
6924
  if (s) {
6924
- uc({
6925
+ fc({
6925
6926
  lang: F,
6926
6927
  onOk: () => {
6927
6928
  k();
@@ -7170,7 +7171,7 @@ function pc({ toolbar: t }) {
7170
7171
  }
7171
7172
  ),
7172
7173
  /* @__PURE__ */ n(
7173
- hc,
7174
+ pc,
7174
7175
  {
7175
7176
  disabled: Y,
7176
7177
  attachments: I,
@@ -7231,8 +7232,8 @@ async function Ft({
7231
7232
  const e = await (t == null ? void 0 : t());
7232
7233
  return e != null && e.succeed ? { succeed: !0, currentId: e.id } : { succeed: !1, currentId: void 0 };
7233
7234
  }
7234
- const { useToken: gc } = Pe, _o = (t) => {
7235
- const { ooui: e, value: r, onChange: i, valueValidator: o, linkPrefix: s = "" } = t, { id: a, readOnly: l, required: d } = e, { token: u } = gc(), c = d && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, f = H(Ne), { elementHasLostFocus: m } = f || {}, [g, h] = b(!1), [p, y] = b(!1);
7235
+ const { useToken: yc } = Pe, _o = (t) => {
7236
+ const { ooui: e, value: r, onChange: i, valueValidator: o, linkPrefix: s = "" } = t, { id: a, readOnly: l, required: d } = e, { token: u } = yc(), c = d && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, f = H(Ne), { elementHasLostFocus: m } = f || {}, [g, h] = b(!1), [p, y] = b(!1);
7236
7237
  me(() => {
7237
7238
  l && !g && y(!1), !r && !l && (h(!0), y(!0));
7238
7239
  }, [g, l]);
@@ -7287,7 +7288,7 @@ const { useToken: gc } = Pe, _o = (t) => {
7287
7288
  }
7288
7289
  ) })
7289
7290
  ] });
7290
- }, yc = (t) => {
7291
+ }, wc = (t) => {
7291
7292
  const { ooui: e } = t, { required: r } = e;
7292
7293
  return /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(
7293
7294
  _o,
@@ -7296,7 +7297,7 @@ const { useToken: gc } = Pe, _o = (t) => {
7296
7297
  valueValidator: (i) => i ? Ni(i) : !1
7297
7298
  }
7298
7299
  ) });
7299
- }, wc = (t) => {
7300
+ }, vc = (t) => {
7300
7301
  const { ooui: e } = t, { required: r } = e;
7301
7302
  return /* @__PURE__ */ n(ge, { required: r, ...t, children: /* @__PURE__ */ n(
7302
7303
  _o,
@@ -7306,7 +7307,7 @@ const { useToken: gc } = Pe, _o = (t) => {
7306
7307
  valueValidator: (i) => i ? Pi(i) : !1
7307
7308
  }
7308
7309
  ) });
7309
- }, vc = (t) => {
7310
+ }, bc = (t) => {
7310
7311
  const { visible: e, onIdSubmitted: r, onCancel: i, isSearching: o } = t, { t: s } = H(he), a = de();
7311
7312
  function l(d) {
7312
7313
  r(d.id);
@@ -7374,9 +7375,9 @@ const { useToken: gc } = Pe, _o = (t) => {
7374
7375
  ] })
7375
7376
  }
7376
7377
  );
7377
- }, { useToken: bc } = Pe;
7378
+ }, { useToken: Cc } = Pe;
7378
7379
  function Ro(t) {
7379
- const { badgeNumber: e = 0, ...r } = t, { token: i } = bc();
7380
+ const { badgeNumber: e = 0, ...r } = t, { token: i } = Cc();
7380
7381
  return /* @__PURE__ */ V("div", { style: { position: "relative" }, children: [
7381
7382
  e > 0 && /* @__PURE__ */ n("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ n(
7382
7383
  "span",
@@ -7403,7 +7404,7 @@ function Ro(t) {
7403
7404
  )
7404
7405
  ] });
7405
7406
  }
7406
- function Cc({ refreshGraph: t }) {
7407
+ function xc({ refreshGraph: t }) {
7407
7408
  const { t: e } = H(he), {
7408
7409
  availableViews: r,
7409
7410
  currentView: i,
@@ -7460,7 +7461,7 @@ function Cc({ refreshGraph: t }) {
7460
7461
  )
7461
7462
  ] });
7462
7463
  }
7463
- const { useToken: xc } = Pe, { Title: Sc, Text: en } = Yt;
7464
+ const { useToken: Sc } = Pe, { Title: Tc, Text: en } = Yt;
7464
7465
  function yn(t) {
7465
7466
  const { title: e, children: r } = t, {
7466
7467
  title: i,
@@ -7470,7 +7471,7 @@ function yn(t) {
7470
7471
  results: l,
7471
7472
  totalItems: d,
7472
7473
  selectedRowItems: u
7473
- } = H(rt), { t: c } = H(he), { token: f } = xc();
7474
+ } = H(rt), { t: c } = H(he), { token: f } = Sc();
7474
7475
  function m() {
7475
7476
  if ((o == null ? void 0 : o.type) === "form")
7476
7477
  return s ? d === 0 ? /* @__PURE__ */ V(Q, { children: [
@@ -7543,7 +7544,7 @@ function yn(t) {
7543
7544
  align: "middle",
7544
7545
  children: [
7545
7546
  /* @__PURE__ */ V(ae, { flex: 2, children: [
7546
- /* @__PURE__ */ n(Sc, { level: 3, style: { marginBottom: 0 }, children: e || i }),
7547
+ /* @__PURE__ */ n(Tc, { level: 3, style: { marginBottom: 0 }, children: e || i }),
7547
7548
  m()
7548
7549
  ] }),
7549
7550
  /* @__PURE__ */ n(ae, { flex: 3, children: /* @__PURE__ */ n(ve, { justify: "end", children: r }) })
@@ -7553,7 +7554,7 @@ function yn(t) {
7553
7554
  /* @__PURE__ */ n("div", { className: "pb-5" })
7554
7555
  ] });
7555
7556
  }
7556
- const Tc = (t) => {
7557
+ const Fc = (t) => {
7557
7558
  const { viewData: e, visible: r, model: i, context: o, domain: s, formView: a, treeView: l } = t, d = de(), u = H(
7558
7559
  rt
7559
7560
  ), {
@@ -7608,7 +7609,7 @@ const Tc = (t) => {
7608
7609
  });
7609
7610
  return !r || !e ? null : /* @__PURE__ */ V(Q, { children: [
7610
7611
  /* @__PURE__ */ n(yn, { title: e.name, children: /* @__PURE__ */ n(
7611
- Cc,
7612
+ xc,
7612
7613
  {
7613
7614
  refreshGraph: () => {
7614
7615
  d.current.refresh();
@@ -7649,7 +7650,7 @@ const Tc = (t) => {
7649
7650
  }
7650
7651
  )
7651
7652
  ] });
7652
- }, Fc = (t) => {
7653
+ }, Ic = (t) => {
7653
7654
  const {
7654
7655
  visible: e,
7655
7656
  formRef: r,
@@ -7665,7 +7666,7 @@ const Tc = (t) => {
7665
7666
  setCurrentItemIndex: m
7666
7667
  } = t;
7667
7668
  return e ? /* @__PURE__ */ V(Q, { children: [
7668
- /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(pc, { toolbar: a == null ? void 0 : a.toolbar }) }),
7669
+ /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(gc, { toolbar: a == null ? void 0 : a.toolbar }) }),
7669
7670
  /* @__PURE__ */ n(
7670
7671
  Jt,
7671
7672
  {
@@ -7685,7 +7686,7 @@ const Tc = (t) => {
7685
7686
  )
7686
7687
  ] }) : null;
7687
7688
  };
7688
- function Ic(t) {
7689
+ function Oc(t) {
7689
7690
  const { onSearch: e, disabled: r = !1, searchText: i } = t, { t: o } = H(he), [s] = lt.useForm(), [a, l] = b(!1);
7690
7691
  function d(c) {
7691
7692
  e(c.search);
@@ -7726,10 +7727,10 @@ function Ic(t) {
7726
7727
  ) })
7727
7728
  ] }) });
7728
7729
  }
7729
- const Oc = Qe.createContext({
7730
+ const _c = Qe.createContext({
7730
7731
  previewFeatures: !1
7731
7732
  });
7732
- function _c(t) {
7733
+ function Rc(t) {
7733
7734
  var X;
7734
7735
  const {
7735
7736
  availableViews: e,
@@ -7756,7 +7757,7 @@ function _c(t) {
7756
7757
  limit: _,
7757
7758
  totalItems: A
7758
7759
  } = H(rt), { parentContext: x = {}, treeExpandable: S, toolbar: F } = t;
7759
- H(Oc);
7760
+ H(_c);
7760
7761
  const { t: v, lang: E } = H(he), P = H(
7761
7762
  Pt
7762
7763
  ), { processAction: M } = P || {}, [j, N] = b(!1), B = w !== void 0 && w.trim().length > 0;
@@ -7825,7 +7826,7 @@ function _c(t) {
7825
7826
  ] }),
7826
7827
  S ? null : /* @__PURE__ */ V(Q, { children: [
7827
7828
  /* @__PURE__ */ n(
7828
- Ic,
7829
+ Oc,
7829
7830
  {
7830
7831
  disabled: l || a || T,
7831
7832
  searchText: w,
@@ -8009,7 +8010,7 @@ function _c(t) {
8009
8010
  }
8010
8011
  ),
8011
8012
  /* @__PURE__ */ n(
8012
- ec,
8013
+ tc,
8013
8014
  {
8014
8015
  visible: j,
8015
8016
  locale: E,
@@ -8031,7 +8032,7 @@ function _c(t) {
8031
8032
  function yt() {
8032
8033
  return /* @__PURE__ */ n("div", { className: "inline-block w-2" });
8033
8034
  }
8034
- const Rc = (t) => {
8035
+ const Vc = (t) => {
8035
8036
  const {
8036
8037
  visible: e,
8037
8038
  searchTreeRef: r,
@@ -8051,7 +8052,7 @@ const Rc = (t) => {
8051
8052
  );
8052
8053
  return e ? /* @__PURE__ */ V(Q, { children: [
8053
8054
  /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(
8054
- _c,
8055
+ Rc,
8055
8056
  {
8056
8057
  toolbar: a == null ? void 0 : a.toolbar,
8057
8058
  parentContext: o,
@@ -8082,7 +8083,7 @@ const Rc = (t) => {
8082
8083
  }
8083
8084
  )
8084
8085
  ] }) : null;
8085
- }, tr = Qe.createContext(null), Vc = (t) => {
8086
+ }, tr = Qe.createContext(null), Ac = (t) => {
8086
8087
  const [e, r] = b(!1), [i, o] = b(!1), { children: s, dashboardRef: a, openAction: l } = t;
8087
8088
  return /* @__PURE__ */ n(
8088
8089
  tr.Provider,
@@ -8099,7 +8100,7 @@ const Rc = (t) => {
8099
8100
  }
8100
8101
  );
8101
8102
  };
8102
- function Ac() {
8103
+ function Dc() {
8103
8104
  const { isLoading: t, dashboardRef: e, moveItemsEnabled: r, setMoveItemsEnabled: i } = H(tr), { t: o } = H(he);
8104
8105
  return /* @__PURE__ */ V(We, { wrap: !0, children: [
8105
8106
  /* @__PURE__ */ n(
@@ -8120,7 +8121,7 @@ function Ac() {
8120
8121
  }
8121
8122
  }
8122
8123
  ),
8123
- Dc(),
8124
+ kc(),
8124
8125
  /* @__PURE__ */ n(
8125
8126
  Ze,
8126
8127
  {
@@ -8147,24 +8148,24 @@ function Ac() {
8147
8148
  )
8148
8149
  ] });
8149
8150
  }
8150
- function Dc() {
8151
+ function kc() {
8151
8152
  return /* @__PURE__ */ n("div", { className: "inline-block w-2" });
8152
8153
  }
8153
- const kc = (t) => {
8154
+ const Ec = (t) => {
8154
8155
  const { dashboardData: e } = t, r = de(), i = H(
8155
8156
  dt
8156
8157
  ), { openShortcut: o } = i || {};
8157
8158
  return e ? /* @__PURE__ */ V(
8158
- Vc,
8159
+ Ac,
8159
8160
  {
8160
8161
  dashboardRef: r,
8161
8162
  openAction: (s) => {
8162
8163
  o(s);
8163
8164
  },
8164
8165
  children: [
8165
- /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(Ac, {}) }),
8166
+ /* @__PURE__ */ n(yn, { children: /* @__PURE__ */ n(Dc, {}) }),
8166
8167
  /* @__PURE__ */ n(
8167
- Gc,
8168
+ Uc,
8168
8169
  {
8169
8170
  ref: r,
8170
8171
  model: e.model,
@@ -8177,7 +8178,7 @@ const kc = (t) => {
8177
8178
  }
8178
8179
  ) : null;
8179
8180
  };
8180
- async function Ec(t) {
8181
+ async function Mc(t) {
8181
8182
  const e = await Promise.all(
8182
8183
  t.map(async (i) => {
8183
8184
  try {
@@ -8192,7 +8193,7 @@ async function Ec(t) {
8192
8193
  info: e[o]
8193
8194
  })).filter((i) => i.info !== null);
8194
8195
  }
8195
- function Mc(t, e) {
8196
+ function Nc(t, e) {
8196
8197
  const {
8197
8198
  domain: r,
8198
8199
  model: i,
@@ -8254,7 +8255,7 @@ function Mc(t, e) {
8254
8255
  viewTuple: ie
8255
8256
  });
8256
8257
  }
8257
- const Ve = await Ec(xe);
8258
+ const Ve = await Mc(xe);
8258
8259
  for (const ie of Ve) {
8259
8260
  if (!ie)
8260
8261
  continue;
@@ -8369,7 +8370,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8369
8370
  switch (Z.type) {
8370
8371
  case "form":
8371
8372
  return /* @__PURE__ */ n(
8372
- Fc,
8373
+ Ic,
8373
8374
  {
8374
8375
  formRef: ee,
8375
8376
  currentId: x,
@@ -8388,7 +8389,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8388
8389
  );
8389
8390
  case "tree":
8390
8391
  return /* @__PURE__ */ n(
8391
- Rc,
8392
+ Vc,
8392
8393
  {
8393
8394
  visible: w.type === Z.type && w.view_id === Z.view_id,
8394
8395
  limit: y,
@@ -8409,7 +8410,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8409
8410
  );
8410
8411
  case "graph":
8411
8412
  return /* @__PURE__ */ n(
8412
- Tc,
8413
+ Fc,
8413
8414
  {
8414
8415
  visible: w.type === Z.type && w.view_id === Z.view_id,
8415
8416
  viewData: Z,
@@ -8423,7 +8424,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8423
8424
  );
8424
8425
  case "dashboard":
8425
8426
  return /* @__PURE__ */ n(
8426
- kc,
8427
+ Ec,
8427
8428
  {
8428
8429
  dashboardData: Z
8429
8430
  },
@@ -8444,7 +8445,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8444
8445
  }
8445
8446
  }
8446
8447
  return O ? /* @__PURE__ */ n(Ae, {}) : w ? /* @__PURE__ */ V(
8447
- ua,
8448
+ fa,
8448
8449
  {
8449
8450
  title: a,
8450
8451
  currentView: w,
@@ -8473,7 +8474,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8473
8474
  children: [
8474
8475
  Me(),
8475
8476
  /* @__PURE__ */ n(
8476
- vc,
8477
+ bc,
8477
8478
  {
8478
8479
  visible: U,
8479
8480
  onIdSubmitted: ye,
@@ -8487,8 +8488,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
8487
8488
  }
8488
8489
  ) : null;
8489
8490
  }
8490
- const Vo = vt(Mc);
8491
- async function Nc({
8491
+ const Vo = vt(Nc);
8492
+ async function Pc({
8492
8493
  actionId: t,
8493
8494
  rootContext: e = {},
8494
8495
  globalValues: r = {}
@@ -8540,7 +8541,7 @@ async function Nc({
8540
8541
  treeExpandable: g
8541
8542
  };
8542
8543
  }
8543
- const Pc = Wi(ji), Lc = (t) => {
8544
+ const Lc = ji(Yi), Bc = (t) => {
8544
8545
  const { children: e = [], onPositionItemsChanged: r } = t, i = Qe.Children.map(
8545
8546
  e,
8546
8547
  (o) => {
@@ -8549,7 +8550,7 @@ const Pc = Wi(ji), Lc = (t) => {
8549
8550
  }
8550
8551
  );
8551
8552
  return /* @__PURE__ */ n(
8552
- Pc,
8553
+ Lc,
8553
8554
  {
8554
8555
  className: "layout",
8555
8556
  cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
@@ -8569,8 +8570,8 @@ const Pc = Wi(ji), Lc = (t) => {
8569
8570
  children: i
8570
8571
  }
8571
8572
  );
8572
- }, { useToken: Bc } = Pe, { Text: $c } = Yt, Hc = (t) => {
8573
- const { title: e, children: r, action: i, openAction: o } = t, { token: s } = Bc();
8573
+ }, { useToken: $c } = Pe, { Text: Hc } = Yt, Kc = (t) => {
8574
+ const { title: e, children: r, action: i, openAction: o } = t, { token: s } = $c();
8574
8575
  return /* @__PURE__ */ V(
8575
8576
  "div",
8576
8577
  {
@@ -8606,7 +8607,7 @@ const Pc = Wi(ji), Lc = (t) => {
8606
8607
  cursor: "grab",
8607
8608
  overflow: "hidden"
8608
8609
  },
8609
- children: /* @__PURE__ */ n($c, { ellipsis: !0, children: e })
8610
+ children: /* @__PURE__ */ n(Hc, { ellipsis: !0, children: e })
8610
8611
  }
8611
8612
  ),
8612
8613
  i && /* @__PURE__ */ n(ae, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ n(ve, { justify: "end", align: "middle", children: /* @__PURE__ */ n(
@@ -8625,8 +8626,8 @@ const Pc = Wi(ji), Lc = (t) => {
8625
8626
  ]
8626
8627
  }
8627
8628
  );
8628
- }, Kc = 80;
8629
- function Wc(t) {
8629
+ }, Wc = 80;
8630
+ function jc(t) {
8630
8631
  const {
8631
8632
  action: e,
8632
8633
  model: r,
@@ -8635,7 +8636,7 @@ function Wc(t) {
8635
8636
  domain: s = [],
8636
8637
  visible: a = !0,
8637
8638
  parentContext: l = {}
8638
- } = t, [d, u] = b(!1), [c, f] = b(!1), [m, g] = b(), [h, p] = b(), [y, w] = b(), [T, I] = b(1), [C, O] = b(0), _ = de(Kc), A = de([]), [x, S] = b(0), [F, v] = b([]), [E, P] = b(void 0), [M, j] = b(), [N, B] = b(), [K, R] = b(), [U, ne] = b(!1), X = de([]), Y = (q) => {
8639
+ } = t, [d, u] = b(!1), [c, f] = b(!1), [m, g] = b(), [h, p] = b(), [y, w] = b(), [T, I] = b(1), [C, O] = b(0), _ = de(Wc), A = de([]), [x, S] = b(0), [F, v] = b([]), [E, P] = b(void 0), [M, j] = b(), [N, B] = b(), [K, R] = b(), [U, ne] = b(!1), X = de([]), Y = (q) => {
8639
8640
  ne(!0), I(q), O((q - 1) * _.current);
8640
8641
  }, G = async () => {
8641
8642
  const q = X.current.length > 0 ? X.current : s, be = Wt(A.current, q), { colors: we } = _t(h), { totalItems: je, results: ke, attrsEvaluated: Le } = await D.getHandler().searchForTree({
@@ -8738,7 +8739,7 @@ function Wc(t) {
8738
8739
  ] });
8739
8740
  return K ? /* @__PURE__ */ n(et, { className: "mt-10", message: K, type: "error", banner: !0 }) : d ? /* @__PURE__ */ n(Ae, { style: { padding: "2rem" } }) : J();
8740
8741
  }
8741
- const jc = (t) => {
8742
+ const Yc = (t) => {
8742
8743
  const { model: e } = t, [r, i] = b();
8743
8744
  me(() => {
8744
8745
  o();
@@ -8753,7 +8754,7 @@ const jc = (t) => {
8753
8754
  }
8754
8755
  return /* @__PURE__ */ n("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ n(Jt, { ...t, model: e, id: r, readOnly: !0 }) });
8755
8756
  }, On = "line_ids";
8756
- function Yc(t, e) {
8757
+ function Gc(t, e) {
8757
8758
  const { model: r, context: i = {}, id: o, configAction: s } = t, [a, l] = b([]), [d, u] = b(!1), [c, f] = b(), {
8758
8759
  setIsLoading: m,
8759
8760
  openAction: g,
@@ -8826,7 +8827,7 @@ function Yc(t, e) {
8826
8827
  for (const F of x) {
8827
8828
  const { values: v } = F;
8828
8829
  if (v.action_id && v.action_id.length > 0) {
8829
- const E = parseInt(v.action_id[0], 10), P = await Nc({
8830
+ const E = parseInt(v.action_id[0], 10), P = await Pc({
8830
8831
  actionId: E,
8831
8832
  rootContext: i
8832
8833
  });
@@ -8881,7 +8882,7 @@ function Yc(t, e) {
8881
8882
  async function A() {
8882
8883
  g(s);
8883
8884
  }
8884
- return c ? (console.log(c), /* @__PURE__ */ n(et, { className: "mt-10 mb-20", message: c, type: "error", banner: !0 })) : d ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Lc, { onPositionItemsChanged: _, children: a.map((x, S) => {
8885
+ return c ? (console.log(c), /* @__PURE__ */ n(et, { className: "mt-10 mb-20", message: c, type: "error", banner: !0 })) : d ? /* @__PURE__ */ n(st, {}) : /* @__PURE__ */ n(Bc, { onPositionItemsChanged: _, children: a.map((x, S) => {
8885
8886
  const { actionData: F, values: v } = x, { position: E, id: P } = v, {
8886
8887
  actionId: M,
8887
8888
  actionType: j,
@@ -8915,10 +8916,10 @@ function Yc(t, e) {
8915
8916
  }
8916
8917
  );
8917
8918
  else if ((X == null ? void 0 : X.type) === "form")
8918
- k = /* @__PURE__ */ n(jc, { model: R, actionDomain: ne });
8919
+ k = /* @__PURE__ */ n(Yc, { model: R, actionDomain: ne });
8919
8920
  else if ((X == null ? void 0 : X.type) === "tree")
8920
8921
  k = /* @__PURE__ */ n(
8921
- Wc,
8922
+ jc,
8922
8923
  {
8923
8924
  model: R,
8924
8925
  domain: ne,
@@ -8993,7 +8994,7 @@ function Yc(t, e) {
8993
8994
  };
8994
8995
  }
8995
8996
  return /* @__PURE__ */ n(
8996
- Hc,
8997
+ Kc,
8997
8998
  {
8998
8999
  id: P,
8999
9000
  title: B,
@@ -9006,10 +9007,10 @@ function Yc(t, e) {
9006
9007
  );
9007
9008
  }) });
9008
9009
  }
9009
- const Gc = vt(Yc), Uc = (t) => {
9010
+ const Uc = vt(Gc), qc = (t) => {
9010
9011
  const { ooui: e } = t;
9011
- return /* @__PURE__ */ n(ge, { type: "array", ...t, children: /* @__PURE__ */ n(qc, { ooui: e }) });
9012
- }, qc = (t) => {
9012
+ return /* @__PURE__ */ n(ge, { type: "array", ...t, children: /* @__PURE__ */ n(zc, { ooui: e }) });
9013
+ }, zc = (t) => {
9013
9014
  const { value: e, ooui: r, onChange: i } = t, { items: o = [] } = e || {}, s = o.filter((x) => x.operation !== "pendingRemove").map((x) => x.id), [a, l] = b([]), [d, u] = b(), [c, f] = b(!1), { relation: m, context: g, readOnly: h, field: p, columns: y } = r, w = H(Ne), { getContext: T } = w || {};
9014
9015
  xt(() => {
9015
9016
  C();
@@ -9090,37 +9091,44 @@ const Gc = vt(Yc), Uc = (t) => {
9090
9091
  /* @__PURE__ */ n(Oe, { onClick: _, disabled: s.length === 0, children: "Uncheck all" })
9091
9092
  ] })
9092
9093
  ] }) });
9093
- }, zc = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(Jc, { ...t }) }), Jc = (t) => {
9094
+ }, Jc = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(Zc, { ...t }) }), Zc = (t) => {
9094
9095
  const { value: e, ooui: r } = t;
9095
9096
  return /* @__PURE__ */ n(
9096
9097
  "div",
9097
9098
  {
9098
9099
  style: {
9099
- height: r.height ? r.height + "px" : "100%",
9100
+ height: r != null && r.height ? r.height + "px" : "100%",
9100
9101
  overflow: "auto"
9101
9102
  },
9102
- children: /* @__PURE__ */ n(Bi, { children: e, className: "ant-typography" })
9103
+ children: /* @__PURE__ */ n(
9104
+ Bi,
9105
+ {
9106
+ remarkPlugins: [$i],
9107
+ className: "markdown-typography",
9108
+ children: e
9109
+ }
9110
+ )
9103
9111
  }
9104
9112
  );
9105
- }, Zc = (t) => {
9106
- const { ooui: e } = t, { required: r } = e;
9107
- return /* @__PURE__ */ n(ge, { required: r, type: "any", ...t, children: /* @__PURE__ */ n(Xc, { ...t }) });
9108
9113
  }, Xc = (t) => {
9114
+ const { ooui: e } = t, { required: r } = e;
9115
+ return /* @__PURE__ */ n(ge, { required: r, type: "any", ...t, children: /* @__PURE__ */ n(Qc, { ...t }) });
9116
+ }, Qc = (t) => {
9109
9117
  const { ooui: e, onChange: r, value: i } = t, { selectionValues: o, readOnly: s, direction: a } = e, l = Array.from(o.entries()), d = l && l.length && l.map((u) => {
9110
9118
  const [c, f] = u;
9111
9119
  return /* @__PURE__ */ n(ar, { value: c, children: f }, c);
9112
9120
  });
9113
9121
  return /* @__PURE__ */ n(ar.Group, { disabled: s, onChange: r, value: i, children: /* @__PURE__ */ n(We, { direction: a, children: d }) });
9114
- }, Qc = (t) => {
9115
- const { ooui: e } = t, { id: r, readOnly: i, required: o } = e;
9116
- return /* @__PURE__ */ n(ge, { ...t, valuePropName: "checked", children: /* @__PURE__ */ n(ed, { id: r, readOnly: i, required: o }) });
9117
9122
  }, ed = (t) => {
9123
+ const { ooui: e } = t, { id: r, readOnly: i, required: o } = e;
9124
+ return /* @__PURE__ */ n(ge, { ...t, valuePropName: "checked", children: /* @__PURE__ */ n(td, { id: r, readOnly: i, required: o }) });
9125
+ }, td = (t) => {
9118
9126
  const { required: e, readOnly: r, ...i } = t;
9119
9127
  return /* @__PURE__ */ n("div", { className: "flex flex-row", children: /* @__PURE__ */ n(Qo, { disabled: r, ...i }) });
9120
- }, td = (t) => {
9121
- const { ooui: e } = t, { required: r } = e;
9122
- return /* @__PURE__ */ n(ge, { required: r, type: "any", ...t, children: /* @__PURE__ */ n(nd, { ...t }) });
9123
9128
  }, nd = (t) => {
9129
+ const { ooui: e } = t, { required: r } = e;
9130
+ return /* @__PURE__ */ n(ge, { required: r, type: "any", ...t, children: /* @__PURE__ */ n(rd, { ...t }) });
9131
+ }, rd = (t) => {
9124
9132
  const { ooui: e, value: r } = t, { selectionValues: i, errorField: o } = e, s = H(Ne), a = Array.from(i.entries()), l = a.map((c) => c[0]).indexOf(r);
9125
9133
  let d = "process", u = "";
9126
9134
  return o && (u = s.getFieldValue(o), u && (d = "error")), /* @__PURE__ */ n(lr, { current: l, status: d, children: a.map((c, f) => /* @__PURE__ */ n(
@@ -9130,10 +9138,10 @@ const Gc = vt(Yc), Uc = (t) => {
9130
9138
  description: f === l && d === "error" ? u : null
9131
9139
  }
9132
9140
  )) });
9133
- }, rd = (t) => {
9141
+ }, od = (t) => {
9134
9142
  const { ooui: e } = t, { lang: r, height: i } = e, o = H(Ne), { elementHasLostFocus: s } = o || {};
9135
9143
  return /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(
9136
- $i,
9144
+ Hi,
9137
9145
  {
9138
9146
  defaultLanguage: r || "",
9139
9147
  height: i || 300,
@@ -9142,15 +9150,15 @@ const Gc = vt(Yc), Uc = (t) => {
9142
9150
  }
9143
9151
  }
9144
9152
  ) });
9145
- }, { Meta: od } = Nn, { Text: id } = Yt;
9146
- at.extend(Hi);
9147
- const sd = ({ email: t, size: e = 40, theme: r = "" }) => {
9148
- const i = `https://www.gravatar.com/avatar/${Ki(
9153
+ }, { Meta: id } = Nn, { Text: sd } = Yt;
9154
+ at.extend(Ki);
9155
+ const ad = ({ email: t, size: e = 40, theme: r = "" }) => {
9156
+ const i = `https://www.gravatar.com/avatar/${Wi(
9149
9157
  t
9150
9158
  )}?s=${e}&d=${r}`;
9151
9159
  return /* @__PURE__ */ n(Ar, { src: i, size: e });
9152
9160
  };
9153
- function ad({ text: t }) {
9161
+ function ld({ text: t }) {
9154
9162
  const e = t.split(`
9155
9163
  `);
9156
9164
  return /* @__PURE__ */ n("div", { children: e.map((r, i) => /* @__PURE__ */ V(Qe.Fragment, { children: [
@@ -9158,13 +9166,13 @@ function ad({ text: t }) {
9158
9166
  i !== e.length - 1 && /* @__PURE__ */ n("br", {})
9159
9167
  ] }, i)) });
9160
9168
  }
9161
- const ld = (t) => {
9169
+ const cd = (t) => {
9162
9170
  const { data: e, style: r } = t, { t: i } = H(he);
9163
9171
  return /* @__PURE__ */ V(Nn, { style: { ...r, textAlign: "start" }, children: [
9164
9172
  /* @__PURE__ */ n(
9165
- od,
9173
+ id,
9166
9174
  {
9167
- avatar: /* @__PURE__ */ n(sd, { email: e.email, theme: "mp" }),
9175
+ avatar: /* @__PURE__ */ n(ad, { email: e.email, theme: "mp" }),
9168
9176
  title: e.author,
9169
9177
  description: /* @__PURE__ */ V(We, { direction: "horizontal", children: [
9170
9178
  /* @__PURE__ */ n("span", { title: e.date, children: at(e.date).fromNow() }),
@@ -9173,9 +9181,9 @@ const ld = (t) => {
9173
9181
  style: { marginBottom: "5px" }
9174
9182
  }
9175
9183
  ),
9176
- /* @__PURE__ */ n(id, { children: /* @__PURE__ */ n(ad, { text: e.text }) })
9184
+ /* @__PURE__ */ n(sd, { children: /* @__PURE__ */ n(ld, { text: e.text }) })
9177
9185
  ] }, e.id);
9178
- }, cd = (t) => {
9186
+ }, dd = (t) => {
9179
9187
  const { value: e } = t, r = (e || []).map((i) => {
9180
9188
  if (i.type === "action")
9181
9189
  return {
@@ -9186,22 +9194,22 @@ const ld = (t) => {
9186
9194
  color: "gray",
9187
9195
  position: i.event.isSender ? "left" : "right",
9188
9196
  label: i.event.date,
9189
- children: /* @__PURE__ */ n(ld, { data: i.event })
9197
+ children: /* @__PURE__ */ n(cd, { data: i.event })
9190
9198
  };
9191
9199
  });
9192
9200
  return /* @__PURE__ */ n(_n, { mode: "alternate", items: r });
9193
- }, dd = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(cd, {}) }), { Content: ud } = ei, { Title: fd } = Yt;
9194
- function md() {
9201
+ }, ud = (t) => /* @__PURE__ */ n(ge, { ...t, children: /* @__PURE__ */ n(dd, {}) }), { Content: fd } = ei, { Title: md } = Yt;
9202
+ function hd() {
9195
9203
  const { t } = H(he);
9196
- return /* @__PURE__ */ n(ud, { className: "m-5 select-none", children: /* @__PURE__ */ n(fd, { level: 5, children: t("welcome") }) });
9204
+ return /* @__PURE__ */ n(fd, { className: "m-5 select-none", children: /* @__PURE__ */ n(md, { level: 5, children: t("welcome") }) });
9197
9205
  }
9198
- function hd(t, e) {
9206
+ function pd(t, e) {
9199
9207
  const { children: r, globalValues: i = {}, rootContext: o = {}, lang: s } = t, [a, l] = b("welcome"), [d, u] = b([
9200
9208
  {
9201
9209
  title: Ie("welcome", s),
9202
9210
  key: "welcome",
9203
9211
  closable: !0,
9204
- content: /* @__PURE__ */ n(md, {})
9212
+ content: /* @__PURE__ */ n(hd, {})
9205
9213
  }
9206
9214
  ]), c = de(/* @__PURE__ */ new Map()), f = de();
9207
9215
  bt(e, () => ({
@@ -9499,8 +9507,8 @@ function hd(t, e) {
9499
9507
  });
9500
9508
  }
9501
9509
  }
9502
- return /* @__PURE__ */ n(Qi, { lang: s, children: /* @__PURE__ */ n(
9503
- fa,
9510
+ return /* @__PURE__ */ n(es, { lang: s, children: /* @__PURE__ */ n(
9511
+ ma,
9504
9512
  {
9505
9513
  openShortcut: w,
9506
9514
  openAction: I,
@@ -9518,7 +9526,7 @@ function hd(t, e) {
9518
9526
  l(C);
9519
9527
  },
9520
9528
  children: /* @__PURE__ */ n(
9521
- pa,
9529
+ ga,
9522
9530
  {
9523
9531
  ref: f,
9524
9532
  globalValues: i,
@@ -9528,9 +9536,9 @@ function hd(t, e) {
9528
9536
  }
9529
9537
  ) });
9530
9538
  }
9531
- const eu = vt(hd), { useToken: pd } = Pe;
9532
- function gd(t) {
9533
- const { label: e, onClose: r, tabKey: i, isActive: o, onSelected: s } = t, { token: a } = pd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
9539
+ const nu = vt(pd), { useToken: gd } = Pe;
9540
+ function yd(t) {
9541
+ const { label: e, onClose: r, tabKey: i, isActive: o, onSelected: s } = t, { token: a } = gd(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
9534
9542
  return /* @__PURE__ */ V(
9535
9543
  "div",
9536
9544
  {
@@ -9600,12 +9608,12 @@ function gd(t) {
9600
9608
  }
9601
9609
  );
9602
9610
  }
9603
- function tu() {
9611
+ function ru() {
9604
9612
  const t = H(
9605
9613
  dt
9606
9614
  ), { activeKey: e, tabs: r, onRemoveTab: i, onChangeTab: o } = t || {};
9607
9615
  return /* @__PURE__ */ n(Q, { children: r.map((s) => /* @__PURE__ */ n(
9608
- gd,
9616
+ yd,
9609
9617
  {
9610
9618
  tabKey: s.key,
9611
9619
  label: s.title,
@@ -9616,7 +9624,7 @@ function tu() {
9616
9624
  s.key
9617
9625
  )) });
9618
9626
  }
9619
- function yd(t) {
9627
+ function wd(t) {
9620
9628
  const { tab: e } = t, r = H(
9621
9629
  dt
9622
9630
  ), { activeKey: i } = r || {}, o = {
@@ -9624,20 +9632,20 @@ function yd(t) {
9624
9632
  };
9625
9633
  return /* @__PURE__ */ n("div", { style: e.key !== i ? o : void 0, children: e.content });
9626
9634
  }
9627
- const wd = Qe.memo(yd, () => !0);
9628
- function nu() {
9635
+ const vd = Qe.memo(wd, () => !0);
9636
+ function ou() {
9629
9637
  const t = H(
9630
9638
  dt
9631
- ), { tabs: e } = t || {}, r = (e == null ? void 0 : e.map((i) => /* @__PURE__ */ n(wd, { tab: i }, i.key))) || null;
9639
+ ), { tabs: e } = t || {}, r = (e == null ? void 0 : e.map((i) => /* @__PURE__ */ n(vd, { tab: i }, i.key))) || null;
9632
9640
  return /* @__PURE__ */ n(Q, { children: r });
9633
9641
  }
9634
- const { useToken: vd } = Pe, ru = (t) => {
9642
+ const { useToken: bd } = Pe, iu = (t) => {
9635
9643
  const {
9636
9644
  onRetrieveShortcuts: e,
9637
9645
  onCheckIsFavourite: r,
9638
9646
  onAddFavourite: i,
9639
9647
  onRemoveFavourite: o
9640
- } = t, [s, a] = b(!1), [l, d] = b(!1), [u, c] = b([]), [f, m] = b(!0), [g, h] = b(), { t: p } = H(he) || {}, { token: y } = vd(), w = H(
9648
+ } = t, [s, a] = b(!1), [l, d] = b(!1), [u, c] = b([]), [f, m] = b(!0), [g, h] = b(), { t: p } = H(he) || {}, { token: y } = bd(), w = H(
9641
9649
  dt
9642
9650
  ), {
9643
9651
  openShortcut: T,
@@ -9776,60 +9784,60 @@ const { useToken: vd } = Pe, ru = (t) => {
9776
9784
  ] });
9777
9785
  };
9778
9786
  export {
9779
- pc as ActionBar,
9787
+ gc as ActionBar,
9780
9788
  Vo as ActionView,
9781
- lc as Binary,
9782
- ws as Boolean,
9789
+ cc as Binary,
9790
+ vs as Boolean,
9783
9791
  Xr as Button,
9784
- rs as ButtonGroup,
9792
+ os as ButtonGroup,
9785
9793
  to as Char,
9786
- rd as CodeEditor,
9787
- dd as CommentsTimelineField,
9788
- Oc as ConfigContext,
9794
+ od as CodeEditor,
9795
+ ud as CommentsTimelineField,
9796
+ _c as ConfigContext,
9789
9797
  D as ConnectionProvider,
9790
- pa as ContentRootProvider,
9791
- nu as CurrentTabContent,
9792
- Gc as Dashboard,
9793
- Lc as DashboardGrid,
9794
- Hc as DashboardGridItem,
9795
- tc as Date,
9796
- nc as DateTime,
9797
- wc as Email,
9798
- ec as ExportModal,
9799
- ru as FavouriteButton,
9798
+ ga as ContentRootProvider,
9799
+ ou as CurrentTabContent,
9800
+ Uc as Dashboard,
9801
+ Bc as DashboardGrid,
9802
+ Kc as DashboardGridItem,
9803
+ nc as Date,
9804
+ rc as DateTime,
9805
+ vc as Email,
9806
+ tc as ExportModal,
9807
+ iu as FavouriteButton,
9800
9808
  mo as Float,
9801
- Ll as FloatTime,
9809
+ Bl as FloatTime,
9802
9810
  Jt as Form,
9803
9811
  Zt as FormModal,
9804
- ul as GraphIndicator,
9812
+ fl as GraphIndicator,
9805
9813
  To as Group,
9806
- xs as Image,
9814
+ Ss as Image,
9807
9815
  rn as Integer,
9808
9816
  fn as Label,
9809
- ll as Many2one,
9810
- zc as Markdown,
9811
- Uc as MultiCheckbox,
9812
- Hl as Notebook,
9813
- Nl as One2many,
9814
- Pa as ProgressBar,
9815
- Zc as Radio,
9816
- ic as Reference,
9817
- eu as RootView,
9817
+ cl as Many2one,
9818
+ Jc as Markdown,
9819
+ qc as MultiCheckbox,
9820
+ Kl as Notebook,
9821
+ Pl as One2many,
9822
+ La as ProgressBar,
9823
+ Xc as Radio,
9824
+ sc as Reference,
9825
+ nu as RootView,
9818
9826
  ho as SearchFilter,
9819
9827
  vo as SearchModal,
9820
9828
  wo as SearchTree,
9821
9829
  no as Selection,
9822
- Yl as Separator,
9823
- td as Steps,
9824
- Qc as Switch,
9825
- gd as Tab,
9826
- tu as TabSelector,
9827
- Hs as Tag,
9828
- Ks as Tags,
9829
- Wl as Text,
9830
- rc as Time,
9830
+ Gl as Separator,
9831
+ nd as Steps,
9832
+ ed as Switch,
9833
+ yd as Tab,
9834
+ ru as TabSelector,
9835
+ Ks as Tag,
9836
+ Ws as Tags,
9837
+ jl as Text,
9838
+ oc as Time,
9831
9839
  pn as Tree,
9832
- yc as Url,
9840
+ wc as Url,
9833
9841
  ct as iconMapper,
9834
9842
  qt as showConfirmDialog
9835
9843
  };