@gisce/react-ooui 2.53.0-alpha.2 → 2.53.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,24 +2,24 @@ var Qa = Object.defineProperty;
2
2
  var Xa = (e, t, n) => t in e ? Qa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Bo = (e, t, n) => (Xa(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsx as i, jsxs as D, Fragment as re } from "react/jsx-runtime";
5
- import ht, { useContext as te, useState as S, useEffect as se, useRef as Y, memo as wt, useCallback as V, useMemo as ne, createContext as Za, forwardRef as Ct, useImperativeHandle as xt, createElement as el, Fragment as Vn } from "react";
6
- import { Tooltip as St, theme as Ue, Typography as $t, Form as vt, Row as je, Col as Te, Modal as ft, Button as Be, Dropdown as tl, Menu as Ho, Spin as Ge, Divider as rr, Space as Qe, Input as rt, Select as qt, Checkbox as An, Alert as ot, Timeline as Ki, Empty as qi, Statistic as nl, Card as ro, Tag as oo, message as Ir, App as rl, Progress as ol, Avatar as Yi, DatePicker as io, ColorPicker as zi, TimePicker as il, InputNumber as or, Layout as Ji, Badge as ir, Pagination as sl, Tabs as Qi, Radio as Uo, Switch as al, Steps as Wo, Carousel as ll } from "antd";
5
+ import ht, { useContext as te, useState as S, useEffect as se, useRef as Y, memo as bt, useCallback as V, useMemo as ne, createContext as Za, forwardRef as Ct, useImperativeHandle as xt, createElement as el, Fragment as Vn } from "react";
6
+ import { Tooltip as St, theme as Ue, Typography as $t, Form as vt, Row as je, Col as Te, Modal as mt, Button as Be, Dropdown as tl, Menu as Ho, Spin as Ge, Divider as rr, Space as Qe, Input as rt, Select as qt, Checkbox as An, Alert as ot, Timeline as Ki, Empty as qi, Statistic as nl, Card as ro, Tag as oo, message as Ir, App as rl, Progress as ol, Avatar as Yi, DatePicker as io, ColorPicker as zi, TimePicker as il, InputNumber as or, Layout as Ji, Badge as ir, Pagination as sl, Tabs as Qi, Radio as Uo, Switch as al, Steps as Wo, Carousel as ll } from "antd";
7
7
  import { Label as mn, Field as Nr, Tree as Xi, Reference as cl, Selection as so, Many2one as Zi, Boolean as dl, parseContext as Ht, graphProcessor as es, graphFieldUtils as ul, parseGraph as ts, Container as fl, Form as ns, parseContextFields as ml, parseDomainFields as pl, Integer as Mr, SearchFieldTypes as Dt, SearchFilter as rs, transformDomainForChildWidget as ao, Button as hl } from "@gisce/ooui";
8
8
  import * as Go from "@ant-design/icons";
9
- import os, { QuestionCircleOutlined as is, ExclamationCircleOutlined as Nt, LoadingOutlined as It, DownOutlined as sr, WarningOutlined as ss, CloseOutlined as pn, CheckOutlined as ar, TranslationOutlined as as, FolderOpenOutlined as lo, DownloadOutlined as co, ClearOutlined as lr, InfoCircleOutlined as Pn, ExportOutlined as gl, StarFilled as yl, StarOutlined as vl, ThunderboltOutlined as uo, PrinterOutlined as fo, EnterOutlined as mo, SearchOutlined as cr, UpOutlined as wl, PlusSquareOutlined as bl, MinusSquareOutlined as Sl, FileAddOutlined as dr, AlignLeftOutlined as Cl, ApiOutlined as xl, DeleteOutlined as po, LeftOutlined as ls, RightOutlined as cs, EyeOutlined as Il, FormOutlined as Fn, TableOutlined as ho, AreaChartOutlined as Tl, CalendarOutlined as Al, LinkOutlined as Ko, SaveOutlined as Fl, CopyOutlined as go, ReloadOutlined as ur, EditOutlined as ds, PlusOutlined as Ol, FilterOutlined as us, CloseCircleFilled as Rl, BorderOuterOutlined as _l, SettingOutlined as El } from "@ant-design/icons";
9
+ import os, { QuestionCircleOutlined as is, ExclamationCircleOutlined as Nt, LoadingOutlined as It, DownOutlined as sr, WarningOutlined as ss, CloseOutlined as pn, CheckOutlined as ar, TranslationOutlined as as, FolderOpenOutlined as lo, DownloadOutlined as co, ClearOutlined as lr, InfoCircleOutlined as Pn, ExportOutlined as gl, StarFilled as yl, StarOutlined as vl, ThunderboltOutlined as uo, PrinterOutlined as fo, EnterOutlined as mo, SearchOutlined as cr, UpOutlined as bl, PlusSquareOutlined as wl, MinusSquareOutlined as Sl, FileAddOutlined as dr, AlignLeftOutlined as Cl, ApiOutlined as xl, DeleteOutlined as po, LeftOutlined as ls, RightOutlined as cs, EyeOutlined as Il, FormOutlined as Fn, TableOutlined as ho, AreaChartOutlined as Tl, CalendarOutlined as Al, LinkOutlined as Ko, SaveOutlined as Fl, CopyOutlined as go, ReloadOutlined as ur, EditOutlined as ds, PlusOutlined as Ol, FilterOutlined as us, CloseCircleFilled as Rl, BorderOuterOutlined as _l, SettingOutlined as El } from "@ant-design/icons";
10
10
  import { Interweave as On } from "interweave";
11
11
  import { useLocale as pe, FormigaConfigProvider as Dl, mergeStrings as Vl, Many2OneSuffix as Pl, Many2OneSuffixModal as qo, FieldSet as kl, ExportModal as $l, Dropdown as fs, DropdownButton as on, HTMLPreview as Nl, FavouriteButton as Ml } from "@gisce/react-formiga-components";
12
12
  import * as Yo from "@tabler/icons-react";
13
13
  import Ll from "antd/lib/input/TextArea";
14
- import mt from "styled-components";
14
+ import ct from "styled-components";
15
15
  import yo from "react-measure";
16
16
  import jl from "lodash/debounce";
17
17
  import { nanoid as vo } from "nanoid";
18
18
  import Lr from "antd/lib/typography/Title";
19
19
  import Rt from "use-deep-compare-effect";
20
20
  import { Line as Bl, Column as Hl, Pie as Ul } from "@ant-design/plots";
21
- import ct from "dayjs";
22
- import { default as hv } from "dayjs";
21
+ import dt from "dayjs";
22
+ import { default as gv } from "dayjs";
23
23
  import Wl from "dayjs/plugin/advancedFormat";
24
24
  import Gl from "dayjs/plugin/customParseFormat";
25
25
  import Kl from "dayjs/plugin/isoWeek";
@@ -116,7 +116,7 @@ const He = ht.createContext(null), hc = (e) => {
116
116
  },
117
117
  formView: void 0
118
118
  };
