@gisce/react-ooui 2.61.0-alpha.1 → 2.61.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.
@@ -2,8 +2,8 @@ var ml = Object.defineProperty;
2
2
  var pl = (e, t, n) => t in e ? ml(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Wo = (e, t, n) => (pl(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsx as i, jsxs as P, Fragment as oe } from "react/jsx-runtime";
5
- import vt, { useContext as ee, useState as x, useEffect as se, useRef as G, memo as ze, useCallback as E, useMemo as Z, createContext as hl, forwardRef as xt, useImperativeHandle as At, createElement as gl, Fragment as Pn } from "react";
6
- import { Tooltip as Tt, theme as He, Typography as Ut, Form as Ct, Row as Be, Col as Ie, Modal as yt, Button as je, Dropdown as yl, Menu as Yo, Spin as Ke, Divider as cr, Space as Xe, Input as rt, Select as Xt, Checkbox as On, Alert as at, Timeline as Ji, Empty as Qi, Statistic as vl, Card as fo, Tag as mo, message as Tn, App as bl, Progress as wl, Avatar as Xi, DatePicker as po, ColorPicker as Zi, TimePicker as Sl, InputNumber as dr, Layout as es, Badge as ur, Pagination as Cl, Tabs as ts, Popover as xl, Radio as Go, Switch as Il, Steps as Ko, Carousel as Tl } from "antd";
5
+ import vt, { useContext as ee, useState as x, useEffect as ie, useRef as G, memo as Je, useCallback as E, useMemo as Z, createContext as hl, forwardRef as xt, useImperativeHandle as At, createElement as gl, Fragment as Pn } from "react";
6
+ import { Tooltip as Tt, theme as Ue, Typography as Ut, Form as Ct, Row as Be, Col as Ie, Modal as yt, Button as je, Dropdown as yl, Menu as Yo, Spin as Ke, Divider as cr, Space as Xe, Input as rt, Select as Xt, Checkbox as On, Alert as at, Timeline as Ji, Empty as Qi, Statistic as vl, Card as fo, Tag as mo, message as Tn, App as bl, Progress as wl, Avatar as Xi, DatePicker as po, ColorPicker as Zi, TimePicker as Sl, InputNumber as dr, Layout as es, Badge as ur, Pagination as Cl, Tabs as ts, Popover as xl, Radio as Go, Switch as Il, Steps as Ko, Carousel as Tl } from "antd";
7
7
  import { Label as yn, Field as Gr, Tree as ns, Reference as Al, Selection as ho, Many2one as rs, Boolean as Ol, parseContext as Lt, graphProcessor as os, graphFieldUtils as _l, parseGraph as is, Container as Fl, Form as ss, parseContextFields as Rl, parseDomainFields as Dl, Integer as Kr, SearchFieldTypes as Nt, SearchFilter as as, transformDomainForChildWidget as go, Button as El } from "@gisce/ooui";
8
8
  import * as qo from "@ant-design/icons";
9
9
  import ls, { QuestionCircleOutlined as cs, ExclamationCircleOutlined as Wt, LoadingOutlined as Ot, DownOutlined as fr, WarningOutlined as ds, CloseOutlined as vn, CheckOutlined as kn, TranslationOutlined as us, FolderOpenOutlined as yo, DownloadOutlined as vo, ClearOutlined as mr, InfoCircleOutlined as $n, ExportOutlined as Vl, StarFilled as Pl, StarOutlined as kl, ThunderboltOutlined as pr, PrinterOutlined as hr, EnterOutlined as gr, SearchOutlined as yr, UpOutlined as $l, PlusSquareOutlined as Nl, MinusSquareOutlined as Ml, FileAddOutlined as vr, LeftOutlined as fs, RightOutlined as ms, ApiOutlined as Ll, DeleteOutlined as bo, AlignLeftOutlined as jl, EyeOutlined as Bl, FormOutlined as _n, TableOutlined as wo, AreaChartOutlined as Hl, CalendarOutlined as Ul, LinkOutlined as zo, CopyOutlined as br, SaveOutlined as Wl, ReloadOutlined as wr, EditOutlined as ps, PlusOutlined as Yl, FilterOutlined as hs, CloseCircleFilled as Gl, BorderOuterOutlined as Kl, SettingOutlined as ql } from "@ant-design/icons";
@@ -53,7 +53,7 @@ import Dc from "md5";
53
53
  import { WidthProvider as Ec, Responsive as Vc } from "react-grid-layout";
54
54
  import "react-grid-layout/css/styles.css";
55
55
  import { AnimatePresence as Pc, motion as Xo } from "framer-motion";
56
- const Ue = vt.createContext(null), kc = (e) => {
56
+ const He = vt.createContext(null), kc = (e) => {
57
57
  const {
58
58
  children: t,
59
59
  activeId: n,
@@ -73,7 +73,7 @@ const Ue = vt.createContext(null), kc = (e) => {
73
73
  formView: y
74
74
  } = e;
75
75
  return /* @__PURE__ */ i(
76
- Ue.Provider,
76
+ He.Provider,
77
77
  {
78
78
  value: {
79
79
  domain: m,
@@ -96,7 +96,7 @@ const Ue = vt.createContext(null), kc = (e) => {
96
96
  }
97
97
  );
98
98
  }, $c = () => {
99
- const e = ee(Ue);
99
+ const e = ee(He);
100
100
  return e || {
101
101
  activeId: void 0,
102
102
  activeModel: "",
@@ -170,12 +170,12 @@ Qe.extend(Zl);
170
170
  Qe.extend(ec);
171
171
  Qe.extend(tc);
172
172
  Qe.extend(nc);
173
- const { Text: jc, Title: Bc } = Ut, { useToken: Hc } = He, Uc = {
173
+ const { Text: jc, Title: Bc } = Ut, { useToken: Hc } = Ue, Uc = {
174
174
  left: "justify-start",
175
175
  center: "justify-center",
176
176
  right: "justify-end"
177
177
  }, Sr = (e) => {
178
- const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: a, fieldForLabel: s, labelSize: l, labelType: c } = t, u = ee(Ue);
178
+ const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: a, fieldForLabel: s, labelSize: l, labelType: c } = t, u = ee(He);
179
179
  let d = s !== null && o.length > 1 ? o + " :" : o, f = "";
180
180
  if (!t.fieldForLabel && t._id && (d = u.getFieldValue(t._id), t.fieldType === "date" || t.fieldType === "time" || t.fieldType === "datetime")) {
181
181
  const v = {
@@ -420,7 +420,7 @@ const xo = (e) => {
420
420
  icon: l,
421
421
  context: c,
422
422
  readOnly: u
423
- } = t, m = ee(Ue), { executeButtonAction: d } = m || {}, [f, h] = x(!1), { t: p } = ce();
423
+ } = t, m = ee(He), { executeButtonAction: d } = m || {}, [f, h] = x(!1), { t: p } = ce();
424
424
  async function g() {
425
425
  h(!0), await d({ type: a, action: n, context: c }), h(!1);
426
426
  }
@@ -469,7 +469,7 @@ const xo = (e) => {
469
469
  primary: m,
470
470
  context: d,
471
471
  readOnly: f
472
- } = n || {}, h = ee(Ue), { executeButtonAction: p } = h || {}, [g, y] = x(!1), { t: v } = ce();
472
+ } = n || {}, h = ee(He), { executeButtonAction: p } = h || {}, [g, y] = x(!1), { t: v } = ce();
473
473
  function b() {
474
474
  if (g)
475
475
  return /* @__PURE__ */ i(Ot, {});
@@ -584,7 +584,7 @@ function Cr() {
584
584
  const [e, t] = x(
585
585
  ti()
586
586
  );
587
- return se(() => {
587
+ return ie(() => {
588
588
  function n() {
589
589
  t(ti());
590
590
  }
@@ -636,7 +636,7 @@ const Cs = (e) => {
636
636
  });
637
637
  }, xs = (e) => {
638
638
  const { visible: t, onCloseModal: n, model: r, id: o, field: a, onSubmitSucceed: s } = e, { modalWidth: l } = Cr(), { t: c } = ce(), [u, m] = x([]), [d, f] = x(!1), [h, p] = x(!1), [g, y] = x({}), v = G();
639
- se(() => {
639
+ ie(() => {
640
640
  t ? b() : y({});
641
641
  }, [t]);
642
642
  async function b() {
@@ -764,12 +764,12 @@ const { info: Qc } = yt, qt = (e) => {
764
764
  centered: !0,
765
765
  content: e
766
766
  });
767
- }, { useToken: Xc } = He, xr = ze(({ content: e }) => {
767
+ }, { useToken: Xc } = Ue, xr = Je(({ content: e }) => {
768
768
  const { token: t } = Xc();
769
769
  return /* @__PURE__ */ i("div", { style: { color: t.colorTextDisabled }, children: e });
770
770
  });
771
771
  xr.displayName = "AddonElement";
772
- const { defaultAlgorithm: Zc, defaultSeed: ed } = He, Io = Zc(ed), Dn = ze(
772
+ const { defaultAlgorithm: Zc, defaultSeed: ed } = Ue, Io = Zc(ed), Dn = Je(
773
773
  ({
774
774
  component: e,
775
775
  ooui: t,
@@ -800,14 +800,14 @@ const Is = (e) => {
800
800
  const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: a, translatable: s } = t;
801
801
  let l = /* @__PURE__ */ i(Ts, { ooui: t, isSearchField: n });
802
802
  return s && !o && !n && (l = /* @__PURE__ */ i(As, { ooui: t, field: r })), /* @__PURE__ */ i(De, { required: a, ...e, children: l });
803
- }, Ts = ze(
803
+ }, Ts = Je(
804
804
  ({
805
805
  value: e,
806
806
  ooui: t,
807
807
  isSearchField: n,
808
808
  onChange: r
809
809
  }) => {
810
- const o = ee(Ue), { elementHasLostFocus: a } = o || {}, { readOnly: s, isPassword: l, translatable: c, required: u } = t, m = Z(() => e && (t.selectionValues.size ? t.selectionValues.get(e) : Array.isArray(e) ? e[1] : e), [t.selectionValues, e]), d = Z(
810
+ const o = ee(He), { elementHasLostFocus: a } = o || {}, { readOnly: s, isPassword: l, translatable: c, required: u } = t, m = Z(() => e && (t.selectionValues.size ? t.selectionValues.get(e) : Array.isArray(e) ? e[1] : e), [t.selectionValues, e]), d = Z(
811
811
  () => u && !s,
812
812
  [u, s]
813
813
  ), f = Z(
@@ -849,14 +849,14 @@ const Is = (e) => {
849
849
  }
850
850
  );
851
851
  Ts.displayName = "CharInput";
852
- const As = ze(
852
+ const As = Je(
853
853
  ({
854
854
  ooui: e,
855
855
  value: t,
856
856
  field: n,
857
857
  onChange: r
858
858
  }) => {
859
- const o = ee(Ue), {
859
+ const o = ee(He), {
860
860
  activeId: a,
861
861
  activeModel: s,
862
862
  fetchValues: l,
@@ -949,7 +949,7 @@ const td = ut(rt)`
949
949
  &.ant-input-affix-wrapper {
950
950
  background-color: ${Io.colorPrimaryBg};
951
951
  }
952
- `, { defaultAlgorithm: od, defaultSeed: id } = He, sd = od(id), { Option: ad } = Xt, _s = (e) => {
952
+ `, { defaultAlgorithm: od, defaultSeed: id } = Ue, sd = od(id), { Option: ad } = Xt, _s = (e) => {
953
953
  const { ooui: t } = e, { required: n } = t;
954
954
  return /* @__PURE__ */ i(De, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Fs, { ...e }) });
955
955
  }, Fs = (e) => {
@@ -974,7 +974,7 @@ const td = ut(rt)`
974
974
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
975
975
  background-color: ${sd.colorPrimaryBg};
976
976
  }
977
- `, { defaultAlgorithm: cd, defaultSeed: dd } = He, ni = cd(dd), ud = (e) => {
977
+ `, { defaultAlgorithm: cd, defaultSeed: dd } = Ue, ni = cd(dd), ud = (e) => {
978
978
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
979
979
  return /* @__PURE__ */ i(De, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(fd, { id: n, readOnly: r, required: o }) });
980
980
  }, fd = (e) => {
@@ -1517,7 +1517,7 @@ const Zt = ({
1517
1517
  ]
1518
1518
  }
1519
1519
  ), Nd = (e) => {
1520
- const { ooui: t } = e, { relation: n, context: r, views: o } = t, [a, s] = x(!0), [l, c] = x(), [u, m] = x(/* @__PURE__ */ new Map()), d = ee(Ue), { getContext: f } = d || {};
1520
+ const { ooui: t } = e, { relation: n, context: r, views: o } = t, [a, s] = x(!0), [l, c] = x(), [u, m] = x(/* @__PURE__ */ new Map()), d = ee(He), { getContext: f } = d || {};
1521
1521
  Rt(() => {
1522
1522
  p();
1523
1523
  }, [t]);
@@ -1546,7 +1546,7 @@ const Zt = ({
1546
1546
  titleField: b,
1547
1547
  iconField: T,
1548
1548
  colorField: A
1549
- } = r, C = a.filter((F) => F.values), _ = ee(Ue), { getContext: w } = _ || {};
1549
+ } = r, C = a.filter((F) => F.values), _ = ee(He), { getContext: w } = _ || {};
1550
1550
  Rt(() => {
1551
1551
  O();
1552
1552
  }, [a]);
@@ -1979,7 +1979,7 @@ const Zt = ({
1979
1979
  }, Ln = (e) => {
1980
1980
  const { erpFeatures: t } = Mn();
1981
1981
  return !!t[e];
1982
- }, Wd = ze(
1982
+ }, Wd = Je(
1983
1983
  ({
1984
1984
  erpFeatures: e,
1985
1985
  locale: t,
@@ -2069,7 +2069,7 @@ async function $s({
2069
2069
  };
2070
2070
  }
2071
2071
  const Yd = (e) => {
2072
- const [t, n] = x(), [r, o] = x(!0), [a, s] = x(), [l, c] = x(), u = ee(Ue), { getContext: m, getPlainValues: d, activeId: f } = u || {}, { globalValues: h, rootContext: p } = Mn(), g = Z(() => ({ ...m == null ? void 0 : m(), ...p }), [m, p]);
2072
+ const [t, n] = x(), [r, o] = x(!0), [a, s] = x(), [l, c] = x(), u = ee(He), { getContext: m, getPlainValues: d, activeId: f } = u || {}, { globalValues: h, rootContext: p } = Mn(), g = Z(() => ({ ...m == null ? void 0 : m(), ...p }), [m, p]);
2073
2073
  return { actionData: a, treeShortcut: l, loading: r, error: t, fetchData: async () => {
2074
2074
  n(void 0), o(!0);
2075
2075
  try {
@@ -2149,9 +2149,9 @@ const Yd = (e) => {
2149
2149
  banner: !0
2150
2150
  }
2151
2151
  );
2152
- }, Je = (e) => {
2152
+ }, ze = (e) => {
2153
2153
  const t = G(/* @__PURE__ */ new Map());
2154
- se(() => () => {
2154
+ ie(() => () => {
2155
2155
  n();
2156
2156
  }, []);
2157
2157
  const n = E((o) => {
@@ -2350,18 +2350,18 @@ const { getValueForOperator: si } = os, qd = (e) => {
2350
2350
  operator: m,
2351
2351
  manualIds: d,
2352
2352
  fixedHeight: f
2353
- } = e, [h, p] = x(!1), [g, y] = x(), [v, b] = x(0), [T, A] = x(), [C, _] = x(), [w, I] = x(), [O, R] = x(), [S] = Je(
2353
+ } = e, [h, p] = x(!1), [g, y] = x(), [v, b] = x(0), [T, A] = x(), [C, _] = x(), [w, I] = x(), [O, R] = x(), [S] = ze(
2354
2354
  k.getHandler().searchAllIds
2355
- ), [F] = Je(
2355
+ ), [F] = ze(
2356
2356
  k.getHandler().readObjects
2357
- ), [D] = Je(
2357
+ ), [D] = ze(
2358
2358
  k.getHandler().searchCount
2359
- ), [V] = Je(
2359
+ ), [V] = ze(
2360
2360
  k.getHandler().evalDomain
2361
- ), [N] = Je(
2361
+ ), [N] = ze(
2362
2362
  k.getHandler().parseCondition
2363
2363
  );
2364
- se(() => {
2364
+ ie(() => {
2365
2365
  Y();
2366
2366
  }, [t, o]);
2367
2367
  async function L({
@@ -2477,11 +2477,11 @@ const { getValueForOperator: si } = os, qd = (e) => {
2477
2477
  limit: a,
2478
2478
  uninformedString: s,
2479
2479
  manualIds: l
2480
- } = e, [c, u] = x(!1), [m, d] = x(), [f, h] = x(), [p, g] = x(), [y, v] = x("line"), [b] = Je(
2480
+ } = e, [c, u] = x(!1), [m, d] = x(), [f, h] = x(), [p, g] = x(), [y, v] = x("line"), [b] = ze(
2481
2481
  k.getHandler().getFields
2482
- ), [T] = Je(
2482
+ ), [T] = ze(
2483
2483
  k.getHandler().readObjects
2484
- ), [A] = Je(k.getHandler().search), C = E(async () => {
2484
+ ), [A] = ze(k.getHandler().search), C = E(async () => {
2485
2485
  u(!0), d(void 0), v(n.type || "line");
2486
2486
  const _ = Jd({ ooui: n });
2487
2487
  let w, I;
@@ -2757,7 +2757,7 @@ const ru = {
2757
2757
  x: s.x,
2758
2758
  percent: r[l]
2759
2759
  }));
2760
- }, { Text: li } = Ut, Bs = 400, iu = ze(pc), su = ze(hc), au = ze(gc), lu = {
2760
+ }, { Text: li } = Ut, Bs = 400, iu = Je(pc), su = Je(hc), au = Je(gc), lu = {
2761
2761
  line: iu,
2762
2762
  bar: su,
2763
2763
  pie: au
@@ -3023,7 +3023,7 @@ const du = ({
3023
3023
  initialSearchParams: S
3024
3024
  } = e, [F, D] = x(!1), [V, N] = x(!1), [L, B] = x(!1), [Y, $] = x(!0), [K, X] = x(!0), [z, Q] = x([]), [xe, fe] = x(!1), [H, j] = x(
3025
3025
  S || []
3026
- ), [q, ie] = x(!1), [te, M] = x(!0), [ne, me] = x(), [he, ye] = x(
3026
+ ), [q, se] = x(!1), [te, M] = x(!0), [ne, me] = x(), [he, ye] = x(
3027
3027
  vu(
3028
3028
  S || [],
3029
3029
  n.fields
@@ -3031,17 +3031,17 @@ const du = ({
3031
3031
  ), [Ee, Me] = x(0), [We, _e] = x(), [de, Te] = x(!1), [we, Ne] = x(), [J, pe] = x(
3032
3032
  O !== void 0 ? O : Ht
3033
3033
  ), [Fe, Ye] = x(r);
3034
- se(() => {
3034
+ ie(() => {
3035
3035
  f && f.length > 0 && !h && (p == null || p(0), m == null || m(f[0].id));
3036
- }, [f]), se(() => {
3036
+ }, [f]), ie(() => {
3037
3037
  pe(O !== void 0 ? O : Ht);
3038
- }, [O]), se(() => {
3038
+ }, [O]), ie(() => {
3039
3039
  a.length === 1 ? me(a[0]) : a.length > 1 && me(
3040
3040
  a.filter(
3041
3041
  (ue) => ue.view_id !== n.view_id
3042
3042
  )[0]
3043
3043
  );
3044
- }, [a]), se(() => {
3044
+ }, [a]), ie(() => {
3045
3045
  (ne == null ? void 0 : ne.view_id) === n.view_id && a.length > 1 && me(
3046
3046
  a.filter(
3047
3047
  (ue) => ue.view_id !== n.view_id
@@ -3090,7 +3090,7 @@ const du = ({
3090
3090
  setSearchParams: j,
3091
3091
  searchParams: H,
3092
3092
  searchVisible: q,
3093
- setSearchVisible: ie,
3093
+ setSearchVisible: se,
3094
3094
  sorter: y,
3095
3095
  setSorter: v,
3096
3096
  totalItems: b,
@@ -3224,12 +3224,12 @@ const du = ({
3224
3224
  viewData: u
3225
3225
  } = e, [m, d] = x(!1), [f, h] = x(), p = ee(
3226
3226
  mt
3227
- ), { setGraphIsLoading: g = void 0 } = p || {}, [y] = Je(k.getHandler().getView);
3227
+ ), { setGraphIsLoading: g = void 0 } = p || {}, [y] = ze(k.getHandler().getView);
3228
3228
  At(t, () => ({
3229
3229
  refresh: () => {
3230
3230
  v();
3231
3231
  }
3232
- })), se(() => {
3232
+ })), ie(() => {
3233
3233
  v();
3234
3234
  }, [u, n]);
3235
3235
  async function v() {
@@ -3293,7 +3293,7 @@ const du = ({
3293
3293
  }, bn = xt(Su);
3294
3294
  var en = /* @__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))(en || {});
3295
3295
  const Wv = Object.values(en), Cu = (e) => {
3296
- const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: a } = e, [s, l] = x(!1), [c, u] = x(), [m, d] = x(), [f] = Je(
3296
+ const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: a } = e, [s, l] = x(!1), [c, u] = x(), [m, d] = x(), [f] = ze(
3297
3297
  k.getHandler().readForView
3298
3298
  ), h = E(async () => {
3299
3299
  l(!0), u(void 0), a && n.push(["id", "in", a]);
@@ -3326,13 +3326,13 @@ const Wv = Object.values(en), Cu = (e) => {
3326
3326
  context: o,
3327
3327
  manualIds: s
3328
3328
  });
3329
- if (se(() => {
3329
+ if (ie(() => {
3330
3330
  u == null || u(d);
3331
3331
  }, [d]), At(t, () => ({
3332
3332
  refresh: () => {
3333
3333
  h();
3334
3334
  }
3335
- })), se(() => {
3335
+ })), ie(() => {
3336
3336
  h();
3337
3337
  }, [n]), d || !f)
3338
3338
  return /* @__PURE__ */ i(jn, {});
@@ -3388,7 +3388,7 @@ const Wv = Object.values(en), Cu = (e) => {
3388
3388
  onRemoveTab: c,
3389
3389
  tabs: u
3390
3390
  } = e, [m, d] = x(), [f, h] = x(), p = Z(() => u.find((v) => v.key === s), [u, s]), { title: g } = Mn(), y = Z(() => !((u == null ? void 0 : u.length) > 0), [u]);
3391
- return se(() => {
3391
+ return ie(() => {
3392
3392
  y && (document.title = g, window.history.replaceState({}, "", "/"));
3393
3393
  }, [y, g]), /* @__PURE__ */ i(
3394
3394
  wt.Provider,
@@ -3415,7 +3415,7 @@ const Wv = Object.values(en), Cu = (e) => {
3415
3415
  function _o() {
3416
3416
  return ee(wt) || {};
3417
3417
  }
3418
- const { useToken: Tu } = He, { Text: di } = Ut, Ws = (e) => {
3418
+ const { useToken: Tu } = Ue, { Text: di } = Ut, Ws = (e) => {
3419
3419
  const { title: t, children: n, action: r, openAction: o, parms: a, tooltip: s } = e, { token: l } = Tu(), c = Object.keys(a).length > 0;
3420
3420
  return /* @__PURE__ */ P(
3421
3421
  "div",
@@ -3475,7 +3475,7 @@ const { useToken: Tu } = He, { Text: di } = Ut, Ws = (e) => {
3475
3475
  ]
3476
3476
  }
3477
3477
  );
3478
- }, { useToken: Au } = He, Ou = (e) => {
3478
+ }, { useToken: Au } = Ue, Ou = (e) => {
3479
3479
  const { ooui: t } = e, n = t.actionId !== void 0;
3480
3480
  return /* @__PURE__ */ i(De, { ooui: t, children: n ? /* @__PURE__ */ i(er, { children: /* @__PURE__ */ i(Fu, { ooui: t }) }) : /* @__PURE__ */ i(_u, { ooui: t }) });
3481
3481
  }, _u = (e) => {
@@ -3510,7 +3510,7 @@ const { useToken: Tu } = He, { Text: di } = Ut, Ws = (e) => {
3510
3510
  ), d = ee(
3511
3511
  wt
3512
3512
  ), { openShortcut: f } = d || {};
3513
- if (se(() => {
3513
+ if (ie(() => {
3514
3514
  t && u();
3515
3515
  }, [t, o]), c && c.message !== "active_id_not_found")
3516
3516
  return /* @__PURE__ */ i(Ns, { error: c });
@@ -3559,12 +3559,34 @@ function Du(e) {
3559
3559
  return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
3560
3560
  }
3561
3561
  const Eu = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Ys, { ...e }) }), Ys = (e) => {
3562
- const { t } = ce(), { ooui: n, value: r } = e;
3563
- let o = r, a = Nn, s = r;
3564
- if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (s = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ? Du(n.label) : `${t("not")} ${n.label.toLowerCase()}`, a = Pd), !o)
3565
- return null;
3566
- const l = n.colors === "auto" ? a(s) : n.colors[s] || a(s);
3567
- return /* @__PURE__ */ i(Fo, { color: l, children: o });
3562
+ const { t } = ce(), [n, r] = ze(
3563
+ k.getHandler().readObjects
3564
+ ), { getFieldValue: o } = ee(He) || {}, { ooui: a, value: s } = e, [l, c] = x("default");
3565
+ let u = s, m = Nn, d = s;
3566
+ a.selectionValues.size ? u = a.selectionValues.get(s) : Array.isArray(s) ? (d = s[0], u = s[1]) : a.fieldType === "boolean" && (u = s ? Du(a.label) : `${t("not")} ${a.label.toLowerCase()}`, m = Pd);
3567
+ const f = E(async () => {
3568
+ var h, p;
3569
+ if (a.colorField)
3570
+ if (a.fieldType === "many2one" && ((h = a.raw_props) != null && h.relation)) {
3571
+ const y = (p = (await n({
3572
+ model: a.raw_props.relation,
3573
+ ids: [s[0]],
3574
+ fieldsToRetrieve: [a.colorField]
3575
+ }))[0]) == null ? void 0 : p[a.colorField];
3576
+ if (y) {
3577
+ const v = y.includes("#") ? y : `#${y}`;
3578
+ c(v);
3579
+ }
3580
+ } else
3581
+ c(o(a.colorField));
3582
+ else
3583
+ c(
3584
+ a.colors === "auto" ? m(d) : a.colors[d] || m(d)
3585
+ );
3586
+ }, [a == null ? void 0 : a.colorField]);
3587
+ return ie(() => {
3588
+ f().catch((h) => console.error(h));
3589
+ }, [a == null ? void 0 : a.colorField]), u ? /* @__PURE__ */ i(Fo, { color: l, children: u }) : null;
3568
3590
  }, Fo = (e) => {
3569
3591
  let { color: t } = e, n = {};
3570
3592
  if (!bs(e.color) && !ws(e.color)) {
@@ -3581,7 +3603,7 @@ const Eu = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Ys,
3581
3603
  const { ooui: t } = e;
3582
3604
  return /* @__PURE__ */ i(De, { type: "array", ...e, children: /* @__PURE__ */ i(Pu, { ooui: t }) });
3583
3605
  }, Pu = (e) => {
3584
- const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, a = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [s, l] = x([]), [c, u] = x(), [m, d] = x(!1), { relation: f, context: h, readOnly: p, field: g } = n, y = ee(Ue), { getContext: v } = y || {};
3606
+ const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, a = o.filter((_) => _.operation !== "pendingRemove").map((_) => _.id), [s, l] = x([]), [c, u] = x(), [m, d] = x(!1), { relation: f, context: h, readOnly: p, field: g } = n, y = ee(He), { getContext: v } = y || {};
3585
3607
  Rt(() => {
3586
3608
  T();
3587
3609
  }, [o]);
@@ -4178,7 +4200,7 @@ const Ju = xt(qu), Qu = (e, t) => {
4178
4200
  }), n;
4179
4201
  }, Ks = () => {
4180
4202
  const [e, t] = x(!document.hidden);
4181
- return se(() => {
4203
+ return ie(() => {
4182
4204
  const n = () => {
4183
4205
  t(!document.hidden);
4184
4206
  };
@@ -4195,10 +4217,10 @@ const Ju = xt(qu), Qu = (e, t) => {
4195
4217
  fieldDefs: a,
4196
4218
  onAutorefreshableFieldsChange: s,
4197
4219
  isActive: l
4198
- } = e, c = G(null), [u, m] = x(!0), [d, f] = Je(
4220
+ } = e, c = G(null), [u, m] = x(!0), [d, f] = ze(
4199
4221
  k.getHandler().readObjects
4200
4222
  ), h = Ks();
4201
- se(() => {
4223
+ ie(() => {
4202
4224
  l === !1 && g(), (l === void 0 || l === !0) && !h && g(), (l === void 0 || l === !0) && h && y();
4203
4225
  }, [l, h]);
4204
4226
  const p = E(async () => {
@@ -4268,7 +4290,7 @@ function tf(e, t) {
4268
4290
  forcedValues: _ = {},
4269
4291
  parentWidth: w,
4270
4292
  onMustRefreshParent: I
4271
- } = e, { t: O } = ce(), [R, S] = x(!1), [F, D] = x(), [V, N] = x(), [L] = Ct.useForm(), [B, Y] = x(), [$, K] = x(), X = ee(Gs), [z, Q] = x(), [xe, fe] = x(!1), H = G(), j = G({}), q = G({}), ie = G(!1), te = G(!1), M = G(!1), me = (w !== void 0 ? w : z) < ef, he = ee(Ue), { activeId: ye, getPlainValues: Ee } = he || {}, Me = G(!1), We = ee(
4293
+ } = e, { t: O } = ce(), [R, S] = x(!1), [F, D] = x(), [V, N] = x(), [L] = Ct.useForm(), [B, Y] = x(), [$, K] = x(), X = ee(Gs), [z, Q] = x(), [xe, fe] = x(!1), H = G(), j = G({}), q = G({}), se = G(!1), te = G(!1), M = G(!1), me = (w !== void 0 ? w : z) < ef, he = ee(He), { activeId: ye, getPlainValues: Ee } = he || {}, Me = G(!1), We = ee(
4272
4294
  mt
4273
4295
  ), {
4274
4296
  setFormIsSaving: _e = void 0,
@@ -4293,7 +4315,7 @@ function tf(e, t) {
4293
4315
  clearAndReload: () => {
4294
4316
  H.current = void 0, N(void 0), Kn();
4295
4317
  }
4296
- })), se(() => {
4318
+ })), ie(() => {
4297
4319
  if (D(void 0), !(!n && !p)) {
4298
4320
  if (!T) {
4299
4321
  H.current = void 0, N(void 0);
@@ -4301,7 +4323,7 @@ function tf(e, t) {
4301
4323
  }
4302
4324
  (r === void 0 && $ || r !== void 0 && $ && r < 0) && (H.current = void 0, N(void 0)), Kn();
4303
4325
  }
4304
- }, [r, n, h, p, T]), se(() => {
4326
+ }, [r, n, h, p, T]), ie(() => {
4305
4327
  xe && (nn({
4306
4328
  elementHasLostFocus: !0
4307
4329
  }), fe(!1));
@@ -4313,7 +4335,7 @@ function tf(e, t) {
4313
4335
  }, Ze = (U) => {
4314
4336
  _e == null || _e(!1), u == null || u(U);
4315
4337
  }, Se = E(() => r || H.current, [r]), [pt, Dt] = x(() => H.current);
4316
- se(() => {
4338
+ ie(() => {
4317
4339
  H.current !== pt && Dt(H.current);
4318
4340
  }, [H.current]);
4319
4341
  const re = Z(() => r || pt, [r, pt]);
@@ -4665,10 +4687,10 @@ function tf(e, t) {
4665
4687
  reset: !1
4666
4688
  });
4667
4689
  }
4668
- if (le.warning && le.warning.title && le.warning.message && !ie.current) {
4690
+ if (le.warning && le.warning.title && le.warning.message && !se.current) {
4669
4691
  const { title: Oe, message: tt } = le.warning;
4670
- ie.current = !0, Gu(Oe, tt, () => {
4671
- ie.current = !1;
4692
+ se.current = !0, Gu(Oe, tt, () => {
4693
+ se.current = !1;
4672
4694
  });
4673
4695
  }
4674
4696
  if (le.domain && Object.keys(le.domain).length > 0) {
@@ -4902,7 +4924,7 @@ const Cn = xt(tf), xn = (e) => {
4902
4924
  actionData: l,
4903
4925
  ...c
4904
4926
  } = e, { model: u } = c, { modalWidth: m } = Cr(), [d, f] = x(r), [h, p] = x(!1), [g, y] = x(), { action_id: v, res_id: b, action_type: T, view_id: A } = l || {};
4905
- se(() => {
4927
+ ie(() => {
4906
4928
  s && C();
4907
4929
  }, [l, s]);
4908
4930
  async function C() {
@@ -5001,7 +5023,7 @@ const Cn = xt(tf), xn = (e) => {
5001
5023
  context: r,
5002
5024
  enabled: o = !0
5003
5025
  }) => {
5004
- const [a, s] = x(!0), [l, c] = x(), [u, m] = x(), d = G(!1), [f, h] = Je(
5026
+ const [a, s] = x(!0), [l, c] = x(), [u, m] = x(), d = G(!1), [f, h] = ze(
5005
5027
  k.getHandler().getView
5006
5028
  );
5007
5029
  Rt(() => (o && p(), () => {
@@ -5157,9 +5179,9 @@ const of = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Qs,
5157
5179
  wt
5158
5180
  ), { openRelate: u } = c || {}, m = ee(
5159
5181
  Sn
5160
- ), { processAction: d } = m || {}, [f, h] = Je(
5182
+ ), { processAction: d } = m || {}, [f, h] = ze(
5161
5183
  k.getHandler().getView
5162
- ), [p, g] = Je(
5184
+ ), [p, g] = ze(
5163
5185
  k.getHandler().readObjects
5164
5186
  ), y = E(() => {
5165
5187
  h(), g();
@@ -5259,7 +5281,7 @@ const of = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Qs,
5259
5281
  });
5260
5282
  a(h[0][1]), l(!1);
5261
5283
  }, [t, o]);
5262
- if (se(() => {
5284
+ if (ie(() => {
5263
5285
  d();
5264
5286
  }, [t]), !t && !s)
5265
5287
  return /* @__PURE__ */ i(oe, {});
@@ -5286,7 +5308,7 @@ const of = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Qs,
5286
5308
  }, Eo = () => {
5287
5309
  const { locale: e } = ce();
5288
5310
  return ff[e];
5289
- }, { useToken: mf } = He, Vt = {
5311
+ }, { useToken: mf } = Ue, Vt = {
5290
5312
  date: {
5291
5313
  placeholder: "__/__/____",
5292
5314
  dateDisplayFormat: "DD/MM/YYYY",
@@ -5351,15 +5373,15 @@ const of = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Qs,
5351
5373
  maxLength: n,
5352
5374
  readonly: r = !1
5353
5375
  }) => {
5354
- const { token: o } = He.useToken(), [a, s] = x(
5376
+ const { token: o } = Ue.useToken(), [a, s] = x(
5355
5377
  e ? e.split(";").map((y) => y.trim()).filter((y) => y) : []
5356
- ), [l, c] = x(""), u = G(null), m = ee(Ue), { elementHasLostFocus: d } = m || {}, f = E(
5378
+ ), [l, c] = x(""), u = G(null), m = ee(He), { elementHasLostFocus: d } = m || {}, f = E(
5357
5379
  (y) => {
5358
5380
  t && t(y.join(";"));
5359
5381
  },
5360
5382
  [t]
5361
5383
  );
5362
- se(() => {
5384
+ ie(() => {
5363
5385
  f(a);
5364
5386
  }, [f, a]);
5365
5387
  const h = (y) => {
@@ -5544,7 +5566,7 @@ const of = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Qs,
5544
5566
  l(!1);
5545
5567
  }
5546
5568
  }, [r, u, c, e == null ? void 0 : e.items]);
5547
- se(() => {
5569
+ ie(() => {
5548
5570
  e != null && e.items && (e == null ? void 0 : e.items.length) > 0 && m();
5549
5571
  }, [e == null ? void 0 : e.items]);
5550
5572
  const d = Z(
@@ -5591,7 +5613,7 @@ const of = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Qs,
5591
5613
  dependencies: n = []
5592
5614
  }) => {
5593
5615
  const [r, o] = x(0);
5594
- return se(() => {
5616
+ return ie(() => {
5595
5617
  const s = () => {
5596
5618
  if (e.current) {
5597
5619
  const l = window.innerHeight, c = e.current.getBoundingClientRect(), u = l - c.top;
@@ -5614,12 +5636,12 @@ const of = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Qs,
5614
5636
  );
5615
5637
  return { getColumnState: t, updateColumnState: n };
5616
5638
  }, Vf = (e) => {
5617
- se(() => () => {
5639
+ ie(() => () => {
5618
5640
  n(), o();
5619
5641
  }, []);
5620
- const [t, n] = Je(
5642
+ const [t, n] = ze(
5621
5643
  k.getHandler().readUserViewPrefs
5622
- ), [r, o] = Je(
5644
+ ), [r, o] = ze(
5623
5645
  k.getHandler().saveUserViewPrefs
5624
5646
  ), a = bt(async () => {
5625
5647
  if (!e)
@@ -5683,7 +5705,7 @@ const of = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Qs,
5683
5705
  return { getColumnState: s, updateColumnState: l };
5684
5706
  }, ea = (e) => {
5685
5707
  const [t, n] = x(!0), r = G(void 0), o = G(!1), { getColumnState: a, updateColumnState: s } = Pf(e);
5686
- return se(() => {
5708
+ return ie(() => {
5687
5709
  if (!e) {
5688
5710
  n(!1);
5689
5711
  return;
@@ -5707,7 +5729,7 @@ const of = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Qs,
5707
5729
  domain: n,
5708
5730
  showEmptyValues: r
5709
5731
  }) => {
5710
- const [o, a] = x(), [s, l] = x(!1), [c, u] = Je(
5732
+ const [o, a] = x(), [s, l] = x(!1), [c, u] = ze(
5711
5733
  k.getHandler().readAggregates
5712
5734
  ), m = Rn(() => {
5713
5735
  if (e)
@@ -5945,8 +5967,8 @@ const of = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Qs,
5945
5967
  }
5946
5968
  }
5947
5969
  )
5948
- ] }), { defaultAlgorithm: Bf, defaultSeed: Hf } = He, Uf = Bf(Hf), Po = ze((e) => {
5949
- const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: a } = t, s = ee(Ue), { elementHasLostFocus: l } = s || {}, c = Z(() => a && !o, [a, o]), u = Z(
5970
+ ] }), { defaultAlgorithm: Bf, defaultSeed: Hf } = Ue, Uf = Bf(Hf), Po = Je((e) => {
5971
+ const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: a } = t, s = ee(He), { elementHasLostFocus: l } = s || {}, c = Z(() => a && !o, [a, o]), u = Z(
5950
5972
  () => c ? Wf : dr,
5951
5973
  [c]
5952
5974
  ), m = E((f) => f ? /* @__PURE__ */ i(xr, { content: f }) : null, []), d = E((f) => `${f}`.replace(/[^0-9.-]+/g, ""), []);
@@ -5971,8 +5993,8 @@ const Wf = ut(dr)`
5971
5993
  &.ant-input-number {
5972
5994
  background-color: ${Uf.colorPrimaryBg};
5973
5995
  }
5974
- `, { useToken: Yf } = He, { defaultAlgorithm: Gf, defaultSeed: Kf } = He, qf = Gf(Kf), En = ze((e) => {
5975
- const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: a } = t, { token: s } = Yf(), l = a && !o ? { backgroundColor: s.colorPrimaryBg } : void 0, c = ee(Ue), { elementHasLostFocus: u } = c || {}, m = Z(() => a && !o, [a, o]), d = Z(
5996
+ `, { useToken: Yf } = Ue, { defaultAlgorithm: Gf, defaultSeed: Kf } = Ue, qf = Gf(Kf), En = Je((e) => {
5997
+ const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: a } = t, { token: s } = Yf(), l = a && !o ? { backgroundColor: s.colorPrimaryBg } : void 0, c = ee(He), { elementHasLostFocus: u } = c || {}, m = Z(() => a && !o, [a, o]), d = Z(
5976
5998
  () => m ? zf : dr,
5977
5999
  [m]
5978
6000
  ), f = E((g) => g ? /* @__PURE__ */ i(xr, { content: g }) : null, []), h = E((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 = E(
@@ -6047,7 +6069,7 @@ function Jf(e) {
6047
6069
  )
6048
6070
  ] });
6049
6071
  }
6050
- const { defaultAlgorithm: Qf, defaultSeed: Xf } = He, Zf = Qf(Xf), { Option: em } = Xt, tm = (e) => {
6072
+ const { defaultAlgorithm: Qf, defaultSeed: Xf } = Ue, Zf = Qf(Xf), { Option: em } = Xt, tm = (e) => {
6051
6073
  const { ooui: t } = e, { required: n } = t;
6052
6074
  return /* @__PURE__ */ i(De, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(nm, { ...e }) });
6053
6075
  }, nm = (e) => {
@@ -6124,7 +6146,7 @@ function ra(e) {
6124
6146
  );
6125
6147
  }
6126
6148
  }
6127
- const { useToken: om } = He, { Title: im } = Ut, { Header: sm, Content: am, Footer: lm } = es, cm = ({
6149
+ const { useToken: om } = Ue, { Title: im } = Ut, { Header: sm, Content: am, Footer: lm } = es, cm = ({
6128
6150
  isOpen: e,
6129
6151
  onClose: t,
6130
6152
  children: n,
@@ -6142,7 +6164,7 @@ const { useToken: om } = He, { Title: im } = Ut, { Header: sm, Content: am, Foot
6142
6164
  },
6143
6165
  [t]
6144
6166
  );
6145
- se(() => (e ? (s(!0), document.addEventListener("keydown", m), document.body.style.overflow = "hidden") : (document.removeEventListener("keydown", m), document.body.style.overflow = ""), () => {
6167
+ ie(() => (e ? (s(!0), document.addEventListener("keydown", m), document.body.style.overflow = "hidden") : (document.removeEventListener("keydown", m), document.body.style.overflow = ""), () => {
6146
6168
  document.removeEventListener("keydown", m), document.body.style.overflow = "";
6147
6169
  }), [e, m]);
6148
6170
  const d = () => {
@@ -6988,7 +7010,7 @@ var sh = _a;
6988
7010
  const Fa = /* @__PURE__ */ Ss(sh), ah = xt(
6989
7011
  (e, t) => {
6990
7012
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: a } = e, [s] = Ct.useForm();
6991
- se(() => {
7013
+ ie(() => {
6992
7014
  s.setFieldsValue(r);
6993
7015
  }, [r]), At(t, () => ({
6994
7016
  submit: s.submit,
@@ -7040,7 +7062,7 @@ const Fa = /* @__PURE__ */ Ss(sh), ah = xt(
7040
7062
  ), lh = (e) => {
7041
7063
  var T;
7042
7064
  const { onSubmit: t, isOpen: n, onClose: r, searchFields: o, fields: a, searchValues: s } = e, l = G(), { t: c } = ce(), [u, m] = x(), d = G(null), [f, h] = x();
7043
- se(() => {
7065
+ ie(() => {
7044
7066
  n && h(void 0);
7045
7067
  }, [n]), Rt(() => {
7046
7068
  l.current = new as(o, a, 1), l.current.parse(), m(l.current._advancedSearchContainer);
@@ -7195,7 +7217,7 @@ function uh(e) {
7195
7217
  ] })
7196
7218
  ] });
7197
7219
  }
7198
- const { useToken: fh } = He;
7220
+ const { useToken: fh } = Ue;
7199
7221
  function Lo(e) {
7200
7222
  const {
7201
7223
  fields: t,
@@ -7212,7 +7234,7 @@ function Lo(e) {
7212
7234
  searchValues: f,
7213
7235
  showLimitOptions: h = !0
7214
7236
  } = e, [p, g] = x(), [y, v] = x(), [b, T] = x(!1), A = G(), { token: C } = fh(), [_] = Ct.useForm();
7215
- se(() => {
7237
+ ie(() => {
7216
7238
  _.setFieldsValue(f);
7217
7239
  }, [f]);
7218
7240
  const w = () => {
@@ -7369,10 +7391,10 @@ const ph = 3 * 1e3, hh = (e) => {
7369
7391
  autorefreshableFields: o,
7370
7392
  fieldDefs: a,
7371
7393
  isActive: s
7372
- } = e, l = G(null), [c, u] = x(!0), [m, d] = Je(
7394
+ } = e, l = G(null), [c, u] = x(!0), [m, d] = ze(
7373
7395
  k.getHandler().readObjects
7374
7396
  ), f = Ks();
7375
- se(() => {
7397
+ ie(() => {
7376
7398
  s === !1 && p(), (s === void 0 || s === !0) && !f && p(), (s === void 0 || s === !0) && f && g();
7377
7399
  }, [s, f]);
7378
7400
  const h = E(async () => {
@@ -7457,14 +7479,14 @@ function vh(e, t) {
7457
7479
  setResults: H,
7458
7480
  results: j,
7459
7481
  setSearchQuery: q,
7460
- setTotalItems: ie,
7482
+ setTotalItems: se,
7461
7483
  isActive: te,
7462
7484
  sortState: M,
7463
7485
  setSortState: ne
7464
7486
  } = mh({ useLocalState: !c }), me = d || xe, he = G(me);
7465
- se(() => {
7487
+ ie(() => {
7466
7488
  Ne();
7467
- }, []), se(() => {
7489
+ }, []), ie(() => {
7468
7490
  var be;
7469
7491
  (me !== void 0 && he.current === void 0 || typeof me == "string" && typeof he.current == "string" && me !== he.current) && (K == null || K([]), Q == null || Q({}), (be = g.current) == null || be.unselectAll(), It()), he.current = me;
7470
7492
  }, [me]);
@@ -7506,7 +7528,7 @@ function vh(e, t) {
7506
7528
  const Ge = `${JSON.stringify(me ? s : Te)}-${me}`;
7507
7529
  return Ge !== ht.current ? (ht.current = Ge, !0) : !1;
7508
7530
  }, [s, Te, me]), Ne = E(async () => {
7509
- _(void 0), ie(0), A(!0);
7531
+ _(void 0), se(0), A(!0);
7510
7532
  try {
7511
7533
  const be = await k.getHandler().searchCount({
7512
7534
  params: me ? s : Te,
@@ -7514,7 +7536,7 @@ function vh(e, t) {
7514
7536
  context: u,
7515
7537
  name_search: me
7516
7538
  });
7517
- _(be), ie(be);
7539
+ _(be), se(be);
7518
7540
  } catch (be) {
7519
7541
  b(be);
7520
7542
  } finally {
@@ -7526,7 +7548,7 @@ function vh(e, t) {
7526
7548
  n,
7527
7549
  me,
7528
7550
  u,
7529
- ie,
7551
+ se,
7530
7552
  b
7531
7553
  ]), J = bt(
7532
7554
  async ({
@@ -7579,7 +7601,7 @@ function vh(e, t) {
7579
7601
  H == null || H(ct);
7580
7602
  }
7581
7603
  if (_t.current = St, kt.length === 0)
7582
- return y.current = [], _(0), ie(0), [];
7604
+ return y.current = [], _(0), se(0), [];
7583
7605
  const nn = Tr(ye, kt), Fr = pn(tn);
7584
7606
  if (h.current = {
7585
7607
  ...h.current,
@@ -7605,7 +7627,7 @@ function vh(e, t) {
7605
7627
  H,
7606
7628
  ne,
7607
7629
  q,
7608
- ie,
7630
+ se,
7609
7631
  ye,
7610
7632
  R
7611
7633
  ]
@@ -7632,12 +7654,12 @@ function vh(e, t) {
7632
7654
  state: qe
7633
7655
  });
7634
7656
  } catch (lt) {
7635
- throw console.error(lt), _(null), ie(0), b(lt), lt;
7657
+ throw console.error(lt), _(null), se(0), b(lt), lt;
7636
7658
  } finally {
7637
7659
  D == null || D(!1);
7638
7660
  }
7639
7661
  },
7640
- [J, ie, D, b]
7662
+ [J, se, D, b]
7641
7663
  ), ke = E((be) => {
7642
7664
  var Ge, qe, lt, St;
7643
7665
  if (h.current[(qe = (Ge = be.node) == null ? void 0 : Ge.data) == null ? void 0 : qe.id])
@@ -7974,23 +7996,23 @@ const Ra = xt(vh), Wi = (e, t = "14px -apple-system") => {
7974
7996
  var q;
7975
7997
  (q = I.current) == null || q.unselectAll();
7976
7998
  }
7977
- })), se(() => {
7999
+ })), ie(() => {
7978
8000
  const q = jt(a);
7979
8001
  D(q), q.string && B !== q.string && (Y == null || Y(q.string));
7980
- }, [a, B]), se(() => {
8002
+ }, [a, B]), ie(() => {
7981
8003
  if (!F)
7982
8004
  return;
7983
8005
  S.current = !1;
7984
8006
  const q = Tr(F, s);
7985
8007
  R(q);
7986
- }, [s]), se(() => {
8008
+ }, [s]), ie(() => {
7987
8009
  N.current = r;
7988
8010
  }, [r]);
7989
8011
  const K = (n - 1) * N.current + 1, X = K - 1 + O.length, z = o === void 0 ? null : o === 0 ? V("no_results") : V("summary").replace("{from}", K == null ? void 0 : K.toString()).replace("{to}", X == null ? void 0 : X.toString()).replace("{total}", o == null ? void 0 : o.toString()), Q = Z(() => {
7990
8012
  if (!m || a.isExpandable)
7991
8013
  return null;
7992
8014
  const q = O == null ? void 0 : O.filter(
7993
- (ie) => d && d.includes(ie.id)
8015
+ (se) => d && d.includes(se.id)
7994
8016
  ).length;
7995
8017
  return c ? null : o === void 0 ? /* @__PURE__ */ i(Ke, { className: "pb-4" }) : /* @__PURE__ */ P(Be, { align: "bottom", className: "pb-4", children: [
7996
8018
  /* @__PURE__ */ i(Ie, { span: w ? 8 : 12, children: /* @__PURE__ */ i(
@@ -8032,11 +8054,11 @@ const Ra = xt(vh), Wi = (e, t = "14px -apple-system") => {
8032
8054
  const q = F.columns.filter((M) => M.sum !== void 0).map((M) => ({ label: M.sum, field: M.id }));
8033
8055
  if (!q || q.length === 0)
8034
8056
  return null;
8035
- const ie = [], te = (d == null ? void 0 : d.length) > 0 ? O.filter((M) => d.includes(M.id)) : O;
8057
+ const se = [], te = (d == null ? void 0 : d.length) > 0 ? O.filter((M) => d.includes(M.id)) : O;
8036
8058
  return q.forEach((M) => {
8037
8059
  const ne = te.reduce((me, he) => he[M.field] && !isNaN(he[M.field]) ? me + he[M.field] : me, 0);
8038
- ie.push(`${M.label}: ${Math.round(ne * 100) / 100}`);
8039
- }), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: ie.join(", ") });
8060
+ se.push(`${M.label}: ${Math.round(ne * 100) / 100}`);
8061
+ }), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: se.join(", ") });
8040
8062
  }, [O, d, F]), fe = Z(() => {
8041
8063
  if (F !== null && $ && $.length > 0)
8042
8064
  return bh($, O, 600);
@@ -8077,7 +8099,7 @@ const Ra = xt(vh), Wi = (e, t = "14px -apple-system") => {
8077
8099
  xe
8078
8100
  ] });
8079
8101
  }
8080
- ), Yn = ze(Da);
8102
+ ), Yn = Je(Da);
8081
8103
  Yn.displayName = "Tree";
8082
8104
  Da.displayName = "UnmemoizedTree";
8083
8105
  const Ea = (e) => {
@@ -8106,7 +8128,7 @@ const Ea = (e) => {
8106
8128
  searchParams: _ = [],
8107
8129
  setSearchValues: w,
8108
8130
  clearSelection: I
8109
- } = e, [O, R] = x(!1), [S, F] = x(!1), [D, V] = x(), [N, L] = x(1), [B, Y] = x(0), [$, K] = x(), [X, z] = x([]), [Q, xe] = x(void 0), [fe, H] = x(void 0), j = G(A || Ht), q = G([]), ie = E(
8131
+ } = e, [O, R] = x(!1), [S, F] = x(!1), [D, V] = x(), [N, L] = x(1), [B, Y] = x(0), [$, K] = x(), [X, z] = x([]), [Q, xe] = x(void 0), [fe, H] = x(void 0), j = G(A || Ht), q = G([]), se = E(
8110
8132
  (de) => {
8111
8133
  y == null || y([...de]), z([...de]);
8112
8134
  },
@@ -8136,12 +8158,12 @@ const Ea = (e) => {
8136
8158
  sorter: h,
8137
8159
  fields: { ...d.fields, ...f.fields }
8138
8160
  }) : [...q.current];
8139
- ie(ke), Ye.length > 0 ? g == null || g(0) : g == null || g(void 0);
8161
+ se(ke), Ye.length > 0 ? g == null || g(0) : g == null || g(void 0);
8140
8162
  } else
8141
- ie([]), g == null || g(void 0);
8163
+ se([]), g == null || g(void 0);
8142
8164
  R(!1), c.current = !0;
8143
8165
  }, [
8144
- ie,
8166
+ se,
8145
8167
  c,
8146
8168
  l,
8147
8169
  t,
@@ -8171,7 +8193,7 @@ const Ea = (e) => {
8171
8193
  sorter: h,
8172
8194
  fields: { ...d.fields, ...f.fields }
8173
8195
  }) : [...q.current];
8174
- if (ie(ve), v && ve.length > 0) {
8196
+ if (se(ve), v && ve.length > 0) {
8175
8197
  const Ze = ve.findIndex(
8176
8198
  (Se) => T === Se.id
8177
8199
  );
@@ -8185,7 +8207,7 @@ const Ea = (e) => {
8185
8207
  [
8186
8208
  g,
8187
8209
  v,
8188
- ie,
8210
+ se,
8189
8211
  T,
8190
8212
  t,
8191
8213
  u,
@@ -8226,7 +8248,7 @@ const Ea = (e) => {
8226
8248
  sorter: de,
8227
8249
  fields: { ...d.fields, ...f.fields }
8228
8250
  }) : [...q.current];
8229
- ie(Te);
8251
+ se(Te);
8230
8252
  },
8231
8253
  [
8232
8254
  h,
@@ -8234,7 +8256,7 @@ const Ea = (e) => {
8234
8256
  te,
8235
8257
  d == null ? void 0 : d.fields,
8236
8258
  f == null ? void 0 : f.fields,
8237
- ie
8259
+ se
8238
8260
  ]
8239
8261
  ), ye = E(
8240
8262
  (de) => {
@@ -8276,9 +8298,9 @@ const Ea = (e) => {
8276
8298
  fields: d.field_parent ? { ...d.fields, [d.field_parent]: {} } : d.fields,
8277
8299
  context: u
8278
8300
  });
8279
- return ie([...te(), ...we]), Tr(jt(d), we);
8301
+ return se([...te(), ...we]), Tr(jt(d), we);
8280
8302
  },
8281
- [d, t, u, te, ie]
8303
+ [d, t, u, te, se]
8282
8304
  ), _e = E(async () => await k.getHandler().searchAllIds({
8283
8305
  params: hn(_, b),
8284
8306
  model: t,
@@ -8335,7 +8357,7 @@ function Ch(e, t) {
8335
8357
  searchVisible: H = !0,
8336
8358
  setSearchVisible: j = void 0,
8337
8359
  sorter: q = void 0,
8338
- setSorter: ie = void 0,
8360
+ setSorter: se = void 0,
8339
8361
  setTotalItems: te = void 0,
8340
8362
  setSearchTreeNameSearch: M = void 0,
8341
8363
  setTreeIsLoading: ne = void 0,
@@ -8381,7 +8403,7 @@ function Ch(e, t) {
8381
8403
  formView: w,
8382
8404
  treeView: C,
8383
8405
  sorter: q,
8384
- setSorter: ie,
8406
+ setSorter: se,
8385
8407
  setCurrentItemIndex: $,
8386
8408
  setResultsActionView: Y,
8387
8409
  resultsActionView: X,
@@ -8398,7 +8420,7 @@ function Ch(e, t) {
8398
8420
  },
8399
8421
  getFields: () => C == null ? void 0 : C.fields,
8400
8422
  getDomain: () => c
8401
- })), se(() => {
8423
+ })), ie(() => {
8402
8424
  g && u && C && (v.current = !1, de());
8403
8425
  }, [J, Fe, g, u, s, C]);
8404
8426
  const Dt = async () => {
@@ -8425,7 +8447,7 @@ function Ch(e, t) {
8425
8447
  context: d
8426
8448
  })), I(Ve), _(gt);
8427
8449
  };
8428
- se(() => {
8450
+ ie(() => {
8429
8451
  Dt();
8430
8452
  }, [n]);
8431
8453
  const ge = E(
@@ -8682,7 +8704,7 @@ const Va = xt(Ch), jo = ({
8682
8704
  }
8683
8705
  )
8684
8706
  ] });
8685
- }, { defaultAlgorithm: xh, defaultSeed: Ih } = He, Pa = xh(Ih), Th = (e) => {
8707
+ }, { defaultAlgorithm: xh, defaultSeed: Ih } = Ue, Pa = xh(Ih), Th = (e) => {
8686
8708
  const { ooui: t } = e, { required: n } = t;
8687
8709
  return /* @__PURE__ */ i(De, { required: n, type: "array", validator: async (o, a) => {
8688
8710
  if (!a)
@@ -8700,10 +8722,10 @@ const Va = xt(Ch), jo = ({
8700
8722
  context: l,
8701
8723
  id: c,
8702
8724
  domain: u
8703
- } = r, m = o && !s ? { backgroundColor: Pa.colorPrimaryBg } : void 0, [d, f] = x(!1), [h, p] = x(!1), [g, y] = x(!1), [v, b] = x(), T = G(!1), [A, C] = x(""), _ = G(), w = ee(Ue), { domain: I, getValues: O, getFields: R, getContext: S, elementHasLostFocus: F } = w || {}, D = G([]), [V, N] = x([]), L = t && t[0] || void 0, B = t && t[1] || "";
8704
- se(() => {
8725
+ } = r, m = o && !s ? { backgroundColor: Pa.colorPrimaryBg } : void 0, [d, f] = x(!1), [h, p] = x(!1), [g, y] = x(!1), [v, b] = x(), T = G(!1), [A, C] = x(""), _ = G(), w = ee(He), { domain: I, getValues: O, getFields: R, getContext: S, elementHasLostFocus: F } = w || {}, D = G([]), [V, N] = x([]), L = t && t[0] || void 0, B = t && t[1] || "";
8726
+ ie(() => {
8705
8727
  !Array.isArray(t) && t && z(t);
8706
- }, [t]), se(() => {
8728
+ }, [t]), ie(() => {
8707
8729
  L && B.length === 0 ? z(L) : L && B.length > 0 ? C(B) : !L && !B && C(_.current || "");
8708
8730
  }, [t]);
8709
8731
  const Y = (H) => {
@@ -9126,7 +9148,7 @@ const Va = xt(Ch), jo = ({
9126
9148
  actionButtonProps: l,
9127
9149
  printButtonProps: c
9128
9150
  };
9129
- }, { useToken: Fh } = He;
9151
+ }, { useToken: Fh } = Ue;
9130
9152
  function Rh(e) {
9131
9153
  const {
9132
9154
  title: t,
@@ -9248,7 +9270,7 @@ function Rh(e) {
9248
9270
  ] })
9249
9271
  ] });
9250
9272
  }
9251
- const Ha = ze(({ title: e, token: t }) => /* @__PURE__ */ i(
9273
+ const Ha = Je(({ title: e, token: t }) => /* @__PURE__ */ i(
9252
9274
  "div",
9253
9275
  {
9254
9276
  className: "flex flex-grow h-8 text-white",
@@ -9260,9 +9282,9 @@ const Ha = ze(({ title: e, token: t }) => /* @__PURE__ */ i(
9260
9282
  }
9261
9283
  ));
9262
9284
  Ha.displayName = "Title";
9263
- const Mt = ze(() => /* @__PURE__ */ i("div", { className: "inline-block w-3" }));
9285
+ const Mt = Je(() => /* @__PURE__ */ i("div", { className: "inline-block w-3" }));
9264
9286
  Mt.displayName = "Separator";
9265
- const Ua = ze(
9287
+ const Ua = Je(
9266
9288
  ({
9267
9289
  currentItemIndex: e,
9268
9290
  totalItems: t
@@ -9278,7 +9300,7 @@ const Ua = ze(
9278
9300
  }
9279
9301
  );
9280
9302
  Ua.displayName = "ItemIndex";
9281
- const Wa = ze(
9303
+ const Wa = Je(
9282
9304
  ({
9283
9305
  currentItemIndex: e,
9284
9306
  totalItems: t,
@@ -9315,7 +9337,7 @@ const Wa = ze(
9315
9337
  }
9316
9338
  );
9317
9339
  Wa.displayName = "ItemBrowser";
9318
- const Ya = ze(
9340
+ const Ya = Je(
9319
9341
  ({
9320
9342
  isMany2Many: e,
9321
9343
  totalItems: t,
@@ -9339,7 +9361,7 @@ const Ya = ze(
9339
9361
  }
9340
9362
  );
9341
9363
  Ya.displayName = "DeleteButton";
9342
- const Ga = ze(Rh), Dh = {
9364
+ const Ga = Je(Rh), Dh = {
9343
9365
  form: ss,
9344
9366
  tree: ns,
9345
9367
  graph: bn
@@ -9355,7 +9377,7 @@ const Vh = (e) => {
9355
9377
  var pt, Dt;
9356
9378
  const { value: t, onChange: n, ooui: r, views: o } = e, { items: a = [] } = t || {}, { currentView: s, setCurrentView: l, itemIndex: c, setItemIndex: u } = ee(
9357
9379
  In
9358
- ), m = ee(Ue), {
9380
+ ), m = ee(He), {
9359
9381
  activeId: d,
9360
9382
  getFields: f,
9361
9383
  getValues: h,
@@ -9367,10 +9389,10 @@ const Vh = (e) => {
9367
9389
  relation: H,
9368
9390
  context: j,
9369
9391
  domain: q
9370
- } = r, ie = r.type === "many2many", { id: te } = r, M = a.filter(
9392
+ } = r, se = r.type === "many2many", { id: te } = r, M = a.filter(
9371
9393
  (re) => (re.values || re.treeValues) && re.operation !== "pendingRemove"
9372
9394
  ), ne = G();
9373
- se(() => {
9395
+ ie(() => {
9374
9396
  if (ne.current !== s) {
9375
9397
  ne.current = s, me();
9376
9398
  return;
@@ -9380,7 +9402,7 @@ const Vh = (e) => {
9380
9402
  const me = E(() => {
9381
9403
  (s === "form" && a.some((re) => !re.values) || s === "tree" && a.some((re) => !re.treeValues)) && ye();
9382
9404
  }, [a, s]);
9383
- se(() => {
9405
+ ie(() => {
9384
9406
  Me();
9385
9407
  }, [g]);
9386
9408
  const he = (re) => {
@@ -9471,7 +9493,7 @@ const Vh = (e) => {
9471
9493
  }
9472
9494
  }) : re();
9473
9495
  }, Ne = () => {
9474
- if (ie) {
9496
+ if (se) {
9475
9497
  Ma({
9476
9498
  t: v,
9477
9499
  onOk: async () => {
@@ -9676,7 +9698,7 @@ const Vh = (e) => {
9676
9698
  mode: s,
9677
9699
  title: Le(),
9678
9700
  readOnly: fe || !1,
9679
- isMany2Many: ie,
9701
+ isMany2Many: se,
9680
9702
  formHasChanges: b,
9681
9703
  totalItems: M.length,
9682
9704
  currentItemIndex: c,
@@ -9745,8 +9767,8 @@ const Vh = (e) => {
9745
9767
  getValues: o,
9746
9768
  getContext: a,
9747
9769
  domain: s
9748
- } = ee(Ue) || {};
9749
- se(() => {
9770
+ } = ee(He) || {};
9771
+ ie(() => {
9750
9772
  l();
9751
9773
  }, [s]);
9752
9774
  async function l() {
@@ -9833,7 +9855,7 @@ const Vh = (e) => {
9833
9855
  triggerChange: a
9834
9856
  }) => {
9835
9857
  const [s, l] = x(!1), { itemIndex: c } = ee(In), { t: u } = ce();
9836
- se(() => {
9858
+ ie(() => {
9837
9859
  const p = e[c];
9838
9860
  (!p || (p == null ? void 0 : p.operation) === "original") && l(!1);
9839
9861
  }, [c, e]);
@@ -10255,7 +10277,7 @@ const jh = ({
10255
10277
  context: p,
10256
10278
  domain: g,
10257
10279
  id: y
10258
- } = o, v = ee(Ue), {
10280
+ } = o, v = ee(He), {
10259
10281
  activeId: b,
10260
10282
  getContext: T,
10261
10283
  fetchValues: A
@@ -10310,7 +10332,7 @@ const jh = ({
10310
10332
  modalItem: H,
10311
10333
  continuousEntryMode: j,
10312
10334
  onCancelFormModal: q,
10313
- onFormModalSubmitSucceed: ie,
10335
+ onFormModalSubmitSucceed: se,
10314
10336
  createItem: te,
10315
10337
  openItemInFormModal: M
10316
10338
  } = jh({
@@ -10452,7 +10474,7 @@ const jh = ({
10452
10474
  values: H == null ? void 0 : H.values,
10453
10475
  defaultValues: H == null ? void 0 : H.defaultValues,
10454
10476
  visible: fe,
10455
- onSubmitSucceed: ie,
10477
+ onSubmitSucceed: se,
10456
10478
  parentContext: I,
10457
10479
  onCancel: q,
10458
10480
  readOnly: f,
@@ -10493,7 +10515,7 @@ const jh = ({
10493
10515
  var _;
10494
10516
  const { ooui: t } = e, { mode: n, relation: r, views: o, required: a, context: s } = t;
10495
10517
  let l;
10496
- const [c, u] = x(!0), [m, d] = x(), [f, h] = x(/* @__PURE__ */ new Map()), p = ee(Ue), { getContext: g, formView: y } = p || {}, { view_id: v } = y || {};
10518
+ const [c, u] = x(!0), [m, d] = x(), [f, h] = x(/* @__PURE__ */ new Map()), p = ee(He), { getContext: g, formView: y } = p || {}, { view_id: v } = y || {};
10497
10519
  Rt(() => {
10498
10520
  A();
10499
10521
  }, [t]);
@@ -10566,12 +10588,12 @@ const jh = ({
10566
10588
  }, Jh = (e) => {
10567
10589
  const { ooui: t, value: n } = e;
10568
10590
  return t.infinite || n && Array.isArray(n.items) && n.items.length >= qh ? /* @__PURE__ */ i(Kh, { ...e }) : /* @__PURE__ */ i(Vh, { ...e });
10569
- }, { useToken: Qh } = He, Xh = (e) => {
10591
+ }, { useToken: Qh } = Ue, Xh = (e) => {
10570
10592
  const { ooui: t } = e, { required: n } = t;
10571
10593
  return /* @__PURE__ */ i(De, { required: n, type: "number", ...e, children: /* @__PURE__ */ i(Zh, { ooui: t }) });
10572
10594
  }, Zh = (e) => {
10573
- const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: a, required: s } = t, { token: l } = Qh(), c = s && !a ? { backgroundColor: l.colorPrimaryBg } : void 0, u = G(), [m, d] = x(), f = ee(Ue), { elementHasLostFocus: h } = f || {};
10574
- se(() => {
10595
+ const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: a, required: s } = t, { token: l } = Qh(), c = s && !a ? { backgroundColor: l.colorPrimaryBg } : void 0, u = G(), [m, d] = x(), f = ee(He), { elementHasLostFocus: h } = f || {};
10596
+ ie(() => {
10575
10597
  d(Js(n));
10576
10598
  }, [n]);
10577
10599
  const p = (v) => {
@@ -10655,7 +10677,7 @@ const { TabPane: eg } = ts, tg = ut(ts)`
10655
10677
  }
10656
10678
  `;
10657
10679
  function ng(e) {
10658
- const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = He.useToken();
10680
+ const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = Ue.useToken();
10659
10681
  function a(s) {
10660
10682
  if (s) {
10661
10683
  const l = ft(s);
@@ -10690,8 +10712,8 @@ function ng(e) {
10690
10712
  }
10691
10713
  );
10692
10714
  }
10693
- const { useToken: rg } = He, { TextArea: ao } = rt, og = (e) => {
10694
- const { ooui: t } = e, { id: n, readOnly: r, required: o, height: a, translatable: s } = t, { token: l } = rg(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ee(Ue), { elementHasLostFocus: m } = u || {};
10715
+ const { useToken: rg } = Ue, { TextArea: ao } = rt, og = (e) => {
10716
+ const { ooui: t } = e, { id: n, readOnly: r, required: o, height: a, translatable: s } = t, { token: l } = rg(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = ee(He), { elementHasLostFocus: m } = u || {};
10695
10717
  return /* @__PURE__ */ i(De, { required: o, ...e, children: s ? /* @__PURE__ */ i(
10696
10718
  ig,
10697
10719
  {
@@ -10720,7 +10742,7 @@ const { useToken: rg } = He, { TextArea: ao } = rt, og = (e) => {
10720
10742
  onChange: r,
10721
10743
  height: o
10722
10744
  }) => {
10723
- const a = ee(Ue), {
10745
+ const a = ee(He), {
10724
10746
  activeId: s,
10725
10747
  activeModel: l,
10726
10748
  fetchValues: c,
@@ -11106,7 +11128,7 @@ const { useToken: rg } = He, { TextArea: ao } = rt, og = (e) => {
11106
11128
  return /* @__PURE__ */ i(De, { required: n, ...e, children: /* @__PURE__ */ i(Sg, { ooui: t }) });
11107
11129
  }, Sg = (e) => {
11108
11130
  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] = x([]), [d, f] = x();
11109
- return se(() => {
11131
+ return ie(() => {
11110
11132
  if (!t) {
11111
11133
  f(void 0), m([]);
11112
11134
  return;
@@ -11152,11 +11174,11 @@ const { useToken: rg } = He, { TextArea: ao } = rt, og = (e) => {
11152
11174
  }
11153
11175
  ) })
11154
11176
  ] });
11155
- }, { useToken: Cg } = He, xg = (e) => {
11177
+ }, { useToken: Cg } = Ue, xg = (e) => {
11156
11178
  const { ooui: t } = e, { required: n } = t;
11157
11179
  return /* @__PURE__ */ i(De, { required: n, ...e, children: /* @__PURE__ */ i(Ig, { ooui: t }) });
11158
11180
  }, Ig = (e) => {
11159
- const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: a, filenameField: s } = t, { token: l } = Cg(), c = a && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = G(null), { setFieldValue: m, getFieldValue: d } = ee(Ue) || {}, { t: f } = ce(), h = n ? pd(n) : "", p = (T) => {
11181
+ const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: a, filenameField: s } = t, { token: l } = Cg(), c = a && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = G(null), { setFieldValue: m, getFieldValue: d } = ee(He) || {}, { t: f } = ce(), h = n ? pd(n) : "", p = (T) => {
11160
11182
  r == null || r(T);
11161
11183
  };
11162
11184
  async function g() {
@@ -11556,7 +11578,7 @@ function Ag(e) {
11556
11578
  },
11557
11579
  [a]
11558
11580
  );
11559
- return se(() => {
11581
+ return ie(() => {
11560
11582
  p();
11561
11583
  }, [p]), /* @__PURE__ */ P(oe, { children: [
11562
11584
  /* @__PURE__ */ i(
@@ -11595,10 +11617,10 @@ const Og = () => {
11595
11617
  setCurrentItemIndex: o,
11596
11618
  results: a,
11597
11619
  searchQuery: s
11598
- } = Bn(), [l, c] = Je(
11620
+ } = Bn(), [l, c] = ze(
11599
11621
  k.getHandler().searchForTree
11600
11622
  );
11601
- se(() => () => {
11623
+ ie(() => () => {
11602
11624
  c();
11603
11625
  }, [c]);
11604
11626
  const u = qs(), m = E(
@@ -11668,7 +11690,7 @@ const Og = () => {
11668
11690
  onNextClick: p,
11669
11691
  onPreviousClick: g
11670
11692
  };
11671
- }, et = ze(() => /* @__PURE__ */ i("div", { className: "inline-block w-2" }));
11693
+ }, et = Je(() => /* @__PURE__ */ i("div", { className: "inline-block w-2" }));
11672
11694
  et.displayName = "ActionBarSeparator";
11673
11695
  const _g = "action", Fg = ["active_id", "active_ids", "id"], Rg = ["target", "context", "domain", "fields"], Za = (e) => {
11674
11696
  const t = new URL(window.location.origin);
@@ -11694,7 +11716,7 @@ function Or({ res_id: e, searchParams: t }) {
11694
11716
  const { currentView: n } = Bn(), r = {
11695
11717
  id: n.view_id,
11696
11718
  type: n.type
11697
- }, { token: o } = He.useToken(), { t: a } = ce(), [s, l] = x(!1), { currentTab: c } = _o(), u = E(
11719
+ }, { token: o } = Ue.useToken(), { t: a } = ce(), [s, l] = x(!1), { currentTab: c } = _o(), u = E(
11698
11720
  (y) => {
11699
11721
  try {
11700
11722
  const v = document.createElement("textarea");
@@ -11819,7 +11841,7 @@ function Vg({ toolbar: e }) {
11819
11841
  context: I.current.getContext()
11820
11842
  });
11821
11843
  const j = f == null ? void 0 : f.filter(
11822
- (ie) => ie.id !== d
11844
+ (se) => se.id !== d
11823
11845
  );
11824
11846
  C == null || C(j);
11825
11847
  const q = Math.max(0, (p || 0) - 1);
@@ -12023,7 +12045,7 @@ function Vg({ toolbar: e }) {
12023
12045
  /* @__PURE__ */ i(Or, { res_id: d })
12024
12046
  ] }) : null;
12025
12047
  }
12026
- const Pg = ze(Vg), tl = ze(
12048
+ const Pg = Je(Vg), tl = Je(
12027
12049
  ({
12028
12050
  disabled: e,
12029
12051
  onPreviousClick: t,
@@ -12062,9 +12084,9 @@ const Ki = (e, t) => ({
12062
12084
  ],
12063
12085
  values: { selection_associated_object: `${e},${t}` },
12064
12086
  forced_values: { res_model: e, res_id: t }
12065
- }), { useToken: kg } = He, nl = (e) => {
12066
- const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: a = "" } = e, { id: s, readOnly: l, required: c } = t, { token: u } = kg(), m = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = ee(Ue), { elementHasLostFocus: f } = d || {}, [h, p] = x(!1), [g, y] = x(!1);
12067
- se(() => {
12087
+ }), { useToken: kg } = Ue, nl = (e) => {
12088
+ const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: a = "" } = e, { id: s, readOnly: l, required: c } = t, { token: u } = kg(), m = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = ee(He), { elementHasLostFocus: f } = d || {}, [h, p] = x(!1), [g, y] = x(!1);
12089
+ ie(() => {
12068
12090
  l && !h && y(!1), !n && !l && (p(!0), y(!0));
12069
12091
  }, [h, l]);
12070
12092
  const v = (b) => {
@@ -12219,7 +12241,7 @@ const Ki = (e, t) => ({
12219
12241
  ] })
12220
12242
  }
12221
12243
  );
12222
- }, { useToken: Lg } = He;
12244
+ }, { useToken: Lg } = Ue;
12223
12245
  function rl(e) {
12224
12246
  const { badgeNumber: t = 0, ...n } = e, { token: r } = Lg();
12225
12247
  return /* @__PURE__ */ P("div", { style: { position: "relative" }, children: [
@@ -12307,7 +12329,7 @@ function jg({ refreshGraph: e }) {
12307
12329
  /* @__PURE__ */ i(Or, { searchParams: a })
12308
12330
  ] });
12309
12331
  }
12310
- const { useToken: Bg } = He, { Title: Hg, Text: Qn } = Ut, _r = ({
12332
+ const { useToken: Bg } = Ue, { Title: Hg, Text: Qn } = Ut, _r = ({
12311
12333
  title: e,
12312
12334
  children: t,
12313
12335
  showSummary: n = !0
@@ -12445,10 +12467,10 @@ const { useToken: Bg } = He, { Title: Hg, Text: Qn } = Ut, _r = ({
12445
12467
  setSearchValues: F,
12446
12468
  currentView: D
12447
12469
  } = m || {}, [V, N] = x(!0);
12448
- se(() => {
12470
+ ie(() => {
12449
12471
  var z;
12450
12472
  (z = u.current) == null || z.refresh();
12451
- }, [R]), se(() => {
12473
+ }, [R]), ie(() => {
12452
12474
  t.view_id !== D.view_id && N(!0);
12453
12475
  }, [D]);
12454
12476
  const { clear: L, searchFilterLoading: B, searchError: Y, offset: $, tableRefreshing: K } = Ea({
@@ -12571,7 +12593,7 @@ function Yg(e) {
12571
12593
  function c(m) {
12572
12594
  t(m.search);
12573
12595
  }
12574
- se(() => {
12596
+ ie(() => {
12575
12597
  a.setFieldsValue({ search: r });
12576
12598
  }, [r]);
12577
12599
  function u() {
@@ -12735,7 +12757,7 @@ function Gg({
12735
12757
  },
12736
12758
  [d, e, w, K, s]
12737
12759
  );
12738
- se(() => {
12760
+ ie(() => {
12739
12761
  var te;
12740
12762
  if (S && T === void 0) {
12741
12763
  if (L.current) {
@@ -12765,7 +12787,7 @@ function Gg({
12765
12787
  t: D,
12766
12788
  onOk: Q
12767
12789
  });
12768
- }, [Q, D]), ie = E(() => {
12790
+ }, [Q, D]), se = E(() => {
12769
12791
  Bt({
12770
12792
  confirmMessage: D("confirmRemove"),
12771
12793
  t: D,
@@ -12822,7 +12844,7 @@ function Gg({
12822
12844
  tooltip: D("delete"),
12823
12845
  disabled: !(s && (s == null ? void 0 : s.length) > 0) || A,
12824
12846
  loading: c,
12825
- onClick: ie
12847
+ onClick: se
12826
12848
  }
12827
12849
  ),
12828
12850
  /* @__PURE__ */ i(et, {})
@@ -12906,7 +12928,7 @@ function Gg({
12906
12928
  /* @__PURE__ */ i(Or, { searchParams: g })
12907
12929
  ] });
12908
12930
  }
12909
- const Kg = ze(Gg), ol = ze(() => /* @__PURE__ */ i(
12931
+ const Kg = Je(Gg), ol = Je(() => /* @__PURE__ */ i(
12910
12932
  ls,
12911
12933
  {
12912
12934
  component: () => /* @__PURE__ */ P(
@@ -12949,7 +12971,7 @@ const qg = (e) => {
12949
12971
  availableViews: f,
12950
12972
  searchTreeNameSearch: h
12951
12973
  } = e, p = G(t), g = Z(() => !(s != null && s.arch) || s.isExpandable ? !1 : Es(s.arch, "infinite") === "1", [s]);
12952
- se(() => {
12974
+ ie(() => {
12953
12975
  b == null || b(g);
12954
12976
  }, [g]);
12955
12977
  const {
@@ -12978,7 +13000,7 @@ const qg = (e) => {
12978
13000
  v
12979
13001
  ]
12980
13002
  );
12981
- return se(() => {
13003
+ return ie(() => {
12982
13004
  p.current && !t && g && (T == null || T([])), p.current = t;
12983
13005
  }, [t, g]), t ? /* @__PURE__ */ P(Pn, { children: [
12984
13006
  /* @__PURE__ */ i(_r, { showSummary: !g, children: /* @__PURE__ */ i(
@@ -13146,12 +13168,12 @@ function Zg({
13146
13168
  }
13147
13169
  const ey = () => {
13148
13170
  const { currentTab: e } = _o(), { title: t } = Mn(), { shareUrl: n } = Zg({ currentTab: e });
13149
- se(() => {
13171
+ ie(() => {
13150
13172
  if (n) {
13151
13173
  const r = new URL(n, window.location.origin);
13152
13174
  window.location.pathname + window.location.search !== r.pathname + r.search && window.history.replaceState({}, "", r.pathname + r.search);
13153
13175
  }
13154
- }, [e, n]), se(() => {
13176
+ }, [e, n]), ie(() => {
13155
13177
  document.title = t, e != null && e.title && e.title.length > 0 && (document.title = (e == null ? void 0 : e.title) + " - " + t);
13156
13178
  }, [e, t]);
13157
13179
  };
@@ -13175,7 +13197,7 @@ function ty(e, t) {
13175
13197
  initialSearchParams: v = []
13176
13198
  } = e, [b, T] = x(), [A, C] = x([]), [_, w] = x(!0), I = f || void 0, [O, R] = x(
13177
13199
  I
13178
- ), [S, F] = x([]), [D, V] = x(), [N, L] = x([]), [B, Y] = x(), [$, K] = x(0), [X, z] = x(!1), [Q, xe] = x(!1), [fe, H] = x(), { t: j } = ce(), q = G(), ie = G(), te = ee(
13200
+ ), [S, F] = x([]), [D, V] = x(), [N, L] = x([]), [B, Y] = x(), [$, K] = x(0), [X, z] = x(!1), [Q, xe] = x(!1), [fe, H] = x(), { t: j } = ce(), q = G(), se = G(), te = ee(
13179
13201
  wt
13180
13202
  ), {
13181
13203
  setCurrentView: M,
@@ -13394,7 +13416,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
13394
13416
  setCurrentView: We,
13395
13417
  availableViews: A,
13396
13418
  formRef: q,
13397
- searchTreeRef: ie,
13419
+ searchTreeRef: se,
13398
13420
  onNewClicked: Ne,
13399
13421
  currentId: O,
13400
13422
  setCurrentId: Me,
@@ -13432,7 +13454,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
13432
13454
  setCurrentItemIndex: V,
13433
13455
  formForcedValues: d,
13434
13456
  limit: y,
13435
- searchTreeRef: ie,
13457
+ searchTreeRef: se,
13436
13458
  searchTreeNameSearch: fe,
13437
13459
  setCurrentView: We,
13438
13460
  setCurrentId: Me
@@ -13608,7 +13630,7 @@ function iy(e) {
13608
13630
  B(JSON.stringify(M));
13609
13631
  }
13610
13632
  };
13611
- se(() => {
13633
+ ie(() => {
13612
13634
  m && s && fe();
13613
13635
  }, [b, A, m, s]);
13614
13636
  const H = async (M) => {
@@ -13642,10 +13664,10 @@ function iy(e) {
13642
13664
  });
13643
13665
  g(ne);
13644
13666
  };
13645
- se(() => {
13667
+ ie(() => {
13646
13668
  t ? H("action") : n && H("model");
13647
13669
  }, [t, n]);
13648
- const ie = (M) => {
13670
+ const se = (M) => {
13649
13671
  const { id: ne } = M;
13650
13672
  o({
13651
13673
  id: ne,
@@ -13665,7 +13687,7 @@ function iy(e) {
13665
13687
  results: R,
13666
13688
  onRequestPageChange: Q,
13667
13689
  loading: K,
13668
- onRowClicked: ie,
13690
+ onRowClicked: se,
13669
13691
  colorsForResults: F,
13670
13692
  sorter: V,
13671
13693
  onChangeSort: (M) => {
@@ -13683,9 +13705,9 @@ function iy(e) {
13683
13705
  ] });
13684
13706
  return Y ? /* @__PURE__ */ i(at, { className: "mt-10", message: Y, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(Ke, { style: { padding: "2rem" } }) : te();
13685
13707
  }
13686
- const sy = ze(iy), ay = (e) => {
13708
+ const sy = Je(iy), ay = (e) => {
13687
13709
  const { model: t } = e, [n, r] = x();
13688
- se(() => {
13710
+ ie(() => {
13689
13711
  o();
13690
13712
  }, [t]);
13691
13713
  async function o() {
@@ -13703,12 +13725,12 @@ function ly(e, t) {
13703
13725
  setIsLoading: f,
13704
13726
  openAction: h,
13705
13727
  moveItemsEnabled: p
13706
- } = ee(Ho), g = G(), y = G(), [v] = Je(k.getHandler().getView), [b] = Je(
13728
+ } = ee(Ho), g = G(), y = G(), [v] = ze(k.getHandler().getView), [b] = ze(
13707
13729
  k.getHandler().readObjects
13708
- ), [T] = Je(k.getHandler().update), A = Ln(
13730
+ ), [T] = ze(k.getHandler().update), A = Ln(
13709
13731
  en.FEATURE_READFORVIEW
13710
13732
  );
13711
- se(() => {
13733
+ ie(() => {
13712
13734
  C();
13713
13735
  }, [n, o, r]), At(t, () => ({
13714
13736
  refresh: () => {
@@ -13844,11 +13866,11 @@ function ly(e, t) {
13844
13866
  initialView: j,
13845
13867
  limit: q
13846
13868
  } = V;
13847
- let ie = {};
13869
+ let se = {};
13848
13870
  try {
13849
- ie = JSON.parse(L.replace(/'/g, '"'));
13871
+ se = JSON.parse(L.replace(/'/g, '"'));
13850
13872
  } catch {
13851
- ie = { x: D * 2, y: 0, w: 2, h: 3 };
13873
+ se = { x: D * 2, y: 0, w: 2, h: 3 };
13852
13874
  }
13853
13875
  let te = null;
13854
13876
  if ((j == null ? void 0 : j.type) === "graph") {
@@ -13955,7 +13977,7 @@ function ly(e, t) {
13955
13977
  /* @__PURE__ */ i(Tt, { title: z, children: /* @__PURE__ */ i($n, { className: "pr-1 text-xs" }) }),
13956
13978
  /* @__PURE__ */ i("span", { children: X })
13957
13979
  ] }) : /* @__PURE__ */ i("span", { children: X }),
13958
- parms: ie,
13980
+ parms: se,
13959
13981
  action: M,
13960
13982
  openAction: h,
13961
13983
  tooltip: z,
@@ -13969,7 +13991,7 @@ const cy = xt(ly), dy = (e) => {
13969
13991
  const { ooui: t } = e;
13970
13992
  return /* @__PURE__ */ i(De, { type: "array", ...e, children: /* @__PURE__ */ i(uy, { ooui: t }) });
13971
13993
  }, uy = (e) => {
13972
- const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, a = o.filter((I) => I.operation !== "pendingRemove").map((I) => I.id), [s, l] = x([]), [c, u] = x(), [m, d] = x(!1), { relation: f, context: h, readOnly: p, field: g, columns: y } = n, v = ee(Ue), { getContext: b } = v || {};
13994
+ const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, a = o.filter((I) => I.operation !== "pendingRemove").map((I) => I.id), [s, l] = x([]), [c, u] = x(), [m, d] = x(!1), { relation: f, context: h, readOnly: p, field: g, columns: y } = n, v = ee(He), { getContext: b } = v || {};
13973
13995
  Rt(() => {
13974
13996
  A();
13975
13997
  }, [o]);
@@ -14087,7 +14109,7 @@ const cy = xt(ly), dy = (e) => {
14087
14109
  const { ooui: t } = e, { required: n } = t;
14088
14110
  return /* @__PURE__ */ i(De, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(by, { ...e }) });
14089
14111
  }, by = (e) => {
14090
- const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = ee(Ue), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
14112
+ const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = ee(He), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
14091
14113
  let u = "process", m = "";
14092
14114
  return o && (m = s.getFieldValue(o), m && (u = "error")), a && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(Ko, { current: c, status: u, children: l.map((d, f) => /* @__PURE__ */ i(
14093
14115
  Ko.Step,
@@ -14107,7 +14129,7 @@ const cy = xt(ly), dy = (e) => {
14107
14129
  fontFamily: s,
14108
14130
  fontSize: l
14109
14131
  }
14110
- } = He.useToken(), c = {
14132
+ } = Ue.useToken(), c = {
14111
14133
  padding: 0,
14112
14134
  listStyleType: "none",
14113
14135
  fontFamily: s,
@@ -14160,7 +14182,7 @@ const cy = xt(ly), dy = (e) => {
14160
14182
  /* @__PURE__ */ i("div", { style: d(h.active) })
14161
14183
  ] }, p)) });
14162
14184
  }, Sy = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(wy, {}) }), Cy = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(xy, { ...e }) }), xy = (e) => {
14163
- const { ooui: t, value: n, onChange: r } = e, { lang: o, height: a, readOnly: s } = t, l = ee(Ue), { elementHasLostFocus: c } = l || {}, u = E(
14185
+ const { ooui: t, value: n, onChange: r } = e, { lang: o, height: a, readOnly: s } = t, l = ee(He), { elementHasLostFocus: c } = l || {}, u = E(
14164
14186
  (d) => {
14165
14187
  c && d.onDidBlurEditorWidget(() => c());
14166
14188
  },
@@ -14252,7 +14274,7 @@ const _y = (e) => {
14252
14274
  }
14253
14275
  );
14254
14276
  }, Ry = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(Fy, { ooui: e.ooui }) }), Dy = (e) => /* @__PURE__ */ i(De, { ...e, children: /* @__PURE__ */ i(lc, {}) }), Ey = (e) => {
14255
- const { ooui: t } = e, n = ee(Ue);
14277
+ const { ooui: t } = e, n = ee(He);
14256
14278
  let { title: r, text: o, alertType: a, icon: s, buttons: l } = t;
14257
14279
  if (t.fieldType && t.id) {
14258
14280
  const m = n.getFieldValue(t.id);
@@ -14284,7 +14306,7 @@ const _y = (e) => {
14284
14306
  icon: c(s)
14285
14307
  }
14286
14308
  );
14287
- }, { defaultAlgorithm: Vy, defaultSeed: Py } = He, zi = Vy(Py), ky = (e) => {
14309
+ }, { defaultAlgorithm: Vy, defaultSeed: Py } = Ue, zi = Vy(Py), ky = (e) => {
14288
14310
  const { ooui: t, responsiveBehaviour: n = !1 } = e;
14289
14311
  return /* @__PURE__ */ i($y, { autoplay: t.autoPlay, dots: !0, autoplaySpeed: 5e3, children: t.items.map((r, o) => /* @__PURE__ */ i(
14290
14312
  Ro,
@@ -14449,8 +14471,8 @@ function Hy(e, t) {
14449
14471
  values: s,
14450
14472
  context: { ...l, ...B }
14451
14473
  }) : [];
14452
- } catch (ie) {
14453
- return console.error(ie), [];
14474
+ } catch (se) {
14475
+ return console.error(se), [];
14454
14476
  }
14455
14477
  })(), {
14456
14478
  res_model: K,
@@ -14460,10 +14482,10 @@ function Hy(e, t) {
14460
14482
  view_type: xe,
14461
14483
  limit: fe
14462
14484
  } = F, H = xe === "tree", j = [];
14463
- for (const ie of X) {
14464
- const [te, M] = ie;
14485
+ for (const se of X) {
14486
+ const [te, M] = se;
14465
14487
  if (te)
14466
- j.push(ie);
14488
+ j.push(se);
14467
14489
  else if (M === "dashboard")
14468
14490
  j.push([void 0, "dashboard"]);
14469
14491
  else {
@@ -14478,13 +14500,13 @@ function Hy(e, t) {
14478
14500
  }
14479
14501
  let q;
14480
14502
  if (O) {
14481
- const [ie, te] = j.find(
14503
+ const [se, te] = j.find(
14482
14504
  ([M, ne]) => ne === O
14483
14505
  );
14484
- q = { id: ie, type: te };
14506
+ q = { id: se, type: te };
14485
14507
  } else {
14486
- const [ie, te] = j[0];
14487
- q = { id: ie, type: te };
14508
+ const [se, te] = j[0];
14509
+ q = { id: se, type: te };
14488
14510
  }
14489
14511
  C({
14490
14512
  domain: [...$, ...S],
@@ -14619,13 +14641,13 @@ function Hy(e, t) {
14619
14641
  j.push([he, me]);
14620
14642
  }
14621
14643
  }
14622
- let q, ie;
14644
+ let q, se;
14623
14645
  if (R == null) {
14624
14646
  const M = j.find((ne) => ne[0] === void 0);
14625
- q = void 0, ie = M[1];
14647
+ q = void 0, se = M[1];
14626
14648
  } else
14627
- [q, ie] = j.find((M) => M[0] === void 0 ? !1 : M[0] === R);
14628
- const te = { id: q, type: ie };
14649
+ [q, se] = j.find((M) => M[0] === void 0 ? !1 : M[0] === R);
14650
+ const te = { id: q, type: se };
14629
14651
  C({
14630
14652
  domain: Y,
14631
14653
  context: { ...l, ...B },
@@ -14758,7 +14780,7 @@ function Hy(e, t) {
14758
14780
  }
14759
14781
  );
14760
14782
  }
14761
- const Yv = xt(Hy), { useToken: Uy } = He;
14783
+ const Yv = xt(Hy), { useToken: Uy } = Ue;
14762
14784
  function Wy(e) {
14763
14785
  const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: a } = e, { token: s } = Uy(), l = o ? s.colorBgContainer : s.colorPrimaryBg;
14764
14786
  return /* @__PURE__ */ P(
@@ -14861,7 +14883,7 @@ function Kv() {
14861
14883
  ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(Gy, { tab: r }, r.key))) || null;
14862
14884
  return /* @__PURE__ */ i(oe, { children: n });
14863
14885
  }
14864
- const { useToken: Ky } = He, qv = (e) => {
14886
+ const { useToken: Ky } = Ue, qv = (e) => {
14865
14887
  const {
14866
14888
  onRetrieveShortcuts: t,
14867
14889
  onCheckIsFavourite: n,
@@ -14897,7 +14919,7 @@ const { useToken: Ky } = He, qv = (e) => {
14897
14919
  if (A)
14898
14920
  return JSON.stringify(A);
14899
14921
  }, [A]);
14900
- se(() => {
14922
+ ie(() => {
14901
14923
  w();
14902
14924
  }, [C]);
14903
14925
  function _(S) {