@gisce/react-ooui 2.51.0-alpha.3 → 2.51.0-alpha.4

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.
@@ -1,57 +1,57 @@
1
- var Ya = Object.defineProperty;
2
- var za = (e, t, n) => t in e ? Ya(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var ko = (e, t, n) => (za(e, typeof t != "symbol" ? t + "" : t, n), n);
1
+ var za = Object.defineProperty;
2
+ var Ja = (e, t, n) => t in e ? za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var ko = (e, t, n) => (Ja(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsx as i, jsxs as D, Fragment as ie } from "react/jsx-runtime";
5
- import pt, { useContext as ne, useState as x, useEffect as le, useRef as Y, memo as yt, useCallback as P, useMemo as oe, createContext as Ja, forwardRef as wt, useImperativeHandle as bt, createElement as Qa, Fragment as Rn } from "react";
6
- import { Tooltip as Tt, theme as We, Typography as kt, Form as ht, Row as je, Col as Se, Modal as dt, Button as He, Dropdown as Xa, Menu as $o, Spin as Ke, Divider as Qn, Space as Xe, Input as rt, Select as Gt, Checkbox as Cn, Alert as ot, Timeline as Li, Empty as ji, Statistic as Za, Card as Qr, Tag as Xr, message as br, App as el, Progress as tl, Avatar as Bi, DatePicker as Zr, TimePicker as nl, InputNumber as Xn, Layout as Hi, Badge as Zn, Pagination as rl, Tabs as Ui, Radio as No, Switch as ol, Steps as Mo, Carousel as il } from "antd";
7
- import { Label as un, Field as Dr, Tree as Wi, Reference as sl, Selection as eo, Many2one as Gi, Boolean as al, parseContext as jt, graphProcessor as Ki, graphFieldUtils as ll, parseGraph as qi, Container as cl, Form as Yi, parseContextFields as dl, parseDomainFields as ul, Integer as Pr, SearchFieldTypes as Et, SearchFilter as zi, transformDomainForChildWidget as to, Button as fl } from "@gisce/ooui";
5
+ import pt, { useContext as ne, useState as x, useEffect as le, useRef as Y, memo as yt, useCallback as P, useMemo as oe, createContext as Qa, forwardRef as bt, useImperativeHandle as St, createElement as Xa, Fragment as Rn } from "react";
6
+ import { Tooltip as wt, theme as We, Typography as kt, Form as ht, Row as je, Col as Se, Modal as dt, Button as He, Dropdown as Za, Menu as $o, Spin as Ke, Divider as Xn, Space as Xe, Input as rt, Select as Gt, Checkbox as Cn, Alert as ot, Timeline as ji, Empty as Bi, Statistic as el, Card as Qr, Tag as Xr, message as br, App as tl, Progress as nl, Avatar as Hi, DatePicker as Zr, TimePicker as rl, InputNumber as Zn, Layout as Ui, Badge as er, Pagination as ol, Tabs as Wi, Radio as No, Switch as il, Steps as Mo, Carousel as sl } from "antd";
7
+ import { Label as un, Field as Dr, Tree as Gi, Reference as al, Selection as eo, Many2one as Ki, Boolean as ll, parseContext as jt, graphProcessor as qi, graphFieldUtils as cl, parseGraph as Yi, Container as dl, Form as zi, parseContextFields as ul, parseDomainFields as fl, Integer as Pr, SearchFieldTypes as Et, SearchFilter as Ji, transformDomainForChildWidget as to, Button as ml } from "@gisce/ooui";
8
8
  import * as Lo from "@ant-design/icons";
9
- import Ji, { QuestionCircleOutlined as Qi, ExclamationCircleOutlined as $t, LoadingOutlined as St, DownOutlined as er, WarningOutlined as Xi, CloseOutlined as fn, CheckOutlined as tr, TranslationOutlined as Zi, FolderOpenOutlined as no, DownloadOutlined as ro, ClearOutlined as nr, ExportOutlined as ml, InfoCircleOutlined as rr, StarFilled as pl, StarOutlined as hl, ThunderboltOutlined as oo, PrinterOutlined as io, EnterOutlined as so, SearchOutlined as or, UpOutlined as gl, PlusSquareOutlined as yl, MinusSquareOutlined as vl, FileAddOutlined as ir, AlignLeftOutlined as wl, ApiOutlined as bl, DeleteOutlined as ao, LeftOutlined as es, RightOutlined as ts, EyeOutlined as Sl, FormOutlined as xn, TableOutlined as lo, AreaChartOutlined as Cl, CalendarOutlined as xl, LinkOutlined as jo, SaveOutlined as Il, CopyOutlined as co, ReloadOutlined as sr, EditOutlined as ns, PlusOutlined as Tl, FilterOutlined as rs, CloseCircleFilled as Al, BorderOuterOutlined as Ol, SettingOutlined as Fl } from "@ant-design/icons";
9
+ import Qi, { QuestionCircleOutlined as Xi, ExclamationCircleOutlined as $t, LoadingOutlined as Ct, DownOutlined as tr, WarningOutlined as Zi, CloseOutlined as fn, CheckOutlined as nr, TranslationOutlined as es, FolderOpenOutlined as no, DownloadOutlined as ro, ClearOutlined as rr, InfoCircleOutlined as _n, ExportOutlined as pl, StarFilled as hl, StarOutlined as gl, ThunderboltOutlined as oo, PrinterOutlined as io, EnterOutlined as so, SearchOutlined as or, UpOutlined as yl, PlusSquareOutlined as vl, MinusSquareOutlined as wl, FileAddOutlined as ir, AlignLeftOutlined as bl, ApiOutlined as Sl, DeleteOutlined as ao, LeftOutlined as ts, RightOutlined as ns, EyeOutlined as Cl, FormOutlined as xn, TableOutlined as lo, AreaChartOutlined as xl, CalendarOutlined as Il, LinkOutlined as jo, SaveOutlined as Tl, CopyOutlined as co, ReloadOutlined as sr, EditOutlined as rs, PlusOutlined as Al, FilterOutlined as os, CloseCircleFilled as Ol, BorderOuterOutlined as Fl, SettingOutlined as Rl } from "@ant-design/icons";
10
10
  import { Interweave as In } from "interweave";
11
- import { useLocale as fe, FormigaConfigProvider as Rl, mergeStrings as _l, Many2OneSuffix as El, Many2OneSuffixModal as Bo, FieldSet as Vl, ExportModal as Dl, Dropdown as os, DropdownButton as rn, HTMLPreview as Pl, FavouriteButton as kl } from "@gisce/react-formiga-components";
11
+ import { useLocale as fe, FormigaConfigProvider as _l, mergeStrings as El, Many2OneSuffix as Vl, Many2OneSuffixModal as Bo, FieldSet as Dl, ExportModal as Pl, Dropdown as is, DropdownButton as rn, HTMLPreview as kl, FavouriteButton as $l } from "@gisce/react-formiga-components";
12
12
  import * as Ho from "@tabler/icons-react";
13
- import $l from "antd/lib/input/TextArea";
13
+ import Nl from "antd/lib/input/TextArea";
14
14
  import ut from "styled-components";
15
15
  import uo from "react-measure";
16
- import Nl from "lodash/debounce";
16
+ import Ml from "lodash/debounce";
17
17
  import { nanoid as fo } from "nanoid";
18
18
  import kr from "antd/lib/typography/Title";
19
19
  import At from "use-deep-compare-effect";
20
- import { Line as Ml, Column as Ll, Pie as jl } from "@ant-design/plots";
20
+ import { Line as Ll, Column as jl, Pie as Bl } from "@ant-design/plots";
21
21
  import at from "dayjs";
22
22
  import { default as dv } from "dayjs";
23
- import Bl from "dayjs/plugin/advancedFormat";
24
- import Hl from "dayjs/plugin/customParseFormat";
25
- import Ul from "dayjs/plugin/isoWeek";
26
- import Wl from "dayjs/plugin/timezone";
27
- import Gl from "dayjs/plugin/duration";
28
- import Kl from "dayjs/plugin/relativeTime";
29
- import ql from "dayjs/plugin/weekday";
30
- import Yl from "dayjs/plugin/localeData";
31
- import { createRoot as is } from "react-dom/client";
23
+ import Hl from "dayjs/plugin/advancedFormat";
24
+ import Ul from "dayjs/plugin/customParseFormat";
25
+ import Wl from "dayjs/plugin/isoWeek";
26
+ import Gl from "dayjs/plugin/timezone";
27
+ import Kl from "dayjs/plugin/duration";
28
+ import ql from "dayjs/plugin/relativeTime";
29
+ import Yl from "dayjs/plugin/weekday";
30
+ import zl from "dayjs/plugin/localeData";
31
+ import { createRoot as ss } from "react-dom/client";
32
32
  import { useDeepCompareEffect as ar, useDeepCompareCallback as gt, useDeepCompareMemo as Tn } from "use-deep-compare";
33
- import { InfiniteTable as ss, Table as zl } from "@gisce/react-formiga-table";
34
- import { fileTypeFromBuffer as Jl } from "file-type-buffer-browser";
35
- import { isPresetStatusColor as as, isPresetColor as ls } from "antd/lib/_util/colors";
36
- import Ql from "antd/es/date-picker/locale/en_US";
37
- import Xl from "antd/es/date-picker/locale/es_ES";
38
- import Zl from "antd/es/date-picker/locale/ca_ES";
39
- import ec from "validator";
33
+ import { InfiniteTable as as, Table as Jl } from "@gisce/react-formiga-table";
34
+ import { fileTypeFromBuffer as Ql } from "file-type-buffer-browser";
35
+ import { isPresetStatusColor as ls, isPresetColor as cs } from "antd/lib/_util/colors";
36
+ import Xl from "antd/es/date-picker/locale/en_US";
37
+ import Zl from "antd/es/date-picker/locale/es_ES";
38
+ import ec from "antd/es/date-picker/locale/ca_ES";
39
+ import tc from "validator";
40
40
  import "@gisce/react-formiga-table/style.css";
41
- import tc from "antd/es/typography/Link";
42
- import Un from "antd/es/alert/ErrorBoundary";
43
- import { GridUi as nc } from "@gisce/fiber-diagram";
41
+ import nc from "antd/es/typography/Link";
42
+ import Wn from "antd/es/alert/ErrorBoundary";
43
+ import { GridUi as rc } from "@gisce/fiber-diagram";
44
44
  import { useHotkeys as Lt } from "react-hotkeys-hook";
45
- import rc from "validator/lib/isURL";
46
- import oc from "validator/lib/isEmail";
47
- import ic from "react-markdown";
48
- import sc from "remark-gfm";
49
- import ac from "@monaco-editor/react";
50
- import lc from "md5";
51
- import { WidthProvider as cc, Responsive as dc } from "react-grid-layout";
45
+ import oc from "validator/lib/isURL";
46
+ import ic from "validator/lib/isEmail";
47
+ import sc from "react-markdown";
48
+ import ac from "remark-gfm";
49
+ import lc from "@monaco-editor/react";
50
+ import cc from "md5";
51
+ import { WidthProvider as dc, Responsive as uc } from "react-grid-layout";
52
52
  import "react-grid-layout/css/styles.css";
53
- import { AnimatePresence as uc, motion as Uo } from "framer-motion";
54
- const Ue = pt.createContext(null), fc = (e) => {
53
+ import { AnimatePresence as fc, motion as Uo } from "framer-motion";
54
+ const Ue = pt.createContext(null), mc = (e) => {
55
55
  const {
56
56
  children: t,
57
57
  activeId: n,
@@ -93,7 +93,7 @@ const Ue = pt.createContext(null), fc = (e) => {
93
93
  children: t
94
94
  }
95
95
  );
96
- }, mc = () => {
96
+ }, pc = () => {
97
97
  const e = ne(Ue);
98
98
  return e || {
99
99
  activeId: void 0,
@@ -116,7 +116,7 @@ const Ue = pt.createContext(null), fc = (e) => {
116
116
  },
117
117
  formView: void 0
118
118
  };
119
- }, { Text: pc, Title: hc } = kt, { useToken: gc } = We, yc = {
119
+ }, { Text: hc, Title: gc } = kt, { useToken: yc } = We, vc = {
120
120
  left: "justify-start",
121
121
  center: "justify-center",
122
122
  right: "justify-end"
@@ -124,14 +124,14 @@ const Ue = pt.createContext(null), fc = (e) => {
124
124
  const { ooui: t, align: n, responsiveBehaviour: r } = e, { label: o, tooltip: s, fieldForLabel: a, labelSize: l, labelType: c } = t, u = ne(Ue);
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: m } = gc(), g = l === void 0 ? pc : hc;
127
+ const h = n || (a ? r ? "left" : "right" : "left"), { token: m } = yc(), g = l === void 0 ? hc : gc;
128
128
  return /* @__PURE__ */ D(
129
129
  "div",
130
130
  {
131
- className: `flex flex-row items-center pb-1 pt-1 ${yc[h]}`,
131
+ className: `flex flex-row items-center pb-1 pt-1 ${vc[h]}`,
132
132
  children: [
133
- s && /* @__PURE__ */ i(Tt, { title: s, children: /* @__PURE__ */ i(
134
- Qi,
133
+ s && /* @__PURE__ */ i(wt, { title: s, children: /* @__PURE__ */ i(
134
+ Xi,
135
135
  {
136
136
  className: "pr-1 text-xs",
137
137
  style: {
@@ -195,14 +195,14 @@ function _e({
195
195
  m()
196
196
  ] }))();
197
197
  }
198
- const { confirm: vc } = dt, Dt = ({
198
+ const { confirm: wc } = dt, Dt = ({
199
199
  onOk: e,
200
200
  confirmMessage: t,
201
201
  okText: n,
202
202
  cancelText: r,
203
203
  t: o
204
204
  }) => {
205
- vc({
205
+ wc({
206
206
  title: o("confirmation"),
207
207
  icon: /* @__PURE__ */ i($t, {}),
208
208
  centered: !0,
@@ -304,7 +304,7 @@ const { confirm: vc } = dt, Dt = ({
304
304
  STOCK_UNINDENT: "AlignLeft",
305
305
  STOCK_PREFERENCES: "Setting"
306
306
  }, ft = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), Wo.hasOwnProperty(e) ? Go(Wo[e], t) : Go(e, t));
307
- function wc(e) {
307
+ function bc(e) {
308
308
  return `${e.split("-").map(
309
309
  (t) => t.replace(
310
310
  /\w\S*/g,
@@ -314,7 +314,7 @@ function wc(e) {
314
314
  }
315
315
  function Go(e, t) {
316
316
  let n = e.charAt(0).toUpperCase() + e.slice(1);
317
- n.indexOf("-") !== -1 && (n = wc(n));
317
+ n.indexOf("-") !== -1 && (n = bc(n));
318
318
  const r = `${n}Outlined`;
319
319
  if (Lo[r])
320
320
  return () => pt.createElement(Lo[r], {
@@ -339,7 +339,7 @@ function Go(e, t) {
339
339
  lineHeight: "1",
340
340
  verticalAlign: "middle"
341
341
  },
342
- children: pt.createElement(Ji, {
342
+ children: pt.createElement(Qi, {
343
343
  component: s,
344
344
  ...t
345
345
  })
@@ -376,7 +376,7 @@ const mo = (e) => {
376
376
  }
377
377
  function v() {
378
378
  if (p)
379
- return /* @__PURE__ */ i(St, {});
379
+ return /* @__PURE__ */ i(Ct, {});
380
380
  if (l) {
381
381
  const w = ft(l);
382
382
  return w && /* @__PURE__ */ i(w, {});
@@ -395,7 +395,7 @@ const mo = (e) => {
395
395
  children: r
396
396
  }
397
397
  ) });
398
- }, bc = (e) => {
398
+ }, Sc = (e) => {
399
399
  const { ooui: t } = e, { defaultButton: n, secondaryButtons: r } = t, {
400
400
  id: o,
401
401
  caption: s,
@@ -409,7 +409,7 @@ const mo = (e) => {
409
409
  } = n || {}, h = ne(Ue), { executeButtonAction: m } = h || {}, [g, y] = x(!1), { t: v } = fe();
410
410
  function w() {
411
411
  if (g)
412
- return /* @__PURE__ */ i(St, {});
412
+ return /* @__PURE__ */ i(Ct, {});
413
413
  if (u) {
414
414
  const S = ft(u);
415
415
  return S && /* @__PURE__ */ i(S, {});
@@ -435,14 +435,14 @@ const mo = (e) => {
435
435
  return null;
436
436
  if (t.buttons.length > 1)
437
437
  return /* @__PURE__ */ i(_e, { ooui: new Dr({ defaultButton: n }), children: /* @__PURE__ */ D(
438
- Xa.Button,
438
+ Za.Button,
439
439
  {
440
440
  disabled: !a || p,
441
441
  onClick: C,
442
- icon: /* @__PURE__ */ i(er, {}),
442
+ icon: /* @__PURE__ */ i(tr, {}),
443
443
  type: f ? "primary" : void 0,
444
444
  overlay: /* @__PURE__ */ i(
445
- Sc,
445
+ Cc,
446
446
  {
447
447
  ooui: r,
448
448
  executeButtonAction: m
@@ -456,7 +456,7 @@ const mo = (e) => {
456
456
  ) });
457
457
  if (n)
458
458
  return /* @__PURE__ */ i(mo, { ooui: n });
459
- }, Sc = (e) => {
459
+ }, Cc = (e) => {
460
460
  const { t } = fe(), { ooui: n, executeButtonAction: r } = e;
461
461
  if (!n)
462
462
  return null;
@@ -490,7 +490,7 @@ const mo = (e) => {
490
490
  }
491
491
  function I() {
492
492
  if (g)
493
- return /* @__PURE__ */ i(St, {});
493
+ return /* @__PURE__ */ i(Ct, {});
494
494
  if (d) {
495
495
  const C = ft(d);
496
496
  return C && /* @__PURE__ */ i(C, {});
@@ -509,7 +509,7 @@ const mo = (e) => {
509
509
  );
510
510
  });
511
511
  return /* @__PURE__ */ i($o, { children: o });
512
- }, Cc = 0.7;
512
+ }, xc = 0.7;
513
513
  function Ko() {
514
514
  const { innerWidth: e, innerHeight: t } = window;
515
515
  return {
@@ -527,7 +527,7 @@ function cr() {
527
527
  }
528
528
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
529
529
  }, []), {
530
- modalWidth: e.width * Cc,
530
+ modalWidth: e.width * xc,
531
531
  modalHeight: e.height,
532
532
  width: e.width,
533
533
  height: e.height
@@ -545,7 +545,7 @@ const nn = class nn {
545
545
  };
546
546
  ko(nn, "handler");
547
547
  let N = nn;
548
- const cs = (e) => {
548
+ const ds = (e) => {
549
549
  let t, n, r;
550
550
  if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
551
551
 
@@ -563,15 +563,15 @@ const cs = (e) => {
563
563
  message: t,
564
564
  title: r
565
565
  };
566
- }, { error: xc, warning: Ic } = dt, st = (e) => {
567
- const { message: t, type: n, title: r } = cs(e);
568
- (n === "error" ? xc : Ic)({
566
+ }, { error: Ic, warning: Tc } = dt, st = (e) => {
567
+ const { message: t, type: n, title: r } = ds(e);
568
+ (n === "error" ? Ic : Tc)({
569
569
  title: r,
570
- icon: n === "error" ? /* @__PURE__ */ i($t, {}) : /* @__PURE__ */ i(Xi, {}),
570
+ icon: n === "error" ? /* @__PURE__ */ i($t, {}) : /* @__PURE__ */ i(Zi, {}),
571
571
  centered: !0,
572
572
  content: t
573
573
  });
574
- }, ds = (e) => {
574
+ }, us = (e) => {
575
575
  const { visible: t, onCloseModal: n, model: r, id: o, field: s, onSubmitSucceed: a } = e, { modalWidth: l } = cr(), { t: c } = fe(), [u, f] = x([]), [d, p] = x(!1), [h, m] = x(!1), [g, y] = x({}), v = Y();
576
576
  le(() => {
577
577
  t ? w() : y({});
@@ -614,7 +614,7 @@ const cs = (e) => {
614
614
  return u.map((R, b) => /* @__PURE__ */ D(je, { style: { paddingBottom: 20 }, children: [
615
615
  /* @__PURE__ */ i(Se, { flex: "8rem", style: { paddingRight: 10 }, children: R.name }),
616
616
  /* @__PURE__ */ i(Se, { flex: "auto", children: /* @__PURE__ */ i(
617
- $l,
617
+ Nl,
618
618
  {
619
619
  rows: 4,
620
620
  value: g[R.code] || "",
@@ -650,7 +650,7 @@ const cs = (e) => {
650
650
  function T() {
651
651
  return d ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ D(ie, { children: [
652
652
  S(),
653
- /* @__PURE__ */ i(Qn, {}),
653
+ /* @__PURE__ */ i(Xn, {}),
654
654
  /* @__PURE__ */ i(je, { justify: "end", children: /* @__PURE__ */ D(Xe, { children: [
655
655
  /* @__PURE__ */ i(
656
656
  He,
@@ -664,7 +664,7 @@ const cs = (e) => {
664
664
  /* @__PURE__ */ i(
665
665
  He,
666
666
  {
667
- icon: h ? /* @__PURE__ */ i(St, {}) : /* @__PURE__ */ i(tr, {}),
667
+ icon: h ? /* @__PURE__ */ i(Ct, {}) : /* @__PURE__ */ i(nr, {}),
668
668
  disabled: h,
669
669
  onClick: A,
670
670
  style: { marginLeft: 15 },
@@ -693,20 +693,20 @@ const cs = (e) => {
693
693
  };
694
694
  function nt(e) {
695
695
  const { tooltip: t, ...n } = e;
696
- return /* @__PURE__ */ i(Tt, { title: t, children: /* @__PURE__ */ i(He, { ...n }) });
696
+ return /* @__PURE__ */ i(wt, { title: t, children: /* @__PURE__ */ i(He, { ...n }) });
697
697
  }
698
- const { info: Tc } = dt, Bt = (e) => {
699
- Tc({
698
+ const { info: Ac } = dt, Bt = (e) => {
699
+ Ac({
700
700
  title: "",
701
701
  centered: !0,
702
702
  content: e
703
703
  });
704
- }, { useToken: Ac } = We, dr = yt(({ content: e }) => {
705
- const { token: t } = Ac();
704
+ }, { useToken: Oc } = We, dr = yt(({ content: e }) => {
705
+ const { token: t } = Oc();
706
706
  return /* @__PURE__ */ i("div", { style: { color: t.colorTextDisabled }, children: e });
707
707
  });
708
708
  dr.displayName = "AddonElement";
709
- const { defaultAlgorithm: Oc, defaultSeed: Fc } = We, po = Oc(Fc), An = yt(
709
+ const { defaultAlgorithm: Fc, defaultSeed: Rc } = We, po = Fc(Rc), An = yt(
710
710
  ({
711
711
  component: e,
712
712
  ooui: t,
@@ -733,11 +733,11 @@ const { defaultAlgorithm: Oc, defaultSeed: Fc } = We, po = Oc(Fc), An = yt(
733
733
  }
734
734
  );
735
735
  An.displayName = "BaseInput";
736
- const us = (e) => {
736
+ const fs = (e) => {
737
737
  const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: s, translatable: a } = t;
738
- let l = /* @__PURE__ */ i(fs, { ooui: t, isSearchField: n });
739
- return a && !o && !n && (l = /* @__PURE__ */ i(ms, { ooui: t, field: r })), /* @__PURE__ */ i(_e, { required: s, ...e, children: l });
740
- }, fs = yt(
738
+ let l = /* @__PURE__ */ i(ms, { ooui: t, isSearchField: n });
739
+ return a && !o && !n && (l = /* @__PURE__ */ i(ps, { ooui: t, field: r })), /* @__PURE__ */ i(_e, { required: s, ...e, children: l });
740
+ }, ms = yt(
741
741
  ({
742
742
  value: e,
743
743
  ooui: t,
@@ -757,7 +757,7 @@ const us = (e) => {
757
757
  [r]
758
758
  );
759
759
  if (l) {
760
- const g = d ? Ec : rt.Password;
760
+ const g = d ? Vc : rt.Password;
761
761
  return /* @__PURE__ */ i(
762
762
  An,
763
763
  {
@@ -773,7 +773,7 @@ const us = (e) => {
773
773
  return /* @__PURE__ */ i(
774
774
  An,
775
775
  {
776
- component: d ? ps : rt,
776
+ component: d ? hs : rt,
777
777
  ooui: t,
778
778
  value: f,
779
779
  disabled: a || p || c && !n,
@@ -785,8 +785,8 @@ const us = (e) => {
785
785
  );
786
786
  }
787
787
  );
788
- fs.displayName = "CharInput";
789
- const ms = yt(
788
+ ms.displayName = "CharInput";
789
+ const ps = yt(
790
790
  ({
791
791
  ooui: e,
792
792
  value: t,
@@ -817,7 +817,7 @@ const ms = yt(
817
817
  d(!1);
818
818
  }, []), I = P(() => {
819
819
  d(!1), l == null || l();
820
- }, [l]), C = g ? _c : Rc;
820
+ }, [l]), C = g ? Ec : _c;
821
821
  return s ? /* @__PURE__ */ D(ie, { children: [
822
822
  /* @__PURE__ */ i("div", { onClick: v, children: /* @__PURE__ */ i(
823
823
  An,
@@ -832,7 +832,7 @@ const ms = yt(
832
832
  }
833
833
  ) }),
834
834
  /* @__PURE__ */ i(
835
- ds,
835
+ us,
836
836
  {
837
837
  id: s,
838
838
  model: a,
@@ -846,7 +846,7 @@ const ms = yt(
846
846
  /* @__PURE__ */ i(Se, { flex: "auto", children: /* @__PURE__ */ i(
847
847
  An,
848
848
  {
849
- component: g ? ps : rt,
849
+ component: g ? hs : rt,
850
850
  ooui: e,
851
851
  value: t,
852
852
  id: n,
@@ -858,7 +858,7 @@ const ms = yt(
858
858
  nt,
859
859
  {
860
860
  tooltip: p("translate"),
861
- icon: /* @__PURE__ */ i(Zi, {}),
861
+ icon: /* @__PURE__ */ i(es, {}),
862
862
  onClick: v,
863
863
  children: p("translate")
864
864
  }
@@ -866,36 +866,36 @@ const ms = yt(
866
866
  ] });
867
867
  }
868
868
  );
869
- ms.displayName = "TranslatableCharComp";
870
- const Rc = ut(rt)`
869
+ ps.displayName = "TranslatableCharComp";
870
+ const _c = ut(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
- `, _c = ut(rt)`
875
+ `, Ec = ut(rt)`
876
876
  &.ant-input {
877
877
  background-color: ${po.colorPrimaryBg};
878
878
  cursor: pointer;
879
879
  pointer-events: none;
880
880
  }
881
- `, ps = ut(rt)`
881
+ `, hs = ut(rt)`
882
882
  &.ant-input {
883
883
  background-color: ${po.colorPrimaryBg};
884
884
  }
885
- `, Ec = ut(rt.Password)`
885
+ `, Vc = ut(rt.Password)`
886
886
  &.ant-input-affix-wrapper {
887
887
  background-color: ${po.colorPrimaryBg};
888
888
  }
889
- `, { defaultAlgorithm: Vc, defaultSeed: Dc } = We, Pc = Vc(Dc), { Option: kc } = Gt, hs = (e) => {
889
+ `, { defaultAlgorithm: Dc, defaultSeed: Pc } = We, kc = Dc(Pc), { Option: $c } = Gt, gs = (e) => {
890
890
  const { ooui: t } = e, { required: n } = t;
891
- return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(gs, { ...e }) });
892
- }, gs = (e) => {
891
+ return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(ys, { ...e }) });
892
+ }, ys = (e) => {
893
893
  const { ooui: t, onChange: n, value: r } = e, { selectionValues: o, readOnly: s, required: a } = t, l = Array.from(o.entries()), c = l && l.length && l.map((f) => {
894
894
  const [d, p] = f;
895
- return /* @__PURE__ */ i(kc, { value: d, children: p }, d);
895
+ return /* @__PURE__ */ i($c, { value: d, children: p }, d);
896
896
  });
897
897
  return /* @__PURE__ */ i(
898
- a && !s ? $c : Gt,
898
+ a && !s ? Nc : Gt,
899
899
  {
900
900
  disabled: s,
901
901
  onChange: n,
@@ -907,17 +907,17 @@ const Rc = ut(rt)`
907
907
  children: c
908
908
  }
909
909
  );
910
- }, $c = ut(Gt)`
910
+ }, Nc = ut(Gt)`
911
911
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
912
- background-color: ${Pc.colorPrimaryBg};
912
+ background-color: ${kc.colorPrimaryBg};
913
913
  }
914
- `, { defaultAlgorithm: Nc, defaultSeed: Mc } = We, qo = Nc(Mc), Lc = (e) => {
914
+ `, { defaultAlgorithm: Mc, defaultSeed: Lc } = We, qo = Mc(Lc), jc = (e) => {
915
915
  const { ooui: t } = e, { id: n, readOnly: r, required: o } = t;
916
- return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(jc, { id: n, readOnly: r, required: o }) });
917
- }, jc = (e) => {
916
+ return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Bc, { id: n, readOnly: r, required: o }) });
917
+ }, Bc = (e) => {
918
918
  const { required: t, readOnly: n, ...r } = e;
919
- return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Bc : Cn, { disabled: n, ...r }) });
920
- }, Bc = ut(Cn)`
919
+ return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(t && !n ? Hc : Cn, { disabled: n, ...r }) });
920
+ }, Hc = ut(Cn)`
921
921
  .ant-checkbox-inner {
922
922
  background-color: ${qo.colorPrimaryBg};
923
923
  }
@@ -926,12 +926,12 @@ const Rc = ut(rt)`
926
926
  background-color: ${qo.colorPrimary};
927
927
  }
928
928
  `;
929
- function Hc(e) {
929
+ function Uc(e) {
930
930
  const n = Buffer.from(e, "base64").length / 1e3;
931
931
  return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
932
932
  }
933
933
  async function an(e) {
934
- const t = await Jl(
934
+ const t = await Ql(
935
935
  Buffer.from(e, "base64")
936
936
  );
937
937
  return t || {
@@ -939,7 +939,7 @@ async function an(e) {
939
939
  ext: "txt"
940
940
  };
941
941
  }
942
- const ys = (e) => new Promise((t, n) => {
942
+ const vs = (e) => new Promise((t, n) => {
943
943
  const r = new FileReader();
944
944
  r.readAsDataURL(e), r.onload = (o) => t(o.target.result.split(",")[1]), r.onerror = (o) => n(o);
945
945
  });
@@ -962,10 +962,10 @@ const ho = (e) => {
962
962
  }
963
963
  );
964
964
  }
965
- }, Uc = (e) => {
966
- const { ooui: t } = e, { required: n, id: r } = t;
967
- return ft(r) ? /* @__PURE__ */ i(ho, { value: r }) : /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Wc, { ooui: t }) });
968
965
  }, Wc = (e) => {
966
+ const { ooui: t } = e, { required: n, id: r } = t;
967
+ return ft(r) ? /* @__PURE__ */ i(ho, { value: r }) : /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Gc, { ooui: t }) });
968
+ }, Gc = (e) => {
969
969
  const { ooui: t, value: n, onChange: r } = e, { readOnly: o } = t, s = Y(null), { t: a } = fe(), l = (d) => {
970
970
  r == null || r(d);
971
971
  };
@@ -975,7 +975,7 @@ const ho = (e) => {
975
975
  }
976
976
  async function u(d) {
977
977
  d.stopPropagation(), d.preventDefault();
978
- const p = d.target.files[0], h = await ys(p);
978
+ const p = d.target.files[0], h = await vs(p);
979
979
  l(h);
980
980
  }
981
981
  function f() {
@@ -1026,15 +1026,15 @@ const ho = (e) => {
1026
1026
  tooltip: a("clear"),
1027
1027
  disabled: o || !n,
1028
1028
  onClick: f,
1029
- icon: /* @__PURE__ */ i(nr, {})
1029
+ icon: /* @__PURE__ */ i(rr, {})
1030
1030
  }
1031
1031
  )
1032
1032
  ] }) })
1033
1033
  ] });
1034
- }, Gc = (e) => {
1035
- const { ooui: t } = e, { required: n } = t;
1036
- return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Kc, {}) });
1037
1034
  }, Kc = (e) => {
1035
+ const { ooui: t } = e, { required: n } = t;
1036
+ return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(qc, {}) });
1037
+ }, qc = (e) => {
1038
1038
  const { value: t, onChange: n } = e;
1039
1039
  if (!t)
1040
1040
  return null;
@@ -1044,7 +1044,7 @@ const ho = (e) => {
1044
1044
  return console.error(r), null;
1045
1045
  }
1046
1046
  return /* @__PURE__ */ i(
1047
- nc,
1047
+ rc,
1048
1048
  {
1049
1049
  inputJson: t,
1050
1050
  onChange: (r) => {
@@ -1053,16 +1053,16 @@ const ho = (e) => {
1053
1053
  }
1054
1054
  );
1055
1055
  }, Vt = (e) => {
1056
- const t = e.arch, n = e.fields, r = new Wi(n);
1056
+ const t = e.arch, n = e.fields, r = new Gi(n);
1057
1057
  return r.parse(t), r;
1058
1058
  };
1059
- function qc(e) {
1059
+ function Yc(e) {
1060
1060
  return typeof e == "number" || typeof e == "string" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.length === 0;
1061
1061
  }
1062
1062
  const go = (e, t, n) => e.columns.map((o) => {
1063
1063
  const s = o.type, a = o.id, l = t == null ? void 0 : t[s];
1064
1064
  let c;
1065
- return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) => qc(u) ? u : /* @__PURE__ */ D("p", { style: { color: "red" }, children: [
1065
+ return l ? c = (u) => l({ value: u, key: a, ooui: o, context: n }) : c = (u) => Yc(u) ? u : /* @__PURE__ */ D("p", { style: { color: "red" }, children: [
1066
1066
  "Unsupported widget value for a Tree cell:",
1067
1067
  /* @__PURE__ */ i("pre", { children: /* @__PURE__ */ D("strong", { children: [
1068
1068
  "Type: ",
@@ -1089,21 +1089,21 @@ const go = (e, t, n) => e.columns.map((o) => {
1089
1089
  o[s] = r[s];
1090
1090
  else {
1091
1091
  const a = e.findById(s);
1092
- a instanceof sl || a instanceof eo ? o[s] = r[s] : a instanceof Gi ? o[s] = r[s] && Array.isArray(r[s]) && r[s].length === 2 && {
1092
+ a instanceof al || a instanceof eo ? o[s] = r[s] : a instanceof Ki ? o[s] = r[s] && Array.isArray(r[s]) && r[s].length === 2 && {
1093
1093
  model: a.relation,
1094
1094
  id: r[s][0],
1095
1095
  value: r[s][1]
1096
- } : a instanceof al ? o[s] = r[s] : a ? o[s] = r[s] === !1 ? "" : r[s] : o[s] = r[s];
1096
+ } : a instanceof ll ? o[s] = r[s] : a ? o[s] = r[s] === !1 ? "" : r[s] : o[s] = r[s];
1097
1097
  }
1098
1098
  }), o;
1099
1099
  });
1100
1100
  function ln(e) {
1101
- return vs(e, "colors");
1101
+ return ws(e, "colors");
1102
1102
  }
1103
- function Wn(e) {
1104
- return vs(e, "status");
1103
+ function Gn(e) {
1104
+ return ws(e, "status");
1105
1105
  }
1106
- function vs(e, t) {
1106
+ function ws(e, t) {
1107
1107
  if (!e)
1108
1108
  return;
1109
1109
  const n = {};
@@ -1125,20 +1125,20 @@ function on({
1125
1125
  };
1126
1126
  return e.sort(l);
1127
1127
  }
1128
- function Yc(e) {
1128
+ function zc(e) {
1129
1129
  for (const t in e)
1130
1130
  if (Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0)
1131
1131
  return !0;
1132
1132
  return !1;
1133
1133
  }
1134
- const ws = (e) => {
1134
+ const bs = (e) => {
1135
1135
  if (e && Object.keys(e).length !== 0)
1136
1136
  return Object.keys(e).map((t) => {
1137
1137
  const n = e[t];
1138
1138
  return `${t} ${n}`;
1139
1139
  }).join(", ");
1140
1140
  };
1141
- function bs(e, t) {
1141
+ function Ss(e, t) {
1142
1142
  const n = new RegExp(`<tree[^>]*\\s+${t}="([^"]+)"`, "i"), r = e.match(n);
1143
1143
  return r && r[1] ? r[1] : null;
1144
1144
  }
@@ -1194,10 +1194,10 @@ const yo = async (e) => {
1194
1194
  }).concat(c),
1195
1195
  p
1196
1196
  ];
1197
- }, Ss = (e) => {
1197
+ }, Cs = (e) => {
1198
1198
  const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
1199
1199
  return t.length === 0 ? -1 : Math.min(...t) - 1;
1200
- }, zc = (e, t) => {
1200
+ }, Jc = (e, t) => {
1201
1201
  const n = {};
1202
1202
  return Object.keys(e).forEach((r) => {
1203
1203
  var o;
@@ -1205,7 +1205,7 @@ const yo = async (e) => {
1205
1205
  (s) => s.operation !== "pendingRemove"
1206
1206
  ) : n[r] = e[r];
1207
1207
  }), n;
1208
- }, Jc = ({
1208
+ }, Qc = ({
1209
1209
  values: e,
1210
1210
  fields: t
1211
1211
  }) => {
@@ -1224,7 +1224,7 @@ const yo = async (e) => {
1224
1224
  n[r] = e[r];
1225
1225
  }), n;
1226
1226
  };
1227
- function Qc(e) {
1227
+ function Xc(e) {
1228
1228
  const t = e.map((r) => r.id);
1229
1229
  return e.filter((r, o) => {
1230
1230
  const { id: s } = r;
@@ -1240,7 +1240,7 @@ function Yo({
1240
1240
  e[r] && (n[r] = e[r]);
1241
1241
  }), n;
1242
1242
  }
1243
- const Xc = ({
1243
+ const Zc = ({
1244
1244
  allItems: e,
1245
1245
  range: t
1246
1246
  }) => {
@@ -1249,7 +1249,7 @@ const Xc = ({
1249
1249
  return l && (l.operation === "original" || l.operation === "pendingLink");
1250
1250
  }), s = e.filter((a) => a && a.operation !== "original" && a.operation !== "pendingLink");
1251
1251
  return { realItemsIds: o, otherItems: s };
1252
- }, Zc = ({
1252
+ }, ed = ({
1253
1253
  finalResultIds: e,
1254
1254
  fetchedItems: t,
1255
1255
  otherItems: n
@@ -1263,15 +1263,15 @@ const Xc = ({
1263
1263
  const a = t.findIndex((c) => c.id === o.id), l = t.findIndex((c) => c.id === s.id);
1264
1264
  return a - l;
1265
1265
  }), r;
1266
- }, ed = async (e, t, n, r) => await N.getHandler().searchAllIds({
1266
+ }, td = async (e, t, n, r) => await N.getHandler().searchAllIds({
1267
1267
  model: t,
1268
1268
  params: [["id", "in", e]],
1269
1269
  context: n,
1270
1270
  order: r
1271
- }), td = (e) => {
1271
+ }), nd = (e) => {
1272
1272
  const t = {};
1273
1273
  return e.colors && (t.colors = e.colors), e.status && (t.status = e.status), t;
1274
- }, nd = async ({
1274
+ }, rd = async ({
1275
1275
  relation: e,
1276
1276
  ids: t,
1277
1277
  treeView: n,
@@ -1290,9 +1290,9 @@ const Xc = ({
1290
1290
  return {
1291
1291
  items: fr(s, a[0]),
1292
1292
  colors: ln(a[1]),
1293
- status: Wn(a[1])
1293
+ status: Gn(a[1])
1294
1294
  };
1295
- }, rd = (e, t) => {
1295
+ }, od = (e, t) => {
1296
1296
  if (!t)
1297
1297
  return e;
1298
1298
  const n = {};
@@ -1306,7 +1306,7 @@ const Xc = ({
1306
1306
  } else
1307
1307
  n[r] = e[r];
1308
1308
  }), n;
1309
- }, en = (e, t) => rd(e, t), Sr = ({
1309
+ }, en = (e, t) => od(e, t), Sr = ({
1310
1310
  source: e,
1311
1311
  target: t,
1312
1312
  fields: n
@@ -1339,7 +1339,7 @@ const Xc = ({
1339
1339
  else
1340
1340
  e[o] === void 0 && t[o] !== void 0 ? r[o] = t[o] : e[o] !== t[o] && (t[o] === void 0 ? r[o] = null : r[o] = t[o]);
1341
1341
  }), r;
1342
- }, od = ({
1342
+ }, id = ({
1343
1343
  changedFields: e,
1344
1344
  formOoui: t,
1345
1345
  types: n
@@ -1347,7 +1347,7 @@ const Xc = ({
1347
1347
  var a;
1348
1348
  const s = (a = t == null ? void 0 : t.findById(o)) == null ? void 0 : a.type;
1349
1349
  return n.includes(s);
1350
- }).some((o) => o === !0), id = ({
1350
+ }).some((o) => o === !0), sd = ({
1351
1351
  fieldsDomain: e,
1352
1352
  fields: t
1353
1353
  }) => {
@@ -1355,12 +1355,12 @@ const Xc = ({
1355
1355
  return Object.keys(t).forEach((r) => {
1356
1356
  n[r] = t[r], e[r] && (n[r].domain = e[r]);
1357
1357
  }), n;
1358
- }, sd = (e) => {
1358
+ }, ad = (e) => {
1359
1359
  const t = {};
1360
1360
  return !e || !Array.isArray(e) || (e == null ? void 0 : e.length) === 0 ? {} : (e.forEach((n) => {
1361
1361
  (n == null ? void 0 : n[1]) === "=" && (t[n[0]] = n[2]);
1362
1362
  }), t);
1363
- }, ad = ({
1363
+ }, ld = ({
1364
1364
  onChangeFieldActionArgs: e,
1365
1365
  values: t,
1366
1366
  parentValues: n = {}
@@ -1384,7 +1384,7 @@ const Xc = ({
1384
1384
  } else
1385
1385
  r[o] = !1;
1386
1386
  }), r;
1387
- }, Gn = (e) => {
1387
+ }, Kn = (e) => {
1388
1388
  const t = {
1389
1389
  primary: [],
1390
1390
  secondary: []
@@ -1410,7 +1410,7 @@ const Kt = ({
1410
1410
  const o = e[r];
1411
1411
  t[r] && t[r].type === "many2one" && o && Array.isArray(o) && o.length === 2 ? n[r] = o[0] : n[r] = o;
1412
1412
  }), n;
1413
- }, ld = (e) => e ? "success" : "error", _n = (e) => {
1413
+ }, cd = (e) => e ? "success" : "error", En = (e) => {
1414
1414
  let t = 0;
1415
1415
  e = e.toString().padEnd(10, "0");
1416
1416
  for (let r = 0; r < e.length; r++)
@@ -1421,10 +1421,10 @@ const Kt = ({
1421
1421
  n += ("00" + o.toString(16)).slice(-2);
1422
1422
  }
1423
1423
  return n;
1424
- }, cd = (e, t) => e.replace(
1424
+ }, dd = (e, t) => e.replace(
1425
1425
  /\{([^}]+)\}/g,
1426
1426
  (n, r) => t[r] !== void 0 ? t[r] : n
1427
- ), Jo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), dd = (e) => /* @__PURE__ */ D(
1427
+ ), Jo = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), ud = (e) => /* @__PURE__ */ D(
1428
1428
  "div",
1429
1429
  {
1430
1430
  style: { display: "inline-block", cursor: "pointer" },
@@ -1437,7 +1437,7 @@ const Kt = ({
1437
1437
  ] })
1438
1438
  ]
1439
1439
  }
1440
- ), ud = (e) => {
1440
+ ), fd = (e) => {
1441
1441
  const { ooui: t } = e, { relation: n, context: r, views: o } = t, [s, a] = x(!0), [l, c] = x(), [u, f] = x(/* @__PURE__ */ new Map()), d = ne(Ue), { getContext: p } = d || {};
1442
1442
  At(() => {
1443
1443
  m();
@@ -1457,8 +1457,8 @@ const Kt = ({
1457
1457
  a(!1);
1458
1458
  }
1459
1459
  };
1460
- return s ? /* @__PURE__ */ i(Ke, {}) : l ? /* @__PURE__ */ i(ot, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(fd, { ooui: t, views: u }) });
1461
- }, fd = (e) => {
1460
+ return s ? /* @__PURE__ */ i(Ke, {}) : l ? /* @__PURE__ */ i(ot, { className: "mt-10", message: l, type: "error", banner: !0 }) : /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(md, { ooui: t, views: u }) });
1461
+ }, md = (e) => {
1462
1462
  const { value: t, views: n, ooui: r, onChange: o } = e, { items: s = [] } = t || {}, [a, l] = x(!1), [c, u] = x(), [f, d] = x(!1), [p, h] = x(), {
1463
1463
  relation: m,
1464
1464
  context: g,
@@ -1510,7 +1510,7 @@ const Kt = ({
1510
1510
  var _, $, L, W;
1511
1511
  const k = {
1512
1512
  children: /* @__PURE__ */ i(
1513
- dd,
1513
+ ud,
1514
1514
  {
1515
1515
  title: (_ = O.values) == null ? void 0 : _[w],
1516
1516
  summary: ($ = O.values) == null ? void 0 : $[v],
@@ -1522,10 +1522,10 @@ const Kt = ({
1522
1522
  }
1523
1523
  )
1524
1524
  };
1525
- return (L = O.values) != null && L[I] && (k.dot = E(O.values[I])), (W = O.values) != null && W[C] && (k.color = !as(O.values[C]) && !ls(O.values[C]) && !O.values[C].toString().startsWith("#") ? _n(O.values[C]) : O.values[C]), k;
1525
+ return (L = O.values) != null && L[I] && (k.dot = E(O.values[I])), (W = O.values) != null && W[C] && (k.color = !ls(O.values[C]) && !cs(O.values[C]) && !O.values[C].toString().startsWith("#") ? En(O.values[C]) : O.values[C]), k;
1526
1526
  });
1527
1527
  return /* @__PURE__ */ D(ie, { children: [
1528
- /* @__PURE__ */ i(Li, { style: { padding: "1rem" }, items: F }),
1528
+ /* @__PURE__ */ i(ji, { style: { padding: "1rem" }, items: F }),
1529
1529
  /* @__PURE__ */ i(
1530
1530
  vn,
1531
1531
  {
@@ -1547,7 +1547,7 @@ const Kt = ({
1547
1547
  }
1548
1548
  )
1549
1549
  ] });
1550
- }, md = {
1550
+ }, pd = {
1551
1551
  true: "Sí",
1552
1552
  false: "No",
1553
1553
  simple_search: "Búsqueda simple",
@@ -1649,7 +1649,7 @@ const Kt = ({
1649
1649
  not: "No",
1650
1650
  loading: "Carregant...",
1651
1651
  pendingToCalculate: "Pendent de calcular"
1652
- }, pd = {
1652
+ }, hd = {
1653
1653
  true: "Yes",
1654
1654
  false: "No",
1655
1655
  simple_search: "Simple search",
@@ -1751,7 +1751,7 @@ const Kt = ({
1751
1751
  not: "Not",
1752
1752
  loading: "Loading...",
1753
1753
  pendingToCalculate: "Pending to calculate"
1754
- }, hd = {
1754
+ }, gd = {
1755
1755
  true: "Sí",
1756
1756
  false: "No",
1757
1757
  simple_search: "Búsqueda simple",
@@ -1853,17 +1853,17 @@ const Kt = ({
1853
1853
  not: "No",
1854
1854
  loading: "Cargando...",
1855
1855
  pendingToCalculate: "Pendiente de calcular"
1856
- }, gd = {
1857
- ca_ES: md,
1858
- en_US: pd,
1859
- es_ES: hd
1860
1856
  }, yd = {
1857
+ ca_ES: pd,
1858
+ en_US: hd,
1859
+ es_ES: gd
1860
+ }, vd = {
1861
1861
  erpFeatures: {},
1862
1862
  globalValues: {},
1863
1863
  rootContext: {},
1864
1864
  devMode: !1
1865
- }, Cs = pt.createContext(yd), vo = () => {
1866
- const e = ne(Cs);
1865
+ }, xs = pt.createContext(vd), vo = () => {
1866
+ const e = ne(xs);
1867
1867
  if (!e)
1868
1868
  throw new Error(
1869
1869
  "useConfigContext must be used within a ConfigContextProvider"
@@ -1872,7 +1872,7 @@ const Kt = ({
1872
1872
  }, mr = (e) => {
1873
1873
  const { erpFeatures: t } = vo();
1874
1874
  return !!t[e];
1875
- }, vd = yt(
1875
+ }, wd = yt(
1876
1876
  ({
1877
1877
  erpFeatures: e,
1878
1878
  locale: t,
@@ -1891,18 +1891,18 @@ const Kt = ({
1891
1891
  }),
1892
1892
  [e, r, o, s]
1893
1893
  );
1894
- return /* @__PURE__ */ i(Cs.Provider, { value: l, children: /* @__PURE__ */ i(
1895
- Rl,
1894
+ return /* @__PURE__ */ i(xs.Provider, { value: l, children: /* @__PURE__ */ i(
1895
+ _l,
1896
1896
  {
1897
1897
  locale: t,
1898
- localizedStrings: _l(gd, n),
1898
+ localizedStrings: El(yd, n),
1899
1899
  children: a
1900
1900
  }
1901
1901
  ) });
1902
1902
  }
1903
1903
  );
1904
- vd.displayName = "ConfigContextProvider";
1905
- async function xs({
1904
+ wd.displayName = "ConfigContextProvider";
1905
+ async function Is({
1906
1906
  actionId: e,
1907
1907
  rootContext: t = {},
1908
1908
  globalValues: n = {}
@@ -1959,12 +1959,12 @@ async function xs({
1959
1959
  treeExpandable: m
1960
1960
  };
1961
1961
  }
1962
- const wd = (e) => {
1962
+ const bd = (e) => {
1963
1963
  const [t, n] = x(), [r, o] = x(!0), [s, a] = x(), [l, c] = x(), u = ne(Ue), { getContext: f, getPlainValues: d, activeId: p } = u || {}, { globalValues: h, rootContext: m } = vo(), g = oe(() => ({ ...f == null ? void 0 : f(), ...m }), [f, m]);
1964
1964
  return { actionData: s, treeShortcut: l, loading: r, error: t, fetchData: async () => {
1965
1965
  n(void 0), o(!0);
1966
1966
  try {
1967
- const v = await xs({
1967
+ const v = await Is({
1968
1968
  actionId: e,
1969
1969
  rootContext: g,
1970
1970
  globalValues: {
@@ -2007,7 +2007,7 @@ const wd = (e) => {
2007
2007
  }
2008
2008
  o(!1);
2009
2009
  } };
2010
- }, En = () => /* @__PURE__ */ i(
2010
+ }, Vn = () => /* @__PURE__ */ i(
2011
2011
  "div",
2012
2012
  {
2013
2013
  style: {
@@ -2019,7 +2019,7 @@ const wd = (e) => {
2019
2019
  },
2020
2020
  children: /* @__PURE__ */ i(Ke, {})
2021
2021
  }
2022
- ), Is = ({
2022
+ ), Ts = ({
2023
2023
  error: e,
2024
2024
  className: t
2025
2025
  }) => {
@@ -2027,7 +2027,7 @@ const wd = (e) => {
2027
2027
  if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
2028
2028
 
2029
2029
  `) !== -1) {
2030
- const { message: o, type: s, title: a } = cs(e);
2030
+ const { message: o, type: s, title: a } = ds(e);
2031
2031
  n = /* @__PURE__ */ i(In, { content: `${a}<br />${o}` }), r = s;
2032
2032
  } else
2033
2033
  n = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
@@ -2065,7 +2065,7 @@ const wd = (e) => {
2065
2065
  },
2066
2066
  [n, e]
2067
2067
  ), n];
2068
- }, Kn = 0.7, qn = 30, Ts = (e) => {
2068
+ }, qn = 0.7, Yn = 30, As = (e) => {
2069
2069
  const [t, n] = x(0), [r, o] = x(0), {
2070
2070
  value: s,
2071
2071
  totalValue: a,
@@ -2086,7 +2086,7 @@ const wd = (e) => {
2086
2086
  },
2087
2087
  children: ({ measureRef: h }) => {
2088
2088
  const m = d ? /* @__PURE__ */ i(
2089
- Sd,
2089
+ Cd,
2090
2090
  {
2091
2091
  value: s,
2092
2092
  total: a,
@@ -2099,7 +2099,7 @@ const wd = (e) => {
2099
2099
  suffix: f
2100
2100
  }
2101
2101
  ) : /* @__PURE__ */ i(
2102
- bd,
2102
+ Sd,
2103
2103
  {
2104
2104
  value: s,
2105
2105
  total: a,
@@ -2116,11 +2116,11 @@ const wd = (e) => {
2116
2116
  }
2117
2117
  );
2118
2118
  };
2119
- function As(e, t) {
2119
+ function Os(e, t) {
2120
2120
  const r = document.createElement("canvas").getContext("2d");
2121
2121
  return r.font = t || getComputedStyle(document.body).font, r.measureText(e).width;
2122
2122
  }
2123
- function bd({
2123
+ function Sd({
2124
2124
  measureRef: e,
2125
2125
  width: t,
2126
2126
  height: n,
@@ -2130,7 +2130,7 @@ function bd({
2130
2130
  icon: a,
2131
2131
  suffix: l
2132
2132
  }) {
2133
- let c = n * Kn < qn ? qn : n * Kn;
2133
+ let c = n * qn < Yn ? Yn : n * qn;
2134
2134
  const u = o == null ? void 0 : o.toLocaleString("es-ES", {
2135
2135
  useGrouping: !0
2136
2136
  }), f = r == null ? void 0 : r.toLocaleString("es-ES", {
@@ -2138,7 +2138,7 @@ function bd({
2138
2138
  });
2139
2139
  let d = r ? `${u}/${f}` : `${u}`;
2140
2140
  l && (d += " " + l);
2141
- let p = As(
2141
+ let p = Os(
2142
2142
  d,
2143
2143
  `bold ${Math.floor(c * 1.03)}px sans-serif`
2144
2144
  );
@@ -2163,7 +2163,7 @@ function bd({
2163
2163
  }
2164
2164
  );
2165
2165
  }
2166
- function Sd({
2166
+ function Cd({
2167
2167
  measureRef: e,
2168
2168
  height: t,
2169
2169
  width: n,
@@ -2175,7 +2175,7 @@ function Sd({
2175
2175
  suffix: c
2176
2176
  }) {
2177
2177
  const u = t * 0.65;
2178
- let f = u * Kn < qn ? qn : u * Kn;
2178
+ let f = u * qn < Yn ? Yn : u * qn;
2179
2179
  const d = s == null ? void 0 : s.toLocaleString("es-ES", {
2180
2180
  useGrouping: !0
2181
2181
  });
@@ -2186,7 +2186,7 @@ function Sd({
2186
2186
  const h = `${r == null ? void 0 : r.toLocaleString("es-ES", {
2187
2187
  useGrouping: !0
2188
2188
  })}%`;
2189
- let m = As(
2189
+ let m = Os(
2190
2190
  h,
2191
2191
  `bold ${Math.floor(f * 1.03)}px sans-serif`
2192
2192
  );
@@ -2227,7 +2227,7 @@ function Sd({
2227
2227
  }
2228
2228
  );
2229
2229
  }
2230
- const { getValueForOperator: Qo } = Ki, Cd = (e) => {
2230
+ const { getValueForOperator: Qo } = qi, xd = (e) => {
2231
2231
  const {
2232
2232
  model: t,
2233
2233
  domain: n,
@@ -2346,8 +2346,8 @@ const { getValueForOperator: Qo } = Ki, Cd = (e) => {
2346
2346
  }
2347
2347
  m(!1);
2348
2348
  }
2349
- return h ? /* @__PURE__ */ i(En, {}) : b ? /* @__PURE__ */ i(ot, { className: "mt-10", message: b, type: "error", banner: !0 }) : /* @__PURE__ */ i(
2350
- Ts,
2349
+ return h ? /* @__PURE__ */ i(Vn, {}) : b ? /* @__PURE__ */ i(ot, { className: "mt-10", message: b, type: "error", banner: !0 }) : /* @__PURE__ */ i(
2350
+ As,
2351
2351
  {
2352
2352
  value: g,
2353
2353
  totalValue: I,
@@ -2359,7 +2359,7 @@ const { getValueForOperator: Qo } = Ki, Cd = (e) => {
2359
2359
  fixedHeight: p
2360
2360
  }
2361
2361
  );
2362
- }, { processGraphData: xd } = Ki, { getFieldsToRetrieve: Id } = ll, Td = (e) => {
2362
+ }, { processGraphData: Id } = qi, { getFieldsToRetrieve: Td } = cl, Ad = (e) => {
2363
2363
  const {
2364
2364
  model: t,
2365
2365
  ooui: n,
@@ -2374,10 +2374,10 @@ const { getValueForOperator: Qo } = Ki, Cd = (e) => {
2374
2374
  N.getHandler().readObjects
2375
2375
  ), [C] = Ye(N.getHandler().search), S = P(async () => {
2376
2376
  u(!0), d(void 0), v(n.type || "line");
2377
- const A = Id({ ooui: n });
2377
+ const A = Td({ ooui: n });
2378
2378
  let T, R;
2379
2379
  try {
2380
- ({ values: T, fields: R } = await Od({
2380
+ ({ values: T, fields: R } = await Fd({
2381
2381
  model: t,
2382
2382
  domain: r,
2383
2383
  context: o,
@@ -2406,7 +2406,7 @@ const { getValueForOperator: Qo } = Ki, Cd = (e) => {
2406
2406
  fetchData: S
2407
2407
  };
2408
2408
  g(T);
2409
- const b = xd({
2409
+ const b = Id({
2410
2410
  ooui: n,
2411
2411
  values: T,
2412
2412
  fields: R,
@@ -2446,7 +2446,7 @@ const { getValueForOperator: Qo } = Ki, Cd = (e) => {
2446
2446
  fetchData: S
2447
2447
  };
2448
2448
  };
2449
- async function Ad({
2449
+ async function Od({
2450
2450
  model: e,
2451
2451
  context: t,
2452
2452
  fields: n,
@@ -2458,7 +2458,7 @@ async function Ad({
2458
2458
  fields: n
2459
2459
  });
2460
2460
  }
2461
- async function Od({
2461
+ async function Fd({
2462
2462
  fields: e,
2463
2463
  model: t,
2464
2464
  domain: n,
@@ -2468,7 +2468,7 @@ async function Od({
2468
2468
  manualIds: a,
2469
2469
  methods: l
2470
2470
  }) {
2471
- const { getFields: c, readObjects: u, search: f } = l, d = await Ad({
2471
+ const { getFields: c, readObjects: u, search: f } = l, d = await Od({
2472
2472
  model: t,
2473
2473
  context: r,
2474
2474
  fields: e,
@@ -2498,7 +2498,6 @@ async function Od({
2498
2498
  fields: d
2499
2499
  };
2500
2500
  }
2501
- at.extend(Bl);
2502
2501
  at.extend(Hl);
2503
2502
  at.extend(Ul);
2504
2503
  at.extend(Wl);
@@ -2506,39 +2505,40 @@ at.extend(Gl);
2506
2505
  at.extend(Kl);
2507
2506
  at.extend(ql);
2508
2507
  at.extend(Yl);
2508
+ at.extend(zl);
2509
2509
  const Cr = (e) => (t) => {
2510
2510
  const n = t.value.toLocaleString("es-ES", {
2511
2511
  useGrouping: !0
2512
2512
  });
2513
2513
  return { name: e === "pie" ? t.x : t.type, value: n };
2514
- }, Mn = (e) => {
2515
- if (typeof e == "string" && Fd(e))
2514
+ }, Ln = (e) => {
2515
+ if (typeof e == "string" && Rd(e))
2516
2516
  return parseFloat(e).toLocaleString("es-ES", {
2517
2517
  useGrouping: !0
2518
2518
  });
2519
- if (Os(e))
2519
+ if (Fs(e))
2520
2520
  return e.toLocaleString("es-ES", {
2521
2521
  useGrouping: !0
2522
2522
  });
2523
- if (Rd(e)) {
2524
- const t = _d(e);
2525
- return t === null ? e : at(e, Yn.input[t]).format(
2526
- Yn.output[t]
2523
+ if (_d(e)) {
2524
+ const t = Ed(e);
2525
+ return t === null ? e : at(e, zn.input[t]).format(
2526
+ zn.output[t]
2527
2527
  );
2528
2528
  } else
2529
2529
  return e;
2530
- }, Fd = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Os = (e) => typeof e == "number" && !isNaN(e), Xo = {
2530
+ }, Rd = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), Fs = (e) => typeof e == "number" && !isNaN(e), Xo = {
2531
2531
  default: {
2532
2532
  padding: "auto",
2533
2533
  xAxis: {
2534
2534
  tickCount: 5,
2535
2535
  label: {
2536
- formatter: Mn
2536
+ formatter: Ln
2537
2537
  }
2538
2538
  },
2539
2539
  yAxis: {
2540
2540
  label: {
2541
- formatter: Mn
2541
+ formatter: Ln
2542
2542
  }
2543
2543
  },
2544
2544
  legend: {
@@ -2578,12 +2578,12 @@ const Cr = (e) => (t) => {
2578
2578
  },
2579
2579
  xAxis: {
2580
2580
  label: {
2581
- formatter: Mn
2581
+ formatter: Ln
2582
2582
  }
2583
2583
  },
2584
2584
  yAxis: {
2585
2585
  label: {
2586
- formatter: Mn
2586
+ formatter: Ln
2587
2587
  }
2588
2588
  },
2589
2589
  label: {
@@ -2602,10 +2602,10 @@ const Cr = (e) => (t) => {
2602
2602
  }
2603
2603
  }
2604
2604
  };
2605
- function Rd(e) {
2605
+ function _d(e) {
2606
2606
  return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
2607
2607
  }
2608
- const Yn = {
2608
+ const zn = {
2609
2609
  input: {
2610
2610
  hours: "YYYY-MM-DD HH:mm",
2611
2611
  days: "YYYY-MM-DD",
@@ -2621,17 +2621,17 @@ const Yn = {
2621
2621
  years: "YYYY"
2622
2622
  }
2623
2623
  };
2624
- function _d(e) {
2625
- for (const t in Yn.input)
2624
+ function Ed(e) {
2625
+ for (const t in zn.input)
2626
2626
  if (at(
2627
2627
  e,
2628
- Yn.input[t],
2628
+ zn.input[t],
2629
2629
  !0
2630
2630
  ).isValid())
2631
2631
  return t;
2632
2632
  return null;
2633
2633
  }
2634
- const Ed = {
2634
+ const Vd = {
2635
2635
  inner: {
2636
2636
  label: {
2637
2637
  type: "inner",
@@ -2648,7 +2648,7 @@ const Ed = {
2648
2648
  labelHeight: 28
2649
2649
  }
2650
2650
  }
2651
- }, Vd = (e) => {
2651
+ }, Dd = (e) => {
2652
2652
  const t = e.reduce((a, l) => a + l.value, 0), r = e.map((a) => a.value / t * 100).map((a) => Math.round(a)), s = 100 - r.reduce((a, l) => a + l, 0);
2653
2653
  for (let a = 0; a < Math.abs(s); a++)
2654
2654
  s > 0 ? r[a % r.length]++ : r[a % r.length]--;
@@ -2656,11 +2656,11 @@ const Ed = {
2656
2656
  x: a.x,
2657
2657
  percent: r[l]
2658
2658
  }));
2659
- }, { Text: Zo } = kt, Fs = 400, Dd = yt(Ml), Pd = yt(Ll), kd = yt(jl), $d = {
2660
- line: Dd,
2661
- bar: Pd,
2662
- pie: kd
2663
- }, Rs = ({
2659
+ }, { Text: Zo } = kt, Rs = 400, Pd = yt(Ll), kd = yt(jl), $d = yt(Bl), Nd = {
2660
+ line: Pd,
2661
+ bar: kd,
2662
+ pie: $d
2663
+ }, _s = ({
2664
2664
  type: e,
2665
2665
  data: t,
2666
2666
  isGroup: n,
@@ -2677,7 +2677,7 @@ const Ed = {
2677
2677
  return t.reduce((y, v) => y + v.value, 0);
2678
2678
  }, [t, e]), u = oe(() => {
2679
2679
  if (e === "pie")
2680
- return Vd(t);
2680
+ return Dd(t);
2681
2681
  }, [t, e]), f = P(
2682
2682
  (g) => {
2683
2683
  if (!u)
@@ -2694,7 +2694,7 @@ const Ed = {
2694
2694
  }, [f, u]), p = P(
2695
2695
  ({ percent: g, x: y }) => g < 0.07 ? "" : f(y),
2696
2696
  [f]
2697
- ), h = $d[e], m = oe(() => Nd({
2697
+ ), h = Nd[e], m = oe(() => Md({
2698
2698
  type: e,
2699
2699
  data: t,
2700
2700
  isGroup: n,
@@ -2738,7 +2738,7 @@ const Ed = {
2738
2738
  }
2739
2739
  ) : /* @__PURE__ */ i(ie, { children: `Unknown graph type: ${e}` });
2740
2740
  };
2741
- function Nd(e) {
2741
+ function Md(e) {
2742
2742
  const {
2743
2743
  type: t,
2744
2744
  data: n,
@@ -2750,7 +2750,7 @@ function Nd(e) {
2750
2750
  fixedHeight: c
2751
2751
  } = e;
2752
2752
  let u = { ...Xo[t] };
2753
- if (u || (u = { ...Xo.default }), u.data = n, u.height = c, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...Ed.inner }, u.legend.itemValue = s, u.label.content = a) : (u.xField = "x", u.yField = "value", u.seriesField = "type", u.isGroup = r, o && (u.isStack = !0, u.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
2753
+ if (u || (u = { ...Xo.default }), u.data = n, u.height = c, t === "pie" ? (u.colorField = "x", u.angleField = "value", u = { ...u, ...Vd.inner }, u.legend.itemValue = s, u.label.content = a) : (u.xField = "x", u.yField = "value", u.seriesField = "type", u.isGroup = r, o && (u.isStack = !0, u.groupField = "stacked")), t === "line" && l.mode === "auto" && l.valueOpts) {
2754
2754
  const f = l.valueOpts.min, d = l.valueOpts.max;
2755
2755
  u.yAxis = {
2756
2756
  min: f,
@@ -2759,7 +2759,7 @@ function Nd(e) {
2759
2759
  }
2760
2760
  return u;
2761
2761
  }
2762
- const Md = ({
2762
+ const Ld = ({
2763
2763
  ooui: e,
2764
2764
  model: t,
2765
2765
  domain: n,
@@ -2768,7 +2768,7 @@ const Md = ({
2768
2768
  manualIds: s,
2769
2769
  fixedHeight: a
2770
2770
  }) => {
2771
- const { t: l } = fe(), { error: c, loading: u, values: f, type: d, evaluatedEntries: p, fetchData: h } = Td({
2771
+ const { t: l } = fe(), { error: c, loading: u, values: f, type: d, evaluatedEntries: p, fetchData: h } = Ad({
2772
2772
  model: t,
2773
2773
  ooui: e,
2774
2774
  limit: o,
@@ -2780,10 +2780,10 @@ const Md = ({
2780
2780
  if (At(() => {
2781
2781
  h();
2782
2782
  }, [e, t, o, r, n]), u || !f)
2783
- return /* @__PURE__ */ i(En, {});
2783
+ return /* @__PURE__ */ i(Vn, {});
2784
2784
  const { data: m, isGroup: g, isStack: y, yAxisOpts: v } = f;
2785
2785
  return c ? /* @__PURE__ */ i(ot, { message: c, type: "error", banner: !0 }) : /* @__PURE__ */ i(
2786
- Rs,
2786
+ _s,
2787
2787
  {
2788
2788
  type: d,
2789
2789
  data: m,
@@ -2794,9 +2794,9 @@ const Md = ({
2794
2794
  fixedHeight: a
2795
2795
  }
2796
2796
  );
2797
- }, Pt = 80, lt = Ja(
2797
+ }, Pt = 80, lt = Qa(
2798
2798
  null
2799
- ), Ld = (e) => {
2799
+ ), jd = (e) => {
2800
2800
  const {
2801
2801
  children: t,
2802
2802
  currentView: n,
@@ -2914,7 +2914,7 @@ const Md = ({
2914
2914
  children: t
2915
2915
  }
2916
2916
  );
2917
- }, jd = () => !!ne(lt), wo = () => {
2917
+ }, Bd = () => !!ne(lt), wo = () => {
2918
2918
  const e = ne(lt);
2919
2919
  return e || {
2920
2920
  title: "",
@@ -3003,11 +3003,11 @@ const Md = ({
3003
3003
  setIsInfiniteTree: () => {
3004
3004
  }
3005
3005
  };
3006
- }, Bd = (e, t) => {
3006
+ }, Hd = (e, t) => {
3007
3007
  const { view_id: n, model: r, context: o, domain: s, limit: a, manualIds: l, fixedHeight: c } = e, [u, f] = x(!1), [d, p] = x(), h = ne(
3008
3008
  lt
3009
3009
  ), { setGraphIsLoading: m = void 0 } = h || {}, [g] = Ye(N.getHandler().getView);
3010
- bt(t, () => ({
3010
+ St(t, () => ({
3011
3011
  refresh: () => {
3012
3012
  y();
3013
3013
  }
@@ -3022,14 +3022,14 @@ const Md = ({
3022
3022
  id: n,
3023
3023
  type: "graph",
3024
3024
  context: o
3025
- }), w = qi(v.arch);
3025
+ }), w = Yi(v.arch);
3026
3026
  p(w), f(!1), m == null || m(!1);
3027
3027
  } catch (v) {
3028
3028
  return console.error(v), f(!1), m == null || m(!1), /* @__PURE__ */ i(ie, { children: JSON.stringify(v) });
3029
3029
  }
3030
3030
  }
3031
3031
  if (u || !d)
3032
- return /* @__PURE__ */ i(En, {});
3032
+ return /* @__PURE__ */ i(Vn, {});
3033
3033
  switch (d.type) {
3034
3034
  case "indicatorField":
3035
3035
  case "indicator": {
@@ -3038,7 +3038,7 @@ const Md = ({
3038
3038
  operator: v.operator
3039
3039
  } : {};
3040
3040
  return /* @__PURE__ */ i(
3041
- Cd,
3041
+ xd,
3042
3042
  {
3043
3043
  showPercent: v.showPercent,
3044
3044
  totalDomain: v.totalDomain,
@@ -3058,7 +3058,7 @@ const Md = ({
3058
3058
  case "bar":
3059
3059
  case "pie":
3060
3060
  return /* @__PURE__ */ i(
3061
- Md,
3061
+ Ld,
3062
3062
  {
3063
3063
  model: r,
3064
3064
  context: o,
@@ -3066,15 +3066,15 @@ const Md = ({
3066
3066
  ooui: d,
3067
3067
  limit: a,
3068
3068
  manualIds: l,
3069
- fixedHeight: c || Fs
3069
+ fixedHeight: c || Rs
3070
3070
  }
3071
3071
  );
3072
3072
  default:
3073
3073
  return /* @__PURE__ */ i(ie, { children: `Graph ${d.type} not implemented` });
3074
3074
  }
3075
- }, mn = wt(Bd);
3075
+ }, mn = bt(Hd);
3076
3076
  var pn = /* @__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))(pn || {});
3077
- const rv = Object.values(pn), Hd = (e) => {
3077
+ const rv = Object.values(pn), Ud = (e) => {
3078
3078
  const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: s } = e, [a, l] = x(!1), [c, u] = x(), [f, d] = x(), [p] = Ye(
3079
3079
  N.getHandler().readForView
3080
3080
  ), h = P(async () => {
@@ -3098,10 +3098,10 @@ const rv = Object.values(pn), Hd = (e) => {
3098
3098
  fetchData: h,
3099
3099
  graphData: f
3100
3100
  };
3101
- }, Ud = (e, t) => {
3101
+ }, Wd = (e, t) => {
3102
3102
  const { view_id: n, model: r, context: o, domain: s, manualIds: a, fixedHeight: l } = e, c = ne(
3103
3103
  lt
3104
- ), { setGraphIsLoading: u = void 0 } = c || {}, { error: f, loading: d, graphData: p, fetchData: h } = Hd({
3104
+ ), { setGraphIsLoading: u = void 0 } = c || {}, { error: f, loading: d, graphData: p, fetchData: h } = Ud({
3105
3105
  view_id: n,
3106
3106
  model: r,
3107
3107
  domain: s,
@@ -3110,14 +3110,14 @@ const rv = Object.values(pn), Hd = (e) => {
3110
3110
  });
3111
3111
  if (le(() => {
3112
3112
  u == null || u(d);
3113
- }, [d]), bt(t, () => ({
3113
+ }, [d]), St(t, () => ({
3114
3114
  refresh: () => {
3115
3115
  h();
3116
3116
  }
3117
3117
  })), le(() => {
3118
3118
  h();
3119
3119
  }, [n]), d || !p)
3120
- return /* @__PURE__ */ i(En, {});
3120
+ return /* @__PURE__ */ i(Vn, {});
3121
3121
  if (f)
3122
3122
  return /* @__PURE__ */ i(ot, { className: "mt-10", message: f, type: "error", banner: !0 });
3123
3123
  switch (p.type) {
@@ -3125,7 +3125,7 @@ const rv = Object.values(pn), Hd = (e) => {
3125
3125
  case "indicator": {
3126
3126
  const { value: m, total: g, percent: y, icon: v, color: w, suffix: I } = p;
3127
3127
  return /* @__PURE__ */ i(
3128
- Ts,
3128
+ As,
3129
3129
  {
3130
3130
  value: m,
3131
3131
  totalValue: g,
@@ -3133,7 +3133,7 @@ const rv = Object.values(pn), Hd = (e) => {
3133
3133
  color: w,
3134
3134
  icon: v,
3135
3135
  suffix: I,
3136
- showPercent: Os(y),
3136
+ showPercent: Fs(y),
3137
3137
  fixedHeight: l
3138
3138
  }
3139
3139
  );
@@ -3143,7 +3143,7 @@ const rv = Object.values(pn), Hd = (e) => {
3143
3143
  case "pie": {
3144
3144
  const m = p;
3145
3145
  return /* @__PURE__ */ i(
3146
- Rs,
3146
+ _s,
3147
3147
  {
3148
3148
  type: m.type,
3149
3149
  data: m.data,
@@ -3151,14 +3151,14 @@ const rv = Object.values(pn), Hd = (e) => {
3151
3151
  isStack: m.isStack,
3152
3152
  numItems: m.num_items,
3153
3153
  yAxisOpts: m.yAxisOpts,
3154
- fixedHeight: l || Fs
3154
+ fixedHeight: l || Rs
3155
3155
  }
3156
3156
  );
3157
3157
  }
3158
3158
  default:
3159
3159
  return /* @__PURE__ */ i(ie, { children: `Graph ${p.type} not implemented` });
3160
3160
  }
3161
- }, _s = wt(Ud), Ct = pt.createContext(null), Wd = (e) => {
3161
+ }, Es = bt(Wd), xt = pt.createContext(null), Gd = (e) => {
3162
3162
  const {
3163
3163
  children: t,
3164
3164
  openAction: n,
@@ -3171,7 +3171,7 @@ const rv = Object.values(pn), Hd = (e) => {
3171
3171
  tabs: u
3172
3172
  } = e, [f, d] = x(), [p, h] = x();
3173
3173
  return /* @__PURE__ */ i(
3174
- Ct.Provider,
3174
+ xt.Provider,
3175
3175
  {
3176
3176
  value: {
3177
3177
  openAction: n,
@@ -3190,12 +3190,12 @@ const rv = Object.values(pn), Hd = (e) => {
3190
3190
  children: t
3191
3191
  }
3192
3192
  );
3193
- }, { useToken: Gd } = We, { Text: Kd } = kt, Es = (e) => {
3194
- const { title: t, children: n, action: r, openAction: o, parms: s } = e, { token: a } = Gd(), l = Object.keys(s).length > 0;
3193
+ }, { useToken: Kd } = We, { Text: ei } = kt, Vs = (e) => {
3194
+ const { title: t, children: n, action: r, openAction: o, parms: s, tooltip: a } = e, { token: l } = Kd(), c = Object.keys(s).length > 0;
3195
3195
  return /* @__PURE__ */ D(
3196
3196
  "div",
3197
3197
  {
3198
- className: l ? "shadow-md" : void 0,
3198
+ className: c ? "shadow-md" : void 0,
3199
3199
  style: {
3200
3200
  height: "100%",
3201
3201
  display: "flex",
@@ -3203,7 +3203,7 @@ const rv = Object.values(pn), Hd = (e) => {
3203
3203
  overflow: "hidden",
3204
3204
  border: "1px solid #eee",
3205
3205
  backgroundColor: "white",
3206
- borderRadius: a.borderRadius
3206
+ borderRadius: l.borderRadius
3207
3207
  },
3208
3208
  children: [
3209
3209
  /* @__PURE__ */ D(
@@ -3212,7 +3212,7 @@ const rv = Object.values(pn), Hd = (e) => {
3212
3212
  align: "middle",
3213
3213
  style: {
3214
3214
  borderBottom: "1px solid #ddd",
3215
- backgroundColor: a.colorPrimaryBg
3215
+ backgroundColor: l.colorPrimaryBg
3216
3216
  },
3217
3217
  wrap: !1,
3218
3218
  children: [
@@ -3224,14 +3224,17 @@ const rv = Object.values(pn), Hd = (e) => {
3224
3224
  style: {
3225
3225
  fontWeight: "bold",
3226
3226
  padding: "0.5rem",
3227
- cursor: l ? "grab" : void 0,
3227
+ cursor: c ? "grab" : void 0,
3228
3228
  overflow: "hidden"
3229
3229
  },
3230
- children: /* @__PURE__ */ i(Kd, { ellipsis: !0, children: t })
3230
+ children: a ? /* @__PURE__ */ D(ie, { children: [
3231
+ /* @__PURE__ */ i(wt, { title: a, children: /* @__PURE__ */ i(_n, { className: "pr-1 text-xs" }) }),
3232
+ /* @__PURE__ */ i(ei, { ellipsis: !0, children: t })
3233
+ ] }) : /* @__PURE__ */ i(ei, { ellipsis: !0, children: t })
3231
3234
  }
3232
3235
  ),
3233
3236
  r && /* @__PURE__ */ i(Se, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ i(je, { justify: "end", align: "middle", children: /* @__PURE__ */ i(
3234
- ml,
3237
+ pl,
3235
3238
  {
3236
3239
  style: { cursor: "pointer" },
3237
3240
  onClick: () => {
@@ -3242,22 +3245,22 @@ const rv = Object.values(pn), Hd = (e) => {
3242
3245
  ]
3243
3246
  }
3244
3247
  ),
3245
- !l && /* @__PURE__ */ i("div", { style: { padding: 10 }, children: /* @__PURE__ */ i(Un, { children: n }) }),
3246
- l && /* @__PURE__ */ i(Un, { children: n })
3248
+ !c && /* @__PURE__ */ i("div", { style: { padding: 10 }, children: /* @__PURE__ */ i(Wn, { children: n }) }),
3249
+ c && /* @__PURE__ */ i(Wn, { children: n })
3247
3250
  ]
3248
3251
  }
3249
3252
  );
3250
3253
  }, { useToken: qd } = We, Yd = (e) => {
3251
3254
  const { ooui: t } = e, n = t.actionId !== void 0;
3252
- return /* @__PURE__ */ i(_e, { ooui: t, children: n ? /* @__PURE__ */ i(Un, { children: /* @__PURE__ */ i(Jd, { ooui: t }) }) : /* @__PURE__ */ i(zd, { ooui: t }) });
3255
+ return /* @__PURE__ */ i(_e, { ooui: t, children: n ? /* @__PURE__ */ i(Wn, { children: /* @__PURE__ */ i(Jd, { ooui: t }) }) : /* @__PURE__ */ i(zd, { ooui: t }) });
3253
3256
  }, zd = (e) => {
3254
3257
  const { token: t } = qd(), { ooui: n, value: r } = e, o = /* @__PURE__ */ D(ie, { children: [
3255
3258
  /* @__PURE__ */ D("span", { children: [
3256
3259
  n.label,
3257
3260
  " "
3258
3261
  ] }),
3259
- n.tooltip && /* @__PURE__ */ i(Tt, { title: n.tooltip, children: /* @__PURE__ */ i(
3260
- Qi,
3262
+ n.tooltip && /* @__PURE__ */ i(wt, { title: n.tooltip, children: /* @__PURE__ */ i(
3263
+ Xi,
3261
3264
  {
3262
3265
  className: "pr-1 text-xs",
3263
3266
  style: { color: t.colorPrimaryBg }
@@ -3267,7 +3270,7 @@ const rv = Object.values(pn), Hd = (e) => {
3267
3270
  let a = r;
3268
3271
  n.selectionValues.size ? a = n.selectionValues.get(r) : Array.isArray(r) && (a = r[1]);
3269
3272
  const l = /* @__PURE__ */ i(
3270
- Za,
3273
+ el,
3271
3274
  {
3272
3275
  title: o,
3273
3276
  prefix: s && /* @__PURE__ */ i(s, {}),
@@ -3277,29 +3280,30 @@ const rv = Object.values(pn), Hd = (e) => {
3277
3280
  );
3278
3281
  return n.card ? /* @__PURE__ */ i(Qr, { children: l }) : l;
3279
3282
  }, Jd = (e) => {
3280
- const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = mc(), { actionData: s, treeShortcut: a, loading: l, error: c, fetchData: u } = wd(n), f = mr(
3283
+ const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = pc(), { actionData: s, treeShortcut: a, loading: l, error: c, fetchData: u } = bd(n), f = mr(
3281
3284
  pn.FEATURE_READFORVIEW
3282
3285
  ), d = ne(
3283
- Ct
3286
+ xt
3284
3287
  ), { openShortcut: p } = d || {};
3285
3288
  if (le(() => {
3286
3289
  t && u();
3287
3290
  }, [t, o]), c && c.message !== "active_id_not_found")
3288
- return /* @__PURE__ */ i(Is, { error: c });
3289
- const { id: h, model: m, limit: g, domain: y, context: v, initialView: w, description: I } = s || {}, C = f ? _s : mn, S = I ? /* @__PURE__ */ D(ie, { children: [
3290
- /* @__PURE__ */ i(Tt, { title: I, children: /* @__PURE__ */ i(rr, { className: "pr-1 text-xs" }) }),
3291
+ return /* @__PURE__ */ i(Ts, { error: c });
3292
+ const { id: h, model: m, limit: g, domain: y, context: v, initialView: w, description: I } = s || {}, C = f ? Es : mn, S = I ? /* @__PURE__ */ D(ie, { children: [
3293
+ /* @__PURE__ */ i(wt, { title: I, children: /* @__PURE__ */ i(_n, { className: "pr-1 text-xs" }) }),
3291
3294
  /* @__PURE__ */ i("span", { children: (s == null ? void 0 : s.title) || "" })
3292
3295
  ] }) : /* @__PURE__ */ i("span", { children: (s == null ? void 0 : s.title) || "" });
3293
3296
  return /* @__PURE__ */ D(
3294
- Es,
3297
+ Vs,
3295
3298
  {
3296
3299
  id: h,
3297
3300
  parms: {},
3298
3301
  title: S,
3299
3302
  action: a,
3300
3303
  openAction: p,
3304
+ tooltip: I,
3301
3305
  children: [
3302
- l && /* @__PURE__ */ i(En, {}),
3306
+ l && /* @__PURE__ */ i(Vn, {}),
3303
3307
  !l && /* @__PURE__ */ i(ie, { children: o ? (w == null ? void 0 : w.id) && /* @__PURE__ */ i(
3304
3308
  C,
3305
3309
  {
@@ -3313,14 +3317,14 @@ const rv = Object.values(pn), Hd = (e) => {
3313
3317
  ) : /* @__PURE__ */ i(
3314
3318
  Qd,
3315
3319
  {
3316
- image: ji.PRESENTED_IMAGE_SIMPLE,
3320
+ image: Bi.PRESENTED_IMAGE_SIMPLE,
3317
3321
  imageStyle: { height: 15 }
3318
3322
  }
3319
3323
  ) })
3320
3324
  ]
3321
3325
  }
3322
3326
  );
3323
- }, Qd = ut(ji)`
3327
+ }, Qd = ut(Bi)`
3324
3328
  &.ant-empty.ant-empty-normal {
3325
3329
  margin: 0;
3326
3330
  margin-top: 5px;
@@ -3329,16 +3333,16 @@ const rv = Object.values(pn), Hd = (e) => {
3329
3333
  function Xd(e) {
3330
3334
  return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
3331
3335
  }
3332
- const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs, { ...e }) }), Vs = (e) => {
3336
+ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ds, { ...e }) }), Ds = (e) => {
3333
3337
  const { t } = fe(), { ooui: n, value: r } = e;
3334
- let o = r, s = _n, a = r;
3335
- if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ? Xd(n.label) : `${t("not")} ${n.label.toLowerCase()}`, s = ld), !o)
3338
+ let o = r, s = En, a = r;
3339
+ if (n.selectionValues.size ? o = n.selectionValues.get(r) : Array.isArray(r) ? (a = r[0], o = r[1]) : n.fieldType === "boolean" && (o = r ? Xd(n.label) : `${t("not")} ${n.label.toLowerCase()}`, s = cd), !o)
3336
3340
  return null;
3337
3341
  const l = n.colors === "auto" ? s(a) : n.colors[a] || s(a);
3338
3342
  return /* @__PURE__ */ i(bo, { color: l, children: o });
3339
3343
  }, bo = (e) => {
3340
3344
  let { color: t } = e, n = {};
3341
- return !as(e.color) && !ls(e.color) && (n = {
3345
+ return !ls(e.color) && !cs(e.color) && (n = {
3342
3346
  color: t,
3343
3347
  borderColor: t,
3344
3348
  borderStyle: "solid",
@@ -3401,7 +3405,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3401
3405
  }, S = (A) => {
3402
3406
  const { label: T, closable: R, onClose: b } = A, E = (O) => {
3403
3407
  O.preventDefault(), O.stopPropagation();
3404
- }, F = _n(T);
3408
+ }, F = En(T);
3405
3409
  return /* @__PURE__ */ i(
3406
3410
  bo,
3407
3411
  {
@@ -3433,27 +3437,27 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3433
3437
  case "form":
3434
3438
  return yn;
3435
3439
  case "tree":
3436
- return kn;
3440
+ return $n;
3437
3441
  case "notebook":
3438
3442
  return Fh;
3439
3443
  case "group":
3440
- return Fa;
3444
+ return Ra;
3441
3445
  case "label":
3442
3446
  return lr;
3443
3447
  case "char":
3444
- return us;
3448
+ return fs;
3445
3449
  case "text":
3446
3450
  return _h;
3447
3451
  case "button":
3448
3452
  return mo;
3449
3453
  case "buttonGroup":
3450
- return bc;
3454
+ return Sc;
3451
3455
  case "selection":
3452
- return hs;
3456
+ return gs;
3453
3457
  case "many2one":
3454
3458
  return Xp;
3455
3459
  case "boolean":
3456
- return Lc;
3460
+ return jc;
3457
3461
  case "integer":
3458
3462
  return On;
3459
3463
  case "float":
@@ -3477,7 +3481,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3477
3481
  case "binary":
3478
3482
  return zh;
3479
3483
  case "image":
3480
- return Uc;
3484
+ return Wc;
3481
3485
  case "url":
3482
3486
  return ng;
3483
3487
  case "email":
@@ -3485,9 +3489,9 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3485
3489
  case "float_time":
3486
3490
  return Th;
3487
3491
  case "fiber_grid":
3488
- return Gc;
3492
+ return Kc;
3489
3493
  case "timeline":
3490
- return ud;
3494
+ return fd;
3491
3495
  case "indicator":
3492
3496
  return Yd;
3493
3497
  case "tags":
@@ -3524,7 +3528,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3524
3528
  }
3525
3529
  }, ru = (e) => {
3526
3530
  const { ooui: t } = e, { type: n } = t, r = nu(n);
3527
- return r ? Qa(r, e) : null;
3531
+ return r ? Xa(r, e) : null;
3528
3532
  }, ou = ({
3529
3533
  item: e,
3530
3534
  responsiveBehaviour: t
@@ -3553,7 +3557,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3553
3557
  row: e,
3554
3558
  numberOfColumns: t
3555
3559
  }) => e.map((n) => (n._mustExpand && (n.colspan = t), n)), au = (e, t) => {
3556
- const n = e.map((r) => r instanceof un && r.fieldForLabel || r instanceof cl ? "auto" : "1fr");
3560
+ const n = e.map((r) => r instanceof un && r.fieldForLabel || r instanceof dl ? "auto" : "1fr");
3557
3561
  if (n.length < t) {
3558
3562
  const r = t - n.length;
3559
3563
  for (let o = 0; o < r; o++)
@@ -3619,7 +3623,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3619
3623
  onCancel: t,
3620
3624
  cancelText: n("cancel")
3621
3625
  });
3622
- }, { error: uu } = dt, ei = (e) => {
3626
+ }, { error: uu } = dt, ti = (e) => {
3623
3627
  uu({
3624
3628
  title: e("formHasErrors"),
3625
3629
  icon: /* @__PURE__ */ i($t, {}),
@@ -3629,15 +3633,15 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3629
3633
  }, { warning: fu } = dt, mu = (e, t, n) => {
3630
3634
  fu({
3631
3635
  title: e,
3632
- icon: /* @__PURE__ */ i(Xi, {}),
3636
+ icon: /* @__PURE__ */ i(Zi, {}),
3633
3637
  centered: !0,
3634
3638
  content: t,
3635
3639
  onOk: n
3636
3640
  });
3637
- }, Ds = pt.createContext(null), pu = (e) => {
3641
+ }, Ps = pt.createContext(null), pu = (e) => {
3638
3642
  const { children: t, setTitle: n } = e;
3639
3643
  return /* @__PURE__ */ i(
3640
- Ds.Provider,
3644
+ Ps.Provider,
3641
3645
  {
3642
3646
  value: {
3643
3647
  setTitle: n
@@ -3645,15 +3649,15 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3645
3649
  children: t
3646
3650
  }
3647
3651
  );
3648
- }, gn = pt.createContext(null), ti = async (e) => {
3652
+ }, gn = pt.createContext(null), ni = async (e) => {
3649
3653
  var t;
3650
3654
  for (let n = 0; n < e.length; n++)
3651
3655
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
3652
3656
  }, hu = (e, t) => {
3653
3657
  const { children: n, globalValues: r = {} } = e, o = Y(), s = Y(), [a, l] = x(!1), c = ne(
3654
- Ct
3658
+ xt
3655
3659
  ), { openAction: u } = c || {}, f = Y([]), { t: d } = fe();
3656
- bt(t, () => ({
3660
+ St(t, () => ({
3657
3661
  openActionModal: C
3658
3662
  }));
3659
3663
  const [p, h] = x(!1), [m, g] = x(
@@ -3726,7 +3730,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3726
3730
  return await I({ actionData: T, fields: R, values: b, context: E });
3727
3731
  if (O === "ir.actions.act_url")
3728
3732
  window.open(
3729
- cd(T.url, { ...b, context: E }),
3733
+ dd(T.url, { ...b, context: E }),
3730
3734
  "_blank"
3731
3735
  );
3732
3736
  else
@@ -3820,7 +3824,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3820
3824
  }), h(!1), await new Promise((O) => setTimeout(O, 300)), g({ domain: T, model: R, context: E, formView: b, actionData: F }), h(!0);
3821
3825
  }
3822
3826
  async function A() {
3823
- ti(f.current), f.current = [], h(!1), g({
3827
+ ni(f.current), f.current = [], h(!1), g({
3824
3828
  domain: void 0,
3825
3829
  model: void 0,
3826
3830
  context: {},
@@ -3860,7 +3864,7 @@ const Zd = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Vs,
3860
3864
  visible: p,
3861
3865
  onSubmitSucceed: A,
3862
3866
  onCancel: () => {
3863
- ti(f.current), f.current = [], h(!1), g({
3867
+ ni(f.current), f.current = [], h(!1), g({
3864
3868
  domain: void 0,
3865
3869
  model: void 0,
3866
3870
  context: {},
@@ -3927,12 +3931,12 @@ async function gu({
3927
3931
  }
3928
3932
  return { views: s, initialView: a };
3929
3933
  }
3930
- const yu = wt(hu), vu = (e, t) => {
3934
+ const yu = bt(hu), vu = (e, t) => {
3931
3935
  const n = {};
3932
3936
  return Object.keys(e).forEach((r) => {
3933
3937
  n[r] = e[r], t != null && t[r] && (n[r].context = t[r]);
3934
3938
  }), n;
3935
- }, Ps = () => {
3939
+ }, ks = () => {
3936
3940
  const [e, t] = x(!document.hidden);
3937
3941
  return le(() => {
3938
3942
  const n = () => {
@@ -3953,7 +3957,7 @@ const yu = wt(hu), vu = (e, t) => {
3953
3957
  isActive: l
3954
3958
  } = e, c = Y(null), [u, f] = x(!0), [d, p] = Ye(
3955
3959
  N.getHandler().readObjects
3956
- ), h = Ps();
3960
+ ), h = ks();
3957
3961
  le(() => {
3958
3962
  l === !1 && g(), (l === void 0 || l === !0) && !h && g(), (l === void 0 || l === !0) && h && y();
3959
3963
  }, [l, h]);
@@ -4024,7 +4028,7 @@ function Cu(e, t) {
4024
4028
  forcedValues: A = {},
4025
4029
  parentWidth: T,
4026
4030
  onMustRefreshParent: R
4027
- } = e, { t: b } = fe(), [E, F] = x(!1), [O, k] = x(), [_, $] = x(), [L] = ht.useForm(), [W, B] = x(), [V, Z] = x(), ee = ne(Ds), [J, H] = x(), [re, te] = x(!1), G = Y(), M = Y({}), j = Y({}), he = Y(!1), z = Y(!1), Q = Y(!1), Oe = (T !== void 0 ? T : J) < Su, De = ne(Ue), { activeId: $e, getPlainValues: Ee } = De || {}, Pe = Y(!1), Be = ne(
4031
+ } = e, { t: b } = fe(), [E, F] = x(!1), [O, k] = x(), [_, $] = x(), [L] = ht.useForm(), [W, B] = x(), [V, Z] = x(), ee = ne(Ps), [J, H] = x(), [re, te] = x(!1), G = Y(), M = Y({}), j = Y({}), he = Y(!1), z = Y(!1), Q = Y(!1), Oe = (T !== void 0 ? T : J) < Su, De = ne(Ue), { activeId: $e, getPlainValues: Ee } = De || {}, Pe = Y(!1), Be = ne(
4028
4032
  lt
4029
4033
  ), {
4030
4034
  setFormIsSaving: Te = void 0,
@@ -4038,12 +4042,12 @@ function Cu(e, t) {
4038
4042
  } = (C ? Be : {}) || {}, qe = ne(
4039
4043
  gn
4040
4044
  ), { processAction: Ne, globalValues: be } = qe || {};
4041
- bt(t, () => ({
4045
+ St(t, () => ({
4042
4046
  submitForm: zt,
4043
4047
  getFields: Ie,
4044
4048
  getValues: we,
4045
4049
  getPlainValues: ke,
4046
- getContext: xt,
4050
+ getContext: It,
4047
4051
  fetchValues: ze,
4048
4052
  cancelUnsavedChanges: _t,
4049
4053
  clearAndReload: () => {
@@ -4100,7 +4104,7 @@ function Cu(e, t) {
4100
4104
  U[K] === void 0 && delete U[K];
4101
4105
  return U;
4102
4106
  }
4103
- function xt() {
4107
+ function It() {
4104
4108
  return { ...v, ..._ == null ? void 0 : _.context };
4105
4109
  }
4106
4110
  function Ot() {
@@ -4120,7 +4124,7 @@ function Cu(e, t) {
4120
4124
  context: { ...v, ...K },
4121
4125
  extraValues: S
4122
4126
  });
4123
- }, It = () => Object.keys(
4127
+ }, Tt = () => Object.keys(
4124
4128
  Sr({
4125
4129
  source: M.current,
4126
4130
  target: Re(V),
@@ -4161,17 +4165,17 @@ function Cu(e, t) {
4161
4165
  }
4162
4166
  }, ze = async (U) => {
4163
4167
  let K, ae, ce, Ae;
4164
- ue == null || ue(!0), k(void 0), U != null && U.fields ? (ae = U.fields, ce = U.arch) : (ae = V, ce = W), h && (U == null ? void 0 : U.forceRefresh) !== !0 ? K = h : { values: K, defaultGetCalled: Ae } = await $n({
4168
+ ue == null || ue(!0), k(void 0), U != null && U.fields ? (ae = U.fields, ce = U.arch) : (ae = V, ce = W), h && (U == null ? void 0 : U.forceRefresh) !== !0 ? K = h : { values: K, defaultGetCalled: Ae } = await Nn({
4165
4169
  fields: ae,
4166
4170
  arch: ce
4167
- }), w && (K = { ...sd(w), ...K }), M.current = en(K, ae), vt({
4171
+ }), w && (K = { ...ad(w), ...K }), M.current = en(K, ae), vt({
4168
4172
  values: K,
4169
4173
  fields: ae,
4170
4174
  reset: !0,
4171
4175
  isDefaultGet: Ae
4172
4176
  }), Nt({ fields: ae, arch: ce, values: K }), ue == null || ue(!1), de == null || de(!1), Ae && te(!0);
4173
4177
  }, _t = async () => new Promise(async (U) => {
4174
- It() ? hn({
4178
+ Tt() ? hn({
4175
4179
  t: b,
4176
4180
  onOk: () => {
4177
4181
  Me == null || Me(), U(!0);
@@ -4200,15 +4204,15 @@ function Cu(e, t) {
4200
4204
  reset: ae,
4201
4205
  isDefaultGet: ce = !1
4202
4206
  }) => {
4203
- const Ze = { ...ae ? {} : L.getFieldsValue(!0), ...U }, vr = en(Ze, K), qa = Object.keys(K).map((wr) => ({
4207
+ const Ze = { ...ae ? {} : L.getFieldsValue(!0), ...U }, vr = en(Ze, K), Ya = Object.keys(K).map((wr) => ({
4204
4208
  name: wr,
4205
4209
  touched: !1,
4206
4210
  value: vr[wr] !== void 0 ? vr[wr] : void 0
4207
4211
  }));
4208
- ce || (j.current = vr), L.setFields(qa);
4212
+ ce || (j.current = vr), L.setFields(Ya);
4209
4213
  },
4210
4214
  [L]
4211
- ), $n = async ({
4215
+ ), Nn = async ({
4212
4216
  fields: U,
4213
4217
  arch: K
4214
4218
  }) => {
@@ -4232,7 +4236,7 @@ function Cu(e, t) {
4232
4236
  ["res_id", "=", ye()]
4233
4237
  ],
4234
4238
  fieldsToRetrieve: ["id", "name"],
4235
- context: xt(),
4239
+ context: It(),
4236
4240
  model: "ir.attachment"
4237
4241
  });
4238
4242
  Fe == null || Fe(Ze);
@@ -4270,13 +4274,13 @@ function Cu(e, t) {
4270
4274
  G.current = ce, M.current = ae;
4271
4275
  }
4272
4276
  g && await g([ye()]), !y && K && (me == null || me(ye(), we(), Qe()));
4273
- }, Nn = async (U) => {
4277
+ }, Mn = async (U) => {
4274
4278
  const { callOnSubmitSucceed: K = !0 } = U || {};
4275
4279
  !y && K && (me == null || me(ye(), we(), Qe()));
4276
4280
  }, zt = async (U) => {
4277
4281
  let K = !1;
4278
4282
  const { callOnSubmitSucceed: ae = !0 } = U || {};
4279
- if (z.current = !0, k(void 0), Q.current && !It() && ye() && ae) {
4283
+ if (z.current = !0, k(void 0), Q.current && !Tt() && ye() && ae) {
4280
4284
  z.current = !1, de == null || de(!1), me == null || me(
4281
4285
  ye(),
4282
4286
  we(),
@@ -4286,13 +4290,13 @@ function Cu(e, t) {
4286
4290
  const ce = ye();
4287
4291
  return d && (G.current = void 0, vt({ values: {}, fields: V, reset: !0 })), { succeed: !0, id: ce };
4288
4292
  }
4289
- if (!It() && ye() && ae)
4293
+ if (!Tt() && ye() && ae)
4290
4294
  return z.current = !1, de == null || de(!1), Me == null || Me(), { succeed: !0, id: ye() };
4291
4295
  if (await Ge())
4292
- return z.current = !1, ei(b), { succeed: !1, id: ye() };
4296
+ return z.current = !1, ti(b), { succeed: !1, id: ye() };
4293
4297
  F(!0), Te == null || Te(!0);
4294
4298
  try {
4295
- p === "api" ? await bn(U) : await Nn(U), d && (G.current = void 0, vt({ values: {}, fields: V, reset: !0 })), await ze({ forceRefresh: !0 }), K = !0, br.success(b("savedRegisters"));
4299
+ p === "api" ? await bn(U) : await Mn(U), d && (G.current = void 0, vt({ values: {}, fields: V, reset: !0 })), await ze({ forceRefresh: !0 }), K = !0, br.success(b("savedRegisters"));
4296
4300
  } catch (ce) {
4297
4301
  z.current = !1, F(!1), Te == null || Te(!1), Je == null || Je(ce), br.error(b("errorWhileSavingForm")), k(ce != null && ce.message ? ce.message : ce);
4298
4302
  } finally {
@@ -4306,10 +4310,10 @@ function Cu(e, t) {
4306
4310
  values: ae,
4307
4311
  operationInProgress: ce = !1
4308
4312
  }) => {
4309
- const Ae = new Yi(U);
4313
+ const Ae = new zi(U);
4310
4314
  return Ae.parse(K, {
4311
4315
  readOnly: f || ce,
4312
- values: zc(
4316
+ values: Jc(
4313
4317
  {
4314
4318
  ...ae,
4315
4319
  ...mt()
@@ -4346,7 +4350,7 @@ function Cu(e, t) {
4346
4350
  target: Re(V),
4347
4351
  fields: V
4348
4352
  }), ae = Object.keys(K);
4349
- if (ae.length !== 0 && !(od({
4353
+ if (ae.length !== 0 && !(id({
4350
4354
  changedFields: ae,
4351
4355
  formOoui: _,
4352
4356
  types: [
@@ -4362,18 +4366,18 @@ function Cu(e, t) {
4362
4366
  ]
4363
4367
  }) && U !== !0)) {
4364
4368
  const ce = en(L.getFieldsValue(!0), V);
4365
- j.current = ce, c == null || c(ce), de == null || de(!0), Na(ae);
4369
+ j.current = ce, c == null || c(ce), de == null || de(!0), Ma(ae);
4366
4370
  }
4367
- }, $a = Nl(gr, 100), Na = async (U) => {
4371
+ }, Na = Ml(gr, 100), Ma = async (U) => {
4368
4372
  try {
4369
4373
  for (let K = 0; K < U.length; K += 1) {
4370
4374
  const ae = U[K];
4371
- await Ma(ae);
4375
+ await La(ae);
4372
4376
  }
4373
4377
  } catch (K) {
4374
4378
  st(K);
4375
4379
  }
4376
- }, Ma = async (U) => {
4380
+ }, La = async (U) => {
4377
4381
  const K = _ == null ? void 0 : _.onChangeFields[U];
4378
4382
  if (!K) {
4379
4383
  Nt({
@@ -4383,7 +4387,7 @@ function Cu(e, t) {
4383
4387
  });
4384
4388
  return;
4385
4389
  }
4386
- const ae = ad({
4390
+ const ae = ld({
4387
4391
  values: {
4388
4392
  ...Re(V),
4389
4393
  context: {
@@ -4404,7 +4408,7 @@ function Cu(e, t) {
4404
4408
  const Ae = {
4405
4409
  ...Re(V),
4406
4410
  ...ce.value
4407
- }, Ze = Jc({
4411
+ }, Ze = Qc({
4408
4412
  values: Ae,
4409
4413
  fields: V
4410
4414
  });
@@ -4425,7 +4429,7 @@ function Cu(e, t) {
4425
4429
  });
4426
4430
  }
4427
4431
  if (ce.domain && Object.keys(ce.domain).length > 0) {
4428
- const Ae = id({
4432
+ const Ae = sd({
4429
4433
  fieldsDomain: ce.domain,
4430
4434
  fields: V
4431
4435
  });
@@ -4436,7 +4440,7 @@ function Cu(e, t) {
4436
4440
  }), Z(Ae);
4437
4441
  }
4438
4442
  };
4439
- async function La({
4443
+ async function ja({
4440
4444
  action: U,
4441
4445
  context: K
4442
4446
  }) {
@@ -4467,7 +4471,7 @@ function Cu(e, t) {
4467
4471
  } else
4468
4472
  await ze({ forceRefresh: !0 });
4469
4473
  }
4470
- async function ja({ action: U }) {
4474
+ async function Ba({ action: U }) {
4471
4475
  const K = await N.getHandler().executeWorkflow({
4472
4476
  model: n,
4473
4477
  action: U,
@@ -4475,7 +4479,7 @@ function Cu(e, t) {
4475
4479
  });
4476
4480
  K.type && K.type === "ir.actions.act_window_close" ? me == null || me(ye(), we(), Qe()) : await ze({ forceRefresh: !0 });
4477
4481
  }
4478
- async function Ba({
4482
+ async function Ha({
4479
4483
  action: U,
4480
4484
  context: K
4481
4485
  }) {
@@ -4505,7 +4509,7 @@ function Cu(e, t) {
4505
4509
  })) || {};
4506
4510
  !C && ae && (me == null || me(ye(), we(), Qe()));
4507
4511
  }
4508
- function Ha() {
4512
+ function Ua() {
4509
4513
  gr({ elementHasLostFocus: !0 });
4510
4514
  }
4511
4515
  function yr(U) {
@@ -4516,7 +4520,7 @@ function Cu(e, t) {
4516
4520
  operationInProgress: U
4517
4521
  });
4518
4522
  }
4519
- const Ua = P(
4523
+ const Wa = P(
4520
4524
  (U) => {
4521
4525
  if (!W)
4522
4526
  return;
@@ -4538,10 +4542,10 @@ function Cu(e, t) {
4538
4542
  context: v,
4539
4543
  autorefreshableFields: _ == null ? void 0 : _.autorefreshableFields,
4540
4544
  fieldDefs: V,
4541
- onAutorefreshableFieldsChange: Ua,
4545
+ onAutorefreshableFieldsChange: Wa,
4542
4546
  isActive: xe
4543
4547
  });
4544
- async function Wa({
4548
+ async function Ga({
4545
4549
  type: U,
4546
4550
  action: K,
4547
4551
  context: ae
@@ -4551,20 +4555,20 @@ function Cu(e, t) {
4551
4555
  return;
4552
4556
  }
4553
4557
  if (await Ge()) {
4554
- ei(b);
4558
+ ti(b);
4555
4559
  return;
4556
4560
  }
4557
4561
  let ce = !1;
4558
4562
  try {
4559
- !f && (It() || ye() === void 0) && (ce = !0, yr(!0), p === "2many" ? (await bn({ callOnSubmitSucceed: !1 }), Q.current = !0) : await zt({ callOnSubmitSucceed: !1 }));
4563
+ !f && (Tt() || ye() === void 0) && (ce = !0, yr(!0), p === "2many" ? (await bn({ callOnSubmitSucceed: !1 }), Q.current = !0) : await zt({ callOnSubmitSucceed: !1 }));
4560
4564
  const Ae = Q.current ? Ot() : {}, Ze = { ...ae, ...Ae };
4561
- U === "object" ? await La({ action: K, context: Ze }) : U === "workflow" ? await ja({ action: K }) : U === "action" && await Ba({ action: K, context: Ze }), ce && yr(!1);
4565
+ U === "object" ? await ja({ action: K, context: Ze }) : U === "workflow" ? await Ba({ action: K }) : U === "action" && await Ha({ action: K, context: Ze }), ce && yr(!1);
4562
4566
  } catch (Ae) {
4563
4567
  ce && yr(!1), st(Ae);
4564
4568
  }
4565
4569
  }
4566
- const Ga = () => !_ && !O ? /* @__PURE__ */ i(Ke, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(ie, { children: /* @__PURE__ */ i(
4567
- fc,
4570
+ const Ka = () => !_ && !O ? /* @__PURE__ */ i(Ke, {}) : !n && !m || !I ? null : /* @__PURE__ */ i(ie, { children: /* @__PURE__ */ i(
4571
+ mc,
4568
4572
  {
4569
4573
  getValues: we,
4570
4574
  getPlainValues: ke,
@@ -4574,19 +4578,19 @@ function Cu(e, t) {
4574
4578
  activeModel: n,
4575
4579
  setFieldValue: ct,
4576
4580
  getFieldValue: pe,
4577
- executeButtonAction: Wa,
4578
- getContext: xt,
4581
+ executeButtonAction: Ga,
4582
+ getContext: It,
4579
4583
  submitForm: zt,
4580
4584
  fetchValues: ze,
4581
- formHasChanges: It,
4582
- elementHasLostFocus: Ha,
4585
+ formHasChanges: Tt,
4586
+ elementHasLostFocus: Ua,
4583
4587
  formView: m,
4584
4588
  children: /* @__PURE__ */ i(
4585
4589
  ht,
4586
4590
  {
4587
4591
  form: L,
4588
4592
  onFieldsChange: () => {
4589
- $a({ elementHasLostFocus: !1 });
4593
+ Na({ elementHasLostFocus: !1 });
4590
4594
  },
4591
4595
  component: !1,
4592
4596
  children: _ && /* @__PURE__ */ i(
@@ -4599,8 +4603,8 @@ function Cu(e, t) {
4599
4603
  }
4600
4604
  )
4601
4605
  }
4602
- ) }), Ka = () => /* @__PURE__ */ D(ie, { children: [
4603
- /* @__PURE__ */ i(Qn, {}),
4606
+ ) }), qa = () => /* @__PURE__ */ D(ie, { children: [
4607
+ /* @__PURE__ */ i(Xn, {}),
4604
4608
  /* @__PURE__ */ i(je, { justify: "end", children: /* @__PURE__ */ D(Xe, { children: [
4605
4609
  /* @__PURE__ */ i(
4606
4610
  He,
@@ -4618,7 +4622,7 @@ function Cu(e, t) {
4618
4622
  {
4619
4623
  disabled: E || f,
4620
4624
  loading: E,
4621
- icon: /* @__PURE__ */ i(tr, {}),
4625
+ icon: /* @__PURE__ */ i(nr, {}),
4622
4626
  onClick: async () => {
4623
4627
  await zt();
4624
4628
  },
@@ -4637,14 +4641,14 @@ function Cu(e, t) {
4637
4641
  H((K = U.bounds) == null ? void 0 : K.width);
4638
4642
  },
4639
4643
  children: ({ measureRef: U }) => /* @__PURE__ */ D("div", { className: "pb-2", ref: U, children: [
4640
- O && /* @__PURE__ */ i(Is, { className: "mt-5 mb-10", error: O }),
4641
- Ga(),
4642
- a && Ka()
4644
+ O && /* @__PURE__ */ i(Ts, { className: "mt-5 mb-10", error: O }),
4645
+ Ka(),
4646
+ a && qa()
4643
4647
  ] })
4644
4648
  }
4645
4649
  ) : null;
4646
4650
  }
4647
- const yn = wt(Cu), vn = (e) => {
4651
+ const yn = bt(Cu), vn = (e) => {
4648
4652
  const {
4649
4653
  visible: t,
4650
4654
  id: n,
@@ -4689,7 +4693,7 @@ const yn = wt(Cu), vn = (e) => {
4689
4693
  He,
4690
4694
  {
4691
4695
  type: h ? "primary" : "default",
4692
- icon: h ? /* @__PURE__ */ i(pl, { style: { color: "white" } }) : /* @__PURE__ */ i(hl, {}),
4696
+ icon: h ? /* @__PURE__ */ i(hl, { style: { color: "white" } }) : /* @__PURE__ */ i(gl, {}),
4693
4697
  style: { width: 30 },
4694
4698
  onClick: A
4695
4699
  }
@@ -4733,8 +4737,8 @@ const yn = wt(Cu), vn = (e) => {
4733
4737
  }, $r = (e) => {
4734
4738
  const t = e.message ? JSON.stringify(e.message) : JSON.stringify(e);
4735
4739
  Wt(t);
4736
- }, ks = () => {
4737
- const { modal: e } = el.useApp();
4740
+ }, $s = () => {
4741
+ const { modal: e } = tl.useApp();
4738
4742
  return P(
4739
4743
  (t) => {
4740
4744
  const n = t.message ? JSON.stringify(t.message) : JSON.stringify(t);
@@ -4747,7 +4751,7 @@ const yn = wt(Cu), vn = (e) => {
4747
4751
  },
4748
4752
  [e]
4749
4753
  );
4750
- }, $s = ({
4754
+ }, Ns = ({
4751
4755
  model: e,
4752
4756
  formViewProps: t,
4753
4757
  treeViewProps: n,
@@ -4795,7 +4799,7 @@ function Iu(e) {
4795
4799
  return 0;
4796
4800
  }
4797
4801
  }
4798
- function Ns(e) {
4802
+ function Ms(e) {
4799
4803
  if (e === void 0)
4800
4804
  return;
4801
4805
  let t, n = Math.floor(Math.abs(e)), r = Math.round(Math.abs(e) % 1 * 100) / 100;
@@ -4811,7 +4815,7 @@ function Ns(e) {
4811
4815
  });
4812
4816
  return t = `${o}:${s}`, e < 0 && (t = "-" + t), t;
4813
4817
  }
4814
- const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms, {}) }), Ms = ({ value: e }) => {
4818
+ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ls, {}) }), Ls = ({ value: e }) => {
4815
4819
  const t = `${(e || 0).toLocaleString("en-US", {
4816
4820
  minimumIntegerDigits: 1,
4817
4821
  maximumFractionDigits: 4,
@@ -4821,7 +4825,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
4821
4825
  /* @__PURE__ */ i(Au, { percent: e }),
4822
4826
  /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: t })
4823
4827
  ] });
4824
- }, Au = ut(tl)`
4828
+ }, Au = ut(nl)`
4825
4829
  .ant-progress-outer {
4826
4830
  margin-right: 0px;
4827
4831
  padding-right: 0px;
@@ -4871,7 +4875,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
4871
4875
  }, [l, e]);
4872
4876
  return /* @__PURE__ */ D(Rn, { children: [
4873
4877
  /* @__PURE__ */ i(
4874
- El,
4878
+ Vl,
4875
4879
  {
4876
4880
  onRetrieveData: f,
4877
4881
  onItemClick: (d) => {
@@ -4907,7 +4911,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
4907
4911
  ] });
4908
4912
  }, Co = (e) => {
4909
4913
  const { id: t, model: n, context: r = {} } = e, [o, s] = x(), [a, l] = x(), c = ne(
4910
- Ct
4914
+ xt
4911
4915
  ), { openRelate: u } = c || {}, f = ne(
4912
4916
  gn
4913
4917
  ), { processAction: d } = f || {}, [p, h] = Ye(
@@ -4987,7 +4991,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
4987
4991
  const s = t[o];
4988
4992
  return (s == null ? void 0 : s.flatMap((a) => {
4989
4993
  const l = [];
4990
- return "context" in a && l.push(...dl(a.context)), "domain" in a && l.push(...ul(a.domain)), l;
4994
+ return "context" in a && l.push(...ul(a.context)), "domain" in a && l.push(...fl(a.domain)), l;
4991
4995
  })) || [];
4992
4996
  });
4993
4997
  return [
@@ -5017,7 +5021,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5017
5021
  }, [t]), !t && !a)
5018
5022
  return /* @__PURE__ */ i(ie, {});
5019
5023
  if (a)
5020
- return /* @__PURE__ */ i(St, {});
5024
+ return /* @__PURE__ */ i(Ct, {});
5021
5025
  const p = r.get(c);
5022
5026
  return /* @__PURE__ */ D(Xe, { children: [
5023
5027
  /* @__PURE__ */ i(ie, { children: `${p}:` }),
@@ -5030,12 +5034,12 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5030
5034
  return null;
5031
5035
  let r = n;
5032
5036
  t.selectionValues.size ? r = t.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
5033
- const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = _n(r);
5034
- return /* @__PURE__ */ i(Tt, { title: r, children: /* @__PURE__ */ i(Bi, { alt: r, style: { backgroundColor: s }, children: o }) });
5037
+ const o = r.toString().split(" ").filter((a) => a.length > 1).slice(0, 3).map((a) => a[0].toUpperCase()).join(""), s = En(r);
5038
+ return /* @__PURE__ */ i(wt, { title: r, children: /* @__PURE__ */ i(Hi, { alt: r, style: { backgroundColor: s }, children: o }) });
5035
5039
  }, Vu = {
5036
- en_US: Ql,
5037
- es_ES: Xl,
5038
- ca_ES: Zl
5040
+ en_US: Xl,
5041
+ es_ES: Zl,
5042
+ ca_ES: ec
5039
5043
  }, xo = () => {
5040
5044
  const { locale: e } = fe();
5041
5045
  return Vu[e];
@@ -5050,7 +5054,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5050
5054
  dateDisplayFormat: "DD/MM/YYYY HH:mm:ss",
5051
5055
  dateInternalFormat: "YYYY-MM-DD HH:mm:ss"
5052
5056
  }
5053
- }, Ls = (e) => {
5057
+ }, js = (e) => {
5054
5058
  const { ooui: t, showTime: n = !1 } = e, { required: r } = t;
5055
5059
  return /* @__PURE__ */ i(_e, { required: r, ...e, children: /* @__PURE__ */ i(Pu, { ooui: t, showTime: n }) });
5056
5060
  }, Pu = (e) => {
@@ -5081,7 +5085,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5081
5085
  locale: u
5082
5086
  }
5083
5087
  );
5084
- }, js = ({
5088
+ }, Bs = ({
5085
5089
  emails: e,
5086
5090
  handleClose: t
5087
5091
  }) => {
@@ -5092,7 +5096,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5092
5096
  Xr,
5093
5097
  {
5094
5098
  closable: !!t,
5095
- color: ec.isEmail(r) ? void 0 : "error",
5099
+ color: tc.isEmail(r) ? void 0 : "error",
5096
5100
  onClose: () => t && t(r),
5097
5101
  children: r
5098
5102
  },
@@ -5146,7 +5150,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5146
5150
  },
5147
5151
  children: [
5148
5152
  /* @__PURE__ */ i(
5149
- js,
5153
+ Bs,
5150
5154
  {
5151
5155
  emails: s,
5152
5156
  handleClose: r ? void 0 : g
@@ -5195,7 +5199,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5195
5199
  [e]
5196
5200
  ), Nu = ({
5197
5201
  value: e
5198
- }) => oe(() => /* @__PURE__ */ i(js, { emails: e }), [e]), Mu = ({ value: e }) => oe(() => /* @__PURE__ */ i(Ru, { m2oField: e }), [e]), Lu = ({ value: e }) => oe(
5202
+ }) => oe(() => /* @__PURE__ */ i(Bs, { emails: e }), [e]), Mu = ({ value: e }) => oe(() => /* @__PURE__ */ i(Ru, { m2oField: e }), [e]), Lu = ({ value: e }) => oe(
5199
5203
  () => /* @__PURE__ */ i(
5200
5204
  In,
5201
5205
  {
@@ -5219,14 +5223,14 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5219
5223
  Rt.time.dateInternalFormat
5220
5224
  ).format(Rt.time.dateDisplayFormat);
5221
5225
  return /* @__PURE__ */ i(ie, { children: t });
5222
- }, [e]), ni = ({
5226
+ }, [e]), ri = ({
5223
5227
  value: e
5224
5228
  }) => oe(() => {
5225
5229
  const t = Array.isArray(e == null ? void 0 : e.items) ? e == null ? void 0 : e.items.length : 0;
5226
5230
  return /* @__PURE__ */ i(ie, { children: `( ${t} )` });
5227
5231
  }, [e]), Hu = ({
5228
5232
  value: e
5229
- }) => oe(() => /* @__PURE__ */ i(Ms, { value: e }), [e]), Uu = ({ value: e }) => oe(() => /* @__PURE__ */ i(ie, { children: Ns(e) }), [e]), ri = ({ value: e }) => oe(
5233
+ }) => oe(() => /* @__PURE__ */ i(Ls, { value: e }), [e]), Uu = ({ value: e }) => oe(() => /* @__PURE__ */ i(ie, { children: Ms(e) }), [e]), oi = ({ value: e }) => oe(
5230
5234
  () => /* @__PURE__ */ i("div", { style: { textAlign: "right" }, children: e }),
5231
5235
  [e]
5232
5236
  ), Wu = ({ value: e }) => oe(
@@ -5237,7 +5241,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5237
5241
  key: t,
5238
5242
  ooui: n,
5239
5243
  context: r
5240
- }) => oe(() => /* @__PURE__ */ i(Vs, { ooui: n, value: e }), [n, e]), Ku = ({
5244
+ }) => oe(() => /* @__PURE__ */ i(Ds, { ooui: n, value: e }), [n, e]), Ku = ({
5241
5245
  value: e,
5242
5246
  key: t,
5243
5247
  ooui: n,
@@ -5294,7 +5298,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5294
5298
  }, [e == null ? void 0 : e.items]);
5295
5299
  const d = oe(
5296
5300
  () => o.map((p) => {
5297
- const { id: h, name: m } = p, g = _n(m);
5301
+ const { id: h, name: m } = p, g = En(m);
5298
5302
  return /* @__PURE__ */ i(bo, { color: g, children: m }, `${h}`);
5299
5303
  }),
5300
5304
  [o]
@@ -5314,13 +5318,13 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5314
5318
  boolean: $u,
5315
5319
  many2one: Mu,
5316
5320
  text: Lu,
5317
- one2many: ni,
5318
- many2many: ni,
5321
+ one2many: ri,
5322
+ many2many: ri,
5319
5323
  progressbar: Hu,
5320
5324
  float_time: Uu,
5321
5325
  image: Wu,
5322
- integer: ri,
5323
- float: ri,
5326
+ integer: oi,
5327
+ float: oi,
5324
5328
  reference: qu,
5325
5329
  tag: Gu,
5326
5330
  selection: Ku,
@@ -5425,7 +5429,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5425
5429
  [e]
5426
5430
  );
5427
5431
  return { getColumnState: a, updateColumnState: l };
5428
- }, Bs = (e) => {
5432
+ }, Hs = (e) => {
5429
5433
  const [t, n] = x(!0), r = Y(void 0), o = Y(!1), { getColumnState: s, updateColumnState: a } = Zu(e);
5430
5434
  return le(() => {
5431
5435
  if (!e) {
@@ -5445,7 +5449,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5445
5449
  }
5446
5450
  })();
5447
5451
  }, [s, e]), { getColumnState: P(() => r.current, []), loading: t, updateColumnState: a };
5448
- }, ef = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, oi = ["sum", "count", "max", "min"], Hs = ({
5452
+ }, ef = (e) => e.model ? `columnState-${e.treeViewId ?? "tree"}-${e.model}` : void 0, ii = ["sum", "count", "max", "min"], Us = ({
5449
5453
  ooui: e,
5450
5454
  model: t,
5451
5455
  domain: n,
@@ -5457,9 +5461,9 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5457
5461
  if (e)
5458
5462
  return e.columns.filter((h) => Object.keys(h).some((m) => {
5459
5463
  var g;
5460
- return h[m] !== void 0 && ((g = h[m]) == null ? void 0 : g.length) > 0 && oi.includes(m.slice(1));
5464
+ return h[m] !== void 0 && ((g = h[m]) == null ? void 0 : g.length) > 0 && ii.includes(m.slice(1));
5461
5465
  })).map((h) => {
5462
- const m = Object.keys(h).filter((g) => oi.includes(g.slice(1))).map((g) => g.slice(1));
5466
+ const m = Object.keys(h).filter((g) => ii.includes(g.slice(1))).map((g) => g.slice(1));
5463
5467
  return {
5464
5468
  [h.id]: m
5465
5469
  };
@@ -5522,7 +5526,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5522
5526
  }, [f, n]);
5523
5527
  const p = f !== void 0 && Object.keys(f).length > 0;
5524
5528
  return [a, o, p];
5525
- }, Us = ({
5529
+ }, Ws = ({
5526
5530
  aggregates: e,
5527
5531
  isLoading: t
5528
5532
  }) => {
@@ -5538,12 +5542,12 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5538
5542
  paddingLeft: 2
5539
5543
  },
5540
5544
  children: [
5541
- t && /* @__PURE__ */ i(St, {}),
5545
+ t && /* @__PURE__ */ i(Ct, {}),
5542
5546
  !t && n && n.join(", ")
5543
5547
  ]
5544
5548
  }
5545
5549
  );
5546
- }, { Text: ii } = kt, tf = ({
5550
+ }, { Text: si } = kt, tf = ({
5547
5551
  totalRows: e,
5548
5552
  selectedRowKeys: t,
5549
5553
  allRowSelectedMode: n
@@ -5574,7 +5578,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5574
5578
  t("selectedRegisters"),
5575
5579
  " - (id:",
5576
5580
  " ",
5577
- /* @__PURE__ */ i(ii, { copyable: !0, children: e[0] }),
5581
+ /* @__PURE__ */ i(si, { copyable: !0, children: e[0] }),
5578
5582
  ")"
5579
5583
  ] });
5580
5584
  if (e.length > 1)
@@ -5583,7 +5587,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5583
5587
  " ",
5584
5588
  t("selectedRegisters") + " ",
5585
5589
  /* @__PURE__ */ i(
5586
- ii,
5590
+ si,
5587
5591
  {
5588
5592
  copyable: {
5589
5593
  text: e.join(", ")
@@ -5610,7 +5614,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5610
5614
  }) => {
5611
5615
  const o = Y(), s = Y(0);
5612
5616
  return /* @__PURE__ */ i(
5613
- nl,
5617
+ rl,
5614
5618
  {
5615
5619
  ...r,
5616
5620
  ref: o,
@@ -5691,7 +5695,7 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5691
5695
  )
5692
5696
  ] }), { defaultAlgorithm: af, defaultSeed: lf } = We, cf = af(lf), To = yt((e) => {
5693
5697
  const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: s } = t, a = ne(Ue), { elementHasLostFocus: l } = a || {}, c = oe(() => s && !o, [s, o]), u = oe(
5694
- () => c ? df : Xn,
5698
+ () => c ? df : Zn,
5695
5699
  [c]
5696
5700
  ), f = P((p) => p ? /* @__PURE__ */ i(dr, { content: p }) : null, []), d = P((p) => `${p}`.replace(/[^0-9.-]+/g, ""), []);
5697
5701
  return /* @__PURE__ */ i(_e, { required: c, type: "number", ...e, children: /* @__PURE__ */ i(
@@ -5711,13 +5715,13 @@ const Tu = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Ms,
5711
5715
  ) });
5712
5716
  });
5713
5717
  To.displayName = "Float";
5714
- const df = ut(Xn)`
5718
+ const df = ut(Zn)`
5715
5719
  &.ant-input-number {
5716
5720
  background-color: ${cf.colorPrimaryBg};
5717
5721
  }
5718
5722
  `, { useToken: uf } = We, { defaultAlgorithm: ff, defaultSeed: mf } = We, pf = ff(mf), On = yt((e) => {
5719
5723
  const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: s } = t, { token: a } = uf(), l = s && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = ne(Ue), { elementHasLostFocus: u } = c || {}, f = oe(() => s && !o, [s, o]), d = oe(
5720
- () => f ? hf : Xn,
5724
+ () => f ? hf : Zn,
5721
5725
  [f]
5722
5726
  ), p = P((g) => g ? /* @__PURE__ */ i(dr, { content: g }) : null, []), h = P((g) => g === void 0 ? "" : typeof g == "string" && !isNaN(parseFloat(g)) ? `${Math.trunc(parseFloat(g))}`.replace(/[^0-9\-]+/g, "") : typeof g == "number" ? `${Math.trunc(g)}`.replace(/[^0-9\-]+/g, "") : "", []), m = P(
5723
5727
  (g) => {
@@ -5744,7 +5748,7 @@ const df = ut(Xn)`
5744
5748
  ) });
5745
5749
  });
5746
5750
  On.displayName = "Integer";
5747
- const hf = ut(Xn)`
5751
+ const hf = ut(Zn)`
5748
5752
  &.ant-input-number {
5749
5753
  background-color: ${pf.colorPrimaryBg};
5750
5754
  }
@@ -5829,7 +5833,7 @@ const { defaultAlgorithm: yf, defaultSeed: vf } = We, wf = yf(vf), { Option: bf
5829
5833
  background-color: ${wf.colorPrimaryBg};
5830
5834
  }
5831
5835
  `;
5832
- function Ws(e) {
5836
+ function Gs(e) {
5833
5837
  const { field: t } = e;
5834
5838
  t.readOnly = !1, t.required = !1;
5835
5839
  const { t: n } = fe();
@@ -5843,7 +5847,7 @@ function Ws(e) {
5843
5847
  ["false", n("false")]
5844
5848
  ]
5845
5849
  });
5846
- return /* @__PURE__ */ i(hs, { layout: "vertical", ooui: o, showLabel: !0 });
5850
+ return /* @__PURE__ */ i(gs, { layout: "vertical", ooui: o, showLabel: !0 });
5847
5851
  }
5848
5852
  case Et.float:
5849
5853
  case Et.progressbar:
@@ -5858,7 +5862,7 @@ function Ws(e) {
5858
5862
  return /* @__PURE__ */ i(Sf, { layout: "vertical", ooui: t, showLabel: !0 });
5859
5863
  default:
5860
5864
  return /* @__PURE__ */ i(
5861
- us,
5865
+ fs,
5862
5866
  {
5863
5867
  ooui: t,
5864
5868
  layout: "vertical",
@@ -5868,7 +5872,7 @@ function Ws(e) {
5868
5872
  );
5869
5873
  }
5870
5874
  }
5871
- const si = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Bn = (e, t) => {
5875
+ const ai = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, Hn = (e, t) => {
5872
5876
  const n = Rf(e), r = Of(n), o = Ff(
5873
5877
  r,
5874
5878
  t
@@ -5895,9 +5899,9 @@ const si = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5895
5899
  e,
5896
5900
  "in",
5897
5901
  t.map(
5898
- (a) => si(a)
5902
+ (a) => ai(a)
5899
5903
  )
5900
- ] : [e, "=", si(t)];
5904
+ ] : [e, "=", ai(t)];
5901
5905
  }, Tf = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Af = (e) => {
5902
5906
  const t = { ...e };
5903
5907
  return Object.keys(t).forEach(
@@ -5941,7 +5945,7 @@ const si = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5941
5945
  return t.forEach((o) => {
5942
5946
  Array.isArray(o) && o[0] ? r.includes(o[0]) || n.push(o) : r.includes(o) || n.push(o);
5943
5947
  }), n;
5944
- }, { useToken: Ef } = We, { Title: Vf } = kt, { Header: Df, Content: Pf, Footer: kf } = Hi, $f = ({
5948
+ }, { useToken: Ef } = We, { Title: Vf } = kt, { Header: Df, Content: Pf, Footer: kf } = Ui, $f = ({
5945
5949
  isOpen: e,
5946
5950
  onClose: t,
5947
5951
  children: n,
@@ -5977,7 +5981,7 @@ const si = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
5977
5981
  padding: "0 16px",
5978
5982
  borderBottom: "1px solid #f0f0f0"
5979
5983
  };
5980
- return /* @__PURE__ */ i(uc, { children: e && /* @__PURE__ */ D(ie, { children: [
5984
+ return /* @__PURE__ */ i(fc, { children: e && /* @__PURE__ */ D(ie, { children: [
5981
5985
  /* @__PURE__ */ i(
5982
5986
  Uo.div,
5983
5987
  {
@@ -6058,18 +6062,18 @@ const si = (e) => typeof e == "string" && e === "true" || e === "false" ? e ===
6058
6062
  )
6059
6063
  ] }) });
6060
6064
  };
6061
- var Ln = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6062
- function Gs(e) {
6065
+ var jn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6066
+ function Ks(e) {
6063
6067
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6064
6068
  }
6065
- var Nf = "Expected a function", ai = 0 / 0, Mf = "[object Symbol]", Lf = /^\s+|\s+$/g, jf = /^[-+]0x[0-9a-f]+$/i, Bf = /^0b[01]+$/i, Hf = /^0o[0-7]+$/i, Uf = parseInt, Wf = typeof Ln == "object" && Ln && Ln.Object === Object && Ln, Gf = typeof self == "object" && self && self.Object === Object && self, Kf = Wf || Gf || Function("return this")(), qf = Object.prototype, Yf = qf.toString, zf = Math.max, Jf = Math.min, xr = function() {
6069
+ var Nf = "Expected a function", li = 0 / 0, Mf = "[object Symbol]", Lf = /^\s+|\s+$/g, jf = /^[-+]0x[0-9a-f]+$/i, Bf = /^0b[01]+$/i, Hf = /^0o[0-7]+$/i, Uf = parseInt, Wf = typeof jn == "object" && jn && jn.Object === Object && jn, Gf = typeof self == "object" && self && self.Object === Object && self, Kf = Wf || Gf || Function("return this")(), qf = Object.prototype, Yf = qf.toString, zf = Math.max, Jf = Math.min, xr = function() {
6066
6070
  return Kf.Date.now();
6067
6071
  };
6068
6072
  function Qf(e, t, n) {
6069
6073
  var r, o, s, a, l, c, u = 0, f = !1, d = !1, p = !0;
6070
6074
  if (typeof e != "function")
6071
6075
  throw new TypeError(Nf);
6072
- t = li(t) || 0, Mr(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? zf(li(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
6076
+ t = ci(t) || 0, Mr(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? zf(ci(n.maxWait) || 0, t) : s, p = "trailing" in n ? !!n.trailing : p);
6073
6077
  function h(A) {
6074
6078
  var T = r, R = o;
6075
6079
  return r = o = void 0, u = A, a = e.apply(R, T), a;
@@ -6122,11 +6126,11 @@ function Xf(e) {
6122
6126
  function Zf(e) {
6123
6127
  return typeof e == "symbol" || Xf(e) && Yf.call(e) == Mf;
6124
6128
  }
6125
- function li(e) {
6129
+ function ci(e) {
6126
6130
  if (typeof e == "number")
6127
6131
  return e;
6128
6132
  if (Zf(e))
6129
- return ai;
6133
+ return li;
6130
6134
  if (Mr(e)) {
6131
6135
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
6132
6136
  e = Mr(t) ? t + "" : t;
@@ -6135,21 +6139,21 @@ function li(e) {
6135
6139
  return e === 0 ? e : +e;
6136
6140
  e = e.replace(Lf, "");
6137
6141
  var n = Bf.test(e);
6138
- return n || Hf.test(e) ? Uf(e.slice(2), n ? 2 : 8) : jf.test(e) ? ai : +e;
6142
+ return n || Hf.test(e) ? Uf(e.slice(2), n ? 2 : 8) : jf.test(e) ? li : +e;
6139
6143
  }
6140
6144
  var em = Qf;
6141
- const tm = /* @__PURE__ */ Gs(em);
6142
- var ci = Object.prototype.toString, Ks = function(t) {
6143
- var n = ci.call(t), r = n === "[object Arguments]";
6144
- return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && ci.call(t.callee) === "[object Function]"), r;
6145
- }, Ir, di;
6145
+ const tm = /* @__PURE__ */ Ks(em);
6146
+ var di = Object.prototype.toString, qs = function(t) {
6147
+ var n = di.call(t), r = n === "[object Arguments]";
6148
+ return r || (r = n !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && di.call(t.callee) === "[object Function]"), r;
6149
+ }, Ir, ui;
6146
6150
  function nm() {
6147
- if (di)
6151
+ if (ui)
6148
6152
  return Ir;
6149
- di = 1;
6153
+ ui = 1;
6150
6154
  var e;
6151
6155
  if (!Object.keys) {
6152
- var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Ks, o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), a = o.call(function() {
6156
+ var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = qs, o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), a = o.call(function() {
6153
6157
  }, "prototype"), l = [
6154
6158
  "toString",
6155
6159
  "toLocaleString",
@@ -6231,23 +6235,23 @@ function nm() {
6231
6235
  }
6232
6236
  return Ir = e, Ir;
6233
6237
  }
6234
- var rm = Array.prototype.slice, om = Ks, ui = Object.keys, Hn = ui ? function(t) {
6235
- return ui(t);
6236
- } : nm(), fi = Object.keys;
6237
- Hn.shim = function() {
6238
+ var rm = Array.prototype.slice, om = qs, fi = Object.keys, Un = fi ? function(t) {
6239
+ return fi(t);
6240
+ } : nm(), mi = Object.keys;
6241
+ Un.shim = function() {
6238
6242
  if (Object.keys) {
6239
6243
  var t = function() {
6240
6244
  var n = Object.keys(arguments);
6241
6245
  return n && n.length === arguments.length;
6242
6246
  }(1, 2);
6243
6247
  t || (Object.keys = function(r) {
6244
- return om(r) ? fi(rm.call(r)) : fi(r);
6248
+ return om(r) ? mi(rm.call(r)) : mi(r);
6245
6249
  });
6246
6250
  } else
6247
- Object.keys = Hn;
6248
- return Object.keys || Hn;
6251
+ Object.keys = Un;
6252
+ return Object.keys || Un;
6249
6253
  };
6250
- var qs = Hn, Ys = function() {
6254
+ var Ys = Un, zs = function() {
6251
6255
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
6252
6256
  return !1;
6253
6257
  if (typeof Symbol.iterator == "symbol")
@@ -6270,14 +6274,14 @@ var qs = Hn, Ys = function() {
6270
6274
  return !1;
6271
6275
  }
6272
6276
  return !0;
6273
- }, im = Ys, Ao = function() {
6277
+ }, im = zs, Ao = function() {
6274
6278
  return im() && !!Symbol.toStringTag;
6275
- }, mi = typeof Symbol < "u" && Symbol, sm = Ys, am = function() {
6276
- return typeof mi != "function" || typeof Symbol != "function" || typeof mi("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : sm();
6277
- }, pi = {
6279
+ }, pi = typeof Symbol < "u" && Symbol, sm = zs, am = function() {
6280
+ return typeof pi != "function" || typeof Symbol != "function" || typeof pi("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : sm();
6281
+ }, hi = {
6278
6282
  foo: {}
6279
6283
  }, lm = Object, cm = function() {
6280
- return { __proto__: pi }.foo === pi.foo && !({ __proto__: null } instanceof lm);
6284
+ return { __proto__: hi }.foo === hi.foo && !({ __proto__: null } instanceof lm);
6281
6285
  }, dm = "Function.prototype.bind called on incompatible ", Tr = Array.prototype.slice, um = Object.prototype.toString, fm = "[object Function]", mm = function(t) {
6282
6286
  var n = this;
6283
6287
  if (typeof n != "function" || um.call(n) !== fm)
@@ -6302,11 +6306,11 @@ var qs = Hn, Ys = function() {
6302
6306
  u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
6303
6307
  }
6304
6308
  return o;
6305
- }, pm = mm, zs = Function.prototype.bind || pm, hi = {}.hasOwnProperty, Ar = Function.prototype.call, hm = Ar.bind ? Ar.bind(hi) : function(e, t) {
6306
- return Ar.call(hi, e, t);
6307
- }, Ve, dn = SyntaxError, Js = Function, sn = TypeError, Or = function(e) {
6309
+ }, pm = mm, Js = Function.prototype.bind || pm, gi = {}.hasOwnProperty, Ar = Function.prototype.call, hm = Ar.bind ? Ar.bind(gi) : function(e, t) {
6310
+ return Ar.call(gi, e, t);
6311
+ }, Ve, dn = SyntaxError, Qs = Function, sn = TypeError, Or = function(e) {
6308
6312
  try {
6309
- return Js('"use strict"; return (' + e + ").constructor;")();
6313
+ return Qs('"use strict"; return (' + e + ").constructor;")();
6310
6314
  } catch {
6311
6315
  }
6312
6316
  }, Ht = Object.getOwnPropertyDescriptor;
@@ -6358,7 +6362,7 @@ var Fr = function() {
6358
6362
  "%Float32Array%": typeof Float32Array > "u" ? Ve : Float32Array,
6359
6363
  "%Float64Array%": typeof Float64Array > "u" ? Ve : Float64Array,
6360
6364
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Ve : FinalizationRegistry,
6361
- "%Function%": Js,
6365
+ "%Function%": Qs,
6362
6366
  "%GeneratorFunction%": tn,
6363
6367
  "%Int8Array%": typeof Int8Array > "u" ? Ve : Int8Array,
6364
6368
  "%Int16Array%": typeof Int16Array > "u" ? Ve : Int16Array,
@@ -6422,7 +6426,7 @@ var bm = function e(t) {
6422
6426
  o && et && (n = et(o.prototype));
6423
6427
  }
6424
6428
  return Ut[t] = n, n;
6425
- }, gi = {
6429
+ }, yi = {
6426
6430
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
6427
6431
  "%ArrayPrototype%": ["Array", "prototype"],
6428
6432
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -6474,19 +6478,19 @@ var bm = function e(t) {
6474
6478
  "%URIErrorPrototype%": ["URIError", "prototype"],
6475
6479
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
6476
6480
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
6477
- }, Vn = zs, zn = hm, Sm = Vn.call(Function.call, Array.prototype.concat), Cm = Vn.call(Function.apply, Array.prototype.splice), yi = Vn.call(Function.call, String.prototype.replace), Jn = Vn.call(Function.call, String.prototype.slice), xm = Vn.call(Function.call, RegExp.prototype.exec), Im = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Tm = /\\(\\)?/g, Am = function(t) {
6478
- var n = Jn(t, 0, 1), r = Jn(t, -1);
6481
+ }, Dn = Js, Jn = hm, Sm = Dn.call(Function.call, Array.prototype.concat), Cm = Dn.call(Function.apply, Array.prototype.splice), vi = Dn.call(Function.call, String.prototype.replace), Qn = Dn.call(Function.call, String.prototype.slice), xm = Dn.call(Function.call, RegExp.prototype.exec), Im = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Tm = /\\(\\)?/g, Am = function(t) {
6482
+ var n = Qn(t, 0, 1), r = Qn(t, -1);
6479
6483
  if (n === "%" && r !== "%")
6480
6484
  throw new dn("invalid intrinsic syntax, expected closing `%`");
6481
6485
  if (r === "%" && n !== "%")
6482
6486
  throw new dn("invalid intrinsic syntax, expected opening `%`");
6483
6487
  var o = [];
6484
- return yi(t, Im, function(s, a, l, c) {
6485
- o[o.length] = l ? yi(c, Tm, "$1") : a || s;
6488
+ return vi(t, Im, function(s, a, l, c) {
6489
+ o[o.length] = l ? vi(c, Tm, "$1") : a || s;
6486
6490
  }), o;
6487
6491
  }, Om = function(t, n) {
6488
6492
  var r = t, o;
6489
- if (zn(gi, r) && (o = gi[r], r = "%" + o[0] + "%"), zn(Ut, r)) {
6493
+ if (Jn(yi, r) && (o = yi[r], r = "%" + o[0] + "%"), Jn(Ut, r)) {
6490
6494
  var s = Ut[r];
6491
6495
  if (s === tn && (s = bm(r)), typeof s > "u" && !n)
6492
6496
  throw new sn("intrinsic " + t + " exists, but is not available. Please file an issue!");
@@ -6497,7 +6501,7 @@ var bm = function e(t) {
6497
6501
  };
6498
6502
  }
6499
6503
  throw new dn("intrinsic " + t + " does not exist!");
6500
- }, Dn = function(t, n) {
6504
+ }, Pn = function(t, n) {
6501
6505
  if (typeof t != "string" || t.length === 0)
6502
6506
  throw new sn("intrinsic name must be a non-empty string");
6503
6507
  if (arguments.length > 1 && typeof n != "boolean")
@@ -6507,10 +6511,10 @@ var bm = function e(t) {
6507
6511
  var r = Am(t), o = r.length > 0 ? r[0] : "", s = Om("%" + o + "%", n), a = s.name, l = s.value, c = !1, u = s.alias;
6508
6512
  u && (o = u[0], Cm(r, Sm([0, 1], u)));
6509
6513
  for (var f = 1, d = !0; f < r.length; f += 1) {
6510
- var p = r[f], h = Jn(p, 0, 1), m = Jn(p, -1);
6514
+ var p = r[f], h = Qn(p, 0, 1), m = Qn(p, -1);
6511
6515
  if ((h === '"' || h === "'" || h === "`" || m === '"' || m === "'" || m === "`") && h !== m)
6512
6516
  throw new dn("property names with quotes must have matching quotes");
6513
- if ((p === "constructor" || !d) && (c = !0), o += "." + p, a = "%" + o + "%", zn(Ut, a))
6517
+ if ((p === "constructor" || !d) && (c = !0), o += "." + p, a = "%" + o + "%", Jn(Ut, a))
6514
6518
  l = Ut[a];
6515
6519
  else if (l != null) {
6516
6520
  if (!(p in l)) {
@@ -6522,14 +6526,14 @@ var bm = function e(t) {
6522
6526
  var g = Ht(l, p);
6523
6527
  d = !!g, d && "get" in g && !("originalValue" in g.get) ? l = g.get : l = l[p];
6524
6528
  } else
6525
- d = zn(l, p), l = l[p];
6529
+ d = Jn(l, p), l = l[p];
6526
6530
  d && !c && (Ut[a] = l);
6527
6531
  }
6528
6532
  }
6529
6533
  return l;
6530
- }, Qs = { exports: {} };
6534
+ }, Xs = { exports: {} };
6531
6535
  (function(e) {
6532
- var t = zs, n = Dn, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || t.call(o, r), a = n("%Object.getOwnPropertyDescriptor%", !0), l = n("%Object.defineProperty%", !0), c = n("%Math.max%");
6536
+ var t = Js, n = Pn, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || t.call(o, r), a = n("%Object.getOwnPropertyDescriptor%", !0), l = n("%Object.defineProperty%", !0), c = n("%Math.max%");
6533
6537
  if (l)
6534
6538
  try {
6535
6539
  l({}, "a", { value: 1 });
@@ -6552,19 +6556,19 @@ var bm = function e(t) {
6552
6556
  return s(t, r, arguments);
6553
6557
  };
6554
6558
  l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
6555
- })(Qs);
6556
- var Oo = Qs.exports, Xs = Dn, Zs = Oo, Fm = Zs(Xs("String.prototype.indexOf")), ea = function(t, n) {
6557
- var r = Xs(t, !!n);
6558
- return typeof r == "function" && Fm(t, ".prototype.") > -1 ? Zs(r) : r;
6559
- }, Rm = Ao(), _m = ea, Lr = _m("Object.prototype.toString"), pr = function(t) {
6559
+ })(Xs);
6560
+ var Oo = Xs.exports, Zs = Pn, ea = Oo, Fm = ea(Zs("String.prototype.indexOf")), ta = function(t, n) {
6561
+ var r = Zs(t, !!n);
6562
+ return typeof r == "function" && Fm(t, ".prototype.") > -1 ? ea(r) : r;
6563
+ }, Rm = Ao(), _m = ta, Lr = _m("Object.prototype.toString"), pr = function(t) {
6560
6564
  return Rm && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : Lr(t) === "[object Arguments]";
6561
- }, ta = function(t) {
6565
+ }, na = function(t) {
6562
6566
  return pr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && Lr(t) !== "[object Array]" && Lr(t.callee) === "[object Function]";
6563
6567
  }, Em = function() {
6564
6568
  return pr(arguments);
6565
6569
  }();
6566
- pr.isLegacyArguments = ta;
6567
- var Vm = Em ? pr : ta, Dm = Dn, jr = Dm("%Object.defineProperty%", !0), Br = function() {
6570
+ pr.isLegacyArguments = na;
6571
+ var Vm = Em ? pr : na, Dm = Pn, jr = Dm("%Object.defineProperty%", !0), Br = function() {
6568
6572
  if (jr)
6569
6573
  try {
6570
6574
  return jr({}, "a", { value: 1 }), !0;
@@ -6582,12 +6586,12 @@ Br.hasArrayLengthDefineBug = function() {
6582
6586
  return !0;
6583
6587
  }
6584
6588
  };
6585
- var Fo = Br, Rr, vi;
6589
+ var Fo = Br, Rr, wi;
6586
6590
  function Pm() {
6587
- if (vi)
6591
+ if (wi)
6588
6592
  return Rr;
6589
- vi = 1;
6590
- var e = Dn, t = e("%Object.getOwnPropertyDescriptor%", !0);
6593
+ wi = 1;
6594
+ var e = Pn, t = e("%Object.getOwnPropertyDescriptor%", !0);
6591
6595
  if (t)
6592
6596
  try {
6593
6597
  t([], "length");
@@ -6596,7 +6600,7 @@ function Pm() {
6596
6600
  }
6597
6601
  return Rr = t, Rr;
6598
6602
  }
6599
- var km = Fo(), Ro = Dn, wi = km && Ro("%Object.defineProperty%", !0), $m = Ro("%SyntaxError%"), Qt = Ro("%TypeError%"), bi = Pm(), na = function(t, n, r) {
6603
+ var km = Fo(), Ro = Pn, bi = km && Ro("%Object.defineProperty%", !0), $m = Ro("%SyntaxError%"), Qt = Ro("%TypeError%"), Si = Pm(), ra = function(t, n, r) {
6600
6604
  if (!t || typeof t != "object" && typeof t != "function")
6601
6605
  throw new Qt("`obj` must be an object or a function`");
6602
6606
  if (typeof n != "string" && typeof n != "symbol")
@@ -6609,9 +6613,9 @@ var km = Fo(), Ro = Dn, wi = km && Ro("%Object.defineProperty%", !0), $m = Ro("%
6609
6613
  throw new Qt("`nonConfigurable`, if provided, must be a boolean or null");
6610
6614
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
6611
6615
  throw new Qt("`loose`, if provided, must be a boolean");
6612
- var o = arguments.length > 3 ? arguments[3] : null, s = arguments.length > 4 ? arguments[4] : null, a = arguments.length > 5 ? arguments[5] : null, l = arguments.length > 6 ? arguments[6] : !1, c = !!bi && bi(t, n);
6613
- if (wi)
6614
- wi(t, n, {
6616
+ var o = arguments.length > 3 ? arguments[3] : null, s = arguments.length > 4 ? arguments[4] : null, a = arguments.length > 5 ? arguments[5] : null, l = arguments.length > 6 ? arguments[6] : !1, c = !!Si && Si(t, n);
6617
+ if (bi)
6618
+ bi(t, n, {
6615
6619
  configurable: a === null && c ? c.configurable : !a,
6616
6620
  enumerable: o === null && c ? c.enumerable : !o,
6617
6621
  value: r,
@@ -6621,9 +6625,9 @@ var km = Fo(), Ro = Dn, wi = km && Ro("%Object.defineProperty%", !0), $m = Ro("%
6621
6625
  t[n] = r;
6622
6626
  else
6623
6627
  throw new $m("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
6624
- }, Nm = qs, Mm = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", Lm = Object.prototype.toString, jm = Array.prototype.concat, Si = na, Bm = function(e) {
6628
+ }, Nm = Ys, Mm = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", Lm = Object.prototype.toString, jm = Array.prototype.concat, Ci = ra, Bm = function(e) {
6625
6629
  return typeof e == "function" && Lm.call(e) === "[object Function]";
6626
- }, ra = Fo(), Hm = function(e, t, n, r) {
6630
+ }, oa = Fo(), Hm = function(e, t, n, r) {
6627
6631
  if (t in e) {
6628
6632
  if (r === !0) {
6629
6633
  if (e[t] === n)
@@ -6631,36 +6635,36 @@ var km = Fo(), Ro = Dn, wi = km && Ro("%Object.defineProperty%", !0), $m = Ro("%
6631
6635
  } else if (!Bm(r) || !r())
6632
6636
  return;
6633
6637
  }
6634
- ra ? Si(e, t, n, !0) : Si(e, t, n);
6635
- }, oa = function(e, t) {
6638
+ oa ? Ci(e, t, n, !0) : Ci(e, t, n);
6639
+ }, ia = function(e, t) {
6636
6640
  var n = arguments.length > 2 ? arguments[2] : {}, r = Nm(t);
6637
6641
  Mm && (r = jm.call(r, Object.getOwnPropertySymbols(t)));
6638
6642
  for (var o = 0; o < r.length; o += 1)
6639
6643
  Hm(e, r[o], t[r[o]], n[r[o]]);
6640
6644
  };
6641
- oa.supportsDescriptors = !!ra;
6642
- var Pn = oa, Ci = function(e) {
6645
+ ia.supportsDescriptors = !!oa;
6646
+ var kn = ia, xi = function(e) {
6643
6647
  return e !== e;
6644
- }, ia = function(t, n) {
6645
- return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || Ci(t) && Ci(n));
6646
- }, Um = ia, sa = function() {
6648
+ }, sa = function(t, n) {
6649
+ return t === 0 && n === 0 ? 1 / t === 1 / n : !!(t === n || xi(t) && xi(n));
6650
+ }, Um = sa, aa = function() {
6647
6651
  return typeof Object.is == "function" ? Object.is : Um;
6648
- }, Wm = sa, Gm = Pn, Km = function() {
6652
+ }, Wm = aa, Gm = kn, Km = function() {
6649
6653
  var t = Wm();
6650
6654
  return Gm(Object, { is: t }, {
6651
6655
  is: function() {
6652
6656
  return Object.is !== t;
6653
6657
  }
6654
6658
  }), t;
6655
- }, qm = Pn, Ym = Oo, zm = ia, aa = sa, Jm = Km, la = Ym(aa(), Object);
6656
- qm(la, {
6657
- getPolyfill: aa,
6659
+ }, qm = kn, Ym = Oo, zm = sa, la = aa, Jm = Km, ca = Ym(la(), Object);
6660
+ qm(ca, {
6661
+ getPolyfill: la,
6658
6662
  implementation: zm,
6659
6663
  shim: Jm
6660
6664
  });
6661
- var Qm = la, Hr = ea, ca = Ao(), da, ua, Ur, Wr;
6662
- if (ca) {
6663
- da = Hr("Object.prototype.hasOwnProperty"), ua = Hr("RegExp.prototype.exec"), Ur = {};
6665
+ var Qm = ca, Hr = ta, da = Ao(), ua, fa, Ur, Wr;
6666
+ if (da) {
6667
+ ua = Hr("Object.prototype.hasOwnProperty"), fa = Hr("RegExp.prototype.exec"), Ur = {};
6664
6668
  var _r = function() {
6665
6669
  throw Ur;
6666
6670
  };
@@ -6669,14 +6673,14 @@ if (ca) {
6669
6673
  valueOf: _r
6670
6674
  }, typeof Symbol.toPrimitive == "symbol" && (Wr[Symbol.toPrimitive] = _r);
6671
6675
  }
6672
- var Xm = Hr("Object.prototype.toString"), Zm = Object.getOwnPropertyDescriptor, ep = "[object RegExp]", tp = ca ? function(t) {
6676
+ var Xm = Hr("Object.prototype.toString"), Zm = Object.getOwnPropertyDescriptor, ep = "[object RegExp]", tp = da ? function(t) {
6673
6677
  if (!t || typeof t != "object")
6674
6678
  return !1;
6675
- var n = Zm(t, "lastIndex"), r = n && da(n, "value");
6679
+ var n = Zm(t, "lastIndex"), r = n && ua(n, "value");
6676
6680
  if (!r)
6677
6681
  return !1;
6678
6682
  try {
6679
- ua(t, Wr);
6683
+ fa(t, Wr);
6680
6684
  } catch (o) {
6681
6685
  return o === Ur;
6682
6686
  }
@@ -6704,17 +6708,17 @@ Fn.boundFunctionsHaveNames = function() {
6704
6708
  return Fn() && typeof np == "function" && (function() {
6705
6709
  }).bind().name !== "";
6706
6710
  };
6707
- var rp = Fn, xi = na, op = Fo(), ip = rp.functionsHaveConfigurableNames(), sp = TypeError, ap = function(t, n) {
6711
+ var rp = Fn, Ii = ra, op = Fo(), ip = rp.functionsHaveConfigurableNames(), sp = TypeError, ap = function(t, n) {
6708
6712
  if (typeof t != "function")
6709
6713
  throw new sp("`fn` is not a function");
6710
6714
  var r = arguments.length > 2 && !!arguments[2];
6711
- return (!r || ip) && (op ? xi(t, "name", n, !0, !0) : xi(t, "name", n)), t;
6712
- }, lp = ap, cp = Object, dp = TypeError, fa = lp(function() {
6715
+ return (!r || ip) && (op ? Ii(t, "name", n, !0, !0) : Ii(t, "name", n)), t;
6716
+ }, lp = ap, cp = Object, dp = TypeError, ma = lp(function() {
6713
6717
  if (this != null && this !== cp(this))
6714
6718
  throw new dp("RegExp.prototype.flags getter called on non-object");
6715
6719
  var t = "";
6716
6720
  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;
6717
- }, "get flags", !0), up = fa, fp = Pn.supportsDescriptors, mp = Object.getOwnPropertyDescriptor, ma = function() {
6721
+ }, "get flags", !0), up = ma, fp = kn.supportsDescriptors, mp = Object.getOwnPropertyDescriptor, pa = function() {
6718
6722
  if (fp && /a/mig.flags === "gim") {
6719
6723
  var t = mp(RegExp.prototype, "flags");
6720
6724
  if (t && typeof t.get == "function" && typeof RegExp.prototype.dotAll == "boolean" && typeof RegExp.prototype.hasIndices == "boolean") {
@@ -6732,22 +6736,22 @@ var rp = Fn, xi = na, op = Fo(), ip = rp.functionsHaveConfigurableNames(), sp =
6732
6736
  }
6733
6737
  }
6734
6738
  return up;
6735
- }, pp = Pn.supportsDescriptors, hp = ma, gp = Object.getOwnPropertyDescriptor, yp = Object.defineProperty, vp = TypeError, Ii = Object.getPrototypeOf, wp = /a/, bp = function() {
6736
- if (!pp || !Ii)
6739
+ }, pp = kn.supportsDescriptors, hp = pa, gp = Object.getOwnPropertyDescriptor, yp = Object.defineProperty, vp = TypeError, Ti = Object.getPrototypeOf, wp = /a/, bp = function() {
6740
+ if (!pp || !Ti)
6737
6741
  throw new vp("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
6738
- var t = hp(), n = Ii(wp), r = gp(n, "flags");
6742
+ var t = hp(), n = Ti(wp), r = gp(n, "flags");
6739
6743
  return (!r || r.get !== t) && yp(n, "flags", {
6740
6744
  configurable: !0,
6741
6745
  enumerable: !1,
6742
6746
  get: t
6743
6747
  }), t;
6744
- }, Sp = Pn, Cp = Oo, xp = fa, pa = ma, Ip = bp, ha = Cp(pa());
6745
- Sp(ha, {
6746
- getPolyfill: pa,
6748
+ }, Sp = kn, Cp = Oo, xp = ma, ha = pa, Ip = bp, ga = Cp(ha());
6749
+ Sp(ga, {
6750
+ getPolyfill: ha,
6747
6751
  implementation: xp,
6748
6752
  shim: Ip
6749
6753
  });
6750
- var Tp = ha, Ap = Date.prototype.getDay, Op = function(t) {
6754
+ var Tp = ga, Ap = Date.prototype.getDay, Op = function(t) {
6751
6755
  try {
6752
6756
  return Ap.call(t), !0;
6753
6757
  } catch {
@@ -6755,29 +6759,29 @@ var Tp = ha, Ap = Date.prototype.getDay, Op = function(t) {
6755
6759
  }
6756
6760
  }, Fp = Object.prototype.toString, Rp = "[object Date]", _p = Ao(), Ep = function(t) {
6757
6761
  return typeof t != "object" || t === null ? !1 : _p ? Op(t) : Fp.call(t) === Rp;
6758
- }, Ti = qs, Ai = Vm, Oi = Qm, Fi = tp, Ri = Tp, _i = Ep, Ei = Date.prototype.getTime;
6759
- function ga(e, t, n) {
6762
+ }, Ai = Ys, Oi = Vm, Fi = Qm, Ri = tp, _i = Tp, Ei = Ep, Vi = Date.prototype.getTime;
6763
+ function ya(e, t, n) {
6760
6764
  var r = n || {};
6761
- return (r.strict ? Oi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Oi(e, t) : e == t : Vp(e, t, r);
6765
+ return (r.strict ? Fi(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Fi(e, t) : e == t : Vp(e, t, r);
6762
6766
  }
6763
- function Vi(e) {
6767
+ function Di(e) {
6764
6768
  return e == null;
6765
6769
  }
6766
- function Di(e) {
6770
+ function Pi(e) {
6767
6771
  return !(!e || typeof e != "object" || typeof e.length != "number" || typeof e.copy != "function" || typeof e.slice != "function" || e.length > 0 && typeof e[0] != "number");
6768
6772
  }
6769
6773
  function Vp(e, t, n) {
6770
6774
  var r, o;
6771
- if (typeof e != typeof t || Vi(e) || Vi(t) || e.prototype !== t.prototype || Ai(e) !== Ai(t))
6775
+ if (typeof e != typeof t || Di(e) || Di(t) || e.prototype !== t.prototype || Oi(e) !== Oi(t))
6772
6776
  return !1;
6773
- var s = Fi(e), a = Fi(t);
6777
+ var s = Ri(e), a = Ri(t);
6774
6778
  if (s !== a)
6775
6779
  return !1;
6776
6780
  if (s || a)
6777
- return e.source === t.source && Ri(e) === Ri(t);
6778
- if (_i(e) && _i(t))
6779
- return Ei.call(e) === Ei.call(t);
6780
- var l = Di(e), c = Di(t);
6781
+ return e.source === t.source && _i(e) === _i(t);
6782
+ if (Ei(e) && Ei(t))
6783
+ return Vi.call(e) === Vi.call(t);
6784
+ var l = Pi(e), c = Pi(t);
6781
6785
  if (l !== c)
6782
6786
  return !1;
6783
6787
  if (l || c) {
@@ -6791,7 +6795,7 @@ function Vp(e, t, n) {
6791
6795
  if (typeof e != typeof t)
6792
6796
  return !1;
6793
6797
  try {
6794
- var u = Ti(e), f = Ti(t);
6798
+ var u = Ai(e), f = Ai(t);
6795
6799
  } catch {
6796
6800
  return !1;
6797
6801
  }
@@ -6801,17 +6805,17 @@ function Vp(e, t, n) {
6801
6805
  if (u[r] != f[r])
6802
6806
  return !1;
6803
6807
  for (r = u.length - 1; r >= 0; r--)
6804
- if (o = u[r], !ga(e[o], t[o], n))
6808
+ if (o = u[r], !ya(e[o], t[o], n))
6805
6809
  return !1;
6806
6810
  return !0;
6807
6811
  }
6808
- var Dp = ga;
6809
- const ya = /* @__PURE__ */ Gs(Dp), Pp = wt(
6812
+ var Dp = ya;
6813
+ const va = /* @__PURE__ */ Ks(Dp), Pp = bt(
6810
6814
  (e, t) => {
6811
6815
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: s } = e, [a] = ht.useForm();
6812
6816
  le(() => {
6813
6817
  a.setFieldsValue(r);
6814
- }, [r]), bt(t, () => ({
6818
+ }, [r]), St(t, () => ({
6815
6819
  submit: a.submit,
6816
6820
  resetFields: a.resetFields,
6817
6821
  setFieldsValue: a.setFieldsValue
@@ -6832,7 +6836,7 @@ const ya = /* @__PURE__ */ Gs(Dp), Pp = wt(
6832
6836
  backgroundColor: w ? "#f0f0f0" : void 0,
6833
6837
  fontWeight: w ? "bold" : void 0
6834
6838
  },
6835
- children: /* @__PURE__ */ i("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ i(Ws, { field: y }, v) })
6839
+ children: /* @__PURE__ */ i("div", { style: { paddingLeft: 18, paddingRight: 18 }, children: /* @__PURE__ */ i(Gs, { field: y }, v) })
6836
6840
  },
6837
6841
  g
6838
6842
  );
@@ -6864,12 +6868,12 @@ const ya = /* @__PURE__ */ Gs(Dp), Pp = wt(
6864
6868
  le(() => {
6865
6869
  n && h(void 0);
6866
6870
  }, [n]), At(() => {
6867
- l.current = new zi(o, s, 1), l.current.parse(), f(l.current._advancedSearchContainer);
6871
+ l.current = new Ji(o, s, 1), l.current.parse(), f(l.current._advancedSearchContainer);
6868
6872
  }, [s, o, n]);
6869
6873
  const m = P(
6870
6874
  (C) => {
6871
6875
  var A;
6872
- const S = Bn(
6876
+ const S = Hn(
6873
6877
  C,
6874
6878
  (A = l.current) == null ? void 0 : A._advancedSearchContainer
6875
6879
  );
@@ -6883,11 +6887,11 @@ const ya = /* @__PURE__ */ Gs(Dp), Pp = wt(
6883
6887
  (C) => {
6884
6888
  var T;
6885
6889
  const S = Gr(C);
6886
- if (ya(S, a)) {
6890
+ if (va(S, a)) {
6887
6891
  h([]);
6888
6892
  return;
6889
6893
  }
6890
- const A = Bn(
6894
+ const A = Hn(
6891
6895
  C,
6892
6896
  (T = l.current) == null ? void 0 : T._advancedSearchContainer
6893
6897
  );
@@ -6897,7 +6901,7 @@ const ya = /* @__PURE__ */ Gs(Dp), Pp = wt(
6897
6901
  ), v = P(() => {
6898
6902
  var C, S;
6899
6903
  (C = d.current) == null || C.resetFields(), (S = d == null ? void 0 : d.current) == null || S.setFieldsValue({}), h([]);
6900
- }, []), w = n ? p || Bn(a, (I = l.current) == null ? void 0 : I._advancedSearchContainer) : [];
6904
+ }, []), w = n ? p || Hn(a, (I = l.current) == null ? void 0 : I._advancedSearchContainer) : [];
6901
6905
  return /* @__PURE__ */ i(
6902
6906
  $f,
6903
6907
  {
@@ -6956,7 +6960,7 @@ const ya = /* @__PURE__ */ Gs(Dp), Pp = wt(
6956
6960
  /* @__PURE__ */ i(
6957
6961
  He,
6958
6962
  {
6959
- icon: /* @__PURE__ */ i(nr, {}),
6963
+ icon: /* @__PURE__ */ i(rr, {}),
6960
6964
  size: "large",
6961
6965
  onClick: e,
6962
6966
  style: { width: "80px" },
@@ -6980,11 +6984,11 @@ function Np(e) {
6980
6984
  } = e, { t: a } = fe();
6981
6985
  return /* @__PURE__ */ D(je, { children: [
6982
6986
  !s && /* @__PURE__ */ i(Se, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ D("a", { className: "text-xs", onClick: t, children: [
6983
- n ? /* @__PURE__ */ i(gl, { className: "pr-1" }) : /* @__PURE__ */ i(er, { className: "pr-1" }),
6987
+ n ? /* @__PURE__ */ i(yl, { className: "pr-1" }) : /* @__PURE__ */ i(tr, { className: "pr-1" }),
6984
6988
  a(n ? "simple_search" : "advanced_search")
6985
6989
  ] }) }),
6986
6990
  /* @__PURE__ */ D(Se, { span: s ? 24 : 12, className: "text-right pb-2", children: [
6987
- /* @__PURE__ */ i(He, { className: "mr-5", icon: /* @__PURE__ */ i(nr, {}), onClick: r, children: a("clear") }),
6991
+ /* @__PURE__ */ i(He, { className: "mr-5", icon: /* @__PURE__ */ i(rr, {}), onClick: r, children: a("clear") }),
6988
6992
  /* @__PURE__ */ i(
6989
6993
  He,
6990
6994
  {
@@ -7043,16 +7047,16 @@ function _o(e) {
7043
7047
  if (!y)
7044
7048
  return;
7045
7049
  const F = w ? y : m, O = F == null ? void 0 : F.rows;
7046
- return O == null ? void 0 : O.map((k, _) => /* @__PURE__ */ i(je, { children: k.map(($, L) => /* @__PURE__ */ i(Se, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(Ws, { field: $ }) }, L)) }, _));
7050
+ return O == null ? void 0 : O.map((k, _) => /* @__PURE__ */ i(je, { children: k.map(($, L) => /* @__PURE__ */ i(Se, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ i(Gs, { field: $ }) }, L)) }, _));
7047
7051
  };
7048
7052
  At(() => {
7049
- I(!1), C.current = new zi(n, t), C.current.parse(), g(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
7053
+ I(!1), C.current = new Ji(n, t), C.current.parse(), g(C.current._simpleSearchContainer), v(C.current._advancedSearchContainer);
7050
7054
  }, [t, n]);
7051
7055
  const R = T(), b = (F) => {
7052
7056
  var $;
7053
7057
  const { limit: O, offset: k } = F;
7054
7058
  delete F.offset, delete F.limit;
7055
- const _ = Bn(
7059
+ const _ = Hn(
7056
7060
  F,
7057
7061
  ($ = C.current) == null ? void 0 : $._advancedSearchContainer
7058
7062
  );
@@ -7123,7 +7127,7 @@ function _o(e) {
7123
7127
  function jp({
7124
7128
  useLocalState: e = !1
7125
7129
  }) {
7126
- const t = jd() && !e, n = wo(), [r, o] = x(!1), [s, a] = x(!1), [l, c] = x([]), [u, f] = x(0), [d, p] = x([]), [h, m] = x({}), [g, y] = x(), [v, w] = x([]), [I, C] = x(), [S, A] = x(0);
7130
+ const t = Bd() && !e, n = wo(), [r, o] = x(!1), [s, a] = x(!1), [l, c] = x([]), [u, f] = x(0), [d, p] = x([]), [h, m] = x({}), [g, y] = x(), [v, w] = x([]), [I, C] = x(), [S, A] = x(0);
7127
7131
  return t ? {
7128
7132
  treeIsLoading: n.treeIsLoading ?? !1,
7129
7133
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -7190,7 +7194,7 @@ const Bp = 3 * 1e3, Hp = (e) => {
7190
7194
  isActive: a
7191
7195
  } = e, l = Y(null), [c, u] = x(!0), [f, d] = Ye(
7192
7196
  N.getHandler().readObjects
7193
- ), p = Ps();
7197
+ ), p = ks();
7194
7198
  le(() => {
7195
7199
  a === !1 && m(), (a === void 0 || a === !0) && !p && m(), (a === void 0 || a === !0) && p && g();
7196
7200
  }, [a, p]);
@@ -7251,10 +7255,10 @@ function Gp(e, t) {
7251
7255
  onChangeSelectedRowKeys: f,
7252
7256
  nameSearch: d,
7253
7257
  filterType: p = "side"
7254
- } = e, h = Y({}), m = Y(), g = Y(null), y = Y([]), v = ks(), [w, I] = x(!0), [C, S] = x(), { t: A } = fe(), T = Y(null), R = Ju({
7258
+ } = e, h = Y({}), m = Y(), g = Y(null), y = Y([]), v = $s(), [w, I] = x(!0), [C, S] = x(), { t: A } = fe(), T = Y(null), R = Ju({
7255
7259
  elementRef: T,
7256
7260
  offset: Up
7257
- }), { treeView: b, formView: E, loading: F } = $s({
7261
+ }), { treeView: b, formView: E, loading: F } = Ns({
7258
7262
  model: n,
7259
7263
  formViewProps: r,
7260
7264
  treeViewProps: o,
@@ -7313,7 +7317,7 @@ function Gp(e, t) {
7313
7317
  loading: $e,
7314
7318
  getColumnState: Ee,
7315
7319
  updateColumnState: Pe
7316
- } = Bs(De), Be = oe(
7320
+ } = Hs(De), Be = oe(
7317
7321
  () => cn(ee || [], a),
7318
7322
  [a, ee]
7319
7323
  ), Te = P(() => {
@@ -7352,7 +7356,7 @@ function Gp(e, t) {
7352
7356
  return [];
7353
7357
  const ze = {};
7354
7358
  se.colors && (ze.colors = se.colors), se.status && (ze.status = se.status);
7355
- const _t = z ? a : Be, Yt = ws(tt), { results: vt, attrsEvaluated: $n } = await N.getHandler().searchForTree({
7359
+ const _t = z ? a : Be, Yt = bs(tt), { results: vt, attrsEvaluated: Nn } = await N.getHandler().searchForTree({
7356
7360
  params: _t,
7357
7361
  limit: Ge - pe,
7358
7362
  offset: pe,
@@ -7377,18 +7381,18 @@ function Gp(e, t) {
7377
7381
  }
7378
7382
  if (ke.current = Yt, vt.length === 0)
7379
7383
  return y.current = [], S(0), j(0), [];
7380
- const Nn = fr(se, vt), zt = ln($n);
7384
+ const Mn = fr(se, vt), zt = ln(Nn);
7381
7385
  if (h.current = {
7382
7386
  ...h.current,
7383
7387
  ...zt
7384
7388
  }, !m.current && se.status && (m.current = {}), se.status) {
7385
- const Ft = Wn($n);
7389
+ const Ft = Gn(Nn);
7386
7390
  m.current = {
7387
7391
  ...m.current,
7388
7392
  ...Ft
7389
7393
  };
7390
7394
  }
7391
- return y.current = [...Nn], Nn;
7395
+ return y.current = [...Mn], Mn;
7392
7396
  },
7393
7397
  [
7394
7398
  G,
@@ -7432,7 +7436,7 @@ function Gp(e, t) {
7432
7436
  var Ge, tt, ze, _t;
7433
7437
  if (h.current[(tt = (Ge = pe.node) == null ? void 0 : Ge.data) == null ? void 0 : tt.id])
7434
7438
  return { color: h.current[(_t = (ze = pe.node) == null ? void 0 : ze.data) == null ? void 0 : _t.id] };
7435
- }, []), ge = oe(() => (B == null ? void 0 : B.map((pe) => pe.id)) || [], [B]), [xe, qe, Ne] = Hs({
7439
+ }, []), ge = oe(() => (B == null ? void 0 : B.map((pe) => pe.id)) || [], [B]), [xe, qe, Ne] = Us({
7436
7440
  ooui: se,
7437
7441
  model: n,
7438
7442
  showEmptyValues: !0,
@@ -7478,7 +7482,7 @@ function Gp(e, t) {
7478
7482
  $,
7479
7483
  A,
7480
7484
  C
7481
- ]), me = P(() => W, [W]), Me = oe(() => Ne ? /* @__PURE__ */ i(Us, { aggregates: qe, isLoading: xe }) : null, [qe, xe, Ne]), Je = P((pe) => /* @__PURE__ */ i(Zn, { color: pe, style: { marginLeft: 7 } }), []), ye = P(
7485
+ ]), me = P(() => W, [W]), Me = oe(() => Ne ? /* @__PURE__ */ i(Ws, { aggregates: qe, isLoading: xe }) : null, [qe, xe, Ne]), Je = P((pe) => /* @__PURE__ */ i(er, { color: pe, style: { marginLeft: 7 } }), []), ye = P(
7482
7486
  (pe) => {
7483
7487
  var Ge;
7484
7488
  return (Ge = m.current) == null ? void 0 : Ge[pe.id];
@@ -7490,7 +7494,7 @@ function Gp(e, t) {
7490
7494
  }),
7491
7495
  [A]
7492
7496
  ), ve = oe(() => !Oe || !se ? null : /* @__PURE__ */ i(
7493
- ss,
7497
+ as,
7494
7498
  {
7495
7499
  readonly: !1,
7496
7500
  ref: g,
@@ -7534,7 +7538,7 @@ function Gp(e, t) {
7534
7538
  Pe
7535
7539
  ]), Le = Y(ee), Ie = Y(k), we = Y(), ke = Y();
7536
7540
  ar(() => {
7537
- const pe = !ya(
7541
+ const pe = !va(
7538
7542
  ee,
7539
7543
  Le.current
7540
7544
  ), Ge = Ie.current && !k;
@@ -7544,12 +7548,12 @@ function Gp(e, t) {
7544
7548
  var pe;
7545
7549
  $ == null || $([]), we.current = void 0, await de(), (pe = g == null ? void 0 : g.current) == null || pe.refresh();
7546
7550
  }, [$, de]);
7547
- bt(t, () => ({
7551
+ St(t, () => ({
7548
7552
  refreshResults: Qe,
7549
7553
  getFields: () => b == null ? void 0 : b.fields,
7550
7554
  getDomain: () => a
7551
7555
  }));
7552
- const xt = oe(
7556
+ const It = oe(
7553
7557
  () => ({
7554
7558
  overflow: "hidden",
7555
7559
  height: `${R}px`,
@@ -7559,7 +7563,7 @@ function Gp(e, t) {
7559
7563
  ), Ot = oe(
7560
7564
  () => ({
7561
7565
  fields: { ...E == null ? void 0 : E.fields, ...b == null ? void 0 : b.fields },
7562
- searchFields: Gn([
7566
+ searchFields: Kn([
7563
7567
  E == null ? void 0 : E.search_fields,
7564
7568
  b == null ? void 0 : b.search_fields
7565
7569
  ]),
@@ -7596,11 +7600,11 @@ function Gp(e, t) {
7596
7600
  V,
7597
7601
  J
7598
7602
  ]
7599
- ), It = oe(
7603
+ ), Tt = oe(
7600
7604
  () => ({
7601
7605
  isOpen: k,
7602
7606
  fields: { ...E == null ? void 0 : E.fields, ...b == null ? void 0 : b.fields },
7603
- searchFields: Gn([
7607
+ searchFields: Kn([
7604
7608
  E == null ? void 0 : E.search_fields,
7605
7609
  b == null ? void 0 : b.search_fields
7606
7610
  ]),
@@ -7642,7 +7646,7 @@ function Gp(e, t) {
7642
7646
  p === "side" && /* @__PURE__ */ i(
7643
7647
  kp,
7644
7648
  {
7645
- ...It,
7649
+ ...Tt,
7646
7650
  onClose: Re,
7647
7651
  onSubmit: ct
7648
7652
  }
@@ -7655,10 +7659,10 @@ function Gp(e, t) {
7655
7659
  totalRows: C
7656
7660
  }
7657
7661
  ),
7658
- /* @__PURE__ */ i("div", { ref: T, style: xt, children: F || $e || w ? /* @__PURE__ */ i(Ke, {}) : ve })
7662
+ /* @__PURE__ */ i("div", { ref: T, style: It, children: F || $e || w ? /* @__PURE__ */ i(Ke, {}) : ve })
7659
7663
  ] });
7660
7664
  }
7661
- const va = wt(Gp), Pi = (e, t = "14px -apple-system") => {
7665
+ const wa = bt(Gp), ki = (e, t = "14px -apple-system") => {
7662
7666
  const r = document.createElement("canvas").getContext("2d");
7663
7667
  r.font = t;
7664
7668
  const o = r.measureText(e);
@@ -7668,13 +7672,13 @@ const va = wt(Gp), Pi = (e, t = "14px -apple-system") => {
7668
7672
  return { columns: e };
7669
7673
  const r = e.map(
7670
7674
  (s) => Object.assign(s, {
7671
- width: Pi(s.title)
7675
+ width: ki(s.title)
7672
7676
  })
7673
7677
  );
7674
7678
  t.map((s) => {
7675
7679
  r.map((a, l) => {
7676
7680
  const c = a.width, u = s[a.key] || "";
7677
- let f = Pi(u);
7681
+ let f = ki(u);
7678
7682
  f < c && (f = c), f > n && (f = n), r[l].width = f;
7679
7683
  });
7680
7684
  });
@@ -7709,7 +7713,7 @@ const va = wt(Gp), Pi = (e, t = "14px -apple-system") => {
7709
7713
  "{numberOfSelectedRows}",
7710
7714
  e.toString()
7711
7715
  ) + " ",
7712
- s ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ i(tc, { onClick: u, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
7716
+ s ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ i(nc, { onClick: u, style: { fontWeight: 600 }, children: c.selectAllRecords.replace(
7713
7717
  "{totalRecords}",
7714
7718
  t.toString()
7715
7719
  ) })
@@ -7718,7 +7722,7 @@ const va = wt(Gp), Pi = (e, t = "14px -apple-system") => {
7718
7722
  o.toString()
7719
7723
  ) + " " });
7720
7724
  return /* @__PURE__ */ i(qp, { children: o > n ? d : f });
7721
- }, wa = wt(
7725
+ }, ba = bt(
7722
7726
  (e, t) => {
7723
7727
  var M;
7724
7728
  const {
@@ -7756,7 +7760,7 @@ const va = wt(Gp), Pi = (e, t = "14px -apple-system") => {
7756
7760
  S
7757
7761
  );
7758
7762
  }, [S, O]);
7759
- bt(t, () => ({
7763
+ St(t, () => ({
7760
7764
  unselectAll: () => {
7761
7765
  var j;
7762
7766
  (j = R.current) == null || j.unselectAll();
@@ -7781,7 +7785,7 @@ const va = wt(Gp), Pi = (e, t = "14px -apple-system") => {
7781
7785
  ).length;
7782
7786
  return c ? null : o === void 0 ? /* @__PURE__ */ i(Ke, { className: "pb-4" }) : /* @__PURE__ */ D(je, { align: "bottom", className: "pb-4", children: [
7783
7787
  /* @__PURE__ */ i(Se, { span: T ? 8 : 12, children: /* @__PURE__ */ i(
7784
- rl,
7788
+ ol,
7785
7789
  {
7786
7790
  total: o,
7787
7791
  pageSize: $.current === 0 ? o : $.current,
@@ -7828,10 +7832,10 @@ const va = wt(Gp), Pi = (e, t = "14px -apple-system") => {
7828
7832
  if (O !== null && V && V.length > 0)
7829
7833
  return Kp(V, b, 600);
7830
7834
  }, [V, b, O]), G = oe(() => h && (O != null && O.columns.some((j) => j.sum !== void 0)) ? h - 30 : h, [h, O == null ? void 0 : O.columns]);
7831
- return O === null || !te || ((M = te == null ? void 0 : te.columns) == null ? void 0 : M.length) === 0 ? /* @__PURE__ */ i(Ke, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(Un, { children: [
7835
+ return O === null || !te || ((M = te == null ? void 0 : te.columns) == null ? void 0 : M.length) === 0 ? /* @__PURE__ */ i(Ke, { style: { padding: "2rem" } }) : /* @__PURE__ */ D(Wn, { children: [
7832
7836
  H,
7833
7837
  /* @__PURE__ */ i(
7834
- zl,
7838
+ Jl,
7835
7839
  {
7836
7840
  ref: R,
7837
7841
  height: G,
@@ -7843,9 +7847,9 @@ const va = wt(Gp), Pi = (e, t = "14px -apple-system") => {
7843
7847
  if (m[j.id])
7844
7848
  return { color: m[j.id] };
7845
7849
  },
7846
- onRowStatus: Yc(g) ? (j) => {
7850
+ onRowStatus: zc(g) ? (j) => {
7847
7851
  if (g[j.id])
7848
- return /* @__PURE__ */ i(Zn, { color: g[j.id] });
7852
+ return /* @__PURE__ */ i(er, { color: g[j.id] });
7849
7853
  } : void 0,
7850
7854
  onRowDoubleClick: u,
7851
7855
  onRowSelectionChange: p,
@@ -7853,9 +7857,9 @@ const va = wt(Gp), Pi = (e, t = "14px -apple-system") => {
7853
7857
  sorter: v,
7854
7858
  readonly: A,
7855
7859
  expandableOpts: w ? {
7856
- expandIcon: yl,
7857
- collapseIcon: vl,
7858
- loadingIcon: St,
7860
+ expandIcon: vl,
7861
+ collapseIcon: wl,
7862
+ loadingIcon: Ct,
7859
7863
  onFetchChildrenForRecord: w,
7860
7864
  childField: I
7861
7865
  } : void 0
@@ -7864,10 +7868,10 @@ const va = wt(Gp), Pi = (e, t = "14px -apple-system") => {
7864
7868
  re
7865
7869
  ] });
7866
7870
  }
7867
- ), kn = yt(wa);
7868
- kn.displayName = "Tree";
7869
- wa.displayName = "UnmemoizedTree";
7870
- const ba = (e) => {
7871
+ ), $n = yt(ba);
7872
+ $n.displayName = "Tree";
7873
+ ba.displayName = "UnmemoizedTree";
7874
+ const Sa = (e) => {
7871
7875
  const {
7872
7876
  model: t,
7873
7877
  setSearchTreeNameSearch: n,
@@ -7917,7 +7921,7 @@ const ba = (e) => {
7917
7921
  context: u,
7918
7922
  attrs: q
7919
7923
  }), xe = ge[0];
7920
- j.current = [...xe], re(ln(ge[1])), G(Wn(ge[1]));
7924
+ j.current = [...xe], re(ln(ge[1])), G(Gn(ge[1]));
7921
7925
  const qe = xe.map((be) => be.id), Ne = h !== void 0 ? on({
7922
7926
  resultsToSort: xe,
7923
7927
  sorter: h,
@@ -7952,7 +7956,7 @@ const ba = (e) => {
7952
7956
  context: u,
7953
7957
  attrs: xe
7954
7958
  });
7955
- re(ln(be)), G(Wn(be)), j.current = [...Ne];
7959
+ re(ln(be)), G(Gn(be)), j.current = [...Ne];
7956
7960
  const me = h !== void 0 ? on({
7957
7961
  resultsToSort: Ne,
7958
7962
  sorter: h,
@@ -8093,7 +8097,7 @@ const ba = (e) => {
8093
8097
  };
8094
8098
  };
8095
8099
  function zp(e, t) {
8096
- var It;
8100
+ var Tt;
8097
8101
  const {
8098
8102
  model: n,
8099
8103
  formView: r,
@@ -8153,7 +8157,7 @@ function zp(e, t) {
8153
8157
  statusForResults: Je,
8154
8158
  totalItems: ye,
8155
8159
  getAllIds: X
8156
- } = ba({
8160
+ } = Sa({
8157
8161
  model: I,
8158
8162
  setSearchTreeNameSearch: Q,
8159
8163
  setSelectedRowItems: Pe,
@@ -8177,9 +8181,9 @@ function zp(e, t) {
8177
8181
  setActionViewTotalItems: z,
8178
8182
  limit: $e,
8179
8183
  setLimit: Ee,
8180
- clearSelection: (It = w.current) == null ? void 0 : It.unselectAll
8184
+ clearSelection: (Tt = w.current) == null ? void 0 : Tt.unselectAll
8181
8185
  });
8182
- bt(t, () => ({
8186
+ St(t, () => ({
8183
8187
  refreshResults: () => {
8184
8188
  v.current = !1, de();
8185
8189
  },
@@ -8262,7 +8266,7 @@ function zp(e, t) {
8262
8266
  ), Qe = P(async () => {
8263
8267
  const Re = await X();
8264
8268
  H == null || H(Re.map((ct) => ({ id: ct }))), p == null || p(Re);
8265
- }, [X, p, H]), xt = oe(() => S != null && S.isExpandable ? _ - 160 : _ - (F + 240), [_, F, S == null ? void 0 : S.isExpandable]), Ot = oe(
8269
+ }, [X, p, H]), It = oe(() => S != null && S.isExpandable ? _ - 160 : _ - (F + 240), [_, F, S == null ? void 0 : S.isExpandable]), Ot = oe(
8266
8270
  () => J == null ? void 0 : J.map((Re) => Re.id),
8267
8271
  [J]
8268
8272
  ), mt = P(() => !S || !T ? null : /* @__PURE__ */ D(ie, { children: [
@@ -8270,7 +8274,7 @@ function zp(e, t) {
8270
8274
  _o,
8271
8275
  {
8272
8276
  fields: { ...T.fields, ...S.fields },
8273
- searchFields: Gn([
8277
+ searchFields: Kn([
8274
8278
  T.search_fields,
8275
8279
  S.search_fields
8276
8280
  ]),
@@ -8287,7 +8291,7 @@ function zp(e, t) {
8287
8291
  }
8288
8292
  ),
8289
8293
  /* @__PURE__ */ i(
8290
- kn,
8294
+ $n,
8291
8295
  {
8292
8296
  ref: w,
8293
8297
  context: d,
@@ -8299,7 +8303,7 @@ function zp(e, t) {
8299
8303
  onRequestPageChange: Ne,
8300
8304
  loading: Ce,
8301
8305
  onRowClicked: ke,
8302
- scrollY: l || xt,
8306
+ scrollY: l || It,
8303
8307
  colorsForResults: Me,
8304
8308
  statusForResults: Je,
8305
8309
  selectedRowKeys: Ot,
@@ -8313,7 +8317,7 @@ function zp(e, t) {
8313
8317
  }
8314
8318
  )
8315
8319
  ] }), [
8316
- xt,
8320
+ It,
8317
8321
  Pe,
8318
8322
  be,
8319
8323
  Te,
@@ -8346,7 +8350,7 @@ function zp(e, t) {
8346
8350
  ]), qt = b || Fe;
8347
8351
  return qt ? /* @__PURE__ */ i(ot, { className: "mt-10", message: qt, type: "error", banner: !0 }) : /* @__PURE__ */ i("div", { style: u ? {} : { display: "none" }, children: h ? /* @__PURE__ */ i(Ke, {}) : mt() });
8348
8352
  }
8349
- const Sa = wt(zp), Eo = ({
8353
+ const Ca = bt(zp), Eo = ({
8350
8354
  visible: e,
8351
8355
  onCloseModal: t,
8352
8356
  onSelectValues: n,
@@ -8359,13 +8363,13 @@ const Sa = wt(zp), Eo = ({
8359
8363
  treeView: y,
8360
8364
  formView: v,
8361
8365
  loading: w
8362
- } = $s({
8366
+ } = Ns({
8363
8367
  model: r,
8364
8368
  formViewProps: void 0,
8365
8369
  treeViewProps: void 0,
8366
8370
  context: a,
8367
8371
  enabled: e
8368
- }), I = oe(() => y != null && y.arch ? bs(y.arch, "infinite") === "1" : !1, [y == null ? void 0 : y.arch]), C = P(
8372
+ }), I = oe(() => y != null && y.arch ? Ss(y.arch, "infinite") === "1" : !1, [y == null ? void 0 : y.arch]), C = P(
8369
8373
  async (O) => {
8370
8374
  p(!0);
8371
8375
  try {
@@ -8391,7 +8395,7 @@ const Sa = wt(zp), Eo = ({
8391
8395
  }
8392
8396
  C(u);
8393
8397
  }, [u, S, C]), R = oe(
8394
- () => I ? va : Sa,
8398
+ () => I ? wa : Ca,
8395
8399
  [I]
8396
8400
  ), b = P(() => {
8397
8401
  c(!0);
@@ -8432,7 +8436,7 @@ const Sa = wt(zp), Eo = ({
8432
8436
  filterType: "top"
8433
8437
  }
8434
8438
  ),
8435
- /* @__PURE__ */ i(Qn, {}),
8439
+ /* @__PURE__ */ i(Xn, {}),
8436
8440
  /* @__PURE__ */ i(je, { justify: "end", children: /* @__PURE__ */ D(Xe, { children: [
8437
8441
  /* @__PURE__ */ i(
8438
8442
  He,
@@ -8447,7 +8451,7 @@ const Sa = wt(zp), Eo = ({
8447
8451
  He,
8448
8452
  {
8449
8453
  disabled: d,
8450
- icon: d ? /* @__PURE__ */ i(St, {}) : /* @__PURE__ */ i(tr, {}),
8454
+ icon: d ? /* @__PURE__ */ i(Ct, {}) : /* @__PURE__ */ i(nr, {}),
8451
8455
  onClick: T,
8452
8456
  type: "primary",
8453
8457
  children: g("ok")
@@ -8469,7 +8473,7 @@ const Sa = wt(zp), Eo = ({
8469
8473
  }
8470
8474
  )
8471
8475
  ] });
8472
- }, { defaultAlgorithm: Jp, defaultSeed: Qp } = We, Ca = Jp(Qp), Xp = (e) => {
8476
+ }, { defaultAlgorithm: Jp, defaultSeed: Qp } = We, xa = Jp(Qp), Xp = (e) => {
8473
8477
  const { ooui: t } = e, { required: n } = t;
8474
8478
  return /* @__PURE__ */ i(_e, { required: n, type: "array", validator: async (o, s) => {
8475
8479
  if (!s)
@@ -8478,8 +8482,8 @@ const Sa = wt(zp), Eo = ({
8478
8482
  throw new Error();
8479
8483
  if (Array.isArray(s) && !s[0])
8480
8484
  throw new Error();
8481
- }, ...e, children: /* @__PURE__ */ i(xa, { ooui: t }) });
8482
- }, xa = (e) => {
8485
+ }, ...e, children: /* @__PURE__ */ i(Ia, { ooui: t }) });
8486
+ }, Ia = (e) => {
8483
8487
  const { value: t, onChange: n, ooui: r } = e, {
8484
8488
  required: o,
8485
8489
  relation: s,
@@ -8487,7 +8491,7 @@ const Sa = wt(zp), Eo = ({
8487
8491
  context: l,
8488
8492
  id: c,
8489
8493
  domain: u
8490
- } = r, f = o && !a ? { backgroundColor: Ca.colorPrimaryBg } : void 0, [d, p] = x(!1), [h, m] = x(!1), [g, y] = x(!1), [v, w] = x(), I = Y(!1), [C, S] = x(""), A = Y(), T = ne(Ue), { domain: R, getValues: b, getFields: E, getContext: F, elementHasLostFocus: O } = T || {}, k = Y([]), [_, $] = x([]), L = t && t[0] || void 0, W = t && t[1] || "";
8494
+ } = r, f = o && !a ? { backgroundColor: xa.colorPrimaryBg } : void 0, [d, p] = x(!1), [h, m] = x(!1), [g, y] = x(!1), [v, w] = x(), I = Y(!1), [C, S] = x(""), A = Y(), T = ne(Ue), { domain: R, getValues: b, getFields: E, getContext: F, elementHasLostFocus: O } = T || {}, k = Y([]), [_, $] = x([]), L = t && t[0] || void 0, W = t && t[1] || "";
8491
8495
  le(() => {
8492
8496
  !Array.isArray(t) && t && J(t);
8493
8497
  }, [t]), le(() => {
@@ -8608,7 +8612,7 @@ const Sa = wt(zp), Eo = ({
8608
8612
  /* @__PURE__ */ i(Se, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ i(
8609
8613
  He,
8610
8614
  {
8611
- icon: g ? /* @__PURE__ */ i(St, {}) : /* @__PURE__ */ i(or, {}),
8615
+ icon: g ? /* @__PURE__ */ i(Ct, {}) : /* @__PURE__ */ i(or, {}),
8612
8616
  disabled: a || g,
8613
8617
  onClick: () => {
8614
8618
  I.current = !0, ee(W);
@@ -8653,7 +8657,7 @@ const Sa = wt(zp), Eo = ({
8653
8657
  ] });
8654
8658
  }, Zp = ut(rt)`
8655
8659
  .ant-input {
8656
- background-color: ${Ca.colorPrimaryBg};
8660
+ background-color: ${xa.colorPrimaryBg};
8657
8661
  }
8658
8662
  `, wn = pt.createContext(
8659
8663
  null
@@ -8697,7 +8701,7 @@ const Sa = wt(zp), Eo = ({
8697
8701
  }, h = () => {
8698
8702
  f(!1);
8699
8703
  const g = document.querySelector("#confirm-modal-container");
8700
- g && (is(g).unmount(), g.remove());
8704
+ g && (ss(g).unmount(), g.remove());
8701
8705
  };
8702
8706
  return /* @__PURE__ */ i(
8703
8707
  dt,
@@ -8717,10 +8721,10 @@ const Sa = wt(zp), Eo = ({
8717
8721
  children: t
8718
8722
  }
8719
8723
  );
8720
- }, Ia = (e) => {
8724
+ }, Ta = (e) => {
8721
8725
  const t = document.createElement("div");
8722
8726
  document.body.appendChild(t);
8723
- const n = is(t);
8727
+ const n = ss(t);
8724
8728
  return n.render(
8725
8729
  /* @__PURE__ */ i(
8726
8730
  th,
@@ -8740,11 +8744,11 @@ const Sa = wt(zp), Eo = ({
8740
8744
  n.unmount(), t.remove();
8741
8745
  }
8742
8746
  };
8743
- }, Ta = ({
8747
+ }, Aa = ({
8744
8748
  t: e,
8745
8749
  onOk: t
8746
8750
  }) => {
8747
- Ia({
8751
+ Ta({
8748
8752
  title: e("removeItems"),
8749
8753
  icon: /* @__PURE__ */ i($t, {}),
8750
8754
  centered: !0,
@@ -8753,11 +8757,11 @@ const Sa = wt(zp), Eo = ({
8753
8757
  cancelText: e("cancel"),
8754
8758
  onOk: t
8755
8759
  });
8756
- }, Aa = ({
8760
+ }, Oa = ({
8757
8761
  t: e,
8758
8762
  onOk: t
8759
8763
  }) => {
8760
- Ia({
8764
+ Ta({
8761
8765
  title: e("unlinkItems"),
8762
8766
  icon: /* @__PURE__ */ i($t, {}),
8763
8767
  centered: !0,
@@ -8766,7 +8770,7 @@ const Sa = wt(zp), Eo = ({
8766
8770
  onOk: t,
8767
8771
  cancelText: e("cancel")
8768
8772
  });
8769
- }, { useToken: nh } = We, Oa = (e) => {
8773
+ }, { useToken: nh } = We, Fa = (e) => {
8770
8774
  const {
8771
8775
  title: t,
8772
8776
  readOnly: n,
@@ -8801,11 +8805,11 @@ const Sa = wt(zp), Eo = ({
8801
8805
  );
8802
8806
  }
8803
8807
  function I() {
8804
- return /* @__PURE__ */ i(Zn, { count: h.length, children: /* @__PURE__ */ i(
8808
+ return /* @__PURE__ */ i(er, { count: h.length, children: /* @__PURE__ */ i(
8805
8809
  nt,
8806
8810
  {
8807
8811
  tooltip: d ? "Unlink" : "Delete",
8808
- icon: d ? /* @__PURE__ */ i(bl, {}) : /* @__PURE__ */ i(ao, {}),
8812
+ icon: d ? /* @__PURE__ */ i(Sl, {}) : /* @__PURE__ */ i(ao, {}),
8809
8813
  onClick: a,
8810
8814
  danger: !d,
8811
8815
  type: d ? "default" : "primary",
@@ -8830,7 +8834,7 @@ const Sa = wt(zp), Eo = ({
8830
8834
  nt,
8831
8835
  {
8832
8836
  tooltip: "Previous item",
8833
- icon: /* @__PURE__ */ i(es, {}),
8837
+ icon: /* @__PURE__ */ i(ts, {}),
8834
8838
  onClick: u
8835
8839
  }
8836
8840
  ),
@@ -8839,7 +8843,7 @@ const Sa = wt(zp), Eo = ({
8839
8843
  nt,
8840
8844
  {
8841
8845
  tooltip: "Next item",
8842
- icon: /* @__PURE__ */ i(ts, {}),
8846
+ icon: /* @__PURE__ */ i(ns, {}),
8843
8847
  onClick: f
8844
8848
  }
8845
8849
  )
@@ -8877,15 +8881,15 @@ const Sa = wt(zp), Eo = ({
8877
8881
  nt,
8878
8882
  {
8879
8883
  tooltip: "Toggle view mode",
8880
- icon: /* @__PURE__ */ i(wl, {}),
8884
+ icon: /* @__PURE__ */ i(bl, {}),
8881
8885
  onClick: o
8882
8886
  }
8883
8887
  )
8884
8888
  ] })
8885
8889
  ] });
8886
8890
  }, rh = {
8887
- form: Yi,
8888
- tree: Wi,
8891
+ form: zi,
8892
+ tree: Gi,
8889
8893
  graph: mn
8890
8894
  };
8891
8895
  function oh(e) {
@@ -9016,7 +9020,7 @@ const ih = (e) => {
9016
9020
  }) : X();
9017
9021
  }, ue = () => {
9018
9022
  if (j) {
9019
- Aa({
9023
+ Oa({
9020
9024
  t: v,
9021
9025
  onOk: async () => {
9022
9026
  a === "form" ? ge() : xe();
@@ -9024,7 +9028,7 @@ const ih = (e) => {
9024
9028
  });
9025
9029
  return;
9026
9030
  }
9027
- Ta({
9031
+ Aa({
9028
9032
  t: v,
9029
9033
  onOk: async () => {
9030
9034
  a === "form" ? ge() : xe();
@@ -9087,7 +9091,7 @@ const ih = (e) => {
9087
9091
  treeValues: { ...Le, id: X }
9088
9092
  } : ke);
9089
9093
  else {
9090
- const ke = Ss(s);
9094
+ const ke = Cs(s);
9091
9095
  we = s.concat({
9092
9096
  id: ke,
9093
9097
  operation: "pendingCreate",
@@ -9134,7 +9138,7 @@ const ih = (e) => {
9134
9138
  function me() {
9135
9139
  const X = rh[a];
9136
9140
  if (a === "graph")
9137
- return qi(o.get("graph").arch).string;
9141
+ return Yi(o.get("graph").arch).string;
9138
9142
  {
9139
9143
  const ve = new X(o.get(a).fields);
9140
9144
  return ve.parse(o.get(a).arch), ve.string;
@@ -9154,13 +9158,13 @@ const ih = (e) => {
9154
9158
  submitMode: "values",
9155
9159
  onFieldsChange: (ke) => {
9156
9160
  var Ot;
9157
- const Qe = (Ot = z[c]) == null ? void 0 : Ot.id, xt = s.map((mt) => mt.id === Qe ? {
9161
+ const Qe = (Ot = z[c]) == null ? void 0 : Ot.id, It = s.map((mt) => mt.id === Qe ? {
9158
9162
  ...mt,
9159
9163
  operation: mt.operation === "original" ? "pendingUpdate" : mt.operation,
9160
9164
  values: { ...ke, id: Qe },
9161
9165
  treeValues: { ...ke, id: Qe }
9162
9166
  } : mt);
9163
- Oe(xt), I(!0);
9167
+ Oe(It), I(!0);
9164
9168
  },
9165
9169
  readOnly: re
9166
9170
  }
@@ -9175,7 +9179,7 @@ const ih = (e) => {
9175
9179
  }
9176
9180
  }) : z.map((ke) => ke.treeValues)), a === "tree")
9177
9181
  return /* @__PURE__ */ i(
9178
- kn,
9182
+ $n,
9179
9183
  {
9180
9184
  total: z.length,
9181
9185
  limit: z.length,
@@ -9213,7 +9217,7 @@ const ih = (e) => {
9213
9217
  const Je = L;
9214
9218
  return C ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ D(ie, { children: [
9215
9219
  /* @__PURE__ */ i(
9216
- Oa,
9220
+ Fa,
9217
9221
  {
9218
9222
  mode: a,
9219
9223
  title: me(),
@@ -9324,20 +9328,20 @@ const ih = (e) => {
9324
9328
  endRow: g,
9325
9329
  sortFields: y
9326
9330
  }) => {
9327
- const v = ws(y), { realItemsIds: w, otherItems: I } = Xc({
9331
+ const v = bs(y), { realItemsIds: w, otherItems: I } = Zc({
9328
9332
  allItems: h,
9329
9333
  ...v ? {} : { range: { startRow: m, endRow: g } }
9330
9334
  });
9331
9335
  if (w.length === 0 && I.length === 0)
9332
9336
  return { results: [], colors: {}, status: {} };
9333
- const C = v ? (await ed(w, t, n, v)).slice(
9337
+ const C = v ? (await td(w, t, n, v)).slice(
9334
9338
  m,
9335
9339
  g
9336
- ) : w, S = td(d), {
9340
+ ) : w, S = nd(d), {
9337
9341
  items: A,
9338
9342
  colors: T,
9339
9343
  status: R
9340
- } = await nd({
9344
+ } = await rd({
9341
9345
  relation: t,
9342
9346
  ids: C,
9343
9347
  treeView: e,
@@ -9345,7 +9349,7 @@ const ih = (e) => {
9345
9349
  attrs: S,
9346
9350
  treeOoui: d
9347
9351
  }), E = C.length < g - m && I.length > 0 ? [...C, ...I.map((O) => O.id)] : C;
9348
- return { results: Zc({
9352
+ return { results: ed({
9349
9353
  finalResultIds: E,
9350
9354
  fetchedItems: A,
9351
9355
  otherItems: I
@@ -9462,7 +9466,7 @@ const ih = (e) => {
9462
9466
  values: { ...f, id: d },
9463
9467
  treeValues: { ...f, id: d }
9464
9468
  } : m);
9465
- s(Qc(p));
9469
+ s(Xc(p));
9466
9470
  },
9467
9471
  readOnly: o
9468
9472
  }
@@ -9518,13 +9522,13 @@ const ih = (e) => {
9518
9522
  }, [n, c, r, u, t]), p = P(async () => l === "form" ? await d() : await f(), [l, d, f]);
9519
9523
  return { showRemoveConfirm: P(() => {
9520
9524
  if (e) {
9521
- Aa({
9525
+ Oa({
9522
9526
  t: a,
9523
9527
  onOk: p
9524
9528
  });
9525
9529
  return;
9526
9530
  }
9527
- Ta({
9531
+ Aa({
9528
9532
  t: a,
9529
9533
  onOk: p
9530
9534
  });
@@ -9577,7 +9581,7 @@ const mh = ({
9577
9581
  treeValues: { ...T, id: S }
9578
9582
  } : E);
9579
9583
  else {
9580
- const E = Ss(o);
9584
+ const E = Cs(o);
9581
9585
  b = o.concat({
9582
9586
  id: E,
9583
9587
  operation: "pendingCreate",
@@ -9724,14 +9728,14 @@ const mh = ({
9724
9728
  var L, W, B, V;
9725
9729
  if (I.current[(W = (L = $.node) == null ? void 0 : L.data) == null ? void 0 : W.id])
9726
9730
  return { color: I.current[(V = (B = $.node) == null ? void 0 : B.data) == null ? void 0 : V.id] };
9727
- }, []), { loading: O, getColumnState: k, updateColumnState: _ } = Bs(
9731
+ }, []), { loading: O, getColumnState: k, updateColumnState: _ } = Hs(
9728
9732
  hh({
9729
9733
  ...h,
9730
9734
  model: u
9731
9735
  })
9732
9736
  );
9733
9737
  return O ? /* @__PURE__ */ i(Ke, {}) : /* @__PURE__ */ i(
9734
- ss,
9738
+ as,
9735
9739
  {
9736
9740
  ref: w,
9737
9741
  height: t || gh,
@@ -9749,9 +9753,9 @@ const mh = ({
9749
9753
  selectedRowKeys: g,
9750
9754
  onSelectionCheckboxClicked: p,
9751
9755
  totalRows: R,
9752
- footer: m && /* @__PURE__ */ i(Us, { aggregates: m, isLoading: !1 }),
9756
+ footer: m && /* @__PURE__ */ i(Ws, { aggregates: m, isLoading: !1 }),
9753
9757
  hasStatusColumn: o.status !== null,
9754
- statusComponent: ($) => /* @__PURE__ */ i(Zn, { color: $, style: { marginLeft: 7 } }),
9758
+ statusComponent: ($) => /* @__PURE__ */ i(er, { color: $, style: { marginLeft: 7 } }),
9755
9759
  onRowStatus: ($) => {
9756
9760
  var L;
9757
9761
  return (L = C.current) == null ? void 0 : L[$.id];
@@ -9769,7 +9773,7 @@ const mh = ({
9769
9773
  }) => {
9770
9774
  const o = t.filter((a) => a.id && a.id > 0);
9771
9775
  let s;
9772
- return n.length > 0 ? s = [["id", "in", n]] : o.length > 0 && (s = [["id", "in", o.map((a) => a.id)]]), Hs({
9776
+ return n.length > 0 ? s = [["id", "in", n]] : o.length > 0 && (s = [["id", "in", o.map((a) => a.id)]]), Us({
9773
9777
  ooui: e,
9774
9778
  model: r,
9775
9779
  domain: s
@@ -9907,7 +9911,7 @@ const mh = ({
9907
9911
  }, [s]);
9908
9912
  return /* @__PURE__ */ D(ie, { children: [
9909
9913
  /* @__PURE__ */ i(
9910
- Oa,
9914
+ Fa,
9911
9915
  {
9912
9916
  mode: c,
9913
9917
  title: W,
@@ -10077,7 +10081,7 @@ const mh = ({
10077
10081
  }, Ah = (e) => {
10078
10082
  const { ooui: t, value: n, onChange: r } = e, { id: o, readOnly: s, required: a } = t, { token: l } = Ih(), c = a && !s ? { backgroundColor: l.colorPrimaryBg } : void 0, u = Y(), [f, d] = x(), p = ne(Ue), { elementHasLostFocus: h } = p || {};
10079
10083
  le(() => {
10080
- d(Ns(n));
10084
+ d(Ms(n));
10081
10085
  }, [n]);
10082
10086
  const m = (v) => {
10083
10087
  r == null || r(v);
@@ -10111,7 +10115,7 @@ const mh = ({
10111
10115
  }
10112
10116
  ) });
10113
10117
  };
10114
- function Fa(e) {
10118
+ function Ra(e) {
10115
10119
  const { ooui: t, showLabel: n = !0, responsiveBehaviour: r } = e, o = ft(t.icon || ""), { t: s } = fe();
10116
10120
  return /* @__PURE__ */ i(
10117
10121
  "div",
@@ -10121,7 +10125,7 @@ function Fa(e) {
10121
10125
  overflowX: "hidden",
10122
10126
  overflowY: "auto"
10123
10127
  },
10124
- children: (t.label || o) && n ? /* @__PURE__ */ i(Vl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
10128
+ children: (t.label || o) && n ? /* @__PURE__ */ i(Dl, { label: t.label, icon: o, children: /* @__PURE__ */ i(
10125
10129
  Kr,
10126
10130
  {
10127
10131
  tip: s("loading"),
@@ -10139,7 +10143,7 @@ function Fa(e) {
10139
10143
  }
10140
10144
  );
10141
10145
  }
10142
- const { TabPane: Oh } = Ui;
10146
+ const { TabPane: Oh } = Wi;
10143
10147
  function Fh(e) {
10144
10148
  const { ooui: t, responsiveBehaviour: n } = e, r = t.pages;
10145
10149
  function o(s) {
@@ -10148,7 +10152,7 @@ function Fh(e) {
10148
10152
  return a && /* @__PURE__ */ i(a, {});
10149
10153
  }
10150
10154
  }
10151
- return /* @__PURE__ */ i(Ui, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
10155
+ return /* @__PURE__ */ i(Wi, { defaultActiveKey: "1", tabPosition: t.tabPosition, children: r.filter((s) => !s.invisible).map((s) => /* @__PURE__ */ i(
10152
10156
  Oh,
10153
10157
  {
10154
10158
  tab: /* @__PURE__ */ D(ie, { children: [
@@ -10157,7 +10161,7 @@ function Fh(e) {
10157
10161
  s.label
10158
10162
  ] }),
10159
10163
  children: /* @__PURE__ */ i(
10160
- Fa,
10164
+ Ra,
10161
10165
  {
10162
10166
  ooui: s,
10163
10167
  showLabel: !1,
@@ -10238,7 +10242,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10238
10242
  }
10239
10243
  ),
10240
10244
  /* @__PURE__ */ i(
10241
- ds,
10245
+ us,
10242
10246
  {
10243
10247
  id: a,
10244
10248
  model: l,
@@ -10273,7 +10277,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10273
10277
  nt,
10274
10278
  {
10275
10279
  tooltip: h("translate"),
10276
- icon: /* @__PURE__ */ i(Zi, {}),
10280
+ icon: /* @__PURE__ */ i(es, {}),
10277
10281
  onClick: async () => {
10278
10282
  u != null && u() ? Bt(h("saveBeforeTranslate")) : Bt(h("enterTextBeforeTranslate"));
10279
10283
  },
@@ -10283,7 +10287,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10283
10287
  ] });
10284
10288
  }, Vh = (e) => {
10285
10289
  const { ooui: t } = e, { label: n, icon: r } = t, o = ft(r || "");
10286
- return /* @__PURE__ */ i(Qn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ D(Xe, { children: [
10290
+ return /* @__PURE__ */ i(Xn, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ D(Xe, { children: [
10287
10291
  o ? /* @__PURE__ */ i(o, {}) : null,
10288
10292
  n
10289
10293
  ] }) });
@@ -10327,7 +10331,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10327
10331
  context: t,
10328
10332
  fields: []
10329
10333
  });
10330
- return a.current["/"] = y, ki({ fields: y });
10334
+ return a.current["/"] = y, $i({ fields: y });
10331
10335
  }, [e, t, a]), d = P(
10332
10336
  async (y) => {
10333
10337
  const w = Jr(y, a.current)[zr(y)], I = w.relation, C = await N.getHandler().getFields({
@@ -10340,7 +10344,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10340
10344
  parentTitle: w.string,
10341
10345
  title: A.string
10342
10346
  });
10343
- return a.current[y] = C, ki({
10347
+ return a.current[y] = C, $i({
10344
10348
  fields: C,
10345
10349
  parentKey: y
10346
10350
  });
@@ -10421,13 +10425,13 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10421
10425
  onSavePredefinedExport: g,
10422
10426
  onRemovePredefinedExport: h
10423
10427
  };
10424
- }, ki = ({
10428
+ }, $i = ({
10425
10429
  fields: e,
10426
10430
  parentKey: t
10427
10431
  }) => {
10428
10432
  const n = [];
10429
10433
  for (const r of Object.keys(e)) {
10430
- const o = e[r], s = Ra(o), a = o.is_function === !0, l = s && !a;
10434
+ const o = e[r], s = _a(o), a = o.is_function === !0, l = s && !a;
10431
10435
  n.push({
10432
10436
  key: Ph({ key: r, parentKey: t }),
10433
10437
  title: o.string,
@@ -10437,7 +10441,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10437
10441
  });
10438
10442
  }
10439
10443
  return n;
10440
- }, Ra = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Ph = ({
10444
+ }, _a = (e) => e.type === "many2one" || e.type === "one2many" || e.type === "many2many", Ph = ({
10441
10445
  parentKey: e,
10442
10446
  key: t
10443
10447
  }) => `${e ? e + "/" : ""}${t}`, Yr = (e) => e.indexOf("/") === -1 ? e : e.split("/").slice(0, -1).join("/"), zr = (e) => {
@@ -10503,7 +10507,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10503
10507
  keys: e,
10504
10508
  fields: t
10505
10509
  }) => e.map((n) => {
10506
- const r = zr(n), s = Jr(n, t)[r], a = Ra(s), l = s.is_function === !0;
10510
+ const r = zr(n), s = Jr(n, t)[r], a = _a(s), l = s.is_function === !0;
10507
10511
  return a && !l ? `${n}/id` : n;
10508
10512
  }), jh = (e) => {
10509
10513
  const t = /* @__PURE__ */ new Map(), n = [];
@@ -10546,7 +10550,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10546
10550
  onClose: n
10547
10551
  });
10548
10552
  return /* @__PURE__ */ i(
10549
- Dl,
10553
+ Pl,
10550
10554
  {
10551
10555
  visible: t,
10552
10556
  onSucceed: f,
@@ -10563,10 +10567,10 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10563
10567
  );
10564
10568
  }, Hh = (e) => {
10565
10569
  const { ooui: t } = e;
10566
- return /* @__PURE__ */ i(Ls, { ooui: t });
10570
+ return /* @__PURE__ */ i(js, { ooui: t });
10567
10571
  }, Uh = (e) => {
10568
10572
  const { ooui: t } = e;
10569
- return /* @__PURE__ */ i(Ls, { ooui: t, showTime: !0 });
10573
+ return /* @__PURE__ */ i(js, { ooui: t, showTime: !0 });
10570
10574
  }, Wh = (e) => {
10571
10575
  const { ooui: t } = e;
10572
10576
  return /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Gh, { ooui: t }) });
@@ -10593,7 +10597,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10593
10597
  f([m, void 0]), p(h);
10594
10598
  }, [t]), /* @__PURE__ */ D(je, { gutter: 8, wrap: !1, children: [
10595
10599
  /* @__PURE__ */ i(Se, { flex: "1", children: /* @__PURE__ */ i(
10596
- gs,
10600
+ ys,
10597
10601
  {
10598
10602
  ooui: new eo({
10599
10603
  name: "model_selection",
@@ -10612,9 +10616,9 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10612
10616
  }
10613
10617
  ) }),
10614
10618
  /* @__PURE__ */ i(Se, { flex: "3", children: /* @__PURE__ */ i(
10615
- xa,
10619
+ Ia,
10616
10620
  {
10617
- ooui: new Gi({
10621
+ ooui: new Ki({
10618
10622
  name: "object_value",
10619
10623
  relation: d,
10620
10624
  readonly: a,
@@ -10634,7 +10638,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10634
10638
  const { ooui: t } = e, { required: n } = t;
10635
10639
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(Jh, { ooui: t }) });
10636
10640
  }, Jh = (e) => {
10637
- const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Yh(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = Y(null), { setFieldValue: f, getFieldValue: d } = ne(Ue) || {}, { t: p } = fe(), h = n ? Hc(n) : "", m = (I) => {
10641
+ const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: s, filenameField: a } = t, { token: l } = Yh(), c = s && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, u = Y(null), { setFieldValue: f, getFieldValue: d } = ne(Ue) || {}, { t: p } = fe(), h = n ? Uc(n) : "", m = (I) => {
10638
10642
  r == null || r(I);
10639
10643
  };
10640
10644
  async function g() {
@@ -10647,7 +10651,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10647
10651
  }
10648
10652
  async function v(I) {
10649
10653
  I.stopPropagation(), I.preventDefault();
10650
- const C = I.target.files[0], S = await ys(C);
10654
+ const C = I.target.files[0], S = await vs(C);
10651
10655
  m(S), a && f(a, C.name);
10652
10656
  }
10653
10657
  function w() {
@@ -10687,7 +10691,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10687
10691
  children: "Select"
10688
10692
  }
10689
10693
  ),
10690
- /* @__PURE__ */ i(He, { icon: /* @__PURE__ */ i(Sl, {}), disabled: !n, onClick: y, children: p("open") }),
10694
+ /* @__PURE__ */ i(He, { icon: /* @__PURE__ */ i(Cl, {}), disabled: !n, onClick: y, children: p("open") }),
10691
10695
  /* @__PURE__ */ i(
10692
10696
  nt,
10693
10697
  {
@@ -10703,7 +10707,7 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10703
10707
  tooltip: p("clear"),
10704
10708
  disabled: o || !n,
10705
10709
  onClick: w,
10706
- icon: /* @__PURE__ */ i(nr, {})
10710
+ icon: /* @__PURE__ */ i(rr, {})
10707
10711
  }
10708
10712
  )
10709
10713
  ] }) })
@@ -10711,10 +10715,10 @@ const { useToken: Rh } = We, { TextArea: qr } = rt, _h = (e) => {
10711
10715
  }, Er = {
10712
10716
  tree: /* @__PURE__ */ i(lo, {}),
10713
10717
  form: /* @__PURE__ */ i(xn, {}),
10714
- graph: /* @__PURE__ */ i(Cl, {}),
10715
- calendar: /* @__PURE__ */ i(xl, {})
10718
+ graph: /* @__PURE__ */ i(xl, {}),
10719
+ calendar: /* @__PURE__ */ i(Il, {})
10716
10720
  };
10717
- function $i(e) {
10721
+ function Ni(e) {
10718
10722
  return e ? (Er == null ? void 0 : Er[e.type]) || /* @__PURE__ */ i(xn, {}) : /* @__PURE__ */ i(xn, {});
10719
10723
  }
10720
10724
  function Vo(e) {
@@ -10733,7 +10737,7 @@ function Vo(e) {
10733
10737
  return {
10734
10738
  id: d.view_id || p,
10735
10739
  name: d.title || h,
10736
- icon: $i(d),
10740
+ icon: Ni(d),
10737
10741
  selected: t.view_id === d.view_id
10738
10742
  };
10739
10743
  })
@@ -10764,7 +10768,7 @@ function Vo(e) {
10764
10768
  nt,
10765
10769
  {
10766
10770
  tooltip: a ? l("viewAs") + " " + l(a.type) : "",
10767
- icon: $i(a),
10771
+ icon: Ni(a),
10768
10772
  style: {
10769
10773
  width: 50,
10770
10774
  borderTopRightRadius: 0,
@@ -10777,7 +10781,7 @@ function Vo(e) {
10777
10781
  }
10778
10782
  ),
10779
10783
  /* @__PURE__ */ i(
10780
- os,
10784
+ is,
10781
10785
  {
10782
10786
  onRetrieveData: async () => c,
10783
10787
  onItemClick: f,
@@ -10791,7 +10795,7 @@ function Vo(e) {
10791
10795
  borderTopLeftRadius: 0,
10792
10796
  borderBottomLeftRadius: 0
10793
10797
  },
10794
- icon: /* @__PURE__ */ i(er, { style: { fontSize: "0.5em" } }),
10798
+ icon: /* @__PURE__ */ i(tr, { style: { fontSize: "0.5em" } }),
10795
10799
  onClick: (d) => d.preventDefault()
10796
10800
  }
10797
10801
  )
@@ -10819,14 +10823,14 @@ function it(e) {
10819
10823
  disabled: n,
10820
10824
  ...c,
10821
10825
  children: [
10822
- r ? /* @__PURE__ */ i(St, {}) : s,
10826
+ r ? /* @__PURE__ */ i(Ct, {}) : s,
10823
10827
  a
10824
10828
  ]
10825
10829
  }
10826
10830
  );
10827
10831
  }
10828
- const _a = (e) => /* @__PURE__ */ i(it, { ...e, type: "primary", danger: !0 });
10829
- function Ea(e) {
10832
+ const Ea = (e) => /* @__PURE__ */ i(it, { ...e, type: "primary", danger: !0 });
10833
+ function Va(e) {
10830
10834
  const { disabled: t = !1 } = e, { formHasChanges: n, onNewClicked: r } = ne(
10831
10835
  lt
10832
10836
  ), { t: o } = fe(), s = () => {
@@ -10852,7 +10856,7 @@ function Ea(e) {
10852
10856
  }
10853
10857
  );
10854
10858
  }
10855
- async function Va(e, t, n) {
10859
+ async function Da(e, t, n) {
10856
10860
  const r = (await N.getHandler().getLogInfo({
10857
10861
  model: e,
10858
10862
  ids: [t]
@@ -10887,10 +10891,10 @@ const Qh = (e) => {
10887
10891
  } = e, { t: c } = fe(), u = Y(null), f = /* @__PURE__ */ D(He, { children: [
10888
10892
  /* @__PURE__ */ i(jo, {}),
10889
10893
  `(${t})`,
10890
- /* @__PURE__ */ i(er, { style: { fontSize: 12 } })
10894
+ /* @__PURE__ */ i(tr, { style: { fontSize: 12 } })
10891
10895
  ] });
10892
10896
  return /* @__PURE__ */ i(
10893
- os,
10897
+ is,
10894
10898
  {
10895
10899
  ref: u,
10896
10900
  onRetrieveData: async () => [
@@ -10898,7 +10902,7 @@ const Qh = (e) => {
10898
10902
  items: n.map((d) => {
10899
10903
  const p = d.link ? jo : ro, h = /* @__PURE__ */ D(je, { wrap: !1, align: "middle", gutter: 8, children: [
10900
10904
  /* @__PURE__ */ i(Se, { style: { textAlign: "center" }, children: (d.datas_fname || d.link) && /* @__PURE__ */ i(
10901
- Tt,
10905
+ wt,
10902
10906
  {
10903
10907
  title: d.link ? c("openAttachmentLink") : c("download"),
10904
10908
  children: /* @__PURE__ */ i(
@@ -10913,7 +10917,7 @@ const Qh = (e) => {
10913
10917
  )
10914
10918
  }
10915
10919
  ) }),
10916
- /* @__PURE__ */ i(Se, { style: { textAlign: "center" }, children: /* @__PURE__ */ i(Tt, { title: c("openAttachment"), children: /* @__PURE__ */ i(
10920
+ /* @__PURE__ */ i(Se, { style: { textAlign: "center" }, children: /* @__PURE__ */ i(wt, { title: c("openAttachment"), children: /* @__PURE__ */ i(
10917
10921
  xn,
10918
10922
  {
10919
10923
  style: { cursor: "pointer" },
@@ -11079,7 +11083,7 @@ const Zh = () => {
11079
11083
  le(() => () => {
11080
11084
  c();
11081
11085
  }, [c]);
11082
- const u = ks(), f = P(
11086
+ const u = $s(), f = P(
11083
11087
  async (y) => {
11084
11088
  var v;
11085
11089
  try {
@@ -11151,7 +11155,7 @@ function eg({ toolbar: e }) {
11151
11155
  const t = ne(
11152
11156
  gn
11153
11157
  ), n = ne(
11154
- Ct
11158
+ xt
11155
11159
  ), { t: r } = fe(), { onNextClick: o, onPreviousClick: s } = Zh(), {
11156
11160
  availableViews: a,
11157
11161
  currentView: l,
@@ -11265,11 +11269,11 @@ function eg({ toolbar: e }) {
11265
11269
  Xt(),
11266
11270
  Xt()
11267
11271
  ] }),
11268
- /* @__PURE__ */ i(Ea, { disabled: B }),
11272
+ /* @__PURE__ */ i(Va, { disabled: B }),
11269
11273
  /* @__PURE__ */ i(
11270
11274
  it,
11271
11275
  {
11272
- icon: /* @__PURE__ */ i(Il, {}),
11276
+ icon: /* @__PURE__ */ i(Tl, {}),
11273
11277
  tooltip: r("save"),
11274
11278
  disabled: !f || B,
11275
11279
  loading: d,
@@ -11291,7 +11295,7 @@ function eg({ toolbar: e }) {
11291
11295
  }
11292
11296
  ),
11293
11297
  /* @__PURE__ */ i(
11294
- _a,
11298
+ Ea,
11295
11299
  {
11296
11300
  icon: /* @__PURE__ */ i(ao, {}),
11297
11301
  tooltip: r("delete"),
@@ -11308,10 +11312,10 @@ function eg({ toolbar: e }) {
11308
11312
  /* @__PURE__ */ i(
11309
11313
  it,
11310
11314
  {
11311
- icon: /* @__PURE__ */ i(rr, {}),
11315
+ icon: /* @__PURE__ */ i(_n, {}),
11312
11316
  tooltip: r("showLogs"),
11313
11317
  disabled: B || p === void 0,
11314
- onClick: () => Va(v, p, r)
11318
+ onClick: () => Da(v, p, r)
11315
11319
  }
11316
11320
  ),
11317
11321
  /* @__PURE__ */ i(
@@ -11342,7 +11346,7 @@ function eg({ toolbar: e }) {
11342
11346
  /* @__PURE__ */ i(
11343
11347
  it,
11344
11348
  {
11345
- icon: /* @__PURE__ */ i(es, {}),
11349
+ icon: /* @__PURE__ */ i(ts, {}),
11346
11350
  tooltip: r("previous"),
11347
11351
  disabled: B,
11348
11352
  onClick: () => V(s)
@@ -11351,7 +11355,7 @@ function eg({ toolbar: e }) {
11351
11355
  /* @__PURE__ */ i(
11352
11356
  it,
11353
11357
  {
11354
- icon: /* @__PURE__ */ i(ts, {}),
11358
+ icon: /* @__PURE__ */ i(ns, {}),
11355
11359
  tooltip: r("next"),
11356
11360
  disabled: B,
11357
11361
  onClick: () => V(o)
@@ -11424,7 +11428,7 @@ function eg({ toolbar: e }) {
11424
11428
  onAddNewAttachment: async () => {
11425
11429
  const H = await Zt({ onFormSave: u });
11426
11430
  H.succeed && W({
11427
- ...Ni(
11431
+ ...Mi(
11428
11432
  v,
11429
11433
  H.currentId
11430
11434
  ),
@@ -11434,7 +11438,7 @@ function eg({ toolbar: e }) {
11434
11438
  onListAllAttachments: async () => {
11435
11439
  const H = await Zt({ onFormSave: u });
11436
11440
  H.succeed && W({
11437
- ...Ni(
11441
+ ...Mi(
11438
11442
  v,
11439
11443
  H.currentId
11440
11444
  ),
@@ -11457,7 +11461,7 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11457
11461
  }) => {
11458
11462
  const t = await (e == null ? void 0 : e());
11459
11463
  return t != null && t.succeed ? { succeed: !0, currentId: t.id } : { succeed: !1, currentId: void 0 };
11460
- }, Ni = (e, t) => ({
11464
+ }, Mi = (e, t) => ({
11461
11465
  model: "ir.attachment",
11462
11466
  domain: [
11463
11467
  ["res_model", "=", e],
@@ -11465,7 +11469,7 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11465
11469
  ],
11466
11470
  values: { selection_associated_object: `${e},${t}` },
11467
11471
  forced_values: { res_model: e, res_id: t }
11468
- }), { useToken: tg } = We, Da = (e) => {
11472
+ }), { useToken: tg } = We, Pa = (e) => {
11469
11473
  const { ooui: t, value: n, onChange: r, valueValidator: o, linkPrefix: s = "" } = e, { id: a, readOnly: l, required: c } = t, { token: u } = tg(), f = c && !l ? { backgroundColor: u.colorPrimaryBg } : void 0, d = ne(Ue), { elementHasLostFocus: p } = d || {}, [h, m] = x(!1), [g, y] = x(!1);
11470
11474
  le(() => {
11471
11475
  l && !h && y(!1), !n && !l && (m(!0), y(!0));
@@ -11477,7 +11481,7 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11477
11481
  l ? null : /* @__PURE__ */ i(Se, { flex: "none", children: h ? /* @__PURE__ */ i(
11478
11482
  He,
11479
11483
  {
11480
- icon: /* @__PURE__ */ i(tr, {}),
11484
+ icon: /* @__PURE__ */ i(nr, {}),
11481
11485
  onClick: () => {
11482
11486
  o(n) && (m(!1), y(!1));
11483
11487
  },
@@ -11487,7 +11491,7 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11487
11491
  ) : /* @__PURE__ */ i(
11488
11492
  He,
11489
11493
  {
11490
- icon: /* @__PURE__ */ i(ns, {}),
11494
+ icon: /* @__PURE__ */ i(rs, {}),
11491
11495
  onClick: () => {
11492
11496
  m(!0), y(!0);
11493
11497
  },
@@ -11524,20 +11528,20 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11524
11528
  }, ng = (e) => {
11525
11529
  const { ooui: t } = e, { required: n } = t;
11526
11530
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: /* @__PURE__ */ i(
11527
- Da,
11531
+ Pa,
11528
11532
  {
11529
11533
  ooui: t,
11530
- valueValidator: (r) => r ? rc(r) : !1
11534
+ valueValidator: (r) => r ? oc(r) : !1
11531
11535
  }
11532
11536
  ) });
11533
11537
  }, rg = (e) => {
11534
11538
  const { ooui: t } = e, { required: n } = t;
11535
11539
  return /* @__PURE__ */ i(_e, { required: n, ...e, children: t.multi ? /* @__PURE__ */ i(ku, { readonly: t.readOnly, maxLength: t.size }) : /* @__PURE__ */ i(
11536
- Da,
11540
+ Pa,
11537
11541
  {
11538
11542
  ooui: t,
11539
11543
  linkPrefix: "mailto:",
11540
- valueValidator: (r) => r ? oc(r) : !1
11544
+ valueValidator: (r) => r ? ic(r) : !1
11541
11545
  }
11542
11546
  ) });
11543
11547
  }, og = (e) => {
@@ -11593,7 +11597,7 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11593
11597
  tabIndex: 1,
11594
11598
  loading: o,
11595
11599
  style: { marginLeft: 15 },
11596
- icon: /* @__PURE__ */ i(Tl, {}),
11600
+ icon: /* @__PURE__ */ i(Al, {}),
11597
11601
  htmlType: "submit",
11598
11602
  disabled: o,
11599
11603
  onClick: () => {
@@ -11623,7 +11627,7 @@ const Xt = () => /* @__PURE__ */ i("div", { className: "inline-block w-2" }), Zt
11623
11627
  }
11624
11628
  );
11625
11629
  }, { useToken: ig } = We;
11626
- function Pa(e) {
11630
+ function ka(e) {
11627
11631
  const { badgeNumber: t = 0, ...n } = e, { token: r } = ig();
11628
11632
  return /* @__PURE__ */ D("div", { style: { position: "relative" }, children: [
11629
11633
  t > 0 && /* @__PURE__ */ i("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ i(
@@ -11665,10 +11669,10 @@ function sg({ refreshGraph: e }) {
11665
11669
  } = ne(lt);
11666
11670
  return /* @__PURE__ */ D(Xe, { wrap: !0, children: [
11667
11671
  /* @__PURE__ */ i(
11668
- Pa,
11672
+ ka,
11669
11673
  {
11670
11674
  icon: /* @__PURE__ */ i(
11671
- rs,
11675
+ os,
11672
11676
  {
11673
11677
  style: { color: a ? "white" : void 0 }
11674
11678
  }
@@ -11708,7 +11712,7 @@ function sg({ refreshGraph: e }) {
11708
11712
  )
11709
11713
  ] });
11710
11714
  }
11711
- const { useToken: ag } = We, { Title: lg, Text: jn } = kt, hr = ({
11715
+ const { useToken: ag } = We, { Title: lg, Text: Bn } = kt, hr = ({
11712
11716
  title: e,
11713
11717
  children: t,
11714
11718
  showSummary: n = !0
@@ -11732,7 +11736,7 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, hr = ({
11732
11736
  " (id:",
11733
11737
  " ",
11734
11738
  /* @__PURE__ */ i(
11735
- jn,
11739
+ Bn,
11736
11740
  {
11737
11741
  copyable: { icon: /* @__PURE__ */ i(co, { style: { color: "red" } }) },
11738
11742
  children: s
@@ -11755,7 +11759,7 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, hr = ({
11755
11759
  " ",
11756
11760
  d("editingDocument"),
11757
11761
  " (id: ",
11758
- /* @__PURE__ */ i(jn, { copyable: !0, children: s }),
11762
+ /* @__PURE__ */ i(Bn, { copyable: !0, children: s }),
11759
11763
  ")"
11760
11764
  ] });
11761
11765
  }
@@ -11764,14 +11768,14 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, hr = ({
11764
11768
  d("selectedRegisters"),
11765
11769
  " - (id:",
11766
11770
  " ",
11767
- /* @__PURE__ */ i(jn, { copyable: !0, children: u[0].id }),
11771
+ /* @__PURE__ */ i(Bn, { copyable: !0, children: u[0].id }),
11768
11772
  ")"
11769
11773
  ] }) : /* @__PURE__ */ D(ie, { children: [
11770
11774
  u.length,
11771
11775
  " ",
11772
11776
  d("selectedRegisters"),
11773
11777
  /* @__PURE__ */ i(
11774
- jn,
11778
+ Bn,
11775
11779
  {
11776
11780
  copyable: {
11777
11781
  text: u.map((m) => m.id).join(", ")
@@ -11843,7 +11847,7 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, hr = ({
11843
11847
  }, [b]), le(() => {
11844
11848
  t.view_id !== O.view_id && _(!0);
11845
11849
  }, [O]);
11846
- const { clear: $, searchFilterLoading: L, searchError: W, offset: B, tableRefreshing: V } = ba({
11850
+ const { clear: $, searchFilterLoading: L, searchError: W, offset: B, tableRefreshing: V } = Sa({
11847
11851
  model: r,
11848
11852
  setSearchTreeNameSearch: S,
11849
11853
  setSelectedRowItems: m,
@@ -11879,7 +11883,7 @@ const { useToken: ag } = We, { Title: lg, Text: jn } = kt, hr = ({
11879
11883
  _o,
11880
11884
  {
11881
11885
  fields: { ...l.fields, ...a.fields },
11882
- searchFields: Gn([
11886
+ searchFields: Kn([
11883
11887
  a.search_fields,
11884
11888
  l.search_fields
11885
11889
  ]),
@@ -11966,8 +11970,8 @@ function ug(e) {
11966
11970
  l(f.target.value.length > 0);
11967
11971
  },
11968
11972
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
11969
- suffix: (a || r && r.length > 0) && /* @__PURE__ */ i(Tt, { title: o("clear"), children: /* @__PURE__ */ i(
11970
- Al,
11973
+ suffix: (a || r && r.length > 0) && /* @__PURE__ */ i(wt, { title: o("clear"), children: /* @__PURE__ */ i(
11974
+ Ol,
11971
11975
  {
11972
11976
  style: { color: "rgba(0,0,0,.45)" },
11973
11977
  onClick: u
@@ -12130,10 +12134,10 @@ function fg(e) {
12130
12134
  }
12131
12135
  ),
12132
12136
  !F && /* @__PURE__ */ i(
12133
- Pa,
12137
+ ka,
12134
12138
  {
12135
12139
  icon: /* @__PURE__ */ i(
12136
- rs,
12140
+ os,
12137
12141
  {
12138
12142
  style: { color: m ? "white" : void 0 }
12139
12143
  }
@@ -12148,7 +12152,7 @@ function fg(e) {
12148
12152
  }
12149
12153
  ),
12150
12154
  Mt(),
12151
- /* @__PURE__ */ i(Ea, { disabled: w }),
12155
+ /* @__PURE__ */ i(Va, { disabled: w }),
12152
12156
  /* @__PURE__ */ i(
12153
12157
  it,
12154
12158
  {
@@ -12160,7 +12164,7 @@ function fg(e) {
12160
12164
  }
12161
12165
  ),
12162
12166
  /* @__PURE__ */ i(
12163
- _a,
12167
+ Ea,
12164
12168
  {
12165
12169
  icon: /* @__PURE__ */ i(ao, {}),
12166
12170
  tooltip: _("delete"),
@@ -12174,12 +12178,12 @@ function fg(e) {
12174
12178
  /* @__PURE__ */ i(
12175
12179
  it,
12176
12180
  {
12177
- icon: /* @__PURE__ */ i(rr, {}),
12181
+ icon: /* @__PURE__ */ i(_n, {}),
12178
12182
  tooltip: _("showLogs"),
12179
12183
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || w,
12180
12184
  loading: !1,
12181
12185
  onClick: () => {
12182
- Va(u, o[0].id, _);
12186
+ Da(u, o[0].id, _);
12183
12187
  }
12184
12188
  }
12185
12189
  ),
@@ -12251,7 +12255,7 @@ function fg(e) {
12251
12255
  {
12252
12256
  placement: "bottomRight",
12253
12257
  icon: /* @__PURE__ */ i(
12254
- Ji,
12258
+ Qi,
12255
12259
  {
12256
12260
  component: () => /* @__PURE__ */ D(
12257
12261
  "svg",
@@ -12349,7 +12353,7 @@ const mg = (e) => {
12349
12353
  setCurrentView: d,
12350
12354
  availableViews: p,
12351
12355
  searchTreeNameSearch: h
12352
- } = e, m = oe(() => !(a != null && a.arch) || a.isExpandable ? !1 : bs(a.arch, "infinite") === "1", [a]);
12356
+ } = e, m = oe(() => !(a != null && a.arch) || a.isExpandable ? !1 : Ss(a.arch, "infinite") === "1", [a]);
12353
12357
  le(() => {
12354
12358
  v == null || v(m);
12355
12359
  }, [m]);
@@ -12386,7 +12390,7 @@ const mg = (e) => {
12386
12390
  }
12387
12391
  ) }),
12388
12392
  m && /* @__PURE__ */ i(
12389
- va,
12393
+ wa,
12390
12394
  {
12391
12395
  ref: n,
12392
12396
  rootTree: !0,
@@ -12399,7 +12403,7 @@ const mg = (e) => {
12399
12403
  }
12400
12404
  ),
12401
12405
  !m && /* @__PURE__ */ i(
12402
- Sa,
12406
+ Ca,
12403
12407
  {
12404
12408
  ref: n,
12405
12409
  rootTree: !0,
@@ -12437,7 +12441,7 @@ function hg() {
12437
12441
  it,
12438
12442
  {
12439
12443
  icon: /* @__PURE__ */ i(
12440
- Ol,
12444
+ Fl,
12441
12445
  {
12442
12446
  style: { color: n ? "white" : void 0 }
12443
12447
  }
@@ -12455,7 +12459,7 @@ function hg() {
12455
12459
  /* @__PURE__ */ i(
12456
12460
  it,
12457
12461
  {
12458
- icon: /* @__PURE__ */ i(Fl, {}),
12462
+ icon: /* @__PURE__ */ i(Rl, {}),
12459
12463
  tooltip: o("configDashboard"),
12460
12464
  disabled: e,
12461
12465
  loading: !1,
@@ -12483,7 +12487,7 @@ function gg() {
12483
12487
  }
12484
12488
  const yg = (e) => {
12485
12489
  const { dashboardData: t, visible: n } = e, r = Y(), o = ne(
12486
- Ct
12490
+ xt
12487
12491
  ), { openShortcut: s } = o || {};
12488
12492
  return !t || !n ? null : /* @__PURE__ */ D(
12489
12493
  pg,
@@ -12543,7 +12547,7 @@ function wg(e, t) {
12543
12547
  } = e, [v, w] = x(), [I, C] = x([]), [S, A] = x(!0), T = p || void 0, [R, b] = x(
12544
12548
  T
12545
12549
  ), [E, F] = x([]), [O, k] = x(), [_, $] = x([]), [L, W] = x(), [B, V] = x(0), [Z, ee] = x(!1), [J, H] = x(!1), [re, te] = x(), { t: G } = fe(), M = Y(), j = Y(), he = ne(
12546
- Ct
12550
+ xt
12547
12551
  ), {
12548
12552
  setCurrentView: z,
12549
12553
  setCurrentId: Q,
@@ -12568,7 +12572,7 @@ function wg(e, t) {
12568
12572
  const ge = { action_id: h, action_type: m };
12569
12573
  z == null || z({ ...q, extra: ge });
12570
12574
  }
12571
- bt(t, () => ({
12575
+ St(t, () => ({
12572
12576
  canWeClose: Te
12573
12577
  }));
12574
12578
  const Be = async () => {
@@ -12795,7 +12799,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12795
12799
  }
12796
12800
  }
12797
12801
  return S ? /* @__PURE__ */ i(Ke, {}) : v ? /* @__PURE__ */ D(
12798
- Ld,
12802
+ jd,
12799
12803
  {
12800
12804
  title: a,
12801
12805
  currentView: v,
@@ -12839,8 +12843,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
12839
12843
  }
12840
12844
  ) : null;
12841
12845
  }
12842
- const ka = wt(wg);
12843
- const bg = cc(dc), Sg = (e) => {
12846
+ const $a = bt(wg);
12847
+ const bg = dc(uc), Sg = (e) => {
12844
12848
  const { children: t = [], onPositionItemsChanged: n } = e, r = pt.Children.map(
12845
12849
  t,
12846
12850
  (o) => {
@@ -12954,7 +12958,7 @@ function Cg(e) {
12954
12958
  }, z = () => !m || !y ? null : /* @__PURE__ */ D("div", { style: { overflowY: "scroll" }, children: [
12955
12959
  L && /* @__PURE__ */ i(ot, { className: "mt-10", message: L, type: "error", banner: !0 }),
12956
12960
  /* @__PURE__ */ i(
12957
- kn,
12961
+ $n,
12958
12962
  {
12959
12963
  showPagination: !1,
12960
12964
  total: R,
@@ -13009,7 +13013,7 @@ function Tg(e, t) {
13009
13013
  );
13010
13014
  le(() => {
13011
13015
  S();
13012
- }, [n, o, r]), bt(t, () => ({
13016
+ }, [n, o, r]), St(t, () => ({
13013
13017
  refresh: () => {
13014
13018
  S();
13015
13019
  },
@@ -13074,7 +13078,7 @@ function Tg(e, t) {
13074
13078
  for (const $ of O) {
13075
13079
  const { values: L } = $;
13076
13080
  if (L.action_id && L.action_id.length > 0) {
13077
- const W = parseInt(L.action_id[0], 10), B = xs({
13081
+ const W = parseInt(L.action_id[0], 10), B = Is({
13078
13082
  actionId: W,
13079
13083
  rootContext: r
13080
13084
  }).then((V) => ({ ...$, actionData: V }));
@@ -13129,7 +13133,7 @@ function Tg(e, t) {
13129
13133
  async function F() {
13130
13134
  h(s);
13131
13135
  }
13132
- return c ? /* @__PURE__ */ i(St, {}) : f ? /* @__PURE__ */ i(ot, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Sg, { onPositionItemsChanged: E, children: a.map((O, k) => {
13136
+ return c ? /* @__PURE__ */ i(Ct, {}) : f ? /* @__PURE__ */ i(ot, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ i(Sg, { onPositionItemsChanged: E, children: a.map((O, k) => {
13133
13137
  const { actionData: _, values: $ } = O, { position: L, id: W } = $, {
13134
13138
  actionId: B,
13135
13139
  actionType: V,
@@ -13151,7 +13155,7 @@ function Tg(e, t) {
13151
13155
  }
13152
13156
  let z = null;
13153
13157
  if ((M == null ? void 0 : M.type) === "graph") {
13154
- const $e = $.server_action === !0 && C ? _s : mn;
13158
+ const $e = $.server_action === !0 && C ? Es : mn;
13155
13159
  z = /* @__PURE__ */ i(
13156
13160
  $e,
13157
13161
  {
@@ -13205,7 +13209,7 @@ function Tg(e, t) {
13205
13209
  else if (M !== void 0) {
13206
13210
  const De = M && Array.isArray(M.id) ? { ...M, id: M.id[0] } : M;
13207
13211
  z = /* @__PURE__ */ i(
13208
- ka,
13212
+ $a,
13209
13213
  {
13210
13214
  action_id: B,
13211
13215
  action_type: V,
@@ -13247,23 +13251,24 @@ function Tg(e, t) {
13247
13251
  };
13248
13252
  }
13249
13253
  return /* @__PURE__ */ i(
13250
- Es,
13254
+ Vs,
13251
13255
  {
13252
13256
  id: W,
13253
13257
  title: J ? /* @__PURE__ */ D(ie, { children: [
13254
- /* @__PURE__ */ i(Tt, { title: J, children: /* @__PURE__ */ i(rr, { className: "pr-1 text-xs" }) }),
13258
+ /* @__PURE__ */ i(wt, { title: J, children: /* @__PURE__ */ i(_n, { className: "pr-1 text-xs" }) }),
13255
13259
  /* @__PURE__ */ i("span", { children: ee })
13256
13260
  ] }) : /* @__PURE__ */ i("span", { children: ee }),
13257
13261
  parms: he,
13258
13262
  action: Q,
13259
13263
  openAction: h,
13264
+ tooltip: J,
13260
13265
  children: z
13261
13266
  },
13262
13267
  `griditem-${W}`
13263
13268
  );
13264
13269
  }) });
13265
13270
  }
13266
- const Ag = wt(Tg), Og = (e) => {
13271
+ const Ag = bt(Tg), Og = (e) => {
13267
13272
  const { ooui: t } = e;
13268
13273
  return /* @__PURE__ */ i(_e, { type: "array", ...e, children: /* @__PURE__ */ i(Fg, { ooui: t }) });
13269
13274
  }, Fg = (e) => {
@@ -13357,9 +13362,9 @@ const Ag = wt(Tg), Og = (e) => {
13357
13362
  overflow: "auto"
13358
13363
  },
13359
13364
  children: /* @__PURE__ */ i(
13360
- ic,
13365
+ sc,
13361
13366
  {
13362
- remarkPlugins: [sc],
13367
+ remarkPlugins: [ac],
13363
13368
  className: "markdown-typography",
13364
13369
  children: t
13365
13370
  }
@@ -13380,7 +13385,7 @@ const Ag = wt(Tg), Og = (e) => {
13380
13385
  return /* @__PURE__ */ i(_e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ i(Pg, { id: n, readOnly: r, required: o }) });
13381
13386
  }, Pg = (e) => {
13382
13387
  const { required: t, readOnly: n, ...r } = e;
13383
- return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(ol, { disabled: n, ...r }) });
13388
+ return /* @__PURE__ */ i("div", { className: "flex flex-row", children: /* @__PURE__ */ i(il, { disabled: n, ...r }) });
13384
13389
  }, kg = (e) => {
13385
13390
  const { ooui: t } = e, { required: n } = t;
13386
13391
  return /* @__PURE__ */ i(_e, { required: n, type: "any", ...e, children: /* @__PURE__ */ i($g, { ...e }) });
@@ -13473,7 +13478,7 @@ const Ag = wt(Tg), Og = (e) => {
13473
13478
  return n;
13474
13479
  }, [o, n]);
13475
13480
  return /* @__PURE__ */ i(
13476
- ac,
13481
+ lc,
13477
13482
  {
13478
13483
  value: f,
13479
13484
  options: {
@@ -13486,10 +13491,10 @@ const Ag = wt(Tg), Og = (e) => {
13486
13491
  }
13487
13492
  );
13488
13493
  }, { Meta: Bg } = Qr, { Text: Hg } = kt, Ug = ({ email: e, size: t = 40, theme: n = "" }) => {
13489
- const r = `https://www.gravatar.com/avatar/${lc(
13494
+ const r = `https://www.gravatar.com/avatar/${cc(
13490
13495
  e
13491
13496
  )}?s=${t}&d=${n}`;
13492
- return /* @__PURE__ */ i(Bi, { src: r, size: t });
13497
+ return /* @__PURE__ */ i(Hi, { src: r, size: t });
13493
13498
  };
13494
13499
  function Wg({ text: e }) {
13495
13500
  const t = e.split(`
@@ -13531,7 +13536,7 @@ const Gg = (e) => {
13531
13536
  };
13532
13537
  });
13533
13538
  return /* @__PURE__ */ i(
13534
- Li,
13539
+ ji,
13535
13540
  {
13536
13541
  mode: "alternate",
13537
13542
  items: r,
@@ -13544,7 +13549,7 @@ const Gg = (e) => {
13544
13549
  }
13545
13550
  }
13546
13551
  );
13547
- }, qg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Kg, { ooui: e.ooui }) }), Yg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Pl, {}) }), zg = (e) => {
13552
+ }, qg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Kg, { ooui: e.ooui }) }), Yg = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(kl, {}) }), zg = (e) => {
13548
13553
  const { ooui: t } = e, n = ne(Ue);
13549
13554
  let { title: r, text: o, alertType: s, icon: a, buttons: l } = t;
13550
13555
  if (t.fieldType && t.id) {
@@ -13556,7 +13561,7 @@ const Gg = (e) => {
13556
13561
  icon: a = t.icon,
13557
13562
  buttons: l = []
13558
13563
  } = f, l && (l = l.map(
13559
- (d) => new fl({ ...d, readonly: t.readOnly })
13564
+ (d) => new ml({ ...d, readonly: t.readOnly })
13560
13565
  )), t.buttons && (l = [...t.buttons, ...l])) : console.log(`field value for ${t.id} is not an object`);
13561
13566
  }
13562
13567
  function c(f) {
@@ -13577,7 +13582,7 @@ const Gg = (e) => {
13577
13582
  icon: c(a)
13578
13583
  }
13579
13584
  );
13580
- }, { defaultAlgorithm: Jg, defaultSeed: Qg } = We, Mi = Jg(Qg), Xg = (e) => {
13585
+ }, { defaultAlgorithm: Jg, defaultSeed: Qg } = We, Li = Jg(Qg), Xg = (e) => {
13581
13586
  const { ooui: t, responsiveBehaviour: n = !1 } = e;
13582
13587
  return /* @__PURE__ */ i(Zg, { autoplay: t.autoPlay, dots: !0, autoplaySpeed: 5e3, children: t.items.map((r, o) => /* @__PURE__ */ i(
13583
13588
  So,
@@ -13587,17 +13592,17 @@ const Gg = (e) => {
13587
13592
  },
13588
13593
  o
13589
13594
  )) });
13590
- }, Zg = ut(il)`
13595
+ }, Zg = ut(sl)`
13591
13596
  .slick-dots li button {
13592
- background-color: ${Mi.colorPrimary};
13597
+ background-color: ${Li.colorPrimary};
13593
13598
  }
13594
13599
  .slick-dots li.slick-active button {
13595
- background-color: ${Mi.colorPrimary};
13600
+ background-color: ${Li.colorPrimary};
13596
13601
  }
13597
13602
  .slick-dots-bottom {
13598
13603
  bottom: -15px;
13599
13604
  }
13600
- `, { Content: ey } = Hi, { Title: ty } = kt;
13605
+ `, { Content: ey } = Ui, { Title: ty } = kt;
13601
13606
  function ny() {
13602
13607
  const { t: e } = fe();
13603
13608
  return /* @__PURE__ */ i(ey, { className: "m-5 select-none", children: /* @__PURE__ */ i(ty, { level: 5, children: e("welcome") }) });
@@ -13611,7 +13616,7 @@ function ry(e, t) {
13611
13616
  content: /* @__PURE__ */ i(ny, {})
13612
13617
  }
13613
13618
  ]), f = Y(/* @__PURE__ */ new Map()), d = Y();
13614
- bt(t, () => ({
13619
+ St(t, () => ({
13615
13620
  retrieveAndOpenAction: m,
13616
13621
  openShortcut: v
13617
13622
  }));
@@ -13894,7 +13899,7 @@ function ry(e, t) {
13894
13899
  type: O
13895
13900
  },
13896
13901
  content: /* @__PURE__ */ i(
13897
- ka,
13902
+ $a,
13898
13903
  {
13899
13904
  action_id: F,
13900
13905
  action_type: O,
@@ -13918,7 +13923,7 @@ function ry(e, t) {
13918
13923
  }
13919
13924
  }
13920
13925
  return /* @__PURE__ */ i(
13921
- Wd,
13926
+ Gd,
13922
13927
  {
13923
13928
  openShortcut: v,
13924
13929
  openAction: I,
@@ -13944,7 +13949,7 @@ function ry(e, t) {
13944
13949
  }
13945
13950
  );
13946
13951
  }
13947
- const ov = wt(ry), { useToken: oy } = We;
13952
+ const ov = bt(ry), { useToken: oy } = We;
13948
13953
  function iy(e) {
13949
13954
  const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: s } = e, { token: a } = oy(), l = o ? a.colorBgContainer : a.colorPrimaryBg;
13950
13955
  return /* @__PURE__ */ D(
@@ -14018,7 +14023,7 @@ function iy(e) {
14018
14023
  }
14019
14024
  function iv() {
14020
14025
  const e = ne(
14021
- Ct
14026
+ xt
14022
14027
  ), { activeKey: t, tabs: n, onRemoveTab: r, onChangeTab: o } = e || {};
14023
14028
  return /* @__PURE__ */ i(ie, { children: n.map((s) => /* @__PURE__ */ i(
14024
14029
  iy,
@@ -14034,7 +14039,7 @@ function iv() {
14034
14039
  }
14035
14040
  function sy(e) {
14036
14041
  const { tab: t } = e, n = ne(
14037
- Ct
14042
+ xt
14038
14043
  ), { activeKey: r } = n || {}, o = {
14039
14044
  display: "none"
14040
14045
  };
@@ -14043,7 +14048,7 @@ function sy(e) {
14043
14048
  const ay = pt.memo(sy, () => !0);
14044
14049
  function sv() {
14045
14050
  const e = ne(
14046
- Ct
14051
+ xt
14047
14052
  ), { tabs: t } = e || {}, n = (t == null ? void 0 : t.map((r) => /* @__PURE__ */ i(ay, { tab: r }, r.key))) || null;
14048
14053
  return /* @__PURE__ */ i(ie, { children: n });
14049
14054
  }
@@ -14055,7 +14060,7 @@ const { useToken: ly } = We, av = (e) => {
14055
14060
  onRemoveFavourite: o,
14056
14061
  onDropdownClosed: s
14057
14062
  } = e, [a, l] = x(!1), [c, u] = x(), { t: f } = fe(), { token: d } = ly(), p = Y(null), h = ne(
14058
- Ct
14063
+ xt
14059
14064
  ), {
14060
14065
  openShortcut: m,
14061
14066
  tabs: g,
@@ -14149,7 +14154,7 @@ const { useToken: ly } = We, av = (e) => {
14149
14154
  g
14150
14155
  ]);
14151
14156
  return /* @__PURE__ */ i(
14152
- kl,
14157
+ $l,
14153
14158
  {
14154
14159
  ref: p,
14155
14160
  isFavourite: a,
@@ -14158,8 +14163,8 @@ const { useToken: ly } = We, av = (e) => {
14158
14163
  placement: "bottomRight",
14159
14164
  header: /* @__PURE__ */ D("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
14160
14165
  /* @__PURE__ */ i("div", { style: { paddingLeft: 15, color: "#ccc" }, children: f == null ? void 0 : f("favorites").toUpperCase() }),
14161
- /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ i(Tt, { title: f == null ? void 0 : f("edit_favorites"), children: /* @__PURE__ */ i(
14162
- ns,
14166
+ /* @__PURE__ */ i("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ i(wt, { title: f == null ? void 0 : f("edit_favorites"), children: /* @__PURE__ */ i(
14167
+ rs,
14163
14168
  {
14164
14169
  style: { color: d.colorPrimary, cursor: "pointer" },
14165
14170
  onClick: R
@@ -14175,19 +14180,19 @@ const { useToken: ly } = We, av = (e) => {
14175
14180
  };
14176
14181
  export {
14177
14182
  eg as ActionBar,
14178
- ka as ActionView,
14183
+ $a as ActionView,
14179
14184
  zg as Alert,
14180
14185
  Mg as ArrowStepsField,
14181
14186
  zh as Binary,
14182
- Lc as Boolean,
14187
+ jc as Boolean,
14183
14188
  mo as Button,
14184
- bc as ButtonGroup,
14189
+ Sc as ButtonGroup,
14185
14190
  Xg as Carousel,
14186
- us as Char,
14191
+ fs as Char,
14187
14192
  Lg as CodeEditor,
14188
14193
  qg as CommentsTimelineField,
14189
- Cs as ConfigContext,
14190
- vd as ConfigContextProvider,
14194
+ xs as ConfigContext,
14195
+ wd as ConfigContextProvider,
14191
14196
  N as ConnectionProvider,
14192
14197
  yu as ContentRootProvider,
14193
14198
  sv as CurrentTabContent,
@@ -14204,11 +14209,11 @@ export {
14204
14209
  Th as FloatTime,
14205
14210
  yn as Form,
14206
14211
  vn as FormModal,
14207
- Es as GraphCard,
14208
- Cd as GraphIndicator,
14209
- Fa as Group,
14212
+ Vs as GraphCard,
14213
+ xd as GraphIndicator,
14214
+ Ra as Group,
14210
14215
  Yg as HTMLPreview,
14211
- Uc as Image,
14216
+ Wc as Image,
14212
14217
  On as Integer,
14213
14218
  lr as Label,
14214
14219
  Xp as Many2one,
@@ -14222,8 +14227,8 @@ export {
14222
14227
  ov as RootView,
14223
14228
  _o as SearchFilter,
14224
14229
  Eo as SearchModal,
14225
- Sa as SearchTree,
14226
- hs as Selection,
14230
+ Ca as SearchTree,
14231
+ gs as Selection,
14227
14232
  Vh as Separator,
14228
14233
  Kr as Spinner,
14229
14234
  kg as Steps,
@@ -14234,7 +14239,7 @@ export {
14234
14239
  eu as Tags,
14235
14240
  _h as Text,
14236
14241
  Wh as Time,
14237
- kn as Tree,
14242
+ $n as Tree,
14238
14243
  ng as Url,
14239
14244
  dv as dayjs,
14240
14245
  ft as iconMapper,