@gisce/react-ooui 2.65.0-alpha.1 → 2.65.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  var Cl = Object.defineProperty;
2
2
  var xl = (e, t, n) => t in e ? Cl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Xo = (e, t, n) => (xl(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { jsx as i, jsxs as P, Fragment as ne } from "react/jsx-runtime";
5
- import At, { useContext as te, useState as I, useEffect as ae, useRef as W, 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";
4
+ import { jsx as i, jsxs as P, Fragment as ee } from "react/jsx-runtime";
5
+ import At, { useContext as ne, useState as I, useEffect as ae, useRef as W, 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
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
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";
8
8
  import * as ni from "@ant-design/icons";
9
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
10
  import { Interweave as kn } from "interweave";
11
11
  import tt from "dayjs";
12
- import { default as pb } from "dayjs";
12
+ import { default as hb } from "dayjs";
13
13
  import rc from "dayjs/plugin/advancedFormat";
14
14
  import oc from "dayjs/plugin/customParseFormat";
15
15
  import ic from "dayjs/plugin/isoWeek";
@@ -97,7 +97,7 @@ const Ge = At.createContext(null), Gc = (e) => {
97
97
  }
98
98
  );
99
99
  }, Kc = () => {
100
- const e = te(Ge);
100
+ const e = ne(Ge);
101
101
  return e || {
102
102
  activeId: void 0,
103
103
  activeModel: "",
@@ -176,7 +176,7 @@ const { Text: Qc, Title: Xc } = zt, { useToken: Zc } = ze, ed = {
176
176
  center: "justify-center",
177
177
  right: "justify-end"
178
178
  }, Ir = (e) => {
179
- const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: a, fieldForLabel: s, labelSize: l, labelType: c } = t, u = te(Ge);
179
+ const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: a, fieldForLabel: s, labelSize: l, labelType: c } = t, u = ne(Ge);
180
180
  let d = s !== null && o.length > 1 ? o + " :" : o, f = "";
181
181
  if (!t.fieldForLabel && t._id && (d = u.getFieldValue(t._id), t.fieldType === "date" || t.fieldType === "time" || t.fieldType === "datetime")) {
182
182
  const v = {
@@ -254,7 +254,7 @@ function Pe({
254
254
  return n === "horizontal" ? (() => /* @__PURE__ */ P(Ye, { align: "middle", className: "pb-1 pt-1", children: [
255
255
  /* @__PURE__ */ i(Oe, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ i("div", { className: "flex flex-col items-end", children: g }) }),
256
256
  /* @__PURE__ */ i(Oe, { flex: "auto", children: p() })
257
- ] }))() : (() => /* @__PURE__ */ P(ne, { children: [
257
+ ] }))() : (() => /* @__PURE__ */ P(ee, { children: [
258
258
  g,
259
259
  p()
260
260
  ] }))();
@@ -421,7 +421,7 @@ const _o = (e) => {
421
421
  icon: l,
422
422
  context: c,
423
423
  readOnly: u
424
- } = t, m = te(Ge), { executeButtonAction: d } = m || {}, [f, h] = I(!1), { t: p } = me();
424
+ } = t, m = ne(Ge), { executeButtonAction: d } = m || {}, [f, h] = I(!1), { t: p } = me();
425
425
  async function g() {
426
426
  h(!0), await d({ type: a, action: n, context: c }), h(!1);
427
427
  }
@@ -470,7 +470,7 @@ const _o = (e) => {
470
470
  primary: m,
471
471
  context: d,
472
472
  readOnly: f
473
- } = n || {}, h = te(Ge), { executeButtonAction: p } = h || {}, [g, y] = I(!1), { t: v } = me();
473
+ } = n || {}, h = ne(Ge), { executeButtonAction: p } = h || {}, [g, y] = I(!1), { t: v } = me();
474
474
  function b() {
475
475
  if (g)
476
476
  return /* @__PURE__ */ i(Pt, {});
@@ -712,7 +712,7 @@ const Es = (e) => {
712
712
  p(!1), s();
713
713
  }
714
714
  function w() {
715
- return d ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ P(ne, { children: [
715
+ return d ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ P(ee, { children: [
716
716
  C(),
717
717
  /* @__PURE__ */ i(hr, {}),
718
718
  /* @__PURE__ */ i(Ye, { justify: "end", children: /* @__PURE__ */ P(rt, { children: [
@@ -808,7 +808,7 @@ const Vs = (e) => {
808
808
  isSearchField: n,
809
809
  onChange: r
810
810
  }) => {
811
- const o = te(Ge), { elementHasLostFocus: a } = o || {}, { readOnly: s, isPassword: l, translatable: c, required: u } = t, m = q(() => e && (t.selectionValues.size ? t.selectionValues.get(e) : Array.isArray(e) ? e[1] : e), [t.selectionValues, e]), d = q(
811
+ const o = ne(Ge), { elementHasLostFocus: a } = o || {}, { readOnly: s, isPassword: l, translatable: c, required: u } = t, m = q(() => e && (t.selectionValues.size ? t.selectionValues.get(e) : Array.isArray(e) ? e[1] : e), [t.selectionValues, e]), d = q(
812
812
  () => u && !s,
813
813
  [u, s]
814
814
  ), f = q(
@@ -857,7 +857,7 @@ const $s = Ze(
857
857
  field: n,
858
858
  onChange: r
859
859
  }) => {
860
- const o = te(Ge), {
860
+ const o = ne(Ge), {
861
861
  activeId: a,
862
862
  activeModel: s,
863
863
  fetchValues: l,
@@ -882,7 +882,7 @@ const $s = Ze(
882
882
  }, []), A = D(() => {
883
883
  d(!1), l == null || l();
884
884
  }, [l]), S = g ? md : fd;
885
- return a ? /* @__PURE__ */ P(ne, { children: [
885
+ return a ? /* @__PURE__ */ P(ee, { children: [
886
886
  /* @__PURE__ */ i("div", { onClick: v, children: /* @__PURE__ */ i(
887
887
  $n,
888
888
  {
@@ -1045,7 +1045,7 @@ const Ro = (e) => {
1045
1045
  function m() {
1046
1046
  l(void 0);
1047
1047
  }
1048
- return /* @__PURE__ */ P(ne, { children: [
1048
+ return /* @__PURE__ */ P(ee, { children: [
1049
1049
  /* @__PURE__ */ P(Ye, { gutter: 8, wrap: !1, justify: "center", children: [
1050
1050
  q(
1051
1051
  () => /* @__PURE__ */ i(Ro, { value: n }),
@@ -1513,14 +1513,14 @@ const on = ({
1513
1513
  onClick: e.onClick,
1514
1514
  children: [
1515
1515
  /* @__PURE__ */ i("strong", { children: e.title }),
1516
- e.summary && /* @__PURE__ */ P(ne, { children: [
1516
+ e.summary && /* @__PURE__ */ P(ee, { children: [
1517
1517
  /* @__PURE__ */ i("br", {}),
1518
1518
  /* @__PURE__ */ i("span", { children: e.summary })
1519
1519
  ] })
1520
1520
  ]
1521
1521
  }
1522
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 = te(Ge), { getContext: f } = d || {};
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
1524
  Mt(() => {
1525
1525
  p();
1526
1526
  }, [t]);
@@ -1549,7 +1549,7 @@ const on = ({
1549
1549
  titleField: b,
1550
1550
  iconField: A,
1551
1551
  colorField: S
1552
- } = r, C = a.filter((R) => R.values), F = te(Ge), { getContext: w } = F || {};
1552
+ } = r, C = a.filter((R) => R.values), F = ne(Ge), { getContext: w } = F || {};
1553
1553
  Mt(() => {
1554
1554
  _();
1555
1555
  }, [a]);
@@ -1606,7 +1606,7 @@ const on = ({
1606
1606
  };
1607
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
1608
  });
1609
- return /* @__PURE__ */ P(ne, { children: [
1609
+ return /* @__PURE__ */ P(ee, { children: [
1610
1610
  /* @__PURE__ */ i(is, { style: { padding: "1rem" }, items: x }),
1611
1611
  /* @__PURE__ */ i(
1612
1612
  On,
@@ -1973,7 +1973,7 @@ const on = ({
1973
1973
  rootContext: {},
1974
1974
  devMode: !1
1975
1975
  }, Ys = At.createContext(eu), Yn = () => {
1976
- const e = te(Ys);
1976
+ const e = ne(Ys);
1977
1977
  if (!e)
1978
1978
  throw new Error(
1979
1979
  "useConfigContext must be used within a ConfigContextProvider"
@@ -2072,7 +2072,7 @@ async function Gs({
2072
2072
  };
2073
2073
  }
2074
2074
  const nu = (e) => {
2075
- const [t, n] = I(), [r, o] = I(!0), [a, s] = I(), [l, c] = I(), u = te(Ge), { getContext: m, getPlainValues: d, activeId: f } = u || {}, { globalValues: h, rootContext: p } = Yn(), g = q(() => ({ ...m == null ? void 0 : m(), ...p }), [m, p]);
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]);
2076
2076
  return { actionData: a, treeShortcut: l, loading: r, error: t, fetchData: async () => {
2077
2077
  n(void 0), o(!0);
2078
2078
  try {
@@ -2840,7 +2840,7 @@ const pu = {
2840
2840
  /* @__PURE__ */ i("div", { style: { width: "100%", height: "100%", overflow: "hidden" }, children: /* @__PURE__ */ i(h, { ...p }) })
2841
2841
  ]
2842
2842
  }
2843
- ) : /* @__PURE__ */ i(ne, { children: `Unknown graph type: ${e}` });
2843
+ ) : /* @__PURE__ */ i(ee, { children: `Unknown graph type: ${e}` });
2844
2844
  };
2845
2845
  function wu(e) {
2846
2846
  const {
@@ -3127,7 +3127,7 @@ function gt(e) {
3127
3127
  }
3128
3128
  const Zs = (e) => /* @__PURE__ */ i(gt, { ...e, type: "primary", danger: !0 });
3129
3129
  function ea(e) {
3130
- const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = te(
3130
+ const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = ne(
3131
3131
  Ct
3132
3132
  ), { t: o } = me(), a = () => {
3133
3133
  if (n) {
@@ -3246,7 +3246,7 @@ function Eu(e) {
3246
3246
  ] }) });
3247
3247
  }
3248
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 ab = Object.values(sn), Ot = At.createContext(null), Pu = (e) => {
3249
+ const lb = Object.values(sn), Ot = At.createContext(null), Pu = (e) => {
3250
3250
  const {
3251
3251
  children: t,
3252
3252
  openAction: n,
@@ -3283,14 +3283,14 @@ const ab = Object.values(sn), Ot = At.createContext(null), Pu = (e) => {
3283
3283
  );
3284
3284
  };
3285
3285
  function Vo() {
3286
- return te(Ot) || {};
3286
+ return ne(Ot) || {};
3287
3287
  }
3288
3288
  const An = At.createContext(null), bi = async (e) => {
3289
3289
  var t;
3290
3290
  for (let n = 0; n < e.length; n++)
3291
3291
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
3292
3292
  }, Vu = (e, t) => {
3293
- const { children: n, globalValues: r = {} } = e, o = W(), a = W(), [s, l] = I(!1), c = te(
3293
+ const { children: n, globalValues: r = {} } = e, o = W(), a = W(), [s, l] = I(!1), c = ne(
3294
3294
  Ot
3295
3295
  ), { openAction: u } = c || {}, m = W([]), { t: d } = me();
3296
3296
  Dt(t, () => ({
@@ -3477,14 +3477,14 @@ const An = At.createContext(null), bi = async (e) => {
3477
3477
  actionData: void 0
3478
3478
  });
3479
3479
  }
3480
- return /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i(
3480
+ return /* @__PURE__ */ i(ee, { children: /* @__PURE__ */ i(
3481
3481
  An.Provider,
3482
3482
  {
3483
3483
  value: {
3484
3484
  processAction: b,
3485
3485
  globalValues: r
3486
3486
  },
3487
- children: /* @__PURE__ */ P(ne, { children: [
3487
+ children: /* @__PURE__ */ P(ee, { children: [
3488
3488
  n,
3489
3489
  /* @__PURE__ */ i(
3490
3490
  Tt,
@@ -3580,7 +3580,7 @@ const $u = _t(Vu), na = ({
3580
3580
  selectedRowItems: e,
3581
3581
  onRefreshParentValues: t
3582
3582
  }) => {
3583
- const n = te(
3583
+ const n = ne(
3584
3584
  An
3585
3585
  ), { processAction: r } = n || {};
3586
3586
  return D(
@@ -3774,7 +3774,7 @@ function Hu({
3774
3774
  totalItems: _,
3775
3775
  isActive: O,
3776
3776
  treeType: x
3777
- } = te(Ct), R = Gn(
3777
+ } = ne(Ct), R = Gn(
3778
3778
  sn.FEATURE_ADVANCED_EXPORT
3779
3779
  ), { t: E } = me(), [V, L] = I(!1), N = W(!0), B = D(() => {
3780
3780
  var X;
@@ -3909,12 +3909,12 @@ function Hu({
3909
3909
  });
3910
3910
  }, [we, E]);
3911
3911
  return /* @__PURE__ */ P(rt, { wrap: !0, children: [
3912
- S && /* @__PURE__ */ P(ne, { children: [
3912
+ S && /* @__PURE__ */ P(ee, { children: [
3913
3913
  /* @__PURE__ */ i(Qe, {}),
3914
3914
  /* @__PURE__ */ i(st, {}),
3915
3915
  /* @__PURE__ */ i(st, {})
3916
3916
  ] }),
3917
- !t && /* @__PURE__ */ P(ne, { children: [
3917
+ !t && /* @__PURE__ */ P(ee, { children: [
3918
3918
  /* @__PURE__ */ i(
3919
3919
  Eu,
3920
3920
  {
@@ -3981,7 +3981,7 @@ function Hu({
3981
3981
  onClick: B
3982
3982
  }
3983
3983
  ),
3984
- !t && /* @__PURE__ */ P(ne, { children: [
3984
+ !t && /* @__PURE__ */ P(ee, { children: [
3985
3985
  /* @__PURE__ */ i(st, {}),
3986
3986
  /* @__PURE__ */ i(
3987
3987
  Eo,
@@ -3997,7 +3997,7 @@ function Hu({
3997
3997
  /* @__PURE__ */ i(st, {}),
3998
3998
  /* @__PURE__ */ i(Nt, { icon: /* @__PURE__ */ i(Sr, {}), ...Y }),
3999
3999
  /* @__PURE__ */ i(Nt, { icon: /* @__PURE__ */ i(Cr, {}), ...k }),
4000
- R && /* @__PURE__ */ P(ne, { children: [
4000
+ R && /* @__PURE__ */ P(ee, { children: [
4001
4001
  /* @__PURE__ */ i(st, {}),
4002
4002
  /* @__PURE__ */ i(
4003
4003
  Nt,
@@ -4024,7 +4024,7 @@ function Hu({
4024
4024
  }
4025
4025
  ),
4026
4026
  /* @__PURE__ */ i(
4027
- Ug,
4027
+ Wg,
4028
4028
  {
4029
4029
  visible: V,
4030
4030
  onClose: () => L(!1),
@@ -4083,12 +4083,12 @@ const { useToken: Wu } = ze, { Title: Yu, Text: nr } = zt, Dr = ({
4083
4083
  totalItems: c,
4084
4084
  selectedRowItems: u,
4085
4085
  treeType: m
4086
- } = te(Ct), { t: d } = me(), { token: f } = Wu(), h = q(() => {
4086
+ } = ne(Ct), { t: d } = me(), { token: f } = Wu(), h = q(() => {
4087
4087
  if (!n)
4088
4088
  return null;
4089
4089
  if ((o == null ? void 0 : o.type) === "form" && a) {
4090
4090
  if (c === 0)
4091
- return /* @__PURE__ */ P(ne, { children: [
4091
+ return /* @__PURE__ */ P(ee, { children: [
4092
4092
  d("editingDocument"),
4093
4093
  " (id:",
4094
4094
  " ",
@@ -4102,7 +4102,7 @@ const { useToken: Wu } = ze, { Title: Yu, Text: nr } = zt, Dr = ({
4102
4102
  ")"
4103
4103
  ] });
4104
4104
  const p = (s ?? 0) + 1, g = m === "infinite" ? c : l == null ? void 0 : l.length;
4105
- return /* @__PURE__ */ P(ne, { children: [
4105
+ return /* @__PURE__ */ P(ee, { children: [
4106
4106
  d("register"),
4107
4107
  " ",
4108
4108
  p,
@@ -4120,14 +4120,14 @@ const { useToken: Wu } = ze, { Title: Yu, Text: nr } = zt, Dr = ({
4120
4120
  ")"
4121
4121
  ] });
4122
4122
  }
4123
- return (o == null ? void 0 : o.type) === "tree" && (u != null && u.length) ? u.length === 1 ? /* @__PURE__ */ P(ne, { children: [
4123
+ return (o == null ? void 0 : o.type) === "tree" && (u != null && u.length) ? u.length === 1 ? /* @__PURE__ */ P(ee, { children: [
4124
4124
  "1 ",
4125
4125
  d("selectedRegisters"),
4126
4126
  " - (id:",
4127
4127
  " ",
4128
4128
  /* @__PURE__ */ i(nr, { copyable: !0, children: u[0].id }),
4129
4129
  ")"
4130
- ] }) : /* @__PURE__ */ P(ne, { children: [
4130
+ ] }) : /* @__PURE__ */ P(ee, { children: [
4131
4131
  u.length,
4132
4132
  " ",
4133
4133
  d("selectedRegisters"),
@@ -4372,9 +4372,9 @@ const qu = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(la,
4372
4372
  )
4373
4373
  ] });
4374
4374
  }, Er = (e) => {
4375
- const { id: t, model: n, context: r = {} } = e, [o, a] = I(), [s, l] = I(), c = te(
4375
+ const { id: t, model: n, context: r = {} } = e, [o, a] = I(), [s, l] = I(), c = ne(
4376
4376
  Ot
4377
- ), { openRelate: u, openAction: m } = c || {}, d = te(
4377
+ ), { openRelate: u, openAction: m } = c || {}, d = ne(
4378
4378
  An
4379
4379
  ), { processAction: f } = d || {}, [h, p] = Xe(
4380
4380
  $.getHandler().getView
@@ -4476,9 +4476,9 @@ const qu = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(la,
4476
4476
  }, ef = (e) => {
4477
4477
  const { m2oField: t } = e;
4478
4478
  return t ? /* @__PURE__ */ P(rt, { children: [
4479
- /* @__PURE__ */ i(ne, { children: t.value }),
4479
+ /* @__PURE__ */ i(ee, { children: t.value }),
4480
4480
  /* @__PURE__ */ i(Er, { id: t.id, model: t.model })
4481
- ] }) : /* @__PURE__ */ i(ne, {});
4481
+ ] }) : /* @__PURE__ */ i(ee, {});
4482
4482
  }, tf = (e) => {
4483
4483
  const { value: t, context: n, selectionValues: r } = e, [o, a] = I(), [s, l] = I(!1), [c, u] = t ? t.split(",") : [], m = parseInt(u), d = D(async () => {
4484
4484
  if (!t || t && o)
@@ -4495,13 +4495,13 @@ const qu = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(la,
4495
4495
  if (ae(() => {
4496
4496
  d();
4497
4497
  }, [t]), !t && !s)
4498
- return /* @__PURE__ */ i(ne, {});
4498
+ return /* @__PURE__ */ i(ee, {});
4499
4499
  if (s)
4500
4500
  return /* @__PURE__ */ i(Pt, {});
4501
4501
  const f = r.get(c);
4502
4502
  return /* @__PURE__ */ P(rt, { children: [
4503
- /* @__PURE__ */ i(ne, { children: `${f}:` }),
4504
- /* @__PURE__ */ i(ne, { children: o }),
4503
+ /* @__PURE__ */ i(ee, { children: `${f}:` }),
4504
+ /* @__PURE__ */ i(ee, { children: o }),
4505
4505
  /* @__PURE__ */ i(Er, { id: m, model: c })
4506
4506
  ] });
4507
4507
  }, nf = (e) => {
@@ -4519,7 +4519,7 @@ function rf(e) {
4519
4519
  const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca, { ...e }) }), ca = (e) => {
4520
4520
  const { t } = me(), [n, r] = Xe(
4521
4521
  $.getHandler().readObjects
4522
- ), { getFieldValue: o } = te(Ge) || {}, { ooui: a, value: s } = e, [l, c] = I("default");
4522
+ ), { getFieldValue: o } = ne(Ge) || {}, { ooui: a, value: s } = e, [l, c] = I("default");
4523
4523
  let u = s, m = Wn, d = s;
4524
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);
4525
4525
  const f = D(async () => {
@@ -4613,7 +4613,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4613
4613
  if (!e)
4614
4614
  return null;
4615
4615
  const n = typeof e == "string" ? e.split(";").map((r) => r.trim()) : e;
4616
- return /* @__PURE__ */ i(ne, { children: n.map((r, o) => /* @__PURE__ */ i(
4616
+ return /* @__PURE__ */ i(ee, { children: n.map((r, o) => /* @__PURE__ */ i(
4617
4617
  yo,
4618
4618
  {
4619
4619
  closable: !!t,
@@ -4631,7 +4631,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4631
4631
  }) => {
4632
4632
  const { token: o } = ze.useToken(), [a, s] = I(
4633
4633
  e ? e.split(";").map((y) => y.trim()).filter((y) => y) : []
4634
- ), [l, c] = I(""), u = W(null), m = te(Ge), { elementHasLostFocus: d } = m || {}, f = D(
4634
+ ), [l, c] = I(""), u = W(null), m = ne(Ge), { elementHasLostFocus: d } = m || {}, f = D(
4635
4635
  (y) => {
4636
4636
  t && t(y.join(";"));
4637
4637
  },
@@ -4730,34 +4730,37 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4730
4730
  [e]
4731
4731
  ), pf = ({ value: e }) => q(() => {
4732
4732
  if (!e || e && e.length === 0)
4733
- return /* @__PURE__ */ i(ne, {});
4733
+ return /* @__PURE__ */ i(ee, {});
4734
4734
  const t = tt(
4735
4735
  e,
4736
4736
  Lt.date.dateInternalFormat
4737
4737
  ).format(Lt.date.dateDisplayFormat);
4738
- return /* @__PURE__ */ i(ne, { children: t });
4739
- }, [e]), hf = ({ value: e }) => q(() => {
4738
+ return /* @__PURE__ */ i(ee, { children: t });
4739
+ }, [e]), hf = ({
4740
+ value: e,
4741
+ ooui: t
4742
+ }) => q(() => e ? t.fieldType === "many2one" ? /* @__PURE__ */ i(ee, { children: e[1] }) : /* @__PURE__ */ i(ee, { children: e }) : /* @__PURE__ */ i(ee, {}), [e, t.fieldType]), gf = ({ value: e }) => q(() => {
4740
4743
  if (!e || e && e.length === 0)
4741
- return /* @__PURE__ */ i(ne, {});
4744
+ return /* @__PURE__ */ i(ee, {});
4742
4745
  const t = tt(
4743
4746
  e,
4744
4747
  Lt.time.dateInternalFormat
4745
4748
  ).format(Lt.time.dateDisplayFormat);
4746
- return /* @__PURE__ */ i(ne, { children: t });
4749
+ return /* @__PURE__ */ i(ee, { children: t });
4747
4750
  }, [e]), wi = ({
4748
4751
  value: e
4749
4752
  }) => q(() => {
4750
4753
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
4751
- return /* @__PURE__ */ i(ne, { children: `( ${t} )` });
4752
- }, [e]), gf = ({
4754
+ return /* @__PURE__ */ i(ee, { children: `( ${t} )` });
4755
+ }, [e]), yf = ({
4753
4756
  value: e
4754
- }) => q(() => /* @__PURE__ */ i(la, { value: e }), [e]), yf = ({ value: e }) => q(() => /* @__PURE__ */ i(ne, { children: aa(e) }), [e]), Si = ({ value: e }) => q(
4757
+ }) => q(() => /* @__PURE__ */ i(la, { value: e }), [e]), vf = ({ value: e }) => q(() => /* @__PURE__ */ i(ee, { children: aa(e) }), [e]), Si = ({ value: e }) => q(
4755
4758
  () => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: e }),
4756
4759
  [e]
4757
- ), vf = ({ value: e }) => q(
4760
+ ), bf = ({ value: e }) => q(
4758
4761
  () => /* @__PURE__ */ i(Ro, { value: e, style: { maxHeight: "30px" } }),
4759
4762
  [e]
4760
- ), bf = ({
4763
+ ), wf = ({
4761
4764
  value: e,
4762
4765
  key: t,
4763
4766
  ooui: n,
@@ -4765,20 +4768,20 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4765
4768
  }) => q(
4766
4769
  () => /* @__PURE__ */ i(as, { value: e, disabled: !0, showText: !0 }),
4767
4770
  [n, e]
4768
- ), wf = ({
4771
+ ), Sf = ({
4769
4772
  value: e,
4770
4773
  key: t,
4771
4774
  ooui: n,
4772
4775
  context: r
4773
- }) => q(() => /* @__PURE__ */ i(ca, { ooui: n, value: e }), [n, e]), Sf = ({
4776
+ }) => q(() => /* @__PURE__ */ i(ca, { ooui: n, value: e }), [n, e]), Cf = ({
4774
4777
  value: e,
4775
4778
  key: t,
4776
4779
  ooui: n,
4777
4780
  context: r
4778
4781
  }) => q(() => {
4779
4782
  let o = e;
4780
- return Array.isArray(e) && e.length === 2 && (o = e[0]), /* @__PURE__ */ i(ne, { children: n.selectionValues.get(o) });
4781
- }, [n, e]), Cf = ({
4783
+ return Array.isArray(e) && e.length === 2 && (o = e[0]), /* @__PURE__ */ i(ee, { children: n.selectionValues.get(o) });
4784
+ }, [n, e]), xf = ({
4782
4785
  value: e,
4783
4786
  key: t,
4784
4787
  ooui: n,
@@ -4793,12 +4796,12 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4793
4796
  }
4794
4797
  ),
4795
4798
  [r, n.selectionValues, e]
4796
- ), xf = ({
4799
+ ), Tf = ({
4797
4800
  value: e,
4798
4801
  key: t,
4799
4802
  ooui: n,
4800
4803
  context: r
4801
- }) => q(() => /* @__PURE__ */ i(nf, { ooui: n, value: e }), [n, e]), Tf = ({
4804
+ }) => q(() => /* @__PURE__ */ i(nf, { ooui: n, value: e }), [n, e]), If = ({
4802
4805
  value: e,
4803
4806
  key: t,
4804
4807
  ooui: n,
@@ -4849,20 +4852,21 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4849
4852
  text: mf,
4850
4853
  one2many: wi,
4851
4854
  many2many: wi,
4852
- progressbar: gf,
4853
- float_time: yf,
4854
- image: vf,
4855
+ progressbar: yf,
4856
+ float_time: vf,
4857
+ image: bf,
4855
4858
  integer: Si,
4856
4859
  float: Si,
4857
- reference: Cf,
4858
- tag: wf,
4859
- selection: Sf,
4860
+ reference: xf,
4861
+ tag: Sf,
4862
+ selection: Cf,
4860
4863
  date: pf,
4861
- datetime: hf,
4862
- avatar: xf,
4863
- tags: Tf,
4864
+ datetime: gf,
4865
+ avatar: Tf,
4866
+ tags: If,
4864
4867
  email: uf,
4865
- colorPicker: bf
4868
+ colorPicker: wf,
4869
+ char: hf
4866
4870
  }, fa = ({
4867
4871
  elementRef: e,
4868
4872
  offset: t = 0,
@@ -4878,7 +4882,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4878
4882
  };
4879
4883
  return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
4880
4884
  }, [e, ...n]), q(() => r, [r]) - t;
4881
- }, If = (e) => {
4885
+ }, Af = (e) => {
4882
4886
  const t = Ft(async () => {
4883
4887
  if (!e)
4884
4888
  return;
@@ -4891,7 +4895,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4891
4895
  [e]
4892
4896
  );
4893
4897
  return { getColumnState: t, updateColumnState: n };
4894
- }, Af = (e) => {
4898
+ }, Ff = (e) => {
4895
4899
  ae(() => () => {
4896
4900
  n(), o();
4897
4901
  }, []);
@@ -4925,16 +4929,16 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4925
4929
  [e]
4926
4930
  );
4927
4931
  return { getColumnState: a, updateColumnState: s };
4928
- }, Ff = (e) => {
4932
+ }, _f = (e) => {
4929
4933
  const t = Gn(
4930
4934
  sn.FEATURE_USERVIEWPREFS
4931
4935
  ), {
4932
4936
  getColumnState: n,
4933
4937
  updateColumnState: r
4934
- } = If(e), {
4938
+ } = Af(e), {
4935
4939
  getColumnState: o,
4936
4940
  updateColumnState: a
4937
- } = Af(e), s = Ft(async () => {
4941
+ } = Ff(e), s = Ft(async () => {
4938
4942
  if (!t)
4939
4943
  return n();
4940
4944
  try {
@@ -4966,7 +4970,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
4966
4970
  const [n, r] = I(!0), o = W(void 0), a = W(!1), {
4967
4971
  getColumnState: s,
4968
4972
  updateColumnState: l
4969
- } = Ff(e), c = D(async () => {
4973
+ } = _f(e), c = D(async () => {
4970
4974
  if (!(a.current || t)) {
4971
4975
  a.current = !0, r(!0);
4972
4976
  try {
@@ -5095,7 +5099,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5095
5099
  ]
5096
5100
  }
5097
5101
  );
5098
- }, { Text: xi } = zt, _f = ({
5102
+ }, { Text: xi } = zt, Of = ({
5099
5103
  totalRows: e,
5100
5104
  selectedRowKeys: t,
5101
5105
  allRowSelectedMode: n
@@ -5108,7 +5112,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5108
5112
  className: "pb-4",
5109
5113
  style: { height: 40, maxHeight: 40, overflow: "hidden" },
5110
5114
  children: [
5111
- /* @__PURE__ */ i(Oe, { span: 12, children: n ? /* @__PURE__ */ i("span", { children: `${t.length} ${r("selectedRegisters")}` }) : /* @__PURE__ */ i(Of, { selectedRowKeys: t }) }),
5115
+ /* @__PURE__ */ i(Oe, { span: 12, children: n ? /* @__PURE__ */ i("span", { children: `${t.length} ${r("selectedRegisters")}` }) : /* @__PURE__ */ i(Rf, { selectedRowKeys: t }) }),
5112
5116
  /* @__PURE__ */ P(Oe, { span: 12, style: { paddingRight: 10 }, className: "text-right", children: [
5113
5117
  e === void 0 && /* @__PURE__ */ i(Qe, {}),
5114
5118
  e != null && `${r("totalRegisters")} ${e}`
@@ -5116,12 +5120,12 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5116
5120
  ]
5117
5121
  }
5118
5122
  );
5119
- }, Of = ({
5123
+ }, Rf = ({
5120
5124
  selectedRowKeys: e
5121
5125
  }) => {
5122
5126
  const { t } = me();
5123
5127
  if (e.length === 1)
5124
- return /* @__PURE__ */ P(ne, { children: [
5128
+ return /* @__PURE__ */ P(ee, { children: [
5125
5129
  "1 ",
5126
5130
  t("selectedRegisters"),
5127
5131
  " - (id:",
@@ -5130,7 +5134,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5130
5134
  ")"
5131
5135
  ] });
5132
5136
  if (e.length > 1)
5133
- return /* @__PURE__ */ P(ne, { children: [
5137
+ return /* @__PURE__ */ P(ee, { children: [
5134
5138
  e.length,
5135
5139
  " ",
5136
5140
  t("selectedRegisters") + " ",
@@ -5143,7 +5147,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5143
5147
  }
5144
5148
  )
5145
5149
  ] });
5146
- }, Rf = (e) => {
5150
+ }, Df = (e) => {
5147
5151
  const t = Lo();
5148
5152
  return /* @__PURE__ */ i(Pe, { ...e, layout: "vertical", children: /* @__PURE__ */ i(
5149
5153
  vo.RangePicker,
@@ -5176,7 +5180,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5176
5180
  }
5177
5181
  }
5178
5182
  );
5179
- }, Df = (e) => {
5183
+ }, Ef = (e) => {
5180
5184
  const { ooui: t, showLabel: n = !1 } = e, { label: r, id: o } = t, a = Lo(), s = [
5181
5185
  new Zr({
5182
5186
  name: o + "#date",
@@ -5187,7 +5191,7 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5187
5191
  label: ""
5188
5192
  })
5189
5193
  ];
5190
- return /* @__PURE__ */ P(ne, { children: [
5194
+ return /* @__PURE__ */ P(ee, { children: [
5191
5195
  n && /* @__PURE__ */ i(
5192
5196
  Ir,
5193
5197
  {
@@ -5210,10 +5214,10 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5210
5214
  locale: a
5211
5215
  }
5212
5216
  ) }) }),
5213
- /* @__PURE__ */ i(Oe, { children: /* @__PURE__ */ i(Pe, { ...e, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ i(Ef, {}) }) })
5217
+ /* @__PURE__ */ i(Oe, { children: /* @__PURE__ */ i(Pe, { ...e, ooui: s[1], showLabel: !1, children: /* @__PURE__ */ i(Pf, {}) }) })
5214
5218
  ] })
5215
5219
  ] });
5216
- }, Ef = ({
5220
+ }, Pf = ({
5217
5221
  value: e,
5218
5222
  onChange: t
5219
5223
  }) => /* @__PURE__ */ P("div", { style: { marginTop: 5 }, children: [
@@ -5241,9 +5245,9 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5241
5245
  }
5242
5246
  }
5243
5247
  )
5244
- ] }), { defaultAlgorithm: Pf, defaultSeed: Vf } = ze, kf = Pf(Vf), Ho = Ze((e) => {
5245
- const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: a } = t, s = te(Ge), { elementHasLostFocus: l } = s || {}, c = q(() => a && !o, [a, o]), u = q(
5246
- () => c ? $f : gr,
5248
+ ] }), { defaultAlgorithm: Vf, defaultSeed: kf } = ze, $f = Vf(kf), Ho = Ze((e) => {
5249
+ const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: a } = t, s = ne(Ge), { elementHasLostFocus: l } = s || {}, c = q(() => a && !o, [a, o]), u = q(
5250
+ () => c ? Mf : gr,
5247
5251
  [c]
5248
5252
  ), m = D((f) => f ? /* @__PURE__ */ i(Fr, { content: f }) : null, []), d = D((f) => `${f}`.replace(/[^0-9.-]+/g, ""), []);
5249
5253
  return /* @__PURE__ */ i(Pe, { required: c, type: "number", ...e, children: /* @__PURE__ */ i(
@@ -5263,13 +5267,13 @@ const of = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ca,
5263
5267
  ) });
5264
5268
  });
5265
5269
  Ho.displayName = "Float";
5266
- const $f = mt(gr)`
5270
+ const Mf = mt(gr)`
5267
5271
  &.ant-input-number {
5268
- background-color: ${kf.colorPrimaryBg};
5272
+ background-color: ${$f.colorPrimaryBg};
5269
5273
  }
5270
- `, { useToken: Mf } = ze, { defaultAlgorithm: Lf, defaultSeed: Nf } = ze, jf = Lf(Nf), Ln = Ze((e) => {
5271
- const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: a } = t, { token: s } = Mf(), l = a && !o ? { backgroundColor: s.colorPrimaryBg } : void 0, c = te(Ge), { elementHasLostFocus: u } = c || {}, m = q(() => a && !o, [a, o]), d = q(
5272
- () => m ? Bf : gr,
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(
5276
+ () => m ? Hf : gr,
5273
5277
  [m]
5274
5278
  ), 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(
5275
5279
  (g) => {
@@ -5296,12 +5300,12 @@ const $f = mt(gr)`
5296
5300
  ) });
5297
5301
  });
5298
5302
  Ln.displayName = "Integer";
5299
- const Bf = mt(gr)`
5303
+ const Hf = mt(gr)`
5300
5304
  &.ant-input-number {
5301
- background-color: ${jf.colorPrimaryBg};
5305
+ background-color: ${Bf.colorPrimaryBg};
5302
5306
  }
5303
5307
  `;
5304
- function Hf(e) {
5308
+ function Uf(e) {
5305
5309
  const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: a } = t, s = t instanceof eo ? Ln : Ho, l = (c) => /* @__PURE__ */ i(
5306
5310
  s,
5307
5311
  {
@@ -5343,17 +5347,17 @@ function Hf(e) {
5343
5347
  )
5344
5348
  ] });
5345
5349
  }
5346
- const { defaultAlgorithm: Uf, defaultSeed: Wf } = ze, Yf = Uf(Wf), { Option: Gf } = rn, Kf = (e) => {
5350
+ const { defaultAlgorithm: Wf, defaultSeed: Yf } = ze, Gf = Wf(Yf), { Option: Kf } = rn, qf = (e) => {
5347
5351
  const { ooui: t } = e, { required: n } = t;
5348
- return /* @__PURE__ */ i(Pe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(qf, { ...e }) });
5349
- }, qf = (e) => {
5352
+ return /* @__PURE__ */ i(Pe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(zf, { ...e }) });
5353
+ }, zf = (e) => {
5350
5354
  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.filter((d) => {
5351
5355
  const [f] = d;
5352
5356
  return r ? !r.includes(f) : !0;
5353
5357
  }).map((d) => {
5354
5358
  const [f, h] = d;
5355
- return /* @__PURE__ */ i(Gf, { value: h, children: h }, f);
5356
- }), u = s && !a ? zf : rn;
5359
+ return /* @__PURE__ */ i(Kf, { value: h, children: h }, f);
5360
+ }), u = s && !a ? Jf : rn;
5357
5361
  function m(d) {
5358
5362
  const f = d.map((h) => {
5359
5363
  const p = l.find(([g, y]) => h === y);
@@ -5376,9 +5380,9 @@ const { defaultAlgorithm: Uf, defaultSeed: Wf } = ze, Yf = Uf(Wf), { Option: Gf
5376
5380
  children: c
5377
5381
  }
5378
5382
  );
5379
- }, zf = mt(rn)`
5383
+ }, Jf = mt(rn)`
5380
5384
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
5381
- background-color: ${Yf.colorPrimaryBg};
5385
+ background-color: ${Gf.colorPrimaryBg};
5382
5386
  }
5383
5387
  `;
5384
5388
  function pa(e) {
@@ -5401,13 +5405,13 @@ function pa(e) {
5401
5405
  case Wt.progressbar:
5402
5406
  case Wt.float_time:
5403
5407
  case Wt.integer:
5404
- return /* @__PURE__ */ i(Hf, { ooui: t, showLabel: !0 });
5408
+ return /* @__PURE__ */ i(Uf, { ooui: t, showLabel: !0 });
5405
5409
  case Wt.date:
5406
- return /* @__PURE__ */ i(Rf, { ooui: t, layout: "vertical", showLabel: !0 });
5407
- case Wt.datetime:
5408
5410
  return /* @__PURE__ */ i(Df, { ooui: t, layout: "vertical", showLabel: !0 });
5411
+ case Wt.datetime:
5412
+ return /* @__PURE__ */ i(Ef, { ooui: t, layout: "vertical", showLabel: !0 });
5409
5413
  case Wt.selection:
5410
- return /* @__PURE__ */ i(Kf, { layout: "vertical", ooui: t, showLabel: !0 });
5414
+ return /* @__PURE__ */ i(qf, { layout: "vertical", ooui: t, showLabel: !0 });
5411
5415
  default:
5412
5416
  return /* @__PURE__ */ i(
5413
5417
  Vs,
@@ -5420,14 +5424,14 @@ function pa(e) {
5420
5424
  );
5421
5425
  }
5422
5426
  }
5423
- const { useToken: Jf } = ze, { Title: Qf } = zt, { Header: Xf, Content: Zf, Footer: em } = ls, tm = ({
5427
+ const { useToken: Qf } = ze, { Title: Xf } = zt, { Header: Zf, Content: em, Footer: tm } = ls, nm = ({
5424
5428
  isOpen: e,
5425
5429
  onClose: t,
5426
5430
  children: n,
5427
5431
  title: r,
5428
5432
  footer: o
5429
5433
  }) => {
5430
- const [a, s] = I(e), l = W(null), { token: c } = Jf(), u = D(
5434
+ const [a, s] = I(e), l = W(null), { token: c } = Qf(), u = D(
5431
5435
  (h) => {
5432
5436
  h.preventDefault(), h.stopPropagation(), t();
5433
5437
  },
@@ -5456,7 +5460,7 @@ const { useToken: Jf } = ze, { Title: Qf } = zt, { Header: Xf, Content: Zf, Foot
5456
5460
  padding: "0 16px",
5457
5461
  borderBottom: "1px solid #f0f0f0"
5458
5462
  };
5459
- return /* @__PURE__ */ i(Wc, { children: e && /* @__PURE__ */ P(ne, { children: [
5463
+ return /* @__PURE__ */ i(Wc, { children: e && /* @__PURE__ */ P(ee, { children: [
5460
5464
  /* @__PURE__ */ i(
5461
5465
  si.div,
5462
5466
  {
@@ -5508,8 +5512,8 @@ const { useToken: Jf } = ze, { Title: Qf } = zt, { Header: Xf, Content: Zf, Foot
5508
5512
  flexDirection: "column"
5509
5513
  },
5510
5514
  children: [
5511
- /* @__PURE__ */ P(Xf, { style: f, children: [
5512
- /* @__PURE__ */ i(Qf, { level: 3, style: { margin: 0, flex: 1 }, children: r }),
5515
+ /* @__PURE__ */ P(Zf, { style: f, children: [
5516
+ /* @__PURE__ */ i(Xf, { level: 3, style: { margin: 0, flex: 1 }, children: r }),
5513
5517
  /* @__PURE__ */ i(
5514
5518
  We,
5515
5519
  {
@@ -5521,7 +5525,7 @@ const { useToken: Jf } = ze, { Title: Qf } = zt, { Header: Xf, Content: Zf, Foot
5521
5525
  )
5522
5526
  ] }),
5523
5527
  /* @__PURE__ */ i(
5524
- Zf,
5528
+ em,
5525
5529
  {
5526
5530
  style: {
5527
5531
  flex: 1,
@@ -5531,7 +5535,7 @@ const { useToken: Jf } = ze, { Title: Qf } = zt, { Header: Xf, Content: Zf, Foot
5531
5535
  }
5532
5536
  ),
5533
5537
  o && /* @__PURE__ */ i(
5534
- em,
5538
+ tm,
5535
5539
  {
5536
5540
  style: {
5537
5541
  ...f,
@@ -5549,14 +5553,14 @@ const { useToken: Jf } = ze, { Title: Qf } = zt, { Header: Xf, Content: Zf, Foot
5549
5553
  )
5550
5554
  ] }) });
5551
5555
  };
5552
- var nm = "Expected a function", Ti = 0 / 0, rm = "[object Symbol]", om = /^\s+|\s+$/g, im = /^[-+]0x[0-9a-f]+$/i, sm = /^0b[01]+$/i, am = /^0o[0-7]+$/i, lm = parseInt, cm = typeof Xt == "object" && Xt && Xt.Object === Object && Xt, dm = typeof self == "object" && self && self.Object === Object && self, um = cm || dm || Function("return this")(), fm = Object.prototype, mm = fm.toString, pm = Math.max, hm = Math.min, Wr = function() {
5553
- return um.Date.now();
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() {
5557
+ return fm.Date.now();
5554
5558
  };
5555
- function gm(e, t, n) {
5559
+ function ym(e, t, n) {
5556
5560
  var r, o, a, s, l, c, u = 0, m = !1, d = !1, f = !0;
5557
5561
  if (typeof e != "function")
5558
- throw new TypeError(nm);
5559
- t = Ii(t) || 0, oo(n) && (m = !!n.leading, d = "maxWait" in n, a = d ? pm(Ii(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
5562
+ throw new TypeError(rm);
5563
+ t = Ii(t) || 0, oo(n) && (m = !!n.leading, d = "maxWait" in n, a = d ? hm(Ii(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
5560
5564
  function h(F) {
5561
5565
  var w = r, T = o;
5562
5566
  return r = o = void 0, u = F, s = e.apply(T, w), s;
@@ -5566,7 +5570,7 @@ function gm(e, t, n) {
5566
5570
  }
5567
5571
  function g(F) {
5568
5572
  var w = F - c, T = F - u, _ = t - w;
5569
- return d ? hm(_, a - T) : _;
5573
+ return d ? gm(_, a - T) : _;
5570
5574
  }
5571
5575
  function y(F) {
5572
5576
  var w = F - c, T = F - u;
@@ -5603,16 +5607,16 @@ function oo(e) {
5603
5607
  var t = typeof e;
5604
5608
  return !!e && (t == "object" || t == "function");
5605
5609
  }
5606
- function ym(e) {
5610
+ function vm(e) {
5607
5611
  return !!e && typeof e == "object";
5608
5612
  }
5609
- function vm(e) {
5610
- return typeof e == "symbol" || ym(e) && mm.call(e) == rm;
5613
+ function bm(e) {
5614
+ return typeof e == "symbol" || vm(e) && pm.call(e) == om;
5611
5615
  }
5612
5616
  function Ii(e) {
5613
5617
  if (typeof e == "number")
5614
5618
  return e;
5615
- if (vm(e))
5619
+ if (bm(e))
5616
5620
  return Ti;
5617
5621
  if (oo(e)) {
5618
5622
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -5620,17 +5624,17 @@ function Ii(e) {
5620
5624
  }
5621
5625
  if (typeof e != "string")
5622
5626
  return e === 0 ? e : +e;
5623
- e = e.replace(om, "");
5624
- var n = sm.test(e);
5625
- return n || am.test(e) ? lm(e.slice(2), n ? 2 : 8) : im.test(e) ? Ti : +e;
5627
+ e = e.replace(im, "");
5628
+ var n = am.test(e);
5629
+ return n || lm.test(e) ? cm(e.slice(2), n ? 2 : 8) : sm.test(e) ? Ti : +e;
5626
5630
  }
5627
- var bm = gm;
5628
- const wm = /* @__PURE__ */ Ds(bm);
5631
+ var wm = ym;
5632
+ const Sm = /* @__PURE__ */ Ds(wm);
5629
5633
  var Ai = Object.prototype.toString, ha = function(t) {
5630
5634
  var n = Ai.call(t), r = n === "[object Arguments]";
5631
5635
  return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Ai.call(t.callee) === "[object Function]"), r;
5632
5636
  }, Yr, Fi;
5633
- function Sm() {
5637
+ function Cm() {
5634
5638
  if (Fi)
5635
5639
  return Yr;
5636
5640
  Fi = 1;
@@ -5718,9 +5722,9 @@ function Sm() {
5718
5722
  }
5719
5723
  return Yr = e, Yr;
5720
5724
  }
5721
- var Cm = Array.prototype.slice, xm = ha, _i = Object.keys, or = _i ? function(t) {
5725
+ var xm = Array.prototype.slice, Tm = ha, _i = Object.keys, or = _i ? function(t) {
5722
5726
  return _i(t);
5723
- } : Sm(), Oi = Object.keys;
5727
+ } : Cm(), Oi = Object.keys;
5724
5728
  or.shim = function() {
5725
5729
  if (Object.keys) {
5726
5730
  var t = function() {
@@ -5728,7 +5732,7 @@ or.shim = function() {
5728
5732
  return n && n.length === arguments.length;
5729
5733
  }(1, 2);
5730
5734
  t || (Object.keys = function(r) {
5731
- return xm(r) ? Oi(Cm.call(r)) : Oi(r);
5735
+ return Tm(r) ? Oi(xm.call(r)) : Oi(r);
5732
5736
  });
5733
5737
  } else
5734
5738
  Object.keys = or;
@@ -5757,18 +5761,18 @@ var ga = or, ya = function() {
5757
5761
  return !1;
5758
5762
  }
5759
5763
  return !0;
5760
- }, Tm = ya, Uo = function() {
5761
- return Tm() && !!Symbol.toStringTag;
5762
- }, Ri = typeof Symbol < "u" && Symbol, Im = ya, Am = function() {
5763
- return typeof Ri != "function" || typeof Symbol != "function" || typeof Ri("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Im();
5764
+ }, Im = ya, Uo = function() {
5765
+ return Im() && !!Symbol.toStringTag;
5766
+ }, Ri = typeof Symbol < "u" && Symbol, Am = ya, Fm = function() {
5767
+ return typeof Ri != "function" || typeof Symbol != "function" || typeof Ri("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Am();
5764
5768
  }, Di = {
5765
5769
  foo: {}
5766
- }, Fm = Object, _m = function() {
5767
- return { __proto__: Di }.foo === Di.foo && !({ __proto__: null } instanceof Fm);
5768
- }, Om = "Function.prototype.bind called on incompatible ", Gr = Array.prototype.slice, Rm = Object.prototype.toString, Dm = "[object Function]", Em = function(t) {
5770
+ }, _m = Object, Om = function() {
5771
+ return { __proto__: Di }.foo === Di.foo && !({ __proto__: null } instanceof _m);
5772
+ }, Rm = "Function.prototype.bind called on incompatible ", Gr = Array.prototype.slice, Dm = Object.prototype.toString, Em = "[object Function]", Pm = function(t) {
5769
5773
  var n = this;
5770
- if (typeof n != "function" || Rm.call(n) !== Dm)
5771
- throw new TypeError(Om + n);
5774
+ if (typeof n != "function" || Dm.call(n) !== Em)
5775
+ throw new TypeError(Rm + n);
5772
5776
  for (var r = Gr.call(arguments, 1), o, a = function() {
5773
5777
  if (this instanceof o) {
5774
5778
  var m = n.apply(
@@ -5789,7 +5793,7 @@ var ga = or, ya = function() {
5789
5793
  u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
5790
5794
  }
5791
5795
  return o;
5792
- }, Pm = Em, va = Function.prototype.bind || Pm, Ei = {}.hasOwnProperty, Kr = Function.prototype.call, Vm = Kr.bind ? Kr.bind(Ei) : function(e, t) {
5796
+ }, Vm = Pm, va = Function.prototype.bind || Vm, Ei = {}.hasOwnProperty, Kr = Function.prototype.call, km = Kr.bind ? Kr.bind(Ei) : function(e, t) {
5793
5797
  return Kr.call(Ei, e, t);
5794
5798
  }, Ne, wn = SyntaxError, ba = Function, hn = TypeError, qr = function(e) {
5795
5799
  try {
@@ -5805,7 +5809,7 @@ if (en)
5805
5809
  }
5806
5810
  var zr = function() {
5807
5811
  throw new hn();
5808
- }, km = en ? function() {
5812
+ }, $m = en ? function() {
5809
5813
  try {
5810
5814
  return arguments.callee, zr;
5811
5815
  } catch {
@@ -5815,9 +5819,9 @@ var zr = function() {
5815
5819
  return zr;
5816
5820
  }
5817
5821
  }
5818
- }() : zr, cn = Am(), $m = _m(), ct = Object.getPrototypeOf || ($m ? function(e) {
5822
+ }() : zr, cn = Fm(), Mm = Om(), ct = Object.getPrototypeOf || (Mm ? function(e) {
5819
5823
  return e.__proto__;
5820
- } : null), fn = {}, Mm = typeof Uint8Array > "u" || !ct ? Ne : ct(Uint8Array), tn = {
5824
+ } : null), fn = {}, Lm = typeof Uint8Array > "u" || !ct ? Ne : ct(Uint8Array), tn = {
5821
5825
  "%AggregateError%": typeof AggregateError > "u" ? Ne : AggregateError,
5822
5826
  "%Array%": Array,
5823
5827
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? Ne : ArrayBuffer,
@@ -5874,8 +5878,8 @@ var zr = function() {
5874
5878
  "%StringIteratorPrototype%": cn && ct ? ct(""[Symbol.iterator]()) : Ne,
5875
5879
  "%Symbol%": cn ? Symbol : Ne,
5876
5880
  "%SyntaxError%": wn,
5877
- "%ThrowTypeError%": km,
5878
- "%TypedArray%": Mm,
5881
+ "%ThrowTypeError%": $m,
5882
+ "%TypedArray%": Lm,
5879
5883
  "%TypeError%": hn,
5880
5884
  "%Uint8Array%": typeof Uint8Array > "u" ? Ne : Uint8Array,
5881
5885
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Ne : Uint8ClampedArray,
@@ -5890,10 +5894,10 @@ if (ct)
5890
5894
  try {
5891
5895
  null.error;
5892
5896
  } catch (e) {
5893
- var Lm = ct(ct(e));
5894
- tn["%Error.prototype%"] = Lm;
5897
+ var Nm = ct(ct(e));
5898
+ tn["%Error.prototype%"] = Nm;
5895
5899
  }
5896
- var Nm = function e(t) {
5900
+ var jm = function e(t) {
5897
5901
  var n;
5898
5902
  if (t === "%AsyncFunction%")
5899
5903
  n = qr("async function () {}");
@@ -5961,21 +5965,21 @@ var Nm = function e(t) {
5961
5965
  "%URIErrorPrototype%": ["URIError", "prototype"],
5962
5966
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
5963
5967
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
5964
- }, qn = va, fr = Vm, jm = qn.call(Function.call, Array.prototype.concat), Bm = qn.call(Function.apply, Array.prototype.splice), Vi = qn.call(Function.call, String.prototype.replace), mr = qn.call(Function.call, String.prototype.slice), Hm = qn.call(Function.call, RegExp.prototype.exec), Um = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Wm = /\\(\\)?/g, Ym = function(t) {
5968
+ }, qn = va, fr = km, Bm = qn.call(Function.call, Array.prototype.concat), Hm = qn.call(Function.apply, Array.prototype.splice), Vi = qn.call(Function.call, String.prototype.replace), mr = qn.call(Function.call, String.prototype.slice), Um = qn.call(Function.call, RegExp.prototype.exec), Wm = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ym = /\\(\\)?/g, Gm = function(t) {
5965
5969
  var n = mr(t, 0, 1), r = mr(t, -1);
5966
5970
  if (n === "%" && r !== "%")
5967
5971
  throw new wn("invalid intrinsic syntax, expected closing `%`");
5968
5972
  if (r === "%" && n !== "%")
5969
5973
  throw new wn("invalid intrinsic syntax, expected opening `%`");
5970
5974
  var o = [];
5971
- return Vi(t, Um, function(a, s, l, c) {
5972
- o[o.length] = l ? Vi(c, Wm, "$1") : s || a;
5975
+ return Vi(t, Wm, function(a, s, l, c) {
5976
+ o[o.length] = l ? Vi(c, Ym, "$1") : s || a;
5973
5977
  }), o;
5974
- }, Gm = function(t, n) {
5978
+ }, Km = function(t, n) {
5975
5979
  var r = t, o;
5976
5980
  if (fr(Pi, r) && (o = Pi[r], r = "%" + o[0] + "%"), fr(tn, r)) {
5977
5981
  var a = tn[r];
5978
- if (a === fn && (a = Nm(r)), typeof a > "u" && !n)
5982
+ if (a === fn && (a = jm(r)), typeof a > "u" && !n)
5979
5983
  throw new hn("intrinsic " + t + " exists, but is not available. Please file an issue!");
5980
5984
  return {
5981
5985
  alias: o,
@@ -5989,10 +5993,10 @@ var Nm = function e(t) {
5989
5993
  throw new hn("intrinsic name must be a non-empty string");
5990
5994
  if (arguments.length > 1 && typeof n != "boolean")
5991
5995
  throw new hn('"allowMissing" argument must be a boolean');
5992
- if (Hm(/^%?[^%]*%?$/, t) === null)
5996
+ if (Um(/^%?[^%]*%?$/, t) === null)
5993
5997
  throw new wn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
5994
- var r = Ym(t), o = r.length > 0 ? r[0] : "", a = Gm("%" + o + "%", n), s = a.name, l = a.value, c = !1, u = a.alias;
5995
- u && (o = u[0], Bm(r, jm([0, 1], u)));
5998
+ var r = Gm(t), o = r.length > 0 ? r[0] : "", a = Km("%" + o + "%", n), s = a.name, l = a.value, c = !1, u = a.alias;
5999
+ u && (o = u[0], Hm(r, Bm([0, 1], u)));
5996
6000
  for (var m = 1, d = !0; m < r.length; m += 1) {
5997
6001
  var f = r[m], h = mr(f, 0, 1), p = mr(f, -1);
5998
6002
  if ((h === '"' || h === "'" || h === "`" || p === '"' || p === "'" || p === "`") && h !== p)
@@ -6040,18 +6044,18 @@ var Nm = function e(t) {
6040
6044
  };
6041
6045
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
6042
6046
  })(wa);
6043
- var Wo = wa.exports, Sa = zn, Ca = Wo, Km = Ca(Sa("String.prototype.indexOf")), xa = function(t, n) {
6047
+ var Wo = wa.exports, Sa = zn, Ca = Wo, qm = Ca(Sa("String.prototype.indexOf")), xa = function(t, n) {
6044
6048
  var r = Sa(t, !!n);
6045
- return typeof r == "function" && Km(t, ".prototype.") > -1 ? Ca(r) : r;
6046
- }, qm = Uo(), zm = xa, io = zm("Object.prototype.toString"), Vr = function(t) {
6047
- return qm && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : io(t) === "[object Arguments]";
6049
+ return typeof r == "function" && qm(t, ".prototype.") > -1 ? Ca(r) : r;
6050
+ }, zm = Uo(), Jm = xa, io = Jm("Object.prototype.toString"), Vr = function(t) {
6051
+ return zm && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : io(t) === "[object Arguments]";
6048
6052
  }, Ta = function(t) {
6049
6053
  return Vr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && io(t) !== "[object Array]" && io(t.callee) === "[object Function]";
6050
- }, Jm = function() {
6054
+ }, Qm = function() {
6051
6055
  return Vr(arguments);
6052
6056
  }();
6053
6057
  Vr.isLegacyArguments = Ta;
6054
- var Qm = Jm ? Vr : Ta, Xm = zn, so = Xm("%Object.defineProperty%", !0), ao = function() {
6058
+ var Xm = Qm ? Vr : Ta, Zm = zn, so = Zm("%Object.defineProperty%", !0), ao = function() {
6055
6059
  if (so)
6056
6060
  try {
6057
6061
  return so({}, "a", { value: 1 }), !0;
@@ -6070,7 +6074,7 @@ ao.hasArrayLengthDefineBug = function() {
6070
6074
  }
6071
6075
  };
6072
6076
  var Yo = ao, Jr, ki;
6073
- function Zm() {
6077
+ function ep() {
6074
6078
  if (ki)
6075
6079
  return Jr;
6076
6080
  ki = 1;
@@ -6083,7 +6087,7 @@ function Zm() {
6083
6087
  }
6084
6088
  return Jr = t, Jr;
6085
6089
  }
6086
- var ep = Yo(), Go = zn, $i = ep && Go("%Object.defineProperty%", !0), tp = Go("%SyntaxError%"), dn = Go("%TypeError%"), Mi = Zm(), Ia = function(t, n, r) {
6090
+ var tp = Yo(), Go = zn, $i = tp && Go("%Object.defineProperty%", !0), np = Go("%SyntaxError%"), dn = Go("%TypeError%"), Mi = ep(), Ia = function(t, n, r) {
6087
6091
  if (!t || typeof t != "object" && typeof t != "function")
6088
6092
  throw new dn("`obj` must be an object or a function`");
6089
6093
  if (typeof n != "string" && typeof n != "symbol")
@@ -6107,45 +6111,45 @@ var ep = Yo(), Go = zn, $i = ep && Go("%Object.defineProperty%", !0), tp = Go("%
6107
6111
  else if (l || !o && !a && !s)
6108
6112
  t[n] = r;
6109
6113
  else
6110
- throw new tp("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
6111
- }, np = ga, rp = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", op = Object.prototype.toString, ip = Array.prototype.concat, Li = Ia, sp = function(e) {
6112
- return typeof e == "function" && op.call(e) === "[object Function]";
6113
- }, Aa = Yo(), ap = function(e, t, n, r) {
6114
+ 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) {
6116
+ return typeof e == "function" && ip.call(e) === "[object Function]";
6117
+ }, Aa = Yo(), lp = function(e, t, n, r) {
6114
6118
  if (t in e) {
6115
6119
  if (r === !0) {
6116
6120
  if (e[t] === n)
6117
6121
  return;
6118
- } else if (!sp(r) || !r())
6122
+ } else if (!ap(r) || !r())
6119
6123
  return;
6120
6124
  }
6121
6125
  Aa ? Li(e, t, n, !0) : Li(e, t, n);
6122
6126
  }, Fa = function(e, t) {
6123
- var n = arguments.length > 2 ? arguments[2] : {}, r = np(t);
6124
- rp && (r = ip.call(r, Object.getOwnPropertySymbols(t)));
6127
+ var n = arguments.length > 2 ? arguments[2] : {}, r = rp(t);
6128
+ op && (r = sp.call(r, Object.getOwnPropertySymbols(t)));
6125
6129
  for (var o = 0; o < r.length; o += 1)
6126
- ap(e, r[o], t[r[o]], n[r[o]]);
6130
+ lp(e, r[o], t[r[o]], n[r[o]]);
6127
6131
  };
6128
6132
  Fa.supportsDescriptors = !!Aa;
6129
6133
  var Jn = Fa, Ni = function(e) {
6130
6134
  return e !== e;
6131
6135
  }, _a = function(t, n) {
6132
6136
  return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || Ni(t) && Ni(n));
6133
- }, lp = _a, Oa = function() {
6134
- return typeof Object.is == "function" ? Object.is : lp;
6135
- }, cp = Oa, dp = Jn, up = function() {
6136
- var t = cp();
6137
- return dp(Object, { is: t }, {
6137
+ }, cp = _a, Oa = function() {
6138
+ return typeof Object.is == "function" ? Object.is : cp;
6139
+ }, dp = Oa, up = Jn, fp = function() {
6140
+ var t = dp();
6141
+ return up(Object, { is: t }, {
6138
6142
  is: function() {
6139
6143
  return Object.is !== t;
6140
6144
  }
6141
6145
  }), t;
6142
- }, fp = Jn, mp = Wo, pp = _a, Ra = Oa, hp = up, Da = mp(Ra(), Object);
6143
- fp(Da, {
6146
+ }, mp = Jn, pp = Wo, hp = _a, Ra = Oa, gp = fp, Da = pp(Ra(), Object);
6147
+ mp(Da, {
6144
6148
  getPolyfill: Ra,
6145
- implementation: pp,
6146
- shim: hp
6149
+ implementation: hp,
6150
+ shim: gp
6147
6151
  });
6148
- var gp = Da, lo = xa, Ea = Uo(), Pa, Va, co, uo;
6152
+ var yp = Da, lo = xa, Ea = Uo(), Pa, Va, co, uo;
6149
6153
  if (Ea) {
6150
6154
  Pa = lo("Object.prototype.hasOwnProperty"), Va = lo("RegExp.prototype.exec"), co = {};
6151
6155
  var Qr = function() {
@@ -6156,10 +6160,10 @@ if (Ea) {
6156
6160
  valueOf: Qr
6157
6161
  }, typeof Symbol.toPrimitive == "symbol" && (uo[Symbol.toPrimitive] = Qr);
6158
6162
  }
6159
- var yp = lo("Object.prototype.toString"), vp = Object.getOwnPropertyDescriptor, bp = "[object RegExp]", wp = Ea ? function(t) {
6163
+ var vp = lo("Object.prototype.toString"), bp = Object.getOwnPropertyDescriptor, wp = "[object RegExp]", Sp = Ea ? function(t) {
6160
6164
  if (!t || typeof t != "object")
6161
6165
  return !1;
6162
- var n = vp(t, "lastIndex"), r = n && Pa(n, "value");
6166
+ var n = bp(t, "lastIndex"), r = n && Pa(n, "value");
6163
6167
  if (!r)
6164
6168
  return !1;
6165
6169
  try {
@@ -6168,7 +6172,7 @@ var yp = lo("Object.prototype.toString"), vp = Object.getOwnPropertyDescriptor,
6168
6172
  return o === co;
6169
6173
  }
6170
6174
  } : function(t) {
6171
- return !t || typeof t != "object" && typeof t != "function" ? !1 : yp(t) === bp;
6175
+ return !t || typeof t != "object" && typeof t != "function" ? !1 : vp(t) === wp;
6172
6176
  }, Nn = function() {
6173
6177
  return typeof (function() {
6174
6178
  }).name == "string";
@@ -6186,24 +6190,24 @@ Nn.functionsHaveConfigurableNames = function() {
6186
6190
  }, "name");
6187
6191
  return !!t && !!t.configurable;
6188
6192
  };
6189
- var Sp = Function.prototype.bind;
6193
+ var Cp = Function.prototype.bind;
6190
6194
  Nn.boundFunctionsHaveNames = function() {
6191
- return Nn() && typeof Sp == "function" && (function() {
6195
+ return Nn() && typeof Cp == "function" && (function() {
6192
6196
  }).bind().name !== "";
6193
6197
  };
6194
- var Cp = Nn, ji = Ia, xp = Yo(), Tp = Cp.functionsHaveConfigurableNames(), Ip = TypeError, Ap = function(t, n) {
6198
+ var xp = Nn, ji = Ia, Tp = Yo(), Ip = xp.functionsHaveConfigurableNames(), Ap = TypeError, Fp = function(t, n) {
6195
6199
  if (typeof t != "function")
6196
- throw new Ip("`fn` is not a function");
6200
+ throw new Ap("`fn` is not a function");
6197
6201
  var r = arguments.length > 2 && !!arguments[2];
6198
- return (!r || Tp) && (xp ? ji(t, "name", n, !0, !0) : ji(t, "name", n)), t;
6199
- }, Fp = Ap, _p = Object, Op = TypeError, ka = Fp(function() {
6200
- if (this != null && this !== _p(this))
6201
- throw new Op("RegExp.prototype.flags getter called on non-object");
6202
+ return (!r || Ip) && (Tp ? ji(t, "name", n, !0, !0) : ji(t, "name", n)), t;
6203
+ }, _p = Fp, Op = Object, Rp = TypeError, ka = _p(function() {
6204
+ if (this != null && this !== Op(this))
6205
+ throw new Rp("RegExp.prototype.flags getter called on non-object");
6202
6206
  var t = "";
6203
6207
  return this.hasIndices && (t += "d"), this.global && (t += "g"), this.ignoreCase && (t += "i"), this.multiline && (t += "m"), this.dotAll && (t += "s"), this.unicode && (t += "u"), this.unicodeSets && (t += "v"), this.sticky && (t += "y"), t;
6204
- }, "get flags", !0), Rp = ka, Dp = Jn.supportsDescriptors, Ep = Object.getOwnPropertyDescriptor, $a = function() {
6205
- if (Dp && /a/mig.flags === "gim") {
6206
- var t = Ep(RegExp.prototype, "flags");
6208
+ }, "get flags", !0), Dp = ka, Ep = Jn.supportsDescriptors, Pp = Object.getOwnPropertyDescriptor, $a = function() {
6209
+ if (Ep && /a/mig.flags === "gim") {
6210
+ var t = Pp(RegExp.prototype, "flags");
6207
6211
  if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
6208
6212
  var n = "", r = {};
6209
6213
  if (Object.defineProperty(r, "hasIndices", {
@@ -6218,34 +6222,34 @@ var Cp = Nn, ji = Ia, xp = Yo(), Tp = Cp.functionsHaveConfigurableNames(), Ip =
6218
6222
  return t.get;
6219
6223
  }
6220
6224
  }
6221
- return Rp;
6222
- }, Pp = Jn.supportsDescriptors, Vp = $a, kp = Object.getOwnPropertyDescriptor, $p = Object.defineProperty, Mp = TypeError, Bi = Object.getPrototypeOf, Lp = /a/, Np = function() {
6223
- if (!Pp || !Bi)
6224
- throw new Mp("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6225
- var t = Vp(), n = Bi(Lp), r = kp(n, "flags");
6226
- return (!r || r.get !== t) && $p(n, "flags", {
6225
+ return Dp;
6226
+ }, Vp = Jn.supportsDescriptors, kp = $a, $p = Object.getOwnPropertyDescriptor, Mp = Object.defineProperty, Lp = TypeError, Bi = Object.getPrototypeOf, Np = /a/, jp = function() {
6227
+ 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");
6230
+ return (!r || r.get !== t) && Mp(n, "flags", {
6227
6231
  configurable: !0,
6228
6232
  enumerable: !1,
6229
6233
  get: t
6230
6234
  }), t;
6231
- }, jp = Jn, Bp = Wo, Hp = ka, Ma = $a, Up = Np, La = Bp(Ma());
6232
- jp(La, {
6235
+ }, Bp = Jn, Hp = Wo, Up = ka, Ma = $a, Wp = jp, La = Hp(Ma());
6236
+ Bp(La, {
6233
6237
  getPolyfill: Ma,
6234
- implementation: Hp,
6235
- shim: Up
6238
+ implementation: Up,
6239
+ shim: Wp
6236
6240
  });
6237
- var Wp = La, Yp = Date.prototype.getDay, Gp = function(t) {
6241
+ var Yp = La, Gp = Date.prototype.getDay, Kp = function(t) {
6238
6242
  try {
6239
- return Yp.call(t), !0;
6243
+ return Gp.call(t), !0;
6240
6244
  } catch {
6241
6245
  return !1;
6242
6246
  }
6243
- }, Kp = Object.prototype.toString, qp = "[object Date]", zp = Uo(), Jp = function(t) {
6244
- return typeof t != "object" || t === null ? !1 : zp ? Gp(t) : Kp.call(t) === qp;
6245
- }, Hi = ga, Ui = Qm, Wi = gp, Yi = wp, Gi = Wp, Ki = Jp, qi = Date.prototype.getTime;
6247
+ }, qp = Object.prototype.toString, zp = "[object Date]", Jp = Uo(), Qp = function(t) {
6248
+ return typeof t != "object" || t === null ? !1 : Jp ? Kp(t) : qp.call(t) === zp;
6249
+ }, Hi = ga, Ui = Xm, Wi = yp, Yi = Sp, Gi = Yp, Ki = Qp, qi = Date.prototype.getTime;
6246
6250
  function Na(e, t, n) {
6247
6251
  var r = n || {};
6248
- return (r.strict ? Wi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Wi(e, t) : e == t : Qp(e, t, r);
6252
+ 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);
6249
6253
  }
6250
6254
  function zi(e) {
6251
6255
  return e == null;
@@ -6253,7 +6257,7 @@ function zi(e) {
6253
6257
  function Ji(e) {
6254
6258
  return !(!e || typeof e != "object" || typeof e.length != "number" || typeof e.copy != "function" || typeof e.slice != "function" || e.length > 0 && typeof e[0] != "number");
6255
6259
  }
6256
- function Qp(e, t, n) {
6260
+ function Xp(e, t, n) {
6257
6261
  var r, o;
6258
6262
  if (typeof e != typeof t || zi(e) || zi(t) || e.prototype !== t.prototype || Ui(e) !== Ui(t))
6259
6263
  return !1;
@@ -6292,8 +6296,8 @@ function Qp(e, t, n) {
6292
6296
  return !1;
6293
6297
  return !0;
6294
6298
  }
6295
- var Xp = Na;
6296
- const Ko = /* @__PURE__ */ Ds(Xp), Zp = _t(
6299
+ var Zp = Na;
6300
+ const Ko = /* @__PURE__ */ Ds(Zp), eh = _t(
6297
6301
  (e, t) => {
6298
6302
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: a } = e, [s] = Rt.useForm();
6299
6303
  ae(() => {
@@ -6327,7 +6331,7 @@ const Ko = /* @__PURE__ */ Ds(Xp), Zp = _t(
6327
6331
  })(), u = D(() => {
6328
6332
  const f = s.getFieldsValue();
6329
6333
  a == null || a(f);
6330
- }, [s, a]), m = wm(u, 100);
6334
+ }, [s, a]), m = Sm(u, 100);
6331
6335
  return /* @__PURE__ */ P(Sn, { children: [
6332
6336
  /* @__PURE__ */ i(
6333
6337
  Rt,
@@ -6391,13 +6395,13 @@ const Ko = /* @__PURE__ */ Ds(Xp), Zp = _t(
6391
6395
  (S = d.current) == null || S.resetFields(), (C = d == null ? void 0 : d.current) == null || C.setFieldsValue({}), h([]);
6392
6396
  }, []), b = n ? f || rr(s, (A = l.current) == null ? void 0 : A._advancedSearchContainer) : [];
6393
6397
  return /* @__PURE__ */ i(
6394
- tm,
6398
+ nm,
6395
6399
  {
6396
6400
  title: `${c("filter")} (${(b == null ? void 0 : b.length) || 0})`,
6397
6401
  isOpen: n,
6398
6402
  onClose: r,
6399
6403
  footer: /* @__PURE__ */ i(
6400
- eh,
6404
+ th,
6401
6405
  {
6402
6406
  onClear: v,
6403
6407
  onSubmit: g,
@@ -6405,7 +6409,7 @@ const Ko = /* @__PURE__ */ Ds(Xp), Zp = _t(
6405
6409
  }
6406
6410
  ),
6407
6411
  children: n && /* @__PURE__ */ i(
6408
- Zp,
6412
+ eh,
6409
6413
  {
6410
6414
  ref: d,
6411
6415
  searchFields: u,
@@ -6416,7 +6420,7 @@ const Ko = /* @__PURE__ */ Ds(Xp), Zp = _t(
6416
6420
  )
6417
6421
  }
6418
6422
  );
6419
- }, eh = ({
6423
+ }, th = ({
6420
6424
  onClear: e,
6421
6425
  onSubmit: t,
6422
6426
  searchParams: n
@@ -6459,7 +6463,7 @@ const Ko = /* @__PURE__ */ Ds(Xp), Zp = _t(
6459
6463
  }
6460
6464
  );
6461
6465
  };
6462
- function th(e) {
6466
+ function nh(e) {
6463
6467
  const {
6464
6468
  onAdvancedFilterToggle: t,
6465
6469
  advancedFilter: n,
@@ -6488,7 +6492,7 @@ function th(e) {
6488
6492
  ] })
6489
6493
  ] });
6490
6494
  }
6491
- function nh(e) {
6495
+ function rh(e) {
6492
6496
  const { onLimitChange: t } = e, { t: n } = me(), r = new eo({ name: "limit" }), o = new eo({ name: "offset" });
6493
6497
  return /* @__PURE__ */ P("div", { className: "pl-2 pt-2", children: [
6494
6498
  /* @__PURE__ */ i(Ye, { children: n("parameters") }, "count_params"),
@@ -6508,7 +6512,7 @@ function nh(e) {
6508
6512
  ] })
6509
6513
  ] });
6510
6514
  }
6511
- const { useToken: rh } = ze;
6515
+ const { useToken: oh } = ze;
6512
6516
  function kr(e) {
6513
6517
  const {
6514
6518
  fields: t,
@@ -6524,7 +6528,7 @@ function kr(e) {
6524
6528
  searchError: d,
6525
6529
  searchValues: f,
6526
6530
  showLimitOptions: h = !0
6527
- } = e, [p, g] = I(), [y, v] = I(), [b, A] = I(!1), S = W(), { token: C } = rh(), [F] = Rt.useForm();
6531
+ } = e, [p, g] = I(), [y, v] = I(), [b, A] = I(!1), S = W(), { token: C } = oh(), [F] = Rt.useForm();
6528
6532
  ae(() => {
6529
6533
  F.setFieldsValue(f);
6530
6534
  }, [f]);
@@ -6577,9 +6581,9 @@ function kr(e) {
6577
6581
  initialValues: { offset: s, limit: l },
6578
6582
  children: [
6579
6583
  T,
6580
- b && h && /* @__PURE__ */ i(nh, { onLimitChange: c }),
6584
+ b && h && /* @__PURE__ */ i(rh, { onLimitChange: c }),
6581
6585
  /* @__PURE__ */ i(
6582
- th,
6586
+ nh,
6583
6587
  {
6584
6588
  hideAdvancedFilter: (O() || (y == null ? void 0 : y._rows.length) === 0) && !h,
6585
6589
  advancedFilter: b,
@@ -6612,7 +6616,7 @@ function kr(e) {
6612
6616
  function Ba({
6613
6617
  useLocalState: e = !1
6614
6618
  }) {
6615
- const t = Sh() && !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);
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);
6616
6620
  return t ? {
6617
6621
  treeIsLoading: n.treeIsLoading ?? !1,
6618
6622
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -6704,7 +6708,7 @@ const Ha = () => {
6704
6708
  document.removeEventListener("visibilitychange", n);
6705
6709
  };
6706
6710
  }, []), e;
6707
- }, oh = 3 * 1e3, Ua = (e) => {
6711
+ }, ih = 3 * 1e3, Ua = (e) => {
6708
6712
  const {
6709
6713
  tableRef: t,
6710
6714
  model: n,
@@ -6745,7 +6749,7 @@ const Ha = () => {
6745
6749
  a,
6746
6750
  r
6747
6751
  ]);
6748
- Gt(() => ((o == null ? void 0 : o.length) && c && (h(), l.current = setInterval(h, oh)), () => {
6752
+ Gt(() => ((o == null ? void 0 : o.length) && c && (h(), l.current = setInterval(h, ih)), () => {
6749
6753
  d(), l.current && (clearInterval(l.current), l.current = null);
6750
6754
  }), [
6751
6755
  o,
@@ -6761,8 +6765,8 @@ const Ha = () => {
6761
6765
  u(!0);
6762
6766
  }, []);
6763
6767
  return { pause: p, resume: g };
6764
- }, ih = 10, sh = 200;
6765
- function ah(e, t) {
6768
+ }, sh = 10, ah = 200;
6769
+ function lh(e, t) {
6766
6770
  const {
6767
6771
  model: n,
6768
6772
  formView: r,
@@ -6777,7 +6781,7 @@ function ah(e, t) {
6777
6781
  filterType: f = "side"
6778
6782
  } = e, h = W({}), p = W(), g = W(null), y = W([]), v = W(!1), b = ko(), [A, S] = I(!0), [C, F] = I(), { t: w } = me(), T = W(null), _ = fa({
6779
6783
  elementRef: T,
6780
- offset: ih
6784
+ offset: sh
6781
6785
  }), { treeView: O, formView: x, loading: R } = $o({
6782
6786
  model: n,
6783
6787
  formViewProps: r,
@@ -7014,7 +7018,7 @@ function ah(e, t) {
7014
7018
  );
7015
7019
  pe(Je.map((ut) => ({ id: ut })));
7016
7020
  };
7017
- he ? C && C > sh ? Bt({
7021
+ he ? C && C > ah ? Bt({
7018
7022
  confirmMessage: w("confirmSelectAllRegisters").replace(
7019
7023
  "{totalRecords}",
7020
7024
  C.toString()
@@ -7033,7 +7037,7 @@ function ah(e, t) {
7033
7037
  N,
7034
7038
  w,
7035
7039
  C
7036
- ]), nt = D(() => Y, [Y]), 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 } }), []), ee = D(
7040
+ ]), nt = D(() => Y, [Y]), 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(
7037
7041
  (he) => {
7038
7042
  var qe;
7039
7043
  return (qe = p.current) == null ? void 0 : qe[he.id];
@@ -7065,7 +7069,7 @@ function ah(e, t) {
7065
7069
  footer: it,
7066
7070
  hasStatusColumn: ye.status !== null,
7067
7071
  statusComponent: It,
7068
- onRowStatus: ee,
7072
+ onRowStatus: te,
7069
7073
  strings: ue,
7070
7074
  initialSortState: j
7071
7075
  }
@@ -7079,7 +7083,7 @@ function ah(e, t) {
7079
7083
  Ie,
7080
7084
  ke,
7081
7085
  a,
7082
- ee,
7086
+ te,
7083
7087
  Ee,
7084
7088
  be,
7085
7089
  Re,
@@ -7205,7 +7209,7 @@ function ah(e, t) {
7205
7209
  }
7206
7210
  ),
7207
7211
  /* @__PURE__ */ i(
7208
- _f,
7212
+ Of,
7209
7213
  {
7210
7214
  selectedRowKeys: Re,
7211
7215
  allRowSelectedMode: !1,
@@ -7215,12 +7219,12 @@ function ah(e, t) {
7215
7219
  /* @__PURE__ */ i("div", { ref: T, style: vt, children: R || Ke || A ? /* @__PURE__ */ i(Qe, {}) : Me })
7216
7220
  ] });
7217
7221
  }
7218
- const Wa = _t(ah), Qi = (e, t = "14px -apple-system") => {
7222
+ const Wa = _t(lh), Qi = (e, t = "14px -apple-system") => {
7219
7223
  const r = document.createElement("canvas").getContext("2d");
7220
7224
  r.font = t;
7221
7225
  const o = r.measureText(e);
7222
7226
  return Math.round((o.width + 80) * 1.5);
7223
- }, lh = (e, t, n = 500) => {
7227
+ }, ch = (e, t, n = 500) => {
7224
7228
  if (e.length === 0)
7225
7229
  return { columns: e };
7226
7230
  const r = e.map(
@@ -7241,11 +7245,11 @@ const Wa = _t(ah), Qi = (e, t = "14px -apple-system") => {
7241
7245
  source: t,
7242
7246
  tableWidth: o
7243
7247
  };
7244
- }, ch = mt.div`
7248
+ }, dh = mt.div`
7245
7249
  display: flex;
7246
7250
  align-items: center;
7247
7251
  justify-content: center;
7248
- `, dh = ({
7252
+ `, uh = ({
7249
7253
  numberOfVisibleSelectedRows: e,
7250
7254
  totalRecords: t,
7251
7255
  numberOfTotalRows: n,
@@ -7274,7 +7278,7 @@ const Wa = _t(ah), Qi = (e, t = "14px -apple-system") => {
7274
7278
  "{totalRecords}",
7275
7279
  o.toString()
7276
7280
  ) + " " });
7277
- return /* @__PURE__ */ i(ch, { children: o > n ? d : m });
7281
+ return /* @__PURE__ */ i(dh, { children: o > n ? d : m });
7278
7282
  }, Ya = _t(
7279
7283
  (e, t) => {
7280
7284
  var M;
@@ -7301,7 +7305,7 @@ const Wa = _t(ah), Qi = (e, t = "14px -apple-system") => {
7301
7305
  context: C,
7302
7306
  readonly: F,
7303
7307
  onSelectAllRecords: w
7304
- } = e, T = W(null), [_, O] = I([]), x = W(!1), [R, E] = I(), { t: V } = me(), L = W(r), N = te(
7308
+ } = e, T = W(null), [_, O] = I([]), x = W(!1), [R, E] = I(), { t: V } = me(), L = W(r), N = ne(
7305
7309
  Ct
7306
7310
  ), { title: B = void 0, setTitle: Y = void 0 } = (S ? N : {}) || {}, k = q(() => {
7307
7311
  if (R)
@@ -7349,7 +7353,7 @@ const Wa = _t(ah), Qi = (e, t = "14px -apple-system") => {
7349
7353
  }
7350
7354
  ) }),
7351
7355
  w && /* @__PURE__ */ i(Oe, { span: 8, className: "text-center", children: /* @__PURE__ */ i(
7352
- dh,
7356
+ uh,
7353
7357
  {
7354
7358
  numberOfVisibleSelectedRows: z,
7355
7359
  numberOfRealSelectedRows: (d == null ? void 0 : d.length) || 0,
@@ -7384,7 +7388,7 @@ const Wa = _t(ah), Qi = (e, t = "14px -apple-system") => {
7384
7388
  }), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: ie.join(", ") });
7385
7389
  }, [_, d, R]), oe = q(() => {
7386
7390
  if (R !== null && k && k.length > 0)
7387
- return lh(k, _, 600);
7391
+ return ch(k, _, 600);
7388
7392
  }, [k, _, R]), H = q(() => h && (R != null && R.columns.some((z) => z.sum !== void 0)) ? h - 30 : h, [h, R == null ? void 0 : R.columns]);
7389
7393
  return R === null || !oe || ((M = oe == null ? void 0 : oe.columns) == null ? void 0 : M.length) === 0 ? /* @__PURE__ */ i(Qe, { style: { padding: "2rem" } }) : /* @__PURE__ */ P(ir, { children: [
7390
7394
  J,
@@ -7650,7 +7654,7 @@ const Ga = (e) => {
7650
7654
  getAllIds: Ie
7651
7655
  };
7652
7656
  };
7653
- function uh(e, t) {
7657
+ function fh(e, t) {
7654
7658
  var vt;
7655
7659
  const {
7656
7660
  model: n,
@@ -7664,9 +7668,9 @@ function uh(e, t) {
7664
7668
  rootTree: m = !1,
7665
7669
  parentContext: d = {},
7666
7670
  onChangeSelectedRowKeys: f
7667
- } = e, [h, p] = I(!1), [g, y] = I(!1), v = W(!1), b = W(null), [A, S] = I(), [C, F] = I(), [w, T] = I(), [_, O] = I(), [x, R] = I(200), E = W(), { height: V } = Ar(), L = te(
7671
+ } = e, [h, p] = I(!1), [g, y] = I(!1), v = W(!1), b = W(null), [A, S] = I(), [C, F] = I(), [w, T] = I(), [_, O] = I(), [x, R] = I(200), E = W(), { height: V } = Ar(), L = ne(
7668
7672
  An
7669
- ), { processAction: N } = L || {}, B = te(
7673
+ ), { processAction: N } = L || {}, B = ne(
7670
7674
  Ct
7671
7675
  ), {
7672
7676
  setResults: Y = void 0,
@@ -7773,7 +7777,7 @@ function uh(e, t) {
7773
7777
  ae(() => {
7774
7778
  it();
7775
7779
  }, [n]);
7776
- const ee = D(
7780
+ const te = D(
7777
7781
  (Fe) => {
7778
7782
  _e == null || _e(Fe);
7779
7783
  },
@@ -7823,7 +7827,7 @@ function uh(e, t) {
7823
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(
7824
7828
  () => Q == null ? void 0 : Q.map((Fe) => Fe.id),
7825
7829
  [Q]
7826
- ), pt = D(() => !C || !w ? null : /* @__PURE__ */ P(ne, { children: [
7830
+ ), pt = D(() => !C || !w ? null : /* @__PURE__ */ P(ee, { children: [
7827
7831
  /* @__PURE__ */ i(
7828
7832
  kr,
7829
7833
  {
@@ -7837,7 +7841,7 @@ function uh(e, t) {
7837
7841
  offset: se,
7838
7842
  isSearching: xe,
7839
7843
  onSubmit: Ke,
7840
- onLimitChange: ee,
7844
+ onLimitChange: te,
7841
7845
  setSearchFilterHeight: R,
7842
7846
  searchError: Ve,
7843
7847
  searchVisible: H,
@@ -7883,7 +7887,7 @@ function uh(e, t) {
7883
7887
  pe,
7884
7888
  se,
7885
7889
  Me,
7886
- ee,
7890
+ te,
7887
7891
  je,
7888
7892
  d,
7889
7893
  Ee,
@@ -7904,7 +7908,7 @@ function uh(e, t) {
7904
7908
  ]), xt = _ || Ve;
7905
7909
  return xt ? /* @__PURE__ */ i(yt, { className: "mt-10", message: xt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(Qe, {}) : pt() });
7906
7910
  }
7907
- const Ka = _t(uh), fh = 80, mh = (e) => {
7911
+ const Ka = _t(fh), mh = 80, ph = (e) => {
7908
7912
  const {
7909
7913
  treeViewFetching: t,
7910
7914
  treeOoui: n,
@@ -8017,7 +8021,7 @@ const Ka = _t(uh), fh = 80, mh = (e) => {
8017
8021
  C,
8018
8022
  T
8019
8023
  ]
8020
- ), ee = D(
8024
+ ), te = D(
8021
8025
  () => p == null ? void 0 : p(!1),
8022
8026
  [p]
8023
8027
  ), ue = D(
@@ -8187,7 +8191,7 @@ const Ka = _t(uh), fh = 80, mh = (e) => {
8187
8191
  onRowHasBeenSelected: ht,
8188
8192
  onSearchFilterClear: it,
8189
8193
  onSearchFilterSubmit: It,
8190
- onSideSearchFilterClose: ee,
8194
+ onSideSearchFilterClose: te,
8191
8195
  onSideSearchFilterSubmit: ue,
8192
8196
  totalRowsLoading: Z,
8193
8197
  totalRows: J,
@@ -8209,7 +8213,7 @@ const Ka = _t(uh), fh = 80, mh = (e) => {
8209
8213
  onGetFirstVisibleColumn: Be,
8210
8214
  onSortChange: Fe
8211
8215
  };
8212
- }, ph = (e, t) => {
8216
+ }, hh = (e, t) => {
8213
8217
  const { t: n } = me(), r = yn(() => {
8214
8218
  if (e)
8215
8219
  return Or(
@@ -8228,7 +8232,7 @@ const Ka = _t(uh), fh = 80, mh = (e) => {
8228
8232
  columns: r,
8229
8233
  strings: o
8230
8234
  };
8231
- }, hh = ({
8235
+ }, gh = ({
8232
8236
  filterType: e,
8233
8237
  formView: t,
8234
8238
  treeView: n,
@@ -8351,8 +8355,8 @@ const Ka = _t(uh), fh = 80, mh = (e) => {
8351
8355
  )
8352
8356
  );
8353
8357
  qa.displayName = "PaginatedTableComponent";
8354
- const gh = 10;
8355
- function yh(e, t) {
8358
+ const yh = 10;
8359
+ function vh(e, t) {
8356
8360
  const {
8357
8361
  model: n,
8358
8362
  formView: r,
@@ -8373,7 +8377,7 @@ function yh(e, t) {
8373
8377
  (se = p.current) == null || se.call(p, pe);
8374
8378
  }, []), y = fa({
8375
8379
  elementRef: h,
8376
- offset: gh
8380
+ offset: yh
8377
8381
  }), { treeView: v, formView: b, loading: A } = $o({
8378
8382
  model: n,
8379
8383
  formViewProps: r,
@@ -8382,7 +8386,7 @@ function yh(e, t) {
8382
8386
  }), S = q(() => {
8383
8387
  if (v)
8384
8388
  return jt(v);
8385
- }, [v]), { columns: C, strings: F } = ph(S, u), w = q(() => C || [], [C]), {
8389
+ }, [v]), { columns: C, strings: F } = hh(S, u), w = q(() => C || [], [C]), {
8386
8390
  isActive: T,
8387
8391
  searchVisible: _,
8388
8392
  searchValues: O,
@@ -8414,7 +8418,7 @@ function yh(e, t) {
8414
8418
  setTreeFirstVisibleColumn: _e,
8415
8419
  onGetFirstVisibleColumn: Ue,
8416
8420
  onSortChange: Ke
8417
- } = mh({
8421
+ } = ph({
8418
8422
  treeViewFetching: A,
8419
8423
  treeOoui: S,
8420
8424
  treeView: v,
@@ -8459,7 +8463,7 @@ function yh(e, t) {
8459
8463
  );
8460
8464
  return /* @__PURE__ */ P(Sn, { children: [
8461
8465
  /* @__PURE__ */ i(
8462
- hh,
8466
+ gh,
8463
8467
  {
8464
8468
  filterType: d,
8465
8469
  formView: b,
@@ -8478,7 +8482,7 @@ function yh(e, t) {
8478
8482
  total: Q || 0,
8479
8483
  totalRowsLoading: Z,
8480
8484
  page: ce || 1,
8481
- pageSize: de || fh,
8485
+ pageSize: de || mh,
8482
8486
  currentPageSelectedCount: x.length,
8483
8487
  onRequestPageChange: oe,
8484
8488
  totalSelectedCount: x.length,
@@ -8516,7 +8520,7 @@ function yh(e, t) {
8516
8520
  ) })
8517
8521
  ] });
8518
8522
  }
8519
- const vh = _t(yh), pr = "legacy", bh = (e) => {
8523
+ const bh = _t(vh), pr = "legacy", wh = (e) => {
8520
8524
  const {
8521
8525
  visible: t,
8522
8526
  searchTreeRef: n,
@@ -8536,7 +8540,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
8536
8540
  return "legacy";
8537
8541
  const C = Hs(s.arch, "infinite");
8538
8542
  return C ? C === "1" ? "infinite" : "paginated" : "legacy";
8539
- }, [s]), { currentView: y, setPreviousView: v, setTreeType: b, setSelectedRowItems: A } = te(Ct);
8543
+ }, [s]), { currentView: y, setPreviousView: v, setTreeType: b, setSelectedRowItems: A } = ne(Ct);
8540
8544
  ae(() => {
8541
8545
  b == null || b(g);
8542
8546
  }, [g]);
@@ -8586,7 +8590,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
8586
8590
  }
8587
8591
  ),
8588
8592
  g === "paginated" && /* @__PURE__ */ i(
8589
- vh,
8593
+ bh,
8590
8594
  {
8591
8595
  ref: n,
8592
8596
  rootTree: !0,
@@ -8616,7 +8620,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
8616
8620
  ] }) : null;
8617
8621
  }, Ct = Tl(
8618
8622
  null
8619
- ), wh = (e) => {
8623
+ ), Sh = (e) => {
8620
8624
  const {
8621
8625
  children: t,
8622
8626
  currentView: n,
@@ -8754,8 +8758,8 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
8754
8758
  children: t
8755
8759
  }
8756
8760
  );
8757
- }, Sh = () => !!te(Ct), Xn = () => {
8758
- const e = te(Ct);
8761
+ }, Ch = () => !!ne(Ct), Xn = () => {
8762
+ const e = ne(Ct);
8759
8763
  return e || {
8760
8764
  title: "",
8761
8765
  currentView: {},
@@ -8852,7 +8856,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
8852
8856
  setCurrentPage: () => {
8853
8857
  }
8854
8858
  };
8855
- }, Ch = (e, t) => {
8859
+ }, xh = (e, t) => {
8856
8860
  const {
8857
8861
  view_id: n,
8858
8862
  model: r,
@@ -8862,7 +8866,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
8862
8866
  manualIds: l,
8863
8867
  fixedHeight: c,
8864
8868
  viewData: u
8865
- } = e, [m, d] = I(!1), [f, h] = I(), p = te(
8869
+ } = e, [m, d] = I(!1), [f, h] = I(), p = ne(
8866
8870
  Ct
8867
8871
  ), { setGraphIsLoading: g = void 0 } = p || {}, [y] = Xe($.getHandler().getView);
8868
8872
  Dt(t, () => ({
@@ -8883,7 +8887,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
8883
8887
  }), A = hs(b.arch);
8884
8888
  h(A), d(!1), g == null || g(!1);
8885
8889
  } catch (b) {
8886
- return console.error(b), d(!1), g == null || g(!1), /* @__PURE__ */ i(ne, { children: JSON.stringify(b) });
8890
+ return console.error(b), d(!1), g == null || g(!1), /* @__PURE__ */ i(ee, { children: JSON.stringify(b) });
8887
8891
  }
8888
8892
  }
8889
8893
  if (m || !f)
@@ -8928,9 +8932,9 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
8928
8932
  }
8929
8933
  );
8930
8934
  default:
8931
- return /* @__PURE__ */ i(ne, { children: `Graph ${f.type} not implemented` });
8935
+ return /* @__PURE__ */ i(ee, { children: `Graph ${f.type} not implemented` });
8932
8936
  }
8933
- }, Fn = _t(Ch), xh = (e) => {
8937
+ }, Fn = _t(xh), Th = (e) => {
8934
8938
  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(
8935
8939
  $.getHandler().readForView
8936
8940
  ), h = D(async () => {
@@ -8954,10 +8958,10 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
8954
8958
  fetchData: h,
8955
8959
  graphData: m
8956
8960
  };
8957
- }, Th = (e, t) => {
8958
- const { view_id: n, model: r, context: o, domain: a, manualIds: s, fixedHeight: l } = e, c = te(
8961
+ }, Ih = (e, t) => {
8962
+ const { view_id: n, model: r, context: o, domain: a, manualIds: s, fixedHeight: l } = e, c = ne(
8959
8963
  Ct
8960
- ), { setGraphIsLoading: u = void 0 } = c || {}, { error: m, loading: d, graphData: f, fetchData: h } = xh({
8964
+ ), { setGraphIsLoading: u = void 0 } = c || {}, { error: m, loading: d, graphData: f, fetchData: h } = Th({
8961
8965
  view_id: n,
8962
8966
  model: r,
8963
8967
  domain: a,
@@ -9012,9 +9016,9 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9012
9016
  );
9013
9017
  }
9014
9018
  default:
9015
- return /* @__PURE__ */ i(ne, { children: `Graph ${f.type} not implemented` });
9019
+ return /* @__PURE__ */ i(ee, { children: `Graph ${f.type} not implemented` });
9016
9020
  }
9017
- }, za = _t(Th), { useToken: Ih } = ze, { Text: Xi } = zt, Ja = (e) => {
9021
+ }, za = _t(Ih), { useToken: Ah } = ze, { Text: Xi } = zt, Ja = (e) => {
9018
9022
  const {
9019
9023
  title: t,
9020
9024
  children: n,
@@ -9023,7 +9027,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9023
9027
  parms: a,
9024
9028
  tooltip: s,
9025
9029
  card: l = !1
9026
- } = e, { token: c } = Ih(), u = Object.keys(a).length > 0;
9030
+ } = e, { token: c } = Ah(), u = Object.keys(a).length > 0;
9027
9031
  return /* @__PURE__ */ P(
9028
9032
  "div",
9029
9033
  {
@@ -9059,7 +9063,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9059
9063
  cursor: u ? "grab" : void 0,
9060
9064
  overflow: "hidden"
9061
9065
  },
9062
- children: s ? /* @__PURE__ */ P(ne, { children: [
9066
+ children: s ? /* @__PURE__ */ P(ee, { children: [
9063
9067
  /* @__PURE__ */ i(Et, { title: s, children: /* @__PURE__ */ i(Tn, { className: "pr-1 text-xs" }) }),
9064
9068
  /* @__PURE__ */ i(Xi, { ellipsis: !0, children: t })
9065
9069
  ] }) : /* @__PURE__ */ i(
@@ -9092,12 +9096,12 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9092
9096
  ]
9093
9097
  }
9094
9098
  );
9095
- }, { useToken: Ah } = ze, Fh = (e) => {
9099
+ }, { useToken: Fh } = ze, _h = (e) => {
9096
9100
  const { ooui: t } = e, n = t.actionId !== void 0;
9097
- return /* @__PURE__ */ i(Pe, { ooui: t, children: n ? /* @__PURE__ */ i(ir, { children: /* @__PURE__ */ i(Oh, { ooui: t }) }) : /* @__PURE__ */ i(_h, { ooui: t }) });
9098
- }, _h = (e) => {
9101
+ return /* @__PURE__ */ i(Pe, { ooui: t, children: n ? /* @__PURE__ */ i(ir, { children: /* @__PURE__ */ i(Rh, { ooui: t }) }) : /* @__PURE__ */ i(Oh, { ooui: t }) });
9102
+ }, Oh = (e) => {
9099
9103
  var u;
9100
- const { token: t } = Ah(), { ooui: n, value: r } = e, { locale: o } = me(), a = /* @__PURE__ */ P(ne, { children: [
9104
+ const { token: t } = Fh(), { ooui: n, value: r } = e, { locale: o } = me(), a = /* @__PURE__ */ P(ee, { children: [
9101
9105
  /* @__PURE__ */ P("span", { children: [
9102
9106
  n.label,
9103
9107
  " "
@@ -9146,17 +9150,17 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9146
9150
  }
9147
9151
  );
9148
9152
  return n.card ? /* @__PURE__ */ i(bo, { children: c }) : c;
9149
- }, Oh = (e) => {
9153
+ }, Rh = (e) => {
9150
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(
9151
9155
  sn.FEATURE_READFORVIEW
9152
- ), d = te(
9156
+ ), d = ne(
9153
9157
  Ot
9154
9158
  ), { openShortcut: f } = d || {};
9155
9159
  if (ae(() => {
9156
9160
  t && u();
9157
9161
  }, [t, o]), c && c.message !== "active_id_not_found")
9158
9162
  return /* @__PURE__ */ i(Ks, { error: c });
9159
- const { id: h, model: p, limit: g, domain: y, context: v, initialView: b, description: A } = a || {}, S = m ? za : Fn, C = A ? /* @__PURE__ */ P(ne, { children: [
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: [
9160
9164
  /* @__PURE__ */ i(Et, { title: A, children: /* @__PURE__ */ i(Tn, { className: "pr-1 text-xs" }) }),
9161
9165
  /* @__PURE__ */ i("span", { children: (a == null ? void 0 : a.title) || "" })
9162
9166
  ] }) : /* @__PURE__ */ i("span", { children: (a == null ? void 0 : a.title) || "" });
@@ -9172,7 +9176,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9172
9176
  card: t.card,
9173
9177
  children: [
9174
9178
  l && /* @__PURE__ */ i(Kn, {}),
9175
- !l && /* @__PURE__ */ i(ne, { children: o ? (b == null ? void 0 : b.id) && /* @__PURE__ */ i(
9179
+ !l && /* @__PURE__ */ i(ee, { children: o ? (b == null ? void 0 : b.id) && /* @__PURE__ */ i(
9176
9180
  S,
9177
9181
  {
9178
9182
  view_id: b.id,
@@ -9183,7 +9187,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9183
9187
  fixedHeight: r
9184
9188
  }
9185
9189
  ) : /* @__PURE__ */ i(
9186
- Rh,
9190
+ Dh,
9187
9191
  {
9188
9192
  image: cs.PRESENTED_IMAGE_SIMPLE,
9189
9193
  imageStyle: { height: 15 }
@@ -9192,16 +9196,16 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9192
9196
  ]
9193
9197
  }
9194
9198
  );
9195
- }, Rh = mt(cs)`
9199
+ }, Dh = mt(cs)`
9196
9200
  &.ant-empty.ant-empty-normal {
9197
9201
  margin: 0;
9198
9202
  margin-top: 5px;
9199
9203
  }
9200
- `, Dh = (e) => {
9204
+ `, Eh = (e) => {
9201
9205
  const { ooui: t } = e;
9202
- return /* @__PURE__ */ i(Pe, { type: "array", ...e, children: /* @__PURE__ */ i(Eh, { ooui: t }) });
9203
- }, Eh = (e) => {
9204
- const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, a = o.filter((F) => F.operation !== "pendingRemove").map((F) => F.id), [s, l] = I([]), [c, u] = I(), [m, d] = I(!1), { relation: f, context: h, readOnly: p, field: g } = n, y = te(Ge), { getContext: v } = y || {};
9206
+ return /* @__PURE__ */ i(Pe, { type: "array", ...e, children: /* @__PURE__ */ i(Ph, { ooui: t }) });
9207
+ }, Ph = (e) => {
9208
+ const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, a = o.filter((F) => F.operation !== "pendingRemove").map((F) => F.id), [s, l] = I([]), [c, u] = I(), [m, d] = I(!1), { relation: f, context: h, readOnly: p, field: g } = n, y = ne(Ge), { getContext: v } = y || {};
9205
9209
  Mt(() => {
9206
9210
  A();
9207
9211
  }, [o]);
@@ -9267,7 +9271,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9267
9271
  }
9268
9272
  );
9269
9273
  };
9270
- return c ? /* @__PURE__ */ i(yt, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(
9274
+ 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(
9271
9275
  rn,
9272
9276
  {
9273
9277
  mode: "multiple",
@@ -9281,14 +9285,14 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9281
9285
  filterOption: (F, w) => w.label.toLowerCase().includes(F.toString())
9282
9286
  }
9283
9287
  ) }) });
9284
- }, Ph = (e) => {
9288
+ }, Vh = (e) => {
9285
9289
  switch (e) {
9286
9290
  case "form":
9287
9291
  return _n;
9288
9292
  case "tree":
9289
9293
  return Qn;
9290
9294
  case "notebook":
9291
- return Rg;
9295
+ return Dg;
9292
9296
  case "group":
9293
9297
  return dl;
9294
9298
  case "label":
@@ -9296,7 +9300,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9296
9300
  case "char":
9297
9301
  return Vs;
9298
9302
  case "text":
9299
- return Eg;
9303
+ return Pg;
9300
9304
  case "button":
9301
9305
  return _o;
9302
9306
  case "buttonGroup":
@@ -9304,7 +9308,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9304
9308
  case "selection":
9305
9309
  return Ls;
9306
9310
  case "many2one":
9307
- return Xh;
9311
+ return Zh;
9308
9312
  case "boolean":
9309
9313
  return Cd;
9310
9314
  case "integer":
@@ -9314,78 +9318,78 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9314
9318
  case "progressbar":
9315
9319
  return qu;
9316
9320
  case "date":
9317
- return Wg;
9318
- case "datetime":
9319
9321
  return Yg;
9320
- case "time":
9322
+ case "datetime":
9321
9323
  return Gg;
9324
+ case "time":
9325
+ return Kg;
9322
9326
  case "one2many":
9323
9327
  case "one2many_list":
9324
9328
  case "many2many":
9325
- return xg;
9329
+ return Tg;
9326
9330
  case "separator":
9327
- return Vg;
9331
+ return kg;
9328
9332
  case "reference":
9329
- return qg;
9333
+ return zg;
9330
9334
  case "binary":
9331
- return Qg;
9335
+ return Xg;
9332
9336
  case "image":
9333
9337
  return Ad;
9334
9338
  case "url":
9335
- return iy;
9336
- case "email":
9337
9339
  return sy;
9340
+ case "email":
9341
+ return ay;
9338
9342
  case "float_time":
9339
- return Ag;
9343
+ return Fg;
9340
9344
  case "fiber_grid":
9341
9345
  return _d;
9342
9346
  case "timeline":
9343
9347
  return qd;
9344
9348
  case "indicator":
9345
- return Fh;
9349
+ return _h;
9346
9350
  case "tags":
9347
- return Dh;
9351
+ return Eh;
9348
9352
  case "tag":
9349
9353
  return of;
9350
9354
  case "multicheckbox":
9351
- return Ay;
9355
+ return Fy;
9352
9356
  case "markdown":
9353
- return _y;
9357
+ return Oy;
9354
9358
  case "radio":
9355
- return Ry;
9359
+ return Dy;
9356
9360
  case "switch":
9357
- return Ey;
9361
+ return Py;
9358
9362
  case "steps":
9359
- return Vy;
9363
+ return ky;
9360
9364
  case "arrow_steps":
9361
- return My;
9365
+ return Ly;
9362
9366
  case "codeeditor":
9363
9367
  case "json":
9364
- return Ly;
9368
+ return Ny;
9365
9369
  case "comments_timeline":
9366
- return Gy;
9367
- case "html_preview":
9368
9370
  return Ky;
9369
- case "alert":
9371
+ case "html_preview":
9370
9372
  return qy;
9373
+ case "alert":
9374
+ return zy;
9371
9375
  case "spinner":
9372
9376
  return fo;
9373
9377
  case "carousel":
9374
- return Qy;
9378
+ return Xy;
9375
9379
  case "colorPicker":
9376
- return Zy;
9380
+ return ev;
9377
9381
  default:
9378
9382
  return;
9379
9383
  }
9380
- }, Vh = (e) => {
9381
- const { ooui: t } = e, { type: n } = t, r = Ph(n);
9384
+ }, kh = (e) => {
9385
+ const { ooui: t } = e, { type: n } = t, r = Vh(n);
9382
9386
  return r ? Il(r, e) : null;
9383
- }, kh = ({
9387
+ }, $h = ({
9384
9388
  item: e,
9385
9389
  responsiveBehaviour: t
9386
9390
  }) => ({
9387
9391
  gridColumnStart: "span " + (t ? 1 : e.colspan)
9388
- }), $h = ({
9392
+ }), Mh = ({
9389
9393
  row: e,
9390
9394
  mustFillWithEmpties: t,
9391
9395
  numberOfColumns: n
@@ -9404,10 +9408,10 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9404
9408
  r.push(new Cn({ string: "" }));
9405
9409
  }
9406
9410
  }), r;
9407
- }, Mh = ({
9411
+ }, Lh = ({
9408
9412
  row: e,
9409
9413
  numberOfColumns: t
9410
- }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), Lh = (e, t) => {
9414
+ }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), Nh = (e, t) => {
9411
9415
  const n = e.map((r) => r instanceof Cn && r.fieldForLabel || r instanceof jl ? "auto" : "1fr");
9412
9416
  if (n.length < t) {
9413
9417
  const r = t - n.length;
@@ -9415,25 +9419,25 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9415
9419
  n.push("1fr");
9416
9420
  }
9417
9421
  return n.join(" ");
9418
- }, Nh = (e, t) => {
9422
+ }, jh = (e, t) => {
9419
9423
  const n = t ? "1fr" : "auto", r = "auto";
9420
9424
  let o = "";
9421
9425
  for (let a = 0; a < e; a++)
9422
9426
  o += a % 2 ? n : r, a + 1 < e && (o += " ");
9423
9427
  return o;
9424
- }, jh = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), qo = (e) => {
9428
+ }, Bh = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), qo = (e) => {
9425
9429
  const { container: t, responsiveBehaviour: n } = e, { rows: r } = t;
9426
9430
  let { columns: o } = t;
9427
- const a = jh(r);
9431
+ const a = Bh(r);
9428
9432
  a < o && (o = a);
9429
9433
  let s = !1, l = [];
9430
9434
  const c = r.map((d, f) => {
9431
- const h = d.filter((y) => !y.invisible), p = Mh({
9435
+ const h = d.filter((y) => !y.invisible), p = Lh({
9432
9436
  row: h,
9433
9437
  numberOfColumns: o
9434
9438
  });
9435
9439
  let g = p;
9436
- return (f === 0 || !(d.length === 1 && d.some((y) => y.type === "group"))) && (g = $h({
9440
+ return (f === 0 || !(d.length === 1 && d.some((y) => y.type === "group"))) && (g = Mh({
9437
9441
  row: p,
9438
9442
  numberOfColumns: o,
9439
9443
  mustFillWithEmpties: n
@@ -9441,17 +9445,17 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9441
9445
  "div",
9442
9446
  {
9443
9447
  style: {
9444
- ...kh({ item: y, responsiveBehaviour: n }),
9448
+ ...$h({ item: y, responsiveBehaviour: n }),
9445
9449
  minWidth: 0
9446
9450
  },
9447
- children: Vh({
9451
+ children: kh({
9448
9452
  ooui: y,
9449
9453
  responsiveBehaviour: n
9450
9454
  })
9451
9455
  },
9452
9456
  y.key
9453
9457
  )));
9454
- }), u = r.length === 1 ? Lh(l, o) : Nh(o, s);
9458
+ }), u = r.length === 1 ? Nh(l, o) : jh(o, s);
9455
9459
  return /* @__PURE__ */ i("div", { style: {
9456
9460
  display: "grid",
9457
9461
  gridTemplateColumns: n ? "auto" : u,
@@ -9459,22 +9463,22 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9459
9463
  minHeight: 0,
9460
9464
  minWidth: 0
9461
9465
  }, children: c });
9462
- }, { error: Bh } = Tt, Zi = (e) => {
9463
- Bh({
9466
+ }, { error: Hh } = Tt, Zi = (e) => {
9467
+ Hh({
9464
9468
  title: e("formHasErrors"),
9465
9469
  icon: /* @__PURE__ */ i(Jt, {}),
9466
9470
  centered: !0,
9467
9471
  content: e("fillRequiredFields")
9468
9472
  });
9469
- }, { warning: Hh } = Tt, Uh = (e, t, n) => {
9470
- Hh({
9473
+ }, { warning: Uh } = Tt, Wh = (e, t, n) => {
9474
+ Uh({
9471
9475
  title: e,
9472
9476
  icon: /* @__PURE__ */ i(bs, {}),
9473
9477
  centered: !0,
9474
9478
  content: t,
9475
9479
  onOk: n
9476
9480
  });
9477
- }, Qa = At.createContext(null), Wh = (e) => {
9481
+ }, Qa = At.createContext(null), Yh = (e) => {
9478
9482
  const { children: t, setTitle: n } = e;
9479
9483
  return /* @__PURE__ */ i(
9480
9484
  Qa.Provider,
@@ -9485,12 +9489,12 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9485
9489
  children: t
9486
9490
  }
9487
9491
  );
9488
- }, Yh = (e, t) => {
9492
+ }, Gh = (e, t) => {
9489
9493
  const n = {};
9490
9494
  return Object.keys(e).forEach((r) => {
9491
9495
  n[r] = e[r], t != null && t[r] && (n[r].context = t[r]);
9492
9496
  }), n;
9493
- }, Gh = 3 * 1e3, Kh = (e) => {
9497
+ }, Kh = 3 * 1e3, qh = (e) => {
9494
9498
  const {
9495
9499
  model: t,
9496
9500
  id: n,
@@ -9529,7 +9533,7 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9529
9533
  r,
9530
9534
  s
9531
9535
  ]);
9532
- Gt(() => (n && (o == null ? void 0 : o.length) && u && (p(), c.current = setInterval(p, Gh)), () => {
9536
+ Gt(() => (n && (o == null ? void 0 : o.length) && u && (p(), c.current = setInterval(p, Kh)), () => {
9533
9537
  f(), c.current && (clearInterval(c.current), c.current = null);
9534
9538
  }), [
9535
9539
  o,
@@ -9546,8 +9550,8 @@ const vh = _t(yh), pr = "legacy", bh = (e) => {
9546
9550
  m(!0);
9547
9551
  }, []);
9548
9552
  return { pause: g, resume: y };
9549
- }, qh = 800;
9550
- function zh(e, t) {
9553
+ }, zh = 800;
9554
+ function Jh(e, t) {
9551
9555
  const {
9552
9556
  model: n,
9553
9557
  id: r,
@@ -9572,7 +9576,7 @@ function zh(e, t) {
9572
9576
  forcedValues: F = {},
9573
9577
  parentWidth: w,
9574
9578
  onMustRefreshParent: T
9575
- } = e, { t: _ } = me(), [O, x] = I(!1), [R, E] = I(), [V, L] = I(), [N] = Rt.useForm(), [B, Y] = I(), [k, K] = I(), Z = te(Qa), [Q, J] = I(), [we, oe] = I(!1), H = W(), M = W({}), z = W({}), ie = W(!1), X = W(!1), j = W(!1), ce = (w !== void 0 ? w : Q) < qh, de = te(Ge), { activeId: ye, getPlainValues: _e } = de || {}, Ue = W(!1), Ke = te(
9579
+ } = e, { t: _ } = me(), [O, x] = I(!1), [R, E] = I(), [V, L] = I(), [N] = Rt.useForm(), [B, Y] = I(), [k, K] = I(), Z = ne(Qa), [Q, J] = I(), [we, oe] = I(!1), H = W(), M = W({}), z = W({}), ie = W(!1), X = W(!1), j = W(!1), ce = (w !== void 0 ? w : Q) < zh, de = ne(Ge), { activeId: ye, getPlainValues: _e } = de || {}, Ue = W(!1), Ke = ne(
9576
9580
  Ct
9577
9581
  ), {
9578
9582
  setFormIsSaving: Ie = void 0,
@@ -9583,12 +9587,12 @@ function zh(e, t) {
9583
9587
  title: je = void 0,
9584
9588
  setTitle: pe = void 0,
9585
9589
  isActive: se = void 0
9586
- } = (S ? Ke : {}) || {}, ke = te(
9590
+ } = (S ? Ke : {}) || {}, ke = ne(
9587
9591
  An
9588
9592
  ), { processAction: Ee, globalValues: Re } = ke || {};
9589
9593
  Dt(t, () => ({
9590
9594
  submitForm: Ht,
9591
- getFields: ee,
9595
+ getFields: te,
9592
9596
  getValues: ue,
9593
9597
  getPlainValues: Me,
9594
9598
  getContext: $e,
@@ -9621,7 +9625,7 @@ function zh(e, t) {
9621
9625
  H.current !== nt && it(H.current);
9622
9626
  }, [H.current]);
9623
9627
  const It = q(() => r || nt, [r, nt]);
9624
- function ee() {
9628
+ function te() {
9625
9629
  return k;
9626
9630
  }
9627
9631
  function ue() {
@@ -9634,7 +9638,7 @@ function zh(e, t) {
9634
9638
  return U;
9635
9639
  }
9636
9640
  function Me() {
9637
- const U = ue(), G = ee(), fe = {};
9641
+ const U = ue(), G = te(), fe = {};
9638
9642
  return Object.keys(U).forEach((ge) => {
9639
9643
  const De = U[ge];
9640
9644
  G[ge] && G[ge].type === "many2one" && De && Array.isArray(De) && De.length === 2 ? fe[ge] = De[0] : G[ge] && (G[ge].type === "one2many" || G[ge].type === "many2many") && De && De.items ? fe[ge] = De.items.filter((lt) => lt.operation !== "pendingRemove").map((lt) => lt.id) : fe[ge] = De;
@@ -9773,7 +9777,7 @@ function zh(e, t) {
9773
9777
  if (fe = (await $.getHandler().readObjects({
9774
9778
  model: n,
9775
9779
  ids: [be()],
9776
- fields: Yh(U, De == null ? void 0 : De.contextForFields),
9780
+ fields: Gh(U, De == null ? void 0 : De.contextForFields),
9777
9781
  context: v
9778
9782
  }))[0], y)
9779
9783
  return { values: fe, defaultGetCalled: ge };
@@ -9971,7 +9975,7 @@ function zh(e, t) {
9971
9975
  }
9972
9976
  if (ge.warning && ge.warning.title && ge.warning.message && !ie.current) {
9973
9977
  const { title: De, message: lt } = ge.warning;
9974
- ie.current = !0, Uh(De, lt, () => {
9978
+ ie.current = !0, Wh(De, lt, () => {
9975
9979
  ie.current = !1;
9976
9980
  });
9977
9981
  }
@@ -10083,7 +10087,7 @@ function zh(e, t) {
10083
10087
  },
10084
10088
  [B, Je, k, Fe, Vt]
10085
10089
  );
10086
- Kh({
10090
+ qh({
10087
10091
  model: n,
10088
10092
  id: It,
10089
10093
  context: v,
@@ -10114,12 +10118,12 @@ function zh(e, t) {
10114
10118
  ge && Lr(!1), wt(De);
10115
10119
  }
10116
10120
  }
10117
- const bl = () => !V && !R ? /* @__PURE__ */ i(Qe, {}) : !n && !p || !A ? null : /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i(
10121
+ const bl = () => !V && !R ? /* @__PURE__ */ i(Qe, {}) : !n && !p || !A ? null : /* @__PURE__ */ i(ee, { children: /* @__PURE__ */ i(
10118
10122
  Gc,
10119
10123
  {
10120
10124
  getValues: ue,
10121
10125
  getPlainValues: Me,
10122
- getFields: ee,
10126
+ getFields: te,
10123
10127
  domain: b,
10124
10128
  activeId: r,
10125
10129
  activeModel: n,
@@ -10150,7 +10154,7 @@ function zh(e, t) {
10150
10154
  }
10151
10155
  )
10152
10156
  }
10153
- ) }), wl = () => /* @__PURE__ */ P(ne, { children: [
10157
+ ) }), wl = () => /* @__PURE__ */ P(ee, { children: [
10154
10158
  /* @__PURE__ */ i(hr, {}),
10155
10159
  /* @__PURE__ */ i(Ye, { justify: "end", children: /* @__PURE__ */ P(rt, { children: [
10156
10160
  /* @__PURE__ */ i(
@@ -10195,7 +10199,7 @@ function zh(e, t) {
10195
10199
  }
10196
10200
  ) : null;
10197
10201
  }
10198
- const _n = _t(zh), On = (e) => {
10202
+ const _n = _t(Jh), On = (e) => {
10199
10203
  const {
10200
10204
  visible: t,
10201
10205
  id: n,
@@ -10249,7 +10253,7 @@ const _n = _t(zh), On = (e) => {
10249
10253
  ] });
10250
10254
  }
10251
10255
  const T = m * 0.95;
10252
- return /* @__PURE__ */ i(Wh, { setTitle: f, children: /* @__PURE__ */ i(
10256
+ return /* @__PURE__ */ i(Yh, { setTitle: f, children: /* @__PURE__ */ i(
10253
10257
  Tt,
10254
10258
  {
10255
10259
  title: s ? w() : d,
@@ -10331,7 +10335,7 @@ const _n = _t(zh), On = (e) => {
10331
10335
  },
10332
10336
  [C, S]
10333
10337
  );
10334
- return /* @__PURE__ */ P(ne, { children: [
10338
+ return /* @__PURE__ */ P(ee, { children: [
10335
10339
  /* @__PURE__ */ P(
10336
10340
  Tt,
10337
10341
  {
@@ -10397,7 +10401,7 @@ const _n = _t(zh), On = (e) => {
10397
10401
  }
10398
10402
  )
10399
10403
  ] });
10400
- }, { defaultAlgorithm: Jh, defaultSeed: Qh } = ze, Xa = Jh(Qh), Xh = (e) => {
10404
+ }, { defaultAlgorithm: Qh, defaultSeed: Xh } = ze, Xa = Qh(Xh), Zh = (e) => {
10401
10405
  const { ooui: t } = e, { required: n } = t;
10402
10406
  return /* @__PURE__ */ i(Pe, { required: n, type: "array", validator: async (o, a) => {
10403
10407
  if (!a)
@@ -10415,7 +10419,7 @@ const _n = _t(zh), On = (e) => {
10415
10419
  context: l,
10416
10420
  id: c,
10417
10421
  domain: u
10418
- } = 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 = W(!1), [S, C] = I(""), F = W(), w = te(Ge), { domain: T, getValues: _, getFields: O, getContext: x, elementHasLostFocus: R } = w || {}, E = W([]), [V, L] = I([]), N = t && t[0] || void 0, B = t && t[1] || "";
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 = W(!1), [S, C] = I(""), F = W(), w = ne(Ge), { domain: T, getValues: _, getFields: O, getContext: x, elementHasLostFocus: R } = w || {}, E = W([]), [V, L] = I([]), N = t && t[0] || void 0, B = t && t[1] || "";
10419
10423
  ae(() => {
10420
10424
  !Array.isArray(t) && t && Q(t);
10421
10425
  }, [t]), ae(() => {
@@ -10498,7 +10502,7 @@ const _n = _t(zh), On = (e) => {
10498
10502
  }
10499
10503
  return /* @__PURE__ */ P(Ye, { gutter: 8, wrap: !1, children: [
10500
10504
  /* @__PURE__ */ i(Oe, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ i(
10501
- o && !s ? Zh : ft,
10505
+ o && !s ? eg : ft,
10502
10506
  {
10503
10507
  type: "text",
10504
10508
  value: S,
@@ -10579,13 +10583,13 @@ const _n = _t(zh), On = (e) => {
10579
10583
  }
10580
10584
  )
10581
10585
  ] });
10582
- }, Zh = mt(ft)`
10586
+ }, eg = mt(ft)`
10583
10587
  .ant-input {
10584
10588
  background-color: ${Xa.colorPrimaryBg};
10585
10589
  }
10586
10590
  `, Rn = At.createContext(
10587
10591
  null
10588
- ), eg = ({
10592
+ ), tg = ({
10589
10593
  children: e,
10590
10594
  initialView: t
10591
10595
  }) => {
@@ -10604,7 +10608,7 @@ const _n = _t(zh), On = (e) => {
10604
10608
  children: e
10605
10609
  }
10606
10610
  );
10607
- }, tg = ({
10611
+ }, ng = ({
10608
10612
  title: e,
10609
10613
  content: t,
10610
10614
  onOk: n,
@@ -10651,7 +10655,7 @@ const _n = _t(zh), On = (e) => {
10651
10655
  const n = Fs(t);
10652
10656
  return n.render(
10653
10657
  /* @__PURE__ */ i(
10654
- tg,
10658
+ ng,
10655
10659
  {
10656
10660
  ...e,
10657
10661
  onOk: async () => {
@@ -10700,9 +10704,9 @@ const _n = _t(zh), On = (e) => {
10700
10704
  formRef: n,
10701
10705
  onRefreshParentValues: r
10702
10706
  }) => {
10703
- const { t: o } = me(), a = te(
10707
+ const { t: o } = me(), a = ne(
10704
10708
  An
10705
- ), s = te(
10709
+ ), s = ne(
10706
10710
  Ot
10707
10711
  ), { processAction: l } = a || {}, { openRelate: c } = s || {}, u = D(async () => {
10708
10712
  var p;
@@ -10773,7 +10777,7 @@ const _n = _t(zh), On = (e) => {
10773
10777
  }) => {
10774
10778
  const t = await (e == null ? void 0 : e());
10775
10779
  return t != null && t.succeed ? { succeed: !0, currentId: t.id } : { succeed: !1, currentId: void 0 };
10776
- }, ng = ({
10780
+ }, rg = ({
10777
10781
  currentId: e,
10778
10782
  currentModel: t,
10779
10783
  formRef: n,
@@ -10800,8 +10804,8 @@ const _n = _t(zh), On = (e) => {
10800
10804
  duplicatingItem: o,
10801
10805
  duplicate: s
10802
10806
  };
10803
- }, { useToken: rg } = ze;
10804
- function og(e) {
10807
+ }, { useToken: og } = ze;
10808
+ function ig(e) {
10805
10809
  var L, N, B;
10806
10810
  const {
10807
10811
  title: t,
@@ -10825,7 +10829,7 @@ function og(e) {
10825
10829
  formRef: A,
10826
10830
  onRefreshParentValues: S,
10827
10831
  currentId: C
10828
- } = e, { token: F } = rg(), { t: w } = me(), { duplicatingItem: T, duplicate: _ } = ng({
10832
+ } = e, { token: F } = og(), { t: w } = me(), { duplicatingItem: T, duplicate: _ } = rg({
10829
10833
  currentId: C,
10830
10834
  currentModel: o,
10831
10835
  formRef: A,
@@ -10859,7 +10863,7 @@ function og(e) {
10859
10863
  onClick: r
10860
10864
  }
10861
10865
  ),
10862
- f && g && /* @__PURE__ */ P(ne, { children: [
10866
+ f && g && /* @__PURE__ */ P(ee, { children: [
10863
10867
  /* @__PURE__ */ i(kt, {}),
10864
10868
  /* @__PURE__ */ i(
10865
10869
  dt,
@@ -10883,7 +10887,7 @@ function og(e) {
10883
10887
  onDelete: l
10884
10888
  }
10885
10889
  ),
10886
- (s === "tree" || s === "form") && /* @__PURE__ */ P(ne, { children: [
10890
+ (s === "tree" || s === "form") && /* @__PURE__ */ P(ee, { children: [
10887
10891
  /* @__PURE__ */ i(kt, {}),
10888
10892
  /* @__PURE__ */ i(
10889
10893
  dt,
@@ -10899,7 +10903,7 @@ function og(e) {
10899
10903
  }
10900
10904
  )
10901
10905
  ] }),
10902
- s === "form" && /* @__PURE__ */ P(ne, { children: [
10906
+ s === "form" && /* @__PURE__ */ P(ee, { children: [
10903
10907
  /* @__PURE__ */ i(kt, {}),
10904
10908
  /* @__PURE__ */ i(
10905
10909
  dt,
@@ -10925,7 +10929,7 @@ function og(e) {
10925
10929
  onNextItem: d
10926
10930
  }
10927
10931
  ),
10928
- y && /* @__PURE__ */ P(ne, { children: [
10932
+ y && /* @__PURE__ */ P(ee, { children: [
10929
10933
  /* @__PURE__ */ i(kt, {}),
10930
10934
  /* @__PURE__ */ i(
10931
10935
  dt,
@@ -10936,8 +10940,8 @@ function og(e) {
10936
10940
  }
10937
10941
  )
10938
10942
  ] }),
10939
- v && /* @__PURE__ */ P(ne, { children: [
10940
- ((L = v.action) == null ? void 0 : L.length) > 0 && /* @__PURE__ */ P(ne, { children: [
10943
+ v && /* @__PURE__ */ P(ee, { children: [
10944
+ ((L = v.action) == null ? void 0 : L.length) > 0 && /* @__PURE__ */ P(ee, { children: [
10941
10945
  /* @__PURE__ */ i(kt, {}),
10942
10946
  /* @__PURE__ */ i(
10943
10947
  Nt,
@@ -10947,7 +10951,7 @@ function og(e) {
10947
10951
  }
10948
10952
  )
10949
10953
  ] }),
10950
- ((N = v.print) == null ? void 0 : N.length) > 0 && /* @__PURE__ */ P(ne, { children: [
10954
+ ((N = v.print) == null ? void 0 : N.length) > 0 && /* @__PURE__ */ P(ee, { children: [
10951
10955
  /* @__PURE__ */ i(kt, {}),
10952
10956
  /* @__PURE__ */ i(
10953
10957
  Nt,
@@ -10957,7 +10961,7 @@ function og(e) {
10957
10961
  }
10958
10962
  )
10959
10963
  ] }),
10960
- s === "form" && ((B = v.relate) == null ? void 0 : B.length) > 0 && /* @__PURE__ */ P(ne, { children: [
10964
+ s === "form" && ((B = v.relate) == null ? void 0 : B.length) > 0 && /* @__PURE__ */ P(ee, { children: [
10961
10965
  /* @__PURE__ */ i(kt, {}),
10962
10966
  /* @__PURE__ */ i(
10963
10967
  Nt,
@@ -11009,7 +11013,7 @@ const sl = Ze(
11009
11013
  onNextItem: r
11010
11014
  }) => {
11011
11015
  const { t: o } = me();
11012
- return /* @__PURE__ */ P(ne, { children: [
11016
+ return /* @__PURE__ */ P(ee, { children: [
11013
11017
  /* @__PURE__ */ i(kt, {}),
11014
11018
  /* @__PURE__ */ i(
11015
11019
  dt,
@@ -11062,23 +11066,23 @@ const al = Ze(
11062
11066
  }
11063
11067
  );
11064
11068
  al.displayName = "DeleteButton";
11065
- const ll = Ze(og), ig = {
11069
+ const ll = Ze(ig), sg = {
11066
11070
  form: gs,
11067
11071
  tree: us,
11068
11072
  graph: Fn
11069
11073
  };
11070
- function sg(e) {
11074
+ function ag(e) {
11071
11075
  const t = e.map((r) => r.id);
11072
11076
  return e.filter((r, o) => {
11073
11077
  const { id: a } = r;
11074
11078
  return !t.includes(a, o + 1);
11075
11079
  });
11076
11080
  }
11077
- const ag = (e) => {
11081
+ const lg = (e) => {
11078
11082
  var nt, it, It;
11079
- const { value: t, onChange: n, ooui: r, views: o } = e, { items: a = [] } = t || {}, { currentView: s, setCurrentView: l, itemIndex: c, setItemIndex: u } = te(
11083
+ const { value: t, onChange: n, ooui: r, views: o } = e, { items: a = [] } = t || {}, { currentView: s, setCurrentView: l, itemIndex: c, setItemIndex: u } = ne(
11080
11084
  Rn
11081
- ), m = te(Ge), {
11085
+ ), m = ne(Ge), {
11082
11086
  activeId: d,
11083
11087
  getFields: f,
11084
11088
  getValues: h,
@@ -11091,7 +11095,7 @@ const ag = (e) => {
11091
11095
  context: M,
11092
11096
  domain: z
11093
11097
  } = r, ie = r.type === "many2many", { id: X } = r, j = a.filter(
11094
- (ee) => (ee.values || ee.treeValues) && ee.operation !== "pendingRemove"
11098
+ (te) => (te.values || te.treeValues) && te.operation !== "pendingRemove"
11095
11099
  ), le = W();
11096
11100
  ae(() => {
11097
11101
  if (le.current !== s) {
@@ -11101,20 +11105,20 @@ const ag = (e) => {
11101
11105
  ce();
11102
11106
  }, [a, s]);
11103
11107
  const ce = D(() => {
11104
- (s === "form" && a.some((ee) => !ee.values) || s === "tree" && a.some((ee) => !ee.treeValues)) && ye();
11108
+ (s === "form" && a.some((te) => !te.values) || s === "tree" && a.some((te) => !te.treeValues)) && ye();
11105
11109
  }, [a, s]);
11106
11110
  ae(() => {
11107
11111
  Ue();
11108
11112
  }, [g]);
11109
- const de = (ee) => {
11113
+ const de = (te) => {
11110
11114
  var ue, Me;
11111
11115
  n == null || n({
11112
11116
  fields: ((ue = o.get("form")) == null ? void 0 : ue.fields) || ((Me = o.get("tree")) == null ? void 0 : Me.fields),
11113
- items: sg(ee)
11117
+ items: ag(te)
11114
11118
  });
11115
11119
  }, ye = async () => {
11116
11120
  await _e(), c > j.length - 1 && c !== 0 && u(0);
11117
- }, _e = async (ee) => {
11121
+ }, _e = async (te) => {
11118
11122
  var ue, Me, Te;
11119
11123
  C(!0), A(!1), w(void 0);
11120
11124
  try {
@@ -11129,9 +11133,9 @@ const ag = (e) => {
11129
11133
  model: H,
11130
11134
  items: a,
11131
11135
  context: { ...p == null ? void 0 : p(), ...M },
11132
- currentView: ee || s
11136
+ currentView: te || s
11133
11137
  });
11134
- return Z.current || (Z.current = $e.map((pt) => pt.id)), (s || ee) === "tree" && Le && J(Le), de($e), $e;
11138
+ return Z.current || (Z.current = $e.map((pt) => pt.id)), (s || te) === "tree" && Le && J(Le), de($e), $e;
11135
11139
  } catch ($e) {
11136
11140
  w($e);
11137
11141
  } finally {
@@ -11155,7 +11159,7 @@ const ag = (e) => {
11155
11159
  ));
11156
11160
  }
11157
11161
  const Ke = () => {
11158
- const ee = Array.from(o.keys()), ue = ee[(ee.indexOf(s) + 1) % ee.length];
11162
+ const te = Array.from(o.keys()), ue = te[(te.indexOf(s) + 1) % te.length];
11159
11163
  s === "form" ? xe(() => {
11160
11164
  l(ue);
11161
11165
  }) : l(ue);
@@ -11164,35 +11168,35 @@ const ag = (e) => {
11164
11168
  u(c - 1);
11165
11169
  }) : u(c - 1));
11166
11170
  }, re = () => {
11167
- const ee = j.length;
11168
- c < ee - 1 && (s === "form" ? xe(() => {
11171
+ const te = j.length;
11172
+ c < te - 1 && (s === "form" ? xe(() => {
11169
11173
  u(c + 1);
11170
11174
  }) : u(c + 1));
11171
11175
  }, Ae = async () => {
11172
- const ee = j[c].id, ue = (await $.getHandler().readObjects({
11176
+ const te = j[c].id, ue = (await $.getHandler().readObjects({
11173
11177
  model: H,
11174
- ids: [ee],
11178
+ ids: [te],
11175
11179
  fields: o.get("form").fields,
11176
11180
  context: { ...p == null ? void 0 : p(), ...M }
11177
11181
  }))[0], Me = (await $.getHandler().readObjects({
11178
11182
  model: H,
11179
- ids: [ee],
11183
+ ids: [te],
11180
11184
  fields: o.get("tree").fields,
11181
11185
  context: { ...p == null ? void 0 : p(), ...M }
11182
- }))[0], Te = a.map(($e) => $e.id === ee ? {
11186
+ }))[0], Te = a.map(($e) => $e.id === te ? {
11183
11187
  ...$e,
11184
11188
  operation: "original",
11185
11189
  values: ue,
11186
11190
  treeValues: Me
11187
11191
  } : $e);
11188
11192
  de(Te);
11189
- }, xe = (ee) => {
11193
+ }, xe = (te) => {
11190
11194
  b ? In({
11191
11195
  t: v,
11192
11196
  onOk: () => {
11193
- Ae(), ee(), A(!1);
11197
+ Ae(), te(), A(!1);
11194
11198
  }
11195
- }) : ee();
11199
+ }) : te();
11196
11200
  }, Ve = () => {
11197
11201
  if (ie) {
11198
11202
  nl({
@@ -11210,9 +11214,9 @@ const ag = (e) => {
11210
11214
  }
11211
11215
  });
11212
11216
  }, je = async () => {
11213
- const { inv_field: ee } = r;
11217
+ const { inv_field: te } = r;
11214
11218
  let ue;
11215
- ee && d && (ue = { [ee]: d }), s === "form" ? xe(() => {
11219
+ te && d && (ue = { [te]: d }), s === "form" ? xe(() => {
11216
11220
  B(!0), E({ defaultValues: ue }), _(!0);
11217
11221
  }) : (B(!0), E({ defaultValues: ue }), _(!0));
11218
11222
  }, pe = async () => {
@@ -11223,24 +11227,24 @@ const ag = (e) => {
11223
11227
  C(!0), A(!1), w(void 0);
11224
11228
  try {
11225
11229
  if (j[c].id > 0) {
11226
- const ee = a.map((ue) => ue.id === j[c].id ? {
11230
+ const te = a.map((ue) => ue.id === j[c].id ? {
11227
11231
  ...ue,
11228
11232
  operation: "pendingRemove"
11229
11233
  } : ue);
11230
- de(ee);
11234
+ de(te);
11231
11235
  } else
11232
11236
  de(
11233
- a.filter((ee) => ee.id !== j[c].id)
11237
+ a.filter((te) => te.id !== j[c].id)
11234
11238
  );
11235
- } catch (ee) {
11236
- w(ee);
11239
+ } catch (te) {
11240
+ w(te);
11237
11241
  }
11238
11242
  u(0), C(!1);
11239
11243
  }, ke = async () => {
11240
- const ee = j.filter((ue) => V.includes(ue.id));
11244
+ const te = j.filter((ue) => V.includes(ue.id));
11241
11245
  C(!0), A(!1), w(void 0);
11242
11246
  try {
11243
- const ue = ee.map((Te) => Te.id), Me = a.filter((Te) => !(ue.includes(Te.id) && Te.id < 0)).map((Te) => ue.includes(Te.id) ? {
11247
+ const ue = te.map((Te) => Te.id), Me = a.filter((Te) => !(ue.includes(Te.id) && Te.id < 0)).map((Te) => ue.includes(Te.id) ? {
11244
11248
  ...Te,
11245
11249
  operation: "pendingRemove"
11246
11250
  } : Te);
@@ -11249,21 +11253,21 @@ const ag = (e) => {
11249
11253
  w(ue);
11250
11254
  }
11251
11255
  u(0), C(!1);
11252
- }, Ee = (ee, ue, Me, Te = !1) => {
11256
+ }, Ee = (te, ue, Me, Te = !1) => {
11253
11257
  let $e;
11254
11258
  if (Te)
11255
11259
  $e = a.concat({
11256
- id: ee,
11260
+ id: te,
11257
11261
  operation: "pendingLink",
11258
- values: { ...Me, id: ee },
11259
- treeValues: { ...Me, id: ee }
11262
+ values: { ...Me, id: te },
11263
+ treeValues: { ...Me, id: te }
11260
11264
  });
11261
- else if (ee)
11262
- $e = a.map((Le) => Le.id === ee ? {
11263
- id: ee,
11264
- operation: ee > 0 ? "pendingUpdate" : "pendingCreate",
11265
- values: { ...Me, id: ee },
11266
- treeValues: { ...Me, id: ee }
11265
+ else if (te)
11266
+ $e = a.map((Le) => Le.id === te ? {
11267
+ id: te,
11268
+ operation: te > 0 ? "pendingUpdate" : "pendingCreate",
11269
+ values: { ...Me, id: te },
11270
+ treeValues: { ...Me, id: te }
11267
11271
  } : Le);
11268
11272
  else {
11269
11273
  const Le = Us(a);
@@ -11275,14 +11279,14 @@ const ag = (e) => {
11275
11279
  });
11276
11280
  }
11277
11281
  de($e), N || _(!1);
11278
- }, Re = async (ee) => {
11279
- const { id: ue } = ee;
11282
+ }, Re = async (te) => {
11283
+ const { id: ue } = te;
11280
11284
  let Me = a;
11281
11285
  const Te = a.find(($e) => $e.id === ue);
11282
11286
  (Te == null ? void 0 : Te.values) === void 0 && (Me = await _e("form")), E(Me.find(($e) => $e.id === ue)), B(!1), _(!0);
11283
- }, ve = async (ee) => {
11287
+ }, ve = async (te) => {
11284
11288
  C(!0);
11285
- const ue = a, Me = ee.filter((Te) => !a.find(($e) => $e.id === Te));
11289
+ const ue = a, Me = te.filter((Te) => !a.find(($e) => $e.id === Te));
11286
11290
  try {
11287
11291
  for (const Te of Me) {
11288
11292
  const $e = (await $.getHandler().readObjects({
@@ -11311,11 +11315,11 @@ const ag = (e) => {
11311
11315
  }
11312
11316
  };
11313
11317
  function Se() {
11314
- const ee = ig[s];
11318
+ const te = sg[s];
11315
11319
  if (s === "graph")
11316
11320
  return hs(o.get("graph").arch).string;
11317
11321
  {
11318
- const ue = new ee(o.get(s).fields);
11322
+ const ue = new te(o.get(s).fields);
11319
11323
  return ue.parse(o.get(s).arch), ue.string;
11320
11324
  }
11321
11325
  }
@@ -11345,8 +11349,8 @@ const ag = (e) => {
11345
11349
  readOnly: oe
11346
11350
  }
11347
11351
  );
11348
- let ee = [];
11349
- if (j.some((Le) => Le.treeValues) && (ee = k ? pn({
11352
+ let te = [];
11353
+ if (j.some((Le) => Le.treeValues) && (te = k ? pn({
11350
11354
  resultsToSort: j.map((Le) => Le.treeValues),
11351
11355
  sorter: k,
11352
11356
  fields: {
@@ -11360,7 +11364,7 @@ const ag = (e) => {
11360
11364
  total: j.length,
11361
11365
  limit: j.length,
11362
11366
  treeView: o.get("tree"),
11363
- results: ee,
11367
+ results: te,
11364
11368
  loading: S,
11365
11369
  onRowClicked: (($e = o.get("form")) == null ? void 0 : $e.fields) !== void 0 ? Re : void 0,
11366
11370
  showPagination: !1,
@@ -11392,7 +11396,7 @@ const ag = (e) => {
11392
11396
  if (F)
11393
11397
  return /* @__PURE__ */ i(yt, { className: "mt-10", message: F, type: "error", banner: !0 });
11394
11398
  const be = N;
11395
- return S ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ P(ne, { children: [
11399
+ return S ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ P(ee, { children: [
11396
11400
  /* @__PURE__ */ i(
11397
11401
  ll,
11398
11402
  {
@@ -11452,8 +11456,8 @@ const ag = (e) => {
11452
11456
  model: H,
11453
11457
  context: { ...p == null ? void 0 : p(), ...M },
11454
11458
  visible: O,
11455
- onSelectValues: async (ee) => {
11456
- x(!1), ve(ee);
11459
+ onSelectValues: async (te) => {
11460
+ x(!1), ve(te);
11457
11461
  },
11458
11462
  onCloseModal: () => {
11459
11463
  x(!1);
@@ -11461,7 +11465,7 @@ const ag = (e) => {
11461
11465
  }
11462
11466
  )
11463
11467
  ] });
11464
- }, lg = ({
11468
+ }, cg = ({
11465
11469
  fieldName: e,
11466
11470
  widgetDomain: t
11467
11471
  }) => {
@@ -11470,7 +11474,7 @@ const ag = (e) => {
11470
11474
  getValues: o,
11471
11475
  getContext: a,
11472
11476
  domain: s
11473
- } = te(Ge) || {};
11477
+ } = ne(Ge) || {};
11474
11478
  ae(() => {
11475
11479
  l();
11476
11480
  }, [s]);
@@ -11491,7 +11495,7 @@ const ag = (e) => {
11491
11495
  ));
11492
11496
  }
11493
11497
  return n.current;
11494
- }, cg = ({
11498
+ }, dg = ({
11495
11499
  treeView: e,
11496
11500
  relation: t,
11497
11501
  context: n,
@@ -11549,7 +11553,7 @@ const ag = (e) => {
11549
11553
  onGetFirstVisibileRowIndex: m,
11550
11554
  onSelectionCheckboxClicked: c
11551
11555
  };
11552
- }, dg = ({
11556
+ }, ug = ({
11553
11557
  items: e,
11554
11558
  relation: t,
11555
11559
  context: n,
@@ -11557,7 +11561,7 @@ const ag = (e) => {
11557
11561
  formView: o,
11558
11562
  triggerChange: a
11559
11563
  }) => {
11560
- const [s, l] = I(!1), { itemIndex: c } = te(Rn), { t: u } = me();
11564
+ const [s, l] = I(!1), { itemIndex: c } = ne(Rn), { t: u } = me();
11561
11565
  ae(() => {
11562
11566
  const p = e[c];
11563
11567
  (!p || (p == null ? void 0 : p.operation) === "original") && l(!1);
@@ -11622,7 +11626,7 @@ const ag = (e) => {
11622
11626
  getOriginalItemsWithRestoredItemId: m,
11623
11627
  onFormChanges: d
11624
11628
  };
11625
- }, ug = ({
11629
+ }, fg = ({
11626
11630
  one2manyItems: e
11627
11631
  }) => yn(() => e.filter((t) => t.operation !== "pendingRemove"), [e]), cl = _t(
11628
11632
  ({
@@ -11634,7 +11638,7 @@ const ag = (e) => {
11634
11638
  onChange: a
11635
11639
  }, s) => {
11636
11640
  var u, m;
11637
- const { itemIndex: l } = te(Rn), { t: c } = me();
11641
+ const { itemIndex: l } = ne(Rn), { t: c } = me();
11638
11642
  return t.length === 0 ? c("noCurrentEntries") : /* @__PURE__ */ i(
11639
11643
  _n,
11640
11644
  {
@@ -11661,7 +11665,7 @@ const ag = (e) => {
11661
11665
  }
11662
11666
  );
11663
11667
  cl.displayName = "One2manyForm";
11664
- const fg = ({
11668
+ const mg = ({
11665
11669
  isMany2many: e,
11666
11670
  triggerChange: t,
11667
11671
  items: n,
@@ -11669,10 +11673,10 @@ const fg = ({
11669
11673
  selectedRowKeys: o,
11670
11674
  setSelectedRowKeys: a
11671
11675
  }) => {
11672
- const { t: s } = me(), { currentView: l, itemIndex: c, setItemIndex: u } = te(
11676
+ const { t: s } = me(), { currentView: l, itemIndex: c, setItemIndex: u } = ne(
11673
11677
  Rn
11674
11678
  ), m = D(async () => {
11675
- const p = mg({
11679
+ const p = pg({
11676
11680
  selectedRowKeys: o,
11677
11681
  items: n
11678
11682
  });
@@ -11724,7 +11728,7 @@ const fg = ({
11724
11728
  });
11725
11729
  }, [e, f, s]) };
11726
11730
  };
11727
- function mg({
11731
+ function pg({
11728
11732
  selectedRowKeys: e,
11729
11733
  items: t
11730
11734
  }) {
@@ -11733,7 +11737,7 @@ function mg({
11733
11737
  o.id && r[o.id] > 0 && (n.push(o), r[o.id] -= 1);
11734
11738
  }), n;
11735
11739
  }
11736
- const pg = ({
11740
+ const hg = ({
11737
11741
  currentView: e,
11738
11742
  inv_field: t,
11739
11743
  activeId: n,
@@ -11807,7 +11811,7 @@ const pg = ({
11807
11811
  onFormModalSubmitSucceed: A,
11808
11812
  openItemInFormModal: S
11809
11813
  };
11810
- }, hg = ({
11814
+ }, gg = ({
11811
11815
  currentView: e,
11812
11816
  showFormChangesDialogIfNeeded: t,
11813
11817
  items: n,
@@ -11865,7 +11869,7 @@ const pg = ({
11865
11869
  onCloseSearchModal: m,
11866
11870
  onSelectSearchValues: f
11867
11871
  };
11868
- }, gg = (e) => `columnState-${e.parentViewId}-${e.treeViewId}-${e.one2ManyFieldName}-${e.model}`, yg = 400, vg = ({
11872
+ }, yg = (e) => `columnState-${e.parentViewId}-${e.treeViewId}-${e.one2ManyFieldName}-${e.model}`, vg = 400, bg = ({
11869
11873
  items: e,
11870
11874
  height: t,
11871
11875
  onRowDoubleClick: n,
@@ -11922,7 +11926,7 @@ const pg = ({
11922
11926
  if (A.current[(B = (N = L.node) == null ? void 0 : N.data) == null ? void 0 : B.id])
11923
11927
  return { color: A.current[(k = (Y = L.node) == null ? void 0 : Y.data) == null ? void 0 : k.id] };
11924
11928
  }, []), { loading: R, getColumnState: E, updateColumnState: V } = No({
11925
- key: gg({
11929
+ key: yg({
11926
11930
  ...h,
11927
11931
  model: u
11928
11932
  })
@@ -11931,7 +11935,7 @@ const pg = ({
11931
11935
  _s,
11932
11936
  {
11933
11937
  ref: b,
11934
- height: t || yg,
11938
+ height: t || vg,
11935
11939
  columns: _,
11936
11940
  onRequestData: O,
11937
11941
  onRowDoubleClick: n,
@@ -11958,7 +11962,7 @@ const pg = ({
11958
11962
  }
11959
11963
  }
11960
11964
  );
11961
- }, bg = ({
11965
+ }, wg = ({
11962
11966
  ooui: e,
11963
11967
  items: t,
11964
11968
  selectedRowKeys: n,
@@ -11971,9 +11975,9 @@ const pg = ({
11971
11975
  model: r,
11972
11976
  domain: a
11973
11977
  });
11974
- }, wg = ["form", "tree", "graph"], Sg = (e) => {
11978
+ }, Sg = ["form", "tree", "graph"], Cg = (e) => {
11975
11979
  var xe, Ve, je;
11976
- const t = W(null), { value: n, onChange: r, ooui: o, views: a } = e, { items: s = [] } = n || {}, l = ug({ one2manyItems: s }), { currentView: c, setCurrentView: u, itemIndex: m, setItemIndex: d } = te(
11980
+ const t = W(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(
11977
11981
  Rn
11978
11982
  ), {
11979
11983
  readOnly: f,
@@ -11981,11 +11985,11 @@ const pg = ({
11981
11985
  context: p,
11982
11986
  domain: g,
11983
11987
  id: y
11984
- } = o, v = te(Ge), {
11988
+ } = o, v = ne(Ge), {
11985
11989
  activeId: b,
11986
11990
  getContext: A,
11987
11991
  fetchValues: S
11988
- } = v || {}, C = W(), F = a.size > 1, w = ((xe = a.get("form")) == null ? void 0 : xe.fields) !== void 0, T = q(() => ({ ...A == null ? void 0 : A(), ...p }), [A, p]), _ = lg({
11992
+ } = v || {}, C = W(), F = a.size > 1, w = ((xe = a.get("form")) == null ? void 0 : xe.fields) !== void 0, T = q(() => ({ ...A == null ? void 0 : A(), ...p }), [A, p]), _ = cg({
11989
11993
  widgetDomain: g,
11990
11994
  fieldName: y
11991
11995
  }), {
@@ -11996,13 +12000,13 @@ const pg = ({
11996
12000
  onChangeFirstVisibleRowIndex: V,
11997
12001
  onGetFirstVisibileRowIndex: L,
11998
12002
  onSelectionCheckboxClicked: N
11999
- } = cg({
12003
+ } = dg({
12000
12004
  treeView: a.get("tree"),
12001
12005
  relation: h,
12002
12006
  context: T,
12003
12007
  allRowsIds: l.filter((pe) => pe.id !== void 0).map((pe) => pe.id),
12004
12008
  gridRef: t
12005
- }), [, B] = bg({
12009
+ }), [, B] = wg({
12006
12010
  ooui: O,
12007
12011
  model: h,
12008
12012
  items: l,
@@ -12024,7 +12028,7 @@ const pg = ({
12024
12028
  onFormChanges: Q,
12025
12029
  showFormChangesDialogIfNeeded: J,
12026
12030
  setFormHasChanges: we
12027
- } = dg({
12031
+ } = ug({
12028
12032
  items: l,
12029
12033
  formView: a.get("form"),
12030
12034
  treeView: a.get("tree"),
@@ -12039,7 +12043,7 @@ const pg = ({
12039
12043
  onFormModalSubmitSucceed: ie,
12040
12044
  createItem: X,
12041
12045
  openItemInFormModal: j
12042
- } = pg({
12046
+ } = hg({
12043
12047
  activeId: b,
12044
12048
  inv_field: o.inv_field,
12045
12049
  showFormChangesDialogIfNeeded: J,
@@ -12056,7 +12060,7 @@ const pg = ({
12056
12060
  onSelectSearchValues: ce,
12057
12061
  onCloseSearchModal: de,
12058
12062
  searchItem: ye
12059
- } = hg({
12063
+ } = gg({
12060
12064
  showFormChangesDialogIfNeeded: J,
12061
12065
  currentView: c,
12062
12066
  triggerChange: K,
@@ -12064,7 +12068,7 @@ const pg = ({
12064
12068
  views: a,
12065
12069
  context: T,
12066
12070
  relation: h
12067
- }), { showRemoveConfirm: _e } = fg({
12071
+ }), { showRemoveConfirm: _e } = mg({
12068
12072
  isMany2many: k,
12069
12073
  items: l,
12070
12074
  triggerChange: K,
@@ -12102,7 +12106,7 @@ const pg = ({
12102
12106
  var pe;
12103
12107
  return ((pe = a.get("form")) == null ? void 0 : pe.fields) !== void 0;
12104
12108
  }, [a]);
12105
- return /* @__PURE__ */ P(ne, { children: [
12109
+ return /* @__PURE__ */ P(ee, { children: [
12106
12110
  /* @__PURE__ */ i(
12107
12111
  ll,
12108
12112
  {
@@ -12133,7 +12137,7 @@ const pg = ({
12133
12137
  }
12134
12138
  ),
12135
12139
  c === "tree" && /* @__PURE__ */ i(
12136
- vg,
12140
+ bg,
12137
12141
  {
12138
12142
  gridRef: t,
12139
12143
  height: o.height,
@@ -12212,16 +12216,16 @@ const pg = ({
12212
12216
  limit: 0
12213
12217
  }
12214
12218
  ),
12215
- !wg.includes(c) && /* @__PURE__ */ P("span", { children: [
12219
+ !Sg.includes(c) && /* @__PURE__ */ P("span", { children: [
12216
12220
  "Unsupported view ",
12217
12221
  c
12218
12222
  ] })
12219
12223
  ] });
12220
- }, Cg = 30, xg = (e) => {
12224
+ }, xg = 30, Tg = (e) => {
12221
12225
  var F;
12222
12226
  const { ooui: t } = e, { mode: n, relation: r, views: o, required: a, context: s } = t;
12223
12227
  let l;
12224
- const [c, u] = I(!0), [m, d] = I(), [f, h] = I(/* @__PURE__ */ new Map()), p = te(Ge), { getContext: g, formView: y } = p || {}, { view_id: v } = y || {};
12228
+ const [c, u] = I(!0), [m, d] = I(), [f, h] = I(/* @__PURE__ */ new Map()), p = ne(Ge), { getContext: g, formView: y } = p || {}, { view_id: v } = y || {};
12225
12229
  Mt(() => {
12226
12230
  S();
12227
12231
  }, [t]);
@@ -12264,7 +12268,7 @@ const pg = ({
12264
12268
  u(!1);
12265
12269
  }
12266
12270
  };
12267
- return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(Qe, {}) : m ? /* @__PURE__ */ i(yt, { className: "mt-10", message: m, type: "error", banner: !0 }) : /* @__PURE__ */ i(eg, { initialView: l, children: /* @__PURE__ */ i(
12271
+ return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ i(Qe, {}) : m ? /* @__PURE__ */ i(yt, { className: "mt-10", message: m, type: "error", banner: !0 }) : /* @__PURE__ */ i(tg, { initialView: l, children: /* @__PURE__ */ i(
12268
12272
  Pe,
12269
12273
  {
12270
12274
  required: a,
@@ -12281,7 +12285,7 @@ const pg = ({
12281
12285
  },
12282
12286
  ...e,
12283
12287
  children: /* @__PURE__ */ i(
12284
- Tg,
12288
+ Ig,
12285
12289
  {
12286
12290
  ooui: t,
12287
12291
  views: f,
@@ -12291,14 +12295,14 @@ const pg = ({
12291
12295
  )
12292
12296
  }
12293
12297
  ) });
12294
- }, Tg = (e) => {
12298
+ }, Ig = (e) => {
12295
12299
  const { ooui: t, value: n } = e;
12296
- return t.infinite || n && Array.isArray(n.items) && n.items.length >= Cg ? /* @__PURE__ */ i(Sg, { ...e }) : /* @__PURE__ */ i(ag, { ...e });
12297
- }, { useToken: Ig } = ze, Ag = (e) => {
12300
+ return t.infinite || n && Array.isArray(n.items) && n.items.length >= xg ? /* @__PURE__ */ i(Cg, { ...e }) : /* @__PURE__ */ i(lg, { ...e });
12301
+ }, { useToken: Ag } = ze, Fg = (e) => {
12298
12302
  const { ooui: t } = e, { required: n } = t;
12299
- return /* @__PURE__ */ i(Pe, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(Fg, { ooui: t }) });
12300
- }, Fg = (e) => {
12301
- const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: a, required: s } = t, { token: l } = Ig(), c = s && !a ? { backgroundColor: l.colorPrimaryBg } : void 0, u = W(), [m, d] = I(), f = te(Ge), { elementHasLostFocus: h } = f || {};
12303
+ return /* @__PURE__ */ i(Pe, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(_g, { ooui: t }) });
12304
+ }, _g = (e) => {
12305
+ const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: a, required: s } = t, { token: l } = Ag(), c = s && !a ? { backgroundColor: l.colorPrimaryBg } : void 0, u = W(), [m, d] = I(), f = ne(Ge), { elementHasLostFocus: h } = f || {};
12302
12306
  ae(() => {
12303
12307
  d(aa(n));
12304
12308
  }, [n]);
@@ -12362,7 +12366,7 @@ function dl(e) {
12362
12366
  }
12363
12367
  );
12364
12368
  }
12365
- const { TabPane: _g } = ds, Og = mt(ds)`
12369
+ const { TabPane: Og } = ds, Rg = mt(ds)`
12366
12370
  .ant-tabs-content-holder {
12367
12371
  border-left: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
12368
12372
  border-right: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
@@ -12382,7 +12386,7 @@ const { TabPane: _g } = ds, Og = mt(ds)`
12382
12386
  margin-bottom: 0 !important;
12383
12387
  }
12384
12388
  `;
12385
- function Rg(e) {
12389
+ function Dg(e) {
12386
12390
  const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = ze.useToken();
12387
12391
  function a(s) {
12388
12392
  if (s) {
@@ -12391,15 +12395,15 @@ function Rg(e) {
12391
12395
  }
12392
12396
  }
12393
12397
  return /* @__PURE__ */ i(
12394
- Og,
12398
+ Rg,
12395
12399
  {
12396
12400
  defaultActiveKey: "1",
12397
12401
  tabPosition: t.tabPosition,
12398
12402
  $borderRadius: `${o.borderRadius}px`,
12399
12403
  children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
12400
- _g,
12404
+ Og,
12401
12405
  {
12402
- tab: /* @__PURE__ */ P(ne, { children: [
12406
+ tab: /* @__PURE__ */ P(ee, { children: [
12403
12407
  a(s.icon),
12404
12408
  " ",
12405
12409
  s.label
@@ -12418,10 +12422,10 @@ function Rg(e) {
12418
12422
  }
12419
12423
  );
12420
12424
  }
12421
- const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12422
- const { ooui: t } = e, { id: n, readOnly: r, required: o, height: a, translatable: s } = t, { token: l } = Dg(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = te(Ge), { elementHasLostFocus: m } = u || {};
12425
+ const { useToken: Eg } = ze, { TextArea: mo } = ft, Pg = (e) => {
12426
+ const { ooui: t } = e, { id: n, readOnly: r, required: o, height: a, translatable: s } = t, { token: l } = Eg(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ne(Ge), { elementHasLostFocus: m } = u || {};
12423
12427
  return /* @__PURE__ */ i(Pe, { required: o, ...e, children: s ? /* @__PURE__ */ i(
12424
- Pg,
12428
+ Vg,
12425
12429
  {
12426
12430
  field: n,
12427
12431
  height: a,
@@ -12441,21 +12445,21 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12441
12445
  onBlur: m
12442
12446
  }
12443
12447
  ) });
12444
- }, Pg = ({
12448
+ }, Vg = ({
12445
12449
  value: e,
12446
12450
  field: t,
12447
12451
  requiredStyle: n,
12448
12452
  onChange: r,
12449
12453
  height: o
12450
12454
  }) => {
12451
- const a = te(Ge), {
12455
+ const a = ne(Ge), {
12452
12456
  activeId: s,
12453
12457
  activeModel: l,
12454
12458
  fetchValues: c,
12455
12459
  formHasChanges: u,
12456
12460
  elementHasLostFocus: m
12457
12461
  } = a || {}, [d, f] = I(!1), { t: h } = me();
12458
- return s ? /* @__PURE__ */ P(ne, { children: [
12462
+ return s ? /* @__PURE__ */ P(ee, { children: [
12459
12463
  /* @__PURE__ */ i(
12460
12464
  "div",
12461
12465
  {
@@ -12502,7 +12506,7 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12502
12506
  }
12503
12507
  }
12504
12508
  )
12505
- ] }) : /* @__PURE__ */ P(ne, { children: [
12509
+ ] }) : /* @__PURE__ */ P(ee, { children: [
12506
12510
  /* @__PURE__ */ i(Ye, { gutter: 8, wrap: !1, children: /* @__PURE__ */ i(
12507
12511
  mo,
12508
12512
  {
@@ -12531,13 +12535,13 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12531
12535
  }
12532
12536
  ) })
12533
12537
  ] });
12534
- }, Vg = (e) => {
12538
+ }, kg = (e) => {
12535
12539
  const { ooui: t } = e, { label: n, icon: r } = t, o = St(r || "");
12536
12540
  return /* @__PURE__ */ i(hr, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ P(rt, { children: [
12537
12541
  o ? /* @__PURE__ */ i(o, {}) : null,
12538
12542
  n
12539
12543
  ] }) });
12540
- }, kg = ({
12544
+ }, $g = ({
12541
12545
  model: e,
12542
12546
  context: t,
12543
12547
  selectedRegistersToExport: n,
@@ -12557,7 +12561,7 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12557
12561
  ]);
12558
12562
  const { datas: b } = await $.getHandler().exportData({
12559
12563
  model: e,
12560
- fields: Bg({
12564
+ fields: Hg({
12561
12565
  keys: y.selectedKeys,
12562
12566
  fields: s.current
12563
12567
  }),
@@ -12586,7 +12590,7 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12586
12590
  fields: []
12587
12591
  });
12588
12592
  for (const [C, F] of Object.entries(S))
12589
- S[C].string = Mg({
12593
+ S[C].string = Lg({
12590
12594
  parentTitle: b.string,
12591
12595
  title: F.string
12592
12596
  });
@@ -12597,7 +12601,7 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12597
12601
  },
12598
12602
  [t]
12599
12603
  ), f = D(async () => {
12600
- const y = await Lg({ model: e, context: t }), v = await jg({
12604
+ const y = await Ng({ model: e, context: t }), v = await Bg({
12601
12605
  predefinedExports: y,
12602
12606
  fields: s.current,
12603
12607
  onGetFieldChilds: d
@@ -12679,7 +12683,7 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12679
12683
  for (const r of Object.keys(e)) {
12680
12684
  const o = e[r], a = ul(o), s = o.is_function === !0, l = a && !s;
12681
12685
  n.push({
12682
- key: $g({ key: r, parentKey: t }),
12686
+ key: Mg({ key: r, parentKey: t }),
12683
12687
  title: o.string,
12684
12688
  tooltip: o.help,
12685
12689
  required: o.required,
@@ -12687,7 +12691,7 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12687
12691
  });
12688
12692
  }
12689
12693
  return n;
12690
- }, ul = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", $g = ({
12694
+ }, ul = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Mg = ({
12691
12695
  parentKey: e,
12692
12696
  key: t
12693
12697
  }) => `${e ? e + "/" : ""}${t}`, po = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), ho = (e) => {
@@ -12695,10 +12699,10 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12695
12699
  return e;
12696
12700
  const t = e.split("/");
12697
12701
  return t[t.length - 1];
12698
- }, go = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[po(e)], Mg = ({
12702
+ }, go = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[po(e)], Lg = ({
12699
12703
  title: e,
12700
12704
  parentTitle: t
12701
- }) => `${t ? t + " → " : ""}${e}`, Lg = async ({
12705
+ }) => `${t ? t + " → " : ""}${e}`, Ng = async ({
12702
12706
  model: e,
12703
12707
  context: t
12704
12708
  }) => {
@@ -12718,24 +12722,24 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12718
12722
  key: o.find((c) => c.id === s).name
12719
12723
  }))
12720
12724
  }));
12721
- }, Ng = ({
12725
+ }, jg = ({
12722
12726
  fields: e,
12723
12727
  keys: t
12724
- }) => Hg([
12728
+ }) => Ug([
12725
12729
  ...new Set(
12726
12730
  t.filter((n) => {
12727
12731
  var r, o;
12728
12732
  return n.indexOf("/") === -1 ? !((r = e["/"]) != null && r[n]) : !((o = e == null ? void 0 : e[po(n)]) != null && o[n]);
12729
12733
  }).map((n) => po(n))
12730
12734
  )
12731
- ]), jg = async ({
12735
+ ]), Bg = async ({
12732
12736
  predefinedExports: e,
12733
12737
  fields: t,
12734
12738
  onGetFieldChilds: n
12735
12739
  }) => {
12736
12740
  const r = e.flatMap(
12737
12741
  (s) => s.fields.map((l) => l.key)
12738
- ), o = Ng({
12742
+ ), o = jg({
12739
12743
  fields: t,
12740
12744
  keys: r
12741
12745
  }), a = [];
@@ -12749,13 +12753,13 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12749
12753
  );
12750
12754
  }
12751
12755
  return a;
12752
- }, Bg = ({
12756
+ }, Hg = ({
12753
12757
  keys: e,
12754
12758
  fields: t
12755
12759
  }) => e.map((n) => {
12756
12760
  const r = ho(n), a = go(n, t)[r], s = ul(a), l = a.is_function === !0;
12757
12761
  return s && !l ? `${n}/id` : n;
12758
- }), Hg = (e) => {
12762
+ }), Ug = (e) => {
12759
12763
  const t = /* @__PURE__ */ new Map(), n = [];
12760
12764
  for (const r of e) {
12761
12765
  const o = r.split("/");
@@ -12769,7 +12773,7 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12769
12773
  const a = r.split("/").length, s = o.split("/").length;
12770
12774
  return a - s;
12771
12775
  }), n;
12772
- }, Ug = (e) => {
12776
+ }, Wg = (e) => {
12773
12777
  const {
12774
12778
  visible: t,
12775
12779
  onClose: n,
@@ -12787,7 +12791,7 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12787
12791
  onGetPredefinedExports: h,
12788
12792
  onSavePredefinedExport: p,
12789
12793
  onRemovePredefinedExport: g
12790
- } = kg({
12794
+ } = $g({
12791
12795
  model: r,
12792
12796
  context: o,
12793
12797
  domain: l,
@@ -12811,16 +12815,16 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12811
12815
  onRemovePredefinedExport: g
12812
12816
  }
12813
12817
  );
12814
- }, Wg = (e) => {
12818
+ }, Yg = (e) => {
12815
12819
  const { ooui: t } = e;
12816
12820
  return /* @__PURE__ */ i(da, { ooui: t });
12817
- }, Yg = (e) => {
12821
+ }, Gg = (e) => {
12818
12822
  const { ooui: t } = e;
12819
12823
  return /* @__PURE__ */ i(da, { ooui: t, showTime: !0 });
12820
- }, Gg = (e) => {
12824
+ }, Kg = (e) => {
12821
12825
  const { ooui: t } = e;
12822
- return /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(Kg, { ooui: t }) });
12823
- }, Kg = (e) => /* @__PURE__ */ i(
12826
+ return /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(qg, { ooui: t }) });
12827
+ }, qg = (e) => /* @__PURE__ */ i(
12824
12828
  ro,
12825
12829
  {
12826
12830
  onChange: (n, r) => {
@@ -12829,10 +12833,10 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12829
12833
  numberOfSelectsToHide: 3,
12830
12834
  value: e.value ? tt(e.value, "HH:mm:ss") : void 0
12831
12835
  }
12832
- ), qg = (e) => {
12836
+ ), zg = (e) => {
12833
12837
  const { ooui: t } = e, { required: n } = t;
12834
- return /* @__PURE__ */ i(Pe, { required: n, ...e, children: /* @__PURE__ */ i(zg, { ooui: t }) });
12835
- }, zg = (e) => {
12838
+ return /* @__PURE__ */ i(Pe, { required: n, ...e, children: /* @__PURE__ */ i(Jg, { ooui: t }) });
12839
+ }, Jg = (e) => {
12836
12840
  const { value: t, onChange: n, ooui: r } = e, { required: o, selectionValues: a, readOnly: s, domain: l } = r, c = t == null ? void 0 : t.split(","), [u, m] = I([]), [d, f] = I();
12837
12841
  return ae(() => {
12838
12842
  if (!t) {
@@ -12880,11 +12884,11 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12880
12884
  }
12881
12885
  ) })
12882
12886
  ] });
12883
- }, { useToken: Jg } = ze, Qg = (e) => {
12887
+ }, { useToken: Qg } = ze, Xg = (e) => {
12884
12888
  const { ooui: t } = e, { required: n } = t;
12885
- return /* @__PURE__ */ i(Pe, { required: n, ...e, children: /* @__PURE__ */ i(Xg, { ooui: t }) });
12886
- }, Xg = (e) => {
12887
- const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: a, filenameField: s } = t, { token: l } = Jg(), c = a && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = W(null), { setFieldValue: m, getFieldValue: d } = te(Ge) || {}, { t: f } = me(), h = n ? Id(n) : "", p = (A) => {
12889
+ return /* @__PURE__ */ i(Pe, { required: n, ...e, children: /* @__PURE__ */ i(Zg, { ooui: t }) });
12890
+ }, Zg = (e) => {
12891
+ const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: a, filenameField: s } = t, { token: l } = Qg(), c = a && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = W(null), { setFieldValue: m, getFieldValue: d } = ne(Ge) || {}, { t: f } = me(), h = n ? Id(n) : "", p = (A) => {
12888
12892
  r == null || r(A);
12889
12893
  };
12890
12894
  async function g() {
@@ -12958,7 +12962,7 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
12958
12962
  )
12959
12963
  ] }) })
12960
12964
  ] });
12961
- }, Zg = (e) => {
12965
+ }, ey = (e) => {
12962
12966
  const {
12963
12967
  numberOfAttachments: t,
12964
12968
  attachments: n = [],
@@ -13056,14 +13060,14 @@ const { useToken: Dg } = ze, { TextArea: mo } = ft, Eg = (e) => {
13056
13060
  }
13057
13061
  );
13058
13062
  };
13059
- function ey(e) {
13063
+ function ty(e) {
13060
13064
  const {
13061
13065
  attachments: t,
13062
13066
  disabled: n = !1,
13063
13067
  onAddNewAttachment: r,
13064
13068
  onListAllAttachments: o,
13065
13069
  onViewAttachmentDetails: a
13066
- } = e, { formRef: s } = te(Ct), [l, c] = I(!1), [u, m] = I([]), [d, f] = I(!1), { t: h } = me(), p = D(async () => {
13070
+ } = e, { formRef: s } = ne(Ct), [l, c] = I(!1), [u, m] = I([]), [d, f] = I(!1), { t: h } = me(), p = D(async () => {
13067
13071
  if (!(!t || t.length === 0)) {
13068
13072
  c(!0);
13069
13073
  try {
@@ -13119,9 +13123,9 @@ function ey(e) {
13119
13123
  );
13120
13124
  return ae(() => {
13121
13125
  p();
13122
- }, [p]), /* @__PURE__ */ P(ne, { children: [
13126
+ }, [p]), /* @__PURE__ */ P(ee, { children: [
13123
13127
  /* @__PURE__ */ i(
13124
- Zg,
13128
+ ey,
13125
13129
  {
13126
13130
  numberOfAttachments: t.length,
13127
13131
  attachments: u,
@@ -13147,7 +13151,7 @@ function ey(e) {
13147
13151
  )
13148
13152
  ] });
13149
13153
  }
13150
- const ty = () => {
13154
+ const ny = () => {
13151
13155
  const {
13152
13156
  treeType: e,
13153
13157
  totalItems: t,
@@ -13230,10 +13234,10 @@ const ty = () => {
13230
13234
  onPreviousClick: g
13231
13235
  };
13232
13236
  };
13233
- function ny({ toolbar: e }) {
13234
- const t = te(
13237
+ function ry({ toolbar: e }) {
13238
+ const t = ne(
13235
13239
  Ot
13236
- ), { t: n } = me(), { onNextClick: r, onPreviousClick: o } = ty(), {
13240
+ ), { t: n } = me(), { onNextClick: r, onPreviousClick: o } = ny(), {
13237
13241
  availableViews: a,
13238
13242
  currentView: s,
13239
13243
  setCurrentView: l,
@@ -13383,7 +13387,7 @@ function ny({ toolbar: e }) {
13383
13387
  T
13384
13388
  ]
13385
13389
  ), s ? /* @__PURE__ */ P(rt, { wrap: !0, children: [
13386
- F && /* @__PURE__ */ P(ne, { children: [
13390
+ F && /* @__PURE__ */ P(ee, { children: [
13387
13391
  /* @__PURE__ */ i(Qe, {}),
13388
13392
  /* @__PURE__ */ i(st, {}),
13389
13393
  /* @__PURE__ */ i(st, {})
@@ -13473,7 +13477,7 @@ function ny({ toolbar: e }) {
13473
13477
  /* @__PURE__ */ i(Nt, { icon: /* @__PURE__ */ i(Cr, {}), ...k }),
13474
13478
  /* @__PURE__ */ i(Nt, { icon: /* @__PURE__ */ i(xr, {}), ...K }),
13475
13479
  /* @__PURE__ */ i(
13476
- ey,
13480
+ ty,
13477
13481
  {
13478
13482
  disabled: L,
13479
13483
  attachments: w,
@@ -13486,7 +13490,7 @@ function ny({ toolbar: e }) {
13486
13490
  /* @__PURE__ */ i(Rr, { res_id: d })
13487
13491
  ] }) : null;
13488
13492
  }
13489
- const ry = Ze(ny), fl = Ze(
13493
+ const oy = Ze(ry), fl = Ze(
13490
13494
  ({
13491
13495
  disabled: e,
13492
13496
  onPreviousClick: t,
@@ -13525,8 +13529,8 @@ const ts = (e, t) => ({
13525
13529
  ],
13526
13530
  values: { selection_associated_object: `${e},${t}` },
13527
13531
  forced_values: { res_model: e, res_id: t }
13528
- }), { useToken: oy } = ze, ml = (e) => {
13529
- const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: a = "" } = e, { id: s, readOnly: l, required: c } = t, { token: u } = oy(), m = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = te(Ge), { elementHasLostFocus: f } = d || {}, [h, p] = I(!1), [g, y] = I(!1);
13532
+ }), { useToken: iy } = ze, ml = (e) => {
13533
+ const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: a = "" } = e, { id: s, readOnly: l, required: c } = t, { token: u } = iy(), m = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = ne(Ge), { elementHasLostFocus: f } = d || {}, [h, p] = I(!1), [g, y] = I(!1);
13530
13534
  ae(() => {
13531
13535
  l && !h && y(!1), !n && !l && (p(!0), y(!0));
13532
13536
  }, [h, l]);
@@ -13581,7 +13585,7 @@ const ts = (e, t) => ({
13581
13585
  }
13582
13586
  ) })
13583
13587
  ] });
13584
- }, iy = (e) => {
13588
+ }, sy = (e) => {
13585
13589
  const { ooui: t } = e, { required: n } = t;
13586
13590
  return /* @__PURE__ */ i(Pe, { required: n, ...e, children: /* @__PURE__ */ i(
13587
13591
  ml,
@@ -13590,7 +13594,7 @@ const ts = (e, t) => ({
13590
13594
  valueValidator: (r) => r ? $c(r) : !1
13591
13595
  }
13592
13596
  ) });
13593
- }, sy = (e) => {
13597
+ }, ay = (e) => {
13594
13598
  const { ooui: t } = e, { required: n } = t;
13595
13599
  return /* @__PURE__ */ i(Pe, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(cf, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
13596
13600
  ml,
@@ -13600,7 +13604,7 @@ const ts = (e, t) => ({
13600
13604
  valueValidator: (r) => r ? Mc(r) : !1
13601
13605
  }
13602
13606
  ) });
13603
- }, ay = (e) => {
13607
+ }, ly = (e) => {
13604
13608
  const { visible: t, onIdSubmitted: n, onCancel: r, isSearching: o } = e, { t: a } = me(), s = W(null), l = W(!1);
13605
13609
  function c(u) {
13606
13610
  const m = u.id.split(",").map((d) => parseInt(d.trim()));
@@ -13683,7 +13687,7 @@ const ts = (e, t) => ({
13683
13687
  }
13684
13688
  );
13685
13689
  };
13686
- function ly({ refreshGraph: e }) {
13690
+ function cy({ refreshGraph: e }) {
13687
13691
  const { t } = me(), {
13688
13692
  availableViews: n,
13689
13693
  currentView: r,
@@ -13694,7 +13698,7 @@ function ly({ refreshGraph: e }) {
13694
13698
  graphIsLoading: c,
13695
13699
  previousView: u,
13696
13700
  setPreviousView: m
13697
- } = te(Ct);
13701
+ } = ne(Ct);
13698
13702
  return /* @__PURE__ */ P(rt, { wrap: !0, children: [
13699
13703
  /* @__PURE__ */ i(
13700
13704
  ta,
@@ -13742,7 +13746,7 @@ function ly({ refreshGraph: e }) {
13742
13746
  /* @__PURE__ */ i(Rr, { searchParams: a })
13743
13747
  ] });
13744
13748
  }
13745
- const cy = (e) => {
13749
+ const dy = (e) => {
13746
13750
  const {
13747
13751
  viewData: t,
13748
13752
  visible: n,
@@ -13752,7 +13756,7 @@ const cy = (e) => {
13752
13756
  formView: s,
13753
13757
  treeView: l,
13754
13758
  graphView: c
13755
- } = e, u = W(), m = te(
13759
+ } = e, u = W(), m = ne(
13756
13760
  Ct
13757
13761
  ), {
13758
13762
  setResults: d = void 0,
@@ -13815,9 +13819,9 @@ const cy = (e) => {
13815
13819
  c == null ? void 0 : c.search_fields
13816
13820
  ]
13817
13821
  );
13818
- return !n || !t ? null : /* @__PURE__ */ P(ne, { children: [
13822
+ return !n || !t ? null : /* @__PURE__ */ P(ee, { children: [
13819
13823
  /* @__PURE__ */ i(Dr, { title: t.title || t.name, children: /* @__PURE__ */ i(
13820
- ly,
13824
+ cy,
13821
13825
  {
13822
13826
  refreshGraph: () => {
13823
13827
  u.current.refresh();
@@ -13860,7 +13864,7 @@ const cy = (e) => {
13860
13864
  }
13861
13865
  )
13862
13866
  ] });
13863
- }, dy = (e) => {
13867
+ }, uy = (e) => {
13864
13868
  const {
13865
13869
  visible: t,
13866
13870
  formRef: n,
@@ -13875,8 +13879,8 @@ const cy = (e) => {
13875
13879
  setResults: d,
13876
13880
  setCurrentItemIndex: f
13877
13881
  } = e;
13878
- return t ? /* @__PURE__ */ P(ne, { children: [
13879
- /* @__PURE__ */ i(Dr, { children: /* @__PURE__ */ i(ry, { toolbar: s == null ? void 0 : s.toolbar }) }),
13882
+ return t ? /* @__PURE__ */ P(ee, { children: [
13883
+ /* @__PURE__ */ i(Dr, { children: /* @__PURE__ */ i(oy, { toolbar: s == null ? void 0 : s.toolbar }) }),
13880
13884
  /* @__PURE__ */ i(
13881
13885
  _n,
13882
13886
  {
@@ -13895,7 +13899,7 @@ const cy = (e) => {
13895
13899
  }
13896
13900
  )
13897
13901
  ] }) : null;
13898
- }, Jo = At.createContext(null), uy = (e) => {
13902
+ }, Jo = At.createContext(null), fy = (e) => {
13899
13903
  const [t, n] = I(!1), [r, o] = I(!1), { children: a, dashboardRef: s, openAction: l } = e;
13900
13904
  return /* @__PURE__ */ i(
13901
13905
  Jo.Provider,
@@ -13912,8 +13916,8 @@ const cy = (e) => {
13912
13916
  }
13913
13917
  );
13914
13918
  };
13915
- function fy() {
13916
- const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = te(Jo), { t: o } = me();
13919
+ function my() {
13920
+ const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = ne(Jo), { t: o } = me();
13917
13921
  return /* @__PURE__ */ P(rt, { wrap: !0, children: [
13918
13922
  /* @__PURE__ */ i(
13919
13923
  gt,
@@ -13962,21 +13966,21 @@ function fy() {
13962
13966
  /* @__PURE__ */ i(Rr, {})
13963
13967
  ] });
13964
13968
  }
13965
- const my = (e) => {
13966
- const { dashboardData: t, visible: n } = e, r = W(), o = te(
13969
+ const py = (e) => {
13970
+ const { dashboardData: t, visible: n } = e, r = W(), o = ne(
13967
13971
  Ot
13968
13972
  ), { openShortcut: a } = o || {};
13969
13973
  return !t || !n ? null : /* @__PURE__ */ P(
13970
- uy,
13974
+ fy,
13971
13975
  {
13972
13976
  dashboardRef: r,
13973
13977
  openAction: (s) => {
13974
13978
  a(s);
13975
13979
  },
13976
13980
  children: [
13977
- /* @__PURE__ */ i(Dr, { children: /* @__PURE__ */ i(fy, {}) }),
13981
+ /* @__PURE__ */ i(Dr, { children: /* @__PURE__ */ i(my, {}) }),
13978
13982
  /* @__PURE__ */ i(
13979
- Iy,
13983
+ Ay,
13980
13984
  {
13981
13985
  ref: r,
13982
13986
  model: t.model,
@@ -13989,7 +13993,7 @@ const my = (e) => {
13989
13993
  }
13990
13994
  );
13991
13995
  };
13992
- async function py(e) {
13996
+ async function hy(e) {
13993
13997
  const t = await Promise.all(
13994
13998
  e.map(async (r) => {
13995
13999
  try {
@@ -14004,7 +14008,7 @@ async function py(e) {
14004
14008
  info: t[o]
14005
14009
  })).filter((r) => r.info !== null);
14006
14010
  }
14007
- function hy({
14011
+ function gy({
14008
14012
  currentTab: e
14009
14013
  }) {
14010
14014
  const { currentView: t, searchParams: n, currentId: r, limit: o, currentPage: a, order: s } = Xn(), { currentTab: l } = Vo(), c = e || l;
@@ -14025,8 +14029,8 @@ function hy({
14025
14029
  let p = !!m;
14026
14030
  return h === "form" && (p = !!m && !!r), { shareUrl: f, canShare: p };
14027
14031
  }
14028
- const gy = () => {
14029
- const { currentTab: e } = Vo(), { title: t } = Yn(), { shareUrl: n } = hy({ currentTab: e });
14032
+ const yy = () => {
14033
+ const { currentTab: e } = Vo(), { title: t } = Yn(), { shareUrl: n } = gy({ currentTab: e });
14030
14034
  ae(() => {
14031
14035
  if (n) {
14032
14036
  const r = new URL(n, window.location.origin);
@@ -14036,7 +14040,7 @@ const gy = () => {
14036
14040
  document.title = t, e != null && e.title && e.title.length > 0 && (document.title = (e == null ? void 0 : e.title) + " - " + t);
14037
14041
  }, [e, t]);
14038
14042
  };
14039
- function yy(e, t) {
14043
+ function vy(e, t) {
14040
14044
  const {
14041
14045
  domain: n,
14042
14046
  model: r,
@@ -14058,7 +14062,7 @@ function yy(e, t) {
14058
14062
  order: A
14059
14063
  } = e, [S, C] = I(), [F, w] = I([]), [T, _] = I(!0), O = f || void 0, [x, R] = I(
14060
14064
  O
14061
- ), [E, V] = I([]), [L, N] = I(), [B, Y] = I([]), [k, K] = I(), [Z, Q] = I(0), [J, we] = I(!1), [oe, H] = I(!1), [M, z] = I(), { t: ie } = me(), X = W(), j = W(), le = te(
14065
+ ), [E, V] = I([]), [L, N] = I(), [B, Y] = I([]), [k, K] = I(), [Z, Q] = I(0), [J, we] = I(!1), [oe, H] = I(!1), [M, z] = I(), { t: ie } = me(), X = W(), j = W(), le = ne(
14062
14066
  Ot
14063
14067
  ), {
14064
14068
  setCurrentView: ce,
@@ -14105,7 +14109,7 @@ function yy(e, t) {
14105
14109
  viewTuple: ve
14106
14110
  });
14107
14111
  }
14108
- const Ee = await py(ke);
14112
+ const Ee = await hy(ke);
14109
14113
  for (const ve of Ee) {
14110
14114
  if (!ve)
14111
14115
  continue;
@@ -14270,7 +14274,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14270
14274
  }
14271
14275
  }
14272
14276
  return T ? /* @__PURE__ */ i(Qe, {}) : S ? /* @__PURE__ */ P(
14273
- wh,
14277
+ Sh,
14274
14278
  {
14275
14279
  title: s,
14276
14280
  currentView: S,
@@ -14302,7 +14306,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14302
14306
  initialOrder: A,
14303
14307
  children: [
14304
14308
  /* @__PURE__ */ i(
14305
- vy,
14309
+ by,
14306
14310
  {
14307
14311
  availableViews: F,
14308
14312
  formRef: X,
@@ -14324,7 +14328,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14324
14328
  }
14325
14329
  ),
14326
14330
  /* @__PURE__ */ i(
14327
- ay,
14331
+ ly,
14328
14332
  {
14329
14333
  visible: J,
14330
14334
  onIdSubmitted: je,
@@ -14338,7 +14342,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14338
14342
  }
14339
14343
  ) : null;
14340
14344
  }
14341
- const vy = ({
14345
+ const by = ({
14342
14346
  availableViews: e,
14343
14347
  formRef: t,
14344
14348
  currentId: n,
@@ -14356,11 +14360,11 @@ const vy = ({
14356
14360
  searchTreeNameSearch: p,
14357
14361
  setCurrentView: g,
14358
14362
  setCurrentId: y
14359
- }) => (gy(), e.map((v) => {
14363
+ }) => (yy(), e.map((v) => {
14360
14364
  switch (v.type) {
14361
14365
  case "form":
14362
14366
  return /* @__PURE__ */ i(
14363
- dy,
14367
+ uy,
14364
14368
  {
14365
14369
  formRef: t,
14366
14370
  currentId: n,
@@ -14379,7 +14383,7 @@ const vy = ({
14379
14383
  );
14380
14384
  case "tree":
14381
14385
  return /* @__PURE__ */ i(
14382
- bh,
14386
+ wh,
14383
14387
  {
14384
14388
  visible: r.type === v.type && r.view_id === v.view_id,
14385
14389
  limit: f,
@@ -14400,7 +14404,7 @@ const vy = ({
14400
14404
  );
14401
14405
  case "graph":
14402
14406
  return /* @__PURE__ */ i(
14403
- cy,
14407
+ dy,
14404
14408
  {
14405
14409
  visible: r.type === v.type && r.view_id === v.view_id,
14406
14410
  viewData: v,
@@ -14417,7 +14421,7 @@ const vy = ({
14417
14421
  );
14418
14422
  case "dashboard":
14419
14423
  return /* @__PURE__ */ i(
14420
- my,
14424
+ py,
14421
14425
  {
14422
14426
  dashboardData: v,
14423
14427
  visible: r.type === v.type && r.view_id === v.view_id
@@ -14425,8 +14429,8 @@ const vy = ({
14425
14429
  `${v.type}-${v.view_id}`
14426
14430
  );
14427
14431
  }
14428
- })), pl = _t(yy);
14429
- const by = Lc(Nc), wy = (e) => {
14432
+ })), pl = _t(vy);
14433
+ const wy = Lc(Nc), Sy = (e) => {
14430
14434
  const { children: t = [], onPositionItemsChanged: n } = e, r = At.Children.map(
14431
14435
  t,
14432
14436
  (o) => {
@@ -14435,7 +14439,7 @@ const by = Lc(Nc), wy = (e) => {
14435
14439
  }
14436
14440
  );
14437
14441
  return /* @__PURE__ */ i(
14438
- by,
14442
+ wy,
14439
14443
  {
14440
14444
  className: "layout",
14441
14445
  cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
@@ -14456,7 +14460,7 @@ const by = Lc(Nc), wy = (e) => {
14456
14460
  }
14457
14461
  );
14458
14462
  };
14459
- function Sy(e) {
14463
+ function Cy(e) {
14460
14464
  const {
14461
14465
  action: t,
14462
14466
  model: n,
@@ -14568,7 +14572,7 @@ function Sy(e) {
14568
14572
  ] });
14569
14573
  return Y ? /* @__PURE__ */ i(yt, { className: "mt-10", message: Y, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(Qe, { style: { padding: "2rem" } }) : X();
14570
14574
  }
14571
- const Cy = Ze(Sy), xy = (e) => {
14575
+ const xy = Ze(Cy), Ty = (e) => {
14572
14576
  const { model: t } = e, [n, r] = I();
14573
14577
  ae(() => {
14574
14578
  o();
@@ -14583,12 +14587,12 @@ const Cy = Ze(Sy), xy = (e) => {
14583
14587
  }
14584
14588
  return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(_n, { ...e, model: t, id: n, readOnly: !0 }) });
14585
14589
  }, Xr = "line_ids";
14586
- function Ty(e, t) {
14590
+ function Iy(e, t) {
14587
14591
  const { model: n, context: r = {}, id: o, configAction: a } = e, [s, l] = I([]), [c, u] = I(!1), [m, d] = I(), {
14588
14592
  setIsLoading: f,
14589
14593
  openAction: h,
14590
14594
  moveItemsEnabled: p
14591
- } = te(Jo), g = W(), y = W(), [v] = Xe($.getHandler().getView), [b] = Xe(
14595
+ } = ne(Jo), g = W(), y = W(), [v] = Xe($.getHandler().getView), [b] = Xe(
14592
14596
  $.getHandler().readObjects
14593
14597
  ), [A] = Xe($.getHandler().update), S = Gn(
14594
14598
  sn.FEATURE_READFORVIEW
@@ -14715,7 +14719,7 @@ function Ty(e, t) {
14715
14719
  async function x() {
14716
14720
  h(a);
14717
14721
  }
14718
- return c ? /* @__PURE__ */ i(Pt, {}) : m ? /* @__PURE__ */ i(yt, { className: "mt-10 mb-20", message: m, type: "error", banner: !0 }) : /* @__PURE__ */ i(wy, { onPositionItemsChanged: O, children: s.map((R, E) => {
14722
+ 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) => {
14719
14723
  const { actionData: V, values: L } = R, { position: N, id: B } = L, {
14720
14724
  actionId: Y,
14721
14725
  actionType: k,
@@ -14752,10 +14756,10 @@ function Ty(e, t) {
14752
14756
  B
14753
14757
  );
14754
14758
  } else if ((M == null ? void 0 : M.type) === "form")
14755
- X = /* @__PURE__ */ i(xy, { model: we, actionDomain: H }, B);
14759
+ X = /* @__PURE__ */ i(Ty, { model: we, actionDomain: H }, B);
14756
14760
  else if ((M == null ? void 0 : M.type) === "tree")
14757
14761
  X = /* @__PURE__ */ i(
14758
- Cy,
14762
+ xy,
14759
14763
  {
14760
14764
  model: we,
14761
14765
  domain: H,
@@ -14836,7 +14840,7 @@ function Ty(e, t) {
14836
14840
  Ja,
14837
14841
  {
14838
14842
  id: B,
14839
- title: Q ? /* @__PURE__ */ P(ne, { children: [
14843
+ title: Q ? /* @__PURE__ */ P(ee, { children: [
14840
14844
  /* @__PURE__ */ i(Et, { title: Q, children: /* @__PURE__ */ i(Tn, { className: "pr-1 text-xs" }) }),
14841
14845
  /* @__PURE__ */ i("span", { children: Z })
14842
14846
  ] }) : /* @__PURE__ */ i("span", { children: Z }),
@@ -14850,11 +14854,11 @@ function Ty(e, t) {
14850
14854
  );
14851
14855
  }) });
14852
14856
  }
14853
- const Iy = _t(Ty), Ay = (e) => {
14857
+ const Ay = _t(Iy), Fy = (e) => {
14854
14858
  const { ooui: t } = e;
14855
- return /* @__PURE__ */ i(Pe, { type: "array", ...e, children: /* @__PURE__ */ i(Fy, { ooui: t }) });
14856
- }, Fy = (e) => {
14857
- const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, a = o.filter((T) => T.operation !== "pendingRemove").map((T) => T.id), [s, l] = I([]), [c, u] = I(), [m, d] = I(!1), { relation: f, context: h, readOnly: p, field: g, columns: y } = n, v = te(Ge), { getContext: b } = v || {};
14859
+ return /* @__PURE__ */ i(Pe, { type: "array", ...e, children: /* @__PURE__ */ i(_y, { ooui: t }) });
14860
+ }, _y = (e) => {
14861
+ const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, a = o.filter((T) => T.operation !== "pendingRemove").map((T) => T.id), [s, l] = I([]), [c, u] = I(), [m, d] = I(!1), { relation: f, context: h, readOnly: p, field: g, columns: y } = n, v = ne(Ge), { getContext: b } = v || {};
14858
14862
  Mt(() => {
14859
14863
  S();
14860
14864
  }, [o]);
@@ -14911,7 +14915,7 @@ const Iy = _t(Ty), Ay = (e) => {
14911
14915
  _.push({ id: x, operation: "pendingLink" });
14912
14916
  }), A(_);
14913
14917
  };
14914
- return m && s.length === 0 ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ P("div", { className: "flex flex-row", children: [
14918
+ return m && s.length === 0 ? /* @__PURE__ */ i(Qe, {}) : /* @__PURE__ */ i(ee, { children: /* @__PURE__ */ P("div", { className: "flex flex-row", children: [
14915
14919
  /* @__PURE__ */ i(
14916
14920
  Pn.Group,
14917
14921
  {
@@ -14934,7 +14938,7 @@ const Iy = _t(Ty), Ay = (e) => {
14934
14938
  /* @__PURE__ */ i(We, { onClick: F, disabled: a.length === 0, children: "Uncheck all" })
14935
14939
  ] })
14936
14940
  ] }) });
14937
- }, _y = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(Oy, { ...e }) }), Oy = (e) => {
14941
+ }, Oy = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(Ry, { ...e }) }), Ry = (e) => {
14938
14942
  const { value: t, ooui: n } = e;
14939
14943
  return /* @__PURE__ */ i(
14940
14944
  "div",
@@ -14953,26 +14957,26 @@ const Iy = _t(Ty), Ay = (e) => {
14953
14957
  )
14954
14958
  }
14955
14959
  );
14956
- }, Ry = (e) => {
14957
- const { ooui: t } = e, { required: n } = t;
14958
- return /* @__PURE__ */ i(Pe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Dy, { ...e }) });
14959
14960
  }, Dy = (e) => {
14961
+ const { ooui: t } = e, { required: n } = t;
14962
+ return /* @__PURE__ */ i(Pe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Ey, { ...e }) });
14963
+ }, Ey = (e) => {
14960
14964
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: a, direction: s } = t, l = Array.from(o.entries()), c = l && l.length && l.map((u) => {
14961
14965
  const [m, d] = u;
14962
14966
  return /* @__PURE__ */ i(ei, { value: m, children: d }, m);
14963
14967
  });
14964
14968
  return /* @__PURE__ */ i(ei.Group, { disabled: a, onChange: n, value: r, children: /* @__PURE__ */ i(rt, { direction: s, children: c }) });
14965
- }, Ey = (e) => {
14966
- const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
14967
- return /* @__PURE__ */ i(Pe, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Py, { id: n, readOnly: r, required: o }) });
14968
14969
  }, Py = (e) => {
14970
+ const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
14971
+ return /* @__PURE__ */ i(Pe, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Vy, { id: n, readOnly: r, required: o }) });
14972
+ }, Vy = (e) => {
14969
14973
  const { required: t, readOnly: n, ...r } = e;
14970
14974
  return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(Pl, { disabled: n, ...r }) });
14971
- }, Vy = (e) => {
14972
- const { ooui: t } = e, { required: n } = t;
14973
- return /* @__PURE__ */ i(Pe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(ky, { ...e }) });
14974
14975
  }, ky = (e) => {
14975
- const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = te(Ge), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
14976
+ const { ooui: t } = e, { required: n } = t;
14977
+ return /* @__PURE__ */ i(Pe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i($y, { ...e }) });
14978
+ }, $y = (e) => {
14979
+ const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = ne(Ge), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
14976
14980
  let u = "process", m = "";
14977
14981
  return o && (m = s.getFieldValue(o), m && (u = "error")), a && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(ti, { current: c, status: u, children: l.map((d, f) => /* @__PURE__ */ i(
14978
14982
  ti.Step,
@@ -14981,7 +14985,7 @@ const Iy = _t(Ty), Ay = (e) => {
14981
14985
  description: f === c && u === "error" ? m : null
14982
14986
  }
14983
14987
  )) });
14984
- }, $y = (e) => {
14988
+ }, My = (e) => {
14985
14989
  const {
14986
14990
  token: {
14987
14991
  colorPrimaryBg: t,
@@ -15044,8 +15048,8 @@ const Iy = _t(Ty), Ay = (e) => {
15044
15048
  /* @__PURE__ */ i("div", { style: m }),
15045
15049
  /* @__PURE__ */ i("div", { style: d(h.active) })
15046
15050
  ] }, p)) });
15047
- }, My = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i($y, {}) }), Ly = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(Ny, { ...e }) }), Ny = (e) => {
15048
- const { ooui: t, value: n, onChange: r } = e, { lang: o, height: a, readOnly: s } = t, l = te(Ge), { elementHasLostFocus: c } = l || {}, u = D(
15051
+ }, Ly = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(My, {}) }), Ny = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(jy, { ...e }) }), jy = (e) => {
15052
+ const { ooui: t, value: n, onChange: r } = e, { lang: o, height: a, readOnly: s } = t, l = ne(Ge), { elementHasLostFocus: c } = l || {}, u = D(
15049
15053
  (d) => {
15050
15054
  c && d.onDidBlurEditorWidget(() => c());
15051
15055
  },
@@ -15072,13 +15076,13 @@ const Iy = _t(Ty), Ay = (e) => {
15072
15076
  onChange: r
15073
15077
  }
15074
15078
  );
15075
- }, { Meta: jy } = bo, { Text: By } = zt, Hy = ({ email: e, size: t = 40, theme: n = "" }) => {
15079
+ }, { Meta: By } = bo, { Text: Hy } = zt, Uy = ({ email: e, size: t = 40, theme: n = "" }) => {
15076
15080
  const r = `https://www.gravatar.com/avatar/${Uc(
15077
15081
  e
15078
15082
  )}?s=${t}&d=${n}`;
15079
15083
  return /* @__PURE__ */ i(ss, { src: r, size: t });
15080
15084
  };
15081
- function Uy({ text: e }) {
15085
+ function Wy({ text: e }) {
15082
15086
  const t = e.split(`
15083
15087
  `);
15084
15088
  return /* @__PURE__ */ i("div", { children: t.map((n, r) => /* @__PURE__ */ P(Sn, { children: [
@@ -15086,13 +15090,13 @@ function Uy({ text: e }) {
15086
15090
  r !== t.length - 1 && /* @__PURE__ */ i("br", {})
15087
15091
  ] }, r)) });
15088
15092
  }
15089
- const Wy = (e) => {
15093
+ const Yy = (e) => {
15090
15094
  const { data: t, style: n } = e, { t: r } = me();
15091
15095
  return /* @__PURE__ */ P(bo, { style: { ...n, textAlign: "start" }, children: [
15092
15096
  /* @__PURE__ */ i(
15093
- jy,
15097
+ By,
15094
15098
  {
15095
- avatar: /* @__PURE__ */ i(Hy, { email: t.email, theme: "mp" }),
15099
+ avatar: /* @__PURE__ */ i(Uy, { email: t.email, theme: "mp" }),
15096
15100
  title: t.author,
15097
15101
  description: /* @__PURE__ */ P(rt, { direction: "horizontal", children: [
15098
15102
  /* @__PURE__ */ i("span", { title: t.date, children: tt(t.date).fromNow() }),
@@ -15101,12 +15105,12 @@ const Wy = (e) => {
15101
15105
  style: { marginBottom: "5px" }
15102
15106
  }
15103
15107
  ),
15104
- /* @__PURE__ */ i(By, { children: /* @__PURE__ */ i(Uy, { text: t.text }) })
15108
+ /* @__PURE__ */ i(Hy, { children: /* @__PURE__ */ i(Wy, { text: t.text }) })
15105
15109
  ] }, t.id);
15106
15110
  }, ns = (e) => {
15107
15111
  const t = St(e);
15108
15112
  return t && /* @__PURE__ */ i(t, {});
15109
- }, Yy = (e) => {
15113
+ }, Gy = (e) => {
15110
15114
  const { value: t, ooui: n } = e, r = (t || []).map((o) => {
15111
15115
  if (o.type === "action")
15112
15116
  return {
@@ -15118,7 +15122,7 @@ const Wy = (e) => {
15118
15122
  color: "gray",
15119
15123
  position: o.event.isSender ? "left" : "right",
15120
15124
  label: o.event.date,
15121
- children: /* @__PURE__ */ i(Wy, { data: o.event }),
15125
+ children: /* @__PURE__ */ i(Yy, { data: o.event }),
15122
15126
  dot: o.icon ? ns(o.icon) : void 0
15123
15127
  };
15124
15128
  });
@@ -15136,8 +15140,8 @@ const Wy = (e) => {
15136
15140
  }
15137
15141
  }
15138
15142
  );
15139
- }, Gy = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(Yy, { ooui: e.ooui }) }), Ky = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(yc, {}) }), qy = (e) => {
15140
- const { ooui: t } = e, n = te(Ge);
15143
+ }, Ky = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(Gy, { ooui: e.ooui }) }), qy = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(yc, {}) }), zy = (e) => {
15144
+ const { ooui: t } = e, n = ne(Ge);
15141
15145
  let { title: r, text: o, alertType: a, icon: s, buttons: l } = t;
15142
15146
  if (t.fieldType && t.id) {
15143
15147
  const m = n.getFieldValue(t.id);
@@ -15169,9 +15173,9 @@ const Wy = (e) => {
15169
15173
  icon: c(s)
15170
15174
  }
15171
15175
  );
15172
- }, { defaultAlgorithm: zy, defaultSeed: Jy } = ze, rs = zy(Jy), Qy = (e) => {
15176
+ }, { defaultAlgorithm: Jy, defaultSeed: Qy } = ze, rs = Jy(Qy), Xy = (e) => {
15173
15177
  const { ooui: t, responsiveBehaviour: n = !1 } = e;
15174
- return /* @__PURE__ */ i(Xy, { autoplay: t.autoPlay, dots: !0, autoplaySpeed: 5e3, children: t.items.map((r, o) => /* @__PURE__ */ i(
15178
+ return /* @__PURE__ */ i(Zy, { autoplay: t.autoPlay, dots: !0, autoplaySpeed: 5e3, children: t.items.map((r, o) => /* @__PURE__ */ i(
15175
15179
  qo,
15176
15180
  {
15177
15181
  container: r.container,
@@ -15179,7 +15183,7 @@ const Wy = (e) => {
15179
15183
  },
15180
15184
  o
15181
15185
  )) });
15182
- }, Xy = mt(Vl)`
15186
+ }, Zy = mt(Vl)`
15183
15187
  .slick-dots li button {
15184
15188
  background-color: ${rs.colorPrimary};
15185
15189
  }
@@ -15189,7 +15193,7 @@ const Wy = (e) => {
15189
15193
  .slick-dots-bottom {
15190
15194
  bottom: -15px;
15191
15195
  }
15192
- `, Zy = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(ev, { ...e }) }), ev = (e) => {
15196
+ `, ev = (e) => /* @__PURE__ */ i(Pe, { ...e, children: /* @__PURE__ */ i(tv, { ...e }) }), tv = (e) => {
15193
15197
  const { ooui: t, value: n, onChange: r } = e;
15194
15198
  return /* @__PURE__ */ i(
15195
15199
  as,
@@ -15203,19 +15207,19 @@ const Wy = (e) => {
15203
15207
  value: n
15204
15208
  }
15205
15209
  );
15206
- }, { Content: tv } = ls, { Title: nv } = zt;
15207
- function rv() {
15210
+ }, { Content: nv } = ls, { Title: rv } = zt;
15211
+ function ov() {
15208
15212
  const { t: e } = me();
15209
- return /* @__PURE__ */ i(tv, { className: "m-5 select-none", children: /* @__PURE__ */ i(nv, { level: 5, children: e("welcome") }) });
15213
+ return /* @__PURE__ */ i(nv, { className: "m-5 select-none", children: /* @__PURE__ */ i(rv, { level: 5, children: e("welcome") }) });
15210
15214
  }
15211
15215
  const os = 100;
15212
- function ov(e, t) {
15216
+ function iv(e, t) {
15213
15217
  const { children: n } = e, [r, o] = I("welcome"), { t: a } = me(), { globalValues: s, rootContext: l } = Yn(), [c, u] = I([
15214
15218
  {
15215
15219
  title: a("welcome"),
15216
15220
  key: "welcome",
15217
15221
  closable: !0,
15218
- content: /* @__PURE__ */ i(rv, {}),
15222
+ content: /* @__PURE__ */ i(ov, {}),
15219
15223
  action: null
15220
15224
  }
15221
15225
  ]), m = W(/* @__PURE__ */ new Map()), d = W();
@@ -15649,9 +15653,9 @@ function ov(e, t) {
15649
15653
  }
15650
15654
  );
15651
15655
  }
15652
- const lb = _t(ov), { useToken: iv } = ze;
15653
- function sv(e) {
15654
- const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: a } = e, { token: s } = iv(), l = o ? s.colorBgContainer : s.colorPrimaryBg;
15656
+ const cb = _t(iv), { useToken: sv } = ze;
15657
+ function av(e) {
15658
+ const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: a } = e, { token: s } = sv(), l = o ? s.colorBgContainer : s.colorPrimaryBg;
15655
15659
  return /* @__PURE__ */ P(
15656
15660
  "div",
15657
15661
  {
@@ -15721,12 +15725,12 @@ function sv(e) {
15721
15725
  }
15722
15726
  );
15723
15727
  }
15724
- function cb() {
15725
- const e = te(
15728
+ function db() {
15729
+ const e = ne(
15726
15730
  Ot
15727
15731
  ), { activeKey: t, tabs: n, onRemoveTab: r, onChangeTab: o } = e || {};
15728
- return /* @__PURE__ */ i(ne, { children: n.map((a) => /* @__PURE__ */ i(
15729
- sv,
15732
+ return /* @__PURE__ */ i(ee, { children: n.map((a) => /* @__PURE__ */ i(
15733
+ av,
15730
15734
  {
15731
15735
  tabKey: a.key,
15732
15736
  label: a.title,
@@ -15737,29 +15741,29 @@ function cb() {
15737
15741
  a.key
15738
15742
  )) });
15739
15743
  }
15740
- function av(e) {
15741
- const { tab: t } = e, n = te(
15744
+ function lv(e) {
15745
+ const { tab: t } = e, n = ne(
15742
15746
  Ot
15743
15747
  ), { activeKey: r } = n || {}, o = {
15744
15748
  display: "none"
15745
15749
  };
15746
15750
  return /* @__PURE__ */ i("div", { style: t.key !== r ? o : void 0, children: t.content });
15747
15751
  }
15748
- const lv = At.memo(av, () => !0);
15749
- function db() {
15750
- const e = te(
15752
+ const cv = At.memo(lv, () => !0);
15753
+ function ub() {
15754
+ const e = ne(
15751
15755
  Ot
15752
- ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(lv, { tab: r }, r.key))) || null;
15753
- return /* @__PURE__ */ i(ne, { children: n });
15756
+ ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(cv, { tab: r }, r.key))) || null;
15757
+ return /* @__PURE__ */ i(ee, { children: n });
15754
15758
  }
15755
- const { useToken: cv } = ze, ub = (e) => {
15759
+ const { useToken: dv } = ze, fb = (e) => {
15756
15760
  const {
15757
15761
  onRetrieveShortcuts: t,
15758
15762
  onCheckIsFavourite: n,
15759
15763
  onAddFavourite: r,
15760
15764
  onRemoveFavourite: o,
15761
15765
  onDropdownClosed: a
15762
- } = e, [s, l] = I(!1), [c, u] = I(), { t: m } = me(), { token: d } = cv(), f = W(null), h = te(
15766
+ } = e, [s, l] = I(!1), [c, u] = I(), { t: m } = me(), { token: d } = dv(), f = W(null), h = ne(
15763
15767
  Ot
15764
15768
  ), {
15765
15769
  openShortcut: p,
@@ -15879,70 +15883,70 @@ const { useToken: cv } = ze, ub = (e) => {
15879
15883
  );
15880
15884
  };
15881
15885
  export {
15882
- ry as ActionBar,
15886
+ oy as ActionBar,
15883
15887
  pl as ActionView,
15884
- qy as Alert,
15885
- My as ArrowStepsField,
15886
- Qg as Binary,
15888
+ zy as Alert,
15889
+ Ly as ArrowStepsField,
15890
+ Xg as Binary,
15887
15891
  Cd as Boolean,
15888
15892
  _o as Button,
15889
15893
  rd as ButtonGroup,
15890
- Qy as Carousel,
15894
+ Xy as Carousel,
15891
15895
  Vs as Char,
15892
- Ly as CodeEditor,
15893
- Zy as ColorPicker,
15894
- Gy as CommentsTimelineField,
15896
+ Ny as CodeEditor,
15897
+ ev as ColorPicker,
15898
+ Ky as CommentsTimelineField,
15895
15899
  Ys as ConfigContext,
15896
15900
  tu as ConfigContextProvider,
15897
15901
  $ as ConnectionProvider,
15898
15902
  $u as ContentRootProvider,
15899
- db as CurrentTabContent,
15900
- Iy as Dashboard,
15901
- wy as DashboardGrid,
15902
- Wg as Date,
15903
- Yg as DateTime,
15904
- sy as Email,
15905
- ab as ErpAllFeatureKeys,
15903
+ ub as CurrentTabContent,
15904
+ Ay as Dashboard,
15905
+ Sy as DashboardGrid,
15906
+ Yg as Date,
15907
+ Gg as DateTime,
15908
+ ay as Email,
15909
+ lb as ErpAllFeatureKeys,
15906
15910
  sn as ErpFeatureKeys,
15907
- Ug as ExportModal,
15908
- ub as FavouriteButton,
15911
+ Wg as ExportModal,
15912
+ fb as FavouriteButton,
15909
15913
  Ho as Float,
15910
- Ag as FloatTime,
15914
+ Fg as FloatTime,
15911
15915
  _n as Form,
15912
15916
  On as FormModal,
15913
15917
  Ja as GraphCard,
15914
15918
  iu as GraphIndicator,
15915
15919
  dl as Group,
15916
- Ky as HTMLPreview,
15920
+ qy as HTMLPreview,
15917
15921
  Ad as Image,
15918
15922
  Ln as Integer,
15919
15923
  Ir as Label,
15920
- Xh as Many2one,
15921
- _y as Markdown,
15922
- Ay as MultiCheckbox,
15923
- Rg as Notebook,
15924
- xg as One2many,
15924
+ Zh as Many2one,
15925
+ Oy as Markdown,
15926
+ Fy as MultiCheckbox,
15927
+ Dg as Notebook,
15928
+ Tg as One2many,
15925
15929
  qu as ProgressBar,
15926
- Ry as Radio,
15927
- qg as Reference,
15928
- lb as RootView,
15930
+ Dy as Radio,
15931
+ zg as Reference,
15932
+ cb as RootView,
15929
15933
  kr as SearchFilter,
15930
15934
  zo as SearchModal,
15931
15935
  Ka as SearchTree,
15932
15936
  Ls as Selection,
15933
- Vg as Separator,
15937
+ kg as Separator,
15934
15938
  fo as Spinner,
15935
- Vy as Steps,
15936
- Ey as Switch,
15937
- sv as Tab,
15938
- cb as TabSelector,
15939
+ ky as Steps,
15940
+ Py as Switch,
15941
+ av as Tab,
15942
+ db as TabSelector,
15939
15943
  of as Tag,
15940
- Dh as Tags,
15941
- Eg as Text,
15942
- Gg as Time,
15944
+ Eh as Tags,
15945
+ Pg as Text,
15946
+ Kg as Time,
15943
15947
  Qn as Tree,
15944
- iy as Url,
15945
- pb as dayjs,
15948
+ sy as Url,
15949
+ hb as dayjs,
15946
15950
  St as iconMapper,
15947
15951
  Bt as showConfirmDialog
15948
15952
  };