@gisce/react-ooui 2.77.0-alpha.7 → 2.77.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,7 +3,7 @@ var Dl = (e, t, n) => t in e ? El(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var ss = (e, t, n) => (Dl(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsx as s, jsxs as V, Fragment as ce } from "react/jsx-runtime";
5
5
  import Gt, { useContext as de, useState as T, useEffect as ue, useRef as U, memo as tt, useCallback as E, useMemo as X, forwardRef as Ot, useImperativeHandle as Vt, Fragment as kn, createContext as Ol, createElement as Pl } from "react";
6
- import { Tooltip as Mt, theme as Ze, Typography as en, Form as Et, Row as Ye, Col as Ae, Modal as xt, Button as qe, Dropdown as kl, Menu as is, Space as st, Spin as et, Divider as Ar, Input as mt, Select as fn, Checkbox as qn, Alert as Ct, Timeline as ii, message as as, Popover as Ml, DatePicker as ai, TimePicker as Vl, InputNumber as Rr, Layout as li, Progress as Nl, Avatar as ci, Tag as Co, ColorPicker as di, Badge as er, Pagination as $l, Empty as ui, Statistic as Ll, Card as Fo, Tabs as fi, Radio as ls, Switch as Hl, Steps as cs, Carousel as jl } from "antd";
6
+ import { Tooltip as Mt, theme as Ze, Typography as en, Form as Et, Row as Ye, Col as Ae, Modal as xt, Button as qe, Dropdown as kl, Menu as is, Space as st, Spin as et, Divider as Ar, Input as pt, Select as fn, Checkbox as qn, Alert as Ct, Timeline as ii, message as as, Popover as Ml, DatePicker as ai, TimePicker as Vl, InputNumber as Rr, Layout as li, Progress as Nl, Avatar as ci, Tag as Co, ColorPicker as di, Badge as er, Pagination as $l, Empty as ui, Statistic as Ll, Card as Fo, Tabs as fi, Radio as ls, Switch as Hl, Steps as cs, Carousel as jl } from "antd";
7
7
  import { Label as Mn, Field as ao, Tree as mi, Reference as Bl, Selection as To, Many2one as pi, Boolean as Wl, parseContext as Xt, graphProcessor as hi, graphFieldUtils as Ul, Integer as lo, SearchFieldTypes as Qt, SearchFilter as gi, parseContextFields as Yl, parseDomainFields as Gl, parseGraph as yi, Container as ql, Form as vi, transformDomainForChildWidget as Io, Button as zl } from "@gisce/ooui";
8
8
  import Jl, { QuestionCircleOutlined as bi, ExclamationCircleOutlined as _r, LoadingOutlined as $t, DownOutlined as Er, CloseOutlined as Vn, CheckOutlined as tr, TranslationOutlined as wi, FolderOpenOutlined as Ao, DownloadOutlined as Ro, ClearOutlined as nr, FormOutlined as zn, TableOutlined as _o, AreaChartOutlined as Kl, CalendarOutlined as Ql, FileAddOutlined as Dr, CloseCircleFilled as Xl, CopyOutlined as rr, FilterOutlined as xi, DeleteOutlined as Eo, InfoCircleOutlined as Nn, ReloadOutlined as Or, ThunderboltOutlined as Pr, PrinterOutlined as kr, SearchOutlined as or, UpOutlined as Zl, ExportOutlined as Si, EnterOutlined as Mr, PlusSquareOutlined as ec, MinusSquareOutlined as tc, StarFilled as nc, StarOutlined as rc, LeftOutlined as Ci, RightOutlined as Fi, ApiOutlined as oc, AlignLeftOutlined as sc, EyeOutlined as ic, LinkOutlined as ds, SaveOutlined as ac, EditOutlined as Ti, PlusOutlined as lc, BorderOuterOutlined as cc, SettingOutlined as dc } from "@ant-design/icons";
9
9
  import { Interweave as Ht } from "interweave";
@@ -19,7 +19,7 @@ import yc from "dayjs/plugin/weekday";
19
19
  import vc from "dayjs/plugin/localeData";
20
20
  import { useLocale as he, Icon as Ii, iconMapper as _t, useNotification as bc, FormigaConfigProvider as wc, mergeStrings as xc, Dropdown as Ai, DropdownButton as Wt, SkeletonPill as Sc, Many2OneSuffix as Cc, Many2OneSuffixModal as us, PaginationHeader as Fc, FieldSet as Tc, ExportModal as Ic, HTMLPreview as Ac, FavouriteButton as Rc } from "@gisce/react-formiga-components";
21
21
  import _c from "antd/lib/input/TextArea";
22
- import vt from "styled-components";
22
+ import bt from "styled-components";
23
23
  import Do from "react-measure";
24
24
  import Ec from "lodash/debounce";
25
25
  import { nanoid as Oo } from "nanoid";
@@ -525,7 +525,7 @@ const ki = (e) => {
525
525
  message: t,
526
526
  title: r
527
527
  };
528
- }, pt = ({
528
+ }, ht = ({
529
529
  onButtonAction: e
530
530
  } = {}) => {
531
531
  const { open: t, destroy: n } = bc();
@@ -597,7 +597,7 @@ const ki = (e) => {
597
597
  destroyErrorNotification: n
598
598
  };
599
599
  }, Mi = (e) => {
600
- const { visible: t, onCloseModal: n, model: r, id: o, field: i, onSubmitSucceed: a } = e, { modalWidth: l } = Nr(), { t: c } = he(), [d, f] = T([]), [u, m] = T(!1), [h, p] = T(!1), [y, g] = T({}), v = U(), { showErrorNotification: w } = pt();
600
+ const { visible: t, onCloseModal: n, model: r, id: o, field: i, onSubmitSucceed: a } = e, { modalWidth: l } = Nr(), { t: c } = he(), [d, f] = T([]), [u, m] = T(!1), [h, p] = T(!1), [y, g] = T({}), v = U(), { showErrorNotification: w } = ht();
601
601
  ue(() => {
602
602
  t ? I() : g({});
603
603
  }, [t]);
@@ -716,7 +716,7 @@ const ki = (e) => {
716
716
  }
717
717
  );
718
718
  };
719
- function ft(e) {
719
+ function mt(e) {
720
720
  const { tooltip: t, ...n } = e;
721
721
  return /* @__PURE__ */ s(Mt, { title: t, children: /* @__PURE__ */ s(qe, { ...n }) });
722
722
  }
@@ -782,7 +782,7 @@ const Vi = (e) => {
782
782
  [r]
783
783
  );
784
784
  if (l) {
785
- const y = u ? wd : mt.Password;
785
+ const y = u ? wd : pt.Password;
786
786
  return /* @__PURE__ */ s(
787
787
  Kn,
788
788
  {
@@ -798,7 +798,7 @@ const Vi = (e) => {
798
798
  return /* @__PURE__ */ s(
799
799
  Kn,
800
800
  {
801
- component: u ? Li : mt,
801
+ component: u ? Li : pt,
802
802
  ooui: t,
803
803
  value: f,
804
804
  disabled: a || m || c && !n,
@@ -873,7 +873,7 @@ const $i = tt(
873
873
  /* @__PURE__ */ s(Ae, { flex: "auto", children: /* @__PURE__ */ s(
874
874
  Kn,
875
875
  {
876
- component: y ? Li : mt,
876
+ component: y ? Li : pt,
877
877
  ooui: e,
878
878
  value: t,
879
879
  id: n,
@@ -882,7 +882,7 @@ const $i = tt(
882
882
  }
883
883
  ) }),
884
884
  /* @__PURE__ */ s(Ae, { flex: "none", children: /* @__PURE__ */ s(
885
- ft,
885
+ mt,
886
886
  {
887
887
  tooltip: m("translate"),
888
888
  icon: /* @__PURE__ */ s(wi, {}),
@@ -894,22 +894,22 @@ const $i = tt(
894
894
  }
895
895
  );
896
896
  $i.displayName = "TranslatableCharComp";
897
- const vd = vt(mt)`
897
+ const vd = bt(pt)`
898
898
  &.ant-input {
899
899
  cursor: ${(e) => e.disabled ? "pointer" : "text"};
900
900
  pointer-events: ${(e) => e.disabled ? "none" : "auto"};
901
901
  }
902
- `, bd = vt(mt)`
902
+ `, bd = bt(pt)`
903
903
  &.ant-input {
904
904
  background-color: ${Mo.colorPrimaryBg};
905
905
  cursor: pointer;
906
906
  pointer-events: none;
907
907
  }
908
- `, Li = vt(mt)`
908
+ `, Li = bt(pt)`
909
909
  &.ant-input {
910
910
  background-color: ${Mo.colorPrimaryBg};
911
911
  }
912
- `, wd = vt(mt.Password)`
912
+ `, wd = bt(pt.Password)`
913
913
  &.ant-input-affix-wrapper {
914
914
  background-color: ${Mo.colorPrimaryBg};
915
915
  }
@@ -934,7 +934,7 @@ const vd = vt(mt)`
934
934
  children: c
935
935
  }
936
936
  );
937
- }, Td = vt(fn)`
937
+ }, Td = bt(fn)`
938
938
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
939
939
  background-color: ${Cd.colorPrimaryBg};
940
940
  }
@@ -944,7 +944,7 @@ const vd = vt(mt)`
944
944
  }, _d = (e) => {
945
945
  const { required: t, readOnly: n, ...r } = e;
946
946
  return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(t && !n ? Ed : qn, { disabled: n, ...r }) });
947
- }, Ed = vt(qn)`
947
+ }, Ed = bt(qn)`
948
948
  .ant-checkbox-inner {
949
949
  background-color: ${ps.colorPrimaryBg};
950
950
  }
@@ -1028,7 +1028,7 @@ const Vo = (e) => {
1028
1028
  ] }),
1029
1029
  t.showControls && /* @__PURE__ */ s(Ye, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ V(st, { children: [
1030
1030
  /* @__PURE__ */ s(
1031
- ft,
1031
+ mt,
1032
1032
  {
1033
1033
  tooltip: a("uploadNewImage"),
1034
1034
  icon: /* @__PURE__ */ s(Ao, {}),
@@ -1039,7 +1039,7 @@ const Vo = (e) => {
1039
1039
  }
1040
1040
  ),
1041
1041
  /* @__PURE__ */ s(
1042
- ft,
1042
+ mt,
1043
1043
  {
1044
1044
  tooltip: a("download"),
1045
1045
  disabled: !n,
@@ -1048,7 +1048,7 @@ const Vo = (e) => {
1048
1048
  }
1049
1049
  ),
1050
1050
  /* @__PURE__ */ s(
1051
- ft,
1051
+ mt,
1052
1052
  {
1053
1053
  tooltip: a("clear"),
1054
1054
  disabled: o || !n,
@@ -2987,7 +2987,7 @@ const Ru = ({
2987
2987
  return r;
2988
2988
  }, {});
2989
2989
  return Qn(n);
2990
- }, yt = 80, { confirm: Nu } = xt, $n = ({
2990
+ }, vt = 80, { confirm: Nu } = xt, $n = ({
2991
2991
  onOk: e,
2992
2992
  onCancel: t,
2993
2993
  t: n
@@ -3055,7 +3055,7 @@ function Lo(e) {
3055
3055
  }
3056
3056
  return /* @__PURE__ */ V("div", { style: { display: "flex" }, children: [
3057
3057
  /* @__PURE__ */ s(
3058
- ft,
3058
+ mt,
3059
3059
  {
3060
3060
  tooltip: a ? l("viewAs") + " " + l(a.type) : "",
3061
3061
  icon: Ss(a),
@@ -3105,7 +3105,7 @@ function St(e) {
3105
3105
  ...c
3106
3106
  } = e;
3107
3107
  return /* @__PURE__ */ V(
3108
- ft,
3108
+ mt,
3109
3109
  {
3110
3110
  type: l,
3111
3111
  tooltip: o,
@@ -3167,7 +3167,7 @@ function ra(e) {
3167
3167
  }
3168
3168
  ) }),
3169
3169
  /* @__PURE__ */ s(
3170
- ft,
3170
+ mt,
3171
3171
  {
3172
3172
  ...n,
3173
3173
  style: { width: 46, zIndex: 0 }
@@ -3225,7 +3225,7 @@ function Lu(e) {
3225
3225
  initialValues: { search: r },
3226
3226
  children: /* @__PURE__ */ V(Ye, { align: "middle", justify: "end", children: [
3227
3227
  /* @__PURE__ */ s(Ae, { children: /* @__PURE__ */ s(Et.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ s(
3228
- mt,
3228
+ pt,
3229
3229
  {
3230
3230
  autoFocus: !0,
3231
3231
  disabled: n,
@@ -3300,7 +3300,7 @@ const Ln = Gt.createContext(null), Cs = async (e) => {
3300
3300
  }, ju = (e, t) => {
3301
3301
  const { children: n, globalValues: r = {} } = e, o = U(), i = U(), [a, l] = T(!1), c = de(
3302
3302
  Pt
3303
- ), { openAction: d } = c || {}, f = U([]), { t: u } = he(), { showErrorNotification: m } = pt();
3303
+ ), { openAction: d } = c || {}, f = U([]), { t: u } = he(), { showErrorNotification: m } = ht();
3304
3304
  Vt(t, () => ({
3305
3305
  openActionModal: x,
3306
3306
  processAction: I
@@ -3660,8 +3660,8 @@ const Wu = Ot(ju), oa = ({
3660
3660
  actionButtonProps: l,
3661
3661
  printButtonProps: c
3662
3662
  };
3663
- }, lt = tt(() => /* @__PURE__ */ s("div", { className: "inline-block w-2" }));
3664
- lt.displayName = "ActionBarSeparator";
3663
+ }, ct = tt(() => /* @__PURE__ */ s("div", { className: "inline-block w-2" }));
3664
+ ct.displayName = "ActionBarSeparator";
3665
3665
  const Uu = "action", Yu = ["active_id", "active_ids", "id"], Gu = ["target", "context", "domain", "fields"], ia = (e) => {
3666
3666
  const t = new URL(window.location.origin);
3667
3667
  t.pathname = Uu;
@@ -3717,7 +3717,7 @@ function Hr({ res_id: e, searchParams: t }) {
3717
3717
  v === "form" && (w = !p || !e);
3718
3718
  const I = /* @__PURE__ */ s("div", { style: { padding: 2 }, children: /* @__PURE__ */ V(st.Compact, { style: { width: "100%" }, children: [
3719
3719
  /* @__PURE__ */ s(
3720
- mt,
3720
+ pt,
3721
3721
  {
3722
3722
  value: g,
3723
3723
  readOnly: !0,
@@ -3798,7 +3798,7 @@ function Ju({
3798
3798
  setSearchValues: k
3799
3799
  } = de(At), M = nn(
3800
3800
  jt.FEATURE_ADVANCED_EXPORT
3801
- ), { t: N } = he(), [H, $] = T(!1), O = U(!0), { showErrorNotification: W } = pt(), G = E(() => {
3801
+ ), { t: N } = he(), [H, $] = T(!1), O = U(!0), { showErrorNotification: W } = ht(), G = E(() => {
3802
3802
  var q;
3803
3803
  (q = h == null ? void 0 : h.current) == null || q.refreshResults();
3804
3804
  }, [h]), { actionButtonProps: j, printButtonProps: se } = sa({
@@ -3941,8 +3941,8 @@ function Ju({
3941
3941
  return /* @__PURE__ */ V(st, { wrap: !0, children: [
3942
3942
  x && /* @__PURE__ */ V(ce, { children: [
3943
3943
  /* @__PURE__ */ s(et, {}),
3944
- /* @__PURE__ */ s(lt, {}),
3945
- /* @__PURE__ */ s(lt, {})
3944
+ /* @__PURE__ */ s(ct, {}),
3945
+ /* @__PURE__ */ s(ct, {})
3946
3946
  ] }),
3947
3947
  !t && /* @__PURE__ */ V(ce, { children: [
3948
3948
  /* @__PURE__ */ s(
@@ -3969,7 +3969,7 @@ function Ju({
3969
3969
  badgeNumber: g == null ? void 0 : g.length
3970
3970
  }
3971
3971
  ),
3972
- /* @__PURE__ */ s(lt, {}),
3972
+ /* @__PURE__ */ s(ct, {}),
3973
3973
  /* @__PURE__ */ s(na, { disabled: x }),
3974
3974
  /* @__PURE__ */ s(
3975
3975
  St,
@@ -3991,7 +3991,7 @@ function Ju({
3991
3991
  onClick: ie
3992
3992
  }
3993
3993
  ),
3994
- /* @__PURE__ */ s(lt, {})
3994
+ /* @__PURE__ */ s(ct, {})
3995
3995
  ] }),
3996
3996
  /* @__PURE__ */ s(
3997
3997
  St,
@@ -4012,7 +4012,7 @@ function Ju({
4012
4012
  }
4013
4013
  ),
4014
4014
  !t && /* @__PURE__ */ V(ce, { children: [
4015
- /* @__PURE__ */ s(lt, {}),
4015
+ /* @__PURE__ */ s(ct, {}),
4016
4016
  /* @__PURE__ */ s(
4017
4017
  Lo,
4018
4018
  {
@@ -4024,11 +4024,11 @@ function Ju({
4024
4024
  }
4025
4025
  )
4026
4026
  ] }),
4027
- /* @__PURE__ */ s(lt, {}),
4027
+ /* @__PURE__ */ s(ct, {}),
4028
4028
  /* @__PURE__ */ s(Wt, { icon: /* @__PURE__ */ s(Pr, {}), ...j }),
4029
4029
  /* @__PURE__ */ s(Wt, { icon: /* @__PURE__ */ s(kr, {}), ...se }),
4030
4030
  M && /* @__PURE__ */ V(ce, { children: [
4031
- /* @__PURE__ */ s(lt, {}),
4031
+ /* @__PURE__ */ s(ct, {}),
4032
4032
  /* @__PURE__ */ s(
4033
4033
  Wt,
4034
4034
  {
@@ -4068,7 +4068,7 @@ function Ju({
4068
4068
  }
4069
4069
  )
4070
4070
  ] }),
4071
- /* @__PURE__ */ s(lt, {}),
4071
+ /* @__PURE__ */ s(ct, {}),
4072
4072
  /* @__PURE__ */ s(Hr, { searchParams: g })
4073
4073
  ] });
4074
4074
  }
@@ -4213,7 +4213,7 @@ const { useToken: Qu } = Ze, { Title: Xu, Text: pr } = en, jr = ({
4213
4213
  }) => {
4214
4214
  const [i, a] = T(!0), [l, c] = T(), [d, f] = T(), u = U(!1), [m, h] = Ke(
4215
4215
  L.getHandler().getView
4216
- ), { showErrorNotification: p } = pt();
4216
+ ), { showErrorNotification: p } = ht();
4217
4217
  ot(() => (o && y(), () => {
4218
4218
  h();
4219
4219
  }), [r, t, e, n, o]);
@@ -4688,7 +4688,7 @@ const { useToken: Qu } = Ze, { Title: Xu, Text: pr } = en, jr = ({
4688
4688
  ) });
4689
4689
  });
4690
4690
  Go.displayName = "Float";
4691
- const mf = vt(Rr)`
4691
+ const mf = bt(Rr)`
4692
4692
  &.ant-input-number {
4693
4693
  background-color: ${ff.colorPrimaryBg};
4694
4694
  }
@@ -4721,7 +4721,7 @@ const mf = vt(Rr)`
4721
4721
  ) });
4722
4722
  });
4723
4723
  Xn.displayName = "Integer";
4724
- const vf = vt(Rr)`
4724
+ const vf = bt(Rr)`
4725
4725
  &.ant-input-number {
4726
4726
  background-color: ${yf.colorPrimaryBg};
4727
4727
  }
@@ -4800,7 +4800,7 @@ const { defaultAlgorithm: wf, defaultSeed: xf } = Ze, Sf = wf(xf), { Option: Cf
4800
4800
  children: c
4801
4801
  }
4802
4802
  );
4803
- }, If = vt(fn)`
4803
+ }, If = bt(fn)`
4804
4804
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
4805
4805
  background-color: ${Sf.colorPrimaryBg};
4806
4806
  }
@@ -5162,13 +5162,13 @@ var ro = function() {
5162
5162
  return ro;
5163
5163
  }
5164
5164
  }
5165
- }() : ro, xn = $f(), zf = Hf(), ut = Object.getPrototypeOf || (zf ? function(e) {
5165
+ }() : ro, xn = $f(), zf = Hf(), ft = Object.getPrototypeOf || (zf ? function(e) {
5166
5166
  return e.__proto__;
5167
- } : null), Tn = {}, Jf = typeof Uint8Array > "u" || !ut ? je : ut(Uint8Array), dn = {
5167
+ } : null), Tn = {}, Jf = typeof Uint8Array > "u" || !ft ? je : ft(Uint8Array), dn = {
5168
5168
  "%AggregateError%": typeof AggregateError > "u" ? je : AggregateError,
5169
5169
  "%Array%": Array,
5170
5170
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? je : ArrayBuffer,
5171
- "%ArrayIteratorPrototype%": xn && ut ? ut([][Symbol.iterator]()) : je,
5171
+ "%ArrayIteratorPrototype%": xn && ft ? ft([][Symbol.iterator]()) : je,
5172
5172
  "%AsyncFromSyncIteratorPrototype%": je,
5173
5173
  "%AsyncFunction%": Tn,
5174
5174
  "%AsyncGenerator%": Tn,
@@ -5199,10 +5199,10 @@ var ro = function() {
5199
5199
  "%Int32Array%": typeof Int32Array > "u" ? je : Int32Array,
5200
5200
  "%isFinite%": isFinite,
5201
5201
  "%isNaN%": isNaN,
5202
- "%IteratorPrototype%": xn && ut ? ut(ut([][Symbol.iterator]())) : je,
5202
+ "%IteratorPrototype%": xn && ft ? ft(ft([][Symbol.iterator]())) : je,
5203
5203
  "%JSON%": typeof JSON == "object" ? JSON : je,
5204
5204
  "%Map%": typeof Map > "u" ? je : Map,
5205
- "%MapIteratorPrototype%": typeof Map > "u" || !xn || !ut ? je : ut((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5205
+ "%MapIteratorPrototype%": typeof Map > "u" || !xn || !ft ? je : ft((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5206
5206
  "%Math%": Math,
5207
5207
  "%Number%": Number,
5208
5208
  "%Object%": Object,
@@ -5215,10 +5215,10 @@ var ro = function() {
5215
5215
  "%Reflect%": typeof Reflect > "u" ? je : Reflect,
5216
5216
  "%RegExp%": RegExp,
5217
5217
  "%Set%": typeof Set > "u" ? je : Set,
5218
- "%SetIteratorPrototype%": typeof Set > "u" || !xn || !ut ? je : ut((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5218
+ "%SetIteratorPrototype%": typeof Set > "u" || !xn || !ft ? je : ft((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5219
5219
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? je : SharedArrayBuffer,
5220
5220
  "%String%": String,
5221
- "%StringIteratorPrototype%": xn && ut ? ut(""[Symbol.iterator]()) : je,
5221
+ "%StringIteratorPrototype%": xn && ft ? ft(""[Symbol.iterator]()) : je,
5222
5222
  "%Symbol%": xn ? Symbol : je,
5223
5223
  "%SyntaxError%": Pn,
5224
5224
  "%ThrowTypeError%": qf,
@@ -5233,11 +5233,11 @@ var ro = function() {
5233
5233
  "%WeakRef%": typeof WeakRef > "u" ? je : WeakRef,
5234
5234
  "%WeakSet%": typeof WeakSet > "u" ? je : WeakSet
5235
5235
  };
5236
- if (ut)
5236
+ if (ft)
5237
5237
  try {
5238
5238
  null.error;
5239
5239
  } catch (e) {
5240
- var Kf = ut(ut(e));
5240
+ var Kf = ft(ft(e));
5241
5241
  dn["%Error.prototype%"] = Kf;
5242
5242
  }
5243
5243
  var Qf = function e(t) {
@@ -5253,7 +5253,7 @@ var Qf = function e(t) {
5253
5253
  r && (n = r.prototype);
5254
5254
  } else if (t === "%AsyncIteratorPrototype%") {
5255
5255
  var o = e("%AsyncGenerator%");
5256
- o && ut && (n = ut(o.prototype));
5256
+ o && ft && (n = ft(o.prototype));
5257
5257
  }
5258
5258
  return dn[t] = n, n;
5259
5259
  }, Os = {
@@ -5726,8 +5726,12 @@ const Qo = /* @__PURE__ */ nd(dp), La = Ot(
5726
5726
  onFinish: n,
5727
5727
  onBlurCapture: p,
5728
5728
  onKeyPress: y,
5729
- className: "pt-3 pb-3",
5730
- style: { height: "100%", display: "flex", flexDirection: "column" },
5729
+ className: "pb-3",
5730
+ style: {
5731
+ height: "100%",
5732
+ display: "flex",
5733
+ flexDirection: "column"
5734
+ },
5731
5735
  children: [
5732
5736
  /* @__PURE__ */ V(
5733
5737
  "div",
@@ -5737,8 +5741,11 @@ const Qo = /* @__PURE__ */ nd(dp), La = Ot(
5737
5741
  flexShrink: 0
5738
5742
  },
5739
5743
  children: [
5740
- /* @__PURE__ */ s("div", { style: { padding: "0 12px 12px 12px" }, children: /* @__PURE__ */ s(
5741
- mt,
5744
+ /* @__PURE__ */ s(st, { direction: "vertical", style: { rowGap: 0, width: "100%" }, children: h({
5745
+ onlyInputsWithValue: !0
5746
+ }) }),
5747
+ /* @__PURE__ */ s("div", { style: { padding: "12px 12px 12px 12px" }, children: /* @__PURE__ */ s(
5748
+ pt,
5742
5749
  {
5743
5750
  placeholder: m("enterFieldToFilter"),
5744
5751
  value: f,
@@ -5750,10 +5757,7 @@ const Qo = /* @__PURE__ */ nd(dp), La = Ot(
5750
5757
  g.key === "Enter" && g.preventDefault();
5751
5758
  }
5752
5759
  }
5753
- ) }),
5754
- /* @__PURE__ */ s(st, { direction: "vertical", style: { rowGap: 0, width: "100%" }, children: h({
5755
- onlyInputsWithValue: !0
5756
- }) })
5760
+ ) })
5757
5761
  ]
5758
5762
  }
5759
5763
  ),
@@ -6066,7 +6070,7 @@ function Wr(e) {
6066
6070
  function ja({
6067
6071
  useLocalState: e = !1
6068
6072
  }) {
6069
- const t = mh() && !e, n = gn(), [r, o] = T(!1), [i, a] = T(!1), [l, c] = T([]), [d, f] = T(0), [u, m] = T(void 0), [h, p] = T([]), [y, g] = T({}), [v, w] = T(), [I, S] = T([]), [x, R] = T(), [_, C] = T(0), [b, D] = T(), [A, F] = T(1), [P, k] = T(un), [M, N] = T(yt);
6073
+ const t = mh() && !e, n = gn(), [r, o] = T(!1), [i, a] = T(!1), [l, c] = T([]), [d, f] = T(0), [u, m] = T(void 0), [h, p] = T([]), [y, g] = T({}), [v, w] = T(), [I, S] = T([]), [x, R] = T(), [_, C] = T(0), [b, D] = T(), [A, F] = T(1), [P, k] = T(un), [M, N] = T(vt);
6070
6074
  return t ? {
6071
6075
  treeIsLoading: n.treeIsLoading ?? !1,
6072
6076
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -6111,7 +6115,7 @@ function ja({
6111
6115
  treeType: n.treeType ?? un,
6112
6116
  setTreeType: n.setTreeType ?? (() => {
6113
6117
  }),
6114
- limit: n.limit ?? yt,
6118
+ limit: n.limit ?? vt,
6115
6119
  setLimit: n.setLimit ?? (() => {
6116
6120
  })
6117
6121
  } : {
@@ -6590,12 +6594,12 @@ const xp = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(qa,
6590
6594
  /* @__PURE__ */ s(Cp, { percent: e }),
6591
6595
  /* @__PURE__ */ s(Fp, { children: t })
6592
6596
  ] });
6593
- }, Sp = vt.div`
6597
+ }, Sp = bt.div`
6594
6598
  display: flex;
6595
6599
  align-items: center;
6596
6600
  width: 100%;
6597
6601
  min-width: 0;
6598
- `, Cp = vt(Nl)`
6602
+ `, Cp = bt(Nl)`
6599
6603
  flex: 1;
6600
6604
  min-width: 0;
6601
6605
  .ant-progress-outer {
@@ -6605,7 +6609,7 @@ const xp = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(qa,
6605
6609
  .ant-progress-text {
6606
6610
  display: none;
6607
6611
  }
6608
- `, Fp = vt.div`
6612
+ `, Fp = bt.div`
6609
6613
  padding-left: 10px;
6610
6614
  white-space: nowrap;
6611
6615
  `, Tp = ({
@@ -6958,7 +6962,7 @@ const Dp = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(za,
6958
6962
  }
6959
6963
  ),
6960
6964
  /* @__PURE__ */ s(
6961
- mt,
6965
+ pt,
6962
6966
  {
6963
6967
  readOnly: r,
6964
6968
  ref: d,
@@ -6982,7 +6986,7 @@ const Dp = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(za,
6982
6986
  ]
6983
6987
  }
6984
6988
  );
6985
- }, ct = {
6989
+ }, dt = {
6986
6990
  date: {
6987
6991
  placeholder: "__/__/____",
6988
6992
  dateDisplayFormat: "DD/MM/YYYY",
@@ -7005,31 +7009,31 @@ const Dp = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(za,
7005
7009
  }), Pp = (e) => {
7006
7010
  const { currentValue: t, now: n, mode: r, showTime: o, onChange: i } = e, a = Ka();
7007
7011
  if (!t || t.trim() === "") {
7008
- i(n.format(ct[r].dateInternalFormat));
7012
+ i(n.format(dt[r].dateInternalFormat));
7009
7013
  return;
7010
7014
  }
7011
7015
  if (a.day.test(t)) {
7012
7016
  const l = n.date(parseInt(t));
7013
- i(l.format(ct[r].dateInternalFormat));
7017
+ i(l.format(dt[r].dateInternalFormat));
7014
7018
  }
7015
7019
  if (a.dayMonth.test(t)) {
7016
7020
  const [l, c] = t.split("/").map((f) => parseInt(f)), d = n.date(l).month(c - 1);
7017
- i(d.format(ct[r].dateInternalFormat));
7021
+ i(d.format(dt[r].dateInternalFormat));
7018
7022
  }
7019
7023
  if (a.fullDate.test(t)) {
7020
7024
  const [l, c, d] = t.split("/").map((u) => parseInt(u)), f = n.date(l).month(c - 1).year(d);
7021
- o || i(f.format(ct.date.dateInternalFormat)), i(f.format(ct.time.dateInternalFormat));
7025
+ o || i(f.format(dt.date.dateInternalFormat)), i(f.format(dt.time.dateInternalFormat));
7022
7026
  }
7023
7027
  if (o) {
7024
7028
  const [l, c] = t.split(" "), [d, f, u] = l.split("/").map((h) => parseInt(h));
7025
7029
  let m = n.date(d).month(f - 1).year(u);
7026
7030
  if (a.withHours.test(t)) {
7027
7031
  const [h] = c.split(":").map((p) => parseInt(p));
7028
- m = m.hour(h), i(m.format(ct.time.dateInternalFormat));
7032
+ m = m.hour(h), i(m.format(dt.time.dateInternalFormat));
7029
7033
  }
7030
7034
  if (a.withMinutes.test(t)) {
7031
7035
  const [h, p] = c.split(":").map((y) => parseInt(y));
7032
- m = m.hour(h).minute(p), i(m.format(ct.time.dateInternalFormat));
7036
+ m = m.hour(h).minute(p), i(m.format(dt.time.dateInternalFormat));
7033
7037
  }
7034
7038
  }
7035
7039
  }, kp = (e, t) => {
@@ -7129,8 +7133,8 @@ const Dp = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(za,
7129
7133
  return /* @__PURE__ */ s(ce, {});
7130
7134
  const t = Xe(
7131
7135
  e,
7132
- ct.date.dateInternalFormat
7133
- ).format(ct.date.dateDisplayFormat);
7136
+ dt.date.dateInternalFormat
7137
+ ).format(dt.date.dateDisplayFormat);
7134
7138
  return /* @__PURE__ */ s(ce, { children: t });
7135
7139
  }, [e]), jp = ({
7136
7140
  value: e,
@@ -7140,8 +7144,8 @@ const Dp = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(za,
7140
7144
  return /* @__PURE__ */ s(ce, {});
7141
7145
  const t = Xe(
7142
7146
  e,
7143
- ct.time.dateInternalFormat
7144
- ).format(ct.time.dateDisplayFormat);
7147
+ dt.time.dateInternalFormat
7148
+ ).format(dt.time.dateDisplayFormat);
7145
7149
  return /* @__PURE__ */ s(ce, { children: t });
7146
7150
  }, [e]), Qs = ({
7147
7151
  value: e
@@ -7302,7 +7306,7 @@ function eh(e, t) {
7302
7306
  nameSearch: u,
7303
7307
  filterType: m = "side",
7304
7308
  onChangeTreeType: h
7305
- } = e, p = U(null), y = U([]), g = U(!1), { showErrorNotification: v } = pt(), [w, I] = T(), [S, x] = T(!1), { t: R } = he(), _ = U(null), C = ca({
7309
+ } = e, p = U(null), y = U([]), g = U(!1), { showErrorNotification: v } = ht(), [w, I] = T(), [S, x] = T(!1), { t: R } = he(), _ = U(null), C = ca({
7306
7310
  elementRef: _,
7307
7311
  offset: Xp
7308
7312
  }), { treeView: b, formView: D, loading: A } = Bo({
@@ -7397,7 +7401,7 @@ function eh(e, t) {
7397
7401
  } = Wo({ key: Ue }), Ge = X(
7398
7402
  () => Zt(G || [], a),
7399
7403
  [a, G]
7400
- ), bt = E(() => {
7404
+ ), ut = E(() => {
7401
7405
  const ge = `${JSON.stringify(J ? a : Ge)}-${J}`;
7402
7406
  return ge !== le.current ? (le.current = ge, !0) : !1;
7403
7407
  }, [a, Ge, J]), re = E(async () => {
@@ -7474,7 +7478,7 @@ function eh(e, t) {
7474
7478
  name_search: J,
7475
7479
  context: d,
7476
7480
  order: He
7477
- }), bt() || Ie.current !== He)
7481
+ }), ut() || Ie.current !== He)
7478
7482
  ye == null || ye(Jt);
7479
7483
  else {
7480
7484
  const It = [...ne || [], ...Jt];
@@ -7491,7 +7495,7 @@ function eh(e, t) {
7491
7495
  a,
7492
7496
  Ge,
7493
7497
  n,
7494
- bt,
7498
+ ut,
7495
7499
  J,
7496
7500
  d,
7497
7501
  ye,
@@ -7545,7 +7549,7 @@ function eh(e, t) {
7545
7549
  var ge, Pe, He, Bt;
7546
7550
  if (Ce.current[(Pe = (ge = Q.node) == null ? void 0 : ge.data) == null ? void 0 : Pe.id])
7547
7551
  return { color: Ce.current[(Bt = (He = Q.node) == null ? void 0 : He.data) == null ? void 0 : Bt.id] };
7548
- }, []), rt = X(() => ($ == null ? void 0 : $.map((Q) => Q.id)) || [], [$]), [ht, Ft, Tt] = Uo({
7552
+ }, []), rt = X(() => ($ == null ? void 0 : $.map((Q) => Q.id)) || [], [$]), [gt, Ft, Tt] = Uo({
7549
7553
  ooui: Re,
7550
7554
  model: n,
7551
7555
  showEmptyValues: !0,
@@ -7592,7 +7596,7 @@ function eh(e, t) {
7592
7596
  M,
7593
7597
  R,
7594
7598
  w
7595
- ]), gt = E(() => H, [H]), Rt = X(() => Tt ? /* @__PURE__ */ s(Yo, { aggregates: Ft, isLoading: ht }) : null, [Ft, ht, Tt]), it = E((Q) => /* @__PURE__ */ s(er, { color: Q, style: { marginLeft: 7 } }), []), at = E(
7599
+ ]), yt = E(() => H, [H]), Rt = X(() => Tt ? /* @__PURE__ */ s(Yo, { aggregates: Ft, isLoading: gt }) : null, [Ft, gt, Tt]), it = E((Q) => /* @__PURE__ */ s(er, { color: Q, style: { marginLeft: 7 } }), []), at = E(
7596
7600
  (Q) => {
7597
7601
  var ge;
7598
7602
  return (ge = fe.current) == null ? void 0 : ge[Q.id];
@@ -7602,7 +7606,7 @@ function eh(e, t) {
7602
7606
  ), wt = X(() => {
7603
7607
  if (!Me || !Re)
7604
7608
  return null;
7605
- const Q = q.current ? yt : void 0;
7609
+ const Q = q.current ? vt : void 0;
7606
7610
  return /* @__PURE__ */ s(
7607
7611
  _i,
7608
7612
  {
@@ -7617,7 +7621,7 @@ function eh(e, t) {
7617
7621
  onColumnChanged: nt,
7618
7622
  onGetColumnsState: ze,
7619
7623
  onChangeFirstVisibleRowIndex: N,
7620
- onGetFirstVisibleRowIndex: gt,
7624
+ onGetFirstVisibleRowIndex: yt,
7621
7625
  selectedRowKeys: rt,
7622
7626
  onSelectionCheckboxClicked: Je,
7623
7627
  totalRows: w || 99999,
@@ -7643,7 +7647,7 @@ function eh(e, t) {
7643
7647
  nt,
7644
7648
  ze,
7645
7649
  N,
7646
- gt,
7650
+ yt,
7647
7651
  rt,
7648
7652
  Je,
7649
7653
  w,
@@ -7754,7 +7758,7 @@ function eh(e, t) {
7754
7758
  j,
7755
7759
  k
7756
7760
  ]
7757
- ), Se = J && S && w !== void 0 && w !== null && w === yt;
7761
+ ), Se = J && S && w !== void 0 && w !== null && w === vt;
7758
7762
  return /* @__PURE__ */ V(kn, { children: [
7759
7763
  m === "top" && /* @__PURE__ */ s(
7760
7764
  Wr,
@@ -7814,7 +7818,7 @@ const Za = Ot(eh), Zs = (e, t = "14px -apple-system") => {
7814
7818
  source: t,
7815
7819
  tableWidth: o
7816
7820
  };
7817
- }, nh = vt.div`
7821
+ }, nh = bt.div`
7818
7822
  display: flex;
7819
7823
  align-items: center;
7820
7824
  justify-content: center;
@@ -8026,7 +8030,7 @@ const tl = (e) => {
8026
8030
  searchParams: R = [],
8027
8031
  setSearchValues: _,
8028
8032
  clearSelection: C
8029
- } = e, [b, D] = T(!1), [A, F] = T(!1), [P, k] = T(), [M, N] = T(1), [H, $] = T(0), [O, W] = T(), [G, j] = T([]), [se, te] = T(void 0), [ye, ne] = T(void 0), B = U(S || yt), K = U([]), Z = E(
8033
+ } = e, [b, D] = T(!1), [A, F] = T(!1), [P, k] = T(), [M, N] = T(1), [H, $] = T(0), [O, W] = T(), [G, j] = T([]), [se, te] = T(void 0), [ye, ne] = T(void 0), B = U(S || vt), K = U([]), Z = E(
8030
8034
  (fe) => {
8031
8035
  g == null || g([...fe]), j([...fe]);
8032
8036
  },
@@ -8180,7 +8184,7 @@ const tl = (e) => {
8180
8184
  },
8181
8185
  [D, S, $, N]
8182
8186
  ), ke = E(() => {
8183
- b || (n == null || n(void 0), o == null || o([]), _ == null || _({}), k(void 0), $(0), N(1), x == null || x(S || yt));
8187
+ b || (n == null || n(void 0), o == null || o([]), _ == null || _({}), k(void 0), $(0), N(1), x == null || x(S || vt));
8184
8188
  }, [
8185
8189
  b,
8186
8190
  n,
@@ -8261,11 +8265,11 @@ function oh(e, t) {
8261
8265
  setTreeIsLoading: J = void 0,
8262
8266
  searchValues: ie = {},
8263
8267
  setSearchValues: q = void 0,
8264
- limit: le = yt,
8268
+ limit: le = vt,
8265
8269
  setLimit: Ie = void 0
8266
- } = (f ? H : {}) || {}, { showErrorNotification: ke } = pt(), Re = E(
8270
+ } = (f ? H : {}) || {}, { showErrorNotification: ke } = ht(), Re = E(
8267
8271
  (Je) => {
8268
- se == null || se(Je.map((gt) => ({ id: gt }))), m == null || m(Je);
8272
+ se == null || se(Je.map((yt) => ({ id: yt }))), m == null || m(Je);
8269
8273
  },
8270
8274
  [m, se]
8271
8275
  ), {
@@ -8320,7 +8324,7 @@ function oh(e, t) {
8320
8324
  })), ue(() => {
8321
8325
  y && d && x && (v.current = !1, Fe());
8322
8326
  }, [ve, be, y, d, a, x]);
8323
- const bt = async () => {
8327
+ const ut = async () => {
8324
8328
  g(!1), p(!0), D(void 0), J == null || J(!0);
8325
8329
  try {
8326
8330
  await re(), g(!0);
@@ -8337,15 +8341,15 @@ function oh(e, t) {
8337
8341
  type: "form",
8338
8342
  context: u
8339
8343
  }));
8340
- let gt = o;
8341
- o || (gt = await L.getHandler().getView({
8344
+ let yt = o;
8345
+ o || (yt = await L.getHandler().getView({
8342
8346
  model: n,
8343
8347
  type: "tree",
8344
8348
  context: u
8345
- })), C(Je), R(gt);
8349
+ })), C(Je), R(yt);
8346
8350
  };
8347
8351
  ue(() => {
8348
- bt();
8352
+ ut();
8349
8353
  }, [n]);
8350
8354
  const ae = E(
8351
8355
  (Je) => {
@@ -8354,7 +8358,7 @@ function oh(e, t) {
8354
8358
  [Ie]
8355
8359
  ), xe = E(
8356
8360
  async (Je) => {
8357
- const { id: gt } = Je;
8361
+ const { id: yt } = Je;
8358
8362
  P.current || (P.current = await L.getHandler().treeButOpen({
8359
8363
  id: x.view_id,
8360
8364
  model: I,
@@ -8365,7 +8369,7 @@ function oh(e, t) {
8365
8369
  actionData: Rt,
8366
8370
  fields: x.fields,
8367
8371
  values: {
8368
- active_id: gt,
8372
+ active_id: yt,
8369
8373
  ...Je
8370
8374
  },
8371
8375
  context: u
@@ -8374,7 +8378,7 @@ function oh(e, t) {
8374
8378
  [I, u, N, x]
8375
8379
  ), oe = E(
8376
8380
  async (Je) => {
8377
- const { id: gt } = Je;
8381
+ const { id: yt } = Je;
8378
8382
  if (x != null && x.isExpandable) {
8379
8383
  try {
8380
8384
  await xe(Je);
@@ -8384,7 +8388,7 @@ function oh(e, t) {
8384
8388
  return;
8385
8389
  }
8386
8390
  i({
8387
- id: gt,
8391
+ id: yt,
8388
8392
  model: I,
8389
8393
  formView: _,
8390
8394
  treeView: x
@@ -8393,11 +8397,11 @@ function oh(e, t) {
8393
8397
  [I, _, i, xe, x]
8394
8398
  ), Le = E(async () => {
8395
8399
  const Je = await Ge();
8396
- se == null || se(Je.map((gt) => ({ id: gt }))), m == null || m(Je);
8400
+ se == null || se(Je.map((yt) => ({ id: yt }))), m == null || m(Je);
8397
8401
  }, [Ge, m, se]), De = X(() => x != null && x.isExpandable ? k - 160 : k - (A + 240), [k, A, x == null ? void 0 : x.isExpandable]), rt = X(
8398
8402
  () => j == null ? void 0 : j.map((Je) => Je.id),
8399
8403
  [j]
8400
- ), ht = E(() => !x || !_ ? null : /* @__PURE__ */ V(ce, { children: [
8404
+ ), gt = E(() => !x || !_ ? null : /* @__PURE__ */ V(ce, { children: [
8401
8405
  /* @__PURE__ */ s(
8402
8406
  Wr,
8403
8407
  {
@@ -8476,9 +8480,9 @@ function oh(e, t) {
8476
8480
  l,
8477
8481
  x
8478
8482
  ]), Ft = b || We;
8479
- return Ft ? /* @__PURE__ */ s(Ct, { className: "mt-10", message: Ft, type: "error", banner: !0 }) : /* @__PURE__ */ s("div", { style: d ? {} : { display: "none" }, children: h ? /* @__PURE__ */ s(et, {}) : ht() });
8483
+ return Ft ? /* @__PURE__ */ s(Ct, { className: "mt-10", message: Ft, type: "error", banner: !0 }) : /* @__PURE__ */ s("div", { style: d ? {} : { display: "none" }, children: h ? /* @__PURE__ */ s(et, {}) : gt() });
8480
8484
  }
8481
- const nl = Ot(oh), sh = yt, ih = (e) => {
8485
+ const nl = Ot(oh), sh = vt, ih = (e) => {
8482
8486
  const {
8483
8487
  treeViewFetching: t,
8484
8488
  treeOoui: n,
@@ -8567,7 +8571,7 @@ const nl = Ot(oh), sh = yt, ih = (e) => {
8567
8571
  treeOoui: n,
8568
8572
  updateAttributes: Me,
8569
8573
  results: P
8570
- }), { showErrorNotification: Ge } = pt(), [bt, re] = Ke(
8574
+ }), { showErrorNotification: Ge } = ht(), [ut, re] = Ke(
8571
8575
  L.getHandler().searchCount
8572
8576
  ), [ae, xe] = Ke(
8573
8577
  L.getHandler().searchForTree
@@ -8576,13 +8580,13 @@ const nl = Ot(oh), sh = yt, ih = (e) => {
8576
8580
  ), De = X(
8577
8581
  () => Zt(C || [], c),
8578
8582
  [c, C]
8579
- ), rt = X(() => (x == null ? void 0 : x.map((Se) => Se.id)) || [], [x]), ht = E(() => {
8583
+ ), rt = X(() => (x == null ? void 0 : x.map((Se) => Se.id)) || [], [x]), gt = E(() => {
8580
8584
  const Q = `${JSON.stringify(ie ? c : De)}-${ie}`;
8581
8585
  return Q !== ke.current ? (ke.current = Q, !0) : !1;
8582
8586
  }, [c, De, ie]), Ft = E(async () => {
8583
8587
  K(void 0), M(0), ne(!0);
8584
8588
  try {
8585
- const Se = await bt({
8589
+ const Se = await ut({
8586
8590
  params: ie ? c : De,
8587
8591
  model: o,
8588
8592
  context: d,
@@ -8596,14 +8600,14 @@ const nl = Ot(oh), sh = yt, ih = (e) => {
8596
8600
  }
8597
8601
  }, [
8598
8602
  M,
8599
- bt,
8603
+ ut,
8600
8604
  ie,
8601
8605
  c,
8602
8606
  De,
8603
8607
  o,
8604
8608
  d,
8605
8609
  Ge
8606
- ]), Tt = E(() => w, [w]), Je = E(() => I, [I]), gt = E((Se) => {
8610
+ ]), Tt = E(() => w, [w]), Je = E(() => I, [I]), yt = E((Se) => {
8607
8611
  var Q, ge, Pe, He;
8608
8612
  return Ve.current[(ge = (Q = Se.node) == null ? void 0 : Q.data) == null ? void 0 : ge.id] ? { color: Ve.current[(He = (Pe = Se.node) == null ? void 0 : Pe.data) == null ? void 0 : He.id] } : {};
8609
8613
  }, []), Rt = E(
@@ -8701,7 +8705,7 @@ const nl = Ot(oh), sh = yt, ih = (e) => {
8701
8705
  treeOoui: n,
8702
8706
  hasFunctionFieldsToParseConditions: ge && ze()
8703
8707
  });
8704
- !ie && ht() && Ft();
8708
+ !ie && gt() && Ft();
8705
8709
  const { results: He, attrsEvaluated: Bt } = await ae({
8706
8710
  params: Q,
8707
8711
  limit: te,
@@ -8750,7 +8754,7 @@ const nl = Ot(oh), sh = yt, ih = (e) => {
8750
8754
  ze,
8751
8755
  k,
8752
8756
  F,
8753
- ht,
8757
+ gt,
8754
8758
  Me,
8755
8759
  _e,
8756
8760
  M,
@@ -8831,7 +8835,7 @@ const nl = Ot(oh), sh = yt, ih = (e) => {
8831
8835
  onSideSearchFilterSubmit: yn,
8832
8836
  totalRowsLoading: ye,
8833
8837
  totalRows: B,
8834
- onRowStyle: gt,
8838
+ onRowStyle: yt,
8835
8839
  results: Z,
8836
8840
  onRequestPageChange: vn,
8837
8841
  treeIsLoading: m,
@@ -8872,7 +8876,7 @@ const nl = Ot(oh), sh = yt, ih = (e) => {
8872
8876
  n == null ? void 0 : n.search_fields
8873
8877
  ]),
8874
8878
  showLimitOptions: !1,
8875
- limit: yt,
8879
+ limit: vt,
8876
8880
  offset: 0,
8877
8881
  isSearching: !1,
8878
8882
  searchValues: o,
@@ -9096,7 +9100,7 @@ function ch(e, t) {
9096
9100
  ...l ? {} : { display: "none" }
9097
9101
  }),
9098
9102
  [v, l]
9099
- ), Ne = Te !== void 0 && Fe, Ue = Ne && j !== void 0 && j !== null && j === yt, _e = X(() => typeof j != "number" || isNaN(j) || j < 0 ? (te == null ? void 0 : te.length) || 0 : j || 0, [j, te]), ze = X(() => (te == null ? void 0 : te.length) > 0 && (typeof j != "number" || isNaN(j) || j < 0) ? te == null ? void 0 : te.length : f ? yt : q || sh, [te == null ? void 0 : te.length, j, f, q]);
9103
+ ), Ne = Te !== void 0 && Fe, Ue = Ne && j !== void 0 && j !== null && j === vt, _e = X(() => typeof j != "number" || isNaN(j) || j < 0 ? (te == null ? void 0 : te.length) || 0 : j || 0, [j, te]), ze = X(() => (te == null ? void 0 : te.length) > 0 && (typeof j != "number" || isNaN(j) || j < 0) ? te == null ? void 0 : te.length : f ? vt : q || sh, [te == null ? void 0 : te.length, j, f, q]);
9100
9104
  return /* @__PURE__ */ V(kn, { children: [
9101
9105
  /* @__PURE__ */ s(
9102
9106
  ah,
@@ -9250,7 +9254,7 @@ const dh = Ot(ch), un = "legacy", uh = (e) => {
9250
9254
  y.current && !t && g === "infinite" && (_ == null || _([])), y.current = t;
9251
9255
  }, [t, g]);
9252
9256
  const b = E((D) => {
9253
- v(D), D === "paginated" && (I == null || I(p || yt)), D === "infinite" && (I == null || I(0));
9257
+ v(D), D === "paginated" && (I == null || I(p || vt)), D === "infinite" && (I == null || I(0));
9254
9258
  }, []);
9255
9259
  return t ? /* @__PURE__ */ V(kn, { children: [
9256
9260
  /* @__PURE__ */ s(jr, { showSummary: g !== "infinite", children: /* @__PURE__ */ s(
@@ -9349,14 +9353,14 @@ const dh = Ot(ch), un = "legacy", uh = (e) => {
9349
9353
  ), [Re, Ce] = T(0), [fe, Fe] = T(void 0), [Te, Be] = T(), [We, ve] = T(un), [Ve, be] = T(
9350
9354
  P
9351
9355
  ), [Me, Ee] = T(
9352
- b !== void 0 ? b : yt
9356
+ b !== void 0 ? b : vt
9353
9357
  ), [Ne, Ue] = T(r), [_e, ze] = T(
9354
9358
  F || 1
9355
9359
  );
9356
9360
  ue(() => {
9357
9361
  m && m.length > 0 && !h && (p == null || p(0), f == null || f(m[0].id));
9358
9362
  }, [m]), ue(() => {
9359
- Ee(b !== void 0 ? b : yt);
9363
+ Ee(b !== void 0 ? b : vt);
9360
9364
  }, [b]), ue(() => {
9361
9365
  i.length === 1 ? le(i[0]) : i.length > 1 && le(
9362
9366
  i.filter(
@@ -9482,7 +9486,7 @@ const dh = Ot(ch), un = "legacy", uh = (e) => {
9482
9486
  searchTreeNameSearch: void 0,
9483
9487
  goToResourceId: async () => {
9484
9488
  },
9485
- limit: yt,
9489
+ limit: vt,
9486
9490
  isActive: void 0,
9487
9491
  formIsSaving: !1,
9488
9492
  setFormIsSaving: () => {
@@ -9906,7 +9910,7 @@ const dh = Ot(ch), un = "legacy", uh = (e) => {
9906
9910
  ]
9907
9911
  }
9908
9912
  );
9909
- }, Sh = vt(ui)`
9913
+ }, Sh = bt(ui)`
9910
9914
  &.ant-empty.ant-empty-normal {
9911
9915
  margin: 0;
9912
9916
  margin-top: 5px;
@@ -10324,7 +10328,7 @@ function Lh(e, t) {
10324
10328
  isActive: Ve = void 0
10325
10329
  } = (S ? Re : {}) || {}, be = de(
10326
10330
  Ln
10327
- ), { processAction: Me, globalValues: Ee } = be || {}, { showErrorNotification: Ne } = pt({
10331
+ ), { processAction: Me, globalValues: Ee } = be || {}, { showErrorNotification: Ne } = ht({
10328
10332
  onButtonAction: (Y) => {
10329
10333
  It({ actionData: Y });
10330
10334
  }
@@ -10334,7 +10338,7 @@ function Lh(e, t) {
10334
10338
  getFieldMessage: ze,
10335
10339
  getFieldMessageType: nt,
10336
10340
  clearFieldMessage: Ge,
10337
- clearAllFieldMessages: bt,
10341
+ clearAllFieldMessages: ut,
10338
10342
  setFieldMessagesArray: re
10339
10343
  } = Nh();
10340
10344
  Vt(t, () => ({
@@ -10349,7 +10353,7 @@ function Lh(e, t) {
10349
10353
  ne.current = void 0, M(void 0), vn();
10350
10354
  }
10351
10355
  })), ue(() => {
10352
- if (P(void 0), !(!n && !p)) {
10356
+ if (P(void 0), ut(), !(!n && !p)) {
10353
10357
  if (!I) {
10354
10358
  ne.current = void 0, M(void 0);
10355
10359
  return;
@@ -10384,10 +10388,10 @@ function Lh(e, t) {
10384
10388
  const Y = at(), ee = De(), pe = {};
10385
10389
  return Object.keys(Y).forEach((we) => {
10386
10390
  const Oe = Y[we];
10387
- ee[we] && ee[we].type === "many2one" && Oe && Array.isArray(Oe) && Oe.length === 2 ? pe[we] = Oe[0] : ee[we] && (ee[we].type === "one2many" || ee[we].type === "many2many") && Oe && Oe.items ? pe[we] = Oe.items.filter((dt) => dt.operation !== "pendingRemove").map((dt) => dt.id) : pe[we] = Oe;
10391
+ ee[we] && ee[we].type === "many2one" && Oe && Array.isArray(Oe) && Oe.length === 2 ? pe[we] = Oe[0] : ee[we] && (ee[we].type === "one2many" || ee[we].type === "many2many") && Oe && Oe.items ? pe[we] = Oe.items.filter((lt) => lt.operation !== "pendingRemove").map((lt) => lt.id) : pe[we] = Oe;
10388
10392
  }), pe;
10389
10393
  }
10390
- function ht() {
10394
+ function gt() {
10391
10395
  const Y = {
10392
10396
  ...it(O)
10393
10397
  };
@@ -10407,7 +10411,7 @@ function Lh(e, t) {
10407
10411
  active_ids: [oe()],
10408
10412
  parent_id: le,
10409
10413
  ...Ee
10410
- }), [oe, le, Ee]), gt = async (Y) => {
10414
+ }), [oe, le, Ee]), yt = async (Y) => {
10411
10415
  const ee = oe() ? k == null ? void 0 : k.context : {};
10412
10416
  return await L.getHandler().defaultGet({
10413
10417
  model: n,
@@ -10461,7 +10465,7 @@ function Lh(e, t) {
10461
10465
  }
10462
10466
  }
10463
10467
  const vn = async () => {
10464
- P(void 0), Te == null || Te(!0);
10468
+ P(void 0), ut(), Te == null || Te(!0);
10465
10469
  let Y;
10466
10470
  try {
10467
10471
  p ? Y = { arch: p.arch, fields: p.fields } : Y = await rn();
@@ -10475,7 +10479,7 @@ function Lh(e, t) {
10475
10479
  }
10476
10480
  }, kt = async (Y) => {
10477
10481
  let ee, pe, we, Oe;
10478
- Te == null || Te(!0), P(void 0), Y != null && Y.fields ? (pe = Y.fields, we = Y.arch) : (pe = O, we = H), h && (Y == null ? void 0 : Y.forceRefresh) !== !0 ? ee = h : { values: ee, defaultGetCalled: Oe } = await Wn({
10482
+ Te == null || Te(!0), P(void 0), ut(), Y != null && Y.fields ? (pe = Y.fields, we = Y.arch) : (pe = O, we = H), h && (Y == null ? void 0 : Y.forceRefresh) !== !0 ? ee = h : { values: ee, defaultGetCalled: Oe } = await Wn({
10479
10483
  fields: pe,
10480
10484
  arch: we
10481
10485
  }), w && (ee = { ...Jd(w), ...ee }), B.current = Fn(ee, pe), Nt({
@@ -10514,7 +10518,7 @@ function Lh(e, t) {
10514
10518
  reset: pe,
10515
10519
  isDefaultGet: we = !1
10516
10520
  }) => {
10517
- const dt = { ...pe ? {} : N.getFieldsValue(!0), ...Y }, qr = Fn(dt, ee), _l = Object.keys(ee).map((zr) => ({
10521
+ const lt = { ...pe ? {} : N.getFieldsValue(!0), ...Y }, qr = Fn(lt, ee), _l = Object.keys(ee).map((zr) => ({
10518
10522
  name: zr,
10519
10523
  touched: !1,
10520
10524
  value: qr[zr] !== void 0 ? qr[zr] : void 0
@@ -10540,7 +10544,7 @@ function Lh(e, t) {
10540
10544
  context: v
10541
10545
  }))[0], g)
10542
10546
  return { values: pe, defaultGetCalled: we };
10543
- const dt = await L.getHandler().search({
10547
+ const lt = await L.getHandler().search({
10544
10548
  params: [
10545
10549
  ["res_model", "=", n],
10546
10550
  ["res_id", "=", oe()]
@@ -10549,13 +10553,13 @@ function Lh(e, t) {
10549
10553
  context: Ft(),
10550
10554
  model: "ir.attachment"
10551
10555
  });
10552
- Be == null || Be(dt);
10556
+ Be == null || Be(lt);
10553
10557
  } else
10554
- Be == null || Be([]), pe = await gt(Y), we = !0;
10558
+ Be == null || Be([]), pe = await yt(Y), we = !0;
10555
10559
  return { values: pe, defaultGetCalled: we };
10556
10560
  }, wn = async (Y) => {
10557
10561
  const { callOnSubmitSucceed: ee = !0 } = Y || {};
10558
- if (bt(), oe()) {
10562
+ if (oe()) {
10559
10563
  const pe = Jr({
10560
10564
  source: B.current,
10561
10565
  target: it(O),
@@ -10583,18 +10587,18 @@ function Lh(e, t) {
10583
10587
  });
10584
10588
  ne.current = we, B.current = pe;
10585
10589
  }
10586
- y && await y([oe()]), !g && ee && (ae == null || ae(oe(), at(), ht()));
10590
+ y && await y([oe()]), !g && ee && (ae == null || ae(oe(), at(), gt()));
10587
10591
  }, Se = async (Y) => {
10588
10592
  const { callOnSubmitSucceed: ee = !0 } = Y || {};
10589
- bt(), !g && ee && (ae == null || ae(oe(), at(), ht()));
10593
+ !g && ee && (ae == null || ae(oe(), at(), gt()));
10590
10594
  }, Q = async (Y) => {
10591
10595
  let ee = !1;
10592
10596
  const { callOnSubmitSucceed: pe = !0 } = Y || {};
10593
- if (me.current = !0, P(void 0), z.current && !Rt() && oe() && pe) {
10597
+ if (me.current = !0, P(void 0), ut(), z.current && !Rt() && oe() && pe) {
10594
10598
  me.current = !1, fe == null || fe(!1), ae == null || ae(
10595
10599
  oe(),
10596
10600
  at(),
10597
- ht(),
10601
+ gt(),
10598
10602
  z.current
10599
10603
  ), z.current = !1;
10600
10604
  const we = oe();
@@ -10648,14 +10652,14 @@ function Lh(e, t) {
10648
10652
  values: pe,
10649
10653
  operationInProgress: we = !1
10650
10654
  }) => {
10651
- var dt;
10655
+ var lt;
10652
10656
  const Oe = ge({
10653
10657
  arch: ee,
10654
10658
  fields: Y,
10655
10659
  values: pe,
10656
10660
  operationInProgress: we
10657
10661
  });
10658
- M(Oe), Oe.string && Oe.string !== We && (ve == null || ve(Oe.string)), G && Oe.string && ((dt = G.setTitle) == null || dt.call(G, Oe.string));
10662
+ M(Oe), Oe.string && Oe.string !== We && (ve == null || ve(Oe.string)), G && Oe.string && ((lt = G.setTitle) == null || lt.call(G, Oe.string));
10659
10663
  },
10660
10664
  [G, ge, ve, We]
10661
10665
  ), He = async ({
@@ -10728,26 +10732,32 @@ function Lh(e, t) {
10728
10732
  const Oe = {
10729
10733
  ...it(O),
10730
10734
  ...we.value
10731
- }, dt = Ld({
10735
+ }, lt = Ld({
10732
10736
  values: Oe,
10733
10737
  fields: O
10734
10738
  });
10735
10739
  Pe({
10736
10740
  fields: O,
10737
10741
  arch: H,
10738
- values: dt
10742
+ values: lt
10739
10743
  }), Nt({
10740
- values: dt,
10744
+ values: lt,
10741
10745
  fields: O,
10742
10746
  reset: !1
10743
10747
  });
10744
10748
  }
10745
10749
  if (we.warning && we.warning.title && we.warning.message && !Z.current) {
10746
- const { title: Oe, message: dt } = we.warning;
10747
- Z.current = !0, Ne({
10750
+ const { title: Oe, message: lt } = we.warning;
10751
+ Z.current = !0, re([
10752
+ {
10753
+ field: Y,
10754
+ message: lt,
10755
+ type: "warning"
10756
+ }
10757
+ ]), Ne({
10748
10758
  type: "warning",
10749
10759
  title: Oe,
10750
- message: dt,
10760
+ body: lt,
10751
10761
  onOk: () => {
10752
10762
  Z.current = !1;
10753
10763
  }
@@ -10780,9 +10790,9 @@ function Lh(e, t) {
10780
10790
  }
10781
10791
  });
10782
10792
  if (typeof pe == "object" && pe !== null && Object.keys(pe).length === 0 && g)
10783
- ae == null || ae(oe(), at(), ht());
10793
+ ae == null || ae(oe(), at(), gt());
10784
10794
  else if (pe.type && pe.type === "ir.actions.act_window_close")
10785
- ae == null || ae(oe(), at(), ht());
10795
+ ae == null || ae(oe(), at(), gt());
10786
10796
  else if (pe.type) {
10787
10797
  let we = {};
10788
10798
  pe.context && (we = Xt({
@@ -10802,7 +10812,7 @@ function Lh(e, t) {
10802
10812
  action: Y,
10803
10813
  payload: oe()
10804
10814
  });
10805
- ee.type && ee.type === "ir.actions.act_window_close" ? ae == null || ae(oe(), at(), ht()) : await kt({ forceRefresh: !0 });
10815
+ ee.type && ee.type === "ir.actions.act_window_close" ? ae == null || ae(oe(), at(), gt()) : await kt({ forceRefresh: !0 });
10806
10816
  }
10807
10817
  async function ur({
10808
10818
  action: Y,
@@ -10832,7 +10842,7 @@ function Lh(e, t) {
10832
10842
  ke.current = !0, await kt({ forceRefresh: !0 });
10833
10843
  }
10834
10844
  })) || {};
10835
- !S && pe && (ae == null || ae(oe(), at(), ht()));
10845
+ !S && pe && (ae == null || ae(oe(), at(), gt()));
10836
10846
  }
10837
10847
  function fr() {
10838
10848
  He({ elementHasLostFocus: !0 });
@@ -10890,8 +10900,8 @@ function Lh(e, t) {
10890
10900
  let we = !1;
10891
10901
  try {
10892
10902
  !f && (Rt() || oe() === void 0) && (we = !0, Un(!0), m === "2many" ? (await wn({ callOnSubmitSucceed: !1 }), z.current = !0) : await Q({ callOnSubmitSucceed: !1 }));
10893
- const Oe = z.current ? Tt() : {}, dt = { ...pe, ...Oe };
10894
- Y === "object" ? await Jt({ action: ee, context: dt }) : Y === "workflow" ? await Gr({ action: ee }) : Y === "action" && await ur({ action: ee, context: dt }), we && Un(!1);
10903
+ const Oe = z.current ? Tt() : {}, lt = { ...pe, ...Oe };
10904
+ Y === "object" ? await Jt({ action: ee, context: lt }) : Y === "workflow" ? await Gr({ action: ee }) : Y === "action" && await ur({ action: ee, context: lt }), we && Un(!1);
10895
10905
  } catch (Oe) {
10896
10906
  we && Un(!1), Ne(Oe);
10897
10907
  }
@@ -10919,7 +10929,7 @@ function Lh(e, t) {
10919
10929
  getFieldMessage: ze,
10920
10930
  getFieldMessageType: nt,
10921
10931
  clearFieldMessage: Ge,
10922
- clearAllFieldMessages: bt,
10932
+ clearAllFieldMessages: ut,
10923
10933
  children: /* @__PURE__ */ s(
10924
10934
  Et,
10925
10935
  {
@@ -11070,7 +11080,7 @@ const jn = Ot(Lh), Bn = (e) => {
11070
11080
  domain: i,
11071
11081
  context: a = {}
11072
11082
  }) => {
11073
- const [l, c] = T(!1), [d, f] = T([]), [u, m] = T(!1), { modalWidth: h, modalHeight: p } = Nr(), { t: y } = he(), { showErrorNotification: g } = pt(), {
11083
+ const [l, c] = T(!1), [d, f] = T([]), [u, m] = T(!1), { modalWidth: h, modalHeight: p } = Nr(), { t: y } = he(), { showErrorNotification: g } = ht(), {
11074
11084
  treeView: v,
11075
11085
  formView: w,
11076
11086
  loading: I
@@ -11202,7 +11212,7 @@ const jn = Ot(Lh), Bn = (e) => {
11202
11212
  context: l,
11203
11213
  id: c,
11204
11214
  domain: d
11205
- } = r, f = o && !a ? { backgroundColor: al.colorPrimaryBg } : void 0, [u, m] = T(!1), [h, p] = T(!1), [y, g] = T(!1), [v, w] = T(), I = U(!1), [S, x] = T(""), R = U(), _ = de(Qe), { domain: C, getValues: b, getFields: D, getContext: A, elementHasLostFocus: F } = _ || {}, P = U([]), [k, M] = T([]), { showErrorNotification: N } = pt(), H = t && t[0] || void 0, $ = t && t[1] || "";
11215
+ } = r, f = o && !a ? { backgroundColor: al.colorPrimaryBg } : void 0, [u, m] = T(!1), [h, p] = T(!1), [y, g] = T(!1), [v, w] = T(), I = U(!1), [S, x] = T(""), R = U(), _ = de(Qe), { domain: C, getValues: b, getFields: D, getContext: A, elementHasLostFocus: F } = _ || {}, P = U([]), [k, M] = T([]), { showErrorNotification: N } = ht(), H = t && t[0] || void 0, $ = t && t[1] || "";
11206
11216
  ue(() => {
11207
11217
  !Array.isArray(t) && t && se(t);
11208
11218
  }, [t]), ue(() => {
@@ -11285,7 +11295,7 @@ const jn = Ot(Lh), Bn = (e) => {
11285
11295
  }
11286
11296
  return /* @__PURE__ */ V(Ye, { gutter: 8, wrap: !1, children: [
11287
11297
  /* @__PURE__ */ s(Ae, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ s(
11288
- o && !a ? Wh : mt,
11298
+ o && !a ? Wh : pt,
11289
11299
  {
11290
11300
  type: "text",
11291
11301
  value: S,
@@ -11366,7 +11376,7 @@ const jn = Ot(Lh), Bn = (e) => {
11366
11376
  }
11367
11377
  )
11368
11378
  ] });
11369
- }, Wh = vt(mt)`
11379
+ }, Wh = bt(pt)`
11370
11380
  .ant-input {
11371
11381
  background-color: ${al.colorPrimaryBg};
11372
11382
  }
@@ -11545,7 +11555,7 @@ const jn = Ot(Lh), Bn = (e) => {
11545
11555
  onItemDuplicated: n,
11546
11556
  context: r
11547
11557
  }) => {
11548
- const [o, i] = T(!1), { showErrorNotification: a } = pt(), l = E(async () => {
11558
+ const [o, i] = T(!1), { showErrorNotification: a } = ht(), l = E(async () => {
11549
11559
  try {
11550
11560
  if (!e)
11551
11561
  return;
@@ -11623,7 +11633,7 @@ function qh(e) {
11623
11633
  /* @__PURE__ */ s(ml, { title: t, token: R }),
11624
11634
  /* @__PURE__ */ V("div", { className: "flex-none h-8 pl-2", children: [
11625
11635
  a !== "graph" && y && /* @__PURE__ */ s(
11626
- ft,
11636
+ mt,
11627
11637
  {
11628
11638
  tooltip: _("createNewItem"),
11629
11639
  icon: /* @__PURE__ */ s(Dr, {}),
@@ -11634,7 +11644,7 @@ function qh(e) {
11634
11644
  m && y && /* @__PURE__ */ V(ce, { children: [
11635
11645
  /* @__PURE__ */ s(Lt, {}),
11636
11646
  /* @__PURE__ */ s(
11637
- ft,
11647
+ mt,
11638
11648
  {
11639
11649
  tooltip: _("searchExistingItem"),
11640
11650
  icon: /* @__PURE__ */ s(or, {}),
@@ -11658,7 +11668,7 @@ function qh(e) {
11658
11668
  (a === "tree" || a === "form") && /* @__PURE__ */ V(ce, { children: [
11659
11669
  /* @__PURE__ */ s(Lt, {}),
11660
11670
  /* @__PURE__ */ s(
11661
- ft,
11671
+ mt,
11662
11672
  {
11663
11673
  icon: /* @__PURE__ */ s(Nn, {}),
11664
11674
  tooltip: _("showLogs"),
@@ -11674,7 +11684,7 @@ function qh(e) {
11674
11684
  (a === "form" || a === "tree") && /* @__PURE__ */ V(ce, { children: [
11675
11685
  /* @__PURE__ */ s(Lt, {}),
11676
11686
  /* @__PURE__ */ s(
11677
- ft,
11687
+ mt,
11678
11688
  {
11679
11689
  icon: /* @__PURE__ */ s(rr, {}),
11680
11690
  tooltip: _("duplicate"),
@@ -11700,7 +11710,7 @@ function qh(e) {
11700
11710
  g && /* @__PURE__ */ V(ce, { children: [
11701
11711
  /* @__PURE__ */ s(Lt, {}),
11702
11712
  /* @__PURE__ */ s(
11703
- ft,
11713
+ mt,
11704
11714
  {
11705
11715
  tooltip: _("toggleViewMode"),
11706
11716
  icon: /* @__PURE__ */ s(sc, {}),
@@ -11784,7 +11794,7 @@ const hl = tt(
11784
11794
  return /* @__PURE__ */ V(ce, { children: [
11785
11795
  /* @__PURE__ */ s(Lt, {}),
11786
11796
  /* @__PURE__ */ s(
11787
- ft,
11797
+ mt,
11788
11798
  {
11789
11799
  tooltip: o("previousItem"),
11790
11800
  icon: /* @__PURE__ */ s(Ci, {}),
@@ -11799,7 +11809,7 @@ const hl = tt(
11799
11809
  }
11800
11810
  ),
11801
11811
  /* @__PURE__ */ s(
11802
- ft,
11812
+ mt,
11803
11813
  {
11804
11814
  tooltip: o("nextItem"),
11805
11815
  icon: /* @__PURE__ */ s(Fi, {}),
@@ -11821,7 +11831,7 @@ const gl = tt(
11821
11831
  }) => {
11822
11832
  const { t: a } = he();
11823
11833
  return /* @__PURE__ */ s(er, { count: o.length, children: /* @__PURE__ */ s(
11824
- ft,
11834
+ mt,
11825
11835
  {
11826
11836
  tooltip: a(e ? "unlink" : "delete"),
11827
11837
  icon: e ? /* @__PURE__ */ s(oc, {}) : /* @__PURE__ */ s(Eo, {}),
@@ -11847,7 +11857,7 @@ function Jh(e) {
11847
11857
  });
11848
11858
  }
11849
11859
  const Kh = (e) => {
11850
- var nt, Ge, bt;
11860
+ var nt, Ge, ut;
11851
11861
  const { value: t, onChange: n, ooui: r, views: o } = e, { items: i = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: c, setItemIndex: d } = de(
11852
11862
  hn
11853
11863
  ), f = de(Qe), {
@@ -12106,13 +12116,13 @@ const Kh = (e) => {
12106
12116
  submitMode: "values",
12107
12117
  onFieldsChange: (De) => {
12108
12118
  var Ft;
12109
- const rt = (Ft = z[c]) == null ? void 0 : Ft.id, ht = i.map((Tt) => Tt.id === rt ? {
12119
+ const rt = (Ft = z[c]) == null ? void 0 : Ft.id, gt = i.map((Tt) => Tt.id === rt ? {
12110
12120
  ...Tt,
12111
12121
  operation: Tt.operation === "original" ? "pendingUpdate" : Tt.operation,
12112
12122
  values: { ...De, id: rt },
12113
12123
  treeValues: { ...De, id: rt }
12114
12124
  } : Tt);
12115
- q(ht), I(!0);
12125
+ q(gt), I(!0);
12116
12126
  },
12117
12127
  readOnly: ye
12118
12128
  }
@@ -12186,7 +12196,7 @@ const Kh = (e) => {
12186
12196
  selectedRowKeys: k,
12187
12197
  showCreateButton: ((Ge = o.get("form")) == null ? void 0 : Ge.fields) !== void 0,
12188
12198
  showToggleButton: o.size > 1,
12189
- toolbar: (bt = o.get(a)) == null ? void 0 : bt.toolbar,
12199
+ toolbar: (ut = o.get(a)) == null ? void 0 : ut.toolbar,
12190
12200
  context: { ...p == null ? void 0 : p(), ...B },
12191
12201
  formRef: te,
12192
12202
  onRefreshParentValues: () => {
@@ -12453,7 +12463,7 @@ const tg = ({
12453
12463
  }) => {
12454
12464
  const { t: a } = he(), { currentView: l, itemIndex: c, setItemIndex: d } = de(
12455
12465
  hn
12456
- ), { showErrorNotification: f } = pt(), u = E(async () => {
12466
+ ), { showErrorNotification: f } = ht(), u = E(async () => {
12457
12467
  const y = ng({
12458
12468
  selectedRowKeys: o,
12459
12469
  items: n
@@ -12617,7 +12627,7 @@ const rg = ({
12617
12627
  views: i,
12618
12628
  relation: a
12619
12629
  }) => {
12620
- const [l, c] = T(!1), { showErrorNotification: d } = pt(), f = async () => {
12630
+ const [l, c] = T(!1), { showErrorNotification: d } = ht(), f = async () => {
12621
12631
  e === "form" ? t(() => {
12622
12632
  c(!0);
12623
12633
  }) : c(!0);
@@ -13127,7 +13137,7 @@ const rg = ({
13127
13137
  p(wp(f)), await new Promise((v) => setTimeout(v, 300)), h == null || h();
13128
13138
  }
13129
13139
  return /* @__PURE__ */ s(
13130
- mt,
13140
+ pt,
13131
13141
  {
13132
13142
  value: f,
13133
13143
  disabled: i,
@@ -13177,7 +13187,7 @@ function bl(e) {
13177
13187
  }
13178
13188
  );
13179
13189
  }
13180
- const { TabPane: yg } = fi, vg = vt(fi)`
13190
+ const { TabPane: yg } = fi, vg = bt(fi)`
13181
13191
  .ant-tabs-content-holder {
13182
13192
  border-left: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
13183
13193
  border-right: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
@@ -13233,7 +13243,7 @@ function bg(e) {
13233
13243
  }
13234
13244
  );
13235
13245
  }
13236
- const { useToken: wg } = Ze, { TextArea: bo } = mt, xg = (e) => {
13246
+ const { useToken: wg } = Ze, { TextArea: bo } = pt, xg = (e) => {
13237
13247
  const { ooui: t } = e, { id: n, readOnly: r, required: o, height: i, translatable: a } = t, { token: l } = wg(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, d = de(Qe), { elementHasLostFocus: f } = d || {};
13238
13248
  return /* @__PURE__ */ s($e, { required: o, ...e, children: a ? /* @__PURE__ */ s(
13239
13249
  Sg,
@@ -13335,7 +13345,7 @@ const { useToken: wg } = Ze, { TextArea: bo } = mt, xg = (e) => {
13335
13345
  }
13336
13346
  ) }),
13337
13347
  /* @__PURE__ */ s(Ye, { justify: "end", style: { paddingTop: 5 }, children: /* @__PURE__ */ s(
13338
- ft,
13348
+ mt,
13339
13349
  {
13340
13350
  tooltip: h("translate"),
13341
13351
  icon: /* @__PURE__ */ s(wi, {}),
@@ -13642,8 +13652,8 @@ const { useToken: wg } = Ze, { TextArea: bo } = mt, xg = (e) => {
13642
13652
  if (l.value) {
13643
13653
  const c = Xe(
13644
13654
  l.value,
13645
- ct[e].dateDisplayFormat
13646
- ).format(ct[e].dateInternalFormat);
13655
+ dt[e].dateDisplayFormat
13656
+ ).format(dt[e].dateInternalFormat);
13647
13657
  n == null || n(c);
13648
13658
  }
13649
13659
  },
@@ -13674,8 +13684,8 @@ const { useToken: wg } = Ze, { TextArea: bo } = mt, xg = (e) => {
13674
13684
  else {
13675
13685
  const u = Xe(
13676
13686
  l.value,
13677
- ct[e].dateDisplayFormat
13678
- ).format(ct[e].dateInternalFormat);
13687
+ dt[e].dateDisplayFormat
13688
+ ).format(dt[e].dateInternalFormat);
13679
13689
  n == null || n(u);
13680
13690
  }
13681
13691
  const c = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', d = Array.from(
@@ -13703,7 +13713,7 @@ const { useToken: wg } = Ze, { TextArea: bo } = mt, xg = (e) => {
13703
13713
  }, xl = tt(
13704
13714
  (e) => {
13705
13715
  const { value: t, onChange: n, ooui: r, showTime: o } = e, { id: i, readOnly: a, required: l } = r, c = ua(), d = Mg(l, !!a), f = o ? "time" : "date", u = X(
13706
- () => t ? Xe(t, ct[f].dateInternalFormat) : void 0,
13716
+ () => t ? Xe(t, dt[f].dateInternalFormat) : void 0,
13707
13717
  [t, f]
13708
13718
  ), m = E(
13709
13719
  (g) => {
@@ -13712,7 +13722,7 @@ const { useToken: wg } = Ze, { TextArea: bo } = mt, xg = (e) => {
13712
13722
  return;
13713
13723
  }
13714
13724
  n == null || n(
13715
- g.format(ct[f].dateInternalFormat)
13725
+ g.format(dt[f].dateInternalFormat)
13716
13726
  );
13717
13727
  },
13718
13728
  [n, f]
@@ -13723,8 +13733,8 @@ const { useToken: wg } = Ze, { TextArea: bo } = mt, xg = (e) => {
13723
13733
  }), y = X(
13724
13734
  () => ({
13725
13735
  style: { width: "100%", ...d },
13726
- placeholder: ct[f].placeholder,
13727
- format: ct[f].dateDisplayFormat
13736
+ placeholder: dt[f].placeholder,
13737
+ format: dt[f].dateDisplayFormat
13728
13738
  }),
13729
13739
  [f, d]
13730
13740
  );
@@ -13857,7 +13867,7 @@ const Sl = tt(Vg), Ng = (e) => {
13857
13867
  }
13858
13868
  ),
13859
13869
  /* @__PURE__ */ s(
13860
- mt,
13870
+ pt,
13861
13871
  {
13862
13872
  type: "text",
13863
13873
  disabled: !0,
@@ -13880,7 +13890,7 @@ const Sl = tt(Vg), Ng = (e) => {
13880
13890
  ),
13881
13891
  /* @__PURE__ */ s(qe, { icon: /* @__PURE__ */ s(ic, {}), disabled: !n, onClick: g, children: m("open") }),
13882
13892
  /* @__PURE__ */ s(
13883
- ft,
13893
+ mt,
13884
13894
  {
13885
13895
  tooltip: m("download"),
13886
13896
  disabled: !n,
@@ -13889,7 +13899,7 @@ const Sl = tt(Vg), Ng = (e) => {
13889
13899
  }
13890
13900
  ),
13891
13901
  /* @__PURE__ */ s(
13892
- ft,
13902
+ mt,
13893
13903
  {
13894
13904
  tooltip: m("clear"),
13895
13905
  disabled: o || !n,
@@ -14004,7 +14014,7 @@ function qg(e) {
14004
14014
  onAddNewAttachment: r,
14005
14015
  onListAllAttachments: o,
14006
14016
  onViewAttachmentDetails: i
14007
- } = e, { formRef: a } = de(At), [l, c] = T(!1), [d, f] = T([]), [u, m] = T(!1), { t: h } = he(), { showErrorNotification: p } = pt(), y = E(async () => {
14017
+ } = e, { formRef: a } = de(At), [l, c] = T(!1), [d, f] = T([]), [u, m] = T(!1), { t: h } = he(), { showErrorNotification: p } = ht(), y = E(async () => {
14008
14018
  if (!(!t || t.length === 0)) {
14009
14019
  c(!0);
14010
14020
  try {
@@ -14103,7 +14113,7 @@ const zg = () => {
14103
14113
  ue(() => () => {
14104
14114
  c();
14105
14115
  }, [c]);
14106
- const { showErrorNotification: d } = pt(), f = E(
14116
+ const { showErrorNotification: d } = ht(), f = E(
14107
14117
  async (g) => {
14108
14118
  var v;
14109
14119
  try {
@@ -14174,7 +14184,7 @@ const zg = () => {
14174
14184
  function Jg({ toolbar: e }) {
14175
14185
  const t = de(
14176
14186
  Pt
14177
- ), { t: n } = he(), { onNextClick: r, onPreviousClick: o } = zg(), { showErrorNotification: i } = pt(), {
14187
+ ), { t: n } = he(), { onNextClick: r, onPreviousClick: o } = zg(), { showErrorNotification: i } = ht(), {
14178
14188
  availableViews: a,
14179
14189
  currentView: l,
14180
14190
  setCurrentView: c,
@@ -14334,8 +14344,8 @@ function Jg({ toolbar: e }) {
14334
14344
  ), l ? /* @__PURE__ */ V(st, { wrap: !0, children: [
14335
14345
  _ && /* @__PURE__ */ V(ce, { children: [
14336
14346
  /* @__PURE__ */ s(et, {}),
14337
- /* @__PURE__ */ s(lt, {}),
14338
- /* @__PURE__ */ s(lt, {})
14347
+ /* @__PURE__ */ s(ct, {}),
14348
+ /* @__PURE__ */ s(ct, {})
14339
14349
  ] }),
14340
14350
  /* @__PURE__ */ s(na, { disabled: N }),
14341
14351
  /* @__PURE__ */ s(
@@ -14376,7 +14386,7 @@ function Jg({ toolbar: e }) {
14376
14386
  })
14377
14387
  }
14378
14388
  ),
14379
- /* @__PURE__ */ s(lt, {}),
14389
+ /* @__PURE__ */ s(ct, {}),
14380
14390
  /* @__PURE__ */ s(
14381
14391
  St,
14382
14392
  {
@@ -14395,7 +14405,7 @@ function Jg({ toolbar: e }) {
14395
14405
  onClick: $
14396
14406
  }
14397
14407
  ),
14398
- /* @__PURE__ */ s(lt, {}),
14408
+ /* @__PURE__ */ s(ct, {}),
14399
14409
  /* @__PURE__ */ s(
14400
14410
  Lo,
14401
14411
  {
@@ -14407,7 +14417,7 @@ function Jg({ toolbar: e }) {
14407
14417
  formHasChanges: f
14408
14418
  }
14409
14419
  ),
14410
- /* @__PURE__ */ s(lt, {}),
14420
+ /* @__PURE__ */ s(ct, {}),
14411
14421
  /* @__PURE__ */ s(
14412
14422
  Cl,
14413
14423
  {
@@ -14417,7 +14427,7 @@ function Jg({ toolbar: e }) {
14417
14427
  tryAction: H
14418
14428
  }
14419
14429
  ),
14420
- /* @__PURE__ */ s(lt, {}),
14430
+ /* @__PURE__ */ s(ct, {}),
14421
14431
  /* @__PURE__ */ s(Wt, { icon: /* @__PURE__ */ s(Pr, {}), ...O }),
14422
14432
  /* @__PURE__ */ s(Wt, { icon: /* @__PURE__ */ s(kr, {}), ...W }),
14423
14433
  /* @__PURE__ */ s(Wt, { icon: /* @__PURE__ */ s(Mr, {}), ...G }),
@@ -14431,7 +14441,7 @@ function Jg({ toolbar: e }) {
14431
14441
  onViewAttachmentDetails: B
14432
14442
  }
14433
14443
  ),
14434
- /* @__PURE__ */ s(lt, {}),
14444
+ /* @__PURE__ */ s(ct, {}),
14435
14445
  /* @__PURE__ */ s(Hr, { res_id: m })
14436
14446
  ] }) : null;
14437
14447
  }
@@ -14505,7 +14515,7 @@ const ri = (e, t) => ({
14505
14515
  }
14506
14516
  ) }),
14507
14517
  /* @__PURE__ */ s(Ae, { flex: "auto", style: { paddingLeft: 0 }, children: y ? /* @__PURE__ */ s(
14508
- mt,
14518
+ pt,
14509
14519
  {
14510
14520
  style: {
14511
14521
  borderTopLeftRadius: 0,
@@ -14582,7 +14592,7 @@ const ri = (e, t) => ({
14582
14592
  }
14583
14593
  ],
14584
14594
  help: i("searchIdHelp"),
14585
- children: /* @__PURE__ */ s(mt, { style: { width: "100%" }, autoFocus: !0, ref: a })
14595
+ children: /* @__PURE__ */ s(pt, { style: { width: "100%" }, autoFocus: !0, ref: a })
14586
14596
  }
14587
14597
  ),
14588
14598
  /* @__PURE__ */ s(Ye, { align: "middle", justify: "end", children: /* @__PURE__ */ s(Ae, { children: /* @__PURE__ */ V(st, { children: [
@@ -14687,7 +14697,7 @@ function ty({ refreshGraph: e }) {
14687
14697
  previousView: d
14688
14698
  }
14689
14699
  ),
14690
- /* @__PURE__ */ s(lt, {}),
14700
+ /* @__PURE__ */ s(ct, {}),
14691
14701
  /* @__PURE__ */ s(Hr, { searchParams: i })
14692
14702
  ] });
14693
14703
  }
@@ -14882,7 +14892,7 @@ function sy() {
14882
14892
  }
14883
14893
  }
14884
14894
  ),
14885
- /* @__PURE__ */ s(lt, {}),
14895
+ /* @__PURE__ */ s(ct, {}),
14886
14896
  /* @__PURE__ */ s(
14887
14897
  St,
14888
14898
  {
@@ -14907,7 +14917,7 @@ function sy() {
14907
14917
  }
14908
14918
  }
14909
14919
  ),
14910
- /* @__PURE__ */ s(lt, {}),
14920
+ /* @__PURE__ */ s(ct, {}),
14911
14921
  /* @__PURE__ */ s(Hr, {})
14912
14922
  ] });
14913
14923
  }
@@ -15007,7 +15017,7 @@ function dy(e, t) {
15007
15017
  order: I
15008
15018
  } = e, [S, x] = T(), [R, _] = T([]), [C, b] = T(!0), D = m || void 0, [A, F] = T(
15009
15019
  D
15010
- ), [P, k] = T([]), [M, N] = T(), [H, $] = T([]), [O, W] = T(), [G, j] = T(0), [se, te] = T(!1), [ye, ne] = T(!1), [B, K] = T(), { t: Z } = he(), { showErrorNotification: me } = pt(), z = U(), J = U(), ie = de(
15020
+ ), [P, k] = T([]), [M, N] = T(), [H, $] = T([]), [O, W] = T(), [G, j] = T(0), [se, te] = T(!1), [ye, ne] = T(!1), [B, K] = T(), { t: Z } = he(), { showErrorNotification: me } = ht(), z = U(), J = U(), ie = de(
15011
15021
  Pt
15012
15022
  ), {
15013
15023
  setCurrentView: q,
@@ -15061,8 +15071,8 @@ function dy(e, t) {
15061
15071
  const [, _e] = Ue.viewTuple, ze = Ue.info;
15062
15072
  switch (_e) {
15063
15073
  case "dashboard": {
15064
- const nt = i.find((bt) => {
15065
- const [, re] = bt;
15074
+ const nt = i.find((ut) => {
15075
+ const [, re] = ut;
15066
15076
  return re === "form";
15067
15077
  });
15068
15078
  let Ge;
@@ -15417,7 +15427,7 @@ function py(e) {
15417
15427
  domain: i = [],
15418
15428
  visible: a = !0,
15419
15429
  parentContext: l = {}
15420
- } = e, [c, d] = T(!1), [f, u] = T(!1), [m, h] = T(), [p, y] = T(), [g, v] = T(), [w, I] = T(1), [S, x] = T(0), R = U(yt), _ = U([]), [C, b] = T(0), [D, A] = T([]), [F, P] = T(void 0), [k, M] = T(), [N, H] = T(), [$, O] = T(), [W, G] = T(!1), j = U([]), se = (z) => {
15430
+ } = e, [c, d] = T(!1), [f, u] = T(!1), [m, h] = T(), [p, y] = T(), [g, v] = T(), [w, I] = T(1), [S, x] = T(0), R = U(vt), _ = U([]), [C, b] = T(0), [D, A] = T([]), [F, P] = T(void 0), [k, M] = T(), [N, H] = T(), [$, O] = T(), [W, G] = T(!1), j = U([]), se = (z) => {
15421
15431
  G(!0), I(z), x((z - 1) * R.current);
15422
15432
  }, te = async () => {
15423
15433
  const z = j.current.length > 0 ? j.current : i, J = Zt(_.current, z), { colors: ie } = Ut(p), { totalItems: q, results: le, attrsEvaluated: Ie } = await L.getHandler().searchForTree({
@@ -16133,7 +16143,7 @@ const Ny = (e) => {
16133
16143
  },
16134
16144
  o
16135
16145
  )) });
16136
- }, Yy = vt(jl)`
16146
+ }, Yy = bt(jl)`
16137
16147
  .slick-dots li button {
16138
16148
  background-color: ${si.colorPrimary};
16139
16149
  }
@@ -16163,7 +16173,7 @@ function Ky() {
16163
16173
  return /* @__PURE__ */ s(zy, { className: "m-5 select-none", children: /* @__PURE__ */ s(Jy, { level: 5, children: e("welcome") }) });
16164
16174
  }
16165
16175
  function Qy(e, t) {
16166
- const { children: n } = e, [r, o] = T("welcome"), { t: i } = he(), { globalValues: a, rootContext: l, treeMaxLimit: c } = tn(), { showErrorNotification: d } = pt(), [f, u] = T([
16176
+ const { children: n } = e, [r, o] = T("welcome"), { t: i } = he(), { globalValues: a, rootContext: l, treeMaxLimit: c } = tn(), { showErrorNotification: d } = ht(), [f, u] = T([
16167
16177
  {
16168
16178
  title: i("welcome"),
16169
16179
  key: "welcome",
@@ -16482,7 +16492,7 @@ function Qy(e, t) {
16482
16492
  action_type: D,
16483
16493
  res_id: A,
16484
16494
  treeExpandable: K,
16485
- limit: P && (B === 0 || B === !1) ? yt : B,
16495
+ limit: P && (B === 0 || B === !1) ? vt : B,
16486
16496
  actionRawData: {
16487
16497
  context: $,
16488
16498
  domain: G,