@gisce/react-ooui 2.74.0-alpha.7 → 2.74.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,12 +3,12 @@ var kl = (e, t, n) => t in e ? Pl(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var is = (e, t, n) => (kl(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsx as s, jsxs as N, Fragment as oe } from "react/jsx-runtime";
5
5
  import It, { useContext as ae, useState as I, useEffect as le, useRef as q, memo as nt, useCallback as O, useMemo as Q, forwardRef as _t, useImperativeHandle as Dt, Fragment as En, createContext as Vl, createElement as Nl } from "react";
6
- import { Tooltip as Mt, theme as Qe, Typography as nn, Form as Et, Row as Ye, Col as Fe, Modal as xt, Button as qe, Dropdown as Ml, Menu as as, Spin as et, Divider as Ir, Space as it, Input as pt, Select as fn, Checkbox as qn, Alert as vt, Timeline as mi, message as Yn, Popover as $l, App as Ll, Progress as Hl, Avatar as pi, Tag as Fo, ColorPicker as hi, DatePicker as gi, TimePicker as Bl, InputNumber as Fr, Layout as yi, Badge as tr, Pagination as jl, Empty as vi, Statistic as Ul, Card as Ao, Tabs as bi, Radio as ls, Switch as Wl, Steps as cs, Carousel as Yl } from "antd";
6
+ import { Tooltip as Mt, theme as Xe, Typography as nn, Form as Et, Row as Ye, Col as Fe, Modal as xt, Button as qe, Dropdown as Ml, Menu as as, Spin as tt, Divider as Ir, Space as it, Input as ht, Select as fn, Checkbox as qn, Alert as bt, Timeline as mi, message as Yn, Popover as $l, App as Ll, Progress as Hl, Avatar as pi, Tag as Fo, ColorPicker as hi, DatePicker as gi, TimePicker as Bl, InputNumber as Fr, Layout as yi, Badge as tr, Pagination as jl, Empty as vi, Statistic as Ul, Card as Ao, Tabs as bi, Radio as ls, Switch as Wl, Steps as cs, Carousel as Yl } from "antd";
7
7
  import { Label as Dn, Field as lo, Tree as wi, Reference as Gl, Selection as _o, Many2one as Si, Boolean as Kl, parseContext as Zt, graphProcessor as Ci, graphFieldUtils as ql, parseContextFields as zl, parseDomainFields as Jl, Integer as co, SearchFieldTypes as Xt, SearchFilter as xi, parseGraph as Ti, Container as Ql, Form as Ii, transformDomainForChildWidget as Ro, Button as Xl } from "@gisce/ooui";
8
8
  import * as ds from "@ant-design/icons";
9
9
  import Fi, { QuestionCircleOutlined as Ai, ExclamationCircleOutlined as rn, LoadingOutlined as $t, DownOutlined as Ar, WarningOutlined as _i, CloseOutlined as Pn, CheckOutlined as nr, TranslationOutlined as Ri, FolderOpenOutlined as Oo, DownloadOutlined as Eo, ClearOutlined as _r, FormOutlined as zn, TableOutlined as Do, AreaChartOutlined as Zl, CalendarOutlined as ec, FileAddOutlined as Rr, CloseCircleFilled as tc, CopyOutlined as rr, FilterOutlined as Oi, DeleteOutlined as Po, InfoCircleOutlined as kn, ReloadOutlined as Or, ThunderboltOutlined as Er, PrinterOutlined as Dr, ExportOutlined as Ei, EnterOutlined as Pr, SearchOutlined as kr, UpOutlined as nc, PlusSquareOutlined as rc, MinusSquareOutlined as oc, StarFilled as sc, StarOutlined as ic, LeftOutlined as Di, RightOutlined as Pi, ApiOutlined as ac, AlignLeftOutlined as lc, EyeOutlined as cc, LinkOutlined as us, SaveOutlined as dc, EditOutlined as ki, PlusOutlined as uc, BorderOuterOutlined as fc, SettingOutlined as mc } from "@ant-design/icons";
10
10
  import { Interweave as Jn } from "interweave";
11
- import tt from "dayjs";
11
+ import Qe from "dayjs";
12
12
  import { default as kb } from "dayjs";
13
13
  import pc from "dayjs/plugin/advancedFormat";
14
14
  import hc from "dayjs/plugin/customParseFormat";
@@ -22,7 +22,7 @@ import { useLocale as ge, FormigaConfigProvider as Cc, mergeStrings as xc, Dropd
22
22
  import * as ms from "@tabler/icons-react";
23
23
  import { IconExternalLink as Ec, IconShare2 as Dc } from "@tabler/icons-react";
24
24
  import Pc from "antd/lib/input/TextArea";
25
- import gt from "styled-components";
25
+ import yt from "styled-components";
26
26
  import ko from "react-measure";
27
27
  import kc from "lodash/debounce";
28
28
  import { nanoid as Vo } from "nanoid";
@@ -127,7 +127,7 @@ function Bi(e) {
127
127
  var sd = { exports: {} };
128
128
  (function(e, t) {
129
129
  (function(n, r) {
130
- e.exports = r(tt);
130
+ e.exports = r(Qe);
131
131
  })(ln, function(n) {
132
132
  function r(i) {
133
133
  return i && typeof i == "object" && "default" in i ? i : { default: i };
@@ -152,7 +152,7 @@ var id = { exports: {} };
152
152
  var ad = { exports: {} };
153
153
  (function(e, t) {
154
154
  (function(n, r) {
155
- e.exports = r(tt);
155
+ e.exports = r(Qe);
156
156
  })(ln, function(n) {
157
157
  function r(i) {
158
158
  return i && typeof i == "object" && "default" in i ? i : { default: i };
@@ -163,15 +163,15 @@ var ad = { exports: {} };
163
163
  return o.default.locale(a, null, !0), a;
164
164
  });
165
165
  })(ad);
166
- tt.extend(pc);
167
- tt.extend(hc);
168
- tt.extend(gc);
169
- tt.extend(yc);
170
- tt.extend(vc);
171
- tt.extend(bc);
172
- tt.extend(wc);
173
- tt.extend(Sc);
174
- const { Text: ld, Title: cd } = nn, { useToken: dd } = Qe, ud = {
166
+ Qe.extend(pc);
167
+ Qe.extend(hc);
168
+ Qe.extend(gc);
169
+ Qe.extend(yc);
170
+ Qe.extend(vc);
171
+ Qe.extend(bc);
172
+ Qe.extend(wc);
173
+ Qe.extend(Sc);
174
+ const { Text: ld, Title: cd } = nn, { useToken: dd } = Xe, ud = {
175
175
  left: "justify-start",
176
176
  center: "justify-center",
177
177
  right: "justify-end"
@@ -184,9 +184,9 @@ const { Text: ld, Title: cd } = nn, { useToken: dd } = Qe, ud = {
184
184
  time: "HH:mm",
185
185
  datetime: "DD/MM/YYYY HH:mm"
186
186
  };
187
- m = u ? tt(u).format(
187
+ m = u ? Qe(u).format(
188
188
  v[t.fieldType]
189
- ) : "", t.humanDate ? u = u ? tt(u).fromNow() : "" : (u = m, m = "");
189
+ ) : "", t.humanDate ? u = u ? Qe(u).fromNow() : "" : (u = m, m = "");
190
190
  }
191
191
  const p = n || (i ? r ? "left" : "right" : "left"), { token: y } = dd(), g = l === void 0 ? ld : cd;
192
192
  return /* @__PURE__ */ N(
@@ -712,7 +712,7 @@ const ji = (e) => {
712
712
  p(!1), i();
713
713
  }
714
714
  function T() {
715
- return u ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ N(oe, { children: [
715
+ return u ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ N(oe, { children: [
716
716
  x(),
717
717
  /* @__PURE__ */ s(Ir, {}),
718
718
  /* @__PURE__ */ s(Ye, { justify: "end", children: /* @__PURE__ */ N(it, { children: [
@@ -755,7 +755,7 @@ const ji = (e) => {
755
755
  }
756
756
  );
757
757
  };
758
- function mt(e) {
758
+ function pt(e) {
759
759
  const { tooltip: t, ...n } = e;
760
760
  return /* @__PURE__ */ s(Mt, { title: t, children: /* @__PURE__ */ s(qe, { ...n }) });
761
761
  }
@@ -765,12 +765,12 @@ const { info: bd } = xt, cn = (e) => {
765
765
  centered: !0,
766
766
  content: e
767
767
  });
768
- }, { useToken: wd } = Qe, Mr = nt(({ content: e }) => {
768
+ }, { useToken: wd } = Xe, Mr = nt(({ content: e }) => {
769
769
  const { token: t } = wd();
770
770
  return /* @__PURE__ */ s("div", { style: { color: t.colorTextDisabled }, children: e });
771
771
  });
772
772
  Mr.displayName = "AddonElement";
773
- const { defaultAlgorithm: Sd, defaultSeed: Cd } = Qe, Mo = Sd(Cd), Qn = nt(
773
+ const { defaultAlgorithm: Sd, defaultSeed: Cd } = Xe, Mo = Sd(Cd), Qn = nt(
774
774
  ({
775
775
  component: e,
776
776
  ooui: t,
@@ -821,7 +821,7 @@ const Wi = (e) => {
821
821
  [r]
822
822
  );
823
823
  if (l) {
824
- const y = u ? Id : pt.Password;
824
+ const y = u ? Id : ht.Password;
825
825
  return /* @__PURE__ */ s(
826
826
  Qn,
827
827
  {
@@ -837,7 +837,7 @@ const Wi = (e) => {
837
837
  return /* @__PURE__ */ s(
838
838
  Qn,
839
839
  {
840
- component: u ? Ki : pt,
840
+ component: u ? Ki : ht,
841
841
  ooui: t,
842
842
  value: f,
843
843
  disabled: i || m || c && !n,
@@ -912,7 +912,7 @@ const Gi = nt(
912
912
  /* @__PURE__ */ s(Fe, { flex: "auto", children: /* @__PURE__ */ s(
913
913
  Qn,
914
914
  {
915
- component: y ? Ki : pt,
915
+ component: y ? Ki : ht,
916
916
  ooui: e,
917
917
  value: t,
918
918
  id: n,
@@ -921,7 +921,7 @@ const Gi = nt(
921
921
  }
922
922
  ) }),
923
923
  /* @__PURE__ */ s(Fe, { flex: "none", children: /* @__PURE__ */ s(
924
- mt,
924
+ pt,
925
925
  {
926
926
  tooltip: m("translate"),
927
927
  icon: /* @__PURE__ */ s(Ri, {}),
@@ -933,26 +933,26 @@ const Gi = nt(
933
933
  }
934
934
  );
935
935
  Gi.displayName = "TranslatableCharComp";
936
- const xd = gt(pt)`
936
+ const xd = yt(ht)`
937
937
  &.ant-input {
938
938
  cursor: ${(e) => e.disabled ? "pointer" : "text"};
939
939
  pointer-events: ${(e) => e.disabled ? "none" : "auto"};
940
940
  }
941
- `, Td = gt(pt)`
941
+ `, Td = yt(ht)`
942
942
  &.ant-input {
943
943
  background-color: ${Mo.colorPrimaryBg};
944
944
  cursor: pointer;
945
945
  pointer-events: none;
946
946
  }
947
- `, Ki = gt(pt)`
947
+ `, Ki = yt(ht)`
948
948
  &.ant-input {
949
949
  background-color: ${Mo.colorPrimaryBg};
950
950
  }
951
- `, Id = gt(pt.Password)`
951
+ `, Id = yt(ht.Password)`
952
952
  &.ant-input-affix-wrapper {
953
953
  background-color: ${Mo.colorPrimaryBg};
954
954
  }
955
- `, { defaultAlgorithm: Fd, defaultSeed: Ad } = Qe, _d = Fd(Ad), { Option: Rd } = fn, qi = (e) => {
955
+ `, { defaultAlgorithm: Fd, defaultSeed: Ad } = Xe, _d = Fd(Ad), { Option: Rd } = fn, qi = (e) => {
956
956
  const { ooui: t } = e, { required: n } = t;
957
957
  return /* @__PURE__ */ s($e, { required: n, type: "any", ...e, children: /* @__PURE__ */ s(zi, { ...e }) });
958
958
  }, zi = (e) => {
@@ -973,17 +973,17 @@ const xd = gt(pt)`
973
973
  children: c
974
974
  }
975
975
  );
976
- }, Od = gt(fn)`
976
+ }, Od = yt(fn)`
977
977
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
978
978
  background-color: ${_d.colorPrimaryBg};
979
979
  }
980
- `, { defaultAlgorithm: Ed, defaultSeed: Dd } = Qe, vs = Ed(Dd), Pd = (e) => {
980
+ `, { defaultAlgorithm: Ed, defaultSeed: Dd } = Xe, vs = Ed(Dd), Pd = (e) => {
981
981
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
982
982
  return /* @__PURE__ */ s($e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ s(kd, { id: n, readOnly: r, required: o }) });
983
983
  }, kd = (e) => {
984
984
  const { required: t, readOnly: n, ...r } = e;
985
985
  return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(t && !n ? Vd : qn, { disabled: n, ...r }) });
986
- }, Vd = gt(qn)`
986
+ }, Vd = yt(qn)`
987
987
  .ant-checkbox-inner {
988
988
  background-color: ${vs.colorPrimaryBg};
989
989
  }
@@ -1067,7 +1067,7 @@ const $o = (e) => {
1067
1067
  ] }),
1068
1068
  t.showControls && /* @__PURE__ */ s(Ye, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ N(it, { children: [
1069
1069
  /* @__PURE__ */ s(
1070
- mt,
1070
+ pt,
1071
1071
  {
1072
1072
  tooltip: i("uploadNewImage"),
1073
1073
  icon: /* @__PURE__ */ s(Oo, {}),
@@ -1078,7 +1078,7 @@ const $o = (e) => {
1078
1078
  }
1079
1079
  ),
1080
1080
  /* @__PURE__ */ s(
1081
- mt,
1081
+ pt,
1082
1082
  {
1083
1083
  tooltip: i("download"),
1084
1084
  disabled: !n,
@@ -1087,7 +1087,7 @@ const $o = (e) => {
1087
1087
  }
1088
1088
  ),
1089
1089
  /* @__PURE__ */ s(
1090
- mt,
1090
+ pt,
1091
1091
  {
1092
1092
  tooltip: i("clear"),
1093
1093
  disabled: o || !n,
@@ -1541,7 +1541,7 @@ const pn = ({
1541
1541
  i(!1);
1542
1542
  }
1543
1543
  };
1544
- return a ? /* @__PURE__ */ s(et, {}) : l ? /* @__PURE__ */ s(vt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ s($e, { type: "array", ...e, children: /* @__PURE__ */ s(iu, { ooui: t, views: d }) });
1544
+ return a ? /* @__PURE__ */ s(tt, {}) : l ? /* @__PURE__ */ s(bt, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ s($e, { type: "array", ...e, children: /* @__PURE__ */ s(iu, { ooui: t, views: d }) });
1545
1545
  }, iu = (e) => {
1546
1546
  const { value: t, views: n, ooui: r, onChange: o } = e, { items: a = [] } = t || {}, [i, l] = I(!1), [c, d] = I(), [f, u] = I(!1), [m, h] = I(), {
1547
1547
  relation: p,
@@ -1584,9 +1584,9 @@ const pn = ({
1584
1584
  }
1585
1585
  }
1586
1586
  if (c)
1587
- return /* @__PURE__ */ s(vt, { className: "mt-10", message: c, type: "error", banner: !0 });
1587
+ return /* @__PURE__ */ s(bt, { className: "mt-10", message: c, type: "error", banner: !0 });
1588
1588
  if (i)
1589
- return /* @__PURE__ */ s(et, {});
1589
+ return /* @__PURE__ */ s(tt, {});
1590
1590
  const k = (F) => {
1591
1591
  const P = St(F);
1592
1592
  return P && /* @__PURE__ */ s(P, {});
@@ -2140,7 +2140,7 @@ const mu = (e) => {
2140
2140
  justifyContent: "center",
2141
2141
  alignItems: "center"
2142
2142
  },
2143
- children: /* @__PURE__ */ s(et, {})
2143
+ children: /* @__PURE__ */ s(tt, {})
2144
2144
  }
2145
2145
  ), oa = ({
2146
2146
  error: e,
@@ -2155,7 +2155,7 @@ const mu = (e) => {
2155
2155
  } else
2156
2156
  n = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
2157
2157
  return /* @__PURE__ */ s(
2158
- vt,
2158
+ bt,
2159
2159
  {
2160
2160
  className: t,
2161
2161
  message: n,
@@ -2469,7 +2469,7 @@ const { getValueForOperator: Cs } = Ci, gu = (e) => {
2469
2469
  }
2470
2470
  p(!1);
2471
2471
  }
2472
- return h ? /* @__PURE__ */ s(sr, {}) : A ? /* @__PURE__ */ s(vt, { className: "mt-10", message: A, type: "error", banner: !0 }) : /* @__PURE__ */ s(
2472
+ return h ? /* @__PURE__ */ s(sr, {}) : A ? /* @__PURE__ */ s(bt, { className: "mt-10", message: A, type: "error", banner: !0 }) : /* @__PURE__ */ s(
2473
2473
  sa,
2474
2474
  {
2475
2475
  value: y,
@@ -2637,7 +2637,7 @@ const Jr = (e) => (t) => {
2637
2637
  });
2638
2638
  if (xu(e)) {
2639
2639
  const t = Tu(e);
2640
- return t === null ? e : tt(e, Sr.input[t]).format(
2640
+ return t === null ? e : Qe(e, Sr.input[t]).format(
2641
2641
  Sr.output[t]
2642
2642
  );
2643
2643
  } else
@@ -2738,7 +2738,7 @@ const Sr = {
2738
2738
  };
2739
2739
  function Tu(e) {
2740
2740
  for (const t in Sr.input)
2741
- if (tt(
2741
+ if (Qe(
2742
2742
  e,
2743
2743
  Sr.input[t],
2744
2744
  !0
@@ -2905,7 +2905,7 @@ const Du = ({
2905
2905
  }, [e, t, o, r, n]), d || !f)
2906
2906
  return /* @__PURE__ */ s(sr, {});
2907
2907
  const { data: p, isGroup: y, isStack: g, yAxisOpts: v } = f;
2908
- return c ? /* @__PURE__ */ s(vt, { message: c, type: "error", banner: !0 }) : /* @__PURE__ */ s(
2908
+ return c ? /* @__PURE__ */ s(bt, { message: c, type: "error", banner: !0 }) : /* @__PURE__ */ s(
2909
2909
  ca,
2910
2910
  {
2911
2911
  type: u,
@@ -3001,9 +3001,9 @@ const Du = ({
3001
3001
  if (Array.isArray(o)) {
3002
3002
  const [i, l, c] = o, d = i.split("#")[0], f = (a = t == null ? void 0 : t[d]) == null ? void 0 : a.type;
3003
3003
  if (f === "date")
3004
- r[d] || (r[d] = [null, null]), l === ">=" ? r[d][0] = tt(c) : l === "<=" && (r[d][1] = tt(c));
3004
+ r[d] || (r[d] = [null, null]), l === ">=" ? r[d][0] = Qe(c) : l === "<=" && (r[d][1] = Qe(c));
3005
3005
  else if (f === "datetime") {
3006
- const u = tt(c), m = i.split("#")[0];
3006
+ const u = Qe(c), m = i.split("#")[0];
3007
3007
  r[m + "#date"] || (r[m + "#date"] = [null, null]), r[m + "#time"] || (r[m + "#time"] = [null, null]), l === ">=" ? (r[m + "#date"][0] = u, r[m + "#time"][0] = u) : l === "<=" && (r[m + "#date"][1] = u, r[m + "#time"][1] = u);
3008
3008
  } else
3009
3009
  r[i] = c;
@@ -3012,7 +3012,7 @@ const Du = ({
3012
3012
  return r;
3013
3013
  }, {});
3014
3014
  return Cr(n);
3015
- }, ht = 80, { confirm: Bu } = xt, Vn = ({
3015
+ }, gt = 80, { confirm: Bu } = xt, Vn = ({
3016
3016
  onOk: e,
3017
3017
  onCancel: t,
3018
3018
  t: n
@@ -3080,7 +3080,7 @@ function Ho(e) {
3080
3080
  }
3081
3081
  return /* @__PURE__ */ N("div", { style: { display: "flex" }, children: [
3082
3082
  /* @__PURE__ */ s(
3083
- mt,
3083
+ pt,
3084
3084
  {
3085
3085
  tooltip: i ? l("viewAs") + " " + l(i.type) : "",
3086
3086
  icon: Fs(i),
@@ -3118,7 +3118,7 @@ function Ho(e) {
3118
3118
  )
3119
3119
  ] });
3120
3120
  }
3121
- function yt(e) {
3121
+ function vt(e) {
3122
3122
  const {
3123
3123
  onClick: t,
3124
3124
  disabled: n = !1,
@@ -3130,7 +3130,7 @@ function yt(e) {
3130
3130
  ...c
3131
3131
  } = e;
3132
3132
  return /* @__PURE__ */ N(
3133
- mt,
3133
+ pt,
3134
3134
  {
3135
3135
  type: l,
3136
3136
  tooltip: o,
@@ -3144,7 +3144,7 @@ function yt(e) {
3144
3144
  }
3145
3145
  );
3146
3146
  }
3147
- const da = (e) => /* @__PURE__ */ s(yt, { ...e, type: "primary", danger: !0 });
3147
+ const da = (e) => /* @__PURE__ */ s(vt, { ...e, type: "primary", danger: !0 });
3148
3148
  function ua(e) {
3149
3149
  const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = ae(
3150
3150
  Ct
@@ -3161,7 +3161,7 @@ function ua(e) {
3161
3161
  r();
3162
3162
  };
3163
3163
  return /* @__PURE__ */ s(
3164
- yt,
3164
+ vt,
3165
3165
  {
3166
3166
  icon: /* @__PURE__ */ s(Rr, {}),
3167
3167
  tooltip: o("new"),
@@ -3171,7 +3171,7 @@ function ua(e) {
3171
3171
  }
3172
3172
  );
3173
3173
  }
3174
- const { useToken: ju } = Qe;
3174
+ const { useToken: ju } = Xe;
3175
3175
  function fa(e) {
3176
3176
  const { badgeNumber: t = 0, ...n } = e, { token: r } = ju();
3177
3177
  return /* @__PURE__ */ N("div", { style: { position: "relative" }, children: [
@@ -3192,7 +3192,7 @@ function fa(e) {
3192
3192
  }
3193
3193
  ) }),
3194
3194
  /* @__PURE__ */ s(
3195
- mt,
3195
+ pt,
3196
3196
  {
3197
3197
  ...n,
3198
3198
  style: { width: 46, zIndex: 0 }
@@ -3250,7 +3250,7 @@ function Uu(e) {
3250
3250
  initialValues: { search: r },
3251
3251
  children: /* @__PURE__ */ N(Ye, { align: "middle", justify: "end", children: [
3252
3252
  /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(Et.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ s(
3253
- pt,
3253
+ ht,
3254
3254
  {
3255
3255
  autoFocus: !0,
3256
3256
  disabled: n,
@@ -3529,7 +3529,7 @@ const Nn = It.createContext(null), As = async (e) => {
3529
3529
  closable: !1,
3530
3530
  centered: !0,
3531
3531
  maskClosable: !1,
3532
- children: /* @__PURE__ */ s(et, {})
3532
+ children: /* @__PURE__ */ s(tt, {})
3533
3533
  }
3534
3534
  ),
3535
3535
  /* @__PURE__ */ s(
@@ -3703,7 +3703,7 @@ function Hr({ res_id: e, searchParams: t }) {
3703
3703
  const n = q(null), { currentView: r, limit: o, currentPage: a, order: i } = Mn(), l = {
3704
3704
  id: r.view_id,
3705
3705
  type: r.type
3706
- }, { token: c } = Qe.useToken(), { t: d } = ge(), [f, u] = I(!1), { currentTab: m } = jo(), h = O(
3706
+ }, { token: c } = Xe.useToken(), { t: d } = ge(), [f, u] = I(!1), { currentTab: m } = jo(), h = O(
3707
3707
  (C) => {
3708
3708
  try {
3709
3709
  const x = document.createElement("textarea");
@@ -3734,7 +3734,7 @@ function Hr({ res_id: e, searchParams: t }) {
3734
3734
  v === "form" && (b = !p || !e);
3735
3735
  const _ = /* @__PURE__ */ s("div", { style: { padding: 2 }, children: /* @__PURE__ */ N(it.Compact, { style: { width: "100%" }, children: [
3736
3736
  /* @__PURE__ */ s(
3737
- pt,
3737
+ ht,
3738
3738
  {
3739
3739
  value: g,
3740
3740
  readOnly: !0,
@@ -3770,7 +3770,7 @@ function Hr({ res_id: e, searchParams: t }) {
3770
3770
  )
3771
3771
  ] }) });
3772
3772
  return /* @__PURE__ */ s("div", { style: { maxHeight: 28 }, children: /* @__PURE__ */ s($l, { content: _, trigger: "click", placement: "bottom", children: /* @__PURE__ */ s("div", { ref: n, children: /* @__PURE__ */ s(
3773
- yt,
3773
+ vt,
3774
3774
  {
3775
3775
  style: { height: 28 },
3776
3776
  icon: /* @__PURE__ */ s(Dc, { size: 16, color: c.colorTextSecondary }),
@@ -3830,7 +3830,7 @@ function Zu({
3830
3830
  }), X = Q(
3831
3831
  () => C !== void 0 && C.trim().length > 0,
3832
3832
  [C]
3833
- ), we = Q(() => en(r || [], g || []), [r, g]), B = O(async () => {
3833
+ ), Se = Q(() => en(r || [], g || []), [r, g]), B = O(async () => {
3834
3834
  var z;
3835
3835
  try {
3836
3836
  u == null || u(!0);
@@ -3956,7 +3956,7 @@ function Zu({
3956
3956
  }, [U, V]);
3957
3957
  return /* @__PURE__ */ N(it, { wrap: !0, children: [
3958
3958
  x && /* @__PURE__ */ N(oe, { children: [
3959
- /* @__PURE__ */ s(et, {}),
3959
+ /* @__PURE__ */ s(tt, {}),
3960
3960
  /* @__PURE__ */ s(dt, {}),
3961
3961
  /* @__PURE__ */ s(dt, {})
3962
3962
  ] }),
@@ -3988,7 +3988,7 @@ function Zu({
3988
3988
  /* @__PURE__ */ s(dt, {}),
3989
3989
  /* @__PURE__ */ s(ua, { disabled: x }),
3990
3990
  /* @__PURE__ */ s(
3991
- yt,
3991
+ vt,
3992
3992
  {
3993
3993
  icon: /* @__PURE__ */ s(rr, {}),
3994
3994
  tooltip: V("duplicate"),
@@ -4010,7 +4010,7 @@ function Zu({
4010
4010
  /* @__PURE__ */ s(dt, {})
4011
4011
  ] }),
4012
4012
  /* @__PURE__ */ s(
4013
- yt,
4013
+ vt,
4014
4014
  {
4015
4015
  icon: /* @__PURE__ */ s(kn, {}),
4016
4016
  tooltip: V("showLogs"),
@@ -4019,7 +4019,7 @@ function Zu({
4019
4019
  }
4020
4020
  ),
4021
4021
  /* @__PURE__ */ s(
4022
- yt,
4022
+ vt,
4023
4023
  {
4024
4024
  icon: /* @__PURE__ */ s(Or, {}),
4025
4025
  tooltip: V("refresh"),
@@ -4075,7 +4075,7 @@ function Zu({
4075
4075
  visible: $,
4076
4076
  onClose: () => L(!1),
4077
4077
  model: m,
4078
- domain: we,
4078
+ domain: Se,
4079
4079
  limit: A,
4080
4080
  totalRegisters: k || 0,
4081
4081
  selectedRegistersToExport: l,
@@ -4115,7 +4115,7 @@ const ef = nt(Zu), ya = nt(() => /* @__PURE__ */ s(
4115
4115
  }
4116
4116
  ));
4117
4117
  ya.displayName = "ExportIcon";
4118
- const { useToken: tf } = Qe, { Title: nf, Text: fr } = nn, Br = ({
4118
+ const { useToken: tf } = Xe, { Title: nf, Text: fr } = nn, Br = ({
4119
4119
  title: e,
4120
4120
  children: t,
4121
4121
  showSummary: n = !0
@@ -4318,12 +4318,12 @@ const sf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4318
4318
  /* @__PURE__ */ s(lf, { percent: e }),
4319
4319
  /* @__PURE__ */ s(cf, { children: t })
4320
4320
  ] });
4321
- }, af = gt.div`
4321
+ }, af = yt.div`
4322
4322
  display: flex;
4323
4323
  align-items: center;
4324
4324
  width: 100%;
4325
4325
  min-width: 0;
4326
- `, lf = gt(Hl)`
4326
+ `, lf = yt(Hl)`
4327
4327
  flex: 1;
4328
4328
  min-width: 0;
4329
4329
  .ant-progress-outer {
@@ -4333,7 +4333,7 @@ const sf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4333
4333
  .ant-progress-text {
4334
4334
  display: none;
4335
4335
  }
4336
- `, cf = gt.div`
4336
+ `, cf = yt.div`
4337
4337
  padding-left: 10px;
4338
4338
  white-space: nowrap;
4339
4339
  `, df = ({
@@ -4626,7 +4626,7 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4626
4626
  maxLength: n,
4627
4627
  readonly: r = !1
4628
4628
  }) => {
4629
- const { token: o } = Qe.useToken(), [a, i] = I(
4629
+ const { token: o } = Xe.useToken(), [a, i] = I(
4630
4630
  e ? e.split(";").map((g) => g.trim()).filter((g) => g) : []
4631
4631
  ), [l, c] = I(""), d = q(null), f = ae(Je), { elementHasLostFocus: u } = f || {};
4632
4632
  Ft(() => {
@@ -4679,7 +4679,7 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4679
4679
  }
4680
4680
  ),
4681
4681
  /* @__PURE__ */ s(
4682
- pt,
4682
+ ht,
4683
4683
  {
4684
4684
  readOnly: r,
4685
4685
  ref: d,
@@ -4703,7 +4703,7 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4703
4703
  ]
4704
4704
  }
4705
4705
  );
4706
- }, bt = {
4706
+ }, ut = {
4707
4707
  date: {
4708
4708
  placeholder: "__/__/____",
4709
4709
  dateDisplayFormat: "DD/MM/YYYY",
@@ -4726,31 +4726,31 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4726
4726
  }), vf = (e) => {
4727
4727
  const { currentValue: t, now: n, mode: r, showTime: o, onChange: a } = e, i = Ca();
4728
4728
  if (!t || t.trim() === "") {
4729
- a(n.format(bt[r].dateInternalFormat));
4729
+ a(n.format(ut[r].dateInternalFormat));
4730
4730
  return;
4731
4731
  }
4732
4732
  if (i.day.test(t)) {
4733
4733
  const l = n.date(parseInt(t));
4734
- a(l.format(bt[r].dateInternalFormat));
4734
+ a(l.format(ut[r].dateInternalFormat));
4735
4735
  }
4736
4736
  if (i.dayMonth.test(t)) {
4737
4737
  const [l, c] = t.split("/").map((f) => parseInt(f)), d = n.date(l).month(c - 1);
4738
- a(d.format(bt[r].dateInternalFormat));
4738
+ a(d.format(ut[r].dateInternalFormat));
4739
4739
  }
4740
4740
  if (i.fullDate.test(t)) {
4741
4741
  const [l, c, d] = t.split("/").map((u) => parseInt(u)), f = n.date(l).month(c - 1).year(d);
4742
- o || a(f.format(bt.date.dateInternalFormat)), a(f.format(bt.time.dateInternalFormat));
4742
+ o || a(f.format(ut.date.dateInternalFormat)), a(f.format(ut.time.dateInternalFormat));
4743
4743
  }
4744
4744
  if (o) {
4745
4745
  const [l, c] = t.split(" "), [d, f, u] = l.split("/").map((h) => parseInt(h));
4746
4746
  let m = n.date(d).month(f - 1).year(u);
4747
4747
  if (i.withHours.test(t)) {
4748
4748
  const [h] = c.split(":").map((p) => parseInt(p));
4749
- m = m.hour(h), a(m.format(bt.time.dateInternalFormat));
4749
+ m = m.hour(h), a(m.format(ut.time.dateInternalFormat));
4750
4750
  }
4751
4751
  if (i.withMinutes.test(t)) {
4752
4752
  const [h, p] = c.split(":").map((y) => parseInt(y));
4753
- m = m.hour(h).minute(p), a(m.format(bt.time.dateInternalFormat));
4753
+ m = m.hour(h).minute(p), a(m.format(ut.time.dateInternalFormat));
4754
4754
  }
4755
4755
  }
4756
4756
  }, bf = (e, t) => {
@@ -4787,10 +4787,10 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4787
4787
  ), Tf = ({ value: e }) => Q(() => {
4788
4788
  if (!e || e && e.length === 0)
4789
4789
  return /* @__PURE__ */ s(oe, {});
4790
- const t = tt(
4790
+ const t = Qe(
4791
4791
  e,
4792
- bt.date.dateInternalFormat
4793
- ).format(bt.date.dateDisplayFormat);
4792
+ ut.date.dateInternalFormat
4793
+ ).format(ut.date.dateDisplayFormat);
4794
4794
  return /* @__PURE__ */ s(oe, { children: t });
4795
4795
  }, [e]), If = ({
4796
4796
  value: e,
@@ -4798,10 +4798,10 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4798
4798
  }) => Q(() => e ? t.fieldType === "many2one" ? /* @__PURE__ */ s(oe, { children: e[1] }) : /* @__PURE__ */ s(oe, { children: e }) : /* @__PURE__ */ s(oe, {}), [e, t.fieldType]), Ff = ({ value: e }) => Q(() => {
4799
4799
  if (!e || e && e.length === 0)
4800
4800
  return /* @__PURE__ */ s(oe, {});
4801
- const t = tt(
4801
+ const t = Qe(
4802
4802
  e,
4803
- bt.time.dateInternalFormat
4804
- ).format(bt.time.dateDisplayFormat);
4803
+ ut.time.dateInternalFormat
4804
+ ).format(ut.time.dateDisplayFormat);
4805
4805
  return /* @__PURE__ */ s(oe, { children: t });
4806
4806
  }, [e]), _s = ({
4807
4807
  value: e
@@ -4891,7 +4891,7 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4891
4891
  }),
4892
4892
  [o]
4893
4893
  );
4894
- return Q(() => i ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
4894
+ return Q(() => i ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
4895
4895
  "div",
4896
4896
  {
4897
4897
  style: {
@@ -5212,11 +5212,11 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5212
5212
  a.preventDefault();
5213
5213
  const c = jf(
5214
5214
  l,
5215
- tt(),
5215
+ Qe(),
5216
5216
  n
5217
5217
  );
5218
5218
  if (c) {
5219
- const d = tt(`2000-01-01 ${c}`);
5219
+ const d = Qe(`2000-01-01 ${c}`);
5220
5220
  t == null || t(d, c);
5221
5221
  }
5222
5222
  } else if (a.key === "Escape") {
@@ -5314,7 +5314,7 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5314
5314
  onChange: t
5315
5315
  }) => {
5316
5316
  const n = Q(
5317
- () => tt().hour(0).minute(0).second(0),
5317
+ () => Qe().hour(0).minute(0).second(0),
5318
5318
  []
5319
5319
  );
5320
5320
  return /* @__PURE__ */ N(Ye, { gutter: 8, children: [
@@ -5345,7 +5345,7 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5345
5345
  }
5346
5346
  ) })
5347
5347
  ] });
5348
- }, { defaultAlgorithm: Gf, defaultSeed: Kf } = Qe, qf = Gf(Kf), zo = nt((e) => {
5348
+ }, { defaultAlgorithm: Gf, defaultSeed: Kf } = Xe, qf = Gf(Kf), zo = nt((e) => {
5349
5349
  const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: a } = t, i = ae(Je), { elementHasLostFocus: l } = i || {}, c = Q(() => a && !o, [a, o]), d = Q(
5350
5350
  () => c ? zf : Fr,
5351
5351
  [c]
@@ -5367,11 +5367,11 @@ const gf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5367
5367
  ) });
5368
5368
  });
5369
5369
  zo.displayName = "Float";
5370
- const zf = gt(Fr)`
5370
+ const zf = yt(Fr)`
5371
5371
  &.ant-input-number {
5372
5372
  background-color: ${qf.colorPrimaryBg};
5373
5373
  }
5374
- `, { useToken: Jf } = Qe, { defaultAlgorithm: Qf, defaultSeed: Xf } = Qe, Zf = Qf(Xf), Xn = nt((e) => {
5374
+ `, { useToken: Jf } = Xe, { defaultAlgorithm: Qf, defaultSeed: Xf } = Xe, Zf = Qf(Xf), Xn = nt((e) => {
5375
5375
  const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: a } = t, { token: i } = Jf(), l = a && !o ? { backgroundColor: i.colorPrimaryBg } : void 0, c = ae(Je), { elementHasLostFocus: d } = c || {}, f = Q(() => a && !o, [a, o]), u = Q(
5376
5376
  () => f ? em : Fr,
5377
5377
  [f]
@@ -5400,7 +5400,7 @@ const zf = gt(Fr)`
5400
5400
  ) });
5401
5401
  });
5402
5402
  Xn.displayName = "Integer";
5403
- const em = gt(Fr)`
5403
+ const em = yt(Fr)`
5404
5404
  &.ant-input-number {
5405
5405
  background-color: ${Zf.colorPrimaryBg};
5406
5406
  }
@@ -5447,7 +5447,7 @@ function tm(e) {
5447
5447
  )
5448
5448
  ] });
5449
5449
  }
5450
- const { defaultAlgorithm: nm, defaultSeed: rm } = Qe, om = nm(rm), { Option: sm } = fn, im = (e) => {
5450
+ const { defaultAlgorithm: nm, defaultSeed: rm } = Xe, om = nm(rm), { Option: sm } = fn, im = (e) => {
5451
5451
  const { ooui: t } = e, { required: n } = t;
5452
5452
  return /* @__PURE__ */ s($e, { required: n, type: "any", ...e, children: /* @__PURE__ */ s(am, { ...e }) });
5453
5453
  }, am = (e) => {
@@ -5480,7 +5480,7 @@ const { defaultAlgorithm: nm, defaultSeed: rm } = Qe, om = nm(rm), { Option: sm
5480
5480
  children: c
5481
5481
  }
5482
5482
  );
5483
- }, lm = gt(fn)`
5483
+ }, lm = yt(fn)`
5484
5484
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
5485
5485
  background-color: ${om.colorPrimaryBg};
5486
5486
  }
@@ -5524,7 +5524,7 @@ function Aa(e) {
5524
5524
  );
5525
5525
  }
5526
5526
  }
5527
- const { useToken: cm } = Qe, { Title: dm } = nn, { Header: um, Content: fm, Footer: mm } = yi, pm = ({
5527
+ const { useToken: cm } = Xe, { Title: dm } = nn, { Header: um, Content: fm, Footer: mm } = yi, pm = ({
5528
5528
  isOpen: e,
5529
5529
  onClose: t,
5530
5530
  children: n,
@@ -5919,13 +5919,13 @@ var oo = function() {
5919
5919
  return oo;
5920
5920
  }
5921
5921
  }
5922
- }() : oo, vn = Lm(), zm = Bm(), ft = Object.getPrototypeOf || (zm ? function(e) {
5922
+ }() : oo, vn = Lm(), zm = Bm(), mt = Object.getPrototypeOf || (zm ? function(e) {
5923
5923
  return e.__proto__;
5924
- } : null), Sn = {}, Jm = typeof Uint8Array > "u" || !ft ? Le : ft(Uint8Array), un = {
5924
+ } : null), Sn = {}, Jm = typeof Uint8Array > "u" || !mt ? Le : mt(Uint8Array), un = {
5925
5925
  "%AggregateError%": typeof AggregateError > "u" ? Le : AggregateError,
5926
5926
  "%Array%": Array,
5927
5927
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? Le : ArrayBuffer,
5928
- "%ArrayIteratorPrototype%": vn && ft ? ft([][Symbol.iterator]()) : Le,
5928
+ "%ArrayIteratorPrototype%": vn && mt ? mt([][Symbol.iterator]()) : Le,
5929
5929
  "%AsyncFromSyncIteratorPrototype%": Le,
5930
5930
  "%AsyncFunction%": Sn,
5931
5931
  "%AsyncGenerator%": Sn,
@@ -5956,10 +5956,10 @@ var oo = function() {
5956
5956
  "%Int32Array%": typeof Int32Array > "u" ? Le : Int32Array,
5957
5957
  "%isFinite%": isFinite,
5958
5958
  "%isNaN%": isNaN,
5959
- "%IteratorPrototype%": vn && ft ? ft(ft([][Symbol.iterator]())) : Le,
5959
+ "%IteratorPrototype%": vn && mt ? mt(mt([][Symbol.iterator]())) : Le,
5960
5960
  "%JSON%": typeof JSON == "object" ? JSON : Le,
5961
5961
  "%Map%": typeof Map > "u" ? Le : Map,
5962
- "%MapIteratorPrototype%": typeof Map > "u" || !vn || !ft ? Le : ft((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5962
+ "%MapIteratorPrototype%": typeof Map > "u" || !vn || !mt ? Le : mt((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5963
5963
  "%Math%": Math,
5964
5964
  "%Number%": Number,
5965
5965
  "%Object%": Object,
@@ -5972,10 +5972,10 @@ var oo = function() {
5972
5972
  "%Reflect%": typeof Reflect > "u" ? Le : Reflect,
5973
5973
  "%RegExp%": RegExp,
5974
5974
  "%Set%": typeof Set > "u" ? Le : Set,
5975
- "%SetIteratorPrototype%": typeof Set > "u" || !vn || !ft ? Le : ft((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5975
+ "%SetIteratorPrototype%": typeof Set > "u" || !vn || !mt ? Le : mt((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5976
5976
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? Le : SharedArrayBuffer,
5977
5977
  "%String%": String,
5978
- "%StringIteratorPrototype%": vn && ft ? ft(""[Symbol.iterator]()) : Le,
5978
+ "%StringIteratorPrototype%": vn && mt ? mt(""[Symbol.iterator]()) : Le,
5979
5979
  "%Symbol%": vn ? Symbol : Le,
5980
5980
  "%SyntaxError%": On,
5981
5981
  "%ThrowTypeError%": qm,
@@ -5990,11 +5990,11 @@ var oo = function() {
5990
5990
  "%WeakRef%": typeof WeakRef > "u" ? Le : WeakRef,
5991
5991
  "%WeakSet%": typeof WeakSet > "u" ? Le : WeakSet
5992
5992
  };
5993
- if (ft)
5993
+ if (mt)
5994
5994
  try {
5995
5995
  null.error;
5996
5996
  } catch (e) {
5997
- var Qm = ft(ft(e));
5997
+ var Qm = mt(mt(e));
5998
5998
  un["%Error.prototype%"] = Qm;
5999
5999
  }
6000
6000
  var Xm = function e(t) {
@@ -6010,7 +6010,7 @@ var Xm = function e(t) {
6010
6010
  r && (n = r.prototype);
6011
6011
  } else if (t === "%AsyncIteratorPrototype%") {
6012
6012
  var o = e("%AsyncGenerator%");
6013
- o && ft && (n = ft(o.prototype));
6013
+ o && mt && (n = mt(o.prototype));
6014
6014
  }
6015
6015
  return un[t] = n, n;
6016
6016
  }, Hs = {
@@ -6612,7 +6612,7 @@ function hh(e) {
6612
6612
  ] })
6613
6613
  ] });
6614
6614
  }
6615
- const { useToken: gh } = Qe;
6615
+ const { useToken: gh } = Xe;
6616
6616
  function Yr(e) {
6617
6617
  const {
6618
6618
  fields: t,
@@ -6700,7 +6700,7 @@ function Yr(e) {
6700
6700
  }
6701
6701
  ),
6702
6702
  u && /* @__PURE__ */ s(
6703
- vt,
6703
+ bt,
6704
6704
  {
6705
6705
  className: "mt-10",
6706
6706
  message: u,
@@ -6716,7 +6716,7 @@ function Yr(e) {
6716
6716
  function el({
6717
6717
  useLocalState: e = !1
6718
6718
  }) {
6719
- const t = Mh() && !e, n = Mn(), [r, o] = I(!1), [a, i] = I(!1), [l, c] = I([]), [d, f] = I(0), [u, m] = I(void 0), [h, p] = I([]), [y, g] = I({}), [v, b] = I(), [_, C] = I([]), [x, R] = I(), [T, w] = I(0), [A, k] = I(), [S, F] = I(1), [P, E] = I(er), [H, V] = I(ht);
6719
+ const t = Mh() && !e, n = Mn(), [r, o] = I(!1), [a, i] = I(!1), [l, c] = I([]), [d, f] = I(0), [u, m] = I(void 0), [h, p] = I([]), [y, g] = I({}), [v, b] = I(), [_, C] = I([]), [x, R] = I(), [T, w] = I(0), [A, k] = I(), [S, F] = I(1), [P, E] = I(er), [H, V] = I(gt);
6720
6720
  return t ? {
6721
6721
  treeIsLoading: n.treeIsLoading ?? !1,
6722
6722
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -6761,7 +6761,7 @@ function el({
6761
6761
  treeType: n.treeType ?? er,
6762
6762
  setTreeType: n.setTreeType ?? (() => {
6763
6763
  }),
6764
- limit: n.limit ?? ht,
6764
+ limit: n.limit ?? gt,
6765
6765
  setLimit: n.setLimit ?? (() => {
6766
6766
  })
6767
6767
  } : {
@@ -7082,10 +7082,10 @@ const Gr = ({
7082
7082
  return;
7083
7083
  const D = v.current.filter((j) => {
7084
7084
  const ne = L.find(
7085
- (we) => (we == null ? void 0 : we.id) === (j == null ? void 0 : j.id)
7085
+ (Se) => (Se == null ? void 0 : Se.id) === (j == null ? void 0 : j.id)
7086
7086
  );
7087
7087
  return ne ? u.current.some(
7088
- (we) => j[we] !== ne[we]
7088
+ (Se) => j[Se] !== ne[Se]
7089
7089
  ) : !1;
7090
7090
  }).filter(Boolean);
7091
7091
  D.length > 0 && (D.forEach((j) => g.current.delete(j.id)), P(D), (G = n == null ? void 0 : n.current) == null || G.updateRows(D));
@@ -7156,7 +7156,7 @@ const Gr = ({
7156
7156
  style: { paddingRight: 10 },
7157
7157
  className: "text-right",
7158
7158
  children: [
7159
- e === void 0 && /* @__PURE__ */ s(et, {}),
7159
+ e === void 0 && /* @__PURE__ */ s(tt, {}),
7160
7160
  e != null && `${r("totalRegisters")} ${e}`
7161
7161
  ]
7162
7162
  }
@@ -7235,7 +7235,7 @@ function xh(e, t) {
7235
7235
  searchValues: j,
7236
7236
  searchParams: ne,
7237
7237
  setSearchValues: X,
7238
- searchTreeNameSearch: we,
7238
+ searchTreeNameSearch: Se,
7239
7239
  setSearchTreeNameSearch: B,
7240
7240
  setResults: U,
7241
7241
  results: me,
@@ -7244,7 +7244,7 @@ function xh(e, t) {
7244
7244
  isActive: Z,
7245
7245
  order: re,
7246
7246
  setOrder: z
7247
- } = el({ useLocalState: !c }), Y = u || we, be = q(Y), Oe = q(!1), je = Jt(
7247
+ } = el({ useLocalState: !c }), Y = u || Se, be = q(Y), Oe = q(!1), je = Jt(
7248
7248
  Lt.FEATURE_MANY2ONE_SORT
7249
7249
  );
7250
7250
  le(() => {
@@ -7253,29 +7253,29 @@ function xh(e, t) {
7253
7253
  var ue;
7254
7254
  (Y !== void 0 && be.current === void 0 || typeof Y == "string" && typeof be.current == "string" && Y !== be.current || Y === void 0 && be.current !== void 0) && (Oe.current = !!Y, G == null || G([]), X == null || X({}), (ue = p.current) == null || ue.unselectAll()), be.current = Y;
7255
7255
  }, [Y]);
7256
- const xe = Q(() => {
7256
+ const Te = Q(() => {
7257
7257
  if (S)
7258
7258
  return qt(S);
7259
7259
  }, [S]), {
7260
- colorsForResults: Ce,
7260
+ colorsForResults: xe,
7261
7261
  statusForResults: fe,
7262
7262
  updateAttributes: Pe,
7263
- clearAttributes: Te
7263
+ clearAttributes: Ie
7264
7264
  } = tl({
7265
7265
  tableRef: p
7266
7266
  }), { clear: He } = nl({
7267
7267
  model: n,
7268
7268
  tableRef: p,
7269
- autorefreshableFields: xe == null ? void 0 : xe.autorefreshableFields,
7269
+ autorefreshableFields: Te == null ? void 0 : Te.autorefreshableFields,
7270
7270
  treeView: S,
7271
7271
  context: d,
7272
7272
  isActive: Z,
7273
- treeOoui: xe,
7273
+ treeOoui: Te,
7274
7274
  updateAttributes: Pe,
7275
7275
  results: me
7276
7276
  }), {
7277
7277
  isFieldLoading: Be,
7278
- refresh: Ie,
7278
+ refresh: we,
7279
7279
  addRecordsToCheckFunctionFields: ce,
7280
7280
  onHasFunctionFieldsToParseConditions: Ue
7281
7281
  } = rl({
@@ -7284,20 +7284,20 @@ function xh(e, t) {
7284
7284
  tableRef: p,
7285
7285
  context: d,
7286
7286
  isActive: Z,
7287
- treeOoui: xe,
7287
+ treeOoui: Te,
7288
7288
  updateAttributes: Pe,
7289
7289
  results: me
7290
7290
  }), Ee = Fn(() => {
7291
- if (xe)
7291
+ if (Te)
7292
7292
  return Lr(
7293
- xe,
7293
+ Te,
7294
7294
  {
7295
7295
  ...Ur
7296
7296
  },
7297
7297
  d,
7298
7298
  je
7299
7299
  );
7300
- }, [xe, d, je]), Ne = Q(() => {
7300
+ }, [Te, d, je]), Ne = Q(() => {
7301
7301
  if (Ee)
7302
7302
  return Ee.map((ue) => ({
7303
7303
  ...ue,
@@ -7320,7 +7320,7 @@ function xh(e, t) {
7320
7320
  }, [n, S == null ? void 0 : S.view_id, P]), {
7321
7321
  loading: Ae,
7322
7322
  getColumnState: de,
7323
- updateColumnState: Xe
7323
+ updateColumnState: Ze
7324
7324
  } = Go({ key: ve }), Ge = Q(
7325
7325
  () => en(ne || [], i),
7326
7326
  [i, ne]
@@ -7360,7 +7360,7 @@ function xh(e, t) {
7360
7360
  endRow: _e,
7361
7361
  state: rt
7362
7362
  }) => {
7363
- if (!xe)
7363
+ if (!Te)
7364
7364
  return [];
7365
7365
  let lt;
7366
7366
  if (!g.current && re) {
@@ -7380,7 +7380,7 @@ function xh(e, t) {
7380
7380
  }
7381
7381
  g.current = !0;
7382
7382
  const Nt = Y ? i : Ge, dr = (S == null ? void 0 : S.fields_in_conditions) !== void 0, Kr = Gr({
7383
- treeOoui: xe,
7383
+ treeOoui: Te,
7384
7384
  hasFunctionFieldsToParseConditions: dr && Ue()
7385
7385
  }), { results: K, attrsEvaluated: J } = await M.getHandler().searchForTree({
7386
7386
  params: Nt,
@@ -7411,8 +7411,8 @@ function xh(e, t) {
7411
7411
  }
7412
7412
  if (Wt.current = lt, Y ? (x(K.length), se(K.length), T(!0), _(!1)) : T(!1), K.length === 0)
7413
7413
  return y.current = [], x(0), se(0), [];
7414
- const pe = mn(xe, K);
7415
- return Pe(J, xe), y.current = [...pe], pe;
7414
+ const pe = mn(Te, K);
7415
+ return Pe(J, Te), y.current = [...pe], pe;
7416
7416
  },
7417
7417
  [
7418
7418
  me,
@@ -7427,7 +7427,7 @@ function xh(e, t) {
7427
7427
  z,
7428
7428
  ee,
7429
7429
  se,
7430
- xe,
7430
+ Te,
7431
7431
  S,
7432
7432
  ce,
7433
7433
  Ue,
@@ -7466,10 +7466,10 @@ function xh(e, t) {
7466
7466
  [te, se, E, v]
7467
7467
  ), Ve = O((ue) => {
7468
7468
  var _e, rt, lt, Nt;
7469
- if (Ce.current[(rt = (_e = ue.node) == null ? void 0 : _e.data) == null ? void 0 : rt.id])
7470
- return { color: Ce.current[(Nt = (lt = ue.node) == null ? void 0 : lt.data) == null ? void 0 : Nt.id] };
7469
+ if (xe.current[(rt = (_e = ue.node) == null ? void 0 : _e.data) == null ? void 0 : rt.id])
7470
+ return { color: xe.current[(Nt = (lt = ue.node) == null ? void 0 : lt.data) == null ? void 0 : Nt.id] };
7471
7471
  }, []), ye = Q(() => (W == null ? void 0 : W.map((ue) => ue.id)) || [], [W]), [Ke, ot, Tt] = Ko({
7472
- ooui: xe,
7472
+ ooui: Te,
7473
7473
  model: n,
7474
7474
  showEmptyValues: !0,
7475
7475
  domain: (ye == null ? void 0 : ye.length) > 0 ? (
@@ -7515,7 +7515,7 @@ function xh(e, t) {
7515
7515
  $,
7516
7516
  w,
7517
7517
  C
7518
- ]), ut = O(() => D, [D]), Pt = Q(() => Tt ? /* @__PURE__ */ s(qo, { aggregates: ot, isLoading: Ke }) : null, [ot, Ke, Tt]), Ot = O((ue) => /* @__PURE__ */ s(tr, { color: ue, style: { marginLeft: 7 } }), []), sn = O(
7518
+ ]), ft = O(() => D, [D]), Pt = Q(() => Tt ? /* @__PURE__ */ s(qo, { aggregates: ot, isLoading: Ke }) : null, [ot, Ke, Tt]), Ot = O((ue) => /* @__PURE__ */ s(tr, { color: ue, style: { marginLeft: 7 } }), []), sn = O(
7519
7519
  (ue) => {
7520
7520
  var _e;
7521
7521
  return (_e = fe.current) == null ? void 0 : _e[ue.id];
@@ -7528,9 +7528,9 @@ function xh(e, t) {
7528
7528
  }),
7529
7529
  [w]
7530
7530
  ), kt = Q(() => {
7531
- if (!Ee || !xe)
7531
+ if (!Ee || !Te)
7532
7532
  return null;
7533
- const ue = Oe.current ? ht : void 0;
7533
+ const ue = Oe.current ? gt : void 0;
7534
7534
  return /* @__PURE__ */ s(
7535
7535
  Mi,
7536
7536
  {
@@ -7542,15 +7542,15 @@ function xh(e, t) {
7542
7542
  onRowDoubleClick: a,
7543
7543
  onRowStyle: Ve,
7544
7544
  onRowSelectionChange: Re,
7545
- onColumnChanged: Xe,
7545
+ onColumnChanged: Ze,
7546
7546
  onGetColumnsState: de,
7547
7547
  onChangeFirstVisibleRowIndex: L,
7548
- onGetFirstVisibleRowIndex: ut,
7548
+ onGetFirstVisibleRowIndex: ft,
7549
7549
  selectedRowKeys: ye,
7550
7550
  onSelectionCheckboxClicked: We,
7551
7551
  totalRows: C || 99999,
7552
7552
  footer: Pt,
7553
- hasStatusColumn: xe.status !== null,
7553
+ hasStatusColumn: Te.status !== null,
7554
7554
  statusComponent: Ot,
7555
7555
  onRowStatus: sn,
7556
7556
  strings: hn,
@@ -7565,7 +7565,7 @@ function xh(e, t) {
7565
7565
  Re,
7566
7566
  Ee,
7567
7567
  Ne,
7568
- ut,
7568
+ ft,
7569
7569
  Pt,
7570
7570
  de,
7571
7571
  ke,
@@ -7578,8 +7578,8 @@ function xh(e, t) {
7578
7578
  Ot,
7579
7579
  hn,
7580
7580
  C,
7581
- xe,
7582
- Xe,
7581
+ Te,
7582
+ Ze,
7583
7583
  h
7584
7584
  ]), gn = q(ne), Ut = q(H), Qt = q(), Wt = q();
7585
7585
  Ft(() => {
@@ -7591,13 +7591,13 @@ function xh(e, t) {
7591
7591
  }, [ne, H]);
7592
7592
  const Yt = O(async () => {
7593
7593
  var ue;
7594
- he([]), Te(), He(), Qt.current = void 0, T(!1), await at(), (ue = p == null ? void 0 : p.current) == null || ue.refresh(), Ie();
7594
+ he([]), Ie(), He(), Qt.current = void 0, T(!1), await at(), (ue = p == null ? void 0 : p.current) == null || ue.refresh(), we();
7595
7595
  }, [
7596
7596
  he,
7597
- Te,
7597
+ Ie,
7598
7598
  He,
7599
7599
  at,
7600
- Ie
7600
+ we
7601
7601
  ]);
7602
7602
  Dt(t, () => ({
7603
7603
  refreshResults: Yt,
@@ -7668,7 +7668,7 @@ function xh(e, t) {
7668
7668
  S == null ? void 0 : S.search_fields,
7669
7669
  j
7670
7670
  ]
7671
- ), Se = O(
7671
+ ), Ce = O(
7672
7672
  () => V == null ? void 0 : V(!1),
7673
7673
  [V]
7674
7674
  ), Me = O(
@@ -7683,7 +7683,7 @@ function xh(e, t) {
7683
7683
  X,
7684
7684
  V
7685
7685
  ]
7686
- ), Ze = Y && R && C !== void 0 && C !== null && C === ht;
7686
+ ), et = Y && R && C !== void 0 && C !== null && C === gt;
7687
7687
  return /* @__PURE__ */ N(En, { children: [
7688
7688
  m === "top" && /* @__PURE__ */ s(
7689
7689
  Yr,
@@ -7697,7 +7697,7 @@ function xh(e, t) {
7697
7697
  Za,
7698
7698
  {
7699
7699
  ...Wn,
7700
- onClose: Se,
7700
+ onClose: Ce,
7701
7701
  onSubmit: Me
7702
7702
  }
7703
7703
  ),
@@ -7706,7 +7706,7 @@ function xh(e, t) {
7706
7706
  {
7707
7707
  selectedRowKeys: ye,
7708
7708
  totalRows: C,
7709
- customMiddleComponent: Ze && /* @__PURE__ */ s(
7709
+ customMiddleComponent: et && /* @__PURE__ */ s(
7710
7710
  ol,
7711
7711
  {
7712
7712
  onFilterSearchClick: () => V == null ? void 0 : V(!0)
@@ -7714,7 +7714,7 @@ function xh(e, t) {
7714
7714
  )
7715
7715
  }
7716
7716
  ),
7717
- /* @__PURE__ */ s("div", { ref: A, style: Vt, children: P || Ae || b ? /* @__PURE__ */ s(et, {}) : kt })
7717
+ /* @__PURE__ */ s("div", { ref: A, style: Vt, children: P || Ae || b ? /* @__PURE__ */ s(tt, {}) : kt })
7718
7718
  ] });
7719
7719
  }
7720
7720
  const sl = _t(xh), si = (e, t = "14px -apple-system") => {
@@ -7743,7 +7743,7 @@ const sl = _t(xh), si = (e, t = "14px -apple-system") => {
7743
7743
  source: t,
7744
7744
  tableWidth: o
7745
7745
  };
7746
- }, Ih = gt.div`
7746
+ }, Ih = yt.div`
7747
7747
  display: flex;
7748
7748
  align-items: center;
7749
7749
  justify-content: center;
@@ -7768,7 +7768,7 @@ const sl = _t(xh), si = (e, t = "14px -apple-system") => {
7768
7768
  "{numberOfSelectedRows}",
7769
7769
  e.toString()
7770
7770
  ) + " ",
7771
- a ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s($i, { onClick: d, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
7771
+ a ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s($i, { onClick: d, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
7772
7772
  "{totalRecords}",
7773
7773
  t.toString()
7774
7774
  ) })
@@ -7841,7 +7841,7 @@ const sl = _t(xh), si = (e, t = "14px -apple-system") => {
7841
7841
  const ee = A == null ? void 0 : A.filter(
7842
7842
  (se) => u && u.includes(se.id)
7843
7843
  ).length;
7844
- return c ? null : o === void 0 ? /* @__PURE__ */ s(et, { className: "pb-4" }) : /* @__PURE__ */ N(Ye, { align: "bottom", className: "pb-4", children: [
7844
+ return c ? null : o === void 0 ? /* @__PURE__ */ s(tt, { className: "pb-4" }) : /* @__PURE__ */ N(Ye, { align: "bottom", className: "pb-4", children: [
7845
7845
  /* @__PURE__ */ s(Fe, { span: T ? 8 : 12, children: /* @__PURE__ */ s(
7846
7846
  jl,
7847
7847
  {
@@ -7875,7 +7875,7 @@ const sl = _t(xh), si = (e, t = "14px -apple-system") => {
7875
7875
  ne,
7876
7876
  o,
7877
7877
  a.isExpandable
7878
- ]), we = Q(() => {
7878
+ ]), Se = Q(() => {
7879
7879
  if (!F)
7880
7880
  return null;
7881
7881
  const ee = F.columns.filter((re) => re.sum !== void 0).map((re) => ({ label: re.sum, field: re.id }));
@@ -7890,7 +7890,7 @@ const sl = _t(xh), si = (e, t = "14px -apple-system") => {
7890
7890
  if (F !== null && W && W.length > 0)
7891
7891
  return Th(W, A, 600);
7892
7892
  }, [W, A, F]), U = Q(() => h && (F != null && F.columns.some((ee) => ee.sum !== void 0)) ? h - 30 : h, [h, F == null ? void 0 : F.columns]);
7893
- return F === null || !B || ((me = B == null ? void 0 : B.columns) == null ? void 0 : me.length) === 0 ? /* @__PURE__ */ s(et, { style: { padding: "2rem" } }) : /* @__PURE__ */ N(hr, { children: [
7893
+ return F === null || !B || ((me = B == null ? void 0 : B.columns) == null ? void 0 : me.length) === 0 ? /* @__PURE__ */ s(tt, { style: { padding: "2rem" } }) : /* @__PURE__ */ N(hr, { children: [
7894
7894
  X,
7895
7895
  /* @__PURE__ */ s(
7896
7896
  Uc,
@@ -7900,7 +7900,7 @@ const sl = _t(xh), si = (e, t = "14px -apple-system") => {
7900
7900
  columns: B.columns,
7901
7901
  dataSource: A,
7902
7902
  loading: c,
7903
- loadingComponent: /* @__PURE__ */ s(et, {}),
7903
+ loadingComponent: /* @__PURE__ */ s(tt, {}),
7904
7904
  onRowStyle: (ee) => {
7905
7905
  if (p[ee.id])
7906
7906
  return { color: p[ee.id] };
@@ -7923,7 +7923,7 @@ const sl = _t(xh), si = (e, t = "14px -apple-system") => {
7923
7923
  } : void 0
7924
7924
  }
7925
7925
  ),
7926
- we
7926
+ Se
7927
7927
  ] });
7928
7928
  }
7929
7929
  ), cr = nt(il);
@@ -7955,7 +7955,7 @@ const al = (e) => {
7955
7955
  searchParams: R = [],
7956
7956
  setSearchValues: T,
7957
7957
  clearSelection: w
7958
- } = e, [A, k] = I(!1), [S, F] = I(!1), [P, E] = I(), [H, V] = I(1), [$, L] = I(0), [D, W] = I(), [G, j] = I([]), [ne, X] = I(void 0), [we, B] = I(void 0), U = q(C || ht), me = q([]), ee = O(
7958
+ } = e, [A, k] = I(!1), [S, F] = I(!1), [P, E] = I(), [H, V] = I(1), [$, L] = I(0), [D, W] = I(), [G, j] = I([]), [ne, X] = I(void 0), [Se, B] = I(void 0), U = q(C || gt), me = q([]), ee = O(
7959
7959
  (fe) => {
7960
7960
  g == null || g([...fe]), j([...fe]);
7961
7961
  },
@@ -7969,17 +7969,17 @@ const al = (e) => {
7969
7969
  context: d
7970
7970
  });
7971
7971
  if (W(fe.length), f == null || f(fe.length), fe.length > 0) {
7972
- const Pe = fe.map((Ne) => Ne == null ? void 0 : Ne[0]), { colors: Te, status: He } = qt(u), Be = {};
7973
- Te && (Be.colors = Te), He && (Be.status = He);
7974
- const Ie = await M.getHandler().readEvalUiObjects({
7972
+ const Pe = fe.map((Ne) => Ne == null ? void 0 : Ne[0]), { colors: Ie, status: He } = qt(u), Be = {};
7973
+ Ie && (Be.colors = Ie), He && (Be.status = He);
7974
+ const we = await M.getHandler().readEvalUiObjects({
7975
7975
  model: t,
7976
7976
  ids: Pe,
7977
7977
  arch: u == null ? void 0 : u.arch,
7978
7978
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
7979
7979
  context: d,
7980
7980
  attrs: Be
7981
- }), ce = Ie[0];
7982
- me.current = [...ce], X(_n(Ie[1])), B(gr(Ie[1]));
7981
+ }), ce = we[0];
7982
+ me.current = [...ce], X(_n(we[1])), B(gr(we[1]));
7983
7983
  const Ue = ce.map((Ne) => Ne.id), Ee = h !== void 0 ? xn({
7984
7984
  resultsToSort: ce,
7985
7985
  sorter: h,
@@ -8003,12 +8003,12 @@ const al = (e) => {
8003
8003
  f
8004
8004
  ]), re = O(
8005
8005
  async (fe) => {
8006
- const { params: Pe, newOffset: Te } = fe || {}, He = en(Pe || R, b), { colors: Be, status: Ie } = qt(u), ce = {};
8007
- Be && (ce.colors = Be), Ie && (ce.status = Ie);
8006
+ const { params: Pe, newOffset: Ie } = fe || {}, He = en(Pe || R, b), { colors: Be, status: we } = qt(u), ce = {};
8007
+ Be && (ce.colors = Be), we && (ce.status = we);
8008
8008
  const { totalItems: Ue, results: Ee, attrsEvaluated: Ne } = await M.getHandler().searchForTree({
8009
8009
  params: He,
8010
8010
  limit: U.current,
8011
- offset: Te || $,
8011
+ offset: Ie || $,
8012
8012
  model: t,
8013
8013
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
8014
8014
  context: d,
@@ -8022,7 +8022,7 @@ const al = (e) => {
8022
8022
  }) : [...me.current];
8023
8023
  if (ee(ve), v && ve.length > 0) {
8024
8024
  const de = ve.findIndex(
8025
- (Xe) => _ === Xe.id
8025
+ (Ze) => _ === Ze.id
8026
8026
  );
8027
8027
  de === -1 ? y == null || y(0) : y == null || y(de);
8028
8028
  } else
@@ -8087,8 +8087,8 @@ const al = (e) => {
8087
8087
  ]
8088
8088
  ), be = O(
8089
8089
  (fe) => {
8090
- const { params: Pe, searchValues: Te, limit: He, offset: Be } = fe;
8091
- A || (n == null || n(void 0), r == null || r([]), T == null || T(Te), o == null || o(Pe), a == null || a(!1), F(!0), E(void 0), V(1), He && (U.current = He, x == null || x(He)), Be && L(Be), z({
8090
+ const { params: Pe, searchValues: Ie, limit: He, offset: Be } = fe;
8091
+ A || (n == null || n(void 0), r == null || r([]), T == null || T(Ie), o == null || o(Pe), a == null || a(!1), F(!0), E(void 0), V(1), He && (U.current = He, x == null || x(He)), Be && L(Be), z({
8092
8092
  params: Pe,
8093
8093
  newOffset: Be
8094
8094
  }));
@@ -8109,7 +8109,7 @@ const al = (e) => {
8109
8109
  },
8110
8110
  [k, C, L, V]
8111
8111
  ), je = O(() => {
8112
- A || (n == null || n(void 0), o == null || o([]), T == null || T({}), E(void 0), L(0), V(1), x == null || x(C || ht));
8112
+ A || (n == null || n(void 0), o == null || o([]), T == null || T({}), E(void 0), L(0), V(1), x == null || x(C || gt));
8113
8113
  }, [
8114
8114
  A,
8115
8115
  n,
@@ -8117,18 +8117,18 @@ const al = (e) => {
8117
8117
  T,
8118
8118
  x,
8119
8119
  C
8120
- ]), xe = O(
8120
+ ]), Te = O(
8121
8121
  async (fe) => {
8122
- const Pe = fe[(u == null ? void 0 : u.field_parent) || "child_id"], Te = await M.getHandler().readObjects({
8122
+ const Pe = fe[(u == null ? void 0 : u.field_parent) || "child_id"], Ie = await M.getHandler().readObjects({
8123
8123
  model: t,
8124
8124
  ids: Pe,
8125
8125
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
8126
8126
  context: d
8127
8127
  });
8128
- return ee([...se(), ...Te]), mn(qt(u), Te);
8128
+ return ee([...se(), ...Ie]), mn(qt(u), Ie);
8129
8129
  },
8130
8130
  [u, t, d, se, ee]
8131
- ), Ce = O(async () => await M.getHandler().searchAllIds({
8131
+ ), xe = O(async () => await M.getHandler().searchAllIds({
8132
8132
  params: en(R, b),
8133
8133
  model: t,
8134
8134
  context: d,
@@ -8147,11 +8147,11 @@ const al = (e) => {
8147
8147
  getResults: se,
8148
8148
  requestPageChange: Oe,
8149
8149
  changeSort: Y,
8150
- fetchChildrenForRecord: xe,
8150
+ fetchChildrenForRecord: Te,
8151
8151
  colorsForResults: ne,
8152
- statusForResults: we,
8152
+ statusForResults: Se,
8153
8153
  totalItems: D,
8154
- getAllIds: Ce
8154
+ getAllIds: xe
8155
8155
  };
8156
8156
  };
8157
8157
  function Ah(e, t) {
@@ -8180,7 +8180,7 @@ function Ah(e, t) {
8180
8180
  selectedRowItems: j = void 0,
8181
8181
  setSelectedRowItems: ne = void 0,
8182
8182
  searchParams: X = [],
8183
- setSearchParams: we = void 0,
8183
+ setSearchParams: Se = void 0,
8184
8184
  searchVisible: B = !0,
8185
8185
  setSearchVisible: U = void 0,
8186
8186
  sorter: me = void 0,
@@ -8190,22 +8190,22 @@ function Ah(e, t) {
8190
8190
  setTreeIsLoading: re = void 0,
8191
8191
  searchValues: z = {},
8192
8192
  setSearchValues: Y = void 0,
8193
- limit: be = ht,
8193
+ limit: be = gt,
8194
8194
  setLimit: Oe = void 0
8195
8195
  } = (f ? $ : {}) || {}, je = O(
8196
8196
  (We) => {
8197
- ne == null || ne(We.map((ut) => ({ id: ut }))), m == null || m(We);
8197
+ ne == null || ne(We.map((ft) => ({ id: ft }))), m == null || m(We);
8198
8198
  },
8199
8199
  [m, ne]
8200
8200
  ), {
8201
- submit: xe,
8202
- clear: Ce,
8201
+ submit: Te,
8202
+ clear: xe,
8203
8203
  fetchResults: fe,
8204
8204
  tableRefreshing: Pe,
8205
- searchFilterLoading: Te,
8205
+ searchFilterLoading: Ie,
8206
8206
  searchError: He,
8207
8207
  page: Be,
8208
- limit: Ie,
8208
+ limit: we,
8209
8209
  offset: ce,
8210
8210
  getResults: Ue,
8211
8211
  requestPageChange: Ee,
@@ -8213,13 +8213,13 @@ function Ah(e, t) {
8213
8213
  fetchChildrenForRecord: ve,
8214
8214
  colorsForResults: Ae,
8215
8215
  statusForResults: de,
8216
- totalItems: Xe,
8216
+ totalItems: Ze,
8217
8217
  getAllIds: Ge
8218
8218
  } = al({
8219
8219
  model: _,
8220
8220
  setSearchTreeNameSearch: Z,
8221
8221
  setSelectedRowItems: je,
8222
- setSearchParams: we,
8222
+ setSearchParams: Se,
8223
8223
  setSearchValues: Y,
8224
8224
  searchParams: X,
8225
8225
  setSearchVisible: U,
@@ -8266,12 +8266,12 @@ function Ah(e, t) {
8266
8266
  type: "form",
8267
8267
  context: u
8268
8268
  }));
8269
- let ut = o;
8270
- o || (ut = await M.getHandler().getView({
8269
+ let ft = o;
8270
+ o || (ft = await M.getHandler().getView({
8271
8271
  model: n,
8272
8272
  type: "tree",
8273
8273
  context: u
8274
- })), w(We), R(ut);
8274
+ })), w(We), R(ft);
8275
8275
  };
8276
8276
  le(() => {
8277
8277
  st();
@@ -8283,7 +8283,7 @@ function Ah(e, t) {
8283
8283
  [Oe]
8284
8284
  ), he = O(
8285
8285
  async (We) => {
8286
- const { id: ut } = We;
8286
+ const { id: ft } = We;
8287
8287
  P.current || (P.current = await M.getHandler().treeButOpen({
8288
8288
  id: x.view_id,
8289
8289
  model: _,
@@ -8294,7 +8294,7 @@ function Ah(e, t) {
8294
8294
  actionData: Pt,
8295
8295
  fields: x.fields,
8296
8296
  values: {
8297
- active_id: ut,
8297
+ active_id: ft,
8298
8298
  ...We
8299
8299
  },
8300
8300
  context: u
@@ -8303,7 +8303,7 @@ function Ah(e, t) {
8303
8303
  [_, u, V, x]
8304
8304
  ), Re = O(
8305
8305
  async (We) => {
8306
- const { id: ut } = We;
8306
+ const { id: ft } = We;
8307
8307
  if (x != null && x.isExpandable) {
8308
8308
  try {
8309
8309
  await he(We);
@@ -8313,7 +8313,7 @@ function Ah(e, t) {
8313
8313
  return;
8314
8314
  }
8315
8315
  a({
8316
- id: ut,
8316
+ id: ft,
8317
8317
  model: _,
8318
8318
  formView: T,
8319
8319
  treeView: x
@@ -8322,7 +8322,7 @@ function Ah(e, t) {
8322
8322
  [_, T, a, he, x]
8323
8323
  ), ke = O(async () => {
8324
8324
  const We = await Ge();
8325
- ne == null || ne(We.map((ut) => ({ id: ut }))), m == null || m(We);
8325
+ ne == null || ne(We.map((ft) => ({ id: ft }))), m == null || m(We);
8326
8326
  }, [Ge, m, ne]), Ve = Q(() => x != null && x.isExpandable ? E - 160 : E - (S + 240), [E, S, x == null ? void 0 : x.isExpandable]), ye = Q(
8327
8327
  () => j == null ? void 0 : j.map((We) => We.id),
8328
8328
  [j]
@@ -8335,11 +8335,11 @@ function Ah(e, t) {
8335
8335
  T.search_fields,
8336
8336
  x.search_fields
8337
8337
  ]),
8338
- onClear: Ce,
8338
+ onClear: xe,
8339
8339
  limit: be,
8340
8340
  offset: ce,
8341
- isSearching: Te,
8342
- onSubmit: xe,
8341
+ isSearching: Ie,
8342
+ onSubmit: Te,
8343
8343
  onLimitChange: te,
8344
8344
  setSearchFilterHeight: F,
8345
8345
  searchError: He,
@@ -8352,8 +8352,8 @@ function Ah(e, t) {
8352
8352
  {
8353
8353
  ref: b,
8354
8354
  context: u,
8355
- total: Xe,
8356
- limit: Ie,
8355
+ total: Ze,
8356
+ limit: we,
8357
8357
  page: Be,
8358
8358
  treeView: x,
8359
8359
  results: Ue(),
@@ -8377,13 +8377,13 @@ function Ah(e, t) {
8377
8377
  Ve,
8378
8378
  je,
8379
8379
  Ne,
8380
- Ce,
8380
+ xe,
8381
8381
  Ae,
8382
8382
  ve,
8383
8383
  T,
8384
8384
  Ue,
8385
8385
  be,
8386
- Ie,
8386
+ we,
8387
8387
  ce,
8388
8388
  Re,
8389
8389
  te,
@@ -8392,22 +8392,22 @@ function Ah(e, t) {
8392
8392
  Ee,
8393
8393
  f,
8394
8394
  He,
8395
- Te,
8395
+ Ie,
8396
8396
  z,
8397
8397
  B,
8398
8398
  ke,
8399
8399
  ye,
8400
8400
  me,
8401
8401
  de,
8402
- xe,
8402
+ Te,
8403
8403
  Pe,
8404
- Xe,
8404
+ Ze,
8405
8405
  l,
8406
8406
  x
8407
8407
  ]), ot = A || He;
8408
- return ot ? /* @__PURE__ */ s(vt, { className: "mt-10", message: ot, type: "error", banner: !0 }) : /* @__PURE__ */ s("div", { style: d ? {} : { display: "none" }, children: h ? /* @__PURE__ */ s(et, {}) : Ke() });
8408
+ return ot ? /* @__PURE__ */ s(bt, { className: "mt-10", message: ot, type: "error", banner: !0 }) : /* @__PURE__ */ s("div", { style: d ? {} : { display: "none" }, children: h ? /* @__PURE__ */ s(tt, {}) : Ke() });
8409
8409
  }
8410
- const ll = _t(Ah), _h = ht, Rh = (e) => {
8410
+ const ll = _t(Ah), _h = gt, Rh = (e) => {
8411
8411
  const {
8412
8412
  treeViewFetching: t,
8413
8413
  treeOoui: n,
@@ -8448,21 +8448,21 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8448
8448
  setOrder: W,
8449
8449
  limit: G,
8450
8450
  setLimit: j
8451
- } = el({ useLocalState: !a }), { treeMaxLimit: ne } = on(), X = Math.min(G, ne), [we, B] = I(!0), [U, me] = I(), [ee, se] = I([]), [Z, re] = I(!1), z = i || k, Y = q(z), be = q(w), Oe = q(p), je = q(), xe = q([]), Ce = q(!1), fe = Q(() => Ta({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), {
8451
+ } = el({ useLocalState: !a }), { treeMaxLimit: ne } = on(), X = Math.min(G, ne), [Se, B] = I(!0), [U, me] = I(), [ee, se] = I([]), [Z, re] = I(!1), z = i || k, Y = q(z), be = q(w), Oe = q(p), je = q(), Te = q([]), xe = q(!1), fe = Q(() => Ta({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), {
8452
8452
  fetchColumnState: Pe,
8453
- loading: Te,
8453
+ loading: Ie,
8454
8454
  getColumnState: He,
8455
8455
  updateColumnState: Be
8456
8456
  } = Go({
8457
8457
  key: fe,
8458
8458
  treeViewFetching: t
8459
- }), Ie = O((Se) => {
8460
- xe.current = xe.current.map((Me) => {
8461
- const Ze = Se.find((ue) => ue.id === Me.id);
8462
- return { ...Me, ...Ze };
8463
- }), se((Me) => Me.map((Ze) => {
8464
- const ue = Se.find((_e) => _e.id === Ze.id);
8465
- return { ...Ze, ...ue };
8459
+ }), we = O((Ce) => {
8460
+ Te.current = Te.current.map((Me) => {
8461
+ const et = Ce.find((ue) => ue.id === Me.id);
8462
+ return { ...Me, ...et };
8463
+ }), se((Me) => Me.map((et) => {
8464
+ const ue = Ce.find((_e) => _e.id === et.id);
8465
+ return { ...et, ...ue };
8466
8466
  }));
8467
8467
  }, []), {
8468
8468
  colorsForResults: ce,
@@ -8475,14 +8475,14 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8475
8475
  isFieldLoading: ve,
8476
8476
  refresh: Ae,
8477
8477
  addRecordsToCheckFunctionFields: de,
8478
- onHasFunctionFieldsToParseConditions: Xe
8478
+ onHasFunctionFieldsToParseConditions: Ze
8479
8479
  } = rl({
8480
8480
  model: o,
8481
8481
  treeView: r,
8482
8482
  tableRef: l,
8483
8483
  context: d,
8484
8484
  isActive: V,
8485
- onResultsUpdated: Ie,
8485
+ onResultsUpdated: we,
8486
8486
  treeOoui: n,
8487
8487
  updateAttributes: Ee,
8488
8488
  results: P
@@ -8505,21 +8505,21 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8505
8505
  ), ye = Q(
8506
8506
  () => en(w || [], c),
8507
8507
  [c, w]
8508
- ), Ke = Q(() => (x == null ? void 0 : x.map((Se) => Se.id)) || [], [x]), ot = O(() => {
8508
+ ), Ke = Q(() => (x == null ? void 0 : x.map((Ce) => Ce.id)) || [], [x]), ot = O(() => {
8509
8509
  const Me = `${JSON.stringify(z ? c : ye)}-${z}`;
8510
8510
  return Me !== je.current ? (je.current = Me, !0) : !1;
8511
8511
  }, [c, ye, z]), Tt = O(async () => {
8512
8512
  me(void 0), H(0), B(!0);
8513
8513
  try {
8514
- const Se = await at({
8514
+ const Ce = await at({
8515
8515
  params: z ? c : ye,
8516
8516
  model: o,
8517
8517
  context: d,
8518
8518
  name_search: z
8519
8519
  });
8520
- me(Se), H(Se);
8521
- } catch (Se) {
8522
- st(Se);
8520
+ me(Ce), H(Ce);
8521
+ } catch (Ce) {
8522
+ st(Ce);
8523
8523
  } finally {
8524
8524
  B(!1);
8525
8525
  }
@@ -8532,19 +8532,19 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8532
8532
  o,
8533
8533
  d,
8534
8534
  st
8535
- ]), We = O(() => b, [b]), ut = O(() => _, [_]), Pt = O((Se) => {
8536
- var Me, Ze, ue, _e;
8537
- return ce.current[(Ze = (Me = Se.node) == null ? void 0 : Me.data) == null ? void 0 : Ze.id] ? { color: ce.current[(_e = (ue = Se.node) == null ? void 0 : ue.data) == null ? void 0 : _e.id] } : {};
8535
+ ]), We = O(() => b, [b]), ft = O(() => _, [_]), Pt = O((Ce) => {
8536
+ var Me, et, ue, _e;
8537
+ return ce.current[(et = (Me = Ce.node) == null ? void 0 : Me.data) == null ? void 0 : et.id] ? { color: ce.current[(_e = (ue = Ce.node) == null ? void 0 : ue.data) == null ? void 0 : _e.id] } : {};
8538
8538
  }, []), Ot = O(
8539
- (Se) => {
8539
+ (Ce) => {
8540
8540
  var Me;
8541
- return (Me = Ue.current) == null ? void 0 : Me[Se.id];
8541
+ return (Me = Ue.current) == null ? void 0 : Me[Ce.id];
8542
8542
  },
8543
8543
  // eslint-disable-next-line react-hooks/exhaustive-deps
8544
8544
  []
8545
8545
  ), sn = O(() => {
8546
- var Se;
8547
- g([]), (Se = l.current) == null || Se.unselectAll(), S == null || S(void 0), R == null || R([]), A == null || A(void 0);
8546
+ var Ce;
8547
+ g([]), (Ce = l.current) == null || Ce.unselectAll(), S == null || S(void 0), R == null || R([]), A == null || A(void 0);
8548
8548
  }, [
8549
8549
  g,
8550
8550
  l,
@@ -8552,9 +8552,9 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8552
8552
  R,
8553
8553
  A
8554
8554
  ]), hn = O(
8555
- ({ params: Se, searchValues: Me }) => {
8556
- var Ze;
8557
- g([]), (Ze = l.current) == null || Ze.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Me);
8555
+ ({ params: Ce, searchValues: Me }) => {
8556
+ var et;
8557
+ g([]), (et = l.current) == null || et.unselectAll(), S == null || S(void 0), R == null || R(Ce), A == null || A(Me);
8558
8558
  },
8559
8559
  [
8560
8560
  g,
@@ -8567,9 +8567,9 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8567
8567
  () => y == null ? void 0 : y(!1),
8568
8568
  [y]
8569
8569
  ), gn = O(
8570
- ({ params: Se, values: Me }) => {
8571
- var Ze;
8572
- g([]), (Ze = l.current) == null || Ze.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Me), y == null || y(!1);
8570
+ ({ params: Ce, values: Me }) => {
8571
+ var et;
8572
+ g([]), (et = l.current) == null || et.unselectAll(), S == null || S(void 0), R == null || R(Ce), A == null || A(Me), y == null || y(!1);
8573
8573
  },
8574
8574
  [
8575
8575
  g,
@@ -8596,39 +8596,39 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8596
8596
  c,
8597
8597
  D
8598
8598
  ]), le(() => {
8599
- var Se;
8599
+ var Ce;
8600
8600
  if (z !== Y.current) {
8601
8601
  if (z !== void 0 && Y.current === void 0 || typeof z == "string" && typeof Y.current == "string" && z !== Y.current) {
8602
- R == null || R([]), A == null || A({}), (Se = l.current) == null || Se.unselectAll(), Y.current = z;
8602
+ R == null || R([]), A == null || A({}), (Ce = l.current) == null || Ce.unselectAll(), Y.current = z;
8603
8603
  return;
8604
8604
  }
8605
8605
  z === void 0 && Y.current !== void 0 && B(!0), Y.current = z;
8606
8606
  }
8607
8607
  }, [z]), Ft(() => {
8608
- const Se = !es(
8608
+ const Ce = !es(
8609
8609
  w,
8610
8610
  be.current
8611
8611
  ), Me = Oe.current && !p;
8612
- Se && (Me || f === "top") && Qt(), be.current = w, Oe.current = p;
8612
+ Ce && (Me || f === "top") && Qt(), be.current = w, Oe.current = p;
8613
8613
  }, [w, p]);
8614
8614
  const Ut = O(async () => {
8615
8615
  if (!n || t)
8616
8616
  return [];
8617
- if (Ce.current)
8617
+ if (xe.current)
8618
8618
  return [];
8619
- Ce.current = !0;
8619
+ xe.current = !0;
8620
8620
  try {
8621
8621
  h(!0);
8622
- let Se;
8622
+ let Ce;
8623
8623
  if (D != null && D.length) {
8624
8624
  const Nt = yr({
8625
8625
  state: D
8626
8626
  });
8627
- Se = vr(Nt);
8627
+ Ce = vr(Nt);
8628
8628
  }
8629
- const Me = z ? c : ye, Ze = (r == null ? void 0 : r.fields_in_conditions) !== void 0, ue = Gr({
8629
+ const Me = z ? c : ye, et = (r == null ? void 0 : r.fields_in_conditions) !== void 0, ue = Gr({
8630
8630
  treeOoui: n,
8631
- hasFunctionFieldsToParseConditions: Ze && Xe()
8631
+ hasFunctionFieldsToParseConditions: et && Ze()
8632
8632
  }), { results: _e, attrsEvaluated: rt } = await he({
8633
8633
  params: Me,
8634
8634
  limit: X,
@@ -8637,9 +8637,9 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8637
8637
  fields: r.field_parent ? { ...r.fields, [r.field_parent]: {} } : r.fields,
8638
8638
  context: d,
8639
8639
  attrs: ue,
8640
- order: Se,
8640
+ order: Ce,
8641
8641
  name_search: z,
8642
- skipFunctionFields: Ze,
8642
+ skipFunctionFields: et,
8643
8643
  onIdsRetrieved: (Nt) => {
8644
8644
  de(Nt);
8645
8645
  }
@@ -8650,15 +8650,15 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8650
8650
  name_search: z,
8651
8651
  context: d
8652
8652
  }), F == null || F(_e), z ? (me(_e.length), H(_e.length), re(!0), B(!1)) : re(!1), !z && ot() && Tt(), _e.length === 0) {
8653
- xe.current = [], me(0), H(0), se([]), h(!1);
8653
+ Te.current = [], me(0), H(0), se([]), h(!1);
8654
8654
  return;
8655
8655
  }
8656
8656
  const lt = mn(n, _e);
8657
- Ee(rt, n), h(!1), xe.current = [...lt], se([...lt]);
8658
- } catch (Se) {
8659
- throw console.error(Se), Se;
8657
+ Ee(rt, n), h(!1), Te.current = [...lt], se([...lt]);
8658
+ } catch (Ce) {
8659
+ throw console.error(Ce), Ce;
8660
8660
  } finally {
8661
- Ce.current = !1;
8661
+ xe.current = !1;
8662
8662
  }
8663
8663
  }, [
8664
8664
  n,
@@ -8674,7 +8674,7 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8674
8674
  o,
8675
8675
  r,
8676
8676
  d,
8677
- Xe,
8677
+ Ze,
8678
8678
  E,
8679
8679
  F,
8680
8680
  ot,
@@ -8694,12 +8694,12 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8694
8694
  Ut,
8695
8695
  Ae
8696
8696
  ]), Wt = O(
8697
- (Se, Me) => {
8697
+ (Ce, Me) => {
8698
8698
  if (Me === -1) {
8699
8699
  u == null || u("infinite");
8700
8700
  return;
8701
8701
  }
8702
- v(0), C(void 0), g([]), L(Se), Me && j(Me);
8702
+ v(0), C(void 0), g([]), L(Ce), Me && j(Me);
8703
8703
  },
8704
8704
  [
8705
8705
  u,
@@ -8715,14 +8715,14 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8715
8715
  context: d,
8716
8716
  totalItems: U
8717
8717
  }), [ke, w, c, o, d, U]), Vt = O(async () => {
8718
- const Se = await Yt();
8719
- g == null || g(Se.map((Me) => ({ id: Me })));
8718
+ const Ce = await Yt();
8719
+ g == null || g(Ce.map((Me) => ({ id: Me })));
8720
8720
  }, [Yt, g]), Gt = Q(() => Ke.length === 0 ? "unchecked" : Ke.length === X && X > 0 || Ke.length === U ? "checked" : "indeterminate", [Ke, X, U]), jn = O(() => {
8721
- var Se, Me;
8722
- Gt === "unchecked" ? ((Se = l.current) == null || Se.selectAll(), g(ee.map((Ze) => ({ id: Ze.id })))) : (g([]), (Me = l.current) == null || Me.unselectAll());
8721
+ var Ce, Me;
8722
+ Gt === "unchecked" ? ((Ce = l.current) == null || Ce.selectAll(), g(ee.map((et) => ({ id: et.id })))) : (g([]), (Me = l.current) == null || Me.unselectAll());
8723
8723
  }, [l, g, ee, Gt]), Un = O(
8724
- (Se) => {
8725
- W(Se), v(0), C(void 0), L(1);
8724
+ (Ce) => {
8725
+ W(Ce), v(0), C(void 0), L(1);
8726
8726
  },
8727
8727
  [
8728
8728
  W,
@@ -8731,13 +8731,13 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8731
8731
  v
8732
8732
  ]
8733
8733
  ), Wn = O(
8734
- ({ id: Se, selected: Me }) => {
8735
- g((Ze) => {
8734
+ ({ id: Ce, selected: Me }) => {
8735
+ g((et) => {
8736
8736
  if (Me) {
8737
- const ue = ee.find((_e) => _e.id === Se);
8738
- return ue && !Ze.some((_e) => _e.id === Se) ? [...Ze, ue] : Ze;
8737
+ const ue = ee.find((_e) => _e.id === Ce);
8738
+ return ue && !et.some((_e) => _e.id === Ce) ? [...et, ue] : et;
8739
8739
  }
8740
- return Ze.filter((ue) => ue.id !== Se);
8740
+ return et.filter((ue) => ue.id !== Ce);
8741
8741
  });
8742
8742
  },
8743
8743
  [ee, g]
@@ -8756,7 +8756,7 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8756
8756
  onSearchFilterSubmit: hn,
8757
8757
  onSideSearchFilterClose: kt,
8758
8758
  onSideSearchFilterSubmit: gn,
8759
- totalRowsLoading: we,
8759
+ totalRowsLoading: Se,
8760
8760
  totalRows: U,
8761
8761
  onRowStyle: Pt,
8762
8762
  results: ee,
@@ -8765,7 +8765,7 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8765
8765
  selectAllRecords: Vt,
8766
8766
  onHeaderCheckboxClick: jn,
8767
8767
  headerCheckboxState: Gt,
8768
- getColumnStateInProgress: Te,
8768
+ getColumnStateInProgress: Ie,
8769
8769
  getColumnState: He,
8770
8770
  updateColumnState: Be,
8771
8771
  currentPage: $,
@@ -8773,7 +8773,7 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8773
8773
  order: D,
8774
8774
  setOrder: W,
8775
8775
  setTreeFirstVisibleColumn: C,
8776
- onGetFirstVisibleColumn: ut,
8776
+ onGetFirstVisibleColumn: ft,
8777
8777
  onSortChange: Un,
8778
8778
  isFieldLoading: ve,
8779
8779
  setSearchVisible: y,
@@ -8820,7 +8820,7 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8820
8820
  n == null ? void 0 : n.search_fields
8821
8821
  ]),
8822
8822
  showLimitOptions: !1,
8823
- limit: ht,
8823
+ limit: gt,
8824
8824
  offset: 0,
8825
8825
  isSearching: !1,
8826
8826
  searchValues: o,
@@ -8991,7 +8991,7 @@ function Ph(e, t) {
8991
8991
  totalRows: j,
8992
8992
  onRowStyle: ne,
8993
8993
  results: X,
8994
- onRequestPageChange: we,
8994
+ onRequestPageChange: Se,
8995
8995
  treeIsLoading: B,
8996
8996
  selectAllRecords: U,
8997
8997
  onHeaderCheckboxClick: me,
@@ -9004,11 +9004,11 @@ function Ph(e, t) {
9004
9004
  order: be,
9005
9005
  setTreeFirstVisibleColumn: Oe,
9006
9006
  onGetFirstVisibleColumn: je,
9007
- onSortChange: xe,
9008
- isFieldLoading: Ce,
9007
+ onSortChange: Te,
9008
+ isFieldLoading: xe,
9009
9009
  setSearchVisible: fe,
9010
9010
  nameSearchFetchCompleted: Pe,
9011
- nameSearch: Te
9011
+ nameSearch: Ie
9012
9012
  } = Rh({
9013
9013
  treeViewFetching: C,
9014
9014
  treeOoui: x,
@@ -9021,7 +9021,7 @@ function Ph(e, t) {
9021
9021
  filterType: u,
9022
9022
  context: d,
9023
9023
  onChangeTreeType: m
9024
- }), He = ii(F), [Be, Ie, ce] = Ko({
9024
+ }), He = ii(F), [Be, we, ce] = Ko({
9025
9025
  ooui: x,
9026
9026
  model: n,
9027
9027
  showEmptyValues: !0,
@@ -9034,7 +9034,7 @@ function Ph(e, t) {
9034
9034
  refreshResults: F,
9035
9035
  getFields: () => b == null ? void 0 : b.fields
9036
9036
  }));
9037
- const Ue = Q(() => ce ? /* @__PURE__ */ s(qo, { aggregates: Ie, isLoading: Be }) : null, [Ie, Be, ce]), Ee = O(
9037
+ const Ue = Q(() => ce ? /* @__PURE__ */ s(qo, { aggregates: we, isLoading: Be }) : null, [we, Be, ce]), Ee = O(
9038
9038
  (Ge) => /* @__PURE__ */ s(tr, { color: Ge, style: { marginLeft: 7 } }),
9039
9039
  []
9040
9040
  ), Ne = Q(
@@ -9044,7 +9044,7 @@ function Ph(e, t) {
9044
9044
  ...l ? {} : { display: "none" }
9045
9045
  }),
9046
9046
  [v, l]
9047
- ), ve = Te !== void 0 && Pe, Ae = ve && j !== void 0 && j !== null && j === ht, de = Q(() => typeof j != "number" || isNaN(j) || j < 0 ? (X == null ? void 0 : X.length) || 0 : j || 0, [j, X]), Xe = Q(() => (X == null ? void 0 : X.length) > 0 && (typeof j != "number" || isNaN(j) || j < 0) ? X == null ? void 0 : X.length : f ? ht : Y || _h, [X == null ? void 0 : X.length, j, f, Y]);
9047
+ ), ve = Ie !== void 0 && Pe, Ae = ve && j !== void 0 && j !== null && j === gt, de = Q(() => typeof j != "number" || isNaN(j) || j < 0 ? (X == null ? void 0 : X.length) || 0 : j || 0, [j, X]), Ze = Q(() => (X == null ? void 0 : X.length) > 0 && (typeof j != "number" || isNaN(j) || j < 0) ? X == null ? void 0 : X.length : f ? gt : Y || _h, [X == null ? void 0 : X.length, j, f, Y]);
9048
9048
  return /* @__PURE__ */ N(En, { children: [
9049
9049
  /* @__PURE__ */ s(
9050
9050
  Eh,
@@ -9066,10 +9066,10 @@ function Ph(e, t) {
9066
9066
  total: de,
9067
9067
  totalRowsLoading: G,
9068
9068
  page: f ? 1 : z || 1,
9069
- pageSize: Xe,
9069
+ pageSize: Ze,
9070
9070
  maxPageSize: g,
9071
9071
  currentPageSelectedCount: S.length,
9072
- onRequestPageChange: we,
9072
+ onRequestPageChange: Se,
9073
9073
  totalSelectedCount: S.length,
9074
9074
  onSelectAllGlobalRecords: U,
9075
9075
  simpleSummary: ve,
@@ -9082,7 +9082,7 @@ function Ph(e, t) {
9082
9082
  )
9083
9083
  }
9084
9084
  ),
9085
- /* @__PURE__ */ s("div", { ref: p, style: Ne, children: C ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
9085
+ /* @__PURE__ */ s("div", { ref: p, style: Ne, children: C ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
9086
9086
  cl,
9087
9087
  {
9088
9088
  columns: w,
@@ -9107,9 +9107,9 @@ function Ph(e, t) {
9107
9107
  onHeaderCheckboxClick: me,
9108
9108
  refresh: He,
9109
9109
  actionViewSortState: be,
9110
- onSortChange: xe,
9110
+ onSortChange: Te,
9111
9111
  tableRef: h,
9112
- isFieldLoading: Ce,
9112
+ isFieldLoading: xe,
9113
9113
  onChangeTreeType: m
9114
9114
  }
9115
9115
  ) })
@@ -9198,7 +9198,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9198
9198
  y.current && !t && g === "infinite" && (T == null || T([])), y.current = t;
9199
9199
  }, [t, g]);
9200
9200
  const A = O((k) => {
9201
- v(k), k === "paginated" && (_ == null || _(p || ht)), k === "infinite" && (_ == null || _(0));
9201
+ v(k), k === "paginated" && (_ == null || _(p || gt)), k === "infinite" && (_ == null || _(0));
9202
9202
  }, []);
9203
9203
  return t ? /* @__PURE__ */ N(En, { children: [
9204
9204
  /* @__PURE__ */ s(Br, { showSummary: g !== "infinite", children: /* @__PURE__ */ s(
@@ -9287,24 +9287,24 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9287
9287
  initialSearchParams: S,
9288
9288
  initialCurrentPage: F,
9289
9289
  initialOrder: P
9290
- } = e, [E, H] = I(!1), [V, $] = I(!1), [L, D] = I(!1), [W, G] = I(!0), [j, ne] = I(!0), [X, we] = I([]), [B, U] = I(!1), [me, ee] = I(
9290
+ } = e, [E, H] = I(!1), [V, $] = I(!1), [L, D] = I(!1), [W, G] = I(!0), [j, ne] = I(!0), [X, Se] = I([]), [B, U] = I(!1), [me, ee] = I(
9291
9291
  S || []
9292
9292
  ), [se, Z] = I(!1), [re, z] = I(!0), [Y, be] = I(), [Oe, je] = I(
9293
9293
  Hu(
9294
9294
  S || [],
9295
9295
  n.fields
9296
9296
  )
9297
- ), [xe, Ce] = I(0), [fe, Pe] = I(void 0), [Te, He] = I(), [Be, Ie] = I(er), [ce, Ue] = I(
9297
+ ), [Te, xe] = I(0), [fe, Pe] = I(void 0), [Ie, He] = I(), [Be, we] = I(er), [ce, Ue] = I(
9298
9298
  P
9299
9299
  ), [Ee, Ne] = I(
9300
- A !== void 0 ? A : ht
9301
- ), [ve, Ae] = I(r), [de, Xe] = I(
9300
+ A !== void 0 ? A : gt
9301
+ ), [ve, Ae] = I(r), [de, Ze] = I(
9302
9302
  F || 1
9303
9303
  );
9304
9304
  le(() => {
9305
9305
  m && m.length > 0 && !h && (p == null || p(0), f == null || f(m[0].id));
9306
9306
  }, [m]), le(() => {
9307
- Ne(A !== void 0 ? A : ht);
9307
+ Ne(A !== void 0 ? A : gt);
9308
9308
  }, [A]), le(() => {
9309
9309
  a.length === 1 ? be(a[0]) : a.length > 1 && be(
9310
9310
  a.filter(
@@ -9352,7 +9352,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9352
9352
  treeIsLoading: j,
9353
9353
  setTreeIsLoading: ne,
9354
9354
  attachments: X,
9355
- setAttachments: we,
9355
+ setAttachments: Se,
9356
9356
  selectedRowItems: x,
9357
9357
  setSelectedRowItems: C,
9358
9358
  duplicatingItem: B,
@@ -9378,18 +9378,18 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9378
9378
  setLimit: Ne,
9379
9379
  setTitle: Ae,
9380
9380
  isActive: k,
9381
- setTreeFirstVisibleRow: Ce,
9382
- treeFirstVisibleRow: xe,
9381
+ setTreeFirstVisibleRow: xe,
9382
+ treeFirstVisibleRow: Te,
9383
9383
  treeFirstVisibleColumn: fe,
9384
9384
  setTreeFirstVisibleColumn: Pe,
9385
- searchQuery: Te,
9385
+ searchQuery: Ie,
9386
9386
  setSearchQuery: He,
9387
9387
  treeType: Be,
9388
- setTreeType: Ie,
9388
+ setTreeType: we,
9389
9389
  order: ce,
9390
9390
  setOrder: Ue,
9391
9391
  currentPage: de,
9392
- setCurrentPage: Xe
9392
+ setCurrentPage: Ze
9393
9393
  },
9394
9394
  children: t
9395
9395
  }
@@ -9430,7 +9430,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9430
9430
  searchTreeNameSearch: void 0,
9431
9431
  goToResourceId: async () => {
9432
9432
  },
9433
- limit: ht,
9433
+ limit: gt,
9434
9434
  isActive: void 0,
9435
9435
  formIsSaving: !1,
9436
9436
  setFormIsSaving: () => {
@@ -9615,7 +9615,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9615
9615
  }, [n]), u || !m)
9616
9616
  return /* @__PURE__ */ s(sr, {});
9617
9617
  if (f)
9618
- return /* @__PURE__ */ s(vt, { className: "mt-10", message: f, type: "error", banner: !0 });
9618
+ return /* @__PURE__ */ s(bt, { className: "mt-10", message: f, type: "error", banner: !0 });
9619
9619
  switch (m.type) {
9620
9620
  case "indicatorField":
9621
9621
  case "indicator": {
@@ -9654,7 +9654,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9654
9654
  default:
9655
9655
  return /* @__PURE__ */ s(oe, { children: `Graph ${m.type} not implemented` });
9656
9656
  }
9657
- }, dl = _t(Hh), { useToken: Bh } = Qe, { Text: ai } = nn, ul = (e) => {
9657
+ }, dl = _t(Hh), { useToken: Bh } = Xe, { Text: ai } = nn, ul = (e) => {
9658
9658
  const {
9659
9659
  title: t,
9660
9660
  children: n,
@@ -9732,7 +9732,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9732
9732
  ]
9733
9733
  }
9734
9734
  );
9735
- }, { useToken: jh } = Qe, Uh = (e) => {
9735
+ }, { useToken: jh } = Xe, Uh = (e) => {
9736
9736
  const { ooui: t } = e, n = t.actionId !== void 0;
9737
9737
  return /* @__PURE__ */ s($e, { ooui: t, children: n ? /* @__PURE__ */ s(hr, { children: /* @__PURE__ */ s(Yh, { ooui: t }) }) : /* @__PURE__ */ s(Wh, { ooui: t }) });
9738
9738
  }, Wh = (e) => {
@@ -9782,7 +9782,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9782
9782
  time: "HH:mm",
9783
9783
  datetime: "DD/MM/YYYY HH:mm"
9784
9784
  };
9785
- m = r ? tt(r).format(y[n.fieldType]) : " ";
9785
+ m = r ? Qe(r).format(y[n.fieldType]) : " ";
9786
9786
  }
9787
9787
  if (n.fieldType === "many2one" && r && ((p = n.raw_props) != null && p.relation) && (m = /* @__PURE__ */ N(it, { children: [
9788
9788
  m,
@@ -9854,7 +9854,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9854
9854
  ]
9855
9855
  }
9856
9856
  );
9857
- }, Gh = gt(vi)`
9857
+ }, Gh = yt(vi)`
9858
9858
  &.ant-empty.ant-empty-normal {
9859
9859
  margin: 0;
9860
9860
  margin-top: 5px;
@@ -9929,7 +9929,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9929
9929
  }
9930
9930
  );
9931
9931
  };
9932
- return c ? /* @__PURE__ */ s(vt, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(
9932
+ return c ? /* @__PURE__ */ s(bt, { className: "mt-10", message: c, type: "error", banner: !0 }) : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(
9933
9933
  fn,
9934
9934
  {
9935
9935
  mode: "multiple",
@@ -10234,18 +10234,18 @@ function ug(e, t) {
10234
10234
  forcedValues: R = {},
10235
10235
  parentWidth: T,
10236
10236
  onMustRefreshParent: w
10237
- } = e, { t: A } = ge(), [k, S] = I(!1), [F, P] = I(), [E, H] = I(), [V] = Et.useForm(), [$, L] = I(), [D, W] = I(), G = ae(fl), [j, ne] = I(), [X, we] = I(!1), B = q(), U = q({}), me = q({}), ee = q(!1), se = q(!1), Z = q(!1), z = (T !== void 0 ? T : j) < dg, Y = ae(Je), { activeId: be, getPlainValues: Oe } = Y || {}, je = q(!1), xe = ae(
10237
+ } = e, { t: A } = ge(), [k, S] = I(!1), [F, P] = I(), [E, H] = I(), [V] = Et.useForm(), [$, L] = I(), [D, W] = I(), G = ae(fl), [j, ne] = I(), [X, Se] = I(!1), B = q(), U = q({}), me = q({}), ee = q(!1), se = q(!1), Z = q(!1), z = (T !== void 0 ? T : j) < dg, Y = ae(Je), { activeId: be, getPlainValues: Oe } = Y || {}, je = q(!1), Te = ae(
10238
10238
  Ct
10239
10239
  ), {
10240
- setFormIsSaving: Ce = void 0,
10240
+ setFormIsSaving: xe = void 0,
10241
10241
  setFormHasChanges: fe = void 0,
10242
10242
  setCurrentId: Pe = void 0,
10243
- setFormIsLoading: Te = void 0,
10243
+ setFormIsLoading: Ie = void 0,
10244
10244
  setAttachments: He = void 0,
10245
10245
  title: Be = void 0,
10246
- setTitle: Ie = void 0,
10246
+ setTitle: we = void 0,
10247
10247
  isActive: ce = void 0
10248
- } = (C ? xe : {}) || {}, Ue = ae(
10248
+ } = (C ? Te : {}) || {}, Ue = ae(
10249
10249
  Nn
10250
10250
  ), { processAction: Ee, globalValues: Ne } = Ue || {};
10251
10251
  Dt(t, () => ({
@@ -10270,13 +10270,13 @@ function ug(e, t) {
10270
10270
  }, [r, n, h, p, _]), le(() => {
10271
10271
  X && (Gt({
10272
10272
  elementHasLostFocus: !0
10273
- }), we(!1));
10273
+ }), Se(!1));
10274
10274
  }, [X]);
10275
10275
  const ve = (K, J, pe, ie) => {
10276
- fe == null || fe(!1), Ce == null || Ce(!1), a == null || a(K, J, pe, ie), Pe == null || Pe(K), je.current && (w == null || w());
10276
+ fe == null || fe(!1), xe == null || xe(!1), a == null || a(K, J, pe, ie), Pe == null || Pe(K), je.current && (w == null || w());
10277
10277
  }, Ae = (K) => {
10278
- Ce == null || Ce(!1), d == null || d(K);
10279
- }, de = O(() => r || B.current, [r]), Xe = r || B.current;
10278
+ xe == null || xe(!1), d == null || d(K);
10279
+ }, de = O(() => r || B.current, [r]), Ze = r || B.current;
10280
10280
  function Ge() {
10281
10281
  return D;
10282
10282
  }
@@ -10336,13 +10336,13 @@ function ug(e, t) {
10336
10336
  K[J] === void 0 && delete K[J];
10337
10337
  return K;
10338
10338
  }, [ye, Re, D]), ot = O(() => {
10339
- je.current && (w == null || w()), Ce == null || Ce(!1), o == null || o({ id: de(), values: Ke() });
10339
+ je.current && (w == null || w()), xe == null || xe(!1), o == null || o({ id: de(), values: Ke() });
10340
10340
  }, [
10341
10341
  de,
10342
10342
  Ke,
10343
10343
  w,
10344
10344
  o,
10345
- Ce
10345
+ xe
10346
10346
  ]), Tt = (K, J) => {
10347
10347
  kt({
10348
10348
  values: {
@@ -10353,7 +10353,7 @@ function ug(e, t) {
10353
10353
  reset: !1
10354
10354
  });
10355
10355
  }, We = (K) => V.getFieldsValue(!0)[K];
10356
- async function ut() {
10356
+ async function ft() {
10357
10357
  try {
10358
10358
  return await V.validateFields(), !1;
10359
10359
  } catch {
@@ -10361,7 +10361,7 @@ function ug(e, t) {
10361
10361
  }
10362
10362
  }
10363
10363
  const Pt = async () => {
10364
- P(void 0), Te == null || Te(!0);
10364
+ P(void 0), Ie == null || Ie(!0);
10365
10365
  let K;
10366
10366
  try {
10367
10367
  p ? K = { arch: p.arch, fields: p.fields } : K = await hn();
@@ -10371,11 +10371,11 @@ function ug(e, t) {
10371
10371
  arch: pe
10372
10372
  });
10373
10373
  } catch (J) {
10374
- P(J != null && J.message ? J.message + J.stack : J), Te == null || Te(!1);
10374
+ P(J != null && J.message ? J.message + J.stack : J), Ie == null || Ie(!1);
10375
10375
  }
10376
10376
  }, Ot = async (K) => {
10377
10377
  let J, pe, ie, De;
10378
- Te == null || Te(!0), P(void 0), K != null && K.fields ? (pe = K.fields, ie = K.arch) : (pe = D, ie = $), h && (K == null ? void 0 : K.forceRefresh) !== !0 ? J = h : { values: J, defaultGetCalled: De } = await gn({
10378
+ Ie == null || Ie(!0), P(void 0), K != null && K.fields ? (pe = K.fields, ie = K.arch) : (pe = D, ie = $), h && (K == null ? void 0 : K.forceRefresh) !== !0 ? J = h : { values: J, defaultGetCalled: De } = await gn({
10379
10379
  fields: pe,
10380
10380
  arch: ie
10381
10381
  }), b && (J = { ...eu(b), ...J }), U.current = wn(J, pe), kt({
@@ -10383,7 +10383,7 @@ function ug(e, t) {
10383
10383
  fields: pe,
10384
10384
  reset: !0,
10385
10385
  isDefaultGet: De
10386
- }), Vt({ fields: pe, arch: ie, values: J }), Te == null || Te(!1), fe == null || fe(!1), De && we(!0);
10386
+ }), Vt({ fields: pe, arch: ie, values: J }), Ie == null || Ie(!1), fe == null || fe(!1), De && Se(!0);
10387
10387
  }, sn = async () => new Promise(async (K) => {
10388
10388
  Ve() ? Vn({
10389
10389
  t: A,
@@ -10502,15 +10502,15 @@ function ug(e, t) {
10502
10502
  }
10503
10503
  if (!Ve() && de() && pe)
10504
10504
  return se.current = !1, fe == null || fe(!1), ot == null || ot(), { succeed: !0, id: de() };
10505
- if (await ut())
10505
+ if (await ft())
10506
10506
  return se.current = !1, li(A), { succeed: !1, id: de() };
10507
- S(!0), Ce == null || Ce(!0);
10507
+ S(!0), xe == null || xe(!0);
10508
10508
  try {
10509
10509
  m === "api" ? await Ut(K) : await Qt(K), u && (B.current = void 0, kt({ values: {}, fields: D, reset: !0 })), await Ot({ forceRefresh: !0 }), J = !0, Yn.success(A("savedRegisters"));
10510
10510
  } catch (ie) {
10511
- se.current = !1, S(!1), Ce == null || Ce(!1), Ae == null || Ae(ie), Yn.error(A("errorWhileSavingForm")), P(ie != null && ie.message ? ie.message : ie);
10511
+ se.current = !1, S(!1), xe == null || xe(!1), Ae == null || Ae(ie), Yn.error(A("errorWhileSavingForm")), P(ie != null && ie.message ? ie.message : ie);
10512
10512
  } finally {
10513
- se.current = !1, Ce == null || Ce(!1), S(!1);
10513
+ se.current = !1, xe == null || xe(!1), S(!1);
10514
10514
  }
10515
10515
  return { succeed: J, id: de() };
10516
10516
  }, Yt = O(
@@ -10547,9 +10547,9 @@ function ug(e, t) {
10547
10547
  values: pe,
10548
10548
  operationInProgress: ie
10549
10549
  });
10550
- H(De), De.string && De.string !== Be && (Ie == null || Ie(De.string)), G && De.string && ((ct = G.setTitle) == null || ct.call(G, De.string));
10550
+ H(De), De.string && De.string !== Be && (we == null || we(De.string)), G && De.string && ((ct = G.setTitle) == null || ct.call(G, De.string));
10551
10551
  },
10552
- [G, Yt, Ie, Be]
10552
+ [G, Yt, we, Be]
10553
10553
  ), Gt = async ({
10554
10554
  elementHasLostFocus: K = !1
10555
10555
  }) => {
@@ -10650,7 +10650,7 @@ function ug(e, t) {
10650
10650
  }), W(De);
10651
10651
  }
10652
10652
  };
10653
- async function Se({
10653
+ async function Ce({
10654
10654
  action: K,
10655
10655
  context: J
10656
10656
  }) {
@@ -10689,7 +10689,7 @@ function ug(e, t) {
10689
10689
  });
10690
10690
  J.type && J.type === "ir.actions.act_window_close" ? ve == null || ve(de(), Ke(), at()) : await Ot({ forceRefresh: !0 });
10691
10691
  }
10692
- async function Ze({
10692
+ async function et({
10693
10693
  action: K,
10694
10694
  context: J
10695
10695
  }) {
@@ -10748,7 +10748,7 @@ function ug(e, t) {
10748
10748
  );
10749
10749
  cg({
10750
10750
  model: n,
10751
- id: Xe,
10751
+ id: Ze,
10752
10752
  context: v,
10753
10753
  autorefreshableFields: E == null ? void 0 : E.autorefreshableFields,
10754
10754
  fieldDefs: D,
@@ -10764,7 +10764,7 @@ function ug(e, t) {
10764
10764
  ot == null || ot();
10765
10765
  return;
10766
10766
  }
10767
- if (await ut()) {
10767
+ if (await ft()) {
10768
10768
  li(A);
10769
10769
  return;
10770
10770
  }
@@ -10772,19 +10772,19 @@ function ug(e, t) {
10772
10772
  try {
10773
10773
  !f && (Ve() || de() === void 0) && (ie = !0, rt(!0), m === "2many" ? (await Ut({ callOnSubmitSucceed: !1 }), Z.current = !0) : await Wt({ callOnSubmitSucceed: !1 }));
10774
10774
  const De = Z.current ? he() : {}, ct = { ...pe, ...De };
10775
- K === "object" ? await Se({ action: J, context: ct }) : K === "workflow" ? await Me({ action: J }) : K === "action" && await Ze({ action: J, context: ct }), ie && rt(!1);
10775
+ K === "object" ? await Ce({ action: J, context: ct }) : K === "workflow" ? await Me({ action: J }) : K === "action" && await et({ action: J, context: ct }), ie && rt(!1);
10776
10776
  } catch (De) {
10777
10777
  ie && rt(!1), wt(De);
10778
10778
  }
10779
10779
  }
10780
- const dr = () => !E && !F ? /* @__PURE__ */ s(et, {}) : !n && !p || !_ ? null : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
10780
+ const dr = () => !E && !F ? /* @__PURE__ */ s(tt, {}) : !n && !p || !_ ? null : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
10781
10781
  rd,
10782
10782
  {
10783
10783
  getValues: Ke,
10784
10784
  getPlainValues: st,
10785
10785
  getFields: Ge,
10786
10786
  domain: b,
10787
- activeId: Xe,
10787
+ activeId: Ze,
10788
10788
  activeModel: n,
10789
10789
  setFieldValue: Tt,
10790
10790
  getFieldValue: We,
@@ -11060,7 +11060,7 @@ const Ln = _t(ug), Hn = (e) => {
11060
11060
  }
11061
11061
  )
11062
11062
  ] });
11063
- }, { defaultAlgorithm: fg, defaultSeed: mg } = Qe, ml = fg(mg), pg = (e) => {
11063
+ }, { defaultAlgorithm: fg, defaultSeed: mg } = Xe, ml = fg(mg), pg = (e) => {
11064
11064
  const { ooui: t } = e, { required: n } = t;
11065
11065
  return /* @__PURE__ */ s($e, { required: n, type: "array", validator: async (o, a) => {
11066
11066
  if (!a)
@@ -11161,7 +11161,7 @@ const Ln = _t(ug), Hn = (e) => {
11161
11161
  }
11162
11162
  return /* @__PURE__ */ N(Ye, { gutter: 8, wrap: !1, children: [
11163
11163
  /* @__PURE__ */ s(Fe, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ s(
11164
- o && !i ? hg : pt,
11164
+ o && !i ? hg : ht,
11165
11165
  {
11166
11166
  type: "text",
11167
11167
  value: C,
@@ -11242,7 +11242,7 @@ const Ln = _t(ug), Hn = (e) => {
11242
11242
  }
11243
11243
  )
11244
11244
  ] });
11245
- }, hg = gt(pt)`
11245
+ }, hg = yt(ht)`
11246
11246
  .ant-input {
11247
11247
  background-color: ${ml.colorPrimaryBg};
11248
11248
  }
@@ -11463,7 +11463,7 @@ const Ln = _t(ug), Hn = (e) => {
11463
11463
  duplicatingItem: o,
11464
11464
  duplicate: i
11465
11465
  };
11466
- }, { useToken: bg } = Qe;
11466
+ }, { useToken: bg } = Xe;
11467
11467
  function wg(e) {
11468
11468
  var H, V, $, L;
11469
11469
  const {
@@ -11514,7 +11514,7 @@ function wg(e) {
11514
11514
  /* @__PURE__ */ s(bl, { title: t, token: R }),
11515
11515
  /* @__PURE__ */ N("div", { className: "flex-none h-8 pl-2", children: [
11516
11516
  i !== "graph" && y && /* @__PURE__ */ s(
11517
- mt,
11517
+ pt,
11518
11518
  {
11519
11519
  tooltip: T("createNewItem"),
11520
11520
  icon: /* @__PURE__ */ s(Rr, {}),
@@ -11525,7 +11525,7 @@ function wg(e) {
11525
11525
  m && y && /* @__PURE__ */ N(oe, { children: [
11526
11526
  /* @__PURE__ */ s(Bt, {}),
11527
11527
  /* @__PURE__ */ s(
11528
- mt,
11528
+ pt,
11529
11529
  {
11530
11530
  tooltip: T("searchExistingItem"),
11531
11531
  icon: /* @__PURE__ */ s(kr, {}),
@@ -11549,7 +11549,7 @@ function wg(e) {
11549
11549
  (i === "tree" || i === "form") && /* @__PURE__ */ N(oe, { children: [
11550
11550
  /* @__PURE__ */ s(Bt, {}),
11551
11551
  /* @__PURE__ */ s(
11552
- mt,
11552
+ pt,
11553
11553
  {
11554
11554
  icon: /* @__PURE__ */ s(kn, {}),
11555
11555
  tooltip: T("showLogs"),
@@ -11565,7 +11565,7 @@ function wg(e) {
11565
11565
  (i === "form" || i === "tree") && /* @__PURE__ */ N(oe, { children: [
11566
11566
  /* @__PURE__ */ s(Bt, {}),
11567
11567
  /* @__PURE__ */ s(
11568
- mt,
11568
+ pt,
11569
11569
  {
11570
11570
  icon: /* @__PURE__ */ s(rr, {}),
11571
11571
  tooltip: T("duplicate"),
@@ -11591,7 +11591,7 @@ function wg(e) {
11591
11591
  g && /* @__PURE__ */ N(oe, { children: [
11592
11592
  /* @__PURE__ */ s(Bt, {}),
11593
11593
  /* @__PURE__ */ s(
11594
- mt,
11594
+ pt,
11595
11595
  {
11596
11596
  tooltip: T("toggleViewMode"),
11597
11597
  icon: /* @__PURE__ */ s(lc, {}),
@@ -11675,7 +11675,7 @@ const Sl = nt(
11675
11675
  return /* @__PURE__ */ N(oe, { children: [
11676
11676
  /* @__PURE__ */ s(Bt, {}),
11677
11677
  /* @__PURE__ */ s(
11678
- mt,
11678
+ pt,
11679
11679
  {
11680
11680
  tooltip: o("previousItem"),
11681
11681
  icon: /* @__PURE__ */ s(Di, {}),
@@ -11690,7 +11690,7 @@ const Sl = nt(
11690
11690
  }
11691
11691
  ),
11692
11692
  /* @__PURE__ */ s(
11693
- mt,
11693
+ pt,
11694
11694
  {
11695
11695
  tooltip: o("nextItem"),
11696
11696
  icon: /* @__PURE__ */ s(Pi, {}),
@@ -11712,7 +11712,7 @@ const Cl = nt(
11712
11712
  }) => {
11713
11713
  const { t: i } = ge();
11714
11714
  return /* @__PURE__ */ s(tr, { count: o.length, children: /* @__PURE__ */ s(
11715
- mt,
11715
+ pt,
11716
11716
  {
11717
11717
  tooltip: i(e ? "unlink" : "delete"),
11718
11718
  icon: e ? /* @__PURE__ */ s(ac, {}) : /* @__PURE__ */ s(Po, {}),
@@ -11749,7 +11749,7 @@ const xg = (e) => {
11749
11749
  domain: y,
11750
11750
  fetchValues: g
11751
11751
  } = f || {}, { t: v } = ge(), [b, _] = I(!1), [C, x] = I(!1), [R, T] = I(), [w, A] = I(!1), [k, S] = I(!1), [F, P] = I(), [E, H] = I([]), [V, $] = I(!1), L = q([]), [D, W] = I(), G = q(), [j, ne] = I(void 0), X = q(), {
11752
- readOnly: we,
11752
+ readOnly: Se,
11753
11753
  relation: B,
11754
11754
  context: U,
11755
11755
  domain: me
@@ -11817,18 +11817,18 @@ const xg = (e) => {
11817
11817
  })
11818
11818
  ));
11819
11819
  }
11820
- const xe = () => {
11820
+ const Te = () => {
11821
11821
  const te = Array.from(o.keys()), he = te[(te.indexOf(i) + 1) % te.length];
11822
- i === "form" ? Te(() => {
11822
+ i === "form" ? Ie(() => {
11823
11823
  l(he);
11824
11824
  }) : l(he);
11825
- }, Ce = () => {
11826
- c > 0 && (i === "form" ? Te(() => {
11825
+ }, xe = () => {
11826
+ c > 0 && (i === "form" ? Ie(() => {
11827
11827
  d(c - 1);
11828
11828
  }) : d(c - 1));
11829
11829
  }, fe = () => {
11830
11830
  const te = Z.length;
11831
- c < te - 1 && (i === "form" ? Te(() => {
11831
+ c < te - 1 && (i === "form" ? Ie(() => {
11832
11832
  d(c + 1);
11833
11833
  }) : d(c + 1));
11834
11834
  }, Pe = async () => {
@@ -11849,7 +11849,7 @@ const xg = (e) => {
11849
11849
  treeValues: Re
11850
11850
  } : Ve);
11851
11851
  Y(ke);
11852
- }, Te = (te) => {
11852
+ }, Ie = (te) => {
11853
11853
  b ? Vn({
11854
11854
  t: v,
11855
11855
  onOk: () => {
@@ -11875,11 +11875,11 @@ const xg = (e) => {
11875
11875
  }, Be = async () => {
11876
11876
  const { inv_field: te } = r;
11877
11877
  let he;
11878
- te && u && (he = { [te]: u }), i === "form" ? Te(() => {
11878
+ te && u && (he = { [te]: u }), i === "form" ? Ie(() => {
11879
11879
  $(!0), P({ defaultValues: he }), A(!0);
11880
11880
  }) : ($(!0), P({ defaultValues: he }), A(!0));
11881
- }, Ie = async () => {
11882
- i === "form" ? Te(() => {
11881
+ }, we = async () => {
11882
+ i === "form" ? Ie(() => {
11883
11883
  S(!0);
11884
11884
  }) : S(!0);
11885
11885
  }, ce = async () => {
@@ -11985,7 +11985,7 @@ const xg = (e) => {
11985
11985
  const de = () => {
11986
11986
  var he, Re, ke, Ve;
11987
11987
  if (i === "form")
11988
- return Z.length === 0 ? v("noCurrentEntries") : i !== re.current && a.some((ye) => !ye.values) ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
11988
+ return Z.length === 0 ? v("noCurrentEntries") : i !== re.current && a.some((ye) => !ye.values) ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
11989
11989
  Ln,
11990
11990
  {
11991
11991
  ref: X,
@@ -12005,7 +12005,7 @@ const xg = (e) => {
12005
12005
  } : We);
12006
12006
  Y(ot), _(!0);
12007
12007
  },
12008
- readOnly: we
12008
+ readOnly: Se
12009
12009
  }
12010
12010
  );
12011
12011
  let te = [];
@@ -12033,7 +12033,7 @@ const xg = (e) => {
12033
12033
  onChangeSort: W,
12034
12034
  context: { ...p == null ? void 0 : p(), ...U },
12035
12035
  colorsForResults: j,
12036
- readonly: we,
12036
+ readonly: Se,
12037
12037
  scrollY: r == null ? void 0 : r.height
12038
12038
  }
12039
12039
  );
@@ -12053,9 +12053,9 @@ const xg = (e) => {
12053
12053
  }
12054
12054
  };
12055
12055
  if (R)
12056
- return /* @__PURE__ */ s(vt, { className: "mt-10", message: R, type: "error", banner: !0 });
12057
- const Xe = V;
12058
- return C ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ N(oe, { children: [
12056
+ return /* @__PURE__ */ s(bt, { className: "mt-10", message: R, type: "error", banner: !0 });
12057
+ const Ze = V;
12058
+ return C ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ N(oe, { children: [
12059
12059
  /* @__PURE__ */ s(
12060
12060
  xl,
12061
12061
  {
@@ -12063,17 +12063,17 @@ const xg = (e) => {
12063
12063
  model: B,
12064
12064
  currentId: (Ge = Z[c]) == null ? void 0 : Ge.id,
12065
12065
  title: Ae(),
12066
- readOnly: we || !1,
12066
+ readOnly: Se || !1,
12067
12067
  isMany2Many: ee,
12068
12068
  formHasChanges: b,
12069
12069
  totalItems: Z.length,
12070
12070
  currentItemIndex: c,
12071
12071
  onDelete: He,
12072
12072
  onCreateItem: Be,
12073
- onToggleViewMode: xe,
12074
- onPreviousItem: Ce,
12073
+ onToggleViewMode: Te,
12074
+ onPreviousItem: xe,
12075
12075
  onNextItem: fe,
12076
- onSearchItem: Ie,
12076
+ onSearchItem: we,
12077
12077
  selectedRowKeys: E,
12078
12078
  showCreateButton: ((st = o.get("form")) == null ? void 0 : st.fields) !== void 0,
12079
12079
  showToggleButton: o.size > 1,
@@ -12111,8 +12111,8 @@ const xg = (e) => {
12111
12111
  }
12112
12112
  A(!1);
12113
12113
  },
12114
- readOnly: we,
12115
- mustClearAfterSave: Xe,
12114
+ readOnly: Se,
12115
+ mustClearAfterSave: Ze,
12116
12116
  onMustRefreshParent: () => {
12117
12117
  g == null || g({ forceRefresh: !0 });
12118
12118
  }
@@ -12613,7 +12613,7 @@ const Og = ({
12613
12613
  model: d
12614
12614
  })
12615
12615
  });
12616
- return P ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
12616
+ return P ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
12617
12617
  Mi,
12618
12618
  {
12619
12619
  ref: b,
@@ -12658,7 +12658,7 @@ const Og = ({
12658
12658
  domain: a
12659
12659
  });
12660
12660
  }, Ng = ["form", "tree", "graph"], Mg = (e) => {
12661
- var Te, He, Be;
12661
+ var Ie, He, Be;
12662
12662
  const t = q(null), { value: n, onChange: r, ooui: o, views: a } = e, { items: i = [] } = n || {}, l = Ag({ one2manyItems: i }), { currentView: c, setCurrentView: d, itemIndex: f, setItemIndex: u } = ae(
12663
12663
  Bn
12664
12664
  ), {
@@ -12671,7 +12671,7 @@ const Og = ({
12671
12671
  activeId: b,
12672
12672
  getContext: _,
12673
12673
  fetchValues: C
12674
- } = v || {}, x = q(), R = a.size > 1, T = ((Te = a.get("form")) == null ? void 0 : Te.fields) !== void 0, w = Q(() => ({ ..._ == null ? void 0 : _(), ...p }), [_, p]), A = Tg({
12674
+ } = v || {}, x = q(), R = a.size > 1, T = ((Ie = a.get("form")) == null ? void 0 : Ie.fields) !== void 0, w = Q(() => ({ ..._ == null ? void 0 : _(), ...p }), [_, p]), A = Tg({
12675
12675
  widgetDomain: y,
12676
12676
  fieldName: g
12677
12677
  }), {
@@ -12686,7 +12686,7 @@ const Og = ({
12686
12686
  treeView: a.get("tree"),
12687
12687
  relation: h,
12688
12688
  context: w,
12689
- allRowsIds: l.filter((Ie) => Ie.id !== void 0).map((Ie) => Ie.id),
12689
+ allRowsIds: l.filter((we) => we.id !== void 0).map((we) => we.id),
12690
12690
  gridRef: t
12691
12691
  }), [, $] = Vg({
12692
12692
  ooui: k,
@@ -12694,14 +12694,14 @@ const Og = ({
12694
12694
  items: l,
12695
12695
  selectedRowKeys: F
12696
12696
  }), L = Q(() => {
12697
- const { title: Ie } = a.get(c) || {};
12698
- return Ie || o.label;
12697
+ const { title: we } = a.get(c) || {};
12698
+ return we || o.label;
12699
12699
  }, [c, o.label, a]), D = o.type === "many2many", W = O(
12700
- (Ie) => {
12700
+ (we) => {
12701
12701
  var ce, Ue;
12702
12702
  r == null || r({
12703
12703
  fields: ((ce = a.get("form")) == null ? void 0 : ce.fields) || ((Ue = a.get("tree")) == null ? void 0 : Ue.fields),
12704
- items: Ie
12704
+ items: we
12705
12705
  });
12706
12706
  },
12707
12707
  [r, a]
@@ -12718,7 +12718,7 @@ const Og = ({
12718
12718
  context: w,
12719
12719
  triggerChange: W
12720
12720
  }), {
12721
- showFormModal: we,
12721
+ showFormModal: Se,
12722
12722
  modalItem: B,
12723
12723
  continuousEntryMode: U,
12724
12724
  onCancelFormModal: me,
@@ -12758,24 +12758,24 @@ const Og = ({
12758
12758
  selectedRowKeys: F,
12759
12759
  setSelectedRowKeys: P
12760
12760
  }), je = () => {
12761
- const Ie = Array.from(a.keys()), ce = Ie[(Ie.indexOf(c) + 1) % Ie.length];
12761
+ const we = Array.from(a.keys()), ce = we[(we.indexOf(c) + 1) % we.length];
12762
12762
  c === "form" ? ne(() => {
12763
12763
  d(ce);
12764
12764
  }) : d(ce);
12765
- }, xe = At(
12766
- (Ie) => {
12765
+ }, Te = At(
12766
+ (we) => {
12767
12767
  var ce;
12768
- (ce = a.get("form")) != null && ce.fields && Z(Ie);
12768
+ (ce = a.get("form")) != null && ce.fields && Z(we);
12769
12769
  },
12770
12770
  // eslint-disable-next-line react-hooks/exhaustive-deps
12771
12771
  [l]
12772
- ), Ce = O(() => {
12772
+ ), xe = O(() => {
12773
12773
  f > 0 && (c === "form" ? ne(() => {
12774
12774
  u(f - 1);
12775
12775
  }) : u(f - 1));
12776
12776
  }, [c, f, u, ne]), fe = O(() => {
12777
- const Ie = l.length;
12778
- f < Ie - 1 && (c === "form" ? ne(() => {
12777
+ const we = l.length;
12778
+ f < we - 1 && (c === "form" ? ne(() => {
12779
12779
  u(f + 1);
12780
12780
  }) : u(f + 1));
12781
12781
  }, [
@@ -12785,8 +12785,8 @@ const Og = ({
12785
12785
  u,
12786
12786
  ne
12787
12787
  ]), Pe = Q(() => {
12788
- var Ie;
12789
- return ((Ie = a.get("form")) == null ? void 0 : Ie.fields) !== void 0;
12788
+ var we;
12789
+ return ((we = a.get("form")) == null ? void 0 : we.fields) !== void 0;
12790
12790
  }, [a]);
12791
12791
  return /* @__PURE__ */ N(oe, { children: [
12792
12792
  /* @__PURE__ */ s(
@@ -12804,7 +12804,7 @@ const Og = ({
12804
12804
  onDelete: Oe,
12805
12805
  onCreateItem: se,
12806
12806
  onToggleViewMode: je,
12807
- onPreviousItem: Ce,
12807
+ onPreviousItem: xe,
12808
12808
  onNextItem: fe,
12809
12809
  onSearchItem: be,
12810
12810
  selectedRowKeys: F,
@@ -12814,7 +12814,8 @@ const Og = ({
12814
12814
  context: { ..._ == null ? void 0 : _(), ...w },
12815
12815
  formRef: x,
12816
12816
  onRefreshParentValues: () => {
12817
- C == null || C({ forceRefresh: !0 });
12817
+ var we;
12818
+ C == null || C({ forceRefresh: !0 }), (we = t.current) == null || we.refresh();
12818
12819
  }
12819
12820
  }
12820
12821
  ),
@@ -12828,7 +12829,7 @@ const Og = ({
12828
12829
  onFetchRecords: S,
12829
12830
  ooui: k,
12830
12831
  context: w,
12831
- onRowDoubleClick: xe,
12832
+ onRowDoubleClick: Te,
12832
12833
  showPointerCursorInRows: Pe,
12833
12834
  onRowSelectionChange: P,
12834
12835
  relation: h,
@@ -12865,14 +12866,15 @@ const Og = ({
12865
12866
  submitMode: "2many",
12866
12867
  values: B == null ? void 0 : B.values,
12867
12868
  defaultValues: B == null ? void 0 : B.defaultValues,
12868
- visible: we,
12869
+ visible: Se,
12869
12870
  onSubmitSucceed: ee,
12870
12871
  parentContext: w,
12871
12872
  onCancel: me,
12872
12873
  readOnly: m,
12873
12874
  mustClearAfterSave: U,
12874
12875
  onMustRefreshParent: () => {
12875
- C == null || C({ forceRefresh: !0 });
12876
+ var we;
12877
+ C == null || C({ forceRefresh: !0 }), (we = t.current) == null || we.refresh();
12876
12878
  }
12877
12879
  }
12878
12880
  ),
@@ -12950,7 +12952,7 @@ const Og = ({
12950
12952
  d(!1);
12951
12953
  }
12952
12954
  };
12953
- return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ s(et, {}) : f ? /* @__PURE__ */ s(vt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ s(gg, { initialView: l, children: /* @__PURE__ */ s(
12955
+ return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ s(tt, {}) : f ? /* @__PURE__ */ s(bt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ s(gg, { initialView: l, children: /* @__PURE__ */ s(
12954
12956
  $e,
12955
12957
  {
12956
12958
  required: a,
@@ -12980,7 +12982,7 @@ const Og = ({
12980
12982
  }, Hg = (e) => {
12981
12983
  const { ooui: t, value: n } = e;
12982
12984
  return t.infinite || n && Array.isArray(n.items) && n.items.length >= $g ? /* @__PURE__ */ s(Mg, { ...e }) : /* @__PURE__ */ s(xg, { ...e });
12983
- }, { useToken: Bg } = Qe, jg = (e) => {
12985
+ }, { useToken: Bg } = Xe, jg = (e) => {
12984
12986
  const { ooui: t } = e, { required: n } = t;
12985
12987
  return /* @__PURE__ */ s($e, { required: n, type: "number", ...e, children: /* @__PURE__ */ s(Ug, { ooui: t }) });
12986
12988
  }, Ug = (e) => {
@@ -12998,7 +13000,7 @@ const Og = ({
12998
13000
  p(of(f)), await new Promise((v) => setTimeout(v, 300)), h == null || h();
12999
13001
  }
13000
13002
  return /* @__PURE__ */ s(
13001
- pt,
13003
+ ht,
13002
13004
  {
13003
13005
  value: f,
13004
13006
  disabled: a,
@@ -13012,7 +13014,7 @@ const Og = ({
13012
13014
  );
13013
13015
  }, So = (e) => {
13014
13016
  const { ooui: t, responsiveBehaviour: n = !1, tip: r } = e;
13015
- return /* @__PURE__ */ s(et, { tip: r ?? t.label, size: "large", spinning: t.loading, children: /* @__PURE__ */ s(
13017
+ return /* @__PURE__ */ s(tt, { tip: r ?? t.label, size: "large", spinning: t.loading, children: /* @__PURE__ */ s(
13016
13018
  rs,
13017
13019
  {
13018
13020
  container: t.container,
@@ -13048,7 +13050,7 @@ function Il(e) {
13048
13050
  }
13049
13051
  );
13050
13052
  }
13051
- const { TabPane: Wg } = bi, Yg = gt(bi)`
13053
+ const { TabPane: Wg } = bi, Yg = yt(bi)`
13052
13054
  .ant-tabs-content-holder {
13053
13055
  border-left: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
13054
13056
  border-right: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
@@ -13069,7 +13071,7 @@ const { TabPane: Wg } = bi, Yg = gt(bi)`
13069
13071
  }
13070
13072
  `;
13071
13073
  function Gg(e) {
13072
- const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = Qe.useToken();
13074
+ const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = Xe.useToken();
13073
13075
  function a(i) {
13074
13076
  if (i) {
13075
13077
  const l = St(i);
@@ -13104,7 +13106,7 @@ function Gg(e) {
13104
13106
  }
13105
13107
  );
13106
13108
  }
13107
- const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13109
+ const { useToken: Kg } = Xe, { TextArea: Co } = ht, qg = (e) => {
13108
13110
  const { ooui: t } = e, { id: n, readOnly: r, required: o, height: a, translatable: i } = t, { token: l } = Kg(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, d = ae(Je), { elementHasLostFocus: f } = d || {};
13109
13111
  return /* @__PURE__ */ s($e, { required: o, ...e, children: i ? /* @__PURE__ */ s(
13110
13112
  zg,
@@ -13206,7 +13208,7 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13206
13208
  }
13207
13209
  ) }),
13208
13210
  /* @__PURE__ */ s(Ye, { justify: "end", style: { paddingTop: 5 }, children: /* @__PURE__ */ s(
13209
- mt,
13211
+ pt,
13210
13212
  {
13211
13213
  tooltip: h("translate"),
13212
13214
  icon: /* @__PURE__ */ s(Ri, {}),
@@ -13500,45 +13502,64 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13500
13502
  }, iy = ({
13501
13503
  mode: e,
13502
13504
  showTime: t = !1,
13503
- onChange: n,
13504
- value: r
13505
+ onChange: n
13505
13506
  }) => {
13506
- const o = O(
13507
+ const r = q(!1), o = O(
13507
13508
  (i) => {
13508
- if (i.key === "Enter") {
13509
- const c = i.target.value;
13510
- if (!bf(c, t))
13511
- return;
13512
- i.preventDefault(), vf({
13513
- currentValue: c,
13514
- now: tt(),
13515
- mode: e,
13516
- showTime: t,
13517
- onChange: (d) => n == null ? void 0 : n(d)
13518
- });
13519
- } else if (i.key === "Escape") {
13520
- i.preventDefault();
13521
- const l = i.currentTarget;
13522
- l.blur();
13523
- const c = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', d = Array.from(
13524
- document.querySelectorAll(c)
13525
- ), f = d.indexOf(l);
13526
- f > -1 && f < d.length - 1 && d[f + 1].focus();
13509
+ const l = i.target;
13510
+ if (l.value) {
13511
+ const c = Qe(
13512
+ l.value,
13513
+ ut[e].dateDisplayFormat
13514
+ ).format(ut[e].dateInternalFormat);
13515
+ n == null || n(c);
13527
13516
  }
13528
13517
  },
13529
- [n, e, t]
13530
- ), a = O(
13531
- (i) => {
13532
- const l = r !== void 0;
13533
- !i.target.value && l && (n == null || n(void 0));
13534
- },
13535
- [n, r]
13518
+ [e, n]
13536
13519
  );
13537
13520
  return {
13538
- handleKeyDown: o,
13539
- handleBlur: a
13521
+ handleKeyDown: O(
13522
+ (i) => {
13523
+ if (!i.defaultPrevented) {
13524
+ if (i.key === "Enter") {
13525
+ const c = i.target.value;
13526
+ if (!bf(c, t))
13527
+ return;
13528
+ i.preventDefault(), vf({
13529
+ currentValue: c,
13530
+ now: Qe(),
13531
+ mode: e,
13532
+ showTime: t,
13533
+ onChange: (d) => n == null ? void 0 : n(d)
13534
+ });
13535
+ } else if (i.key === "Escape" && !r.current) {
13536
+ r.current = !0, setTimeout(() => {
13537
+ r.current = !1;
13538
+ }, 200), i.preventDefault(), i.stopPropagation();
13539
+ const l = i.currentTarget;
13540
+ if (l.value === "")
13541
+ n == null || n(void 0);
13542
+ else {
13543
+ const u = Qe(
13544
+ l.value,
13545
+ ut[e].dateDisplayFormat
13546
+ ).format(ut[e].dateInternalFormat);
13547
+ n == null || n(u);
13548
+ }
13549
+ const c = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', d = Array.from(
13550
+ document.querySelectorAll(c)
13551
+ ), f = d.indexOf(l);
13552
+ setTimeout(() => {
13553
+ f > -1 && f < d.length - 1 && d[f + 1].focus();
13554
+ }, 100);
13555
+ }
13556
+ }
13557
+ },
13558
+ [t, e, n]
13559
+ ),
13560
+ handleBlur: o
13540
13561
  };
13541
- }, { useToken: ay } = Qe, ly = (e, t) => {
13562
+ }, { useToken: ay } = Xe, ly = (e, t) => {
13542
13563
  const { token: n } = ay();
13543
13564
  return Q(
13544
13565
  () => e && !t ? { backgroundColor: n.colorPrimaryBg } : void 0,
@@ -13550,7 +13571,7 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13550
13571
  }, Al = nt(
13551
13572
  (e) => {
13552
13573
  const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: a, readOnly: i, required: l } = r, c = Ia(), d = ly(l, !!i), f = o ? "time" : "date", u = Q(
13553
- () => t ? tt(t, bt[f].dateInternalFormat) : void 0,
13574
+ () => t ? Qe(t, ut[f].dateInternalFormat) : void 0,
13554
13575
  [t, f]
13555
13576
  ), m = O(
13556
13577
  (g) => {
@@ -13559,20 +13580,19 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13559
13580
  return;
13560
13581
  }
13561
13582
  n == null || n(
13562
- g.format(bt[f].dateInternalFormat)
13583
+ g.format(ut[f].dateInternalFormat)
13563
13584
  );
13564
13585
  },
13565
13586
  [n, f]
13566
13587
  ), { handleKeyDown: h, handleBlur: p } = iy({
13567
13588
  mode: f,
13568
13589
  showTime: o,
13569
- onChange: n,
13570
- value: t
13590
+ onChange: n
13571
13591
  }), y = Q(
13572
13592
  () => ({
13573
13593
  style: { width: "100%", ...d },
13574
- placeholder: bt[f].placeholder,
13575
- format: bt[f].dateDisplayFormat
13594
+ placeholder: ut[f].placeholder,
13595
+ format: ut[f].dateDisplayFormat
13576
13596
  }),
13577
13597
  [f, d]
13578
13598
  );
@@ -13590,7 +13610,6 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13590
13610
  onKeyDown: h,
13591
13611
  showNow: !1,
13592
13612
  showToday: !1,
13593
- changeOnBlur: !0,
13594
13613
  locale: c
13595
13614
  }
13596
13615
  );
@@ -13615,7 +13634,7 @@ const _l = nt(cy), dy = (e) => {
13615
13634
  e.onChange && e.onChange(o);
13616
13635
  },
13617
13636
  numberOfSelectsToHide: 3,
13618
- value: e.value ? tt(e.value, "HH:mm:ss") : void 0,
13637
+ value: e.value ? Qe(e.value, "HH:mm:ss") : void 0,
13619
13638
  disabled: t
13620
13639
  }
13621
13640
  );
@@ -13670,7 +13689,7 @@ const _l = nt(cy), dy = (e) => {
13670
13689
  }
13671
13690
  ) })
13672
13691
  ] });
13673
- }, { useToken: gy } = Qe, yy = (e) => {
13692
+ }, { useToken: gy } = Xe, yy = (e) => {
13674
13693
  const { ooui: t } = e, { required: n } = t;
13675
13694
  return /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s(vy, { ooui: t }) });
13676
13695
  }, vy = (e) => {
@@ -13706,7 +13725,7 @@ const _l = nt(cy), dy = (e) => {
13706
13725
  }
13707
13726
  ),
13708
13727
  /* @__PURE__ */ s(
13709
- pt,
13728
+ ht,
13710
13729
  {
13711
13730
  type: "text",
13712
13731
  disabled: !0,
@@ -13729,7 +13748,7 @@ const _l = nt(cy), dy = (e) => {
13729
13748
  ),
13730
13749
  /* @__PURE__ */ s(qe, { icon: /* @__PURE__ */ s(cc, {}), disabled: !n, onClick: g, children: m("open") }),
13731
13750
  /* @__PURE__ */ s(
13732
- mt,
13751
+ pt,
13733
13752
  {
13734
13753
  tooltip: m("download"),
13735
13754
  disabled: !n,
@@ -13738,7 +13757,7 @@ const _l = nt(cy), dy = (e) => {
13738
13757
  }
13739
13758
  ),
13740
13759
  /* @__PURE__ */ s(
13741
- mt,
13760
+ pt,
13742
13761
  {
13743
13762
  tooltip: m("clear"),
13744
13763
  disabled: o || !n,
@@ -13932,7 +13951,7 @@ function wy(e) {
13932
13951
  closable: !1,
13933
13952
  centered: !0,
13934
13953
  maskClosable: !1,
13935
- children: /* @__PURE__ */ s(et, {})
13954
+ children: /* @__PURE__ */ s(tt, {})
13936
13955
  }
13937
13956
  )
13938
13957
  ] });
@@ -14120,7 +14139,7 @@ function Cy({ toolbar: e }) {
14120
14139
  ),
14121
14140
  initialViewType: "form"
14122
14141
  }));
14123
- }, [g, c, E]), we = O(async () => {
14142
+ }, [g, c, E]), Se = O(async () => {
14124
14143
  const U = await In({ onFormSave: c });
14125
14144
  U.succeed && (E == null || E({
14126
14145
  ...di(
@@ -14174,13 +14193,13 @@ function Cy({ toolbar: e }) {
14174
14193
  ]
14175
14194
  ), i ? /* @__PURE__ */ N(it, { wrap: !0, children: [
14176
14195
  R && /* @__PURE__ */ N(oe, { children: [
14177
- /* @__PURE__ */ s(et, {}),
14196
+ /* @__PURE__ */ s(tt, {}),
14178
14197
  /* @__PURE__ */ s(dt, {}),
14179
14198
  /* @__PURE__ */ s(dt, {})
14180
14199
  ] }),
14181
14200
  /* @__PURE__ */ s(ua, { disabled: H }),
14182
14201
  /* @__PURE__ */ s(
14183
- yt,
14202
+ vt,
14184
14203
  {
14185
14204
  icon: /* @__PURE__ */ s(dc, {}),
14186
14205
  tooltip: n("save"),
@@ -14190,7 +14209,7 @@ function Cy({ toolbar: e }) {
14190
14209
  }
14191
14210
  ),
14192
14211
  /* @__PURE__ */ s(
14193
- yt,
14212
+ vt,
14194
14213
  {
14195
14214
  icon: /* @__PURE__ */ s(rr, {}),
14196
14215
  tooltip: n("duplicate"),
@@ -14219,7 +14238,7 @@ function Cy({ toolbar: e }) {
14219
14238
  ),
14220
14239
  /* @__PURE__ */ s(dt, {}),
14221
14240
  /* @__PURE__ */ s(
14222
- yt,
14241
+ vt,
14223
14242
  {
14224
14243
  icon: /* @__PURE__ */ s(kn, {}),
14225
14244
  tooltip: n("showLogs"),
@@ -14228,7 +14247,7 @@ function Cy({ toolbar: e }) {
14228
14247
  }
14229
14248
  ),
14230
14249
  /* @__PURE__ */ s(
14231
- yt,
14250
+ vt,
14232
14251
  {
14233
14252
  icon: /* @__PURE__ */ s(Or, {}),
14234
14253
  tooltip: n("refresh"),
@@ -14268,7 +14287,7 @@ function Cy({ toolbar: e }) {
14268
14287
  disabled: H,
14269
14288
  attachments: T,
14270
14289
  onAddNewAttachment: X,
14271
- onListAllAttachments: we,
14290
+ onListAllAttachments: Se,
14272
14291
  onViewAttachmentDetails: B
14273
14292
  }
14274
14293
  ),
@@ -14286,7 +14305,7 @@ const xy = nt(Cy), Rl = nt(
14286
14305
  const { t: o } = ge();
14287
14306
  return /* @__PURE__ */ N(it, { children: [
14288
14307
  /* @__PURE__ */ s(
14289
- yt,
14308
+ vt,
14290
14309
  {
14291
14310
  icon: /* @__PURE__ */ s(Di, {}),
14292
14311
  tooltip: o("previous"),
@@ -14295,7 +14314,7 @@ const xy = nt(Cy), Rl = nt(
14295
14314
  }
14296
14315
  ),
14297
14316
  /* @__PURE__ */ s(
14298
- yt,
14317
+ vt,
14299
14318
  {
14300
14319
  icon: /* @__PURE__ */ s(Pi, {}),
14301
14320
  tooltip: o("next"),
@@ -14315,7 +14334,7 @@ const di = (e, t) => ({
14315
14334
  ],
14316
14335
  values: { selection_associated_object: `${e},${t}` },
14317
14336
  forced_values: { res_model: e, res_id: t }
14318
- }), { useToken: Ty } = Qe, Ol = (e) => {
14337
+ }), { useToken: Ty } = Xe, Ol = (e) => {
14319
14338
  const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: a = "" } = e, { id: i, readOnly: l, required: c } = t, { token: d } = Ty(), f = c && !l ? { backgroundColor: d.colorPrimaryBg } : void 0, u = ae(Je), { elementHasLostFocus: m } = u || {}, [h, p] = I(!1), [y, g] = I(!1);
14320
14339
  le(() => {
14321
14340
  l && !h && g(!1), !n && !l && (p(!0), g(!0));
@@ -14346,7 +14365,7 @@ const di = (e, t) => ({
14346
14365
  }
14347
14366
  ) }),
14348
14367
  /* @__PURE__ */ s(Fe, { flex: "auto", style: { paddingLeft: 0 }, children: y ? /* @__PURE__ */ s(
14349
- pt,
14368
+ ht,
14350
14369
  {
14351
14370
  style: {
14352
14371
  borderTopLeftRadius: 0,
@@ -14423,7 +14442,7 @@ const di = (e, t) => ({
14423
14442
  }
14424
14443
  ],
14425
14444
  help: a("searchIdHelp"),
14426
- children: /* @__PURE__ */ s(pt, { style: { width: "100%" }, autoFocus: !0, ref: i })
14445
+ children: /* @__PURE__ */ s(ht, { style: { width: "100%" }, autoFocus: !0, ref: i })
14427
14446
  }
14428
14447
  ),
14429
14448
  /* @__PURE__ */ s(Ye, { align: "middle", justify: "end", children: /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ N(it, { children: [
@@ -14505,7 +14524,7 @@ function _y({ refreshGraph: e }) {
14505
14524
  }
14506
14525
  ),
14507
14526
  /* @__PURE__ */ s(
14508
- yt,
14527
+ vt,
14509
14528
  {
14510
14529
  icon: /* @__PURE__ */ s(Or, {}),
14511
14530
  tooltip: t("refresh"),
@@ -14636,7 +14655,7 @@ const Ry = (e) => {
14636
14655
  showLimitOptions: !1
14637
14656
  }
14638
14657
  ),
14639
- W ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
14658
+ W ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
14640
14659
  $n,
14641
14660
  {
14642
14661
  ref: d,
@@ -14706,7 +14725,7 @@ function Dy() {
14706
14725
  const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = ae(ss), { t: o } = ge();
14707
14726
  return /* @__PURE__ */ N(it, { wrap: !0, children: [
14708
14727
  /* @__PURE__ */ s(
14709
- yt,
14728
+ vt,
14710
14729
  {
14711
14730
  icon: /* @__PURE__ */ s(
14712
14731
  fc,
@@ -14725,7 +14744,7 @@ function Dy() {
14725
14744
  ),
14726
14745
  /* @__PURE__ */ s(dt, {}),
14727
14746
  /* @__PURE__ */ s(
14728
- yt,
14747
+ vt,
14729
14748
  {
14730
14749
  icon: /* @__PURE__ */ s(mc, {}),
14731
14750
  tooltip: o("configDashboard"),
@@ -14737,7 +14756,7 @@ function Dy() {
14737
14756
  }
14738
14757
  ),
14739
14758
  /* @__PURE__ */ s(
14740
- yt,
14759
+ vt,
14741
14760
  {
14742
14761
  icon: /* @__PURE__ */ s(Or, {}),
14743
14762
  tooltip: o("refresh"),
@@ -14848,7 +14867,7 @@ function My(e, t) {
14848
14867
  order: _
14849
14868
  } = e, [C, x] = I(), [R, T] = I([]), [w, A] = I(!0), k = m || void 0, [S, F] = I(
14850
14869
  k
14851
- ), [P, E] = I([]), [H, V] = I(), [$, L] = I([]), [D, W] = I(), [G, j] = I(0), [ne, X] = I(!1), [we, B] = I(!1), [U, me] = I(), { t: ee } = ge(), se = q(), Z = q(), re = ae(
14870
+ ), [P, E] = I([]), [H, V] = I(), [$, L] = I([]), [D, W] = I(), [G, j] = I(0), [ne, X] = I(!1), [Se, B] = I(!1), [U, me] = I(), { t: ee } = ge(), se = q(), Z = q(), re = ae(
14852
14871
  Rt
14853
14872
  ), {
14854
14873
  setCurrentView: z,
@@ -14856,7 +14875,7 @@ function My(e, t) {
14856
14875
  tabs: be,
14857
14876
  activeKey: Oe,
14858
14877
  openAction: je,
14859
- onRemoveTab: xe
14878
+ onRemoveTab: Te
14860
14879
  } = re || {};
14861
14880
  an(
14862
14881
  "ctrl+g,command+g",
@@ -14866,7 +14885,7 @@ function My(e, t) {
14866
14885
  { enableOnFormTags: !0, preventDefault: !0 },
14867
14886
  [Oe, be, C, H, $]
14868
14887
  );
14869
- function Ce(ce) {
14888
+ function xe(ce) {
14870
14889
  F(ce), Y == null || Y(ce);
14871
14890
  }
14872
14891
  const fe = O(
@@ -14876,7 +14895,7 @@ function My(e, t) {
14876
14895
  [z]
14877
14896
  );
14878
14897
  Dt(t, () => ({
14879
- canWeClose: Te
14898
+ canWeClose: Ie
14880
14899
  }));
14881
14900
  const Pe = O(async () => {
14882
14901
  A(!0);
@@ -14902,19 +14921,19 @@ function My(e, t) {
14902
14921
  const [, Ae] = ve.viewTuple, de = ve.info;
14903
14922
  switch (Ae) {
14904
14923
  case "dashboard": {
14905
- const Xe = a.find((st) => {
14924
+ const Ze = a.find((st) => {
14906
14925
  const [, at] = st;
14907
14926
  return at === "form";
14908
14927
  });
14909
14928
  let Ge;
14910
- Xe && (Ge = {
14929
+ Ze && (Ge = {
14911
14930
  action_id: h,
14912
14931
  action_type: p,
14913
14932
  name: i,
14914
14933
  res_id: o.active_id,
14915
14934
  res_model: r,
14916
- view_id: Xe[0],
14917
- view_type: Xe[1]
14935
+ view_id: Ze[0],
14936
+ view_type: Ze[1]
14918
14937
  }), ce.push({
14919
14938
  type: "dashboard",
14920
14939
  id: o.active_id,
@@ -14971,7 +14990,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14971
14990
  action_id: h,
14972
14991
  action_type: p
14973
14992
  })
14974
- ), xe == null || xe(c)), fe(Ne), T(ce), A(!1);
14993
+ ), Te == null || Te(c)), fe(Ne), T(ce), A(!1);
14975
14994
  }, [
14976
14995
  d,
14977
14996
  fe,
@@ -14982,12 +15001,12 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14982
15001
  p,
14983
15002
  i,
14984
15003
  y,
14985
- xe,
15004
+ Te,
14986
15005
  c
14987
15006
  ]);
14988
- l({ tabKey: c, canWeClose: Te }), Ft(() => {
15007
+ l({ tabKey: c, canWeClose: Ie }), Ft(() => {
14989
15008
  const ce = R.find((Ee) => Ee.type === "tree"), Ue = R.find((Ee) => d.id ? Ee.type === d.type && Ee.view_id === d.id : Ee.type === d.type);
14990
- fe(Ue || ce), m ? Y == null || Y(k) : (Ce(void 0), V(void 0)), Pe();
15009
+ fe(Ue || ce), m ? Y == null || Y(k) : (xe(void 0), V(void 0)), Pe();
14991
15010
  }, [r, a, m]), Ft(() => {
14992
15011
  if (Oe === c) {
14993
15012
  Y == null || Y(S);
@@ -14995,7 +15014,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14995
15014
  z == null || z({ ...C, extra: ce });
14996
15015
  }
14997
15016
  }, [be, Oe]);
14998
- async function Te() {
15017
+ async function Ie() {
14999
15018
  return C && C.type === "form" ? await se.current.cancelUnsavedChanges() : !0;
15000
15019
  }
15001
15020
  async function He() {
@@ -15008,26 +15027,26 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15008
15027
  if (ce.length === 1) {
15009
15028
  Ee = "form", Ne = [];
15010
15029
  const Ae = ce[0], de = $.findIndex((Ge) => Ge.id === Ae);
15011
- let Xe;
15030
+ let Ze;
15012
15031
  if (de === -1) {
15013
15032
  try {
15014
- Xe = (ve = await M.getHandler().readObjects({
15033
+ Ze = (ve = await M.getHandler().readObjects({
15015
15034
  model: r,
15016
15035
  ids: [Ae],
15017
15036
  context: o
15018
15037
  })) == null ? void 0 : ve[0];
15019
15038
  } catch {
15020
15039
  }
15021
- if (!Xe) {
15040
+ if (!Ze) {
15022
15041
  B(!1), X(!1), cn(ee("idNotFound"));
15023
15042
  return;
15024
15043
  }
15025
15044
  } else
15026
- Xe = $[de];
15045
+ Ze = $[de];
15027
15046
  } else
15028
15047
  Ee = "tree", Ne = [["id", "in", ce]];
15029
15048
  if (B(!1), X(!1), Ue && Ee === "form") {
15030
- Ce(ce[0]);
15049
+ xe(ce[0]);
15031
15050
  const Ae = R.find(
15032
15051
  (de) => de.type === "form"
15033
15052
  );
@@ -15048,18 +15067,18 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15048
15067
  });
15049
15068
  }
15050
15069
  }
15051
- function Ie() {
15070
+ function we() {
15052
15071
  if (S === void 0 && C.type === "form")
15053
15072
  se.current.clearAndReload();
15054
15073
  else {
15055
- Ce(void 0);
15074
+ xe(void 0);
15056
15075
  const ce = R.find(
15057
15076
  (Ue) => Ue.type === "form"
15058
15077
  );
15059
15078
  fe(ce);
15060
15079
  }
15061
15080
  }
15062
- return w ? /* @__PURE__ */ s(et, {}) : C ? /* @__PURE__ */ N(
15081
+ return w ? /* @__PURE__ */ s(tt, {}) : C ? /* @__PURE__ */ N(
15063
15082
  Nh,
15064
15083
  {
15065
15084
  title: i,
@@ -15068,9 +15087,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15068
15087
  availableViews: R,
15069
15088
  formRef: se,
15070
15089
  searchTreeRef: Z,
15071
- onNewClicked: Ie,
15090
+ onNewClicked: we,
15072
15091
  currentId: S,
15073
- setCurrentId: Ce,
15092
+ setCurrentId: xe,
15074
15093
  setCurrentItemIndex: V,
15075
15094
  currentItemIndex: H,
15076
15095
  results: $,
@@ -15110,7 +15129,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15110
15129
  searchTreeRef: Z,
15111
15130
  searchTreeNameSearch: U,
15112
15131
  setCurrentView: fe,
15113
- setCurrentId: Ce
15132
+ setCurrentId: xe
15114
15133
  }
15115
15134
  ),
15116
15135
  /* @__PURE__ */ s(
@@ -15118,7 +15137,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15118
15137
  {
15119
15138
  visible: ne,
15120
15139
  onIdSubmitted: Be,
15121
- isSearching: we,
15140
+ isSearching: Se,
15122
15141
  onCancel: () => {
15123
15142
  X(!1);
15124
15143
  }
@@ -15255,7 +15274,7 @@ function By(e) {
15255
15274
  domain: a = [],
15256
15275
  visible: i = !0,
15257
15276
  parentContext: l = {}
15258
- } = e, [c, d] = I(!1), [f, u] = I(!1), [m, h] = I(), [p, y] = I(), [g, v] = I(), [b, _] = I(1), [C, x] = I(0), R = q(ht), T = q([]), [w, A] = I(0), [k, S] = I([]), [F, P] = I(void 0), [E, H] = I(), [V, $] = I(), [L, D] = I(), [W, G] = I(!1), j = q([]), ne = (Z) => {
15277
+ } = e, [c, d] = I(!1), [f, u] = I(!1), [m, h] = I(), [p, y] = I(), [g, v] = I(), [b, _] = I(1), [C, x] = I(0), R = q(gt), T = q([]), [w, A] = I(0), [k, S] = I([]), [F, P] = I(void 0), [E, H] = I(), [V, $] = I(), [L, D] = I(), [W, G] = I(!1), j = q([]), ne = (Z) => {
15259
15278
  G(!0), _(Z), x((Z - 1) * R.current);
15260
15279
  }, X = async () => {
15261
15280
  const Z = j.current.length > 0 ? j.current : a, re = en(T.current, Z), { colors: z } = qt(p), { totalItems: Y, results: be, attrsEvaluated: Oe } = await M.getHandler().searchForTree({
@@ -15274,9 +15293,9 @@ function By(e) {
15274
15293
  fields: { ...p.fields, ...g.fields }
15275
15294
  });
15276
15295
  G(!1), S(je);
15277
- const xe = await Y();
15278
- A(xe);
15279
- }, we = async () => {
15296
+ const Te = await Y();
15297
+ A(Te);
15298
+ }, Se = async () => {
15280
15299
  try {
15281
15300
  G(!0), await X();
15282
15301
  } catch (Z) {
@@ -15284,7 +15303,7 @@ function By(e) {
15284
15303
  }
15285
15304
  };
15286
15305
  le(() => {
15287
- f && i && we();
15306
+ f && i && Se();
15288
15307
  }, [b, C, f, i]);
15289
15308
  const B = async (Z) => {
15290
15309
  u(!1), d(!0), D(void 0);
@@ -15328,7 +15347,7 @@ function By(e) {
15328
15347
  treeView: p
15329
15348
  });
15330
15349
  }, se = () => !p || !g ? null : /* @__PURE__ */ N("div", { style: { overflowY: "scroll" }, children: [
15331
- V && /* @__PURE__ */ s(vt, { className: "mt-10", message: V, type: "error", banner: !0 }),
15350
+ V && /* @__PURE__ */ s(bt, { className: "mt-10", message: V, type: "error", banner: !0 }),
15332
15351
  /* @__PURE__ */ s(
15333
15352
  cr,
15334
15353
  {
@@ -15356,7 +15375,7 @@ function By(e) {
15356
15375
  }
15357
15376
  )
15358
15377
  ] });
15359
- return L ? /* @__PURE__ */ s(vt, { className: "mt-10", message: L, type: "error", banner: !0 }) : c ? /* @__PURE__ */ s(et, { style: { padding: "2rem" } }) : se();
15378
+ return L ? /* @__PURE__ */ s(bt, { className: "mt-10", message: L, type: "error", banner: !0 }) : c ? /* @__PURE__ */ s(tt, { style: { padding: "2rem" } }) : se();
15360
15379
  }
15361
15380
  const jy = nt(By), Uy = (e) => {
15362
15381
  const { model: t } = e, [n, r] = I();
@@ -15505,7 +15524,7 @@ function Wy(e, t) {
15505
15524
  async function S() {
15506
15525
  h(a);
15507
15526
  }
15508
- return c ? /* @__PURE__ */ s($t, {}) : f ? /* @__PURE__ */ s(vt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ s(Hy, { onPositionItemsChanged: k, children: i.map((F, P) => {
15527
+ return c ? /* @__PURE__ */ s($t, {}) : f ? /* @__PURE__ */ s(bt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ s(Hy, { onPositionItemsChanged: k, children: i.map((F, P) => {
15509
15528
  const { actionData: E, values: H } = F, { position: V, id: $ } = H, {
15510
15529
  actionId: L,
15511
15530
  actionType: D,
@@ -15514,7 +15533,7 @@ function Wy(e, t) {
15514
15533
  description: j,
15515
15534
  views: ne,
15516
15535
  model: X,
15517
- context: we,
15536
+ context: Se,
15518
15537
  domain: B,
15519
15538
  initialView: U,
15520
15539
  limit: me
@@ -15535,7 +15554,7 @@ function Wy(e, t) {
15535
15554
  (Oe) => Oe[1] === "graph"
15536
15555
  )[0][0],
15537
15556
  model: X,
15538
- context: we,
15557
+ context: Se,
15539
15558
  domain: B,
15540
15559
  limit: me
15541
15560
  },
@@ -15559,20 +15578,20 @@ function Wy(e, t) {
15559
15578
  });
15560
15579
  if (be) {
15561
15580
  const [Oe, je] = be, {
15562
- actionId: xe,
15563
- actionType: Ce,
15581
+ actionId: Te,
15582
+ actionType: xe,
15564
15583
  title: fe,
15565
15584
  model: Pe
15566
- } = E, Te = {
15567
- action_id: xe,
15568
- action_type: Ce,
15585
+ } = E, Ie = {
15586
+ action_id: Te,
15587
+ action_type: xe,
15569
15588
  name: fe,
15570
15589
  res_id: Y.id,
15571
15590
  res_model: Pe,
15572
15591
  view_id: Oe,
15573
15592
  view_type: je
15574
15593
  };
15575
- h(Te);
15594
+ h(Ie);
15576
15595
  }
15577
15596
  }
15578
15597
  },
@@ -15589,7 +15608,7 @@ function Wy(e, t) {
15589
15608
  title: G,
15590
15609
  views: ne,
15591
15610
  model: X,
15592
- context: we,
15611
+ context: Se,
15593
15612
  domain: B,
15594
15613
  setCanWeClose: () => {
15595
15614
  },
@@ -15608,15 +15627,15 @@ function Wy(e, t) {
15608
15627
  const [Y, be] = re, {
15609
15628
  actionId: Oe,
15610
15629
  actionType: je,
15611
- title: xe,
15612
- model: Ce
15630
+ title: Te,
15631
+ model: xe
15613
15632
  } = E;
15614
15633
  Z = {
15615
15634
  action_id: Oe,
15616
15635
  action_type: je,
15617
- name: xe,
15636
+ name: Te,
15618
15637
  res_id: !1,
15619
- res_model: Ce,
15638
+ res_model: xe,
15620
15639
  view_id: Y,
15621
15640
  view_type: be,
15622
15641
  overrideUnsettedLimit: !0
@@ -15686,7 +15705,7 @@ const Yy = _t(Wy), Gy = (e) => {
15686
15705
  u(!1);
15687
15706
  }
15688
15707
  if (c)
15689
- return /* @__PURE__ */ s(vt, { className: "mt-10", message: c, type: "error", banner: !0 });
15708
+ return /* @__PURE__ */ s(bt, { className: "mt-10", message: c, type: "error", banner: !0 });
15690
15709
  }
15691
15710
  const x = () => {
15692
15711
  T(i.map((w) => w.value));
@@ -15701,7 +15720,7 @@ const Yy = _t(Wy), Gy = (e) => {
15701
15720
  A.push({ id: S, operation: "pendingLink" });
15702
15721
  }), _(A);
15703
15722
  };
15704
- return f && i.length === 0 ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ N("div", { className: "flex flex-row", children: [
15723
+ return f && i.length === 0 ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ N("div", { className: "flex flex-row", children: [
15705
15724
  /* @__PURE__ */ s(
15706
15725
  qn.Group,
15707
15726
  {
@@ -15784,7 +15803,7 @@ const Yy = _t(Wy), Gy = (e) => {
15784
15803
  fontFamily: i,
15785
15804
  fontSize: l
15786
15805
  }
15787
- } = Qe.useToken(), c = {
15806
+ } = Xe.useToken(), c = {
15788
15807
  padding: 0,
15789
15808
  listStyleType: "none",
15790
15809
  fontFamily: i,
@@ -15887,7 +15906,7 @@ const dv = (e) => {
15887
15906
  avatar: /* @__PURE__ */ s(lv, { email: t.email, theme: "mp" }),
15888
15907
  title: t.author,
15889
15908
  description: /* @__PURE__ */ N(it, { direction: "horizontal", children: [
15890
- /* @__PURE__ */ s("span", { title: t.date, children: tt(t.date).fromNow() }),
15909
+ /* @__PURE__ */ s("span", { title: t.date, children: Qe(t.date).fromNow() }),
15891
15910
  t.isAuthor && /* @__PURE__ */ s(Fo, { color: "blue", children: r("author") })
15892
15911
  ] }),
15893
15912
  style: { marginBottom: "5px" }
@@ -15951,7 +15970,7 @@ const dv = (e) => {
15951
15970
  }
15952
15971
  const d = l.map((f) => /* @__PURE__ */ s(No, { ooui: f }, f.id));
15953
15972
  return /* @__PURE__ */ s(
15954
- vt,
15973
+ bt,
15955
15974
  {
15956
15975
  message: /* @__PURE__ */ s(Jn, { content: r }),
15957
15976
  description: /* @__PURE__ */ s(Jn, { content: o }),
@@ -15961,7 +15980,7 @@ const dv = (e) => {
15961
15980
  icon: c(i)
15962
15981
  }
15963
15982
  );
15964
- }, { defaultAlgorithm: hv, defaultSeed: gv } = Qe, fi = hv(gv), yv = (e) => {
15983
+ }, { defaultAlgorithm: hv, defaultSeed: gv } = Xe, fi = hv(gv), yv = (e) => {
15965
15984
  const { ooui: t, responsiveBehaviour: n = !1 } = e;
15966
15985
  return /* @__PURE__ */ s(vv, { autoplay: t.autoPlay, dots: !0, autoplaySpeed: 5e3, children: t.items.map((r, o) => /* @__PURE__ */ s(
15967
15986
  rs,
@@ -15971,7 +15990,7 @@ const dv = (e) => {
15971
15990
  },
15972
15991
  o
15973
15992
  )) });
15974
- }, vv = gt(Yl)`
15993
+ }, vv = yt(Yl)`
15975
15994
  .slick-dots li button {
15976
15995
  background-color: ${fi.colorPrimary};
15977
15996
  }
@@ -16135,9 +16154,9 @@ function Tv(e, t) {
16135
16154
  views: j,
16136
16155
  name: ne,
16137
16156
  target: X,
16138
- view_type: we,
16157
+ view_type: Se,
16139
16158
  limit: B
16140
- } = P, U = we === "tree", me = [];
16159
+ } = P, U = Se === "tree", me = [];
16141
16160
  for (const se of j) {
16142
16161
  const [Z, re] = se;
16143
16162
  if (Z)
@@ -16221,7 +16240,7 @@ function Tv(e, t) {
16221
16240
  } = T, [D, W] = H[0], G = { id: D, type: W }, j = P, ne = Zt({
16222
16241
  context: j,
16223
16242
  values: { ...A, ...i }
16224
- }), X = E, we = E ? await M.getHandler().evalDomain({
16243
+ }), X = E, Se = E ? await M.getHandler().evalDomain({
16225
16244
  domain: E,
16226
16245
  values: pn({
16227
16246
  fields: w,
@@ -16235,7 +16254,7 @@ function Tv(e, t) {
16235
16254
  target: V,
16236
16255
  views: H,
16237
16256
  context: { ...l, ...ne },
16238
- domain: we,
16257
+ domain: Se,
16239
16258
  title: $,
16240
16259
  initialView: G,
16241
16260
  action_id: k,
@@ -16278,9 +16297,9 @@ function Tv(e, t) {
16278
16297
  views: j,
16279
16298
  name: ne,
16280
16299
  target: X,
16281
- view_type: we,
16300
+ view_type: Se,
16282
16301
  limit: B
16283
- } = V, U = we === "tree", me = [];
16302
+ } = V, U = Se === "tree", me = [];
16284
16303
  for (const re of j) {
16285
16304
  const [z, Y] = re;
16286
16305
  if (z)
@@ -16316,7 +16335,7 @@ function Tv(e, t) {
16316
16335
  action_type: A,
16317
16336
  res_id: k,
16318
16337
  treeExpandable: U,
16319
- limit: F && (B === 0 || B === !1) ? ht : B,
16338
+ limit: F && (B === 0 || B === !1) ? gt : B,
16320
16339
  actionRawData: {
16321
16340
  context: $,
16322
16341
  domain: W,
@@ -16361,7 +16380,7 @@ function Tv(e, t) {
16361
16380
  searchParams: j,
16362
16381
  currentPage: ne,
16363
16382
  order: X
16364
- } = T, we = Vo();
16383
+ } = T, Se = Vo();
16365
16384
  if (P !== "current" && P !== void 0) {
16366
16385
  const B = await M.getHandler().getView({
16367
16386
  model: k,
@@ -16390,7 +16409,7 @@ function Tv(e, t) {
16390
16409
  {
16391
16410
  action_id: H,
16392
16411
  action_type: V,
16393
- tabKey: we,
16412
+ tabKey: Se,
16394
16413
  title: F,
16395
16414
  views: S,
16396
16415
  model: k,
@@ -16408,7 +16427,7 @@ function Tv(e, t) {
16408
16427
  order: X
16409
16428
  }
16410
16429
  ),
16411
- key: we,
16430
+ key: Se,
16412
16431
  action: T
16413
16432
  });
16414
16433
  }
@@ -16440,7 +16459,7 @@ function Tv(e, t) {
16440
16459
  }
16441
16460
  );
16442
16461
  }
16443
- const _b = _t(Tv), { useToken: Iv } = Qe;
16462
+ const _b = _t(Tv), { useToken: Iv } = Xe;
16444
16463
  function Fv(e) {
16445
16464
  const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: a } = e, { token: i } = Iv(), l = o ? i.colorBgContainer : i.colorPrimaryBg;
16446
16465
  return /* @__PURE__ */ N(
@@ -16548,7 +16567,7 @@ function Ob() {
16548
16567
  ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ s(_v, { tab: r }, r.key))) || null;
16549
16568
  return /* @__PURE__ */ s(oe, { children: n });
16550
16569
  }
16551
- const { useToken: Rv } = Qe, Eb = (e) => {
16570
+ const { useToken: Rv } = Xe, Eb = (e) => {
16552
16571
  const {
16553
16572
  onRetrieveShortcuts: t,
16554
16573
  onCheckIsFavourite: n,