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

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 }),
@@ -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"),
@@ -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
  } : {
@@ -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
  }
@@ -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]
@@ -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];
@@ -7530,7 +7530,7 @@ function xh(e, t) {
7530
7530
  ), kt = Q(() => {
7531
7531
  if (!Ee || !xe)
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,10 +7542,10 @@ 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,
@@ -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,
@@ -7579,7 +7579,7 @@ function xh(e, t) {
7579
7579
  hn,
7580
7580
  C,
7581
7581
  xe,
7582
- Xe,
7582
+ Ze,
7583
7583
  h
7584
7584
  ]), gn = q(ne), Ut = q(H), Qt = q(), Wt = q();
7585
7585
  Ft(() => {
@@ -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,
@@ -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
  {
@@ -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] };
@@ -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), [we, 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
  },
@@ -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
@@ -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,
@@ -8190,11 +8190,11 @@ 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
  ), {
@@ -8213,7 +8213,7 @@ 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: _,
@@ -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]
@@ -8352,7 +8352,7 @@ function Ah(e, t) {
8352
8352
  {
8353
8353
  ref: b,
8354
8354
  context: u,
8355
- total: Xe,
8355
+ total: Ze,
8356
8356
  limit: Ie,
8357
8357
  page: Be,
8358
8358
  treeView: x,
@@ -8401,13 +8401,13 @@ function Ah(e, t) {
8401
8401
  de,
8402
8402
  xe,
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,
@@ -8458,11 +8458,11 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8458
8458
  treeViewFetching: t
8459
8459
  }), Ie = O((Se) => {
8460
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 };
8461
+ const et = Se.find((ue) => ue.id === Me.id);
8462
+ return { ...Me, ...et };
8463
+ }), se((Me) => Me.map((et) => {
8464
+ const ue = Se.find((_e) => _e.id === et.id);
8465
+ return { ...et, ...ue };
8466
8466
  }));
8467
8467
  }, []), {
8468
8468
  colorsForResults: ce,
@@ -8475,7 +8475,7 @@ 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,
@@ -8532,9 +8532,9 @@ 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((Se) => {
8536
+ var Me, et, ue, _e;
8537
+ return ce.current[(et = (Me = Se.node) == null ? void 0 : Me.data) == null ? void 0 : et.id] ? { color: ce.current[(_e = (ue = Se.node) == null ? void 0 : ue.data) == null ? void 0 : _e.id] } : {};
8538
8538
  }, []), Ot = O(
8539
8539
  (Se) => {
8540
8540
  var Me;
@@ -8553,8 +8553,8 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8553
8553
  A
8554
8554
  ]), hn = O(
8555
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);
8556
+ var et;
8557
+ g([]), (et = l.current) == null || et.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Me);
8558
8558
  },
8559
8559
  [
8560
8560
  g,
@@ -8568,8 +8568,8 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8568
8568
  [y]
8569
8569
  ), gn = O(
8570
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);
8571
+ var et;
8572
+ g([]), (et = l.current) == null || et.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Me), y == null || y(!1);
8573
8573
  },
8574
8574
  [
8575
8575
  g,
@@ -8626,9 +8626,9 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8626
8626
  });
8627
8627
  Se = 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,
@@ -8639,7 +8639,7 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8639
8639
  attrs: ue,
8640
8640
  order: Se,
8641
8641
  name_search: z,
8642
- skipFunctionFields: Ze,
8642
+ skipFunctionFields: et,
8643
8643
  onIdsRetrieved: (Nt) => {
8644
8644
  de(Nt);
8645
8645
  }
