@gisce/react-ooui 2.39.0 → 2.40.0

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.
@@ -19,7 +19,7 @@ import Fr from "antd/lib/typography/Title";
19
19
  import St from "use-deep-compare-effect";
20
20
  import { Line as Sl, Column as Cl, Pie as xl } from "@ant-design/plots";
21
21
  import st from "dayjs";
22
- import { default as Fy } from "dayjs";
22
+ import { default as Ry } from "dayjs";
23
23
  import Il from "dayjs/plugin/advancedFormat";
24
24
  import Tl from "dayjs/plugin/customParseFormat";
25
25
  import Ol from "dayjs/plugin/isoWeek";
@@ -40,18 +40,19 @@ import Nl from "validator";
40
40
  import "@gisce/react-formiga-table/style.css";
41
41
  import Ml from "antd/es/typography/Link";
42
42
  import Ln from "antd/es/alert/ErrorBoundary";
43
- import { GridUi as Ll } from "@gisce/fiber-diagram";
43
+ import Ll from "validator/lib/isBase64";
44
+ import { GridUi as jl } from "@gisce/fiber-diagram";
44
45
  import { useHotkeys as Mt } from "react-hotkeys-hook";
45
- import jl from "validator/lib/isURL";
46
- import Bl from "validator/lib/isEmail";
47
- import Hl from "react-markdown";
48
- import Ul from "remark-gfm";
49
- import Wl from "@monaco-editor/react";
50
- import Gl from "md5";
51
- import { WidthProvider as Kl, Responsive as ql } from "react-grid-layout";
46
+ import Bl from "validator/lib/isURL";
47
+ import Hl from "validator/lib/isEmail";
48
+ import Ul from "react-markdown";
49
+ import Wl from "remark-gfm";
50
+ import Gl from "@monaco-editor/react";
51
+ import Kl from "md5";
52
+ import { WidthProvider as ql, Responsive as Yl } from "react-grid-layout";
52
53
  import "react-grid-layout/css/styles.css";
