@gisce/react-ooui 2.49.0 → 2.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  var Ya = Object.defineProperty;
2
2
  var za = (e, t, n) => t in e ? Ya(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Po = (e, t, n) => (za(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { jsx as i, jsxs as P, Fragment as ae } from "react/jsx-runtime";
5
- import pt, { useContext as ne, useState as C, useEffect as le, useRef as Y, memo as yt, useCallback as D, useMemo as oe, createContext as Ja, forwardRef as wt, useImperativeHandle as bt, createElement as Qa, Fragment as Rn } from "react";
4
+ import { jsx as i, jsxs as P, Fragment as le } from "react/jsx-runtime";
5
+ import pt, { useContext as ne, useState as C, useEffect as ae, useRef as Y, memo as yt, useCallback as D, useMemo as oe, createContext as Ja, forwardRef as wt, useImperativeHandle as bt, createElement as Qa, Fragment as Rn } from "react";
6
6
  import { Tooltip as Et, theme as We, Typography as kt, Form as ht, Row as Me, Col as Ce, Modal as dt, Button as Be, Dropdown as Xa, Menu as ko, Spin as Ke, Divider as Qn, Space as Xe, Input as rt, Select as Gt, Checkbox as Cn, Alert as ot, Timeline as Mi, Empty as Li, Statistic as Za, Card as Jr, Tag as Qr, message as wr, App as el, Progress as tl, Avatar as ji, DatePicker as Xr, TimePicker as nl, InputNumber as Xn, Layout as Bi, Badge as Zn, Pagination as rl, Tabs as Hi, Radio as $o, Switch as ol, Steps as No, Carousel as il } from "antd";
7
7
  import { Label as un, Field as Er, Tree as Ui, Reference as sl, Selection as Zr, Many2one as Wi, Boolean as al, parseContext as jt, graphProcessor as Gi, graphFieldUtils as ll, parseGraph as Ki, Container as cl, Form as qi, parseContextFields as dl, parseDomainFields as ul, Integer as Dr, SearchFieldTypes as _t, SearchFilter as Yi, transformDomainForChildWidget as eo, Button as fl } from "@gisce/ooui";
8
8
  import * as Mo from "@ant-design/icons";
@@ -190,7 +190,7 @@ function _e({
190
190
  return n === "horizontal" ? (() => /* @__PURE__ */ P(Me, { align: "middle", className: "pb-1 pt-1", children: [
191
191
  /* @__PURE__ */ i(Ce, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ i("div", { className: "flex flex-col items-end", children: g }) }),
192
192
  /* @__PURE__ */ i(Ce, { flex: "auto", children: m() })
193
- ] }))() : (() => /* @__PURE__ */ P(ae, { children: [
193
+ ] }))() : (() => /* @__PURE__ */ P(le, { children: [
194
194
  g,
195
195
  m()
196
196
  ] }))();
@@ -509,7 +509,7 @@ function lr() {
509
509
  const [e, t] = C(
510
510
  Go()
511
511
  );
512
- return le(() => {
512
+ return ae(() => {
513
513
  function n() {
514
514
  t(Go());
515
515
  }
@@ -561,7 +561,7 @@ const cs = (e) => {
561
561
  });
562
562
  }, ds = (e) => {
563
563
  const { visible: t, onCloseModal: n, model: r, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = lr(), { t: c } = fe(), [u, f] = C([]), [d, p] = C(!1), [h, m] = C(!1), [g, y] = C({}), v = Y();
564
- le(() => {
564
+ ae(() => {
565
565
  t ? w() : y({});
566
566
  }, [t]);
567
567
  async function w() {
@@ -636,7 +636,7 @@ const cs = (e) => {
636
636
  m(!1), a();
637
637
  }
638
638
  function T() {
639
- return d ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ P(ae, { children: [
639
+ return d ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ P(le, { children: [
640
640
  S(),
641
641
  /* @__PURE__ */ i(Qn, {}),
642
642
  /* @__PURE__ */ i(Me, { justify: "end", children: /* @__PURE__ */ P(Xe, { children: [
@@ -808,7 +808,7 @@ const ms = yt(
808
808
  }, []), I = D(() => {
809
809
  d(!1), l == null || l();
810
810
  }, [l]), x = g ? _c : Rc;
811
- return s ? /* @__PURE__ */ P(ae, { children: [
811
+ return s ? /* @__PURE__ */ P(le, { children: [
812
812
  /* @__PURE__ */ i("div", { onClick: v, children: /* @__PURE__ */ i(
813
813
  An,
814
814
  {
@@ -971,7 +971,7 @@ const po = (e) => {
971
971
  function f() {
972
972
  l(void 0);
973
973
  }
974
- return /* @__PURE__ */ P(ae, { children: [
974
+ return /* @__PURE__ */ P(le, { children: [
975
975
  /* @__PURE__ */ P(Me, { gutter: 8, wrap: !1, justify: "center", children: [
976
976
  oe(
977
977
  () => /* @__PURE__ */ i(po, { value: n }),
@@ -1421,7 +1421,7 @@ const Kt = ({
1421
1421
  onClick: e.onClick,
1422
1422
  children: [
1423
1423
  /* @__PURE__ */ i("strong", { children: e.title }),
1424
- e.summary && /* @__PURE__ */ P(ae, { children: [
1424
+ e.summary && /* @__PURE__ */ P(le, { children: [
1425
1425
  /* @__PURE__ */ i("br", {}),
1426
1426
  /* @__PURE__ */ i("span", { children: e.summary })
1427
1427
  ] })
@@ -1514,7 +1514,7 @@ const Kt = ({
1514
1514
  };
1515
1515
  return (M = O.values) != null && M[I] && (k.dot = V(O.values[I])), (W = O.values) != null && W[x] && (k.color = !as(O.values[x]) && !ls(O.values[x]) && !O.values[x].toString().startsWith("#") ? _n(O.values[x]) : O.values[x]), k;
1516
1516
  });
1517
- return /* @__PURE__ */ P(ae, { children: [
1517
+ return /* @__PURE__ */ P(le, { children: [
1518
1518
  /* @__PURE__ */ i(Mi, { style: { padding: "1rem" }, items: F }),
1519
1519
  /* @__PURE__ */ i(
1520
1520
  vn,
@@ -2030,7 +2030,7 @@ const wd = (e) => {
2030
2030
  );
2031
2031
  }, Ye = (e) => {
2032
2032
  const t = Y(/* @__PURE__ */ new Map());
2033
- le(() => () => {
2033
+ ae(() => () => {
2034
2034
  n();
2035
2035
  }, []);
2036
2036
  const n = D((o) => {
@@ -2240,7 +2240,7 @@ const { getValueForOperator: Jo } = Gi, Cd = (e) => {
2240
2240
  ), [$] = Ye(
2241
2241
  N.getHandler().parseCondition
2242
2242
  );
2243
- le(() => {
2243
+ ae(() => {
2244
2244
  B();
2245
2245
  }, [t, o]);
2246
2246
  async function M({
@@ -2724,7 +2724,7 @@ const Vd = {
2724
2724
  /* @__PURE__ */ i("div", { style: { width: "100%", height: "100%", overflow: "hidden" }, children: /* @__PURE__ */ i(h, { ...m }) })
2725
2725
  ]
2726
2726
  }
2727
- ) : /* @__PURE__ */ i(ae, { children: `Unknown graph type: ${e}` });
2727
+ ) : /* @__PURE__ */ i(le, { children: `Unknown graph type: ${e}` });
2728
2728
  };
2729
2729
  function Nd(e) {
2730
2730
  const {
@@ -2815,17 +2815,17 @@ const Md = ({
2815
2815
  } = e, [F, O] = C(!1), [k, _] = C(!1), [$, M] = C(!1), [W, B] = C(!0), [E, Z] = C(!0), [re, z] = C([]), [U, ie] = C(!1), [ee, j] = C([]), [G, L] = C(!1), [me, J] = C(!0), [Q, te] = C(), [ge, Le] = C({}), [je, De] = C(0), [ke, Ue] = C(), [Oe, de] = C(!1), [Ae, ue] = C(
2816
2816
  b !== void 0 ? b : Pt
2817
2817
  ), [Fe, q] = C(r);
2818
- le(() => {
2818
+ ae(() => {
2819
2819
  p && p.length > 0 && !h && (m == null || m(0), f == null || f(p[0].id));
2820
- }, [p]), le(() => {
2820
+ }, [p]), ae(() => {
2821
2821
  ue(b !== void 0 ? b : Pt);
2822
- }, [b]), le(() => {
2822
+ }, [b]), ae(() => {
2823
2823
  s.length === 1 ? te(s[0]) : s.length > 1 && te(
2824
2824
  s.filter(
2825
2825
  (xe) => xe.view_id !== n.view_id
2826
2826
  )[0]
2827
2827
  );
2828
- }, [s]), le(() => {
2828
+ }, [s]), ae(() => {
2829
2829
  (Q == null ? void 0 : Q.view_id) === n.view_id && s.length > 1 && te(
2830
2830
  s.filter(
2831
2831
  (xe) => xe.view_id !== n.view_id
@@ -2999,7 +2999,7 @@ const Md = ({
2999
2999
  refresh: () => {
3000
3000
  y();
3001
3001
  }
3002
- })), le(() => {
3002
+ })), ae(() => {
3003
3003
  y();
3004
3004
  }, [n]);
3005
3005
  async function y() {
@@ -3013,7 +3013,7 @@ const Md = ({
3013
3013
  }), w = Ki(v.arch);
3014
3014
  p(w), f(!1), m == null || m(!1);
3015
3015
  } catch (v) {
3016
- return console.error(v), f(!1), m == null || m(!1), /* @__PURE__ */ i(ae, { children: JSON.stringify(v) });
3016
+ return console.error(v), f(!1), m == null || m(!1), /* @__PURE__ */ i(le, { children: JSON.stringify(v) });
3017
3017
  }
3018
3018
  }
3019
3019
  if (u || !d)
@@ -3058,7 +3058,7 @@ const Md = ({
3058
3058
  }
3059
3059
  );
3060
3060
  default:
3061
- return /* @__PURE__ */ i(ae, { children: `Graph ${d.type} not implemented` });
3061
+ return /* @__PURE__ */ i(le, { children: `Graph ${d.type} not implemented` });
3062
3062
  }
3063
3063
  }, mn = wt(Bd);
3064
3064
  var pn = /* @__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))(pn || {});
@@ -3096,13 +3096,13 @@ const rv = Object.values(pn), Hd = (e) => {
3096
3096
  context: o,
3097
3097
  manualIds: a
3098
3098
  });
3099
- if (le(() => {
3099
+ if (ae(() => {
3100
3100
  u == null || u(d);
3101
3101
  }, [d]), bt(t, () => ({
3102
3102
  refresh: () => {
3103
3103
  h();
3104
3104
  }
3105
- })), le(() => {
3105
+ })), ae(() => {
3106
3106
  h();
3107
3107
  }, [n]), d || !p)
3108
3108
  return /* @__PURE__ */ i(Vn, {});
@@ -3144,7 +3144,7 @@ const rv = Object.values(pn), Hd = (e) => {
3144
3144
  );
3145
3145
  }
3146
3146
  default:
3147
- return /* @__PURE__ */ i(ae, { children: `Graph ${p.type} not implemented` });
3147
+ return /* @__PURE__ */ i(le, { children: `Graph ${p.type} not implemented` });
3148
3148
  }
3149
3149
  }, _s = wt(Ud), Ct = pt.createContext(null), Wd = (e) => {
3150
3150
  const {
@@ -3239,7 +3239,7 @@ const rv = Object.values(pn), Hd = (e) => {
3239
3239
  const { ooui: t } = e, n = t.actionId !== void 0;
3240
3240
  return /* @__PURE__ */ i(_e, { ooui: t, children: n ? /* @__PURE__ */ i(Un, { children: /* @__PURE__ */ i(Jd, { ooui: t }) }) : /* @__PURE__ */ i(zd, { ooui: t }) });
3241
3241
  }, zd = (e) => {
3242
- const { token: t } = qd(), { ooui: n, value: r } = e, o = /* @__PURE__ */ P(ae, { children: [
3242
+ const { token: t } = qd(), { ooui: n, value: r } = e, o = /* @__PURE__ */ P(le, { children: [
3243
3243
  /* @__PURE__ */ P("span", { children: [
3244
3244
  n.label,
3245
3245
  " "
@@ -3270,7 +3270,7 @@ const rv = Object.values(pn), Hd = (e) => {
3270
3270
  ), d = ne(
3271
3271
  Ct
3272
3272
  ), { openShortcut: p } = d || {};
3273
- if (le(() => {
3273
+ if (ae(() => {
3274
3274
  t && u();
3275
3275
  }, [t, o]), c && c.message !== "active_id_not_found")
3276
3276
  return /* @__PURE__ */ i(Is, { error: c });
@@ -3285,7 +3285,7 @@ const rv = Object.values(pn), Hd = (e) => {
3285
3285
  openAction: p,
3286
3286
  children: [
3287
3287
  l && /* @__PURE__ */ i(Vn, {}),
3288
- !l && /* @__PURE__ */ i(ae, { children: o ? /* @__PURE__ */ i(
3288
+ !l && /* @__PURE__ */ i(le, { children: o ? /* @__PURE__ */ i(
3289
3289
  I,
3290
3290
  {
3291
3291
  view_id: w.id,
@@ -3399,7 +3399,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
3399
3399
  }
3400
3400
  );
3401
3401
  };
3402
- return c ? /* @__PURE__ */ i(ot, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(
3402
+ return c ? /* @__PURE__ */ i(ot, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(le, { children: /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(
3403
3403
  Gt,
3404
3404
  {
3405
3405
  mode: "multiple",
@@ -3813,14 +3813,14 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Es,
3813
3813
  actionData: void 0
3814
3814
  });
3815
3815
  }
3816
- return /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(
3816
+ return /* @__PURE__ */ i(le, { children: /* @__PURE__ */ i(
3817
3817
  gn.Provider,
3818
3818
  {
3819
3819
  value: {
3820
3820
  processAction: w,
3821
3821
  globalValues: r
3822
3822
  },
3823
- children: /* @__PURE__ */ P(ae, { children: [
3823
+ children: /* @__PURE__ */ P(le, { children: [
3824
3824
  n,
3825
3825
  /* @__PURE__ */ i(
3826
3826
  dt,
@@ -3919,7 +3919,7 @@ const yu = wt(hu), vu = (e, t) => {
3919
3919
  }), n;
3920
3920
  }, Ps = () => {
3921
3921
  const [e, t] = C(!document.hidden);
3922
- return le(() => {
3922
+ return ae(() => {
3923
3923
  const n = () => {
3924
3924
  t(!document.hidden);
3925
3925
  };
@@ -3939,7 +3939,7 @@ const yu = wt(hu), vu = (e, t) => {
3939
3939
  } = e, c = Y(null), [u, f] = C(!0), [d, p] = Ye(
3940
3940
  N.getHandler().readObjects
3941
3941
  ), h = Ps();
3942
- le(() => {
3942
+ ae(() => {
3943
3943
  l === !1 && g(), (l === void 0 || l === !0) && !h && g(), (l === void 0 || l === !0) && h && y();
3944
3944
  }, [l, h]);
3945
3945
  const m = D(async () => {
@@ -4034,7 +4034,7 @@ function Cu(e, t) {
4034
4034
  clearAndReload: () => {
4035
4035
  j.current = void 0, $(void 0), tt();
4036
4036
  }
4037
- })), le(() => {
4037
+ })), ae(() => {
4038
4038
  if (k(void 0), !(!n && !m)) {
4039
4039
  if (!I) {
4040
4040
  j.current = void 0, $(void 0);
@@ -4042,7 +4042,7 @@ function Cu(e, t) {
4042
4042
  }
4043
4043
  (r === void 0 && E || r !== void 0 && E && r < 0) && (j.current = void 0, $(void 0)), tt();
4044
4044
  }
4045
- }, [r, n, h, m, I]), le(() => {
4045
+ }, [r, n, h, m, I]), ae(() => {
4046
4046
  ie && (hr({
4047
4047
  elementHasLostFocus: !0
4048
4048
  }), ee(!1));
@@ -4054,7 +4054,7 @@ function Cu(e, t) {
4054
4054
  }, Je = (H) => {
4055
4055
  Oe == null || Oe(!1), u == null || u(H);
4056
4056
  }, ve = D(() => r || j.current, [r]), [X, we] = C(() => j.current);
4057
- le(() => {
4057
+ ae(() => {
4058
4058
  j.current !== X && we(j.current);
4059
4059
  }, [j.current]);
4060
4060
  const Ne = oe(() => r || X, [r, X]);
@@ -4548,7 +4548,7 @@ function Cu(e, t) {
4548
4548
  ce && gr(!1), st(Te);
4549
4549
  }
4550
4550
  }
4551
- const Ga = () => !_ && !O ? /* @__PURE__ */ i(Ke, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(
4551
+ const Ga = () => !_ && !O ? /* @__PURE__ */ i(Ke, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(le, { children: /* @__PURE__ */ i(
4552
4552
  fc,
4553
4553
  {
4554
4554
  getValues: be,
@@ -4584,7 +4584,7 @@ function Cu(e, t) {
4584
4584
  }
4585
4585
  )
4586
4586
  }
4587
- ) }), Ka = () => /* @__PURE__ */ P(ae, { children: [
4587
+ ) }), Ka = () => /* @__PURE__ */ P(le, { children: [
4588
4588
  /* @__PURE__ */ i(Qn, {}),
4589
4589
  /* @__PURE__ */ i(Me, { justify: "end", children: /* @__PURE__ */ P(Xe, { children: [
4590
4590
  /* @__PURE__ */ i(
@@ -4640,7 +4640,7 @@ const yn = wt(Cu), vn = (e) => {
4640
4640
  actionData: l,
4641
4641
  ...c
4642
4642
  } = e, { model: u } = c, { modalWidth: f } = lr(), [d, p] = C(r), [h, m] = C(!1), [g, y] = C(), { action_id: v, res_id: w, action_type: I, view_id: x } = l || {};
4643
- le(() => {
4643
+ ae(() => {
4644
4644
  a && S();
4645
4645
  }, [l, a]);
4646
4646
  async function S() {
@@ -4981,9 +4981,9 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
4981
4981
  }, Ru = (e) => {
4982
4982
  const { m2oField: t } = e;
4983
4983
  return t ? /* @__PURE__ */ P(Xe, { children: [
4984
- /* @__PURE__ */ i(ae, { children: t.value }),
4984
+ /* @__PURE__ */ i(le, { children: t.value }),
4985
4985
  /* @__PURE__ */ i(So, { id: t.id, model: t.model })
4986
- ] }) : /* @__PURE__ */ i(ae, {});
4986
+ ] }) : /* @__PURE__ */ i(le, {});
4987
4987
  }, _u = (e) => {
4988
4988
  const { value: t, context: n, selectionValues: r } = e, [o, s] = C(), [a, l] = C(!1), [c, u] = t ? t.split(",") : [], f = parseInt(u), d = D(async () => {
4989
4989
  if (!t || t && o)
@@ -4997,16 +4997,16 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
4997
4997
  });
4998
4998
  s(h[0][1]), l(!1);
4999
4999
  }, [t, o]);
5000
- if (le(() => {
5000
+ if (ae(() => {
5001
5001
  d();
5002
5002
  }, [t]), !t && !a)
5003
- return /* @__PURE__ */ i(ae, {});
5003
+ return /* @__PURE__ */ i(le, {});
5004
5004
  if (a)
5005
5005
  return /* @__PURE__ */ i(St, {});
5006
5006
  const p = r.get(c);
5007
5007
  return /* @__PURE__ */ P(Xe, { children: [
5008
- /* @__PURE__ */ i(ae, { children: `${p}:` }),
5009
- /* @__PURE__ */ i(ae, { children: o }),
5008
+ /* @__PURE__ */ i(le, { children: `${p}:` }),
5009
+ /* @__PURE__ */ i(le, { children: o }),
5010
5010
  /* @__PURE__ */ i(So, { id: f, model: c })
5011
5011
  ] });
5012
5012
  }, Vu = (e) => {
@@ -5073,7 +5073,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5073
5073
  if (!e)
5074
5074
  return null;
5075
5075
  const n = typeof e == "string" ? e.split(";").map((r) => r.trim()) : e;
5076
- return /* @__PURE__ */ i(ae, { children: n.map((r, o) => /* @__PURE__ */ i(
5076
+ return /* @__PURE__ */ i(le, { children: n.map((r, o) => /* @__PURE__ */ i(
5077
5077
  Qr,
5078
5078
  {
5079
5079
  closable: !!t,
@@ -5097,7 +5097,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5097
5097
  },
5098
5098
  [t]
5099
5099
  );
5100
- le(() => {
5100
+ ae(() => {
5101
5101
  p(s);
5102
5102
  }, [p, s]);
5103
5103
  const h = (y) => {
@@ -5190,28 +5190,28 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5190
5190
  [e]
5191
5191
  ), ju = ({ value: e }) => oe(() => {
5192
5192
  if (!e || e && e.length === 0)
5193
- return /* @__PURE__ */ i(ae, {});
5193
+ return /* @__PURE__ */ i(le, {});
5194
5194
  const t = at(
5195
5195
  e,
5196
5196
  Ft.date.dateInternalFormat
5197
5197
  ).format(Ft.date.dateDisplayFormat);
5198
- return /* @__PURE__ */ i(ae, { children: t });
5198
+ return /* @__PURE__ */ i(le, { children: t });
5199
5199
  }, [e]), Bu = ({ value: e }) => oe(() => {
5200
5200
  if (!e || e && e.length === 0)
5201
- return /* @__PURE__ */ i(ae, {});
5201
+ return /* @__PURE__ */ i(le, {});
5202
5202
  const t = at(
5203
5203
  e,
5204
5204
  Ft.time.dateInternalFormat
5205
5205
  ).format(Ft.time.dateDisplayFormat);
5206
- return /* @__PURE__ */ i(ae, { children: t });
5206
+ return /* @__PURE__ */ i(le, { children: t });
5207
5207
  }, [e]), ti = ({
5208
5208
  value: e
5209
5209
  }) => oe(() => {
5210
5210
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
5211
- return /* @__PURE__ */ i(ae, { children: `( ${t} )` });
5211
+ return /* @__PURE__ */ i(le, { children: `( ${t} )` });
5212
5212
  }, [e]), Hu = ({
5213
5213
  value: e
5214
- }) => oe(() => /* @__PURE__ */ i(Ms, { value: e }), [e]), Uu = ({ value: e }) => oe(() => /* @__PURE__ */ i(ae, { children: Ns(e) }), [e]), ni = ({ value: e }) => oe(
5214
+ }) => oe(() => /* @__PURE__ */ i(Ms, { value: e }), [e]), Uu = ({ value: e }) => oe(() => /* @__PURE__ */ i(le, { children: Ns(e) }), [e]), ni = ({ value: e }) => oe(
5215
5215
  () => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: e }),
5216
5216
  [e]
5217
5217
  ), Wu = ({ value: e }) => oe(
@@ -5229,7 +5229,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5229
5229
  context: r
5230
5230
  }) => oe(() => {
5231
5231
  let o = e;
5232
- return Array.isArray(e) && e.length === 2 && (o = e[0]), /* @__PURE__ */ i(ae, { children: n.selectionValues.get(o) });
5232
+ return Array.isArray(e) && e.length === 2 && (o = e[0]), /* @__PURE__ */ i(le, { children: n.selectionValues.get(o) });
5233
5233
  }, [n, e]), qu = ({
5234
5234
  value: e,
5235
5235
  key: t,
@@ -5274,7 +5274,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5274
5274
  l(!1);
5275
5275
  }
5276
5276
  }, [r, u, c, e == null ? void 0 : e.items]);
5277
- le(() => {
5277
+ ae(() => {
5278
5278
  e != null && e.items && (e == null ? void 0 : e.items.length) > 0 && f();
5279
5279
  }, [e == null ? void 0 : e.items]);
5280
5280
  const d = oe(
@@ -5320,7 +5320,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5320
5320
  dependencies: n = []
5321
5321
  }) => {
5322
5322
  const [r, o] = C(0);
5323
- return le(() => {
5323
+ return ae(() => {
5324
5324
  const a = () => {
5325
5325
  if (e.current) {
5326
5326
  const l = window.innerHeight, c = e.current.getBoundingClientRect(), u = l - c.top;
@@ -5343,7 +5343,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5343
5343
  );
5344
5344
  return { getColumnState: t, updateColumnState: n };
5345
5345
  }, Xu = (e) => {
5346
- le(() => () => {
5346
+ ae(() => () => {
5347
5347
  n(), o();
5348
5348
  }, []);
5349
5349
  const [t, n] = Ye(
@@ -5412,7 +5412,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5412
5412
  return { getColumnState: a, updateColumnState: l };
5413
5413
  }, Bs = (e) => {
5414
5414
  const [t, n] = C(!0), r = Y(void 0), o = Y(!1), { getColumnState: s, updateColumnState: a } = Zu(e);
5415
- return le(() => {
5415
+ return ae(() => {
5416
5416
  if (!e) {
5417
5417
  n(!1);
5418
5418
  return;
@@ -5554,7 +5554,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5554
5554
  }) => {
5555
5555
  const { t } = fe();
5556
5556
  if (e.length === 1)
5557
- return /* @__PURE__ */ P(ae, { children: [
5557
+ return /* @__PURE__ */ P(le, { children: [
5558
5558
  "1 ",
5559
5559
  t("selectedRegisters"),
5560
5560
  " - (id:",
@@ -5563,7 +5563,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5563
5563
  ")"
5564
5564
  ] });
5565
5565
  if (e.length > 1)
5566
- return /* @__PURE__ */ P(ae, { children: [
5566
+ return /* @__PURE__ */ P(le, { children: [
5567
5567
  e.length,
5568
5568
  " ",
5569
5569
  t("selectedRegisters") + " ",
@@ -5620,7 +5620,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5620
5620
  label: ""
5621
5621
  })
5622
5622
  ];
5623
- return /* @__PURE__ */ P(ae, { children: [
5623
+ return /* @__PURE__ */ P(le, { children: [
5624
5624
  n && /* @__PURE__ */ i(
5625
5625
  ar,
5626
5626
  {
@@ -5944,7 +5944,7 @@ const ii = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5944
5944
  },
5945
5945
  [t]
5946
5946
  );
5947
- le(() => (e ? (a(!0), document.addEventListener("keydown", f), document.body.style.overflow = "hidden") : (document.removeEventListener("keydown", f), document.body.style.overflow = ""), () => {
5947
+ ae(() => (e ? (a(!0), document.addEventListener("keydown", f), document.body.style.overflow = "hidden") : (document.removeEventListener("keydown", f), document.body.style.overflow = ""), () => {
5948
5948
  document.removeEventListener("keydown", f), document.body.style.overflow = "";
5949
5949
  }), [e, f]);
5950
5950
  const d = () => {
@@ -5962,7 +5962,7 @@ const ii = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5962
5962
  padding: "0 16px",
5963
5963
  borderBottom: "1px solid #f0f0f0"
5964
5964
  };
5965
- return /* @__PURE__ */ i(uc, { children: e && /* @__PURE__ */ P(ae, { children: [
5965
+ return /* @__PURE__ */ i(uc, { children: e && /* @__PURE__ */ P(le, { children: [
5966
5966
  /* @__PURE__ */ i(
5967
5967
  Ho.div,
5968
5968
  {
@@ -6794,7 +6794,7 @@ var Dp = ga;
6794
6794
  const ya = /* @__PURE__ */ Gs(Dp), Pp = wt(
6795
6795
  (e, t) => {
6796
6796
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: s } = e, [a] = ht.useForm();
6797
- le(() => {
6797
+ ae(() => {
6798
6798
  a.setFieldsValue(r);
6799
6799
  }, [r]), bt(t, () => ({
6800
6800
  submit: a.submit,
@@ -6846,7 +6846,7 @@ const ya = /* @__PURE__ */ Gs(Dp), Pp = wt(
6846
6846
  ), kp = (e) => {
6847
6847
  var I;
6848
6848
  const { onSubmit: t, isOpen: n, onClose: r, searchFields: o, fields: s, searchValues: a } = e, l = Y(), { t: c } = fe(), [u, f] = C(), d = Y(null), [p, h] = C();
6849
- le(() => {
6849
+ ae(() => {
6850
6850
  n && h(void 0);
6851
6851
  }, [n]), Tt(() => {
6852
6852
  l.current = new Yi(o, s, 1), l.current.parse(), f(l.current._advancedSearchContainer);
@@ -7021,7 +7021,7 @@ function Ro(e) {
7021
7021
  searchValues: p,
7022
7022
  showLimitOptions: h = !0
7023
7023
  } = e, [m, g] = C(), [y, v] = C(), [w, I] = C(!1), x = Y(), { token: S } = Lp(), [A] = ht.useForm();
7024
- le(() => {
7024
+ ae(() => {
7025
7025
  A.setFieldsValue(p);
7026
7026
  }, [p]);
7027
7027
  const T = () => {
@@ -7176,7 +7176,7 @@ const Bp = 3 * 1e3, Hp = (e) => {
7176
7176
  } = e, l = Y(null), [c, u] = C(!0), [f, d] = Ye(
7177
7177
  N.getHandler().readObjects
7178
7178
  ), p = Ps();
7179
- le(() => {
7179
+ ae(() => {
7180
7180
  a === !1 && m(), (a === void 0 || a === !0) && !p && m(), (a === void 0 || a === !0) && p && g();
7181
7181
  }, [a, p]);
7182
7182
  const h = D(async () => {
@@ -7264,9 +7264,9 @@ function Gp(e, t) {
7264
7264
  setTotalItems: L,
7265
7265
  isActive: me
7266
7266
  } = jp({ useLocalState: !c }), J = d || U, Q = Y(J);
7267
- le(() => {
7267
+ ae(() => {
7268
7268
  de();
7269
- }, []), le(() => {
7269
+ }, []), ae(() => {
7270
7270
  var he;
7271
7271
  (J !== void 0 && Q.current === void 0 || typeof J == "string" && typeof Q.current == "string" && J !== Q.current) && (E == null || E([]), z == null || z({}), (he = g.current) == null || he.unselectAll(), Qe()), Q.current = J;
7272
7272
  }, [J]);
@@ -7746,16 +7746,16 @@ const va = wt(Gp), Di = (e, t = "14px -apple-system") => {
7746
7746
  var L;
7747
7747
  (L = R.current) == null || L.unselectAll();
7748
7748
  }
7749
- })), le(() => {
7749
+ })), ae(() => {
7750
7750
  const L = Vt(s);
7751
7751
  k(L), L.string && W !== L.string && (B == null || B(L.string));
7752
- }, [s, W]), le(() => {
7752
+ }, [s, W]), ae(() => {
7753
7753
  if (!O)
7754
7754
  return;
7755
7755
  F.current = !1;
7756
7756
  const L = ur(O, a);
7757
7757
  V(L);
7758
- }, [a]), le(() => {
7758
+ }, [a]), ae(() => {
7759
7759
  $.current = r;
7760
7760
  }, [r]);
7761
7761
  const Z = (n - 1) * $.current + 1, re = Z - 1 + b.length, z = o === void 0 ? null : o === 0 ? _("no_results") : _("summary").replace("{from}", Z == null ? void 0 : Z.toString()).replace("{to}", re == null ? void 0 : re.toString()).replace("{total}", o == null ? void 0 : o.toString()), U = oe(() => {
@@ -8170,7 +8170,7 @@ function zp(e, t) {
8170
8170
  },
8171
8171
  getFields: () => S == null ? void 0 : S.fields,
8172
8172
  getDomain: () => c
8173
- })), le(() => {
8173
+ })), ae(() => {
8174
8174
  g && u && S && (v.current = !1, de());
8175
8175
  }, [q, xe, g, u, a, S]);
8176
8176
  const we = async () => {
@@ -8197,7 +8197,7 @@ function zp(e, t) {
8197
8197
  context: d
8198
8198
  })), R(Re), A(ct);
8199
8199
  };
8200
- le(() => {
8200
+ ae(() => {
8201
8201
  we();
8202
8202
  }, [n]);
8203
8203
  const Ie = D(
@@ -8250,7 +8250,7 @@ function zp(e, t) {
8250
8250
  }, [X, p, U]), xt = oe(() => S != null && S.isExpandable ? _ - 160 : _ - (F + 240), [_, F, S == null ? void 0 : S.isExpandable]), At = oe(
8251
8251
  () => z == null ? void 0 : z.map((Re) => Re.id),
8252
8252
  [z]
8253
- ), mt = D(() => !S || !T ? null : /* @__PURE__ */ P(ae, { children: [
8253
+ ), mt = D(() => !S || !T ? null : /* @__PURE__ */ P(le, { children: [
8254
8254
  /* @__PURE__ */ i(
8255
8255
  Ro,
8256
8256
  {
@@ -8388,7 +8388,7 @@ const Sa = wt(zp), _o = ({
8388
8388
  },
8389
8389
  [S, x]
8390
8390
  );
8391
- return /* @__PURE__ */ P(ae, { children: [
8391
+ return /* @__PURE__ */ P(le, { children: [
8392
8392
  /* @__PURE__ */ P(
8393
8393
  dt,
8394
8394
  {
@@ -8473,9 +8473,9 @@ const Sa = wt(zp), _o = ({
8473
8473
  id: c,
8474
8474
  domain: u
8475
8475
  } = r, f = o && !a ? { backgroundColor: Ca.colorPrimaryBg } : void 0, [d, p] = C(!1), [h, m] = C(!1), [g, y] = C(!1), [v, w] = C(), I = Y(!1), [x, S] = C(""), A = Y(), T = ne(He), { domain: R, getValues: b, getFields: V, getContext: F, elementHasLostFocus: O } = T || {}, k = Y([]), [_, $] = C([]), M = t && t[0] || void 0, W = t && t[1] || "";
8476
- le(() => {
8476
+ ae(() => {
8477
8477
  !Array.isArray(t) && t && z(t);
8478
- }, [t]), le(() => {
8478
+ }, [t]), ae(() => {
8479
8479
  M && W.length === 0 ? z(M) : M && W.length > 0 ? S(W) : !M && !W && S(A.current || "");
8480
8480
  }, [t]);
8481
8481
  const B = (j) => {
@@ -8809,7 +8809,7 @@ const Sa = wt(zp), _o = ({
8809
8809
  ] });
8810
8810
  }
8811
8811
  function S() {
8812
- return /* @__PURE__ */ P(ae, { children: [
8812
+ return /* @__PURE__ */ P(le, { children: [
8813
8813
  v(),
8814
8814
  /* @__PURE__ */ i(
8815
8815
  nt,
@@ -8842,7 +8842,7 @@ const Sa = wt(zp), _o = ({
8842
8842
  onClick: r
8843
8843
  }
8844
8844
  ),
8845
- d && m && /* @__PURE__ */ P(ae, { children: [
8845
+ d && m && /* @__PURE__ */ P(le, { children: [
8846
8846
  v(),
8847
8847
  /* @__PURE__ */ i(
8848
8848
  nt,
@@ -8899,7 +8899,7 @@ const ih = (e) => {
8899
8899
  } = r, L = r.type === "many2many", { id: me } = r, J = s.filter(
8900
8900
  (X) => (X.values || X.treeValues) && X.operation !== "pendingRemove"
8901
8901
  ), Q = Y();
8902
- le(() => {
8902
+ ae(() => {
8903
8903
  if (Q.current !== a) {
8904
8904
  Q.current = a, te();
8905
8905
  return;
@@ -8909,7 +8909,7 @@ const ih = (e) => {
8909
8909
  const te = D(() => {
8910
8910
  (a === "form" && s.some((X) => !X.values) || a === "tree" && s.some((X) => !X.treeValues)) && Le();
8911
8911
  }, [s, a]);
8912
- le(() => {
8912
+ ae(() => {
8913
8913
  De();
8914
8914
  }, [g]);
8915
8915
  const ge = (X) => {
@@ -9196,7 +9196,7 @@ const ih = (e) => {
9196
9196
  if (A)
9197
9197
  return /* @__PURE__ */ i(ot, { className: "mt-10", message: A, type: "error", banner: !0 });
9198
9198
  const Je = M;
9199
- return x ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ P(ae, { children: [
9199
+ return x ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ P(le, { children: [
9200
9200
  /* @__PURE__ */ i(
9201
9201
  Oa,
9202
9202
  {
@@ -9267,7 +9267,7 @@ const ih = (e) => {
9267
9267
  getContext: s,
9268
9268
  domain: a
9269
9269
  } = ne(He) || {};
9270
- le(() => {
9270
+ ae(() => {
9271
9271
  l();
9272
9272
  }, [a]);
9273
9273
  async function l() {
@@ -9354,7 +9354,7 @@ const ih = (e) => {
9354
9354
  triggerChange: s
9355
9355
  }) => {
9356
9356
  const [a, l] = C(!1), { itemIndex: c } = ne(wn), { t: u } = fe();
9357
- le(() => {
9357
+ ae(() => {
9358
9358
  const m = e[c];
9359
9359
  (!m || (m == null ? void 0 : m.operation) === "original") && l(!1);
9360
9360
  }, [c, e]);
@@ -9890,7 +9890,7 @@ const mh = ({
9890
9890
  var ue;
9891
9891
  return ((ue = s.get("form")) == null ? void 0 : ue.fields) !== void 0;
9892
9892
  }, [s]);
9893
- return /* @__PURE__ */ P(ae, { children: [
9893
+ return /* @__PURE__ */ P(le, { children: [
9894
9894
  /* @__PURE__ */ i(
9895
9895
  Oa,
9896
9896
  {
@@ -10061,7 +10061,7 @@ const mh = ({
10061
10061
  return /* @__PURE__ */ i(_e, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(Ah, { ooui: t }) });
10062
10062
  }, Ah = (e) => {
10063
10063
  const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: s, required: a } = t, { token: l } = Ih(), c = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = Y(), [f, d] = C(), p = ne(He), { elementHasLostFocus: h } = p || {};
10064
- le(() => {
10064
+ ae(() => {
10065
10065
  d(Ns(n));
10066
10066
  }, [n]);
10067
10067
  const m = (v) => {
@@ -10098,21 +10098,31 @@ const mh = ({
10098
10098
  };
10099
10099
  function Fa(e) {
10100
10100
  const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = ft(t.icon || ""), { t: s } = fe();
10101
- return /* @__PURE__ */ i(ae, { children: (t.label || o) && n ? /* @__PURE__ */ i(El, { label: t.label, icon: o, children: /* @__PURE__ */ i(
10102
- Gr,
10103
- {
10104
- tip: s("loading"),
10105
- ooui: t,
10106
- responsiveBehaviour: r
10107
- }
10108
- ) }) : /* @__PURE__ */ i(
10109
- Gr,
10101
+ return /* @__PURE__ */ i(
10102
+ "div",
10110
10103
  {
10111
- tip: s("loading"),
10112
- ooui: t,
10113
- responsiveBehaviour: r
10104
+ style: {
10105
+ height: t.height ? t.height + "px" : "100%",
10106
+ overflowX: "hidden",
10107
+ overflowY: "auto"
10108
+ },
10109
+ children: (t.label || o) && n ? /* @__PURE__ */ i(El, { label: t.label, icon: o, children: /* @__PURE__ */ i(
10110
+ Gr,
10111
+ {
10112
+ tip: s("loading"),
10113
+ ooui: t,
10114
+ responsiveBehaviour: r
10115
+ }
10116
+ ) }) : /* @__PURE__ */ i(
10117
+ Gr,
10118
+ {
10119
+ tip: s("loading"),
10120
+ ooui: t,
10121
+ responsiveBehaviour: r
10122
+ }
10123
+ )
10114
10124
  }
10115
- ) });
10125
+ );
10116
10126
  }
10117
10127
  const { TabPane: Oh } = Hi;
10118
10128
  function Fh(e) {
@@ -10126,7 +10136,7 @@ function Fh(e) {
10126
10136
  return /* @__PURE__ */ i(Hi, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
10127
10137
  Oh,
10128
10138
  {
10129
- tab: /* @__PURE__ */ P(ae, { children: [
10139
+ tab: /* @__PURE__ */ P(le, { children: [
10130
10140
  o(s.icon),
10131
10141
  " ",
10132
10142
  s.label
@@ -10180,7 +10190,7 @@ const { useToken: Rh } = We, { TextArea: Kr } = rt, _h = (e) => {
10180
10190
  formHasChanges: u,
10181
10191
  elementHasLostFocus: f
10182
10192
  } = s || {}, [d, p] = C(!1), { t: h } = fe();
10183
- return a ? /* @__PURE__ */ P(ae, { children: [
10193
+ return a ? /* @__PURE__ */ P(le, { children: [
10184
10194
  /* @__PURE__ */ i(
10185
10195
  "div",
10186
10196
  {
@@ -10227,7 +10237,7 @@ const { useToken: Rh } = We, { TextArea: Kr } = rt, _h = (e) => {
10227
10237
  }
10228
10238
  }
10229
10239
  )
10230
- ] }) : /* @__PURE__ */ P(ae, { children: [
10240
+ ] }) : /* @__PURE__ */ P(le, { children: [
10231
10241
  /* @__PURE__ */ i(Me, { gutter: 8, wrap: !1, children: /* @__PURE__ */ i(
10232
10242
  Kr,
10233
10243
  {
@@ -10559,7 +10569,7 @@ const { useToken: Rh } = We, { TextArea: Kr } = rt, _h = (e) => {
10559
10569
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(qh, { ooui: t }) });
10560
10570
  }, qh = (e) => {
10561
10571
  const { value: t, onChange: n, ooui: r } = e, { required: o, selectionValues: s, readOnly: a, domain: l } = r, c = t == null ? void 0 : t.split(","), [u, f] = C([]), [d, p] = C();
10562
- return le(() => {
10572
+ return ae(() => {
10563
10573
  if (!t) {
10564
10574
  p(void 0), f([]);
10565
10575
  return;
@@ -11009,9 +11019,9 @@ function Xh(e) {
11009
11019
  },
11010
11020
  [s]
11011
11021
  );
11012
- return le(() => {
11022
+ return ae(() => {
11013
11023
  m();
11014
- }, [m]), /* @__PURE__ */ P(ae, { children: [
11024
+ }, [m]), /* @__PURE__ */ P(le, { children: [
11015
11025
  /* @__PURE__ */ i(
11016
11026
  Qh,
11017
11027
  {
@@ -11051,7 +11061,7 @@ const Zh = () => {
11051
11061
  } = vo(), [l, c] = Ye(
11052
11062
  N.getHandler().searchForTree
11053
11063
  );
11054
- le(() => () => {
11064
+ ae(() => () => {
11055
11065
  c();
11056
11066
  }, [c]);
11057
11067
  const u = ks(), f = D(
@@ -11235,7 +11245,7 @@ function eg({ toolbar: e }) {
11235
11245
  { enableOnFormTags: !0, preventDefault: !0 },
11236
11246
  [_, F, l, O, c]
11237
11247
  ), l ? /* @__PURE__ */ P(Xe, { wrap: !0, children: [
11238
- T && /* @__PURE__ */ P(ae, { children: [
11248
+ T && /* @__PURE__ */ P(le, { children: [
11239
11249
  /* @__PURE__ */ i(Ke, {}),
11240
11250
  Xt(),
11241
11251
  Xt()
@@ -11442,7 +11452,7 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11442
11452
  forced_values: { res_model: e, res_id: t }
11443
11453
  }), { useToken: tg } = We, Da = (e) => {
11444
11454
  const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } = tg(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = ne(He), { elementHasLostFocus: p } = d || {}, [h, m] = C(!1), [g, y] = C(!1);
11445
- le(() => {
11455
+ ae(() => {
11446
11456
  l && !h && y(!1), !n && !l && (m(!0), y(!0));
11447
11457
  }, [h, l]);
11448
11458
  const v = (w) => {
@@ -11702,7 +11712,7 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, pr = ({
11702
11712
  return null;
11703
11713
  if ((o == null ? void 0 : o.type) === "form" && s) {
11704
11714
  if (c === 0)
11705
- return /* @__PURE__ */ P(ae, { children: [
11715
+ return /* @__PURE__ */ P(le, { children: [
11706
11716
  d("editingDocument"),
11707
11717
  " (id:",
11708
11718
  " ",
@@ -11716,7 +11726,7 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, pr = ({
11716
11726
  ")"
11717
11727
  ] });
11718
11728
  const m = (a ?? 0) + 1, g = f ? c : l == null ? void 0 : l.length;
11719
- return /* @__PURE__ */ P(ae, { children: [
11729
+ return /* @__PURE__ */ P(le, { children: [
11720
11730
  d("register"),
11721
11731
  " ",
11722
11732
  m,
@@ -11734,14 +11744,14 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, pr = ({
11734
11744
  ")"
11735
11745
  ] });
11736
11746
  }
11737
- return (o == null ? void 0 : o.type) === "tree" && (u != null && u.length) ? u.length === 1 ? /* @__PURE__ */ P(ae, { children: [
11747
+ return (o == null ? void 0 : o.type) === "tree" && (u != null && u.length) ? u.length === 1 ? /* @__PURE__ */ P(le, { children: [
11738
11748
  "1 ",
11739
11749
  d("selectedRegisters"),
11740
11750
  " - (id:",
11741
11751
  " ",
11742
11752
  /* @__PURE__ */ i(jn, { copyable: !0, children: u[0].id }),
11743
11753
  ")"
11744
- ] }) : /* @__PURE__ */ P(ae, { children: [
11754
+ ] }) : /* @__PURE__ */ P(le, { children: [
11745
11755
  u.length,
11746
11756
  " ",
11747
11757
  d("selectedRegisters"),
@@ -11812,10 +11822,10 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, pr = ({
11812
11822
  setSearchValues: F,
11813
11823
  currentView: O
11814
11824
  } = u || {}, [k, _] = C(!0);
11815
- le(() => {
11825
+ ae(() => {
11816
11826
  var Z;
11817
11827
  (Z = c.current) == null || Z.refresh();
11818
- }, [b]), le(() => {
11828
+ }, [b]), ae(() => {
11819
11829
  t.view_id !== O.view_id && _(!0);
11820
11830
  }, [O]);
11821
11831
  const { clear: $, searchFilterLoading: M, searchError: W, offset: B, tableRefreshing: E } = ba({
@@ -11841,7 +11851,7 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, pr = ({
11841
11851
  limit: T,
11842
11852
  setLimit: R
11843
11853
  });
11844
- return !n || !t ? null : /* @__PURE__ */ P(ae, { children: [
11854
+ return !n || !t ? null : /* @__PURE__ */ P(le, { children: [
11845
11855
  /* @__PURE__ */ i(pr, { title: t.title || t.name, children: /* @__PURE__ */ i(
11846
11856
  sg,
11847
11857
  {
@@ -11899,7 +11909,7 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, pr = ({
11899
11909
  setResults: d,
11900
11910
  setCurrentItemIndex: p
11901
11911
  } = e;
11902
- return t ? /* @__PURE__ */ P(ae, { children: [
11912
+ return t ? /* @__PURE__ */ P(le, { children: [
11903
11913
  /* @__PURE__ */ i(pr, { children: /* @__PURE__ */ i(eg, { toolbar: a == null ? void 0 : a.toolbar }) }),
11904
11914
  /* @__PURE__ */ i(
11905
11915
  yn,
@@ -11925,7 +11935,7 @@ function ug(e) {
11925
11935
  function c(f) {
11926
11936
  t(f.search);
11927
11937
  }
11928
- le(() => {
11938
+ ae(() => {
11929
11939
  s.setFieldsValue({ search: r });
11930
11940
  }, [r]);
11931
11941
  function u() {
@@ -12008,7 +12018,7 @@ function fg(e) {
12008
12018
  },
12009
12019
  { enableOnFormTags: !0, preventDefault: !0 },
12010
12020
  [m]
12011
- ), le(() => {
12021
+ ), ae(() => {
12012
12022
  var G;
12013
12023
  if (b && v === void 0) {
12014
12024
  if (E.current) {
@@ -12087,12 +12097,12 @@ function fg(e) {
12087
12097
  });
12088
12098
  }
12089
12099
  return /* @__PURE__ */ P(Xe, { wrap: !0, children: [
12090
- w && /* @__PURE__ */ P(ae, { children: [
12100
+ w && /* @__PURE__ */ P(le, { children: [
12091
12101
  /* @__PURE__ */ i(Ke, {}),
12092
12102
  Mt(),
12093
12103
  Mt()
12094
12104
  ] }),
12095
- F ? null : /* @__PURE__ */ P(ae, { children: [
12105
+ F ? null : /* @__PURE__ */ P(le, { children: [
12096
12106
  /* @__PURE__ */ i(
12097
12107
  ug,
12098
12108
  {
@@ -12171,7 +12181,7 @@ function fg(e) {
12171
12181
  }
12172
12182
  }
12173
12183
  ),
12174
- !F && /* @__PURE__ */ P(ae, { children: [
12184
+ !F && /* @__PURE__ */ P(le, { children: [
12175
12185
  Mt(),
12176
12186
  /* @__PURE__ */ i(
12177
12187
  Vo,
@@ -12219,7 +12229,7 @@ function fg(e) {
12219
12229
  }
12220
12230
  }
12221
12231
  ),
12222
- k && /* @__PURE__ */ P(ae, { children: [
12232
+ k && /* @__PURE__ */ P(le, { children: [
12223
12233
  Mt(),
12224
12234
  /* @__PURE__ */ i(
12225
12235
  rn,
@@ -12325,7 +12335,7 @@ const mg = (e) => {
12325
12335
  availableViews: p,
12326
12336
  searchTreeNameSearch: h
12327
12337
  } = e, m = oe(() => !(a != null && a.arch) || a.isExpandable ? !1 : bs(a.arch, "infinite") === "1", [a]);
12328
- le(() => {
12338
+ ae(() => {
12329
12339
  v == null || v(m);
12330
12340
  }, [m]);
12331
12341
  const { currentView: g, setPreviousView: y, setIsInfiniteTree: v } = ne(
@@ -12626,10 +12636,10 @@ function wg(e, t) {
12626
12636
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
12627
12637
  ), je == null || je(c)), ke(qe), x(q), A(!1);
12628
12638
  };
12629
- l({ tabKey: c, canWeClose: Oe }), le(() => {
12639
+ l({ tabKey: c, canWeClose: Oe }), ae(() => {
12630
12640
  const q = I.find((xe) => xe.type === "tree"), ye = I.find((xe) => u.id ? xe.type === u.type && xe.view_id === u.id : xe.type === u.type);
12631
12641
  ke(ye || q), p ? Q == null || Q(T) : (De(void 0), k(void 0)), Ue();
12632
- }, [r, s, p]), le(() => {
12642
+ }, [r, s, p]), ae(() => {
12633
12643
  if (ge === c) {
12634
12644
  Q == null || Q(R);
12635
12645
  const q = { action_id: h, action_type: m };
@@ -12882,7 +12892,7 @@ function Cg(e) {
12882
12892
  W(JSON.stringify(Q));
12883
12893
  }
12884
12894
  };
12885
- le(() => {
12895
+ ae(() => {
12886
12896
  f && a && ee();
12887
12897
  }, [w, x, f, a]);
12888
12898
  const j = async (Q) => {
@@ -12916,7 +12926,7 @@ function Cg(e) {
12916
12926
  });
12917
12927
  g(te);
12918
12928
  };
12919
- le(() => {
12929
+ ae(() => {
12920
12930
  t ? j("action") : n && j("model");
12921
12931
  }, [t, n]);
12922
12932
  const me = (Q) => {
@@ -12959,7 +12969,7 @@ function Cg(e) {
12959
12969
  }
12960
12970
  const xg = yt(Cg), Ig = (e) => {
12961
12971
  const { model: t } = e, [n, r] = C();
12962
- le(() => {
12972
+ ae(() => {
12963
12973
  o();
12964
12974
  }, [t]);
12965
12975
  async function o() {
@@ -12982,7 +12992,7 @@ function Tg(e, t) {
12982
12992
  ), [I] = Ye(N.getHandler().update), x = fr(
12983
12993
  pn.FEATURE_READFORVIEW
12984
12994
  );
12985
- le(() => {
12995
+ ae(() => {
12986
12996
  S();
12987
12997
  }, [n, o, r]), bt(t, () => ({
12988
12998
  refresh: () => {
@@ -13295,7 +13305,7 @@ const Ag = wt(Tg), Og = (e) => {
13295
13305
  b.push({ id: F, operation: "pendingLink" });
13296
13306
  }), I(b);
13297
13307
  };
13298
- return f && a.length === 0 ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ P("div", { className: "flex flex-row", children: [
13308
+ return f && a.length === 0 ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ i(le, { children: /* @__PURE__ */ P("div", { className: "flex flex-row", children: [
13299
13309
  /* @__PURE__ */ i(
13300
13310
  Cn.Group,
13301
13311
  {
@@ -13991,7 +14001,7 @@ function iv() {
13991
14001
  const e = ne(
13992
14002
  Ct
13993
14003
  ), { activeKey: t, tabs: n, onRemoveTab: r, onChangeTab: o } = e || {};
13994
- return /* @__PURE__ */ i(ae, { children: n.map((s) => /* @__PURE__ */ i(
14004
+ return /* @__PURE__ */ i(le, { children: n.map((s) => /* @__PURE__ */ i(
13995
14005
  iy,
13996
14006
  {
13997
14007
  tabKey: s.key,
@@ -14016,7 +14026,7 @@ function sv() {
14016
14026
  const e = ne(
14017
14027
  Ct
14018
14028
  ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(ay, { tab: r }, r.key))) || null;
14019
- return /* @__PURE__ */ i(ae, { children: n });
14029
+ return /* @__PURE__ */ i(le, { children: n });
14020
14030
  }
14021
14031
  const { useToken: ly } = We, av = (e) => {
14022
14032
  const {
@@ -14054,7 +14064,7 @@ const { useToken: ly } = We, av = (e) => {
14054
14064
  if (x)
14055
14065
  return JSON.stringify(x);
14056
14066
  }, [x]);
14057
- le(() => {
14067
+ ae(() => {
14058
14068
  T();
14059
14069
  }, [S]);
14060
14070
  function A(F) {