119
- }, { Text: yc, Title: vc } = $t, { useToken: wc } = Ue, bc = {
119
+ }, { Text: yc, Title: vc } = $t, { useToken: bc } = Ue, wc = {
120
120
  left: "justify-start",
121
121
  center: "justify-center",
122
122
  right: "justify-end"
@@ -124,11 +124,11 @@ const He = ht.createContext(null), hc = (e) => {
124
124
  const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: c } = t, u = te(He);
125
125
  let d = a !== null && o.length > 1 ? o + " :" : o;
126
126
  !t.fieldForLabel && t._id && (d = u.getFieldValue(t._id));
127
- const h = n || (a ? r ? "left" : "right" : "left"), { token: p } = wc(), g = l === void 0 ? yc : vc;
127
+ const h = n || (a ? r ? "left" : "right" : "left"), { token: p } = bc(), g = l === void 0 ? yc : vc;
128
128
  return /* @__PURE__ */ D(
129
129
  "div",
130
130
  {
131
- className: `flex flex-row items-center pb-1 pt-1 ${bc[h]}`,
131
+ className: `flex flex-row items-center pb-1 pt-1 ${wc[h]}`,
132
132
  children: [
133
133
  s && /* @__PURE__ */ i(St, { title: s, children: /* @__PURE__ */ i(
134
134
  is,
@@ -195,7 +195,7 @@ function _e({
195
195
  p()
196
196
  ] }))();
197
197
  }
198
- const { confirm: Sc } = ft, Pt = ({
198
+ const { confirm: Sc } = mt, Pt = ({
199
199
  onOk: e,
200
200
  confirmMessage: t,
201
201
  okText: n,
@@ -347,7 +347,7 @@ function Qo(e, t) {
347
347
  );
348
348
  }
349
349
  }
350
- const wo = (e) => {
350
+ const bo = (e) => {
351
351
  const { ooui: t } = e, {
352
352
  id: n,
353
353
  label: r,
@@ -378,8 +378,8 @@ const wo = (e) => {
378
378
  if (m)
379
379
  return /* @__PURE__ */ i(It, {});
380
380
  if (l) {
381
- const w = pt(l);
382
- return w && /* @__PURE__ */ i(w, {});
381
+ const b = pt(l);
382
+ return b && /* @__PURE__ */ i(b, {});
383
383
  }
384
384
  }
385
385
  return /* @__PURE__ */ i(_e, { ooui: t, children: /* @__PURE__ */ i(
@@ -407,12 +407,12 @@ const wo = (e) => {
407
407
  context: d,
408
408
  readOnly: m
409
409
  } = n || {}, h = te(He), { executeButtonAction: p } = h || {}, [g, y] = S(!1), { t: v } = pe();
410
- function w() {
410
+ function b() {
411
411
  if (g)
412
412
  return /* @__PURE__ */ i(It, {});
413
413
  if (u) {
414
- const b = pt(u);
415
- return b && /* @__PURE__ */ i(b, {});
414
+ const w = pt(u);
415
+ return w && /* @__PURE__ */ i(w, {});
416
416
  }
417
417
  }
418
418
  async function C() {
@@ -449,13 +449,13 @@ const wo = (e) => {
449
449
  }
450
450
  ),
451
451
  children: [
452
- w(),
452
+ b(),
453
453
  s
454
454
  ]
455
455
  }
456
456
  ) });
457
457
  if (n)
458
- return /* @__PURE__ */ i(wo, { ooui: n });
458
+ return /* @__PURE__ */ i(bo, { ooui: n });
459
459
  }, Ic = (e) => {
460
460
  const { t } = pe(), { ooui: n, executeButtonAction: r } = e;
461
461
  if (!n)
@@ -475,7 +475,7 @@ const wo = (e) => {
475
475
  async function v() {
476
476
  y(!0), await r({ type: u, action: a, context: m }), y(!1);
477
477
  }
478
- function w() {
478
+ function b() {
479
479
  if (f) {
480
480
  Pt({
481
481
  confirmMessage: f,
@@ -500,7 +500,7 @@ const wo = (e) => {
500
500
  Ho.Item,
501
501
  {
502
502
  disabled: !c || h,
503
- onClick: w,
503
+ onClick: b,
504
504
  icon: C(),
505
505
  danger: p,
506
506
  children: l
@@ -563,7 +563,7 @@ const ys = (e) => {
563
563
  message: t,
564
564
  title: r
565
565
  };
566
- }, { error: Ac, warning: Fc } = ft, lt = (e) => {
566
+ }, { error: Ac, warning: Fc } = mt, lt = (e) => {
567
567
  const { message: t, type: n, title: r } = ys(e);
568
568
  (n === "error" ? Ac : Fc)({
569
569
  title: r,
@@ -574,9 +574,9 @@ const ys = (e) => {
574
574
  }, vs = (e) => {
575
575
  const { visible: t, onCloseModal: n, model: r, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = mr(), { t: c } = pe(), [u, f] = S([]), [d, m] = S(!1), [h, p] = S(!1), [g, y] = S({}), v = Y();
576
576
  se(() => {
577
- t ? w() : y({});
577
+ t ? b() : y({});
578
578
  }, [t]);
579
- async function w() {
579
+ async function b() {
580
580
  m(!0);
581
581
  try {
582
582
  const R = await C();
@@ -610,7 +610,7 @@ const ys = (e) => {
610
610
  }
611
611
  v.current = A, y(A);
612
612
  }
613
- function b() {
613
+ function w() {
614
614
  return u.map((R, A) => /* @__PURE__ */ D(je, { style: { paddingBottom: 20 }, children: [
615
615
  /* @__PURE__ */ i(Te, { flex: "8rem", style: { paddingRight: 10 }, children: R.name }),
616
616
  /* @__PURE__ */ i(Te, { flex: "auto", children: /* @__PURE__ */ i(
@@ -649,7 +649,7 @@ const ys = (e) => {
649
649
  }
650
650
  function T() {
651
651
  return d ? /* @__PURE__ */ i(Ge, {}) : /* @__PURE__ */ D(re, { children: [
652
- b(),
652
+ w(),
653
653
  /* @__PURE__ */ i(rr, {}),
654
654
  /* @__PURE__ */ i(je, { justify: "end", children: /* @__PURE__ */ D(Qe, { children: [
655
655
  /* @__PURE__ */ i(
@@ -676,7 +676,7 @@ const ys = (e) => {
676
676
  ] });
677
677
  }
678
678
  return /* @__PURE__ */ i(
679
- ft,
679
+ mt,
680
680
  {
681
681
  title: c("translate"),
682
682
  centered: !0,
@@ -695,18 +695,18 @@ function nt(e) {
695
695
  const { tooltip: t, ...n } = e;
696
696
  return /* @__PURE__ */ i(St, { title: t, children: /* @__PURE__ */ i(Be, { ...n }) });
697
697
  }
698
- const { info: Oc } = ft, Ut = (e) => {
698
+ const { info: Oc } = mt, Ut = (e) => {
699
699
  Oc({
700
700
  title: "",
701
701
  centered: !0,
702
702
  content: e
703
703
  });
704
- }, { useToken: Rc } = Ue, pr = wt(({ content: e }) => {
704
+ }, { useToken: Rc } = Ue, pr = bt(({ content: e }) => {
705
705
  const { token: t } = Rc();
706
706
  return /* @__PURE__ */ i("div", { style: { color: t.colorTextDisabled }, children: e });
707
707
  });
708
708
  pr.displayName = "AddonElement";
709
- const { defaultAlgorithm: _c, defaultSeed: Ec } = Ue, bo = _c(Ec), _n = wt(
709
+ const { defaultAlgorithm: _c, defaultSeed: Ec } = Ue, wo = _c(Ec), _n = bt(
710
710
  ({
711
711
  component: e,
712
712
  ooui: t,
@@ -733,11 +733,11 @@ const { defaultAlgorithm: _c, defaultSeed: Ec } = Ue, bo = _c(Ec), _n = wt(
733
733
  }
734
734
  );
735
735
  _n.displayName = "BaseInput";
736
- const ws = (e) => {
736
+ const bs = (e) => {
737
737
  const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t;
738
- let l = /* @__PURE__ */ i(bs, { ooui: t, isSearchField: n });
738
+ let l = /* @__PURE__ */ i(ws, { ooui: t, isSearchField: n });
739
739
  return a && !o && !n && (l = /* @__PURE__ */ i(Ss, { ooui: t, field: r })), /* @__PURE__ */ i(_e, { required: s, ...e, children: l });
740
- }, bs = wt(
740
+ }, ws = bt(
741
741
  ({
742
742
  value: e,
743
743
  ooui: t,
@@ -785,8 +785,8 @@ const ws = (e) => {
785
785
  );
786
786
  }
787
787
  );
788
- bs.displayName = "CharInput";
789
- const Ss = wt(
788
+ ws.displayName = "CharInput";
789
+ const Ss = bt(
790
790
  ({
791
791
  ooui: e,
792
792
  value: t,
@@ -803,8 +803,8 @@ const Ss = wt(
803
803
  () => h && !p,
804
804
  [h, p]
805
805
  ), y = V(
806
- (b) => {
807
- r == null || r(b.target.value);
806
+ (w) => {
807
+ r == null || r(w.target.value);
808
808
  },
809
809
  [r]
810
810
  ), v = V(() => {
@@ -813,7 +813,7 @@ const Ss = wt(
813
813
  return;
814
814
  }
815
815
  d(!0);
816
- }, [c, m]), w = V(() => {
816
+ }, [c, m]), b = V(() => {
817
817
  d(!1);
818
818
  }, []), C = V(() => {
819
819
  d(!1), l == null || l();
@@ -838,7 +838,7 @@ const Ss = wt(
838
838
  model: a,
839
839
  field: n,
840
840
  visible: f,
841
- onCloseModal: w,
841
+ onCloseModal: b,
842
842
  onSubmitSucceed: C
843
843
  }
844
844
  )
@@ -867,24 +867,24 @@ const Ss = wt(
867
867
  }
868
868
  );
869
869
  Ss.displayName = "TranslatableCharComp";
870
- const Dc = mt(rt)`
870
+ const Dc = ct(rt)`
871
871
  &.ant-input {
872
872
  cursor: ${(e) => e.disabled ? "pointer" : "text"};
873
873
  pointer-events: ${(e) => e.disabled ? "none" : "auto"};
874
874
  }
875
- `, Vc = mt(rt)`
875
+ `, Vc = ct(rt)`
876
876
  &.ant-input {
877
- background-color: ${bo.colorPrimaryBg};
877
+ background-color: ${wo.colorPrimaryBg};
878
878
  cursor: pointer;
879
879
  pointer-events: none;
880
880
  }
881
- `, Cs = mt(rt)`
881
+ `, Cs = ct(rt)`
882
882
  &.ant-input {
883
- background-color: ${bo.colorPrimaryBg};
883
+ background-color: ${wo.colorPrimaryBg};
884
884
  }
885
- `, Pc = mt(rt.Password)`
885
+ `, Pc = ct(rt.Password)`
886
886
  &.ant-input-affix-wrapper {
887
- background-color: ${bo.colorPrimaryBg};
887
+ background-color: ${wo.colorPrimaryBg};
888
888
  }
889
889
  `, { defaultAlgorithm: kc, defaultSeed: $c } = Ue, Nc = kc($c), { Option: Mc } = qt, xs = (e) => {
890
890
  const { ooui: t } = e, { required: n } = t;
@@ -907,7 +907,7 @@ const Dc = mt(rt)`
907
907
  children: c
908
908
  }
909
909
  );
910
- }, Lc = mt(qt)`
910
+ }, Lc = ct(qt)`
911
911
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
912
912
  background-color: ${Nc.colorPrimaryBg};
913
913
  }
@@ -917,7 +917,7 @@ const Dc = mt(rt)`
917
917
  }, Uc = (e) => {
918
918
  const { required: t, readOnly: n, ...r } = e;
919
919
  return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Wc : An, { disabled: n, ...r }) });
920
- }, Wc = mt(An)`
920
+ }, Wc = ct(An)`
921
921
  .ant-checkbox-inner {
922
922
  background-color: ${Zo.colorPrimaryBg};
923
923
  }
@@ -1192,18 +1192,18 @@ const xo = async (e) => {
1192
1192
  });
1193
1193
  const h = d.map((y) => {
1194
1194
  const v = {};
1195
- return Object.keys(y).forEach((w) => {
1196
- (f[a].hasOwnProperty(w) || w === "id") && (v[w] = y[w]);
1195
+ return Object.keys(y).forEach((b) => {
1196
+ (f[a].hasOwnProperty(b) || b === "id") && (v[b] = y[b]);
1197
1197
  }), v;
1198
1198
  });
1199
1199
  return [
1200
1200
  t.map((y) => {
1201
1201
  const v = h.find(
1202
1202
  (C) => C.id === y.id
1203
- ), w = {
1203
+ ), b = {
1204
1204
  ...y
1205
1205
  };
1206
- return a === "form" ? w.values = v : a === "tree" && (w.treeValues = v), w;
1206
+ return a === "form" ? b.values = v : a === "tree" && (b.treeValues = v), b;
1207
1207
  }).concat(c),
1208
1208
  m
1209
1209
  ];
@@ -1477,10 +1477,10 @@ const Yt = ({
1477
1477
  context: g,
1478
1478
  readOnly: y,
1479
1479
  summaryField: v,
1480
- titleField: w,
1480
+ titleField: b,
1481
1481
  iconField: C,
1482
1482
  colorField: x
1483
- } = r, b = s.filter((O) => O.values), F = te(He), { getContext: T } = F || {};
1483
+ } = r, w = s.filter((O) => O.values), F = te(He), { getContext: T } = F || {};
1484
1484
  Rt(() => {
1485
1485
  A();
1486
1486
  }, [s]);
@@ -1519,17 +1519,17 @@ const Yt = ({
1519
1519
  const _ = (O) => {
1520
1520
  const $ = pt(O);
1521
1521
  return $ && /* @__PURE__ */ i($, {});
1522
- }, I = b.map((O) => {
1522
+ }, I = w.map((O) => {
1523
1523
  var E, L, k, U;
1524
1524
  const $ = {
1525
1525
  children: /* @__PURE__ */ i(
1526
1526
  md,
1527
1527
  {
1528
- title: (E = O.values) == null ? void 0 : E[w],
1528
+ title: (E = O.values) == null ? void 0 : E[b],
1529
1529
  summary: (L = O.values) == null ? void 0 : L[v],
1530
1530
  onClick: () => {
1531
1531
  h(
1532
- b.find((G) => O.id === G.id)
1532
+ w.find((G) => O.id === G.id)
1533
1533
  ), d(!0);
1534
1534
  }
1535
1535
  }
@@ -1540,7 +1540,7 @@ const Yt = ({
1540
1540
  return /* @__PURE__ */ D(re, { children: [
1541
1541
  /* @__PURE__ */ i(Ki, { style: { padding: "1rem" }, items: I }),
1542
1542
  /* @__PURE__ */ i(
1543
- bn,
1543
+ wn,
1544
1544
  {
1545
1545
  formView: n.get("form"),
1546
1546
  model: p,
@@ -1866,16 +1866,16 @@ const Yt = ({
1866
1866
  not: "No",
1867
1867
  loading: "Cargando...",
1868
1868
  pendingToCalculate: "Pendiente de calcular"
1869
- }, wd = {
1869
+ }, bd = {
1870
1870
  ca_ES: gd,
1871
1871
  en_US: yd,
1872
1872
  es_ES: vd
1873
- }, bd = {
1873
+ }, wd = {
1874
1874
  erpFeatures: {},
1875
1875
  globalValues: {},
1876
1876
  rootContext: {},
1877
1877
  devMode: !1
1878
- }, Rs = ht.createContext(bd), Io = () => {
1878
+ }, Rs = ht.createContext(wd), Io = () => {
1879
1879
  const e = te(Rs);
1880
1880
  if (!e)
1881
1881
  throw new Error(
@@ -1885,7 +1885,7 @@ const Yt = ({
1885
1885
  }, yr = (e) => {
1886
1886
  const { erpFeatures: t } = Io();
1887
1887
  return !!t[e];
1888
- }, Sd = wt(
1888
+ }, Sd = bt(
1889
1889
  ({
1890
1890
  erpFeatures: e,
1891
1891
  locale: t,
@@ -1908,7 +1908,7 @@ const Yt = ({
1908
1908
  Dl,
1909
1909
  {
1910
1910
  locale: t,
1911
- localizedStrings: Vl(wd, n),
1911
+ localizedStrings: Vl(bd, n),
1912
1912
  children: a
1913
1913
  }
1914
1914
  ) });
@@ -1943,20 +1943,20 @@ async function _s({
1943
1943
  context: l
1944
1944
  }) : [], y = [];
1945
1945
  for (const x of u) {
1946
- const [b, F] = x;
1947
- if (b)
1946
+ const [w, F] = x;
1947
+ if (w)
1948
1948
  y.push(x);
1949
1949
  else {
1950
1950
  const { view_id: T } = await N.getHandler().getView({
1951
1951
  model: c,
1952
1952
  type: F,
1953
- id: b,
1953
+ id: w,
1954
1954
  context: { ...t, ...a }
1955
1955
  });
1956
1956
  y.push([T, F]);
1957
1957
  }
1958
1958
  }
1959
- const [v, w] = y[0], C = { id: v, type: w };
1959
+ const [v, b] = y[0], C = { id: v, type: b };
1960
1960
  return {
1961
1961
  title: f,
1962
1962
  description: h,
@@ -1987,12 +1987,12 @@ const Cd = (e) => {
1987
1987
  });
1988
1988
  if (!g.active_id)
1989
1989
  throw a(v), new Error("active_id_not_found");
1990
- const { views: w } = v, C = w.find((x) => {
1991
- const [, b] = x;
1992
- return b === "tree";
1990
+ const { views: b } = v, C = b.find((x) => {
1991
+ const [, w] = x;
1992
+ return w === "tree";
1993
1993
  });
1994
1994
  if (C) {
1995
- const [x, b] = C, {
1995
+ const [x, w] = C, {
1996
1996
  actionId: F,
1997
1997
  actionType: T,
1998
1998
  title: R,
@@ -2006,7 +2006,7 @@ const Cd = (e) => {
2006
2006
  res_id: !1,
2007
2007
  res_model: A,
2008
2008
  view_id: x,
2009
- view_type: b,
2009
+ view_type: w,
2010
2010
  overrideUnsettedLimit: !0,
2011
2011
  values: {
2012
2012
  active_id: m,
@@ -2254,7 +2254,7 @@ const { getValueForOperator: ri } = es, Td = (e) => {
2254
2254
  operator: f,
2255
2255
  manualIds: d,
2256
2256
  fixedHeight: m
2257
- } = e, [h, p] = S(!1), [g, y] = S(), [v, w] = S(0), [C, x] = S(), [b, F] = S(), [T, R] = S(), [A, _] = S(), [I] = Ye(
2257
+ } = e, [h, p] = S(!1), [g, y] = S(), [v, b] = S(0), [C, x] = S(), [w, F] = S(), [T, R] = S(), [A, _] = S(), [I] = Ye(
2258
2258
  N.getHandler().searchAllIds
2259
2259
  ), [O] = Ye(
2260
2260
  N.getHandler().readObjects
@@ -2335,7 +2335,7 @@ const { getValueForOperator: ri } = es, Td = (e) => {
2335
2335
  isTotal: !0
2336
2336
  }), x(P);
2337
2337
  }
2338
- if (P ? (J = Math.round(Z / P * 100 * 100) / 100, w(J)) : w(0), o) {
2338
+ if (P ? (J = Math.round(Z / P * 100 * 100) / 100, b(J)) : b(0), o) {
2339
2339
  const Q = await L({
2340
2340
  condition: o,
2341
2341
  values: { value: Z, percent: J },
@@ -2365,7 +2365,7 @@ const { getValueForOperator: ri } = es, Td = (e) => {
2365
2365
  value: g,
2366
2366
  totalValue: C,
2367
2367
  percent: v,
2368
- color: b,
2368
+ color: w,
2369
2369
  icon: T,
2370
2370
  suffix: c,
2371
2371
  showPercent: a,
@@ -2381,11 +2381,11 @@ const { getValueForOperator: ri } = es, Td = (e) => {
2381
2381
  limit: s,
2382
2382
  uninformedString: a,
2383
2383
  manualIds: l
2384
- } = e, [c, u] = S(!1), [f, d] = S(), [m, h] = S(), [p, g] = S(), [y, v] = S("line"), [w] = Ye(
2384
+ } = e, [c, u] = S(!1), [f, d] = S(), [m, h] = S(), [p, g] = S(), [y, v] = S("line"), [b] = Ye(
2385
2385
  N.getHandler().getFields
2386
2386
  ), [C] = Ye(
2387
2387
  N.getHandler().readObjects
2388
- ), [x] = Ye(N.getHandler().search), b = V(async () => {
2388
+ ), [x] = Ye(N.getHandler().search), w = V(async () => {
2389
2389
  u(!0), d(void 0), v(n.type || "line");
2390
2390
  const F = Fd({ ooui: n });
2391
2391
  let T, R;
@@ -2399,7 +2399,7 @@ const { getValueForOperator: ri } = es, Td = (e) => {
2399
2399
  fields: F,
2400
2400
  manualIds: l,
2401
2401
  methods: {
2402
- getFields: w,
2402
+ getFields: b,
2403
2403
  readObjects: C,
2404
2404
  search: x
2405
2405
  }
@@ -2416,7 +2416,7 @@ const { getValueForOperator: ri } = es, Td = (e) => {
2416
2416
  type: y,
2417
2417
  values: m,
2418
2418
  evaluatedEntries: p,
2419
- fetchData: b
2419
+ fetchData: w
2420
2420
  };
2421
2421
  g(T);
2422
2422
  const A = Ad({
@@ -2438,7 +2438,7 @@ const { getValueForOperator: ri } = es, Td = (e) => {
2438
2438
  r,
2439
2439
  f,
2440
2440
  p,
2441
- w,
2441
+ b,
2442
2442
  s,
2443
2443
  c,
2444
2444
  l,
@@ -2456,7 +2456,7 @@ const { getValueForOperator: ri } = es, Td = (e) => {
2456
2456
  type: y,
2457
2457
  values: m,
2458
2458
  evaluatedEntries: p,
2459
- fetchData: b
2459
+ fetchData: w
2460
2460
  };
2461
2461
  };
2462
2462
  async function Rd({
@@ -2511,14 +2511,14 @@ async function _d({
2511
2511
  fields: d
2512
2512
  };
2513
2513
  }
2514
- ct.extend(Wl);
2515
- ct.extend(Gl);
2516
- ct.extend(Kl);
2517
- ct.extend(ql);
2518
- ct.extend(Yl);
2519
- ct.extend(zl);
2520
- ct.extend(Jl);
2521
- ct.extend(Ql);
2514
+ dt.extend(Wl);
2515
+ dt.extend(Gl);
2516
+ dt.extend(Kl);
2517
+ dt.extend(ql);
2518
+ dt.extend(Yl);
2519
+ dt.extend(zl);
2520
+ dt.extend(Jl);
2521
+ dt.extend(Ql);
2522
2522
  const Ar = (e) => (t) => {
2523
2523
  const n = t.value.toLocaleString("es-ES", {
2524
2524
  useGrouping: !0
@@ -2535,7 +2535,7 @@ const Ar = (e) => (t) => {
2535
2535
  });
2536
2536
  if (Dd(e)) {
2537
2537
  const t = Vd(e);
2538
- return t === null ? e : ct(e, er.input[t]).format(
2538
+ return t === null ? e : dt(e, er.input[t]).format(
2539
2539
  er.output[t]
2540
2540
  );
2541
2541
  } else
@@ -2636,7 +2636,7 @@ const er = {
2636
2636
  };
2637
2637
  function Vd(e) {
2638
2638
  for (const t in er.input)
2639
- if (ct(
2639
+ if (dt(
2640
2640
  e,
2641
2641
  er.input[t],
2642
2642
  !0
@@ -2669,7 +2669,7 @@ const Pd = {
2669
2669
  x: a.x,
2670
2670
  percent: r[l]
2671
2671
  }));
2672
- }, { Text: ii } = $t, ks = 400, $d = wt(Bl), Nd = wt(Hl), Md = wt(Ul), Ld = {
2672
+ }, { Text: ii } = $t, ks = 400, $d = bt(Bl), Nd = bt(Hl), Md = bt(Ul), Ld = {
2673
2673
  line: $d,
2674
2674
  bar: Nd,
2675
2675
  pie: Md
@@ -2807,7 +2807,7 @@ const Bd = ({
2807
2807
  fixedHeight: a
2808
2808
  }
2809
2809
  );
2810
- }, kt = 80, dt = Za(
2810
+ }, kt = 80, ut = Za(
2811
2811
  null
2812
2812
  ), Hd = (e) => {
2813
2813
  const {
@@ -2828,16 +2828,16 @@ const Bd = ({
2828
2828
  currentModel: g,
2829
2829
  sorter: y,
2830
2830
  setSorter: v,
2831
- totalItems: w,
2831
+ totalItems: b,
2832
2832
  setTotalItems: C,
2833
2833
  setSelectedRowItems: x,
2834
- selectedRowItems: b,
2834
+ selectedRowItems: w,
2835
2835
  searchTreeNameSearch: F,
2836
2836
  setSearchTreeNameSearch: T,
2837
2837
  goToResourceId: R,
2838
2838
  limit: A,
2839
2839
  isActive: _
2840
- } = e, [I, O] = S(!1), [$, E] = S(!1), [L, k] = S(!1), [U, G] = S(!0), [P, J] = S(!0), [Z, Q] = S([]), [M, ue] = S(!1), [X, W] = S([]), [j, B] = S(!1), [fe, oe] = S(!0), [z, be] = S(), [de, Ee] = S({}), [me, De] = S(0), [$e, qe] = S(), [Fe, le] = S(!1), [ye, ce] = S(), [Re, q] = S(
2840
+ } = e, [I, O] = S(!1), [$, E] = S(!1), [L, k] = S(!1), [U, G] = S(!0), [P, J] = S(!0), [Z, Q] = S([]), [M, ue] = S(!1), [X, W] = S([]), [j, B] = S(!1), [fe, oe] = S(!0), [z, we] = S(), [de, Ee] = S({}), [me, De] = S(0), [$e, qe] = S(), [Fe, le] = S(!1), [ye, ce] = S(), [Re, q] = S(
2841
2841
  A !== void 0 ? A : kt
2842
2842
  ), [Ie, ke] = S(r);
2843
2843
  se(() => {
@@ -2845,13 +2845,13 @@ const Bd = ({
2845
2845
  }, [m]), se(() => {
2846
2846
  q(A !== void 0 ? A : kt);
2847
2847
  }, [A]), se(() => {
2848
- s.length === 1 ? be(s[0]) : s.length > 1 && be(
2848
+ s.length === 1 ? we(s[0]) : s.length > 1 && we(
2849
2849
  s.filter(
2850
2850
  (Se) => Se.view_id !== n.view_id
2851
2851
  )[0]
2852
2852
  );
2853
2853
  }, [s]), se(() => {
2854
- (z == null ? void 0 : z.view_id) === n.view_id && s.length > 1 && be(
2854
+ (z == null ? void 0 : z.view_id) === n.view_id && s.length > 1 && we(
2855
2855
  s.filter(
2856
2856
  (Se) => Se.view_id !== n.view_id
2857
2857
  )[0]
@@ -2862,7 +2862,7 @@ const Bd = ({
2862
2862
  return await ((Se = a.current) == null ? void 0 : Se.submitForm());
2863
2863
  };
2864
2864
  return /* @__PURE__ */ i(
2865
- dt.Provider,
2865
+ ut.Provider,
2866
2866
  {
2867
2867
  value: {
2868
2868
  title: Ie,
@@ -2892,7 +2892,7 @@ const Bd = ({
2892
2892
  setTreeIsLoading: J,
2893
2893
  attachments: Z,
2894
2894
  setAttachments: Q,
2895
- selectedRowItems: b,
2895
+ selectedRowItems: w,
2896
2896
  setSelectedRowItems: x,
2897
2897
  duplicatingItem: M,
2898
2898
  setDuplicatingItem: ue,
@@ -2902,14 +2902,14 @@ const Bd = ({
2902
2902
  setSearchVisible: B,
2903
2903
  sorter: y,
2904
2904
  setSorter: v,
2905
- totalItems: w,
2905
+ totalItems: b,
2906
2906
  setTotalItems: C,
2907
2907
  searchTreeNameSearch: F,
2908
2908
  setSearchTreeNameSearch: T,
2909
2909
  setGraphIsLoading: oe,
2910
2910
  graphIsLoading: fe,
2911
2911
  previousView: z,
2912
- setPreviousView: be,
2912
+ setPreviousView: we,
2913
2913
  goToResourceId: R,
2914
2914
  searchValues: de,
2915
2915
  setSearchValues: Ee,
@@ -2929,8 +2929,8 @@ const Bd = ({
2929
2929
  children: t
2930
2930
  }
2931
2931
  );
2932
- }, Ud = () => !!te(dt), To = () => {
2933
- const e = te(dt);
2932
+ }, Ud = () => !!te(ut), To = () => {
2933
+ const e = te(ut);
2934
2934
  return e || {
2935
2935
  title: "",
2936
2936
  currentView: {},
@@ -3032,7 +3032,7 @@ const Bd = ({
3032
3032
  fixedHeight: c,
3033
3033
  viewData: u
3034
3034
  } = e, [f, d] = S(!1), [m, h] = S(), p = te(
3035
- dt
3035
+ ut
3036
3036
  ), { setGraphIsLoading: g = void 0 } = p || {}, [y] = Ye(N.getHandler().getView);
3037
3037
  xt(t, () => ({
3038
3038
  refresh: () => {
@@ -3044,15 +3044,15 @@ const Bd = ({
3044
3044
  async function v() {
3045
3045
  d(!0), g == null || g(!0);
3046
3046
  try {
3047
- const w = u || await y({
3047
+ const b = u || await y({
3048
3048
  model: r,
3049
3049
  id: n,
3050
3050
  type: "graph",
3051
3051
  context: o
3052
- }), C = ts(w.arch);
3052
+ }), C = ts(b.arch);
3053
3053
  h(C), d(!1), g == null || g(!1);
3054
- } catch (w) {
3055
- return console.error(w), d(!1), g == null || g(!1), /* @__PURE__ */ i(re, { children: JSON.stringify(w) });
3054
+ } catch (b) {
3055
+ return console.error(b), d(!1), g == null || g(!1), /* @__PURE__ */ i(re, { children: JSON.stringify(b) });
3056
3056
  }
3057
3057
  }
3058
3058
  if (f || !m)
@@ -3060,21 +3060,21 @@ const Bd = ({
3060
3060
  switch (m.type) {
3061
3061
  case "indicatorField":
3062
3062
  case "indicator": {
3063
- const w = m, C = w.type === "indicatorField" ? {
3064
- field: w.field,
3065
- operator: w.operator
3063
+ const b = m, C = b.type === "indicatorField" ? {
3064
+ field: b.field,
3065
+ operator: b.operator
3066
3066
  } : {};
3067
3067
  return /* @__PURE__ */ i(
3068
3068
  Td,
3069
3069
  {
3070
- showPercent: w.showPercent,
3071
- totalDomain: w.totalDomain,
3072
- colorCondition: w.color,
3070
+ showPercent: b.showPercent,
3071
+ totalDomain: b.totalDomain,
3072
+ colorCondition: b.color,
3073
3073
  model: r,
3074
3074
  context: o,
3075
3075
  domain: s,
3076
- icon: w.icon,
3077
- suffix: w.suffix,
3076
+ icon: b.icon,
3077
+ suffix: b.suffix,
3078
3078
  manualIds: l,
3079
3079
  fixedHeight: c,
3080
3080
  ...C
@@ -3101,7 +3101,7 @@ const Bd = ({
3101
3101
  }
3102
3102
  }, hn = Ct(Wd);
3103
3103
  var gn = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e))(gn || {});
3104
- const lv = Object.values(gn), Gd = (e) => {
3104
+ const cv = Object.values(gn), Gd = (e) => {
3105
3105
  const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: s } = e, [a, l] = S(!1), [c, u] = S(), [f, d] = S(), [m] = Ye(
3106
3106
  N.getHandler().readForView
3107
3107
  ), h = V(async () => {
@@ -3127,7 +3127,7 @@ const lv = Object.values(gn), Gd = (e) => {
3127
3127
  };
3128
3128
  }, Kd = (e, t) => {
3129
3129
  const { view_id: n, model: r, context: o, domain: s, manualIds: a, fixedHeight: l } = e, c = te(
3130
- dt
3130
+ ut
3131
3131
  ), { setGraphIsLoading: u = void 0 } = c || {}, { error: f, loading: d, graphData: m, fetchData: h } = Gd({
3132
3132
  view_id: n,
3133
3133
  model: r,
@@ -3150,14 +3150,14 @@ const lv = Object.values(gn), Gd = (e) => {
3150
3150
  switch (m.type) {
3151
3151
  case "indicatorField":
3152
3152
  case "indicator": {
3153
- const { value: p, total: g, percent: y, icon: v, color: w, suffix: C } = m;
3153
+ const { value: p, total: g, percent: y, icon: v, color: b, suffix: C } = m;
3154
3154
  return /* @__PURE__ */ i(
3155
3155
  Ds,
3156
3156
  {
3157
3157
  value: p,
3158
3158
  totalValue: g,
3159
3159
  percent: y,
3160
- color: w,
3160
+ color: b,
3161
3161
  icon: v,
3162
3162
  suffix: C,
3163
3163
  showPercent: Ps(y),
@@ -3316,7 +3316,7 @@ const lv = Object.values(gn), Gd = (e) => {
3316
3316
  t && u();
3317
3317
  }, [t, o]), c && c.message !== "active_id_not_found")
3318
3318
  return /* @__PURE__ */ i(Es, { error: c });
3319
- const { id: h, model: p, limit: g, domain: y, context: v, initialView: w, description: C } = s || {}, x = f ? Ns : hn, b = C ? /* @__PURE__ */ D(re, { children: [
3319
+ const { id: h, model: p, limit: g, domain: y, context: v, initialView: b, description: C } = s || {}, x = f ? Ns : hn, w = C ? /* @__PURE__ */ D(re, { children: [
3320
3320
  /* @__PURE__ */ i(St, { title: C, children: /* @__PURE__ */ i(Pn, { className: "pr-1 text-xs" }) }),
3321
3321
  /* @__PURE__ */ i("span", { children: (s == null ? void 0 : s.title) || "" })
3322
3322
  ] }) : /* @__PURE__ */ i("span", { children: (s == null ? void 0 : s.title) || "" });
@@ -3325,16 +3325,16 @@ const lv = Object.values(gn), Gd = (e) => {
3325
3325
  {
3326
3326
  id: h,
3327
3327
  parms: {},
3328
- title: b,
3328
+ title: w,
3329
3329
  action: a,
3330
3330
  openAction: m,
3331
3331
  tooltip: C,
3332
3332
  children: [
3333
3333
  l && /* @__PURE__ */ i($n, {}),
3334
- !l && /* @__PURE__ */ i(re, { children: o ? (w == null ? void 0 : w.id) && /* @__PURE__ */ i(
3334
+ !l && /* @__PURE__ */ i(re, { children: o ? (b == null ? void 0 : b.id) && /* @__PURE__ */ i(
3335
3335
  x,
3336
3336
  {
3337
- view_id: w.id,
3337
+ view_id: b.id,
3338
3338
  model: p,
3339
3339
  context: v,
3340
3340
  domain: y,
@@ -3351,7 +3351,7 @@ const lv = Object.values(gn), Gd = (e) => {
3351
3351
  ]
3352
3352
  }
3353
3353
  );
3354
- }, Zd = mt(qi)`
3354
+ }, Zd = ct(qi)`
3355
3355
  &.ant-empty.ant-empty-normal {
3356
3356
  margin: 0;
3357
3357
  margin-top: 5px;
@@ -3383,7 +3383,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3383
3383
  Rt(() => {
3384
3384
  C();
3385
3385
  }, [o]);
3386
- const w = (F) => {
3386
+ const b = (F) => {
3387
3387
  r == null || r({
3388
3388
  items: F
3389
3389
  });
@@ -3428,8 +3428,8 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3428
3428
  } : A : { id: A.id, operation: "pendingRemove" }), R = T.map((A) => A.id);
3429
3429
  F.filter((A) => !R.includes(A)).forEach((A) => {
3430
3430
  T.push({ id: A, operation: "pendingLink" });
3431
- }), w(T);
3432
- }, b = (F) => {
3431
+ }), b(T);
3432
+ }, w = (F) => {
3433
3433
  const { label: T, closable: R, onClose: A } = F, _ = (O) => {
3434
3434
  O.preventDefault(), O.stopPropagation();
3435
3435
  }, I = kn(T);
@@ -3450,7 +3450,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3450
3450
  {
3451
3451
  mode: "multiple",
3452
3452
  value: a.length ? s : [],
3453
- tagRender: b,
3453
+ tagRender: w,
3454
3454
  bordered: !p,
3455
3455
  disabled: p,
3456
3456
  options: a,
@@ -3462,21 +3462,21 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3462
3462
  }, ou = (e) => {
3463
3463
  switch (e) {
3464
3464
  case "form":
3465
- return wn;
3465
+ return bn;
3466
3466
  case "tree":
3467
3467
  return jn;
3468
3468
  case "notebook":
3469
- return Eh;
3469
+ return Dh;
3470
3470
  case "group":
3471
3471
  return ka;
3472
3472
  case "label":
3473
3473
  return fr;
3474
3474
  case "char":
3475
- return ws;
3475
+ return bs;
3476
3476
  case "text":
3477
- return Vh;
3477
+ return Ph;
3478
3478
  case "button":
3479
- return wo;
3479
+ return bo;
3480
3480
  case "buttonGroup":
3481
3481
  return xc;
3482
3482
  case "selection":
@@ -3492,27 +3492,27 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3492
3492
  case "progressbar":
3493
3493
  return Fu;
3494
3494
  case "date":
3495
- return Gh;
3496
- case "datetime":
3497
3495
  return Kh;
3498
- case "time":
3496
+ case "datetime":
3499
3497
  return qh;
3498
+ case "time":
3499
+ return Yh;
3500
3500
  case "one2many":
3501
3501
  case "one2many_list":
3502
3502
  case "many2many":
3503
3503
  return Th;
3504
3504
  case "separator":
3505
- return kh;
3505
+ return $h;
3506
3506
  case "reference":
3507
- return zh;
3507
+ return Jh;
3508
3508
  case "binary":
3509
- return Xh;
3509
+ return Zh;
3510
3510
  case "image":
3511
3511
  return Kc;
3512
3512
  case "url":
3513
- return ig;
3514
- case "email":
3515
3513
  return sg;
3514
+ case "email":
3515
+ return ag;
3516
3516
  case "float_time":
3517
3517
  return Oh;
3518
3518
  case "fiber_grid":
@@ -3526,32 +3526,32 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3526
3526
  case "tag":
3527
3527
  return tu;
3528
3528
  case "multicheckbox":
3529
- return _g;
3529
+ return Eg;
3530
3530
  case "markdown":
3531
- return Dg;
3531
+ return Vg;
3532
3532
  case "radio":
3533
- return Pg;
3533
+ return kg;
3534
3534
  case "switch":
3535
- return $g;
3535
+ return Ng;
3536
3536
  case "steps":
3537
- return Mg;
3537
+ return Lg;
3538
3538
  case "arrow_steps":
3539
- return Bg;
3539
+ return Hg;
3540
3540
  case "codeeditor":
3541
3541
  case "json":
3542
- return Hg;
3542
+ return Ug;
3543
3543
  case "comments_timeline":
3544
- return Jg;
3545
- case "html_preview":
3546
3544
  return Qg;
3547
- case "alert":
3545
+ case "html_preview":
3548
3546
  return Xg;
3547
+ case "alert":
3548
+ return Zg;
3549
3549
  case "spinner":
3550
3550
  return Xr;
3551
3551
  case "carousel":
3552
- return ty;
3552
+ return ny;
3553
3553
  case "colorPicker":
3554
- return ry;
3554
+ return oy;
3555
3555
  default:
3556
3556
  return;
3557
3557
  }
@@ -3637,7 +3637,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3637
3637
  minHeight: 0,
3638
3638
  minWidth: 0
3639
3639
  }, children: c });
3640
- }, { confirm: fu } = ft, yn = ({
3640
+ }, { confirm: fu } = mt, yn = ({
3641
3641
  onOk: e,
3642
3642
  onCancel: t,
3643
3643
  t: n
@@ -3652,14 +3652,14 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3652
3652
  onCancel: t,
3653
3653
  cancelText: n("cancel")
3654
3654
  });
3655
- }, { error: mu } = ft, ai = (e) => {
3655
+ }, { error: mu } = mt, ai = (e) => {
3656
3656
  mu({
3657
3657
  title: e("formHasErrors"),
3658
3658
  icon: /* @__PURE__ */ i(Nt, {}),
3659
3659
  centered: !0,
3660
3660
  content: e("fillRequiredFields")
3661
3661
  });
3662
- }, { warning: pu } = ft, hu = (e, t, n) => {
3662
+ }, { warning: pu } = mt, hu = (e, t, n) => {
3663
3663
  pu({
3664
3664
  title: e,
3665
3665
  icon: /* @__PURE__ */ i(ss, {}),
@@ -3740,7 +3740,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3740
3740
  s.current = !1, clearInterval(o.current), l(!1), lt(A.exception || A);
3741
3741
  }
3742
3742
  }
3743
- async function w({
3743
+ async function b({
3744
3744
  actionData: T,
3745
3745
  fields: R,
3746
3746
  values: A,
@@ -3835,9 +3835,9 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3835
3835
  context: _,
3836
3836
  actionData: I
3837
3837
  }) {
3838
- m ? b({ domain: T, model: R, formView: A, context: _, actionData: I }) : (g({ domain: T, model: R, context: _, formView: A, actionData: I }), h(!0));
3838
+ m ? w({ domain: T, model: R, formView: A, context: _, actionData: I }) : (g({ domain: T, model: R, context: _, formView: A, actionData: I }), h(!0));
3839
3839
  }
3840
- async function b({
3840
+ async function w({
3841
3841
  domain: T,
3842
3842
  model: R,
3843
3843
  formView: A,
@@ -3865,13 +3865,13 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3865
3865
  vn.Provider,
3866
3866
  {
3867
3867
  value: {
3868
- processAction: w,
3868
+ processAction: b,
3869
3869
  globalValues: r
3870
3870
  },
3871
3871
  children: /* @__PURE__ */ D(re, { children: [
3872
3872
  n,
3873
3873
  /* @__PURE__ */ i(
3874
- ft,
3874
+ mt,
3875
3875
  {
3876
3876
  title: d("generatingReport"),
3877
3877
  zIndex: 9999,
@@ -3884,7 +3884,7 @@ const tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls,
3884
3884
  }
3885
3885
  ),
3886
3886
  /* @__PURE__ */ i(
3887
- bn,
3887
+ wn,
3888
3888
  {
3889
3889
  buttonModal: !0,
3890
3890
  parentContext: p.context,
@@ -3960,7 +3960,7 @@ async function vu({
3960
3960
  }
3961
3961
  return { views: s, initialView: a };
3962
3962
  }
3963
- const wu = Ct(yu), bu = (e, t) => {
3963
+ const bu = Ct(yu), wu = (e, t) => {
3964
3964
  const n = {};
3965
3965
  return Object.keys(e).forEach((r) => {
3966
3966
  n[r] = e[r], t != null && t[r] && (n[r].context = t[r]);
@@ -4050,15 +4050,15 @@ function Iu(e, t) {
4050
4050
  postSaveAction: g,
4051
4051
  insideButtonModal: y = !1,
4052
4052
  parentContext: v = {},
4053
- actionDomain: w,
4053
+ actionDomain: b,
4054
4054
  visible: C = !0,
4055
4055
  rootForm: x = !1,
4056
- defaultValues: b,
4056
+ defaultValues: w,
4057
4057
  forcedValues: F = {},
4058
4058
  parentWidth: T,
4059
4059
  onMustRefreshParent: R
4060
4060
  } = e, { t: A } = pe(), [_, I] = S(!1), [O, $] = S(), [E, L] = S(), [k] = vt.useForm(), [U, G] = S(), [P, J] = S(), Z = te(js), [Q, M] = S(), [ue, X] = S(!1), W = Y(), j = Y({}), B = Y({}), fe = Y(!1), oe = Y(!1), z = Y(!1), de = (T !== void 0 ? T : Q) < xu, Ee = te(He), { activeId: me, getPlainValues: De } = Ee || {}, $e = Y(!1), qe = te(
4061
- dt
4061
+ ut
4062
4062
  ), {
4063
4063
  setFormIsSaving: Fe = void 0,
4064
4064
  setFormHasChanges: le = void 0,
@@ -4101,7 +4101,7 @@ function Iu(e, t) {
4101
4101
  $e.current && (R == null || R()), Fe == null || Fe(!1), o == null || o();
4102
4102
  }, Je = (H) => {
4103
4103
  Fe == null || Fe(!1), u == null || u(H);
4104
- }, we = V(() => r || W.current, [r]), [ee, ve] = S(() => W.current);
4104
+ }, be = V(() => r || W.current, [r]), [ee, ve] = S(() => W.current);
4105
4105
  se(() => {
4106
4106
  W.current !== ee && ve(W.current);
4107
4107
  }, [W.current]);
@@ -4137,21 +4137,21 @@ function Iu(e, t) {
4137
4137
  return { ...v, ...E == null ? void 0 : E.context };
4138
4138
  }
4139
4139
  function At() {
4140
- return we() ? { active_id: we(), active_ids: [we()] } : {};
4140
+ return be() ? { active_id: be(), active_ids: [be()] } : {};
4141
4141
  }
4142
4142
  const it = V(() => ({
4143
- id: we(),
4144
- active_id: we(),
4145
- active_ids: [we()],
4143
+ id: be(),
4144
+ active_id: be(),
4145
+ active_ids: [be()],
4146
4146
  parent_id: me,
4147
4147
  ...Ce
4148
- }), [we, me, Ce]), zt = async (H) => {
4149
- const K = we() ? E == null ? void 0 : E.context : {};
4148
+ }), [be, me, Ce]), zt = async (H) => {
4149
+ const K = be() ? E == null ? void 0 : E.context : {};
4150
4150
  return await N.getHandler().defaultGet({
4151
4151
  model: n,
4152
4152
  fields: H,
4153
4153
  context: { ...v, ...K },
4154
- extraValues: b
4154
+ extraValues: w
4155
4155
  });
4156
4156
  }, Ft = () => Object.keys(
4157
4157
  Tr({
@@ -4162,7 +4162,7 @@ function Iu(e, t) {
4162
4162
  ).length !== 0, Ve = (H) => {
4163
4163
  const K = k.getFieldsValue(!0);
4164
4164
  return tn(K, H);
4165
- }, ut = (H, K) => {
4165
+ }, ft = (H, K) => {
4166
4166
  ze({
4167
4167
  values: {
4168
4168
  ...tn(k.getFieldsValue(!0), P),
@@ -4194,10 +4194,10 @@ function Iu(e, t) {
4194
4194
  }
4195
4195
  }, he = async (H) => {
4196
4196
  let K, ie, ae, Oe;
4197
- ce == null || ce(!0), $(void 0), H != null && H.fields ? (ie = H.fields, ae = H.arch) : (ie = P, ae = U), h && (H == null ? void 0 : H.forceRefresh) !== !0 ? K = h : { values: K, defaultGetCalled: Oe } = await bt({
4197
+ ce == null || ce(!0), $(void 0), H != null && H.fields ? (ie = H.fields, ae = H.arch) : (ie = P, ae = U), h && (H == null ? void 0 : H.forceRefresh) !== !0 ? K = h : { values: K, defaultGetCalled: Oe } = await wt({
4198
4198
  fields: ie,
4199
4199
  arch: ae
4200
- }), w && (K = { ...cd(w), ...K }), j.current = tn(K, ie), ze({
4200
+ }), b && (K = { ...cd(b), ...K }), j.current = tn(K, ie), ze({
4201
4201
  values: K,
4202
4202
  fields: ie,
4203
4203
  reset: !0,
@@ -4241,12 +4241,12 @@ function Iu(e, t) {
4241
4241
  ae || (B.current = Cr), k.setFields(Ja);
4242
4242
  },
4243
4243
  [k]
4244
- ), bt = async ({
4244
+ ), wt = async ({
4245
4245
  fields: H,
4246
4246
  arch: K
4247
4247
  }) => {
4248
4248
  let ie = {}, ae = !1;
4249
- if (we()) {
4249
+ if (be()) {
4250
4250
  const Oe = E || Jt({
4251
4251
  arch: K,
4252
4252
  fields: H,
@@ -4254,15 +4254,15 @@ function Iu(e, t) {
4254
4254
  });
4255
4255
  if (ie = (await N.getHandler().readObjects({
4256
4256
  model: n,
4257
- ids: [we()],
4258
- fields: bu(H, Oe == null ? void 0 : Oe.contextForFields),
4257
+ ids: [be()],
4258
+ fields: wu(H, Oe == null ? void 0 : Oe.contextForFields),
4259
4259
  context: v
4260
4260
  }))[0], y)
4261
4261
  return { values: ie, defaultGetCalled: ae };
4262
4262
  const et = await N.getHandler().search({
4263
4263
  params: [
4264
4264
  ["res_model", "=", n],
4265
- ["res_id", "=", we()]
4265
+ ["res_id", "=", be()]
4266
4266
  ],
4267
4267
  fieldsToRetrieve: ["id", "name"],
4268
4268
  context: yt(),
@@ -4274,7 +4274,7 @@ function Iu(e, t) {
4274
4274
  return { values: ie, defaultGetCalled: ae };
4275
4275
  }, Cn = async (H) => {
4276
4276
  const { callOnSubmitSucceed: K = !0 } = H || {};
4277
- if (we()) {
4277
+ if (be()) {
4278
4278
  const ie = Tr({
4279
4279
  source: j.current,
4280
4280
  target: Ve(P),
@@ -4282,7 +4282,7 @@ function Iu(e, t) {
4282
4282
  });
4283
4283
  await N.getHandler().update({
4284
4284
  model: n,
4285
- id: we(),
4285
+ id: be(),
4286
4286
  values: { ...ie, ...F },
4287
4287
  fields: P,
4288
4288
  context: {
@@ -4302,27 +4302,27 @@ function Iu(e, t) {
4302
4302
  });
4303
4303
  W.current = ae, j.current = ie;
4304
4304
  }
4305
- g && await g([we()]), !y && K && (ge == null || ge(we(), xe(), Xe()));
4305
+ g && await g([be()]), !y && K && (ge == null || ge(be(), xe(), Xe()));
4306
4306
  }, xn = async (H) => {
4307
4307
  const { callOnSubmitSucceed: K = !0 } = H || {};
4308
- !y && K && (ge == null || ge(we(), xe(), Xe()));
4308
+ !y && K && (ge == null || ge(be(), xe(), Xe()));
4309
4309
  }, Lt = async (H) => {
4310
4310
  let K = !1;
4311
4311
  const { callOnSubmitSucceed: ie = !0 } = H || {};
4312
- if (oe.current = !0, $(void 0), z.current && !Ft() && we() && ie) {
4312
+ if (oe.current = !0, $(void 0), z.current && !Ft() && be() && ie) {
4313
4313
  oe.current = !1, le == null || le(!1), ge == null || ge(
4314
- we(),
4314
+ be(),
4315
4315
  xe(),
4316
4316
  Xe(),
4317
4317
  z.current
4318
4318
  ), z.current = !1;
4319
- const ae = we();
4319
+ const ae = be();
4320
4320
  return d && (W.current = void 0, ze({ values: {}, fields: P, reset: !0 })), { succeed: !0, id: ae };
4321
4321
  }
4322
- if (!Ft() && we() && ie)
4323
- return oe.current = !1, le == null || le(!1), Me == null || Me(), { succeed: !0, id: we() };
4322
+ if (!Ft() && be() && ie)
4323
+ return oe.current = !1, le == null || le(!1), Me == null || Me(), { succeed: !0, id: be() };
4324
4324
  if (await Bn())
4325
- return oe.current = !1, ai(A), { succeed: !1, id: we() };
4325
+ return oe.current = !1, ai(A), { succeed: !1, id: be() };
4326
4326
  I(!0), Fe == null || Fe(!0);
4327
4327
  try {
4328
4328
  m === "api" ? await Cn(H) : await xn(H), d && (W.current = void 0, ze({ values: {}, fields: P, reset: !0 })), await he({ forceRefresh: !0 }), K = !0, Ir.success(A("savedRegisters"));
@@ -4331,7 +4331,7 @@ function Iu(e, t) {
4331
4331
  } finally {
4332
4332
  oe.current = !1, Fe == null || Fe(!1), I(!1);
4333
4333
  }
4334
- return { succeed: K, id: we() };
4334
+ return { succeed: K, id: be() };
4335
4335
  }, Jt = V(
4336
4336
  ({
4337
4337
  fields: H,
@@ -4401,12 +4401,12 @@ function Iu(e, t) {
4401
4401
  try {
4402
4402
  for (let K = 0; K < H.length; K += 1) {
4403
4403
  const ie = H[K];
4404
- await br(ie);
4404
+ await wr(ie);
4405
4405
  }
4406
4406
  } catch (K) {
4407
4407
  lt(K);
4408
4408
  }
4409
- }, br = async (H) => {
4409
+ }, wr = async (H) => {
4410
4410
  const K = E == null ? void 0 : E.onChangeFields[H];
4411
4411
  if (!K) {
4412
4412
  Ot({
@@ -4429,7 +4429,7 @@ function Iu(e, t) {
4429
4429
  }), ae = await N.getHandler().executeOnChange({
4430
4430
  model: n,
4431
4431
  action: K.method,
4432
- ids: we() ? [we()] : [],
4432
+ ids: be() ? [be()] : [],
4433
4433
  payload: ie,
4434
4434
  fields: P
4435
4435
  });
@@ -4476,7 +4476,7 @@ function Iu(e, t) {
4476
4476
  const ie = await N.getHandler().execute({
4477
4477
  model: n,
4478
4478
  action: H,
4479
- payload: [we()],
4479
+ payload: [be()],
4480
4480
  context: {
4481
4481
  ...E == null ? void 0 : E.context,
4482
4482
  ...v,
@@ -4484,9 +4484,9 @@ function Iu(e, t) {
4484
4484
  }
4485
4485
  });
4486
4486
  if (typeof ie == "object" && ie !== null && Object.keys(ie).length === 0 && y)
4487
- ge == null || ge(we(), xe(), Xe());
4487
+ ge == null || ge(be(), xe(), Xe());
4488
4488
  else if (ie.type && ie.type === "ir.actions.act_window_close")
4489
- ge == null || ge(we(), xe(), Xe());
4489
+ ge == null || ge(be(), xe(), Xe());
4490
4490
  else if (ie.type) {
4491
4491
  let ae = {};
4492
4492
  ie.context && (ae = Ht({
@@ -4504,9 +4504,9 @@ function Iu(e, t) {
4504
4504
  const K = await N.getHandler().executeWorkflow({
4505
4505
  model: n,
4506
4506
  action: H,
4507
- payload: we()
4507
+ payload: be()
4508
4508
  });
4509
- K.type && K.type === "ir.actions.act_window_close" ? ge == null || ge(we(), xe(), Xe()) : await he({ forceRefresh: !0 });
4509
+ K.type && K.type === "ir.actions.act_window_close" ? ge == null || ge(be(), xe(), Xe()) : await he({ forceRefresh: !0 });
4510
4510
  }
4511
4511
  async function Wa({
4512
4512
  action: H,
@@ -4536,7 +4536,7 @@ function Iu(e, t) {
4536
4536
  $e.current = !0, await he({ forceRefresh: !0 });
4537
4537
  }
4538
4538
  })) || {};
4539
- !x && ie && (ge == null || ge(we(), xe(), Xe()));
4539
+ !x && ie && (ge == null || ge(be(), xe(), Xe()));
4540
4540
  }
4541
4541
  function Ga() {
4542
4542
  In({ elementHasLostFocus: !0 });
@@ -4589,7 +4589,7 @@ function Iu(e, t) {
4589
4589
  }
4590
4590
  let ae = !1;
4591
4591
  try {
4592
- !f && (Ft() || we() === void 0) && (ae = !0, Sr(!0), m === "2many" ? (await Cn({ callOnSubmitSucceed: !1 }), z.current = !0) : await Lt({ callOnSubmitSucceed: !1 }));
4592
+ !f && (Ft() || be() === void 0) && (ae = !0, Sr(!0), m === "2many" ? (await Cn({ callOnSubmitSucceed: !1 }), z.current = !0) : await Lt({ callOnSubmitSucceed: !1 }));
4593
4593
  const Oe = z.current ? At() : {}, et = { ...ie, ...Oe };
4594
4594
  H === "object" ? await Et({ action: K, context: et }) : H === "workflow" ? await Ua({ action: K }) : H === "action" && await Wa({ action: K, context: et }), ae && Sr(!1);
4595
4595
  } catch (Oe) {
@@ -4602,10 +4602,10 @@ function Iu(e, t) {
4602
4602
  getValues: xe,
4603
4603
  getPlainValues: Ne,
4604
4604
  getFields: Ae,
4605
- domain: w,
4605
+ domain: b,
4606
4606
  activeId: r,
4607
4607
  activeModel: n,
4608
- setFieldValue: ut,
4608
+ setFieldValue: ft,
4609
4609
  getFieldValue: Mt,
4610
4610
  executeButtonAction: qa,
4611
4611
  getContext: yt,
@@ -4677,7 +4677,7 @@ function Iu(e, t) {
4677
4677
  }
4678
4678
  ) : null;
4679
4679
  }
4680
- const wn = Ct(Iu), bn = (e) => {
4680
+ const bn = Ct(Iu), wn = (e) => {
4681
4681
  const {
4682
4682
  visible: t,
4683
4683
  id: n,
@@ -4687,16 +4687,16 @@ const wn = Ct(Iu), bn = (e) => {
4687
4687
  isMenuAction: a = !1,
4688
4688
  actionData: l,
4689
4689
  ...c
4690
- } = e, { model: u } = c, { modalWidth: f } = mr(), [d, m] = S(r), [h, p] = S(!1), [g, y] = S(), { action_id: v, res_id: w, action_type: C, view_id: x } = l || {};
4690
+ } = e, { model: u } = c, { modalWidth: f } = mr(), [d, m] = S(r), [h, p] = S(!1), [g, y] = S(), { action_id: v, res_id: b, action_type: C, view_id: x } = l || {};
4691
4691
  se(() => {
4692
- a && b();
4692
+ a && w();
4693
4693
  }, [l, a]);
4694
- async function b() {
4694
+ async function w() {
4695
4695
  const A = await N.getHandler().isShortcutFavorite({
4696
4696
  action_id: v,
4697
4697
  action_type: C,
4698
4698
  view_id: x,
4699
- res_id: w || !1
4699
+ res_id: b || !1
4700
4700
  });
4701
4701
  p(A !== !1), A !== !1 && y(A);
4702
4702
  }
@@ -4732,7 +4732,7 @@ const wn = Ct(Iu), bn = (e) => {
4732
4732
  }
4733
4733
  const R = f * 0.95;
4734
4734
  return /* @__PURE__ */ i(gu, { setTitle: m, children: /* @__PURE__ */ i(
4735
- ft,
4735
+ mt,
4736
4736
  {
4737
4737
  title: a ? T() : d,
4738
4738
  centered: !0,
@@ -4743,7 +4743,7 @@ const wn = Ct(Iu), bn = (e) => {
4743
4743
  onCancel: s,
4744
4744
  maskClosable: !1,
4745
4745
  children: /* @__PURE__ */ i(
4746
- wn,
4746
+ bn,
4747
4747
  {
4748
4748
  id: n,
4749
4749
  showFooter: !0,
@@ -4752,11 +4752,11 @@ const wn = Ct(Iu), bn = (e) => {
4752
4752
  parentWidth: R,
4753
4753
  ...c
4754
4754
  },
4755
- `${u}-${n}-${v}-${w}-${C}-${x}-${r}`
4755
+ `${u}-${n}-${v}-${b}-${C}-${x}-${r}`
4756
4756
  )
4757
4757
  }
4758
4758
  ) });
4759
- }, { error: Tu } = ft, Kt = (e) => {
4759
+ }, { error: Tu } = mt, Kt = (e) => {
4760
4760
  Tu({
4761
4761
  title: "Error",
4762
4762
  icon: /* @__PURE__ */ i(Nt, {}),
@@ -4803,8 +4803,8 @@ const wn = Ct(Iu), bn = (e) => {
4803
4803
  ), n || g.push(
4804
4804
  m({ model: e, type: "tree", context: r })
4805
4805
  );
4806
- const y = await Promise.all(g), v = 0, w = t ? 0 : 1;
4807
- f(t || y[v]), c(n || y[w]);
4806
+ const y = await Promise.all(g), v = 0, b = t ? 0 : 1;
4807
+ f(t || y[v]), c(n || y[b]);
4808
4808
  } catch (g) {
4809
4809
  console.error("Error fetching view data:", g), Kt(g);
4810
4810
  } finally {
@@ -4854,7 +4854,7 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
4854
4854
  /* @__PURE__ */ i(Ou, { percent: e }),
4855
4855
  /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
4856
4856
  ] });
4857
- }, Ou = mt(ol)`
4857
+ }, Ou = ct(ol)`
4858
4858
  .ant-progress-outer {
4859
4859
  margin-right: 0px;
4860
4860
  padding-right: 0px;
@@ -4958,13 +4958,13 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
4958
4958
  });
4959
4959
  s(C);
4960
4960
  const x = _u(C);
4961
- let b = {};
4962
- if (x.length > 0 && (b = { ...(F = await p({
4961
+ let w = {};
4962
+ if (x.length > 0 && (w = { ...(F = await p({
4963
4963
  model: n,
4964
4964
  ids: [t],
4965
4965
  fieldsToRetrieve: x,
4966
4966
  context: r
4967
- })) == null ? void 0 : F[0] }), b = { ...tn(b, x), active_id: t }, l(b), !(!C || !C.toolbar))
4967
+ })) == null ? void 0 : F[0] }), w = { ...tn(w, x), active_id: t }, l(w), !(!C || !C.toolbar))
4968
4968
  return {
4969
4969
  actionItems: C.toolbar.action,
4970
4970
  relateItems: C.toolbar.relate,
@@ -4973,8 +4973,8 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
4973
4973
  }, [r, m, t, n, p]);
4974
4974
  if (!t)
4975
4975
  return null;
4976
- function w({ item: C, type: x }) {
4977
- const b = {
4976
+ function b({ item: C, type: x }) {
4977
+ const w = {
4978
4978
  values: a,
4979
4979
  fields: o.fields
4980
4980
  };
@@ -4983,7 +4983,7 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
4983
4983
  d == null || d({
4984
4984
  actionData: C,
4985
4985
  context: { active_id: t, active_ids: [t] },
4986
- ...b
4986
+ ...w
4987
4987
  });
4988
4988
  break;
4989
4989
  case "print":
@@ -4992,7 +4992,7 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
4992
4992
  ...C,
4993
4993
  datas: { ...C.datas, ids: [t] }
4994
4994
  },
4995
- ...b
4995
+ ...w
4996
4996
  });
4997
4997
  break;
4998
4998
  case "relate":
@@ -5000,7 +5000,7 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
5000
5000
  relateData: C,
5001
5001
  action_id: C.id,
5002
5002
  action_type: C.type,
5003
- ...b
5003
+ ...w
5004
5004
  });
5005
5005
  break;
5006
5006
  }
@@ -5009,7 +5009,7 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
5009
5009
  Ru,
5010
5010
  {
5011
5011
  onRetrieveData: v,
5012
- onItemClick: w,
5012
+ onItemClick: b,
5013
5013
  onOpenChange: (C) => {
5014
5014
  C || y();
5015
5015
  }
@@ -5095,7 +5095,7 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
5095
5095
  return;
5096
5096
  }
5097
5097
  m(g.format(_t[d].dateInternalFormat));
5098
- }, p = t ? ct(t, _t[d].dateInternalFormat) : void 0;
5098
+ }, p = t ? dt(t, _t[d].dateInternalFormat) : void 0;
5099
5099
  return /* @__PURE__ */ i(
5100
5100
  io,
5101
5101
  {
@@ -5149,16 +5149,16 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
5149
5149
  m(s);
5150
5150
  }, [m, s]);
5151
5151
  const h = (y) => {
5152
- const w = y.target.value.split(/[ ,;]+/), C = w.slice(0, -1).map((b) => b.trim()).filter((b) => b && !s.includes(b)), x = [...s, ...C].join(";");
5153
- (!n || x.length + w[w.length - 1].length <= n) && (C.length > 0 && (a([...s, ...C]), m([...s, ...C])), c(w[w.length - 1]));
5152
+ const b = y.target.value.split(/[ ,;]+/), C = b.slice(0, -1).map((w) => w.trim()).filter((w) => w && !s.includes(w)), x = [...s, ...C].join(";");
5153
+ (!n || x.length + b[b.length - 1].length <= n) && (C.length > 0 && (a([...s, ...C]), m([...s, ...C])), c(b[b.length - 1]));
5154
5154
  }, p = () => {
5155
5155
  if (l) {
5156
- const y = l.split(";").map((w) => w.trim()).filter((w) => w && !s.includes(w)), v = [...s, ...y].join(";");
5156
+ const y = l.split(";").map((b) => b.trim()).filter((b) => b && !s.includes(b)), v = [...s, ...y].join(";");
5157
5157
  (!n || v.length <= n) && (a([...s, ...y]), m([...s, ...y])), c("");
5158
5158
  }
5159
5159
  d && d();
5160
5160
  }, g = (y) => {
5161
- const v = s.filter((w) => w !== y);
5161
+ const v = s.filter((b) => b !== y);
5162
5162
  a(v), m(v), d && d();
5163
5163
  };
5164
5164
  return /* @__PURE__ */ D(
@@ -5239,7 +5239,7 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
5239
5239
  ), Hu = ({ value: e }) => ne(() => {
5240
5240
  if (!e || e && e.length === 0)
5241
5241
  return /* @__PURE__ */ i(re, {});
5242
- const t = ct(
5242
+ const t = dt(
5243
5243
  e,
5244
5244
  _t.date.dateInternalFormat
5245
5245
  ).format(_t.date.dateDisplayFormat);
@@ -5247,7 +5247,7 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
5247
5247
  }, [e]), Uu = ({ value: e }) => ne(() => {
5248
5248
  if (!e || e && e.length === 0)
5249
5249
  return /* @__PURE__ */ i(re, {});
5250
- const t = ct(
5250
+ const t = dt(
5251
5251
  e,
5252
5252
  _t.time.dateInternalFormat
5253
5253
  ).format(_t.time.dateDisplayFormat);
@@ -5516,13 +5516,13 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
5516
5516
  const g = {};
5517
5517
  Object.entries({ ...f }).forEach(
5518
5518
  ([y, v]) => {
5519
- g[y] = v.map((w) => {
5519
+ g[y] = v.map((b) => {
5520
5520
  const C = e.columns.find(
5521
5521
  (x) => x.id === y
5522
5522
  );
5523
5523
  return {
5524
- operation: w,
5525
- label: (C == null ? void 0 : C[`_${w}`]) || "",
5524
+ operation: b,
5525
+ label: (C == null ? void 0 : C[`_${b}`]) || "",
5526
5526
  amount: "-"
5527
5527
  };
5528
5528
  });
@@ -5541,12 +5541,12 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
5541
5541
  let p;
5542
5542
  Object.entries(h).forEach((g) => {
5543
5543
  const y = g[0], v = g[1];
5544
- p || (p = {}), p[y] = Object.keys(v).map((w) => {
5544
+ p || (p = {}), p[y] = Object.keys(v).map((b) => {
5545
5545
  const C = e.columns.find((x) => x.id === y);
5546
5546
  return {
5547
- operation: w,
5548
- label: C[w],
5549
- amount: v[w]
5547
+ operation: b,
5548
+ label: C[b],
5549
+ amount: v[b]
5550
5550
  };
5551
5551
  });
5552
5552
  }), s(p);
@@ -5731,7 +5731,7 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
5731
5731
  }
5732
5732
  }
5733
5733
  )
5734
- ] }), { defaultAlgorithm: df, defaultSeed: uf } = Ue, ff = df(uf), Eo = wt((e) => {
5734
+ ] }), { defaultAlgorithm: df, defaultSeed: uf } = Ue, ff = df(uf), Eo = bt((e) => {
5735
5735
  const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: s } = t, a = te(He), { elementHasLostFocus: l } = a || {}, c = ne(() => s && !o, [s, o]), u = ne(
5736
5736
  () => c ? mf : or,
5737
5737
  [c]
@@ -5753,11 +5753,11 @@ const Fu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gs,
5753
5753
  ) });
5754
5754
  });
5755
5755
  Eo.displayName = "Float";
5756
- const mf = mt(or)`
5756
+ const mf = ct(or)`
5757
5757
  &.ant-input-number {
5758
5758
  background-color: ${ff.colorPrimaryBg};
5759
5759
  }
5760
- `, { useToken: pf } = Ue, { defaultAlgorithm: hf, defaultSeed: gf } = Ue, yf = hf(gf), En = wt((e) => {
5760
+ `, { useToken: pf } = Ue, { defaultAlgorithm: hf, defaultSeed: gf } = Ue, yf = hf(gf), En = bt((e) => {
5761
5761
  const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } = pf(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = te(He), { elementHasLostFocus: u } = c || {}, f = ne(() => s && !o, [s, o]), d = ne(
5762
5762
  () => f ? vf : or,
5763
5763
  [f]
@@ -5786,12 +5786,12 @@ const mf = mt(or)`
5786
5786
  ) });
5787
5787
  });
5788
5788
  En.displayName = "Integer";
5789
- const vf = mt(or)`
5789
+ const vf = ct(or)`
5790
5790
  &.ant-input-number {
5791
5791
  background-color: ${yf.colorPrimaryBg};
5792
5792
  }
5793
5793
  `;
5794
- function wf(e) {
5794
+ function bf(e) {
5795
5795
  const { ooui: t, showLabel: n } = e, { id: r, label: o, tooltip: s } = t, a = t instanceof Mr ? En : Eo, l = (c) => /* @__PURE__ */ i(
5796
5796
  a,
5797
5797
  {
@@ -5833,7 +5833,7 @@ function wf(e) {
5833
5833
  )
5834
5834
  ] });
5835
5835
  }
5836
- const { defaultAlgorithm: bf, defaultSeed: Sf } = Ue, Cf = bf(Sf), { Option: xf } = qt, If = (e) => {
5836
+ const { defaultAlgorithm: wf, defaultSeed: Sf } = Ue, Cf = wf(Sf), { Option: xf } = qt, If = (e) => {
5837
5837
  const { ooui: t } = e, { required: n } = t;
5838
5838
  return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Tf, { ...e }) });
5839
5839
  }, Tf = (e) => {
@@ -5866,7 +5866,7 @@ const { defaultAlgorithm: bf, defaultSeed: Sf } = Ue, Cf = bf(Sf), { Option: xf
5866
5866
  children: c
5867
5867
  }
5868
5868
  );
5869
- }, Af = mt(qt)`
5869
+ }, Af = ct(qt)`
5870
5870
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
5871
5871
  background-color: ${Cf.colorPrimaryBg};
5872
5872
  }
@@ -5891,7 +5891,7 @@ function Qs(e) {
5891
5891
  case Dt.progressbar:
5892
5892
  case Dt.float_time:
5893
5893
  case Dt.integer:
5894
- return /* @__PURE__ */ i(wf, { ooui: t, showLabel: !0 });
5894
+ return /* @__PURE__ */ i(bf, { ooui: t, showLabel: !0 });
5895
5895
  case Dt.date:
5896
5896
  return /* @__PURE__ */ i(af, { ooui: t, layout: "vertical", showLabel: !0 });
5897
5897
  case Dt.datetime:
@@ -5900,7 +5900,7 @@ function Qs(e) {
5900
5900
  return /* @__PURE__ */ i(If, { layout: "vertical", ooui: t, showLabel: !0 });
5901
5901
  default:
5902
5902
  return /* @__PURE__ */ i(
5903
- ws,
5903
+ bs,
5904
5904
  {
5905
5905
  ooui: t,
5906
5906
  layout: "vertical",
@@ -6130,19 +6130,19 @@ function em(e, t, n) {
6130
6130
  function v() {
6131
6131
  var F = Fr();
6132
6132
  if (y(F))
6133
- return w(F);
6133
+ return b(F);
6134
6134
  l = setTimeout(v, g(F));
6135
6135
  }
6136
- function w(F) {
6136
+ function b(F) {
6137
6137
  return l = void 0, m && r ? h(F) : (r = o = void 0, a);
6138
6138
  }
6139
6139
  function C() {
6140
6140
  l !== void 0 && clearTimeout(l), u = 0, r = c = o = l = void 0;
6141
6141
  }
6142
6142
  function x() {
6143
- return l === void 0 ? a : w(Fr());
6143
+ return l === void 0 ? a : b(Fr());
6144
6144
  }
6145
- function b() {
6145
+ function w() {
6146
6146
  var F = Fr(), T = y(F);
6147
6147
  if (r = arguments, o = this, c = F, T) {
6148
6148
  if (l === void 0)
@@ -6152,7 +6152,7 @@ function em(e, t, n) {
6152
6152
  }
6153
6153
  return l === void 0 && (l = setTimeout(v, t)), a;
6154
6154
  }
6155
- return b.cancel = C, b.flush = x, b;
6155
+ return w.cancel = C, w.flush = x, w;
6156
6156
  }
6157
6157
  function Wr(e) {
6158
6158
  var t = typeof e;
@@ -6252,30 +6252,30 @@ function im() {
6252
6252
  }
6253
6253
  };
6254
6254
  e = function(h) {
6255
- var p = h !== null && typeof h == "object", g = n.call(h) === "[object Function]", y = r(h), v = p && n.call(h) === "[object String]", w = [];
6255
+ var p = h !== null && typeof h == "object", g = n.call(h) === "[object Function]", y = r(h), v = p && n.call(h) === "[object String]", b = [];
6256
6256
  if (!p && !g && !y)
6257
6257
  throw new TypeError("Object.keys called on a non-object");
6258
6258
  var C = a && g;
6259
6259
  if (v && h.length > 0 && !t.call(h, 0))
6260
6260
  for (var x = 0; x < h.length; ++x)
6261
- w.push(String(x));
6261
+ b.push(String(x));
6262
6262
  if (y && h.length > 0)
6263
- for (var b = 0; b < h.length; ++b)
6264
- w.push(String(b));
6263
+ for (var w = 0; w < h.length; ++w)
6264
+ b.push(String(w));
6265
6265
  else
6266
6266
  for (var F in h)
6267
- !(C && F === "prototype") && t.call(h, F) && w.push(String(F));
6267
+ !(C && F === "prototype") && t.call(h, F) && b.push(String(F));
6268
6268
  if (s)
6269
6269
  for (var T = d(h), R = 0; R < l.length; ++R)
6270
- !(T && l[R] === "constructor") && t.call(h, l[R]) && w.push(l[R]);
6271
- return w;
6270
+ !(T && l[R] === "constructor") && t.call(h, l[R]) && b.push(l[R]);
6271
+ return b;
6272
6272
  };
6273
6273
  }
6274
6274
  return Or = e, Or;
6275
6275
  }
6276
6276
  var sm = Array.prototype.slice, am = Zs, vi = Object.keys, Yn = vi ? function(t) {
6277
6277
  return vi(t);
6278
- } : im(), wi = Object.keys;
6278
+ } : im(), bi = Object.keys;
6279
6279
  Yn.shim = function() {
6280
6280
  if (Object.keys) {
6281
6281
  var t = function() {
@@ -6283,7 +6283,7 @@ Yn.shim = function() {
6283
6283
  return n && n.length === arguments.length;
6284
6284
  }(1, 2);
6285
6285
  t || (Object.keys = function(r) {
6286
- return am(r) ? wi(sm.call(r)) : wi(r);
6286
+ return am(r) ? bi(sm.call(r)) : bi(r);
6287
6287
  });
6288
6288
  } else
6289
6289
  Object.keys = Yn;
@@ -6314,8 +6314,8 @@ var ea = Yn, ta = function() {
6314
6314
  return !0;
6315
6315
  }, lm = ta, Do = function() {
6316
6316
  return lm() && !!Symbol.toStringTag;
6317
- }, bi = typeof Symbol < "u" && Symbol, cm = ta, dm = function() {
6318
- return typeof bi != "function" || typeof Symbol != "function" || typeof bi("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : cm();
6317
+ }, wi = typeof Symbol < "u" && Symbol, cm = ta, dm = function() {
6318
+ return typeof wi != "function" || typeof Symbol != "function" || typeof wi("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : cm();
6319
6319
  }, Si = {
6320
6320
  foo: {}
6321
6321
  }, um = Object, fm = function() {
@@ -6360,7 +6360,7 @@ if (Wt)
6360
6360
  }
6361
6361
  var Dr = function() {
6362
6362
  throw new an();
6363
- }, wm = Wt ? function() {
6363
+ }, bm = Wt ? function() {
6364
6364
  try {
6365
6365
  return arguments.callee, Dr;
6366
6366
  } catch {
@@ -6370,7 +6370,7 @@ var Dr = function() {
6370
6370
  return Dr;
6371
6371
  }
6372
6372
  }
6373
- }() : Dr, Qt = dm(), bm = fm(), tt = Object.getPrototypeOf || (bm ? function(e) {
6373
+ }() : Dr, Qt = dm(), wm = fm(), tt = Object.getPrototypeOf || (wm ? function(e) {
6374
6374
  return e.__proto__;
6375
6375
  } : null), nn = {}, Sm = typeof Uint8Array > "u" || !tt ? Pe : tt(Uint8Array), Gt = {
6376
6376
  "%AggregateError%": typeof AggregateError > "u" ? Pe : AggregateError,
@@ -6429,7 +6429,7 @@ var Dr = function() {
6429
6429
  "%StringIteratorPrototype%": Qt && tt ? tt(""[Symbol.iterator]()) : Pe,
6430
6430
  "%Symbol%": Qt ? Symbol : Pe,
6431
6431
  "%SyntaxError%": fn,
6432
- "%ThrowTypeError%": wm,
6432
+ "%ThrowTypeError%": bm,
6433
6433
  "%TypedArray%": Sm,
6434
6434
  "%TypeError%": an,
6435
6435
  "%Uint8Array%": typeof Uint8Array > "u" ? Pe : Uint8Array,
@@ -6751,12 +6751,12 @@ var sp = Dn, _i = ca, ap = Po(), lp = sp.functionsHaveConfigurableNames(), cp =
6751
6751
  throw new cp("`fn` is not a function");
6752
6752
  var r = arguments.length > 2 && !!arguments[2];
6753
6753
  return (!r || lp) && (ap ? _i(t, "name", n, !0, !0) : _i(t, "name", n)), t;
6754
- }, up = dp, fp = Object, mp = TypeError, wa = up(function() {
6754
+ }, up = dp, fp = Object, mp = TypeError, ba = up(function() {
6755
6755
  if (this != null && this !== fp(this))
6756
6756
  throw new mp("RegExp.prototype.flags getter called on non-object");
6757
6757
  var t = "";
6758
6758
  return this.hasIndices && (t += "d"), this.global && (t += "g"), this.ignoreCase && (t += "i"), this.multiline && (t += "m"), this.dotAll && (t += "s"), this.unicode && (t += "u"), this.unicodeSets && (t += "v"), this.sticky && (t += "y"), t;
6759
- }, "get flags", !0), pp = wa, hp = Ln.supportsDescriptors, gp = Object.getOwnPropertyDescriptor, ba = function() {
6759
+ }, "get flags", !0), pp = ba, hp = Ln.supportsDescriptors, gp = Object.getOwnPropertyDescriptor, wa = function() {
6760
6760
  if (hp && /a/mig.flags === "gim") {
6761
6761
  var t = gp(RegExp.prototype, "flags");
6762
6762
  if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
@@ -6774,16 +6774,16 @@ var sp = Dn, _i = ca, ap = Po(), lp = sp.functionsHaveConfigurableNames(), cp =
6774
6774
  }
6775
6775
  }
6776
6776
  return pp;
6777
- }, yp = Ln.supportsDescriptors, vp = ba, wp = Object.getOwnPropertyDescriptor, bp = Object.defineProperty, Sp = TypeError, Ei = Object.getPrototypeOf, Cp = /a/, xp = function() {
6777
+ }, yp = Ln.supportsDescriptors, vp = wa, bp = Object.getOwnPropertyDescriptor, wp = Object.defineProperty, Sp = TypeError, Ei = Object.getPrototypeOf, Cp = /a/, xp = function() {
6778
6778
  if (!yp || !Ei)
6779
6779
  throw new Sp("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6780
- var t = vp(), n = Ei(Cp), r = wp(n, "flags");
6781
- return (!r || r.get !== t) && bp(n, "flags", {
6780
+ var t = vp(), n = Ei(Cp), r = bp(n, "flags");
6781
+ return (!r || r.get !== t) && wp(n, "flags", {
6782
6782
  configurable: !0,
6783
6783
  enumerable: !1,
6784
6784
  get: t
6785
6785
  }), t;
6786
- }, Ip = Ln, Tp = Vo, Ap = wa, Sa = ba, Fp = xp, Ca = Tp(Sa());
6786
+ }, Ip = Ln, Tp = Vo, Ap = ba, Sa = wa, Fp = xp, Ca = Tp(Sa());
6787
6787
  Ip(Ca, {
6788
6788
  getPolyfill: Sa,
6789
6789
  implementation: Ap,
@@ -6863,7 +6863,7 @@ const Ia = /* @__PURE__ */ Xs($p), Np = Ct(
6863
6863
  return;
6864
6864
  const m = o == null ? void 0 : o.rows, h = Qr(a.getFieldsValue());
6865
6865
  return m == null ? void 0 : m.map((p, g) => p.map((y, v) => {
6866
- const w = h[y.id] !== void 0;
6866
+ const b = h[y.id] !== void 0;
6867
6867
  return /* @__PURE__ */ i(
6868
6868
  "div",
6869
6869
  {
@@ -6871,8 +6871,8 @@ const Ia = /* @__PURE__ */ Xs($p), Np = Ct(
6871
6871
  display: "block",
6872
6872
  paddingTop: 5,
6873
6873
  paddingBottom: 15,
6874
- backgroundColor: w ? "#f0f0f0" : void 0,
6875
- fontWeight: w ? "bold" : void 0
6874
+ backgroundColor: b ? "#f0f0f0" : void 0,
6875
+ fontWeight: b ? "bold" : void 0
6876
6876
  },
6877
6877
  children: /* @__PURE__ */ i("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ i(Qs, { field: y }, v) })
6878
6878
  },
@@ -6911,11 +6911,11 @@ const Ia = /* @__PURE__ */ Xs($p), Np = Ct(
6911
6911
  const p = V(
6912
6912
  (x) => {
6913
6913
  var F;
6914
- const b = qn(
6914
+ const w = qn(
6915
6915
  x,
6916
6916
  (F = l.current) == null ? void 0 : F._advancedSearchContainer
6917
6917
  );
6918
- t({ params: b, values: Qr(x) });
6918
+ t({ params: w, values: Qr(x) });
6919
6919
  },
6920
6920
  [t]
6921
6921
  ), g = V(() => {
@@ -6924,8 +6924,8 @@ const Ia = /* @__PURE__ */ Xs($p), Np = Ct(
6924
6924
  }, []), y = V(
6925
6925
  (x) => {
6926
6926
  var T;
6927
- const b = Qr(x);
6928
- if (Ia(b, a)) {
6927
+ const w = Qr(x);
6928
+ if (Ia(w, a)) {
6929
6929
  h([]);
6930
6930
  return;
6931
6931
  }
@@ -6937,13 +6937,13 @@ const Ia = /* @__PURE__ */ Xs($p), Np = Ct(
6937
6937
  },
6938
6938
  [a]
6939
6939
  ), v = V(() => {
6940
- var x, b;
6941
- (x = d.current) == null || x.resetFields(), (b = d == null ? void 0 : d.current) == null || b.setFieldsValue({}), h([]);
6942
- }, []), w = n ? m || qn(a, (C = l.current) == null ? void 0 : C._advancedSearchContainer) : [];
6940
+ var x, w;
6941
+ (x = d.current) == null || x.resetFields(), (w = d == null ? void 0 : d.current) == null || w.setFieldsValue({}), h([]);
6942
+ }, []), b = n ? m || qn(a, (C = l.current) == null ? void 0 : C._advancedSearchContainer) : [];
6943
6943
  return /* @__PURE__ */ i(
6944
6944
  Lf,
6945
6945
  {
6946
- title: `${c("filter")} (${(w == null ? void 0 : w.length) || 0})`,
6946
+ title: `${c("filter")} (${(b == null ? void 0 : b.length) || 0})`,
6947
6947
  isOpen: n,
6948
6948
  onClose: r,
6949
6949
  footer: /* @__PURE__ */ i(
@@ -6951,7 +6951,7 @@ const Ia = /* @__PURE__ */ Xs($p), Np = Ct(
6951
6951
  {
6952
6952
  onClear: v,
6953
6953
  onSubmit: g,
6954
- searchParams: w
6954
+ searchParams: b
6955
6955
  }
6956
6956
  ),
6957
6957
  children: n && /* @__PURE__ */ i(
@@ -7022,7 +7022,7 @@ function jp(e) {
7022
7022
  } = e, { t: a } = pe();
7023
7023
  return /* @__PURE__ */ D(je, { children: [
7024
7024
  !s && /* @__PURE__ */ i(Te, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ D("a", { className: "text-xs", onClick: t, children: [
7025
- n ? /* @__PURE__ */ i(wl, { className: "pr-1" }) : /* @__PURE__ */ i(sr, { className: "pr-1" }),
7025
+ n ? /* @__PURE__ */ i(bl, { className: "pr-1" }) : /* @__PURE__ */ i(sr, { className: "pr-1" }),
7026
7026
  a(n ? "simple_search" : "advanced_search")
7027
7027
  ] }) }),
7028
7028
  /* @__PURE__ */ D(Te, { span: s ? 24 : 12, className: "text-right pb-2", children: [
@@ -7077,14 +7077,14 @@ function $o(e) {
7077
7077
  searchError: d,
7078
7078
  searchValues: m,
7079
7079
  showLimitOptions: h = !0
7080
- } = e, [p, g] = S(), [y, v] = S(), [w, C] = S(!1), x = Y(), { token: b } = Hp(), [F] = vt.useForm();
7080
+ } = e, [p, g] = S(), [y, v] = S(), [b, C] = S(!1), x = Y(), { token: w } = Hp(), [F] = vt.useForm();
7081
7081
  se(() => {
7082
7082
  F.setFieldsValue(m);
7083
7083
  }, [m]);
7084
7084
  const T = () => {
7085
7085
  if (!y)
7086
7086
  return;
7087
- const I = w ? y : p, O = I == null ? void 0 : I.rows;
7087
+ const I = b ? y : p, O = I == null ? void 0 : I.rows;
7088
7088
  return O == null ? void 0 : O.map(($, E) => /* @__PURE__ */ i(je, { children: $.map((L, k) => /* @__PURE__ */ i(Te, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(Qs, { field: L }) }, k)) }, E));
7089
7089
  };
7090
7090
  Rt(() => {
@@ -7124,20 +7124,20 @@ function $o(e) {
7124
7124
  vt,
7125
7125
  {
7126
7126
  className: "p-3 shadow-md",
7127
- style: { borderRadius: b.borderRadius },
7127
+ style: { borderRadius: w.borderRadius },
7128
7128
  form: F,
7129
7129
  onFinish: A,
7130
7130
  initialValues: { offset: a, limit: l },
7131
7131
  children: [
7132
7132
  R,
7133
- w && h && /* @__PURE__ */ i(Bp, { onLimitChange: c }),
7133
+ b && h && /* @__PURE__ */ i(Bp, { onLimitChange: c }),
7134
7134
  /* @__PURE__ */ i(
7135
7135
  jp,
7136
7136
  {
7137
7137
  hideAdvancedFilter: (_() || (y == null ? void 0 : y._rows.length) === 0) && !h,
7138
- advancedFilter: w,
7138
+ advancedFilter: b,
7139
7139
  onAdvancedFilterToggle: () => {
7140
- C(!w);
7140
+ C(!b);
7141
7141
  },
7142
7142
  onClear: () => {
7143
7143
  F.resetFields(), r();
@@ -7165,7 +7165,7 @@ function $o(e) {
7165
7165
  function Up({
7166
7166
  useLocalState: e = !1
7167
7167
  }) {
7168
- const t = Ud() && !e, n = To(), [r, o] = S(!1), [s, a] = S(!1), [l, c] = S([]), [u, f] = S(0), [d, m] = S([]), [h, p] = S({}), [g, y] = S(), [v, w] = S([]), [C, x] = S(), [b, F] = S(0), [T, R] = S();
7168
+ const t = Ud() && !e, n = To(), [r, o] = S(!1), [s, a] = S(!1), [l, c] = S([]), [u, f] = S(0), [d, m] = S([]), [h, p] = S({}), [g, y] = S(), [v, b] = S([]), [C, x] = S(), [w, F] = S(0), [T, R] = S();
7169
7169
  return t ? {
7170
7170
  treeIsLoading: n.treeIsLoading ?? !1,
7171
7171
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -7217,10 +7217,10 @@ function Up({
7217
7217
  searchTreeNameSearch: g,
7218
7218
  setSearchTreeNameSearch: y,
7219
7219
  results: v,
7220
- setResults: w,
7220
+ setResults: b,
7221
7221
  searchQuery: C,
7222
7222
  setSearchQuery: x,
7223
- totalItems: b,
7223
+ totalItems: w,
7224
7224
  setTotalItems: F,
7225
7225
  isActive: void 0,
7226
7226
  sortState: T,
@@ -7242,7 +7242,7 @@ const Wp = 3 * 1e3, Gp = (e) => {
7242
7242
  a === !1 && p(), (a === void 0 || a === !0) && !m && p(), (a === void 0 || a === !0) && m && g();
7243
7243
  }, [a, m]);
7244
7244
  const h = V(async () => {
7245
- var v, w;
7245
+ var v, b;
7246
7246
  if (!(o != null && o.length) || !c)
7247
7247
  return;
7248
7248
  const y = (v = t.current) == null ? void 0 : v.getVisibleRowIds();
@@ -7255,7 +7255,7 @@ const Wp = 3 * 1e3, Gp = (e) => {
7255
7255
  fieldsToRetrieve: o,
7256
7256
  context: r
7257
7257
  });
7258
- (w = t.current) == null || w.updateRows(C);
7258
+ (b = t.current) == null || b.updateRows(C);
7259
7259
  } catch (C) {
7260
7260
  console.error(C);
7261
7261
  }
@@ -7298,7 +7298,7 @@ function Yp(e, t) {
7298
7298
  onChangeSelectedRowKeys: f,
7299
7299
  nameSearch: d,
7300
7300
  filterType: m = "side"
7301
- } = e, h = Y({}), p = Y(), g = Y(null), y = Y([]), v = Y(!1), w = Hs(), [C, x] = S(!0), [b, F] = S(), { t: T } = pe(), R = Y(null), A = Zu({
7301
+ } = e, h = Y({}), p = Y(), g = Y(null), y = Y([]), v = Y(!1), b = Hs(), [C, x] = S(!0), [w, F] = S(), { t: T } = pe(), R = Y(null), A = Zu({
7302
7302
  elementRef: R,
7303
7303
  offset: Kp
7304
7304
  }), { treeView: _, formView: I, loading: O } = Us({
@@ -7326,7 +7326,7 @@ function Yp(e, t) {
7326
7326
  setTotalItems: fe,
7327
7327
  isActive: oe,
7328
7328
  sortState: z,
7329
- setSortState: be
7329
+ setSortState: we
7330
7330
  } = Up({ useLocalState: !c }), de = d || ue, Ee = Y(de);
7331
7331
  se(() => {
7332
7332
  Re();
@@ -7382,7 +7382,7 @@ function Yp(e, t) {
7382
7382
  });
7383
7383
  F(he), fe(he);
7384
7384
  } catch (he) {
7385
- w(he);
7385
+ b(he);
7386
7386
  } finally {
7387
7387
  x(!1);
7388
7388
  }
@@ -7393,7 +7393,7 @@ function Yp(e, t) {
7393
7393
  de,
7394
7394
  u,
7395
7395
  fe,
7396
- w
7396
+ b
7397
7397
  ]), q = gt(
7398
7398
  async ({
7399
7399
  startRow: he,
@@ -7404,22 +7404,22 @@ function Yp(e, t) {
7404
7404
  return [];
7405
7405
  const ze = {};
7406
7406
  me.colors && (ze.colors = me.colors), me.status && (ze.status = me.status);
7407
- let bt;
7407
+ let wt;
7408
7408
  if (!v.current && z) {
7409
7409
  v.current = !0;
7410
7410
  const st = jr({
7411
7411
  state: z
7412
7412
  });
7413
- bt = Br(st);
7413
+ wt = Br(st);
7414
7414
  } else {
7415
7415
  const st = Ze == null ? void 0 : Ze.filter((Et) => Et.sort || Et.sortIndex).map((Et) => ({
7416
7416
  sort: Et.sort || void 0,
7417
7417
  sortIndex: Et.sortIndex || void 0,
7418
7418
  colId: Et.colId
7419
- })), Un = st && (st == null ? void 0 : st.length) > 0 ? st : void 0, br = jr({
7419
+ })), Un = st && (st == null ? void 0 : st.length) > 0 ? st : void 0, wr = jr({
7420
7420
  state: Un
7421
7421
  });
7422
- be == null || be(Un), bt = Br(br);
7422
+ we == null || we(Un), wt = Br(wr);
7423
7423
  }
7424
7424
  const Cn = de ? a : ye, { results: xn, attrsEvaluated: Lt } = await N.getHandler().searchForTree({
7425
7425
  params: Cn,
@@ -7429,7 +7429,7 @@ function Yp(e, t) {
7429
7429
  fields: _.field_parent ? { ..._.fields, [_.field_parent]: {} } : _.fields,
7430
7430
  context: u,
7431
7431
  attrs: ze,
7432
- order: bt,
7432
+ order: wt,
7433
7433
  name_search: de
7434
7434
  }), Jt = xn.map((st) => ({ id: st.id }));
7435
7435
  if (B == null || B({
@@ -7437,14 +7437,14 @@ function Yp(e, t) {
7437
7437
  params: Cn,
7438
7438
  name_search: de,
7439
7439
  context: u,
7440
- order: bt
7441
- }), ce() || At.current !== bt)
7440
+ order: wt
7441
+ }), ce() || At.current !== wt)
7442
7442
  W == null || W(Jt);
7443
7443
  else {
7444
7444
  const st = [...j || [], ...Jt];
7445
7445
  W == null || W(st);
7446
7446
  }
7447
- if (At.current = bt, xn.length === 0)
7447
+ if (At.current = wt, xn.length === 0)
7448
7448
  return y.current = [], F(0), fe(0), [];
7449
7449
  const Ot = gr(me, xn), In = dn(Lt);
7450
7450
  if (h.current = {
@@ -7469,7 +7469,7 @@ function Yp(e, t) {
7469
7469
  de,
7470
7470
  u,
7471
7471
  W,
7472
- be,
7472
+ we,
7473
7473
  B,
7474
7474
  fe,
7475
7475
  me,
@@ -7493,16 +7493,16 @@ function Yp(e, t) {
7493
7493
  state: Ze
7494
7494
  });
7495
7495
  } catch (ze) {
7496
- throw console.error(ze), F(null), fe(0), w(ze), ze;
7496
+ throw console.error(ze), F(null), fe(0), b(ze), ze;
7497
7497
  } finally {
7498
7498
  $ == null || $(!1);
7499
7499
  }
7500
7500
  },
7501
- [q, fe, $, w]
7501
+ [q, fe, $, b]
7502
7502
  ), Ke = V((he) => {
7503
- var We, Ze, ze, bt;
7503
+ var We, Ze, ze, wt;
7504
7504
  if (h.current[(Ze = (We = he.node) == null ? void 0 : We.data) == null ? void 0 : Ze.id])
7505
- return { color: h.current[(bt = (ze = he.node) == null ? void 0 : ze.data) == null ? void 0 : bt.id] };
7505
+ return { color: h.current[(wt = (ze = he.node) == null ? void 0 : ze.data) == null ? void 0 : wt.id] };
7506
7506
  }, []), Se = ne(() => (P == null ? void 0 : P.map((he) => he.id)) || [], [P]), [Ce, ge, Me] = zs({
7507
7507
  ooui: me,
7508
7508
  model: n,
@@ -7519,22 +7519,22 @@ function Yp(e, t) {
7519
7519
  k == null || k(y.current);
7520
7520
  return;
7521
7521
  }
7522
- if (!b)
7522
+ if (!w)
7523
7523
  return;
7524
7524
  const Ze = await N.getHandler().searchAllIds(
7525
7525
  {
7526
7526
  params: de ? a : ye,
7527
7527
  model: n,
7528
7528
  context: u,
7529
- totalItems: b
7529
+ totalItems: w
7530
7530
  }
7531
7531
  );
7532
7532
  k == null || k(Ze.map((ze) => ({ id: ze })));
7533
7533
  };
7534
- he ? b && b > qp ? Pt({
7534
+ he ? w && w > qp ? Pt({
7535
7535
  confirmMessage: T("confirmSelectAllRegisters").replace(
7536
7536
  "{totalRecords}",
7537
- b.toString()
7537
+ w.toString()
7538
7538
  ),
7539
7539
  t: T,
7540
7540
  onOk: We
@@ -7548,8 +7548,8 @@ function Yp(e, t) {
7548
7548
  P == null ? void 0 : P.length,
7549
7549
  k,
7550
7550
  T,
7551
- b
7552
- ]), we = V(() => G, [G]), ee = ne(() => Me ? /* @__PURE__ */ i(Js, { aggregates: ge, isLoading: Ce }) : null, [ge, Ce, Me]), ve = V((he) => /* @__PURE__ */ i(ir, { color: he, style: { marginLeft: 7 } }), []), Le = V(
7551
+ w
7552
+ ]), be = V(() => G, [G]), ee = ne(() => Me ? /* @__PURE__ */ i(Js, { aggregates: ge, isLoading: Ce }) : null, [ge, Ce, Me]), ve = V((he) => /* @__PURE__ */ i(ir, { color: he, style: { marginLeft: 7 } }), []), Le = V(
7553
7553
  (he) => {
7554
7554
  var We;
7555
7555
  return (We = p.current) == null ? void 0 : We[he.id];
@@ -7574,10 +7574,10 @@ function Yp(e, t) {
7574
7574
  onColumnChanged: le,
7575
7575
  onGetColumnsState: Fe,
7576
7576
  onChangeFirstVisibleRowIndex: U,
7577
- onGetFirstVisibleRowIndex: we,
7577
+ onGetFirstVisibleRowIndex: be,
7578
7578
  selectedRowKeys: Se,
7579
7579
  onSelectionCheckboxClicked: Je,
7580
- totalRows: b || 99999,
7580
+ totalRows: w || 99999,
7581
7581
  footer: ee,
7582
7582
  hasStatusColumn: me.status !== null,
7583
7583
  statusComponent: ve,
@@ -7590,7 +7590,7 @@ function Yp(e, t) {
7590
7590
  A,
7591
7591
  Ie,
7592
7592
  De,
7593
- we,
7593
+ be,
7594
7594
  ee,
7595
7595
  Fe,
7596
7596
  ke,
@@ -7602,7 +7602,7 @@ function Yp(e, t) {
7602
7602
  U,
7603
7603
  ve,
7604
7604
  Ae,
7605
- b,
7605
+ w,
7606
7606
  me,
7607
7607
  le
7608
7608
  ]), Ne = Y(Q), Xe = Y(E), yt = Y(), At = Y();
@@ -7658,7 +7658,7 @@ function Yp(e, t) {
7658
7658
  X,
7659
7659
  J,
7660
7660
  M
7661
- ]), ut = V(
7661
+ ]), ft = V(
7662
7662
  ({ params: he, searchValues: We }) => {
7663
7663
  var Ze;
7664
7664
  k == null || k([]), (Ze = g.current) == null || Ze.unselectAll(), X == null || X(void 0), J == null || J(he), M == null || M(We);
@@ -7709,7 +7709,7 @@ function Yp(e, t) {
7709
7709
  {
7710
7710
  ...Ft,
7711
7711
  onClear: Ve,
7712
- onSubmit: ut
7712
+ onSubmit: ft
7713
7713
  }
7714
7714
  ),
7715
7715
  m === "side" && /* @__PURE__ */ i(
@@ -7725,7 +7725,7 @@ function Yp(e, t) {
7725
7725
  {
7726
7726
  selectedRowKeys: Se,
7727
7727
  allRowSelectedMode: !1,
7728
- totalRows: b
7728
+ totalRows: w
7729
7729
  }
7730
7730
  ),
7731
7731
  /* @__PURE__ */ i("div", { ref: R, style: zt, children: O || qe || C ? /* @__PURE__ */ i(Ge, {}) : xe })
@@ -7757,7 +7757,7 @@ const Ta = Ct(Yp), Bi = (e, t = "14px -apple-system") => {
7757
7757
  source: t,
7758
7758
  tableWidth: o
7759
7759
  };
7760
- }, Jp = mt.div`
7760
+ }, Jp = ct.div`
7761
7761
  display: flex;
7762
7762
  align-items: center;
7763
7763
  justify-content: center;
@@ -7811,14 +7811,14 @@ const Ta = Ct(Yp), Bi = (e, t = "14px -apple-system") => {
7811
7811
  statusForResults: g = {},
7812
7812
  onChangeSort: y,
7813
7813
  sorter: v,
7814
- onFetchChildrenForRecord: w,
7814
+ onFetchChildrenForRecord: b,
7815
7815
  childField: C,
7816
7816
  rootTree: x = !1,
7817
- context: b,
7817
+ context: w,
7818
7818
  readonly: F,
7819
7819
  onSelectAllRecords: T
7820
7820
  } = e, R = Y(null), [A, _] = S([]), I = Y(!1), [O, $] = S(), { t: E } = pe(), L = Y(r), k = te(
7821
- dt
7821
+ ut
7822
7822
  ), { title: U = void 0, setTitle: G = void 0 } = (x ? k : {}) || {}, P = ne(() => {
7823
7823
  if (O)
7824
7824
  return Co(
@@ -7826,9 +7826,9 @@ const Ta = Ct(Yp), Bi = (e, t = "14px -apple-system") => {
7826
7826
  {
7827
7827
  ..._o
7828
7828
  },
7829
- b
7829
+ w
7830
7830
  );
7831
- }, [b, O]);
7831
+ }, [w, O]);
7832
7832
  xt(t, () => ({
7833
7833
  unselectAll: () => {
7834
7834
  var B;
@@ -7894,8 +7894,8 @@ const Ta = Ct(Yp), Bi = (e, t = "14px -apple-system") => {
7894
7894
  return null;
7895
7895
  const fe = [], oe = (d == null ? void 0 : d.length) > 0 ? A.filter((z) => d.includes(z.id)) : A;
7896
7896
  return B.forEach((z) => {
7897
- const be = oe.reduce((de, Ee) => Ee[z.field] && !isNaN(Ee[z.field]) ? de + Ee[z.field] : de, 0);
7898
- fe.push(`${z.label}: ${Math.round(be * 100) / 100}`);
7897
+ const we = oe.reduce((de, Ee) => Ee[z.field] && !isNaN(Ee[z.field]) ? de + Ee[z.field] : de, 0);
7898
+ fe.push(`${z.label}: ${Math.round(we * 100) / 100}`);
7899
7899
  }), /* @__PURE__ */ i("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: fe.join(", ") });
7900
7900
  }, [A, d, O]), X = ne(() => {
7901
7901
  if (O !== null && P && P.length > 0)
@@ -7925,11 +7925,11 @@ const Ta = Ct(Yp), Bi = (e, t = "14px -apple-system") => {
7925
7925
  onChangeSort: y,
7926
7926
  sorter: v,
7927
7927
  readonly: F,
7928
- expandableOpts: w ? {
7929
- expandIcon: bl,
7928
+ expandableOpts: b ? {
7929
+ expandIcon: wl,
7930
7930
  collapseIcon: Sl,
7931
7931
  loadingIcon: It,
7932
- onFetchChildrenForRecord: w,
7932
+ onFetchChildrenForRecord: b,
7933
7933
  childField: C
7934
7934
  } : void 0
7935
7935
  }
@@ -7937,7 +7937,7 @@ const Ta = Ct(Yp), Bi = (e, t = "14px -apple-system") => {
7937
7937
  ue
7938
7938
  ] });
7939
7939
  }
7940
- ), jn = wt(Aa);
7940
+ ), jn = bt(Aa);
7941
7941
  jn.displayName = "Tree";
7942
7942
  Aa.displayName = "UnmemoizedTree";
7943
7943
  const Fa = (e) => {
@@ -7959,10 +7959,10 @@ const Fa = (e) => {
7959
7959
  setCurrentItemIndex: g,
7960
7960
  setResultsActionView: y,
7961
7961
  resultsActionView: v,
7962
- domain: w,
7962
+ domain: b,
7963
7963
  currentId: C,
7964
7964
  limit: x,
7965
- setLimit: b,
7965
+ setLimit: w,
7966
7966
  searchParams: F = [],
7967
7967
  setSearchValues: T,
7968
7968
  clearSelection: R
@@ -7976,7 +7976,7 @@ const Fa = (e) => {
7976
7976
  model: t,
7977
7977
  payload: l,
7978
7978
  limit: j.current,
7979
- attrs: w,
7979
+ attrs: b,
7980
7980
  context: u
7981
7981
  });
7982
7982
  if (J(le.length), f == null || f(le.length), le.length > 0) {
@@ -8006,15 +8006,15 @@ const Fa = (e) => {
8006
8006
  l,
8007
8007
  t,
8008
8008
  u,
8009
- w,
8009
+ b,
8010
8010
  d,
8011
8011
  m,
8012
8012
  h,
8013
8013
  g,
8014
8014
  f
8015
- ]), be = V(
8015
+ ]), we = V(
8016
8016
  async (le) => {
8017
- const { params: ye, newOffset: ce } = le || {}, Re = un(ye || F, w), { colors: q, status: Ie } = Vt(d), ke = {};
8017
+ const { params: ye, newOffset: ce } = le || {}, Re = un(ye || F, b), { colors: q, status: Ie } = Vt(d), ke = {};
8018
8018
  q && (ke.colors = q), Ie && (ke.status = Ie);
8019
8019
  const { totalItems: Ke, results: Se, attrsEvaluated: Ce } = await N.getHandler().searchForTree({
8020
8020
  params: Re,
@@ -8033,7 +8033,7 @@ const Fa = (e) => {
8033
8033
  }) : [...B.current];
8034
8034
  if (fe(ge), v && ge.length > 0) {
8035
8035
  const Je = ge.findIndex(
8036
- (we) => C === we.id
8036
+ (be) => C === be.id
8037
8037
  );
8038
8038
  Je === -1 ? g == null || g(0) : g == null || g(Je);
8039
8039
  } else
@@ -8049,7 +8049,7 @@ const Fa = (e) => {
8049
8049
  C,
8050
8050
  t,
8051
8051
  u,
8052
- w,
8052
+ b,
8053
8053
  d,
8054
8054
  m,
8055
8055
  h,
@@ -8060,7 +8060,7 @@ const Fa = (e) => {
8060
8060
  ), de = V(
8061
8061
  async (le) => {
8062
8062
  try {
8063
- _(!0), a == null || a(!0), l && !c.current ? await z() : await be(le), R == null || R();
8063
+ _(!0), a == null || a(!0), l && !c.current ? await z() : await we(le), R == null || R();
8064
8064
  } catch (ye) {
8065
8065
  E(typeof ye == "string" ? ye : ye.message), _(!1);
8066
8066
  } finally {
@@ -8072,7 +8072,7 @@ const Fa = (e) => {
8072
8072
  l,
8073
8073
  z,
8074
8074
  c,
8075
- be,
8075
+ we,
8076
8076
  r,
8077
8077
  a
8078
8078
  ]
@@ -8099,7 +8099,7 @@ const Fa = (e) => {
8099
8099
  ), me = V(
8100
8100
  (le) => {
8101
8101
  const { params: ye, searchValues: ce, limit: Re, offset: q } = le;
8102
- A || (n == null || n(void 0), r == null || r([]), T == null || T(ce), o == null || o(ye), s == null || s(!1), O(!0), E(void 0), k(1), Re && (j.current = Re, b == null || b(Re)), q && G(q), de({
8102
+ A || (n == null || n(void 0), r == null || r([]), T == null || T(ce), o == null || o(ye), s == null || s(!1), O(!0), E(void 0), k(1), Re && (j.current = Re, w == null || w(Re)), q && G(q), de({
8103
8103
  params: ye,
8104
8104
  newOffset: q
8105
8105
  }));
@@ -8112,7 +8112,7 @@ const Fa = (e) => {
8112
8112
  o,
8113
8113
  s,
8114
8114
  de,
8115
- b
8115
+ w
8116
8116
  ]
8117
8117
  ), De = V(
8118
8118
  (le) => {
@@ -8120,13 +8120,13 @@ const Fa = (e) => {
8120
8120
  },
8121
8121
  [_, x, G, k]
8122
8122
  ), $e = V(() => {
8123
- A || (n == null || n(void 0), o == null || o([]), T == null || T({}), E(void 0), G(0), k(1), b == null || b(x || kt));
8123
+ A || (n == null || n(void 0), o == null || o([]), T == null || T({}), E(void 0), G(0), k(1), w == null || w(x || kt));
8124
8124
  }, [
8125
8125
  A,
8126
8126
  n,
8127
8127
  o,
8128
8128
  T,
8129
- b,
8129
+ w,
8130
8130
  x
8131
8131
  ]), qe = V(
8132
8132
  async (le) => {
@@ -8140,11 +8140,11 @@ const Fa = (e) => {
8140
8140
  },
8141
8141
  [d, t, u, oe, fe]
8142
8142
  ), Fe = V(async () => await N.getHandler().searchAllIds({
8143
- params: un(F, w),
8143
+ params: un(F, b),
8144
8144
  model: t,
8145
8145
  context: u,
8146
8146
  totalItems: P
8147
- }), [t, u, P, F, w]);
8147
+ }), [t, u, P, F, b]);
8148
8148
  return {
8149
8149
  submit: me,
8150
8150
  clear: $e,
@@ -8179,10 +8179,10 @@ function Xp(e, t) {
8179
8179
  rootTree: f = !1,
8180
8180
  parentContext: d = {},
8181
8181
  onChangeSelectedRowKeys: m
8182
- } = e, [h, p] = S(!1), [g, y] = S(!1), v = Y(!1), w = Y(null), [C, x] = S(), [b, F] = S(), [T, R] = S(), [A, _] = S(), [I, O] = S(200), $ = Y(), { height: E } = mr(), L = te(
8182
+ } = e, [h, p] = S(!1), [g, y] = S(!1), v = Y(!1), b = Y(null), [C, x] = S(), [w, F] = S(), [T, R] = S(), [A, _] = S(), [I, O] = S(200), $ = Y(), { height: E } = mr(), L = te(
8183
8183
  vn
8184
8184
  ), { processAction: k } = L || {}, U = te(
8185
- dt
8185
+ ut
8186
8186
  ), {
8187
8187
  setResults: G = void 0,
8188
8188
  setCurrentItemIndex: P = void 0,
@@ -8198,14 +8198,14 @@ function Xp(e, t) {
8198
8198
  setSorter: fe = void 0,
8199
8199
  setTotalItems: oe = void 0,
8200
8200
  setSearchTreeNameSearch: z = void 0,
8201
- setTreeIsLoading: be = void 0,
8201
+ setTreeIsLoading: we = void 0,
8202
8202
  searchValues: de = {},
8203
8203
  setSearchValues: Ee = void 0,
8204
8204
  limit: me = kt,
8205
8205
  setLimit: De = void 0
8206
8206
  } = (f ? U : {}) || {}, $e = V(
8207
8207
  (Ve) => {
8208
- M == null || M(Ve.map((ut) => ({ id: ut }))), m == null || m(Ve);
8208
+ M == null || M(Ve.map((ft) => ({ id: ft }))), m == null || m(Ve);
8209
8209
  },
8210
8210
  [m, M]
8211
8211
  ), {
@@ -8224,7 +8224,7 @@ function Xp(e, t) {
8224
8224
  fetchChildrenForRecord: ge,
8225
8225
  colorsForResults: Me,
8226
8226
  statusForResults: Je,
8227
- totalItems: we,
8227
+ totalItems: be,
8228
8228
  getAllIds: ee
8229
8229
  } = Fa({
8230
8230
  model: C,
@@ -8234,12 +8234,12 @@ function Xp(e, t) {
8234
8234
  setSearchValues: Ee,
8235
8235
  searchParams: ue,
8236
8236
  setSearchVisible: j,
8237
- setTreeIsLoading: be,
8237
+ setTreeIsLoading: we,
8238
8238
  nameSearch: a,
8239
8239
  searchNameGetDoneRef: v,
8240
8240
  context: d,
8241
8241
  formView: T,
8242
- treeView: b,
8242
+ treeView: w,
8243
8243
  sorter: B,
8244
8244
  setSorter: fe,
8245
8245
  setCurrentItemIndex: P,
@@ -8250,23 +8250,23 @@ function Xp(e, t) {
8250
8250
  setActionViewTotalItems: oe,
8251
8251
  limit: me,
8252
8252
  setLimit: De,
8253
- clearSelection: (Ft = w.current) == null ? void 0 : Ft.unselectAll
8253
+ clearSelection: (Ft = b.current) == null ? void 0 : Ft.unselectAll
8254
8254
  });
8255
8255
  xt(t, () => ({
8256
8256
  refreshResults: () => {
8257
8257
  v.current = !1, le();
8258
8258
  },
8259
- getFields: () => b == null ? void 0 : b.fields,
8259
+ getFields: () => w == null ? void 0 : w.fields,
8260
8260
  getDomain: () => c
8261
8261
  })), se(() => {
8262
- g && u && b && (v.current = !1, le());
8263
- }, [q, ke, g, u, a, b]);
8262
+ g && u && w && (v.current = !1, le());
8263
+ }, [q, ke, g, u, a, w]);
8264
8264
  const ve = async () => {
8265
- y(!1), p(!0), _(void 0), be == null || be(!0);
8265
+ y(!1), p(!0), _(void 0), we == null || we(!0);
8266
8266
  try {
8267
8267
  await Le(), y(!0);
8268
8268
  } catch (Ve) {
8269
- _(Ve), be == null || be(!1);
8269
+ _(Ve), we == null || we(!1);
8270
8270
  } finally {
8271
8271
  p(!1);
8272
8272
  }
@@ -8278,12 +8278,12 @@ function Xp(e, t) {
8278
8278
  type: "form",
8279
8279
  context: d
8280
8280
  }));
8281
- let ut = o;
8282
- o || (ut = await N.getHandler().getView({
8281
+ let ft = o;
8282
+ o || (ft = await N.getHandler().getView({
8283
8283
  model: n,
8284
8284
  type: "tree",
8285
8285
  context: d
8286
- })), R(Ve), F(ut);
8286
+ })), R(Ve), F(ft);
8287
8287
  };
8288
8288
  se(() => {
8289
8289
  ve();
@@ -8295,28 +8295,28 @@ function Xp(e, t) {
8295
8295
  [De]
8296
8296
  ), xe = V(
8297
8297
  async (Ve) => {
8298
- const { id: ut } = Ve;
8298
+ const { id: ft } = Ve;
8299
8299
  $.current || ($.current = await N.getHandler().treeButOpen({
8300
- id: b.view_id,
8300
+ id: w.view_id,
8301
8301
  model: C,
8302
8302
  context: d
8303
8303
  }));
8304
8304
  const Mt = $.current[0][2];
8305
8305
  await (k == null ? void 0 : k({
8306
8306
  actionData: Mt,
8307
- fields: b.fields,
8307
+ fields: w.fields,
8308
8308
  values: {
8309
- active_id: ut,
8309
+ active_id: ft,
8310
8310
  ...Ve
8311
8311
  },
8312
8312
  context: d
8313
8313
  }));
8314
8314
  },
8315
- [C, d, k, b]
8315
+ [C, d, k, w]
8316
8316
  ), Ne = V(
8317
8317
  async (Ve) => {
8318
- const { id: ut } = Ve;
8319
- if (b != null && b.isExpandable) {
8318
+ const { id: ft } = Ve;
8319
+ if (w != null && w.isExpandable) {
8320
8320
  try {
8321
8321
  await xe(Ve);
8322
8322
  } catch (Mt) {
@@ -8325,27 +8325,27 @@ function Xp(e, t) {
8325
8325
  return;
8326
8326
  }
8327
8327
  s({
8328
- id: ut,
8328
+ id: ft,
8329
8329
  model: C,
8330
8330
  formView: T,
8331
- treeView: b
8331
+ treeView: w
8332
8332
  });
8333
8333
  },
8334
- [C, T, s, xe, b]
8334
+ [C, T, s, xe, w]
8335
8335
  ), Xe = V(async () => {
8336
8336
  const Ve = await ee();
8337
- M == null || M(Ve.map((ut) => ({ id: ut }))), m == null || m(Ve);
8338
- }, [ee, m, M]), yt = ne(() => b != null && b.isExpandable ? E - 160 : E - (I + 240), [E, I, b == null ? void 0 : b.isExpandable]), At = ne(
8337
+ M == null || M(Ve.map((ft) => ({ id: ft }))), m == null || m(Ve);
8338
+ }, [ee, m, M]), yt = ne(() => w != null && w.isExpandable ? E - 160 : E - (I + 240), [E, I, w == null ? void 0 : w.isExpandable]), At = ne(
8339
8339
  () => Q == null ? void 0 : Q.map((Ve) => Ve.id),
8340
8340
  [Q]
8341
- ), it = V(() => !b || !T ? null : /* @__PURE__ */ D(re, { children: [
8341
+ ), it = V(() => !w || !T ? null : /* @__PURE__ */ D(re, { children: [
8342
8342
  /* @__PURE__ */ i(
8343
8343
  $o,
8344
8344
  {
8345
- fields: { ...T.fields, ...b.fields },
8345
+ fields: { ...T.fields, ...w.fields },
8346
8346
  searchFields: Qn([
8347
8347
  T.search_fields,
8348
- b.search_fields
8348
+ w.search_fields
8349
8349
  ]),
8350
8350
  onClear: Fe,
8351
8351
  limit: me,
@@ -8362,12 +8362,12 @@ function Xp(e, t) {
8362
8362
  /* @__PURE__ */ i(
8363
8363
  jn,
8364
8364
  {
8365
- ref: w,
8365
+ ref: b,
8366
8366
  context: d,
8367
- total: we,
8367
+ total: be,
8368
8368
  limit: Ie,
8369
8369
  page: q,
8370
- treeView: b,
8370
+ treeView: w,
8371
8371
  results: Ke(),
8372
8372
  onRequestPageChange: Se,
8373
8373
  loading: ye,
@@ -8379,8 +8379,8 @@ function Xp(e, t) {
8379
8379
  onRowSelectionChange: $e,
8380
8380
  sorter: B,
8381
8381
  onChangeSort: Ce,
8382
- onFetchChildrenForRecord: b.isExpandable ? ge : void 0,
8383
- childField: b.field_parent,
8382
+ onFetchChildrenForRecord: w.isExpandable ? ge : void 0,
8383
+ childField: w.field_parent,
8384
8384
  rootTree: f,
8385
8385
  onSelectAllRecords: Xe
8386
8386
  }
@@ -8413,9 +8413,9 @@ function Xp(e, t) {
8413
8413
  Je,
8414
8414
  qe,
8415
8415
  ye,
8416
- we,
8416
+ be,
8417
8417
  l,
8418
- b
8418
+ w
8419
8419
  ]), zt = A || Re;
8420
8420
  return zt ? /* @__PURE__ */ i(ot, { className: "mt-10", message: zt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(Ge, {}) : it() });
8421
8421
  }
@@ -8431,7 +8431,7 @@ const Oa = Ct(Xp), No = ({
8431
8431
  const [l, c] = S(!1), [u, f] = S([]), [d, m] = S(!1), { modalWidth: h, modalHeight: p } = mr(), { t: g } = pe(), {
8432
8432
  treeView: y,
8433
8433
  formView: v,
8434
- loading: w
8434
+ loading: b
8435
8435
  } = Us({
8436
8436
  model: r,
8437
8437
  formViewProps: void 0,
@@ -8450,7 +8450,7 @@ const Oa = Ct(Xp), No = ({
8450
8450
  }
8451
8451
  },
8452
8452
  [n]
8453
- ), b = V(() => {
8453
+ ), w = V(() => {
8454
8454
  t();
8455
8455
  }, [t]), F = V(
8456
8456
  ({ id: O }) => {
@@ -8459,38 +8459,38 @@ const Oa = Ct(Xp), No = ({
8459
8459
  [x]
8460
8460
  ), T = V(() => {
8461
8461
  if (u.length === 0) {
8462
- b();
8462
+ w();
8463
8463
  return;
8464
8464
  }
8465
8465
  x(u);
8466
- }, [u, b, x]), R = ne(
8466
+ }, [u, w, x]), R = ne(
8467
8467
  () => C ? Ta : Oa,
8468
8468
  [C]
8469
8469
  ), A = V(() => {
8470
8470
  c(!0);
8471
8471
  }, []), _ = V(() => {
8472
- c(!1), b();
8473
- }, [b]), I = V(
8472
+ c(!1), w();
8473
+ }, [w]), I = V(
8474
8474
  (O) => {
8475
- c(!1), b(), O && x([O]);
8475
+ c(!1), w(), O && x([O]);
8476
8476
  },
8477
- [b, x]
8477
+ [w, x]
8478
8478
  );
8479
8479
  return /* @__PURE__ */ D(re, { children: [
8480
8480
  /* @__PURE__ */ D(
8481
- ft,
8481
+ mt,
8482
8482
  {
8483
8483
  title: g("search"),
8484
8484
  centered: !0,
8485
8485
  width: h,
8486
8486
  open: e && !l,
8487
8487
  closable: !0,
8488
- onCancel: b,
8488
+ onCancel: w,
8489
8489
  footer: null,
8490
8490
  destroyOnClose: !0,
8491
8491
  maskClosable: !1,
8492
8492
  children: [
8493
- !w && /* @__PURE__ */ i(
8493
+ !b && /* @__PURE__ */ i(
8494
8494
  R,
8495
8495
  {
8496
8496
  formView: v,
@@ -8526,13 +8526,13 @@ const Oa = Ct(Xp), No = ({
8526
8526
  children: g("ok")
8527
8527
  }
8528
8528
  ),
8529
- /* @__PURE__ */ i(Be, { icon: /* @__PURE__ */ i(pn, {}), onClick: b, children: g("cancel") })
8529
+ /* @__PURE__ */ i(Be, { icon: /* @__PURE__ */ i(pn, {}), onClick: w, children: g("cancel") })
8530
8530
  ] }) })
8531
8531
  ]
8532
8532
  }
8533
8533
  ),
8534
8534
  /* @__PURE__ */ i(
8535
- bn,
8535
+ wn,
8536
8536
  {
8537
8537
  model: r,
8538
8538
  visible: l,
@@ -8560,11 +8560,11 @@ const Oa = Ct(Xp), No = ({
8560
8560
  context: l,
8561
8561
  id: c,
8562
8562
  domain: u
8563
- } = r, f = o && !a ? { backgroundColor: Ra.colorPrimaryBg } : void 0, [d, m] = S(!1), [h, p] = S(!1), [g, y] = S(!1), [v, w] = S(), C = Y(!1), [x, b] = S(""), F = Y(), T = te(He), { domain: R, getValues: A, getFields: _, getContext: I, elementHasLostFocus: O } = T || {}, $ = Y([]), [E, L] = S([]), k = t && t[0] || void 0, U = t && t[1] || "";
8563
+ } = r, f = o && !a ? { backgroundColor: Ra.colorPrimaryBg } : void 0, [d, m] = S(!1), [h, p] = S(!1), [g, y] = S(!1), [v, b] = S(), C = Y(!1), [x, w] = S(""), F = Y(), T = te(He), { domain: R, getValues: A, getFields: _, getContext: I, elementHasLostFocus: O } = T || {}, $ = Y([]), [E, L] = S([]), k = t && t[0] || void 0, U = t && t[1] || "";
8564
8564
  se(() => {
8565
8565
  !Array.isArray(t) && t && Q(t);
8566
8566
  }, [t]), se(() => {
8567
- k && U.length === 0 ? Q(k) : k && U.length > 0 ? b(U) : !k && !U && b(F.current || "");
8567
+ k && U.length === 0 ? Q(k) : k && U.length > 0 ? w(U) : !k && !U && w(F.current || "");
8568
8568
  }, [t]);
8569
8569
  const G = (W) => {
8570
8570
  n == null || n(W), O == null || O();
@@ -8602,10 +8602,10 @@ const Oa = Ct(Xp), No = ({
8602
8602
  context: { ...I == null ? void 0 : I(), ...l },
8603
8603
  totalItems: 2
8604
8604
  });
8605
- j.length === 1 ? Q(j[0]) : (w(W), m(!0));
8605
+ j.length === 1 ? Q(j[0]) : (b(W), m(!0));
8606
8606
  return;
8607
8607
  }
8608
- w(W), m(!0);
8608
+ b(W), m(!0);
8609
8609
  }, Q = async (W) => {
8610
8610
  y(!0);
8611
8611
  try {
@@ -8707,7 +8707,7 @@ const Oa = Ct(Xp), No = ({
8707
8707
  }
8708
8708
  ),
8709
8709
  /* @__PURE__ */ i(
8710
- bn,
8710
+ wn,
8711
8711
  {
8712
8712
  model: s,
8713
8713
  parentContext: { ...I == null ? void 0 : I(), ...l },
@@ -8724,7 +8724,7 @@ const Oa = Ct(Xp), No = ({
8724
8724
  }
8725
8725
  )
8726
8726
  ] });
8727
- }, nh = mt(rt)`
8727
+ }, nh = ct(rt)`
8728
8728
  .ant-input {
8729
8729
  background-color: ${Ra.colorPrimaryBg};
8730
8730
  }
@@ -8773,7 +8773,7 @@ const Oa = Ct(Xp), No = ({
8773
8773
  g && (ms(g).unmount(), g.remove());
8774
8774
  };
8775
8775
  return /* @__PURE__ */ i(
8776
- ft,
8776
+ mt,
8777
8777
  {
8778
8778
  title: /* @__PURE__ */ D("span", { children: [
8779
8779
  r && /* @__PURE__ */ i("span", { style: { marginRight: 8 }, children: r }),
@@ -8860,7 +8860,7 @@ const Oa = Ct(Xp), No = ({
8860
8860
  function v() {
8861
8861
  return /* @__PURE__ */ i("div", { className: "inline-block w-3" });
8862
8862
  }
8863
- function w() {
8863
+ function b() {
8864
8864
  return /* @__PURE__ */ i(
8865
8865
  "div",
8866
8866
  {
@@ -8896,7 +8896,7 @@ const Oa = Ct(Xp), No = ({
8896
8896
  ")"
8897
8897
  ] });
8898
8898
  }
8899
- function b() {
8899
+ function w() {
8900
8900
  return /* @__PURE__ */ D(re, { children: [
8901
8901
  v(),
8902
8902
  /* @__PURE__ */ i(
@@ -8919,7 +8919,7 @@ const Oa = Ct(Xp), No = ({
8919
8919
  ] });
8920
8920
  }
8921
8921
  return /* @__PURE__ */ D("div", { className: "flex mb-2", children: [
8922
- w(),
8922
+ b(),
8923
8923
  /* @__PURE__ */ D("div", { className: "flex-none h-8 pl-2", children: [
8924
8924
  s !== "graph" && p && /* @__PURE__ */ i(
8925
8925
  nt,
@@ -8944,7 +8944,7 @@ const Oa = Ct(Xp), No = ({
8944
8944
  ] }),
8945
8945
  s !== "graph" && v(),
8946
8946
  s !== "graph" && C(),
8947
- s === "form" && b(),
8947
+ s === "form" && w(),
8948
8948
  v(),
8949
8949
  g && /* @__PURE__ */ i(
8950
8950
  nt,
@@ -8969,7 +8969,7 @@ function ah(e) {
8969
8969
  });
8970
8970
  }
8971
8971
  const lh = (e) => {
8972
- var we;
8972
+ var be;
8973
8973
  const { value: t, onChange: n, ooui: r, views: o } = e, { items: s = [] } = t || {}, { currentView: a, setCurrentView: l, itemIndex: c, setItemIndex: u } = te(
8974
8974
  Sn
8975
8975
  ), f = te(He), {
@@ -8979,7 +8979,7 @@ const lh = (e) => {
8979
8979
  getContext: p,
8980
8980
  domain: g,
8981
8981
  fetchValues: y
8982
- } = f || {}, { t: v } = pe(), [w, C] = S(!1), [x, b] = S(!1), [F, T] = S(), [R, A] = S(!1), [_, I] = S(!1), [O, $] = S(), [E, L] = S([]), [k, U] = S(!1), G = Y([]), [P, J] = S(), Z = Y(), [Q, M] = S(void 0), {
8982
+ } = f || {}, { t: v } = pe(), [b, C] = S(!1), [x, w] = S(!1), [F, T] = S(), [R, A] = S(!1), [_, I] = S(!1), [O, $] = S(), [E, L] = S([]), [k, U] = S(!1), G = Y([]), [P, J] = S(), Z = Y(), [Q, M] = S(void 0), {
8983
8983
  readOnly: ue,
8984
8984
  relation: X,
8985
8985
  context: W,
@@ -8989,12 +8989,12 @@ const lh = (e) => {
8989
8989
  ), z = Y();
8990
8990
  se(() => {
8991
8991
  if (z.current !== a) {
8992
- z.current = a, be();
8992
+ z.current = a, we();
8993
8993
  return;
8994
8994
  }
8995
- be();
8995
+ we();
8996
8996
  }, [s, a]);
8997
- const be = V(() => {
8997
+ const we = V(() => {
8998
8998
  (a === "form" && s.some((ee) => !ee.values) || a === "tree" && s.some((ee) => !ee.treeValues)) && Ee();
8999
8999
  }, [s, a]);
9000
9000
  se(() => {
@@ -9010,7 +9010,7 @@ const lh = (e) => {
9010
9010
  await me(), c > oe.length - 1 && c !== 0 && u(0);
9011
9011
  }, me = async (ee) => {
9012
9012
  var ve, Le, Ae;
9013
- b(!0), C(!1), T(void 0);
9013
+ w(!0), C(!1), T(void 0);
9014
9014
  try {
9015
9015
  const [xe, Ne] = await xo({
9016
9016
  treeView: {
@@ -9029,7 +9029,7 @@ const lh = (e) => {
9029
9029
  } catch (xe) {
9030
9030
  T(xe);
9031
9031
  } finally {
9032
- b(!1);
9032
+ w(!1);
9033
9033
  }
9034
9034
  };
9035
9035
  async function De() {
@@ -9081,7 +9081,7 @@ const lh = (e) => {
9081
9081
  } : xe);
9082
9082
  de(Ae);
9083
9083
  }, ye = (ee) => {
9084
- w ? yn({
9084
+ b ? yn({
9085
9085
  t: v,
9086
9086
  onOk: () => {
9087
9087
  le(), ee(), C(!1);
@@ -9114,7 +9114,7 @@ const lh = (e) => {
9114
9114
  I(!0);
9115
9115
  }) : I(!0);
9116
9116
  }, Ie = async () => {
9117
- b(!0), C(!1), T(void 0);
9117
+ w(!0), C(!1), T(void 0);
9118
9118
  try {
9119
9119
  if (oe[c].id > 0) {
9120
9120
  const ee = s.map((ve) => ve.id === oe[c].id ? {
@@ -9129,10 +9129,10 @@ const lh = (e) => {
9129
9129
  } catch (ee) {
9130
9130
  T(ee);
9131
9131
  }
9132
- u(0), b(!1);
9132
+ u(0), w(!1);
9133
9133
  }, ke = async () => {
9134
9134
  const ee = oe.filter((ve) => E.includes(ve.id));
9135
- b(!0), C(!1), T(void 0);
9135
+ w(!0), C(!1), T(void 0);
9136
9136
  try {
9137
9137
  const ve = ee.map((Ae) => Ae.id), Le = s.filter((Ae) => !(ve.includes(Ae.id) && Ae.id < 0)).map((Ae) => ve.includes(Ae.id) ? {
9138
9138
  ...Ae,
@@ -9142,7 +9142,7 @@ const lh = (e) => {
9142
9142
  } catch (ve) {
9143
9143
  T(ve);
9144
9144
  }
9145
- u(0), b(!1);
9145
+ u(0), w(!1);
9146
9146
  }, Ke = (ee, ve, Le, Ae = !1) => {
9147
9147
  let xe;
9148
9148
  if (Ae)
@@ -9175,7 +9175,7 @@ const lh = (e) => {
9175
9175
  const Ae = s.find((xe) => xe.id === ve);
9176
9176
  (Ae == null ? void 0 : Ae.values) === void 0 && (Le = await me("form")), $(Le.find((xe) => xe.id === ve)), U(!1), A(!0);
9177
9177
  }, Ce = async (ee) => {
9178
- b(!0);
9178
+ w(!0);
9179
9179
  const ve = s, Le = ee.filter((Ae) => !s.find((xe) => xe.id === Ae));
9180
9180
  try {
9181
9181
  for (const Ae of Le) {
@@ -9201,7 +9201,7 @@ const lh = (e) => {
9201
9201
  } catch (Ae) {
9202
9202
  T(Ae);
9203
9203
  } finally {
9204
- b(!1);
9204
+ w(!1);
9205
9205
  }
9206
9206
  };
9207
9207
  function ge() {
@@ -9217,7 +9217,7 @@ const lh = (e) => {
9217
9217
  var ve, Le, Ae, xe;
9218
9218
  if (a === "form")
9219
9219
  return oe.length === 0 ? v("noCurrentEntries") : a !== z.current && s.some((Ne) => !Ne.values) ? /* @__PURE__ */ i(Ge, {}) : /* @__PURE__ */ i(
9220
- wn,
9220
+ bn,
9221
9221
  {
9222
9222
  formView: o.get("form"),
9223
9223
  values: (ve = oe[c]) == null ? void 0 : ve.values,
@@ -9293,7 +9293,7 @@ const lh = (e) => {
9293
9293
  title: ge(),
9294
9294
  readOnly: ue || !1,
9295
9295
  isMany2Many: B,
9296
- formHasChanges: w,
9296
+ formHasChanges: b,
9297
9297
  totalItems: oe.length,
9298
9298
  currentItemIndex: c,
9299
9299
  onDelete: ce,
@@ -9303,13 +9303,13 @@ const lh = (e) => {
9303
9303
  onNextItem: Fe,
9304
9304
  onSearchItem: q,
9305
9305
  selectedRowKeys: E,
9306
- showCreateButton: ((we = o.get("form")) == null ? void 0 : we.fields) !== void 0,
9306
+ showCreateButton: ((be = o.get("form")) == null ? void 0 : be.fields) !== void 0,
9307
9307
  showToggleButton: o.size > 1
9308
9308
  }
9309
9309
  ),
9310
9310
  Me(),
9311
9311
  /* @__PURE__ */ i(
9312
- bn,
9312
+ wn,
9313
9313
  {
9314
9314
  formView: o.get("form"),
9315
9315
  model: X,
@@ -9398,16 +9398,16 @@ const lh = (e) => {
9398
9398
  endRow: g,
9399
9399
  sortFields: y
9400
9400
  }) => {
9401
- const v = Br(y), { realItemsIds: w, otherItems: C } = td({
9401
+ const v = Br(y), { realItemsIds: b, otherItems: C } = td({
9402
9402
  allItems: h,
9403
9403
  ...v ? {} : { range: { startRow: p, endRow: g } }
9404
9404
  });
9405
- if (w.length === 0 && C.length === 0)
9405
+ if (b.length === 0 && C.length === 0)
9406
9406
  return { results: [], colors: {}, status: {} };
9407
- const x = v ? (await rd(w, t, n, v)).slice(
9407
+ const x = v ? (await rd(b, t, n, v)).slice(
9408
9408
  p,
9409
9409
  g
9410
- ) : w, b = od(d), {
9410
+ ) : b, w = od(d), {
9411
9411
  items: F,
9412
9412
  colors: T,
9413
9413
  status: R
@@ -9416,7 +9416,7 @@ const lh = (e) => {
9416
9416
  ids: x,
9417
9417
  treeView: e,
9418
9418
  context: n,
9419
- attrs: b,
9419
+ attrs: w,
9420
9420
  treeOoui: d
9421
9421
  }), _ = x.length < g - p && C.length > 0 ? [...x, ...C.map((O) => O.id)] : x;
9422
9422
  return { results: nd({
@@ -9462,12 +9462,12 @@ const lh = (e) => {
9462
9462
  fields: r.fields,
9463
9463
  context: n
9464
9464
  }))[0];
9465
- return e.map((w) => w.id === p ? {
9466
- ...w,
9465
+ return e.map((b) => b.id === p ? {
9466
+ ...b,
9467
9467
  operation: "original",
9468
9468
  values: g,
9469
9469
  treeValues: y
9470
- } : w);
9470
+ } : b);
9471
9471
  },
9472
9472
  [n, o, e, t, r.fields]
9473
9473
  ), d = V(
@@ -9520,7 +9520,7 @@ const lh = (e) => {
9520
9520
  var c, u;
9521
9521
  const { itemIndex: a } = te(Sn), { t: l } = pe();
9522
9522
  return t.length === 0 ? l("noCurrentEntries") : /* @__PURE__ */ i(
9523
- wn,
9523
+ bn,
9524
9524
  {
9525
9525
  formView: e,
9526
9526
  values: (c = t[a]) == null ? void 0 : c.values,
@@ -9627,28 +9627,28 @@ const gh = ({
9627
9627
  context: f
9628
9628
  }) => {
9629
9629
  const [d, m] = S(!1), [h, p] = S(), [g, y] = S(!1), v = V(async () => {
9630
- let b;
9631
- t && n && (b = { [t]: n }), e === "form" ? r(() => {
9632
- y(!0), p({ defaultValues: b }), m(!0);
9633
- }) : (y(!0), p({ defaultValues: b }), m(!0));
9634
- }, [n, e, t, r]), w = V(() => {
9630
+ let w;
9631
+ t && n && (w = { [t]: n }), e === "form" ? r(() => {
9632
+ y(!0), p({ defaultValues: w }), m(!0);
9633
+ }) : (y(!0), p({ defaultValues: w }), m(!0));
9634
+ }, [n, e, t, r]), b = V(() => {
9635
9635
  m(!1), y(!1);
9636
9636
  }, []), C = gt(
9637
- (b, F, T, R = !1) => {
9637
+ (w, F, T, R = !1) => {
9638
9638
  let A;
9639
9639
  if (R)
9640
9640
  A = o.concat({
9641
- id: b,
9641
+ id: w,
9642
9642
  operation: "pendingLink",
9643
- values: { ...T, id: b },
9644
- treeValues: { ...T, id: b }
9643
+ values: { ...T, id: w },
9644
+ treeValues: { ...T, id: w }
9645
9645
  });
9646
- else if (b)
9647
- A = o.map((_) => _.id === b ? {
9648
- id: b,
9649
- operation: b > 0 ? "pendingUpdate" : "pendingCreate",
9650
- values: { ...T, id: b },
9651
- treeValues: { ...T, id: b }
9646
+ else if (w)
9647
+ A = o.map((_) => _.id === w ? {
9648
+ id: w,
9649
+ operation: w > 0 ? "pendingUpdate" : "pendingCreate",
9650
+ values: { ...T, id: w },
9651
+ treeValues: { ...T, id: w }
9652
9652
  } : _);
9653
9653
  else {
9654
9654
  const _ = Os(o);
@@ -9663,15 +9663,15 @@ const gh = ({
9663
9663
  },
9664
9664
  [g, o, s]
9665
9665
  ), x = gt(
9666
- async (b) => {
9666
+ async (w) => {
9667
9667
  if (!u)
9668
9668
  return;
9669
- const { id: F } = b;
9669
+ const { id: F } = w;
9670
9670
  let T = o;
9671
9671
  const R = o.find((A) => A.id === F);
9672
9672
  (R == null ? void 0 : R.values) === void 0 && (T = await N.getHandler().readObjects({
9673
9673
  model: c,
9674
- ids: [b.id],
9674
+ ids: [w.id],
9675
9675
  fields: u.fields,
9676
9676
  context: f
9677
9677
  })), p(T.find((A) => A.id === F)), y(!1), m(!0);
@@ -9683,7 +9683,7 @@ const gh = ({
9683
9683
  modalItem: h,
9684
9684
  continuousEntryMode: g,
9685
9685
  createItem: v,
9686
- onCancelFormModal: w,
9686
+ onCancelFormModal: b,
9687
9687
  onFormModalSubmitSucceed: C,
9688
9688
  openItemInFormModal: x
9689
9689
  };
@@ -9745,7 +9745,7 @@ const gh = ({
9745
9745
  onCloseSearchModal: f,
9746
9746
  onSelectSearchValues: m
9747
9747
  };
9748
- }, vh = (e) => `columnState-${e.parentViewId}-${e.treeViewId}-${e.one2ManyFieldName}-${e.model}`, wh = 400, bh = ({
9748
+ }, vh = (e) => `columnState-${e.parentViewId}-${e.treeViewId}-${e.one2ManyFieldName}-${e.model}`, bh = 400, wh = ({
9749
9749
  items: e,
9750
9750
  height: t,
9751
9751
  onRowDoubleClick: n,
@@ -9764,14 +9764,14 @@ const gh = ({
9764
9764
  selectedRowKeys: g = [],
9765
9765
  showPointerCursorInRows: y = !0
9766
9766
  }) => {
9767
- const v = Y(), w = c || v, C = Y({}), x = Y(), b = Y(), F = Y(e), { t: T } = pe();
9767
+ const v = Y(), b = c || v, C = Y({}), x = Y(), w = Y(), F = Y(e), { t: T } = pe();
9768
9768
  Rt(() => {
9769
9769
  var L, k;
9770
- if (F.current = e, b.current === void 0) {
9771
- b.current = e;
9770
+ if (F.current = e, w.current === void 0) {
9771
+ w.current = e;
9772
9772
  return;
9773
9773
  }
9774
- b.current = e, (L = w == null ? void 0 : w.current) == null || L.refresh(), (k = w == null ? void 0 : w.current) == null || k.unselectAll();
9774
+ w.current = e, (L = b == null ? void 0 : b.current) == null || L.refresh(), (k = b == null ? void 0 : b.current) == null || k.unselectAll();
9775
9775
  }, [e]);
9776
9776
  const R = Rn(() => e.length, [e]), A = Rn(() => Co(
9777
9777
  o,
@@ -9809,8 +9809,8 @@ const gh = ({
9809
9809
  return O ? /* @__PURE__ */ i(Ge, {}) : /* @__PURE__ */ i(
9810
9810
  ps,
9811
9811
  {
9812
- ref: w,
9813
- height: t || wh,
9812
+ ref: b,
9813
+ height: t || bh,
9814
9814
  columns: A,
9815
9815
  onRequestData: _,
9816
9816
  onRowDoubleClick: n,
@@ -9861,10 +9861,10 @@ const gh = ({
9861
9861
  domain: g,
9862
9862
  id: y
9863
9863
  } = o, v = te(He), {
9864
- activeId: w,
9864
+ activeId: b,
9865
9865
  getContext: C,
9866
9866
  fetchValues: x
9867
- } = v || {}, b = s.size > 1, F = ((ye = s.get("form")) == null ? void 0 : ye.fields) !== void 0, T = ne(() => ({ ...C == null ? void 0 : C(), ...p }), [C, p]), R = ch({
9867
+ } = v || {}, w = s.size > 1, F = ((ye = s.get("form")) == null ? void 0 : ye.fields) !== void 0, T = ne(() => ({ ...C == null ? void 0 : C(), ...p }), [C, p]), R = ch({
9868
9868
  widgetDomain: g,
9869
9869
  fieldName: y
9870
9870
  }), {
@@ -9919,7 +9919,7 @@ const gh = ({
9919
9919
  createItem: fe,
9920
9920
  openItemInFormModal: oe
9921
9921
  } = gh({
9922
- activeId: w,
9922
+ activeId: b,
9923
9923
  inv_field: o.inv_field,
9924
9924
  showFormChangesDialogIfNeeded: Q,
9925
9925
  currentView: c,
@@ -9932,7 +9932,7 @@ const gh = ({
9932
9932
  formView: s.get("form")
9933
9933
  }), {
9934
9934
  showSearchModal: z,
9935
- onSelectSearchValues: be,
9935
+ onSelectSearchValues: we,
9936
9936
  onCloseSearchModal: de,
9937
9937
  searchItem: Ee
9938
9938
  } = yh({
@@ -10000,11 +10000,11 @@ const gh = ({
10000
10000
  onSearchItem: Ee,
10001
10001
  selectedRowKeys: I,
10002
10002
  showCreateButton: F,
10003
- showToggleButton: b
10003
+ showToggleButton: w
10004
10004
  }
10005
10005
  ),
10006
10006
  c === "tree" && /* @__PURE__ */ i(
10007
- bh,
10007
+ wh,
10008
10008
  {
10009
10009
  gridRef: t,
10010
10010
  height: o.height,
@@ -10041,7 +10041,7 @@ const gh = ({
10041
10041
  }
10042
10042
  ),
10043
10043
  /* @__PURE__ */ i(
10044
- bn,
10044
+ wn,
10045
10045
  {
10046
10046
  formView: s.get("form"),
10047
10047
  model: h,
@@ -10067,7 +10067,7 @@ const gh = ({
10067
10067
  model: h,
10068
10068
  context: T,
10069
10069
  visible: z,
10070
- onSelectValues: be,
10070
+ onSelectValues: we,
10071
10071
  onCloseModal: de
10072
10072
  }
10073
10073
  ),
@@ -10077,7 +10077,7 @@ const gh = ({
10077
10077
  viewData: s.get("graph"),
10078
10078
  view_id: s.get("graph").view_id,
10079
10079
  model: h,
10080
- domain: [[`${o.inv_field}`, "=", w]],
10080
+ domain: [[`${o.inv_field}`, "=", b]],
10081
10081
  context: T,
10082
10082
  limit: 0
10083
10083
  }
@@ -10088,14 +10088,14 @@ const gh = ({
10088
10088
  ] })
10089
10089
  ] });
10090
10090
  }, Ih = 30, Th = (e) => {
10091
- var b;
10091
+ var w;
10092
10092
  const { ooui: t } = e, { mode: n, relation: r, views: o, required: s, context: a } = t;
10093
10093
  let l;
10094
10094
  const [c, u] = S(!0), [f, d] = S(), [m, h] = S(/* @__PURE__ */ new Map()), p = te(He), { getContext: g, formView: y } = p || {}, { view_id: v } = y || {};
10095
10095
  Rt(() => {
10096
10096
  C();
10097
10097
  }, [t]);
10098
- const w = async (F) => o && o[F] ? o[F] : await N.getHandler().getView({
10098
+ const b = async (F) => o && o[F] ? o[F] : await N.getHandler().getView({
10099
10099
  model: r,
10100
10100
  type: F,
10101
10101
  context: { ...g == null ? void 0 : g(), ...a }
@@ -10104,12 +10104,12 @@ const gh = ({
10104
10104
  try {
10105
10105
  if (n && n.length > 0) {
10106
10106
  for (const F of n) {
10107
- const T = await w(F);
10107
+ const T = await b(F);
10108
10108
  m.set(F, T);
10109
10109
  }
10110
10110
  h(m);
10111
10111
  } else {
10112
- const F = await w("form"), T = await w("tree");
10112
+ const F = await b("form"), T = await b("tree");
10113
10113
  m.set("form", F), m.set("tree", T), h(m);
10114
10114
  }
10115
10115
  } catch (F) {
@@ -10140,7 +10140,7 @@ const gh = ({
10140
10140
  ooui: t,
10141
10141
  views: m,
10142
10142
  parentViewId: v,
10143
- treeViewId: (b = m.get("tree")) == null ? void 0 : b.view_id
10143
+ treeViewId: (w = m.get("tree")) == null ? void 0 : w.view_id
10144
10144
  }
10145
10145
  )
10146
10146
  }
@@ -10216,39 +10216,66 @@ function ka(e) {
10216
10216
  }
10217
10217
  );
10218
10218
  }
10219
- const { TabPane: _h } = Qi;
10220
- function Eh(e) {
10221
- const { ooui: t, responsiveBehaviour: n } = e, r = t.pages;
10222
- function o(s) {
10223
- if (s) {
10224
- const a = pt(s);
10225
- return a && /* @__PURE__ */ i(a, {});
10219
+ const { TabPane: _h } = Qi, Eh = ct(Qi)`
10220
+ .ant-tabs-content-holder {
10221
+ border-left: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
10222
+ border-right: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
10223
+ border-bottom: 1px solid rgba(228, 228, 231, var(--tw-border-opacity));
10224
+ padding: 15px;
10225
+ border-bottom-left-radius: ${(e) => e.borderRadius || "5px"};
10226
+ border-bottom-right-radius: ${(e) => e.borderRadius || "5px"};
10227
+ margin-top: -1px;
10228
+ }
10229
+
10230
+ .ant-tabs > .ant-tabs-nav {
10231
+ /* So that there is no gap between the content and tabs */
10232
+ margin-bottom: 0;
10233
+ }
10234
+
10235
+ .ant-tabs-nav {
10236
+ margin-bottom: 0 !important;
10237
+ }
10238
+ `;
10239
+ function Dh(e) {
10240
+ const { ooui: t, responsiveBehaviour: n } = e, r = t.pages, { token: o } = Ue.useToken();
10241
+ function s(a) {
10242
+ if (a) {
10243
+ const l = pt(a);
10244
+ return l && /* @__PURE__ */ i(l, {});
10226
10245
  }
10227
10246
  }
10228
- return /* @__PURE__ */ i(Qi, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
10229
- _h,
10247
+ return /* @__PURE__ */ i(
10248
+ Eh,
10230
10249
  {
10231
- tab: /* @__PURE__ */ D(re, { children: [
10232
- o(s.icon),
10233
- " ",
10234
- s.label
10235
- ] }),
10236
- children: /* @__PURE__ */ i(
10237
- ka,
10250
+ defaultActiveKey: "1",
10251
+ tabPosition: t.tabPosition,
10252
+ borderRadius: `${o.borderRadius}px`,
10253
+ children: r.filter((a) => !a.invisible).map((a) => /* @__PURE__ */ i(
10254
+ _h,
10238
10255
  {
10239
- ooui: s,
10240
- showLabel: !1,
10241
- responsiveBehaviour: n
10242
- }
10243
- )
10244
- },
10245
- s.label
10246
- )) });
10256
+ tab: /* @__PURE__ */ D(re, { children: [
10257
+ s(a.icon),
10258
+ " ",
10259
+ a.label
10260
+ ] }),
10261
+ children: /* @__PURE__ */ i(
10262
+ ka,
10263
+ {
10264
+ ooui: a,
10265
+ showLabel: !1,
10266
+ responsiveBehaviour: n
10267
+ }
10268
+ )
10269
+ },
10270
+ a.label
10271
+ ))
10272
+ }
10273
+ );
10247
10274
  }
10248
- const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10249
- const { ooui: t } = e, { id: n, readOnly: r, required: o, height: s, translatable: a } = t, { token: l } = Dh(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = te(He), { elementHasLostFocus: f } = u || {};
10275
+ const { useToken: Vh } = Ue, { TextArea: Zr } = rt, Ph = (e) => {
10276
+ const { ooui: t } = e, { id: n, readOnly: r, required: o, height: s, translatable: a } = t, { token: l } = Vh(), c = o && !r ? { backgroundColor: l.colorPrimaryBg } : void 0, u = te(He), { elementHasLostFocus: f } = u || {};
10250
10277
  return /* @__PURE__ */ i(_e, { required: o, ...e, children: a ? /* @__PURE__ */ i(
10251
- Ph,
10278
+ kh,
10252
10279
  {
10253
10280
  field: n,
10254
10281
  height: s,
@@ -10268,7 +10295,7 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10268
10295
  onBlur: f
10269
10296
  }
10270
10297
  ) });
10271
- }, Ph = ({
10298
+ }, kh = ({
10272
10299
  value: e,
10273
10300
  field: t,
10274
10301
  requiredStyle: n,
@@ -10358,13 +10385,13 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10358
10385
  }
10359
10386
  ) })
10360
10387
  ] });
10361
- }, kh = (e) => {
10388
+ }, $h = (e) => {
10362
10389
  const { ooui: t } = e, { label: n, icon: r } = t, o = pt(r || "");
10363
10390
  return /* @__PURE__ */ i(rr, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ D(Qe, { children: [
10364
10391
  o ? /* @__PURE__ */ i(o, {}) : null,
10365
10392
  n
10366
10393
  ] }) });
10367
- }, $h = ({
10394
+ }, Nh = ({
10368
10395
  model: e,
10369
10396
  context: t,
10370
10397
  selectedRegistersToExport: n,
@@ -10382,9 +10409,9 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10382
10409
  y.registersAmount === "selected" && (n == null ? void 0 : n.length) !== 0 && (v = [
10383
10410
  ["id", "in", n == null ? void 0 : n.map((x) => x.id)]
10384
10411
  ]);
10385
- const { datas: w } = await N.getHandler().exportData({
10412
+ const { datas: b } = await N.getHandler().exportData({
10386
10413
  model: e,
10387
- fields: Hh({
10414
+ fields: Uh({
10388
10415
  keys: y.selectedKeys,
10389
10416
  fields: a.current
10390
10417
  }),
@@ -10394,8 +10421,8 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10394
10421
  format: y.exportType
10395
10422
  });
10396
10423
  s(), await new Promise((x) => setTimeout(x, 200));
10397
- const C = await cn(w);
10398
- hr(w, C.mime);
10424
+ const C = await cn(b);
10425
+ hr(b, C.mime);
10399
10426
  },
10400
10427
  [r, n, e, o, t, s, c]
10401
10428
  ), f = V(async () => {
@@ -10407,14 +10434,14 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10407
10434
  return a.current["/"] = y, Hi({ fields: y });
10408
10435
  }, [e, t, a]), d = V(
10409
10436
  async (y) => {
10410
- const w = no(y, a.current)[to(y)], C = w.relation, x = await N.getHandler().getFields({
10437
+ const b = no(y, a.current)[to(y)], C = b.relation, x = await N.getHandler().getFields({
10411
10438
  model: C,
10412
10439
  context: t,
10413
10440
  fields: []
10414
10441
  });
10415
- for (const [b, F] of Object.entries(x))
10416
- x[b].string = Mh({
10417
- parentTitle: w.string,
10442
+ for (const [w, F] of Object.entries(x))
10443
+ x[w].string = Lh({
10444
+ parentTitle: b.string,
10418
10445
  title: F.string
10419
10446
  });
10420
10447
  return a.current[y] = x, Hi({
@@ -10424,7 +10451,7 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10424
10451
  },
10425
10452
  [t]
10426
10453
  ), m = V(async () => {
10427
- const y = await Lh({ model: e, context: t }), v = await Bh({
10454
+ const y = await jh({ model: e, context: t }), v = await Hh({
10428
10455
  predefinedExports: y,
10429
10456
  fields: a.current,
10430
10457
  onGetFieldChilds: d
@@ -10433,7 +10460,7 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10433
10460
  predefinedExports: y.map((C) => ({
10434
10461
  ...C,
10435
10462
  fields: C.fields.map((x) => {
10436
- const b = to(x.key), T = no(x.key, a.current)[b];
10463
+ const w = to(x.key), T = no(x.key, a.current)[w];
10437
10464
  return T ? {
10438
10465
  key: x.key,
10439
10466
  title: T.string
@@ -10467,7 +10494,7 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10467
10494
  [l, t]
10468
10495
  ), g = V(
10469
10496
  async (y) => {
10470
- const v = await p("ir.exports"), w = await p("ir.exports.line"), C = await N.getHandler().create({
10497
+ const v = await p("ir.exports"), b = await p("ir.exports.line"), C = await N.getHandler().create({
10471
10498
  model: "ir.exports",
10472
10499
  values: {
10473
10500
  name: y.name,
@@ -10483,7 +10510,7 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10483
10510
  name: x.key,
10484
10511
  export_id: C
10485
10512
  },
10486
- fields: w,
10513
+ fields: b,
10487
10514
  context: t
10488
10515
  }))
10489
10516
  ), { ...y, id: C };
@@ -10506,7 +10533,7 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10506
10533
  for (const r of Object.keys(e)) {
10507
10534
  const o = e[r], s = $a(o), a = o.is_function === !0, l = s && !a;
10508
10535
  n.push({
10509
- key: Nh({ key: r, parentKey: t }),
10536
+ key: Mh({ key: r, parentKey: t }),
10510
10537
  title: o.string,
10511
10538
  tooltip: o.help,
10512
10539
  required: o.required,
@@ -10514,7 +10541,7 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10514
10541
  });
10515
10542
  }
10516
10543
  return n;
10517
- }, $a = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Nh = ({
10544
+ }, $a = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Mh = ({
10518
10545
  parentKey: e,
10519
10546
  key: t
10520
10547
  }) => `${e ? e + "/" : ""}${t}`, eo = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), to = (e) => {
@@ -10522,10 +10549,10 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10522
10549
  return e;
10523
10550
  const t = e.split("/");
10524
10551
  return t[t.length - 1];
10525
- }, no = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[eo(e)], Mh = ({
10552
+ }, no = (e, t) => e.indexOf("/") === -1 ? t["/"] : t[eo(e)], Lh = ({
10526
10553
  title: e,
10527
10554
  parentTitle: t
10528
- }) => `${t ? t + " → " : ""}${e}`, Lh = async ({
10555
+ }) => `${t ? t + " → " : ""}${e}`, jh = async ({
10529
10556
  model: e,
10530
10557
  context: t
10531
10558
  }) => {
@@ -10545,24 +10572,24 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10545
10572
  key: o.find((c) => c.id === a).name
10546
10573
  }))
10547
10574
  }));
10548
- }, jh = ({
10575
+ }, Bh = ({
10549
10576
  fields: e,
10550
10577
  keys: t
10551
- }) => Uh([
10578
+ }) => Wh([
10552
10579
  ...new Set(
10553
10580
  t.filter((n) => {
10554
10581
  var r, o;
10555
10582
  return n.indexOf("/") === -1 ? !((r = e["/"]) != null && r[n]) : !((o = e == null ? void 0 : e[eo(n)]) != null && o[n]);
10556
10583
  }).map((n) => eo(n))
10557
10584
  )
10558
- ]), Bh = async ({
10585
+ ]), Hh = async ({
10559
10586
  predefinedExports: e,
10560
10587
  fields: t,
10561
10588
  onGetFieldChilds: n
10562
10589
  }) => {
10563
10590
  const r = e.flatMap(
10564
10591
  (a) => a.fields.map((l) => l.key)
10565
- ), o = jh({
10592
+ ), o = Bh({
10566
10593
  fields: t,
10567
10594
  keys: r
10568
10595
  }), s = [];
@@ -10576,13 +10603,13 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10576
10603
  );
10577
10604
  }
10578
10605
  return s;
10579
- }, Hh = ({
10606
+ }, Uh = ({
10580
10607
  keys: e,
10581
10608
  fields: t
10582
10609
  }) => e.map((n) => {
10583
10610
  const r = to(n), s = no(n, t)[r], a = $a(s), l = s.is_function === !0;
10584
10611
  return a && !l ? `${n}/id` : n;
10585
- }), Uh = (e) => {
10612
+ }), Wh = (e) => {
10586
10613
  const t = /* @__PURE__ */ new Map(), n = [];
10587
10614
  for (const r of e) {
10588
10615
  const o = r.split("/");
@@ -10596,7 +10623,7 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10596
10623
  const s = r.split("/").length, a = o.split("/").length;
10597
10624
  return s - a;
10598
10625
  }), n;
10599
- }, Wh = (e) => {
10626
+ }, Gh = (e) => {
10600
10627
  const {
10601
10628
  visible: t,
10602
10629
  onClose: n,
@@ -10614,7 +10641,7 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10614
10641
  onGetPredefinedExports: h,
10615
10642
  onSavePredefinedExport: p,
10616
10643
  onRemovePredefinedExport: g
10617
- } = $h({
10644
+ } = Nh({
10618
10645
  model: r,
10619
10646
  context: o,
10620
10647
  domain: l,
@@ -10638,28 +10665,28 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10638
10665
  onRemovePredefinedExport: g
10639
10666
  }
10640
10667
  );
10641
- }, Gh = (e) => {
10668
+ }, Kh = (e) => {
10642
10669
  const { ooui: t } = e;
10643
10670
  return /* @__PURE__ */ i(Ks, { ooui: t });
10644
- }, Kh = (e) => {
10671
+ }, qh = (e) => {
10645
10672
  const { ooui: t } = e;
10646
10673
  return /* @__PURE__ */ i(Ks, { ooui: t, showTime: !0 });
10647
- }, qh = (e) => {
10674
+ }, Yh = (e) => {
10648
10675
  const { ooui: t } = e;
10649
- return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Yh, { ooui: t }) });
10650
- }, Yh = (e) => /* @__PURE__ */ i(
10676
+ return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(zh, { ooui: t }) });
10677
+ }, zh = (e) => /* @__PURE__ */ i(
10651
10678
  Ur,
10652
10679
  {
10653
10680
  onChange: (n, r) => {
10654
10681
  e.onChange && e.onChange(r);
10655
10682
  },
10656
10683
  numberOfSelectsToHide: 3,
10657
- value: e.value ? ct(e.value, "HH:mm:ss") : void 0
10684
+ value: e.value ? dt(e.value, "HH:mm:ss") : void 0
10658
10685
  }
10659
- ), zh = (e) => {
10686
+ ), Jh = (e) => {
10660
10687
  const { ooui: t } = e, { required: n } = t;
10661
- return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Jh, { ooui: t }) });
10662
- }, Jh = (e) => {
10688
+ return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Qh, { ooui: t }) });
10689
+ }, Qh = (e) => {
10663
10690
  const { value: t, onChange: n, ooui: r } = e, { required: o, selectionValues: s, readOnly: a, domain: l } = r, c = t == null ? void 0 : t.split(","), [u, f] = S([]), [d, m] = S();
10664
10691
  return se(() => {
10665
10692
  if (!t) {
@@ -10707,16 +10734,16 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10707
10734
  }
10708
10735
  ) })
10709
10736
  ] });
10710
- }, { useToken: Qh } = Ue, Xh = (e) => {
10737
+ }, { useToken: Xh } = Ue, Zh = (e) => {
10711
10738
  const { ooui: t } = e, { required: n } = t;
10712
- return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Zh, { ooui: t }) });
10713
- }, Zh = (e) => {
10714
- const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Qh(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = Y(null), { setFieldValue: f, getFieldValue: d } = te(He) || {}, { t: m } = pe(), h = n ? Gc(n) : "", p = (C) => {
10739
+ return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(eg, { ooui: t }) });
10740
+ }, eg = (e) => {
10741
+ const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Xh(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = Y(null), { setFieldValue: f, getFieldValue: d } = te(He) || {}, { t: m } = pe(), h = n ? Gc(n) : "", p = (C) => {
10715
10742
  r == null || r(C);
10716
10743
  };
10717
10744
  async function g() {
10718
- const C = await cn(n), x = `data:${C == null ? void 0 : C.mime};base64,${n}`, b = document.createElement("a"), F = d(a), T = d("name");
10719
- b.href = x, b.download = F || T, b.click();
10745
+ const C = await cn(n), x = `data:${C == null ? void 0 : C.mime};base64,${n}`, w = document.createElement("a"), F = d(a), T = d("name");
10746
+ w.href = x, w.download = F || T, w.click();
10720
10747
  }
10721
10748
  async function y() {
10722
10749
  const C = await cn(n);
@@ -10724,10 +10751,10 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10724
10751
  }
10725
10752
  async function v(C) {
10726
10753
  C.stopPropagation(), C.preventDefault();
10727
- const x = C.target.files[0], b = await Ts(x);
10728
- p(b), a && f(a, x.name);
10754
+ const x = C.target.files[0], w = await Ts(x);
10755
+ p(w), a && f(a, x.name);
10729
10756
  }
10730
- function w() {
10757
+ function b() {
10731
10758
  f(a, void 0), p(void 0);
10732
10759
  }
10733
10760
  return /* @__PURE__ */ D(je, { gutter: 8, children: [
@@ -10779,7 +10806,7 @@ const { useToken: Dh } = Ue, { TextArea: Zr } = rt, Vh = (e) => {
10779
10806
  {
10780
10807
  tooltip: m("clear"),
10781
10808
  disabled: o || !n,
10782
- onClick: w,
10809
+ onClick: b,
10783
10810
  icon: /* @__PURE__ */ i(lr, {})
10784
10811
  }
10785
10812
  )
@@ -10905,7 +10932,7 @@ function at(e) {
10905
10932
  const Na = (e) => /* @__PURE__ */ i(at, { ...e, type: "primary", danger: !0 });
10906
10933
  function Ma(e) {
10907
10934
  const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = te(
10908
- dt
10935
+ ut
10909
10936
  ), { t: o } = pe(), s = () => {
10910
10937
  if (n) {
10911
10938
  yn({
@@ -10952,7 +10979,7 @@ async function La(e, t, n) {
10952
10979
  ] })
10953
10980
  );
10954
10981
  }
10955
- const eg = (e) => {
10982
+ const tg = (e) => {
10956
10983
  const {
10957
10984
  numberOfAttachments: t,
10958
10985
  attachments: n = [],
@@ -11050,29 +11077,29 @@ const eg = (e) => {
11050
11077
  }
11051
11078
  );
11052
11079
  };
11053
- function tg(e) {
11080
+ function ng(e) {
11054
11081
  const {
11055
11082
  attachments: t,
11056
11083
  disabled: n = !1,
11057
11084
  onAddNewAttachment: r,
11058
11085
  onListAllAttachments: o,
11059
11086
  onViewAttachmentDetails: s
11060
- } = e, { formRef: a } = te(dt), [l, c] = S(!1), [u, f] = S([]), [d, m] = S(!1), { t: h } = pe(), p = V(async () => {
11087
+ } = e, { formRef: a } = te(ut), [l, c] = S(!1), [u, f] = S([]), [d, m] = S(!1), { t: h } = pe(), p = V(async () => {
11061
11088
  if (!(!t || t.length === 0)) {
11062
11089
  c(!0);
11063
11090
  try {
11064
11091
  const v = await N.getHandler().readObjects({
11065
11092
  model: "ir.attachment",
11066
- ids: t.map((w) => w.id),
11093
+ ids: t.map((b) => b.id),
11067
11094
  fieldsToRetrieve: ["name", "datas_fname", "link"],
11068
11095
  context: a.current.getContext()
11069
11096
  });
11070
11097
  f(
11071
- v.map((w) => ({
11072
- id: w.id,
11073
- name: w.name,
11074
- datas_fname: w.datas_fname,
11075
- link: w.link
11098
+ v.map((b) => ({
11099
+ id: b.id,
11100
+ name: b.name,
11101
+ datas_fname: b.datas_fname,
11102
+ link: b.link
11076
11103
  }))
11077
11104
  );
11078
11105
  } catch (v) {
@@ -11087,9 +11114,9 @@ function tg(e) {
11087
11114
  return;
11088
11115
  }
11089
11116
  m(!0);
11090
- let w;
11117
+ let b;
11091
11118
  try {
11092
- w = (await N.getHandler().readObjects({
11119
+ b = (await N.getHandler().readObjects({
11093
11120
  model: "ir.attachment",
11094
11121
  ids: [v.id],
11095
11122
  context: a.current.getContext()
@@ -11097,12 +11124,12 @@ function tg(e) {
11097
11124
  } catch (C) {
11098
11125
  lt(C);
11099
11126
  }
11100
- if (m(!1), !!w)
11101
- if (w.datas) {
11102
- const C = await cn(w.datas);
11103
- hr(w.datas, C.mime);
11127
+ if (m(!1), !!b)
11128
+ if (b.datas) {
11129
+ const C = await cn(b.datas);
11130
+ hr(b.datas, C.mime);
11104
11131
  } else
11105
- s(w);
11132
+ s(b);
11106
11133
  },
11107
11134
  [a, s]
11108
11135
  ), y = V(
@@ -11115,7 +11142,7 @@ function tg(e) {
11115
11142
  p();
11116
11143
  }, [p]), /* @__PURE__ */ D(re, { children: [
11117
11144
  /* @__PURE__ */ i(
11118
- eg,
11145
+ tg,
11119
11146
  {
11120
11147
  numberOfAttachments: t.length,
11121
11148
  attachments: u,
@@ -11128,7 +11155,7 @@ function tg(e) {
11128
11155
  }
11129
11156
  ),
11130
11157
  /* @__PURE__ */ i(
11131
- ft,
11158
+ mt,
11132
11159
  {
11133
11160
  title: h("downloadingAttachment"),
11134
11161
  open: d,
@@ -11141,7 +11168,7 @@ function tg(e) {
11141
11168
  )
11142
11169
  ] });
11143
11170
  }
11144
- const ng = () => {
11171
+ const rg = () => {
11145
11172
  const {
11146
11173
  isInfiniteTree: e,
11147
11174
  totalItems: t,
@@ -11160,10 +11187,10 @@ const ng = () => {
11160
11187
  async (y) => {
11161
11188
  var v;
11162
11189
  try {
11163
- const { params: w, model: C, name_search: x, context: b, order: F } = a, { results: T } = await l({
11164
- params: w,
11190
+ const { params: b, model: C, name_search: x, context: w, order: F } = a, { results: T } = await l({
11191
+ params: b,
11165
11192
  model: C,
11166
- context: b,
11193
+ context: w,
11167
11194
  limit: 1,
11168
11195
  offset: y,
11169
11196
  order: F,
@@ -11171,8 +11198,8 @@ const ng = () => {
11171
11198
  skipRead: !0
11172
11199
  });
11173
11200
  return (v = T[0]) == null ? void 0 : v.id;
11174
- } catch (w) {
11175
- u(w);
11201
+ } catch (b) {
11202
+ u(b);
11176
11203
  }
11177
11204
  },
11178
11205
  [l, a, u]
@@ -11183,17 +11210,17 @@ const ng = () => {
11183
11210
  [o, r]
11184
11211
  ), m = V(
11185
11212
  async (y) => {
11186
- var b, F;
11213
+ var w, F;
11187
11214
  if (!s)
11188
11215
  return;
11189
- const v = y === "next", w = v ? n + 1 : n - 1, C = v ? w < t : w >= 0, x = v ? w === t : w === -1;
11216
+ const v = y === "next", b = v ? n + 1 : n - 1, C = v ? b < t : b >= 0, x = v ? b === t : b === -1;
11190
11217
  if (C) {
11191
- const T = (b = s[w]) == null ? void 0 : b.id;
11218
+ const T = (w = s[b]) == null ? void 0 : w.id;
11192
11219
  if (T)
11193
- d(w, T);
11220
+ d(b, T);
11194
11221
  else {
11195
- const R = await f(w);
11196
- R && d(w, R);
11222
+ const R = await f(b);
11223
+ R && d(b, R);
11197
11224
  }
11198
11225
  } else if (x) {
11199
11226
  const T = v ? 0 : t - 1, R = (F = s[T]) == null ? void 0 : F.id;
@@ -11210,7 +11237,7 @@ const ng = () => {
11210
11237
  (y) => {
11211
11238
  if (!s || s.length === 0)
11212
11239
  return;
11213
- const v = y === "next", w = v ? n + 1 : n - 1, x = (v ? w === s.length : w === -1) ? v ? 0 : s.length - 1 : w;
11240
+ const v = y === "next", b = v ? n + 1 : n - 1, x = (v ? b === s.length : b === -1) ? v ? 0 : s.length - 1 : b;
11214
11241
  d(x, s[x].id);
11215
11242
  },
11216
11243
  [s, n, d]
@@ -11224,12 +11251,12 @@ const ng = () => {
11224
11251
  onPreviousClick: g
11225
11252
  };
11226
11253
  };
11227
- function rg({ toolbar: e }) {
11254
+ function og({ toolbar: e }) {
11228
11255
  const t = te(
11229
11256
  vn
11230
11257
  ), n = te(
11231
11258
  Tt
11232
- ), { t: r } = pe(), { onNextClick: o, onPreviousClick: s } = ng(), {
11259
+ ), { t: r } = pe(), { onNextClick: o, onPreviousClick: s } = rg(), {
11233
11260
  availableViews: a,
11234
11261
  currentView: l,
11235
11262
  setCurrentView: c,
@@ -11242,10 +11269,10 @@ function rg({ toolbar: e }) {
11242
11269
  currentItemIndex: g,
11243
11270
  setCurrentId: y,
11244
11271
  currentModel: v,
11245
- setRemovingItem: w,
11272
+ setRemovingItem: b,
11246
11273
  removingItem: C,
11247
11274
  duplicatingItem: x,
11248
- setDuplicatingItem: b,
11275
+ setDuplicatingItem: w,
11249
11276
  setResults: F,
11250
11277
  formIsLoading: T,
11251
11278
  attachments: R,
@@ -11262,7 +11289,7 @@ function rg({ toolbar: e }) {
11262
11289
  [f, r]
11263
11290
  ), J = V(async () => {
11264
11291
  try {
11265
- w == null || w(!0), await N.getHandler().deleteObjects({
11292
+ b == null || b(!0), await N.getHandler().deleteObjects({
11266
11293
  model: v,
11267
11294
  ids: [m],
11268
11295
  context: A.current.getContext()
@@ -11276,7 +11303,7 @@ function rg({ toolbar: e }) {
11276
11303
  } catch (M) {
11277
11304
  Kt(JSON.stringify(M));
11278
11305
  } finally {
11279
- w == null || w(!1);
11306
+ b == null || b(!1);
11280
11307
  }
11281
11308
  }, [
11282
11309
  m,
@@ -11286,11 +11313,11 @@ function rg({ toolbar: e }) {
11286
11313
  h,
11287
11314
  y,
11288
11315
  p,
11289
- w,
11316
+ b,
11290
11317
  F
11291
11318
  ]), Z = V(async () => {
11292
11319
  try {
11293
- b == null || b(!0);
11320
+ w == null || w(!0);
11294
11321
  const M = await N.getHandler().duplicate({
11295
11322
  id: m,
11296
11323
  model: v,
@@ -11300,9 +11327,9 @@ function rg({ toolbar: e }) {
11300
11327
  } catch (M) {
11301
11328
  Kt(JSON.stringify(M));
11302
11329
  } finally {
11303
- b == null || b(!1);
11330
+ w == null || w(!1);
11304
11331
  }
11305
- }, [m, v, A, $, b]), Q = V(
11332
+ }, [m, v, A, $, w]), Q = V(
11306
11333
  (M) => {
11307
11334
  L == null || L({
11308
11335
  actionData: M,
@@ -11494,7 +11521,7 @@ function rg({ toolbar: e }) {
11494
11521
  }
11495
11522
  ),
11496
11523
  /* @__PURE__ */ i(
11497
- tg,
11524
+ ng,
11498
11525
  {
11499
11526
  disabled: G,
11500
11527
  attachments: R,
@@ -11542,13 +11569,13 @@ const Zt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), en
11542
11569
  ],
11543
11570
  values: { selection_associated_object: `${e},${t}` },
11544
11571
  forced_values: { res_model: e, res_id: t }
11545
- }), { useToken: og } = Ue, ja = (e) => {
11546
- const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } = og(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = te(He), { elementHasLostFocus: m } = d || {}, [h, p] = S(!1), [g, y] = S(!1);
11572
+ }), { useToken: ig } = Ue, ja = (e) => {
11573
+ const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } = ig(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = te(He), { elementHasLostFocus: m } = d || {}, [h, p] = S(!1), [g, y] = S(!1);
11547
11574
  se(() => {
11548
11575
  l && !h && y(!1), !n && !l && (p(!0), y(!0));
11549
11576
  }, [h, l]);
11550
- const v = (w) => {
11551
- r == null || r(w.target.value);
11577
+ const v = (b) => {
11578
+ r == null || r(b.target.value);
11552
11579
  };
11553
11580
  return /* @__PURE__ */ D(je, { gutter: 8, wrap: !1, align: "middle", children: [
11554
11581
  l ? null : /* @__PURE__ */ i(Te, { flex: "none", children: h ? /* @__PURE__ */ i(
@@ -11598,7 +11625,7 @@ const Zt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), en
11598
11625
  }
11599
11626
  ) })
11600
11627
  ] });
11601
- }, ig = (e) => {
11628
+ }, sg = (e) => {
11602
11629
  const { ooui: t } = e, { required: n } = t;
11603
11630
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
11604
11631
  ja,
@@ -11607,7 +11634,7 @@ const Zt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), en
11607
11634
  valueValidator: (r) => r ? sc(r) : !1
11608
11635
  }
11609
11636
  ) });
11610
- }, sg = (e) => {
11637
+ }, ag = (e) => {
11611
11638
  const { ooui: t } = e, { required: n } = t;
11612
11639
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(Nu, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
11613
11640
  ja,
@@ -11617,14 +11644,14 @@ const Zt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), en
11617
11644
  valueValidator: (r) => r ? ac(r) : !1
11618
11645
  }
11619
11646
  ) });
11620
- }, ag = (e) => {
11647
+ }, lg = (e) => {
11621
11648
  const { visible: t, onIdSubmitted: n, onCancel: r, isSearching: o } = e, { t: s } = pe(), a = Y(null), l = Y(!1);
11622
11649
  function c(u) {
11623
11650
  const f = u.id.split(",").map((d) => parseInt(d.trim()));
11624
11651
  n(f, l.current), l.current = !1;
11625
11652
  }
11626
11653
  return /* @__PURE__ */ i(
11627
- ft,
11654
+ mt,
11628
11655
  {
11629
11656
  title: s("goToResourceId"),
11630
11657
  centered: !0,
@@ -11699,9 +11726,9 @@ const Zt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), en
11699
11726
  ] })
11700
11727
  }
11701
11728
  );
11702
- }, { useToken: lg } = Ue;
11729
+ }, { useToken: cg } = Ue;
11703
11730
  function Ba(e) {
11704
- const { badgeNumber: t = 0, ...n } = e, { token: r } = lg();
11731
+ const { badgeNumber: t = 0, ...n } = e, { token: r } = cg();
11705
11732
  return /* @__PURE__ */ D("div", { style: { position: "relative" }, children: [
11706
11733
  t > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
11707
11734
  "span",
@@ -11728,7 +11755,7 @@ function Ba(e) {
11728
11755
  )
11729
11756
  ] });
11730
11757
  }
11731
- function cg({ refreshGraph: e }) {
11758
+ function dg({ refreshGraph: e }) {
11732
11759
  const { t } = pe(), {
11733
11760
  availableViews: n,
11734
11761
  currentView: r,
@@ -11739,7 +11766,7 @@ function cg({ refreshGraph: e }) {
11739
11766
  graphIsLoading: c,
11740
11767
  previousView: u,
11741
11768
  setPreviousView: f
11742
- } = te(dt);
11769
+ } = te(ut);
11743
11770
  return /* @__PURE__ */ D(Qe, { wrap: !0, children: [
11744
11771
  /* @__PURE__ */ i(
11745
11772
  Ba,
@@ -11785,7 +11812,7 @@ function cg({ refreshGraph: e }) {
11785
11812
  )
11786
11813
  ] });
11787
11814
  }
11788
- const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
11815
+ const { useToken: ug } = Ue, { Title: fg, Text: Kn } = $t, br = ({
11789
11816
  title: e,
11790
11817
  children: t,
11791
11818
  showSummary: n = !0
@@ -11799,7 +11826,7 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
11799
11826
  totalItems: c,
11800
11827
  selectedRowItems: u,
11801
11828
  isInfiniteTree: f
11802
- } = te(dt), { t: d } = pe(), { token: m } = dg(), h = ne(() => {
11829
+ } = te(ut), { t: d } = pe(), { token: m } = ug(), h = ne(() => {
11803
11830
  if (!n)
11804
11831
  return null;
11805
11832
  if ((o == null ? void 0 : o.type) === "form" && s) {
@@ -11881,7 +11908,7 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
11881
11908
  align: "middle",
11882
11909
  children: [
11883
11910
  /* @__PURE__ */ D(Te, { flex: 2, children: [
11884
- /* @__PURE__ */ i(ug, { level: 3, style: { marginBottom: 0 }, children: e || r }),
11911
+ /* @__PURE__ */ i(fg, { level: 3, style: { marginBottom: 0 }, children: e || r }),
11885
11912
  h
11886
11913
  ] }),
11887
11914
  /* @__PURE__ */ i(Te, { flex: 3, children: /* @__PURE__ */ i(je, { justify: "end", children: t }) })
@@ -11890,7 +11917,7 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
11890
11917
  ),
11891
11918
  /* @__PURE__ */ i("div", { className: "pb-5" })
11892
11919
  ] });
11893
- }, fg = (e) => {
11920
+ }, mg = (e) => {
11894
11921
  const {
11895
11922
  viewData: t,
11896
11923
  visible: n,
@@ -11901,7 +11928,7 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
11901
11928
  treeView: l,
11902
11929
  graphView: c
11903
11930
  } = e, u = Y(), f = te(
11904
- dt
11931
+ ut
11905
11932
  ), {
11906
11933
  setResults: d = void 0,
11907
11934
  setCurrentItemIndex: m = void 0,
@@ -11910,10 +11937,10 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
11910
11937
  setSelectedRowItems: g = void 0,
11911
11938
  setSearchParams: y = void 0,
11912
11939
  searchVisible: v = !0,
11913
- setSearchVisible: w = void 0,
11940
+ setSearchVisible: b = void 0,
11914
11941
  sorter: C = void 0,
11915
11942
  setSorter: x = void 0,
11916
- setTotalItems: b = void 0,
11943
+ setTotalItems: w = void 0,
11917
11944
  setSearchTreeNameSearch: F = void 0,
11918
11945
  setTreeIsLoading: T = void 0,
11919
11946
  limit: R,
@@ -11936,7 +11963,7 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
11936
11963
  searchParams: _,
11937
11964
  setSearchValues: O,
11938
11965
  setSearchParams: y,
11939
- setSearchVisible: w,
11966
+ setSearchVisible: b,
11940
11967
  setTreeIsLoading: T,
11941
11968
  context: o,
11942
11969
  formView: a,
@@ -11948,7 +11975,7 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
11948
11975
  resultsActionView: p,
11949
11976
  domain: s,
11950
11977
  currentId: h,
11951
- setActionViewTotalItems: b,
11978
+ setActionViewTotalItems: w,
11952
11979
  limit: R,
11953
11980
  setLimit: A
11954
11981
  }), Z = ne(
@@ -11964,8 +11991,8 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
11964
11991
  ]
11965
11992
  );
11966
11993
  return !n || !t ? null : /* @__PURE__ */ D(re, { children: [
11967
- /* @__PURE__ */ i(wr, { title: t.title || t.name, children: /* @__PURE__ */ i(
11968
- cg,
11994
+ /* @__PURE__ */ i(br, { title: t.title || t.name, children: /* @__PURE__ */ i(
11995
+ dg,
11969
11996
  {
11970
11997
  refreshGraph: () => {
11971
11998
  u.current.refresh();
@@ -11986,7 +12013,7 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
11986
12013
  offset: P,
11987
12014
  isSearching: U,
11988
12015
  onSubmit: (Q) => {
11989
- L(!1), y == null || y(Q.params), w == null || w(!1);
12016
+ L(!1), y == null || y(Q.params), b == null || b(!1);
11990
12017
  },
11991
12018
  searchError: G,
11992
12019
  searchVisible: v,
@@ -12008,7 +12035,7 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
12008
12035
  }
12009
12036
  )
12010
12037
  ] });
12011
- }, mg = (e) => {
12038
+ }, pg = (e) => {
12012
12039
  const {
12013
12040
  visible: t,
12014
12041
  formRef: n,
@@ -12024,9 +12051,9 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
12024
12051
  setCurrentItemIndex: m
12025
12052
  } = e;
12026
12053
  return t ? /* @__PURE__ */ D(re, { children: [
12027
- /* @__PURE__ */ i(wr, { children: /* @__PURE__ */ i(rg, { toolbar: a == null ? void 0 : a.toolbar }) }),
12054
+ /* @__PURE__ */ i(br, { children: /* @__PURE__ */ i(og, { toolbar: a == null ? void 0 : a.toolbar }) }),
12028
12055
  /* @__PURE__ */ i(
12029
- wn,
12056
+ bn,
12030
12057
  {
12031
12058
  rootForm: !0,
12032
12059
  ref: n,
@@ -12044,7 +12071,7 @@ const { useToken: dg } = Ue, { Title: ug, Text: Kn } = $t, wr = ({
12044
12071
  )
12045
12072
  ] }) : null;
12046
12073
  };
12047
- function pg(e) {
12074
+ function hg(e) {
12048
12075
  const { onSearch: t, disabled: n = !1, searchText: r } = e, { t: o } = pe(), [s] = vt.useForm(), [a, l] = S(!1);
12049
12076
  function c(f) {
12050
12077
  t(f.search);
@@ -12085,7 +12112,7 @@ function pg(e) {
12085
12112
  ) })
12086
12113
  ] }) });
12087
12114
  }
12088
- function hg(e) {
12115
+ function gg(e) {
12089
12116
  var W;
12090
12117
  const {
12091
12118
  availableViews: t,
@@ -12105,15 +12132,15 @@ function hg(e) {
12105
12132
  setSearchVisible: g,
12106
12133
  setSearchTreeNameSearch: y,
12107
12134
  searchTreeNameSearch: v,
12108
- treeIsLoading: w,
12135
+ treeIsLoading: b,
12109
12136
  setPreviousView: C,
12110
12137
  previousView: x,
12111
- results: b,
12138
+ results: w,
12112
12139
  limit: F,
12113
12140
  totalItems: T,
12114
12141
  isActive: R,
12115
12142
  isInfiniteTree: A
12116
- } = te(dt), { parentContext: _ = {}, treeExpandable: I, toolbar: O } = e, $ = yr(
12143
+ } = te(ut), { parentContext: _ = {}, treeExpandable: I, toolbar: O } = e, $ = yr(
12117
12144
  gn.FEATURE_ADVANCED_EXPORT
12118
12145
  ), { t: E } = pe(), L = te(
12119
12146
  vn
@@ -12211,16 +12238,16 @@ function hg(e) {
12211
12238
  });
12212
12239
  }
12213
12240
  return /* @__PURE__ */ D(Qe, { wrap: !0, children: [
12214
- w && /* @__PURE__ */ D(re, { children: [
12241
+ b && /* @__PURE__ */ D(re, { children: [
12215
12242
  /* @__PURE__ */ i(Ge, {}),
12216
12243
  jt(),
12217
12244
  jt()
12218
12245
  ] }),
12219
12246
  I ? null : /* @__PURE__ */ D(re, { children: [
12220
12247
  /* @__PURE__ */ i(
12221
- pg,
12248
+ hg,
12222
12249
  {
12223
- disabled: l || a || w,
12250
+ disabled: l || a || b,
12224
12251
  searchText: v,
12225
12252
  onSearch: (j) => {
12226
12253
  var B;
@@ -12242,18 +12269,18 @@ function hg(e) {
12242
12269
  onClick: () => {
12243
12270
  g == null || g(!p);
12244
12271
  },
12245
- disabled: l || a || w,
12272
+ disabled: l || a || b,
12246
12273
  badgeNumber: h == null ? void 0 : h.length
12247
12274
  }
12248
12275
  ),
12249
12276
  jt(),
12250
- /* @__PURE__ */ i(Ma, { disabled: w }),
12277
+ /* @__PURE__ */ i(Ma, { disabled: b }),
12251
12278
  /* @__PURE__ */ i(
12252
12279
  at,
12253
12280
  {
12254
12281
  icon: /* @__PURE__ */ i(go, {}),
12255
12282
  tooltip: E("duplicate"),
12256
- disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || w,
12283
+ disabled: !o || (o == null ? void 0 : o.length) !== 1 || l || b,
12257
12284
  loading: l,
12258
12285
  onClick: Z
12259
12286
  }
@@ -12263,7 +12290,7 @@ function hg(e) {
12263
12290
  {
12264
12291
  icon: /* @__PURE__ */ i(po, {}),
12265
12292
  tooltip: E("delete"),
12266
- disabled: !(o && (o == null ? void 0 : o.length) > 0) || w,
12293
+ disabled: !(o && (o == null ? void 0 : o.length) > 0) || b,
12267
12294
  loading: a,
12268
12295
  onClick: Q
12269
12296
  }
@@ -12275,7 +12302,7 @@ function hg(e) {
12275
12302
  {
12276
12303
  icon: /* @__PURE__ */ i(Pn, {}),
12277
12304
  tooltip: E("showLogs"),
12278
- disabled: !(o && (o == null ? void 0 : o.length) > 0) || w,
12305
+ disabled: !(o && (o == null ? void 0 : o.length) > 0) || b,
12279
12306
  loading: !1,
12280
12307
  onClick: () => {
12281
12308
  La(u, o[0].id, E);
@@ -12287,7 +12314,7 @@ function hg(e) {
12287
12314
  {
12288
12315
  icon: /* @__PURE__ */ i(ur, {}),
12289
12316
  tooltip: E("refresh"),
12290
- disabled: l || a || w,
12317
+ disabled: l || a || b,
12291
12318
  loading: !1,
12292
12319
  onClick: () => {
12293
12320
  var j;
@@ -12306,7 +12333,7 @@ function hg(e) {
12306
12333
  C == null || C(n), r == null || r(j);
12307
12334
  },
12308
12335
  previousView: x,
12309
- disabled: w
12336
+ disabled: b
12310
12337
  }
12311
12338
  )
12312
12339
  ] }),
@@ -12316,7 +12343,7 @@ function hg(e) {
12316
12343
  {
12317
12344
  icon: /* @__PURE__ */ i(uo, {}),
12318
12345
  placement: "bottomRight",
12319
- disabled: !(o && (o == null ? void 0 : o.length) > 0) || w,
12346
+ disabled: !(o && (o == null ? void 0 : o.length) > 0) || b,
12320
12347
  onRetrieveData: async () => [
12321
12348
  { label: E("actions"), items: (O == null ? void 0 : O.action) || [] }
12322
12349
  ],
@@ -12330,7 +12357,7 @@ function hg(e) {
12330
12357
  {
12331
12358
  icon: /* @__PURE__ */ i(fo, {}),
12332
12359
  placement: "bottomRight",
12333
- disabled: !(o && (o == null ? void 0 : o.length) > 0) || w,
12360
+ disabled: !(o && (o == null ? void 0 : o.length) > 0) || b,
12334
12361
  onRetrieveData: async () => [{ label: E("reports"), items: (O == null ? void 0 : O.print) || [] }],
12335
12362
  onItemClick: (j) => {
12336
12363
  j && X({
@@ -12393,7 +12420,7 @@ function hg(e) {
12393
12420
  onItemClick: (j) => {
12394
12421
  if (j.id === "print_screen") {
12395
12422
  let B = (o == null ? void 0 : o.map((fe) => fe.id)) || [];
12396
- B.length === 0 && (B = (b == null ? void 0 : b.map((fe) => fe.id)) || []), X({
12423
+ B.length === 0 && (B = (w == null ? void 0 : w.map((fe) => fe.id)) || []), X({
12397
12424
  id: -1,
12398
12425
  model: u,
12399
12426
  report_name: "printscreen.list",
@@ -12407,11 +12434,11 @@ function hg(e) {
12407
12434
  }
12408
12435
  G(!0);
12409
12436
  },
12410
- disabled: l || a || w || J
12437
+ disabled: l || a || b || J
12411
12438
  }
12412
12439
  ),
12413
12440
  /* @__PURE__ */ i(
12414
- Wh,
12441
+ Gh,
12415
12442
  {
12416
12443
  visible: U,
12417
12444
  onClose: () => G(!1),
@@ -12423,7 +12450,7 @@ function hg(e) {
12423
12450
  limit: F,
12424
12451
  totalRegisters: T || 0,
12425
12452
  selectedRegistersToExport: o,
12426
- visibleRegisters: (b == null ? void 0 : b.length) || 0,
12453
+ visibleRegisters: (w == null ? void 0 : w.length) || 0,
12427
12454
  context: _
12428
12455
  }
12429
12456
  )
@@ -12433,7 +12460,7 @@ function hg(e) {
12433
12460
  function jt() {
12434
12461
  return /* @__PURE__ */ i("div", { className: "inline-block w-2" });
12435
12462
  }
12436
- const gg = (e) => {
12463
+ const yg = (e) => {
12437
12464
  const {
12438
12465
  visible: t,
12439
12466
  searchTreeRef: n,
@@ -12450,16 +12477,16 @@ const gg = (e) => {
12450
12477
  searchTreeNameSearch: h
12451
12478
  } = e, p = Y(t), g = ne(() => !(a != null && a.arch) || a.isExpandable ? !1 : Fs(a.arch, "infinite") === "1", [a]);
12452
12479
  se(() => {
12453
- w == null || w(g);
12480
+ b == null || b(g);
12454
12481
  }, [g]);
12455
12482
  const {
12456
12483
  currentView: y,
12457
12484
  setPreviousView: v,
12458
- setIsInfiniteTree: w,
12485
+ setIsInfiniteTree: b,
12459
12486
  setSelectedRowItems: C
12460
- } = te(dt), x = V(
12461
- (b) => {
12462
- const { id: F } = b;
12487
+ } = te(ut), x = V(
12488
+ (w) => {
12489
+ const { id: F } = w;
12463
12490
  f(F);
12464
12491
  const T = u.findIndex((A) => A.id === F);
12465
12492
  v == null || v(y), c(T);
@@ -12481,8 +12508,8 @@ const gg = (e) => {
12481
12508
  return se(() => {
12482
12509
  p.current && !t && g && (C == null || C([])), p.current = t;
12483
12510
  }, [t, g]), t ? /* @__PURE__ */ D(Vn, { children: [
12484
- /* @__PURE__ */ i(wr, { showSummary: !g, children: /* @__PURE__ */ i(
12485
- hg,
12511
+ /* @__PURE__ */ i(br, { showSummary: !g, children: /* @__PURE__ */ i(
12512
+ gg,
12486
12513
  {
12487
12514
  toolbar: a == null ? void 0 : a.toolbar,
12488
12515
  parentContext: o,
@@ -12517,7 +12544,7 @@ const gg = (e) => {
12517
12544
  }
12518
12545
  )
12519
12546
  ] }) : null;
12520
- }, Lo = ht.createContext(null), yg = (e) => {
12547
+ }, Lo = ht.createContext(null), vg = (e) => {
12521
12548
  const [t, n] = S(!1), [r, o] = S(!1), { children: s, dashboardRef: a, openAction: l } = e;
12522
12549
  return /* @__PURE__ */ i(
12523
12550
  Lo.Provider,
@@ -12534,7 +12561,7 @@ const gg = (e) => {
12534
12561
  }
12535
12562
  );
12536
12563
  };
12537
- function vg() {
12564
+ function bg() {
12538
12565
  const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = te(Lo), { t: o } = pe();
12539
12566
  return /* @__PURE__ */ D(Qe, { wrap: !0, children: [
12540
12567
  /* @__PURE__ */ i(
@@ -12585,21 +12612,21 @@ function vg() {
12585
12612
  function wg() {
12586
12613
  return /* @__PURE__ */ i("div", { className: "inline-block w-2" });
12587
12614
  }
12588
- const bg = (e) => {
12615
+ const Sg = (e) => {
12589
12616
  const { dashboardData: t, visible: n } = e, r = Y(), o = te(
12590
12617
  Tt
12591
12618
  ), { openShortcut: s } = o || {};
12592
12619
  return !t || !n ? null : /* @__PURE__ */ D(
12593
- yg,
12620
+ vg,
12594
12621
  {
12595
12622
  dashboardRef: r,
12596
12623
  openAction: (a) => {
12597
12624
  s(a);
12598
12625
  },
12599
12626
  children: [
12600
- /* @__PURE__ */ i(wr, { children: /* @__PURE__ */ i(vg, {}) }),
12627
+ /* @__PURE__ */ i(br, { children: /* @__PURE__ */ i(bg, {}) }),
12601
12628
  /* @__PURE__ */ i(
12602
- Rg,
12629
+ _g,
12603
12630
  {
12604
12631
  ref: r,
12605
12632
  model: t.model,
@@ -12612,7 +12639,7 @@ const bg = (e) => {
12612
12639
  }
12613
12640
  );
12614
12641
  };
12615
- async function Sg(e) {
12642
+ async function Cg(e) {
12616
12643
  const t = await Promise.all(
12617
12644
  e.map(async (r) => {
12618
12645
  try {
@@ -12627,7 +12654,7 @@ async function Sg(e) {
12627
12654
  info: t[o]
12628
12655
  })).filter((r) => r.info !== null);
12629
12656
  }
12630
- function Cg(e, t) {
12657
+ function xg(e, t) {
12631
12658
  const {
12632
12659
  domain: n,
12633
12660
  model: r,
@@ -12644,14 +12671,14 @@ function Cg(e, t) {
12644
12671
  action_type: p,
12645
12672
  treeExpandable: g = !1,
12646
12673
  limit: y
12647
- } = e, [v, w] = S(), [C, x] = S([]), [b, F] = S(!0), T = m || void 0, [R, A] = S(
12674
+ } = e, [v, b] = S(), [C, x] = S([]), [w, F] = S(!0), T = m || void 0, [R, A] = S(
12648
12675
  T
12649
12676
  ), [_, I] = S([]), [O, $] = S(), [E, L] = S([]), [k, U] = S(), [G, P] = S(0), [J, Z] = S(!1), [Q, M] = S(!1), [ue, X] = S(), { t: W } = pe(), j = Y(), B = Y(), fe = te(
12650
12677
  Tt
12651
12678
  ), {
12652
12679
  setCurrentView: oe,
12653
12680
  setCurrentId: z,
12654
- tabs: be,
12681
+ tabs: we,
12655
12682
  activeKey: de,
12656
12683
  openAction: Ee,
12657
12684
  onRemoveTab: me
@@ -12662,14 +12689,14 @@ function Cg(e, t) {
12662
12689
  le();
12663
12690
  },
12664
12691
  { enableOnFormTags: !0, preventDefault: !0 },
12665
- [de, be, v, O, E]
12692
+ [de, we, v, O, E]
12666
12693
  );
12667
12694
  function De(q) {
12668
12695
  A(q), z == null || z(q);
12669
12696
  }
12670
12697
  const $e = V(
12671
12698
  (q) => {
12672
- w(q);
12699
+ b(q);
12673
12700
  const Ie = { action_id: h, action_type: p };
12674
12701
  oe == null || oe({ ...q, extra: Ie });
12675
12702
  },
@@ -12695,15 +12722,15 @@ function Cg(e, t) {
12695
12722
  viewTuple: Se
12696
12723
  });
12697
12724
  }
12698
- const ke = await Sg(Ie);
12725
+ const ke = await Cg(Ie);
12699
12726
  for (const Se of ke) {
12700
12727
  if (!Se)
12701
12728
  continue;
12702
12729
  const [, Ce] = Se.viewTuple, ge = Se.info;
12703
12730
  switch (Ce) {
12704
12731
  case "dashboard": {
12705
- const Me = s.find((we) => {
12706
- const [, ee] = we;
12732
+ const Me = s.find((be) => {
12733
+ const [, ee] = be;
12707
12734
  return ee === "form";
12708
12735
  });
12709
12736
  let Je;
@@ -12779,7 +12806,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12779
12806
  const q = { action_id: h, action_type: p };
12780
12807
  oe == null || oe({ ...v, extra: q });
12781
12808
  }
12782
- }, [be, de]);
12809
+ }, [we, de]);
12783
12810
  async function Fe() {
12784
12811
  return v && v.type === "form" ? await j.current.cancelUnsavedChanges() : !0;
12785
12812
  }
@@ -12838,7 +12865,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12838
12865
  switch (q.type) {
12839
12866
  case "form":
12840
12867
  return /* @__PURE__ */ i(
12841
- mg,
12868
+ pg,
12842
12869
  {
12843
12870
  formRef: j,
12844
12871
  currentId: R,
@@ -12857,7 +12884,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12857
12884
  );
12858
12885
  case "tree":
12859
12886
  return /* @__PURE__ */ i(
12860
- gg,
12887
+ yg,
12861
12888
  {
12862
12889
  visible: v.type === q.type && v.view_id === q.view_id,
12863
12890
  limit: y,
@@ -12878,7 +12905,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12878
12905
  );
12879
12906
  case "graph":
12880
12907
  return /* @__PURE__ */ i(
12881
- fg,
12908
+ mg,
12882
12909
  {
12883
12910
  visible: v.type === q.type && v.view_id === q.view_id,
12884
12911
  viewData: q,
@@ -12895,7 +12922,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12895
12922
  );
12896
12923
  case "dashboard":
12897
12924
  return /* @__PURE__ */ i(
12898
- bg,
12925
+ Sg,
12899
12926
  {
12900
12927
  dashboardData: q,
12901
12928
  visible: v.type === q.type && v.view_id === q.view_id
@@ -12916,7 +12943,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12916
12943
  $e(q);
12917
12944
  }
12918
12945
  }
12919
- return b ? /* @__PURE__ */ i(Ge, {}) : v ? /* @__PURE__ */ D(
12946
+ return w ? /* @__PURE__ */ i(Ge, {}) : v ? /* @__PURE__ */ D(
12920
12947
  Hd,
12921
12948
  {
12922
12949
  title: a,
@@ -12947,7 +12974,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12947
12974
  children: [
12948
12975
  ce(),
12949
12976
  /* @__PURE__ */ i(
12950
- ag,
12977
+ lg,
12951
12978
  {
12952
12979
  visible: J,
12953
12980
  onIdSubmitted: ye,
@@ -12961,8 +12988,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12961
12988
  }
12962
12989
  ) : null;
12963
12990
  }
12964
- const Ha = Ct(Cg);
12965
- const xg = fc(mc), Ig = (e) => {
12991
+ const Ha = Ct(xg);
12992
+ const Ig = fc(mc), Tg = (e) => {
12966
12993
  const { children: t = [], onPositionItemsChanged: n } = e, r = ht.Children.map(
12967
12994
  t,
12968
12995
  (o) => {
@@ -12971,7 +12998,7 @@ const xg = fc(mc), Ig = (e) => {
12971
12998
  }
12972
12999
  );
12973
13000
  return /* @__PURE__ */ i(
12974
- xg,
13001
+ Ig,
12975
13002
  {
12976
13003
  className: "layout",
12977
13004
  cols: { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 },
@@ -12992,7 +13019,7 @@ const xg = fc(mc), Ig = (e) => {
12992
13019
  }
12993
13020
  );
12994
13021
  };
12995
- function Tg(e) {
13022
+ function Ag(e) {
12996
13023
  const {
12997
13024
  action: t,
12998
13025
  model: n,
@@ -13001,11 +13028,11 @@ function Tg(e) {
13001
13028
  domain: s = [],
13002
13029
  visible: a = !0,
13003
13030
  parentContext: l = {}
13004
- } = e, [c, u] = S(!1), [f, d] = S(!1), [m, h] = S(), [p, g] = S(), [y, v] = S(), [w, C] = S(1), [x, b] = S(0), F = Y(kt), T = Y([]), [R, A] = S(0), [_, I] = S([]), [O, $] = S(void 0), [E, L] = S(), [k, U] = S(), [G, P] = S(), [J, Z] = S(!1), Q = Y([]), M = (z) => {
13005
- Z(!0), C(z), b((z - 1) * F.current);
13031
+ } = e, [c, u] = S(!1), [f, d] = S(!1), [m, h] = S(), [p, g] = S(), [y, v] = S(), [b, C] = S(1), [x, w] = S(0), F = Y(kt), T = Y([]), [R, A] = S(0), [_, I] = S([]), [O, $] = S(void 0), [E, L] = S(), [k, U] = S(), [G, P] = S(), [J, Z] = S(!1), Q = Y([]), M = (z) => {
13032
+ Z(!0), C(z), w((z - 1) * F.current);
13006
13033
  }, ue = async () => {
13007
- const z = Q.current.length > 0 ? Q.current : s, be = un(T.current, z), { colors: de } = Vt(p), { totalItems: Ee, results: me, attrsEvaluated: De } = await N.getHandler().searchForTree({
13008
- params: be,
13034
+ const z = Q.current.length > 0 ? Q.current : s, we = un(T.current, z), { colors: de } = Vt(p), { totalItems: Ee, results: me, attrsEvaluated: De } = await N.getHandler().searchForTree({
13035
+ params: we,
13009
13036
  limit: F.current,
13010
13037
  offset: x,
13011
13038
  model: m,
@@ -13031,13 +13058,13 @@ function Tg(e) {
13031
13058
  };
13032
13059
  se(() => {
13033
13060
  f && a && X();
13034
- }, [w, x, f, a]);
13061
+ }, [b, x, f, a]);
13035
13062
  const W = async (z) => {
13036
13063
  d(!1), u(!0), P(void 0);
13037
13064
  try {
13038
13065
  z === "action" ? await j() : await B(), d(!0);
13039
- } catch (be) {
13040
- P(be);
13066
+ } catch (we) {
13067
+ P(we);
13041
13068
  } finally {
13042
13069
  u(!1);
13043
13070
  }
@@ -13055,21 +13082,21 @@ function Tg(e) {
13055
13082
  context: l
13056
13083
  });
13057
13084
  v(z);
13058
- const be = await N.getHandler().getView({
13085
+ const we = await N.getHandler().getView({
13059
13086
  model: n,
13060
13087
  type: "tree",
13061
13088
  id: r,
13062
13089
  context: l
13063
13090
  });
13064
- g(be);
13091
+ g(we);
13065
13092
  };
13066
13093
  se(() => {
13067
13094
  t ? W("action") : n && W("model");
13068
13095
  }, [t, n]);
13069
13096
  const fe = (z) => {
13070
- const { id: be } = z;
13097
+ const { id: we } = z;
13071
13098
  o({
13072
- id: be,
13099
+ id: we,
13073
13100
  model: m,
13074
13101
  treeView: p
13075
13102
  });
@@ -13081,7 +13108,7 @@ function Tg(e) {
13081
13108
  showPagination: !1,
13082
13109
  total: R,
13083
13110
  limit: F.current,
13084
- page: w,
13111
+ page: b,
13085
13112
  treeView: p,
13086
13113
  results: _,
13087
13114
  onRequestPageChange: M,
@@ -13091,12 +13118,12 @@ function Tg(e) {
13091
13118
  sorter: E,
13092
13119
  onChangeSort: (z) => {
13093
13120
  L == null || L(z);
13094
- const be = sn({
13121
+ const we = sn({
13095
13122
  resultsToSort: _,
13096
13123
  sorter: z,
13097
13124
  fields: { ...p.fields, ...y.fields }
13098
13125
  });
13099
- I(be);
13126
+ I(we);
13100
13127
  },
13101
13128
  context: l
13102
13129
  }
@@ -13104,7 +13131,7 @@ function Tg(e) {
13104
13131
  ] });
13105
13132
  return G ? /* @__PURE__ */ i(ot, { className: "mt-10", message: G, type: "error", banner: !0 }) : c ? /* @__PURE__ */ i(Ge, { style: { padding: "2rem" } }) : oe();
13106
13133
  }
13107
- const Ag = wt(Tg), Fg = (e) => {
13134
+ const Fg = bt(Ag), Og = (e) => {
13108
13135
  const { model: t } = e, [n, r] = S();
13109
13136
  se(() => {
13110
13137
  o();
@@ -13117,27 +13144,27 @@ const Ag = wt(Tg), Fg = (e) => {
13117
13144
  });
13118
13145
  s.length > 0 && r(s[0].id);
13119
13146
  }
13120
- return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(wn, { ...e, model: t, id: n, readOnly: !0 }) });
13147
+ return /* @__PURE__ */ i("div", { style: { padding: "0.5rem", overflowY: "scroll" }, children: /* @__PURE__ */ i(bn, { ...e, model: t, id: n, readOnly: !0 }) });
13121
13148
  }, $r = "line_ids";
13122
- function Og(e, t) {
13149
+ function Rg(e, t) {
13123
13150
  const { model: n, context: r = {}, id: o, configAction: s } = e, [a, l] = S([]), [c, u] = S(!1), [f, d] = S(), {
13124
13151
  setIsLoading: m,
13125
13152
  openAction: h,
13126
13153
  moveItemsEnabled: p
13127
- } = te(Lo), g = Y(), y = Y(), [v] = Ye(N.getHandler().getView), [w] = Ye(
13154
+ } = te(Lo), g = Y(), y = Y(), [v] = Ye(N.getHandler().getView), [b] = Ye(
13128
13155
  N.getHandler().readObjects
13129
13156
  ), [C] = Ye(N.getHandler().update), x = yr(
13130
13157
  gn.FEATURE_READFORVIEW
13131
13158
  );
13132
13159
  se(() => {
13133
- b();
13160
+ w();
13134
13161
  }, [n, o, r]), xt(t, () => ({
13135
13162
  refresh: () => {
13136
- b();
13163
+ w();
13137
13164
  },
13138
13165
  configDashboard: I
13139
13166
  }));
13140
- async function b() {
13167
+ async function w() {
13141
13168
  u(!0), m(!0), d(void 0);
13142
13169
  try {
13143
13170
  const O = await F(), $ = await R(O), E = O.fields[$r].relation, L = $[$r].items;
@@ -13184,7 +13211,7 @@ function Og(e, t) {
13184
13211
  return L;
13185
13212
  }
13186
13213
  async function R(O) {
13187
- return (await w({
13214
+ return (await b({
13188
13215
  model: n,
13189
13216
  ids: [o],
13190
13217
  fields: O.fields,
@@ -13251,7 +13278,7 @@ function Og(e, t) {
13251
13278
  async function I() {
13252
13279
  h(s);
13253
13280
  }
13254
- return c ? /* @__PURE__ */ i(It, {}) : f ? /* @__PURE__ */ i(ot, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Ig, { onPositionItemsChanged: _, children: a.map((O, $) => {
13281
+ return c ? /* @__PURE__ */ i(It, {}) : f ? /* @__PURE__ */ i(ot, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Tg, { onPositionItemsChanged: _, children: a.map((O, $) => {
13255
13282
  const { actionData: E, values: L } = O, { position: k, id: U } = L, {
13256
13283
  actionId: G,
13257
13284
  actionType: P,
@@ -13288,10 +13315,10 @@ function Og(e, t) {
13288
13315
  U
13289
13316
  );
13290
13317
  } else if ((j == null ? void 0 : j.type) === "form")
13291
- oe = /* @__PURE__ */ i(Fg, { model: ue, actionDomain: W }, U);
13318
+ oe = /* @__PURE__ */ i(Og, { model: ue, actionDomain: W }, U);
13292
13319
  else if ((j == null ? void 0 : j.type) === "tree")
13293
13320
  oe = /* @__PURE__ */ i(
13294
- Ag,
13321
+ Fg,
13295
13322
  {
13296
13323
  model: ue,
13297
13324
  domain: W,
@@ -13346,12 +13373,12 @@ function Og(e, t) {
13346
13373
  );
13347
13374
  }
13348
13375
  let z;
13349
- const be = M.find((Ee) => {
13376
+ const we = M.find((Ee) => {
13350
13377
  const [, me] = Ee;
13351
13378
  return me === "tree";
13352
13379
  });
13353
- if (be) {
13354
- const [Ee, me] = be, {
13380
+ if (we) {
13381
+ const [Ee, me] = we, {
13355
13382
  actionId: De,
13356
13383
  actionType: $e,
13357
13384
  title: qe,
@@ -13386,11 +13413,11 @@ function Og(e, t) {
13386
13413
  );
13387
13414
  }) });
13388
13415
  }
13389
- const Rg = Ct(Og), _g = (e) => {
13416
+ const _g = Ct(Rg), Eg = (e) => {
13390
13417
  const { ooui: t } = e;
13391
- return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Eg, { ooui: t }) });
13392
- }, Eg = (e) => {
13393
- const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, s = o.filter((R) => R.operation !== "pendingRemove").map((R) => R.id), [a, l] = S([]), [c, u] = S(), [f, d] = S(!1), { relation: m, context: h, readOnly: p, field: g, columns: y } = n, v = te(He), { getContext: w } = v || {};
13418
+ return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Dg, { ooui: t }) });
13419
+ }, Dg = (e) => {
13420
+ const { value: t, ooui: n, onChange: r } = e, { items: o = [] } = t || {}, s = o.filter((R) => R.operation !== "pendingRemove").map((R) => R.id), [a, l] = S([]), [c, u] = S(), [f, d] = S(!1), { relation: m, context: h, readOnly: p, field: g, columns: y } = n, v = te(He), { getContext: b } = v || {};
13394
13421
  Rt(() => {
13395
13422
  x();
13396
13423
  }, [o]);
@@ -13419,7 +13446,7 @@ const Rg = Ct(Og), _g = (e) => {
13419
13446
  model: m,
13420
13447
  params: R,
13421
13448
  fieldsToRetrieve: [g],
13422
- context: { ...w == null ? void 0 : w(), ...h }
13449
+ context: { ...b == null ? void 0 : b(), ...h }
13423
13450
  })).map((I) => {
13424
13451
  const O = I[g];
13425
13452
  let $ = O;
@@ -13434,7 +13461,7 @@ const Rg = Ct(Og), _g = (e) => {
13434
13461
  if (c)
13435
13462
  return /* @__PURE__ */ i(ot, { className: "mt-10", message: c, type: "error", banner: !0 });
13436
13463
  }
13437
- const b = () => {
13464
+ const w = () => {
13438
13465
  T(a.map((R) => R.value));
13439
13466
  }, F = () => {
13440
13467
  T([]);
@@ -13462,7 +13489,7 @@ const Rg = Ct(Og), _g = (e) => {
13462
13489
  /* @__PURE__ */ i(
13463
13490
  Be,
13464
13491
  {
13465
- onClick: b,
13492
+ onClick: w,
13466
13493
  disabled: s.length == a.length,
13467
13494
  children: "Check all"
13468
13495
  }
@@ -13470,7 +13497,7 @@ const Rg = Ct(Og), _g = (e) => {
13470
13497
  /* @__PURE__ */ i(Be, { onClick: F, disabled: s.length === 0, children: "Uncheck all" })
13471
13498
  ] })
13472
13499
  ] }) });
13473
- }, Dg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vg, { ...e }) }), Vg = (e) => {
13500
+ }, Vg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Pg, { ...e }) }), Pg = (e) => {
13474
13501
  const { value: t, ooui: n } = e;
13475
13502
  return /* @__PURE__ */ i(
13476
13503
  "div",
@@ -13489,25 +13516,25 @@ const Rg = Ct(Og), _g = (e) => {
13489
13516
  )
13490
13517
  }
13491
13518
  );
13492
- }, Pg = (e) => {
13493
- const { ooui: t } = e, { required: n } = t;
13494
- return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(kg, { ...e }) });
13495
13519
  }, kg = (e) => {
13520
+ const { ooui: t } = e, { required: n } = t;
13521
+ return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i($g, { ...e }) });
13522
+ }, $g = (e) => {
13496
13523
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, direction: a } = t, l = Array.from(o.entries()), c = l && l.length && l.map((u) => {
13497
13524
  const [f, d] = u;
13498
13525
  return /* @__PURE__ */ i(Uo, { value: f, children: d }, f);
13499
13526
  });
13500
13527
  return /* @__PURE__ */ i(Uo.Group, { disabled: s, onChange: n, value: r, children: /* @__PURE__ */ i(Qe, { direction: a, children: c }) });
13501
- }, $g = (e) => {
13502
- const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
13503
- return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Ng, { id: n, readOnly: r, required: o }) });
13504
13528
  }, Ng = (e) => {
13529
+ const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
13530
+ return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Mg, { id: n, readOnly: r, required: o }) });
13531
+ }, Mg = (e) => {
13505
13532
  const { required: t, readOnly: n, ...r } = e;
13506
13533
  return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(al, { disabled: n, ...r }) });
13507
- }, Mg = (e) => {
13508
- const { ooui: t } = e, { required: n } = t;
13509
- return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Lg, { ...e }) });
13510
13534
  }, Lg = (e) => {
13535
+ const { ooui: t } = e, { required: n } = t;
13536
+ return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(jg, { ...e }) });
13537
+ }, jg = (e) => {
13511
13538
  const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: s } = t, a = te(He), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
13512
13539
  let u = "process", f = "";
13513
13540
  return o && (f = a.getFieldValue(o), f && (u = "error")), s && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(Wo, { current: c, status: u, children: l.map((d, m) => /* @__PURE__ */ i(
@@ -13517,7 +13544,7 @@ const Rg = Ct(Og), _g = (e) => {
13517
13544
  description: m === c && u === "error" ? f : null
13518
13545
  }
13519
13546
  )) });
13520
- }, jg = (e) => {
13547
+ }, Bg = (e) => {
13521
13548
  const {
13522
13549
  token: {
13523
13550
  colorPrimaryBg: t,
@@ -13580,7 +13607,7 @@ const Rg = Ct(Og), _g = (e) => {
13580
13607
  /* @__PURE__ */ i("div", { style: f }),
13581
13608
  /* @__PURE__ */ i("div", { style: d(h.active) })
13582
13609
  ] }, p)) });
13583
- }, Bg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(jg, {}) }), Hg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ug, { ...e }) }), Ug = (e) => {
13610
+ }, Hg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Bg, {}) }), Ug = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Wg, { ...e }) }), Wg = (e) => {
13584
13611
  const { ooui: t, value: n, onChange: r } = e, { lang: o, height: s, readOnly: a } = t, l = te(He), { elementHasLostFocus: c } = l || {}, u = V(
13585
13612
  (d) => {
13586
13613
  c && d.onDidBlurEditorWidget(() => c());
@@ -13608,13 +13635,13 @@ const Rg = Ct(Og), _g = (e) => {
13608
13635
  onChange: r
13609
13636
  }
13610
13637
  );
13611
- }, { Meta: Wg } = ro, { Text: Gg } = $t, Kg = ({ email: e, size: t = 40, theme: n = "" }) => {
13638
+ }, { Meta: Gg } = ro, { Text: Kg } = $t, qg = ({ email: e, size: t = 40, theme: n = "" }) => {
13612
13639
  const r = `https://www.gravatar.com/avatar/${uc(
13613
13640
  e
13614
13641
  )}?s=${t}&d=${n}`;
13615
13642
  return /* @__PURE__ */ i(Yi, { src: r, size: t });
13616
13643
  };
13617
- function qg({ text: e }) {
13644
+ function Yg({ text: e }) {
13618
13645
  const t = e.split(`
13619
13646
  `);
13620
13647
  return /* @__PURE__ */ i("div", { children: t.map((n, r) => /* @__PURE__ */ D(Vn, { children: [
@@ -13622,24 +13649,24 @@ function qg({ text: e }) {
13622
13649
  r !== t.length - 1 && /* @__PURE__ */ i("br", {})
13623
13650
  ] }, r)) });
13624
13651
  }
13625
- const Yg = (e) => {
13652
+ const zg = (e) => {
13626
13653
  const { data: t, style: n } = e, { t: r } = pe();
13627
13654
  return /* @__PURE__ */ D(ro, { style: { ...n, textAlign: "start" }, children: [
13628
13655
  /* @__PURE__ */ i(
13629
- Wg,
13656
+ Gg,
13630
13657
  {
13631
- avatar: /* @__PURE__ */ i(Kg, { email: t.email, theme: "mp" }),
13658
+ avatar: /* @__PURE__ */ i(qg, { email: t.email, theme: "mp" }),
13632
13659
  title: t.author,
13633
13660
  description: /* @__PURE__ */ D(Qe, { direction: "horizontal", children: [
13634
- /* @__PURE__ */ i("span", { title: t.date, children: ct(t.date).fromNow() }),
13661
+ /* @__PURE__ */ i("span", { title: t.date, children: dt(t.date).fromNow() }),
13635
13662
  t.isAuthor && /* @__PURE__ */ i(oo, { color: "blue", children: r("author") })
13636
13663
  ] }),
13637
13664
  style: { marginBottom: "5px" }
13638
13665
  }
13639
13666
  ),
13640
- /* @__PURE__ */ i(Gg, { children: /* @__PURE__ */ i(qg, { text: t.text }) })
13667
+ /* @__PURE__ */ i(Kg, { children: /* @__PURE__ */ i(Yg, { text: t.text }) })
13641
13668
  ] }, t.id);
13642
- }, zg = (e) => {
13669
+ }, Jg = (e) => {
13643
13670
  const { value: t, ooui: n } = e, r = (t || []).map((o) => {
13644
13671
  if (o.type === "action")
13645
13672
  return {
@@ -13650,7 +13677,7 @@ const Yg = (e) => {
13650
13677
  color: "gray",
13651
13678
  position: o.event.isSender ? "left" : "right",
13652
13679
  label: o.event.date,
13653
- children: /* @__PURE__ */ i(Yg, { data: o.event })
13680
+ children: /* @__PURE__ */ i(zg, { data: o.event })
13654
13681
  };
13655
13682
  });
13656
13683
  return /* @__PURE__ */ i(
@@ -13667,7 +13694,7 @@ const Yg = (e) => {
13667
13694
  }
13668
13695
  }
13669
13696
  );
13670
- }, Jg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(zg, { ooui: e.ooui }) }), Qg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Nl, {}) }), Xg = (e) => {
13697
+ }, Qg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Jg, { ooui: e.ooui }) }), Xg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Nl, {}) }), Zg = (e) => {
13671
13698
  const { ooui: t } = e, n = te(He);
13672
13699
  let { title: r, text: o, alertType: s, icon: a, buttons: l } = t;
13673
13700
  if (t.fieldType && t.id) {
@@ -13688,7 +13715,7 @@ const Yg = (e) => {
13688
13715
  return d && /* @__PURE__ */ i(d, {});
13689
13716
  }
13690
13717
  }
13691
- const u = l.map((f) => /* @__PURE__ */ i(wo, { ooui: f }, f.id));
13718
+ const u = l.map((f) => /* @__PURE__ */ i(bo, { ooui: f }, f.id));
13692
13719
  return /* @__PURE__ */ i(
13693
13720
  ot,
13694
13721
  {
@@ -13700,9 +13727,9 @@ const Yg = (e) => {
13700
13727
  icon: c(a)
13701
13728
  }
13702
13729
  );
13703
- }, { defaultAlgorithm: Zg, defaultSeed: ey } = Ue, Gi = Zg(ey), ty = (e) => {
13730
+ }, { defaultAlgorithm: ey, defaultSeed: ty } = Ue, Gi = ey(ty), ny = (e) => {
13704
13731
  const { ooui: t, responsiveBehaviour: n = !1 } = e;
13705
- return /* @__PURE__ */ i(ny, { autoplay: t.autoPlay, dots: !0, autoplaySpeed: 5e3, children: t.items.map((r, o) => /* @__PURE__ */ i(
13732
+ return /* @__PURE__ */ i(ry, { autoplay: t.autoPlay, dots: !0, autoplaySpeed: 5e3, children: t.items.map((r, o) => /* @__PURE__ */ i(
13706
13733
  Fo,
13707
13734
  {
13708
13735
  container: r.container,
@@ -13710,7 +13737,7 @@ const Yg = (e) => {
13710
13737
  },
13711
13738
  o
13712
13739
  )) });
13713
- }, ny = mt(ll)`
13740
+ }, ry = ct(ll)`
13714
13741
  .slick-dots li button {
13715
13742
  background-color: ${Gi.colorPrimary};
13716
13743
  }
@@ -13720,7 +13747,7 @@ const Yg = (e) => {
13720
13747
  .slick-dots-bottom {
13721
13748
  bottom: -15px;
13722
13749
  }
13723
- `, ry = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(oy, { ...e }) }), oy = (e) => {
13750
+ `, oy = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(iy, { ...e }) }), iy = (e) => {
13724
13751
  const { ooui: t, value: n, onChange: r } = e;
13725
13752
  return /* @__PURE__ */ i(
13726
13753
  zi,
@@ -13734,18 +13761,18 @@ const Yg = (e) => {
13734
13761
  value: n
13735
13762
  }
13736
13763
  );
13737
- }, { Content: iy } = Ji, { Title: sy } = $t;
13738
- function ay() {
13764
+ }, { Content: sy } = Ji, { Title: ay } = $t;
13765
+ function ly() {
13739
13766
  const { t: e } = pe();
13740
- return /* @__PURE__ */ i(iy, { className: "m-5 select-none", children: /* @__PURE__ */ i(sy, { level: 5, children: e("welcome") }) });
13767
+ return /* @__PURE__ */ i(sy, { className: "m-5 select-none", children: /* @__PURE__ */ i(ay, { level: 5, children: e("welcome") }) });
13741
13768
  }
13742
- function ly(e, t) {
13769
+ function cy(e, t) {
13743
13770
  const { children: n } = e, [r, o] = S("welcome"), { t: s } = pe(), { globalValues: a, rootContext: l } = Io(), [c, u] = S([
13744
13771
  {
13745
13772
  title: s("welcome"),
13746
13773
  key: "welcome",
13747
13774
  closable: !0,
13748
- content: /* @__PURE__ */ i(ay, {})
13775
+ content: /* @__PURE__ */ i(ly, {})
13749
13776
  }
13750
13777
  ]), f = Y(/* @__PURE__ */ new Map()), d = Y();
13751
13778
  xt(t, () => ({
@@ -13754,20 +13781,20 @@ function ly(e, t) {
13754
13781
  }));
13755
13782
  function m(x) {
13756
13783
  if (x === r) {
13757
- const b = c.findIndex((F) => F.key === x);
13758
- c[b - 1] && o(c[b - 1].key), c[b + 1] && o(c[b + 1].key);
13784
+ const w = c.findIndex((F) => F.key === x);
13785
+ c[w - 1] && o(c[w - 1].key), c[w + 1] && o(c[w + 1].key);
13759
13786
  }
13760
- u(c.filter((b) => b.key !== x)), f.current.delete(x);
13787
+ u(c.filter((w) => w.key !== x)), f.current.delete(x);
13761
13788
  }
13762
13789
  function h({
13763
13790
  tabKey: x,
13764
- canWeClose: b
13791
+ canWeClose: w
13765
13792
  }) {
13766
- f.current.set(x, b);
13793
+ f.current.set(x, w);
13767
13794
  }
13768
13795
  async function p({
13769
13796
  action: x,
13770
- values: b,
13797
+ values: w,
13771
13798
  forced_values: F,
13772
13799
  initialViewType: T,
13773
13800
  res_id: R,
@@ -13833,7 +13860,7 @@ function ly(e, t) {
13833
13860
  initialView: ue,
13834
13861
  action_type: I,
13835
13862
  action_id: $,
13836
- values: b,
13863
+ values: w,
13837
13864
  forced_values: F,
13838
13865
  res_id: R,
13839
13866
  treeExpandable: Q,
@@ -13842,7 +13869,7 @@ function ly(e, t) {
13842
13869
  }
13843
13870
  function g({
13844
13871
  title: x,
13845
- content: b,
13872
+ content: w,
13846
13873
  key: F,
13847
13874
  action: T
13848
13875
  }) {
@@ -13853,14 +13880,14 @@ function ly(e, t) {
13853
13880
  title: x,
13854
13881
  key: F,
13855
13882
  closable: !0,
13856
- content: b,
13883
+ content: w,
13857
13884
  action: T
13858
13885
  }
13859
13886
  ]), o(F);
13860
13887
  }
13861
13888
  async function y({
13862
13889
  relateData: x,
13863
- fields: b,
13890
+ fields: w,
13864
13891
  values: F,
13865
13892
  action_id: T,
13866
13893
  action_type: R
@@ -13876,14 +13903,14 @@ function ly(e, t) {
13876
13903
  } = x, [k, U] = O[0], G = { id: k, type: U }, P = Ht({
13877
13904
  context: _,
13878
13905
  values: { ...F, ...a },
13879
- fields: b
13906
+ fields: w
13880
13907
  }), J = I ? await N.getHandler().evalDomain({
13881
13908
  domain: I,
13882
13909
  values: Yt({
13883
- fields: b,
13910
+ fields: w,
13884
13911
  values: { ...F, ...a }
13885
13912
  }),
13886
- fields: b,
13913
+ fields: w,
13887
13914
  context: { ...l, ...P }
13888
13915
  }) : [];
13889
13916
  C({
@@ -13901,14 +13928,14 @@ function ly(e, t) {
13901
13928
  }
13902
13929
  async function v(x) {
13903
13930
  const {
13904
- action_id: b,
13931
+ action_id: w,
13905
13932
  action_type: F,
13906
13933
  res_id: T,
13907
13934
  view_id: R,
13908
13935
  overrideUnsettedLimit: A = !1,
13909
13936
  values: _ = {},
13910
13937
  domain: I
13911
- } = x, O = `${F},${b}`, $ = await N.getHandler().getActionData({
13938
+ } = x, O = `${F},${w}`, $ = await N.getHandler().getActionData({
13912
13939
  action: O,
13913
13940
  context: l
13914
13941
  }), E = Ht({
@@ -13961,16 +13988,16 @@ function ly(e, t) {
13961
13988
  title: G,
13962
13989
  target: P,
13963
13990
  initialView: W,
13964
- action_id: b,
13991
+ action_id: w,
13965
13992
  action_type: F,
13966
13993
  res_id: T,
13967
13994
  treeExpandable: Q,
13968
13995
  limit: A && (Z === 0 || Z === !1) ? kt : Z
13969
13996
  });
13970
13997
  }
13971
- async function w({
13998
+ async function b({
13972
13999
  model: x,
13973
- values: b,
14000
+ values: w,
13974
14001
  forced_values: F,
13975
14002
  initialViewType: T,
13976
14003
  res_id: R,
@@ -13979,7 +14006,7 @@ function ly(e, t) {
13979
14006
  const _ = await N.getHandler().getActionStringForModel(x);
13980
14007
  await p({
13981
14008
  action: _,
13982
- values: b,
14009
+ values: w,
13983
14010
  forced_values: F,
13984
14011
  initialViewType: T,
13985
14012
  res_id: R,
@@ -13988,7 +14015,7 @@ function ly(e, t) {
13988
14015
  }
13989
14016
  async function C({
13990
14017
  domain: x,
13991
- context: b,
14018
+ context: w,
13992
14019
  model: F,
13993
14020
  views: T,
13994
14021
  title: R,
@@ -14008,13 +14035,13 @@ function ly(e, t) {
14008
14035
  model: F,
14009
14036
  type: "form",
14010
14037
  id: _.type === "form" ? _.id : void 0,
14011
- context: { ...l, ...b }
14038
+ context: { ...l, ...w }
14012
14039
  });
14013
14040
  d.current.openActionModal({
14014
14041
  domain: x,
14015
14042
  model: F,
14016
14043
  formView: P,
14017
- context: { ...l, ...b },
14044
+ context: { ...l, ...w },
14018
14045
  actionData: {
14019
14046
  action_id: I,
14020
14047
  action_type: O,
@@ -14039,7 +14066,7 @@ function ly(e, t) {
14039
14066
  title: R,
14040
14067
  views: T,
14041
14068
  model: F,
14042
- context: { ...l, ...b },
14069
+ context: { ...l, ...w },
14043
14070
  domain: x,
14044
14071
  setCanWeClose: h,
14045
14072
  initialView: P,
@@ -14060,18 +14087,18 @@ function ly(e, t) {
14060
14087
  openShortcut: v,
14061
14088
  openAction: C,
14062
14089
  openRelate: y,
14063
- openDefaultActionForModel: w,
14090
+ openDefaultActionForModel: b,
14064
14091
  tabs: c,
14065
14092
  activeKey: r,
14066
14093
  onRemoveTab: async (x) => {
14067
- const b = f.current.get(x);
14068
- (await (b == null ? void 0 : b()) || r === "welcome") && m(x);
14094
+ const w = f.current.get(x);
14095
+ (await (w == null ? void 0 : w()) || r === "welcome") && m(x);
14069
14096
  },
14070
14097
  onChangeTab: (x) => {
14071
14098
  o(x);
14072
14099
  },
14073
14100
  children: /* @__PURE__ */ i(
14074
- wu,
14101
+ bu,
14075
14102
  {
14076
14103
  ref: d,
14077
14104
  globalValues: a,
@@ -14081,9 +14108,9 @@ function ly(e, t) {
14081
14108
  }
14082
14109
  );
14083
14110
  }
14084
- const cv = Ct(ly), { useToken: cy } = Ue;
14085
- function dy(e) {
14086
- const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = cy(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
14111
+ const dv = Ct(cy), { useToken: dy } = Ue;
14112
+ function uy(e) {
14113
+ const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = dy(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
14087
14114
  return /* @__PURE__ */ D(
14088
14115
  "div",
14089
14116
  {
@@ -14153,12 +14180,12 @@ function dy(e) {
14153
14180
  }
14154
14181
  );
14155
14182
  }
14156
- function dv() {
14183
+ function uv() {
14157
14184
  const e = te(
14158
14185
  Tt
14159
14186
  ), { activeKey: t, tabs: n, onRemoveTab: r, onChangeTab: o } = e || {};
14160
14187
  return /* @__PURE__ */ i(re, { children: n.map((s) => /* @__PURE__ */ i(
14161
- dy,
14188
+ uy,
14162
14189
  {
14163
14190
  tabKey: s.key,
14164
14191
  label: s.title,
@@ -14169,7 +14196,7 @@ function dv() {
14169
14196
  s.key
14170
14197
  )) });
14171
14198
  }
14172
- function uy(e) {
14199
+ function fy(e) {
14173
14200
  const { tab: t } = e, n = te(
14174
14201
  Tt
14175
14202
  ), { activeKey: r } = n || {}, o = {
@@ -14177,28 +14204,28 @@ function uy(e) {
14177
14204
  };
14178
14205
  return /* @__PURE__ */ i("div", { style: t.key !== r ? o : void 0, children: t.content });
14179
14206
  }
14180
- const fy = ht.memo(uy, () => !0);
14181
- function uv() {
14207
+ const my = ht.memo(fy, () => !0);
14208
+ function fv() {
14182
14209
  const e = te(
14183
14210
  Tt
14184
- ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(fy, { tab: r }, r.key))) || null;
14211
+ ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(my, { tab: r }, r.key))) || null;
14185
14212
  return /* @__PURE__ */ i(re, { children: n });
14186
14213
  }
14187
- const { useToken: my } = Ue, fv = (e) => {
14214
+ const { useToken: py } = Ue, mv = (e) => {
14188
14215
  const {
14189
14216
  onRetrieveShortcuts: t,
14190
14217
  onCheckIsFavourite: n,
14191
14218
  onAddFavourite: r,
14192
14219
  onRemoveFavourite: o,
14193
14220
  onDropdownClosed: s
14194
- } = e, [a, l] = S(!1), [c, u] = S(), { t: f } = pe(), { token: d } = my(), m = Y(null), h = te(
14221
+ } = e, [a, l] = S(!1), [c, u] = S(), { t: f } = pe(), { token: d } = py(), m = Y(null), h = te(
14195
14222
  Tt
14196
14223
  ), {
14197
14224
  openShortcut: p,
14198
14225
  tabs: g,
14199
14226
  activeKey: y,
14200
14227
  currentView: v,
14201
- currentId: w,
14228
+ currentId: b,
14202
14229
  openDefaultActionForModel: C
14203
14230
  } = h || {}, x = ne(() => {
14204
14231
  if (!v || !v.view_id || !v.extra)
@@ -14210,19 +14237,19 @@ const { useToken: my } = Ue, fv = (e) => {
14210
14237
  }
14211
14238
  const $ = v.view_id;
14212
14239
  let E = !1;
14213
- return v.type === "form" && (E = w || !1), {
14240
+ return v.type === "form" && (E = b || !1), {
14214
14241
  action_id: I,
14215
14242
  action_type: O,
14216
14243
  view_id: $,
14217
14244
  res_id: E
14218
14245
  };
14219
- }, [w, v]), b = ne(() => {
14246
+ }, [b, v]), w = ne(() => {
14220
14247
  if (x)
14221
14248
  return JSON.stringify(x);
14222
14249
  }, [x]);
14223
14250
  se(() => {
14224
14251
  T();
14225
- }, [b]);
14252
+ }, [w]);
14226
14253
  function F(I) {
14227
14254
  const O = I;
14228
14255
  (O == null ? void 0 : O.action_type) !== "ir.actions.wizard" && p(O);
@@ -14266,7 +14293,7 @@ const { useToken: my } = Ue, fv = (e) => {
14266
14293
  l(!1);
14267
14294
  return;
14268
14295
  }
14269
- v.type === "form" && (L = w || !1), await r({
14296
+ v.type === "form" && (L = b || !1), await r({
14270
14297
  action_id: O,
14271
14298
  action_type: $,
14272
14299
  view_id: E,
@@ -14276,7 +14303,7 @@ const { useToken: my } = Ue, fv = (e) => {
14276
14303
  await A(), l(!a);
14277
14304
  }, [
14278
14305
  y,
14279
- w,
14306
+ b,
14280
14307
  c,
14281
14308
  v,
14282
14309
  A,
@@ -14311,70 +14338,70 @@ const { useToken: my } = Ue, fv = (e) => {
14311
14338
  );
14312
14339
  };
14313
14340
  export {
14314
- rg as ActionBar,
14341
+ og as ActionBar,
14315
14342
  Ha as ActionView,
14316
- Xg as Alert,
14317
- Bg as ArrowStepsField,
14318
- Xh as Binary,
14343
+ Zg as Alert,
14344
+ Hg as ArrowStepsField,
14345
+ Zh as Binary,
14319
14346
  Hc as Boolean,
14320
- wo as Button,
14347
+ bo as Button,
14321
14348
  xc as ButtonGroup,
14322
- ty as Carousel,
14323
- ws as Char,
14324
- Hg as CodeEditor,
14325
- ry as ColorPicker,
14326
- Jg as CommentsTimelineField,
14349
+ ny as Carousel,
14350
+ bs as Char,
14351
+ Ug as CodeEditor,
14352
+ oy as ColorPicker,
14353
+ Qg as CommentsTimelineField,
14327
14354
  Rs as ConfigContext,
14328
14355
  Sd as ConfigContextProvider,
14329
14356
  N as ConnectionProvider,
14330
- wu as ContentRootProvider,
14331
- uv as CurrentTabContent,
14332
- Rg as Dashboard,
14333
- Ig as DashboardGrid,
14334
- Gh as Date,
14335
- Kh as DateTime,
14336
- sg as Email,
14337
- lv as ErpAllFeatureKeys,
14357
+ bu as ContentRootProvider,
14358
+ fv as CurrentTabContent,
14359
+ _g as Dashboard,
14360
+ Tg as DashboardGrid,
14361
+ Kh as Date,
14362
+ qh as DateTime,
14363
+ ag as Email,
14364
+ cv as ErpAllFeatureKeys,
14338
14365
  gn as ErpFeatureKeys,
14339
- Wh as ExportModal,
14340
- fv as FavouriteButton,
14366
+ Gh as ExportModal,
14367
+ mv as FavouriteButton,
14341
14368
  Eo as Float,
14342
14369
  Oh as FloatTime,
14343
- wn as Form,
14344
- bn as FormModal,
14370
+ bn as Form,
14371
+ wn as FormModal,
14345
14372
  Ms as GraphCard,
14346
14373
  Td as GraphIndicator,
14347
14374
  ka as Group,
14348
- Qg as HTMLPreview,
14375
+ Xg as HTMLPreview,
14349
14376
  Kc as Image,
14350
14377
  En as Integer,
14351
14378
  fr as Label,
14352
14379
  th as Many2one,
14353
- Dg as Markdown,
14354
- _g as MultiCheckbox,
14355
- Eh as Notebook,
14380
+ Vg as Markdown,
14381
+ Eg as MultiCheckbox,
14382
+ Dh as Notebook,
14356
14383
  Th as One2many,
14357
14384
  Fu as ProgressBar,
14358
- Pg as Radio,
14359
- zh as Reference,
14360
- cv as RootView,
14385
+ kg as Radio,
14386
+ Jh as Reference,
14387
+ dv as RootView,
14361
14388
  $o as SearchFilter,
14362
14389
  No as SearchModal,
14363
14390
  Oa as SearchTree,
14364
14391
  xs as Selection,
14365
- kh as Separator,
14392
+ $h as Separator,
14366
14393
  Xr as Spinner,
14367
- Mg as Steps,
14368
- $g as Switch,
14369
- dy as Tab,
14370
- dv as TabSelector,
14394
+ Lg as Steps,
14395
+ Ng as Switch,
14396
+ uy as Tab,
14397
+ uv as TabSelector,
14371
14398
  tu as Tag,
14372
14399
  nu as Tags,
14373
- Vh as Text,
14374
- qh as Time,
14400
+ Ph as Text,
14401
+ Yh as Time,
14375
14402
  jn as Tree,
14376
- ig as Url,
14377
- hv as dayjs,
14403
+ sg as Url,
14404
+ gv as dayjs,
14378
14405
  pt as iconMapper,
14379
14406
  Pt as showConfirmDialog
14380
14407
  };