53
- import { AnimatePresence as Yl, motion as Vo } from "framer-motion";
54
- const Be = mt.createContext(null), zl = (e) => {
54
+ import { AnimatePresence as zl, motion as Vo } from "framer-motion";
55
+ const Be = mt.createContext(null), Jl = (e) => {
55
56
  const {
56
57
  children: t,
57
58
  activeId: n,
@@ -93,7 +94,7 @@ const Be = mt.createContext(null), zl = (e) => {
93
94
  children: t
94
95
  }
95
96
  );
96
- }, { Text: Jl, Title: Ql } = _t, { useToken: Xl } = Ge, Zl = {
97
+ }, { Text: Ql, Title: Xl } = _t, { useToken: Zl } = Ge, ec = {
97
98
  left: "justify-start",
98
99
  center: "justify-center",
99
100
  right: "justify-end"
@@ -101,11 +102,11 @@ const Be = mt.createContext(null), zl = (e) => {
101
102
  const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: c } = t, u = te(Be);
102
103
  let d = a !== null && o.length > 1 ? o + " :" : o;
103
104
  !t.fieldForLabel && t._id && (d = u.getFieldValue(t._id));
104
- const h = n || (a ? r ? "left" : "right" : "left"), { token: m } = Xl(), v = l === void 0 ? Jl : Ql;
105
+ const h = n || (a ? r ? "left" : "right" : "left"), { token: m } = Zl(), v = l === void 0 ? Ql : Xl;
105
106
  return /* @__PURE__ */ E(
106
107
  "div",
107
108
  {
108
- className: `flex flex-row items-center pb-1 pt-1 ${Zl[h]}`,
109
+ className: `flex flex-row items-center pb-1 pt-1 ${ec[h]}`,
109
110
  children: [
110
111
  s && /* @__PURE__ */ i(Ft, { title: s, children: /* @__PURE__ */ i(
111
112
  Mi,
@@ -172,14 +173,14 @@ function _e({
172
173
  m()
173
174
  ] }))();
174
175
  }
175
- const { confirm: ec } = ct, At = ({
176
+ const { confirm: tc } = ct, At = ({
176
177
  onOk: e,
177
178
  confirmMessage: t,
178
179
  okText: n,
179
180
  cancelText: r,
180
181
  t: o
181
182
  }) => {
182
- ec({
183
+ tc({
183
184
  title: o("confirmation"),
184
185
  icon: /* @__PURE__ */ i(Vt, {}),
185
186
  centered: !0,
@@ -281,7 +282,7 @@ const { confirm: ec } = ct, At = ({
281
282
  STOCK_UNINDENT: "AlignLeft",
282
283
  STOCK_PREFERENCES: "Setting"
283
284
  }, dt = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), Eo.hasOwnProperty(e) ? Do(Eo[e], t) : Do(e, t));
284
- function tc(e) {
285
+ function nc(e) {
285
286
  return `${e.split("-").map(
286
287
  (t) => t.replace(
287
288
  /\w\S*/g,
@@ -291,7 +292,7 @@ function tc(e) {
291
292
  }
292
293
  function Do(e, t) {
293
294
  let n = e.charAt(0).toUpperCase() + e.slice(1);
294
- n.indexOf("-") !== -1 && (n = tc(n));
295
+ n.indexOf("-") !== -1 && (n = nc(n));
295
296
  const r = `${n}Outlined`;
296
297
  if (Fo[r])
297
298
  return () => mt.createElement(Fo[r], {
@@ -360,7 +361,7 @@ const oo = (e) => {
360
361
  children: r
361
362
  }
362
363
  ) });
363
- }, nc = (e) => {
364
+ }, rc = (e) => {
364
365
  const { ooui: t } = e, { defaultButton: n, secondaryButtons: r } = t, {
365
366
  id: o,
366
367
  caption: s,
@@ -407,7 +408,7 @@ const oo = (e) => {
407
408
  icon: /* @__PURE__ */ i(Jn, {}),
408
409
  type: f ? "primary" : void 0,
409
410
  overlay: /* @__PURE__ */ i(
410
- rc,
411
+ oc,
411
412
  {
412
413
  ooui: r,
413
414
  executeButtonAction: m
@@ -421,7 +422,7 @@ const oo = (e) => {
421
422
  ) });
422
423
  if (n)
423
424
  return /* @__PURE__ */ i(oo, { ooui: n });
424
- }, rc = (e) => {
425
+ }, oc = (e) => {
425
426
  const { t } = he(), { ooui: n, executeButtonAction: r } = e;
426
427
  if (!n)
427
428
  return null;
@@ -474,7 +475,7 @@ const oo = (e) => {
474
475
  );
475
476
  });
476
477
  return /* @__PURE__ */ i(Io, { children: o });
477
- }, oc = 0.7;
478
+ }, ic = 0.7;
478
479
  function Po() {
479
480
  const { innerWidth: e, innerHeight: t } = window;
480
481
  return {
@@ -492,7 +493,7 @@ function rr() {
492
493
  }
493
494
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
494
495
  }, []), {
495
- modalWidth: e.width * oc,
496
+ modalWidth: e.width * ic,
496
497
  modalHeight: e.height,
497
498
  width: e.width,
498
499
  height: e.height
@@ -528,9 +529,9 @@ const Xi = (e) => {
528
529
  message: t,
529
530
  title: r
530
531
  };
531
- }, { error: ic, warning: sc } = ct, it = (e) => {
532
+ }, { error: sc, warning: ac } = ct, it = (e) => {
532
533
  const { message: t, type: n, title: r } = Xi(e);
533
- (n === "error" ? ic : sc)({
534
+ (n === "error" ? sc : ac)({
534
535
  title: r,
535
536
  icon: n === "error" ? /* @__PURE__ */ i(Vt, {}) : /* @__PURE__ */ i(Li, {}),
536
537
  centered: !0,
@@ -660,24 +661,24 @@ function nt(e) {
660
661
  const { tooltip: t, ...n } = e;
661
662
  return /* @__PURE__ */ i(Ft, { title: t, children: /* @__PURE__ */ i(je, { ...n }) });
662
663
  }
663
- const { info: ac } = ct, xt = (e) => {
664
- ac({
664
+ const { info: lc } = ct, xt = (e) => {
665
+ lc({
665
666
  title: "",
666
667
  centered: !0,
667
668
  content: e
668
669
  });
669
- }, { useToken: lc } = Ge, es = (e) => {
670
- const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t, { token: l } = lc(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0;
670
+ }, { useToken: cc } = Ge, es = (e) => {
671
+ const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t, { token: l } = cc(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0;
671
672
  let u = /* @__PURE__ */ i(
672
- cc,
673
+ dc,
673
674
  {
674
675
  ooui: t,
675
676
  requiredStyle: c,
676
677
  isSearchField: n
677
678
  }
678
679
  );
679
- return a && !o && !n && (u = /* @__PURE__ */ i(dc, { field: r, requiredStyle: c })), /* @__PURE__ */ i(_e, { required: s, ...e, children: u });
680
- }, cc = ({
680
+ return a && !o && !n && (u = /* @__PURE__ */ i(uc, { field: r, requiredStyle: c })), /* @__PURE__ */ i(_e, { required: s, ...e, children: u });
681
+ }, dc = ({
681
682
  value: e,
682
683
  ooui: t,
683
684
  requiredStyle: n,
@@ -713,7 +714,7 @@ const { info: ac } = ct, xt = (e) => {
713
714
  }
714
715
  }
715
716
  )), s && (h = /* @__PURE__ */ i(lt, { value: e, id: c, disabled: !0 })), h;
716
- }, dc = ({
717
+ }, uc = ({
717
718
  value: e,
718
719
  field: t,
719
720
  requiredStyle: n,
@@ -792,16 +793,16 @@ const { info: ac } = ct, xt = (e) => {
792
793
  }
793
794
  ) })
794
795
  ] }) });
795
- }, { defaultAlgorithm: uc, defaultSeed: fc } = Ge, mc = uc(fc), { Option: pc } = Ut, ts = (e) => {
796
+ }, { defaultAlgorithm: fc, defaultSeed: mc } = Ge, pc = fc(mc), { Option: hc } = Ut, ts = (e) => {
796
797
  const { ooui: t } = e, { required: n } = t;
797
798
  return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(ns, { ...e }) });
798
799
  }, ns = (e) => {
799
800
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), c = l && l.length && l.map((f) => {
800
801
  const [d, p] = f;
801
- return /* @__PURE__ */ i(pc, { value: d, children: p }, d);
802
+ return /* @__PURE__ */ i(hc, { value: d, children: p }, d);
802
803
  });
803
804
  return /* @__PURE__ */ i(
804
- a && !s ? hc : Ut,
805
+ a && !s ? gc : Ut,
805
806
  {
806
807
  disabled: s,
807
808
  onChange: n,
@@ -813,17 +814,17 @@ const { info: ac } = ct, xt = (e) => {
813
814
  children: c
814
815
  }
815
816
  );
816
- }, hc = dn(Ut)`
817
+ }, gc = dn(Ut)`
817
818
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
818
- background-color: ${mc.colorPrimaryBg};
819
+ background-color: ${pc.colorPrimaryBg};
819
820
  }
820
- `, { defaultAlgorithm: gc, defaultSeed: yc } = Ge, ko = gc(yc), vc = (e) => {
821
+ `, { defaultAlgorithm: yc, defaultSeed: vc } = Ge, ko = yc(vc), wc = (e) => {
821
822
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
822
- return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(wc, { id: n, readOnly: r, required: o }) });
823
- }, wc = (e) => {
823
+ return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(bc, { id: n, readOnly: r, required: o }) });
824
+ }, bc = (e) => {
824
825
  const { required: t, readOnly: n, ...r } = e;
825
- return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? bc : Cn, { disabled: n, ...r }) });
826
- }, bc = dn(Cn)`
826
+ return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Sc : Cn, { disabled: n, ...r }) });
827
+ }, Sc = dn(Cn)`
827
828
  .ant-checkbox-inner {
828
829
  background-color: ${ko.colorPrimaryBg};
829
830
  }
@@ -832,7 +833,7 @@ const { info: ac } = ct, xt = (e) => {
832
833
  background-color: ${ko.colorPrimary};
833
834
  }
834
835
  `;
835
- function Sc(e) {
836
+ function Cc(e) {
836
837
  const n = Buffer.from(e, "base64").length / 1e3;
837
838
  return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
838
839
  }
@@ -856,11 +857,17 @@ function or(e, t) {
856
857
  const o = new Uint8Array(r), s = new Blob([o], { type: t + ";base64" }), a = URL.createObjectURL(s);
857
858
  window.open(a);
858
859
  }
859
- const Cc = (e) => {
860
+ const xc = (e) => {
860
861
  const { ooui: t } = e, { required: n, id: r } = t, o = dt(r);
861
- return o ? /* @__PURE__ */ i(o, {}) : /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(xc, { ooui: t }) });
862
- }, xc = (e) => {
863
- const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, s = J(null), { t: a } = he(), l = (d) => {
862
+ return o ? /* @__PURE__ */ i(o, {}) : /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Ic, { ooui: t }) });
863
+ }, Ic = (e) => {
864
+ const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, s = J(null), { t: a } = he();
865
+ if (n) {
866
+ const d = dt(n);
867
+ if (d)
868
+ return /* @__PURE__ */ i(d, { height: 50 });
869
+ }
870
+ const l = (d) => {
864
871
  r == null || r(d);
865
872
  };
866
873
  async function c() {
@@ -877,7 +884,7 @@ const Cc = (e) => {
877
884
  }
878
885
  return /* @__PURE__ */ E(ae, { children: [
879
886
  /* @__PURE__ */ E(ke, { gutter: 8, wrap: !1, justify: "center", children: [
880
- n && /* @__PURE__ */ i(
887
+ n && Ll(n) && /* @__PURE__ */ i(
881
888
  "img",
882
889
  {
883
890
  src: `data:image/*;base64,${n}`,
@@ -896,7 +903,7 @@ const Cc = (e) => {
896
903
  }
897
904
  )
898
905
  ] }),
899
- /* @__PURE__ */ i(ke, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ E(Je, { children: [
906
+ t.showControls && /* @__PURE__ */ i(ke, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ E(Je, { children: [
900
907
  /* @__PURE__ */ i(
901
908
  nt,
902
909
  {
@@ -928,10 +935,10 @@ const Cc = (e) => {
928
935
  )
929
936
  ] }) })
930
937
  ] });
931
- }, Ic = (e) => {
932
- const { ooui: t } = e, { required: n } = t;
933
- return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Tc, {}) });
934
938
  }, Tc = (e) => {
939
+ const { ooui: t } = e, { required: n } = t;
940
+ return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Oc, {}) });
941
+ }, Oc = (e) => {
935
942
  const { value: t, onChange: n } = e;
936
943
  if (!t)
937
944
  return null;
@@ -941,7 +948,7 @@ const Cc = (e) => {
941
948
  return console.error(r), null;
942
949
  }
943
950
  return /* @__PURE__ */ i(
944
- Ll,
951
+ jl,
945
952
  {
946
953
  inputJson: t,
947
954
  onChange: (r) => {
@@ -953,13 +960,13 @@ const Cc = (e) => {
953
960
  const t = e.arch, n = e.fields, r = new Vi(n);
954
961
  return r.parse(t), r;
955
962
  };
956
- function Oc(e) {
963
+ function Fc(e) {
957
964
  return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
958
965
  }
959
966
  const io = (e, t, n) => e.columns.map((o) => {
960
967
  const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
961
968
  let c;
962
- return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) => Oc(u) ? u : /* @__PURE__ */ E("p", { style: { color: "red" }, children: [
969
+ return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) => Fc(u) ? u : /* @__PURE__ */ E("p", { style: { color: "red" }, children: [
963
970
  "Unsupported widget value for a Tree cell:",
964
971
  /* @__PURE__ */ i("pre", { children: /* @__PURE__ */ E("strong", { children: [
965
972
  "Type: ",
@@ -1022,7 +1029,7 @@ function en({
1022
1029
  };
1023
1030
  return e.sort(l);
1024
1031
  }
1025
- function Fc(e) {
1032
+ function Ac(e) {
1026
1033
  for (const t in e)
1027
1034
  if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
1028
1035
  return !0;
@@ -1094,7 +1101,7 @@ const so = async (e) => {
1094
1101
  }, as = (e) => {
1095
1102
  const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
1096
1103
  return t.length === 0 ? -1 : Math.min(...t) - 1;
1097
- }, Ac = (e, t) => {
1104
+ }, Rc = (e, t) => {
1098
1105
  const n = {};
1099
1106
  return Object.keys(e).forEach((r) => {
1100
1107
  var o;
@@ -1102,7 +1109,7 @@ const so = async (e) => {
1102
1109
  (s) => s.operation !== "pendingRemove"
1103
1110
  ) : n[r] = e[r];
1104
1111
  }), n;
1105
- }, Rc = ({
1112
+ }, _c = ({
1106
1113
  values: e,
1107
1114
  fields: t
1108
1115
  }) => {
@@ -1121,7 +1128,7 @@ const so = async (e) => {
1121
1128
  n[r] = e[r];
1122
1129
  }), n;
1123
1130
  };
1124
- function _c(e) {
1131
+ function Vc(e) {
1125
1132
  const t = e.map((r) => r.id);
1126
1133
  return e.filter((r, o) => {
1127
1134
  const { id: s } = r;
@@ -1137,7 +1144,7 @@ function $o({
1137
1144
  e[r] && (n[r] = e[r]);
1138
1145
  }), n;
1139
1146
  }
1140
- const Vc = ({
1147
+ const Ec = ({
1141
1148
  allItems: e,
1142
1149
  range: t
1143
1150
  }) => {
@@ -1146,7 +1153,7 @@ const Vc = ({
1146
1153
  return l && (l.operation === "original" || l.operation === "pendingLink");
1147
1154
  }), s = e.filter((a) => a && a.operation !== "original" && a.operation !== "pendingLink");
1148
1155
  return { realItemsIds: o, otherItems: s };
1149
- }, Ec = ({
1156
+ }, Dc = ({
1150
1157
  finalResultIds: e,
1151
1158
  fetchedItems: t,
1152
1159
  otherItems: n
@@ -1160,15 +1167,15 @@ const Vc = ({
1160
1167
  const a = t.findIndex((c) => c.id === o.id), l = t.findIndex((c) => c.id === s.id);
1161
1168
  return a - l;
1162
1169
  }), r;
1163
- }, Dc = async (e, t, n, r) => await $.getHandler().searchAllIds({
1170
+ }, Pc = async (e, t, n, r) => await $.getHandler().searchAllIds({
1164
1171
  model: t,
1165
1172
  params: [["id", "in", e]],
1166
1173
  context: n,
1167
1174
  order: r
1168
- }), Pc = (e) => {
1175
+ }), kc = (e) => {
1169
1176
  const t = {};
1170
1177
  return e.colors && (t.colors = e.colors), e.status && (t.status = e.status), t;
1171
- }, kc = async ({
1178
+ }, $c = async ({
1172
1179
  relation: e,
1173
1180
  ids: t,
1174
1181
  treeView: n,
@@ -1189,7 +1196,7 @@ const Vc = ({
1189
1196
  colors: rn(a[1]),
1190
1197
  status: jn(a[1])
1191
1198
  };
1192
- }, $c = (e, t) => {
1199
+ }, Nc = (e, t) => {
1193
1200
  if (!t)
1194
1201
  return e;
1195
1202
  const n = {};
@@ -1203,7 +1210,7 @@ const Vc = ({
1203
1210
  } else
1204
1211
  n[r] = e[r];
1205
1212
  }), n;
1206
- }, Jt = (e, t) => $c(e, t), mr = ({
1213
+ }, Jt = (e, t) => Nc(e, t), mr = ({
1207
1214
  source: e,
1208
1215
  target: t,
1209
1216
  fields: n
@@ -1236,7 +1243,7 @@ const Vc = ({
1236
1243
  else
1237
1244
  e[o] === void 0 && t[o] !== void 0 ? r[o] = t[o] : e[o] !== t[o] && (t[o] === void 0 ? r[o] = null : r[o] = t[o]);
1238
1245
  }), r;
1239
- }, Nc = ({
1246
+ }, Mc = ({
1240
1247
  changedFields: e,
1241
1248
  formOoui: t,
1242
1249
  types: n
@@ -1244,7 +1251,7 @@ const Vc = ({
1244
1251
  var a;
1245
1252
  const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
1246
1253
  return n.includes(s);
1247
- }).some((o) => o === !0), Mc = ({
1254
+ }).some((o) => o === !0), Lc = ({
1248
1255
  fieldsDomain: e,
1249
1256
  fields: t
1250
1257
  }) => {
@@ -1252,12 +1259,12 @@ const Vc = ({
1252
1259
  return Object.keys(t).forEach((r) => {
1253
1260
  n[r] = t[r], e[r] && (n[r].domain = e[r]);
1254
1261
  }), n;
1255
- }, Lc = (e) => {
1262
+ }, jc = (e) => {
1256
1263
  const t = {};
1257
1264
  return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
1258
1265
  (n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
1259
1266
  }), t);
1260
- }, jc = ({
1267
+ }, Bc = ({
1261
1268
  onChangeFieldActionArgs: e,
1262
1269
  values: t,
1263
1270
  parentValues: n = {}
@@ -1307,7 +1314,7 @@ const Wt = ({
1307
1314
  const o = e[r];
1308
1315
  t[r] && t[r].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? n[r] = o[0] : n[r] = o;
1309
1316
  }), n;
1310
- }, Bc = (e) => e ? "success" : "error", An = (e) => {
1317
+ }, Hc = (e) => e ? "success" : "error", An = (e) => {
1311
1318
  let t = 0;
1312
1319
  e = e.toString().padEnd(10, "0");
1313
1320
  for (let r = 0; r < e.length; r++)
@@ -1318,10 +1325,10 @@ const Wt = ({
1318
1325
  n += ("00" + o.toString(16)).slice(-2);
1319
1326
  }
1320
1327
  return n;
1321
- }, Hc = (e, t) => e.replace(
1328
+ }, Uc = (e, t) => e.replace(
1322
1329
  /\{([^}]+)\}/g,
1323
1330
  (n, r) => t[r] !== void 0 ? t[r] : n
1324
- ), Mo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), Uc = (e) => /* @__PURE__ */ E(
1331
+ ), Mo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), Wc = (e) => /* @__PURE__ */ E(
1325
1332
  "div",
1326
1333
  {
1327
1334
  style: { display: "inline-block", cursor: "pointer" },
@@ -1334,7 +1341,7 @@ const Wt = ({
1334
1341
  ] })
1335
1342
  ]
1336
1343
  }
1337
- ), Wc = (e) => {
1344
+ ), Gc = (e) => {
1338
1345
  const { ooui: t } = e, { relation: n, context: r, views: o } = t, [s, a] = x(!0), [l, c] = x(), [u, f] = x(/* @__PURE__ */ new Map()), d = te(Be), { getContext: p } = d || {};
1339
1346
  St(() => {
1340
1347
  m();
@@ -1354,8 +1361,8 @@ const Wt = ({
1354
1361
  a(!1);
1355
1362
  }
1356
1363
  };
1357
- return s ? /* @__PURE__ */ i(We, {}) : l ? /* @__PURE__ */ i(rt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Gc, { ooui: t, views: u }) });
1358
- }, Gc = (e) => {
1364
+ return s ? /* @__PURE__ */ i(We, {}) : l ? /* @__PURE__ */ i(rt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Kc, { ooui: t, views: u }) });
1365
+ }, Kc = (e) => {
1359
1366
  const { value: t, views: n, ooui: r, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = x(!1), [c, u] = x(), [f, d] = x(!1), [p, h] = x(), {
1360
1367
  relation: m,
1361
1368
  context: v,
@@ -1407,7 +1414,7 @@ const Wt = ({
1407
1414
  var _, k, L, W;
1408
1415
  const P = {
1409
1416
  children: /* @__PURE__ */ i(
1410
- Uc,
1417
+ Wc,
1411
1418
  {
1412
1419
  title: (_ = F.values) == null ? void 0 : _[w],
1413
1420
  summary: (k = F.values) == null ? void 0 : k[y],
@@ -1444,7 +1451,7 @@ const Wt = ({
1444
1451
  }
1445
1452
  )
1446
1453
  ] });
1447
- }, Kc = {
1454
+ }, qc = {
1448
1455
  true: "Sí",
1449
1456
  false: "No",
1450
1457
  simple_search: "Búsqueda simple",
@@ -1544,7 +1551,7 @@ const Wt = ({
1544
1551
  applyFilters: "Aplicar filtres",
1545
1552
  resetTableView: "Restablir vista de taula",
1546
1553
  not: "No"
1547
- }, qc = {
1554
+ }, Yc = {
1548
1555
  true: "Yes",
1549
1556
  false: "No",
1550
1557
  simple_search: "Simple search",
@@ -1644,7 +1651,7 @@ const Wt = ({
1644
1651
  applyFilters: "Apply filters",
1645
1652
  resetTableView: "Reset table view",
1646
1653
  not: "Not"
1647
- }, Yc = {
1654
+ }, zc = {
1648
1655
  true: "Sí",
1649
1656
  false: "No",
1650
1657
  simple_search: "Búsqueda simple",
@@ -1744,16 +1751,16 @@ const Wt = ({
1744
1751
  applyFilters: "Aplicar filtros",
1745
1752
  resetTableView: "Restablecer vista de tabla",
1746
1753
  not: "No"
1747
- }, zc = {
1748
- ca_ES: Kc,
1749
- en_US: qc,
1750
- es_ES: Yc
1751
1754
  }, Jc = {
1755
+ ca_ES: qc,
1756
+ en_US: Yc,
1757
+ es_ES: zc
1758
+ }, Qc = {
1752
1759
  erpFeatures: {},
1753
1760
  globalValues: {},
1754
1761
  rootContext: {},
1755
1762
  devMode: !1
1756
- }, ls = mt.createContext(Jc), ao = () => {
1763
+ }, ls = mt.createContext(Qc), ao = () => {
1757
1764
  const e = te(ls);
1758
1765
  if (!e)
1759
1766
  throw new Error(
@@ -1763,7 +1770,7 @@ const Wt = ({
1763
1770
  }, sr = (e) => {
1764
1771
  const { erpFeatures: t } = ao();
1765
1772
  return !!t[e];
1766
- }, Qc = an(
1773
+ }, Xc = an(
1767
1774
  ({
1768
1775
  erpFeatures: e,
1769
1776
  locale: t,
@@ -1786,13 +1793,13 @@ const Wt = ({
1786
1793
  fl,
1787
1794
  {
1788
1795
  locale: t,
1789
- localizedStrings: ml(zc, n),
1796
+ localizedStrings: ml(Jc, n),
1790
1797
  children: a
1791
1798
  }
1792
1799
  ) });
1793
1800
  }
1794
1801
  );
1795
- Qc.displayName = "ConfigContextProvider";
1802
+ Xc.displayName = "ConfigContextProvider";
1796
1803
  async function cs({
1797
1804
  actionId: e,
1798
1805
  rootContext: t = {},
@@ -1845,7 +1852,7 @@ async function cs({
1845
1852
  treeExpandable: h
1846
1853
  };
1847
1854
  }
1848
- const Xc = (e) => {
1855
+ const Zc = (e) => {
1849
1856
  const [t, n] = x(), [r, o] = x(!0), [s, a] = x(), [l, c] = x(), u = te(Be), { getContext: f, getPlainValues: d, activeId: p } = u || {}, { globalValues: h, rootContext: m } = ao(), v = me(() => ({ ...f == null ? void 0 : f(), ...m }), [f, m]);
1850
1857
  return { actionData: s, treeShortcut: l, loading: r, error: t, fetchData: async () => {
1851
1858
  n(void 0), o(!0);
@@ -1959,7 +1966,7 @@ const Xc = (e) => {
1959
1966
  n((h = p.bounds) == null ? void 0 : h.height), o((m = p.bounds) == null ? void 0 : m.width);
1960
1967
  },
1961
1968
  children: ({ measureRef: p }) => d ? /* @__PURE__ */ i(
1962
- ed,
1969
+ td,
1963
1970
  {
1964
1971
  value: s,
1965
1972
  total: a,
@@ -1972,7 +1979,7 @@ const Xc = (e) => {
1972
1979
  suffix: f
1973
1980
  }
1974
1981
  ) : /* @__PURE__ */ i(
1975
- Zc,
1982
+ ed,
1976
1983
  {
1977
1984
  value: s,
1978
1985
  total: a,
@@ -1991,7 +1998,7 @@ function fs(e, t) {
1991
1998
  const r = document.createElement("canvas").getContext("2d");
1992
1999
  return r.font = t || getComputedStyle(document.body).font, r.measureText(e).width;
1993
2000
  }
1994
- function Zc({
2001
+ function ed({
1995
2002
  measureRef: e,
1996
2003
  width: t,
1997
2004
  height: n,
@@ -2034,7 +2041,7 @@ function Zc({
2034
2041
  }
2035
2042
  );
2036
2043
  }
2037
- function ed({
2044
+ function td({
2038
2045
  measureRef: e,
2039
2046
  height: t,
2040
2047
  width: n,
@@ -2098,7 +2105,7 @@ function ed({
2098
2105
  }
2099
2106
  );
2100
2107
  }
2101
- const { getValueForOperator: Lo } = Di, td = (e) => {
2108
+ const { getValueForOperator: Lo } = Di, nd = (e) => {
2102
2109
  const {
2103
2110
  model: t,
2104
2111
  domain: n,
@@ -2228,7 +2235,7 @@ const { getValueForOperator: Lo } = Di, td = (e) => {
2228
2235
  showPercent: a
2229
2236
  }
2230
2237
  );
2231
- }, { processGraphData: nd } = Di, { getFieldsToRetrieve: rd } = Ka, od = (e) => {
2238
+ }, { processGraphData: rd } = Di, { getFieldsToRetrieve: od } = Ka, id = (e) => {
2232
2239
  const {
2233
2240
  model: t,
2234
2241
  ooui: n,
@@ -2243,10 +2250,10 @@ const { getValueForOperator: Lo } = Di, td = (e) => {
2243
2250
  $.getHandler().readObjects
2244
2251
  ), [C] = ze($.getHandler().search), b = N(async () => {
2245
2252
  u(!0), d(void 0), y(n.type || "line");
2246
- const O = rd({ ooui: n });
2253
+ const O = od({ ooui: n });
2247
2254
  let T, R;
2248
2255
  try {
2249
- ({ values: T, fields: R } = await sd({
2256
+ ({ values: T, fields: R } = await ad({
2250
2257
  model: t,
2251
2258
  domain: r,
2252
2259
  context: o,
@@ -2275,7 +2282,7 @@ const { getValueForOperator: Lo } = Di, td = (e) => {
2275
2282
  fetchData: b
2276
2283
  };
2277
2284
  v(T);
2278
- const S = nd({
2285
+ const S = rd({
2279
2286
  ooui: n,
2280
2287
  values: T,
2281
2288
  fields: R,
@@ -2315,7 +2322,7 @@ const { getValueForOperator: Lo } = Di, td = (e) => {
2315
2322
  fetchData: b
2316
2323
  };
2317
2324
  };
2318
- async function id({
2325
+ async function sd({
2319
2326
  model: e,
2320
2327
  context: t,
2321
2328
  fields: n,
@@ -2327,7 +2334,7 @@ async function id({
2327
2334
  fields: n
2328
2335
  });
2329
2336
  }
2330
- async function sd({
2337
+ async function ad({
2331
2338
  fields: e,
2332
2339
  model: t,
2333
2340
  domain: n,
@@ -2337,7 +2344,7 @@ async function sd({
2337
2344
  manualIds: a,
2338
2345
  methods: l
2339
2346
  }) {
2340
- const { getFields: c, readObjects: u, search: f } = l, d = await id({
2347
+ const { getFields: c, readObjects: u, search: f } = l, d = await sd({
2341
2348
  model: t,
2342
2349
  context: r,
2343
2350
  fields: e,
@@ -2381,7 +2388,7 @@ const pr = (e) => (t) => {
2381
2388
  });
2382
2389
  return { name: e === "pie" ? t.x : t.type, value: n };
2383
2390
  }, Pn = (e) => {
2384
- if (typeof e == "string" && ad(e))
2391
+ if (typeof e == "string" && ld(e))
2385
2392
  return parseFloat(e).toLocaleString("es-ES", {
2386
2393
  useGrouping: !0
2387
2394
  });
@@ -2389,14 +2396,14 @@ const pr = (e) => (t) => {
2389
2396
  return e.toLocaleString("es-ES", {
2390
2397
  useGrouping: !0
2391
2398
  });
2392
- if (ld(e)) {
2393
- const t = cd(e);
2399
+ if (cd(e)) {
2400
+ const t = dd(e);
2394
2401
  return t === null ? e : st(e, Wn.input[t]).format(
2395
2402
  Wn.output[t]
2396
2403
  );
2397
2404
  } else
2398
2405
  return e;
2399
- }, ad = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), ms = (e) => typeof e == "number" && !isNaN(e), jo = {
2406
+ }, ld = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), ms = (e) => typeof e == "number" && !isNaN(e), jo = {
2400
2407
  default: {
2401
2408
  padding: "auto",
2402
2409
  xAxis: {
@@ -2471,7 +2478,7 @@ const pr = (e) => (t) => {
2471
2478
  }
2472
2479
  }
2473
2480
  };
2474
- function ld(e) {
2481
+ function cd(e) {
2475
2482
  return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
2476
2483
  }
2477
2484
  const Wn = {
@@ -2490,7 +2497,7 @@ const Wn = {
2490
2497
  years: "YYYY"
2491
2498
  }
2492
2499
  };
2493
- function cd(e) {
2500
+ function dd(e) {
2494
2501
  for (const t in Wn.input)
2495
2502
  if (st(
2496
2503
  e,
@@ -2500,7 +2507,7 @@ function cd(e) {
2500
2507
  return t;
2501
2508
  return null;
2502
2509
  }
2503
- const dd = {
2510
+ const ud = {
2504
2511
  inner: {
2505
2512
  label: {
2506
2513
  type: "inner",
@@ -2517,7 +2524,7 @@ const dd = {
2517
2524
  labelHeight: 28
2518
2525
  }
2519
2526
  }
2520
- }, ud = (e) => {
2527
+ }, fd = (e) => {
2521
2528
  const t = e.reduce((a, l) => a + l.value, 0), r = e.map((a) => a.value / t * 100).map((a) => Math.round(a)), s = 100 - r.reduce((a, l) => a + l, 0);
2522
2529
  for (let a = 0; a < Math.abs(s); a++)
2523
2530
  s > 0 ? r[a % r.length]++ : r[a % r.length]--;
@@ -2525,10 +2532,10 @@ const dd = {
2525
2532
  x: a.x,
2526
2533
  percent: r[l]
2527
2534
  }));
2528
- }, { Text: Bo } = _t, ps = 400, fd = an(Sl), md = an(Cl), pd = an(xl), hd = {
2529
- line: fd,
2530
- bar: md,
2531
- pie: pd
2535
+ }, { Text: Bo } = _t, ps = 400, md = an(Sl), pd = an(Cl), hd = an(xl), gd = {
2536
+ line: md,
2537
+ bar: pd,
2538
+ pie: hd
2532
2539
  }, hs = ({
2533
2540
  type: e,
2534
2541
  data: t,
@@ -2546,7 +2553,7 @@ const dd = {
2546
2553
  return t.reduce((g, y) => g + y.value, 0);
2547
2554
  }, [t, e]), u = me(() => {
2548
2555
  if (e === "pie")
2549
- return ud(t);
2556
+ return fd(t);
2550
2557
  }, [t, e]), f = N(
2551
2558
  (v) => {
2552
2559
  if (!u)
@@ -2563,7 +2570,7 @@ const dd = {
2563
2570
  }, [f, u]), p = N(
2564
2571
  ({ percent: v, x: g }) => v < 0.07 ? "" : f(g),
2565
2572
  [f]
2566
- ), h = hd[e], m = me(() => gd({
2573
+ ), h = gd[e], m = me(() => yd({
2567
2574
  type: e,
2568
2575
  data: t,
2569
2576
  isGroup: n,
@@ -2607,7 +2614,7 @@ const dd = {
2607
2614
  }
2608
2615
  ) : /* @__PURE__ */ i(ae, { children: `Unknown graph type: ${e}` });
2609
2616
  };
2610
- function gd(e) {
2617
+ function yd(e) {
2611
2618
  const {
2612
2619
  type: t,
2613
2620
  data: n,
@@ -2619,7 +2626,7 @@ function gd(e) {
2619
2626
  fixedHeight: c = !1
2620
2627
  } = e;
2621
2628
  let u = { ...jo[t] };
2622
- if (u || (u = { ...jo.default }), u.data = n, u.height = c ? ps : void 0, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...dd.inner }, u.legend.itemValue = s, u.label.content = a) : (u.xField = "x", u.yField = "value", u.seriesField = "type", u.isGroup = r, o && (u.isStack = !0, u.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
2629
+ if (u || (u = { ...jo.default }), u.data = n, u.height = c ? ps : void 0, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...ud.inner }, u.legend.itemValue = s, u.label.content = a) : (u.xField = "x", u.yField = "value", u.seriesField = "type", u.isGroup = r, o && (u.isStack = !0, u.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
2623
2630
  const f = l.valueOpts.min, d = l.valueOpts.max;
2624
2631
  u.yAxis = {
2625
2632
  min: f,
@@ -2628,7 +2635,7 @@ function gd(e) {
2628
2635
  }
2629
2636
  return u;
2630
2637
  }
2631
- const yd = ({
2638
+ const vd = ({
2632
2639
  ooui: e,
2633
2640
  model: t,
2634
2641
  domain: n,
@@ -2637,7 +2644,7 @@ const yd = ({
2637
2644
  manualIds: s,
2638
2645
  fixedHeight: a
2639
2646
  }) => {
2640
- const { t: l } = he(), { error: c, loading: u, values: f, type: d, evaluatedEntries: p, fetchData: h } = od({
2647
+ const { t: l } = he(), { error: c, loading: u, values: f, type: d, evaluatedEntries: p, fetchData: h } = id({
2641
2648
  model: t,
2642
2649
  ooui: e,
2643
2650
  limit: o,
@@ -2665,7 +2672,7 @@ const yd = ({
2665
2672
  );
2666
2673
  }, Rt = 80, at = ka(
2667
2674
  null
2668
- ), vd = (e) => {
2675
+ ), wd = (e) => {
2669
2676
  const {
2670
2677
  children: t,
2671
2678
  currentView: n,
@@ -2783,7 +2790,7 @@ const yd = ({
2783
2790
  children: t
2784
2791
  }
2785
2792
  );
2786
- }, wd = () => !!te(at), lo = () => {
2793
+ }, bd = () => !!te(at), lo = () => {
2787
2794
  const e = te(at);
2788
2795
  return e || {
2789
2796
  title: "",
@@ -2872,7 +2879,7 @@ const yd = ({
2872
2879
  setIsInfiniteTree: () => {
2873
2880
  }
2874
2881
  };
2875
- }, bd = (e, t) => {
2882
+ }, Sd = (e, t) => {
2876
2883
  const { view_id: n, model: r, context: o, domain: s, limit: a, manualIds: l, fixedHeight: c } = e, [u, f] = x(!1), [d, p] = x(), h = te(
2877
2884
  at
2878
2885
  ), { setGraphIsLoading: m = void 0 } = h || {}, [v] = ze($.getHandler().getView);
@@ -2907,7 +2914,7 @@ const yd = ({
2907
2914
  operator: y.operator
2908
2915
  } : {};
2909
2916
  return /* @__PURE__ */ i(
2910
- td,
2917
+ nd,
2911
2918
  {
2912
2919
  showPercent: y.showPercent,
2913
2920
  totalDomain: y.totalDomain,
@@ -2926,7 +2933,7 @@ const yd = ({
2926
2933
  case "bar":
2927
2934
  case "pie":
2928
2935
  return /* @__PURE__ */ i(
2929
- yd,
2936
+ vd,
2930
2937
  {
2931
2938
  model: r,
2932
2939
  context: o,
@@ -2940,9 +2947,9 @@ const yd = ({
2940
2947
  default:
2941
2948
  return /* @__PURE__ */ i(ae, { children: `Graph ${d.type} not implemented` });
2942
2949
  }
2943
- }, un = yt(bd);
2950
+ }, un = yt(Sd);
2944
2951
  var fn = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e))(fn || {});
2945
- const by = Object.values(fn), Sd = (e) => {
2952
+ const Cy = Object.values(fn), Cd = (e) => {
2946
2953
  const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: s } = e, [a, l] = x(!1), [c, u] = x(), [f, d] = x(), [p] = ze(
2947
2954
  $.getHandler().readForView
2948
2955
  ), h = N(async () => {
@@ -2966,10 +2973,10 @@ const by = Object.values(fn), Sd = (e) => {
2966
2973
  fetchData: h,
2967
2974
  graphData: f
2968
2975
  };
2969
- }, Cd = (e, t) => {
2976
+ }, xd = (e, t) => {
2970
2977
  const { view_id: n, model: r, context: o, domain: s, manualIds: a, fixedHeight: l } = e, c = te(
2971
2978
  at
2972
- ), { setGraphIsLoading: u = void 0 } = c || {}, { error: f, loading: d, graphData: p, fetchData: h } = Sd({
2979
+ ), { setGraphIsLoading: u = void 0 } = c || {}, { error: f, loading: d, graphData: p, fetchData: h } = Cd({
2973
2980
  view_id: n,
2974
2981
  model: r,
2975
2982
  domain: s,
@@ -3025,7 +3032,7 @@ const by = Object.values(fn), Sd = (e) => {
3025
3032
  default:
3026
3033
  return /* @__PURE__ */ i(ae, { children: `Graph ${p.type} not implemented` });
3027
3034
  }
3028
- }, gs = yt(Cd), bt = mt.createContext(null), xd = (e) => {
3035
+ }, gs = yt(xd), bt = mt.createContext(null), Id = (e) => {
3029
3036
  const {
3030
3037
  children: t,
3031
3038
  openAction: n,
@@ -3057,8 +3064,8 @@ const by = Object.values(fn), Sd = (e) => {
3057
3064
  children: t
3058
3065
  }
3059
3066
  );
3060
- }, { useToken: Id } = Ge, { Text: Td } = _t, ys = (e) => {
3061
- const { title: t, children: n, action: r, openAction: o, parms: s } = e, { token: a } = Id(), l = Object.keys(s).length > 0;
3067
+ }, { useToken: Td } = Ge, { Text: Od } = _t, ys = (e) => {
3068
+ const { title: t, children: n, action: r, openAction: o, parms: s } = e, { token: a } = Td(), l = Object.keys(s).length > 0;
3062
3069
  return /* @__PURE__ */ E(
3063
3070
  "div",
3064
3071
  {
@@ -3094,7 +3101,7 @@ const by = Object.values(fn), Sd = (e) => {
3094
3101
  cursor: l ? "grab" : void 0,
3095
3102
  overflow: "hidden"
3096
3103
  },
3097
- children: /* @__PURE__ */ i(Td, { ellipsis: !0, children: t })
3104
+ children: /* @__PURE__ */ i(Od, { ellipsis: !0, children: t })
3098
3105
  }
3099
3106
  ),
3100
3107
  r && /* @__PURE__ */ i(we, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ i(ke, { justify: "end", align: "middle", children: /* @__PURE__ */ i(
@@ -3114,11 +3121,11 @@ const by = Object.values(fn), Sd = (e) => {
3114
3121
  ]
3115
3122
  }
3116
3123
  );
3117
- }, { useToken: Od } = Ge, Fd = (e) => {
3124
+ }, { useToken: Fd } = Ge, Ad = (e) => {
3118
3125
  const { ooui: t } = e, n = t.actionId !== void 0;
3119
- return /* @__PURE__ */ i(_e, { ooui: t, children: n ? /* @__PURE__ */ i(Ln, { children: /* @__PURE__ */ i(Rd, { ooui: t }) }) : /* @__PURE__ */ i(Ad, { ooui: t }) });
3120
- }, Ad = (e) => {
3121
- const { token: t } = Od(), { ooui: n, value: r } = e, o = /* @__PURE__ */ E(ae, { children: [
3126
+ return /* @__PURE__ */ i(_e, { ooui: t, children: n ? /* @__PURE__ */ i(Ln, { children: /* @__PURE__ */ i(_d, { ooui: t }) }) : /* @__PURE__ */ i(Rd, { ooui: t }) });
3127
+ }, Rd = (e) => {
3128
+ const { token: t } = Fd(), { ooui: n, value: r } = e, o = /* @__PURE__ */ E(ae, { children: [
3122
3129
  /* @__PURE__ */ E("span", { children: [
3123
3130
  n.label,
3124
3131
  " "
@@ -3143,8 +3150,8 @@ const by = Object.values(fn), Sd = (e) => {
3143
3150
  }
3144
3151
  );
3145
3152
  return n.card ? /* @__PURE__ */ i(Ur, { children: l }) : l;
3146
- }, Rd = (e) => {
3147
- const { ooui: t } = e, { actionId: n } = t, { actionData: r, treeShortcut: o, loading: s, error: a, fetchData: l } = Xc(n), c = sr(
3153
+ }, _d = (e) => {
3154
+ const { ooui: t } = e, { actionId: n } = t, { actionData: r, treeShortcut: o, loading: s, error: a, fetchData: l } = Zc(n), c = sr(
3148
3155
  fn.FEATURE_READFORVIEW
3149
3156
  ), u = te(
3150
3157
  bt
@@ -3179,13 +3186,13 @@ const by = Object.values(fn), Sd = (e) => {
3179
3186
  }
3180
3187
  );
3181
3188
  };
3182
- function _d(e) {
3189
+ function Vd(e) {
3183
3190
  return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
3184
3191
  }
3185
- const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs, { ...e }) }), vs = (e) => {
3192
+ const Ed = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs, { ...e }) }), vs = (e) => {
3186
3193
  const { t } = he(), { ooui: n, value: r } = e;
3187
3194
  let o = r, s = An, a = r;
3188
- if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ? _d(n.label) : `${t("not")} ${n.label.toLowerCase()}`, s = Bc), !o)
3195
+ if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ? Vd(n.label) : `${t("not")} ${n.label.toLowerCase()}`, s = Hc), !o)
3189
3196
  return null;
3190
3197
  const l = n.colors === "auto" ? s(a) : n.colors[a] || s(a);
3191
3198
  return /* @__PURE__ */ i(co, { color: l, children: o });
@@ -3197,10 +3204,10 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3197
3204
  borderStyle: "solid",
3198
3205
  borderWidth: "1px"
3199
3206
  }, t = `${t}20`), /* @__PURE__ */ i(Wr, { ...e, style: n, color: t, children: e.children });
3200
- }, Ed = (e) => {
3201
- const { ooui: t } = e;
3202
- return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Dd, { ooui: t }) });
3203
3207
  }, Dd = (e) => {
3208
+ const { ooui: t } = e;
3209
+ return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Pd, { ooui: t }) });
3210
+ }, Pd = (e) => {
3204
3211
  const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, s = o.filter((O) => O.operation !== "pendingRemove").map((O) => O.id), [a, l] = x([]), [c, u] = x(), [f, d] = x(!1), { relation: p, context: h, readOnly: m, field: v } = n, g = te(Be), { getContext: y } = g || {};
3205
3212
  St(() => {
3206
3213
  I();
@@ -3281,14 +3288,14 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3281
3288
  filterOption: (O, T) => T.label.toLowerCase().includes(O.toString())
3282
3289
  }
3283
3290
  ) }) });
3284
- }, Pd = (e) => {
3291
+ }, kd = (e) => {
3285
3292
  switch (e) {
3286
3293
  case "form":
3287
3294
  return hn;
3288
3295
  case "tree":
3289
3296
  return Dn;
3290
3297
  case "notebook":
3291
- return zp;
3298
+ return Jp;
3292
3299
  case "group":
3293
3300
  return pa;
3294
3301
  case "label":
@@ -3296,90 +3303,90 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3296
3303
  case "char":
3297
3304
  return es;
3298
3305
  case "text":
3299
- return Qp;
3306
+ return Xp;
3300
3307
  case "button":
3301
3308
  return oo;
3302
3309
  case "buttonGroup":
3303
- return nc;
3310
+ return rc;
3304
3311
  case "selection":
3305
3312
  return ts;
3306
3313
  case "many2one":
3307
- return wp;
3314
+ return bp;
3308
3315
  case "boolean":
3309
- return vc;
3316
+ return wc;
3310
3317
  case "integer":
3311
3318
  return Gn;
3312
3319
  case "float":
3313
3320
  return Rs;
3314
3321
  case "progressbar":
3315
- return tu;
3322
+ return nu;
3316
3323
  case "date":
3317
- return ch;
3318
- case "datetime":
3319
3324
  return dh;
3320
- case "time":
3325
+ case "datetime":
3321
3326
  return uh;
3327
+ case "time":
3328
+ return fh;
3322
3329
  case "one2many":
3323
3330
  case "one2many_list":
3324
3331
  case "many2many":
3325
- return Up;
3332
+ return Wp;
3326
3333
  case "separator":
3327
- return Zp;
3334
+ return eh;
3328
3335
  case "reference":
3329
- return mh;
3336
+ return ph;
3330
3337
  case "binary":
3331
- return gh;
3338
+ return yh;
3332
3339
  case "image":
3333
- return Cc;
3340
+ return xc;
3334
3341
  case "url":
3335
- return xh;
3336
- case "email":
3337
3342
  return Ih;
3343
+ case "email":
3344
+ return Th;
3338
3345
  case "float_time":
3339
- return Kp;
3346
+ return qp;
3340
3347
  case "fiber_grid":
3341
- return Ic;
3348
+ return Tc;
3342
3349
  case "timeline":
3343
- return Wc;
3350
+ return Gc;
3344
3351
  case "indicator":
3345
- return Fd;
3352
+ return Ad;
3346
3353
  case "tags":
3347
- return Ed;
3354
+ return Dd;
3348
3355
  case "tag":
3349
- return Vd;
3356
+ return Ed;
3350
3357
  case "multicheckbox":
3351
- return Yh;
3358
+ return zh;
3352
3359
  case "markdown":
3353
- return Jh;
3360
+ return Qh;
3354
3361
  case "radio":
3355
- return Xh;
3362
+ return Zh;
3356
3363
  case "switch":
3357
- return eg;
3364
+ return tg;
3358
3365
  case "steps":
3359
- return ng;
3366
+ return rg;
3360
3367
  case "arrow_steps":
3361
- return ig;
3368
+ return sg;
3362
3369
  case "codeeditor":
3363
3370
  case "json":
3364
- return sg;
3371
+ return ag;
3365
3372
  case "comments_timeline":
3366
- return pg;
3367
- case "html_preview":
3368
3373
  return hg;
3369
- case "alert":
3374
+ case "html_preview":
3370
3375
  return gg;
3376
+ case "alert":
3377
+ return yg;
3371
3378
  default:
3372
3379
  return;
3373
3380
  }
3374
- }, kd = (e) => {
3375
- const { ooui: t } = e, { type: n } = t, r = Pd(n);
3381
+ }, $d = (e) => {
3382
+ const { ooui: t } = e, { type: n } = t, r = kd(n);
3376
3383
  return r ? $a(r, e) : null;
3377
- }, $d = ({
3384
+ }, Nd = ({
3378
3385
  item: e,
3379
3386
  responsiveBehaviour: t
3380
3387
  }) => ({
3381
3388
  gridColumnStart: "span " + (t ? 1 : e.colspan)
3382
- }), Nd = ({
3389
+ }), Md = ({
3383
3390
  row: e,
3384
3391
  mustFillWithEmpties: t,
3385
3392
  numberOfColumns: n
@@ -3398,10 +3405,10 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3398
3405
  r.push(new ln({ string: "" }));
3399
3406
  }
3400
3407
  }), r;
3401
- }, Md = ({
3408
+ }, Ld = ({
3402
3409
  row: e,
3403
3410
  numberOfColumns: t
3404
- }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), Ld = (e, t) => {
3411
+ }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), jd = (e, t) => {
3405
3412
  const n = e.map((r) => r instanceof ln && r.fieldForLabel || r instanceof qa ? "auto" : "1fr");
3406
3413
  if (n.length < t) {
3407
3414
  const r = t - n.length;
@@ -3409,25 +3416,25 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3409
3416
  n.push("1fr");
3410
3417
  }
3411
3418
  return n.join(" ");
3412
- }, jd = (e, t) => {
3419
+ }, Bd = (e, t) => {
3413
3420
  const n = t ? "1fr" : "auto", r = "auto";
3414
3421
  let o = "";
3415
3422
  for (let s = 0; s < e; s++)
3416
3423
  o += s % 2 ? n : r, s + 1 < e && (o += " ");
3417
3424
  return o;
3418
- }, Bd = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), Ar = (e) => {
3425
+ }, Hd = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), Ar = (e) => {
3419
3426
  const { container: t, responsiveBehaviour: n } = e, { rows: r } = t;
3420
3427
  let { columns: o } = t;
3421
- const s = Bd(r);
3428
+ const s = Hd(r);
3422
3429
  s < o && (o = s);
3423
3430
  let a = !1, l = [];
3424
3431
  const c = r.map((d, p) => {
3425
- const h = d.filter((g) => !g.invisible), m = Md({
3432
+ const h = d.filter((g) => !g.invisible), m = Ld({
3426
3433
  row: h,
3427
3434
  numberOfColumns: o
3428
3435
  });
3429
3436
  let v = m;
3430
- return (p === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (v = Nd({
3437
+ return (p === 0 || !(d.length === 1 && d.some((g) => g.type === "group"))) && (v = Md({
3431
3438
  row: m,
3432
3439
  numberOfColumns: o,
3433
3440
  mustFillWithEmpties: n
@@ -3435,17 +3442,17 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3435
3442
  "div",
3436
3443
  {
3437
3444
  style: {
3438
- ...$d({ item: g, responsiveBehaviour: n }),
3445
+ ...Nd({ item: g, responsiveBehaviour: n }),
3439
3446
  minWidth: 0
3440
3447
  },
3441
- children: kd({
3448
+ children: $d({
3442
3449
  ooui: g,
3443
3450
  responsiveBehaviour: n
3444
3451
  })
3445
3452
  },
3446
3453
  g.key
3447
3454
  )));
3448
- }), u = r.length === 1 ? Ld(l, o) : jd(o, a);
3455
+ }), u = r.length === 1 ? jd(l, o) : Bd(o, a);
3449
3456
  return /* @__PURE__ */ i("div", { style: {
3450
3457
  display: "grid",
3451
3458
  gridTemplateColumns: n ? "auto" : u,
@@ -3453,12 +3460,12 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3453
3460
  minHeight: 0,
3454
3461
  minWidth: 0
3455
3462
  }, children: c });
3456
- }, { confirm: Hd } = ct, mn = ({
3463
+ }, { confirm: Ud } = ct, mn = ({
3457
3464
  onOk: e,
3458
3465
  onCancel: t,
3459
3466
  t: n
3460
3467
  }) => {
3461
- Hd({
3468
+ Ud({
3462
3469
  title: n("unsavedChanges"),
3463
3470
  icon: /* @__PURE__ */ i(Vt, {}),
3464
3471
  centered: !0,
@@ -3468,22 +3475,22 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3468
3475
  onCancel: t,
3469
3476
  cancelText: n("cancel")
3470
3477
  });
3471
- }, { error: Ud } = ct, Ho = (e) => {
3472
- Ud({
3478
+ }, { error: Wd } = ct, Ho = (e) => {
3479
+ Wd({
3473
3480
  title: e("formHasErrors"),
3474
3481
  icon: /* @__PURE__ */ i(Vt, {}),
3475
3482
  centered: !0,
3476
3483
  content: e("fillRequiredFields")
3477
3484
  });
3478
- }, { warning: Wd } = ct, Gd = (e, t, n) => {
3479
- Wd({
3485
+ }, { warning: Gd } = ct, Kd = (e, t, n) => {
3486
+ Gd({
3480
3487
  title: e,
3481
3488
  icon: /* @__PURE__ */ i(Li, {}),
3482
3489
  centered: !0,
3483
3490
  content: t,
3484
3491
  onOk: n
3485
3492
  });
3486
- }, ws = mt.createContext(null), Kd = (e) => {
3493
+ }, ws = mt.createContext(null), qd = (e) => {
3487
3494
  const { children: t, setTitle: n } = e;
3488
3495
  return /* @__PURE__ */ i(
3489
3496
  ws.Provider,
@@ -3498,7 +3505,7 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3498
3505
  var t;
3499
3506
  for (let n = 0; n < e.length; n++)
3500
3507
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
3501
- }, qd = (e, t) => {
3508
+ }, Yd = (e, t) => {
3502
3509
  const { children: n, globalValues: r = {} } = e, o = J(), s = J(), [a, l] = x(!1), c = te(
3503
3510
  bt
3504
3511
  ), { openAction: u } = c || {}, f = J([]), { t: d } = he();
@@ -3575,7 +3582,7 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3575
3582
  return await I({ actionData: T, fields: R, values: S, context: V });
3576
3583
  if (F === "ir.actions.act_url")
3577
3584
  window.open(
3578
- Hc(T.url, { ...S, context: V }),
3585
+ Uc(T.url, { ...S, context: V }),
3579
3586
  "_blank"
3580
3587
  );
3581
3588
  else
@@ -3625,7 +3632,7 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3625
3632
  context: P
3626
3633
  }), {};
3627
3634
  } else {
3628
- const { initialView: L, views: W } = await Yd({
3635
+ const { initialView: L, views: W } = await zd({
3629
3636
  model: A.res_model,
3630
3637
  context: P,
3631
3638
  view_mode: A.view_mode,
@@ -3727,7 +3734,7 @@ const Vd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(vs,
3727
3734
  }
3728
3735
  ) });
3729
3736
  };
3730
- async function Yd({
3737
+ async function zd({
3731
3738
  views: e,
3732
3739
  view_mode: t,
3733
3740
  model: n,
@@ -3776,13 +3783,13 @@ async function Yd({
3776
3783
  }
3777
3784
  return { views: s, initialView: a };
3778
3785
  }
3779
- const zd = yt(qd), Jd = (e, t) => {
3786
+ const Jd = yt(Yd), Qd = (e, t) => {
3780
3787
  const n = {};
3781
3788
  return Object.keys(e).forEach((r) => {
3782
3789
  n[r] = e[r], t != null && t[r] && (n[r].context = t[r]);
3783
3790
  }), n;
3784
- }, Qd = 800;
3785
- function Xd(e, t) {
3791
+ }, Xd = 800;
3792
+ function Zd(e, t) {
3786
3793
  const {
3787
3794
  model: n,
3788
3795
  id: r,
@@ -3807,7 +3814,7 @@ function Xd(e, t) {
3807
3814
  forcedValues: O = {},
3808
3815
  parentWidth: T,
3809
3816
  onMustRefreshParent: R
3810
- } = e, { t: S } = he(), [V, A] = x(!1), [F, P] = x(), [_, k] = x(), [L] = pt.useForm(), [W, M] = x(), [D, Q] = x(), ne = te(ws), [X, H] = x(), [oe, Z] = x(!1), B = J(), G = J({}), j = J({}), ee = J(!1), le = J(!1), K = J(!1), ve = (T !== void 0 ? T : X) < Qd, $e = te(Be), { activeId: Le, getPlainValues: Pe } = $e || {}, Fe = J(!1), qe = te(
3817
+ } = e, { t: S } = he(), [V, A] = x(!1), [F, P] = x(), [_, k] = x(), [L] = pt.useForm(), [W, M] = x(), [D, Q] = x(), ne = te(ws), [X, H] = x(), [oe, Z] = x(!1), B = J(), G = J({}), j = J({}), ee = J(!1), le = J(!1), K = J(!1), ve = (T !== void 0 ? T : X) < Xd, $e = te(Be), { activeId: Le, getPlainValues: Pe } = $e || {}, Fe = J(!1), qe = te(
3811
3818
  at
3812
3819
  ), {
3813
3820
  setFormIsSaving: Ie = void 0,
@@ -3948,7 +3955,7 @@ function Xd(e, t) {
3948
3955
  fe == null || fe(!0), P(void 0), U != null && U.fields ? (se = U.fields, ce = U.arch) : (se = D, ce = W), h && (U == null ? void 0 : U.forceRefresh) !== !0 ? q = h : { values: q, defaultGetCalled: xe } = await Dt({
3949
3956
  fields: se,
3950
3957
  arch: ce
3951
- }), w && (q = { ...Lc(w), ...q }), G.current = Jt(q, se), Qe({
3958
+ }), w && (q = { ...jc(w), ...q }), G.current = Jt(q, se), Qe({
3952
3959
  values: q,
3953
3960
  fields: se,
3954
3961
  reset: !0,
@@ -4006,7 +4013,7 @@ function Xd(e, t) {
4006
4013
  if (se = (await $.getHandler().readObjects({
4007
4014
  model: n,
4008
4015
  ids: [ge()],
4009
- fields: Jd(U, xe == null ? void 0 : xe.contextForFields),
4016
+ fields: Qd(U, xe == null ? void 0 : xe.contextForFields),
4010
4017
  context: y
4011
4018
  }))[0], g)
4012
4019
  return { values: se, defaultGetCalled: ce };
@@ -4092,7 +4099,7 @@ function Xd(e, t) {
4092
4099
  const xe = new ki(U);
4093
4100
  return xe.parse(q, {
4094
4101
  readOnly: f || ce,
4095
- values: Ac(
4102
+ values: Rc(
4096
4103
  {
4097
4104
  ...se,
4098
4105
  ...Ee()
@@ -4124,7 +4131,7 @@ function Xd(e, t) {
4124
4131
  target: Ye(D),
4125
4132
  fields: D
4126
4133
  }), se = Object.keys(q);
4127
- if (se.length !== 0 && !(Nc({
4134
+ if (se.length !== 0 && !(Mc({
4128
4135
  changedFields: se,
4129
4136
  formOoui: _,
4130
4137
  types: [
@@ -4161,7 +4168,7 @@ function Xd(e, t) {
4161
4168
  });
4162
4169
  return;
4163
4170
  }
4164
- const se = jc({
4171
+ const se = Bc({
4165
4172
  values: {
4166
4173
  ...Ye(D),
4167
4174
  context: {
@@ -4182,7 +4189,7 @@ function Xd(e, t) {
4182
4189
  const xe = {
4183
4190
  ...Ye(D),
4184
4191
  ...ce.value
4185
- }, Xe = Rc({
4192
+ }, Xe = _c({
4186
4193
  values: xe,
4187
4194
  fields: D
4188
4195
  });
@@ -4198,12 +4205,12 @@ function Xd(e, t) {
4198
4205
  }
4199
4206
  if (ce.warning && ce.warning.title && ce.warning.message && !ee.current) {
4200
4207
  const { title: xe, message: Xe } = ce.warning;
4201
- ee.current = !0, Gd(xe, Xe, () => {
4208
+ ee.current = !0, Kd(xe, Xe, () => {
4202
4209
  ee.current = !1;
4203
4210
  });
4204
4211
  }
4205
4212
  if (ce.domain && Object.keys(ce.domain).length > 0) {
4206
- const xe = Mc({
4213
+ const xe = Lc({
4207
4214
  fieldsDomain: ce.domain,
4208
4215
  fields: D
4209
4216
  });
@@ -4317,7 +4324,7 @@ function Xd(e, t) {
4317
4324
  }
4318
4325
  }
4319
4326
  const Ra = () => !_ && !F ? /* @__PURE__ */ i(We, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(
4320
- zl,
4327
+ Jl,
4321
4328
  {
4322
4329
  getValues: z,
4323
4330
  getPlainValues: ye,
@@ -4397,7 +4404,7 @@ function Xd(e, t) {
4397
4404
  }
4398
4405
  ) : null;
4399
4406
  }
4400
- const hn = yt(Xd), gn = (e) => {
4407
+ const hn = yt(Zd), gn = (e) => {
4401
4408
  const {
4402
4409
  visible: t,
4403
4410
  id: n,
@@ -4451,7 +4458,7 @@ const hn = yt(Xd), gn = (e) => {
4451
4458
  ] });
4452
4459
  }
4453
4460
  const R = f * 0.95;
4454
- return /* @__PURE__ */ i(Kd, { setTitle: p, children: /* @__PURE__ */ i(
4461
+ return /* @__PURE__ */ i(qd, { setTitle: p, children: /* @__PURE__ */ i(
4455
4462
  ct,
4456
4463
  {
4457
4464
  title: a ? T() : d,
@@ -4476,8 +4483,8 @@ const hn = yt(Xd), gn = (e) => {
4476
4483
  )
4477
4484
  }
4478
4485
  ) });
4479
- }, { error: Zd } = ct, Ht = (e) => {
4480
- Zd({
4486
+ }, { error: eu } = ct, Ht = (e) => {
4487
+ eu({
4481
4488
  title: "Error",
4482
4489
  icon: /* @__PURE__ */ i(Vt, {}),
4483
4490
  centered: !0,
@@ -4534,7 +4541,7 @@ const hn = yt(Xd), gn = (e) => {
4534
4541
  }, [r, p, t, e, n]);
4535
4542
  return { loading: s, treeView: l, formView: u };
4536
4543
  };
4537
- function eu(e) {
4544
+ function tu(e) {
4538
4545
  if (e)
4539
4546
  try {
4540
4547
  if (e.includes(":")) {
@@ -4564,17 +4571,17 @@ function Cs(e) {
4564
4571
  });
4565
4572
  return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
4566
4573
  }
4567
- const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs, {}) }), xs = ({ value: e }) => {
4574
+ const nu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs, {}) }), xs = ({ value: e }) => {
4568
4575
  const t = `${(e || 0).toLocaleString("en-US", {
4569
4576
  minimumIntegerDigits: 1,
4570
4577
  maximumFractionDigits: 4,
4571
4578
  useGrouping: !1
4572
4579
  })}%`;
4573
4580
  return /* @__PURE__ */ E("div", { style: { flex: 1, display: "flex", alignItems: "center" }, children: [
4574
- /* @__PURE__ */ i(nu, { percent: e }),
4581
+ /* @__PURE__ */ i(ru, { percent: e }),
4575
4582
  /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
4576
4583
  ] });
4577
- }, nu = dn(ja)`
4584
+ }, ru = dn(ja)`
4578
4585
  .ant-progress-outer {
4579
4586
  margin-right: 0px;
4580
4587
  padding-right: 0px;
@@ -4582,7 +4589,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4582
4589
  .ant-progress-text {
4583
4590
  display: none;
4584
4591
  }
4585
- `, ru = ({
4592
+ `, ou = ({
4586
4593
  onRetrieveData: e,
4587
4594
  onItemClick: t,
4588
4595
  onOpenChange: n
@@ -4677,7 +4684,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4677
4684
  context: r
4678
4685
  });
4679
4686
  s(I);
4680
- const C = ou(I);
4687
+ const C = iu(I);
4681
4688
  let b = {};
4682
4689
  if (C.length > 0 && (b = { ...(O = await m({
4683
4690
  model: n,
@@ -4726,7 +4733,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4726
4733
  }
4727
4734
  }
4728
4735
  return /* @__PURE__ */ i(
4729
- ru,
4736
+ ou,
4730
4737
  {
4731
4738
  onRetrieveData: y,
4732
4739
  onItemClick: w,
@@ -4735,7 +4742,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4735
4742
  }
4736
4743
  }
4737
4744
  );
4738
- }, ou = (e) => {
4745
+ }, iu = (e) => {
4739
4746
  const { toolbar: t } = e, r = ["action", "relate", "print"].flatMap((o) => {
4740
4747
  const s = t[o];
4741
4748
  return (s == null ? void 0 : s.flatMap((a) => {
@@ -4746,13 +4753,13 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4746
4753
  return [
4747
4754
  ...new Set(r.filter((o) => o in e.fields))
4748
4755
  ];
4749
- }, iu = (e) => {
4756
+ }, su = (e) => {
4750
4757
  const { m2oField: t } = e;
4751
4758
  return t ? /* @__PURE__ */ E(Je, { children: [
4752
4759
  /* @__PURE__ */ i(ae, { children: t.value }),
4753
4760
  /* @__PURE__ */ i(uo, { id: t.id, model: t.model })
4754
4761
  ] }) : /* @__PURE__ */ i(ae, {});
4755
- }, su = (e) => {
4762
+ }, au = (e) => {
4756
4763
  const { value: t, context: n, selectionValues: r } = e, [o, s] = x(), [a, l] = x(!1), [c, u] = t ? t.split(",") : [], f = parseInt(u), d = N(async () => {
4757
4764
  if (!t || t && o)
4758
4765
  return;
@@ -4777,7 +4784,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4777
4784
  /* @__PURE__ */ i(ae, { children: o }),
4778
4785
  /* @__PURE__ */ i(uo, { id: f, model: c })
4779
4786
  ] });
4780
- }, au = (e) => {
4787
+ }, lu = (e) => {
4781
4788
  const { ooui: t, value: n } = e;
4782
4789
  if (!n)
4783
4790
  return null;
@@ -4785,14 +4792,14 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4785
4792
  t.selectionValues.size ? r = t.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
4786
4793
  const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = An(r);
4787
4794
  return /* @__PURE__ */ i(Ft, { title: r, children: /* @__PURE__ */ i(Fi, { alt: r, style: { backgroundColor: s }, children: o }) });
4788
- }, lu = {
4795
+ }, cu = {
4789
4796
  en_US: Pl,
4790
4797
  es_ES: kl,
4791
4798
  ca_ES: $l
4792
4799
  }, fo = () => {
4793
4800
  const { locale: e } = he();
4794
- return lu[e];
4795
- }, { useToken: cu } = Ge, Ct = {
4801
+ return cu[e];
4802
+ }, { useToken: du } = Ge, Ct = {
4796
4803
  date: {
4797
4804
  placeholder: "__/__/____",
4798
4805
  dateDisplayFormat: "DD/MM/YYYY",
@@ -4805,9 +4812,9 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4805
4812
  }
4806
4813
  }, Is = (e) => {
4807
4814
  const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
4808
- return /* @__PURE__ */ i(_e, { required: r, ...e, children: /* @__PURE__ */ i(du, { ooui: t, showTime: n }) });
4809
- }, du = (e) => {
4810
- const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: s, readOnly: a, required: l } = r, { token: c } = cu(), u = fo(), f = l && !a ? { backgroundColor: c.colorPrimaryBg } : void 0, d = o ? "time" : "date", p = (v) => {
4815
+ return /* @__PURE__ */ i(_e, { required: r, ...e, children: /* @__PURE__ */ i(uu, { ooui: t, showTime: n }) });
4816
+ }, uu = (e) => {
4817
+ const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: s, readOnly: a, required: l } = r, { token: c } = du(), u = fo(), f = l && !a ? { backgroundColor: c.colorPrimaryBg } : void 0, d = o ? "time" : "date", p = (v) => {
4811
4818
  n == null || n(v);
4812
4819
  }, h = (v) => {
4813
4820
  if (v == null) {
@@ -4851,7 +4858,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4851
4858
  },
4852
4859
  o
4853
4860
  )) });
4854
- }, uu = ({
4861
+ }, fu = ({
4855
4862
  value: e = "",
4856
4863
  onChange: t,
4857
4864
  maxLength: n,
@@ -4930,7 +4937,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4930
4937
  ]
4931
4938
  }
4932
4939
  );
4933
- }, fu = ({
4940
+ }, mu = ({
4934
4941
  value: e
4935
4942
  }) => me(
4936
4943
  () => /* @__PURE__ */ i(
@@ -4946,9 +4953,9 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4946
4953
  }
4947
4954
  ),
4948
4955
  [e]
4949
- ), mu = ({
4956
+ ), pu = ({
4950
4957
  value: e
4951
- }) => me(() => /* @__PURE__ */ i(Ts, { emails: e }), [e]), pu = ({ value: e }) => me(() => /* @__PURE__ */ i(iu, { m2oField: e }), [e]), hu = ({ value: e }) => me(
4958
+ }) => me(() => /* @__PURE__ */ i(Ts, { emails: e }), [e]), hu = ({ value: e }) => me(() => /* @__PURE__ */ i(su, { m2oField: e }), [e]), gu = ({ value: e }) => me(
4952
4959
  () => /* @__PURE__ */ i(
4953
4960
  In,
4954
4961
  {
@@ -4956,7 +4963,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4956
4963
  }
4957
4964
  ),
4958
4965
  [e]
4959
- ), gu = ({ value: e }) => me(() => {
4966
+ ), yu = ({ value: e }) => me(() => {
4960
4967
  if (!e || e && e.length === 0)
4961
4968
  return /* @__PURE__ */ i(ae, {});
4962
4969
  const t = st(
@@ -4964,7 +4971,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4964
4971
  Ct.date.dateInternalFormat
4965
4972
  ).format(Ct.date.dateDisplayFormat);
4966
4973
  return /* @__PURE__ */ i(ae, { children: t });
4967
- }, [e]), yu = ({ value: e }) => me(() => {
4974
+ }, [e]), vu = ({ value: e }) => me(() => {
4968
4975
  if (!e || e && e.length === 0)
4969
4976
  return /* @__PURE__ */ i(ae, {});
4970
4977
  const t = st(
@@ -4977,12 +4984,12 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4977
4984
  }) => me(() => {
4978
4985
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
4979
4986
  return /* @__PURE__ */ i(ae, { children: `( ${t} )` });
4980
- }, [e]), vu = ({
4987
+ }, [e]), wu = ({
4981
4988
  value: e
4982
- }) => me(() => /* @__PURE__ */ i(xs, { value: e }), [e]), wu = ({ value: e }) => me(() => /* @__PURE__ */ i(ae, { children: Cs(e) }), [e]), Go = ({ value: e }) => me(
4989
+ }) => me(() => /* @__PURE__ */ i(xs, { value: e }), [e]), bu = ({ value: e }) => me(() => /* @__PURE__ */ i(ae, { children: Cs(e) }), [e]), Go = ({ value: e }) => me(
4983
4990
  () => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: e }),
4984
4991
  [e]
4985
- ), bu = ({ value: e }) => me(
4992
+ ), Su = ({ value: e }) => me(
4986
4993
  () => /* @__PURE__ */ i(
4987
4994
  "img",
4988
4995
  {
@@ -4991,12 +4998,12 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
4991
4998
  }
4992
4999
  ),
4993
5000
  [e]
4994
- ), Su = ({
5001
+ ), Cu = ({
4995
5002
  value: e,
4996
5003
  key: t,
4997
5004
  ooui: n,
4998
5005
  context: r
4999
- }) => me(() => /* @__PURE__ */ i(vs, { ooui: n, value: e }), [n, e]), Cu = ({
5006
+ }) => me(() => /* @__PURE__ */ i(vs, { ooui: n, value: e }), [n, e]), xu = ({
5000
5007
  value: e,
5001
5008
  key: t,
5002
5009
  ooui: n,
@@ -5004,14 +5011,14 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5004
5011
  }) => me(() => {
5005
5012
  let o = e;
5006
5013
  return Array.isArray(e) && e.length === 2 && (o = e[0]), /* @__PURE__ */ i(ae, { children: n.selectionValues.get(o) });
5007
- }, [n, e]), xu = ({
5014
+ }, [n, e]), Iu = ({
5008
5015
  value: e,
5009
5016
  key: t,
5010
5017
  ooui: n,
5011
5018
  context: r
5012
5019
  }) => me(
5013
5020
  () => /* @__PURE__ */ i(
5014
- su,
5021
+ au,
5015
5022
  {
5016
5023
  value: e,
5017
5024
  selectionValues: n.selectionValues,
@@ -5019,12 +5026,12 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5019
5026
  }
5020
5027
  ),
5021
5028
  [r, n.selectionValues, e]
5022
- ), Iu = ({
5029
+ ), Tu = ({
5023
5030
  value: e,
5024
5031
  key: t,
5025
5032
  ooui: n,
5026
5033
  context: r
5027
- }) => me(() => /* @__PURE__ */ i(au, { ooui: n, value: e }), [n, e]), Tu = ({
5034
+ }) => me(() => /* @__PURE__ */ i(lu, { ooui: n, value: e }), [n, e]), Ou = ({
5028
5035
  value: e,
5029
5036
  key: t,
5030
5037
  ooui: n,
@@ -5070,25 +5077,25 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5070
5077
  }
5071
5078
  ), [d, a]);
5072
5079
  }, mo = {
5073
- boolean: fu,
5074
- many2one: pu,
5075
- text: hu,
5080
+ boolean: mu,
5081
+ many2one: hu,
5082
+ text: gu,
5076
5083
  one2many: Wo,
5077
5084
  many2many: Wo,
5078
- progressbar: vu,
5079
- float_time: wu,
5080
- image: bu,
5085
+ progressbar: wu,
5086
+ float_time: bu,
5087
+ image: Su,
5081
5088
  integer: Go,
5082
5089
  float: Go,
5083
- reference: xu,
5084
- tag: Su,
5085
- selection: Cu,
5086
- date: gu,
5087
- datetime: yu,
5088
- avatar: Iu,
5089
- tags: Tu,
5090
- email: mu
5091
- }, Ou = ({
5090
+ reference: Iu,
5091
+ tag: Cu,
5092
+ selection: xu,
5093
+ date: yu,
5094
+ datetime: vu,
5095
+ avatar: Tu,
5096
+ tags: Ou,
5097
+ email: pu
5098
+ }, Fu = ({
5092
5099
  elementRef: e,
5093
5100
  offset: t = 0,
5094
5101
  dependencies: n = []
@@ -5103,7 +5110,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5103
5110
  };
5104
5111
  return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
5105
5112
  }, [e, ...n]), me(() => r, [r]) - t;
5106
- }, Fu = (e) => {
5113
+ }, Au = (e) => {
5107
5114
  const t = ht(async () => {
5108
5115
  if (!e)
5109
5116
  return;
@@ -5116,7 +5123,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5116
5123
  [e]
5117
5124
  );
5118
5125
  return { getColumnState: t, updateColumnState: n };
5119
- }, Au = (e) => {
5126
+ }, Ru = (e) => {
5120
5127
  ue(() => () => {
5121
5128
  n(), o();
5122
5129
  }, []);
@@ -5150,16 +5157,16 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5150
5157
  [e]
5151
5158
  );
5152
5159
  return { getColumnState: s, updateColumnState: a };
5153
- }, Ru = (e) => {
5160
+ }, _u = (e) => {
5154
5161
  const t = sr(
5155
5162
  fn.FEATURE_USERVIEWPREFS
5156
5163
  ), {
5157
5164
  getColumnState: n,
5158
5165
  updateColumnState: r
5159
- } = Fu(e), {
5166
+ } = Au(e), {
5160
5167
  getColumnState: o,
5161
5168
  updateColumnState: s
5162
- } = Au(e), a = ht(async () => {
5169
+ } = Ru(e), a = ht(async () => {
5163
5170
  if (!t)
5164
5171
  return n();
5165
5172
  try {
@@ -5185,7 +5192,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5185
5192
  );
5186
5193
  return { getColumnState: a, updateColumnState: l };
5187
5194
  }, Os = (e) => {
5188
- const [t, n] = x(!0), r = J(void 0), o = J(!1), { getColumnState: s, updateColumnState: a } = Ru(e);
5195
+ const [t, n] = x(!0), r = J(void 0), o = J(!1), { getColumnState: s, updateColumnState: a } = _u(e);
5189
5196
  return ue(() => {
5190
5197
  if (!e) {
5191
5198
  n(!1);
@@ -5204,7 +5211,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5204
5211
  }
5205
5212
  })();
5206
5213
  }, [s, e]), { getColumnState: N(() => r.current, []), loading: t, updateColumnState: a };
5207
- }, _u = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, Ko = ["sum", "count", "max", "min"], Fs = ({
5214
+ }, Vu = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, Ko = ["sum", "count", "max", "min"], Fs = ({
5208
5215
  ooui: e,
5209
5216
  model: t,
5210
5217
  domain: n,
@@ -5302,7 +5309,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5302
5309
  ]
5303
5310
  }
5304
5311
  );
5305
- }, { Text: qo } = _t, Vu = ({
5312
+ }, { Text: qo } = _t, Eu = ({
5306
5313
  totalRows: e,
5307
5314
  selectedRowKeys: t,
5308
5315
  allRowSelectedMode: n
@@ -5315,7 +5322,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5315
5322
  className: "pb-4",
5316
5323
  style: { height: 40, maxHeight: 40, overflow: "hidden" },
5317
5324
  children: [
5318
- /* @__PURE__ */ i(we, { span: 12, children: n ? /* @__PURE__ */ i("span", { children: `${t.length} ${r("selectedRegisters")}` }) : /* @__PURE__ */ i(Eu, { selectedRowKeys: t }) }),
5325
+ /* @__PURE__ */ i(we, { span: 12, children: n ? /* @__PURE__ */ i("span", { children: `${t.length} ${r("selectedRegisters")}` }) : /* @__PURE__ */ i(Du, { selectedRowKeys: t }) }),
5319
5326
  /* @__PURE__ */ E(we, { span: 12, style: { paddingRight: 10 }, className: "text-right", children: [
5320
5327
  e === void 0 && /* @__PURE__ */ i(We, {}),
5321
5328
  e != null && `${r("totalRegisters")} ${e}`
@@ -5323,7 +5330,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5323
5330
  ]
5324
5331
  }
5325
5332
  );
5326
- }, Eu = ({
5333
+ }, Du = ({
5327
5334
  selectedRowKeys: e
5328
5335
  }) => {
5329
5336
  const { t } = he();
@@ -5350,7 +5357,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5350
5357
  }
5351
5358
  )
5352
5359
  ] });
5353
- }, Du = (e) => {
5360
+ }, Pu = (e) => {
5354
5361
  const t = fo();
5355
5362
  return /* @__PURE__ */ i(_e, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
5356
5363
  Gr.RangePicker,
@@ -5383,7 +5390,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5383
5390
  }
5384
5391
  }
5385
5392
  );
5386
- }, Pu = (e) => {
5393
+ }, ku = (e) => {
5387
5394
  const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, s = fo(), a = [
5388
5395
  new Tr({
5389
5396
  name: o + "#date",
@@ -5417,10 +5424,10 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5417
5424
  locale: s
5418
5425
  }
5419
5426
  ) }) }),
5420
- /* @__PURE__ */ i(we, { children: /* @__PURE__ */ i(_e, { ...e, ooui: a[1], showLabel: !1, children: /* @__PURE__ */ i(ku, {}) }) })
5427
+ /* @__PURE__ */ i(we, { children: /* @__PURE__ */ i(_e, { ...e, ooui: a[1], showLabel: !1, children: /* @__PURE__ */ i($u, {}) }) })
5421
5428
  ] })
5422
5429
  ] });
5423
- }, ku = ({
5430
+ }, $u = ({
5424
5431
  value: e,
5425
5432
  onChange: t
5426
5433
  }) => /* @__PURE__ */ E("div", { style: { marginTop: 5 }, children: [
@@ -5448,8 +5455,8 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5448
5455
  }
5449
5456
  }
5450
5457
  )
5451
- ] }), { useToken: $u } = Ge, Rs = (e) => {
5452
- const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: s } = t, { token: a } = $u(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = te(Be), { elementHasLostFocus: u } = c || {};
5458
+ ] }), { useToken: Nu } = Ge, Rs = (e) => {
5459
+ const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: s } = t, { token: a } = Nu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = te(Be), { elementHasLostFocus: u } = c || {};
5453
5460
  return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
5454
5461
  Ai,
5455
5462
  {
@@ -5464,8 +5471,8 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5464
5471
  wheel: !1
5465
5472
  }
5466
5473
  ) });
5467
- }, { useToken: Nu } = Ge, Gn = (e) => {
5468
- const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } = Nu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = te(Be), { elementHasLostFocus: u } = c || {};
5474
+ }, { useToken: Mu } = Ge, Gn = (e) => {
5475
+ const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } = Mu(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = te(Be), { elementHasLostFocus: u } = c || {};
5469
5476
  return /* @__PURE__ */ i(_e, { required: s, type: "number", ...e, children: /* @__PURE__ */ i(
5470
5477
  Ai,
5471
5478
  {
@@ -5484,7 +5491,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(xs,
5484
5491
  }
5485
5492
  ) });
5486
5493
  };
5487
- function Mu(e) {
5494
+ function Lu(e) {
5488
5495
  const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof Or ? Gn : Rs, l = (c) => /* @__PURE__ */ i(
5489
5496
  a,
5490
5497
  {
@@ -5526,17 +5533,17 @@ function Mu(e) {
5526
5533
  )
5527
5534
  ] });
5528
5535
  }
5529
- const { defaultAlgorithm: Lu, defaultSeed: ju } = Ge, Bu = Lu(ju), { Option: Hu } = Ut, Uu = (e) => {
5536
+ const { defaultAlgorithm: ju, defaultSeed: Bu } = Ge, Hu = ju(Bu), { Option: Uu } = Ut, Wu = (e) => {
5530
5537
  const { ooui: t } = e, { required: n } = t;
5531
- return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Wu, { ...e }) });
5532
- }, Wu = (e) => {
5538
+ return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Gu, { ...e }) });
5539
+ }, Gu = (e) => {
5533
5540
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), c = l && l.length && l.filter((d) => {
5534
5541
  const [p] = d;
5535
5542
  return r ? !r.includes(p) : !0;
5536
5543
  }).map((d) => {
5537
5544
  const [p, h] = d;
5538
- return /* @__PURE__ */ i(Hu, { value: h, children: h }, p);
5539
- }), u = a && !s ? Gu : Ut;
5545
+ return /* @__PURE__ */ i(Uu, { value: h, children: h }, p);
5546
+ }), u = a && !s ? Ku : Ut;
5540
5547
  function f(d) {
5541
5548
  const p = d.map((h) => {
5542
5549
  const m = l.find(([v, g]) => h === g);
@@ -5559,9 +5566,9 @@ const { defaultAlgorithm: Lu, defaultSeed: ju } = Ge, Bu = Lu(ju), { Option: Hu
5559
5566
  children: c
5560
5567
  }
5561
5568
  );
5562
- }, Gu = dn(Ut)`
5569
+ }, Ku = dn(Ut)`
5563
5570
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
5564
- background-color: ${Bu.colorPrimaryBg};
5571
+ background-color: ${Hu.colorPrimaryBg};
5565
5572
  }
5566
5573
  `;
5567
5574
  function _s(e) {
@@ -5584,13 +5591,13 @@ function _s(e) {
5584
5591
  case Tt.progressbar:
5585
5592
  case Tt.float_time:
5586
5593
  case Tt.integer:
5587
- return /* @__PURE__ */ i(Mu, { ooui: t, showLabel: !0 });
5594
+ return /* @__PURE__ */ i(Lu, { ooui: t, showLabel: !0 });
5588
5595
  case Tt.date:
5589
- return /* @__PURE__ */ i(Du, { ooui: t, layout: "vertical", showLabel: !0 });
5590
- case Tt.datetime:
5591
5596
  return /* @__PURE__ */ i(Pu, { ooui: t, layout: "vertical", showLabel: !0 });
5597
+ case Tt.datetime:
5598
+ return /* @__PURE__ */ i(ku, { ooui: t, layout: "vertical", showLabel: !0 });
5592
5599
  case Tt.selection:
5593
- return /* @__PURE__ */ i(Uu, { layout: "vertical", ooui: t, showLabel: !0 });
5600
+ return /* @__PURE__ */ i(Wu, { layout: "vertical", ooui: t, showLabel: !0 });
5594
5601
  default:
5595
5602
  return /* @__PURE__ */ i(
5596
5603
  es,
@@ -5604,14 +5611,14 @@ function _s(e) {
5604
5611
  }
5605
5612
  }
5606
5613
  const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Nn = (e, t) => {
5607
- const n = Qu(e), r = zu(n), o = Ju(
5614
+ const n = Xu(e), r = Ju(n), o = Qu(
5608
5615
  r,
5609
5616
  t
5610
5617
  );
5611
5618
  return [
5612
- ...Object.keys(o).map((l) => Ku(l, o[l], t))
5619
+ ...Object.keys(o).map((l) => qu(l, o[l], t))
5613
5620
  ].reduce((l, c) => Array.isArray(c[0]) ? l.concat(c) : [...l, c], []);
5614
- }, Ku = (e, t, n) => {
5621
+ }, qu = (e, t, n) => {
5615
5622
  var s;
5616
5623
  const r = e.split("#")[0], o = (s = n.findById(r)) == null ? void 0 : s.type;
5617
5624
  if (o === "char" || o === "text" || o === "many2one" || o === "many2many" || o === "one2many")
@@ -5633,14 +5640,14 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5633
5640
  (a) => Yo(a)
5634
5641
  )
5635
5642
  ] : [e, "=", Yo(t)];
5636
- }, qu = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Yu = (e) => {
5643
+ }, Yu = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), zu = (e) => {
5637
5644
  const t = { ...e };
5638
5645
  return Object.keys(t).forEach(
5639
5646
  (n) => (n.indexOf("#time") !== -1 || n.indexOf("#date") !== -1) && delete t[n]
5640
5647
  ), t;
5641
- }, zu = (e) => {
5642
- const t = { ...Yu(e) };
5643
- return qu(e).forEach((r) => {
5648
+ }, Ju = (e) => {
5649
+ const t = { ...zu(e) };
5650
+ return Yu(e).forEach((r) => {
5644
5651
  const o = e[r], s = r.split("#")[0], a = s + "#time", l = e[a];
5645
5652
  let c, u;
5646
5653
  if (o[0] !== null && (c = o[0].format("YYYY-MM-DD"), l && l[0] !== null)) {
@@ -5653,7 +5660,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5653
5660
  }
5654
5661
  t[s + "#datetime"] = [c, u];
5655
5662
  }), t;
5656
- }, Ju = (e, t) => {
5663
+ }, Qu = (e, t) => {
5657
5664
  const n = Object.keys(e).filter((o) => {
5658
5665
  const s = t.findById(o);
5659
5666
  return s && s.type === "date";
@@ -5661,29 +5668,29 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5661
5668
  return n.forEach((o) => {
5662
5669
  delete r[o], e[o][0] !== null && (r[o + "#from"] = e[o][0]), e[o][1] !== null && (r[o + "#to"] = e[o][1]);
5663
5670
  }), r;
5664
- }, Qu = (e) => {
5671
+ }, Xu = (e) => {
5665
5672
  const t = { ...e };
5666
5673
  return Object.keys(t).forEach(
5667
5674
  (n) => (t[n] === void 0 || t[n] === null || t[n] === "") && delete t[n]
5668
5675
  ), t;
5669
- }, Xu = (e) => {
5676
+ }, Zu = (e) => {
5670
5677
  const t = {};
5671
5678
  return e.forEach((n) => {
5672
5679
  Array.isArray(n) && n[0] ? t[n[0]] = !0 : t[n] = !0;
5673
5680
  }), Object.keys(t);
5674
5681
  }, on = (e, t) => {
5675
- const n = [...e], r = Xu(e);
5682
+ const n = [...e], r = Zu(e);
5676
5683
  return t.forEach((o) => {
5677
5684
  Array.isArray(o) && o[0] ? r.includes(o[0]) || n.push(o) : r.includes(o) || n.push(o);
5678
5685
  }), n;
5679
- }, { useToken: Zu } = Ge, { Title: ef } = _t, { Header: tf, Content: nf, Footer: rf } = Ri, of = ({
5686
+ }, { useToken: ef } = Ge, { Title: tf } = _t, { Header: nf, Content: rf, Footer: of } = Ri, sf = ({
5680
5687
  isOpen: e,
5681
5688
  onClose: t,
5682
5689
  children: n,
5683
5690
  title: r,
5684
5691
  footer: o
5685
5692
  }) => {
5686
- const [s, a] = x(e), l = J(null), { token: c } = Zu(), u = N(
5693
+ const [s, a] = x(e), l = J(null), { token: c } = ef(), u = N(
5687
5694
  (h) => {
5688
5695
  h.preventDefault(), h.stopPropagation(), t();
5689
5696
  },
@@ -5712,7 +5719,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5712
5719
  padding: "0 16px",
5713
5720
  borderBottom: "1px solid #f0f0f0"
5714
5721
  };
5715
- return /* @__PURE__ */ i(Yl, { children: e && /* @__PURE__ */ E(ae, { children: [
5722
+ return /* @__PURE__ */ i(zl, { children: e && /* @__PURE__ */ E(ae, { children: [
5716
5723
  /* @__PURE__ */ i(
5717
5724
  Vo.div,
5718
5725
  {
@@ -5754,8 +5761,8 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5754
5761
  flexDirection: "column"
5755
5762
  },
5756
5763
  children: [
5757
- /* @__PURE__ */ E(tf, { style: p, children: [
5758
- /* @__PURE__ */ i(ef, { level: 3, style: { margin: 0, flex: 1 }, children: r }),
5764
+ /* @__PURE__ */ E(nf, { style: p, children: [
5765
+ /* @__PURE__ */ i(tf, { level: 3, style: { margin: 0, flex: 1 }, children: r }),
5759
5766
  /* @__PURE__ */ i(
5760
5767
  je,
5761
5768
  {
@@ -5767,7 +5774,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5767
5774
  )
5768
5775
  ] }),
5769
5776
  /* @__PURE__ */ i(
5770
- nf,
5777
+ rf,
5771
5778
  {
5772
5779
  style: {
5773
5780
  flex: 1,
@@ -5777,7 +5784,7 @@ const Yo = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5777
5784
  }
5778
5785
  ),
5779
5786
  o && /* @__PURE__ */ i(
5780
- rf,
5787
+ of,
5781
5788
  {
5782
5789
  style: {
5783
5790
  ...p,
@@ -5797,14 +5804,14 @@ var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
5797
5804
  function Vs(e) {
5798
5805
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5799
5806
  }
5800
- var sf = "Expected a function", zo = 0 / 0, af = "[object Symbol]", lf = /^\s+|\s+$/g, cf = /^[-+]0x[0-9a-f]+$/i, df = /^0b[01]+$/i, uf = /^0o[0-7]+$/i, ff = parseInt, mf = typeof kn == "object" && kn && kn.Object === Object && kn, pf = typeof self == "object" && self && self.Object === Object && self, hf = mf || pf || Function("return this")(), gf = Object.prototype, yf = gf.toString, vf = Math.max, wf = Math.min, hr = function() {
5801
- return hf.Date.now();
5807
+ var af = "Expected a function", zo = 0 / 0, lf = "[object Symbol]", cf = /^\s+|\s+$/g, df = /^[-+]0x[0-9a-f]+$/i, uf = /^0b[01]+$/i, ff = /^0o[0-7]+$/i, mf = parseInt, pf = typeof kn == "object" && kn && kn.Object === Object && kn, hf = typeof self == "object" && self && self.Object === Object && self, gf = pf || hf || Function("return this")(), yf = Object.prototype, vf = yf.toString, wf = Math.max, bf = Math.min, hr = function() {
5808
+ return gf.Date.now();
5802
5809
  };
5803
- function bf(e, t, n) {
5810
+ function Sf(e, t, n) {
5804
5811
  var r, o, s, a, l, c, u = 0, f = !1, d = !1, p = !0;
5805
5812
  if (typeof e != "function")
5806
- throw new TypeError(sf);
5807
- t = Jo(t) || 0, Vr(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? vf(Jo(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
5813
+ throw new TypeError(af);
5814
+ t = Jo(t) || 0, Vr(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? wf(Jo(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
5808
5815
  function h(O) {
5809
5816
  var T = r, R = o;
5810
5817
  return r = o = void 0, u = O, a = e.apply(R, T), a;
@@ -5814,7 +5821,7 @@ function bf(e, t, n) {
5814
5821
  }
5815
5822
  function v(O) {
5816
5823
  var T = O - c, R = O - u, S = t - T;
5817
- return d ? wf(S, s - R) : S;
5824
+ return d ? bf(S, s - R) : S;
5818
5825
  }
5819
5826
  function g(O) {
5820
5827
  var T = O - c, R = O - u;
@@ -5851,16 +5858,16 @@ function Vr(e) {
5851
5858
  var t = typeof e;
5852
5859
  return !!e && (t == "object" || t == "function");
5853
5860
  }
5854
- function Sf(e) {
5861
+ function Cf(e) {
5855
5862
  return !!e && typeof e == "object";
5856
5863
  }
5857
- function Cf(e) {
5858
- return typeof e == "symbol" || Sf(e) && yf.call(e) == af;
5864
+ function xf(e) {
5865
+ return typeof e == "symbol" || Cf(e) && vf.call(e) == lf;
5859
5866
  }
5860
5867
  function Jo(e) {
5861
5868
  if (typeof e == "number")
5862
5869
  return e;
5863
- if (Cf(e))
5870
+ if (xf(e))
5864
5871
  return zo;
5865
5872
  if (Vr(e)) {
5866
5873
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -5868,17 +5875,17 @@ function Jo(e) {
5868
5875
  }
5869
5876
  if (typeof e != "string")
5870
5877
  return e === 0 ? e : +e;
5871
- e = e.replace(lf, "");
5872
- var n = df.test(e);
5873
- return n || uf.test(e) ? ff(e.slice(2), n ? 2 : 8) : cf.test(e) ? zo : +e;
5878
+ e = e.replace(cf, "");
5879
+ var n = uf.test(e);
5880
+ return n || ff.test(e) ? mf(e.slice(2), n ? 2 : 8) : df.test(e) ? zo : +e;
5874
5881
  }
5875
- var xf = bf;
5876
- const If = /* @__PURE__ */ Vs(xf);
5882
+ var If = Sf;
5883
+ const Tf = /* @__PURE__ */ Vs(If);
5877
5884
  var Qo = Object.prototype.toString, Es = function(t) {
5878
5885
  var n = Qo.call(t), r = n === "[object Arguments]";
5879
5886
  return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Qo.call(t.callee) === "[object Function]"), r;
5880
5887
  }, gr, Xo;
5881
- function Tf() {
5888
+ function Of() {
5882
5889
  if (Xo)
5883
5890
  return gr;
5884
5891
  Xo = 1;
@@ -5966,9 +5973,9 @@ function Tf() {
5966
5973
  }
5967
5974
  return gr = e, gr;
5968
5975
  }
5969
- var Of = Array.prototype.slice, Ff = Es, Zo = Object.keys, Mn = Zo ? function(t) {
5976
+ var Ff = Array.prototype.slice, Af = Es, Zo = Object.keys, Mn = Zo ? function(t) {
5970
5977
  return Zo(t);
5971
- } : Tf(), ei = Object.keys;
5978
+ } : Of(), ei = Object.keys;
5972
5979
  Mn.shim = function() {
5973
5980
  if (Object.keys) {
5974
5981
  var t = function() {
@@ -5976,7 +5983,7 @@ Mn.shim = function() {
5976
5983
  return n && n.length === arguments.length;
5977
5984
  }(1, 2);
5978
5985
  t || (Object.keys = function(r) {
5979
- return Ff(r) ? ei(Of.call(r)) : ei(r);
5986
+ return Af(r) ? ei(Ff.call(r)) : ei(r);
5980
5987
  });
5981
5988
  } else
5982
5989
  Object.keys = Mn;
@@ -6005,18 +6012,18 @@ var Ds = Mn, Ps = function() {
6005
6012
  return !1;
6006
6013
  }
6007
6014
  return !0;
6008
- }, Af = Ps, po = function() {
6009
- return Af() && !!Symbol.toStringTag;
6010
- }, ti = typeof Symbol < "u" && Symbol, Rf = Ps, _f = function() {
6011
- return typeof ti != "function" || typeof Symbol != "function" || typeof ti("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Rf();
6015
+ }, Rf = Ps, po = function() {
6016
+ return Rf() && !!Symbol.toStringTag;
6017
+ }, ti = typeof Symbol < "u" && Symbol, _f = Ps, Vf = function() {
6018
+ return typeof ti != "function" || typeof Symbol != "function" || typeof ti("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : _f();
6012
6019
  }, ni = {
6013
6020
  foo: {}
6014
- }, Vf = Object, Ef = function() {
6015
- return { __proto__: ni }.foo === ni.foo && !({ __proto__: null } instanceof Vf);
6016
- }, Df = "Function.prototype.bind called on incompatible ", yr = Array.prototype.slice, Pf = Object.prototype.toString, kf = "[object Function]", $f = function(t) {
6021
+ }, Ef = Object, Df = function() {
6022
+ return { __proto__: ni }.foo === ni.foo && !({ __proto__: null } instanceof Ef);
6023
+ }, Pf = "Function.prototype.bind called on incompatible ", yr = Array.prototype.slice, kf = Object.prototype.toString, $f = "[object Function]", Nf = function(t) {
6017
6024
  var n = this;
6018
- if (typeof n != "function" || Pf.call(n) !== kf)
6019
- throw new TypeError(Df + n);
6025
+ if (typeof n != "function" || kf.call(n) !== $f)
6026
+ throw new TypeError(Pf + n);
6020
6027
  for (var r = yr.call(arguments, 1), o, s = function() {
6021
6028
  if (this instanceof o) {
6022
6029
  var f = n.apply(
@@ -6037,7 +6044,7 @@ var Ds = Mn, Ps = function() {
6037
6044
  u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
6038
6045
  }
6039
6046
  return o;
6040
- }, Nf = $f, ks = Function.prototype.bind || Nf, ri = {}.hasOwnProperty, vr = Function.prototype.call, Mf = vr.bind ? vr.bind(ri) : function(e, t) {
6047
+ }, Mf = Nf, ks = Function.prototype.bind || Mf, ri = {}.hasOwnProperty, vr = Function.prototype.call, Lf = vr.bind ? vr.bind(ri) : function(e, t) {
6041
6048
  return vr.call(ri, e, t);
6042
6049
  }, Ve, sn = SyntaxError, $s = Function, tn = TypeError, wr = function(e) {
6043
6050
  try {
@@ -6053,7 +6060,7 @@ if (jt)
6053
6060
  }
6054
6061
  var br = function() {
6055
6062
  throw new tn();
6056
- }, Lf = jt ? function() {
6063
+ }, jf = jt ? function() {
6057
6064
  try {
6058
6065
  return arguments.callee, br;
6059
6066
  } catch {
@@ -6063,9 +6070,9 @@ var br = function() {
6063
6070
  return br;
6064
6071
  }
6065
6072
  }
6066
- }() : br, Kt = _f(), jf = Ef(), Ze = Object.getPrototypeOf || (jf ? function(e) {
6073
+ }() : br, Kt = Vf(), Bf = Df(), Ze = Object.getPrototypeOf || (Bf ? function(e) {
6067
6074
  return e.__proto__;
6068
- } : null), Qt = {}, Bf = typeof Uint8Array > "u" || !Ze ? Ve : Ze(Uint8Array), Bt = {
6075
+ } : null), Qt = {}, Hf = typeof Uint8Array > "u" || !Ze ? Ve : Ze(Uint8Array), Bt = {
6069
6076
  "%AggregateError%": typeof AggregateError > "u" ? Ve : AggregateError,
6070
6077
  "%Array%": Array,
6071
6078
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? Ve : ArrayBuffer,
@@ -6122,8 +6129,8 @@ var br = function() {
6122
6129
  "%StringIteratorPrototype%": Kt && Ze ? Ze(""[Symbol.iterator]()) : Ve,
6123
6130
  "%Symbol%": Kt ? Symbol : Ve,
6124
6131
  "%SyntaxError%": sn,
6125
- "%ThrowTypeError%": Lf,
6126
- "%TypedArray%": Bf,
6132
+ "%ThrowTypeError%": jf,
6133
+ "%TypedArray%": Hf,
6127
6134
  "%TypeError%": tn,
6128
6135
  "%Uint8Array%": typeof Uint8Array > "u" ? Ve : Uint8Array,
6129
6136
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Ve : Uint8ClampedArray,
@@ -6138,10 +6145,10 @@ if (Ze)
6138
6145
  try {
6139
6146
  null.error;
6140
6147
  } catch (e) {
6141
- var Hf = Ze(Ze(e));
6142
- Bt["%Error.prototype%"] = Hf;
6148
+ var Uf = Ze(Ze(e));
6149
+ Bt["%Error.prototype%"] = Uf;
6143
6150
  }
6144
- var Uf = function e(t) {
6151
+ var Wf = function e(t) {
6145
6152
  var n;
6146
6153
  if (t === "%AsyncFunction%")
6147
6154
  n = wr("async function () {}");
@@ -6209,21 +6216,21 @@ var Uf = function e(t) {
6209
6216
  "%URIErrorPrototype%": ["URIError", "prototype"],
6210
6217
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
6211
6218
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
6212
- }, _n = ks, Kn = Mf, Wf = _n.call(Function.call, Array.prototype.concat), Gf = _n.call(Function.apply, Array.prototype.splice), ii = _n.call(Function.call, String.prototype.replace), qn = _n.call(Function.call, String.prototype.slice), Kf = _n.call(Function.call, RegExp.prototype.exec), qf = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Yf = /\\(\\)?/g, zf = function(t) {
6219
+ }, _n = ks, Kn = Lf, Gf = _n.call(Function.call, Array.prototype.concat), Kf = _n.call(Function.apply, Array.prototype.splice), ii = _n.call(Function.call, String.prototype.replace), qn = _n.call(Function.call, String.prototype.slice), qf = _n.call(Function.call, RegExp.prototype.exec), Yf = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, zf = /\\(\\)?/g, Jf = function(t) {
6213
6220
  var n = qn(t, 0, 1), r = qn(t, -1);
6214
6221
  if (n === "%" && r !== "%")
6215
6222
  throw new sn("invalid intrinsic syntax, expected closing `%`");
6216
6223
  if (r === "%" && n !== "%")
6217
6224
  throw new sn("invalid intrinsic syntax, expected opening `%`");
6218
6225
  var o = [];
6219
- return ii(t, qf, function(s, a, l, c) {
6220
- o[o.length] = l ? ii(c, Yf, "$1") : a || s;
6226
+ return ii(t, Yf, function(s, a, l, c) {
6227
+ o[o.length] = l ? ii(c, zf, "$1") : a || s;
6221
6228
  }), o;
6222
- }, Jf = function(t, n) {
6229
+ }, Qf = function(t, n) {
6223
6230
  var r = t, o;
6224
6231
  if (Kn(oi, r) && (o = oi[r], r = "%" + o[0] + "%"), Kn(Bt, r)) {
6225
6232
  var s = Bt[r];
6226
- if (s === Qt && (s = Uf(r)), typeof s > "u" && !n)
6233
+ if (s === Qt && (s = Wf(r)), typeof s > "u" && !n)
6227
6234
  throw new tn("intrinsic " + t + " exists, but is not available. Please file an issue!");
6228
6235
  return {
6229
6236
  alias: o,
@@ -6237,10 +6244,10 @@ var Uf = function e(t) {
6237
6244
  throw new tn("intrinsic name must be a non-empty string");
6238
6245
  if (arguments.length > 1 && typeof n != "boolean")
6239
6246
  throw new tn('"allowMissing" argument must be a boolean');
6240
- if (Kf(/^%?[^%]*%?$/, t) === null)
6247
+ if (qf(/^%?[^%]*%?$/, t) === null)
6241
6248
  throw new sn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
6242
- var r = zf(t), o = r.length > 0 ? r[0] : "", s = Jf("%" + o + "%", n), a = s.name, l = s.value, c = !1, u = s.alias;
6243
- u && (o = u[0], Gf(r, Wf([0, 1], u)));
6249
+ var r = Jf(t), o = r.length > 0 ? r[0] : "", s = Qf("%" + o + "%", n), a = s.name, l = s.value, c = !1, u = s.alias;
6250
+ u && (o = u[0], Kf(r, Gf([0, 1], u)));
6244
6251
  for (var f = 1, d = !0; f < r.length; f += 1) {
6245
6252
  var p = r[f], h = qn(p, 0, 1), m = qn(p, -1);
6246
6253
  if ((h === '"' || h === "'" || h === "`" || m === '"' || m === "'" || m === "`") && h !== m)
@@ -6288,18 +6295,18 @@ var Uf = function e(t) {
6288
6295
  };
6289
6296
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
6290
6297
  })(Ns);
6291
- var ho = Ns.exports, Ms = Vn, Ls = ho, Qf = Ls(Ms("String.prototype.indexOf")), js = function(t, n) {
6298
+ var ho = Ns.exports, Ms = Vn, Ls = ho, Xf = Ls(Ms("String.prototype.indexOf")), js = function(t, n) {
6292
6299
  var r = Ms(t, !!n);
6293
- return typeof r == "function" && Qf(t, ".prototype.") > -1 ? Ls(r) : r;
6294
- }, Xf = po(), Zf = js, Er = Zf("Object.prototype.toString"), ar = function(t) {
6295
- return Xf && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Er(t) === "[object Arguments]";
6300
+ return typeof r == "function" && Xf(t, ".prototype.") > -1 ? Ls(r) : r;
6301
+ }, Zf = po(), em = js, Er = em("Object.prototype.toString"), ar = function(t) {
6302
+ return Zf && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Er(t) === "[object Arguments]";
6296
6303
  }, Bs = function(t) {
6297
6304
  return ar(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Er(t) !== "[object Array]" && Er(t.callee) === "[object Function]";
6298
- }, em = function() {
6305
+ }, tm = function() {
6299
6306
  return ar(arguments);
6300
6307
  }();
6301
6308
  ar.isLegacyArguments = Bs;
6302
- var tm = em ? ar : Bs, nm = Vn, Dr = nm("%Object.defineProperty%", !0), Pr = function() {
6309
+ var nm = tm ? ar : Bs, rm = Vn, Dr = rm("%Object.defineProperty%", !0), Pr = function() {
6303
6310
  if (Dr)
6304
6311
  try {
6305
6312
  return Dr({}, "a", { value: 1 }), !0;
@@ -6318,7 +6325,7 @@ Pr.hasArrayLengthDefineBug = function() {
6318
6325
  }
6319
6326
  };
6320
6327
  var go = Pr, Sr, si;
6321
- function rm() {
6328
+ function om() {
6322
6329
  if (si)
6323
6330
  return Sr;
6324
6331
  si = 1;
@@ -6331,7 +6338,7 @@ function rm() {
6331
6338
  }
6332
6339
  return Sr = t, Sr;
6333
6340
  }
6334
- var om = go(), yo = Vn, ai = om && yo("%Object.defineProperty%", !0), im = yo("%SyntaxError%"), qt = yo("%TypeError%"), li = rm(), Hs = function(t, n, r) {
6341
+ var im = go(), yo = Vn, ai = im && yo("%Object.defineProperty%", !0), sm = yo("%SyntaxError%"), qt = yo("%TypeError%"), li = om(), Hs = function(t, n, r) {
6335
6342
  if (!t || typeof t != "object" && typeof t != "function")
6336
6343
  throw new qt("`obj` must be an object or a function`");
6337
6344
  if (typeof n != "string" && typeof n != "symbol")
@@ -6355,45 +6362,45 @@ var om = go(), yo = Vn, ai = om && yo("%Object.defineProperty%", !0), im = yo("%
6355
6362
  else if (l || !o && !s && !a)
6356
6363
  t[n] = r;
6357
6364
  else
6358
- throw new im("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
6359
- }, sm = Ds, am = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", lm = Object.prototype.toString, cm = Array.prototype.concat, ci = Hs, dm = function(e) {
6360
- return typeof e == "function" && lm.call(e) === "[object Function]";
6361
- }, Us = go(), um = function(e, t, n, r) {
6365
+ throw new sm("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
6366
+ }, am = Ds, lm = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", cm = Object.prototype.toString, dm = Array.prototype.concat, ci = Hs, um = function(e) {
6367
+ return typeof e == "function" && cm.call(e) === "[object Function]";
6368
+ }, Us = go(), fm = function(e, t, n, r) {
6362
6369
  if (t in e) {
6363
6370
  if (r === !0) {
6364
6371
  if (e[t] === n)
6365
6372
  return;
6366
- } else if (!dm(r) || !r())
6373
+ } else if (!um(r) || !r())
6367
6374
  return;
6368
6375
  }
6369
6376
  Us ? ci(e, t, n, !0) : ci(e, t, n);
6370
6377
  }, Ws = function(e, t) {
6371
- var n = arguments.length > 2 ? arguments[2] : {}, r = sm(t);
6372
- am && (r = cm.call(r, Object.getOwnPropertySymbols(t)));
6378
+ var n = arguments.length > 2 ? arguments[2] : {}, r = am(t);
6379
+ lm && (r = dm.call(r, Object.getOwnPropertySymbols(t)));
6373
6380
  for (var o = 0; o < r.length; o += 1)
6374
- um(e, r[o], t[r[o]], n[r[o]]);
6381
+ fm(e, r[o], t[r[o]], n[r[o]]);
6375
6382
  };
6376
6383
  Ws.supportsDescriptors = !!Us;
6377
6384
  var En = Ws, di = function(e) {
6378
6385
  return e !== e;
6379
6386
  }, Gs = function(t, n) {
6380
6387
  return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || di(t) && di(n));
6381
- }, fm = Gs, Ks = function() {
6382
- return typeof Object.is == "function" ? Object.is : fm;
6383
- }, mm = Ks, pm = En, hm = function() {
6384
- var t = mm();
6385
- return pm(Object, { is: t }, {
6388
+ }, mm = Gs, Ks = function() {
6389
+ return typeof Object.is == "function" ? Object.is : mm;
6390
+ }, pm = Ks, hm = En, gm = function() {
6391
+ var t = pm();
6392
+ return hm(Object, { is: t }, {
6386
6393
  is: function() {
6387
6394
  return Object.is !== t;
6388
6395
  }
6389
6396
  }), t;
6390
- }, gm = En, ym = ho, vm = Gs, qs = Ks, wm = hm, Ys = ym(qs(), Object);
6391
- gm(Ys, {
6397
+ }, ym = En, vm = ho, wm = Gs, qs = Ks, bm = gm, Ys = vm(qs(), Object);
6398
+ ym(Ys, {
6392
6399
  getPolyfill: qs,
6393
- implementation: vm,
6394
- shim: wm
6400
+ implementation: wm,
6401
+ shim: bm
6395
6402
  });
6396
- var bm = Ys, kr = js, zs = po(), Js, Qs, $r, Nr;
6403
+ var Sm = Ys, kr = js, zs = po(), Js, Qs, $r, Nr;
6397
6404
  if (zs) {
6398
6405
  Js = kr("Object.prototype.hasOwnProperty"), Qs = kr("RegExp.prototype.exec"), $r = {};
6399
6406
  var Cr = function() {
@@ -6404,10 +6411,10 @@ if (zs) {
6404
6411
  valueOf: Cr
6405
6412
  }, typeof Symbol.toPrimitive == "symbol" && (Nr[Symbol.toPrimitive] = Cr);
6406
6413
  }
6407
- var Sm = kr("Object.prototype.toString"), Cm = Object.getOwnPropertyDescriptor, xm = "[object RegExp]", Im = zs ? function(t) {
6414
+ var Cm = kr("Object.prototype.toString"), xm = Object.getOwnPropertyDescriptor, Im = "[object RegExp]", Tm = zs ? function(t) {
6408
6415
  if (!t || typeof t != "object")
6409
6416
  return !1;
6410
- var n = Cm(t, "lastIndex"), r = n && Js(n, "value");
6417
+ var n = xm(t, "lastIndex"), r = n && Js(n, "value");
6411
6418
  if (!r)
6412
6419
  return !1;
6413
6420
  try {
@@ -6416,7 +6423,7 @@ var Sm = kr("Object.prototype.toString"), Cm = Object.getOwnPropertyDescriptor,
6416
6423
  return o === $r;
6417
6424
  }
6418
6425
  } : function(t) {
6419
- return !t || typeof t != "object" && typeof t != "function" ? !1 : Sm(t) === xm;
6426
+ return !t || typeof t != "object" && typeof t != "function" ? !1 : Cm(t) === Im;
6420
6427
  }, On = function() {
6421
6428
  return typeof (function() {
6422
6429
  }).name == "string";
@@ -6434,24 +6441,24 @@ On.functionsHaveConfigurableNames = function() {
6434
6441
  }, "name");
6435
6442
  return !!t && !!t.configurable;
6436
6443
  };
6437
- var Tm = Function.prototype.bind;
6444
+ var Om = Function.prototype.bind;
6438
6445
  On.boundFunctionsHaveNames = function() {
6439
- return On() && typeof Tm == "function" && (function() {
6446
+ return On() && typeof Om == "function" && (function() {
6440
6447
  }).bind().name !== "";
6441
6448
  };
6442
- var Om = On, ui = Hs, Fm = go(), Am = Om.functionsHaveConfigurableNames(), Rm = TypeError, _m = function(t, n) {
6449
+ var Fm = On, ui = Hs, Am = go(), Rm = Fm.functionsHaveConfigurableNames(), _m = TypeError, Vm = function(t, n) {
6443
6450
  if (typeof t != "function")
6444
- throw new Rm("`fn` is not a function");
6451
+ throw new _m("`fn` is not a function");
6445
6452
  var r = arguments.length > 2 && !!arguments[2];
6446
- return (!r || Am) && (Fm ? ui(t, "name", n, !0, !0) : ui(t, "name", n)), t;
6447
- }, Vm = _m, Em = Object, Dm = TypeError, Xs = Vm(function() {
6448
- if (this != null && this !== Em(this))
6449
- throw new Dm("RegExp.prototype.flags getter called on non-object");
6453
+ return (!r || Rm) && (Am ? ui(t, "name", n, !0, !0) : ui(t, "name", n)), t;
6454
+ }, Em = Vm, Dm = Object, Pm = TypeError, Xs = Em(function() {
6455
+ if (this != null && this !== Dm(this))
6456
+ throw new Pm("RegExp.prototype.flags getter called on non-object");
6450
6457
  var t = "";
6451
6458
  return this.hasIndices && (t += "d"), this.global && (t += "g"), this.ignoreCase && (t += "i"), this.multiline && (t += "m"), this.dotAll && (t += "s"), this.unicode && (t += "u"), this.unicodeSets && (t += "v"), this.sticky && (t += "y"), t;
6452
- }, "get flags", !0), Pm = Xs, km = En.supportsDescriptors, $m = Object.getOwnPropertyDescriptor, Zs = function() {
6453
- if (km && /a/mig.flags === "gim") {
6454
- var t = $m(RegExp.prototype, "flags");
6459
+ }, "get flags", !0), km = Xs, $m = En.supportsDescriptors, Nm = Object.getOwnPropertyDescriptor, Zs = function() {
6460
+ if ($m && /a/mig.flags === "gim") {
6461
+ var t = Nm(RegExp.prototype, "flags");
6455
6462
  if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
6456
6463
  var n = "", r = {};
6457
6464
  if (Object.defineProperty(r, "hasIndices", {
@@ -6466,34 +6473,34 @@ var Om = On, ui = Hs, Fm = go(), Am = Om.functionsHaveConfigurableNames(), Rm =
6466
6473
  return t.get;
6467
6474
  }
6468
6475
  }
6469
- return Pm;
6470
- }, Nm = En.supportsDescriptors, Mm = Zs, Lm = Object.getOwnPropertyDescriptor, jm = Object.defineProperty, Bm = TypeError, fi = Object.getPrototypeOf, Hm = /a/, Um = function() {
6471
- if (!Nm || !fi)
6472
- throw new Bm("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6473
- var t = Mm(), n = fi(Hm), r = Lm(n, "flags");
6474
- return (!r || r.get !== t) && jm(n, "flags", {
6476
+ return km;
6477
+ }, Mm = En.supportsDescriptors, Lm = Zs, jm = Object.getOwnPropertyDescriptor, Bm = Object.defineProperty, Hm = TypeError, fi = Object.getPrototypeOf, Um = /a/, Wm = function() {
6478
+ if (!Mm || !fi)
6479
+ throw new Hm("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6480
+ var t = Lm(), n = fi(Um), r = jm(n, "flags");
6481
+ return (!r || r.get !== t) && Bm(n, "flags", {
6475
6482
  configurable: !0,
6476
6483
  enumerable: !1,
6477
6484
  get: t
6478
6485
  }), t;
6479
- }, Wm = En, Gm = ho, Km = Xs, ea = Zs, qm = Um, ta = Gm(ea());
6480
- Wm(ta, {
6486
+ }, Gm = En, Km = ho, qm = Xs, ea = Zs, Ym = Wm, ta = Km(ea());
6487
+ Gm(ta, {
6481
6488
  getPolyfill: ea,
6482
- implementation: Km,
6483
- shim: qm
6489
+ implementation: qm,
6490
+ shim: Ym
6484
6491
  });
6485
- var Ym = ta, zm = Date.prototype.getDay, Jm = function(t) {
6492
+ var zm = ta, Jm = Date.prototype.getDay, Qm = function(t) {
6486
6493
  try {
6487
- return zm.call(t), !0;
6494
+ return Jm.call(t), !0;
6488
6495
  } catch {
6489
6496
  return !1;
6490
6497
  }
6491
- }, Qm = Object.prototype.toString, Xm = "[object Date]", Zm = po(), ep = function(t) {
6492
- return typeof t != "object" || t === null ? !1 : Zm ? Jm(t) : Qm.call(t) === Xm;
6493
- }, mi = Ds, pi = tm, hi = bm, gi = Im, yi = Ym, vi = ep, wi = Date.prototype.getTime;
6498
+ }, Xm = Object.prototype.toString, Zm = "[object Date]", ep = po(), tp = function(t) {
6499
+ return typeof t != "object" || t === null ? !1 : ep ? Qm(t) : Xm.call(t) === Zm;
6500
+ }, mi = Ds, pi = nm, hi = Sm, gi = Tm, yi = zm, vi = tp, wi = Date.prototype.getTime;
6494
6501
  function na(e, t, n) {
6495
6502
  var r = n || {};
6496
- return (r.strict ? hi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? hi(e, t) : e == t : tp(e, t, r);
6503
+ return (r.strict ? hi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? hi(e, t) : e == t : np(e, t, r);
6497
6504
  }
6498
6505
  function bi(e) {
6499
6506
  return e == null;
@@ -6501,7 +6508,7 @@ function bi(e) {
6501
6508
  function Si(e) {
6502
6509
  return !(!e || typeof e != "object" || typeof e.length != "number" || typeof e.copy != "function" || typeof e.slice != "function" || e.length > 0 && typeof e[0] != "number");
6503
6510
  }
6504
- function tp(e, t, n) {
6511
+ function np(e, t, n) {
6505
6512
  var r, o;
6506
6513
  if (typeof e != typeof t || bi(e) || bi(t) || e.prototype !== t.prototype || pi(e) !== pi(t))
6507
6514
  return !1;
@@ -6540,8 +6547,8 @@ function tp(e, t, n) {
6540
6547
  return !1;
6541
6548
  return !0;
6542
6549
  }
6543
- var np = na;
6544
- const ra = /* @__PURE__ */ Vs(np), rp = yt(
6550
+ var rp = na;
6551
+ const ra = /* @__PURE__ */ Vs(rp), op = yt(
6545
6552
  (e, t) => {
6546
6553
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: s } = e, [a] = pt.useForm();
6547
6554
  ue(() => {
@@ -6575,7 +6582,7 @@ const ra = /* @__PURE__ */ Vs(np), rp = yt(
6575
6582
  })(), u = N(() => {
6576
6583
  const p = a.getFieldsValue();
6577
6584
  s == null || s(p);
6578
- }, [a, s]), f = If(u, 100);
6585
+ }, [a, s]), f = Tf(u, 100);
6579
6586
  return /* @__PURE__ */ E(Fn, { children: [
6580
6587
  /* @__PURE__ */ i(
6581
6588
  pt,
@@ -6593,7 +6600,7 @@ const ra = /* @__PURE__ */ Vs(np), rp = yt(
6593
6600
  /* @__PURE__ */ i("div", { className: "pb-2" })
6594
6601
  ] });
6595
6602
  }
6596
- ), op = (e) => {
6603
+ ), ip = (e) => {
6597
6604
  var I;
6598
6605
  const { onSubmit: t, isOpen: n, onClose: r, searchFields: o, fields: s, searchValues: a } = e, l = J(), { t: c } = he(), [u, f] = x(), d = J(null), [p, h] = x();
6599
6606
  ue(() => {
@@ -6634,13 +6641,13 @@ const ra = /* @__PURE__ */ Vs(np), rp = yt(
6634
6641
  (C = d.current) == null || C.resetFields(), (b = d == null ? void 0 : d.current) == null || b.setFieldsValue({}), h([]);
6635
6642
  }, []), w = n ? p || Nn(a, (I = l.current) == null ? void 0 : I._advancedSearchContainer) : [];
6636
6643
  return /* @__PURE__ */ i(
6637
- of,
6644
+ sf,
6638
6645
  {
6639
6646
  title: `${c("filter")} (${(w == null ? void 0 : w.length) || 0})`,
6640
6647
  isOpen: n,
6641
6648
  onClose: r,
6642
6649
  footer: /* @__PURE__ */ i(
6643
- ip,
6650
+ sp,
6644
6651
  {
6645
6652
  onClear: y,
6646
6653
  onSubmit: v,
@@ -6648,7 +6655,7 @@ const ra = /* @__PURE__ */ Vs(np), rp = yt(
6648
6655
  }
6649
6656
  ),
6650
6657
  children: n && /* @__PURE__ */ i(
6651
- rp,
6658
+ op,
6652
6659
  {
6653
6660
  ref: d,
6654
6661
  searchFields: u,
@@ -6659,7 +6666,7 @@ const ra = /* @__PURE__ */ Vs(np), rp = yt(
6659
6666
  )
6660
6667
  }
6661
6668
  );
6662
- }, ip = ({
6669
+ }, sp = ({
6663
6670
  onClear: e,
6664
6671
  onSubmit: t,
6665
6672
  searchParams: n
@@ -6705,7 +6712,7 @@ const ra = /* @__PURE__ */ Vs(np), rp = yt(
6705
6712
  const r = e[n];
6706
6713
  return r !== "" && r !== void 0 && (t[n] = r), t;
6707
6714
  }, {});
6708
- function sp(e) {
6715
+ function ap(e) {
6709
6716
  const {
6710
6717
  onAdvancedFilterToggle: t,
6711
6718
  advancedFilter: n,
@@ -6734,7 +6741,7 @@ function sp(e) {
6734
6741
  ] })
6735
6742
  ] });
6736
6743
  }
6737
- function ap(e) {
6744
+ function lp(e) {
6738
6745
  const { onLimitChange: t } = e, { t: n } = he(), r = new Or({ name: "limit" }), o = new Or({ name: "offset" });
6739
6746
  return /* @__PURE__ */ E("div", { className: "pl-2 pt-2", children: [
6740
6747
  /* @__PURE__ */ i(ke, { children: n("parameters") }, "count_params"),
@@ -6754,7 +6761,7 @@ function ap(e) {
6754
6761
  ] })
6755
6762
  ] });
6756
6763
  }
6757
- const { useToken: lp } = Ge;
6764
+ const { useToken: cp } = Ge;
6758
6765
  function vo(e) {
6759
6766
  const {
6760
6767
  fields: t,
@@ -6770,7 +6777,7 @@ function vo(e) {
6770
6777
  searchError: d,
6771
6778
  searchValues: p,
6772
6779
  showLimitOptions: h = !0
6773
- } = e, [m, v] = x(), [g, y] = x(), [w, I] = x(!1), C = J(), { token: b } = lp(), [O] = pt.useForm();
6780
+ } = e, [m, v] = x(), [g, y] = x(), [w, I] = x(!1), C = J(), { token: b } = cp(), [O] = pt.useForm();
6774
6781
  ue(() => {
6775
6782
  O.setFieldsValue(p);
6776
6783
  }, [p]);
@@ -6823,9 +6830,9 @@ function vo(e) {
6823
6830
  initialValues: { offset: a, limit: l },
6824
6831
  children: [
6825
6832
  R,
6826
- w && h && /* @__PURE__ */ i(ap, { onLimitChange: c }),
6833
+ w && h && /* @__PURE__ */ i(lp, { onLimitChange: c }),
6827
6834
  /* @__PURE__ */ i(
6828
- sp,
6835
+ ap,
6829
6836
  {
6830
6837
  hideAdvancedFilter: (V() || (g == null ? void 0 : g._rows.length) === 0) && !h,
6831
6838
  advancedFilter: w,
@@ -6855,10 +6862,10 @@ function vo(e) {
6855
6862
  }
6856
6863
  );
6857
6864
  }
6858
- function cp({
6865
+ function dp({
6859
6866
  useLocalState: e = !1
6860
6867
  }) {
6861
- const t = wd() && !e, n = lo(), [r, o] = x(!1), [s, a] = x(!1), [l, c] = x([]), [u, f] = x(0), [d, p] = x([]), [h, m] = x({}), [v, g] = x(), [y, w] = x([]), [I, C] = x(), [b, O] = x(0);
6868
+ const t = bd() && !e, n = lo(), [r, o] = x(!1), [s, a] = x(!1), [l, c] = x([]), [u, f] = x(0), [d, p] = x([]), [h, m] = x({}), [v, g] = x(), [y, w] = x([]), [I, C] = x(), [b, O] = x(0);
6862
6869
  return t ? {
6863
6870
  treeIsLoading: n.treeIsLoading ?? !1,
6864
6871
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -6913,8 +6920,8 @@ function cp({
6913
6920
  setTotalItems: O
6914
6921
  };
6915
6922
  }
6916
- const dp = 10, up = 200;
6917
- function fp(e, t) {
6923
+ const up = 10, fp = 200;
6924
+ function mp(e, t) {
6918
6925
  const {
6919
6926
  model: n,
6920
6927
  formView: r,
@@ -6927,9 +6934,9 @@ function fp(e, t) {
6927
6934
  onChangeSelectedRowKeys: f,
6928
6935
  nameSearch: d,
6929
6936
  filterType: p = "side"
6930
- } = e, h = J({}), m = J(), v = J(null), g = J([]), y = bs(), [w, I] = x(!0), [C, b] = x(), { t: O } = he(), T = J(null), R = Ou({
6937
+ } = e, h = J({}), m = J(), v = J(null), g = J([]), y = bs(), [w, I] = x(!0), [C, b] = x(), { t: O } = he(), T = J(null), R = Fu({
6931
6938
  elementRef: T,
6932
- offset: dp
6939
+ offset: up
6933
6940
  }), { treeView: S, formView: V, loading: A } = Ss({
6934
6941
  model: n,
6935
6942
  formViewProps: r,
@@ -6953,7 +6960,7 @@ function fp(e, t) {
6953
6960
  results: B,
6954
6961
  setSearchQuery: G,
6955
6962
  setTotalItems: j
6956
- } = cp({ useLocalState: !c }), ee = d || H, le = J(ee);
6963
+ } = dp({ useLocalState: !c }), ee = d || H, le = J(ee);
6957
6964
  ue(() => {
6958
6965
  Ie();
6959
6966
  }, []), ue(() => {
@@ -6972,7 +6979,7 @@ function fp(e, t) {
6972
6979
  },
6973
6980
  u
6974
6981
  );
6975
- }, [K, u]), ve = me(() => _u({
6982
+ }, [K, u]), ve = me(() => Vu({
6976
6983
  treeViewId: S == null ? void 0 : S.view_id,
6977
6984
  model: n
6978
6985
  }), [n, S == null ? void 0 : S.view_id]), {
@@ -7126,7 +7133,7 @@ function fp(e, t) {
7126
7133
  );
7127
7134
  k == null || k(tt.map((Qe) => ({ id: Qe })));
7128
7135
  };
7129
- ie ? C && C > up ? At({
7136
+ ie ? C && C > fp ? At({
7130
7137
  confirmMessage: O("confirmSelectAllRegisters").replace(
7131
7138
  "{totalRecords}",
7132
7139
  C.toString()
@@ -7306,7 +7313,7 @@ function fp(e, t) {
7306
7313
  }
7307
7314
  ),
7308
7315
  p === "side" && /* @__PURE__ */ i(
7309
- op,
7316
+ ip,
7310
7317
  {
7311
7318
  ...Gt,
7312
7319
  onClose: Et,
@@ -7314,7 +7321,7 @@ function fp(e, t) {
7314
7321
  }
7315
7322
  ),
7316
7323
  /* @__PURE__ */ i(
7317
- Vu,
7324
+ Eu,
7318
7325
  {
7319
7326
  selectedRowKeys: Y,
7320
7327
  allRowSelectedMode: !1,
@@ -7324,12 +7331,12 @@ function fp(e, t) {
7324
7331
  /* @__PURE__ */ i("div", { ref: T, style: ut, children: A || $e || w ? /* @__PURE__ */ i(We, {}) : z })
7325
7332
  ] });
7326
7333
  }
7327
- const oa = yt(fp), Ci = (e, t = "14px -apple-system") => {
7334
+ const oa = yt(mp), Ci = (e, t = "14px -apple-system") => {
7328
7335
  const r = document.createElement("canvas").getContext("2d");
7329
7336
  r.font = t;
7330
7337
  const o = r.measureText(e);
7331
7338
  return Math.round((o.width + 80) * 1.5);
7332
- }, mp = (e, t, n = 500) => {
7339
+ }, pp = (e, t, n = 500) => {
7333
7340
  if (e.length === 0)
7334
7341
  return { columns: e };
7335
7342
  const r = e.map(
@@ -7350,11 +7357,11 @@ const oa = yt(fp), Ci = (e, t = "14px -apple-system") => {
7350
7357
  source: t,
7351
7358
  tableWidth: o
7352
7359
  };
7353
- }, pp = dn.div`
7360
+ }, hp = dn.div`
7354
7361
  display: flex;
7355
7362
  align-items: center;
7356
7363
  justify-content: center;
7357
- `, hp = ({
7364
+ `, gp = ({
7358
7365
  numberOfVisibleSelectedRows: e,
7359
7366
  totalRecords: t,
7360
7367
  numberOfTotalRows: n,
@@ -7383,7 +7390,7 @@ const oa = yt(fp), Ci = (e, t = "14px -apple-system") => {
7383
7390
  "{totalRecords}",
7384
7391
  o.toString()
7385
7392
  ) + " " });
7386
- return /* @__PURE__ */ i(pp, { children: o > n ? d : f });
7393
+ return /* @__PURE__ */ i(hp, { children: o > n ? d : f });
7387
7394
  }, ia = yt(
7388
7395
  (e, t) => {
7389
7396
  var G;
@@ -7457,7 +7464,7 @@ const oa = yt(fp), Ci = (e, t = "14px -apple-system") => {
7457
7464
  }
7458
7465
  ) }),
7459
7466
  T && /* @__PURE__ */ i(we, { span: 8, className: "text-center", children: /* @__PURE__ */ i(
7460
- hp,
7467
+ gp,
7461
7468
  {
7462
7469
  numberOfVisibleSelectedRows: j,
7463
7470
  numberOfRealSelectedRows: (d == null ? void 0 : d.length) || 0,
@@ -7492,7 +7499,7 @@ const oa = yt(fp), Ci = (e, t = "14px -apple-system") => {
7492
7499
  }), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: ee.join(", ") });
7493
7500
  }, [S, d, F]), Z = me(() => {
7494
7501
  if (F !== null && D && D.length > 0)
7495
- return mp(D, S, 600);
7502
+ return pp(D, S, 600);
7496
7503
  }, [D, S, F]), B = me(() => h && (F != null && F.columns.some((j) => j.sum !== void 0)) ? h - 30 : h, [h, F == null ? void 0 : F.columns]);
7497
7504
  return F === null || !Z || ((G = Z == null ? void 0 : Z.columns) == null ? void 0 : G.length) === 0 ? /* @__PURE__ */ i(We, { style: { padding: "2rem" } }) : /* @__PURE__ */ E(Ln, { children: [
7498
7505
  H,
@@ -7509,7 +7516,7 @@ const oa = yt(fp), Ci = (e, t = "14px -apple-system") => {
7509
7516
  if (m[j.id])
7510
7517
  return { color: m[j.id] };
7511
7518
  },
7512
- onRowStatus: Fc(v) ? (j) => {
7519
+ onRowStatus: Ac(v) ? (j) => {
7513
7520
  if (v[j.id])
7514
7521
  return /* @__PURE__ */ i(zn, { color: v[j.id] });
7515
7522
  } : void 0,
@@ -7758,7 +7765,7 @@ const sa = (e) => {
7758
7765
  getAllIds: Ie
7759
7766
  };
7760
7767
  };
7761
- function gp(e, t) {
7768
+ function yp(e, t) {
7762
7769
  var Et;
7763
7770
  const {
7764
7771
  model: n,
@@ -8012,7 +8019,7 @@ function gp(e, t) {
8012
8019
  ]), Gt = S || Ae;
8013
8020
  return Gt ? /* @__PURE__ */ i(rt, { className: "mt-10", message: Gt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(We, {}) : gt() });
8014
8021
  }
8015
- const aa = yt(gp), wo = ({
8022
+ const aa = yt(yp), wo = ({
8016
8023
  visible: e,
8017
8024
  onCloseModal: t,
8018
8025
  onSelectValues: n,
@@ -8135,7 +8142,7 @@ const aa = yt(gp), wo = ({
8135
8142
  }
8136
8143
  )
8137
8144
  ] });
8138
- }, { defaultAlgorithm: yp, defaultSeed: vp } = Ge, la = yp(vp), wp = (e) => {
8145
+ }, { defaultAlgorithm: vp, defaultSeed: wp } = Ge, la = vp(wp), bp = (e) => {
8139
8146
  const { ooui: t } = e, { required: n } = t;
8140
8147
  return /* @__PURE__ */ i(_e, { required: n, type: "array", validator: async (o, s) => {
8141
8148
  if (!s)
@@ -8236,7 +8243,7 @@ const aa = yt(gp), wo = ({
8236
8243
  }
8237
8244
  return /* @__PURE__ */ E(ke, { gutter: 8, wrap: !1, children: [
8238
8245
  /* @__PURE__ */ i(we, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ i(
8239
- o && !a ? bp : lt,
8246
+ o && !a ? Sp : lt,
8240
8247
  {
8241
8248
  type: "text",
8242
8249
  value: C,
@@ -8317,13 +8324,13 @@ const aa = yt(gp), wo = ({
8317
8324
  }
8318
8325
  )
8319
8326
  ] });
8320
- }, bp = dn(lt)`
8327
+ }, Sp = dn(lt)`
8321
8328
  .ant-input {
8322
8329
  background-color: ${la.colorPrimaryBg};
8323
8330
  }
8324
8331
  `, yn = mt.createContext(
8325
8332
  null
8326
- ), Sp = ({
8333
+ ), Cp = ({
8327
8334
  children: e,
8328
8335
  initialView: t
8329
8336
  }) => {
@@ -8342,7 +8349,7 @@ const aa = yt(gp), wo = ({
8342
8349
  children: e
8343
8350
  }
8344
8351
  );
8345
- }, Cp = ({
8352
+ }, xp = ({
8346
8353
  title: e,
8347
8354
  content: t,
8348
8355
  onOk: n,
@@ -8389,7 +8396,7 @@ const aa = yt(gp), wo = ({
8389
8396
  const n = qi(t);
8390
8397
  return n.render(
8391
8398
  /* @__PURE__ */ i(
8392
- Cp,
8399
+ xp,
8393
8400
  {
8394
8401
  ...e,
8395
8402
  onOk: async () => {
@@ -8432,7 +8439,7 @@ const aa = yt(gp), wo = ({
8432
8439
  onOk: t,
8433
8440
  cancelText: e("cancel")
8434
8441
  });
8435
- }, { useToken: xp } = Ge, ma = (e) => {
8442
+ }, { useToken: Ip } = Ge, ma = (e) => {
8436
8443
  const {
8437
8444
  title: t,
8438
8445
  readOnly: n,
@@ -8449,7 +8456,7 @@ const aa = yt(gp), wo = ({
8449
8456
  selectedRowKeys: h,
8450
8457
  showCreateButton: m,
8451
8458
  showToggleButton: v
8452
- } = e, { token: g } = xp();
8459
+ } = e, { token: g } = Ip();
8453
8460
  function y() {
8454
8461
  return /* @__PURE__ */ i("div", { className: "inline-block w-3" });
8455
8462
  }
@@ -8549,19 +8556,19 @@ const aa = yt(gp), wo = ({
8549
8556
  )
8550
8557
  ] })
8551
8558
  ] });
8552
- }, Ip = {
8559
+ }, Tp = {
8553
8560
  form: ki,
8554
8561
  tree: Vi,
8555
8562
  graph: un
8556
8563
  };
8557
- function Tp(e) {
8564
+ function Op(e) {
8558
8565
  const t = e.map((r) => r.id);
8559
8566
  return e.filter((r, o) => {
8560
8567
  const { id: s } = r;
8561
8568
  return !t.includes(s, o + 1);
8562
8569
  });
8563
8570
  }
8564
- const Op = (e) => {
8571
+ const Fp = (e) => {
8565
8572
  var et;
8566
8573
  const { value: t, onChange: n, ooui: r, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: c, setItemIndex: u } = te(
8567
8574
  yn
@@ -8597,7 +8604,7 @@ const Op = (e) => {
8597
8604
  var ye, Re;
8598
8605
  n == null || n({
8599
8606
  fields: ((ye = o.get("form")) == null ? void 0 : ye.fields) || ((Re = o.get("tree")) == null ? void 0 : Re.fields),
8600
- items: Tp(z)
8607
+ items: Op(z)
8601
8608
  });
8602
8609
  }, $e = async () => {
8603
8610
  await Le(), c > le.length - 1 && c !== 0 && u(0);
@@ -8798,7 +8805,7 @@ const Op = (e) => {
8798
8805
  }
8799
8806
  };
8800
8807
  function Oe() {
8801
- const z = Ip[a];
8808
+ const z = Tp[a];
8802
8809
  if (a === "graph")
8803
8810
  return Pi(o.get("graph").arch).string;
8804
8811
  {
@@ -8938,7 +8945,7 @@ const Op = (e) => {
8938
8945
  }
8939
8946
  )
8940
8947
  ] });
8941
- }, Fp = ({
8948
+ }, Ap = ({
8942
8949
  fieldName: e,
8943
8950
  widgetDomain: t
8944
8951
  }) => {
@@ -8968,7 +8975,7 @@ const Op = (e) => {
8968
8975
  ));
8969
8976
  }
8970
8977
  return n.current;
8971
- }, Ap = ({
8978
+ }, Rp = ({
8972
8979
  treeView: e,
8973
8980
  relation: t,
8974
8981
  context: n,
@@ -8990,20 +8997,20 @@ const Op = (e) => {
8990
8997
  endRow: v,
8991
8998
  sortFields: g
8992
8999
  }) => {
8993
- const y = is(g), { realItemsIds: w, otherItems: I } = Vc({
9000
+ const y = is(g), { realItemsIds: w, otherItems: I } = Ec({
8994
9001
  allItems: h,
8995
9002
  ...y ? {} : { range: { startRow: m, endRow: v } }
8996
9003
  });
8997
9004
  if (w.length === 0 && I.length === 0)
8998
9005
  return { results: [], colors: {}, status: {} };
8999
- const C = y ? (await Dc(w, t, n, y)).slice(
9006
+ const C = y ? (await Pc(w, t, n, y)).slice(
9000
9007
  m,
9001
9008
  v
9002
- ) : w, b = Pc(d), {
9009
+ ) : w, b = kc(d), {
9003
9010
  items: O,
9004
9011
  colors: T,
9005
9012
  status: R
9006
- } = await kc({
9013
+ } = await $c({
9007
9014
  relation: t,
9008
9015
  ids: C,
9009
9016
  treeView: e,
@@ -9011,7 +9018,7 @@ const Op = (e) => {
9011
9018
  attrs: b,
9012
9019
  treeOoui: d
9013
9020
  }), V = C.length < v - m && I.length > 0 ? [...C, ...I.map((F) => F.id)] : C;
9014
- return { results: Ec({
9021
+ return { results: Dc({
9015
9022
  finalResultIds: V,
9016
9023
  fetchedItems: O,
9017
9024
  otherItems: I
@@ -9026,7 +9033,7 @@ const Op = (e) => {
9026
9033
  onGetFirstVisibileRowIndex: f,
9027
9034
  onSelectionCheckboxClicked: c
9028
9035
  };
9029
- }, Rp = ({
9036
+ }, _p = ({
9030
9037
  items: e,
9031
9038
  relation: t,
9032
9039
  context: n,
@@ -9099,9 +9106,9 @@ const Op = (e) => {
9099
9106
  getOriginalItemsWithRestoredItemId: f,
9100
9107
  onFormChanges: d
9101
9108
  };
9102
- }, _p = ({
9109
+ }, Vp = ({
9103
9110
  one2manyItems: e
9104
- }) => Tn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), Vp = ({
9111
+ }) => Tn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), Ep = ({
9105
9112
  formView: e,
9106
9113
  items: t,
9107
9114
  context: n,
@@ -9128,12 +9135,12 @@ const Op = (e) => {
9128
9135
  values: { ...f, id: d },
9129
9136
  treeValues: { ...f, id: d }
9130
9137
  } : m);
9131
- s(_c(p));
9138
+ s(Vc(p));
9132
9139
  },
9133
9140
  readOnly: o
9134
9141
  }
9135
9142
  );
9136
- }, Ep = ({
9143
+ }, Dp = ({
9137
9144
  isMany2many: e,
9138
9145
  triggerChange: t,
9139
9146
  items: n,
@@ -9144,7 +9151,7 @@ const Op = (e) => {
9144
9151
  const { t: a } = he(), { currentView: l, itemIndex: c, setItemIndex: u } = te(
9145
9152
  yn
9146
9153
  ), f = N(async () => {
9147
- const m = Dp({
9154
+ const m = Pp({
9148
9155
  selectedRowKeys: o,
9149
9156
  items: n
9150
9157
  });
@@ -9196,7 +9203,7 @@ const Op = (e) => {
9196
9203
  });
9197
9204
  }, [e, p, a]) };
9198
9205
  };
9199
- function Dp({
9206
+ function Pp({
9200
9207
  selectedRowKeys: e,
9201
9208
  items: t
9202
9209
  }) {
@@ -9205,7 +9212,7 @@ function Dp({
9205
9212
  o.id && r[o.id] > 0 && (n.push(o), r[o.id] -= 1);
9206
9213
  }), n;
9207
9214
  }
9208
- const Pp = ({
9215
+ const kp = ({
9209
9216
  currentView: e,
9210
9217
  inv_field: t,
9211
9218
  activeId: n,
@@ -9279,7 +9286,7 @@ const Pp = ({
9279
9286
  onFormModalSubmitSucceed: I,
9280
9287
  openItemInFormModal: C
9281
9288
  };
9282
- }, kp = ({
9289
+ }, $p = ({
9283
9290
  currentView: e,
9284
9291
  showFormChangesDialogIfNeeded: t,
9285
9292
  items: n,
@@ -9337,7 +9344,7 @@ const Pp = ({
9337
9344
  onCloseSearchModal: f,
9338
9345
  onSelectSearchValues: p
9339
9346
  };
9340
- }, $p = (e) => `columnState-${e.parentViewId}-${e.treeViewId}-${e.one2ManyFieldName}-${e.model}`, Np = 400, Mp = ({
9347
+ }, Np = (e) => `columnState-${e.parentViewId}-${e.treeViewId}-${e.one2ManyFieldName}-${e.model}`, Mp = 400, Lp = ({
9341
9348
  items: e,
9342
9349
  height: t,
9343
9350
  onRowDoubleClick: n,
@@ -9391,7 +9398,7 @@ const Pp = ({
9391
9398
  if (I.current[(W = (L = k.node) == null ? void 0 : L.data) == null ? void 0 : W.id])
9392
9399
  return { color: I.current[(D = (M = k.node) == null ? void 0 : M.data) == null ? void 0 : D.id] };
9393
9400
  }, []), { loading: F, getColumnState: P, updateColumnState: _ } = Os(
9394
- $p({
9401
+ Np({
9395
9402
  ...h,
9396
9403
  model: u
9397
9404
  })
@@ -9400,7 +9407,7 @@ const Pp = ({
9400
9407
  zi,
9401
9408
  {
9402
9409
  ref: w,
9403
- height: t || Np,
9410
+ height: t || Mp,
9404
9411
  columns: S,
9405
9412
  onRequestData: V,
9406
9413
  onRowDoubleClick: n,
@@ -9427,7 +9434,7 @@ const Pp = ({
9427
9434
  }
9428
9435
  }
9429
9436
  );
9430
- }, Lp = ({
9437
+ }, jp = ({
9431
9438
  ooui: e,
9432
9439
  items: t,
9433
9440
  selectedRowKeys: n,
@@ -9440,9 +9447,9 @@ const Pp = ({
9440
9447
  model: r,
9441
9448
  domain: s
9442
9449
  });
9443
- }, jp = ["form", "tree", "graph"], Bp = (e) => {
9450
+ }, Bp = ["form", "tree", "graph"], Hp = (e) => {
9444
9451
  var Te;
9445
- const t = J(null), { value: n, onChange: r, ooui: o, views: s } = e, { items: a = [] } = n || {}, l = _p({ one2manyItems: a }), { currentView: c, setCurrentView: u, itemIndex: f, setItemIndex: d } = te(
9452
+ const t = J(null), { value: n, onChange: r, ooui: o, views: s } = e, { items: a = [] } = n || {}, l = Vp({ one2manyItems: a }), { currentView: c, setCurrentView: u, itemIndex: f, setItemIndex: d } = te(
9446
9453
  yn
9447
9454
  ), {
9448
9455
  readOnly: p,
@@ -9454,7 +9461,7 @@ const Pp = ({
9454
9461
  activeId: w,
9455
9462
  getContext: I,
9456
9463
  fetchValues: C
9457
- } = y || {}, b = s.size > 1, O = ((Te = s.get("form")) == null ? void 0 : Te.fields) !== void 0, T = me(() => ({ ...I == null ? void 0 : I(), ...m }), [I, m]), R = Fp({
9464
+ } = y || {}, b = s.size > 1, O = ((Te = s.get("form")) == null ? void 0 : Te.fields) !== void 0, T = me(() => ({ ...I == null ? void 0 : I(), ...m }), [I, m]), R = Ap({
9458
9465
  widgetDomain: v,
9459
9466
  fieldName: g
9460
9467
  }), {
@@ -9465,13 +9472,13 @@ const Pp = ({
9465
9472
  onChangeFirstVisibleRowIndex: P,
9466
9473
  onGetFirstVisibileRowIndex: _,
9467
9474
  onSelectionCheckboxClicked: k
9468
- } = Ap({
9475
+ } = Rp({
9469
9476
  treeView: s.get("tree"),
9470
9477
  relation: h,
9471
9478
  context: T,
9472
9479
  allRowsIds: l.filter((fe) => fe.id !== void 0).map((fe) => fe.id),
9473
9480
  gridRef: t
9474
- }), [, L] = Lp({
9481
+ }), [, L] = jp({
9475
9482
  ooui: S,
9476
9483
  model: h,
9477
9484
  items: l,
@@ -9493,7 +9500,7 @@ const Pp = ({
9493
9500
  onFormChanges: ne,
9494
9501
  showFormChangesDialogIfNeeded: X,
9495
9502
  setFormHasChanges: H
9496
- } = Rp({
9503
+ } = _p({
9497
9504
  items: l,
9498
9505
  formView: s.get("form"),
9499
9506
  treeView: s.get("tree"),
@@ -9508,7 +9515,7 @@ const Pp = ({
9508
9515
  onFormModalSubmitSucceed: j,
9509
9516
  createItem: ee,
9510
9517
  openItemInFormModal: le
9511
- } = Pp({
9518
+ } = kp({
9512
9519
  activeId: w,
9513
9520
  inv_field: o.inv_field,
9514
9521
  showFormChangesDialogIfNeeded: X,
@@ -9525,7 +9532,7 @@ const Pp = ({
9525
9532
  onSelectSearchValues: pe,
9526
9533
  onCloseSearchModal: ve,
9527
9534
  searchItem: $e
9528
- } = kp({
9535
+ } = $p({
9529
9536
  showFormChangesDialogIfNeeded: X,
9530
9537
  currentView: c,
9531
9538
  triggerChange: D,
@@ -9533,7 +9540,7 @@ const Pp = ({
9533
9540
  views: s,
9534
9541
  context: T,
9535
9542
  relation: h
9536
- }), { showRemoveConfirm: Le } = Ep({
9543
+ }), { showRemoveConfirm: Le } = Dp({
9537
9544
  isMany2many: M,
9538
9545
  items: l,
9539
9546
  triggerChange: D,
@@ -9594,7 +9601,7 @@ const Pp = ({
9594
9601
  }
9595
9602
  ),
9596
9603
  c === "tree" && /* @__PURE__ */ i(
9597
- Mp,
9604
+ Lp,
9598
9605
  {
9599
9606
  gridRef: t,
9600
9607
  height: o.height,
@@ -9620,7 +9627,7 @@ const Pp = ({
9620
9627
  }
9621
9628
  ),
9622
9629
  c === "form" && /* @__PURE__ */ i(
9623
- Vp,
9630
+ Ep,
9624
9631
  {
9625
9632
  items: l,
9626
9633
  formView: s.get("form"),
@@ -9671,12 +9678,12 @@ const Pp = ({
9671
9678
  limit: 0
9672
9679
  }
9673
9680
  ),
9674
- !jp.includes(c) && /* @__PURE__ */ E("span", { children: [
9681
+ !Bp.includes(c) && /* @__PURE__ */ E("span", { children: [
9675
9682
  "Unsupported view ",
9676
9683
  c
9677
9684
  ] })
9678
9685
  ] });
9679
- }, Hp = 30, Up = (e) => {
9686
+ }, Up = 30, Wp = (e) => {
9680
9687
  var b;
9681
9688
  const { ooui: t } = e, { mode: n, relation: r, views: o, required: s, context: a } = t;
9682
9689
  let l;
@@ -9707,7 +9714,7 @@ const Pp = ({
9707
9714
  u(!1);
9708
9715
  }
9709
9716
  };
9710
- return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(We, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Sp, { initialView: l, children: /* @__PURE__ */ i(
9717
+ return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(We, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Cp, { initialView: l, children: /* @__PURE__ */ i(
9711
9718
  _e,
9712
9719
  {
9713
9720
  required: s,
@@ -9724,7 +9731,7 @@ const Pp = ({
9724
9731
  },
9725
9732
  ...e,
9726
9733
  children: /* @__PURE__ */ i(
9727
- Wp,
9734
+ Gp,
9728
9735
  {
9729
9736
  ooui: t,
9730
9737
  views: p,
@@ -9734,14 +9741,14 @@ const Pp = ({
9734
9741
  )
9735
9742
  }
9736
9743
  ) });
9737
- }, Wp = (e) => {
9744
+ }, Gp = (e) => {
9738
9745
  const { ooui: t, value: n } = e;
9739
- return t.infinite || n && Array.isArray(n.items) && n.items.length >= Hp ? /* @__PURE__ */ i(Bp, { ...e }) : /* @__PURE__ */ i(Op, { ...e });
9740
- }, { useToken: Gp } = Ge, Kp = (e) => {
9746
+ return t.infinite || n && Array.isArray(n.items) && n.items.length >= Up ? /* @__PURE__ */ i(Hp, { ...e }) : /* @__PURE__ */ i(Fp, { ...e });
9747
+ }, { useToken: Kp } = Ge, qp = (e) => {
9741
9748
  const { ooui: t } = e, { required: n } = t;
9742
- return /* @__PURE__ */ i(_e, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(qp, { ooui: t }) });
9743
- }, qp = (e) => {
9744
- const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: s, required: a } = t, { token: l } = Gp(), c = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = J(), [f, d] = x(), p = te(Be), { elementHasLostFocus: h } = p || {};
9749
+ return /* @__PURE__ */ i(_e, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(Yp, { ooui: t }) });
9750
+ }, Yp = (e) => {
9751
+ const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: s, required: a } = t, { token: l } = Kp(), c = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = J(), [f, d] = x(), p = te(Be), { elementHasLostFocus: h } = p || {};
9745
9752
  ue(() => {
9746
9753
  d(Cs(n));
9747
9754
  }, [n]);
@@ -9752,7 +9759,7 @@ const Pp = ({
9752
9759
  u.current = y.target.value, d(y.target.value);
9753
9760
  }
9754
9761
  async function g() {
9755
- m(eu(f)), await new Promise((y) => setTimeout(y, 300)), h == null || h();
9762
+ m(tu(f)), await new Promise((y) => setTimeout(y, 300)), h == null || h();
9756
9763
  }
9757
9764
  return /* @__PURE__ */ i(
9758
9765
  lt,
@@ -9784,8 +9791,8 @@ function pa(e) {
9784
9791
  }
9785
9792
  ) });
9786
9793
  }
9787
- const { TabPane: Yp } = _i;
9788
- function zp(e) {
9794
+ const { TabPane: zp } = _i;
9795
+ function Jp(e) {
9789
9796
  const { ooui: t, responsiveBehaviour: n } = e, r = t.pages;
9790
9797
  function o(s) {
9791
9798
  if (s) {
@@ -9794,7 +9801,7 @@ function zp(e) {
9794
9801
  }
9795
9802
  }
9796
9803
  return /* @__PURE__ */ i(_i, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
9797
- Yp,
9804
+ zp,
9798
9805
  {
9799
9806
  tab: /* @__PURE__ */ E(ae, { children: [
9800
9807
  o(s.icon),
@@ -9813,10 +9820,10 @@ function zp(e) {
9813
9820
  s.label
9814
9821
  )) });
9815
9822
  }
9816
- const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
9817
- const { ooui: t } = e, { id: n, readOnly: r, required: o, height: s, translatable: a } = t, { token: l } = Jp(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = te(Be), { elementHasLostFocus: f } = u || {};
9823
+ const { useToken: Qp } = Ge, { TextArea: Lr } = lt, Xp = (e) => {
9824
+ const { ooui: t } = e, { id: n, readOnly: r, required: o, height: s, translatable: a } = t, { token: l } = Qp(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = te(Be), { elementHasLostFocus: f } = u || {};
9818
9825
  return /* @__PURE__ */ i(_e, { required: o, ...e, children: a ? /* @__PURE__ */ i(
9819
- Xp,
9826
+ Zp,
9820
9827
  {
9821
9828
  field: n,
9822
9829
  height: s,
@@ -9836,7 +9843,7 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
9836
9843
  onBlur: f
9837
9844
  }
9838
9845
  ) });
9839
- }, Xp = ({
9846
+ }, Zp = ({
9840
9847
  value: e,
9841
9848
  field: t,
9842
9849
  requiredStyle: n,
@@ -9926,13 +9933,13 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
9926
9933
  }
9927
9934
  ) })
9928
9935
  ] });
9929
- }, Zp = (e) => {
9936
+ }, eh = (e) => {
9930
9937
  const { ooui: t } = e, { label: n, icon: r } = t, o = dt(r || "");
9931
9938
  return /* @__PURE__ */ i(Yn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ E(Je, { children: [
9932
9939
  o ? /* @__PURE__ */ i(o, {}) : null,
9933
9940
  n
9934
9941
  ] }) });
9935
- }, eh = ({
9942
+ }, th = ({
9936
9943
  model: e,
9937
9944
  context: t,
9938
9945
  selectedRegistersToExport: n,
@@ -9952,7 +9959,7 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
9952
9959
  ]);
9953
9960
  const { datas: w } = await $.getHandler().exportData({
9954
9961
  model: e,
9955
- fields: sh({
9962
+ fields: ah({
9956
9963
  keys: g.selectedKeys,
9957
9964
  fields: a.current
9958
9965
  }),
@@ -9981,7 +9988,7 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
9981
9988
  fields: []
9982
9989
  });
9983
9990
  for (const [b, O] of Object.entries(C))
9984
- C[b].string = nh({
9991
+ C[b].string = rh({
9985
9992
  parentTitle: w.string,
9986
9993
  title: O.string
9987
9994
  });
@@ -9992,7 +9999,7 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
9992
9999
  },
9993
10000
  [t]
9994
10001
  ), p = N(async () => {
9995
- const g = await rh({ model: e, context: t }), y = await ih({
10002
+ const g = await oh({ model: e, context: t }), y = await sh({
9996
10003
  predefinedExports: g,
9997
10004
  fields: a.current,
9998
10005
  onGetFieldChilds: d
@@ -10074,7 +10081,7 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
10074
10081
  for (const r of Object.keys(e)) {
10075
10082
  const o = e[r], s = ha(o), a = o.is_function === !0, l = s && !a;
10076
10083
  n.push({
10077
- key: th({ key: r, parentKey: t }),
10084
+ key: nh({ key: r, parentKey: t }),
10078
10085
  title: o.string,
10079
10086
  tooltip: o.help,
10080
10087
  required: o.required,
@@ -10082,7 +10089,7 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
10082
10089
  });
10083
10090
  }
10084
10091
  return n;
10085
- }, ha = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", th = ({
10092
+ }, ha = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", nh = ({
10086
10093
  parentKey: e,
10087
10094
  key: t
10088
10095
  }) => `${e ? e + "/" : ""}${t}`, jr = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), Br = (e) => {
@@ -10090,10 +10097,10 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
10090
10097
  return e;
10091
10098
  const t = e.split("/");
10092
10099
  return t[t.length - 1];
10093
- }, Hr = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[jr(e)], nh = ({
10100
+ }, Hr = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[jr(e)], rh = ({
10094
10101
  title: e,
10095
10102
  parentTitle: t
10096
- }) => `${t ? t + " → " : ""}${e}`, rh = async ({
10103
+ }) => `${t ? t + " → " : ""}${e}`, oh = async ({
10097
10104
  model: e,
10098
10105
  context: t
10099
10106
  }) => {
@@ -10113,24 +10120,24 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
10113
10120
  key: o.find((c) => c.id === a).name
10114
10121
  }))
10115
10122
  }));
10116
- }, oh = ({
10123
+ }, ih = ({
10117
10124
  fields: e,
10118
10125
  keys: t
10119
- }) => ah([
10126
+ }) => lh([
10120
10127
  ...new Set(
10121
10128
  t.filter((n) => {
10122
10129
  var r, o;
10123
10130
  return n.indexOf("/") === -1 ? !((r = e["/"]) != null && r[n]) : !((o = e == null ? void 0 : e[jr(n)]) != null && o[n]);
10124
10131
  }).map((n) => jr(n))
10125
10132
  )
10126
- ]), ih = async ({
10133
+ ]), sh = async ({
10127
10134
  predefinedExports: e,
10128
10135
  fields: t,
10129
10136
  onGetFieldChilds: n
10130
10137
  }) => {
10131
10138
  const r = e.flatMap(
10132
10139
  (a) => a.fields.map((l) => l.key)
10133
- ), o = oh({
10140
+ ), o = ih({
10134
10141
  fields: t,
10135
10142
  keys: r
10136
10143
  }), s = [];
@@ -10144,13 +10151,13 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
10144
10151
  );
10145
10152
  }
10146
10153
  return s;
10147
- }, sh = ({
10154
+ }, ah = ({
10148
10155
  keys: e,
10149
10156
  fields: t
10150
10157
  }) => e.map((n) => {
10151
10158
  const r = Br(n), s = Hr(n, t)[r], a = ha(s), l = s.is_function === !0;
10152
10159
  return a && !l ? `${n}/id` : n;
10153
- }), ah = (e) => {
10160
+ }), lh = (e) => {
10154
10161
  const t = /* @__PURE__ */ new Map(), n = [];
10155
10162
  for (const r of e) {
10156
10163
  const o = r.split("/");
@@ -10164,7 +10171,7 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
10164
10171
  const s = r.split("/").length, a = o.split("/").length;
10165
10172
  return s - a;
10166
10173
  }), n;
10167
- }, lh = (e) => {
10174
+ }, ch = (e) => {
10168
10175
  const {
10169
10176
  visible: t,
10170
10177
  onClose: n,
@@ -10182,7 +10189,7 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
10182
10189
  onGetPredefinedExports: h,
10183
10190
  onSavePredefinedExport: m,
10184
10191
  onRemovePredefinedExport: v
10185
- } = eh({
10192
+ } = th({
10186
10193
  model: r,
10187
10194
  context: o,
10188
10195
  domain: l,
@@ -10206,16 +10213,16 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
10206
10213
  onRemovePredefinedExport: v
10207
10214
  }
10208
10215
  );
10209
- }, ch = (e) => {
10216
+ }, dh = (e) => {
10210
10217
  const { ooui: t } = e;
10211
10218
  return /* @__PURE__ */ i(Is, { ooui: t });
10212
- }, dh = (e) => {
10219
+ }, uh = (e) => {
10213
10220
  const { ooui: t } = e;
10214
10221
  return /* @__PURE__ */ i(Is, { ooui: t, showTime: !0 });
10215
- }, uh = (e) => {
10222
+ }, fh = (e) => {
10216
10223
  const { ooui: t } = e;
10217
- return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(fh, { ooui: t }) });
10218
- }, fh = (e) => /* @__PURE__ */ i(
10224
+ return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(mh, { ooui: t }) });
10225
+ }, mh = (e) => /* @__PURE__ */ i(
10219
10226
  _r,
10220
10227
  {
10221
10228
  onChange: (n, r) => {
@@ -10224,10 +10231,10 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
10224
10231
  numberOfSelectsToHide: 3,
10225
10232
  value: e.value ? st(e.value, "HH:mm:ss") : void 0
10226
10233
  }
10227
- ), mh = (e) => {
10234
+ ), ph = (e) => {
10228
10235
  const { ooui: t } = e, { required: n } = t;
10229
- return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(ph, { ooui: t }) });
10230
- }, ph = (e) => {
10236
+ return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(hh, { ooui: t }) });
10237
+ }, hh = (e) => {
10231
10238
  const { value: t, onChange: n, ooui: r } = e, { required: o, selectionValues: s, readOnly: a, domain: l } = r, c = t == null ? void 0 : t.split(","), [u, f] = x([]), [d, p] = x();
10232
10239
  return ue(() => {
10233
10240
  if (!t) {
@@ -10275,11 +10282,11 @@ const { useToken: Jp } = Ge, { TextArea: Lr } = lt, Qp = (e) => {
10275
10282
  }
10276
10283
  ) })
10277
10284
  ] });
10278
- }, { useToken: hh } = Ge, gh = (e) => {
10285
+ }, { useToken: gh } = Ge, yh = (e) => {
10279
10286
  const { ooui: t } = e, { required: n } = t;
10280
- return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(yh, { ooui: t }) });
10281
- }, yh = (e) => {
10282
- const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = hh(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = J(null), { setFieldValue: f, getFieldValue: d } = te(Be) || {}, { t: p } = he(), h = n ? Sc(n) : "", m = (I) => {
10287
+ return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(vh, { ooui: t }) });
10288
+ }, vh = (e) => {
10289
+ const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = gh(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = J(null), { setFieldValue: f, getFieldValue: d } = te(Be) || {}, { t: p } = he(), h = n ? Cc(n) : "", m = (I) => {
10283
10290
  r == null || r(I);
10284
10291
  };
10285
10292
  async function v() {
@@ -10520,7 +10527,7 @@ async function va(e, t, n) {
10520
10527
  ] })
10521
10528
  );
10522
10529
  }
10523
- const vh = (e) => {
10530
+ const wh = (e) => {
10524
10531
  const {
10525
10532
  numberOfAttachments: t,
10526
10533
  attachments: n = [],
@@ -10618,7 +10625,7 @@ const vh = (e) => {
10618
10625
  }
10619
10626
  );
10620
10627
  };
10621
- function wh(e) {
10628
+ function bh(e) {
10622
10629
  const {
10623
10630
  attachments: t,
10624
10631
  disabled: n = !1,
@@ -10683,7 +10690,7 @@ function wh(e) {
10683
10690
  m();
10684
10691
  }, [m]), /* @__PURE__ */ E(ae, { children: [
10685
10692
  /* @__PURE__ */ i(
10686
- vh,
10693
+ wh,
10687
10694
  {
10688
10695
  numberOfAttachments: t.length,
10689
10696
  attachments: u,
@@ -10709,7 +10716,7 @@ function wh(e) {
10709
10716
  )
10710
10717
  ] });
10711
10718
  }
10712
- const bh = () => {
10719
+ const Sh = () => {
10713
10720
  const {
10714
10721
  isInfiniteTree: e,
10715
10722
  totalItems: t,
@@ -10792,12 +10799,12 @@ const bh = () => {
10792
10799
  onPreviousClick: v
10793
10800
  };
10794
10801
  };
10795
- function Sh({ toolbar: e }) {
10802
+ function Ch({ toolbar: e }) {
10796
10803
  const t = te(
10797
10804
  pn
10798
10805
  ), n = te(
10799
10806
  bt
10800
- ), { t: r } = he(), { onNextClick: o, onPreviousClick: s } = bh(), {
10807
+ ), { t: r } = he(), { onNextClick: o, onPreviousClick: s } = Sh(), {
10801
10808
  availableViews: a,
10802
10809
  currentView: l,
10803
10810
  setCurrentView: c,
@@ -11062,7 +11069,7 @@ function Sh({ toolbar: e }) {
11062
11069
  }
11063
11070
  ),
11064
11071
  /* @__PURE__ */ i(
11065
- wh,
11072
+ bh,
11066
11073
  {
11067
11074
  disabled: M,
11068
11075
  attachments: R,
@@ -11110,8 +11117,8 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11110
11117
  ],
11111
11118
  values: { selection_associated_object: `${e},${t}` },
11112
11119
  forced_values: { res_model: e, res_id: t }
11113
- }), { useToken: Ch } = Ge, wa = (e) => {
11114
- const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } = Ch(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = te(Be), { elementHasLostFocus: p } = d || {}, [h, m] = x(!1), [v, g] = x(!1);
11120
+ }), { useToken: xh } = Ge, wa = (e) => {
11121
+ const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } = xh(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = te(Be), { elementHasLostFocus: p } = d || {}, [h, m] = x(!1), [v, g] = x(!1);
11115
11122
  ue(() => {
11116
11123
  l && !h && g(!1), !n && !l && (m(!0), g(!0));
11117
11124
  }, [h, l]);
@@ -11166,26 +11173,26 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11166
11173
  }
11167
11174
  ) })
11168
11175
  ] });
11169
- }, xh = (e) => {
11176
+ }, Ih = (e) => {
11170
11177
  const { ooui: t } = e, { required: n } = t;
11171
11178
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
11172
11179
  wa,
11173
11180
  {
11174
11181
  ooui: t,
11175
- valueValidator: (r) => r ? jl(r) : !1
11182
+ valueValidator: (r) => r ? Bl(r) : !1
11176
11183
  }
11177
11184
  ) });
11178
- }, Ih = (e) => {
11185
+ }, Th = (e) => {
11179
11186
  const { ooui: t } = e, { required: n } = t;
11180
- return /* @__PURE__ */ i(_e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(uu, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
11187
+ return /* @__PURE__ */ i(_e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(fu, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
11181
11188
  wa,
11182
11189
  {
11183
11190
  ooui: t,
11184
11191
  linkPrefix: "mailto:",
11185
- valueValidator: (r) => r ? Bl(r) : !1
11192
+ valueValidator: (r) => r ? Hl(r) : !1
11186
11193
  }
11187
11194
  ) });
11188
- }, Th = (e) => {
11195
+ }, Oh = (e) => {
11189
11196
  const { visible: t, onIdSubmitted: n, onCancel: r, isSearching: o } = e, { t: s } = he(), a = J(null), l = J(!1);
11190
11197
  function c(u) {
11191
11198
  const f = u.id.split(",").map((d) => parseInt(d.trim()));
@@ -11267,9 +11274,9 @@ const Yt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), zt
11267
11274
  ] })
11268
11275
  }
11269
11276
  );
11270
- }, { useToken: Oh } = Ge;
11277
+ }, { useToken: Fh } = Ge;
11271
11278
  function ba(e) {
11272
- const { badgeNumber: t = 0, ...n } = e, { token: r } = Oh();
11279
+ const { badgeNumber: t = 0, ...n } = e, { token: r } = Fh();
11273
11280
  return /* @__PURE__ */ E("div", { style: { position: "relative" }, children: [
11274
11281
  t > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
11275
11282
  "span",
@@ -11296,7 +11303,7 @@ function ba(e) {
11296
11303
  )
11297
11304
  ] });
11298
11305
  }
11299
- function Fh({ refreshGraph: e }) {
11306
+ function Ah({ refreshGraph: e }) {
11300
11307
  const { t } = he(), {
11301
11308
  availableViews: n,
11302
11309
  currentView: r,
@@ -11353,7 +11360,7 @@ function Fh({ refreshGraph: e }) {
11353
11360
  )
11354
11361
  ] });
11355
11362
  }
11356
- const { useToken: Ah } = Ge, { Title: Rh, Text: $n } = _t, lr = ({
11363
+ const { useToken: Rh } = Ge, { Title: _h, Text: $n } = _t, lr = ({
11357
11364
  title: e,
11358
11365
  children: t,
11359
11366
  showSummary: n = !0
@@ -11367,7 +11374,7 @@ const { useToken: Ah } = Ge, { Title: Rh, Text: $n } = _t, lr = ({
11367
11374
  totalItems: c,
11368
11375
  selectedRowItems: u,
11369
11376
  isInfiniteTree: f
11370
- } = te(at), { t: d } = he(), { token: p } = Ah(), h = me(() => {
11377
+ } = te(at), { t: d } = he(), { token: p } = Rh(), h = me(() => {
11371
11378
  if (!n)
11372
11379
  return null;
11373
11380
  if ((o == null ? void 0 : o.type) === "form" && s) {
@@ -11449,7 +11456,7 @@ const { useToken: Ah } = Ge, { Title: Rh, Text: $n } = _t, lr = ({
11449
11456
  align: "middle",
11450
11457
  children: [
11451
11458
  /* @__PURE__ */ E(we, { flex: 2, children: [
11452
- /* @__PURE__ */ i(Rh, { level: 3, style: { marginBottom: 0 }, children: e || r }),
11459
+ /* @__PURE__ */ i(_h, { level: 3, style: { marginBottom: 0 }, children: e || r }),
11453
11460
  h
11454
11461
  ] }),
11455
11462
  /* @__PURE__ */ i(we, { flex: 3, children: /* @__PURE__ */ i(ke, { justify: "end", children: t }) })
@@ -11458,7 +11465,7 @@ const { useToken: Ah } = Ge, { Title: Rh, Text: $n } = _t, lr = ({
11458
11465
  ),
11459
11466
  /* @__PURE__ */ i("div", { className: "pb-5" })
11460
11467
  ] });
11461
- }, _h = (e) => {
11468
+ }, Vh = (e) => {
11462
11469
  const { viewData: t, visible: n, model: r, context: o, domain: s, formView: a, treeView: l } = e, c = J(), u = te(
11463
11470
  at
11464
11471
  ), {
@@ -11513,7 +11520,7 @@ const { useToken: Ah } = Ge, { Title: Rh, Text: $n } = _t, lr = ({
11513
11520
  });
11514
11521
  return !n || !t ? null : /* @__PURE__ */ E(ae, { children: [
11515
11522
  /* @__PURE__ */ i(lr, { title: t.title || t.name, children: /* @__PURE__ */ i(
11516
- Fh,
11523
+ Ah,
11517
11524
  {
11518
11525
  refreshGraph: () => {
11519
11526
  c.current.refresh();
@@ -11554,7 +11561,7 @@ const { useToken: Ah } = Ge, { Title: Rh, Text: $n } = _t, lr = ({
11554
11561
  }
11555
11562
  )
11556
11563
  ] });
11557
- }, Vh = (e) => {
11564
+ }, Eh = (e) => {
11558
11565
  const {
11559
11566
  visible: t,
11560
11567
  formRef: n,
@@ -11570,7 +11577,7 @@ const { useToken: Ah } = Ge, { Title: Rh, Text: $n } = _t, lr = ({
11570
11577
  setCurrentItemIndex: p
11571
11578
  } = e;
11572
11579
  return t ? /* @__PURE__ */ E(ae, { children: [
11573
- /* @__PURE__ */ i(lr, { children: /* @__PURE__ */ i(Sh, { toolbar: a == null ? void 0 : a.toolbar }) }),
11580
+ /* @__PURE__ */ i(lr, { children: /* @__PURE__ */ i(Ch, { toolbar: a == null ? void 0 : a.toolbar }) }),
11574
11581
  /* @__PURE__ */ i(
11575
11582
  hn,
11576
11583
  {
@@ -11590,7 +11597,7 @@ const { useToken: Ah } = Ge, { Title: Rh, Text: $n } = _t, lr = ({
11590
11597
  )
11591
11598
  ] }) : null;
11592
11599
  };
11593
- function Eh(e) {
11600
+ function Dh(e) {
11594
11601
  const { onSearch: t, disabled: n = !1, searchText: r } = e, { t: o } = he(), [s] = pt.useForm(), [a, l] = x(!1);
11595
11602
  function c(f) {
11596
11603
  t(f.search);
@@ -11631,7 +11638,7 @@ function Eh(e) {
11631
11638
  ) })
11632
11639
  ] }) });
11633
11640
  }
11634
- function Dh(e) {
11641
+ function Ph(e) {
11635
11642
  var B;
11636
11643
  const {
11637
11644
  availableViews: t,
@@ -11764,7 +11771,7 @@ function Dh(e) {
11764
11771
  ] }),
11765
11772
  A ? null : /* @__PURE__ */ E(ae, { children: [
11766
11773
  /* @__PURE__ */ i(
11767
- Eh,
11774
+ Dh,
11768
11775
  {
11769
11776
  disabled: l || a || w,
11770
11777
  searchText: y,
@@ -11957,7 +11964,7 @@ function Dh(e) {
11957
11964
  }
11958
11965
  ),
11959
11966
  /* @__PURE__ */ i(
11960
- lh,
11967
+ ch,
11961
11968
  {
11962
11969
  visible: W,
11963
11970
  onClose: () => M(!1),
@@ -11979,7 +11986,7 @@ function Dh(e) {
11979
11986
  function Nt() {
11980
11987
  return /* @__PURE__ */ i("div", { className: "inline-block w-2" });
11981
11988
  }
11982
- const Ph = (e) => {
11989
+ const kh = (e) => {
11983
11990
  const {
11984
11991
  visible: t,
11985
11992
  searchTreeRef: n,
@@ -12023,7 +12030,7 @@ const Ph = (e) => {
12023
12030
  );
12024
12031
  return t ? /* @__PURE__ */ E(Fn, { children: [
12025
12032
  /* @__PURE__ */ i(lr, { showSummary: !m, children: /* @__PURE__ */ i(
12026
- Dh,
12033
+ Ph,
12027
12034
  {
12028
12035
  toolbar: a == null ? void 0 : a.toolbar,
12029
12036
  parentContext: o,
@@ -12058,7 +12065,7 @@ const Ph = (e) => {
12058
12065
  }
12059
12066
  )
12060
12067
  ] }) : null;
12061
- }, So = mt.createContext(null), kh = (e) => {
12068
+ }, So = mt.createContext(null), $h = (e) => {
12062
12069
  const [t, n] = x(!1), [r, o] = x(!1), { children: s, dashboardRef: a, openAction: l } = e;
12063
12070
  return /* @__PURE__ */ i(
12064
12071
  So.Provider,
@@ -12075,7 +12082,7 @@ const Ph = (e) => {
12075
12082
  }
12076
12083
  );
12077
12084
  };
12078
- function $h() {
12085
+ function Nh() {
12079
12086
  const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = te(So), { t: o } = he();
12080
12087
  return /* @__PURE__ */ E(Je, { wrap: !0, children: [
12081
12088
  /* @__PURE__ */ i(
@@ -12096,7 +12103,7 @@ function $h() {
12096
12103
  }
12097
12104
  }
12098
12105
  ),
12099
- Nh(),
12106
+ Mh(),
12100
12107
  /* @__PURE__ */ i(
12101
12108
  ot,
12102
12109
  {
@@ -12123,24 +12130,24 @@ function $h() {
12123
12130
  )
12124
12131
  ] });
12125
12132
  }
12126
- function Nh() {
12133
+ function Mh() {
12127
12134
  return /* @__PURE__ */ i("div", { className: "inline-block w-2" });
12128
12135
  }
12129
- const Mh = (e) => {
12136
+ const Lh = (e) => {
12130
12137
  const { dashboardData: t, visible: n } = e, r = J(), o = te(
12131
12138
  bt
12132
12139
  ), { openShortcut: s } = o || {};
12133
12140
  return !t || !n ? null : /* @__PURE__ */ E(
12134
- kh,
12141
+ $h,
12135
12142
  {
12136
12143
  dashboardRef: r,
12137
12144
  openAction: (a) => {
12138
12145
  s(a);
12139
12146
  },
12140
12147
  children: [
12141
- /* @__PURE__ */ i(lr, { children: /* @__PURE__ */ i($h, {}) }),
12148
+ /* @__PURE__ */ i(lr, { children: /* @__PURE__ */ i(Nh, {}) }),
12142
12149
  /* @__PURE__ */ i(
12143
- qh,
12150
+ Yh,
12144
12151
  {
12145
12152
  ref: r,
12146
12153
  model: t.model,
@@ -12153,7 +12160,7 @@ const Mh = (e) => {
12153
12160
  }
12154
12161
  );
12155
12162
  };
12156
- async function Lh(e) {
12163
+ async function jh(e) {
12157
12164
  const t = await Promise.all(
12158
12165
  e.map(async (r) => {
12159
12166
  try {
@@ -12168,7 +12175,7 @@ async function Lh(e) {
12168
12175
  info: t[o]
12169
12176
  })).filter((r) => r.info !== null);
12170
12177
  }
12171
- function jh(e, t) {
12178
+ function Bh(e, t) {
12172
12179
  const {
12173
12180
  domain: n,
12174
12181
  model: r,
@@ -12233,7 +12240,7 @@ function jh(e, t) {
12233
12240
  viewTuple: Ne
12234
12241
  });
12235
12242
  }
12236
- const Se = await Lh(Ce);
12243
+ const Se = await jh(Ce);
12237
12244
  for (const Ne of Se) {
12238
12245
  if (!Ne)
12239
12246
  continue;
@@ -12364,7 +12371,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12364
12371
  switch (Y.type) {
12365
12372
  case "form":
12366
12373
  return /* @__PURE__ */ i(
12367
- Vh,
12374
+ Eh,
12368
12375
  {
12369
12376
  formRef: G,
12370
12377
  currentId: R,
@@ -12383,7 +12390,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12383
12390
  );
12384
12391
  case "tree":
12385
12392
  return /* @__PURE__ */ i(
12386
- Ph,
12393
+ kh,
12387
12394
  {
12388
12395
  visible: y.type === Y.type && y.view_id === Y.view_id,
12389
12396
  limit: g,
@@ -12404,7 +12411,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12404
12411
  );
12405
12412
  case "graph":
12406
12413
  return /* @__PURE__ */ i(
12407
- _h,
12414
+ Vh,
12408
12415
  {
12409
12416
  visible: y.type === Y.type && y.view_id === Y.view_id,
12410
12417
  viewData: Y,
@@ -12418,7 +12425,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12418
12425
  );
12419
12426
  case "dashboard":
12420
12427
  return /* @__PURE__ */ i(
12421
- Mh,
12428
+ Lh,
12422
12429
  {
12423
12430
  dashboardData: Y,
12424
12431
  visible: y.type === Y.type && y.view_id === Y.view_id
@@ -12440,7 +12447,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12440
12447
  }
12441
12448
  }
12442
12449
  return b ? /* @__PURE__ */ i(We, {}) : y ? /* @__PURE__ */ E(
12443
- vd,
12450
+ wd,
12444
12451
  {
12445
12452
  title: a,
12446
12453
  currentView: y,
@@ -12470,7 +12477,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12470
12477
  children: [
12471
12478
  fe(),
12472
12479
  /* @__PURE__ */ i(
12473
- Th,
12480
+ Oh,
12474
12481
  {
12475
12482
  visible: Q,
12476
12483
  onIdSubmitted: Te,
@@ -12484,8 +12491,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12484
12491
  }
12485
12492
  ) : null;
12486
12493
  }
12487
- const Sa = yt(jh);
12488
- const Bh = Kl(ql), Hh = (e) => {
12494
+ const Sa = yt(Bh);
12495
+ const Hh = ql(Yl), Uh = (e) => {
12489
12496
  const { children: t = [], onPositionItemsChanged: n } = e, r = mt.Children.map(
12490
12497
  t,
12491
12498
  (o) => {
@@ -12494,7 +12501,7 @@ const Bh = Kl(ql), Hh = (e) => {
12494
12501
  }
12495
12502
  );
12496
12503
  return /* @__PURE__ */ i(
12497
- Bh,
12504
+ Hh,
12498
12505
  {
12499
12506
  className: "layout",
12500
12507
  cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
@@ -12515,7 +12522,7 @@ const Bh = Kl(ql), Hh = (e) => {
12515
12522
  }
12516
12523
  );
12517
12524
  };
12518
- function Uh(e) {
12525
+ function Wh(e) {
12519
12526
  const {
12520
12527
  action: t,
12521
12528
  model: n,
@@ -12627,7 +12634,7 @@ function Uh(e) {
12627
12634
  ] });
12628
12635
  return M ? /* @__PURE__ */ i(rt, { className: "mt-10", message: M, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(We, { style: { padding: "2rem" } }) : le();
12629
12636
  }
12630
- const Wh = an(Uh), Gh = (e) => {
12637
+ const Gh = an(Wh), Kh = (e) => {
12631
12638
  const { model: t } = e, [n, r] = x();
12632
12639
  ue(() => {
12633
12640
  o();
@@ -12642,7 +12649,7 @@ const Wh = an(Uh), Gh = (e) => {
12642
12649
  }
12643
12650
  return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(hn, { ...e, model: t, id: n, readOnly: !0 }) });
12644
12651
  }, Ir = "line_ids";
12645
- function Kh(e, t) {
12652
+ function qh(e, t) {
12646
12653
  const { model: n, context: r = {}, id: o, configAction: s } = e, [a, l] = x([]), [c, u] = x(!1), [f, d] = x(), {
12647
12654
  setIsLoading: p,
12648
12655
  openAction: h,
@@ -12774,7 +12781,7 @@ function Kh(e, t) {
12774
12781
  async function A() {
12775
12782
  h(s);
12776
12783
  }
12777
- return c ? /* @__PURE__ */ i(wt, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Hh, { onPositionItemsChanged: V, children: a.map((F, P) => {
12784
+ return c ? /* @__PURE__ */ i(wt, {}) : f ? /* @__PURE__ */ i(rt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Uh, { onPositionItemsChanged: V, children: a.map((F, P) => {
12778
12785
  const { actionData: _, values: k } = F, { position: L, id: W } = k, {
12779
12786
  actionId: M,
12780
12787
  actionType: D,
@@ -12810,10 +12817,10 @@ function Kh(e, t) {
12810
12817
  W
12811
12818
  );
12812
12819
  } else if ((B == null ? void 0 : B.type) === "form")
12813
- ee = /* @__PURE__ */ i(Gh, { model: H, actionDomain: Z }, W);
12820
+ ee = /* @__PURE__ */ i(Kh, { model: H, actionDomain: Z }, W);
12814
12821
  else if ((B == null ? void 0 : B.type) === "tree")
12815
12822
  ee = /* @__PURE__ */ i(
12816
- Wh,
12823
+ Gh,
12817
12824
  {
12818
12825
  model: H,
12819
12826
  domain: Z,
@@ -12904,10 +12911,10 @@ function Kh(e, t) {
12904
12911
  );
12905
12912
  }) });
12906
12913
  }
12907
- const qh = yt(Kh), Yh = (e) => {
12914
+ const Yh = yt(qh), zh = (e) => {
12908
12915
  const { ooui: t } = e;
12909
- return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(zh, { ooui: t }) });
12910
- }, zh = (e) => {
12916
+ return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Jh, { ooui: t }) });
12917
+ }, Jh = (e) => {
12911
12918
  const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, s = o.filter((R) => R.operation !== "pendingRemove").map((R) => R.id), [a, l] = x([]), [c, u] = x(), [f, d] = x(!1), { relation: p, context: h, readOnly: m, field: v, columns: g } = n, y = te(Be), { getContext: w } = y || {};
12912
12919
  St(() => {
12913
12920
  C();
@@ -12988,7 +12995,7 @@ const qh = yt(Kh), Yh = (e) => {
12988
12995
  /* @__PURE__ */ i(je, { onClick: O, disabled: s.length === 0, children: "Uncheck all" })
12989
12996
  ] })
12990
12997
  ] }) });
12991
- }, Jh = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Qh, { ...e }) }), Qh = (e) => {
12998
+ }, Qh = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Xh, { ...e }) }), Xh = (e) => {
12992
12999
  const { value: t, ooui: n } = e;
12993
13000
  return /* @__PURE__ */ i(
12994
13001
  "div",
@@ -12998,34 +13005,34 @@ const qh = yt(Kh), Yh = (e) => {
12998
13005
  overflow: "auto"
12999
13006
  },
13000
13007
  children: /* @__PURE__ */ i(
13001
- Hl,
13008
+ Ul,
13002
13009
  {
13003
- remarkPlugins: [Ul],
13010
+ remarkPlugins: [Wl],
13004
13011
  className: "markdown-typography",
13005
13012
  children: t
13006
13013
  }
13007
13014
  )
13008
13015
  }
13009
13016
  );
13010
- }, Xh = (e) => {
13011
- const { ooui: t } = e, { required: n } = t;
13012
- return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Zh, { ...e }) });
13013
13017
  }, Zh = (e) => {
13018
+ const { ooui: t } = e, { required: n } = t;
13019
+ return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(eg, { ...e }) });
13020
+ }, eg = (e) => {
13014
13021
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, direction: a } = t, l = Array.from(o.entries()), c = l && l.length && l.map((u) => {
13015
13022
  const [f, d] = u;
13016
13023
  return /* @__PURE__ */ i(To, { value: f, children: d }, f);
13017
13024
  });
13018
13025
  return /* @__PURE__ */ i(To.Group, { disabled: s, onChange: n, value: r, children: /* @__PURE__ */ i(Je, { direction: a, children: c }) });
13019
- }, eg = (e) => {
13020
- const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
13021
- return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(tg, { id: n, readOnly: r, required: o }) });
13022
13026
  }, tg = (e) => {
13027
+ const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
13028
+ return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(ng, { id: n, readOnly: r, required: o }) });
13029
+ }, ng = (e) => {
13023
13030
  const { required: t, readOnly: n, ...r } = e;
13024
13031
  return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(Ua, { disabled: n, ...r }) });
13025
- }, ng = (e) => {
13026
- const { ooui: t } = e, { required: n } = t;
13027
- return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(rg, { ...e }) });
13028
13032
  }, rg = (e) => {
13033
+ const { ooui: t } = e, { required: n } = t;
13034
+ return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(og, { ...e }) });
13035
+ }, og = (e) => {
13029
13036
  const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: s } = t, a = te(Be), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
13030
13037
  let u = "process", f = "";
13031
13038
  return o && (f = a.getFieldValue(o), f && (u = "error")), s && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(Oo, { current: c, status: u, children: l.map((d, p) => /* @__PURE__ */ i(
@@ -13035,7 +13042,7 @@ const qh = yt(Kh), Yh = (e) => {
13035
13042
  description: p === c && u === "error" ? f : null
13036
13043
  }
13037
13044
  )) });
13038
- }, og = (e) => {
13045
+ }, ig = (e) => {
13039
13046
  const {
13040
13047
  token: {
13041
13048
  colorPrimaryBg: t,
@@ -13098,7 +13105,7 @@ const qh = yt(Kh), Yh = (e) => {
13098
13105
  /* @__PURE__ */ i("div", { style: f }),
13099
13106
  /* @__PURE__ */ i("div", { style: d(h.active) })
13100
13107
  ] }, m)) });
13101
- }, ig = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(og, {}) }), sg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(ag, { ...e }) }), ag = (e) => {
13108
+ }, sg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(ig, {}) }), ag = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(lg, { ...e }) }), lg = (e) => {
13102
13109
  const { ooui: t, value: n, onChange: r } = e, { lang: o, height: s, readOnly: a } = t, l = te(Be), { elementHasLostFocus: c } = l || {}, u = N(
13103
13110
  (d) => {
13104
13111
  c && d.onDidBlurEditorWidget(() => c());
@@ -13114,7 +13121,7 @@ const qh = yt(Kh), Yh = (e) => {
13114
13121
  return n;
13115
13122
  }, [o, n]);
13116
13123
  return /* @__PURE__ */ i(
13117
- Wl,
13124
+ Gl,
13118
13125
  {
13119
13126
  value: f,
13120
13127
  options: {
@@ -13126,13 +13133,13 @@ const qh = yt(Kh), Yh = (e) => {
13126
13133
  onChange: r
13127
13134
  }
13128
13135
  );
13129
- }, { Meta: lg } = Ur, { Text: cg } = _t, dg = ({ email: e, size: t = 40, theme: n = "" }) => {
13130
- const r = `https://www.gravatar.com/avatar/${Gl(
13136
+ }, { Meta: cg } = Ur, { Text: dg } = _t, ug = ({ email: e, size: t = 40, theme: n = "" }) => {
13137
+ const r = `https://www.gravatar.com/avatar/${Kl(
13131
13138
  e
13132
13139
  )}?s=${t}&d=${n}`;
13133
13140
  return /* @__PURE__ */ i(Fi, { src: r, size: t });
13134
13141
  };
13135
- function ug({ text: e }) {
13142
+ function fg({ text: e }) {
13136
13143
  const t = e.split(`
13137
13144
  `);
13138
13145
  return /* @__PURE__ */ i("div", { children: t.map((n, r) => /* @__PURE__ */ E(Fn, { children: [
@@ -13140,13 +13147,13 @@ function ug({ text: e }) {
13140
13147
  r !== t.length - 1 && /* @__PURE__ */ i("br", {})
13141
13148
  ] }, r)) });
13142
13149
  }
13143
- const fg = (e) => {
13150
+ const mg = (e) => {
13144
13151
  const { data: t, style: n } = e, { t: r } = he();
13145
13152
  return /* @__PURE__ */ E(Ur, { style: { ...n, textAlign: "start" }, children: [
13146
13153
  /* @__PURE__ */ i(
13147
- lg,
13154
+ cg,
13148
13155
  {
13149
- avatar: /* @__PURE__ */ i(dg, { email: t.email, theme: "mp" }),
13156
+ avatar: /* @__PURE__ */ i(ug, { email: t.email, theme: "mp" }),
13150
13157
  title: t.author,
13151
13158
  description: /* @__PURE__ */ E(Je, { direction: "horizontal", children: [
13152
13159
  /* @__PURE__ */ i("span", { title: t.date, children: st(t.date).fromNow() }),
@@ -13155,9 +13162,9 @@ const fg = (e) => {
13155
13162
  style: { marginBottom: "5px" }
13156
13163
  }
13157
13164
  ),
13158
- /* @__PURE__ */ i(cg, { children: /* @__PURE__ */ i(ug, { text: t.text }) })
13165
+ /* @__PURE__ */ i(dg, { children: /* @__PURE__ */ i(fg, { text: t.text }) })
13159
13166
  ] }, t.id);
13160
- }, mg = (e) => {
13167
+ }, pg = (e) => {
13161
13168
  const { value: t, ooui: n } = e, r = (t || []).map((o) => {
13162
13169
  if (o.type === "action")
13163
13170
  return {
@@ -13168,7 +13175,7 @@ const fg = (e) => {
13168
13175
  color: "gray",
13169
13176
  position: o.event.isSender ? "left" : "right",
13170
13177
  label: o.event.date,
13171
- children: /* @__PURE__ */ i(fg, { data: o.event })
13178
+ children: /* @__PURE__ */ i(mg, { data: o.event })
13172
13179
  };
13173
13180
  });
13174
13181
  return /* @__PURE__ */ i(
@@ -13185,7 +13192,7 @@ const fg = (e) => {
13185
13192
  }
13186
13193
  }
13187
13194
  );
13188
- }, pg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(mg, { ooui: e.ooui }) }), hg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(yl, {}) }), gg = (e) => {
13195
+ }, hg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(pg, { ooui: e.ooui }) }), gg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(yl, {}) }), yg = (e) => {
13189
13196
  const { ooui: t } = e, { title: n, text: r, alertType: o, icon: s } = t;
13190
13197
  function a(c) {
13191
13198
  if (c) {
@@ -13205,18 +13212,18 @@ const fg = (e) => {
13205
13212
  icon: a(s)
13206
13213
  }
13207
13214
  );
13208
- }, { Content: yg } = Ri, { Title: vg } = _t;
13209
- function wg() {
13215
+ }, { Content: vg } = Ri, { Title: wg } = _t;
13216
+ function bg() {
13210
13217
  const { t: e } = he();
13211
- return /* @__PURE__ */ i(yg, { className: "m-5 select-none", children: /* @__PURE__ */ i(vg, { level: 5, children: e("welcome") }) });
13218
+ return /* @__PURE__ */ i(vg, { className: "m-5 select-none", children: /* @__PURE__ */ i(wg, { level: 5, children: e("welcome") }) });
13212
13219
  }
13213
- function bg(e, t) {
13220
+ function Sg(e, t) {
13214
13221
  const { children: n } = e, [r, o] = x("welcome"), { t: s } = he(), { globalValues: a, rootContext: l } = ao(), [c, u] = x([
13215
13222
  {
13216
13223
  title: s("welcome"),
13217
13224
  key: "welcome",
13218
13225
  closable: !0,
13219
- content: /* @__PURE__ */ i(wg, {})
13226
+ content: /* @__PURE__ */ i(bg, {})
13220
13227
  }
13221
13228
  ]), f = J(/* @__PURE__ */ new Map()), d = J();
13222
13229
  vt(t, () => ({
@@ -13526,7 +13533,7 @@ function bg(e, t) {
13526
13533
  }
13527
13534
  }
13528
13535
  return /* @__PURE__ */ i(
13529
- xd,
13536
+ Id,
13530
13537
  {
13531
13538
  openShortcut: y,
13532
13539
  openAction: I,
@@ -13542,7 +13549,7 @@ function bg(e, t) {
13542
13549
  o(C);
13543
13550
  },
13544
13551
  children: /* @__PURE__ */ i(
13545
- zd,
13552
+ Jd,
13546
13553
  {
13547
13554
  ref: d,
13548
13555
  globalValues: a,
@@ -13552,9 +13559,9 @@ function bg(e, t) {
13552
13559
  }
13553
13560
  );
13554
13561
  }
13555
- const Sy = yt(bg), { useToken: Sg } = Ge;
13556
- function Cg(e) {
13557
- const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = Sg(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
13562
+ const xy = yt(Sg), { useToken: Cg } = Ge;
13563
+ function xg(e) {
13564
+ const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = Cg(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
13558
13565
  return /* @__PURE__ */ E(
13559
13566
  "div",
13560
13567
  {
@@ -13624,12 +13631,12 @@ function Cg(e) {
13624
13631
  }
13625
13632
  );
13626
13633
  }
13627
- function Cy() {
13634
+ function Iy() {
13628
13635
  const e = te(
13629
13636
  bt
13630
13637
  ), { activeKey: t, tabs: n, onRemoveTab: r, onChangeTab: o } = e || {};
13631
13638
  return /* @__PURE__ */ i(ae, { children: n.map((s) => /* @__PURE__ */ i(
13632
- Cg,
13639
+ xg,
13633
13640
  {
13634
13641
  tabKey: s.key,
13635
13642
  label: s.title,
@@ -13640,7 +13647,7 @@ function Cy() {
13640
13647
  s.key
13641
13648
  )) });
13642
13649
  }
13643
- function xg(e) {
13650
+ function Ig(e) {
13644
13651
  const { tab: t } = e, n = te(
13645
13652
  bt
13646
13653
  ), { activeKey: r } = n || {}, o = {
@@ -13648,21 +13655,21 @@ function xg(e) {
13648
13655
  };
13649
13656
  return /* @__PURE__ */ i("div", { style: t.key !== r ? o : void 0, children: t.content });
13650
13657
  }
13651
- const Ig = mt.memo(xg, () => !0);
13652
- function xy() {
13658
+ const Tg = mt.memo(Ig, () => !0);
13659
+ function Ty() {
13653
13660
  const e = te(
13654
13661
  bt
13655
- ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(Ig, { tab: r }, r.key))) || null;
13662
+ ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(Tg, { tab: r }, r.key))) || null;
13656
13663
  return /* @__PURE__ */ i(ae, { children: n });
13657
13664
  }
13658
- const { useToken: Tg } = Ge, Iy = (e) => {
13665
+ const { useToken: Og } = Ge, Oy = (e) => {
13659
13666
  const {
13660
13667
  onRetrieveShortcuts: t,
13661
13668
  onCheckIsFavourite: n,
13662
13669
  onAddFavourite: r,
13663
13670
  onRemoveFavourite: o,
13664
13671
  onDropdownClosed: s
13665
- } = e, [a, l] = x(!1), [c, u] = x(), { t: f } = he(), { token: d } = Tg(), p = J(null), h = te(
13672
+ } = e, [a, l] = x(!1), [c, u] = x(), { t: f } = he(), { token: d } = Og(), p = J(null), h = te(
13666
13673
  bt
13667
13674
  ), {
13668
13675
  openShortcut: m,
@@ -13782,67 +13789,67 @@ const { useToken: Tg } = Ge, Iy = (e) => {
13782
13789
  );
13783
13790
  };
13784
13791
  export {
13785
- Sh as ActionBar,
13792
+ Ch as ActionBar,
13786
13793
  Sa as ActionView,
13787
- gg as Alert,
13788
- ig as ArrowStepsField,
13789
- gh as Binary,
13790
- vc as Boolean,
13794
+ yg as Alert,
13795
+ sg as ArrowStepsField,
13796
+ yh as Binary,
13797
+ wc as Boolean,
13791
13798
  oo as Button,
13792
- nc as ButtonGroup,
13799
+ rc as ButtonGroup,
13793
13800
  es as Char,
13794
- sg as CodeEditor,
13795
- pg as CommentsTimelineField,
13801
+ ag as CodeEditor,
13802
+ hg as CommentsTimelineField,
13796
13803
  ls as ConfigContext,
13797
- Qc as ConfigContextProvider,
13804
+ Xc as ConfigContextProvider,
13798
13805
  $ as ConnectionProvider,
13799
- zd as ContentRootProvider,
13800
- xy as CurrentTabContent,
13801
- qh as Dashboard,
13802
- Hh as DashboardGrid,
13803
- ch as Date,
13804
- dh as DateTime,
13805
- Ih as Email,
13806
- by as ErpAllFeatureKeys,
13806
+ Jd as ContentRootProvider,
13807
+ Ty as CurrentTabContent,
13808
+ Yh as Dashboard,
13809
+ Uh as DashboardGrid,
13810
+ dh as Date,
13811
+ uh as DateTime,
13812
+ Th as Email,
13813
+ Cy as ErpAllFeatureKeys,
13807
13814
  fn as ErpFeatureKeys,
13808
- lh as ExportModal,
13809
- Iy as FavouriteButton,
13815
+ ch as ExportModal,
13816
+ Oy as FavouriteButton,
13810
13817
  Rs as Float,
13811
- Kp as FloatTime,
13818
+ qp as FloatTime,
13812
13819
  hn as Form,
13813
13820
  gn as FormModal,
13814
13821
  ys as GraphCard,
13815
- td as GraphIndicator,
13822
+ nd as GraphIndicator,
13816
13823
  pa as Group,
13817
- hg as HTMLPreview,
13818
- Cc as Image,
13824
+ gg as HTMLPreview,
13825
+ xc as Image,
13819
13826
  Gn as Integer,
13820
13827
  nr as Label,
13821
- wp as Many2one,
13822
- Jh as Markdown,
13823
- Yh as MultiCheckbox,
13824
- zp as Notebook,
13825
- Up as One2many,
13826
- tu as ProgressBar,
13827
- Xh as Radio,
13828
- mh as Reference,
13829
- Sy as RootView,
13828
+ bp as Many2one,
13829
+ Qh as Markdown,
13830
+ zh as MultiCheckbox,
13831
+ Jp as Notebook,
13832
+ Wp as One2many,
13833
+ nu as ProgressBar,
13834
+ Zh as Radio,
13835
+ ph as Reference,
13836
+ xy as RootView,
13830
13837
  vo as SearchFilter,
13831
13838
  wo as SearchModal,
13832
13839
  aa as SearchTree,
13833
13840
  ts as Selection,
13834
- Zp as Separator,
13835
- ng as Steps,
13836
- eg as Switch,
13837
- Cg as Tab,
13838
- Cy as TabSelector,
13839
- Vd as Tag,
13840
- Ed as Tags,
13841
- Qp as Text,
13842
- uh as Time,
13841
+ eh as Separator,
13842
+ rg as Steps,
13843
+ tg as Switch,
13844
+ xg as Tab,
13845
+ Iy as TabSelector,
13846
+ Ed as Tag,
13847
+ Dd as Tags,
13848
+ Xp as Text,
13849
+ fh as Time,
13843
13850
  Dn as Tree,
13844
- xh as Url,
13845
- Fy as dayjs,
13851
+ Ih as Url,
13852
+ Ry as dayjs,
13846
13853
  dt as iconMapper,
13847
13854
  At as showConfirmDialog
13848
13855
  };