@@ -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,
@@ -8719,7 +8719,7 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8719
8719
  g == null || g(Se.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
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());
8722
+ Gt === "unchecked" ? ((Se = l.current) == null || Se.selectAll(), g(ee.map((et) => ({ id: et.id })))) : (g([]), (Me = l.current) == null || Me.unselectAll());
8723
8723
  }, [l, g, ee, Gt]), Un = O(
8724
8724
  (Se) => {
8725
8725
  W(Se), v(0), C(void 0), L(1);
@@ -8732,12 +8732,12 @@ const ll = _t(Ah), _h = ht, Rh = (e) => {
8732
8732
  ]
8733
8733
  ), Wn = O(
8734
8734
  ({ id: Se, selected: Me }) => {
8735
- g((Ze) => {
8735
+ g((et) => {
8736
8736
  if (Me) {
8737
8737
  const ue = ee.find((_e) => _e.id === Se);
8738
- return ue && !Ze.some((_e) => _e.id === Se) ? [...Ze, ue] : Ze;
8738
+ return ue && !et.some((_e) => _e.id === Se) ? [...et, ue] : et;
8739
8739
  }
8740
- return Ze.filter((ue) => ue.id !== Se);
8740
+ return et.filter((ue) => ue.id !== Se);
8741
8741
  });
8742
8742
  },
8743
8743
  [ee, g]
@@ -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,
@@ -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 = Te !== 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,7 +9066,7 @@ 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
9072
  onRequestPageChange: we,
@@ -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,
@@ -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(
@@ -9297,14 +9297,14 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9297
9297
  ), [xe, Ce] = I(0), [fe, Pe] = I(void 0), [Te, He] = I(), [Be, Ie] = 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(
@@ -9389,7 +9389,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
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",
@@ -10276,7 +10276,7 @@ function ug(e, t) {
10276
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());
10277
10277
  }, Ae = (K) => {
10278
10278
  Ce == null || Ce(!1), d == null || d(K);
10279
- }, de = O(() => r || B.current, [r]), Xe = r || B.current;
10279
+ }, de = O(() => r || B.current, [r]), Ze = r || B.current;
10280
10280
  function Ge() {
10281
10281
  return D;
10282
10282
  }
@@ -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 {
@@ -10502,7 +10502,7 @@ 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
10507
  S(!0), Ce == null || Ce(!0);
10508
10508
  try {
@@ -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 Se({ 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, {}),
@@ -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,
@@ -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
  {
@@ -12112,7 +12112,7 @@ const xg = (e) => {
12112
12112
  A(!1);
12113
12113
  },
12114
12114
  readOnly: we,
12115
- mustClearAfterSave: Xe,
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,
@@ -12950,7 +12950,7 @@ const Og = ({
12950
12950
  d(!1);
12951
12951
  }
12952
12952
  };
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(
12953
+ 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
12954
  $e,
12955
12955
  {
12956
12956
  required: a,
@@ -12980,7 +12980,7 @@ const Og = ({
12980
12980
  }, Hg = (e) => {
12981
12981
  const { ooui: t, value: n } = e;
12982
12982
  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) => {
12983
+ }, { useToken: Bg } = Xe, jg = (e) => {
12984
12984
  const { ooui: t } = e, { required: n } = t;
12985
12985
  return /* @__PURE__ */ s($e, { required: n, type: "number", ...e, children: /* @__PURE__ */ s(Ug, { ooui: t }) });
12986
12986
  }, Ug = (e) => {
@@ -12998,7 +12998,7 @@ const Og = ({
12998
12998
  p(of(f)), await new Promise((v) => setTimeout(v, 300)), h == null || h();
12999
12999
  }
13000
13000
  return /* @__PURE__ */ s(
13001
- pt,
13001
+ ht,
13002
13002
  {
13003
13003
  value: f,
13004
13004
  disabled: a,
@@ -13012,7 +13012,7 @@ const Og = ({
13012
13012
  );
13013
13013
  }, So = (e) => {
13014
13014
  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(
13015
+ return /* @__PURE__ */ s(tt, { tip: r ?? t.label, size: "large", spinning: t.loading, children: /* @__PURE__ */ s(
13016
13016
  rs,
13017
13017
  {
13018
13018
  container: t.container,
@@ -13048,7 +13048,7 @@ function Il(e) {
13048
13048
  }
13049
13049
  );
13050
13050
  }
13051
- const { TabPane: Wg } = bi, Yg = gt(bi)`
13051
+ const { TabPane: Wg } = bi, Yg = yt(bi)`
13052
13052
  .ant-tabs-content-holder {
13053
13053
  border-left: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
13054
13054
  border-right: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
@@ -13069,7 +13069,7 @@ const { TabPane: Wg } = bi, Yg = gt(bi)`
13069
13069
  }
13070
13070
  `;
13071
13071
  function Gg(e) {
13072
- const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = Qe.useToken();
13072
+ const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = Xe.useToken();
13073
13073
  function a(i) {
13074
13074
  if (i) {
13075
13075
  const l = St(i);
@@ -13104,7 +13104,7 @@ function Gg(e) {
13104
13104
  }
13105
13105
  );
13106
13106
  }
13107
- const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13107
+ const { useToken: Kg } = Xe, { TextArea: Co } = ht, qg = (e) => {
13108
13108
  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
13109
  return /* @__PURE__ */ s($e, { required: o, ...e, children: i ? /* @__PURE__ */ s(
13110
13110
  zg,
@@ -13206,7 +13206,7 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13206
13206
  }
13207
13207
  ) }),
13208
13208
  /* @__PURE__ */ s(Ye, { justify: "end", style: { paddingTop: 5 }, children: /* @__PURE__ */ s(
13209
- mt,
13209
+ pt,
13210
13210
  {
13211
13211
  tooltip: h("translate"),
13212
13212
  icon: /* @__PURE__ */ s(Ri, {}),
@@ -13500,45 +13500,64 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13500
13500
  }, iy = ({
13501
13501
  mode: e,
13502
13502
  showTime: t = !1,
13503
- onChange: n,
13504
- value: r
13503
+ onChange: n
13505
13504
  }) => {
13506
- const o = O(
13505
+ const r = q(!1), o = O(
13507
13506
  (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();
13507
+ const l = i.target;
13508
+ if (l.value) {
13509
+ const c = Qe(
13510
+ l.value,
13511
+ ut[e].dateDisplayFormat
13512
+ ).format(ut[e].dateInternalFormat);
13513
+ n == null || n(c);
13527
13514
  }
13528
13515
  },
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]
13516
+ [e, n]
13536
13517
  );
13537
13518
  return {
13538
- handleKeyDown: o,
13539
- handleBlur: a
13519
+ handleKeyDown: O(
13520
+ (i) => {
13521
+ if (!i.defaultPrevented) {
13522
+ if (i.key === "Enter") {
13523
+ const c = i.target.value;
13524
+ if (!bf(c, t))
13525
+ return;
13526
+ i.preventDefault(), vf({
13527
+ currentValue: c,
13528
+ now: Qe(),
13529
+ mode: e,
13530
+ showTime: t,
13531
+ onChange: (d) => n == null ? void 0 : n(d)
13532
+ });
13533
+ } else if (i.key === "Escape" && !r.current) {
13534
+ r.current = !0, setTimeout(() => {
13535
+ r.current = !1;
13536
+ }, 200), i.preventDefault(), i.stopPropagation();
13537
+ const l = i.currentTarget;
13538
+ if (l.value === "")
13539
+ n == null || n(void 0);
13540
+ else {
13541
+ const u = Qe(
13542
+ l.value,
13543
+ ut[e].dateDisplayFormat
13544
+ ).format(ut[e].dateInternalFormat);
13545
+ n == null || n(u);
13546
+ }
13547
+ const c = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', d = Array.from(
13548
+ document.querySelectorAll(c)
13549
+ ), f = d.indexOf(l);
13550
+ setTimeout(() => {
13551
+ f > -1 && f < d.length - 1 && d[f + 1].focus();
13552
+ }, 100);
13553
+ }
13554
+ }
13555
+ },
13556
+ [t, e, n]
13557
+ ),
13558
+ handleBlur: o
13540
13559
  };
13541
- }, { useToken: ay } = Qe, ly = (e, t) => {
13560
+ }, { useToken: ay } = Xe, ly = (e, t) => {
13542
13561
  const { token: n } = ay();
13543
13562
  return Q(
13544
13563
  () => e && !t ? { backgroundColor: n.colorPrimaryBg } : void 0,
@@ -13550,7 +13569,7 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13550
13569
  }, Al = nt(
13551
13570
  (e) => {
13552
13571
  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,
13572
+ () => t ? Qe(t, ut[f].dateInternalFormat) : void 0,
13554
13573
  [t, f]
13555
13574
  ), m = O(
13556
13575
  (g) => {
@@ -13559,20 +13578,19 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13559
13578
  return;
13560
13579
  }
13561
13580
  n == null || n(
13562
- g.format(bt[f].dateInternalFormat)
13581
+ g.format(ut[f].dateInternalFormat)
13563
13582
  );
13564
13583
  },
13565
13584
  [n, f]
13566
13585
  ), { handleKeyDown: h, handleBlur: p } = iy({
13567
13586
  mode: f,
13568
13587
  showTime: o,
13569
- onChange: n,
13570
- value: t
13588
+ onChange: n
13571
13589
  }), y = Q(
13572
13590
  () => ({
13573
13591
  style: { width: "100%", ...d },
13574
- placeholder: bt[f].placeholder,
13575
- format: bt[f].dateDisplayFormat
13592
+ placeholder: ut[f].placeholder,
13593
+ format: ut[f].dateDisplayFormat
13576
13594
  }),
13577
13595
  [f, d]
13578
13596
  );
@@ -13590,7 +13608,6 @@ const { useToken: Kg } = Qe, { TextArea: Co } = pt, qg = (e) => {
13590
13608
  onKeyDown: h,
13591
13609
  showNow: !1,
13592
13610
  showToday: !1,
13593
- changeOnBlur: !0,
13594
13611
  locale: c
13595
13612
  }
13596
13613
  );
@@ -13615,7 +13632,7 @@ const _l = nt(cy), dy = (e) => {
13615
13632
  e.onChange && e.onChange(o);
13616
13633
  },
13617
13634
  numberOfSelectsToHide: 3,
13618
- value: e.value ? tt(e.value, "HH:mm:ss") : void 0,
13635
+ value: e.value ? Qe(e.value, "HH:mm:ss") : void 0,
13619
13636
  disabled: t
13620
13637
  }
13621
13638
  );
@@ -13670,7 +13687,7 @@ const _l = nt(cy), dy = (e) => {
13670
13687
  }
13671
13688
  ) })
13672
13689
  ] });
13673
- }, { useToken: gy } = Qe, yy = (e) => {
13690
+ }, { useToken: gy } = Xe, yy = (e) => {
13674
13691
  const { ooui: t } = e, { required: n } = t;
13675
13692
  return /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s(vy, { ooui: t }) });
13676
13693
  }, vy = (e) => {
@@ -13706,7 +13723,7 @@ const _l = nt(cy), dy = (e) => {
13706
13723
  }
13707
13724
  ),
13708
13725
  /* @__PURE__ */ s(
13709
- pt,
13726
+ ht,
13710
13727
  {
13711
13728
  type: "text",
13712
13729
  disabled: !0,
@@ -13729,7 +13746,7 @@ const _l = nt(cy), dy = (e) => {
13729
13746
  ),
13730
13747
  /* @__PURE__ */ s(qe, { icon: /* @__PURE__ */ s(cc, {}), disabled: !n, onClick: g, children: m("open") }),
13731
13748
  /* @__PURE__ */ s(
13732
- mt,
13749
+ pt,
13733
13750
  {
13734
13751
  tooltip: m("download"),
13735
13752
  disabled: !n,
@@ -13738,7 +13755,7 @@ const _l = nt(cy), dy = (e) => {
13738
13755
  }
13739
13756
  ),
13740
13757
  /* @__PURE__ */ s(
13741
- mt,
13758
+ pt,
13742
13759
  {
13743
13760
  tooltip: m("clear"),
13744
13761
  disabled: o || !n,
@@ -13932,7 +13949,7 @@ function wy(e) {
13932
13949
  closable: !1,
13933
13950
  centered: !0,
13934
13951
  maskClosable: !1,
13935
- children: /* @__PURE__ */ s(et, {})
13952
+ children: /* @__PURE__ */ s(tt, {})
13936
13953
  }
13937
13954
  )
13938
13955
  ] });
@@ -14174,13 +14191,13 @@ function Cy({ toolbar: e }) {
14174
14191
  ]
14175
14192
  ), i ? /* @__PURE__ */ N(it, { wrap: !0, children: [
14176
14193
  R && /* @__PURE__ */ N(oe, { children: [
14177
- /* @__PURE__ */ s(et, {}),
14194
+ /* @__PURE__ */ s(tt, {}),
14178
14195
  /* @__PURE__ */ s(dt, {}),
14179
14196
  /* @__PURE__ */ s(dt, {})
14180
14197
  ] }),
14181
14198
  /* @__PURE__ */ s(ua, { disabled: H }),
14182
14199
  /* @__PURE__ */ s(
14183
- yt,
14200
+ vt,
14184
14201
  {
14185
14202
  icon: /* @__PURE__ */ s(dc, {}),
14186
14203
  tooltip: n("save"),
@@ -14190,7 +14207,7 @@ function Cy({ toolbar: e }) {
14190
14207
  }
14191
14208
  ),
14192
14209
  /* @__PURE__ */ s(
14193
- yt,
14210
+ vt,
14194
14211
  {
14195
14212
  icon: /* @__PURE__ */ s(rr, {}),
14196
14213
  tooltip: n("duplicate"),
@@ -14219,7 +14236,7 @@ function Cy({ toolbar: e }) {
14219
14236
  ),
14220
14237
  /* @__PURE__ */ s(dt, {}),
14221
14238
  /* @__PURE__ */ s(
14222
- yt,
14239
+ vt,
14223
14240
  {
14224
14241
  icon: /* @__PURE__ */ s(kn, {}),
14225
14242
  tooltip: n("showLogs"),
@@ -14228,7 +14245,7 @@ function Cy({ toolbar: e }) {
14228
14245
  }
14229
14246
  ),
14230
14247
  /* @__PURE__ */ s(
14231
- yt,
14248
+ vt,
14232
14249
  {
14233
14250
  icon: /* @__PURE__ */ s(Or, {}),
14234
14251
  tooltip: n("refresh"),
@@ -14286,7 +14303,7 @@ const xy = nt(Cy), Rl = nt(
14286
14303
  const { t: o } = ge();
14287
14304
  return /* @__PURE__ */ N(it, { children: [
14288
14305
  /* @__PURE__ */ s(
14289
- yt,
14306
+ vt,
14290
14307
  {
14291
14308
  icon: /* @__PURE__ */ s(Di, {}),
14292
14309
  tooltip: o("previous"),
@@ -14295,7 +14312,7 @@ const xy = nt(Cy), Rl = nt(
14295
14312
  }
14296
14313
  ),
14297
14314
  /* @__PURE__ */ s(
14298
- yt,
14315
+ vt,
14299
14316
  {
14300
14317
  icon: /* @__PURE__ */ s(Pi, {}),
14301
14318
  tooltip: o("next"),
@@ -14315,7 +14332,7 @@ const di = (e, t) => ({
14315
14332
  ],
14316
14333
  values: { selection_associated_object: `${e},${t}` },
14317
14334
  forced_values: { res_model: e, res_id: t }
14318
- }), { useToken: Ty } = Qe, Ol = (e) => {
14335
+ }), { useToken: Ty } = Xe, Ol = (e) => {
14319
14336
  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
14337
  le(() => {
14321
14338
  l && !h && g(!1), !n && !l && (p(!0), g(!0));
@@ -14346,7 +14363,7 @@ const di = (e, t) => ({
14346
14363
  }
14347
14364
  ) }),
14348
14365
  /* @__PURE__ */ s(Fe, { flex: "auto", style: { paddingLeft: 0 }, children: y ? /* @__PURE__ */ s(
14349
- pt,
14366
+ ht,
14350
14367
  {
14351
14368
  style: {
14352
14369
  borderTopLeftRadius: 0,
@@ -14423,7 +14440,7 @@ const di = (e, t) => ({
14423
14440
  }
14424
14441
  ],
14425
14442
  help: a("searchIdHelp"),
14426
- children: /* @__PURE__ */ s(pt, { style: { width: "100%" }, autoFocus: !0, ref: i })
14443
+ children: /* @__PURE__ */ s(ht, { style: { width: "100%" }, autoFocus: !0, ref: i })
14427
14444
  }
14428
14445
  ),
14429
14446
  /* @__PURE__ */ s(Ye, { align: "middle", justify: "end", children: /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ N(it, { children: [
@@ -14505,7 +14522,7 @@ function _y({ refreshGraph: e }) {
14505
14522
  }
14506
14523
  ),
14507
14524
  /* @__PURE__ */ s(
14508
- yt,
14525
+ vt,
14509
14526
  {
14510
14527
  icon: /* @__PURE__ */ s(Or, {}),
14511
14528
  tooltip: t("refresh"),
@@ -14636,7 +14653,7 @@ const Ry = (e) => {
14636
14653
  showLimitOptions: !1
14637
14654
  }
14638
14655
  ),
14639
- W ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(
14656
+ W ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
14640
14657
  $n,
14641
14658
  {
14642
14659
  ref: d,
@@ -14706,7 +14723,7 @@ function Dy() {
14706
14723
  const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = ae(ss), { t: o } = ge();
14707
14724
  return /* @__PURE__ */ N(it, { wrap: !0, children: [
14708
14725
  /* @__PURE__ */ s(
14709
- yt,
14726
+ vt,
14710
14727
  {
14711
14728
  icon: /* @__PURE__ */ s(
14712
14729
  fc,
@@ -14725,7 +14742,7 @@ function Dy() {
14725
14742
  ),
14726
14743
  /* @__PURE__ */ s(dt, {}),
14727
14744
  /* @__PURE__ */ s(
14728
- yt,
14745
+ vt,
14729
14746
  {
14730
14747
  icon: /* @__PURE__ */ s(mc, {}),
14731
14748
  tooltip: o("configDashboard"),
@@ -14737,7 +14754,7 @@ function Dy() {
14737
14754
  }
14738
14755
  ),
14739
14756
  /* @__PURE__ */ s(
14740
- yt,
14757
+ vt,
14741
14758
  {
14742
14759
  icon: /* @__PURE__ */ s(Or, {}),
14743
14760
  tooltip: o("refresh"),
@@ -14902,19 +14919,19 @@ function My(e, t) {
14902
14919
  const [, Ae] = ve.viewTuple, de = ve.info;
14903
14920
  switch (Ae) {
14904
14921
  case "dashboard": {
14905
- const Xe = a.find((st) => {
14922
+ const Ze = a.find((st) => {
14906
14923
  const [, at] = st;
14907
14924
  return at === "form";
14908
14925
  });
14909
14926
  let Ge;
14910
- Xe && (Ge = {
14927
+ Ze && (Ge = {
14911
14928
  action_id: h,
14912
14929
  action_type: p,
14913
14930
  name: i,
14914
14931
  res_id: o.active_id,
14915
14932
  res_model: r,
14916
- view_id: Xe[0],
14917
- view_type: Xe[1]
14933
+ view_id: Ze[0],
14934
+ view_type: Ze[1]
14918
14935
  }), ce.push({
14919
14936
  type: "dashboard",
14920
14937
  id: o.active_id,
@@ -15008,22 +15025,22 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15008
15025
  if (ce.length === 1) {
15009
15026
  Ee = "form", Ne = [];
15010
15027
  const Ae = ce[0], de = $.findIndex((Ge) => Ge.id === Ae);
15011
- let Xe;
15028
+ let Ze;
15012
15029
  if (de === -1) {
15013
15030
  try {
15014
- Xe = (ve = await M.getHandler().readObjects({
15031
+ Ze = (ve = await M.getHandler().readObjects({
15015
15032
  model: r,
15016
15033
  ids: [Ae],
15017
15034
  context: o
15018
15035
  })) == null ? void 0 : ve[0];
15019
15036
  } catch {
15020
15037
  }
15021
- if (!Xe) {
15038
+ if (!Ze) {
15022
15039
  B(!1), X(!1), cn(ee("idNotFound"));
15023
15040
  return;
15024
15041
  }
15025
15042
  } else
15026
- Xe = $[de];
15043
+ Ze = $[de];
15027
15044
  } else
15028
15045
  Ee = "tree", Ne = [["id", "in", ce]];
15029
15046
  if (B(!1), X(!1), Ue && Ee === "form") {
@@ -15059,7 +15076,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15059
15076
  fe(ce);
15060
15077
  }
15061
15078
  }
15062
- return w ? /* @__PURE__ */ s(et, {}) : C ? /* @__PURE__ */ N(
15079
+ return w ? /* @__PURE__ */ s(tt, {}) : C ? /* @__PURE__ */ N(
15063
15080
  Nh,
15064
15081
  {
15065
15082
  title: i,
@@ -15255,7 +15272,7 @@ function By(e) {
15255
15272
  domain: a = [],
15256
15273
  visible: i = !0,
15257
15274
  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) => {
15275
+ } = 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
15276
  G(!0), _(Z), x((Z - 1) * R.current);
15260
15277
  }, X = async () => {
15261
15278
  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({
@@ -15328,7 +15345,7 @@ function By(e) {
15328
15345
  treeView: p
15329
15346
  });
15330
15347
  }, 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 }),
15348
+ V && /* @__PURE__ */ s(bt, { className: "mt-10", message: V, type: "error", banner: !0 }),
15332
15349
  /* @__PURE__ */ s(
15333
15350
  cr,
15334
15351
  {
@@ -15356,7 +15373,7 @@ function By(e) {
15356
15373
  }
15357
15374
  )
15358
15375
  ] });
15359
- return L ? /* @__PURE__ */ s(vt, { className: "mt-10", message: L, type: "error", banner: !0 }) : c ? /* @__PURE__ */ s(et, { style: { padding: "2rem" } }) : se();
15376
+ return L ? /* @__PURE__ */ s(bt, { className: "mt-10", message: L, type: "error", banner: !0 }) : c ? /* @__PURE__ */ s(tt, { style: { padding: "2rem" } }) : se();
15360
15377
  }
15361
15378
  const jy = nt(By), Uy = (e) => {
15362
15379
  const { model: t } = e, [n, r] = I();
@@ -15505,7 +15522,7 @@ function Wy(e, t) {
15505
15522
  async function S() {
15506
15523
  h(a);
15507
15524
  }
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) => {
15525
+ 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
15526
  const { actionData: E, values: H } = F, { position: V, id: $ } = H, {
15510
15527
  actionId: L,
15511
15528
  actionType: D,
@@ -15686,7 +15703,7 @@ const Yy = _t(Wy), Gy = (e) => {
15686
15703
  u(!1);
15687
15704
  }
15688
15705
  if (c)
15689
- return /* @__PURE__ */ s(vt, { className: "mt-10", message: c, type: "error", banner: !0 });
15706
+ return /* @__PURE__ */ s(bt, { className: "mt-10", message: c, type: "error", banner: !0 });
15690
15707
  }
15691
15708
  const x = () => {
15692
15709
  T(i.map((w) => w.value));
@@ -15701,7 +15718,7 @@ const Yy = _t(Wy), Gy = (e) => {
15701
15718
  A.push({ id: S, operation: "pendingLink" });
15702
15719
  }), _(A);
15703
15720
  };
15704
- return f && i.length === 0 ? /* @__PURE__ */ s(et, {}) : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ N("div", { className: "flex flex-row", children: [
15721
+ return f && i.length === 0 ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ N("div", { className: "flex flex-row", children: [
15705
15722
  /* @__PURE__ */ s(
15706
15723
  qn.Group,
15707
15724
  {
@@ -15784,7 +15801,7 @@ const Yy = _t(Wy), Gy = (e) => {
15784
15801
  fontFamily: i,
15785
15802
  fontSize: l
15786
15803
  }
15787
- } = Qe.useToken(), c = {
15804
+ } = Xe.useToken(), c = {
15788
15805
  padding: 0,
15789
15806
  listStyleType: "none",
15790
15807
  fontFamily: i,
@@ -15887,7 +15904,7 @@ const dv = (e) => {
15887
15904
  avatar: /* @__PURE__ */ s(lv, { email: t.email, theme: "mp" }),
15888
15905
  title: t.author,
15889
15906
  description: /* @__PURE__ */ N(it, { direction: "horizontal", children: [
15890
- /* @__PURE__ */ s("span", { title: t.date, children: tt(t.date).fromNow() }),
15907
+ /* @__PURE__ */ s("span", { title: t.date, children: Qe(t.date).fromNow() }),
15891
15908
  t.isAuthor && /* @__PURE__ */ s(Fo, { color: "blue", children: r("author") })
15892
15909
  ] }),
15893
15910
  style: { marginBottom: "5px" }
@@ -15951,7 +15968,7 @@ const dv = (e) => {
15951
15968
  }
15952
15969
  const d = l.map((f) => /* @__PURE__ */ s(No, { ooui: f }, f.id));
15953
15970
  return /* @__PURE__ */ s(
15954
- vt,
15971
+ bt,
15955
15972
  {
15956
15973
  message: /* @__PURE__ */ s(Jn, { content: r }),
15957
15974
  description: /* @__PURE__ */ s(Jn, { content: o }),
@@ -15961,7 +15978,7 @@ const dv = (e) => {
15961
15978
  icon: c(i)
15962
15979
  }
15963
15980
  );
15964
- }, { defaultAlgorithm: hv, defaultSeed: gv } = Qe, fi = hv(gv), yv = (e) => {
15981
+ }, { defaultAlgorithm: hv, defaultSeed: gv } = Xe, fi = hv(gv), yv = (e) => {
15965
15982
  const { ooui: t, responsiveBehaviour: n = !1 } = e;
15966
15983
  return /* @__PURE__ */ s(vv, { autoplay: t.autoPlay, dots: !0, autoplaySpeed: 5e3, children: t.items.map((r, o) => /* @__PURE__ */ s(
15967
15984
  rs,
@@ -15971,7 +15988,7 @@ const dv = (e) => {
15971
15988
  },
15972
15989
  o
15973
15990
  )) });
15974
- }, vv = gt(Yl)`
15991
+ }, vv = yt(Yl)`
15975
15992
  .slick-dots li button {
15976
15993
  background-color: ${fi.colorPrimary};
15977
15994
  }
@@ -16316,7 +16333,7 @@ function Tv(e, t) {
16316
16333
  action_type: A,
16317
16334
  res_id: k,
16318
16335
  treeExpandable: U,
16319
- limit: F && (B === 0 || B === !1) ? ht : B,
16336
+ limit: F && (B === 0 || B === !1) ? gt : B,
16320
16337
  actionRawData: {
16321
16338
  context: $,
16322
16339
  domain: W,
@@ -16440,7 +16457,7 @@ function Tv(e, t) {
16440
16457
  }
16441
16458
  );
16442
16459
  }
16443
- const _b = _t(Tv), { useToken: Iv } = Qe;
16460
+ const _b = _t(Tv), { useToken: Iv } = Xe;
16444
16461
  function Fv(e) {
16445
16462
  const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: a } = e, { token: i } = Iv(), l = o ? i.colorBgContainer : i.colorPrimaryBg;
16446
16463
  return /* @__PURE__ */ N(
@@ -16548,7 +16565,7 @@ function Ob() {
16548
16565
  ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ s(_v, { tab: r }, r.key))) || null;
16549
16566
  return /* @__PURE__ */ s(oe, { children: n });
16550
16567
  }
16551
- const { useToken: Rv } = Qe, Eb = (e) => {
16568
+ const { useToken: Rv } = Xe, Eb = (e) => {
16552
16569
  const {
16553
16570
  onRetrieveShortcuts: t,
16554
16571
  onCheckIsFavourite: n,