@gisce/react-ooui 2.124.0-alpha.1 → 2.124.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.
@@ -17,11 +17,12 @@ import $u from "dayjs/plugin/relativeTime";
17
17
  import Pu from "dayjs/plugin/weekday";
18
18
  import Lu from "dayjs/plugin/localeData";
19
19
  import { useLocale as De, Icon as Lr, iconMapper as Lt, useNotificationContext as Vu, FormigaConfigProvider as Bu, mergeStrings as Hu, Many2OneSuffix as ju, Many2OneSuffixModal as Oi, Dropdown as Cl, ToggleDropdownButton as Uu, getTablerIcon as In, DropdownButton as _n, DateValue as Wu, DateTimeValue as zu, useDatePickerLocale as Yu, SkeletonPill as qu, PaginationHeader as Gu, FieldSet as xl, ExportModal as Ku, DateMaskedInput as Sl, DateInput as Ju, HTMLPreview as Qu } from "@gisce/react-formiga-components";
20
+ import yt from "antd/es/alert/ErrorBoundary";
20
21
  import Xu from "antd/lib/input/TextArea";
21
22
  import ut from "styled-components";
22
23
  import Ws from "react-measure";
23
24
  import Tl from "lodash/debounce";
24
- import { useDeepCompareEffect as Je, useDeepCompareCallback as lt, useDeepCompareMemo as bt } from "use-deep-compare";
25
+ import { useDeepCompareEffect as Je, useDeepCompareCallback as lt, useDeepCompareMemo as wt } from "use-deep-compare";
25
26
  import { nanoid as Vo } from "nanoid";
26
27
  import { generate as Zu } from "@ant-design/colors";
27
28
  import Ts from "antd/lib/typography/Title";
@@ -32,7 +33,6 @@ import { InfiniteTable as zs, Table as of, PaginatedTable as sf } from "@gisce/r
32
33
  import Al from "antd/es/typography/Link";
33
34
  import { isPresetStatusColor as Il, isPresetColor as El } from "antd/lib/_util/colors";
34
35
  import af from "validator";
35
- import It from "antd/es/alert/ErrorBoundary";
36
36
  import "@gisce/react-formiga-table/style.css";
37
37
  import { GridUi as lf } from "@gisce/fiber-diagram";
38
38
  import cf from "tinycolor2";
