@gisce/react-ooui 2.65.0-alpha.5 → 2.65.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,11 +3,11 @@ var xl = (e, t, n) => t in e ? Cl(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var Xo = (e, t, n) => (xl(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsx as i, jsxs as P, Fragment as ee } from "react/jsx-runtime";
5
5
  import At, { useContext as ne, useState as I, useEffect as ae, useRef as Y, memo as Ze, useCallback as D, useMemo as q, forwardRef as _t, useImperativeHandle as Dt, Fragment as Sn, createContext as Tl, createElement as Il } from "react";
6
- import { Tooltip as Et, theme as ze, Typography as zt, Form as Rt, Row as Ye, Col as Oe, Modal as Tt, Button as We, Dropdown as Al, Menu as Zo, Spin as Qe, Divider as hr, Space as rt, Input as ft, Select as rn, Checkbox as Pn, Alert as yt, Timeline as is, message as Dn, Popover as Fl, App as _l, Progress as Ol, Avatar as ss, Tag as yo, DatePicker as vo, ColorPicker as as, TimePicker as Rl, InputNumber as gr, Layout as ls, Badge as jn, Pagination as Dl, Empty as cs, Statistic as El, Card as bo, Tabs as ds, Radio as ei, Switch as Pl, Steps as ti, Carousel as Vl } from "antd";
7
- import { Label as Cn, Field as Zr, Tree as us, Reference as kl, Selection as wo, Many2one as fs, Boolean as $l, parseContext as Yt, graphProcessor as ms, graphFieldUtils as Ml, parseContextFields as Ll, parseDomainFields as Nl, Integer as eo, SearchFieldTypes as Wt, SearchFilter as ps, parseGraph as hs, Container as jl, Form as gs, transformDomainForChildWidget as So, Button as Bl } from "@gisce/ooui";
6
+ import { Tooltip as Et, theme as ze, Typography as zt, Form as Rt, Row as Ye, Col as Oe, Modal as Tt, Button as We, Dropdown as Al, Menu as Zo, Spin as Qe, Divider as hr, Space as rt, Input as ft, Select as on, Checkbox as Vn, Alert as yt, Timeline as is, message as En, Popover as Fl, App as _l, Progress as Ol, Avatar as ss, Tag as yo, DatePicker as vo, ColorPicker as as, TimePicker as Rl, InputNumber as gr, Layout as ls, Badge as Bn, Pagination as Dl, Empty as cs, Statistic as El, Card as bo, Tabs as ds, Radio as ei, Switch as Pl, Steps as ti, Carousel as Vl } from "antd";
7
+ import { Label as Cn, Field as Zr, Tree as us, Reference as kl, Selection as wo, Many2one as fs, Boolean as $l, parseContext as Yt, graphProcessor as ms, graphFieldUtils as Ml, parseContextFields as Nl, parseDomainFields as Ll, Integer as eo, SearchFieldTypes as Wt, SearchFilter as ps, parseGraph as hs, Container as jl, Form as gs, transformDomainForChildWidget as So, Button as Bl } from "@gisce/ooui";
8
8
  import * as ni from "@ant-design/icons";
9
- import ys, { QuestionCircleOutlined as vs, ExclamationCircleOutlined as Jt, LoadingOutlined as Pt, DownOutlined as yr, WarningOutlined as bs, CloseOutlined as xn, CheckOutlined as Bn, TranslationOutlined as ws, FolderOpenOutlined as Co, DownloadOutlined as xo, ClearOutlined as vr, FormOutlined as Vn, TableOutlined as To, AreaChartOutlined as Hl, CalendarOutlined as Ul, FileAddOutlined as br, CloseCircleFilled as Wl, CopyOutlined as Hn, FilterOutlined as Ss, DeleteOutlined as Io, InfoCircleOutlined as Tn, ReloadOutlined as wr, ThunderboltOutlined as Sr, PrinterOutlined as Cr, ExportOutlined as Cs, EnterOutlined as xr, SearchOutlined as Tr, UpOutlined as Yl, PlusSquareOutlined as Gl, MinusSquareOutlined as Kl, StarFilled as ql, StarOutlined as zl, LeftOutlined as xs, RightOutlined as Ts, ApiOutlined as Jl, AlignLeftOutlined as Ql, EyeOutlined as Xl, LinkOutlined as ri, SaveOutlined as Zl, EditOutlined as Is, PlusOutlined as ec, BorderOuterOutlined as tc, SettingOutlined as nc } from "@ant-design/icons";
10
- import { Interweave as kn } from "interweave";
9
+ import ys, { QuestionCircleOutlined as vs, ExclamationCircleOutlined as Jt, LoadingOutlined as Pt, DownOutlined as yr, WarningOutlined as bs, CloseOutlined as xn, CheckOutlined as Hn, TranslationOutlined as ws, FolderOpenOutlined as Co, DownloadOutlined as xo, ClearOutlined as vr, FormOutlined as kn, TableOutlined as To, AreaChartOutlined as Hl, CalendarOutlined as Ul, FileAddOutlined as br, CloseCircleFilled as Wl, CopyOutlined as Un, FilterOutlined as Ss, DeleteOutlined as Io, InfoCircleOutlined as Tn, ReloadOutlined as wr, ThunderboltOutlined as Sr, PrinterOutlined as Cr, ExportOutlined as Cs, EnterOutlined as xr, SearchOutlined as Tr, UpOutlined as Yl, PlusSquareOutlined as Gl, MinusSquareOutlined as Kl, StarFilled as ql, StarOutlined as zl, LeftOutlined as xs, RightOutlined as Ts, ApiOutlined as Jl, AlignLeftOutlined as Ql, EyeOutlined as Xl, LinkOutlined as ri, SaveOutlined as Zl, EditOutlined as Is, PlusOutlined as ec, BorderOuterOutlined as tc, SettingOutlined as nc } from "@ant-design/icons";
10
+ import { Interweave as $n } from "interweave";
11
11
  import tt from "dayjs";
12
12
  import { default as hb } from "dayjs";
13
13
  import rc from "dayjs/plugin/advancedFormat";
@@ -18,7 +18,7 @@ import ac from "dayjs/plugin/duration";
18
18
  import lc from "dayjs/plugin/relativeTime";
19
19
  import cc from "dayjs/plugin/weekday";
20
20
  import dc from "dayjs/plugin/localeData";
21
- import { useLocale as me, FormigaConfigProvider as uc, mergeStrings as fc, Dropdown as As, DropdownButton as Nt, Many2OneSuffix as mc, Many2OneSuffixModal as oi, PaginationHeader as pc, FieldSet as hc, ExportModal as gc, HTMLPreview as yc, FavouriteButton as vc } from "@gisce/react-formiga-components";
21
+ import { useLocale as me, FormigaConfigProvider as uc, mergeStrings as fc, Dropdown as As, DropdownButton as Lt, Many2OneSuffix as mc, Many2OneSuffixModal as oi, PaginationHeader as pc, FieldSet as hc, ExportModal as gc, HTMLPreview as yc, FavouriteButton as vc } from "@gisce/react-formiga-components";
22
22
  import * as ii from "@tabler/icons-react";
23
23
  import { IconExternalLink as bc, IconShare2 as wc } from "@tabler/icons-react";
24
24
  import Sc from "antd/lib/input/TextArea";
@@ -43,11 +43,11 @@ import ir from "antd/es/alert/ErrorBoundary";
43
43
  import { useDeepCompareCallback as Ft, useDeepCompareMemo as yn, useDeepCompareEffect as Gt } from "use-deep-compare";
44
44
  import "@gisce/react-formiga-table/style.css";
45
45
  import { GridUi as kc } from "@gisce/fiber-diagram";
46
- import { useHotkeys as Qt } from "react-hotkeys-hook";
46
+ import { useHotkeys as Xt } from "react-hotkeys-hook";
47
47
  import $c from "validator/lib/isURL";
48
48
  import Mc from "validator/lib/isEmail";
49
49
  import "react-grid-layout/css/styles.css";
50
- import { WidthProvider as Lc, Responsive as Nc } from "react-grid-layout";
50
+ import { WidthProvider as Nc, Responsive as Lc } from "react-grid-layout";
51
51
  import jc from "react-markdown";
52
52
  import Bc from "remark-gfm";
53
53
  import Hc from "@monaco-editor/react";
@@ -120,7 +120,7 @@ const Ge = At.createContext(null), Gc = (e) => {
120
120
  formView: void 0
121
121
  };
122
122
  };
123
- var Xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
123
+ var Zt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
124
124
  function Ds(e) {
125
125
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
126
126
  }
@@ -128,7 +128,7 @@ var qc = { exports: {} };
128
128
  (function(e, t) {
129
129
  (function(n, r) {
130
130
  e.exports = r(tt);
131
- })(Xt, function(n) {
131
+ })(Zt, function(n) {
132
132
  function r(s) {
133
133
  return s && typeof s == "object" && "default" in s ? s : { default: s };
134
134
  }
@@ -142,7 +142,7 @@ var zc = { exports: {} };
142
142
  (function(e, t) {
143
143
  (function(n, r) {
144
144
  e.exports = r();
145
- })(Xt, function() {
145
+ })(Zt, function() {
146
146
  return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(n) {
147
147
  var r = ["th", "st", "nd", "rd"], o = n % 100;
148
148
  return "[" + n + (r[(o - 20) % 10] || r[o] || r[0]) + "]";
@@ -153,7 +153,7 @@ var Jc = { exports: {} };
153
153
  (function(e, t) {
154
154
  (function(n, r) {
155
155
  e.exports = r(tt);
156
- })(Xt, function(n) {
156
+ })(Zt, function(n) {
157
157
  function r(s) {
158
158
  return s && typeof s == "object" && "default" in s ? s : { default: s };
159
159
  }
@@ -203,7 +203,7 @@ const { Text: Qc, Title: Xc } = zt, { useToken: Zc } = ze, ed = {
203
203
  }
204
204
  }
205
205
  ) }),
206
- /* @__PURE__ */ i("span", { className: "pr-2", title: f, children: /* @__PURE__ */ i(y, { level: l, type: c, children: /* @__PURE__ */ i(kn, { content: d }) }) })
206
+ /* @__PURE__ */ i("span", { className: "pr-2", title: f, children: /* @__PURE__ */ i(y, { level: l, type: c, children: /* @__PURE__ */ i($n, { content: d }) }) })
207
207
  ]
208
208
  }
209
209
  );
@@ -728,7 +728,7 @@ const Es = (e) => {
728
728
  /* @__PURE__ */ i(
729
729
  We,
730
730
  {
731
- icon: h ? /* @__PURE__ */ i(Pt, {}) : /* @__PURE__ */ i(Bn, {}),
731
+ icon: h ? /* @__PURE__ */ i(Pt, {}) : /* @__PURE__ */ i(Hn, {}),
732
732
  disabled: h,
733
733
  onClick: F,
734
734
  style: { marginLeft: 15 },
@@ -759,7 +759,7 @@ function dt(e) {
759
759
  const { tooltip: t, ...n } = e;
760
760
  return /* @__PURE__ */ i(Et, { title: t, children: /* @__PURE__ */ i(We, { ...n }) });
761
761
  }
762
- const { info: ld } = Tt, Zt = (e) => {
762
+ const { info: ld } = Tt, en = (e) => {
763
763
  ld({
764
764
  title: "",
765
765
  centered: !0,
@@ -770,7 +770,7 @@ const { info: ld } = Tt, Zt = (e) => {
770
770
  return /* @__PURE__ */ i("div", { style: { color: t.colorTextDisabled }, children: e });
771
771
  });
772
772
  Fr.displayName = "AddonElement";
773
- const { defaultAlgorithm: dd, defaultSeed: ud } = ze, Oo = dd(ud), $n = Ze(
773
+ const { defaultAlgorithm: dd, defaultSeed: ud } = ze, Oo = dd(ud), Mn = Ze(
774
774
  ({
775
775
  component: e,
776
776
  ooui: t,
@@ -796,7 +796,7 @@ const { defaultAlgorithm: dd, defaultSeed: ud } = ze, Oo = dd(ud), $n = Ze(
796
796
  );
797
797
  }
798
798
  );
799
- $n.displayName = "BaseInput";
799
+ Mn.displayName = "BaseInput";
800
800
  const Vs = (e) => {
801
801
  const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: a, translatable: s } = t;
802
802
  let l = /* @__PURE__ */ i(ks, { ooui: t, isSearchField: n });
@@ -823,7 +823,7 @@ const Vs = (e) => {
823
823
  if (l) {
824
824
  const g = d ? pd : ft.Password;
825
825
  return /* @__PURE__ */ i(
826
- $n,
826
+ Mn,
827
827
  {
828
828
  component: g,
829
829
  ooui: t,
@@ -835,7 +835,7 @@ const Vs = (e) => {
835
835
  );
836
836
  }
837
837
  return /* @__PURE__ */ i(
838
- $n,
838
+ Mn,
839
839
  {
840
840
  component: d ? Ms : ft,
841
841
  ooui: t,
@@ -873,7 +873,7 @@ const $s = Ze(
873
873
  [r]
874
874
  ), v = D(() => {
875
875
  if (c != null && c()) {
876
- Zt(f("saveBeforeTranslate"));
876
+ en(f("saveBeforeTranslate"));
877
877
  return;
878
878
  }
879
879
  d(!0);
@@ -884,7 +884,7 @@ const $s = Ze(
884
884
  }, [l]), S = g ? md : fd;
885
885
  return a ? /* @__PURE__ */ P(ee, { children: [
886
886
  /* @__PURE__ */ i("div", { onClick: v, children: /* @__PURE__ */ i(
887
- $n,
887
+ Mn,
888
888
  {
889
889
  component: S,
890
890
  ooui: e,
@@ -908,7 +908,7 @@ const $s = Ze(
908
908
  )
909
909
  ] }) : /* @__PURE__ */ P(Ye, { gutter: 8, wrap: !1, children: [
910
910
  /* @__PURE__ */ i(Oe, { flex: "auto", children: /* @__PURE__ */ i(
911
- $n,
911
+ Mn,
912
912
  {
913
913
  component: g ? Ms : ft,
914
914
  ooui: e,
@@ -950,16 +950,16 @@ const fd = mt(ft)`
950
950
  &.ant-input-affix-wrapper {
951
951
  background-color: ${Oo.colorPrimaryBg};
952
952
  }
953
- `, { defaultAlgorithm: hd, defaultSeed: gd } = ze, yd = hd(gd), { Option: vd } = rn, Ls = (e) => {
953
+ `, { defaultAlgorithm: hd, defaultSeed: gd } = ze, yd = hd(gd), { Option: vd } = on, Ns = (e) => {
954
954
  const { ooui: t } = e, { required: n } = t;
955
- return /* @__PURE__ */ i(Pe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Ns, { ...e }) });
956
- }, Ns = (e) => {
955
+ return /* @__PURE__ */ i(Pe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Ls, { ...e }) });
956
+ }, Ls = (e) => {
957
957
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: a, required: s } = t, l = Array.from(o.entries()), c = l && l.length && l.map((m) => {
958
958
  const [d, f] = m;
959
959
  return /* @__PURE__ */ i(vd, { value: d, children: f }, d);
960
960
  });
961
961
  return /* @__PURE__ */ i(
962
- s && !a ? bd : rn,
962
+ s && !a ? bd : on,
963
963
  {
964
964
  disabled: a,
965
965
  onChange: n,
@@ -971,7 +971,7 @@ const fd = mt(ft)`
971
971
  children: c
972
972
  }
973
973
  );
974
- }, bd = mt(rn)`
974
+ }, bd = mt(on)`
975
975
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
976
976
  background-color: ${yd.colorPrimaryBg};
977
977
  }
@@ -980,8 +980,8 @@ const fd = mt(ft)`
980
980
  return /* @__PURE__ */ i(Pe, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(xd, { id: n, readOnly: r, required: o }) });
981
981
  }, xd = (e) => {
982
982
  const { required: t, readOnly: n, ...r } = e;
983
- return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Td : Pn, { disabled: n, ...r }) });
984
- }, Td = mt(Pn)`
983
+ return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Td : Vn, { disabled: n, ...r }) });
984
+ }, Td = mt(Vn)`
985
985
  .ant-checkbox-inner {
986
986
  background-color: ${di.colorPrimaryBg};
987
987
  }
@@ -1116,520 +1116,7 @@ const Ro = (e) => {
1116
1116
  }
1117
1117
  }
1118
1118
  );
1119
- }, jt = (e) => {
1120
- const t = e.arch, n = e.fields, r = new us(n);
1121
- return r.parse(t), r;
1122
- };
1123
- function Rd(e) {
1124
- return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
1125
- }
1126
- const Or = (e, t, n, r) => e.columns.map((a) => {
1127
- const s = a.type, l = a.id, c = t == null ? void 0 : t[s];
1128
- let u;
1129
- c ? u = (d) => c({ value: d, key: l, ooui: a, context: n }) : u = (d) => Rd(d) ? d : /* @__PURE__ */ P("p", { style: { color: "red" }, children: [
1130
- "Unsupported widget value for a Tree cell:",
1131
- /* @__PURE__ */ i("pre", { children: /* @__PURE__ */ P("strong", { children: [
1132
- "Type: ",
1133
- s,
1134
- " - Value: ",
1135
- JSON.stringify(d)
1136
- ] }) })
1137
- ] });
1138
- let m = !0;
1139
- return r === "legacy" ? m = s !== "one2many" : m = s !== "one2many" && s !== "many2one" && !a.isFunction, {
1140
- key: l,
1141
- dataIndex: l,
1142
- title: a.label,
1143
- render: u,
1144
- sorter: (d, f) => {
1145
- var g, y;
1146
- let h = d[l] || "", p = f[l] || "";
1147
- return s === "many2one" && (h = ((g = d[l]) == null ? void 0 : g.value) || "", p = ((y = f[l]) == null ? void 0 : y.value) || ""), h < p ? -1 : h > p ? 1 : 0;
1148
- },
1149
- isSortable: m
1150
- };
1151
- }), Un = (e, t) => t.map((r) => {
1152
- const o = {};
1153
- return Object.keys(r).forEach((a) => {
1154
- if (a === "id")
1155
- o[a] = r[a];
1156
- else {
1157
- const s = e.findById(a);
1158
- s instanceof kl || s instanceof wo ? o[a] = r[a] : s instanceof fs ? o[a] = r[a] && Array.isArray(r[a]) && r[a].length === 2 && {
1159
- model: s.relation,
1160
- id: r[a][0],
1161
- value: r[a][1]
1162
- } : s instanceof $l ? o[a] = r[a] : s ? o[a] = r[a] === !1 ? "" : r[a] : o[a] = r[a];
1163
- }
1164
- }), o;
1165
- });
1166
- function nn(e) {
1167
- return Bs(e, "colors");
1168
- }
1169
- function Mn(e) {
1170
- return Bs(e, "status");
1171
- }
1172
- function Bs(e, t) {
1173
- if (!e)
1174
- return;
1175
- const n = {};
1176
- return e.forEach((r) => {
1177
- n[r.id] = r[t];
1178
- }), n;
1179
- }
1180
- function pn({
1181
- resultsToSort: e,
1182
- sorter: t,
1183
- fields: n
1184
- }) {
1185
- if (!t)
1186
- return e;
1187
- const { id: r, desc: o } = t, a = o === !1 ? "ascend" : "descend", s = n[r].type, l = (c, u) => {
1188
- var f, h;
1189
- let m = c[r] || "", d = u[r] || "";
1190
- return s === "many2one" && (m = ((f = c[r]) == null ? void 0 : f[1]) || "", d = ((h = u[r]) == null ? void 0 : h[1]) || ""), m === d ? 0 : a === "ascend" ? m > d ? 1 : -1 : m < d ? 1 : -1;
1191
- };
1192
- return e.sort(l);
1193
- }
1194
- function Dd(e) {
1195
- for (const t in e)
1196
- if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
1197
- return !0;
1198
- return !1;
1199
- }
1200
- const sr = ({
1201
- state: e
1202
- }) => {
1203
- if (!e)
1204
- return;
1205
- const t = e.filter((r) => r.sort).sort((r, o) => (r.sortIndex || 0) - (o.sortIndex || 0));
1206
- return t.length === 0 ? void 0 : t.reduce(
1207
- (r, o) => ({
1208
- ...r,
1209
- [o.colId]: o.sort
1210
- }),
1211
- {}
1212
- );
1213
- }, ar = (e) => {
1214
- if (e && Object.keys(e).length !== 0)
1215
- return Object.keys(e).map((t) => {
1216
- const n = e[t];
1217
- return `${t} ${n}`;
1218
- }).join(", ");
1219
- };
1220
- function Hs(e, t) {
1221
- const n = new RegExp(`<tree[^>]*\\s+${t}="([^"]+)"`, "i"), r = e.match(n);
1222
- return r && r[1] ? r[1] : null;
1223
- }
1224
- const Do = async (e) => {
1225
- var g;
1226
- const {
1227
- items: t,
1228
- model: n,
1229
- formView: r,
1230
- treeView: o,
1231
- context: a,
1232
- currentView: s = {}
1233
- } = e, l = ["original", "pendingLink"], c = t.filter(
1234
- (y) => !l.includes(y.operation)
1235
- ), u = t.filter((y) => l.includes(y.operation)).map((y) => y.id), m = {
1236
- form: r.fields,
1237
- tree: o.fields
1238
- };
1239
- let d = [], f;
1240
- if (s === "tree" && (o != null && o.arch)) {
1241
- const y = (g = jt(o)) == null ? void 0 : g.colors, v = await $.getHandler().readEvalUiObjects({
1242
- model: n,
1243
- ids: u,
1244
- arch: o == null ? void 0 : o.arch,
1245
- fields: o.fields,
1246
- context: a,
1247
- attrs: y && {
1248
- colors: y
1249
- }
1250
- });
1251
- d = v[0], f = nn(v[1]);
1252
- } else
1253
- d = await $.getHandler().readObjects({
1254
- model: n,
1255
- ids: u,
1256
- fields: m[s],
1257
- context: a
1258
- });
1259
- const h = d.map((y) => {
1260
- const v = {};
1261
- return Object.keys(y).forEach((b) => {
1262
- (m[s].hasOwnProperty(b) || b === "id") && (v[b] = y[b]);
1263
- }), v;
1264
- });
1265
- return [
1266
- t.map((y) => {
1267
- const v = h.find(
1268
- (A) => A.id === y.id
1269
- ), b = {
1270
- ...y
1271
- };
1272
- return s === "form" ? b.values = v : s === "tree" && (b.treeValues = v), b;
1273
- }).concat(c),
1274
- f
1275
- ];
1276
- }, Us = (e) => {
1277
- const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
1278
- return t.length === 0 ? -1 : Math.min(...t) - 1;
1279
- }, Ed = (e, t) => {
1280
- const n = {};
1281
- return Object.keys(e).forEach((r) => {
1282
- var o;
1283
- t.hasOwnProperty(r) && (t[r].type === "one2many" || t[r].type === "many2many") && e[r] && ((o = e[r]) != null && o.items) ? n[r] = e[r].items.filter(
1284
- (a) => a.operation !== "pendingRemove"
1285
- ) : n[r] = e[r];
1286
- }), n;
1287
- }, Pd = ({
1288
- values: e,
1289
- fields: t
1290
- }) => {
1291
- const n = {};
1292
- return Object.keys(e).forEach((r) => {
1293
- var o;
1294
- if (Object.prototype.hasOwnProperty.call(t, r) && (t[r].type === "one2many" || t[r].type === "many2many") && e[r] && !((o = e[r]) != null && o.items) && Array.isArray(e[r])) {
1295
- const a = e[r];
1296
- n[r] = {
1297
- items: a.map((s) => ({
1298
- operation: "pendingLink",
1299
- id: s
1300
- }))
1301
- };
1302
- } else
1303
- n[r] = e[r];
1304
- }), n;
1305
- };
1306
- function Vd(e) {
1307
- const t = e.map((r) => r.id);
1308
- return e.filter((r, o) => {
1309
- const { id: a } = r;
1310
- return !t.includes(a, o + 1);
1311
- });
1312
- }
1313
- function ui({
1314
- values: e,
1315
- fields: t
1316
- }) {
1317
- const n = {};
1318
- return t.forEach((r) => {
1319
- e[r] && (n[r] = e[r]);
1320
- }), n;
1321
- }
1322
- const kd = ({
1323
- allItems: e,
1324
- range: t
1325
- }) => {
1326
- const n = e.map((s) => s.id), o = (t ? n.slice(t.startRow, t.endRow) : n).filter((s) => {
1327
- const l = e.find((c) => c.id === s);
1328
- return l && (l.operation === "original" || l.operation === "pendingLink");
1329
- }), a = e.filter((s) => s && s.operation !== "original" && s.operation !== "pendingLink");
1330
- return { realItemsIds: o, otherItems: a };
1331
- }, $d = ({
1332
- finalResultIds: e,
1333
- fetchedItems: t,
1334
- otherItems: n
1335
- }) => {
1336
- const r = e.map((o) => {
1337
- var s;
1338
- const a = t.find((l) => l.id === o);
1339
- return a || ((s = n.find((l) => l.id === o)) == null ? void 0 : s.treeValues);
1340
- });
1341
- return r.sort((o, a) => {
1342
- const s = t.findIndex((c) => c.id === o.id), l = t.findIndex((c) => c.id === a.id);
1343
- return s - l;
1344
- }), r;
1345
- }, Md = async (e, t, n, r) => await $.getHandler().searchAllIds({
1346
- model: t,
1347
- params: [["id", "in", e]],
1348
- context: n,
1349
- order: r
1350
- }), Ld = (e) => {
1351
- const t = {};
1352
- return e.colors && (t.colors = e.colors), e.status && (t.status = e.status), t;
1353
- }, Nd = async ({
1354
- relation: e,
1355
- ids: t,
1356
- treeView: n,
1357
- context: r,
1358
- attrs: o,
1359
- treeOoui: a
1360
- }) => {
1361
- const s = await $.getHandler().readEvalUiObjects({
1362
- model: e,
1363
- ids: t,
1364
- arch: n.arch,
1365
- fields: n.fields,
1366
- context: r,
1367
- attrs: o
1368
- });
1369
- return {
1370
- items: Un(a, s[0]),
1371
- colors: nn(s[1]),
1372
- status: Mn(s[1])
1373
- };
1374
- }, jd = (e, t) => {
1375
- if (!t)
1376
- return e;
1377
- const n = {};
1378
- return Object.keys(e).forEach((r) => {
1379
- if (t[r] === void 0)
1380
- n[r] = e[r];
1381
- else if (!(e[r] === !1 && t[r].type !== "boolean"))
1382
- if (t[r].type === "boolean") {
1383
- const o = e[r];
1384
- o === 0 ? n[r] = !1 : o === 1 ? n[r] = !0 : n[r] = e[r];
1385
- } else
1386
- n[r] = e[r];
1387
- }), n;
1388
- }, un = (e, t) => jd(e, t), Br = ({
1389
- source: e,
1390
- target: t,
1391
- fields: n
1392
- }) => {
1393
- const r = {};
1394
- return Object.keys(t).forEach((o) => {
1395
- var s, l;
1396
- if (n[o] ? n[o].type === "one2many" || n[o].type === "many2many" : !1) {
1397
- const c = JSON.stringify(e[o]), u = JSON.stringify(t[o]);
1398
- if (c === u)
1399
- return;
1400
- (((l = (s = t[o]) == null ? void 0 : s.items) == null ? void 0 : l.filter(
1401
- (d) => d.operation !== "original"
1402
- )) || []).length > 0 && (r[o] = t[o]);
1403
- } else if (Array.isArray(t[o]))
1404
- if (n[o].type === "many2one") {
1405
- if (!mi(e[o]) && !mi(t[o]))
1406
- return;
1407
- if (Array.isArray(e[o])) {
1408
- const c = JSON.stringify(e[o]), u = JSON.stringify(t[o]);
1409
- c !== u && (r[o] = t[o]);
1410
- } else {
1411
- const c = e[o], [u] = t[o];
1412
- c !== u && (r[o] = t[o]);
1413
- }
1414
- } else {
1415
- const c = JSON.stringify(e[o]), u = JSON.stringify(t[o]);
1416
- c !== u && (r[o] = t[o]);
1417
- }
1418
- else
1419
- 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]);
1420
- }), r;
1421
- }, Bd = ({
1422
- changedFields: e,
1423
- formOoui: t,
1424
- types: n
1425
- }) => e.map((o) => {
1426
- var s;
1427
- const a = (s = t == null ? void 0 : t.findById(o)) == null ? void 0 : s.type;
1428
- return n.includes(a);
1429
- }).some((o) => o === !0), Hd = ({
1430
- fieldsDomain: e,
1431
- fields: t
1432
- }) => {
1433
- const n = {};
1434
- return Object.keys(t).forEach((r) => {
1435
- n[r] = t[r], e[r] && (n[r].domain = e[r]);
1436
- }), n;
1437
- }, Ud = (e) => {
1438
- const t = {};
1439
- return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
1440
- (n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
1441
- }), t);
1442
- }, Wd = ({
1443
- onChangeFieldActionArgs: e,
1444
- values: t,
1445
- parentValues: n = {}
1446
- }) => {
1447
- const r = {};
1448
- return e.forEach((o) => {
1449
- const a = o.split("");
1450
- if (o === "True")
1451
- r[o] = !0;
1452
- else if (o === "False")
1453
- r[o] = !1;
1454
- else if (t[o])
1455
- r[o] = t[o];
1456
- else if (a[0] === "'" && a[a.length - 1] === "'" && a.filter((s) => s === "'").length === 2)
1457
- r[o] = o.replace(/'/g, "");
1458
- else if (a.includes("'"))
1459
- r[o] = o;
1460
- else if (o.indexOf("parent.") !== -1) {
1461
- const s = o.replace("parent.", "");
1462
- r[o] = n[s] || !1;
1463
- } else
1464
- r[o] = !1;
1465
- }), r;
1466
- }, bn = (e) => {
1467
- const t = {
1468
- primary: [],
1469
- secondary: []
1470
- };
1471
- return e.forEach((n) => {
1472
- n && (t.primary = t.primary.concat(n.primary), t.secondary = t.secondary.concat(
1473
- n.secondary
1474
- ));
1475
- }), {
1476
- primary: t.primary.filter(fi),
1477
- secondary: t.secondary.filter(fi)
1478
- };
1479
- };
1480
- function fi(e, t, n) {
1481
- return n.indexOf(e) === t;
1482
- }
1483
- const on = ({
1484
- values: e,
1485
- fields: t
1486
- }) => {
1487
- const n = {};
1488
- return Object.keys(e).forEach((r) => {
1489
- const o = e[r];
1490
- t[r] && t[r].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? n[r] = o[0] : n[r] = o;
1491
- }), n;
1492
- }, Yd = (e) => e ? "success" : "error", Wn = (e) => {
1493
- let t = 0;
1494
- e = e.toString().padEnd(10, "0");
1495
- for (let r = 0; r < e.length; r++)
1496
- t = e.charCodeAt(r) + ((t << 5) - t);
1497
- let n = "#";
1498
- for (let r = 0; r < 3; r++) {
1499
- const o = t >> r * 8 & 255;
1500
- n += ("00" + o.toString(16)).slice(-2);
1501
- }
1502
- return n;
1503
- }, Ws = (e, t = 7) => ({
1504
- text: Fc(e)[t],
1505
- background: `${e}40`
1506
- }), Gd = (e, t) => e.replace(
1507
- /\{([^}]+)\}/g,
1508
- (n, r) => t[r] !== void 0 ? t[r] : n
1509
- ), mi = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), Kd = (e) => /* @__PURE__ */ P(
1510
- "div",
1511
- {
1512
- style: { display: "inline-block", cursor: "pointer" },
1513
- onClick: e.onClick,
1514
- children: [
1515
- /* @__PURE__ */ i("strong", { children: e.title }),
1516
- e.summary && /* @__PURE__ */ P(ee, { children: [
1517
- /* @__PURE__ */ i("br", {}),
1518
- /* @__PURE__ */ i("span", { children: e.summary })
1519
- ] })
1520
- ]
1521
- }
1522
- ), qd = (e) => {
1523
- const { ooui: t } = e, { relation: n, context: r, views: o } = t, [a, s] = I(!0), [l, c] = I(), [u, m] = I(/* @__PURE__ */ new Map()), d = ne(Ge), { getContext: f } = d || {};
1524
- Mt(() => {
1525
- p();
1526
- }, [t]);
1527
- const h = async (g) => o && o[g] ? o[g] : await $.getHandler().getView({
1528
- model: n,
1529
- type: g,
1530
- context: { ...f == null ? void 0 : f(), ...r }
1531
- }), p = async () => {
1532
- s(!0), c(void 0);
1533
- try {
1534
- const g = await h("form"), y = await h("tree");
1535
- u.set("form", g), u.set("tree", y), m(u);
1536
- } catch (g) {
1537
- c(g);
1538
- } finally {
1539
- s(!1);
1540
- }
1541
- };
1542
- return a ? /* @__PURE__ */ i(Qe, {}) : l ? /* @__PURE__ */ i(yt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(Pe, { type: "array", ...e, children: /* @__PURE__ */ i(zd, { ooui: t, views: u }) });
1543
- }, zd = (e) => {
1544
- const { value: t, views: n, ooui: r, onChange: o } = e, { items: a = [] } = t || {}, [s, l] = I(!1), [c, u] = I(), [m, d] = I(!1), [f, h] = I(), {
1545
- relation: p,
1546
- context: g,
1547
- readOnly: y,
1548
- summaryField: v,
1549
- titleField: b,
1550
- iconField: A,
1551
- colorField: S
1552
- } = r, C = a.filter((R) => R.values), F = ne(Ge), { getContext: w } = F || {};
1553
- Mt(() => {
1554
- _();
1555
- }, [a]);
1556
- const T = (R) => {
1557
- o == null || o({
1558
- items: R
1559
- });
1560
- };
1561
- async function _() {
1562
- l(!0), u(void 0);
1563
- try {
1564
- const [R] = await Do({
1565
- treeView: {
1566
- fields: n.get("tree").fields,
1567
- arch: n.get("tree").arch
1568
- },
1569
- formView: {
1570
- fields: n.get("form").fields
1571
- },
1572
- model: p,
1573
- items: a,
1574
- context: { ...w == null ? void 0 : w(), ...g },
1575
- currentView: "form"
1576
- });
1577
- T(R);
1578
- } catch (R) {
1579
- u(R);
1580
- } finally {
1581
- l(!1);
1582
- }
1583
- }
1584
- if (c)
1585
- return /* @__PURE__ */ i(yt, { className: "mt-10", message: c, type: "error", banner: !0 });
1586
- if (s)
1587
- return /* @__PURE__ */ i(Qe, {});
1588
- const O = (R) => {
1589
- const E = St(R);
1590
- return E && /* @__PURE__ */ i(E, {});
1591
- }, x = C.map((R) => {
1592
- var V, L, N, B;
1593
- const E = {
1594
- children: /* @__PURE__ */ i(
1595
- Kd,
1596
- {
1597
- title: (V = R.values) == null ? void 0 : V[b],
1598
- summary: (L = R.values) == null ? void 0 : L[v],
1599
- onClick: () => {
1600
- h(
1601
- C.find((W) => R.id === W.id)
1602
- ), d(!0);
1603
- }
1604
- }
1605
- )
1606
- };
1607
- return (N = R.values) != null && N[A] && (E.dot = O(R.values[A])), (B = R.values) != null && B[S] && (E.color = !Os(R.values[S]) && !Rs(R.values[S]) && !R.values[S].toString().startsWith("#") ? Wn(R.values[S]) : R.values[S]), E;
1608
- });
1609
- return /* @__PURE__ */ P(ee, { children: [
1610
- /* @__PURE__ */ i(is, { style: { padding: "1rem" }, items: x }),
1611
- /* @__PURE__ */ i(
1612
- On,
1613
- {
1614
- formView: n.get("form"),
1615
- model: p,
1616
- id: f == null ? void 0 : f.id,
1617
- values: f == null ? void 0 : f.values,
1618
- defaultValues: f == null ? void 0 : f.defaultValues,
1619
- visible: m,
1620
- onSubmitSucceed: () => {
1621
- d(!1);
1622
- },
1623
- parentContext: { ...w == null ? void 0 : w(), ...g },
1624
- onCancel: () => {
1625
- d(!1);
1626
- },
1627
- readOnly: y,
1628
- postSaveAction: _
1629
- }
1630
- )
1631
- ] });
1632
- }, Jd = {
1119
+ }, Rd = {
1633
1120
  true: "Sí",
1634
1121
  false: "No",
1635
1122
  simple_search: "Búsqueda simple",
@@ -1740,7 +1227,7 @@ const on = ({
1740
1227
  share: "Compartir URL",
1741
1228
  copyToClipboard: "Copiar al porta-retalls",
1742
1229
  urlCopiedToClipboard: "URL copiada al porta-retalls"
1743
- }, Qd = {
1230
+ }, Dd = {
1744
1231
  true: "Yes",
1745
1232
  false: "No",
1746
1233
  simple_search: "Simple search",
@@ -1851,7 +1338,7 @@ const on = ({
1851
1338
  share: "Compartir URL",
1852
1339
  urlCopiedToClipboard: "URL copied to clipboard",
1853
1340
  copyToClipboard: "Copy to clipboard"
1854
- }, Xd = {
1341
+ }, Ed = {
1855
1342
  true: "Sí",
1856
1343
  false: "No",
1857
1344
  simple_search: "Búsqueda simple",
@@ -1962,27 +1449,27 @@ const on = ({
1962
1449
  share: "Compartir URL",
1963
1450
  urlCopiedToClipboard: "URL copiada al portapapeles",
1964
1451
  copyToClipboard: "Copiar al portapapeles"
1965
- }, Zd = {
1966
- ca_ES: Jd,
1967
- en_US: Qd,
1968
- es_ES: Xd
1969
- }, eu = {
1452
+ }, Pd = {
1453
+ ca_ES: Rd,
1454
+ en_US: Dd,
1455
+ es_ES: Ed
1456
+ }, Vd = {
1970
1457
  erpFeatures: {},
1971
1458
  title: "Webclient",
1972
1459
  globalValues: {},
1973
1460
  rootContext: {},
1974
1461
  devMode: !1
1975
- }, Ys = At.createContext(eu), Yn = () => {
1976
- const e = ne(Ys);
1462
+ }, Bs = At.createContext(Vd), Wn = () => {
1463
+ const e = ne(Bs);
1977
1464
  if (!e)
1978
1465
  throw new Error(
1979
1466
  "useConfigContext must be used within a ConfigContextProvider"
1980
1467
  );
1981
1468
  return e;
1982
- }, Gn = (e) => {
1983
- const { erpFeatures: t } = Yn();
1469
+ }, In = (e) => {
1470
+ const { erpFeatures: t } = Wn();
1984
1471
  return !!t[e];
1985
- }, tu = Ze(
1472
+ }, kd = Ze(
1986
1473
  ({
1987
1474
  erpFeatures: e,
1988
1475
  locale: t,
@@ -2003,17 +1490,537 @@ const on = ({
2003
1490
  }),
2004
1491
  [e, r, o, a, s]
2005
1492
  );
2006
- return /* @__PURE__ */ i(Ys.Provider, { value: c, children: /* @__PURE__ */ i(
1493
+ return /* @__PURE__ */ i(Bs.Provider, { value: c, children: /* @__PURE__ */ i(
2007
1494
  uc,
2008
1495
  {
2009
1496
  locale: t,
2010
- localizedStrings: fc(Zd, n),
1497
+ localizedStrings: fc(Pd, n),
2011
1498
  children: l
2012
1499
  }
2013
- ) });
1500
+ ) });
1501
+ }
1502
+ );
1503
+ kd.displayName = "ConfigContextProvider";
1504
+ var Qt = /* @__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.FEATURE_GET_TOOLBAR = "get_toolbar", e.FEATURE_MANY2ONE_SORT = "many2one_sort", e))(Qt || {});
1505
+ const lb = Object.values(Qt), jt = (e) => {
1506
+ const t = e.arch, n = e.fields, r = new us(n);
1507
+ return r.parse(t), r;
1508
+ };
1509
+ function $d(e) {
1510
+ return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
1511
+ }
1512
+ const Or = (e, t, n, r) => {
1513
+ const o = In(
1514
+ Qt.FEATURE_MANY2ONE_SORT
1515
+ );
1516
+ return e.columns.map((s) => {
1517
+ const l = s.type, c = s.id, u = t == null ? void 0 : t[l];
1518
+ let m;
1519
+ u ? m = (f) => u({ value: f, key: c, ooui: s, context: n }) : m = (f) => $d(f) ? f : /* @__PURE__ */ P("p", { style: { color: "red" }, children: [
1520
+ "Unsupported widget value for a Tree cell:",
1521
+ /* @__PURE__ */ i("pre", { children: /* @__PURE__ */ P("strong", { children: [
1522
+ "Type: ",
1523
+ l,
1524
+ " - Value: ",
1525
+ JSON.stringify(f)
1526
+ ] }) })
1527
+ ] });
1528
+ let d = !0;
1529
+ return r === "legacy" ? d = l !== "one2many" : d = l !== "one2many" && !s.isFunction && (l !== "many2one" || o), {
1530
+ key: c,
1531
+ dataIndex: c,
1532
+ title: s.label,
1533
+ render: m,
1534
+ sorter: (f, h) => {
1535
+ var y, v;
1536
+ let p = f[c] || "", g = h[c] || "";
1537
+ return l === "many2one" && (p = ((y = f[c]) == null ? void 0 : y.value) || "", g = ((v = h[c]) == null ? void 0 : v.value) || ""), p < g ? -1 : p > g ? 1 : 0;
1538
+ },
1539
+ isSortable: d
1540
+ };
1541
+ });
1542
+ }, Yn = (e, t) => t.map((r) => {
1543
+ const o = {};
1544
+ return Object.keys(r).forEach((a) => {
1545
+ if (a === "id")
1546
+ o[a] = r[a];
1547
+ else {
1548
+ const s = e.findById(a);
1549
+ s instanceof kl || s instanceof wo ? o[a] = r[a] : s instanceof fs ? o[a] = r[a] && Array.isArray(r[a]) && r[a].length === 2 && {
1550
+ model: s.relation,
1551
+ id: r[a][0],
1552
+ value: r[a][1]
1553
+ } : s instanceof $l ? o[a] = r[a] : s ? o[a] = r[a] === !1 ? "" : r[a] : o[a] = r[a];
1554
+ }
1555
+ }), o;
1556
+ });
1557
+ function rn(e) {
1558
+ return Hs(e, "colors");
1559
+ }
1560
+ function Nn(e) {
1561
+ return Hs(e, "status");
1562
+ }
1563
+ function Hs(e, t) {
1564
+ if (!e)
1565
+ return;
1566
+ const n = {};
1567
+ return e.forEach((r) => {
1568
+ n[r.id] = r[t];
1569
+ }), n;
1570
+ }
1571
+ function pn({
1572
+ resultsToSort: e,
1573
+ sorter: t,
1574
+ fields: n
1575
+ }) {
1576
+ if (!t)
1577
+ return e;
1578
+ const { id: r, desc: o } = t, a = o === !1 ? "ascend" : "descend", s = n[r].type, l = (c, u) => {
1579
+ var f, h;
1580
+ let m = c[r] || "", d = u[r] || "";
1581
+ return s === "many2one" && (m = ((f = c[r]) == null ? void 0 : f[1]) || "", d = ((h = u[r]) == null ? void 0 : h[1]) || ""), m === d ? 0 : a === "ascend" ? m > d ? 1 : -1 : m < d ? 1 : -1;
1582
+ };
1583
+ return e.sort(l);
1584
+ }
1585
+ function Md(e) {
1586
+ for (const t in e)
1587
+ if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
1588
+ return !0;
1589
+ return !1;
1590
+ }
1591
+ const sr = ({
1592
+ state: e
1593
+ }) => {
1594
+ if (!e)
1595
+ return;
1596
+ const t = e.filter((r) => r.sort).sort((r, o) => (r.sortIndex || 0) - (o.sortIndex || 0));
1597
+ return t.length === 0 ? void 0 : t.reduce(
1598
+ (r, o) => ({
1599
+ ...r,
1600
+ [o.colId]: o.sort
1601
+ }),
1602
+ {}
1603
+ );
1604
+ }, ar = (e) => {
1605
+ if (e && Object.keys(e).length !== 0)
1606
+ return Object.keys(e).map((t) => {
1607
+ const n = e[t];
1608
+ return `${t} ${n}`;
1609
+ }).join(", ");
1610
+ };
1611
+ function Us(e, t) {
1612
+ const n = new RegExp(`<tree[^>]*\\s+${t}="([^"]+)"`, "i"), r = e.match(n);
1613
+ return r && r[1] ? r[1] : null;
1614
+ }
1615
+ const Do = async (e) => {
1616
+ var g;
1617
+ const {
1618
+ items: t,
1619
+ model: n,
1620
+ formView: r,
1621
+ treeView: o,
1622
+ context: a,
1623
+ currentView: s = {}
1624
+ } = e, l = ["original", "pendingLink"], c = t.filter(
1625
+ (y) => !l.includes(y.operation)
1626
+ ), u = t.filter((y) => l.includes(y.operation)).map((y) => y.id), m = {
1627
+ form: r.fields,
1628
+ tree: o.fields
1629
+ };
1630
+ let d = [], f;
1631
+ if (s === "tree" && (o != null && o.arch)) {
1632
+ const y = (g = jt(o)) == null ? void 0 : g.colors, v = await $.getHandler().readEvalUiObjects({
1633
+ model: n,
1634
+ ids: u,
1635
+ arch: o == null ? void 0 : o.arch,
1636
+ fields: o.fields,
1637
+ context: a,
1638
+ attrs: y && {
1639
+ colors: y
1640
+ }
1641
+ });
1642
+ d = v[0], f = rn(v[1]);
1643
+ } else
1644
+ d = await $.getHandler().readObjects({
1645
+ model: n,
1646
+ ids: u,
1647
+ fields: m[s],
1648
+ context: a
1649
+ });
1650
+ const h = d.map((y) => {
1651
+ const v = {};
1652
+ return Object.keys(y).forEach((b) => {
1653
+ (m[s].hasOwnProperty(b) || b === "id") && (v[b] = y[b]);
1654
+ }), v;
1655
+ });
1656
+ return [
1657
+ t.map((y) => {
1658
+ const v = h.find(
1659
+ (A) => A.id === y.id
1660
+ ), b = {
1661
+ ...y
1662
+ };
1663
+ return s === "form" ? b.values = v : s === "tree" && (b.treeValues = v), b;
1664
+ }).concat(c),
1665
+ f
1666
+ ];
1667
+ }, Ws = (e) => {
1668
+ const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
1669
+ return t.length === 0 ? -1 : Math.min(...t) - 1;
1670
+ }, Nd = (e, t) => {
1671
+ const n = {};
1672
+ return Object.keys(e).forEach((r) => {
1673
+ var o;
1674
+ t.hasOwnProperty(r) && (t[r].type === "one2many" || t[r].type === "many2many") && e[r] && ((o = e[r]) != null && o.items) ? n[r] = e[r].items.filter(
1675
+ (a) => a.operation !== "pendingRemove"
1676
+ ) : n[r] = e[r];
1677
+ }), n;
1678
+ }, Ld = ({
1679
+ values: e,
1680
+ fields: t
1681
+ }) => {
1682
+ const n = {};
1683
+ return Object.keys(e).forEach((r) => {
1684
+ var o;
1685
+ if (Object.prototype.hasOwnProperty.call(t, r) && (t[r].type === "one2many" || t[r].type === "many2many") && e[r] && !((o = e[r]) != null && o.items) && Array.isArray(e[r])) {
1686
+ const a = e[r];
1687
+ n[r] = {
1688
+ items: a.map((s) => ({
1689
+ operation: "pendingLink",
1690
+ id: s
1691
+ }))
1692
+ };
1693
+ } else
1694
+ n[r] = e[r];
1695
+ }), n;
1696
+ };
1697
+ function jd(e) {
1698
+ const t = e.map((r) => r.id);
1699
+ return e.filter((r, o) => {
1700
+ const { id: a } = r;
1701
+ return !t.includes(a, o + 1);
1702
+ });
1703
+ }
1704
+ function ui({
1705
+ values: e,
1706
+ fields: t
1707
+ }) {
1708
+ const n = {};
1709
+ return t.forEach((r) => {
1710
+ e[r] && (n[r] = e[r]);
1711
+ }), n;
1712
+ }
1713
+ const Bd = ({
1714
+ allItems: e,
1715
+ range: t
1716
+ }) => {
1717
+ const n = e.map((s) => s.id), o = (t ? n.slice(t.startRow, t.endRow) : n).filter((s) => {
1718
+ const l = e.find((c) => c.id === s);
1719
+ return l && (l.operation === "original" || l.operation === "pendingLink");
1720
+ }), a = e.filter((s) => s && s.operation !== "original" && s.operation !== "pendingLink");
1721
+ return { realItemsIds: o, otherItems: a };
1722
+ }, Hd = ({
1723
+ finalResultIds: e,
1724
+ fetchedItems: t,
1725
+ otherItems: n
1726
+ }) => {
1727
+ const r = e.map((o) => {
1728
+ var s;
1729
+ const a = t.find((l) => l.id === o);
1730
+ return a || ((s = n.find((l) => l.id === o)) == null ? void 0 : s.treeValues);
1731
+ });
1732
+ return r.sort((o, a) => {
1733
+ const s = t.findIndex((c) => c.id === o.id), l = t.findIndex((c) => c.id === a.id);
1734
+ return s - l;
1735
+ }), r;
1736
+ }, Ud = async (e, t, n, r) => await $.getHandler().searchAllIds({
1737
+ model: t,
1738
+ params: [["id", "in", e]],
1739
+ context: n,
1740
+ order: r
1741
+ }), Wd = (e) => {
1742
+ const t = {};
1743
+ return e.colors && (t.colors = e.colors), e.status && (t.status = e.status), t;
1744
+ }, Yd = async ({
1745
+ relation: e,
1746
+ ids: t,
1747
+ treeView: n,
1748
+ context: r,
1749
+ attrs: o,
1750
+ treeOoui: a
1751
+ }) => {
1752
+ const s = await $.getHandler().readEvalUiObjects({
1753
+ model: e,
1754
+ ids: t,
1755
+ arch: n.arch,
1756
+ fields: n.fields,
1757
+ context: r,
1758
+ attrs: o
1759
+ });
1760
+ return {
1761
+ items: Yn(a, s[0]),
1762
+ colors: rn(s[1]),
1763
+ status: Nn(s[1])
1764
+ };
1765
+ }, Gd = (e, t) => {
1766
+ if (!t)
1767
+ return e;
1768
+ const n = {};
1769
+ return Object.keys(e).forEach((r) => {
1770
+ if (t[r] === void 0)
1771
+ n[r] = e[r];
1772
+ else if (!(e[r] === !1 && t[r].type !== "boolean"))
1773
+ if (t[r].type === "boolean") {
1774
+ const o = e[r];
1775
+ o === 0 ? n[r] = !1 : o === 1 ? n[r] = !0 : n[r] = e[r];
1776
+ } else
1777
+ n[r] = e[r];
1778
+ }), n;
1779
+ }, un = (e, t) => Gd(e, t), Br = ({
1780
+ source: e,
1781
+ target: t,
1782
+ fields: n
1783
+ }) => {
1784
+ const r = {};
1785
+ return Object.keys(t).forEach((o) => {
1786
+ var s, l;
1787
+ if (n[o] ? n[o].type === "one2many" || n[o].type === "many2many" : !1) {
1788
+ const c = JSON.stringify(e[o]), u = JSON.stringify(t[o]);
1789
+ if (c === u)
1790
+ return;
1791
+ (((l = (s = t[o]) == null ? void 0 : s.items) == null ? void 0 : l.filter(
1792
+ (d) => d.operation !== "original"
1793
+ )) || []).length > 0 && (r[o] = t[o]);
1794
+ } else if (Array.isArray(t[o]))
1795
+ if (n[o].type === "many2one") {
1796
+ if (!mi(e[o]) && !mi(t[o]))
1797
+ return;
1798
+ if (Array.isArray(e[o])) {
1799
+ const c = JSON.stringify(e[o]), u = JSON.stringify(t[o]);
1800
+ c !== u && (r[o] = t[o]);
1801
+ } else {
1802
+ const c = e[o], [u] = t[o];
1803
+ c !== u && (r[o] = t[o]);
1804
+ }
1805
+ } else {
1806
+ const c = JSON.stringify(e[o]), u = JSON.stringify(t[o]);
1807
+ c !== u && (r[o] = t[o]);
1808
+ }
1809
+ else
1810
+ 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]);
1811
+ }), r;
1812
+ }, Kd = ({
1813
+ changedFields: e,
1814
+ formOoui: t,
1815
+ types: n
1816
+ }) => e.map((o) => {
1817
+ var s;
1818
+ const a = (s = t == null ? void 0 : t.findById(o)) == null ? void 0 : s.type;
1819
+ return n.includes(a);
1820
+ }).some((o) => o === !0), qd = ({
1821
+ fieldsDomain: e,
1822
+ fields: t
1823
+ }) => {
1824
+ const n = {};
1825
+ return Object.keys(t).forEach((r) => {
1826
+ n[r] = t[r], e[r] && (n[r].domain = e[r]);
1827
+ }), n;
1828
+ }, zd = (e) => {
1829
+ const t = {};
1830
+ return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
1831
+ (n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
1832
+ }), t);
1833
+ }, Jd = ({
1834
+ onChangeFieldActionArgs: e,
1835
+ values: t,
1836
+ parentValues: n = {}
1837
+ }) => {
1838
+ const r = {};
1839
+ return e.forEach((o) => {
1840
+ const a = o.split("");
1841
+ if (o === "True")
1842
+ r[o] = !0;
1843
+ else if (o === "False")
1844
+ r[o] = !1;
1845
+ else if (t[o])
1846
+ r[o] = t[o];
1847
+ else if (a[0] === "'" && a[a.length - 1] === "'" && a.filter((s) => s === "'").length === 2)
1848
+ r[o] = o.replace(/'/g, "");
1849
+ else if (a.includes("'"))
1850
+ r[o] = o;
1851
+ else if (o.indexOf("parent.") !== -1) {
1852
+ const s = o.replace("parent.", "");
1853
+ r[o] = n[s] || !1;
1854
+ } else
1855
+ r[o] = !1;
1856
+ }), r;
1857
+ }, bn = (e) => {
1858
+ const t = {
1859
+ primary: [],
1860
+ secondary: []
1861
+ };
1862
+ return e.forEach((n) => {
1863
+ n && (t.primary = t.primary.concat(n.primary), t.secondary = t.secondary.concat(
1864
+ n.secondary
1865
+ ));
1866
+ }), {
1867
+ primary: t.primary.filter(fi),
1868
+ secondary: t.secondary.filter(fi)
1869
+ };
1870
+ };
1871
+ function fi(e, t, n) {
1872
+ return n.indexOf(e) === t;
1873
+ }
1874
+ const sn = ({
1875
+ values: e,
1876
+ fields: t
1877
+ }) => {
1878
+ const n = {};
1879
+ return Object.keys(e).forEach((r) => {
1880
+ const o = e[r];
1881
+ t[r] && t[r].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? n[r] = o[0] : n[r] = o;
1882
+ }), n;
1883
+ }, Qd = (e) => e ? "success" : "error", Gn = (e) => {
1884
+ let t = 0;
1885
+ e = e.toString().padEnd(10, "0");
1886
+ for (let r = 0; r < e.length; r++)
1887
+ t = e.charCodeAt(r) + ((t << 5) - t);
1888
+ let n = "#";
1889
+ for (let r = 0; r < 3; r++) {
1890
+ const o = t >> r * 8 & 255;
1891
+ n += ("00" + o.toString(16)).slice(-2);
2014
1892
  }
2015
- );
2016
- tu.displayName = "ConfigContextProvider";
1893
+ return n;
1894
+ }, Ys = (e, t = 7) => ({
1895
+ text: Fc(e)[t],
1896
+ background: `${e}40`
1897
+ }), Xd = (e, t) => e.replace(
1898
+ /\{([^}]+)\}/g,
1899
+ (n, r) => t[r] !== void 0 ? t[r] : n
1900
+ ), mi = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), Zd = (e) => /* @__PURE__ */ P(
1901
+ "div",
1902
+ {
1903
+ style: { display: "inline-block", cursor: "pointer" },
1904
+ onClick: e.onClick,
1905
+ children: [
1906
+ /* @__PURE__ */ i("strong", { children: e.title }),
1907
+ e.summary && /* @__PURE__ */ P(ee, { children: [
1908
+ /* @__PURE__ */ i("br", {}),
1909
+ /* @__PURE__ */ i("span", { children: e.summary })
1910
+ ] })
1911
+ ]
1912
+ }
1913
+ ), eu = (e) => {
1914
+ const { ooui: t } = e, { relation: n, context: r, views: o } = t, [a, s] = I(!0), [l, c] = I(), [u, m] = I(/* @__PURE__ */ new Map()), d = ne(Ge), { getContext: f } = d || {};
1915
+ Mt(() => {
1916
+ p();
1917
+ }, [t]);
1918
+ const h = async (g) => o && o[g] ? o[g] : await $.getHandler().getView({
1919
+ model: n,
1920
+ type: g,
1921
+ context: { ...f == null ? void 0 : f(), ...r }
1922
+ }), p = async () => {
1923
+ s(!0), c(void 0);
1924
+ try {
1925
+ const g = await h("form"), y = await h("tree");
1926
+ u.set("form", g), u.set("tree", y), m(u);
1927
+ } catch (g) {
1928
+ c(g);
1929
+ } finally {
1930
+ s(!1);
1931
+ }
1932
+ };
1933
+ return a ? /* @__PURE__ */ i(Qe, {}) : l ? /* @__PURE__ */ i(yt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(Pe, { type: "array", ...e, children: /* @__PURE__ */ i(tu, { ooui: t, views: u }) });
1934
+ }, tu = (e) => {
1935
+ const { value: t, views: n, ooui: r, onChange: o } = e, { items: a = [] } = t || {}, [s, l] = I(!1), [c, u] = I(), [m, d] = I(!1), [f, h] = I(), {
1936
+ relation: p,
1937
+ context: g,
1938
+ readOnly: y,
1939
+ summaryField: v,
1940
+ titleField: b,
1941
+ iconField: A,
1942
+ colorField: S
1943
+ } = r, C = a.filter((R) => R.values), F = ne(Ge), { getContext: w } = F || {};
1944
+ Mt(() => {
1945
+ _();
1946
+ }, [a]);
1947
+ const T = (R) => {
1948
+ o == null || o({
1949
+ items: R
1950
+ });
1951
+ };
1952
+ async function _() {
1953
+ l(!0), u(void 0);
1954
+ try {
1955
+ const [R] = await Do({
1956
+ treeView: {
1957
+ fields: n.get("tree").fields,
1958
+ arch: n.get("tree").arch
1959
+ },
1960
+ formView: {
1961
+ fields: n.get("form").fields
1962
+ },
1963
+ model: p,
1964
+ items: a,
1965
+ context: { ...w == null ? void 0 : w(), ...g },
1966
+ currentView: "form"
1967
+ });
1968
+ T(R);
1969
+ } catch (R) {
1970
+ u(R);
1971
+ } finally {
1972
+ l(!1);
1973
+ }
1974
+ }
1975
+ if (c)
1976
+ return /* @__PURE__ */ i(yt, { className: "mt-10", message: c, type: "error", banner: !0 });
1977
+ if (s)
1978
+ return /* @__PURE__ */ i(Qe, {});
1979
+ const O = (R) => {
1980
+ const E = St(R);
1981
+ return E && /* @__PURE__ */ i(E, {});
1982
+ }, x = C.map((R) => {
1983
+ var V, N, L, B;
1984
+ const E = {
1985
+ children: /* @__PURE__ */ i(
1986
+ Zd,
1987
+ {
1988
+ title: (V = R.values) == null ? void 0 : V[b],
1989
+ summary: (N = R.values) == null ? void 0 : N[v],
1990
+ onClick: () => {
1991
+ h(
1992
+ C.find((W) => R.id === W.id)
1993
+ ), d(!0);
1994
+ }
1995
+ }
1996
+ )
1997
+ };
1998
+ return (L = R.values) != null && L[A] && (E.dot = O(R.values[A])), (B = R.values) != null && B[S] && (E.color = !Os(R.values[S]) && !Rs(R.values[S]) && !R.values[S].toString().startsWith("#") ? Gn(R.values[S]) : R.values[S]), E;
1999
+ });
2000
+ return /* @__PURE__ */ P(ee, { children: [
2001
+ /* @__PURE__ */ i(is, { style: { padding: "1rem" }, items: x }),
2002
+ /* @__PURE__ */ i(
2003
+ Rn,
2004
+ {
2005
+ formView: n.get("form"),
2006
+ model: p,
2007
+ id: f == null ? void 0 : f.id,
2008
+ values: f == null ? void 0 : f.values,
2009
+ defaultValues: f == null ? void 0 : f.defaultValues,
2010
+ visible: m,
2011
+ onSubmitSucceed: () => {
2012
+ d(!1);
2013
+ },
2014
+ parentContext: { ...w == null ? void 0 : w(), ...g },
2015
+ onCancel: () => {
2016
+ d(!1);
2017
+ },
2018
+ readOnly: y,
2019
+ postSaveAction: _
2020
+ }
2021
+ )
2022
+ ] });
2023
+ };
2017
2024
  async function Gs({
2018
2025
  actionId: e,
2019
2026
  rootContext: t = {},
@@ -2072,7 +2079,7 @@ async function Gs({
2072
2079
  };
2073
2080
  }
2074
2081
  const nu = (e) => {
2075
- const [t, n] = I(), [r, o] = I(!0), [a, s] = I(), [l, c] = I(), u = ne(Ge), { getContext: m, getPlainValues: d, activeId: f } = u || {}, { globalValues: h, rootContext: p } = Yn(), g = q(() => ({ ...m == null ? void 0 : m(), ...p }), [m, p]);
2082
+ const [t, n] = I(), [r, o] = I(!0), [a, s] = I(), [l, c] = I(), u = ne(Ge), { getContext: m, getPlainValues: d, activeId: f } = u || {}, { globalValues: h, rootContext: p } = Wn(), g = q(() => ({ ...m == null ? void 0 : m(), ...p }), [m, p]);
2076
2083
  return { actionData: a, treeShortcut: l, loading: r, error: t, fetchData: async () => {
2077
2084
  n(void 0), o(!0);
2078
2085
  try {
@@ -2140,7 +2147,7 @@ const nu = (e) => {
2140
2147
 
2141
2148
  `) !== -1) {
2142
2149
  const { message: o, type: a, title: s } = Es(e);
2143
- n = /* @__PURE__ */ i(kn, { content: `${s}<br />${o}` }), r = a;
2150
+ n = /* @__PURE__ */ i($n, { content: `${s}<br />${o}` }), r = a;
2144
2151
  } else
2145
2152
  n = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
2146
2153
  return /* @__PURE__ */ i(
@@ -2361,13 +2368,13 @@ const { getValueForOperator: pi } = ms, iu = (e) => {
2361
2368
  $.getHandler().searchCount
2362
2369
  ), [V] = Xe(
2363
2370
  $.getHandler().evalDomain
2364
- ), [L] = Xe(
2371
+ ), [N] = Xe(
2365
2372
  $.getHandler().parseCondition
2366
2373
  );
2367
2374
  ae(() => {
2368
2375
  W();
2369
2376
  }, [t, o]);
2370
- async function N({
2377
+ async function L({
2371
2378
  domain: k,
2372
2379
  isTotal: K
2373
2380
  }) {
@@ -2422,20 +2429,20 @@ const { getValueForOperator: pi } = ms, iu = (e) => {
2422
2429
  p(!0), O(void 0);
2423
2430
  let k, K;
2424
2431
  try {
2425
- const Z = await N({ domain: n, isTotal: !1 });
2432
+ const Z = await L({ domain: n, isTotal: !1 });
2426
2433
  if (y(Z), a) {
2427
2434
  const Q = await V({
2428
2435
  domain: a,
2429
2436
  values: {},
2430
2437
  context: r
2431
2438
  });
2432
- k = await N({
2439
+ k = await L({
2433
2440
  domain: Q,
2434
2441
  isTotal: !0
2435
2442
  }), S(k);
2436
2443
  }
2437
2444
  if (k ? (K = Math.round(Z / k * 100 * 100) / 100, b(K)) : b(0), o) {
2438
- const Q = await L({
2445
+ const Q = await N({
2439
2446
  condition: o,
2440
2447
  values: { value: Z, percent: K },
2441
2448
  context: r
@@ -2444,7 +2451,7 @@ const { getValueForOperator: pi } = ms, iu = (e) => {
2444
2451
  }
2445
2452
  if (l)
2446
2453
  if (l.indexOf(":") !== -1) {
2447
- const Q = await L({
2454
+ const Q = await N({
2448
2455
  condition: l,
2449
2456
  values: { value: Z, percent: K },
2450
2457
  context: r
@@ -2993,7 +3000,7 @@ const Su = ({
2993
3000
  return r;
2994
3001
  }, {});
2995
3002
  return ur(n);
2996
- }, $t = 80, { confirm: Ru } = Tt, In = ({
3003
+ }, $t = 80, { confirm: Ru } = Tt, An = ({
2997
3004
  onOk: e,
2998
3005
  onCancel: t,
2999
3006
  t: n
@@ -3010,12 +3017,12 @@ const Su = ({
3010
3017
  });
3011
3018
  }, Ur = {
3012
3019
  tree: /* @__PURE__ */ i(To, {}),
3013
- form: /* @__PURE__ */ i(Vn, {}),
3020
+ form: /* @__PURE__ */ i(kn, {}),
3014
3021
  graph: /* @__PURE__ */ i(Hl, {}),
3015
3022
  calendar: /* @__PURE__ */ i(Ul, {})
3016
3023
  };
3017
3024
  function vi(e) {
3018
- return e ? (Ur == null ? void 0 : Ur[e.type]) || /* @__PURE__ */ i(Vn, {}) : /* @__PURE__ */ i(Vn, {});
3025
+ return e ? (Ur == null ? void 0 : Ur[e.type]) || /* @__PURE__ */ i(kn, {}) : /* @__PURE__ */ i(kn, {});
3019
3026
  }
3020
3027
  function Eo(e) {
3021
3028
  const {
@@ -3041,7 +3048,7 @@ function Eo(e) {
3041
3048
  ], [n, t.view_id, l]);
3042
3049
  function u(d) {
3043
3050
  if (a) {
3044
- In({
3051
+ An({
3045
3052
  t: l,
3046
3053
  onOk: () => {
3047
3054
  d();
@@ -3131,7 +3138,7 @@ function ea(e) {
3131
3138
  Ct
3132
3139
  ), { t: o } = me(), a = () => {
3133
3140
  if (n) {
3134
- In({
3141
+ An({
3135
3142
  t: o,
3136
3143
  onOk: () => {
3137
3144
  r();
@@ -3186,7 +3193,7 @@ async function Po(e, t, n) {
3186
3193
  model: e,
3187
3194
  ids: [t]
3188
3195
  }))[0], { create_date: o, create_uid: a, id: s, write_date: l, write_uid: c } = r;
3189
- Zt(
3196
+ en(
3190
3197
  /* @__PURE__ */ P("div", { children: [
3191
3198
  "ID: " + s,
3192
3199
  " ",
@@ -3245,8 +3252,7 @@ function Eu(e) {
3245
3252
  ) })
3246
3253
  ] }) });
3247
3254
  }
3248
- var sn = /* @__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.FEATURE_GET_TOOLBAR = "get_toolbar", e))(sn || {});
3249
- const lb = Object.values(sn), Ot = At.createContext(null), Pu = (e) => {
3255
+ const Ot = At.createContext(null), Pu = (e) => {
3250
3256
  const {
3251
3257
  children: t,
3252
3258
  openAction: n,
@@ -3257,7 +3263,7 @@ const lb = Object.values(sn), Ot = At.createContext(null), Pu = (e) => {
3257
3263
  onChangeTab: l,
3258
3264
  onRemoveTab: c,
3259
3265
  tabs: u
3260
- } = e, [m, d] = I(), [f, h] = I(), p = q(() => u.find((v) => v.key === s), [u, s]), { title: g } = Yn(), y = q(() => !((u == null ? void 0 : u.length) > 0), [u]);
3266
+ } = e, [m, d] = I(), [f, h] = I(), p = q(() => u.find((v) => v.key === s), [u, s]), { title: g } = Wn(), y = q(() => !((u == null ? void 0 : u.length) > 0), [u]);
3261
3267
  return ae(() => {
3262
3268
  y && (document.title = g, window.history.replaceState({}, "", "/"));
3263
3269
  }, [y, g]), /* @__PURE__ */ i(
@@ -3285,7 +3291,7 @@ const lb = Object.values(sn), Ot = At.createContext(null), Pu = (e) => {
3285
3291
  function Vo() {
3286
3292
  return ne(Ot) || {};
3287
3293
  }
3288
- const An = At.createContext(null), bi = async (e) => {
3294
+ const Fn = At.createContext(null), bi = async (e) => {
3289
3295
  var t;
3290
3296
  for (let n = 0; n < e.length; n++)
3291
3297
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
@@ -3307,11 +3313,11 @@ const An = At.createContext(null), bi = async (e) => {
3307
3313
  context: R,
3308
3314
  model: E,
3309
3315
  datas: V = {},
3310
- report_name: L,
3311
- type: N
3316
+ report_name: N,
3317
+ type: L
3312
3318
  } = T;
3313
- if (N !== "ir.actions.report.xml") {
3314
- wt(`${N} action not supported`);
3319
+ if (L !== "ir.actions.report.xml") {
3320
+ wt(`${L} action not supported`);
3315
3321
  return;
3316
3322
  }
3317
3323
  const { ids: B } = V || {}, W = B || [], k = typeof R == "string" ? Yt({
@@ -3322,7 +3328,7 @@ const An = At.createContext(null), bi = async (e) => {
3322
3328
  try {
3323
3329
  const K = await $.getHandler().createReport({
3324
3330
  model: E,
3325
- name: L,
3331
+ name: N,
3326
3332
  datas: V,
3327
3333
  ids: W,
3328
3334
  context: { ...x, ...k }
@@ -3367,7 +3373,7 @@ const An = At.createContext(null), bi = async (e) => {
3367
3373
  return await A({ actionData: w, fields: T, values: _, context: O });
3368
3374
  if (R === "ir.actions.act_url")
3369
3375
  window.open(
3370
- Gd(w.url, { ..._, context: O }),
3376
+ Xd(w.url, { ..._, context: O }),
3371
3377
  "_blank"
3372
3378
  );
3373
3379
  else
@@ -3394,11 +3400,11 @@ const An = At.createContext(null), bi = async (e) => {
3394
3400
  ...O,
3395
3401
  ...E
3396
3402
  };
3397
- let L = [];
3398
- const N = x.domain;
3399
- if (x.domain && (L = await $.getHandler().evalDomain({
3403
+ let N = [];
3404
+ const L = x.domain;
3405
+ if (x.domain && (N = await $.getHandler().evalDomain({
3400
3406
  domain: x.domain,
3401
- values: on({
3407
+ values: sn({
3402
3408
  fields: T,
3403
3409
  values: { ..._, ...r }
3404
3410
  }),
@@ -3412,7 +3418,7 @@ const An = At.createContext(null), bi = async (e) => {
3412
3418
  context: V
3413
3419
  });
3414
3420
  return S({
3415
- domain: L,
3421
+ domain: N,
3416
3422
  model: x.res_model,
3417
3423
  formView: W,
3418
3424
  context: V
@@ -3427,7 +3433,7 @@ const An = At.createContext(null), bi = async (e) => {
3427
3433
  return u == null || u({
3428
3434
  target: "current",
3429
3435
  context: V,
3430
- domain: L,
3436
+ domain: N,
3431
3437
  model: x.res_model,
3432
3438
  views: k,
3433
3439
  title: x.name,
@@ -3436,7 +3442,7 @@ const An = At.createContext(null), bi = async (e) => {
3436
3442
  action_type: x.type,
3437
3443
  actionRawData: {
3438
3444
  context: R,
3439
- domain: N,
3445
+ domain: L,
3440
3446
  fields: T,
3441
3447
  values: _
3442
3448
  },
@@ -3478,7 +3484,7 @@ const An = At.createContext(null), bi = async (e) => {
3478
3484
  });
3479
3485
  }
3480
3486
  return /* @__PURE__ */ i(ee, { children: /* @__PURE__ */ i(
3481
- An.Provider,
3487
+ Fn.Provider,
3482
3488
  {
3483
3489
  value: {
3484
3490
  processAction: b,
@@ -3500,7 +3506,7 @@ const An = At.createContext(null), bi = async (e) => {
3500
3506
  }
3501
3507
  ),
3502
3508
  /* @__PURE__ */ i(
3503
- On,
3509
+ Rn,
3504
3510
  {
3505
3511
  buttonModal: !0,
3506
3512
  parentContext: p.context,
@@ -3581,7 +3587,7 @@ const $u = _t(Vu), na = ({
3581
3587
  onRefreshParentValues: t
3582
3588
  }) => {
3583
3589
  const n = ne(
3584
- An
3590
+ Fn
3585
3591
  ), { processAction: r } = n || {};
3586
3592
  return D(
3587
3593
  (o, a = {}) => {
@@ -3646,7 +3652,7 @@ const $u = _t(Vu), na = ({
3646
3652
  };
3647
3653
  }, st = Ze(() => /* @__PURE__ */ i("div", { className: "inline-block w-2" }));
3648
3654
  st.displayName = "ActionBarSeparator";
3649
- const Mu = "action", Lu = ["active_id", "active_ids", "id"], Nu = ["target", "context", "domain", "fields"], oa = (e) => {
3655
+ const Mu = "action", Nu = ["active_id", "active_ids", "id"], Lu = ["target", "context", "domain", "fields"], oa = (e) => {
3650
3656
  const t = new URL(window.location.origin);
3651
3657
  t.pathname = Mu;
3652
3658
  const n = {
@@ -3654,7 +3660,7 @@ const Mu = "action", Lu = ["active_id", "active_ids", "id"], Nu = ["target", "co
3654
3660
  actionRawData: (e == null ? void 0 : e.actionRawData) && Bu(e.actionRawData)
3655
3661
  };
3656
3662
  return Object.entries(n).forEach(([r, o]) => {
3657
- !Nu.includes(r) && o && (!Array.isArray(o) || o.length > 0) && t.searchParams.set(r, ju(o));
3663
+ !Lu.includes(r) && o && (!Array.isArray(o) || o.length > 0) && t.searchParams.set(r, ju(o));
3658
3664
  }), t.toString();
3659
3665
  }, ju = (e) => typeof e == "object" ? JSON.stringify(e) : e.toString(), Bu = (e) => {
3660
3666
  const { context: t, domain: n, values: r } = e, o = {};
@@ -3664,7 +3670,7 @@ const Mu = "action", Lu = ["active_id", "active_ids", "id"], Nu = ["target", "co
3664
3670
  }
3665
3671
  return Object.keys(o).length > 0 ? o : void 0;
3666
3672
  }, ia = (e) => !e || typeof e != "object" ? {} : Object.fromEntries(
3667
- Object.entries(e).filter(([t]) => Lu.includes(t))
3673
+ Object.entries(e).filter(([t]) => Nu.includes(t))
3668
3674
  );
3669
3675
  function Rr({ res_id: e, searchParams: t }) {
3670
3676
  const n = Y(null), { currentView: r } = Xn(), o = {
@@ -3677,11 +3683,11 @@ function Rr({ res_id: e, searchParams: t }) {
3677
3683
  b.value = v, document.body.appendChild(b), b.select(), b.setSelectionRange(0, 99999);
3678
3684
  const A = document.execCommand("copy");
3679
3685
  if (document.body.removeChild(b), A)
3680
- c(!0), Dn.success(s("urlCopiedToClipboard")), setTimeout(() => c(!1), 2e3);
3686
+ c(!0), En.success(s("urlCopiedToClipboard")), setTimeout(() => c(!1), 2e3);
3681
3687
  else
3682
3688
  throw new Error("Copy command was unsuccessful.");
3683
3689
  } catch (b) {
3684
- console.error("Error copying to clipboard:", b), Dn.error(s("errorCopyingToClipboard"));
3690
+ console.error("Error copying to clipboard:", b), En.error(s("errorCopyingToClipboard"));
3685
3691
  }
3686
3692
  },
3687
3693
  [c, s]
@@ -3718,7 +3724,7 @@ function Rr({ res_id: e, searchParams: t }) {
3718
3724
  style: {
3719
3725
  marginRight: 8
3720
3726
  },
3721
- icon: l ? /* @__PURE__ */ i(Bn, { style: { color: a.colorSuccess } }) : /* @__PURE__ */ i(Hn, { style: { color: a.colorTextSecondary } }),
3727
+ icon: l ? /* @__PURE__ */ i(Hn, { style: { color: a.colorSuccess } }) : /* @__PURE__ */ i(Un, { style: { color: a.colorTextSecondary } }),
3722
3728
  onClick: () => m(h)
3723
3729
  }
3724
3730
  ),
@@ -3774,9 +3780,9 @@ function Hu({
3774
3780
  totalItems: _,
3775
3781
  isActive: O,
3776
3782
  treeType: x
3777
- } = ne(Ct), R = Gn(
3778
- sn.FEATURE_ADVANCED_EXPORT
3779
- ), { t: E } = me(), [V, L] = I(!1), N = Y(!0), B = D(() => {
3783
+ } = ne(Ct), R = In(
3784
+ Qt.FEATURE_ADVANCED_EXPORT
3785
+ ), { t: E } = me(), [V, N] = I(!1), L = Y(!0), B = D(() => {
3780
3786
  var X;
3781
3787
  (X = f == null ? void 0 : f.current) == null || X.refreshResults();
3782
3788
  }, [f]), { actionButtonProps: W, printButtonProps: k } = ra({
@@ -3867,27 +3873,27 @@ function Hu({
3867
3873
  );
3868
3874
  return;
3869
3875
  }
3870
- L(!0);
3876
+ N(!0);
3871
3877
  },
3872
3878
  [d, e, w, K, s]
3873
3879
  );
3874
3880
  ae(() => {
3875
3881
  var X;
3876
3882
  if (x === "infinite" && A === void 0) {
3877
- if (N.current) {
3878
- N.current = !1;
3883
+ if (L.current) {
3884
+ L.current = !1;
3879
3885
  return;
3880
3886
  }
3881
3887
  (X = f == null ? void 0 : f.current) == null || X.refreshResults();
3882
3888
  }
3883
- }, [x, A, f]), Qt(
3889
+ }, [x, A, f]), Xt(
3884
3890
  "ctrl+l,command+l",
3885
3891
  () => {
3886
3892
  O && F && (C == null || C(o), a == null || a(F));
3887
3893
  },
3888
3894
  { enableOnFormTags: !0, preventDefault: !0 },
3889
3895
  [F, o, O, C, a]
3890
- ), Qt(
3896
+ ), Xt(
3891
3897
  "ctrl+f,command+f",
3892
3898
  () => {
3893
3899
  O && (v == null || v(!y));
@@ -3944,7 +3950,7 @@ function Hu({
3944
3950
  /* @__PURE__ */ i(
3945
3951
  gt,
3946
3952
  {
3947
- icon: /* @__PURE__ */ i(Hn, {}),
3953
+ icon: /* @__PURE__ */ i(Un, {}),
3948
3954
  tooltip: E("duplicate"),
3949
3955
  disabled: !s || (s == null ? void 0 : s.length) !== 1 || u || S,
3950
3956
  loading: u,
@@ -3995,12 +4001,12 @@ function Hu({
3995
4001
  )
3996
4002
  ] }),
3997
4003
  /* @__PURE__ */ i(st, {}),
3998
- /* @__PURE__ */ i(Nt, { icon: /* @__PURE__ */ i(Sr, {}), ...W }),
3999
- /* @__PURE__ */ i(Nt, { icon: /* @__PURE__ */ i(Cr, {}), ...k }),
4004
+ /* @__PURE__ */ i(Lt, { icon: /* @__PURE__ */ i(Sr, {}), ...W }),
4005
+ /* @__PURE__ */ i(Lt, { icon: /* @__PURE__ */ i(Cr, {}), ...k }),
4000
4006
  R && /* @__PURE__ */ P(ee, { children: [
4001
4007
  /* @__PURE__ */ i(st, {}),
4002
4008
  /* @__PURE__ */ i(
4003
- Nt,
4009
+ Lt,
4004
4010
  {
4005
4011
  placement: "bottomRight",
4006
4012
  icon: /* @__PURE__ */ i(sa, {}),
@@ -4027,7 +4033,7 @@ function Hu({
4027
4033
  Wg,
4028
4034
  {
4029
4035
  visible: V,
4030
- onClose: () => L(!1),
4036
+ onClose: () => N(!1),
4031
4037
  model: d,
4032
4038
  domain: Q,
4033
4039
  limit: T,
@@ -4095,7 +4101,7 @@ const { useToken: Wu } = ze, { Title: Yu, Text: nr } = zt, Dr = ({
4095
4101
  /* @__PURE__ */ i(
4096
4102
  nr,
4097
4103
  {
4098
- copyable: { icon: /* @__PURE__ */ i(Hn, { style: { color: "red" } }) },
4104
+ copyable: { icon: /* @__PURE__ */ i(Un, { style: { color: "red" } }) },
4099
4105
  children: a
4100
4106
  }
4101
4107
  ),
@@ -4375,7 +4381,7 @@ const qu = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(la,
4375
4381
  const { id: t, model: n, context: r = {} } = e, [o, a] = I(), [s, l] = I(), c = ne(
4376
4382
  Ot
4377
4383
  ), { openRelate: u, openAction: m } = c || {}, d = ne(
4378
- An
4384
+ Fn
4379
4385
  ), { processAction: f } = d || {}, [h, p] = Xe(
4380
4386
  $.getHandler().getView
4381
4387
  ), [g, y] = Xe(
@@ -4467,7 +4473,7 @@ const qu = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(la,
4467
4473
  const a = t[o];
4468
4474
  return (a == null ? void 0 : a.flatMap((s) => {
4469
4475
  const l = [];
4470
- return "context" in s && l.push(...Ll(s.context)), "domain" in s && l.push(...Nl(s.domain)), l;
4476
+ return "context" in s && l.push(...Nl(s.context)), "domain" in s && l.push(...Ll(s.domain)), l;
4471
4477
  })) || [];
4472
4478
  });
4473
4479
  return [
@@ -4510,7 +4516,7 @@ const qu = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(la,
4510
4516
  return null;
4511
4517
  let r = n;
4512
4518
  t.selectionValues.size ? r = t.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
4513
- const o = r.toString().split(" ").filter((s) => s.length > 1).slice(0, 3).map((s) => s[0].toUpperCase()).join(""), a = Wn(r);
4519
+ const o = r.toString().split(" ").filter((s) => s.length > 1).slice(0, 3).map((s) => s[0].toUpperCase()).join(""), a = Gn(r);
4514
4520
  return /* @__PURE__ */ i(Et, { title: r, children: /* @__PURE__ */ i(ss, { alt: r, style: { backgroundColor: a }, children: o }) });
4515
4521
  };
4516
4522
  function rf(e) {
@@ -4520,8 +4526,8 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4520
4526
  const { t } = me(), [n, r] = Xe(
4521
4527
  $.getHandler().readObjects
4522
4528
  ), { getFieldValue: o } = ne(Ge) || {}, { ooui: a, value: s } = e, [l, c] = I("default");
4523
- let u = s, m = Wn, d = s;
4524
- a.selectionValues.size ? u = a.selectionValues.get(s) : Array.isArray(s) ? (d = s[0], u = s[1]) : a.fieldType === "boolean" && (u = s ? rf(a.label) : `${t("not")} ${a.label.toLowerCase()}`, m = Yd);
4529
+ let u = s, m = Gn, d = s;
4530
+ a.selectionValues.size ? u = a.selectionValues.get(s) : Array.isArray(s) ? (d = s[0], u = s[1]) : a.fieldType === "boolean" && (u = s ? rf(a.label) : `${t("not")} ${a.label.toLowerCase()}`, m = Qd);
4525
4531
  const f = D(async () => {
4526
4532
  var h, p;
4527
4533
  if (a.colorField)
@@ -4548,7 +4554,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4548
4554
  }, Mo = (e) => {
4549
4555
  let { color: t } = e, n = {};
4550
4556
  if (!Os(e.color) && !Rs(e.color)) {
4551
- const r = Ws(t);
4557
+ const r = Ys(t);
4552
4558
  n = {
4553
4559
  color: r.text,
4554
4560
  borderColor: r.text,
@@ -4561,10 +4567,10 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4561
4567
  en_US: _c,
4562
4568
  es_ES: Oc,
4563
4569
  ca_ES: Rc
4564
- }, Lo = () => {
4570
+ }, No = () => {
4565
4571
  const { locale: e } = me();
4566
4572
  return sf[e];
4567
- }, { useToken: af } = ze, Lt = {
4573
+ }, { useToken: af } = ze, Nt = {
4568
4574
  date: {
4569
4575
  placeholder: "__/__/____",
4570
4576
  dateDisplayFormat: "DD/MM/YYYY",
@@ -4579,25 +4585,25 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4579
4585
  const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
4580
4586
  return /* @__PURE__ */ i(Pe, { required: r, ...e, children: /* @__PURE__ */ i(lf, { ooui: t, showTime: n }) });
4581
4587
  }, lf = (e) => {
4582
- const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: a, readOnly: s, required: l } = r, { token: c } = af(), u = Lo(), m = l && !s ? { backgroundColor: c.colorPrimaryBg } : void 0, d = o ? "time" : "date", f = (g) => {
4588
+ const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: a, readOnly: s, required: l } = r, { token: c } = af(), u = No(), m = l && !s ? { backgroundColor: c.colorPrimaryBg } : void 0, d = o ? "time" : "date", f = (g) => {
4583
4589
  n == null || n(g);
4584
4590
  }, h = (g) => {
4585
4591
  if (g == null) {
4586
4592
  f(g);
4587
4593
  return;
4588
4594
  }
4589
- f(g.format(Lt[d].dateInternalFormat));
4590
- }, p = t ? tt(t, Lt[d].dateInternalFormat) : void 0;
4595
+ f(g.format(Nt[d].dateInternalFormat));
4596
+ }, p = t ? tt(t, Nt[d].dateInternalFormat) : void 0;
4591
4597
  return /* @__PURE__ */ i(
4592
4598
  vo,
4593
4599
  {
4594
4600
  style: { width: "100%", ...m },
4595
- placeholder: o ? Lt.time.placeholder : Lt.date.placeholder,
4601
+ placeholder: o ? Nt.time.placeholder : Nt.date.placeholder,
4596
4602
  disabled: s,
4597
4603
  id: a,
4598
4604
  picker: "date",
4599
4605
  showTime: o,
4600
- format: Lt[d].dateDisplayFormat,
4606
+ format: Nt[d].dateDisplayFormat,
4601
4607
  value: p,
4602
4608
  onChange: h,
4603
4609
  showNow: !1,
@@ -4714,7 +4720,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4714
4720
  justifyContent: "center",
4715
4721
  alignContent: "center"
4716
4722
  },
4717
- children: /* @__PURE__ */ i(Pn, { checked: e, disabled: !0 })
4723
+ children: /* @__PURE__ */ i(Vn, { checked: e, disabled: !0 })
4718
4724
  }
4719
4725
  ),
4720
4726
  [e]
@@ -4722,7 +4728,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4722
4728
  value: e
4723
4729
  }) => q(() => /* @__PURE__ */ i(ua, { emails: e }), [e]), ff = ({ value: e }) => q(() => /* @__PURE__ */ i(ef, { m2oField: e }), [e]), mf = ({ value: e }) => q(
4724
4730
  () => /* @__PURE__ */ i(
4725
- kn,
4731
+ $n,
4726
4732
  {
4727
4733
  content: e == null ? void 0 : e.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
4728
4734
  }
@@ -4733,8 +4739,8 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4733
4739
  return /* @__PURE__ */ i(ee, {});
4734
4740
  const t = tt(
4735
4741
  e,
4736
- Lt.date.dateInternalFormat
4737
- ).format(Lt.date.dateDisplayFormat);
4742
+ Nt.date.dateInternalFormat
4743
+ ).format(Nt.date.dateDisplayFormat);
4738
4744
  return /* @__PURE__ */ i(ee, { children: t });
4739
4745
  }, [e]), hf = ({
4740
4746
  value: e,
@@ -4744,8 +4750,8 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4744
4750
  return /* @__PURE__ */ i(ee, {});
4745
4751
  const t = tt(
4746
4752
  e,
4747
- Lt.time.dateInternalFormat
4748
- ).format(Lt.time.dateDisplayFormat);
4753
+ Nt.time.dateInternalFormat
4754
+ ).format(Nt.time.dateDisplayFormat);
4749
4755
  return /* @__PURE__ */ i(ee, { children: t });
4750
4756
  }, [e]), wi = ({
4751
4757
  value: e
@@ -4830,7 +4836,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4830
4836
  }, [e == null ? void 0 : e.items]);
4831
4837
  const d = q(
4832
4838
  () => o.map((f) => {
4833
- const { id: h, name: p } = f, g = Wn(p);
4839
+ const { id: h, name: p } = f, g = Gn(p);
4834
4840
  return /* @__PURE__ */ i(Mo, { color: g, children: p }, `${h}`);
4835
4841
  }),
4836
4842
  [o]
@@ -4930,8 +4936,8 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4930
4936
  );
4931
4937
  return { getColumnState: a, updateColumnState: s };
4932
4938
  }, _f = (e) => {
4933
- const t = Gn(
4934
- sn.FEATURE_USERVIEWPREFS
4939
+ const t = In(
4940
+ Qt.FEATURE_USERVIEWPREFS
4935
4941
  ), {
4936
4942
  getColumnState: n,
4937
4943
  updateColumnState: r
@@ -4963,7 +4969,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4963
4969
  [e]
4964
4970
  );
4965
4971
  return { getColumnState: s, updateColumnState: l };
4966
- }, No = ({
4972
+ }, Lo = ({
4967
4973
  key: e,
4968
4974
  treeViewFetching: t = !1
4969
4975
  }) => {
@@ -5148,7 +5154,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5148
5154
  )
5149
5155
  ] });
5150
5156
  }, Df = (e) => {
5151
- const t = Lo();
5157
+ const t = No();
5152
5158
  return /* @__PURE__ */ i(Pe, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
5153
5159
  vo.RangePicker,
5154
5160
  {
@@ -5181,7 +5187,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5181
5187
  }
5182
5188
  );
5183
5189
  }, Ef = (e) => {
5184
- const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, a = Lo(), s = [
5190
+ const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, a = No(), s = [
5185
5191
  new Zr({
5186
5192
  name: o + "#date",
5187
5193
  label: ""
@@ -5271,8 +5277,8 @@ const Mf = mt(gr)`
5271
5277
  &.ant-input-number {
5272
5278
  background-color: ${$f.colorPrimaryBg};
5273
5279
  }
5274
- `, { useToken: Lf } = ze, { defaultAlgorithm: Nf, defaultSeed: jf } = ze, Bf = Nf(jf), Ln = Ze((e) => {
5275
- const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: a } = t, { token: s } = Lf(), l = a && !o ? { backgroundColor: s.colorPrimaryBg } : void 0, c = ne(Ge), { elementHasLostFocus: u } = c || {}, m = q(() => a && !o, [a, o]), d = q(
5280
+ `, { useToken: Nf } = ze, { defaultAlgorithm: Lf, defaultSeed: jf } = ze, Bf = Lf(jf), Ln = Ze((e) => {
5281
+ const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: a } = t, { token: s } = Nf(), l = a && !o ? { backgroundColor: s.colorPrimaryBg } : void 0, c = ne(Ge), { elementHasLostFocus: u } = c || {}, m = q(() => a && !o, [a, o]), d = q(
5276
5282
  () => m ? Hf : gr,
5277
5283
  [m]
5278
5284
  ), f = D((g) => g ? /* @__PURE__ */ i(Fr, { content: g }) : null, []), h = D((g) => g === void 0 ? "" : typeof g == "string" && !isNaN(parseFloat(g)) ? `${Math.trunc(parseFloat(g))}`.replace(/[^0-9\-]+/g, "") : typeof g == "number" ? `${Math.trunc(g)}`.replace(/[^0-9\-]+/g, "") : "", []), p = D(
@@ -5347,7 +5353,7 @@ function Uf(e) {
5347
5353
  )
5348
5354
  ] });
5349
5355
  }
5350
- const { defaultAlgorithm: Wf, defaultSeed: Yf } = ze, Gf = Wf(Yf), { Option: Kf } = rn, qf = (e) => {
5356
+ const { defaultAlgorithm: Wf, defaultSeed: Yf } = ze, Gf = Wf(Yf), { Option: Kf } = on, qf = (e) => {
5351
5357
  const { ooui: t } = e, { required: n } = t;
5352
5358
  return /* @__PURE__ */ i(Pe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(zf, { ...e }) });
5353
5359
  }, zf = (e) => {
@@ -5357,7 +5363,7 @@ const { defaultAlgorithm: Wf, defaultSeed: Yf } = ze, Gf = Wf(Yf), { Option: Kf
5357
5363
  }).map((d) => {
5358
5364
  const [f, h] = d;
5359
5365
  return /* @__PURE__ */ i(Kf, { value: h, children: h }, f);
5360
- }), u = s && !a ? Jf : rn;
5366
+ }), u = s && !a ? Jf : on;
5361
5367
  function m(d) {
5362
5368
  const f = d.map((h) => {
5363
5369
  const p = l.find(([g, y]) => h === y);
@@ -5380,7 +5386,7 @@ const { defaultAlgorithm: Wf, defaultSeed: Yf } = ze, Gf = Wf(Yf), { Option: Kf
5380
5386
  children: c
5381
5387
  }
5382
5388
  );
5383
- }, Jf = mt(rn)`
5389
+ }, Jf = mt(on)`
5384
5390
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
5385
5391
  background-color: ${Gf.colorPrimaryBg};
5386
5392
  }
@@ -5399,7 +5405,7 @@ function pa(e) {
5399
5405
  ["false", n("false")]
5400
5406
  ]
5401
5407
  });
5402
- return /* @__PURE__ */ i(Ls, { layout: "vertical", ooui: o, showLabel: !0 });
5408
+ return /* @__PURE__ */ i(Ns, { layout: "vertical", ooui: o, showLabel: !0 });
5403
5409
  }
5404
5410
  case Wt.float:
5405
5411
  case Wt.progressbar:
@@ -5553,7 +5559,7 @@ const { useToken: Qf } = ze, { Title: Xf } = zt, { Header: Zf, Content: em, Foot
5553
5559
  )
5554
5560
  ] }) });
5555
5561
  };
5556
- var rm = "Expected a function", Ti = 0 / 0, om = "[object Symbol]", im = /^\s+|\s+$/g, sm = /^[-+]0x[0-9a-f]+$/i, am = /^0b[01]+$/i, lm = /^0o[0-7]+$/i, cm = parseInt, dm = typeof Xt == "object" && Xt && Xt.Object === Object && Xt, um = typeof self == "object" && self && self.Object === Object && self, fm = dm || um || Function("return this")(), mm = Object.prototype, pm = mm.toString, hm = Math.max, gm = Math.min, Wr = function() {
5562
+ var rm = "Expected a function", Ti = 0 / 0, om = "[object Symbol]", im = /^\s+|\s+$/g, sm = /^[-+]0x[0-9a-f]+$/i, am = /^0b[01]+$/i, lm = /^0o[0-7]+$/i, cm = parseInt, dm = typeof Zt == "object" && Zt && Zt.Object === Object && Zt, um = typeof self == "object" && self && self.Object === Object && self, fm = dm || um || Function("return this")(), mm = Object.prototype, pm = mm.toString, hm = Math.max, gm = Math.min, Wr = function() {
5557
5563
  return fm.Date.now();
5558
5564
  };
5559
5565
  function ym(e, t, n) {
@@ -5795,48 +5801,48 @@ var ga = or, ya = function() {
5795
5801
  return o;
5796
5802
  }, Vm = Pm, va = Function.prototype.bind || Vm, Ei = {}.hasOwnProperty, Kr = Function.prototype.call, km = Kr.bind ? Kr.bind(Ei) : function(e, t) {
5797
5803
  return Kr.call(Ei, e, t);
5798
- }, Ne, wn = SyntaxError, ba = Function, hn = TypeError, qr = function(e) {
5804
+ }, Le, wn = SyntaxError, ba = Function, hn = TypeError, qr = function(e) {
5799
5805
  try {
5800
5806
  return ba('"use strict"; return (' + e + ").constructor;")();
5801
5807
  } catch {
5802
5808
  }
5803
- }, en = Object.getOwnPropertyDescriptor;
5804
- if (en)
5809
+ }, tn = Object.getOwnPropertyDescriptor;
5810
+ if (tn)
5805
5811
  try {
5806
- en({}, "");
5812
+ tn({}, "");
5807
5813
  } catch {
5808
- en = null;
5814
+ tn = null;
5809
5815
  }
5810
5816
  var zr = function() {
5811
5817
  throw new hn();
5812
- }, $m = en ? function() {
5818
+ }, $m = tn ? function() {
5813
5819
  try {
5814
5820
  return arguments.callee, zr;
5815
5821
  } catch {
5816
5822
  try {
5817
- return en(arguments, "callee").get;
5823
+ return tn(arguments, "callee").get;
5818
5824
  } catch {
5819
5825
  return zr;
5820
5826
  }
5821
5827
  }
5822
5828
  }() : zr, cn = Fm(), Mm = Om(), ct = Object.getPrototypeOf || (Mm ? function(e) {
5823
5829
  return e.__proto__;
5824
- } : null), fn = {}, Lm = typeof Uint8Array > "u" || !ct ? Ne : ct(Uint8Array), tn = {
5825
- "%AggregateError%": typeof AggregateError > "u" ? Ne : AggregateError,
5830
+ } : null), fn = {}, Nm = typeof Uint8Array > "u" || !ct ? Le : ct(Uint8Array), nn = {
5831
+ "%AggregateError%": typeof AggregateError > "u" ? Le : AggregateError,
5826
5832
  "%Array%": Array,
5827
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? Ne : ArrayBuffer,
5828
- "%ArrayIteratorPrototype%": cn && ct ? ct([][Symbol.iterator]()) : Ne,
5829
- "%AsyncFromSyncIteratorPrototype%": Ne,
5833
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? Le : ArrayBuffer,
5834
+ "%ArrayIteratorPrototype%": cn && ct ? ct([][Symbol.iterator]()) : Le,
5835
+ "%AsyncFromSyncIteratorPrototype%": Le,
5830
5836
  "%AsyncFunction%": fn,
5831
5837
  "%AsyncGenerator%": fn,
5832
5838
  "%AsyncGeneratorFunction%": fn,
5833
5839
  "%AsyncIteratorPrototype%": fn,
5834
- "%Atomics%": typeof Atomics > "u" ? Ne : Atomics,
5835
- "%BigInt%": typeof BigInt > "u" ? Ne : BigInt,
5836
- "%BigInt64Array%": typeof BigInt64Array > "u" ? Ne : BigInt64Array,
5837
- "%BigUint64Array%": typeof BigUint64Array > "u" ? Ne : BigUint64Array,
5840
+ "%Atomics%": typeof Atomics > "u" ? Le : Atomics,
5841
+ "%BigInt%": typeof BigInt > "u" ? Le : BigInt,
5842
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? Le : BigInt64Array,
5843
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? Le : BigUint64Array,
5838
5844
  "%Boolean%": Boolean,
5839
- "%DataView%": typeof DataView > "u" ? Ne : DataView,
5845
+ "%DataView%": typeof DataView > "u" ? Le : DataView,
5840
5846
  "%Date%": Date,
5841
5847
  "%decodeURI%": decodeURI,
5842
5848
  "%decodeURIComponent%": decodeURIComponent,
@@ -5846,56 +5852,56 @@ var zr = function() {
5846
5852
  "%eval%": eval,
5847
5853
  // eslint-disable-line no-eval
5848
5854
  "%EvalError%": EvalError,
5849
- "%Float32Array%": typeof Float32Array > "u" ? Ne : Float32Array,
5850
- "%Float64Array%": typeof Float64Array > "u" ? Ne : Float64Array,
5851
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Ne : FinalizationRegistry,
5855
+ "%Float32Array%": typeof Float32Array > "u" ? Le : Float32Array,
5856
+ "%Float64Array%": typeof Float64Array > "u" ? Le : Float64Array,
5857
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Le : FinalizationRegistry,
5852
5858
  "%Function%": ba,
5853
5859
  "%GeneratorFunction%": fn,
5854
- "%Int8Array%": typeof Int8Array > "u" ? Ne : Int8Array,
5855
- "%Int16Array%": typeof Int16Array > "u" ? Ne : Int16Array,
5856
- "%Int32Array%": typeof Int32Array > "u" ? Ne : Int32Array,
5860
+ "%Int8Array%": typeof Int8Array > "u" ? Le : Int8Array,
5861
+ "%Int16Array%": typeof Int16Array > "u" ? Le : Int16Array,
5862
+ "%Int32Array%": typeof Int32Array > "u" ? Le : Int32Array,
5857
5863
  "%isFinite%": isFinite,
5858
5864
  "%isNaN%": isNaN,
5859
- "%IteratorPrototype%": cn && ct ? ct(ct([][Symbol.iterator]())) : Ne,
5860
- "%JSON%": typeof JSON == "object" ? JSON : Ne,
5861
- "%Map%": typeof Map > "u" ? Ne : Map,
5862
- "%MapIteratorPrototype%": typeof Map > "u" || !cn || !ct ? Ne : ct((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5865
+ "%IteratorPrototype%": cn && ct ? ct(ct([][Symbol.iterator]())) : Le,
5866
+ "%JSON%": typeof JSON == "object" ? JSON : Le,
5867
+ "%Map%": typeof Map > "u" ? Le : Map,
5868
+ "%MapIteratorPrototype%": typeof Map > "u" || !cn || !ct ? Le : ct((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5863
5869
  "%Math%": Math,
5864
5870
  "%Number%": Number,
5865
5871
  "%Object%": Object,
5866
5872
  "%parseFloat%": parseFloat,
5867
5873
  "%parseInt%": parseInt,
5868
- "%Promise%": typeof Promise > "u" ? Ne : Promise,
5869
- "%Proxy%": typeof Proxy > "u" ? Ne : Proxy,
5874
+ "%Promise%": typeof Promise > "u" ? Le : Promise,
5875
+ "%Proxy%": typeof Proxy > "u" ? Le : Proxy,
5870
5876
  "%RangeError%": RangeError,
5871
5877
  "%ReferenceError%": ReferenceError,
5872
- "%Reflect%": typeof Reflect > "u" ? Ne : Reflect,
5878
+ "%Reflect%": typeof Reflect > "u" ? Le : Reflect,
5873
5879
  "%RegExp%": RegExp,
5874
- "%Set%": typeof Set > "u" ? Ne : Set,
5875
- "%SetIteratorPrototype%": typeof Set > "u" || !cn || !ct ? Ne : ct((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5876
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? Ne : SharedArrayBuffer,
5880
+ "%Set%": typeof Set > "u" ? Le : Set,
5881
+ "%SetIteratorPrototype%": typeof Set > "u" || !cn || !ct ? Le : ct((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5882
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? Le : SharedArrayBuffer,
5877
5883
  "%String%": String,
5878
- "%StringIteratorPrototype%": cn && ct ? ct(""[Symbol.iterator]()) : Ne,
5879
- "%Symbol%": cn ? Symbol : Ne,
5884
+ "%StringIteratorPrototype%": cn && ct ? ct(""[Symbol.iterator]()) : Le,
5885
+ "%Symbol%": cn ? Symbol : Le,
5880
5886
  "%SyntaxError%": wn,
5881
5887
  "%ThrowTypeError%": $m,
5882
- "%TypedArray%": Lm,
5888
+ "%TypedArray%": Nm,
5883
5889
  "%TypeError%": hn,
5884
- "%Uint8Array%": typeof Uint8Array > "u" ? Ne : Uint8Array,
5885
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Ne : Uint8ClampedArray,
5886
- "%Uint16Array%": typeof Uint16Array > "u" ? Ne : Uint16Array,
5887
- "%Uint32Array%": typeof Uint32Array > "u" ? Ne : Uint32Array,
5890
+ "%Uint8Array%": typeof Uint8Array > "u" ? Le : Uint8Array,
5891
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Le : Uint8ClampedArray,
5892
+ "%Uint16Array%": typeof Uint16Array > "u" ? Le : Uint16Array,
5893
+ "%Uint32Array%": typeof Uint32Array > "u" ? Le : Uint32Array,
5888
5894
  "%URIError%": URIError,
5889
- "%WeakMap%": typeof WeakMap > "u" ? Ne : WeakMap,
5890
- "%WeakRef%": typeof WeakRef > "u" ? Ne : WeakRef,
5891
- "%WeakSet%": typeof WeakSet > "u" ? Ne : WeakSet
5895
+ "%WeakMap%": typeof WeakMap > "u" ? Le : WeakMap,
5896
+ "%WeakRef%": typeof WeakRef > "u" ? Le : WeakRef,
5897
+ "%WeakSet%": typeof WeakSet > "u" ? Le : WeakSet
5892
5898
  };
5893
5899
  if (ct)
5894
5900
  try {
5895
5901
  null.error;
5896
5902
  } catch (e) {
5897
- var Nm = ct(ct(e));
5898
- tn["%Error.prototype%"] = Nm;
5903
+ var Lm = ct(ct(e));
5904
+ nn["%Error.prototype%"] = Lm;
5899
5905
  }
5900
5906
  var jm = function e(t) {
5901
5907
  var n;
@@ -5912,7 +5918,7 @@ var jm = function e(t) {
5912
5918
  var o = e("%AsyncGenerator%");
5913
5919
  o && ct && (n = ct(o.prototype));
5914
5920
  }
5915
- return tn[t] = n, n;
5921
+ return nn[t] = n, n;
5916
5922
  }, Pi = {
5917
5923
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
5918
5924
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -5977,8 +5983,8 @@ var jm = function e(t) {
5977
5983
  }), o;
5978
5984
  }, Km = function(t, n) {
5979
5985
  var r = t, o;
5980
- if (fr(Pi, r) && (o = Pi[r], r = "%" + o[0] + "%"), fr(tn, r)) {
5981
- var a = tn[r];
5986
+ if (fr(Pi, r) && (o = Pi[r], r = "%" + o[0] + "%"), fr(nn, r)) {
5987
+ var a = nn[r];
5982
5988
  if (a === fn && (a = jm(r)), typeof a > "u" && !n)
5983
5989
  throw new hn("intrinsic " + t + " exists, but is not available. Please file an issue!");
5984
5990
  return {
@@ -6001,20 +6007,20 @@ var jm = function e(t) {
6001
6007
  var f = r[m], h = mr(f, 0, 1), p = mr(f, -1);
6002
6008
  if ((h === '"' || h === "'" || h === "`" || p === '"' || p === "'" || p === "`") && h !== p)
6003
6009
  throw new wn("property names with quotes must have matching quotes");
6004
- if ((f === "constructor" || !d) && (c = !0), o += "." + f, s = "%" + o + "%", fr(tn, s))
6005
- l = tn[s];
6010
+ if ((f === "constructor" || !d) && (c = !0), o += "." + f, s = "%" + o + "%", fr(nn, s))
6011
+ l = nn[s];
6006
6012
  else if (l != null) {
6007
6013
  if (!(f in l)) {
6008
6014
  if (!n)
6009
6015
  throw new hn("base intrinsic for " + t + " exists, but the property is not available.");
6010
6016
  return;
6011
6017
  }
6012
- if (en && m + 1 >= r.length) {
6013
- var g = en(l, f);
6018
+ if (tn && m + 1 >= r.length) {
6019
+ var g = tn(l, f);
6014
6020
  d = !!g, d && "get" in g && !("originalValue" in g.get) ? l = g.get : l = l[f];
6015
6021
  } else
6016
6022
  d = fr(l, f), l = l[f];
6017
- d && !c && (tn[s] = l);
6023
+ d && !c && (nn[s] = l);
6018
6024
  }
6019
6025
  }
6020
6026
  return l;
@@ -6112,7 +6118,7 @@ var tp = Yo(), Go = zn, $i = tp && Go("%Object.defineProperty%", !0), np = Go("%
6112
6118
  t[n] = r;
6113
6119
  else
6114
6120
  throw new np("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
6115
- }, rp = ga, op = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", ip = Object.prototype.toString, sp = Array.prototype.concat, Li = Ia, ap = function(e) {
6121
+ }, rp = ga, op = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", ip = Object.prototype.toString, sp = Array.prototype.concat, Ni = Ia, ap = function(e) {
6116
6122
  return typeof e == "function" && ip.call(e) === "[object Function]";
6117
6123
  }, Aa = Yo(), lp = function(e, t, n, r) {
6118
6124
  if (t in e) {
@@ -6122,7 +6128,7 @@ var tp = Yo(), Go = zn, $i = tp && Go("%Object.defineProperty%", !0), np = Go("%
6122
6128
  } else if (!ap(r) || !r())
6123
6129
  return;
6124
6130
  }
6125
- Aa ? Li(e, t, n, !0) : Li(e, t, n);
6131
+ Aa ? Ni(e, t, n, !0) : Ni(e, t, n);
6126
6132
  }, Fa = function(e, t) {
6127
6133
  var n = arguments.length > 2 ? arguments[2] : {}, r = rp(t);
6128
6134
  op && (r = sp.call(r, Object.getOwnPropertySymbols(t)));
@@ -6130,10 +6136,10 @@ var tp = Yo(), Go = zn, $i = tp && Go("%Object.defineProperty%", !0), np = Go("%
6130
6136
  lp(e, r[o], t[r[o]], n[r[o]]);
6131
6137
  };
6132
6138
  Fa.supportsDescriptors = !!Aa;
6133
- var Jn = Fa, Ni = function(e) {
6139
+ var Jn = Fa, Li = function(e) {
6134
6140
  return e !== e;
6135
6141
  }, _a = function(t, n) {
6136
- return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || Ni(t) && Ni(n));
6142
+ return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || Li(t) && Li(n));
6137
6143
  }, cp = _a, Oa = function() {
6138
6144
  return typeof Object.is == "function" ? Object.is : cp;
6139
6145
  }, dp = Oa, up = Jn, fp = function() {
@@ -6173,29 +6179,29 @@ var vp = lo("Object.prototype.toString"), bp = Object.getOwnPropertyDescriptor,
6173
6179
  }
6174
6180
  } : function(t) {
6175
6181
  return !t || typeof t != "object" && typeof t != "function" ? !1 : vp(t) === wp;
6176
- }, Nn = function() {
6182
+ }, jn = function() {
6177
6183
  return typeof (function() {
6178
6184
  }).name == "string";
6179
- }, En = Object.getOwnPropertyDescriptor;
6180
- if (En)
6185
+ }, Pn = Object.getOwnPropertyDescriptor;
6186
+ if (Pn)
6181
6187
  try {
6182
- En([], "length");
6188
+ Pn([], "length");
6183
6189
  } catch {
6184
- En = null;
6190
+ Pn = null;
6185
6191
  }
6186
- Nn.functionsHaveConfigurableNames = function() {
6187
- if (!Nn() || !En)
6192
+ jn.functionsHaveConfigurableNames = function() {
6193
+ if (!jn() || !Pn)
6188
6194
  return !1;
6189
- var t = En(function() {
6195
+ var t = Pn(function() {
6190
6196
  }, "name");
6191
6197
  return !!t && !!t.configurable;
6192
6198
  };
6193
6199
  var Cp = Function.prototype.bind;
6194
- Nn.boundFunctionsHaveNames = function() {
6195
- return Nn() && typeof Cp == "function" && (function() {
6200
+ jn.boundFunctionsHaveNames = function() {
6201
+ return jn() && typeof Cp == "function" && (function() {
6196
6202
  }).bind().name !== "";
6197
6203
  };
6198
- var xp = Nn, ji = Ia, Tp = Yo(), Ip = xp.functionsHaveConfigurableNames(), Ap = TypeError, Fp = function(t, n) {
6204
+ var xp = jn, ji = Ia, Tp = Yo(), Ip = xp.functionsHaveConfigurableNames(), Ap = TypeError, Fp = function(t, n) {
6199
6205
  if (typeof t != "function")
6200
6206
  throw new Ap("`fn` is not a function");
6201
6207
  var r = arguments.length > 2 && !!arguments[2];
@@ -6223,22 +6229,22 @@ var xp = Nn, ji = Ia, Tp = Yo(), Ip = xp.functionsHaveConfigurableNames(), Ap =
6223
6229
  }
6224
6230
  }
6225
6231
  return Dp;
6226
- }, Vp = Jn.supportsDescriptors, kp = $a, $p = Object.getOwnPropertyDescriptor, Mp = Object.defineProperty, Lp = TypeError, Bi = Object.getPrototypeOf, Np = /a/, jp = function() {
6232
+ }, Vp = Jn.supportsDescriptors, kp = $a, $p = Object.getOwnPropertyDescriptor, Mp = Object.defineProperty, Np = TypeError, Bi = Object.getPrototypeOf, Lp = /a/, jp = function() {
6227
6233
  if (!Vp || !Bi)
6228
- throw new Lp("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6229
- var t = kp(), n = Bi(Np), r = $p(n, "flags");
6234
+ throw new Np("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6235
+ var t = kp(), n = Bi(Lp), r = $p(n, "flags");
6230
6236
  return (!r || r.get !== t) && Mp(n, "flags", {
6231
6237
  configurable: !0,
6232
6238
  enumerable: !1,
6233
6239
  get: t
6234
6240
  }), t;
6235
- }, Bp = Jn, Hp = Wo, Up = ka, Ma = $a, Wp = jp, La = Hp(Ma());
6236
- Bp(La, {
6241
+ }, Bp = Jn, Hp = Wo, Up = ka, Ma = $a, Wp = jp, Na = Hp(Ma());
6242
+ Bp(Na, {
6237
6243
  getPolyfill: Ma,
6238
6244
  implementation: Up,
6239
6245
  shim: Wp
6240
6246
  });
6241
- var Yp = La, Gp = Date.prototype.getDay, Kp = function(t) {
6247
+ var Yp = Na, Gp = Date.prototype.getDay, Kp = function(t) {
6242
6248
  try {
6243
6249
  return Gp.call(t), !0;
6244
6250
  } catch {
@@ -6247,7 +6253,7 @@ var Yp = La, Gp = Date.prototype.getDay, Kp = function(t) {
6247
6253
  }, qp = Object.prototype.toString, zp = "[object Date]", Jp = Uo(), Qp = function(t) {
6248
6254
  return typeof t != "object" || t === null ? !1 : Jp ? Kp(t) : qp.call(t) === zp;
6249
6255
  }, Hi = ga, Ui = Xm, Wi = yp, Yi = Sp, Gi = Yp, Ki = Qp, qi = Date.prototype.getTime;
6250
- function Na(e, t, n) {
6256
+ function La(e, t, n) {
6251
6257
  var r = n || {};
6252
6258
  return (r.strict ? Wi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Wi(e, t) : e == t : Xp(e, t, r);
6253
6259
  }
@@ -6292,11 +6298,11 @@ function Xp(e, t, n) {
6292
6298
  if (u[r] != m[r])
6293
6299
  return !1;
6294
6300
  for (r = u.length - 1; r >= 0; r--)
6295
- if (o = u[r], !Na(e[o], t[o], n))
6301
+ if (o = u[r], !La(e[o], t[o], n))
6296
6302
  return !1;
6297
6303
  return !0;
6298
6304
  }
6299
- var Zp = Na;
6305
+ var Zp = La;
6300
6306
  const Ko = /* @__PURE__ */ Ds(Zp), eh = _t(
6301
6307
  (e, t) => {
6302
6308
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: a } = e, [s] = Rt.useForm();
@@ -6536,18 +6542,18 @@ function kr(e) {
6536
6542
  if (!y)
6537
6543
  return;
6538
6544
  const x = b ? y : p, R = x == null ? void 0 : x.rows;
6539
- return R == null ? void 0 : R.map((E, V) => /* @__PURE__ */ i(Ye, { children: E.map((L, N) => /* @__PURE__ */ i(Oe, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(pa, { field: L }) }, N)) }, V));
6545
+ return R == null ? void 0 : R.map((E, V) => /* @__PURE__ */ i(Ye, { children: E.map((N, L) => /* @__PURE__ */ i(Oe, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(pa, { field: N }) }, L)) }, V));
6540
6546
  };
6541
6547
  Mt(() => {
6542
6548
  A(!1), S.current = new ps(n, t), S.current.parse(), g(S.current._simpleSearchContainer), v(S.current._advancedSearchContainer);
6543
6549
  }, [t, n]);
6544
6550
  const T = w(), _ = (x) => {
6545
- var L;
6551
+ var N;
6546
6552
  const { limit: R, offset: E } = x;
6547
6553
  delete x.offset, delete x.limit;
6548
6554
  const V = rr(
6549
6555
  x,
6550
- (L = S.current) == null ? void 0 : L._advancedSearchContainer
6556
+ (N = S.current) == null ? void 0 : N._advancedSearchContainer
6551
6557
  );
6552
6558
  o({ params: V, offset: E, limit: R, searchValues: x });
6553
6559
  }, O = D(() => {
@@ -6616,7 +6622,7 @@ function kr(e) {
6616
6622
  function Ba({
6617
6623
  useLocalState: e = !1
6618
6624
  }) {
6619
- const t = Ch() && !e, n = Xn(), [r, o] = I(!1), [a, s] = I(!1), [l, c] = I([]), [u, m] = I(0), [d, f] = I(void 0), [h, p] = I([]), [g, y] = I({}), [v, b] = I(), [A, S] = I([]), [C, F] = I(), [w, T] = I(0), [_, O] = I(), [x, R] = I(1), [E, V] = I(pr), [L, N] = I($t);
6625
+ const t = Ch() && !e, n = Xn(), [r, o] = I(!1), [a, s] = I(!1), [l, c] = I([]), [u, m] = I(0), [d, f] = I(void 0), [h, p] = I([]), [g, y] = I({}), [v, b] = I(), [A, S] = I([]), [C, F] = I(), [w, T] = I(0), [_, O] = I(), [x, R] = I(1), [E, V] = I(pr), [N, L] = I($t);
6620
6626
  return t ? {
6621
6627
  treeIsLoading: n.treeIsLoading ?? !1,
6622
6628
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -6694,8 +6700,8 @@ function Ba({
6694
6700
  setCurrentPage: R,
6695
6701
  treeType: E,
6696
6702
  setTreeType: V,
6697
- limit: L,
6698
- setLimit: N
6703
+ limit: N,
6704
+ setLimit: L
6699
6705
  };
6700
6706
  }
6701
6707
  const Ha = () => {
@@ -6790,8 +6796,8 @@ function lh(e, t) {
6790
6796
  }), {
6791
6797
  setTreeIsLoading: E,
6792
6798
  searchVisible: V,
6793
- setSearchVisible: L,
6794
- setSelectedRowItems: N,
6799
+ setSearchVisible: N,
6800
+ setSelectedRowItems: L,
6795
6801
  setTreeFirstVisibleRow: B,
6796
6802
  treeFirstVisibleRow: W,
6797
6803
  selectedRowItems: k,
@@ -6847,12 +6853,12 @@ function lh(e, t) {
6847
6853
  loading: Ke,
6848
6854
  getColumnState: Ie,
6849
6855
  updateColumnState: re
6850
- } = No({ key: Ue }), Ae = q(
6856
+ } = Lo({ key: Ue }), Ae = q(
6851
6857
  () => Kt(Q || [], s),
6852
6858
  [s, Q]
6853
6859
  ), xe = D(() => {
6854
6860
  const qe = `${JSON.stringify(ce ? s : Ae)}-${ce}`;
6855
- return qe !== Le.current ? (Le.current = qe, !0) : !1;
6861
+ return qe !== Ne.current ? (Ne.current = qe, !0) : !1;
6856
6862
  }, [s, Ae, ce]), Ve = D(async () => {
6857
6863
  F(void 0), ie(0), S(!0);
6858
6864
  try {
@@ -6928,12 +6934,12 @@ function lh(e, t) {
6928
6934
  }
6929
6935
  if (pt.current = at, Ht.length === 0)
6930
6936
  return y.current = [], F(0), ie(0), [];
6931
- const ln = Un(ye, Ht), $r = nn(an);
6937
+ const ln = Yn(ye, Ht), $r = rn(an);
6932
6938
  if (h.current = {
6933
6939
  ...h.current,
6934
6940
  ...$r
6935
6941
  }, !p.current && ye.status && (p.current = {}), ye.status) {
6936
- const bt = Mn(an);
6942
+ const bt = Nn(an);
6937
6943
  p.current = {
6938
6944
  ...p.current,
6939
6945
  ...bt
@@ -6959,14 +6965,14 @@ function lh(e, t) {
6959
6965
  ]
6960
6966
  ), pe = D(
6961
6967
  (he) => {
6962
- N == null || N(he), m == null || m(he.map((qe) => qe.id));
6968
+ L == null || L(he), m == null || m(he.map((qe) => qe.id));
6963
6969
  },
6964
- [m, N]
6970
+ [m, L]
6965
6971
  ), se = D(
6966
6972
  (he) => {
6967
- N == null || N(he.map((qe) => ({ id: qe }))), m == null || m(he);
6973
+ L == null || L(he.map((qe) => ({ id: qe }))), m == null || m(he);
6968
6974
  },
6969
- [m, N]
6975
+ [m, L]
6970
6976
  ), ke = D(
6971
6977
  async ({
6972
6978
  startRow: he,
@@ -7025,7 +7031,7 @@ function lh(e, t) {
7025
7031
  ),
7026
7032
  t: w,
7027
7033
  onOk: qe
7028
- }) : qe() : N([]);
7034
+ }) : qe() : L([]);
7029
7035
  }, [
7030
7036
  pe,
7031
7037
  s,
@@ -7034,10 +7040,10 @@ function lh(e, t) {
7034
7040
  ce,
7035
7041
  u,
7036
7042
  k == null ? void 0 : k.length,
7037
- N,
7043
+ L,
7038
7044
  w,
7039
7045
  C
7040
- ]), nt = D(() => W, [W]), it = q(() => Be ? /* @__PURE__ */ i(Bo, { aggregates: Se, isLoading: ve }) : null, [Se, ve, Be]), It = D((he) => /* @__PURE__ */ i(jn, { color: he, style: { marginLeft: 7 } }), []), te = D(
7046
+ ]), nt = D(() => W, [W]), it = q(() => Be ? /* @__PURE__ */ i(Bo, { aggregates: Se, isLoading: ve }) : null, [Se, ve, Be]), It = D((he) => /* @__PURE__ */ i(Bn, { color: he, style: { marginLeft: 7 } }), []), te = D(
7041
7047
  (he) => {
7042
7048
  var qe;
7043
7049
  return (qe = p.current) == null ? void 0 : qe[he.id];
@@ -7093,7 +7099,7 @@ function lh(e, t) {
7093
7099
  C,
7094
7100
  ye,
7095
7101
  re
7096
- ]), Te = Y(Q), $e = Y(V), Le = Y(), pt = Y();
7102
+ ]), Te = Y(Q), $e = Y(V), Ne = Y(), pt = Y();
7097
7103
  Gt(() => {
7098
7104
  const he = !Ko(
7099
7105
  Q,
@@ -7103,7 +7109,7 @@ function lh(e, t) {
7103
7109
  }, [Q, V]);
7104
7110
  const xt = D(async () => {
7105
7111
  var he;
7106
- pe([]), Le.current = void 0, await Ve(), (he = g == null ? void 0 : g.current) == null || he.refresh();
7112
+ pe([]), Ne.current = void 0, await Ve(), (he = g == null ? void 0 : g.current) == null || he.refresh();
7107
7113
  }, [pe, Ve]);
7108
7114
  Dt(t, () => ({
7109
7115
  refreshResults: xt,
@@ -7176,19 +7182,19 @@ function lh(e, t) {
7176
7182
  Z
7177
7183
  ]
7178
7184
  ), et = D(
7179
- () => L == null ? void 0 : L(!1),
7180
- [L]
7185
+ () => N == null ? void 0 : N(!1),
7186
+ [N]
7181
7187
  ), ot = D(
7182
7188
  ({ params: he, values: qe }) => {
7183
7189
  var Je;
7184
- pe([]), (Je = g.current) == null || Je.unselectAll(), oe == null || oe(void 0), K == null || K(he), J == null || J(qe), L == null || L(!1);
7190
+ pe([]), (Je = g.current) == null || Je.unselectAll(), oe == null || oe(void 0), K == null || K(he), J == null || J(qe), N == null || N(!1);
7185
7191
  },
7186
7192
  [
7187
7193
  pe,
7188
7194
  oe,
7189
7195
  K,
7190
7196
  J,
7191
- L
7197
+ N
7192
7198
  ]
7193
7199
  );
7194
7200
  return /* @__PURE__ */ P(Sn, { children: [
@@ -7305,9 +7311,9 @@ const Wa = _t(lh), Qi = (e, t = "14px -apple-system") => {
7305
7311
  context: C,
7306
7312
  readonly: F,
7307
7313
  onSelectAllRecords: w
7308
- } = e, T = Y(null), [_, O] = I([]), x = Y(!1), [R, E] = I(), { t: V } = me(), L = Y(r), N = ne(
7314
+ } = e, T = Y(null), [_, O] = I([]), x = Y(!1), [R, E] = I(), { t: V } = me(), N = Y(r), L = ne(
7309
7315
  Ct
7310
- ), { title: B = void 0, setTitle: W = void 0 } = (S ? N : {}) || {}, k = q(() => {
7316
+ ), { title: B = void 0, setTitle: W = void 0 } = (S ? L : {}) || {}, k = q(() => {
7311
7317
  if (R)
7312
7318
  return Or(
7313
7319
  R,
@@ -7330,12 +7336,12 @@ const Wa = _t(lh), Qi = (e, t = "14px -apple-system") => {
7330
7336
  if (!R)
7331
7337
  return;
7332
7338
  x.current = !1;
7333
- const z = Un(R, s);
7339
+ const z = Yn(R, s);
7334
7340
  O(z);
7335
7341
  }, [s]), ae(() => {
7336
- L.current = r;
7342
+ N.current = r;
7337
7343
  }, [r]);
7338
- const K = (n - 1) * L.current + 1, Z = K - 1 + _.length, Q = o === void 0 ? null : o === 0 ? V("no_results") : V("summary").replace("{from}", K == null ? void 0 : K.toString()).replace("{to}", Z == null ? void 0 : Z.toString()).replace("{total}", o == null ? void 0 : o.toString()), J = q(() => {
7344
+ const K = (n - 1) * N.current + 1, Z = K - 1 + _.length, Q = o === void 0 ? null : o === 0 ? V("no_results") : V("summary").replace("{from}", K == null ? void 0 : K.toString()).replace("{to}", Z == null ? void 0 : Z.toString()).replace("{total}", o == null ? void 0 : o.toString()), J = q(() => {
7339
7345
  if (!m || a.isExpandable)
7340
7346
  return null;
7341
7347
  const z = _ == null ? void 0 : _.filter(
@@ -7346,7 +7352,7 @@ const Wa = _t(lh), Qi = (e, t = "14px -apple-system") => {
7346
7352
  Dl,
7347
7353
  {
7348
7354
  total: o,
7349
- pageSize: L.current === 0 ? o : L.current,
7355
+ pageSize: N.current === 0 ? o : N.current,
7350
7356
  current: n,
7351
7357
  showSizeChanger: !1,
7352
7358
  onChange: l
@@ -7405,9 +7411,9 @@ const Wa = _t(lh), Qi = (e, t = "14px -apple-system") => {
7405
7411
  if (p[z.id])
7406
7412
  return { color: p[z.id] };
7407
7413
  },
7408
- onRowStatus: Dd(g) ? (z) => {
7414
+ onRowStatus: Md(g) ? (z) => {
7409
7415
  if (g[z.id])
7410
- return /* @__PURE__ */ i(jn, { color: g[z.id] });
7416
+ return /* @__PURE__ */ i(Bn, { color: g[z.id] });
7411
7417
  } : void 0,
7412
7418
  onRowDoubleClick: u,
7413
7419
  onRowSelectionChange: f,
@@ -7455,7 +7461,7 @@ const Ga = (e) => {
7455
7461
  searchParams: F = [],
7456
7462
  setSearchValues: w,
7457
7463
  clearSelection: T
7458
- } = e, [_, O] = I(!1), [x, R] = I(!1), [E, V] = I(), [L, N] = I(1), [B, W] = I(0), [k, K] = I(), [Z, Q] = I([]), [J, we] = I(void 0), [oe, H] = I(void 0), M = Y(S || $t), z = Y([]), ie = D(
7464
+ } = e, [_, O] = I(!1), [x, R] = I(!1), [E, V] = I(), [N, L] = I(1), [B, W] = I(0), [k, K] = I(), [Z, Q] = I([]), [J, we] = I(void 0), [oe, H] = I(void 0), M = Y(S || $t), z = Y([]), ie = D(
7459
7465
  (re) => {
7460
7466
  y == null || y([...re]), Q([...re]);
7461
7467
  },
@@ -7479,7 +7485,7 @@ const Ga = (e) => {
7479
7485
  context: u,
7480
7486
  attrs: je
7481
7487
  }), se = pe[0];
7482
- z.current = [...se], we(nn(pe[1])), H(Mn(pe[1]));
7488
+ z.current = [...se], we(rn(pe[1])), H(Nn(pe[1]));
7483
7489
  const ke = se.map((Re) => Re.id), Ee = h !== void 0 ? pn({
7484
7490
  resultsToSort: se,
7485
7491
  sorter: h,
@@ -7514,7 +7520,7 @@ const Ga = (e) => {
7514
7520
  context: u,
7515
7521
  attrs: se
7516
7522
  });
7517
- we(nn(Re)), H(Mn(Re)), z.current = [...Ee];
7523
+ we(rn(Re)), H(Nn(Re)), z.current = [...Ee];
7518
7524
  const ve = h !== void 0 ? pn({
7519
7525
  resultsToSort: Ee,
7520
7526
  sorter: h,
@@ -7588,7 +7594,7 @@ const Ga = (e) => {
7588
7594
  ), ye = D(
7589
7595
  (re) => {
7590
7596
  const { params: Ae, searchValues: xe, limit: Ve, offset: je } = re;
7591
- _ || (n == null || n(void 0), r == null || r([]), w == null || w(xe), o == null || o(Ae), a == null || a(!1), R(!0), V(void 0), N(1), Ve && (M.current = Ve, C == null || C(Ve)), je && W(je), ce({
7597
+ _ || (n == null || n(void 0), r == null || r([]), w == null || w(xe), o == null || o(Ae), a == null || a(!1), R(!0), V(void 0), L(1), Ve && (M.current = Ve, C == null || C(Ve)), je && W(je), ce({
7592
7598
  params: Ae,
7593
7599
  newOffset: je
7594
7600
  }));
@@ -7605,11 +7611,11 @@ const Ga = (e) => {
7605
7611
  ]
7606
7612
  ), _e = D(
7607
7613
  (re) => {
7608
- O(!0), N(re), W((re - 1) * S);
7614
+ O(!0), L(re), W((re - 1) * S);
7609
7615
  },
7610
- [O, S, W, N]
7616
+ [O, S, W, L]
7611
7617
  ), Ue = D(() => {
7612
- _ || (n == null || n(void 0), o == null || o([]), w == null || w({}), V(void 0), W(0), N(1), C == null || C(S || $t));
7618
+ _ || (n == null || n(void 0), o == null || o([]), w == null || w({}), V(void 0), W(0), L(1), C == null || C(S || $t));
7613
7619
  }, [
7614
7620
  _,
7615
7621
  n,
@@ -7625,7 +7631,7 @@ const Ga = (e) => {
7625
7631
  fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
7626
7632
  context: u
7627
7633
  });
7628
- return ie([...X(), ...xe]), Un(jt(d), xe);
7634
+ return ie([...X(), ...xe]), Yn(jt(d), xe);
7629
7635
  },
7630
7636
  [d, t, u, X, ie]
7631
7637
  ), Ie = D(async () => await $.getHandler().searchAllIds({
@@ -7641,7 +7647,7 @@ const Ga = (e) => {
7641
7647
  tableRefreshing: _,
7642
7648
  searchFilterLoading: x,
7643
7649
  searchError: E,
7644
- page: L,
7650
+ page: N,
7645
7651
  offset: B,
7646
7652
  limit: M.current,
7647
7653
  getResults: X,
@@ -7668,9 +7674,9 @@ function fh(e, t) {
7668
7674
  rootTree: m = !1,
7669
7675
  parentContext: d = {},
7670
7676
  onChangeSelectedRowKeys: f
7671
- } = e, [h, p] = I(!1), [g, y] = I(!1), v = Y(!1), b = Y(null), [A, S] = I(), [C, F] = I(), [w, T] = I(), [_, O] = I(), [x, R] = I(200), E = Y(), { height: V } = Ar(), L = ne(
7672
- An
7673
- ), { processAction: N } = L || {}, B = ne(
7677
+ } = e, [h, p] = I(!1), [g, y] = I(!1), v = Y(!1), b = Y(null), [A, S] = I(), [C, F] = I(), [w, T] = I(), [_, O] = I(), [x, R] = I(200), E = Y(), { height: V } = Ar(), N = ne(
7678
+ Fn
7679
+ ), { processAction: L } = N || {}, B = ne(
7674
7680
  Ct
7675
7681
  ), {
7676
7682
  setResults: W = void 0,
@@ -7791,7 +7797,7 @@ function fh(e, t) {
7791
7797
  context: d
7792
7798
  }));
7793
7799
  const Ce = E.current[0][2];
7794
- await (N == null ? void 0 : N({
7800
+ await (L == null ? void 0 : L({
7795
7801
  actionData: Ce,
7796
7802
  fields: C.fields,
7797
7803
  values: {
@@ -7801,7 +7807,7 @@ function fh(e, t) {
7801
7807
  context: d
7802
7808
  }));
7803
7809
  },
7804
- [A, d, N, C]
7810
+ [A, d, L, C]
7805
7811
  ), Me = D(
7806
7812
  async (Fe) => {
7807
7813
  const { id: ht } = Fe;
@@ -7824,7 +7830,7 @@ function fh(e, t) {
7824
7830
  ), Te = D(async () => {
7825
7831
  const Fe = await nt();
7826
7832
  J == null || J(Fe.map((ht) => ({ id: ht }))), f == null || f(Fe);
7827
- }, [nt, f, J]), $e = q(() => C != null && C.isExpandable ? V - 160 : V - (x + 240), [V, x, C == null ? void 0 : C.isExpandable]), Le = q(
7833
+ }, [nt, f, J]), $e = q(() => C != null && C.isExpandable ? V - 160 : V - (x + 240), [V, x, C == null ? void 0 : C.isExpandable]), Ne = q(
7828
7834
  () => Q == null ? void 0 : Q.map((Fe) => Fe.id),
7829
7835
  [Q]
7830
7836
  ), pt = D(() => !C || !w ? null : /* @__PURE__ */ P(ee, { children: [
@@ -7864,7 +7870,7 @@ function fh(e, t) {
7864
7870
  scrollY: l || $e,
7865
7871
  colorsForResults: Se,
7866
7872
  statusForResults: Be,
7867
- selectedRowKeys: Le,
7873
+ selectedRowKeys: Ne,
7868
7874
  onRowSelectionChange: Ue,
7869
7875
  sorter: z,
7870
7876
  onChangeSort: Re,
@@ -7897,7 +7903,7 @@ function fh(e, t) {
7897
7903
  ce,
7898
7904
  H,
7899
7905
  Te,
7900
- Le,
7906
+ Ne,
7901
7907
  z,
7902
7908
  Be,
7903
7909
  Ke,
@@ -7941,8 +7947,8 @@ const Ka = _t(fh), mh = 80, ph = (e) => {
7941
7947
  setSearchQuery: R,
7942
7948
  setTotalItems: E,
7943
7949
  isActive: V,
7944
- currentPage: L,
7945
- setCurrentPage: N,
7950
+ currentPage: N,
7951
+ setCurrentPage: L,
7946
7952
  order: B,
7947
7953
  setOrder: W,
7948
7954
  limit: k,
@@ -7952,7 +7958,7 @@ const Ka = _t(fh), mh = 80, ph = (e) => {
7952
7958
  loading: Ue,
7953
7959
  getColumnState: Ke,
7954
7960
  updateColumnState: Ie
7955
- } = No({
7961
+ } = Lo({
7956
7962
  key: ye,
7957
7963
  treeViewFetching: t
7958
7964
  }), re = ko(), [Ae, xe] = Xe(
@@ -8049,7 +8055,7 @@ const Ka = _t(fh), mh = 80, ph = (e) => {
8049
8055
  r,
8050
8056
  n,
8051
8057
  k,
8052
- L,
8058
+ N,
8053
8059
  ke,
8054
8060
  M,
8055
8061
  c,
@@ -8080,7 +8086,7 @@ const Ka = _t(fh), mh = 80, ph = (e) => {
8080
8086
  const et = M ? c : ke, { results: ot, attrsEvaluated: he } = await Ve({
8081
8087
  params: et,
8082
8088
  limit: k,
8083
- offset: ((L || 1) - 1) * k,
8089
+ offset: ((N || 1) - 1) * k,
8084
8090
  model: o,
8085
8091
  fields: r.field_parent ? { ...r.fields, [r.field_parent]: {} } : r.fields,
8086
8092
  context: u,
@@ -8097,12 +8103,12 @@ const Ka = _t(fh), mh = 80, ph = (e) => {
8097
8103
  de.current = [], we(0), E(0), H([]), f(!1);
8098
8104
  return;
8099
8105
  }
8100
- const Je = Un(n, ot), ut = nn(he);
8106
+ const Je = Yn(n, ot), ut = rn(he);
8101
8107
  if (le.current = {
8102
8108
  ...le.current,
8103
8109
  ...ut
8104
8110
  }, !ce.current && n.status && (ce.current = {}), n.status) {
8105
- const at = Mn(he);
8111
+ const at = Nn(he);
8106
8112
  ce.current = {
8107
8113
  ...ce.current,
8108
8114
  ...at
@@ -8119,7 +8125,7 @@ const Ka = _t(fh), mh = 80, ph = (e) => {
8119
8125
  ke,
8120
8126
  Ve,
8121
8127
  k,
8122
- L,
8128
+ N,
8123
8129
  o,
8124
8130
  r,
8125
8131
  u,
@@ -8137,33 +8143,33 @@ const Ka = _t(fh), mh = 80, ph = (e) => {
8137
8143
  y
8138
8144
  ]), $e = D(
8139
8145
  (Ce, He) => {
8140
- y(0), A(void 0), g([]), N(Ce), He && K(He);
8146
+ y(0), A(void 0), g([]), L(Ce), He && K(He);
8141
8147
  },
8142
8148
  [
8143
- N,
8149
+ L,
8144
8150
  K,
8145
8151
  g,
8146
8152
  A,
8147
8153
  y
8148
8154
  ]
8149
- ), Le = D(async () => await pe({
8155
+ ), Ne = D(async () => await pe({
8150
8156
  params: Kt(w, c),
8151
8157
  model: o,
8152
8158
  context: u,
8153
8159
  totalItems: J
8154
8160
  }), [pe, w, c, o, u, J]), pt = D(async () => {
8155
- const Ce = await Le();
8161
+ const Ce = await Ne();
8156
8162
  g == null || g(Ce.map((He) => ({ id: He })));
8157
- }, [Le, g]), xt = q(() => Ee.length === 0 ? "unchecked" : Ee.length === k && k > 0 || Ee.length === J ? "checked" : "indeterminate", [Ee, k, J]), vt = D(() => {
8163
+ }, [Ne, g]), xt = q(() => Ee.length === 0 ? "unchecked" : Ee.length === k && k > 0 || Ee.length === J ? "checked" : "indeterminate", [Ee, k, J]), vt = D(() => {
8158
8164
  var Ce, He;
8159
8165
  xt === "unchecked" ? ((Ce = l.current) == null || Ce.selectAll(), g(oe.map((et) => ({ id: et.id })))) : (g([]), (He = l.current) == null || He.unselectAll());
8160
8166
  }, [l, g, oe, xt]), Fe = D(
8161
8167
  (Ce) => {
8162
- W(Ce), y(0), A(void 0), N(1);
8168
+ W(Ce), y(0), A(void 0), L(1);
8163
8169
  },
8164
8170
  [
8165
8171
  W,
8166
- N,
8172
+ L,
8167
8173
  A,
8168
8174
  y
8169
8175
  ]
@@ -8205,7 +8211,7 @@ const Ka = _t(fh), mh = 80, ph = (e) => {
8205
8211
  getColumnStateInProgress: Ue,
8206
8212
  getColumnState: Ke,
8207
8213
  updateColumnState: Ie,
8208
- currentPage: L,
8214
+ currentPage: N,
8209
8215
  limit: k,
8210
8216
  order: B,
8211
8217
  setOrder: W,
@@ -8394,8 +8400,8 @@ function vh(e, t) {
8394
8400
  refresh: R,
8395
8401
  onRowStatus: E,
8396
8402
  onGetFirstVisibleRowIndex: V,
8397
- setTreeFirstVisibleRow: L,
8398
- onRowHasBeenSelected: N,
8403
+ setTreeFirstVisibleRow: N,
8404
+ onRowHasBeenSelected: L,
8399
8405
  onSearchFilterClear: B,
8400
8406
  onSearchFilterSubmit: W,
8401
8407
  onSideSearchFilterClose: k,
@@ -8451,7 +8457,7 @@ function vh(e, t) {
8451
8457
  getDomain: () => s
8452
8458
  }));
8453
8459
  const xe = q(() => Ae ? /* @__PURE__ */ i(Bo, { aggregates: re, isLoading: Ie }) : null, [re, Ie, Ae]), Ve = D(
8454
- (pe) => /* @__PURE__ */ i(jn, { color: pe, style: { marginLeft: 7 } }),
8460
+ (pe) => /* @__PURE__ */ i(Bn, { color: pe, style: { marginLeft: 7 } }),
8455
8461
  []
8456
8462
  ), je = q(
8457
8463
  () => ({
@@ -8499,10 +8505,10 @@ function vh(e, t) {
8499
8505
  availableHeight: y,
8500
8506
  results: we,
8501
8507
  handleRowDoubleClick: g,
8502
- onRowHasBeenSelected: N,
8508
+ onRowHasBeenSelected: L,
8503
8509
  updateColumnState: le,
8504
8510
  getColumnState: j,
8505
- setTreeFirstVisibleRow: L,
8511
+ setTreeFirstVisibleRow: N,
8506
8512
  onGetFirstVisibleRowIndex: V,
8507
8513
  onGetFirstVisibleColumn: Ue,
8508
8514
  setTreeFirstVisibleColumn: _e,
@@ -8538,7 +8544,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
8538
8544
  } = e, p = Y(t), g = q(() => {
8539
8545
  if (!(s != null && s.arch) || s.isExpandable)
8540
8546
  return "legacy";
8541
- const C = Hs(s.arch, "infinite");
8547
+ const C = Us(s.arch, "infinite");
8542
8548
  return C ? C === "1" ? "infinite" : "paginated" : "legacy";
8543
8549
  }, [s]), { currentView: y, setPreviousView: v, setTreeType: b, setSelectedRowItems: A } = ne(Ct);
8544
8550
  ae(() => {
@@ -8651,7 +8657,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
8651
8657
  initialSearchParams: x,
8652
8658
  initialCurrentPage: R,
8653
8659
  initialOrder: E
8654
- } = e, [V, L] = I(!1), [N, B] = I(!1), [W, k] = I(!1), [K, Z] = I(!0), [Q, J] = I(!0), [we, oe] = I([]), [H, M] = I(!1), [z, ie] = I(
8660
+ } = e, [V, N] = I(!1), [L, B] = I(!1), [W, k] = I(!1), [K, Z] = I(!0), [Q, J] = I(!0), [we, oe] = I([]), [H, M] = I(!1), [z, ie] = I(
8655
8661
  x || []
8656
8662
  ), [X, j] = I(!1), [le, ce] = I(!0), [de, ye] = I(), [_e, Ue] = I(
8657
8663
  Ou(
@@ -8695,8 +8701,8 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
8695
8701
  setCurrentView: o,
8696
8702
  availableViews: a,
8697
8703
  formIsSaving: V,
8698
- setFormIsSaving: L,
8699
- formHasChanges: N,
8704
+ setFormIsSaving: N,
8705
+ formHasChanges: L,
8700
8706
  setFormHasChanges: B,
8701
8707
  formRef: s,
8702
8708
  searchTreeRef: l,
@@ -8934,7 +8940,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
8934
8940
  default:
8935
8941
  return /* @__PURE__ */ i(ee, { children: `Graph ${f.type} not implemented` });
8936
8942
  }
8937
- }, Fn = _t(xh), Th = (e) => {
8943
+ }, _n = _t(xh), Th = (e) => {
8938
8944
  const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: a } = e, [s, l] = I(!1), [c, u] = I(), [m, d] = I(), [f] = Xe(
8939
8945
  $.getHandler().readForView
8940
8946
  ), h = D(async () => {
@@ -9151,8 +9157,8 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9151
9157
  );
9152
9158
  return n.card ? /* @__PURE__ */ i(bo, { children: c }) : c;
9153
9159
  }, Rh = (e) => {
9154
- const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = Kc(), { actionData: a, treeShortcut: s, loading: l, error: c, fetchData: u } = nu(n), m = Gn(
9155
- sn.FEATURE_READFORVIEW
9160
+ const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = Kc(), { actionData: a, treeShortcut: s, loading: l, error: c, fetchData: u } = nu(n), m = In(
9161
+ Qt.FEATURE_READFORVIEW
9156
9162
  ), d = ne(
9157
9163
  Ot
9158
9164
  ), { openShortcut: f } = d || {};
@@ -9160,7 +9166,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9160
9166
  t && u();
9161
9167
  }, [t, o]), c && c.message !== "active_id_not_found")
9162
9168
  return /* @__PURE__ */ i(Ks, { error: c });
9163
- const { id: h, model: p, limit: g, domain: y, context: v, initialView: b, description: A } = a || {}, S = m ? za : Fn, C = A ? /* @__PURE__ */ P(ee, { children: [
9169
+ const { id: h, model: p, limit: g, domain: y, context: v, initialView: b, description: A } = a || {}, S = m ? za : _n, C = A ? /* @__PURE__ */ P(ee, { children: [
9164
9170
  /* @__PURE__ */ i(Et, { title: A, children: /* @__PURE__ */ i(Tn, { className: "pr-1 text-xs" }) }),
9165
9171
  /* @__PURE__ */ i("span", { children: (a == null ? void 0 : a.title) || "" })
9166
9172
  ] }) : /* @__PURE__ */ i("span", { children: (a == null ? void 0 : a.title) || "" });
@@ -9221,7 +9227,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9221
9227
  if (p && (F = [["id", "in", a]]), n.domain) {
9222
9228
  const _ = await $.getHandler().evalDomain({
9223
9229
  domain: n.domain,
9224
- values: on({
9230
+ values: sn({
9225
9231
  fields: y == null ? void 0 : y.getFields(),
9226
9232
  values: y.getPlainValues()
9227
9233
  }),
@@ -9258,7 +9264,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9258
9264
  }, C = (F) => {
9259
9265
  const { label: w, closable: T, onClose: _ } = F, O = (E) => {
9260
9266
  E.preventDefault(), E.stopPropagation();
9261
- }, x = Wn(w), R = Ws(x);
9267
+ }, x = Gn(w), R = Ys(x);
9262
9268
  return /* @__PURE__ */ i(
9263
9269
  Mo,
9264
9270
  {
@@ -9272,7 +9278,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9272
9278
  );
9273
9279
  };
9274
9280
  return c ? /* @__PURE__ */ i(yt, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(ee, { children: /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(
9275
- rn,
9281
+ on,
9276
9282
  {
9277
9283
  mode: "multiple",
9278
9284
  value: s.length ? a : [],
@@ -9288,7 +9294,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9288
9294
  }, Vh = (e) => {
9289
9295
  switch (e) {
9290
9296
  case "form":
9291
- return _n;
9297
+ return On;
9292
9298
  case "tree":
9293
9299
  return Qn;
9294
9300
  case "notebook":
@@ -9306,7 +9312,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9306
9312
  case "buttonGroup":
9307
9313
  return rd;
9308
9314
  case "selection":
9309
- return Ls;
9315
+ return Ns;
9310
9316
  case "many2one":
9311
9317
  return Zh;
9312
9318
  case "boolean":
@@ -9344,7 +9350,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9344
9350
  case "fiber_grid":
9345
9351
  return _d;
9346
9352
  case "timeline":
9347
- return qd;
9353
+ return eu;
9348
9354
  case "indicator":
9349
9355
  return _h;
9350
9356
  case "tags":
@@ -9362,10 +9368,10 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9362
9368
  case "steps":
9363
9369
  return ky;
9364
9370
  case "arrow_steps":
9365
- return Ly;
9371
+ return Ny;
9366
9372
  case "codeeditor":
9367
9373
  case "json":
9368
- return Ny;
9374
+ return Ly;
9369
9375
  case "comments_timeline":
9370
9376
  return Ky;
9371
9377
  case "html_preview":
@@ -9408,10 +9414,10 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9408
9414
  r.push(new Cn({ string: "" }));
9409
9415
  }
9410
9416
  }), r;
9411
- }, Lh = ({
9417
+ }, Nh = ({
9412
9418
  row: e,
9413
9419
  numberOfColumns: t
9414
- }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), Nh = (e, t) => {
9420
+ }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), Lh = (e, t) => {
9415
9421
  const n = e.map((r) => r instanceof Cn && r.fieldForLabel || r instanceof jl ? "auto" : "1fr");
9416
9422
  if (n.length < t) {
9417
9423
  const r = t - n.length;
@@ -9432,7 +9438,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9432
9438
  a < o && (o = a);
9433
9439
  let s = !1, l = [];
9434
9440
  const c = r.map((d, f) => {
9435
- const h = d.filter((y) => !y.invisible), p = Lh({
9441
+ const h = d.filter((y) => !y.invisible), p = Nh({
9436
9442
  row: h,
9437
9443
  numberOfColumns: o
9438
9444
  });
@@ -9455,7 +9461,7 @@ const bh = _t(vh), pr = "legacy", wh = (e) => {
9455
9461
  },
9456
9462
  y.key
9457
9463
  )));
9458
- }), u = r.length === 1 ? Nh(l, o) : jh(o, s);
9464
+ }), u = r.length === 1 ? Lh(l, o) : jh(o, s);
9459
9465
  return /* @__PURE__ */ i("div", { style: {
9460
9466
  display: "grid",
9461
9467
  gridTemplateColumns: n ? "auto" : u,
@@ -9576,7 +9582,7 @@ function Jh(e, t) {
9576
9582
  forcedValues: F = {},
9577
9583
  parentWidth: w,
9578
9584
  onMustRefreshParent: T
9579
- } = e, { t: _ } = me(), [O, x] = I(!1), [R, E] = I(), [V, L] = I(), [N] = Rt.useForm(), [B, W] = I(), [k, K] = I(), Z = ne(Qa), [Q, J] = I(), [we, oe] = I(!1), H = Y(), M = Y({}), z = Y({}), ie = Y(!1), X = Y(!1), j = Y(!1), ce = (w !== void 0 ? w : Q) < zh, de = ne(Ge), { activeId: ye, getPlainValues: _e } = de || {}, Ue = Y(!1), Ke = ne(
9585
+ } = e, { t: _ } = me(), [O, x] = I(!1), [R, E] = I(), [V, N] = I(), [L] = Rt.useForm(), [B, W] = I(), [k, K] = I(), Z = ne(Qa), [Q, J] = I(), [we, oe] = I(!1), H = Y(), M = Y({}), z = Y({}), ie = Y(!1), X = Y(!1), j = Y(!1), ce = (w !== void 0 ? w : Q) < zh, de = ne(Ge), { activeId: ye, getPlainValues: _e } = de || {}, Ue = Y(!1), Ke = ne(
9580
9586
  Ct
9581
9587
  ), {
9582
9588
  setFormIsSaving: Ie = void 0,
@@ -9588,7 +9594,7 @@ function Jh(e, t) {
9588
9594
  setTitle: pe = void 0,
9589
9595
  isActive: se = void 0
9590
9596
  } = (S ? Ke : {}) || {}, ke = ne(
9591
- An
9597
+ Fn
9592
9598
  ), { processAction: Ee, globalValues: Re } = ke || {};
9593
9599
  Dt(t, () => ({
9594
9600
  submitForm: Ht,
@@ -9599,15 +9605,15 @@ function Jh(e, t) {
9599
9605
  fetchValues: ot,
9600
9606
  cancelUnsavedChanges: he,
9601
9607
  clearAndReload: () => {
9602
- H.current = void 0, L(void 0), et();
9608
+ H.current = void 0, N(void 0), et();
9603
9609
  }
9604
9610
  })), ae(() => {
9605
9611
  if (E(void 0), !(!n && !p)) {
9606
9612
  if (!A) {
9607
- H.current = void 0, L(void 0);
9613
+ H.current = void 0, N(void 0);
9608
9614
  return;
9609
9615
  }
9610
- (r === void 0 && k || r !== void 0 && k && r < 0) && (H.current = void 0, L(void 0)), et();
9616
+ (r === void 0 && k || r !== void 0 && k && r < 0) && (H.current = void 0, N(void 0)), et();
9611
9617
  }
9612
9618
  }, [r, n, h, p, A]), ae(() => {
9613
9619
  we && (ln({
@@ -9655,7 +9661,7 @@ function Jh(e, t) {
9655
9661
  function $e() {
9656
9662
  return { ...v, ...V == null ? void 0 : V.context };
9657
9663
  }
9658
- function Le() {
9664
+ function Ne() {
9659
9665
  return be() ? { active_id: be(), active_ids: [be()] } : {};
9660
9666
  }
9661
9667
  const pt = D(() => ({
@@ -9680,25 +9686,25 @@ function Jh(e, t) {
9680
9686
  })
9681
9687
  ).length !== 0, Fe = D(
9682
9688
  (U) => {
9683
- const G = N.getFieldsValue(!0);
9689
+ const G = L.getFieldsValue(!0);
9684
9690
  return un(G, U);
9685
9691
  },
9686
- [N]
9692
+ [L]
9687
9693
  ), ht = (U, G) => {
9688
9694
  Je({
9689
9695
  values: {
9690
- ...un(N.getFieldsValue(!0), k),
9696
+ ...un(L.getFieldsValue(!0), k),
9691
9697
  [U]: G
9692
9698
  },
9693
9699
  fields: k,
9694
9700
  reset: !1
9695
9701
  });
9696
- }, Ce = (U) => N.getFieldsValue(!0)[U];
9702
+ }, Ce = (U) => L.getFieldsValue(!0)[U];
9697
9703
  async function He() {
9698
9704
  try {
9699
- return await N.validateFields(), !1;
9705
+ return await L.validateFields(), !1;
9700
9706
  } catch {
9701
- return Dn.error(_("fillRequiredFields")), !0;
9707
+ return En.error(_("fillRequiredFields")), !0;
9702
9708
  }
9703
9709
  }
9704
9710
  const et = async () => {
@@ -9719,14 +9725,14 @@ function Jh(e, t) {
9719
9725
  xe == null || xe(!0), E(void 0), U != null && U.fields ? (fe = U.fields, ge = U.arch) : (fe = k, ge = B), h && (U == null ? void 0 : U.forceRefresh) !== !0 ? G = h : { values: G, defaultGetCalled: De } = await ut({
9720
9726
  fields: fe,
9721
9727
  arch: ge
9722
- }), b && (G = { ...Ud(b), ...G }), M.current = un(G, fe), Je({
9728
+ }), b && (G = { ...zd(b), ...G }), M.current = un(G, fe), Je({
9723
9729
  values: G,
9724
9730
  fields: fe,
9725
9731
  reset: !0,
9726
9732
  isDefaultGet: De
9727
9733
  }), Vt({ fields: fe, arch: ge, values: G }), xe == null || xe(!1), re == null || re(!1), De && oe(!0);
9728
9734
  }, he = async () => new Promise(async (U) => {
9729
- vt() ? In({
9735
+ vt() ? An({
9730
9736
  t: _,
9731
9737
  onOk: () => {
9732
9738
  Se == null || Se(), U(!0);
@@ -9755,14 +9761,14 @@ function Jh(e, t) {
9755
9761
  reset: fe,
9756
9762
  isDefaultGet: ge = !1
9757
9763
  }) => {
9758
- const lt = { ...fe ? {} : N.getFieldsValue(!0), ...U }, Nr = un(lt, G), Sl = Object.keys(G).map((jr) => ({
9764
+ const lt = { ...fe ? {} : L.getFieldsValue(!0), ...U }, Lr = un(lt, G), Sl = Object.keys(G).map((jr) => ({
9759
9765
  name: jr,
9760
9766
  touched: !1,
9761
- value: Nr[jr] !== void 0 ? Nr[jr] : void 0
9767
+ value: Lr[jr] !== void 0 ? Lr[jr] : void 0
9762
9768
  }));
9763
- ge || (z.current = Nr), N.setFields(Sl);
9769
+ ge || (z.current = Lr), L.setFields(Sl);
9764
9770
  },
9765
- [N]
9771
+ [L]
9766
9772
  ), ut = async ({
9767
9773
  fields: U,
9768
9774
  arch: G
@@ -9847,9 +9853,9 @@ function Jh(e, t) {
9847
9853
  return X.current = !1, Zi(_), { succeed: !1, id: be() };
9848
9854
  x(!0), Ie == null || Ie(!0);
9849
9855
  try {
9850
- f === "api" ? await at(U) : await Zn(U), d && (H.current = void 0, Je({ values: {}, fields: k, reset: !0 })), await ot({ forceRefresh: !0 }), G = !0, Dn.success(_("savedRegisters"));
9856
+ f === "api" ? await at(U) : await Zn(U), d && (H.current = void 0, Je({ values: {}, fields: k, reset: !0 })), await ot({ forceRefresh: !0 }), G = !0, En.success(_("savedRegisters"));
9851
9857
  } catch (ge) {
9852
- X.current = !1, x(!1), Ie == null || Ie(!1), Be == null || Be(ge), Dn.error(_("errorWhileSavingForm")), E(ge != null && ge.message ? ge.message : ge);
9858
+ X.current = !1, x(!1), Ie == null || Ie(!1), Be == null || Be(ge), En.error(_("errorWhileSavingForm")), E(ge != null && ge.message ? ge.message : ge);
9853
9859
  } finally {
9854
9860
  X.current = !1, Ie == null || Ie(!1), x(!1);
9855
9861
  }
@@ -9864,7 +9870,7 @@ function Jh(e, t) {
9864
9870
  const De = new gs(U);
9865
9871
  return De.parse(G, {
9866
9872
  readOnly: m || ge,
9867
- values: Ed(
9873
+ values: Nd(
9868
9874
  {
9869
9875
  ...fe,
9870
9876
  ...pt()
@@ -9888,7 +9894,7 @@ function Jh(e, t) {
9888
9894
  values: fe,
9889
9895
  operationInProgress: ge
9890
9896
  });
9891
- L(De), De.string && De.string !== je && (pe == null || pe(De.string)), Z && De.string && ((lt = Z.setTitle) == null || lt.call(Z, De.string));
9897
+ N(De), De.string && De.string !== je && (pe == null || pe(De.string)), Z && De.string && ((lt = Z.setTitle) == null || lt.call(Z, De.string));
9892
9898
  },
9893
9899
  [Z, an, pe, je]
9894
9900
  ), ln = async ({
@@ -9901,7 +9907,7 @@ function Jh(e, t) {
9901
9907
  target: Fe(k),
9902
9908
  fields: k
9903
9909
  }), fe = Object.keys(G);
9904
- if (fe.length !== 0 && !(Bd({
9910
+ if (fe.length !== 0 && !(Kd({
9905
9911
  changedFields: fe,
9906
9912
  formOoui: V,
9907
9913
  types: [
@@ -9916,7 +9922,7 @@ function Jh(e, t) {
9916
9922
  "many2one"
9917
9923
  ]
9918
9924
  }) && U !== !0)) {
9919
- const ge = un(N.getFieldsValue(!0), k);
9925
+ const ge = un(L.getFieldsValue(!0), k);
9920
9926
  z.current = ge, c == null || c(ge), re == null || re(!0), bt(fe);
9921
9927
  }
9922
9928
  }, $r = Cc(ln, 100), bt = async (U) => {
@@ -9938,7 +9944,7 @@ function Jh(e, t) {
9938
9944
  });
9939
9945
  return;
9940
9946
  }
9941
- const fe = Wd({
9947
+ const fe = Jd({
9942
9948
  values: {
9943
9949
  ...Fe(k),
9944
9950
  context: {
@@ -9959,7 +9965,7 @@ function Jh(e, t) {
9959
9965
  const De = {
9960
9966
  ...Fe(k),
9961
9967
  ...ge.value
9962
- }, lt = Pd({
9968
+ }, lt = Ld({
9963
9969
  values: De,
9964
9970
  fields: k
9965
9971
  });
@@ -9980,7 +9986,7 @@ function Jh(e, t) {
9980
9986
  });
9981
9987
  }
9982
9988
  if (ge.domain && Object.keys(ge.domain).length > 0) {
9983
- const De = Hd({
9989
+ const De = qd({
9984
9990
  fieldsDomain: ge.domain,
9985
9991
  fields: k
9986
9992
  });
@@ -10063,7 +10069,7 @@ function Jh(e, t) {
10063
10069
  function gl() {
10064
10070
  ln({ elementHasLostFocus: !0 });
10065
10071
  }
10066
- function Lr(U) {
10072
+ function Nr(U) {
10067
10073
  Vt({
10068
10074
  fields: k,
10069
10075
  arch: B,
@@ -10111,11 +10117,11 @@ function Jh(e, t) {
10111
10117
  }
10112
10118
  let ge = !1;
10113
10119
  try {
10114
- !m && (vt() || be() === void 0) && (ge = !0, Lr(!0), f === "2many" ? (await at({ callOnSubmitSucceed: !1 }), j.current = !0) : await Ht({ callOnSubmitSucceed: !1 }));
10115
- const De = j.current ? Le() : {}, lt = { ...fe, ...De };
10116
- U === "object" ? await Mr({ action: G, context: lt }) : U === "workflow" ? await Ut({ action: G }) : U === "action" && await hl({ action: G, context: lt }), ge && Lr(!1);
10120
+ !m && (vt() || be() === void 0) && (ge = !0, Nr(!0), f === "2many" ? (await at({ callOnSubmitSucceed: !1 }), j.current = !0) : await Ht({ callOnSubmitSucceed: !1 }));
10121
+ const De = j.current ? Ne() : {}, lt = { ...fe, ...De };
10122
+ U === "object" ? await Mr({ action: G, context: lt }) : U === "workflow" ? await Ut({ action: G }) : U === "action" && await hl({ action: G, context: lt }), ge && Nr(!1);
10117
10123
  } catch (De) {
10118
- ge && Lr(!1), wt(De);
10124
+ ge && Nr(!1), wt(De);
10119
10125
  }
10120
10126
  }
10121
10127
  const bl = () => !V && !R ? /* @__PURE__ */ i(Qe, {}) : !n && !p || !A ? null : /* @__PURE__ */ i(ee, { children: /* @__PURE__ */ i(
@@ -10139,7 +10145,7 @@ function Jh(e, t) {
10139
10145
  children: /* @__PURE__ */ i(
10140
10146
  Rt,
10141
10147
  {
10142
- form: N,
10148
+ form: L,
10143
10149
  onFieldsChange: () => {
10144
10150
  $r({ elementHasLostFocus: !1 });
10145
10151
  },
@@ -10173,7 +10179,7 @@ function Jh(e, t) {
10173
10179
  {
10174
10180
  disabled: O || m,
10175
10181
  loading: O,
10176
- icon: /* @__PURE__ */ i(Bn, {}),
10182
+ icon: /* @__PURE__ */ i(Hn, {}),
10177
10183
  onClick: async () => {
10178
10184
  await Ht();
10179
10185
  },
@@ -10199,7 +10205,7 @@ function Jh(e, t) {
10199
10205
  }
10200
10206
  ) : null;
10201
10207
  }
10202
- const _n = _t(Jh), On = (e) => {
10208
+ const On = _t(Jh), Rn = (e) => {
10203
10209
  const {
10204
10210
  visible: t,
10205
10211
  id: n,
@@ -10265,7 +10271,7 @@ const _n = _t(Jh), On = (e) => {
10265
10271
  onCancel: a,
10266
10272
  maskClosable: !1,
10267
10273
  children: /* @__PURE__ */ i(
10268
- _n,
10274
+ On,
10269
10275
  {
10270
10276
  id: n,
10271
10277
  showFooter: !0,
@@ -10297,7 +10303,7 @@ const _n = _t(Jh), On = (e) => {
10297
10303
  treeViewProps: void 0,
10298
10304
  context: s,
10299
10305
  enabled: e
10300
- }), A = q(() => y != null && y.arch ? Hs(y.arch, "infinite") === "1" : !1, [y == null ? void 0 : y.arch]), S = D(
10306
+ }), A = q(() => y != null && y.arch ? Us(y.arch, "infinite") === "1" : !1, [y == null ? void 0 : y.arch]), S = D(
10301
10307
  async (R) => {
10302
10308
  f(!0);
10303
10309
  try {
@@ -10379,7 +10385,7 @@ const _n = _t(Jh), On = (e) => {
10379
10385
  We,
10380
10386
  {
10381
10387
  disabled: d,
10382
- icon: d ? /* @__PURE__ */ i(Pt, {}) : /* @__PURE__ */ i(Bn, {}),
10388
+ icon: d ? /* @__PURE__ */ i(Pt, {}) : /* @__PURE__ */ i(Hn, {}),
10383
10389
  onClick: w,
10384
10390
  type: "primary",
10385
10391
  children: g("ok")
@@ -10391,7 +10397,7 @@ const _n = _t(Jh), On = (e) => {
10391
10397
  }
10392
10398
  ),
10393
10399
  /* @__PURE__ */ i(
10394
- On,
10400
+ Rn,
10395
10401
  {
10396
10402
  model: r,
10397
10403
  visible: l,
@@ -10419,11 +10425,11 @@ const _n = _t(Jh), On = (e) => {
10419
10425
  context: l,
10420
10426
  id: c,
10421
10427
  domain: u
10422
- } = r, m = o && !s ? { backgroundColor: Xa.colorPrimaryBg } : void 0, [d, f] = I(!1), [h, p] = I(!1), [g, y] = I(!1), [v, b] = I(), A = Y(!1), [S, C] = I(""), F = Y(), w = ne(Ge), { domain: T, getValues: _, getFields: O, getContext: x, elementHasLostFocus: R } = w || {}, E = Y([]), [V, L] = I([]), N = t && t[0] || void 0, B = t && t[1] || "";
10428
+ } = r, m = o && !s ? { backgroundColor: Xa.colorPrimaryBg } : void 0, [d, f] = I(!1), [h, p] = I(!1), [g, y] = I(!1), [v, b] = I(), A = Y(!1), [S, C] = I(""), F = Y(), w = ne(Ge), { domain: T, getValues: _, getFields: O, getContext: x, elementHasLostFocus: R } = w || {}, E = Y([]), [V, N] = I([]), L = t && t[0] || void 0, B = t && t[1] || "";
10423
10429
  ae(() => {
10424
10430
  !Array.isArray(t) && t && Q(t);
10425
10431
  }, [t]), ae(() => {
10426
- N && B.length === 0 ? Q(N) : N && B.length > 0 ? C(B) : !N && !B && C(F.current || "");
10432
+ L && B.length === 0 ? Q(L) : L && B.length > 0 ? C(B) : !L && !B && C(F.current || "");
10427
10433
  }, [t]);
10428
10434
  const W = (H) => {
10429
10435
  n == null || n(H), R == null || R();
@@ -10484,7 +10490,7 @@ const _n = _t(Jh), On = (e) => {
10484
10490
  async function J() {
10485
10491
  u && (E.current = await $.getHandler().evalDomain({
10486
10492
  domain: u,
10487
- values: on({
10493
+ values: sn({
10488
10494
  fields: O(),
10489
10495
  values: _()
10490
10496
  }),
@@ -10495,10 +10501,10 @@ const _n = _t(Jh), On = (e) => {
10495
10501
  domain: T,
10496
10502
  widgetFieldName: c
10497
10503
  })
10498
- )), L(E.current);
10504
+ )), N(E.current);
10499
10505
  }
10500
10506
  async function we(H) {
10501
- H.keyCode === 13 ? (H.preventDefault(), H.stopPropagation(), await K()) : H.code === "Backspace" && N !== void 0 && (H.preventDefault(), H.stopPropagation(), W([void 0, ""]));
10507
+ H.keyCode === 13 ? (H.preventDefault(), H.stopPropagation(), await K()) : H.code === "Backspace" && L !== void 0 && (H.preventDefault(), H.stopPropagation(), W([void 0, ""]));
10502
10508
  }
10503
10509
  return /* @__PURE__ */ P(Ye, { gutter: 8, wrap: !1, children: [
10504
10510
  /* @__PURE__ */ i(Oe, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ i(
@@ -10518,7 +10524,7 @@ const _n = _t(Jh), On = (e) => {
10518
10524
  suffix: /* @__PURE__ */ i(
10519
10525
  Er,
10520
10526
  {
10521
- id: N,
10527
+ id: L,
10522
10528
  model: a,
10523
10529
  context: { ...x == null ? void 0 : x(), ...l }
10524
10530
  }
@@ -10529,7 +10535,7 @@ const _n = _t(Jh), On = (e) => {
10529
10535
  We,
10530
10536
  {
10531
10537
  icon: /* @__PURE__ */ i(Co, {}),
10532
- disabled: N === void 0 || B === "" || S === void 0,
10538
+ disabled: L === void 0 || B === "" || S === void 0,
10533
10539
  onClick: () => {
10534
10540
  p(!0);
10535
10541
  },
@@ -10556,7 +10562,7 @@ const _n = _t(Jh), On = (e) => {
10556
10562
  domain: V,
10557
10563
  context: { ...x == null ? void 0 : x(), ...l },
10558
10564
  visible: d,
10559
- nameSearch: N ? void 0 : v,
10565
+ nameSearch: L ? void 0 : v,
10560
10566
  onSelectValues: async (H) => {
10561
10567
  f(!1), Q(H[0]), A.current = !1, F.current = void 0;
10562
10568
  },
@@ -10566,7 +10572,7 @@ const _n = _t(Jh), On = (e) => {
10566
10572
  }
10567
10573
  ),
10568
10574
  /* @__PURE__ */ i(
10569
- On,
10575
+ Rn,
10570
10576
  {
10571
10577
  model: a,
10572
10578
  parentContext: { ...x == null ? void 0 : x(), ...l },
@@ -10587,7 +10593,7 @@ const _n = _t(Jh), On = (e) => {
10587
10593
  .ant-input {
10588
10594
  background-color: ${Xa.colorPrimaryBg};
10589
10595
  }
10590
- `, Rn = At.createContext(
10596
+ `, Dn = At.createContext(
10591
10597
  null
10592
10598
  ), tg = ({
10593
10599
  children: e,
@@ -10595,7 +10601,7 @@ const _n = _t(Jh), On = (e) => {
10595
10601
  }) => {
10596
10602
  const [n, r] = I(t), [o, a] = I(0), [s, l] = I(!1);
10597
10603
  return /* @__PURE__ */ i(
10598
- Rn.Provider,
10604
+ Dn.Provider,
10599
10605
  {
10600
10606
  value: {
10601
10607
  currentView: n,
@@ -10705,7 +10711,7 @@ const _n = _t(Jh), On = (e) => {
10705
10711
  onRefreshParentValues: r
10706
10712
  }) => {
10707
10713
  const { t: o } = me(), a = ne(
10708
- An
10714
+ Fn
10709
10715
  ), s = ne(
10710
10716
  Ot
10711
10717
  ), { processAction: l } = a || {}, { openRelate: c } = s || {}, u = D(async () => {
@@ -10806,7 +10812,7 @@ const _n = _t(Jh), On = (e) => {
10806
10812
  };
10807
10813
  }, { useToken: og } = ze;
10808
10814
  function ig(e) {
10809
- var L, N, B, W;
10815
+ var N, L, B, W;
10810
10816
  const {
10811
10817
  title: t,
10812
10818
  readOnly: n,
@@ -10835,7 +10841,7 @@ function ig(e) {
10835
10841
  onItemDuplicated: () => {
10836
10842
  S == null || S();
10837
10843
  },
10838
- context: s === "tree" ? b : (L = A == null ? void 0 : A.current) == null ? void 0 : L.getContext()
10844
+ context: s === "tree" ? b : (N = A == null ? void 0 : A.current) == null ? void 0 : N.getContext()
10839
10845
  }), { actionButtonProps: O, printButtonProps: x, relateButtonProps: R } = rl({
10840
10846
  toolbar: v,
10841
10847
  mustDisableButtons: n,
@@ -10908,7 +10914,7 @@ function ig(e) {
10908
10914
  /* @__PURE__ */ i(
10909
10915
  dt,
10910
10916
  {
10911
- icon: /* @__PURE__ */ i(Hn, {}),
10917
+ icon: /* @__PURE__ */ i(Un, {}),
10912
10918
  tooltip: w("duplicate"),
10913
10919
  disabled: n || T || s === "tree" && p.length !== 1 || s === "form" && (C === void 0 || C < 0),
10914
10920
  loading: T,
@@ -10941,10 +10947,10 @@ function ig(e) {
10941
10947
  )
10942
10948
  ] }),
10943
10949
  v && /* @__PURE__ */ P(ee, { children: [
10944
- ((N = v.action) == null ? void 0 : N.length) > 0 && /* @__PURE__ */ P(ee, { children: [
10950
+ ((L = v.action) == null ? void 0 : L.length) > 0 && /* @__PURE__ */ P(ee, { children: [
10945
10951
  /* @__PURE__ */ i(kt, {}),
10946
10952
  /* @__PURE__ */ i(
10947
- Nt,
10953
+ Lt,
10948
10954
  {
10949
10955
  icon: /* @__PURE__ */ i(Sr, {}),
10950
10956
  ...s === "form" ? O : E
@@ -10954,7 +10960,7 @@ function ig(e) {
10954
10960
  ((B = v.print) == null ? void 0 : B.length) > 0 && /* @__PURE__ */ P(ee, { children: [
10955
10961
  /* @__PURE__ */ i(kt, {}),
10956
10962
  /* @__PURE__ */ i(
10957
- Nt,
10963
+ Lt,
10958
10964
  {
10959
10965
  icon: /* @__PURE__ */ i(Cr, {}),
10960
10966
  ...s === "form" ? x : V
@@ -10964,7 +10970,7 @@ function ig(e) {
10964
10970
  s === "form" && ((W = v.relate) == null ? void 0 : W.length) > 0 && /* @__PURE__ */ P(ee, { children: [
10965
10971
  /* @__PURE__ */ i(kt, {}),
10966
10972
  /* @__PURE__ */ i(
10967
- Nt,
10973
+ Lt,
10968
10974
  {
10969
10975
  icon: /* @__PURE__ */ i(xr, {}),
10970
10976
  ...R
@@ -11052,7 +11058,7 @@ const al = Ze(
11052
11058
  onDelete: a
11053
11059
  }) => {
11054
11060
  const { t: s } = me();
11055
- return /* @__PURE__ */ i(jn, { count: o.length, children: /* @__PURE__ */ i(
11061
+ return /* @__PURE__ */ i(Bn, { count: o.length, children: /* @__PURE__ */ i(
11056
11062
  dt,
11057
11063
  {
11058
11064
  tooltip: s(e ? "unlink" : "delete"),
@@ -11069,7 +11075,7 @@ al.displayName = "DeleteButton";
11069
11075
  const ll = Ze(ig), sg = {
11070
11076
  form: gs,
11071
11077
  tree: us,
11072
- graph: Fn
11078
+ graph: _n
11073
11079
  };
11074
11080
  function ag(e) {
11075
11081
  const t = e.map((r) => r.id);
@@ -11081,7 +11087,7 @@ function ag(e) {
11081
11087
  const lg = (e) => {
11082
11088
  var nt, it, It;
11083
11089
  const { value: t, onChange: n, ooui: r, views: o } = e, { items: a = [] } = t || {}, { currentView: s, setCurrentView: l, itemIndex: c, setItemIndex: u } = ne(
11084
- Rn
11090
+ Dn
11085
11091
  ), m = ne(Ge), {
11086
11092
  activeId: d,
11087
11093
  getFields: f,
@@ -11089,7 +11095,7 @@ const lg = (e) => {
11089
11095
  getContext: p,
11090
11096
  domain: g,
11091
11097
  fetchValues: y
11092
- } = m || {}, { t: v } = me(), [b, A] = I(!1), [S, C] = I(!1), [F, w] = I(), [T, _] = I(!1), [O, x] = I(!1), [R, E] = I(), [V, L] = I([]), [N, B] = I(!1), W = Y([]), [k, K] = I(), Z = Y(), [Q, J] = I(void 0), we = Y(), {
11098
+ } = m || {}, { t: v } = me(), [b, A] = I(!1), [S, C] = I(!1), [F, w] = I(), [T, _] = I(!1), [O, x] = I(!1), [R, E] = I(), [V, N] = I([]), [L, B] = I(!1), W = Y([]), [k, K] = I(), Z = Y(), [Q, J] = I(void 0), we = Y(), {
11093
11099
  readOnly: oe,
11094
11100
  relation: H,
11095
11101
  context: M,
@@ -11122,7 +11128,7 @@ const lg = (e) => {
11122
11128
  var ue, Me, Te;
11123
11129
  C(!0), A(!1), w(void 0);
11124
11130
  try {
11125
- const [$e, Le] = await Do({
11131
+ const [$e, Ne] = await Do({
11126
11132
  treeView: {
11127
11133
  arch: (ue = o.get("tree")) == null ? void 0 : ue.arch,
11128
11134
  fields: (Me = o.get("tree")) == null ? void 0 : Me.fields
@@ -11135,7 +11141,7 @@ const lg = (e) => {
11135
11141
  context: { ...p == null ? void 0 : p(), ...M },
11136
11142
  currentView: te || s
11137
11143
  });
11138
- return Z.current || (Z.current = $e.map((pt) => pt.id)), (s || te) === "tree" && Le && J(Le), de($e), $e;
11144
+ return Z.current || (Z.current = $e.map((pt) => pt.id)), (s || te) === "tree" && Ne && J(Ne), de($e), $e;
11139
11145
  } catch ($e) {
11140
11146
  w($e);
11141
11147
  } finally {
@@ -11145,7 +11151,7 @@ const lg = (e) => {
11145
11151
  async function Ue() {
11146
11152
  z && (W.current = await $.getHandler().evalDomain({
11147
11153
  domain: z,
11148
- values: on({
11154
+ values: sn({
11149
11155
  fields: f(),
11150
11156
  values: h()
11151
11157
  }),
@@ -11191,7 +11197,7 @@ const lg = (e) => {
11191
11197
  } : $e);
11192
11198
  de(Te);
11193
11199
  }, xe = (te) => {
11194
- b ? In({
11200
+ b ? An({
11195
11201
  t: v,
11196
11202
  onOk: () => {
11197
11203
  Ae(), te(), A(!1);
@@ -11263,22 +11269,22 @@ const lg = (e) => {
11263
11269
  treeValues: { ...Me, id: te }
11264
11270
  });
11265
11271
  else if (te)
11266
- $e = a.map((Le) => Le.id === te ? {
11272
+ $e = a.map((Ne) => Ne.id === te ? {
11267
11273
  id: te,
11268
11274
  operation: te > 0 ? "pendingUpdate" : "pendingCreate",
11269
11275
  values: { ...Me, id: te },
11270
11276
  treeValues: { ...Me, id: te }
11271
- } : Le);
11277
+ } : Ne);
11272
11278
  else {
11273
- const Le = Us(a);
11279
+ const Ne = Ws(a);
11274
11280
  $e = a.concat({
11275
- id: Le,
11281
+ id: Ne,
11276
11282
  operation: "pendingCreate",
11277
- values: { ...Me, id: Le },
11278
- treeValues: { ...Me, id: Le }
11283
+ values: { ...Me, id: Ne },
11284
+ treeValues: { ...Me, id: Ne }
11279
11285
  });
11280
11286
  }
11281
- de($e), N || _(!1);
11287
+ de($e), L || _(!1);
11282
11288
  }, Re = async (te) => {
11283
11289
  const { id: ue } = te;
11284
11290
  let Me = a;
@@ -11294,7 +11300,7 @@ const lg = (e) => {
11294
11300
  ids: [Te],
11295
11301
  fields: o.get("form").fields,
11296
11302
  context: { ...p == null ? void 0 : p(), ...M }
11297
- }))[0], Le = (await $.getHandler().readObjects({
11303
+ }))[0], Ne = (await $.getHandler().readObjects({
11298
11304
  model: H,
11299
11305
  ids: [Te],
11300
11306
  fields: o.get("tree").fields,
@@ -11304,7 +11310,7 @@ const lg = (e) => {
11304
11310
  id: Te,
11305
11311
  operation: "pendingLink",
11306
11312
  values: $e,
11307
- treeValues: Le
11313
+ treeValues: Ne
11308
11314
  });
11309
11315
  }
11310
11316
  de(ue);
@@ -11326,8 +11332,8 @@ const lg = (e) => {
11326
11332
  const Be = () => {
11327
11333
  var ue, Me, Te, $e;
11328
11334
  if (s === "form")
11329
- return j.length === 0 ? v("noCurrentEntries") : s !== le.current && a.some((Le) => !Le.values) ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ i(
11330
- _n,
11335
+ return j.length === 0 ? v("noCurrentEntries") : s !== le.current && a.some((Ne) => !Ne.values) ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ i(
11336
+ On,
11331
11337
  {
11332
11338
  ref: we,
11333
11339
  formView: o.get("form"),
@@ -11336,13 +11342,13 @@ const lg = (e) => {
11336
11342
  model: H,
11337
11343
  id: (Me = j[c]) == null ? void 0 : Me.id,
11338
11344
  submitMode: "values",
11339
- onFieldsChange: (Le) => {
11345
+ onFieldsChange: (Ne) => {
11340
11346
  var vt;
11341
11347
  const pt = (vt = j[c]) == null ? void 0 : vt.id, xt = a.map((Fe) => Fe.id === pt ? {
11342
11348
  ...Fe,
11343
11349
  operation: Fe.operation === "original" ? "pendingUpdate" : Fe.operation,
11344
- values: { ...Le, id: pt },
11345
- treeValues: { ...Le, id: pt }
11350
+ values: { ...Ne, id: pt },
11351
+ treeValues: { ...Ne, id: pt }
11346
11352
  } : Fe);
11347
11353
  de(xt), A(!0);
11348
11354
  },
@@ -11350,14 +11356,14 @@ const lg = (e) => {
11350
11356
  }
11351
11357
  );
11352
11358
  let te = [];
11353
- if (j.some((Le) => Le.treeValues) && (te = k ? pn({
11354
- resultsToSort: j.map((Le) => Le.treeValues),
11359
+ if (j.some((Ne) => Ne.treeValues) && (te = k ? pn({
11360
+ resultsToSort: j.map((Ne) => Ne.treeValues),
11355
11361
  sorter: k,
11356
11362
  fields: {
11357
11363
  ...o.get("tree").fields,
11358
11364
  ...((Te = o.get("form")) == null ? void 0 : Te.fields) || {}
11359
11365
  }
11360
- }) : j.map((Le) => Le.treeValues)), s === "tree")
11366
+ }) : j.map((Ne) => Ne.treeValues)), s === "tree")
11361
11367
  return /* @__PURE__ */ i(
11362
11368
  Qn,
11363
11369
  {
@@ -11369,7 +11375,7 @@ const lg = (e) => {
11369
11375
  onRowClicked: (($e = o.get("form")) == null ? void 0 : $e.fields) !== void 0 ? Re : void 0,
11370
11376
  showPagination: !1,
11371
11377
  selectedRowKeys: V,
11372
- onRowSelectionChange: L,
11378
+ onRowSelectionChange: N,
11373
11379
  sorter: k,
11374
11380
  onChangeSort: K,
11375
11381
  context: { ...p == null ? void 0 : p(), ...M },
@@ -11379,14 +11385,14 @@ const lg = (e) => {
11379
11385
  }
11380
11386
  );
11381
11387
  if (s === "graph") {
11382
- const Le = [[`${r.inv_field}`, "=", d]];
11388
+ const Ne = [[`${r.inv_field}`, "=", d]];
11383
11389
  return /* @__PURE__ */ i(
11384
- Fn,
11390
+ _n,
11385
11391
  {
11386
11392
  viewData: o.get("graph"),
11387
11393
  view_id: o.get("graph").view_id,
11388
11394
  model: r.relation,
11389
- domain: Le,
11395
+ domain: Ne,
11390
11396
  context: { ...p == null ? void 0 : p(), ...M },
11391
11397
  limit: 0
11392
11398
  }
@@ -11395,7 +11401,7 @@ const lg = (e) => {
11395
11401
  };
11396
11402
  if (F)
11397
11403
  return /* @__PURE__ */ i(yt, { className: "mt-10", message: F, type: "error", banner: !0 });
11398
- const be = N;
11404
+ const be = L;
11399
11405
  return S ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ P(ee, { children: [
11400
11406
  /* @__PURE__ */ i(
11401
11407
  ll,
@@ -11428,7 +11434,7 @@ const lg = (e) => {
11428
11434
  ),
11429
11435
  Be(),
11430
11436
  /* @__PURE__ */ i(
11431
- On,
11437
+ Rn,
11432
11438
  {
11433
11439
  formView: o.get("form"),
11434
11440
  model: H,
@@ -11481,7 +11487,7 @@ const lg = (e) => {
11481
11487
  async function l() {
11482
11488
  t && (n.current = await $.getHandler().evalDomain({
11483
11489
  domain: t,
11484
- values: on({
11490
+ values: sn({
11485
11491
  fields: r(),
11486
11492
  values: o()
11487
11493
  }),
@@ -11517,20 +11523,20 @@ const lg = (e) => {
11517
11523
  endRow: g,
11518
11524
  sortFields: y
11519
11525
  }) => {
11520
- const v = ar(y), { realItemsIds: b, otherItems: A } = kd({
11526
+ const v = ar(y), { realItemsIds: b, otherItems: A } = Bd({
11521
11527
  allItems: h,
11522
11528
  ...v ? {} : { range: { startRow: p, endRow: g } }
11523
11529
  });
11524
11530
  if (b.length === 0 && A.length === 0)
11525
11531
  return { results: [], colors: {}, status: {} };
11526
- const S = v ? (await Md(b, t, n, v)).slice(
11532
+ const S = v ? (await Ud(b, t, n, v)).slice(
11527
11533
  p,
11528
11534
  g
11529
- ) : b, C = Ld(d), {
11535
+ ) : b, C = Wd(d), {
11530
11536
  items: F,
11531
11537
  colors: w,
11532
11538
  status: T
11533
- } = await Nd({
11539
+ } = await Yd({
11534
11540
  relation: t,
11535
11541
  ids: S,
11536
11542
  treeView: e,
@@ -11538,7 +11544,7 @@ const lg = (e) => {
11538
11544
  attrs: C,
11539
11545
  treeOoui: d
11540
11546
  }), O = S.length < g - p && A.length > 0 ? [...S, ...A.map((R) => R.id)] : S;
11541
- return { results: $d({
11547
+ return { results: Hd({
11542
11548
  finalResultIds: O,
11543
11549
  fetchedItems: F,
11544
11550
  otherItems: A
@@ -11561,7 +11567,7 @@ const lg = (e) => {
11561
11567
  formView: o,
11562
11568
  triggerChange: a
11563
11569
  }) => {
11564
- const [s, l] = I(!1), { itemIndex: c } = ne(Rn), { t: u } = me();
11570
+ const [s, l] = I(!1), { itemIndex: c } = ne(Dn), { t: u } = me();
11565
11571
  ae(() => {
11566
11572
  const p = e[c];
11567
11573
  (!p || (p == null ? void 0 : p.operation) === "original") && l(!1);
@@ -11612,7 +11618,7 @@ const lg = (e) => {
11612
11618
  return {
11613
11619
  showFormChangesDialogIfNeeded: D(
11614
11620
  (p) => {
11615
- s ? In({
11621
+ s ? An({
11616
11622
  t: u,
11617
11623
  onOk: () => {
11618
11624
  f(), p(), l(!1);
@@ -11638,9 +11644,9 @@ const lg = (e) => {
11638
11644
  onChange: a
11639
11645
  }, s) => {
11640
11646
  var u, m;
11641
- const { itemIndex: l } = ne(Rn), { t: c } = me();
11647
+ const { itemIndex: l } = ne(Dn), { t: c } = me();
11642
11648
  return t.length === 0 ? c("noCurrentEntries") : /* @__PURE__ */ i(
11643
- _n,
11649
+ On,
11644
11650
  {
11645
11651
  ref: s,
11646
11652
  formView: e,
@@ -11657,7 +11663,7 @@ const lg = (e) => {
11657
11663
  values: { ...d, id: f },
11658
11664
  treeValues: { ...d, id: f }
11659
11665
  } : g);
11660
- a(Vd(h));
11666
+ a(jd(h));
11661
11667
  },
11662
11668
  readOnly: o
11663
11669
  }
@@ -11674,7 +11680,7 @@ const mg = ({
11674
11680
  setSelectedRowKeys: a
11675
11681
  }) => {
11676
11682
  const { t: s } = me(), { currentView: l, itemIndex: c, setItemIndex: u } = ne(
11677
- Rn
11683
+ Dn
11678
11684
  ), m = D(async () => {
11679
11685
  const p = pg({
11680
11686
  selectedRowKeys: o,
@@ -11775,7 +11781,7 @@ const hg = ({
11775
11781
  treeValues: { ...w, id: C }
11776
11782
  } : O);
11777
11783
  else {
11778
- const O = Us(o);
11784
+ const O = Ws(o);
11779
11785
  _ = o.concat({
11780
11786
  id: O,
11781
11787
  operation: "pendingCreate",
@@ -11890,12 +11896,12 @@ const hg = ({
11890
11896
  }) => {
11891
11897
  const v = Y(), b = c || v, A = Y({}), S = Y(), C = Y(), F = Y(e), { t: w } = me();
11892
11898
  Mt(() => {
11893
- var L, N;
11899
+ var N, L;
11894
11900
  if (F.current = e, C.current === void 0) {
11895
11901
  C.current = e;
11896
11902
  return;
11897
11903
  }
11898
- C.current = e, (L = b == null ? void 0 : b.current) == null || L.refresh(), (N = b == null ? void 0 : b.current) == null || N.unselectAll();
11904
+ C.current = e, (N = b == null ? void 0 : b.current) == null || N.refresh(), (L = b == null ? void 0 : b.current) == null || L.unselectAll();
11899
11905
  }, [e]);
11900
11906
  const T = yn(() => e.length, [e]), _ = yn(() => Or(
11901
11907
  o,
@@ -11906,26 +11912,26 @@ const hg = ({
11906
11912
  "infinite"
11907
11913
  ), [a, o]), O = D(
11908
11914
  async ({
11909
- startRow: L,
11910
- endRow: N,
11915
+ startRow: N,
11916
+ endRow: L,
11911
11917
  state: B
11912
11918
  }) => {
11913
11919
  const W = sr({
11914
11920
  state: B
11915
11921
  }), { results: k, colors: K, status: Z } = await s({
11916
11922
  allItems: F.current,
11917
- startRow: L,
11918
- endRow: N,
11923
+ startRow: N,
11924
+ endRow: L,
11919
11925
  sortFields: W
11920
11926
  });
11921
11927
  return A.current = { ...A.current, ...K }, !S.current && Z && (S.current = {}), Z && (S.current = { ...S.current, ...Z }), k;
11922
11928
  },
11923
11929
  [s]
11924
- ), x = D((L) => {
11925
- var N, B, W, k;
11926
- if (A.current[(B = (N = L.node) == null ? void 0 : N.data) == null ? void 0 : B.id])
11927
- return { color: A.current[(k = (W = L.node) == null ? void 0 : W.data) == null ? void 0 : k.id] };
11928
- }, []), { loading: R, getColumnState: E, updateColumnState: V } = No({
11930
+ ), x = D((N) => {
11931
+ var L, B, W, k;
11932
+ if (A.current[(B = (L = N.node) == null ? void 0 : L.data) == null ? void 0 : B.id])
11933
+ return { color: A.current[(k = (W = N.node) == null ? void 0 : W.data) == null ? void 0 : k.id] };
11934
+ }, []), { loading: R, getColumnState: E, updateColumnState: V } = Lo({
11929
11935
  key: yg({
11930
11936
  ...h,
11931
11937
  model: u
@@ -11952,10 +11958,10 @@ const hg = ({
11952
11958
  totalRows: T,
11953
11959
  footer: p && /* @__PURE__ */ i(Bo, { aggregates: p, isLoading: !1 }),
11954
11960
  hasStatusColumn: o.status !== null,
11955
- statusComponent: (L) => /* @__PURE__ */ i(jn, { color: L, style: { marginLeft: 7 } }),
11956
- onRowStatus: (L) => {
11957
- var N;
11958
- return (N = S.current) == null ? void 0 : N[L.id];
11961
+ statusComponent: (N) => /* @__PURE__ */ i(Bn, { color: N, style: { marginLeft: 7 } }),
11962
+ onRowStatus: (N) => {
11963
+ var L;
11964
+ return (L = S.current) == null ? void 0 : L[N.id];
11959
11965
  },
11960
11966
  strings: {
11961
11967
  resetTableViewLabel: w("resetTableView")
@@ -11978,7 +11984,7 @@ const hg = ({
11978
11984
  }, Sg = ["form", "tree", "graph"], Cg = (e) => {
11979
11985
  var xe, Ve, je;
11980
11986
  const t = Y(null), { value: n, onChange: r, ooui: o, views: a } = e, { items: s = [] } = n || {}, l = fg({ one2manyItems: s }), { currentView: c, setCurrentView: u, itemIndex: m, setItemIndex: d } = ne(
11981
- Rn
11987
+ Dn
11982
11988
  ), {
11983
11989
  readOnly: f,
11984
11990
  relation: h,
@@ -11998,8 +12004,8 @@ const hg = ({
11998
12004
  selectedRowKeys: R,
11999
12005
  setSelectedRowKeys: E,
12000
12006
  onChangeFirstVisibleRowIndex: V,
12001
- onGetFirstVisibileRowIndex: L,
12002
- onSelectionCheckboxClicked: N
12007
+ onGetFirstVisibileRowIndex: N,
12008
+ onSelectionCheckboxClicked: L
12003
12009
  } = dg({
12004
12010
  treeView: a.get("tree"),
12005
12011
  relation: h,
@@ -12151,9 +12157,9 @@ const hg = ({
12151
12157
  onRowSelectionChange: E,
12152
12158
  relation: h,
12153
12159
  onChangeFirstVisibleRowIndex: V,
12154
- onGetFirstVisibleRowIndex: L,
12160
+ onGetFirstVisibleRowIndex: N,
12155
12161
  selectedRowKeys: R,
12156
- onSelectionCheckboxClicked: N,
12162
+ onSelectionCheckboxClicked: L,
12157
12163
  dataForHash: {
12158
12164
  parentViewId: e.parentViewId,
12159
12165
  treeViewId: e.treeViewId,
@@ -12175,7 +12181,7 @@ const hg = ({
12175
12181
  }
12176
12182
  ),
12177
12183
  /* @__PURE__ */ i(
12178
- On,
12184
+ Rn,
12179
12185
  {
12180
12186
  formView: a.get("form"),
12181
12187
  model: h,
@@ -12206,7 +12212,7 @@ const hg = ({
12206
12212
  }
12207
12213
  ),
12208
12214
  c === "graph" && /* @__PURE__ */ i(
12209
- Fn,
12215
+ _n,
12210
12216
  {
12211
12217
  viewData: a.get("graph"),
12212
12218
  view_id: a.get("graph").view_id,
@@ -12229,8 +12235,8 @@ const hg = ({
12229
12235
  Mt(() => {
12230
12236
  S();
12231
12237
  }, [t]);
12232
- const b = Gn(
12233
- sn.FEATURE_GET_TOOLBAR
12238
+ const b = In(
12239
+ Qt.FEATURE_GET_TOOLBAR
12234
12240
  ), A = async (w) => {
12235
12241
  if (o && o[w]) {
12236
12242
  const T = o[w];
@@ -12465,7 +12471,7 @@ const { useToken: Eg } = ze, { TextArea: mo } = ft, Pg = (e) => {
12465
12471
  {
12466
12472
  onClick: () => {
12467
12473
  if (u != null && u()) {
12468
- Zt(h("saveBeforeTranslate"));
12474
+ en(h("saveBeforeTranslate"));
12469
12475
  return;
12470
12476
  }
12471
12477
  d || f(!0);
@@ -12529,7 +12535,7 @@ const { useToken: Eg } = ze, { TextArea: mo } = ft, Pg = (e) => {
12529
12535
  tooltip: h("translate"),
12530
12536
  icon: /* @__PURE__ */ i(ws, {}),
12531
12537
  onClick: async () => {
12532
- u != null && u() ? Zt(h("saveBeforeTranslate")) : Zt(h("enterTextBeforeTranslate"));
12538
+ u != null && u() ? en(h("saveBeforeTranslate")) : en(h("enterTextBeforeTranslate"));
12533
12539
  },
12534
12540
  children: h("translate")
12535
12541
  }
@@ -12552,7 +12558,7 @@ const { useToken: Eg } = ze, { TextArea: mo } = ft, Pg = (e) => {
12552
12558
  const s = Y({}), l = Y(/* @__PURE__ */ new Map()), { t: c } = me(), u = D(
12553
12559
  async (y) => {
12554
12560
  if (y.selectedKeys === void 0 || y.selectedKeys.length === 0) {
12555
- Zt(c("selectAtLeastOneField"));
12561
+ en(c("selectAtLeastOneField"));
12556
12562
  return;
12557
12563
  }
12558
12564
  let v = r;
@@ -12590,7 +12596,7 @@ const { useToken: Eg } = ze, { TextArea: mo } = ft, Pg = (e) => {
12590
12596
  fields: []
12591
12597
  });
12592
12598
  for (const [C, F] of Object.entries(S))
12593
- S[C].string = Lg({
12599
+ S[C].string = Ng({
12594
12600
  parentTitle: b.string,
12595
12601
  title: F.string
12596
12602
  });
@@ -12601,7 +12607,7 @@ const { useToken: Eg } = ze, { TextArea: mo } = ft, Pg = (e) => {
12601
12607
  },
12602
12608
  [t]
12603
12609
  ), f = D(async () => {
12604
- const y = await Ng({ model: e, context: t }), v = await Bg({
12610
+ const y = await Lg({ model: e, context: t }), v = await Bg({
12605
12611
  predefinedExports: y,
12606
12612
  fields: s.current,
12607
12613
  onGetFieldChilds: d
@@ -12699,10 +12705,10 @@ const { useToken: Eg } = ze, { TextArea: mo } = ft, Pg = (e) => {
12699
12705
  return e;
12700
12706
  const t = e.split("/");
12701
12707
  return t[t.length - 1];
12702
- }, go = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[po(e)], Lg = ({
12708
+ }, go = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[po(e)], Ng = ({
12703
12709
  title: e,
12704
12710
  parentTitle: t
12705
- }) => `${t ? t + " → " : ""}${e}`, Ng = async ({
12711
+ }) => `${t ? t + " → " : ""}${e}`, Lg = async ({
12706
12712
  model: e,
12707
12713
  context: t
12708
12714
  }) => {
@@ -12847,7 +12853,7 @@ const { useToken: Eg } = ze, { TextArea: mo } = ft, Pg = (e) => {
12847
12853
  m([p, void 0]), f(h);
12848
12854
  }, [t]), /* @__PURE__ */ P(Ye, { gutter: 8, wrap: !1, children: [
12849
12855
  /* @__PURE__ */ i(Oe, { flex: "1", children: /* @__PURE__ */ i(
12850
- Ns,
12856
+ Ls,
12851
12857
  {
12852
12858
  ooui: new wo({
12853
12859
  name: "model_selection",
@@ -13001,7 +13007,7 @@ const { useToken: Eg } = ze, { TextArea: mo } = ft, Pg = (e) => {
13001
13007
  }
13002
13008
  ) }),
13003
13009
  /* @__PURE__ */ i(Oe, { style: { textAlign: "center" }, children: /* @__PURE__ */ i(Et, { title: c("openAttachment"), children: /* @__PURE__ */ i(
13004
- Vn,
13010
+ kn,
13005
13011
  {
13006
13012
  style: { cursor: "pointer" },
13007
13013
  onClick: () => {
@@ -13263,19 +13269,19 @@ function ry({ toolbar: e }) {
13263
13269
  setPreviousView: x,
13264
13270
  goToResourceId: R,
13265
13271
  isActive: E
13266
- } = Xn(), { openDefaultActionForModel: V } = t || {}, L = q(
13272
+ } = Xn(), { openDefaultActionForModel: V } = t || {}, N = q(
13267
13273
  () => m || b || F || A,
13268
13274
  [m, b, F, A]
13269
- ), N = D(
13275
+ ), L = D(
13270
13276
  (M) => {
13271
- u ? In({ t: n, onOk: M }) : M();
13277
+ u ? An({ t: n, onOk: M }) : M();
13272
13278
  },
13273
13279
  [u, n]
13274
13280
  ), B = D(() => {
13275
- N(() => T.current.fetchValues());
13276
- }, [N, T]), { actionButtonProps: W, printButtonProps: k, relateButtonProps: K } = rl({
13281
+ L(() => T.current.fetchValues());
13282
+ }, [L, T]), { actionButtonProps: W, printButtonProps: k, relateButtonProps: K } = rl({
13277
13283
  toolbar: e,
13278
- mustDisableButtons: L,
13284
+ mustDisableButtons: N,
13279
13285
  formRef: T,
13280
13286
  onRefreshParentValues: B
13281
13287
  }), Z = D(async () => {
@@ -13353,26 +13359,26 @@ function ry({ toolbar: e }) {
13353
13359
  },
13354
13360
  [c, V]
13355
13361
  );
13356
- return Qt(
13362
+ return Xt(
13357
13363
  "pagedown",
13358
13364
  async () => {
13359
13365
  !E || !await T.current.cancelUnsavedChanges() || r();
13360
13366
  },
13361
13367
  { enableOnFormTags: !0, preventDefault: !0 },
13362
13368
  [E, r, T]
13363
- ), Qt(
13369
+ ), Xt(
13364
13370
  "pageup",
13365
13371
  async () => {
13366
13372
  !E || !await T.current.cancelUnsavedChanges() || o();
13367
13373
  },
13368
13374
  { enableOnFormTags: !0, preventDefault: !0 },
13369
13375
  [E, o, T]
13370
- ), Qt(
13376
+ ), Xt(
13371
13377
  "ctrl+s,command+s",
13372
13378
  () => E && (c == null ? void 0 : c()),
13373
13379
  { enableOnFormTags: !0, preventDefault: !0 },
13374
13380
  [E, c]
13375
- ), Qt(
13381
+ ), Xt(
13376
13382
  "ctrl+l,command+l",
13377
13383
  async () => {
13378
13384
  !E || !O || !await T.current.cancelUnsavedChanges() || (x == null || x(s), l == null || l(O));
@@ -13392,13 +13398,13 @@ function ry({ toolbar: e }) {
13392
13398
  /* @__PURE__ */ i(st, {}),
13393
13399
  /* @__PURE__ */ i(st, {})
13394
13400
  ] }),
13395
- /* @__PURE__ */ i(ea, { disabled: L }),
13401
+ /* @__PURE__ */ i(ea, { disabled: N }),
13396
13402
  /* @__PURE__ */ i(
13397
13403
  gt,
13398
13404
  {
13399
13405
  icon: /* @__PURE__ */ i(Zl, {}),
13400
13406
  tooltip: n("save"),
13401
- disabled: !u || L,
13407
+ disabled: !u || N,
13402
13408
  loading: m,
13403
13409
  onClick: c
13404
13410
  }
@@ -13406,9 +13412,9 @@ function ry({ toolbar: e }) {
13406
13412
  /* @__PURE__ */ i(
13407
13413
  gt,
13408
13414
  {
13409
- icon: /* @__PURE__ */ i(Hn, {}),
13415
+ icon: /* @__PURE__ */ i(Un, {}),
13410
13416
  tooltip: n("duplicate"),
13411
- disabled: u || L || d === void 0,
13417
+ disabled: u || N || d === void 0,
13412
13418
  loading: A,
13413
13419
  onClick: () => Bt({
13414
13420
  confirmMessage: n("confirmDuplicate"),
@@ -13422,7 +13428,7 @@ function ry({ toolbar: e }) {
13422
13428
  {
13423
13429
  icon: /* @__PURE__ */ i(Io, {}),
13424
13430
  tooltip: n("delete"),
13425
- disabled: L || d === void 0,
13431
+ disabled: N || d === void 0,
13426
13432
  loading: b,
13427
13433
  onClick: () => Bt({
13428
13434
  confirmMessage: n("confirmRemoveItem"),
@@ -13437,7 +13443,7 @@ function ry({ toolbar: e }) {
13437
13443
  {
13438
13444
  icon: /* @__PURE__ */ i(Tn, {}),
13439
13445
  tooltip: n("showLogs"),
13440
- disabled: L || d === void 0,
13446
+ disabled: N || d === void 0,
13441
13447
  onClick: () => Po(y, d, n)
13442
13448
  }
13443
13449
  ),
@@ -13446,7 +13452,7 @@ function ry({ toolbar: e }) {
13446
13452
  {
13447
13453
  icon: /* @__PURE__ */ i(wr, {}),
13448
13454
  tooltip: n("refresh"),
13449
- disabled: L || d === void 0,
13455
+ disabled: N || d === void 0,
13450
13456
  onClick: B
13451
13457
  }
13452
13458
  ),
@@ -13458,7 +13464,7 @@ function ry({ toolbar: e }) {
13458
13464
  previousView: O,
13459
13465
  availableViews: a,
13460
13466
  onChangeView: J,
13461
- disabled: L,
13467
+ disabled: N,
13462
13468
  formHasChanges: u
13463
13469
  }
13464
13470
  ),
@@ -13466,20 +13472,20 @@ function ry({ toolbar: e }) {
13466
13472
  /* @__PURE__ */ i(
13467
13473
  fl,
13468
13474
  {
13469
- disabled: L || !1,
13475
+ disabled: N || !1,
13470
13476
  onPreviousClick: o,
13471
13477
  onNextClick: r,
13472
- tryAction: N
13478
+ tryAction: L
13473
13479
  }
13474
13480
  ),
13475
13481
  /* @__PURE__ */ i(st, {}),
13476
- /* @__PURE__ */ i(Nt, { icon: /* @__PURE__ */ i(Sr, {}), ...W }),
13477
- /* @__PURE__ */ i(Nt, { icon: /* @__PURE__ */ i(Cr, {}), ...k }),
13478
- /* @__PURE__ */ i(Nt, { icon: /* @__PURE__ */ i(xr, {}), ...K }),
13482
+ /* @__PURE__ */ i(Lt, { icon: /* @__PURE__ */ i(Sr, {}), ...W }),
13483
+ /* @__PURE__ */ i(Lt, { icon: /* @__PURE__ */ i(Cr, {}), ...k }),
13484
+ /* @__PURE__ */ i(Lt, { icon: /* @__PURE__ */ i(xr, {}), ...K }),
13479
13485
  /* @__PURE__ */ i(
13480
13486
  ty,
13481
13487
  {
13482
- disabled: L,
13488
+ disabled: N,
13483
13489
  attachments: w,
13484
13490
  onAddNewAttachment: we,
13485
13491
  onListAllAttachments: oe,
@@ -13541,7 +13547,7 @@ const ts = (e, t) => ({
13541
13547
  l ? null : /* @__PURE__ */ i(Oe, { flex: "none", style: { paddingRight: 0 }, children: h ? /* @__PURE__ */ i(
13542
13548
  We,
13543
13549
  {
13544
- icon: /* @__PURE__ */ i(Bn, {}),
13550
+ icon: /* @__PURE__ */ i(Hn, {}),
13545
13551
  onClick: () => {
13546
13552
  o(n) && (p(!1), y(!1));
13547
13553
  },
@@ -13778,14 +13784,14 @@ const dy = (e) => {
13778
13784
  searchValues: x,
13779
13785
  setSearchValues: R,
13780
13786
  currentView: E
13781
- } = m || {}, [V, L] = I(!0);
13787
+ } = m || {}, [V, N] = I(!0);
13782
13788
  ae(() => {
13783
13789
  var Q;
13784
13790
  (Q = u.current) == null || Q.refresh();
13785
13791
  }, [O]), ae(() => {
13786
- t.view_id !== E.view_id && L(!0);
13792
+ t.view_id !== E.view_id && N(!0);
13787
13793
  }, [E]);
13788
- const { clear: N, searchFilterLoading: B, searchError: W, offset: k, tableRefreshing: K } = Ga({
13794
+ const { clear: L, searchFilterLoading: B, searchError: W, offset: k, tableRefreshing: K } = Ga({
13789
13795
  model: r,
13790
13796
  setSearchTreeNameSearch: F,
13791
13797
  setSelectedRowItems: g,
@@ -13838,11 +13844,11 @@ const dy = (e) => {
13838
13844
  },
13839
13845
  searchFields: Z,
13840
13846
  limit: T,
13841
- onClear: N,
13847
+ onClear: L,
13842
13848
  offset: k,
13843
13849
  isSearching: B,
13844
13850
  onSubmit: (Q) => {
13845
- L(!1), y == null || y(Q.params), b == null || b(!1);
13851
+ N(!1), y == null || y(Q.params), b == null || b(!1);
13846
13852
  },
13847
13853
  searchError: W,
13848
13854
  searchVisible: v,
@@ -13851,7 +13857,7 @@ const dy = (e) => {
13851
13857
  }
13852
13858
  ),
13853
13859
  K ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ i(
13854
- Fn,
13860
+ _n,
13855
13861
  {
13856
13862
  ref: u,
13857
13863
  view_id: t.view_id,
@@ -13882,7 +13888,7 @@ const dy = (e) => {
13882
13888
  return t ? /* @__PURE__ */ P(ee, { children: [
13883
13889
  /* @__PURE__ */ i(Dr, { children: /* @__PURE__ */ i(oy, { toolbar: s == null ? void 0 : s.toolbar }) }),
13884
13890
  /* @__PURE__ */ i(
13885
- _n,
13891
+ On,
13886
13892
  {
13887
13893
  rootForm: !0,
13888
13894
  ref: n,
@@ -14030,7 +14036,7 @@ function gy({
14030
14036
  return h === "form" && (p = !!m && !!r), { shareUrl: f, canShare: p };
14031
14037
  }
14032
14038
  const yy = () => {
14033
- const { currentTab: e } = Vo(), { title: t } = Yn(), { shareUrl: n } = gy({ currentTab: e });
14039
+ const { currentTab: e } = Vo(), { title: t } = Wn(), { shareUrl: n } = gy({ currentTab: e });
14034
14040
  ae(() => {
14035
14041
  if (n) {
14036
14042
  const r = new URL(n, window.location.origin);
@@ -14062,7 +14068,7 @@ function vy(e, t) {
14062
14068
  order: A
14063
14069
  } = e, [S, C] = I(), [F, w] = I([]), [T, _] = I(!0), O = f || void 0, [x, R] = I(
14064
14070
  O
14065
- ), [E, V] = I([]), [L, N] = I(), [B, W] = I([]), [k, K] = I(), [Z, Q] = I(0), [J, we] = I(!1), [oe, H] = I(!1), [M, z] = I(), { t: ie } = me(), X = Y(), j = Y(), le = ne(
14071
+ ), [E, V] = I([]), [N, L] = I(), [B, W] = I([]), [k, K] = I(), [Z, Q] = I(0), [J, we] = I(!1), [oe, H] = I(!1), [M, z] = I(), { t: ie } = me(), X = Y(), j = Y(), le = ne(
14066
14072
  Ot
14067
14073
  ), {
14068
14074
  setCurrentView: ce,
@@ -14072,13 +14078,13 @@ function vy(e, t) {
14072
14078
  openAction: Ue,
14073
14079
  onRemoveTab: Ke
14074
14080
  } = le || {};
14075
- Qt(
14081
+ Xt(
14076
14082
  "ctrl+g,command+g",
14077
14083
  () => {
14078
14084
  Ve();
14079
14085
  },
14080
14086
  { enableOnFormTags: !0, preventDefault: !0 },
14081
- [_e, ye, S, L, B]
14087
+ [_e, ye, S, N, B]
14082
14088
  );
14083
14089
  function Ie(se) {
14084
14090
  R(se), de == null || de(se);
@@ -14201,7 +14207,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14201
14207
  ]);
14202
14208
  l({ tabKey: c, canWeClose: xe }), Gt(() => {
14203
14209
  const se = F.find((Ee) => Ee.type === "tree"), ke = F.find((Ee) => u.id ? Ee.type === u.type && Ee.view_id === u.id : Ee.type === u.type);
14204
- re(ke || se), f ? de == null || de(O) : (Ie(void 0), N(void 0)), Ae();
14210
+ re(ke || se), f ? de == null || de(O) : (Ie(void 0), L(void 0)), Ae();
14205
14211
  }, [r, a, f]), Gt(() => {
14206
14212
  if (_e === c) {
14207
14213
  de == null || de(x);
@@ -14233,7 +14239,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14233
14239
  } catch {
14234
14240
  }
14235
14241
  if (!be) {
14236
- H(!1), we(!1), Zt(ie("idNotFound"));
14242
+ H(!1), we(!1), en(ie("idNotFound"));
14237
14243
  return;
14238
14244
  }
14239
14245
  } else
@@ -14285,8 +14291,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14285
14291
  onNewClicked: pe,
14286
14292
  currentId: x,
14287
14293
  setCurrentId: Ie,
14288
- setCurrentItemIndex: N,
14289
- currentItemIndex: L,
14294
+ setCurrentItemIndex: L,
14295
+ currentItemIndex: N,
14290
14296
  results: B,
14291
14297
  setResults: W,
14292
14298
  currentModel: r,
@@ -14318,7 +14324,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14318
14324
  formDefaultValues: m,
14319
14325
  results: B,
14320
14326
  setResults: W,
14321
- setCurrentItemIndex: N,
14327
+ setCurrentItemIndex: L,
14322
14328
  formForcedValues: d,
14323
14329
  limit: y,
14324
14330
  searchTreeRef: j,
@@ -14430,7 +14436,7 @@ const by = ({
14430
14436
  );
14431
14437
  }
14432
14438
  })), pl = _t(vy);
14433
- const wy = Lc(Nc), Sy = (e) => {
14439
+ const wy = Nc(Lc), Sy = (e) => {
14434
14440
  const { children: t = [], onPositionItemsChanged: n } = e, r = At.Children.map(
14435
14441
  t,
14436
14442
  (o) => {
@@ -14469,7 +14475,7 @@ function Cy(e) {
14469
14475
  domain: a = [],
14470
14476
  visible: s = !0,
14471
14477
  parentContext: l = {}
14472
- } = e, [c, u] = I(!1), [m, d] = I(!1), [f, h] = I(), [p, g] = I(), [y, v] = I(), [b, A] = I(1), [S, C] = I(0), F = Y($t), w = Y([]), [T, _] = I(0), [O, x] = I([]), [R, E] = I(void 0), [V, L] = I(), [N, B] = I(), [W, k] = I(), [K, Z] = I(!1), Q = Y([]), J = (j) => {
14478
+ } = e, [c, u] = I(!1), [m, d] = I(!1), [f, h] = I(), [p, g] = I(), [y, v] = I(), [b, A] = I(1), [S, C] = I(0), F = Y($t), w = Y([]), [T, _] = I(0), [O, x] = I([]), [R, E] = I(void 0), [V, N] = I(), [L, B] = I(), [W, k] = I(), [K, Z] = I(!1), Q = Y([]), J = (j) => {
14473
14479
  Z(!0), A(j), C((j - 1) * F.current);
14474
14480
  }, we = async () => {
14475
14481
  const j = Q.current.length > 0 ? Q.current : a, le = Kt(w.current, j), { colors: ce } = jt(p), { totalItems: de, results: ye, attrsEvaluated: _e } = await $.getHandler().searchForTree({
@@ -14481,7 +14487,7 @@ function Cy(e) {
14481
14487
  context: l,
14482
14488
  attrs: ce && { colors: ce }
14483
14489
  });
14484
- E(nn(_e));
14490
+ E(rn(_e));
14485
14491
  const Ue = pn({
14486
14492
  resultsToSort: ye,
14487
14493
  sorter: V,
@@ -14542,7 +14548,7 @@ function Cy(e) {
14542
14548
  treeView: p
14543
14549
  });
14544
14550
  }, X = () => !p || !y ? null : /* @__PURE__ */ P("div", { style: { overflowY: "scroll" }, children: [
14545
- N && /* @__PURE__ */ i(yt, { className: "mt-10", message: N, type: "error", banner: !0 }),
14551
+ L && /* @__PURE__ */ i(yt, { className: "mt-10", message: L, type: "error", banner: !0 }),
14546
14552
  /* @__PURE__ */ i(
14547
14553
  Qn,
14548
14554
  {
@@ -14558,7 +14564,7 @@ function Cy(e) {
14558
14564
  colorsForResults: R,
14559
14565
  sorter: V,
14560
14566
  onChangeSort: (j) => {
14561
- L == null || L(j);
14567
+ N == null || N(j);
14562
14568
  const le = pn({
14563
14569
  resultsToSort: O,
14564
14570
  sorter: j,
@@ -14585,7 +14591,7 @@ const xy = Ze(Cy), Ty = (e) => {
14585
14591
  });
14586
14592
  a.length > 0 && r(a[0].id);
14587
14593
  }
14588
- return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(_n, { ...e, model: t, id: n, readOnly: !0 }) });
14594
+ return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(On, { ...e, model: t, id: n, readOnly: !0 }) });
14589
14595
  }, Xr = "line_ids";
14590
14596
  function Iy(e, t) {
14591
14597
  const { model: n, context: r = {}, id: o, configAction: a } = e, [s, l] = I([]), [c, u] = I(!1), [m, d] = I(), {
@@ -14594,8 +14600,8 @@ function Iy(e, t) {
14594
14600
  moveItemsEnabled: p
14595
14601
  } = ne(Jo), g = Y(), y = Y(), [v] = Xe($.getHandler().getView), [b] = Xe(
14596
14602
  $.getHandler().readObjects
14597
- ), [A] = Xe($.getHandler().update), S = Gn(
14598
- sn.FEATURE_READFORVIEW
14603
+ ), [A] = Xe($.getHandler().update), S = In(
14604
+ Qt.FEATURE_READFORVIEW
14599
14605
  );
14600
14606
  ae(() => {
14601
14607
  C();
@@ -14608,13 +14614,13 @@ function Iy(e, t) {
14608
14614
  async function C() {
14609
14615
  u(!0), f(!0), d(void 0);
14610
14616
  try {
14611
- const R = await F(), E = await T(R), V = R.fields[Xr].relation, L = E[Xr].items;
14617
+ const R = await F(), E = await T(R), V = R.fields[Xr].relation, N = E[Xr].items;
14612
14618
  y.current = R.fields;
14613
- const N = await w({
14614
- items: L,
14619
+ const L = await w({
14620
+ items: N,
14615
14621
  model: V,
14616
14622
  context: r
14617
- }), B = await _(N);
14623
+ }), B = await _(L);
14618
14624
  d(void 0), l(B), u(!1), f(!1);
14619
14625
  } catch (R) {
14620
14626
  d(JSON.stringify(R));
@@ -14637,7 +14643,7 @@ function Iy(e, t) {
14637
14643
  type: "form",
14638
14644
  context: V
14639
14645
  })).fields;
14640
- const [L] = await Do({
14646
+ const [N] = await Do({
14641
14647
  treeView: {
14642
14648
  fields: g.current
14643
14649
  },
@@ -14649,7 +14655,7 @@ function Iy(e, t) {
14649
14655
  context: V,
14650
14656
  currentView: "form"
14651
14657
  });
14652
- return L;
14658
+ return N;
14653
14659
  }
14654
14660
  async function T(R) {
14655
14661
  return (await b({
@@ -14661,13 +14667,13 @@ function Iy(e, t) {
14661
14667
  }
14662
14668
  async function _(R) {
14663
14669
  const E = [];
14664
- for (const L of R) {
14665
- const { values: N } = L;
14666
- if (N.action_id && N.action_id.length > 0) {
14667
- const B = parseInt(N.action_id[0], 10), W = Gs({
14670
+ for (const N of R) {
14671
+ const { values: L } = N;
14672
+ if (L.action_id && L.action_id.length > 0) {
14673
+ const B = parseInt(L.action_id[0], 10), W = Gs({
14668
14674
  actionId: B,
14669
14675
  rootContext: r
14670
- }).then((k) => ({ ...L, actionData: k }));
14676
+ }).then((k) => ({ ...N, actionData: k }));
14671
14677
  E.push(W);
14672
14678
  }
14673
14679
  }
@@ -14692,7 +14698,7 @@ function Iy(e, t) {
14692
14698
  });
14693
14699
  if (E.length === 0)
14694
14700
  return;
14695
- const L = s.filter((B) => E.map((W) => W.id).includes(B.id)).map((B) => {
14701
+ const N = s.filter((B) => E.map((W) => W.id).includes(B.id)).map((B) => {
14696
14702
  const W = {
14697
14703
  ...E.find((k) => k.id === B.id)
14698
14704
  };
@@ -14704,14 +14710,14 @@ function Iy(e, t) {
14704
14710
  position: JSON.stringify(W).replace(/"/g, "'")
14705
14711
  }
14706
14712
  };
14707
- }), N = {
14713
+ }), L = {
14708
14714
  fields: g.current,
14709
- items: L
14715
+ items: N
14710
14716
  };
14711
14717
  await A({
14712
14718
  model: n,
14713
14719
  id: o,
14714
- values: { [Xr]: N },
14720
+ values: { [Xr]: L },
14715
14721
  fields: y.current,
14716
14722
  context: r
14717
14723
  });
@@ -14720,7 +14726,7 @@ function Iy(e, t) {
14720
14726
  h(a);
14721
14727
  }
14722
14728
  return c ? /* @__PURE__ */ i(Pt, {}) : m ? /* @__PURE__ */ i(yt, { className: "mt-10 mb-20", message: m, type: "error", banner: !0 }) : /* @__PURE__ */ i(Sy, { onPositionItemsChanged: O, children: s.map((R, E) => {
14723
- const { actionData: V, values: L } = R, { position: N, id: B } = L, {
14729
+ const { actionData: V, values: N } = R, { position: L, id: B } = N, {
14724
14730
  actionId: W,
14725
14731
  actionType: k,
14726
14732
  key: K,
@@ -14735,13 +14741,13 @@ function Iy(e, t) {
14735
14741
  } = V;
14736
14742
  let ie = {};
14737
14743
  try {
14738
- ie = JSON.parse(N.replace(/'/g, '"'));
14744
+ ie = JSON.parse(L.replace(/'/g, '"'));
14739
14745
  } catch {
14740
14746
  ie = { x: E * 2, y: 0, w: 2, h: 3 };
14741
14747
  }
14742
14748
  let X = null;
14743
14749
  if ((M == null ? void 0 : M.type) === "graph") {
14744
- const ye = L.server_action === !0 && S ? za : Fn;
14750
+ const ye = N.server_action === !0 && S ? za : _n;
14745
14751
  X = /* @__PURE__ */ i(
14746
14752
  ye,
14747
14753
  {
@@ -14873,7 +14879,7 @@ const Ay = _t(Iy), Fy = (e) => {
14873
14879
  if (n.domain) {
14874
14880
  const _ = await $.getHandler().evalDomain({
14875
14881
  domain: n.domain,
14876
- values: on({
14882
+ values: sn({
14877
14883
  fields: v == null ? void 0 : v.getFields(),
14878
14884
  values: v.getPlainValues()
14879
14885
  }),
@@ -14917,13 +14923,13 @@ const Ay = _t(Iy), Fy = (e) => {
14917
14923
  };
14918
14924
  return m && s.length === 0 ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ i(ee, { children: /* @__PURE__ */ P("div", { className: "flex flex-row", children: [
14919
14925
  /* @__PURE__ */ i(
14920
- Pn.Group,
14926
+ Vn.Group,
14921
14927
  {
14922
14928
  value: s.length ? a : [],
14923
14929
  disabled: p,
14924
14930
  onChange: w,
14925
14931
  style: { width: "100%" },
14926
- children: /* @__PURE__ */ i(Ye, { children: s.map((T) => /* @__PURE__ */ i(Oe, { span: Math.floor(24 / y), children: /* @__PURE__ */ i(Pn, { value: T.value, children: T.label }) })) })
14932
+ children: /* @__PURE__ */ i(Ye, { children: s.map((T) => /* @__PURE__ */ i(Oe, { span: Math.floor(24 / y), children: /* @__PURE__ */ i(Vn, { value: T.value, children: T.label }) })) })
14927
14933
  }
14928
14934
  ),
14929
14935
  !p && /* @__PURE__ */ P(rt, { children: [
@@ -15050,7 +15056,7 @@ const Ay = _t(Iy), Fy = (e) => {
15050
15056
  /* @__PURE__ */ i("div", { style: m }),
15051
15057
  /* @__PURE__ */ i("div", { style: d(h.active) })
15052
15058
  ] }, p)) });
15053
- }, Ly = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(My, {}) }), Ny = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(jy, { ...e }) }), jy = (e) => {
15059
+ }, Ny = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(My, {}) }), Ly = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(jy, { ...e }) }), jy = (e) => {
15054
15060
  const { ooui: t, value: n, onChange: r } = e, { lang: o, height: a, readOnly: s } = t, l = ne(Ge), { elementHasLostFocus: c } = l || {}, u = D(
15055
15061
  (d) => {
15056
15062
  c && d.onDidBlurEditorWidget(() => c());
@@ -15167,8 +15173,8 @@ const Yy = (e) => {
15167
15173
  return /* @__PURE__ */ i(
15168
15174
  yt,
15169
15175
  {
15170
- message: /* @__PURE__ */ i(kn, { content: r }),
15171
- description: /* @__PURE__ */ i(kn, { content: o }),
15176
+ message: /* @__PURE__ */ i($n, { content: r }),
15177
+ description: /* @__PURE__ */ i($n, { content: o }),
15172
15178
  type: a,
15173
15179
  showIcon: !0,
15174
15180
  action: u ? /* @__PURE__ */ i(rt, { direction: "vertical", children: u }) : null,
@@ -15216,7 +15222,7 @@ function ov() {
15216
15222
  }
15217
15223
  const os = 100;
15218
15224
  function iv(e, t) {
15219
- const { children: n } = e, [r, o] = I("welcome"), { t: a } = me(), { globalValues: s, rootContext: l } = Yn(), [c, u] = I([
15225
+ const { children: n } = e, [r, o] = I("welcome"), { t: a } = me(), { globalValues: s, rootContext: l } = Wn(), [c, u] = I([
15220
15226
  {
15221
15227
  title: a("welcome"),
15222
15228
  key: "welcome",
@@ -15255,12 +15261,12 @@ function iv(e, t) {
15255
15261
  );
15256
15262
  const R = T || x.active_id || x.id;
15257
15263
  if (R) {
15258
- const L = await $.getHandler().readObjects({
15264
+ const N = await $.getHandler().readObjects({
15259
15265
  model: F.model,
15260
15266
  context: l,
15261
15267
  ids: [R]
15262
15268
  });
15263
- x = { ...x, ...L[0] };
15269
+ x = { ...x, ...N[0] };
15264
15270
  }
15265
15271
  let E;
15266
15272
  w != null && w.context && typeof w.context == "object" && w.context !== null ? E = w : w && w.context ? E = w && Yt({
@@ -15276,8 +15282,8 @@ function iv(e, t) {
15276
15282
  context: { ...l, ...E },
15277
15283
  fields: O
15278
15284
  }) : [];
15279
- } catch (L) {
15280
- return console.error(L), [];
15285
+ } catch (N) {
15286
+ return console.error(N), [];
15281
15287
  }
15282
15288
  })();
15283
15289
  C({
@@ -15332,8 +15338,8 @@ function iv(e, t) {
15332
15338
  wt("Action type not supported");
15333
15339
  return;
15334
15340
  }
15335
- const [E, V] = F.split(","), L = parseInt(V), N = R.context, B = Yt({
15336
- context: N,
15341
+ const [E, V] = F.split(","), N = parseInt(V), L = R.context, B = Yt({
15342
+ context: L,
15337
15343
  values: s
15338
15344
  }), W = R.domain, k = await (async () => {
15339
15345
  try {
@@ -15388,14 +15394,14 @@ function iv(e, t) {
15388
15394
  target: J,
15389
15395
  initialView: z,
15390
15396
  action_type: E,
15391
- action_id: L,
15397
+ action_id: N,
15392
15398
  values: w,
15393
15399
  forced_values: T,
15394
15400
  res_id: O,
15395
15401
  treeExpandable: H,
15396
15402
  limit: oe,
15397
15403
  actionRawData: {
15398
- context: N,
15404
+ context: L,
15399
15405
  domain: W
15400
15406
  }
15401
15407
  });
@@ -15430,15 +15436,15 @@ function iv(e, t) {
15430
15436
  context: R,
15431
15437
  domain: E,
15432
15438
  views: V,
15433
- target: L,
15434
- string: N,
15439
+ target: N,
15440
+ string: L,
15435
15441
  limit: B
15436
15442
  } = F, [W, k] = V[0], K = { id: W, type: k }, Z = R, Q = Yt({
15437
15443
  context: Z,
15438
15444
  values: { ...T, ...s }
15439
15445
  }), J = E, we = E ? await $.getHandler().evalDomain({
15440
15446
  domain: E,
15441
- values: on({
15447
+ values: sn({
15442
15448
  fields: w,
15443
15449
  values: { ...T, ...s }
15444
15450
  }),
@@ -15447,11 +15453,11 @@ function iv(e, t) {
15447
15453
  }) : [];
15448
15454
  C({
15449
15455
  model: x,
15450
- target: L,
15456
+ target: N,
15451
15457
  views: V,
15452
15458
  context: { ...l, ...Q },
15453
15459
  domain: we,
15454
- title: N,
15460
+ title: L,
15455
15461
  initialView: K,
15456
15462
  action_id: _,
15457
15463
  action_type: O,
@@ -15473,18 +15479,18 @@ function iv(e, t) {
15473
15479
  overrideUnsettedLimit: x = !1,
15474
15480
  values: R = {},
15475
15481
  domain: E
15476
- } = F, V = `${T},${w}`, L = await $.getHandler().getActionData({
15482
+ } = F, V = `${T},${w}`, N = await $.getHandler().getActionData({
15477
15483
  action: V,
15478
15484
  context: l
15479
- }), N = L.context, B = Yt({
15480
- context: N,
15485
+ }), L = N.context, B = Yt({
15486
+ context: L,
15481
15487
  values: { ...s, ...R },
15482
15488
  fields: {}
15483
15489
  });
15484
15490
  let W = [];
15485
- const k = E && E.length > 0 ? E : L.domain;
15486
- (E == null ? void 0 : E.length) > 0 ? W = E : L.domain && (W = await $.getHandler().evalDomain({
15487
- domain: L.domain,
15491
+ const k = E && E.length > 0 ? E : N.domain;
15492
+ (E == null ? void 0 : E.length) > 0 ? W = E : N.domain && (W = await $.getHandler().evalDomain({
15493
+ domain: N.domain,
15488
15494
  values: { ...s, ...R },
15489
15495
  context: { ...l, ...B }
15490
15496
  }));
@@ -15495,7 +15501,7 @@ function iv(e, t) {
15495
15501
  target: J,
15496
15502
  view_type: we,
15497
15503
  limit: oe
15498
- } = L, H = we === "tree", M = [];
15504
+ } = N, H = we === "tree", M = [];
15499
15505
  for (const j of Z) {
15500
15506
  const [le, ce] = j;
15501
15507
  if (le)
@@ -15533,7 +15539,7 @@ function iv(e, t) {
15533
15539
  treeExpandable: H,
15534
15540
  limit: x && (oe === 0 || oe === !1) ? $t : oe,
15535
15541
  actionRawData: {
15536
- context: N,
15542
+ context: L,
15537
15543
  domain: k,
15538
15544
  values: R
15539
15545
  }
@@ -15567,8 +15573,8 @@ function iv(e, t) {
15567
15573
  target: R,
15568
15574
  initialView: E,
15569
15575
  action_id: V,
15570
- action_type: L,
15571
- res_id: N,
15576
+ action_type: N,
15577
+ res_id: L,
15572
15578
  values: B,
15573
15579
  forced_values: W,
15574
15580
  treeExpandable: k = !1,
@@ -15591,8 +15597,8 @@ function iv(e, t) {
15591
15597
  context: { ...l, ...T },
15592
15598
  actionData: {
15593
15599
  action_id: V,
15594
- action_type: L,
15595
- res_id: N,
15600
+ action_type: N,
15601
+ res_id: L,
15596
15602
  view_id: oe.view_id
15597
15603
  }
15598
15604
  });
@@ -15604,7 +15610,7 @@ function iv(e, t) {
15604
15610
  pl,
15605
15611
  {
15606
15612
  action_id: V,
15607
- action_type: L,
15613
+ action_type: N,
15608
15614
  tabKey: we,
15609
15615
  title: x,
15610
15616
  views: O,
@@ -15613,7 +15619,7 @@ function iv(e, t) {
15613
15619
  domain: w,
15614
15620
  setCanWeClose: h,
15615
15621
  initialView: oe,
15616
- res_id: N,
15622
+ res_id: L,
15617
15623
  formDefaultValues: B,
15618
15624
  formForcedValues: W,
15619
15625
  treeExpandable: k,
@@ -15824,7 +15830,7 @@ const { useToken: dv } = ze, fb = (e) => {
15824
15830
  ...E,
15825
15831
  id: E.id,
15826
15832
  name: E.name,
15827
- icon: E.view_type === "tree" ? /* @__PURE__ */ i(To, {}) : /* @__PURE__ */ i(Vn, {})
15833
+ icon: E.view_type === "tree" ? /* @__PURE__ */ i(To, {}) : /* @__PURE__ */ i(kn, {})
15828
15834
  }))
15829
15835
  }
15830
15836
  ];
@@ -15834,17 +15840,17 @@ const { useToken: dv } = ze, fb = (e) => {
15834
15840
  else {
15835
15841
  if (!v)
15836
15842
  return;
15837
- const x = g.find((N) => N.key === y), { action_id: R, action_type: E } = (x == null ? void 0 : x.action) || {}, V = v.view_id;
15838
- let L = !1;
15843
+ const x = g.find((L) => L.key === y), { action_id: R, action_type: E } = (x == null ? void 0 : x.action) || {}, V = v.view_id;
15844
+ let N = !1;
15839
15845
  if (!R || !E) {
15840
15846
  l(!1);
15841
15847
  return;
15842
15848
  }
15843
- v.type === "form" && (L = b || !1), await r({
15849
+ v.type === "form" && (N = b || !1), await r({
15844
15850
  action_id: R,
15845
15851
  action_type: E,
15846
15852
  view_id: V,
15847
- res_id: L
15853
+ res_id: N
15848
15854
  });
15849
15855
  }
15850
15856
  await _(), l(!s);
@@ -15888,18 +15894,18 @@ export {
15888
15894
  oy as ActionBar,
15889
15895
  pl as ActionView,
15890
15896
  zy as Alert,
15891
- Ly as ArrowStepsField,
15897
+ Ny as ArrowStepsField,
15892
15898
  Xg as Binary,
15893
15899
  Cd as Boolean,
15894
15900
  _o as Button,
15895
15901
  rd as ButtonGroup,
15896
15902
  Xy as Carousel,
15897
15903
  Vs as Char,
15898
- Ny as CodeEditor,
15904
+ Ly as CodeEditor,
15899
15905
  ev as ColorPicker,
15900
15906
  Ky as CommentsTimelineField,
15901
- Ys as ConfigContext,
15902
- tu as ConfigContextProvider,
15907
+ Bs as ConfigContext,
15908
+ kd as ConfigContextProvider,
15903
15909
  $ as ConnectionProvider,
15904
15910
  $u as ContentRootProvider,
15905
15911
  ub as CurrentTabContent,
@@ -15909,13 +15915,13 @@ export {
15909
15915
  Gg as DateTime,
15910
15916
  ay as Email,
15911
15917
  lb as ErpAllFeatureKeys,
15912
- sn as ErpFeatureKeys,
15918
+ Qt as ErpFeatureKeys,
15913
15919
  Wg as ExportModal,
15914
15920
  fb as FavouriteButton,
15915
15921
  Ho as Float,
15916
15922
  Fg as FloatTime,
15917
- _n as Form,
15918
- On as FormModal,
15923
+ On as Form,
15924
+ Rn as FormModal,
15919
15925
  Ja as GraphCard,
15920
15926
  iu as GraphIndicator,
15921
15927
  dl as Group,
@@ -15935,7 +15941,7 @@ export {
15935
15941
  kr as SearchFilter,
15936
15942
  zo as SearchModal,
15937
15943
  Ka as SearchTree,
15938
- Ls as Selection,
15944
+ Ns as Selection,
15939
15945
  kg as Separator,
15940
15946
  fo as Spinner,
15941
15947
  ky as Steps,