@@ -970,7 +970,7 @@ Vr.displayName = "BaseInput";
970
970
  const Pl = (t) => {
971
971
  const { ooui: e, isSearchField: n = !1 } = t, { id: r, readOnly: o, required: i, translatable: a } = e;
972
972
  let d = /* @__PURE__ */ s(Ll, { ooui: e, isSearchField: n });
973
- return a && !o && !n && (d = /* @__PURE__ */ s(Vl, { ooui: e, field: r })), /* @__PURE__ */ s(tt, { required: i, ...t, children: d });
973
+ return a && !o && !n && (d = /* @__PURE__ */ s(Vl, { ooui: e, field: r })), /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(tt, { required: i, ...t, children: d }) });
974
974
  }, Ll = nt(
975
975
  ({
976
976
  value: t,
@@ -978,11 +978,17 @@ const Pl = (t) => {
978
978
  isSearchField: n,
979
979
  onChange: r
980
980
  }) => {
981
- const o = Ne(ft), { elementHasLostFocus: i } = o || {}, { readOnly: a, isPassword: d, translatable: c, required: l } = e, f = J(() => t && (e.selectionValues.size ? e.selectionValues.get(t) : Array.isArray(t) ? t[1] : t), [e.selectionValues, t]), u = J(
981
+ const o = Ne(ft), { elementHasLostFocus: i } = o || {}, { readOnly: a, isPassword: d, translatable: c, required: l } = e, f = J(() => {
982
+ var h;
983
+ return t && ((h = e.selectionValues) != null && h.size ? e.selectionValues.get(t) : Array.isArray(t) ? t[1] : t);
984
+ }, [e, t]), u = J(
982
985
  () => l && !a,
983
986
  [l, a]
984
987
  ), m = J(
985
- () => Array.isArray(t) || !!e.selectionValues.size,
988
+ () => {
989
+ var h;
990
+ return Array.isArray(t) || !!((h = e.selectionValues) != null && h.size);
991
+ },
986
992
  [t, e.selectionValues]
987
993
  ), p = S(
988
994
  (h) => {
@@ -1920,7 +1926,7 @@ const Ln = ({
1920
1926
  "useConfigContext must be used within a ConfigContextProvider"
1921
1927
  );
1922
1928
  return t;
1923
- }, St = (t) => {
1929
+ }, Tt = (t) => {
1924
1930
  const { userFeatures: e } = on();
1925
1931
  return !!e.features[t];
1926
1932
  }, rn = (t) => {
@@ -2935,8 +2941,8 @@ const Wm = zt(jm), zm = ({
2935
2941
  });
2936
2942
  return [...new Set(r.filter((o) => o in t))];
2937
2943
  };
2938
- var wt = /* @__PURE__ */ ((t) => (t.FEATURE_MANY2ONE_DISABLE_ARROW_MENU = "widget.many2one.disable.arrow_menu", t.FEATURE_MANY2ONE_DISABLE_FOLDER = "widget.many2one.disable.folder", t.FEATURE_MANY2ONE_SELECTION_TO_LAZY = "widget.many2one.selection_to_many2onelazy", t.FEATURE_ONE2MANY_ENABLE_NEW_TABLE = "widget.one2many.enable_new_table", t.FEATURE_DATE_USE_MASKED_INPUT = "widget.date.use_masked_input", t.FEATURE_TEST_FEATURE = "test.feature", t))(wt || {});
2939
- const ES = Object.values(wt), { defaultAlgorithm: qm, defaultSeed: Gm } = ot, An = qm(Gm), Km = (t) => {
2944
+ var Ct = /* @__PURE__ */ ((t) => (t.FEATURE_MANY2ONE_DISABLE_ARROW_MENU = "widget.many2one.disable.arrow_menu", t.FEATURE_MANY2ONE_DISABLE_FOLDER = "widget.many2one.disable.folder", t.FEATURE_MANY2ONE_SELECTION_TO_LAZY = "widget.many2one.selection_to_many2onelazy", t.FEATURE_ONE2MANY_ENABLE_NEW_TABLE = "widget.one2many.enable_new_table", t.FEATURE_DATE_USE_MASKED_INPUT = "widget.date.use_masked_input", t.FEATURE_TEST_FEATURE = "test.feature", t))(Ct || {});
2945
+ const ES = Object.values(Ct), { defaultAlgorithm: qm, defaultSeed: Gm } = ot, An = qm(Gm), Km = (t) => {
2940
2946
  const { ooui: e } = t, { required: n } = e;
2941
2947
  return /* @__PURE__ */ s(tt, { required: n, type: "array", validator: async (o, i) => {
2942
2948
  if (!i)
@@ -2975,8 +2981,8 @@ const ES = Object.values(wt), { defaultAlgorithm: qm, defaultSeed: Gm } = ot, An
2975
2981
  model: a,
2976
2982
  permissions: ["create"],
2977
2983
  enabled: !0
2978
- }), V = (X == null ? void 0 : X.create) ?? !1, B = St(
2979
- wt.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
2984
+ }), V = (X == null ? void 0 : X.create) ?? !1, B = Tt(
2985
+ Ct.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
2980
2986
  ), N = J(() => {
2981
2987
  let Z = !0;
2982
2988
  return B === !0 && (Z = !1), r.showMenu !== void 0 && (Z = r.showMenu), Z;
@@ -6362,8 +6368,8 @@ const fh = (t) => /* @__PURE__ */ s(tt, { ...t, children: /* @__PURE__ */ s(_c,
6362
6368
  padding-left: 10px;
6363
6369
  white-space: nowrap;
6364
6370
  `, gh = (t) => {
6365
- const { m2oField: e, ooui: n } = t, r = St(
6366
- wt.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
6371
+ const { m2oField: e, ooui: n } = t, r = Tt(
6372
+ Ct.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
6367
6373
  ), o = J(() => {
6368
6374
  let i = !0;
6369
6375
  return r === !0 && (i = !1), n.showMenu !== void 0 && (i = n.showMenu), i;
@@ -6373,8 +6379,8 @@ const fh = (t) => /* @__PURE__ */ s(tt, { ...t, children: /* @__PURE__ */ s(_c,
6373
6379
  o && /* @__PURE__ */ s(vr, { id: e.id, model: e.model })
6374
6380
  ] }) : /* @__PURE__ */ s(Fe, {});
6375
6381
  }, yh = (t) => {
6376
- const { value: e, selectionValues: n } = t, r = St(
6377
- wt.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
6382
+ const { value: e, selectionValues: n } = t, r = Tt(
6383
+ Ct.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
6378
6384
  );
6379
6385
  if (!e || !e.model || !e.name)
6380
6386
  return /* @__PURE__ */ s(Fe, {});
@@ -6860,7 +6866,7 @@ const Sh = ({
6860
6866
  ooui: e,
6861
6867
  context: n
6862
6868
  }) => {
6863
- const r = bt(
6869
+ const r = wt(
6864
6870
  () => (t == null ? void 0 : t.items) || [],
6865
6871
  [t == null ? void 0 : t.items]
6866
6872
  ), o = J(
@@ -6965,9 +6971,9 @@ const jr = ({
6965
6971
  tableRef: o
6966
6972
  }), f = rn(
6967
6973
  kt.FEATURE_MANY2ONE_SORT
6968
- ), u = St(
6969
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
6970
- ), m = bt(() => {
6974
+ ), u = Tt(
6975
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
6976
+ ), m = wt(() => {
6971
6977
  if (t)
6972
6978
  return Ks(
6973
6979
  t,
@@ -7047,7 +7053,7 @@ const Yo = nt(
7047
7053
  o,
7048
7054
  i < a.length - 1 ? /* @__PURE__ */ s("span", { style: { margin: "0 8px", color: n.colorBorder }, children: "|" }) : ""
7049
7055
  ] }, i)) : null, [t, n.colorBorder]);
7050
- return /* @__PURE__ */ s(It, { children: /* @__PURE__ */ H(
7056
+ return /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ H(
7051
7057
  "div",
7052
7058
  {
7053
7059
  style: {
@@ -7074,7 +7080,7 @@ const Gi = ["sum", "count", "max", "min"], si = ({
7074
7080
  }) => {
7075
7081
  const [o, i] = E(), [a, d] = E(!1), [c, l] = ke(
7076
7082
  K.getHandler().readAggregates
7077
- ), f = bt(() => {
7083
+ ), f = wt(() => {
7078
7084
  if (t)
7079
7085
  return t.columns.filter((p) => Object.keys(p).some((g) => {
7080
7086
  var h;
@@ -7673,8 +7679,8 @@ function Nc(t) {
7673
7679
  var f, u;
7674
7680
  const { field: e } = t;
7675
7681
  e.readOnly = !1, e.required = !1;
7676
- const { t: n } = De(), r = St(
7677
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
7682
+ const { t: n } = De(), r = Tt(
7683
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
7678
7684
  ), o = e.type, i = (f = e.raw_props) == null ? void 0 : f.widget, a = e.fieldType, d = e, c = d.relation || ((u = d.raw_props) == null ? void 0 : u.relation);
7679
7685
  if (c && (i === "many2one_lazy" || r && i === "selection" && a === "many2one")) {
7680
7686
  const m = new Fo({
@@ -7713,7 +7719,7 @@ function Nc(t) {
7713
7719
  case Dn.selection:
7714
7720
  return /* @__PURE__ */ s(mg, { layout: "vertical", ooui: e, showLabel: !0 });
7715
7721
  default:
7716
- return /* @__PURE__ */ s(
7722
+ return /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(
7717
7723
  Pl,
7718
7724
  {
7719
7725
  ooui: e,
@@ -7721,7 +7727,7 @@ function Nc(t) {
7721
7727
  showLabel: !0,
7722
7728
  isSearchField: !0
7723
7729
  }
7724
- );
7730
+ ) });
7725
7731
  }
7726
7732
  }
7727
7733
  const { useToken: vg } = ot, { Title: bg } = Jt, { Header: wg, Content: Cg, Footer: xg } = el, Sg = ({
@@ -9263,12 +9269,12 @@ const mi = (t) => {
9263
9269
  searchValues: d,
9264
9270
  currentModel: c,
9265
9271
  context: l
9266
- } = t, f = Q(), { t: u } = De(), m = St(
9267
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
9272
+ } = t, f = Q(), { t: u } = De(), m = Tt(
9273
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
9268
9274
  ), p = Q(), g = Q(null), {
9269
9275
  currentSavedSearch: h,
9270
9276
  searchParams: y
9271
- } = Yt(), [v, b] = E([]), [C, x] = E({}), w = bt(() => v, [v]), _ = bt(() => `${u("filter")} (${(w == null ? void 0 : w.length) || 0})`, [u, w]), T = bt(() => {
9277
+ } = Yt(), [v, b] = E([]), [C, x] = E({}), w = wt(() => v, [v]), _ = wt(() => `${u("filter")} (${(w == null ? void 0 : w.length) || 0})`, [u, w]), T = wt(() => {
9272
9278
  if (!C)
9273
9279
  return 0;
9274
9280
  const oe = /* @__PURE__ */ new Set();
@@ -9397,7 +9403,7 @@ const mi = (t) => {
9397
9403
  (ue = g.current) == null || ue.resetFields(), (ae = g.current) == null || ae.setFieldsValue({}), (ce = (fe = g.current) == null ? void 0 : fe.resetInitialValues) == null || ce.call(fe), b([]), x({}), V(), o && o();
9398
9404
  },
9399
9405
  [v, o, V]
9400
- ), ie = bt(() => N ? U ? /* @__PURE__ */ H(ht.Compact, { size: "small", children: [
9406
+ ), ie = wt(() => N ? U ? /* @__PURE__ */ H(ht.Compact, { size: "small", children: [
9401
9407
  /* @__PURE__ */ s(
9402
9408
  Ke,
9403
9409
  {
@@ -9652,8 +9658,8 @@ function Ko(t) {
9652
9658
  searchError: u,
9653
9659
  searchValues: m,
9654
9660
  showLimitOptions: p = !0
9655
- } = t, [g, h] = E(), [y, v] = E(), [b, C] = E(!1), x = Q(), { token: w } = Uv(), _ = St(
9656
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
9661
+ } = t, [g, h] = E(), [y, v] = E(), [b, C] = E(!1), x = Q(), { token: w } = Uv(), _ = Tt(
9662
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
9657
9663
  ), [T] = Dt.useForm();
9658
9664
  he(() => {
9659
9665
  T.setFieldsValue(m);
@@ -9852,8 +9858,8 @@ const Er = () => {
9852
9858
  onExternalRecordsUpdate: l,
9853
9859
  skipFunctionFieldsHandling: f = !1
9854
9860
  }) => {
9855
- const u = St(
9856
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
9861
+ const u = Tt(
9862
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
9857
9863
  ), [m, p] = E(!1), g = Q([]), h = e == null ? void 0 : e.fields, y = (e == null ? void 0 : e.fields_in_conditions) !== void 0, [v, b] = E(
9858
9864
  /* @__PURE__ */ new Set()
9859
9865
  ), C = Q(/* @__PURE__ */ new Set()), x = Q([]), w = Q(null), [_, T] = E(!0), [A, O] = ke(
@@ -10045,8 +10051,8 @@ const Er = () => {
10045
10051
  treeView: c,
10046
10052
  results: l,
10047
10053
  onRecordsUpdated: f
10048
- } = t, u = St(
10049
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
10054
+ } = t, u = Tt(
10055
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
10050
10056
  ), m = J(() => c != null && c.field_parent ? { ...c == null ? void 0 : c.fields, [c == null ? void 0 : c.field_parent]: {} } : c == null ? void 0 : c.fields, [c]), p = (c == null ? void 0 : c.fields_in_conditions) !== void 0, g = Q(null), [h, y] = E(!0), [v, b] = ke(
10051
10057
  K.getHandler().readObjects
10052
10058
  ), [C, x] = ke(
@@ -10321,7 +10327,7 @@ const Er = () => {
10321
10327
  record: e,
10322
10328
  column: n,
10323
10329
  isFieldLoading: r
10324
- }) => r != null && r(e, n.key) ? /* @__PURE__ */ s(qu, {}) : /* @__PURE__ */ s(It, { children: n.render(t, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context) })
10330
+ }) => r != null && r(e, n.key) ? /* @__PURE__ */ s(qu, {}) : /* @__PURE__ */ s(yt, { children: n.render(t, n.key, n == null ? void 0 : n.ooui, n == null ? void 0 : n.context) })
10325
10331
  );
10326
10332
  Jo.displayName = "CellRenderer";
10327
10333
  const md = ({
@@ -10353,8 +10359,8 @@ function Xv(t, e) {
10353
10359
  fixedHeight: y,
10354
10360
  autoRefresh: v
10355
10361
  } = t, b = Q(null);
10356
- St(
10357
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
10362
+ Tt(
10363
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
10358
10364
  );
10359
10365
  const C = Q([]), x = Q(!1), { showErrorNotification: w } = Et(), { setCurrentSavedSearch: _ } = Yt(), [T, A] = E(), [O, D] = E(!1), P = Q(), M = Q(null), F = ni({
10360
10366
  elementRef: M,
@@ -10402,9 +10408,9 @@ function Xv(t, e) {
10402
10408
  (rt = b.current) == null || rt.scrollToTop();
10403
10409
  }, 0)), P.current = T, Le.current = me;
10404
10410
  }, [T]), he(() => {
10405
- var Bt, At, pn, er;
10411
+ var Bt, It, pn, er;
10406
10412
  const rt = me && me.trim().length > 0, gt = we.current && typeof we.current == "string" && we.current.trim().length > 0;
10407
- rt && !gt || rt && gt && me !== we.current ? (Ve.current = !0, ie == null || ie([]), re == null || re({}), Rt([]), (Bt = b.current) == null || Bt.unselectAll(), te == null || te(0), (At = b.current) == null || At.scrollToTop()) : !rt && gt && (Ve.current = !1, Rt([]), (pn = b.current) == null || pn.unselectAll(), te == null || te(0), (er = b.current) == null || er.scrollToTop(), setTimeout(() => {
10413
+ rt && !gt || rt && gt && me !== we.current ? (Ve.current = !0, ie == null || ie([]), re == null || re({}), Rt([]), (Bt = b.current) == null || Bt.unselectAll(), te == null || te(0), (It = b.current) == null || It.scrollToTop()) : !rt && gt && (Ve.current = !1, Rt([]), (pn = b.current) == null || pn.unselectAll(), te == null || te(0), (er = b.current) == null || er.scrollToTop(), setTimeout(() => {
10408
10414
  ze.current = !0, pt();
10409
10415
  }, 0)), we.current = me;
10410
10416
  }, [me]);
@@ -10438,7 +10444,7 @@ function Xv(t, e) {
10438
10444
  clearAutorefreshableFields: $e,
10439
10445
  addRecordsToCheckFunctionFields: Oe,
10440
10446
  onHasFunctionFieldsToParseConditions: qe,
10441
- shouldMakeDeferredFunctionRead: Tt
10447
+ shouldMakeDeferredFunctionRead: _t
10442
10448
  } = hi({
10443
10449
  model: n,
10444
10450
  treeView: B,
@@ -10449,35 +10455,35 @@ function Xv(t, e) {
10449
10455
  updateAttributes: le,
10450
10456
  results: fe,
10451
10457
  autoRefresh: v
10452
- }), _t = J(() => (de == null ? void 0 : de.map((rt) => rt.id)) || [], [de]), yt = J(() => {
10458
+ }), At = J(() => (de == null ? void 0 : de.map((rt) => rt.id)) || [], [de]), vt = J(() => {
10453
10459
  if (!He)
10454
10460
  return;
10455
10461
  const rt = me !== void 0;
10456
10462
  return He.map((gt) => ({
10457
10463
  ...gt,
10458
10464
  isSortable: rt ? !1 : gt.isSortable,
10459
- render: (Bt, At) => /* @__PURE__ */ s(
10465
+ render: (Bt, It) => /* @__PURE__ */ s(
10460
10466
  Jo,
10461
10467
  {
10462
10468
  value: Bt,
10463
- record: At,
10469
+ record: It,
10464
10470
  column: gt,
10465
10471
  isFieldLoading: _e
10466
10472
  }
10467
10473
  )
10468
10474
  }));
10469
- }, [He, _e, me]), Ct = J(
10475
+ }, [He, _e, me]), xt = J(
10470
10476
  () => bn(oe || [], a),
10471
10477
  [a, oe]
10472
10478
  ), Vt = S(() => {
10473
- const gt = `${JSON.stringify(me ? a : Ct)}-${me}`;
10479
+ const gt = `${JSON.stringify(me ? a : xt)}-${me}`;
10474
10480
  return gt !== Be.current ? (Be.current = gt, !0) : !1;
10475
- }, [a, Ct, me]), tn = S(async () => {
10481
+ }, [a, xt, me]), tn = S(async () => {
10476
10482
  if (!me && !Ie.current) {
10477
10483
  Ie.current = !0;
10478
10484
  try {
10479
10485
  const rt = await I({
10480
- params: me ? a : Ct,
10486
+ params: me ? a : xt,
10481
10487
  model: n,
10482
10488
  context: l,
10483
10489
  name_search: me
@@ -10491,7 +10497,7 @@ function Xv(t, e) {
10491
10497
  }
10492
10498
  }, [
10493
10499
  a,
10494
- Ct,
10500
+ xt,
10495
10501
  n,
10496
10502
  me,
10497
10503
  l,
@@ -10506,12 +10512,12 @@ function Xv(t, e) {
10506
10512
  }) => {
10507
10513
  if (!Re)
10508
10514
  return [];
10509
- let At;
10515
+ let It;
10510
10516
  if (!x.current && Me) {
10511
10517
  const Ft = yr({
10512
10518
  state: Me
10513
10519
  });
10514
- At = Hr(Ft);
10520
+ It = Hr(Ft);
10515
10521
  } else {
10516
10522
  const Ft = Bt == null ? void 0 : Bt.filter((On) => On.sort || On.sortIndex).map((On) => ({
10517
10523
  sort: On.sort || void 0,
@@ -10520,12 +10526,12 @@ function Xv(t, e) {
10520
10526
  })), ao = Ft && (Ft == null ? void 0 : Ft.length) > 0 ? Ft : void 0, Qo = yr({
10521
10527
  state: ao
10522
10528
  });
10523
- We == null || We(ao), At = Hr(Qo);
10529
+ We == null || We(ao), It = Hr(Qo);
10524
10530
  }
10525
10531
  x.current = !0;
10526
- const pn = me ? a : Ct, er = jr({
10532
+ const pn = me ? a : xt, er = jr({
10527
10533
  treeOoui: Re,
10528
- hasFunctionFieldsToParseConditions: Tt && qe()
10534
+ hasFunctionFieldsToParseConditions: _t && qe()
10529
10535
  }), { results: Sn, attrsEvaluated: tr } = await $({
10530
10536
  params: pn,
10531
10537
  limit: gt - rt,
@@ -10534,11 +10540,11 @@ function Xv(t, e) {
10534
10540
  fields: B != null && B.field_parent ? { ...B == null ? void 0 : B.fields, [B == null ? void 0 : B.field_parent]: {} } : B == null ? void 0 : B.fields,
10535
10541
  context: l,
10536
10542
  attrs: er,
10537
- order: At,
10543
+ order: It,
10538
10544
  name_search: me,
10539
- skipFunctionFields: Tt,
10545
+ skipFunctionFields: _t,
10540
10546
  onIdsRetrieved: (Ft) => {
10541
- Tt && Oe(Ft);
10547
+ _t && Oe(Ft);
10542
10548
  }
10543
10549
  });
10544
10550
  if (ce == null || ce({
@@ -10546,14 +10552,14 @@ function Xv(t, e) {
10546
10552
  params: pn,
10547
10553
  name_search: me,
10548
10554
  context: l,
10549
- order: At
10550
- }), Vt() || Ge.current !== At)
10555
+ order: It
10556
+ }), Vt() || Ge.current !== It)
10551
10557
  ae == null || ae(Sn);
10552
10558
  else {
10553
10559
  const Ft = [...fe || [], ...Sn];
10554
10560
  ae == null || ae(Ft);
10555
10561
  }
10556
- if (Ge.current = At, me ? (A(Sn.length), Ee(Sn.length), D(!0)) : D(!1), Sn.length === 0)
10562
+ if (Ge.current = It, me ? (A(Sn.length), Ee(Sn.length), D(!0)) : D(!1), Sn.length === 0)
10557
10563
  return C.current = [], rt === 0 && (A(0), Ee(0)), [];
10558
10564
  const nr = await ln(
10559
10565
  Re,
@@ -10569,7 +10575,7 @@ function Xv(t, e) {
10569
10575
  Me,
10570
10576
  Oe,
10571
10577
  a,
10572
- Ct,
10578
+ xt,
10573
10579
  n,
10574
10580
  Vt,
10575
10581
  me,
@@ -10584,10 +10590,10 @@ function Xv(t, e) {
10584
10590
  Re,
10585
10591
  B,
10586
10592
  le,
10587
- Tt
10593
+ _t
10588
10594
  ]
10589
10595
  ), Fn = S(async () => me ? C.current : T ? (await X({
10590
- params: me ? a : Ct,
10596
+ params: me ? a : xt,
10591
10597
  model: n,
10592
10598
  context: l,
10593
10599
  totalItems: T
@@ -10596,7 +10602,7 @@ function Xv(t, e) {
10596
10602
  T,
10597
10603
  X,
10598
10604
  a,
10599
- Ct,
10605
+ xt,
10600
10606
  n,
10601
10607
  l
10602
10608
  ]), {
@@ -10610,7 +10616,7 @@ function Xv(t, e) {
10610
10616
  totalRows: T,
10611
10617
  maxRowsToSelect: Qv,
10612
10618
  onSelectAll: Fn
10613
- }), vt = S(
10619
+ }), bt = S(
10614
10620
  async ({
10615
10621
  startRow: rt,
10616
10622
  endRow: gt,
@@ -10618,14 +10624,14 @@ function Xv(t, e) {
10618
10624
  }) => {
10619
10625
  try {
10620
10626
  U == null || U(!0), rt === 0 && !me && tn();
10621
- const At = await Gt({
10627
+ const It = await Gt({
10622
10628
  startRow: rt,
10623
10629
  endRow: gt,
10624
10630
  state: Bt
10625
10631
  });
10626
- return U == null || U(!1), At;
10627
- } catch (At) {
10628
- throw console.error(At), A((pn) => pn ?? 0), Ee((pn) => pn ?? 0), U == null || U(!1), w(At), At;
10632
+ return U == null || U(!1), It;
10633
+ } catch (It) {
10634
+ throw console.error(It), A((pn) => pn ?? 0), Ee((pn) => pn ?? 0), U == null || U(!1), w(It), It;
10629
10635
  }
10630
10636
  },
10631
10637
  [
@@ -10639,7 +10645,7 @@ function Xv(t, e) {
10639
10645
  ), { footerComponent: mn } = Oc({
10640
10646
  treeOoui: Re,
10641
10647
  model: n,
10642
- selectedRowKeys: _t,
10648
+ selectedRowKeys: At,
10643
10649
  showEmptyValues: !0
10644
10650
  }), cn = Q(ye);
10645
10651
  cn.current = ye;
@@ -10648,14 +10654,14 @@ function Xv(t, e) {
10648
10654
  tableRef: b,
10649
10655
  autoRefresh: v
10650
10656
  });
10651
- const Cn = Ve.current ? qt : void 0, Ye = bt(() => !yt || !Re ? null : /* @__PURE__ */ s(
10657
+ const Cn = Ve.current ? qt : void 0, Ye = wt(() => !vt || !Re ? null : /* @__PURE__ */ s(
10652
10658
  zs,
10653
10659
  {
10654
10660
  readonly: !1,
10655
10661
  ref: b,
10656
10662
  height: R,
10657
- columns: yt,
10658
- onRequestData: vt,
10663
+ columns: vt,
10664
+ onRequestData: bt,
10659
10665
  onRowDoubleClick: i,
10660
10666
  onRowStyle: ge,
10661
10667
  onRowSelectionChange: h ? void 0 : Qe,
@@ -10663,7 +10669,7 @@ function Xv(t, e) {
10663
10669
  onGetColumnsState: Z,
10664
10670
  onChangeFirstVisibleRowIndex: te,
10665
10671
  onGetFirstVisibleRowIndex: dn,
10666
- selectedRowKeys: h ? void 0 : _t,
10672
+ selectedRowKeys: h ? void 0 : At,
10667
10673
  onSelectionCheckboxClicked: h ? void 0 : at,
10668
10674
  totalRows: T ?? void 0,
10669
10675
  footer: mn,
@@ -10677,10 +10683,10 @@ function Xv(t, e) {
10677
10683
  autoRefresh: v
10678
10684
  }
10679
10685
  ), [
10680
- yt,
10686
+ vt,
10681
10687
  Re,
10682
10688
  R,
10683
- vt,
10689
+ bt,
10684
10690
  i,
10685
10691
  ge,
10686
10692
  h,
@@ -10689,7 +10695,7 @@ function Xv(t, e) {
10689
10695
  Z,
10690
10696
  te,
10691
10697
  dn,
10692
- _t,
10698
+ At,
10693
10699
  at,
10694
10700
  T,
10695
10701
  mn,
@@ -10721,7 +10727,7 @@ function Xv(t, e) {
10721
10727
  refreshResults: pt,
10722
10728
  getFields: () => B == null ? void 0 : B.fields
10723
10729
  }));
10724
- const xt = J(
10730
+ const St = J(
10725
10731
  () => ({
10726
10732
  overflow: "hidden",
10727
10733
  height: `${R}px`,
@@ -10797,8 +10803,8 @@ function Xv(t, e) {
10797
10803
  [G]
10798
10804
  ), nn = S(
10799
10805
  ({ params: rt, values: gt, closeSidebar: Bt = !0 }) => {
10800
- var At;
10801
- Rt([]), (At = b.current) == null || At.unselectAll(), ue == null || ue(void 0), ie == null || ie(rt), re == null || re(gt), G == null || G(!Bt), Bt || pt(), (!rt || rt.length === 0) && (_ == null || _(null));
10806
+ var It;
10807
+ Rt([]), (It = b.current) == null || It.unselectAll(), ue == null || ue(void 0), ie == null || ie(rt), re == null || re(gt), G == null || G(!Bt), Bt || pt(), (!rt || rt.length === 0) && (_ == null || _(null));
10802
10808
  },
10803
10809
  [
10804
10810
  Rt,
@@ -10830,7 +10836,7 @@ function Xv(t, e) {
10830
10836
  !g && /* @__PURE__ */ s(
10831
10837
  fd,
10832
10838
  {
10833
- selectedRowKeys: _t,
10839
+ selectedRowKeys: At,
10834
10840
  totalRows: T,
10835
10841
  customMiddleComponent: Fr && /* @__PURE__ */ s(
10836
10842
  gi,
@@ -10840,7 +10846,7 @@ function Xv(t, e) {
10840
10846
  )
10841
10847
  }
10842
10848
  ),
10843
- /* @__PURE__ */ s("div", { ref: M, style: xt, children: L || ee ? /* @__PURE__ */ s(ct, {}) : Ye })
10849
+ /* @__PURE__ */ s("div", { ref: M, style: St, children: L || ee ? /* @__PURE__ */ s(ct, {}) : Ye })
10844
10850
  ] });
10845
10851
  }
10846
10852
  const yi = zt(Xv), Da = (t, e = "14px -apple-system") => {
@@ -10979,7 +10985,7 @@ const pd = nt(({ summary: t }) => {
10979
10985
  });
10980
10986
  pd.displayName = "SummaryValue";
10981
10987
  const hd = nt(
10982
- ({ summaries: t }) => /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s("div", { className: "p-1 pb-0 pl-2 mt-2", children: t.map((e, n) => /* @__PURE__ */ H("span", { children: [
10988
+ ({ summaries: t }) => /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s("div", { className: "p-1 pb-0 pl-2 mt-2", children: t.map((e, n) => /* @__PURE__ */ H("span", { children: [
10983
10989
  e.label,
10984
10990
  ": ",
10985
10991
  /* @__PURE__ */ s(pd, { summary: e }),
@@ -11017,8 +11023,8 @@ const gd = zt(
11017
11023
  Qt
11018
11024
  ), { title: j = void 0, setTitle: X = void 0 } = (x ? $ : {}) || {}, V = rn(
11019
11025
  kt.FEATURE_MANY2ONE_SORT
11020
- ), B = St(
11021
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
11026
+ ), B = Tt(
11027
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
11022
11028
  ), N = J(() => {
11023
11029
  if (F)
11024
11030
  return Ks(
@@ -11121,7 +11127,7 @@ const gd = zt(
11121
11127
  if (F !== null && N && N.length > 0)
11122
11128
  return Zv(N, O, 600);
11123
11129
  }, [N, O, F]), ye = J(() => p && (F != null && F.columns.some((ie) => ie.sum !== void 0)) ? p - 30 : p, [p, F == null ? void 0 : F.columns]);
11124
- return F === null || !te || ((de = te == null ? void 0 : te.columns) == null ? void 0 : de.length) === 0 ? /* @__PURE__ */ s(ct, { style: { padding: "2rem" } }) : /* @__PURE__ */ H(It, { children: [
11130
+ return F === null || !te || ((de = te == null ? void 0 : te.columns) == null ? void 0 : de.length) === 0 ? /* @__PURE__ */ s(ct, { style: { padding: "2rem" } }) : /* @__PURE__ */ H(yt, { children: [
11125
11131
  G,
11126
11132
  /* @__PURE__ */ s(
11127
11133
  of,
@@ -11186,8 +11192,8 @@ const yd = (t) => {
11186
11192
  searchParams: _ = [],
11187
11193
  setSearchValues: T,
11188
11194
  clearSelection: A
11189
- } = t, O = St(
11190
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
11195
+ } = t, O = Tt(
11196
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
11191
11197
  ), [D, P] = E(!1), [M, F] = E(!1), [R, I] = E(), [k, $] = E(1), [j, X] = E(0), [V, B] = E(), [N, L] = E([]), [U, z] = E(void 0), [G, ne] = E(void 0), te = Q(x || qt), ye = Q([]), de = S(
11192
11198
  (pe) => {
11193
11199
  y == null || y([...pe]), L([...pe]);
@@ -11701,8 +11707,8 @@ const vd = zt(rb), ob = qt, sb = (t) => {
11701
11707
  setOrder: G,
11702
11708
  limit: ne,
11703
11709
  setLimit: te
11704
- } = pi({ useLocalState: !i }), { treeMaxLimit: ye } = on(), { setCurrentSavedSearch: de } = Yt(), ie = St(
11705
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
11710
+ } = pi({ useLocalState: !i }), { treeMaxLimit: ye } = on(), { setCurrentSavedSearch: de } = Yt(), ie = Tt(
11711
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
11706
11712
  ), se = y ? 0 : Math.min(ne, ye), [oe, re] = E(!0), [W, ue] = E(), [ae, fe] = E([]), [ce, Ee] = E(!1), pe = a || k, Me = Q(pe), We = Q(R), me = Q(x), we = Q(), Ve = Q([]), Be = Q(!1), [Ge, Ie] = ke(
11707
11713
  K.getHandler().parseConditions
11708
11714
  ), Le = S((Ye) => {
@@ -11710,7 +11716,7 @@ const vd = zt(rb), ob = qt, sb = (t) => {
11710
11716
  const mt = Ye.find((pt) => pt.id === Xe.id);
11711
11717
  return { ...Xe, ...mt };
11712
11718
  }), fe((Xe) => Xe.map((mt) => {
11713
- const pt = Ye.find((xt) => xt.id === mt.id);
11719
+ const pt = Ye.find((St) => St.id === mt.id);
11714
11720
  return { ...mt, ...pt };
11715
11721
  }));
11716
11722
  }, []), {
@@ -11767,17 +11773,17 @@ const vd = zt(rb), ob = qt, sb = (t) => {
11767
11773
  o,
11768
11774
  l,
11769
11775
  ge
11770
- ]), Oe = S(() => A, [A]), qe = S(() => O, [O]), Tt = S((Ye) => {
11771
- var Xe, mt, pt, xt, sn;
11772
- return (pt = g == null ? void 0 : g.current) != null && pt[(mt = (Xe = Ye.node) == null ? void 0 : Xe.data) == null ? void 0 : mt.id] ? { color: g.current[(sn = (xt = Ye.node) == null ? void 0 : xt.data) == null ? void 0 : sn.id] } : {};
11773
- }, []), _t = S(
11776
+ ]), Oe = S(() => A, [A]), qe = S(() => O, [O]), _t = S((Ye) => {
11777
+ var Xe, mt, pt, St, sn;
11778
+ return (pt = g == null ? void 0 : g.current) != null && pt[(mt = (Xe = Ye.node) == null ? void 0 : Xe.data) == null ? void 0 : mt.id] ? { color: g.current[(sn = (St = Ye.node) == null ? void 0 : St.data) == null ? void 0 : sn.id] } : {};
11779
+ }, []), At = S(
11774
11780
  (Ye) => {
11775
11781
  var Xe;
11776
11782
  return (Xe = h == null ? void 0 : h.current) == null ? void 0 : Xe[Ye.id];
11777
11783
  },
11778
11784
  // eslint-disable-next-line react-hooks/exhaustive-deps
11779
11785
  []
11780
- ), yt = S(() => {
11786
+ ), vt = S(() => {
11781
11787
  var Ye;
11782
11788
  _([]), (Ye = d.current) == null || Ye.unselectAll(), $ == null || $(void 0), M == null || M([]), I == null || I(void 0);
11783
11789
  }, [
@@ -11786,7 +11792,7 @@ const vd = zt(rb), ob = qt, sb = (t) => {
11786
11792
  $,
11787
11793
  M,
11788
11794
  I
11789
- ]), Ct = S(
11795
+ ]), xt = S(
11790
11796
  ({ params: Ye, searchValues: Xe }) => {
11791
11797
  var mt;
11792
11798
  _([]), (mt = d.current) == null || mt.unselectAll(), $ == null || $(void 0), M == null || M(Ye), I == null || I(Xe);
@@ -11821,7 +11827,7 @@ const vd = zt(rb), ob = qt, sb = (t) => {
11821
11827
  hasFunctionFieldsToParseConditions: Se && je()
11822
11828
  });
11823
11829
  !pe && Ae() && $e();
11824
- const { results: pt, attrsEvaluated: xt } = await Z({
11830
+ const { results: pt, attrsEvaluated: St } = await Z({
11825
11831
  params: Xe,
11826
11832
  limit: se,
11827
11833
  offset: y ? 0 : ((L || 1) - 1) * se,
@@ -11851,7 +11857,7 @@ const vd = zt(rb), ob = qt, sb = (t) => {
11851
11857
  l,
11852
11858
  ie
11853
11859
  );
11854
- m == null || m(xt, n), C(!1), Ve.current = [...sn], fe([...sn]);
11860
+ m == null || m(St, n), C(!1), Ve.current = [...sn], fe([...sn]);
11855
11861
  } catch (Ye) {
11856
11862
  throw C(!1), ge(Ye), console.error(Ye), Ye;
11857
11863
  } finally {
@@ -11965,10 +11971,10 @@ const vd = zt(rb), ob = qt, sb = (t) => {
11965
11971
  }), [ee, R, c, o, l, W]), at = S(async () => {
11966
11972
  const Ye = await Qe();
11967
11973
  _ == null || _(Ye.map((Xe) => ({ id: Xe })));
11968
- }, [Qe, _]), vt = J(() => _e.length === 0 ? "unchecked" : _e.length === se && se > 0 || _e.length === W ? "checked" : "indeterminate", [_e, se, W]), mn = S(() => {
11974
+ }, [Qe, _]), bt = J(() => _e.length === 0 ? "unchecked" : _e.length === se && se > 0 || _e.length === W ? "checked" : "indeterminate", [_e, se, W]), mn = S(() => {
11969
11975
  var Ye, Xe;
11970
- vt === "unchecked" ? ((Ye = d.current) == null || Ye.selectAll(), _(ae.map((mt) => ({ id: mt.id })))) : (_([]), (Xe = d.current) == null || Xe.unselectAll());
11971
- }, [d, _, ae, vt]), cn = S(
11976
+ bt === "unchecked" ? ((Ye = d.current) == null || Ye.selectAll(), _(ae.map((mt) => ({ id: mt.id })))) : (_([]), (Xe = d.current) == null || Xe.unselectAll());
11977
+ }, [d, _, ae, bt]), cn = S(
11972
11978
  (Ye) => {
11973
11979
  G(Ye), T(0), D(void 0), U(1);
11974
11980
  },
@@ -11982,8 +11988,8 @@ const vd = zt(rb), ob = qt, sb = (t) => {
11982
11988
  ({ id: Ye, selected: Xe }) => {
11983
11989
  _((mt) => {
11984
11990
  if (Xe) {
11985
- const pt = ae.find((xt) => xt.id === Ye);
11986
- return pt && !mt.some((xt) => xt.id === Ye) ? [...mt, pt] : mt;
11991
+ const pt = ae.find((St) => St.id === Ye);
11992
+ return pt && !mt.some((St) => St.id === Ye) ? [...mt, pt] : mt;
11987
11993
  }
11988
11994
  return mt.filter((pt) => pt.id !== Ye);
11989
11995
  });
@@ -12008,11 +12014,11 @@ const vd = zt(rb), ob = qt, sb = (t) => {
12008
12014
  ids: Xe,
12009
12015
  fields: mt,
12010
12016
  context: l
12011
- }), xt = await ln(
12017
+ }), St = await ln(
12012
12018
  n,
12013
12019
  pt,
12014
12020
  l
12015
- ), sn = [...ae, ...xt], xn = jr({
12021
+ ), sn = [...ae, ...St], xn = jr({
12016
12022
  treeOoui: n
12017
12023
  });
12018
12024
  try {
@@ -12025,7 +12031,7 @@ const vd = zt(rb), ob = qt, sb = (t) => {
12025
12031
  } catch (Xt) {
12026
12032
  console.error(Xt);
12027
12033
  }
12028
- return Ve.current = [...sn], fe([...sn]), Se && xe(pt.map((Xt) => Xt.id)), xt;
12034
+ return Ve.current = [...sn], fe([...sn]), Se && xe(pt.map((Xt) => Xt.id)), St;
12029
12035
  },
12030
12036
  [
12031
12037
  r,
@@ -12046,23 +12052,23 @@ const vd = zt(rb), ob = qt, sb = (t) => {
12046
12052
  searchValues: F,
12047
12053
  selectedRowKeys: _e,
12048
12054
  refresh: Gt,
12049
- onRowStatus: _t,
12055
+ onRowStatus: At,
12050
12056
  onGetFirstVisibleRowIndex: Oe,
12051
12057
  setTreeFirstVisibleRow: T,
12052
12058
  onRowHasBeenSelected: dn,
12053
- onSearchFilterClear: yt,
12054
- onSearchFilterSubmit: Ct,
12059
+ onSearchFilterClear: vt,
12060
+ onSearchFilterSubmit: xt,
12055
12061
  onSideSearchFilterClose: Vt,
12056
12062
  onSideSearchFilterSubmit: Fn,
12057
12063
  totalRowsLoading: oe,
12058
12064
  totalRows: W,
12059
- onRowStyle: Tt,
12065
+ onRowStyle: _t,
12060
12066
  results: ae,
12061
12067
  onRequestPageChange: Rt,
12062
12068
  treeIsLoading: b,
12063
12069
  selectAllRecords: at,
12064
12070
  onHeaderCheckboxClick: mn,
12065
- headerCheckboxState: vt,
12071
+ headerCheckboxState: bt,
12066
12072
  currentPage: L,
12067
12073
  limit: se,
12068
12074
  order: z,
@@ -12376,11 +12382,11 @@ function ub(t, e) {
12376
12382
  return V.map((qe) => ({
12377
12383
  ...qe,
12378
12384
  isSortable: Oe ? !1 : qe.isSortable,
12379
- render: (Tt, _t) => /* @__PURE__ */ s(
12385
+ render: (_t, At) => /* @__PURE__ */ s(
12380
12386
  Jo,
12381
12387
  {
12382
- value: Tt,
12383
- record: _t,
12388
+ value: _t,
12389
+ record: At,
12384
12390
  column: qe,
12385
12391
  isFieldLoading: Ie
12386
12392
  }
@@ -12840,7 +12846,7 @@ const bd = zt(ub), { useToken: fb } = ot, wd = ({
12840
12846
  P || []
12841
12847
  ), [re, W] = E(!1), [ue, ae] = E(!0), [fe, ce] = E(), Ee = S(() => {
12842
12848
  ce(n), c();
12843
- }, [n, c, ce]), pe = J(() => !i || i.length === 0 ? (n == null ? void 0 : n.fields) || {} : i.reduce((yt, Ct) => ({ ...yt, ...Ct.fields || {} }), {}), [i, n]), [Me, We] = E(
12849
+ }, [n, c, ce]), pe = J(() => !i || i.length === 0 ? (n == null ? void 0 : n.fields) || {} : i.reduce((vt, xt) => ({ ...vt, ...xt.fields || {} }), {}), [i, n]), [Me, We] = E(
12844
12850
  fc(P || [], pe)
12845
12851
  ), [me, we] = E(0), [Ve, Be] = E(void 0), [Ge, Ie] = E(), [Le, ze] = E(qn), [Re, He] = E(
12846
12852
  F
@@ -12850,9 +12856,9 @@ const bd = zt(ub), { useToken: fb } = ot, wd = ({
12850
12856
  M || 1
12851
12857
  ), [Z, q] = E(null), [ee, le] = E([]), [Ce, _e] = E(
12852
12858
  $ ?? !1
12853
- ), [Ae, $e] = E(0), [Oe, qe] = E({ fn: void 0 }), Tt = S(
12854
- (yt) => {
12855
- qe({ fn: yt });
12859
+ ), [Ae, $e] = E(0), [Oe, qe] = E({ fn: void 0 }), _t = S(
12860
+ (vt) => {
12861
+ qe({ fn: vt });
12856
12862
  },
12857
12863
  []
12858
12864
  );
@@ -12863,19 +12869,19 @@ const bd = zt(ub), { useToken: fb } = ot, wd = ({
12863
12869
  }, [O]), he(() => {
12864
12870
  i.length === 1 ? ce(i[0]) : i.length > 1 && ce(
12865
12871
  i.filter(
12866
- (yt) => yt.view_id !== n.view_id
12872
+ (vt) => vt.view_id !== n.view_id
12867
12873
  )[0]
12868
12874
  );
12869
12875
  }, [i]), he(() => {
12870
12876
  (fe == null ? void 0 : fe.view_id) === n.view_id && i.length > 1 && ce(
12871
12877
  i.filter(
12872
- (yt) => yt.view_id !== n.view_id
12878
+ (vt) => vt.view_id !== n.view_id
12873
12879
  )[0]
12874
12880
  );
12875
12881
  }, [n]);
12876
- const _t = async () => {
12877
- var yt;
12878
- return await ((yt = a.current) == null ? void 0 : yt.submitForm());
12882
+ const At = async () => {
12883
+ var vt;
12884
+ return await ((vt = a.current) == null ? void 0 : vt.submitForm());
12879
12885
  };
12880
12886
  return /* @__PURE__ */ s(
12881
12887
  Qt.Provider,
@@ -12891,7 +12897,7 @@ const bd = zt(ub), { useToken: fb } = ot, wd = ({
12891
12897
  setFormHasChanges: B,
12892
12898
  formRef: a,
12893
12899
  viewRef: d,
12894
- onFormSave: _t,
12900
+ onFormSave: At,
12895
12901
  onNewClicked: Ee,
12896
12902
  currentId: l,
12897
12903
  setCurrentId: f,
@@ -12954,7 +12960,7 @@ const bd = zt(ub), { useToken: fb } = ot, wd = ({
12954
12960
  commentCount: Ae,
12955
12961
  setCommentCount: $e,
12956
12962
  refreshComments: Oe.fn,
12957
- setRefreshComments: Tt,
12963
+ setRefreshComments: _t,
12958
12964
  permissions: R,
12959
12965
  permissionsLoading: I,
12960
12966
  permissionsError: k
@@ -13326,8 +13332,8 @@ const bd = zt(ub), { useToken: fb } = ot, wd = ({
13326
13332
  ]
13327
13333
  }
13328
13334
  ),
13329
- !l && /* @__PURE__ */ s("div", { style: { padding: 10 }, children: /* @__PURE__ */ s(It, { children: n }) }),
13330
- l && /* @__PURE__ */ s(It, { children: n })
13335
+ !l && /* @__PURE__ */ s("div", { style: { padding: 10 }, children: /* @__PURE__ */ s(yt, { children: n }) }),
13336
+ l && /* @__PURE__ */ s(yt, { children: n })
13331
13337
  ]
13332
13338
  }
13333
13339
  );
@@ -13421,7 +13427,7 @@ const bd = zt(ub), { useToken: fb } = ot, wd = ({
13421
13427
  cancelRequest: d
13422
13428
  };
13423
13429
  }, xd = (t) => {
13424
- const { model: e, view_id: n, fixedHeight: r, autoRefresh: o, actionDomain: i } = t, [a, d] = E(), c = Q(null), l = Q(null), { isActive: f } = Yt(), u = Er(), m = bt(() => Ul(i || []), [i]), [p, g] = ke(
13430
+ const { model: e, view_id: n, fixedHeight: r, autoRefresh: o, actionDomain: i } = t, [a, d] = E(), c = Q(null), l = Q(null), { isActive: f } = Yt(), u = Er(), m = wt(() => Ul(i || []), [i]), [p, g] = ke(
13425
13431
  K.getHandler().search
13426
13432
  );
13427
13433
  he(() => () => {
@@ -13629,15 +13635,15 @@ function xb(t) {
13629
13635
  }
13630
13636
  const Sd = nt(xb), { useToken: Sb } = ot, Tb = 3 * 1e3, _b = (t) => {
13631
13637
  const { ooui: e } = t, { refreshCounter: n } = Qr(), r = e.actionId !== void 0, o = e.actionField !== void 0;
13632
- return /* @__PURE__ */ s(tt, { ooui: e, children: r || o ? /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s(Ib, { ooui: e }, n) }) : /* @__PURE__ */ s(Ab, { ooui: e }, n) });
13638
+ return /* @__PURE__ */ s(tt, { ooui: e, children: r || o ? /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(Ib, { ooui: e }, n) }) : /* @__PURE__ */ s(Ab, { ooui: e }, n) });
13633
13639
  }, Ab = (t) => {
13634
13640
  var T;
13635
13641
  const { token: e } = Sb(), { ooui: n, value: r } = t, { locale: o } = De(), { getContext: i } = Qr(), [a, d] = E(n.icon), [c, l] = E(n.color), [f, u] = E(null), [m, p] = E(!1), [g, h] = ke(
13636
13642
  K.getHandler().parseCondition
13637
13643
  ), { fetchReferenceValues: y } = Cb({
13638
13644
  context: i == null ? void 0 : i()
13639
- }), v = St(
13640
- wt.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
13645
+ }), v = Tt(
13646
+ Ct.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
13641
13647
  );
13642
13648
  he(() => {
13643
13649
  async function A(O, D) {
@@ -13953,7 +13959,7 @@ const Sd = nt(xb), { useToken: Sb } = ot, Tb = 3 * 1e3, _b = (t) => {
13953
13959
  ) }) });
13954
13960
  }, Db = (t) => {
13955
13961
  const { ooui: e } = t;
13956
- return /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s(tt, { ...t, children: /* @__PURE__ */ s(Mb, { ...t, ooui: e }) }) });
13962
+ return /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(tt, { ...t, children: /* @__PURE__ */ s(Mb, { ...t, ooui: e }) }) });
13957
13963
  }, Mb = (t) => {
13958
13964
  var u, m, p;
13959
13965
  const { value: e, ooui: n } = t, r = Ne(
@@ -14310,8 +14316,8 @@ const Vb = (t) => {
14310
14316
  }, Yb = (t) => t.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), wi = (t) => {
14311
14317
  const { container: e, responsiveBehaviour: n } = t, { rows: r } = e;
14312
14318
  let { columns: o } = e;
14313
- const i = St(
14314
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
14319
+ const i = Tt(
14320
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
14315
14321
  ), a = Yb(r);
14316
14322
  a < o && (o = a);
14317
14323
  let d = !1, c = [];
@@ -14521,9 +14527,9 @@ function Zb(t, e) {
14521
14527
  } = Qb();
14522
14528
  en(e, () => ({
14523
14529
  submitForm: Xt,
14524
- getFields: Tt,
14530
+ getFields: _t,
14525
14531
  getValues: at,
14526
- getPlainValues: _t,
14532
+ getPlainValues: At,
14527
14533
  getContext: Vt,
14528
14534
  fetchValues: Xe,
14529
14535
  cancelUnsavedChanges: mt,
@@ -14559,11 +14565,11 @@ function Zb(t, e) {
14559
14565
  }, $e = (be) => {
14560
14566
  me == null || me(!1), f == null || f(be);
14561
14567
  }, Oe = S(() => r || ye.current, [r]), qe = r || ye.current;
14562
- function Tt() {
14568
+ function _t() {
14563
14569
  return V;
14564
14570
  }
14565
- function _t() {
14566
- const be = at(), Te = Tt(), Pe = {};
14571
+ function At() {
14572
+ const be = at(), Te = _t(), Pe = {};
14567
14573
  return Object.keys(be).forEach((Ue) => {
14568
14574
  const Ze = be[Ue];
14569
14575
  Te[Ue] && Te[Ue].type === "many2one" && Ze && Array.isArray(Ze) && Ze.length === 2 ? Pe[Ue] = Ze[0] : Te[Ue] && (Te[Ue].type === "one2many" || Te[Ue].type === "many2many") && Ze && Ze.items ? Pe[Ue] = Ze.items.filter((Ot) => Ot.operation !== "pendingRemove").map((Ot) => Ot.id) : Pe[Ue] = Ze;
@@ -14572,15 +14578,15 @@ function Zb(t, e) {
14572
14578
  ...Pe
14573
14579
  };
14574
14580
  }
14575
- function yt() {
14576
- const be = _t(), Te = pe == null ? void 0 : pe();
14581
+ function vt() {
14582
+ const be = At(), Te = pe == null ? void 0 : pe();
14577
14583
  return Te ? {
14578
14584
  ...be,
14579
14585
  parent: Te
14580
14586
  // Keep parent values separately in case you need them
14581
14587
  } : be;
14582
14588
  }
14583
- function Ct() {
14589
+ function xt() {
14584
14590
  const be = {
14585
14591
  ...Qe(V)
14586
14592
  };
@@ -14628,7 +14634,7 @@ function Zb(t, e) {
14628
14634
  for (const Te in be)
14629
14635
  be[Te] === void 0 && delete be[Te];
14630
14636
  return be;
14631
- }, [Qe, Gt, V]), vt = S(() => {
14637
+ }, [Qe, Gt, V]), bt = S(() => {
14632
14638
  Me.current && (O == null || O()), me == null || me(!1), i == null || i({ id: Oe(), values: at() });
14633
14639
  }, [
14634
14640
  Oe,
@@ -14652,7 +14658,7 @@ function Zb(t, e) {
14652
14658
  action_id: -1,
14653
14659
  action_type: "ir.actions.act_window",
14654
14660
  readOnly: u
14655
- }), vt == null || vt();
14661
+ }), bt == null || bt();
14656
14662
  }, [
14657
14663
  Se,
14658
14664
  qe,
@@ -14662,10 +14668,10 @@ function Zb(t, e) {
14662
14668
  Ie,
14663
14669
  o,
14664
14670
  h,
14665
- vt,
14671
+ bt,
14666
14672
  u
14667
14673
  ]), cn = (be, Te) => {
14668
- xt({
14674
+ St({
14669
14675
  values: {
14670
14676
  ...Hn($.getFieldsValue(!0), V),
14671
14677
  [be]: Te
@@ -14700,7 +14706,7 @@ function Zb(t, e) {
14700
14706
  Be == null || Be(!0), R(void 0), Ce(), be != null && be.fields ? (Pe = be.fields, Ue = be.arch) : (Pe = V, Ue = j), g && (be == null ? void 0 : be.forceRefresh) !== !0 ? Te = g : { values: Te, defaultGetCalled: Ze } = await sn({
14701
14707
  fields: Pe,
14702
14708
  arch: Ue
14703
- }), C && (Te = { ...Ul(C), ...Te }), de.current = Hn(Te, Pe), ie.current === null && (ie.current = Hn(Te, Pe)), xt({
14709
+ }), C && (Te = { ...Ul(C), ...Te }), de.current = Hn(Te, Pe), ie.current === null && (ie.current = Hn(Te, Pe)), St({
14704
14710
  values: Te,
14705
14711
  fields: Pe,
14706
14712
  reset: !0,
@@ -14710,12 +14716,12 @@ function Zb(t, e) {
14710
14716
  Rt() ? _r({
14711
14717
  t: D,
14712
14718
  onOk: () => {
14713
- vt == null || vt(), be(!0);
14719
+ bt == null || bt(), be(!0);
14714
14720
  },
14715
14721
  onCancel: () => {
14716
14722
  be(!1);
14717
14723
  }
14718
- }) : (vt == null || vt(), be(!0));
14724
+ }) : (bt == null || bt(), be(!0));
14719
14725
  }), pt = async () => {
14720
14726
  if (c) {
14721
14727
  const be = await K.getHandler().getActionStringForModel(n);
@@ -14730,7 +14736,7 @@ function Zb(t, e) {
14730
14736
  id: o,
14731
14737
  context: b
14732
14738
  });
14733
- }, xt = S(
14739
+ }, St = S(
14734
14740
  ({
14735
14741
  values: be,
14736
14742
  fields: Te,
@@ -14809,10 +14815,10 @@ function Zb(t, e) {
14809
14815
  });
14810
14816
  ye.current = Ue, de.current = Pe;
14811
14817
  }
14812
- y && await y([Oe()]), !v && Te && (Ae == null || Ae(Oe(), at(), Ct()));
14818
+ y && await y([Oe()]), !v && Te && (Ae == null || Ae(Oe(), at(), xt()));
14813
14819
  }, Zn = async (be) => {
14814
14820
  const { callOnSubmitSucceed: Te = !0 } = be || {};
14815
- !v && Te && (Ae == null || Ae(Oe(), at(), Ct()));
14821
+ !v && Te && (Ae == null || Ae(Oe(), at(), xt()));
14816
14822
  }, Xt = async (be) => {
14817
14823
  let Te = !1;
14818
14824
  const { callOnSubmitSucceed: Pe = !0 } = be || {};
@@ -14820,11 +14826,11 @@ function Zb(t, e) {
14820
14826
  W.current = !1, we == null || we(!1), Ae == null || Ae(
14821
14827
  Oe(),
14822
14828
  at(),
14823
- Ct(),
14829
+ xt(),
14824
14830
  ue.current
14825
14831
  ), ue.current = !1;
14826
14832
  const Ue = Oe();
14827
- return m && (ye.current = void 0, xt({
14833
+ return m && (ye.current = void 0, St({
14828
14834
  values: oe.current,
14829
14835
  fields: V,
14830
14836
  reset: !0
@@ -14836,7 +14842,7 @@ function Zb(t, e) {
14836
14842
  target: Ue,
14837
14843
  fields: V
14838
14844
  });
14839
- return Object.keys(Ze).length > 0 ? (W.current = !1, we == null || we(!1), Ae == null || Ae(Oe(), at(), Ct()), { succeed: !0, id: Oe() }) : (W.current = !1, we == null || we(!1), vt == null || vt(), { succeed: !0, id: Oe() });
14845
+ return Object.keys(Ze).length > 0 ? (W.current = !1, we == null || we(!1), Ae == null || Ae(Oe(), at(), xt()), { succeed: !0, id: Oe() }) : (W.current = !1, we == null || we(!1), bt == null || bt(), { succeed: !0, id: Oe() });
14840
14846
  }
14841
14847
  if (await Cn())
14842
14848
  return W.current = !1, Y({
@@ -14846,7 +14852,7 @@ function Zb(t, e) {
14846
14852
  }), { succeed: !1, id: Oe() };
14847
14853
  M(!0), me == null || me(!0);
14848
14854
  try {
14849
- p === "api" ? await xn(be) : await Zn(be), m && (ye.current = void 0, xt({
14855
+ p === "api" ? await xn(be) : await Zn(be), m && (ye.current = void 0, St({
14850
14856
  values: oe.current,
14851
14857
  fields: V,
14852
14858
  reset: !0
@@ -14976,7 +14982,7 @@ function Zb(t, e) {
14976
14982
  fields: V,
14977
14983
  arch: j,
14978
14984
  values: Ot
14979
- }), xt({
14985
+ }), St({
14980
14986
  values: Ot,
14981
14987
  fields: V,
14982
14988
  reset: !1
@@ -15011,7 +15017,7 @@ function Zb(t, e) {
15011
15017
  }), B(Ze);
15012
15018
  }
15013
15019
  };
15014
- async function At({
15020
+ async function It({
15015
15021
  action: be,
15016
15022
  context: Te
15017
15023
  }) {
@@ -15026,9 +15032,9 @@ function Zb(t, e) {
15026
15032
  }
15027
15033
  });
15028
15034
  if (typeof Pe == "object" && Pe !== null && Object.keys(Pe).length === 0 && v)
15029
- Ae == null || Ae(Oe(), at(), Ct());
15035
+ Ae == null || Ae(Oe(), at(), xt());
15030
15036
  else if (Pe.type && Pe.type === Mm)
15031
- Ae == null || Ae(Oe(), at(), Ct());
15037
+ Ae == null || Ae(Oe(), at(), xt());
15032
15038
  else if (Pe.type && Pe.type === Pm)
15033
15039
  ge == null || ge(Pe);
15034
15040
  else if (Pe.type) {
@@ -15050,7 +15056,7 @@ function Zb(t, e) {
15050
15056
  action: be,
15051
15057
  payload: Oe()
15052
15058
  });
15053
- Te.type && Te.type === "ir.actions.act_window_close" ? Ae == null || Ae(Oe(), at(), Ct()) : await Xe({ forceRefresh: !0 });
15059
+ Te.type && Te.type === "ir.actions.act_window_close" ? Ae == null || Ae(Oe(), at(), xt()) : await Xe({ forceRefresh: !0 });
15054
15060
  }
15055
15061
  async function er({
15056
15062
  action: be,
@@ -15080,7 +15086,7 @@ function Zb(t, e) {
15080
15086
  Me.current = !0, await Xe({ forceRefresh: !0 });
15081
15087
  }
15082
15088
  })) || {};
15083
- !w && Pe && (Ae == null || Ae(Oe(), at(), Ct()));
15089
+ !w && Pe && (Ae == null || Ae(Oe(), at(), xt()));
15084
15090
  }
15085
15091
  function tr() {
15086
15092
  Fr({ elementHasLostFocus: !0 });
@@ -15101,13 +15107,13 @@ function Zb(t, e) {
15101
15107
  de.current = {
15102
15108
  ...de.current,
15103
15109
  ...be
15104
- }, nn({ fields: V, arch: j, values: Te }), xt({
15110
+ }, nn({ fields: V, arch: j, values: Te }), St({
15105
15111
  values: Te,
15106
15112
  fields: V,
15107
15113
  reset: !1
15108
15114
  });
15109
15115
  },
15110
- [j, xt, V, Qe, nn]
15116
+ [j, St, V, Qe, nn]
15111
15117
  );
15112
15118
  Jb({
15113
15119
  model: n,
@@ -15124,7 +15130,7 @@ function Zb(t, e) {
15124
15130
  context: Pe
15125
15131
  }) {
15126
15132
  if (be === "cancel") {
15127
- vt == null || vt();
15133
+ bt == null || bt();
15128
15134
  return;
15129
15135
  }
15130
15136
  if (await Cn()) {
@@ -15139,7 +15145,7 @@ function Zb(t, e) {
15139
15145
  try {
15140
15146
  !u && (Rt() || Oe() === void 0) && (Ue = !0, nr(!0), p === "2many" ? (await xn({ callOnSubmitSucceed: !1 }), ue.current = !0) : await Xt({ callOnSubmitSucceed: !1 }));
15141
15147
  const Ze = ue.current ? tn() : {}, Ot = { ...Pe, ...Ze };
15142
- be === "object" ? await At({ action: Te, context: Ot }) : be === "workflow" ? await pn({ action: Te }) : be === "action" && await er({ action: Te, context: Ot }), Ue && nr(!1);
15148
+ be === "object" ? await It({ action: Te, context: Ot }) : be === "workflow" ? await pn({ action: Te }) : be === "action" && await er({ action: Te, context: Ot }), Ue && nr(!1);
15143
15149
  } catch (Ze) {
15144
15150
  Ue && nr(!1), Y(Ze);
15145
15151
  }
@@ -15148,9 +15154,9 @@ function Zb(t, e) {
15148
15154
  Of,
15149
15155
  {
15150
15156
  getValues: at,
15151
- getPlainValues: _t,
15152
- getAllHierarchyValues: yt,
15153
- getFields: Tt,
15157
+ getPlainValues: At,
15158
+ getAllHierarchyValues: vt,
15159
+ getFields: _t,
15154
15160
  domain: C,
15155
15161
  activeId: qe,
15156
15162
  activeModel: n,
@@ -15453,7 +15459,7 @@ const Rr = zt(Zb), ew = (t) => {
15453
15459
  destroyOnClose: !0,
15454
15460
  onCancel: () => i == null ? void 0 : i(),
15455
15461
  maskClosable: !1,
15456
- children: /* @__PURE__ */ s(
15462
+ children: /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(
15457
15463
  Rr,
15458
15464
  {
15459
15465
  id: n || b,
@@ -15464,7 +15470,7 @@ const Rr = zt(Zb), ew = (t) => {
15464
15470
  ...c
15465
15471
  },
15466
15472
  `${l}-${n}-${v}-${b}-${C}-${x}-${r}`
15467
- )
15473
+ ) })
15468
15474
  }
15469
15475
  ),
15470
15476
  /* @__PURE__ */ s(
@@ -15549,7 +15555,7 @@ const Rr = zt(Zb), ew = (t) => {
15549
15555
  destroyOnClose: !0,
15550
15556
  maskClosable: !1,
15551
15557
  children: [
15552
- !x && /* @__PURE__ */ s(
15558
+ !x && /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(
15553
15559
  D,
15554
15560
  {
15555
15561
  formView: C,
@@ -15563,7 +15569,7 @@ const Rr = zt(Zb), ew = (t) => {
15563
15569
  onChangeSelectedRowKeys: u,
15564
15570
  filterType: "top"
15565
15571
  }
15566
- ),
15572
+ ) }),
15567
15573
  /* @__PURE__ */ s(Yr, {}),
15568
15574
  /* @__PURE__ */ s(dt, { justify: "end", children: /* @__PURE__ */ H(ht, { children: [
15569
15575
  /* @__PURE__ */ s(
@@ -15603,14 +15609,23 @@ const Rr = zt(Zb), ew = (t) => {
15603
15609
  ] });
15604
15610
  }, { defaultAlgorithm: nw, defaultSeed: rw } = ot, _d = nw(rw), ow = (t) => {
15605
15611
  const { ooui: e } = t, { required: n } = e;
15606
- return /* @__PURE__ */ s(tt, { required: n, type: "array", validator: async (o, i) => {
15607
- if (!i)
15608
- throw new Error();
15609
- if (!Array.isArray(i))
15610
- throw new Error();
15611
- if (Array.isArray(i) && !i[0])
15612
- throw new Error();
15613
- }, ...t, children: /* @__PURE__ */ s(Ad, { ooui: e }) });
15612
+ return /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(
15613
+ tt,
15614
+ {
15615
+ required: n,
15616
+ type: "array",
15617
+ validator: async (o, i) => {
15618
+ if (!i)
15619
+ throw new Error();
15620
+ if (!Array.isArray(i))
15621
+ throw new Error();
15622
+ if (Array.isArray(i) && !i[0])
15623
+ throw new Error();
15624
+ },
15625
+ ...t,
15626
+ children: /* @__PURE__ */ s(Ad, { ooui: e })
15627
+ }
15628
+ ) });
15614
15629
  }, Ad = (t) => {
15615
15630
  const { value: e, onChange: n, ooui: r } = t, {
15616
15631
  required: o,
@@ -15710,10 +15725,10 @@ const Rr = zt(Zb), ew = (t) => {
15710
15725
  async function ye(W) {
15711
15726
  W.keyCode === 13 ? (W.preventDefault(), W.stopPropagation(), await z()) : W.code === "Backspace" && B !== void 0 && (W.preventDefault(), W.stopPropagation(), L([void 0, ""]));
15712
15727
  }
15713
- const de = o && !a ? sw : Mt, ie = St(
15714
- wt.FEATURE_MANY2ONE_DISABLE_FOLDER
15715
- ), se = St(
15716
- wt.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
15728
+ const de = o && !a ? sw : Mt, ie = Tt(
15729
+ Ct.FEATURE_MANY2ONE_DISABLE_FOLDER
15730
+ ), se = Tt(
15731
+ Ct.FEATURE_MANY2ONE_DISABLE_ARROW_MENU
15717
15732
  ), oe = J(() => {
15718
15733
  let W = !0;
15719
15734
  return ie === !0 && (W = !1), r.showFolder !== void 0 && (W = r.showFolder), W;
@@ -16945,7 +16960,7 @@ const fw = (t) => {
16945
16960
  };
16946
16961
  }, Pd = ({
16947
16962
  one2manyItems: t
16948
- }) => bt(() => t.filter((e) => e.operation !== "pendingRemove"), [t]), xi = zt(
16963
+ }) => wt(() => t.filter((e) => e.operation !== "pendingRemove"), [t]), xi = zt(
16949
16964
  ({
16950
16965
  formView: t,
16951
16966
  items: e,
@@ -17244,9 +17259,9 @@ const Vd = ({
17244
17259
  treeType: v,
17245
17260
  onChangeTreeType: b
17246
17261
  }) => {
17247
- const C = Q(null), x = l || C, w = St(
17248
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
17249
- ), _ = Q(), T = Q(t), [A, O] = E(0), [D, P] = E(), [M, F] = E(0), R = Q([]), [I, k] = E([]), [$, j] = E(!1), X = bt(() => t.length, [t]), {
17262
+ const C = Q(null), x = l || C, w = Tt(
17263
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
17264
+ ), _ = Q(), T = Q(t), [A, O] = E(0), [D, P] = E(), [M, F] = E(0), R = Q([]), [I, k] = E([]), [$, j] = E(!1), X = wt(() => t.length, [t]), {
17250
17265
  columns: V,
17251
17266
  strings: B,
17252
17267
  colorsForResults: N,
@@ -17641,8 +17656,8 @@ const Vd = ({
17641
17656
  xe !== "legacy" && a !== "legacy" && (d == null || d(xe), g(xe));
17642
17657
  },
17643
17658
  [a, g, d]
17644
- ), Ve = St(
17645
- wt.FEATURE_ONE2MANY_ENABLE_NEW_TABLE
17659
+ ), Ve = Tt(
17660
+ Ct.FEATURE_ONE2MANY_ENABLE_NEW_TABLE
17646
17661
  ), { openAction: Be } = Qn(), Ge = J(() => l.filter((xe) => Wt(xe.id)).map((xe) => xe.id), [l]), Ie = J(() => Ge.length > 0, [Ge]), Le = S(() => {
17647
17662
  var xe, je;
17648
17663
  Ie && Be({
@@ -17869,8 +17884,8 @@ const Vd = ({
17869
17884
  }) => {
17870
17885
  const v = Q(), b = c || v, C = Q({}), x = Q(), w = Q(), _ = Q(t), { t: T } = De(), A = rn(
17871
17886
  kt.FEATURE_MANY2ONE_SORT
17872
- ), O = St(
17873
- wt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
17887
+ ), O = Tt(
17888
+ Ct.FEATURE_MANY2ONE_SELECTION_TO_LAZY
17874
17889
  );
17875
17890
  Je(() => {
17876
17891
  var j;
@@ -17892,7 +17907,7 @@ const Vd = ({
17892
17907
  (N = b == null ? void 0 : b.current) == null || N.updateRows(B);
17893
17908
  })(), (j = b == null ? void 0 : b.current) == null || j.unselectAll();
17894
17909
  }, [t, o, i]);
17895
- const D = bt(() => t.length, [t]), P = bt(() => Ks(
17910
+ const D = wt(() => t.length, [t]), P = wt(() => Ks(
17896
17911
  o,
17897
17912
  {
17898
17913
  ...zo
@@ -18322,8 +18337,8 @@ const Vd = ({
18322
18337
  }
18323
18338
  ) });
18324
18339
  }, Iw = (t) => {
18325
- const { ooui: e, value: n, userTreeTypePreferenceRef: r, onUserSelectTreeType: o } = t, { treeType: i, setTreeType: a } = Rc(), d = St(
18326
- wt.FEATURE_ONE2MANY_ENABLE_NEW_TABLE
18340
+ const { ooui: e, value: n, userTreeTypePreferenceRef: r, onUserSelectTreeType: o } = t, { treeType: i, setTreeType: a } = Rc(), d = Tt(
18341
+ Ct.FEATURE_ONE2MANY_ENABLE_NEW_TABLE
18327
18342
  );
18328
18343
  if (Je(() => {
18329
18344
  if (d) {
@@ -18880,8 +18895,8 @@ const { useToken: Nw } = ot, { TextArea: ks } = Mt, kw = (t) => {
18880
18895
  );
18881
18896
  }, qw = (t) => {
18882
18897
  const { ooui: e, showTime: n = !1 } = t, { required: r, readOnly: o = !1, timezone: i } = e;
18883
- return St(
18884
- wt.FEATURE_DATE_USE_MASKED_INPUT
18898
+ return Tt(
18899
+ Ct.FEATURE_DATE_USE_MASKED_INPUT
18885
18900
  ) ? /* @__PURE__ */ s(tt, { required: r, ...t, children: /* @__PURE__ */ s(
18886
18901
  Sl,
18887
18902
  {
@@ -18911,8 +18926,8 @@ const { useToken: Nw } = ot, { TextArea: ks } = Mt, kw = (t) => {
18911
18926
  const { ooui: e } = t;
18912
18927
  return /* @__PURE__ */ s(tt, { ...t, children: /* @__PURE__ */ s(Qw, { ooui: e }) });
18913
18928
  }, Qw = (t) => {
18914
- const { readOnly: e, required: n } = t.ooui, r = St(
18915
- wt.FEATURE_DATE_USE_MASKED_INPUT
18929
+ const { readOnly: e, required: n } = t.ooui, r = Tt(
18930
+ Ct.FEATURE_DATE_USE_MASKED_INPUT
18916
18931
  ), o = (a) => {
18917
18932
  t.onChange && t.onChange(a ?? void 0);
18918
18933
  };
@@ -18938,7 +18953,7 @@ const { useToken: Nw } = ot, { TextArea: ks } = Mt, kw = (t) => {
18938
18953
  );
18939
18954
  }, Xw = (t) => {
18940
18955
  const { ooui: e } = t, { required: n } = e;
18941
- return /* @__PURE__ */ s(tt, { required: n, ...t, children: /* @__PURE__ */ s(Zw, { ooui: e }) });
18956
+ return /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(tt, { required: n, ...t, children: /* @__PURE__ */ s(Zw, { ooui: e }) }) });
18942
18957
  }, Zw = (t) => {
18943
18958
  const { value: e, onChange: n, ooui: r } = t, { required: o, selectionValues: i, readOnly: a, domain: d } = r, c = e == null ? void 0 : e.split(","), [l, f] = E([]), [u, m] = E();
18944
18959
  return he(() => {
@@ -19937,7 +19952,7 @@ const h0 = {
19937
19952
  he(() => {
19938
19953
  n && V(!0);
19939
19954
  }, [n]);
19940
- const L = bt(
19955
+ const L = wt(
19941
19956
  () => bn(P || [], i),
19942
19957
  [i, P]
19943
19958
  ), U = lt(async () => {
@@ -20134,7 +20149,7 @@ const h0 = {
20134
20149
  },
20135
20150
  children: /* @__PURE__ */ s(ct, { size: "small" })
20136
20151
  }
20137
- ) : /* @__PURE__ */ s(It, { children: /* @__PURE__ */ H("div", { style: c, children: [
20152
+ ) : /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ H("div", { style: c, children: [
20138
20153
  /* @__PURE__ */ H("div", { style: w0, children: [
20139
20154
  /* @__PURE__ */ s("div", { style: C0, children: /* @__PURE__ */ s(Ba, { style: l, children: u }) }),
20140
20155
  /* @__PURE__ */ s(
@@ -20161,7 +20176,7 @@ const h0 = {
20161
20176
  {
20162
20177
  max: { count: 5, style: { backgroundColor: a.colorPrimary } },
20163
20178
  size: 24,
20164
- children: t.map((m) => /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s(Pt, { title: m.name, children: /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(Eo, { userName: m.name, size: 24 }) }) }) }, m.id))
20179
+ children: t.map((m) => /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(Pt, { title: m.name, children: /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(Eo, { userName: m.name, size: 24 }) }) }) }, m.id))
20165
20180
  }
20166
20181
  )
20167
20182
  ] })
@@ -20221,7 +20236,7 @@ const h0 = {
20221
20236
  ), f = S(() => {
20222
20237
  e(t.tempId);
20223
20238
  }, [e, t.tempId]);
20224
- return /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s("div", { style: I0, children: /* @__PURE__ */ H("div", { style: E0, children: [
20239
+ return /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s("div", { style: I0, children: /* @__PURE__ */ H("div", { style: E0, children: [
20225
20240
  /* @__PURE__ */ H("div", { style: d, children: [
20226
20241
  o && /* @__PURE__ */ H(Fe, { children: [
20227
20242
  /* @__PURE__ */ s(Zt, { spin: !0, style: Ha }),
@@ -20328,7 +20343,7 @@ const h0 = {
20328
20343
  },
20329
20344
  ...i
20330
20345
  };
20331
- return /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s("div", { ref: e, style: a ?? m, children: /* @__PURE__ */ s(
20346
+ return /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s("div", { ref: e, style: a ?? m, children: /* @__PURE__ */ s(
20332
20347
  ff,
20333
20348
  {
20334
20349
  remarkPlugins: [mf],
@@ -20348,7 +20363,7 @@ const M0 = {
20348
20363
  comment: t,
20349
20364
  model: e,
20350
20365
  resourceId: n
20351
- }) => /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s(Dt, { children: /* @__PURE__ */ s(
20366
+ }) => /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(Dt, { children: /* @__PURE__ */ s(
20352
20367
  Dt.Item,
20353
20368
  {
20354
20369
  name: `comment_${t.id}`,
@@ -20523,7 +20538,7 @@ const M0 = {
20523
20538
  ),
20524
20539
  /* @__PURE__ */ s(fo, { style: ja, children: h })
20525
20540
  ] }) }), j = /* @__PURE__ */ s(Pt, { title: y, children: /* @__PURE__ */ s(fo, { style: O, children: v }) });
20526
- return /* @__PURE__ */ s(It, { children: /* @__PURE__ */ H(Fe, { children: [
20541
+ return /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ H(Fe, { children: [
20527
20542
  r && o && /* @__PURE__ */ H("div", { style: P0, children: [
20528
20543
  /* @__PURE__ */ s("div", { style: x }),
20529
20544
  /* @__PURE__ */ s(fo, { style: w, children: o }),
@@ -20838,7 +20853,7 @@ const H0 = nt(Gd), { Title: j0, Text: U0 } = Jt, { useToken: W0 } = ot, z0 = (t)
20838
20853
  transition: { type: "spring", stiffness: 300, damping: 30 },
20839
20854
  style: Ee,
20840
20855
  children: [
20841
- /* @__PURE__ */ s(It, { children: /* @__PURE__ */ H("div", { style: pe, children: [
20856
+ /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ H("div", { style: pe, children: [
20842
20857
  /* @__PURE__ */ H("div", { style: J0, children: [
20843
20858
  /* @__PURE__ */ s(j0, { level: 5, style: K0, children: _("comments") }),
20844
20859
  /* @__PURE__ */ s(Pt, { title: _("refresh"), children: /* @__PURE__ */ s(
@@ -20863,7 +20878,7 @@ const H0 = nt(Gd), { Title: j0, Text: U0 } = Jt, { useToken: W0 } = ot, z0 = (t)
20863
20878
  }
20864
20879
  )
20865
20880
  ] }) }),
20866
- b && /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s(
20881
+ b && /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(
20867
20882
  _0,
20868
20883
  {
20869
20884
  participants: p,
@@ -20874,7 +20889,7 @@ const H0 = nt(Gd), { Title: j0, Text: U0 } = Jt, { useToken: W0 } = ot, z0 = (t)
20874
20889
  onToggleMute: ze
20875
20890
  }
20876
20891
  ) }),
20877
- /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s("div", { ref: de, style: ce, children: r && n.length === 0 ? /* @__PURE__ */ s("div", { style: Wa, children: /* @__PURE__ */ s(ct, {}) }) : n.length === 0 ? /* @__PURE__ */ s("div", { style: Wa, children: /* @__PURE__ */ s(
20892
+ /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s("div", { ref: de, style: ce, children: r && n.length === 0 ? /* @__PURE__ */ s("div", { style: Wa, children: /* @__PURE__ */ s(ct, {}) }) : n.length === 0 ? /* @__PURE__ */ s("div", { style: Wa, children: /* @__PURE__ */ s(
20878
20893
  mr,
20879
20894
  {
20880
20895
  description: _("noComments"),
@@ -20930,7 +20945,7 @@ const H0 = nt(Gd), { Title: j0, Text: U0 } = Jt, { useToken: W0 } = ot, z0 = (t)
20930
20945
  )),
20931
20946
  /* @__PURE__ */ s("div", { ref: ne })
20932
20947
  ] }) }) }),
20933
- m && /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s("div", { style: Me, children: /* @__PURE__ */ H(
20948
+ m && /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s("div", { style: Me, children: /* @__PURE__ */ H(
20934
20949
  "div",
20935
20950
  {
20936
20951
  style: { display: "flex", gap: 8, alignItems: "flex-end" },
@@ -21532,7 +21547,7 @@ const aC = ({
21532
21547
  }), F = {
21533
21548
  opacity: M || u ? 0 : 1,
21534
21549
  cursor: "grab"
21535
- }, { visibleButtons: R, widgetMap: I } = bt(() => {
21550
+ }, { visibleButtons: R, widgetMap: I } = wt(() => {
21536
21551
  const U = new pu(n).parse(e).rows.flat(), z = U.filter(
21537
21552
  (ne) => ne instanceof cl && !ne.invisible
21538
21553
  ), G = /* @__PURE__ */ new Map();
@@ -21542,7 +21557,7 @@ const aC = ({
21542
21557
  visibleButtons: z,
21543
21558
  widgetMap: G
21544
21559
  };
21545
- }, [n, e]), k = bt(() => n.card_fields.filter((N) => {
21560
+ }, [n, e]), k = wt(() => n.card_fields.filter((N) => {
21546
21561
  const L = I.get(N.id);
21547
21562
  return !L || !L.invisible;
21548
21563
  }), [n.card_fields, I]), $ = S(
@@ -21634,7 +21649,7 @@ const aC = ({
21634
21649
  f,
21635
21650
  x
21636
21651
  ]
21637
- ), X = bt(() => R.reduce(
21652
+ ), X = wt(() => R.reduce(
21638
21653
  (N, L) => (N[L.id] = (U) => j(U, L), N),
21639
21654
  {}
21640
21655
  ), [R, j]), V = S(
@@ -21678,7 +21693,7 @@ const aC = ({
21678
21693
  children: [
21679
21694
  i && /* @__PURE__ */ s(fC, { $color: i }),
21680
21695
  a && /* @__PURE__ */ s(mC, { $color: a }),
21681
- /* @__PURE__ */ H(It, { children: [
21696
+ /* @__PURE__ */ H(yt, { children: [
21682
21697
  /* @__PURE__ */ s("div", { style: { marginBottom: "8px" }, children: k.map(
21683
21698
  (N, L) => $(N, L === 0)
21684
21699
  ) }),
@@ -21723,7 +21738,7 @@ const aC = ({
21723
21738
  he(() => () => {
21724
21739
  j(), V(), N();
21725
21740
  }, []);
21726
- const L = bt(() => {
21741
+ const L = wt(() => {
21727
21742
  if (!(l != null && l.aggregations))
21728
21743
  return;
21729
21744
  const te = l.aggregations;
@@ -21733,7 +21748,7 @@ const aC = ({
21733
21748
  return Object.keys(te).forEach((de) => {
21734
21749
  ye[de] = ["sum"];
21735
21750
  }), ye;
21736
- }, [l == null ? void 0 : l.aggregations]), U = bt(() => {
21751
+ }, [l == null ? void 0 : l.aggregations]), U = wt(() => {
21737
21752
  if (!(l != null && l.column_field))
21738
21753
  return n;
21739
21754
  let te = o;
@@ -22304,7 +22319,7 @@ const aC = ({
22304
22319
  width: "100%",
22305
22320
  transform: `translateY(${Se.start}px)`
22306
22321
  },
22307
- children: /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s(
22322
+ children: /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(
22308
22323
  Jd,
22309
22324
  {
22310
22325
  color: G == null ? void 0 : G[ge.id],
@@ -22610,10 +22625,10 @@ const aC = ({
22610
22625
  k(Ce);
22611
22626
  const Oe = ee.rect;
22612
22627
  if (Oe) {
22613
- const qe = Oe.top + Oe.height / 2, yt = (q.activatorEvent && "clientY" in q.activatorEvent ? q.activatorEvent.clientY : 0) + q.delta.y < qe ? "above" : "below";
22614
- j(yt), X.current[_e] = {
22628
+ const qe = Oe.top + Oe.height / 2, vt = (q.activatorEvent && "clientY" in q.activatorEvent ? q.activatorEvent.clientY : 0) + q.delta.y < qe ? "above" : "below";
22629
+ j(vt), X.current[_e] = {
22615
22630
  recordId: Ce,
22616
- position: yt
22631
+ position: vt
22617
22632
  };
22618
22633
  }
22619
22634
  } else
@@ -22626,9 +22641,9 @@ const aC = ({
22626
22641
  if (qe) {
22627
22642
  if (M(qe.id), Ce !== le.id) {
22628
22643
  k(Ce);
22629
- const Tt = ee.rect;
22630
- if (Tt) {
22631
- const _t = Tt.top + Tt.height / 2, Vt = (q.activatorEvent && "clientY" in q.activatorEvent ? q.activatorEvent.clientY : 0) + q.delta.y < _t ? "above" : "below";
22644
+ const _t = ee.rect;
22645
+ if (_t) {
22646
+ const At = _t.top + _t.height / 2, Vt = (q.activatorEvent && "clientY" in q.activatorEvent ? q.activatorEvent.clientY : 0) + q.delta.y < At ? "above" : "below";
22632
22647
  j(Vt), X.current[qe.id] = {
22633
22648
  recordId: Ce,
22634
22649
  position: Vt
@@ -22748,12 +22763,12 @@ const aC = ({
22748
22763
  Ae();
22749
22764
  return;
22750
22765
  }
22751
- const Tt = Oe[f.column_field], _t = (Fn = f.fields) == null ? void 0 : Fn[f.column_field], yt = _t ? Un(Tt, _t, T) : null;
22752
- if (!yt) {
22766
+ const _t = Oe[f.column_field], At = (Fn = f.fields) == null ? void 0 : Fn[f.column_field], vt = At ? Un(_t, At, T) : null;
22767
+ if (!vt) {
22753
22768
  Ae();
22754
22769
  return;
22755
22770
  }
22756
- const Ct = yt.id === qe.id;
22771
+ const xt = vt.id === qe.id;
22757
22772
  let Vt = Ce, tn = _e;
22758
22773
  if (!Vt && qe) {
22759
22774
  const Qe = X.current[qe.id];
@@ -22761,7 +22776,7 @@ const aC = ({
22761
22776
  }
22762
22777
  Ae();
22763
22778
  try {
22764
- if (Ct) {
22779
+ if (xt) {
22765
22780
  if (Vt && tn) {
22766
22781
  const { prevId: dn, nextId: Cn } = pe(
22767
22782
  qe.id,
@@ -22786,19 +22801,19 @@ const aC = ({
22786
22801
  return;
22787
22802
  }
22788
22803
  const Qe = Un(
22789
- Tt,
22790
22804
  _t,
22805
+ At,
22791
22806
  T
22792
22807
  ), at = Un(
22793
22808
  qe.originalValue,
22794
- _t,
22809
+ At,
22795
22810
  T
22796
- ), vt = ((Rt = f.on_change_column) == null ? void 0 : Rt.method) || "on_change_column";
22811
+ ), bt = ((Rt = f.on_change_column) == null ? void 0 : Rt.method) || "on_change_column";
22797
22812
  if (!(Qe != null && Qe.id) || !(at != null && at.id) || parseInt(Qe == null ? void 0 : Qe.id) === parseInt(at == null ? void 0 : at.id))
22798
22813
  return;
22799
22814
  const mn = await se({
22800
22815
  model: r,
22801
- action: vt,
22816
+ action: bt,
22802
22817
  payload: [
22803
22818
  [$e],
22804
22819
  f.column_field,
@@ -22836,9 +22851,9 @@ const aC = ({
22836
22851
  ]
22837
22852
  });
22838
22853
  }
22839
- me(yt.id, qe.id);
22854
+ me(vt.id, qe.id);
22840
22855
  } catch (Qe) {
22841
- x && x(qe.id, yt.id), A(Qe);
22856
+ x && x(qe.id, vt.id), A(Qe);
22842
22857
  }
22843
22858
  },
22844
22859
  [
@@ -22870,26 +22885,26 @@ const aC = ({
22870
22885
  ee ? L.current[q] = ee : delete L.current[q], y(q, ee);
22871
22886
  },
22872
22887
  [y]
22873
- ), Re = bt(() => {
22888
+ ), Re = wt(() => {
22874
22889
  const q = {};
22875
22890
  return n.forEach((ee) => {
22876
22891
  q[ee.id] = (le) => {
22877
22892
  ze(ee.id, le);
22878
22893
  };
22879
22894
  }), q;
22880
- }, [n, ze]), He = bt(() => {
22895
+ }, [n, ze]), He = wt(() => {
22881
22896
  if (!b)
22882
22897
  return {};
22883
22898
  const q = {};
22884
22899
  return n.forEach((ee) => {
22885
22900
  q[ee.id] = () => b(ee);
22886
22901
  }), q;
22887
- }, [n, b]), xe = bt(() => {
22902
+ }, [n, b]), xe = wt(() => {
22888
22903
  const q = {};
22889
22904
  return de.forEach((ee) => {
22890
22905
  q[ee.id] = () => Ve(ee.id, "left");
22891
22906
  }), q;
22892
- }, [de, Ve]), je = bt(() => {
22907
+ }, [de, Ve]), je = wt(() => {
22893
22908
  const q = {};
22894
22909
  return de.forEach((ee) => {
22895
22910
  q[ee.id] = () => Ve(ee.id, "right");
@@ -22897,7 +22912,7 @@ const aC = ({
22897
22912
  }, [de, Ve]), Se = J(
22898
22913
  () => de.map((q) => ({ id: q.id, label: q.label })),
22899
22914
  [de]
22900
- ), ge = bt(() => {
22915
+ ), ge = wt(() => {
22901
22916
  const q = {};
22902
22917
  return de.forEach((ee) => {
22903
22918
  q[ee.id] = (le, Ce) => Be(ee.id, le, Ce);
@@ -22941,7 +22956,7 @@ const aC = ({
22941
22956
  overflowX: "auto",
22942
22957
  height: "100%"
22943
22958
  },
22944
- children: de.map((q, ee) => /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s(
22959
+ children: de.map((q, ee) => /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(
22945
22960
  RC,
22946
22961
  {
22947
22962
  ref: Re[q.id],
@@ -23247,7 +23262,7 @@ const aC = ({
23247
23262
  he(() => {
23248
23263
  m == null || m(P);
23249
23264
  }, [P, m]);
23250
- const V = bt(() => _ ? /* @__PURE__ */ s(
23265
+ const V = wt(() => _ ? /* @__PURE__ */ s(
23251
23266
  Ut,
23252
23267
  {
23253
23268
  message: C("error_parsing_kanban_view"),
@@ -23263,7 +23278,7 @@ const aC = ({
23263
23278
  type: "error",
23264
23279
  showIcon: !0
23265
23280
  }
23266
- ) : !x || P && D.length === 0 ? /* @__PURE__ */ s(ct, { size: "large" }) : /* @__PURE__ */ s(It, { children: /* @__PURE__ */ s(
23281
+ ) : !x || P && D.length === 0 ? /* @__PURE__ */ s(ct, { size: "large" }) : /* @__PURE__ */ s(yt, { children: /* @__PURE__ */ s(
23267
23282
  MC,
23268
23283
  {
23269
23284
  ref: R,
@@ -25370,7 +25385,7 @@ export {
25370
25385
  $b as ad,
25371
25386
  Pb as ae,
25372
25387
  ES as af,
25373
- wt as ag,
25388
+ Ct as ag,
25374
25389
  pb as ah,
25375
25390
  nC as ai,
25376
25391
  hb as aj,
@@ -25414,4 +25429,4 @@ export {
25414
25429
  Wm as y,
25415
25430
  KC as z
25416
25431
  };
25417
- //# sourceMappingURL=TabContent-964a4dca.mjs.map
25432
+ //# sourceMappingURL=TabContent-c7c80d27.mjs.map