@gisce/react-ooui 2.74.0-alpha.1 → 2.74.0-alpha.2

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,9 +1,9 @@
1
1
  var kl = Object.defineProperty;
2
2
  var Vl = (e, t, n) => t in e ? kl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var is = (e, t, n) => (Vl(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { jsx as s, jsxs as N, Fragment as oe } from "react/jsx-runtime";
5
- import It, { useContext as ae, useState as I, useEffect as le, useRef as q, memo as nt, useCallback as O, useMemo as Q, forwardRef as _t, useImperativeHandle as Dt, Fragment as En, createContext as Nl, createElement as Ml } from "react";
6
- import { Tooltip as Mt, theme as Xe, Typography as nn, Form as Et, Row as Ye, Col as Fe, Modal as xt, Button as qe, Dropdown as $l, Menu as as, Spin as tt, Divider as Ir, Space as it, Input as pt, Select as fn, Checkbox as qn, Alert as vt, Timeline as mi, message as Yn, Popover as Ll, App as Hl, Progress as Bl, Avatar as pi, Tag as Fo, ColorPicker as hi, DatePicker as gi, TimePicker as jl, InputNumber as Fr, Layout as yi, Badge as tr, Pagination as Ul, Empty as vi, Statistic as Wl, Card as Ao, Tabs as bi, Radio as ls, Switch as Yl, Steps as cs, Carousel as Gl } from "antd";
4
+ import { jsx as s, jsxs as M, Fragment as oe } from "react/jsx-runtime";
5
+ import It, { useContext as ae, useState as I, useEffect as le, useRef as q, memo as nt, useCallback as O, useMemo as Q, forwardRef as _t, useImperativeHandle as Dt, Fragment as En, createContext as Ml, createElement as Nl } from "react";
6
+ import { Tooltip as Nt, theme as Xe, Typography as nn, Form as Et, Row as Ye, Col as Fe, Modal as xt, Button as qe, Dropdown as $l, Menu as as, Spin as tt, Divider as Ir, Space as it, Input as pt, Select as fn, Checkbox as qn, Alert as vt, Timeline as mi, message as Yn, Popover as Ll, App as Hl, Progress as Bl, Avatar as pi, Tag as Fo, ColorPicker as hi, DatePicker as gi, TimePicker as jl, InputNumber as Fr, Layout as yi, Badge as tr, Pagination as Ul, Empty as vi, Statistic as Wl, Card as Ao, Tabs as bi, Radio as ls, Switch as Yl, Steps as cs, Carousel as Gl } from "antd";
7
7
  import { Label as Dn, Field as lo, Tree as wi, Reference as Kl, Selection as _o, Many2one as Si, Boolean as ql, parseContext as Zt, graphProcessor as Ci, graphFieldUtils as zl, parseContextFields as Jl, parseDomainFields as Ql, Integer as co, SearchFieldTypes as Xt, SearchFilter as xi, parseGraph as Ti, Container as Xl, Form as Ii, transformDomainForChildWidget as Ro, Button as Zl } from "@gisce/ooui";
8
8
  import * as ds from "@ant-design/icons";
9
9
  import Fi, { QuestionCircleOutlined as Ai, ExclamationCircleOutlined as rn, LoadingOutlined as $t, DownOutlined as Ar, WarningOutlined as _i, CloseOutlined as Pn, CheckOutlined as nr, TranslationOutlined as Ri, FolderOpenOutlined as Oo, DownloadOutlined as Eo, ClearOutlined as _r, FormOutlined as zn, TableOutlined as Do, AreaChartOutlined as ec, CalendarOutlined as tc, FileAddOutlined as Rr, CloseCircleFilled as nc, CopyOutlined as rr, FilterOutlined as Oi, DeleteOutlined as Po, InfoCircleOutlined as kn, ReloadOutlined as Or, ThunderboltOutlined as Er, PrinterOutlined as Dr, ExportOutlined as Ei, EnterOutlined as Pr, SearchOutlined as kr, UpOutlined as rc, PlusSquareOutlined as oc, MinusSquareOutlined as sc, StarFilled as ic, StarOutlined as ac, LeftOutlined as Di, RightOutlined as Pi, ApiOutlined as lc, AlignLeftOutlined as cc, EyeOutlined as dc, LinkOutlined as us, SaveOutlined as uc, EditOutlined as ki, PlusOutlined as fc, BorderOuterOutlined as mc, SettingOutlined as pc } from "@ant-design/icons";
@@ -28,14 +28,14 @@ import Vc from "lodash/debounce";
28
28
  import { nanoid as Vo } from "nanoid";
29
29
  import uo from "antd/lib/typography/Title";
30
30
  import jt from "use-deep-compare-effect";
31
- import { Line as Nc, Column as Mc, Pie as $c } from "@ant-design/plots";
32
- import { createRoot as Ni } from "react-dom/client";
31
+ import { Line as Mc, Column as Nc, Pie as $c } from "@ant-design/plots";
32
+ import { createRoot as Mi } from "react-dom/client";
33
33
  import { fileTypeFromBuffer as Lc } from "file-type-buffer-browser";
34
34
  import { generate as Hc } from "@ant-design/colors";
35
35
  import Bc from "antd/es/date-picker/locale/en_US";
36
36
  import jc from "antd/es/date-picker/locale/es_ES";
37
37
  import Uc from "antd/es/date-picker/locale/ca_ES";
38
- import { InfiniteTable as Mi, Table as Wc, PaginatedTable as Yc } from "@gisce/react-formiga-table";
38
+ import { InfiniteTable as Ni, Table as Wc, PaginatedTable as Yc } from "@gisce/react-formiga-table";
39
39
  import $i from "antd/es/typography/Link";
40
40
  import { useDeepCompareEffect as Ft, useDeepCompareCallback as At, useDeepCompareMemo as Fn } from "use-deep-compare";
41
41
  import { isPresetStatusColor as Li, isPresetColor as Hi } from "antd/lib/_util/colors";
@@ -189,12 +189,12 @@ const { Text: cd, Title: dd } = nn, { useToken: ud } = Xe, fd = {
189
189
  ) : "", t.humanDate ? u = u ? Qe(u).fromNow() : "" : (u = m, m = "");
190
190
  }
191
191
  const p = n || (i ? r ? "left" : "right" : "left"), { token: y } = ud(), g = l === void 0 ? cd : dd;
192
- return /* @__PURE__ */ N(
192
+ return /* @__PURE__ */ M(
193
193
  "div",
194
194
  {
195
195
  className: `flex flex-row items-center pb-1 pt-1 ${fd[p]}`,
196
196
  children: [
197
- a && /* @__PURE__ */ s(Mt, { title: a, children: /* @__PURE__ */ s(
197
+ a && /* @__PURE__ */ s(Nt, { title: a, children: /* @__PURE__ */ s(
198
198
  Ai,
199
199
  {
200
200
  className: "pr-1 text-xs",
@@ -251,10 +251,10 @@ function $e({
251
251
  align: a
252
252
  }
253
253
  );
254
- return n === "horizontal" ? (() => /* @__PURE__ */ N(Ye, { align: "middle", className: "pb-1 pt-1", children: [
254
+ return n === "horizontal" ? (() => /* @__PURE__ */ M(Ye, { align: "middle", className: "pb-1 pt-1", children: [
255
255
  /* @__PURE__ */ s(Fe, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ s("div", { className: "flex flex-col items-end", children: y }) }),
256
256
  /* @__PURE__ */ s(Fe, { flex: "auto", children: p() })
257
- ] }))() : (() => /* @__PURE__ */ N(oe, { children: [
257
+ ] }))() : (() => /* @__PURE__ */ M(oe, { children: [
258
258
  y,
259
259
  p()
260
260
  ] }))();
@@ -411,7 +411,7 @@ function gs(e, t) {
411
411
  );
412
412
  }
413
413
  }
414
- const No = (e) => {
414
+ const Mo = (e) => {
415
415
  const { ooui: t } = e, {
416
416
  id: n,
417
417
  label: r,
@@ -498,7 +498,7 @@ const No = (e) => {
498
498
  if (t.buttons.length === 0)
499
499
  return null;
500
500
  if (t.buttons.length > 1)
501
- return /* @__PURE__ */ s($e, { ooui: new lo({ defaultButton: n }), children: /* @__PURE__ */ N(
501
+ return /* @__PURE__ */ s($e, { ooui: new lo({ defaultButton: n }), children: /* @__PURE__ */ M(
502
502
  $l.Button,
503
503
  {
504
504
  disabled: !i || m,
@@ -519,7 +519,7 @@ const No = (e) => {
519
519
  }
520
520
  ) });
521
521
  if (n)
522
- return /* @__PURE__ */ s(No, { ooui: n });
522
+ return /* @__PURE__ */ s(Mo, { ooui: n });
523
523
  }, gd = (e) => {
524
524
  const { t } = ge(), { ooui: n, executeButtonAction: r } = e;
525
525
  if (!n)
@@ -581,7 +581,7 @@ function ys() {
581
581
  height: t
582
582
  };
583
583
  }
584
- function Nr() {
584
+ function Mr() {
585
585
  const [e, t] = I(
586
586
  ys()
587
587
  );
@@ -608,7 +608,7 @@ const Cn = class Cn {
608
608
  }
609
609
  };
610
610
  is(Cn, "handler");
611
- let M = Cn;
611
+ let N = Cn;
612
612
  const ji = (e) => {
613
613
  let t, n, r;
614
614
  if (typeof e == "string" && e.indexOf(" -- ") !== -1 && e.indexOf(`
@@ -636,7 +636,7 @@ const ji = (e) => {
636
636
  content: t
637
637
  });
638
638
  }, Ui = (e) => {
639
- const { visible: t, onCloseModal: n, model: r, id: o, field: a, onSubmitSucceed: i } = e, { modalWidth: l } = Nr(), { t: c } = ge(), [d, f] = I([]), [u, m] = I(!1), [h, p] = I(!1), [y, g] = I({}), v = q();
639
+ const { visible: t, onCloseModal: n, model: r, id: o, field: a, onSubmitSucceed: i } = e, { modalWidth: l } = Mr(), { t: c } = ge(), [d, f] = I([]), [u, m] = I(!1), [h, p] = I(!1), [y, g] = I({}), v = q();
640
640
  le(() => {
641
641
  t ? b() : g({});
642
642
  }, [t]);
@@ -651,7 +651,7 @@ const ji = (e) => {
651
651
  m(!1);
652
652
  }
653
653
  async function _() {
654
- const A = (await M.getHandler().search({
654
+ const A = (await N.getHandler().search({
655
655
  params: [["translatable", "=", "1"]],
656
656
  fieldsToRetrieve: ["code", "name"],
657
657
  model: "res.lang"
@@ -664,7 +664,7 @@ const ji = (e) => {
664
664
  async function C(w) {
665
665
  const A = {};
666
666
  for (const k of w) {
667
- const S = (await M.getHandler().readObjects({
667
+ const S = (await N.getHandler().readObjects({
668
668
  model: r,
669
669
  ids: [o],
670
670
  fieldsToRetrieve: [a],
@@ -675,7 +675,7 @@ const ji = (e) => {
675
675
  v.current = A, g(A);
676
676
  }
677
677
  function x() {
678
- return d.map((w, A) => /* @__PURE__ */ N(Ye, { style: { paddingBottom: 20 }, children: [
678
+ return d.map((w, A) => /* @__PURE__ */ M(Ye, { style: { paddingBottom: 20 }, children: [
679
679
  /* @__PURE__ */ s(Fe, { flex: "8rem", style: { paddingRight: 10 }, children: w.name }),
680
680
  /* @__PURE__ */ s(Fe, { flex: "auto", children: /* @__PURE__ */ s(
681
681
  kc,
@@ -697,7 +697,7 @@ const ji = (e) => {
697
697
  p(!0);
698
698
  try {
699
699
  for (const w of Object.keys(y))
700
- y[w] !== v.current[w] && await M.getHandler().update({
700
+ y[w] !== v.current[w] && await N.getHandler().update({
701
701
  model: r,
702
702
  id: o,
703
703
  values: { [a]: y[w] },
@@ -712,10 +712,10 @@ const ji = (e) => {
712
712
  p(!1), i();
713
713
  }
714
714
  function T() {
715
- return u ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ N(oe, { children: [
715
+ return u ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ M(oe, { children: [
716
716
  x(),
717
717
  /* @__PURE__ */ s(Ir, {}),
718
- /* @__PURE__ */ s(Ye, { justify: "end", children: /* @__PURE__ */ N(it, { children: [
718
+ /* @__PURE__ */ s(Ye, { justify: "end", children: /* @__PURE__ */ M(it, { children: [
719
719
  /* @__PURE__ */ s(
720
720
  qe,
721
721
  {
@@ -757,7 +757,7 @@ const ji = (e) => {
757
757
  };
758
758
  function mt(e) {
759
759
  const { tooltip: t, ...n } = e;
760
- return /* @__PURE__ */ s(Mt, { title: t, children: /* @__PURE__ */ s(qe, { ...n }) });
760
+ return /* @__PURE__ */ s(Nt, { title: t, children: /* @__PURE__ */ s(qe, { ...n }) });
761
761
  }
762
762
  const { info: wd } = xt, cn = (e) => {
763
763
  wd({
@@ -765,12 +765,12 @@ const { info: wd } = xt, cn = (e) => {
765
765
  centered: !0,
766
766
  content: e
767
767
  });
768
- }, { useToken: Sd } = Xe, Mr = nt(({ content: e }) => {
768
+ }, { useToken: Sd } = Xe, Nr = nt(({ content: e }) => {
769
769
  const { token: t } = Sd();
770
770
  return /* @__PURE__ */ s("div", { style: { color: t.colorTextDisabled }, children: e });
771
771
  });
772
- Mr.displayName = "AddonElement";
773
- const { defaultAlgorithm: Cd, defaultSeed: xd } = Xe, Mo = Cd(xd), Qn = nt(
772
+ Nr.displayName = "AddonElement";
773
+ const { defaultAlgorithm: Cd, defaultSeed: xd } = Xe, No = Cd(xd), Qn = nt(
774
774
  ({
775
775
  component: e,
776
776
  ooui: t,
@@ -780,7 +780,7 @@ const { defaultAlgorithm: Cd, defaultSeed: xd } = Xe, Mo = Cd(xd), Qn = nt(
780
780
  disabled: a,
781
781
  ...i
782
782
  }) => {
783
- const l = O((c) => c ? /* @__PURE__ */ s(Mr, { content: c }) : null, []);
783
+ const l = O((c) => c ? /* @__PURE__ */ s(Nr, { content: c }) : null, []);
784
784
  return /* @__PURE__ */ s(
785
785
  e,
786
786
  {
@@ -884,7 +884,7 @@ const Gi = nt(
884
884
  forceRefresh: !0
885
885
  });
886
886
  }, [l]), C = y ? Id : Td;
887
- return a ? /* @__PURE__ */ N(oe, { children: [
887
+ return a ? /* @__PURE__ */ M(oe, { children: [
888
888
  /* @__PURE__ */ s("div", { onClick: v, children: /* @__PURE__ */ s(
889
889
  Qn,
890
890
  {
@@ -908,7 +908,7 @@ const Gi = nt(
908
908
  onSubmitSucceed: _
909
909
  }
910
910
  )
911
- ] }) : /* @__PURE__ */ N(Ye, { gutter: 8, wrap: !1, children: [
911
+ ] }) : /* @__PURE__ */ M(Ye, { gutter: 8, wrap: !1, children: [
912
912
  /* @__PURE__ */ s(Fe, { flex: "auto", children: /* @__PURE__ */ s(
913
913
  Qn,
914
914
  {
@@ -940,17 +940,17 @@ const Td = gt(pt)`
940
940
  }
941
941
  `, Id = gt(pt)`
942
942
  &.ant-input {
943
- background-color: ${Mo.colorPrimaryBg};
943
+ background-color: ${No.colorPrimaryBg};
944
944
  cursor: pointer;
945
945
  pointer-events: none;
946
946
  }
947
947
  `, Ki = gt(pt)`
948
948
  &.ant-input {
949
- background-color: ${Mo.colorPrimaryBg};
949
+ background-color: ${No.colorPrimaryBg};
950
950
  }
951
951
  `, Fd = gt(pt.Password)`
952
952
  &.ant-input-affix-wrapper {
953
- background-color: ${Mo.colorPrimaryBg};
953
+ background-color: ${No.colorPrimaryBg};
954
954
  }
955
955
  `, { defaultAlgorithm: Ad, defaultSeed: _d } = Xe, Rd = Ad(_d), { Option: Od } = fn, qi = (e) => {
956
956
  const { ooui: t } = e, { required: n } = t;
@@ -982,8 +982,8 @@ const Td = gt(pt)`
982
982
  return /* @__PURE__ */ s($e, { ...e, valuePropName: "checked", children: /* @__PURE__ */ s(Vd, { id: n, readOnly: r, required: o }) });
983
983
  }, Vd = (e) => {
984
984
  const { required: t, readOnly: n, ...r } = e;
985
- return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(t && !n ? Nd : qn, { disabled: n, ...r }) });
986
- }, Nd = gt(qn)`
985
+ return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(t && !n ? Md : qn, { disabled: n, ...r }) });
986
+ }, Md = gt(qn)`
987
987
  .ant-checkbox-inner {
988
988
  background-color: ${vs.colorPrimaryBg};
989
989
  }
@@ -992,7 +992,7 @@ const Td = gt(pt)`
992
992
  background-color: ${vs.colorPrimary};
993
993
  }
994
994
  `;
995
- function Md(e) {
995
+ function Nd(e) {
996
996
  const n = Buffer.from(e, "base64").length / 1e3;
997
997
  return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
998
998
  }
@@ -1047,8 +1047,8 @@ const $o = (e) => {
1047
1047
  function f() {
1048
1048
  l(void 0);
1049
1049
  }
1050
- return /* @__PURE__ */ N(oe, { children: [
1051
- /* @__PURE__ */ N(Ye, { gutter: 8, wrap: !1, justify: "center", children: [
1050
+ return /* @__PURE__ */ M(oe, { children: [
1051
+ /* @__PURE__ */ M(Ye, { gutter: 8, wrap: !1, justify: "center", children: [
1052
1052
  Q(
1053
1053
  () => /* @__PURE__ */ s($o, { value: n }),
1054
1054
  [n, t]
@@ -1065,7 +1065,7 @@ const $o = (e) => {
1065
1065
  }
1066
1066
  )
1067
1067
  ] }),
1068
- t.showControls && /* @__PURE__ */ s(Ye, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ N(it, { children: [
1068
+ t.showControls && /* @__PURE__ */ s(Ye, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ M(it, { children: [
1069
1069
  /* @__PURE__ */ s(
1070
1070
  mt,
1071
1071
  {
@@ -1128,9 +1128,9 @@ function jd(e) {
1128
1128
  const Lr = (e, t, n, r = !1) => e.columns.map((a) => {
1129
1129
  const i = a.type, l = a.id, c = t == null ? void 0 : t[i];
1130
1130
  let d;
1131
- return c ? d = (f) => c({ value: f, key: l, ooui: a, context: n }) : d = (f) => jd(f) ? f : /* @__PURE__ */ N("p", { style: { color: "red" }, children: [
1131
+ return c ? d = (f) => c({ value: f, key: l, ooui: a, context: n }) : d = (f) => jd(f) ? f : /* @__PURE__ */ M("p", { style: { color: "red" }, children: [
1132
1132
  "Unsupported widget value for a Tree cell:",
1133
- /* @__PURE__ */ s("pre", { children: /* @__PURE__ */ N("strong", { children: [
1133
+ /* @__PURE__ */ s("pre", { children: /* @__PURE__ */ M("strong", { children: [
1134
1134
  "Type: ",
1135
1135
  i,
1136
1136
  " - Value: ",
@@ -1238,7 +1238,7 @@ const Lo = async (e) => {
1238
1238
  };
1239
1239
  let u = [], m;
1240
1240
  if (i === "tree" && (o != null && o.arch)) {
1241
- const g = (y = qt(o)) == null ? void 0 : y.colors, v = await M.getHandler().readEvalUiObjects({
1241
+ const g = (y = qt(o)) == null ? void 0 : y.colors, v = await N.getHandler().readEvalUiObjects({
1242
1242
  model: n,
1243
1243
  ids: d,
1244
1244
  arch: o == null ? void 0 : o.arch,
@@ -1250,7 +1250,7 @@ const Lo = async (e) => {
1250
1250
  });
1251
1251
  u = v[0], m = _n(v[1]);
1252
1252
  } else
1253
- u = await M.getHandler().readObjects({
1253
+ u = await N.getHandler().readObjects({
1254
1254
  model: n,
1255
1255
  ids: d,
1256
1256
  fields: f[i],
@@ -1342,7 +1342,7 @@ const Kd = ({
1342
1342
  const i = t.findIndex((c) => c.id === o.id), l = t.findIndex((c) => c.id === a.id);
1343
1343
  return i - l;
1344
1344
  }), r;
1345
- }, zd = async (e, t, n, r) => await M.getHandler().searchAllIds({
1345
+ }, zd = async (e, t, n, r) => await N.getHandler().searchAllIds({
1346
1346
  model: t,
1347
1347
  params: [["id", "in", e]],
1348
1348
  context: n,
@@ -1358,7 +1358,7 @@ const Kd = ({
1358
1358
  attrs: o,
1359
1359
  treeOoui: a
1360
1360
  }) => {
1361
- const i = await M.getHandler().readEvalUiObjects({
1361
+ const i = await N.getHandler().readEvalUiObjects({
1362
1362
  model: e,
1363
1363
  ids: t,
1364
1364
  arch: n.arch,
@@ -1508,14 +1508,14 @@ const pn = ({
1508
1508
  }), ou = (e, t) => e.replace(
1509
1509
  /\{([^}]+)\}/g,
1510
1510
  (n, r) => t[r] !== void 0 ? t[r] : n
1511
- ), Ss = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), su = (e) => /* @__PURE__ */ N(
1511
+ ), Ss = (e) => !(!Array.isArray(e) || e.length !== 2 || e[0] === void 0 && e[1] === ""), su = (e) => /* @__PURE__ */ M(
1512
1512
  "div",
1513
1513
  {
1514
1514
  style: { display: "inline-block", cursor: "pointer" },
1515
1515
  onClick: e.onClick,
1516
1516
  children: [
1517
1517
  /* @__PURE__ */ s("strong", { children: e.title }),
1518
- e.summary && /* @__PURE__ */ N(oe, { children: [
1518
+ e.summary && /* @__PURE__ */ M(oe, { children: [
1519
1519
  /* @__PURE__ */ s("br", {}),
1520
1520
  /* @__PURE__ */ s("span", { children: e.summary })
1521
1521
  ] })
@@ -1526,7 +1526,7 @@ const pn = ({
1526
1526
  jt(() => {
1527
1527
  p();
1528
1528
  }, [t]);
1529
- const h = async (y) => o && o[y] ? o[y] : await M.getHandler().getView({
1529
+ const h = async (y) => o && o[y] ? o[y] : await N.getHandler().getView({
1530
1530
  model: n,
1531
1531
  type: y,
1532
1532
  context: { ...m == null ? void 0 : m(), ...r }
@@ -1608,7 +1608,7 @@ const pn = ({
1608
1608
  };
1609
1609
  return (V = F.values) != null && V[_] && (P.dot = k(F.values[_])), ($ = F.values) != null && $[C] && (P.color = !Li(F.values[C]) && !Hi(F.values[C]) && !F.values[C].toString().startsWith("#") ? or(F.values[C]) : F.values[C]), P;
1610
1610
  });
1611
- return /* @__PURE__ */ N(oe, { children: [
1611
+ return /* @__PURE__ */ M(oe, { children: [
1612
1612
  /* @__PURE__ */ s(mi, { style: { padding: "1rem" }, items: S }),
1613
1613
  /* @__PURE__ */ s(
1614
1614
  Hn,
@@ -2030,7 +2030,7 @@ async function ra({
2030
2030
  rootContext: t = {},
2031
2031
  globalValues: n = {}
2032
2032
  }) {
2033
- const r = "ir.actions.act_window", o = `${r},${e}`, a = await M.getHandler().getActionData({
2033
+ const r = "ir.actions.act_window", o = `${r},${e}`, a = await N.getHandler().getActionData({
2034
2034
  action: o,
2035
2035
  context: t
2036
2036
  }), i = Zt({
@@ -2047,7 +2047,7 @@ async function ra({
2047
2047
  } = a, p = m === "tree";
2048
2048
  if (!l.active_id)
2049
2049
  return { title: f };
2050
- const y = a.domain ? await M.getHandler().evalDomain({
2050
+ const y = a.domain ? await N.getHandler().evalDomain({
2051
2051
  domain: a.domain,
2052
2052
  values: n,
2053
2053
  context: l
@@ -2057,7 +2057,7 @@ async function ra({
2057
2057
  if (x)
2058
2058
  g.push(C);
2059
2059
  else {
2060
- const { view_id: T } = await M.getHandler().getView({
2060
+ const { view_id: T } = await N.getHandler().getView({
2061
2061
  model: c,
2062
2062
  type: R,
2063
2063
  id: x,
@@ -2279,7 +2279,7 @@ function hu({
2279
2279
  justifyContent: "center",
2280
2280
  overflow: "hidden"
2281
2281
  },
2282
- children: /* @__PURE__ */ N(uo, { style: { fontSize: c, margin: 0, color: a }, children: [
2282
+ children: /* @__PURE__ */ M(uo, { style: { fontSize: c, margin: 0, color: a }, children: [
2283
2283
  h && /* @__PURE__ */ s(h, { style: { fontSize: c * 0.7 } }),
2284
2284
  h ? ` ${u}` : u
2285
2285
  ] })
@@ -2329,9 +2329,9 @@ function gu({
2329
2329
  flexDirection: "column",
2330
2330
  padding: "0.2rem"
2331
2331
  },
2332
- children: /* @__PURE__ */ N(Ye, { align: "middle", children: [
2332
+ children: /* @__PURE__ */ M(Ye, { align: "middle", children: [
2333
2333
  y && /* @__PURE__ */ s(Fe, { style: { fontSize: f * 1, color: i, paddingRight: "10px" }, children: /* @__PURE__ */ s(y, {}) }),
2334
- /* @__PURE__ */ N(Fe, { children: [
2334
+ /* @__PURE__ */ M(Fe, { children: [
2335
2335
  /* @__PURE__ */ s(uo, { style: { fontSize: f * 0.8, margin: 0, color: i }, children: y ? ` ${r}%` : `${r}%` }),
2336
2336
  /* @__PURE__ */ s(
2337
2337
  uo,
@@ -2365,15 +2365,15 @@ const { getValueForOperator: Cs } = Ci, yu = (e) => {
2365
2365
  manualIds: u,
2366
2366
  fixedHeight: m
2367
2367
  } = e, [h, p] = I(!1), [y, g] = I(), [v, b] = I(0), [_, C] = I(), [x, R] = I(), [T, w] = I(), [A, k] = I(), [S] = ze(
2368
- M.getHandler().searchAllIds
2368
+ N.getHandler().searchAllIds
2369
2369
  ), [F] = ze(
2370
- M.getHandler().readObjects
2370
+ N.getHandler().readObjects
2371
2371
  ), [P] = ze(
2372
- M.getHandler().searchCount
2372
+ N.getHandler().searchCount
2373
2373
  ), [E] = ze(
2374
- M.getHandler().evalDomain
2374
+ N.getHandler().evalDomain
2375
2375
  ), [H] = ze(
2376
- M.getHandler().parseCondition
2376
+ N.getHandler().parseCondition
2377
2377
  );
2378
2378
  le(() => {
2379
2379
  L();
@@ -2492,10 +2492,10 @@ const { getValueForOperator: Cs } = Ci, yu = (e) => {
2492
2492
  uninformedString: i,
2493
2493
  manualIds: l
2494
2494
  } = e, [c, d] = I(!1), [f, u] = I(), [m, h] = I(), [p, y] = I(), [g, v] = I("line"), [b] = ze(
2495
- M.getHandler().getFields
2495
+ N.getHandler().getFields
2496
2496
  ), [_] = ze(
2497
- M.getHandler().readObjects
2498
- ), [C] = ze(M.getHandler().search), x = O(async () => {
2497
+ N.getHandler().readObjects
2498
+ ), [C] = ze(N.getHandler().search), x = O(async () => {
2499
2499
  d(!0), u(void 0), v(n.type || "line");
2500
2500
  const R = bu({ ooui: n });
2501
2501
  let T, w;
@@ -2764,14 +2764,22 @@ const Fu = {
2764
2764
  }
2765
2765
  }
2766
2766
  }, Au = (e) => {
2767
- const t = e.reduce((i, l) => i + l.value, 0), r = e.map((i) => i.value / t * 100).map((i) => Math.round(i)), a = 100 - r.reduce((i, l) => i + l, 0);
2768
- for (let i = 0; i < Math.abs(a); i++)
2769
- a > 0 ? r[i % r.length]++ : r[i % r.length]--;
2770
- return e.map((i, l) => ({
2771
- x: i.x,
2772
- percent: r[l]
2767
+ const t = e.reduce((c, d) => c + d.value, 0), r = e.map((c) => c.value / t * 100).map(
2768
+ (c) => Math.round(c * 100) / 100
2769
+ ), o = r.reduce((c, d) => c + d, 0);
2770
+ if (Math.abs(o - 100) < 1e-3)
2771
+ return e.map((c, d) => ({
2772
+ x: c.x,
2773
+ percent: r[d]
2774
+ }));
2775
+ const i = (100 - o) / r.length, l = r.map(
2776
+ (c) => Math.round((c + i) * 100) / 100
2777
+ );
2778
+ return e.map((c, d) => ({
2779
+ x: c.x,
2780
+ percent: l[d]
2773
2781
  }));
2774
- }, { Text: Ts } = nn, la = 400, _u = nt(Nc), Ru = nt(Mc), Ou = nt($c), Eu = {
2782
+ }, { Text: Ts } = nn, la = 400, _u = nt(Mc), Ru = nt(Nc), Ou = nt($c), Eu = {
2775
2783
  line: _u,
2776
2784
  bar: Ru,
2777
2785
  pie: Ou
@@ -2798,7 +2806,7 @@ const Fu = {
2798
2806
  if (!d)
2799
2807
  return;
2800
2808
  const g = d.find((_) => _.x === y);
2801
- return `${`${((g == null ? void 0 : g.percent) || 0).toFixed(0)}%`}`;
2809
+ return `${`${(g == null ? void 0 : g.percent) || 0}`}%`;
2802
2810
  },
2803
2811
  [d]
2804
2812
  ), u = Q(() => {
@@ -2830,7 +2838,7 @@ const Fu = {
2830
2838
  a,
2831
2839
  i
2832
2840
  ]);
2833
- return h ? /* @__PURE__ */ N(
2841
+ return h ? /* @__PURE__ */ M(
2834
2842
  "div",
2835
2843
  {
2836
2844
  style: {
@@ -2910,7 +2918,7 @@ const Pu = ({
2910
2918
  }
2911
2919
  );
2912
2920
  }, Is = (e) => typeof e == "string" && e === "true" || e === "false" ? e === "true" : e, mr = (e, t) => {
2913
- const n = Lu(e), r = Mu(n), o = $u(
2921
+ const n = Lu(e), r = Nu(n), o = $u(
2914
2922
  r,
2915
2923
  t
2916
2924
  );
@@ -2939,13 +2947,13 @@ const Pu = ({
2939
2947
  (i) => Is(i)
2940
2948
  )
2941
2949
  ] : [e, "=", Is(t)];
2942
- }, Vu = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Nu = (e) => {
2950
+ }, Vu = (e) => Object.keys(e).filter((t) => t.indexOf("#date") !== -1), Mu = (e) => {
2943
2951
  const t = { ...e };
2944
2952
  return Object.keys(t).forEach(
2945
2953
  (n) => (n.indexOf("#time") !== -1 || n.indexOf("#date") !== -1) && delete t[n]
2946
2954
  ), t;
2947
- }, Mu = (e) => {
2948
- const t = { ...Nu(e) };
2955
+ }, Nu = (e) => {
2956
+ const t = { ...Mu(e) };
2949
2957
  return Vu(e).forEach((r) => {
2950
2958
  const o = e[r], a = r.split("#")[0], i = a + "#time", l = e[i];
2951
2959
  let c, d;
@@ -3070,7 +3078,7 @@ function Ho(e) {
3070
3078
  r(m);
3071
3079
  });
3072
3080
  }
3073
- return /* @__PURE__ */ N("div", { style: { display: "flex" }, children: [
3081
+ return /* @__PURE__ */ M("div", { style: { display: "flex" }, children: [
3074
3082
  /* @__PURE__ */ s(
3075
3083
  mt,
3076
3084
  {
@@ -3121,7 +3129,7 @@ function yt(e) {
3121
3129
  type: l = "default",
3122
3130
  ...c
3123
3131
  } = e;
3124
- return /* @__PURE__ */ N(
3132
+ return /* @__PURE__ */ M(
3125
3133
  mt,
3126
3134
  {
3127
3135
  type: l,
@@ -3166,7 +3174,7 @@ function ua(e) {
3166
3174
  const { useToken: Uu } = Xe;
3167
3175
  function fa(e) {
3168
3176
  const { badgeNumber: t = 0, ...n } = e, { token: r } = Uu();
3169
- return /* @__PURE__ */ N("div", { style: { position: "relative" }, children: [
3177
+ return /* @__PURE__ */ M("div", { style: { position: "relative" }, children: [
3170
3178
  t > 0 && /* @__PURE__ */ s("div", { style: { position: "absolute", left: -10, top: -10, zIndex: 2 }, children: /* @__PURE__ */ s(
3171
3179
  "span",
3172
3180
  {
@@ -3193,12 +3201,12 @@ function fa(e) {
3193
3201
  ] });
3194
3202
  }
3195
3203
  async function Bo(e, t, n) {
3196
- const r = (await M.getHandler().getLogInfo({
3204
+ const r = (await N.getHandler().getLogInfo({
3197
3205
  model: e,
3198
3206
  ids: [t]
3199
3207
  }))[0], { create_date: o, create_uid: a, id: i, write_date: l, write_uid: c } = r;
3200
3208
  cn(
3201
- /* @__PURE__ */ N("div", { children: [
3209
+ /* @__PURE__ */ M("div", { children: [
3202
3210
  "ID: " + i,
3203
3211
  " ",
3204
3212
  /* @__PURE__ */ s("br", {}),
@@ -3240,7 +3248,7 @@ function Wu(e) {
3240
3248
  onFinish: f,
3241
3249
  autoComplete: "off",
3242
3250
  initialValues: { search: r },
3243
- children: /* @__PURE__ */ N(Ye, { align: "middle", justify: "end", children: [
3251
+ children: /* @__PURE__ */ M(Ye, { align: "middle", justify: "end", children: [
3244
3252
  /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(Et.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ s(
3245
3253
  pt,
3246
3254
  {
@@ -3248,7 +3256,7 @@ function Wu(e) {
3248
3256
  disabled: n,
3249
3257
  onChange: m,
3250
3258
  style: { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
3251
- suffix: (i || r && r.length > 0) && /* @__PURE__ */ s(Mt, { title: o("clear"), children: /* @__PURE__ */ s(
3259
+ suffix: (i || r && r.length > 0) && /* @__PURE__ */ s(Nt, { title: o("clear"), children: /* @__PURE__ */ s(
3252
3260
  nc,
3253
3261
  {
3254
3262
  style: { color: "rgba(0,0,0,.45)" },
@@ -3310,7 +3318,7 @@ const Ab = Object.values(Lt), Rt = It.createContext(null), Yu = (e) => {
3310
3318
  function jo() {
3311
3319
  return ae(Rt) || {};
3312
3320
  }
3313
- const Nn = It.createContext(null), As = async (e) => {
3321
+ const Mn = It.createContext(null), As = async (e) => {
3314
3322
  var t;
3315
3323
  for (let n = 0; n < e.length; n++)
3316
3324
  await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
@@ -3345,7 +3353,7 @@ const Nn = It.createContext(null), As = async (e) => {
3345
3353
  values: k
3346
3354
  }) : F;
3347
3355
  try {
3348
- const W = await M.getHandler().createReport({
3356
+ const W = await N.getHandler().createReport({
3349
3357
  model: P,
3350
3358
  name: H,
3351
3359
  datas: E,
@@ -3362,7 +3370,7 @@ const Nn = It.createContext(null), As = async (e) => {
3362
3370
  async function v(T) {
3363
3371
  let w;
3364
3372
  try {
3365
- if (w = await M.getHandler().getReport({
3373
+ if (w = await N.getHandler().getReport({
3366
3374
  id: T
3367
3375
  }), w.state && a.current === !0) {
3368
3376
  a.current = !1, clearInterval(o.current), l(!1);
@@ -3406,7 +3414,7 @@ const Nn = It.createContext(null), As = async (e) => {
3406
3414
  }) {
3407
3415
  var $;
3408
3416
  let S = T;
3409
- T.res_model || (S = (await M.getHandler().readObjects({
3417
+ T.res_model || (S = (await N.getHandler().readObjects({
3410
3418
  model: "ir.actions.act_window",
3411
3419
  ids: [parseInt(T.id)],
3412
3420
  context: k
@@ -3421,7 +3429,7 @@ const Nn = It.createContext(null), As = async (e) => {
3421
3429
  };
3422
3430
  let H = [];
3423
3431
  const V = S.domain;
3424
- if (S.domain && (H = await M.getHandler().evalDomain({
3432
+ if (S.domain && (H = await N.getHandler().evalDomain({
3425
3433
  domain: S.domain,
3426
3434
  values: pn({
3427
3435
  fields: w,
@@ -3430,7 +3438,7 @@ const Nn = It.createContext(null), As = async (e) => {
3430
3438
  fields: w,
3431
3439
  context: E
3432
3440
  })), S.target === "new") {
3433
- const L = await M.getHandler().getView({
3441
+ const L = await N.getHandler().getView({
3434
3442
  model: S.res_model,
3435
3443
  type: "form",
3436
3444
  id: (($ = S == null ? void 0 : S.view_id) == null ? void 0 : $[0]) || void 0,
@@ -3503,13 +3511,13 @@ const Nn = It.createContext(null), As = async (e) => {
3503
3511
  });
3504
3512
  }
3505
3513
  return /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
3506
- Nn.Provider,
3514
+ Mn.Provider,
3507
3515
  {
3508
3516
  value: {
3509
3517
  processAction: b,
3510
3518
  globalValues: r
3511
3519
  },
3512
- children: /* @__PURE__ */ N(oe, { children: [
3520
+ children: /* @__PURE__ */ M(oe, { children: [
3513
3521
  n,
3514
3522
  /* @__PURE__ */ s(
3515
3523
  xt,
@@ -3563,7 +3571,7 @@ async function Ku({
3563
3571
  let i;
3564
3572
  if (e)
3565
3573
  for (const l of e) {
3566
- const c = await M.getHandler().getView({
3574
+ const c = await N.getHandler().getView({
3567
3575
  model: n,
3568
3576
  type: l[1],
3569
3577
  id: l[0],
@@ -3574,7 +3582,7 @@ async function Ku({
3574
3582
  else {
3575
3583
  const l = t.split(",");
3576
3584
  for (const c of l) {
3577
- const d = await M.getHandler().getView({
3585
+ const d = await N.getHandler().getView({
3578
3586
  model: n,
3579
3587
  type: c,
3580
3588
  context: r
@@ -3606,7 +3614,7 @@ const qu = _t(Gu), ma = ({
3606
3614
  onRefreshParentValues: t
3607
3615
  }) => {
3608
3616
  const n = ae(
3609
- Nn
3617
+ Mn
3610
3618
  ), { processAction: r } = n || {};
3611
3619
  return O(
3612
3620
  (o, a = {}) => {
@@ -3692,7 +3700,7 @@ const zu = "action", Ju = ["active_id", "active_ids", "id"], Qu = ["target", "co
3692
3700
  Object.entries(e).filter(([t]) => Ju.includes(t))
3693
3701
  );
3694
3702
  function Hr({ res_id: e, searchParams: t }) {
3695
- const n = q(null), { currentView: r, limit: o, currentPage: a, order: i } = Mn(), l = {
3703
+ const n = q(null), { currentView: r, limit: o, currentPage: a, order: i } = Nn(), l = {
3696
3704
  id: r.view_id,
3697
3705
  type: r.type
3698
3706
  }, { token: c } = Xe.useToken(), { t: d } = ge(), [f, u] = I(!1), { currentTab: m } = jo(), h = O(
@@ -3724,7 +3732,7 @@ function Hr({ res_id: e, searchParams: t }) {
3724
3732
  }, g = ha(y), { type: v } = l || {};
3725
3733
  let b = !p;
3726
3734
  v === "form" && (b = !p || !e);
3727
- const _ = /* @__PURE__ */ s("div", { style: { padding: 2 }, children: /* @__PURE__ */ N(it.Compact, { style: { width: "100%" }, children: [
3735
+ const _ = /* @__PURE__ */ s("div", { style: { padding: 2 }, children: /* @__PURE__ */ M(it.Compact, { style: { width: "100%" }, children: [
3728
3736
  /* @__PURE__ */ s(
3729
3737
  pt,
3730
3738
  {
@@ -3827,7 +3835,7 @@ function ef({
3827
3835
  try {
3828
3836
  u == null || u(!0);
3829
3837
  const Y = l[0].id;
3830
- await M.getHandler().duplicate({
3838
+ await N.getHandler().duplicate({
3831
3839
  id: Y,
3832
3840
  model: m,
3833
3841
  context: { ...e }
@@ -3846,7 +3854,7 @@ function ef({
3846
3854
  ]), U = O(async () => {
3847
3855
  var z;
3848
3856
  try {
3849
- c == null || c(!0), await M.getHandler().deleteObjects({
3857
+ c == null || c(!0), await N.getHandler().deleteObjects({
3850
3858
  model: m,
3851
3859
  ids: l.map((Y) => Y.id),
3852
3860
  context: { ...e }
@@ -3946,13 +3954,13 @@ function ef({
3946
3954
  onOk: U
3947
3955
  });
3948
3956
  }, [U, V]);
3949
- return /* @__PURE__ */ N(it, { wrap: !0, children: [
3950
- x && /* @__PURE__ */ N(oe, { children: [
3957
+ return /* @__PURE__ */ M(it, { wrap: !0, children: [
3958
+ x && /* @__PURE__ */ M(oe, { children: [
3951
3959
  /* @__PURE__ */ s(tt, {}),
3952
3960
  /* @__PURE__ */ s(dt, {}),
3953
3961
  /* @__PURE__ */ s(dt, {})
3954
3962
  ] }),
3955
- !t && /* @__PURE__ */ N(oe, { children: [
3963
+ !t && /* @__PURE__ */ M(oe, { children: [
3956
3964
  /* @__PURE__ */ s(
3957
3965
  Wu,
3958
3966
  {
@@ -4019,7 +4027,7 @@ function ef({
4019
4027
  onClick: W
4020
4028
  }
4021
4029
  ),
4022
- !t && /* @__PURE__ */ N(oe, { children: [
4030
+ !t && /* @__PURE__ */ M(oe, { children: [
4023
4031
  /* @__PURE__ */ s(dt, {}),
4024
4032
  /* @__PURE__ */ s(
4025
4033
  Ho,
@@ -4035,7 +4043,7 @@ function ef({
4035
4043
  /* @__PURE__ */ s(dt, {}),
4036
4044
  /* @__PURE__ */ s(Kt, { icon: /* @__PURE__ */ s(Er, {}), ...G }),
4037
4045
  /* @__PURE__ */ s(Kt, { icon: /* @__PURE__ */ s(Dr, {}), ...j }),
4038
- H && /* @__PURE__ */ N(oe, { children: [
4046
+ H && /* @__PURE__ */ M(oe, { children: [
4039
4047
  /* @__PURE__ */ s(dt, {}),
4040
4048
  /* @__PURE__ */ s(
4041
4049
  Kt,
@@ -4083,7 +4091,7 @@ function ef({
4083
4091
  const tf = nt(ef), ya = nt(() => /* @__PURE__ */ s(
4084
4092
  Fi,
4085
4093
  {
4086
- component: () => /* @__PURE__ */ N(
4094
+ component: () => /* @__PURE__ */ M(
4087
4095
  "svg",
4088
4096
  {
4089
4097
  xmlns: "http://www.w3.org/2000/svg",
@@ -4126,7 +4134,7 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4126
4134
  return null;
4127
4135
  if ((o == null ? void 0 : o.type) === "form" && a) {
4128
4136
  if (c === 0)
4129
- return /* @__PURE__ */ N(oe, { children: [
4137
+ return /* @__PURE__ */ M(oe, { children: [
4130
4138
  u("editingDocument"),
4131
4139
  " (id:",
4132
4140
  " ",
@@ -4140,7 +4148,7 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4140
4148
  ")"
4141
4149
  ] });
4142
4150
  const p = (i ?? 0) + 1, y = f === "infinite" ? c : l == null ? void 0 : l.length;
4143
- return /* @__PURE__ */ N(oe, { children: [
4151
+ return /* @__PURE__ */ M(oe, { children: [
4144
4152
  u("register"),
4145
4153
  " ",
4146
4154
  p,
@@ -4158,14 +4166,14 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4158
4166
  ")"
4159
4167
  ] });
4160
4168
  }
4161
- return (o == null ? void 0 : o.type) === "tree" && (d != null && d.length) ? d.length === 1 ? /* @__PURE__ */ N(oe, { children: [
4169
+ return (o == null ? void 0 : o.type) === "tree" && (d != null && d.length) ? d.length === 1 ? /* @__PURE__ */ M(oe, { children: [
4162
4170
  "1 ",
4163
4171
  u("selectedRegisters"),
4164
4172
  " - (id:",
4165
4173
  " ",
4166
4174
  /* @__PURE__ */ s(fr, { copyable: !0, children: d[0].id }),
4167
4175
  ")"
4168
- ] }) : /* @__PURE__ */ N(oe, { children: [
4176
+ ] }) : /* @__PURE__ */ M(oe, { children: [
4169
4177
  d.length,
4170
4178
  " ",
4171
4179
  u("selectedRegisters"),
@@ -4189,8 +4197,8 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4189
4197
  l == null ? void 0 : l.length,
4190
4198
  u
4191
4199
  ]);
4192
- return /* @__PURE__ */ N("div", { style: { position: "sticky", top: 80, zIndex: 3 }, children: [
4193
- /* @__PURE__ */ N(
4200
+ return /* @__PURE__ */ M("div", { style: { position: "sticky", top: 80, zIndex: 3 }, children: [
4201
+ /* @__PURE__ */ M(
4194
4202
  Ye,
4195
4203
  {
4196
4204
  className: "shadow-md",
@@ -4202,7 +4210,7 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4202
4210
  },
4203
4211
  align: "middle",
4204
4212
  children: [
4205
- /* @__PURE__ */ N(Fe, { flex: 2, children: [
4213
+ /* @__PURE__ */ M(Fe, { flex: 2, children: [
4206
4214
  /* @__PURE__ */ s(rf, { level: 3, style: { marginBottom: 0 }, children: e || r }),
4207
4215
  h
4208
4216
  ] }),
@@ -4244,7 +4252,7 @@ const { useToken: nf } = Xe, { Title: rf, Text: fr } = nn, Br = ({
4244
4252
  enabled: o = !0
4245
4253
  }) => {
4246
4254
  const [a, i] = I(!0), [l, c] = I(), [d, f] = I(), u = q(!1), [m, h] = ze(
4247
- M.getHandler().getView
4255
+ N.getHandler().getView
4248
4256
  );
4249
4257
  jt(() => (o && p(), () => {
4250
4258
  h();
@@ -4306,7 +4314,7 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4306
4314
  maximumFractionDigits: 4,
4307
4315
  useGrouping: !1
4308
4316
  })}%`;
4309
- return /* @__PURE__ */ N(lf, { children: [
4317
+ return /* @__PURE__ */ M(lf, { children: [
4310
4318
  /* @__PURE__ */ s(cf, { percent: e }),
4311
4319
  /* @__PURE__ */ s(df, { children: t })
4312
4320
  ] });
@@ -4373,7 +4381,7 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4373
4381
  }
4374
4382
  ];
4375
4383
  }, [l, e]);
4376
- return /* @__PURE__ */ N(En, { children: [
4384
+ return /* @__PURE__ */ M(En, { children: [
4377
4385
  /* @__PURE__ */ s(
4378
4386
  Ic,
4379
4387
  {
@@ -4413,11 +4421,11 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4413
4421
  const { id: t, model: n, context: r = {} } = e, [o, a] = I(), [i, l] = I(), c = ae(
4414
4422
  Rt
4415
4423
  ), { openRelate: d, openAction: f } = c || {}, u = ae(
4416
- Nn
4424
+ Mn
4417
4425
  ), { processAction: m } = u || {}, [h, p] = ze(
4418
- M.getHandler().getView
4426
+ N.getHandler().getView
4419
4427
  ), [y, g] = ze(
4420
- M.getHandler().readObjects
4428
+ N.getHandler().readObjects
4421
4429
  ), v = O(() => {
4422
4430
  p(), g();
4423
4431
  }, [p, g]), b = O(async () => {
@@ -4513,7 +4521,7 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4513
4521
  ];
4514
4522
  }, mf = (e) => {
4515
4523
  const { m2oField: t } = e;
4516
- return t ? /* @__PURE__ */ N(it, { children: [
4524
+ return t ? /* @__PURE__ */ M(it, { children: [
4517
4525
  /* @__PURE__ */ s(oe, { children: t.value }),
4518
4526
  /* @__PURE__ */ s(jr, { id: t.id, model: t.model })
4519
4527
  ] }) : /* @__PURE__ */ s(oe, {});
@@ -4522,7 +4530,7 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4522
4530
  if (!t || t && o && i)
4523
4531
  return;
4524
4532
  l(!0);
4525
- const p = (await M.getHandler().execute({
4533
+ const p = (await N.getHandler().execute({
4526
4534
  action: "name_get",
4527
4535
  payload: [f],
4528
4536
  model: c,
@@ -4537,7 +4545,7 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4537
4545
  if (i)
4538
4546
  return /* @__PURE__ */ s($t, {});
4539
4547
  const m = r.get(c);
4540
- return /* @__PURE__ */ N(it, { children: [
4548
+ return /* @__PURE__ */ M(it, { children: [
4541
4549
  /* @__PURE__ */ s(oe, { children: `${m}:` }),
4542
4550
  /* @__PURE__ */ s(oe, { children: o }),
4543
4551
  /* @__PURE__ */ s(jr, { id: f, model: c })
@@ -4549,14 +4557,14 @@ const af = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(ba,
4549
4557
  let r = n;
4550
4558
  t.selectionValues.size ? r = t.selectionValues.get(n) : Array.isArray(n) && (r = n[1]);
4551
4559
  const o = r.toString().split(" ").filter((i) => i.length > 1).slice(0, 3).map((i) => i[0].toUpperCase()).join(""), a = or(r);
4552
- return /* @__PURE__ */ s(Mt, { title: r, children: /* @__PURE__ */ s(pi, { alt: r, style: { backgroundColor: a }, children: o }) });
4560
+ return /* @__PURE__ */ s(Nt, { title: r, children: /* @__PURE__ */ s(pi, { alt: r, style: { backgroundColor: a }, children: o }) });
4553
4561
  };
4554
4562
  function gf(e) {
4555
4563
  return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
4556
4564
  }
4557
4565
  const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa, { ...e }) }), wa = (e) => {
4558
4566
  const { t } = ge(), [n, r] = ze(
4559
- M.getHandler().readObjects
4567
+ N.getHandler().readObjects
4560
4568
  ), { getFieldValue: o } = ae(Je) || {}, { ooui: a, value: i } = e, [l, c] = I("default");
4561
4569
  let d = i, f = or, u = i;
4562
4570
  a.selectionValues.size ? d = a.selectionValues.get(i) : Array.isArray(i) ? (u = i[0], d = i[1]) : a.fieldType === "boolean" && (d = i ? gf(a.label) : `${t("not")} ${a.label.toLowerCase()}`, f = ru);
@@ -4646,7 +4654,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4646
4654
  const v = a.filter((b) => b !== g);
4647
4655
  i(v), m(v), u && u();
4648
4656
  };
4649
- return /* @__PURE__ */ N(
4657
+ return /* @__PURE__ */ M(
4650
4658
  "div",
4651
4659
  {
4652
4660
  style: {
@@ -4843,7 +4851,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4843
4851
  key: t,
4844
4852
  ooui: n,
4845
4853
  context: r
4846
- }) => Q(() => /* @__PURE__ */ s(hf, { ooui: n, value: e }), [n, e]), Nf = ({
4854
+ }) => Q(() => /* @__PURE__ */ s(hf, { ooui: n, value: e }), [n, e]), Mf = ({
4847
4855
  value: e,
4848
4856
  key: t,
4849
4857
  ooui: n,
@@ -4852,7 +4860,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4852
4860
  const [o, a] = I([]), [i, l] = I(!1), { relation: c, field: d } = n, f = O(async () => {
4853
4861
  try {
4854
4862
  l(!0);
4855
- const m = await M.getHandler().search({
4863
+ const m = await N.getHandler().search({
4856
4864
  model: c,
4857
4865
  params: [["id", "in", e.items.map((h) => h.id)]],
4858
4866
  fields: [d],
@@ -4905,7 +4913,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4905
4913
  date: If,
4906
4914
  datetime: Af,
4907
4915
  avatar: Vf,
4908
- tags: Nf,
4916
+ tags: Mf,
4909
4917
  email: Cf,
4910
4918
  colorPicker: Ef,
4911
4919
  char: Ff
@@ -4924,7 +4932,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4924
4932
  };
4925
4933
  return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
4926
4934
  }, [e, ...n]), Q(() => r, [r]) - t;
4927
- }, Mf = (e) => {
4935
+ }, Nf = (e) => {
4928
4936
  const t = At(async () => {
4929
4937
  if (!e)
4930
4938
  return;
@@ -4942,9 +4950,9 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4942
4950
  n(), o();
4943
4951
  }, []);
4944
4952
  const [t, n] = ze(
4945
- M.getHandler().readUserViewPrefs
4953
+ N.getHandler().readUserViewPrefs
4946
4954
  ), [r, o] = ze(
4947
- M.getHandler().saveUserViewPrefs
4955
+ N.getHandler().saveUserViewPrefs
4948
4956
  ), a = At(async () => {
4949
4957
  if (!e)
4950
4958
  throw new Error("Unknown column state key");
@@ -4977,7 +4985,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
4977
4985
  ), {
4978
4986
  getColumnState: n,
4979
4987
  updateColumnState: r
4980
- } = Mf(e), {
4988
+ } = Nf(e), {
4981
4989
  getColumnState: o,
4982
4990
  updateColumnState: a
4983
4991
  } = $f(e), i = At(async () => {
@@ -5050,7 +5058,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5050
5058
  showEmptyValues: r
5051
5059
  }) => {
5052
5060
  const [o, a] = I(), [i, l] = I(!1), [c, d] = ze(
5053
- M.getHandler().readAggregates
5061
+ N.getHandler().readAggregates
5054
5062
  ), f = Fn(() => {
5055
5063
  if (e)
5056
5064
  return e.columns.filter((h) => Object.keys(h).some((p) => {
@@ -5125,7 +5133,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5125
5133
  isLoading: t
5126
5134
  }) => {
5127
5135
  const n = e && Object.keys(e).map((r) => e[r].map((i) => `${i.label}: ${i.amount}`).join(", "));
5128
- return /* @__PURE__ */ N(
5136
+ return /* @__PURE__ */ M(
5129
5137
  "div",
5130
5138
  {
5131
5139
  style: {
@@ -5288,7 +5296,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5288
5296
  label: ""
5289
5297
  })
5290
5298
  ];
5291
- return /* @__PURE__ */ N(oe, { children: [
5299
+ return /* @__PURE__ */ M(oe, { children: [
5292
5300
  n && /* @__PURE__ */ s(
5293
5301
  Vr,
5294
5302
  {
@@ -5301,7 +5309,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5301
5309
  align: "left"
5302
5310
  }
5303
5311
  ),
5304
- /* @__PURE__ */ N("div", { className: "flex flex-col gap-2 w-full", children: [
5312
+ /* @__PURE__ */ M("div", { className: "flex flex-col gap-2 w-full", children: [
5305
5313
  /* @__PURE__ */ s(Ye, { className: "w-full", children: /* @__PURE__ */ s(Fe, { span: 24, children: /* @__PURE__ */ s(Fa, { ...e, ooui: a[0], showLabel: !1 }) }) }),
5306
5314
  /* @__PURE__ */ s(Ye, { className: "w-full", children: /* @__PURE__ */ s(Fe, { span: 24, children: /* @__PURE__ */ s($e, { ...e, ooui: a[1], showLabel: !1, children: /* @__PURE__ */ s(Yf, {}) }) }) })
5307
5315
  ] })
@@ -5314,7 +5322,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5314
5322
  () => Qe().hour(0).minute(0).second(0),
5315
5323
  []
5316
5324
  );
5317
- return /* @__PURE__ */ N(Ye, { gutter: 8, children: [
5325
+ return /* @__PURE__ */ M(Ye, { gutter: 8, children: [
5318
5326
  /* @__PURE__ */ s(Fe, { span: 12, children: /* @__PURE__ */ s(
5319
5327
  mo,
5320
5328
  {
@@ -5346,7 +5354,7 @@ const yf = (e) => /* @__PURE__ */ s($e, { ...e, children: /* @__PURE__ */ s(wa,
5346
5354
  const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: a } = t, i = ae(Je), { elementHasLostFocus: l } = i || {}, c = Q(() => a && !o, [a, o]), d = Q(
5347
5355
  () => c ? zf : Fr,
5348
5356
  [c]
5349
- ), f = O((m) => m ? /* @__PURE__ */ s(Mr, { content: m }) : null, []), u = O((m) => `${m}`.replace(/[^0-9.-]+/g, ""), []);
5357
+ ), f = O((m) => m ? /* @__PURE__ */ s(Nr, { content: m }) : null, []), u = O((m) => `${m}`.replace(/[^0-9.-]+/g, ""), []);
5350
5358
  return /* @__PURE__ */ s($e, { required: c, type: "number", ...e, children: /* @__PURE__ */ s(
5351
5359
  d,
5352
5360
  {
@@ -5372,7 +5380,7 @@ const zf = gt(Fr)`
5372
5380
  const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: a } = t, { token: i } = Jf(), l = a && !o ? { backgroundColor: i.colorPrimaryBg } : void 0, c = ae(Je), { elementHasLostFocus: d } = c || {}, f = Q(() => a && !o, [a, o]), u = Q(
5373
5381
  () => f ? em : Fr,
5374
5382
  [f]
5375
- ), m = O((y) => y ? /* @__PURE__ */ s(Mr, { content: y }) : null, []), h = O((y) => y === void 0 ? "" : typeof y == "string" && !isNaN(parseFloat(y)) ? `${Math.trunc(parseFloat(y))}`.replace(/[^0-9\-]+/g, "") : typeof y == "number" ? `${Math.trunc(y)}`.replace(/[^0-9\-]+/g, "") : "", []), p = O(
5383
+ ), m = O((y) => y ? /* @__PURE__ */ s(Nr, { content: y }) : null, []), h = O((y) => y === void 0 ? "" : typeof y == "string" && !isNaN(parseFloat(y)) ? `${Math.trunc(parseFloat(y))}`.replace(/[^0-9\-]+/g, "") : typeof y == "number" ? `${Math.trunc(y)}`.replace(/[^0-9\-]+/g, "") : "", []), p = O(
5376
5384
  (y) => {
5377
5385
  const g = y;
5378
5386
  n == null || n(g);
@@ -5415,7 +5423,7 @@ function tm(e) {
5415
5423
  layout: "vertical"
5416
5424
  }
5417
5425
  );
5418
- return /* @__PURE__ */ N("div", { style: { width: "100%" }, children: [
5426
+ return /* @__PURE__ */ M("div", { style: { width: "100%" }, children: [
5419
5427
  n && /* @__PURE__ */ s(
5420
5428
  Vr,
5421
5429
  {
@@ -5428,7 +5436,7 @@ function tm(e) {
5428
5436
  align: "left"
5429
5437
  }
5430
5438
  ),
5431
- /* @__PURE__ */ N(
5439
+ /* @__PURE__ */ M(
5432
5440
  Ye,
5433
5441
  {
5434
5442
  align: "bottom",
@@ -5557,7 +5565,7 @@ const { useToken: cm } = Xe, { Title: dm } = nn, { Header: um, Content: fm, Foot
5557
5565
  padding: "0 16px",
5558
5566
  borderBottom: "1px solid #f0f0f0"
5559
5567
  };
5560
- return /* @__PURE__ */ s(nd, { children: e && /* @__PURE__ */ N(oe, { children: [
5568
+ return /* @__PURE__ */ s(nd, { children: e && /* @__PURE__ */ M(oe, { children: [
5561
5569
  /* @__PURE__ */ s(
5562
5570
  ps.div,
5563
5571
  {
@@ -5586,7 +5594,7 @@ const { useToken: cm } = Xe, { Title: dm } = nn, { Header: um, Content: fm, Foot
5586
5594
  allowOutsideClick: !0,
5587
5595
  returnFocusOnDeactivate: !0
5588
5596
  },
5589
- children: /* @__PURE__ */ N(
5597
+ children: /* @__PURE__ */ M(
5590
5598
  ps.div,
5591
5599
  {
5592
5600
  ref: l,
@@ -5609,7 +5617,7 @@ const { useToken: cm } = Xe, { Title: dm } = nn, { Header: um, Content: fm, Foot
5609
5617
  flexDirection: "column"
5610
5618
  },
5611
5619
  children: [
5612
- /* @__PURE__ */ N(um, { style: m, children: [
5620
+ /* @__PURE__ */ M(um, { style: m, children: [
5613
5621
  /* @__PURE__ */ s(dm, { level: 3, style: { margin: 0, flex: 1 }, children: r }),
5614
5622
  /* @__PURE__ */ s(
5615
5623
  qe,
@@ -5819,9 +5827,9 @@ function km() {
5819
5827
  }
5820
5828
  return eo = e, eo;
5821
5829
  }
5822
- var Vm = Array.prototype.slice, Nm = Ra, Vs = Object.keys, pr = Vs ? function(t) {
5830
+ var Vm = Array.prototype.slice, Mm = Ra, Vs = Object.keys, pr = Vs ? function(t) {
5823
5831
  return Vs(t);
5824
- } : km(), Ns = Object.keys;
5832
+ } : km(), Ms = Object.keys;
5825
5833
  pr.shim = function() {
5826
5834
  if (Object.keys) {
5827
5835
  var t = function() {
@@ -5829,7 +5837,7 @@ pr.shim = function() {
5829
5837
  return n && n.length === arguments.length;
5830
5838
  }(1, 2);
5831
5839
  t || (Object.keys = function(r) {
5832
- return Nm(r) ? Ns(Vm.call(r)) : Ns(r);
5840
+ return Mm(r) ? Ms(Vm.call(r)) : Ms(r);
5833
5841
  });
5834
5842
  } else
5835
5843
  Object.keys = pr;
@@ -5858,10 +5866,10 @@ var Oa = pr, Ea = function() {
5858
5866
  return !1;
5859
5867
  }
5860
5868
  return !0;
5861
- }, Mm = Ea, Jo = function() {
5862
- return Mm() && !!Symbol.toStringTag;
5863
- }, Ms = typeof Symbol < "u" && Symbol, $m = Ea, Lm = function() {
5864
- return typeof Ms != "function" || typeof Symbol != "function" || typeof Ms("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : $m();
5869
+ }, Nm = Ea, Jo = function() {
5870
+ return Nm() && !!Symbol.toStringTag;
5871
+ }, Ns = typeof Symbol < "u" && Symbol, $m = Ea, Lm = function() {
5872
+ return typeof Ns != "function" || typeof Symbol != "function" || typeof Ns("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : $m();
5865
5873
  }, $s = {
5866
5874
  foo: {}
5867
5875
  }, Hm = Object, Bm = function() {
@@ -6141,10 +6149,10 @@ var Xm = function e(t) {
6141
6149
  };
6142
6150
  l ? l(e.exports, "apply", { value: d }) : e.exports.apply = d;
6143
6151
  })(ka);
6144
- var Qo = ka.exports, Va = ar, Na = Qo, ip = Na(Va("String.prototype.indexOf")), Ma = function(t, n) {
6152
+ var Qo = ka.exports, Va = ar, Ma = Qo, ip = Ma(Va("String.prototype.indexOf")), Na = function(t, n) {
6145
6153
  var r = Va(t, !!n);
6146
- return typeof r == "function" && ip(t, ".prototype.") > -1 ? Na(r) : r;
6147
- }, ap = Jo(), lp = Ma, ho = lp("Object.prototype.toString"), Wr = function(t) {
6154
+ return typeof r == "function" && ip(t, ".prototype.") > -1 ? Ma(r) : r;
6155
+ }, ap = Jo(), lp = Na, ho = lp("Object.prototype.toString"), Wr = function(t) {
6148
6156
  return ap && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : ho(t) === "[object Arguments]";
6149
6157
  }, $a = function(t) {
6150
6158
  return Wr(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && ho(t) !== "[object Array]" && ho(t.callee) === "[object Function]";
@@ -6246,7 +6254,7 @@ Ip(Ya, {
6246
6254
  implementation: Ap,
6247
6255
  shim: _p
6248
6256
  });
6249
- var Rp = Ya, vo = Ma, Ga = Jo(), Ka, qa, bo, wo;
6257
+ var Rp = Ya, vo = Na, Ga = Jo(), Ka, qa, bo, wo;
6250
6258
  if (Ga) {
6251
6259
  Ka = vo("Object.prototype.hasOwnProperty"), qa = vo("RegExp.prototype.exec"), bo = {};
6252
6260
  var io = function() {
@@ -6292,11 +6300,11 @@ Zn.boundFunctionsHaveNames = function() {
6292
6300
  return Zn() && typeof kp == "function" && (function() {
6293
6301
  }).bind().name !== "";
6294
6302
  };
6295
- var Vp = Zn, Ks = La, Np = Xo(), Mp = Vp.functionsHaveConfigurableNames(), $p = TypeError, Lp = function(t, n) {
6303
+ var Vp = Zn, Ks = La, Mp = Xo(), Np = Vp.functionsHaveConfigurableNames(), $p = TypeError, Lp = function(t, n) {
6296
6304
  if (typeof t != "function")
6297
6305
  throw new $p("`fn` is not a function");
6298
6306
  var r = arguments.length > 2 && !!arguments[2];
6299
- return (!r || Mp) && (Np ? Ks(t, "name", n, !0, !0) : Ks(t, "name", n)), t;
6307
+ return (!r || Np) && (Mp ? Ks(t, "name", n, !0, !0) : Ks(t, "name", n)), t;
6300
6308
  }, Hp = Lp, Bp = Object, jp = TypeError, za = Hp(function() {
6301
6309
  if (this != null && this !== Bp(this))
6302
6310
  throw new jp("RegExp.prototype.flags getter called on non-object");
@@ -6429,7 +6437,7 @@ const es = /* @__PURE__ */ Bi(uh), fh = _t(
6429
6437
  const m = i.getFieldsValue();
6430
6438
  a == null || a(m);
6431
6439
  }, [i, a]), f = Pm(d, 100);
6432
- return /* @__PURE__ */ N(En, { children: [
6440
+ return /* @__PURE__ */ M(En, { children: [
6433
6441
  /* @__PURE__ */ s(
6434
6442
  Et,
6435
6443
  {
@@ -6523,7 +6531,7 @@ const es = /* @__PURE__ */ Bi(uh), fh = _t(
6523
6531
  searchParams: n
6524
6532
  }) => {
6525
6533
  const { t: r } = ge();
6526
- return /* @__PURE__ */ N(
6534
+ return /* @__PURE__ */ M(
6527
6535
  "div",
6528
6536
  {
6529
6537
  style: {
@@ -6568,12 +6576,12 @@ function ph(e) {
6568
6576
  isSearching: o,
6569
6577
  hideAdvancedFilter: a
6570
6578
  } = e, { t: i } = ge();
6571
- return /* @__PURE__ */ N(Ye, { children: [
6572
- !a && /* @__PURE__ */ s(Fe, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ N("a", { className: "text-xs", onClick: t, children: [
6579
+ return /* @__PURE__ */ M(Ye, { children: [
6580
+ !a && /* @__PURE__ */ s(Fe, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ M("a", { className: "text-xs", onClick: t, children: [
6573
6581
  n ? /* @__PURE__ */ s(rc, { className: "pr-1" }) : /* @__PURE__ */ s(Ar, { className: "pr-1" }),
6574
6582
  i(n ? "simple_search" : "advanced_search")
6575
6583
  ] }) }),
6576
- /* @__PURE__ */ N(Fe, { span: a ? 24 : 12, className: "text-right pb-2", children: [
6584
+ /* @__PURE__ */ M(Fe, { span: a ? 24 : 12, className: "text-right pb-2", children: [
6577
6585
  /* @__PURE__ */ s(qe, { className: "mr-5", icon: /* @__PURE__ */ s(_r, {}), onClick: r, children: i("clear") }),
6578
6586
  /* @__PURE__ */ s(
6579
6587
  qe,
@@ -6591,9 +6599,9 @@ function ph(e) {
6591
6599
  }
6592
6600
  function hh(e) {
6593
6601
  const { onLimitChange: t } = e, { t: n } = ge(), r = new co({ name: "limit" }), o = new co({ name: "offset" });
6594
- return /* @__PURE__ */ N("div", { className: "pl-2 pt-2", children: [
6602
+ return /* @__PURE__ */ M("div", { className: "pl-2 pt-2", children: [
6595
6603
  /* @__PURE__ */ s(Ye, { children: n("parameters") }, "count_params"),
6596
- /* @__PURE__ */ N(it, { align: "center", children: [
6604
+ /* @__PURE__ */ M(it, { align: "center", children: [
6597
6605
  n("limit") + " :",
6598
6606
  /* @__PURE__ */ s(
6599
6607
  Xn,
@@ -6667,8 +6675,8 @@ function Yr(e) {
6667
6675
  var F;
6668
6676
  f == null || f((F = S.bounds) == null ? void 0 : F.height);
6669
6677
  },
6670
- children: ({ measureRef: S }) => /* @__PURE__ */ s("div", { ref: S, children: /* @__PURE__ */ N("div", { style: { display: d ? "block" : "none" }, children: [
6671
- /* @__PURE__ */ N(
6678
+ children: ({ measureRef: S }) => /* @__PURE__ */ s("div", { ref: S, children: /* @__PURE__ */ M("div", { style: { display: d ? "block" : "none" }, children: [
6679
+ /* @__PURE__ */ M(
6672
6680
  Et,
6673
6681
  {
6674
6682
  className: "p-3 shadow-md",
@@ -6713,7 +6721,7 @@ function Yr(e) {
6713
6721
  function tl({
6714
6722
  useLocalState: e = !1
6715
6723
  }) {
6716
- const t = Mh() && !e, n = Mn(), [r, o] = I(!1), [a, i] = I(!1), [l, c] = I([]), [d, f] = I(0), [u, m] = I(void 0), [h, p] = I([]), [y, g] = I({}), [v, b] = I(), [_, C] = I([]), [x, R] = I(), [T, w] = I(0), [A, k] = I(), [S, F] = I(1), [P, E] = I(er), [H, V] = I(ht);
6724
+ const t = Nh() && !e, n = Nn(), [r, o] = I(!1), [a, i] = I(!1), [l, c] = I([]), [d, f] = I(0), [u, m] = I(void 0), [h, p] = I([]), [y, g] = I({}), [v, b] = I(), [_, C] = I([]), [x, R] = I(), [T, w] = I(0), [A, k] = I(), [S, F] = I(1), [P, E] = I(er), [H, V] = I(ht);
6717
6725
  return t ? {
6718
6726
  treeIsLoading: n.treeIsLoading ?? !1,
6719
6727
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -6857,9 +6865,9 @@ const Gr = ({
6857
6865
  treeView: c,
6858
6866
  results: d
6859
6867
  } = e, f = Q(() => c != null && c.field_parent ? { ...c == null ? void 0 : c.fields, [c == null ? void 0 : c.field_parent]: {} } : c == null ? void 0 : c.fields, [c]), u = (c == null ? void 0 : c.fields_in_conditions) !== void 0, m = q(null), [h, p] = I(!0), [y, g] = ze(
6860
- M.getHandler().readObjects
6868
+ N.getHandler().readObjects
6861
6869
  ), [v, b] = ze(
6862
- M.getHandler().parseConditions
6870
+ N.getHandler().parseConditions
6863
6871
  ), _ = ts(), C = q({}), x = O(
6864
6872
  (S, F) => F ? o == null ? void 0 : o.some(
6865
6873
  (P) => JSON.stringify(S[P]) !== JSON.stringify(F[P])
@@ -6969,7 +6977,7 @@ const Gr = ({
6969
6977
  const [d, f] = I(!1), u = q([]), m = t == null ? void 0 : t.fields, h = (t == null ? void 0 : t.fields_in_conditions) !== void 0, [p, y] = I(
6970
6978
  /* @__PURE__ */ new Set()
6971
6979
  ), g = q(/* @__PURE__ */ new Set()), v = q([]), b = q(null), [_, C] = I(!0), [x, R] = ze(
6972
- async (L) => M.getHandler().processSearchResults({
6980
+ async (L) => N.getHandler().processSearchResults({
6973
6981
  searchIds: L.searchIds,
6974
6982
  model: e,
6975
6983
  fieldsToRetrieve: L.fieldsToRetrieve,
@@ -6977,7 +6985,7 @@ const Gr = ({
6977
6985
  fields: m
6978
6986
  })
6979
6987
  ), [T, w] = ze(
6980
- M.getHandler().parseConditions
6988
+ N.getHandler().parseConditions
6981
6989
  ), A = ts();
6982
6990
  le(() => {
6983
6991
  o === !1 && V(), (o === void 0 || o === !0) && !A && V(), (o === void 0 || o === !0) && A && $();
@@ -7115,7 +7123,7 @@ const Gr = ({
7115
7123
  const { t } = ge(), n = (i) => {
7116
7124
  i.preventDefault(), e();
7117
7125
  }, r = t("nameSearchLimitNote"), o = t("filterSearchLink"), a = r.split(o);
7118
- return a.length > 1 ? /* @__PURE__ */ N("span", { style: { fontSize: "12px", color: "#666" }, children: [
7126
+ return a.length > 1 ? /* @__PURE__ */ M("span", { style: { fontSize: "12px", color: "#666" }, children: [
7119
7127
  a[0],
7120
7128
  /* @__PURE__ */ s(
7121
7129
  $i,
@@ -7137,7 +7145,7 @@ const Gr = ({
7137
7145
  customMiddleComponent: n
7138
7146
  }) => {
7139
7147
  const { t: r } = ge(), o = n ? 6 : 12;
7140
- return /* @__PURE__ */ N(
7148
+ return /* @__PURE__ */ M(
7141
7149
  Ye,
7142
7150
  {
7143
7151
  align: "bottom",
@@ -7146,7 +7154,7 @@ const Gr = ({
7146
7154
  children: [
7147
7155
  /* @__PURE__ */ s(Fe, { span: o, children: /* @__PURE__ */ s(wh, { selectedRowKeys: t }) }),
7148
7156
  n && /* @__PURE__ */ s(Fe, { span: 12, className: "text-center", children: n }),
7149
- /* @__PURE__ */ N(
7157
+ /* @__PURE__ */ M(
7150
7158
  Fe,
7151
7159
  {
7152
7160
  span: o,
@@ -7166,7 +7174,7 @@ const Gr = ({
7166
7174
  }) => {
7167
7175
  const { t } = ge();
7168
7176
  if (e.length === 1)
7169
- return /* @__PURE__ */ N(oe, { children: [
7177
+ return /* @__PURE__ */ M(oe, { children: [
7170
7178
  "1 ",
7171
7179
  t("selectedRegisters"),
7172
7180
  " - (id:",
@@ -7175,7 +7183,7 @@ const Gr = ({
7175
7183
  ")"
7176
7184
  ] });
7177
7185
  if (e.length > 1)
7178
- return /* @__PURE__ */ N(oe, { children: [
7186
+ return /* @__PURE__ */ M(oe, { children: [
7179
7187
  e.length,
7180
7188
  " ",
7181
7189
  t("selectedRegisters") + " ",
@@ -7294,7 +7302,7 @@ function xh(e, t) {
7294
7302
  d,
7295
7303
  je
7296
7304
  );
7297
- }, [xe, d, je]), Ne = Q(() => {
7305
+ }, [xe, d, je]), Me = Q(() => {
7298
7306
  if (Ee)
7299
7307
  return Ee.map((ue) => ({
7300
7308
  ...ue,
@@ -7331,7 +7339,7 @@ function xh(e, t) {
7331
7339
  }
7332
7340
  x(void 0), se(0), _(!0);
7333
7341
  try {
7334
- const ue = await M.getHandler().searchCount({
7342
+ const ue = await N.getHandler().searchCount({
7335
7343
  params: Y ? i : Ge,
7336
7344
  model: n,
7337
7345
  context: d,
@@ -7376,11 +7384,11 @@ function xh(e, t) {
7376
7384
  z == null || z(De), lt = vr(ct);
7377
7385
  }
7378
7386
  g.current = !0;
7379
- const Nt = Y ? i : Ge, dr = (S == null ? void 0 : S.fields_in_conditions) !== void 0, Kr = Gr({
7387
+ const Mt = Y ? i : Ge, dr = (S == null ? void 0 : S.fields_in_conditions) !== void 0, Kr = Gr({
7380
7388
  treeOoui: xe,
7381
7389
  hasFunctionFieldsToParseConditions: dr && Ue()
7382
- }), { results: K, attrsEvaluated: J } = await M.getHandler().searchForTree({
7383
- params: Nt,
7390
+ }), { results: K, attrsEvaluated: J } = await N.getHandler().searchForTree({
7391
+ params: Mt,
7384
7392
  limit: _e - ue,
7385
7393
  offset: ue,
7386
7394
  model: n,
@@ -7396,7 +7404,7 @@ function xh(e, t) {
7396
7404
  });
7397
7405
  if (ee == null || ee({
7398
7406
  model: n,
7399
- params: Nt,
7407
+ params: Mt,
7400
7408
  name_search: Y,
7401
7409
  context: d,
7402
7410
  order: lt
@@ -7462,9 +7470,9 @@ function xh(e, t) {
7462
7470
  },
7463
7471
  [te, se, E, v]
7464
7472
  ), Ve = O((ue) => {
7465
- var _e, rt, lt, Nt;
7473
+ var _e, rt, lt, Mt;
7466
7474
  if (Ce.current[(rt = (_e = ue.node) == null ? void 0 : _e.data) == null ? void 0 : rt.id])
7467
- return { color: Ce.current[(Nt = (lt = ue.node) == null ? void 0 : lt.data) == null ? void 0 : Nt.id] };
7475
+ return { color: Ce.current[(Mt = (lt = ue.node) == null ? void 0 : lt.data) == null ? void 0 : Mt.id] };
7468
7476
  }, []), ye = Q(() => (W == null ? void 0 : W.map((ue) => ue.id)) || [], [W]), [Ke, ot, Tt] = Ko({
7469
7477
  ooui: xe,
7470
7478
  model: n,
@@ -7483,7 +7491,7 @@ function xh(e, t) {
7483
7491
  }
7484
7492
  if (!C)
7485
7493
  return;
7486
- const rt = await M.getHandler().searchAllIds(
7494
+ const rt = await N.getHandler().searchAllIds(
7487
7495
  {
7488
7496
  params: Y ? i : Ge,
7489
7497
  model: n,
@@ -7529,12 +7537,12 @@ function xh(e, t) {
7529
7537
  return null;
7530
7538
  const ue = Oe.current ? ht : void 0;
7531
7539
  return /* @__PURE__ */ s(
7532
- Mi,
7540
+ Ni,
7533
7541
  {
7534
7542
  readonly: !1,
7535
7543
  ref: p,
7536
7544
  height: k,
7537
- columns: Ne,
7545
+ columns: Me,
7538
7546
  onRequestData: ke,
7539
7547
  onRowDoubleClick: a,
7540
7548
  onRowStyle: Ve,
@@ -7561,7 +7569,7 @@ function xh(e, t) {
7561
7569
  k,
7562
7570
  Re,
7563
7571
  Ee,
7564
- Ne,
7572
+ Me,
7565
7573
  ut,
7566
7574
  Pt,
7567
7575
  de,
@@ -7668,7 +7676,7 @@ function xh(e, t) {
7668
7676
  ), Se = O(
7669
7677
  () => V == null ? void 0 : V(!1),
7670
7678
  [V]
7671
- ), Me = O(
7679
+ ), Ne = O(
7672
7680
  ({ params: ue, values: _e }) => {
7673
7681
  var rt;
7674
7682
  he([]), (rt = p.current) == null || rt.unselectAll(), B == null || B(void 0), G == null || G(ue), X == null || X(_e), V == null || V(!1);
@@ -7681,7 +7689,7 @@ function xh(e, t) {
7681
7689
  V
7682
7690
  ]
7683
7691
  ), et = Y && R && C !== void 0 && C !== null && C === ht;
7684
- return /* @__PURE__ */ N(En, { children: [
7692
+ return /* @__PURE__ */ M(En, { children: [
7685
7693
  m === "top" && /* @__PURE__ */ s(
7686
7694
  Yr,
7687
7695
  {
@@ -7695,7 +7703,7 @@ function xh(e, t) {
7695
7703
  {
7696
7704
  ...Wn,
7697
7705
  onClose: Se,
7698
- onSubmit: Me
7706
+ onSubmit: Ne
7699
7707
  }
7700
7708
  ),
7701
7709
  /* @__PURE__ */ s(
@@ -7760,7 +7768,7 @@ const il = _t(xh), si = (e, t = "14px -apple-system") => {
7760
7768
  return null;
7761
7769
  const d = async (m) => {
7762
7770
  m.preventDefault(), m.stopPropagation(), i(!0), await r(), i(!1);
7763
- }, f = /* @__PURE__ */ N("span", { children: [
7771
+ }, f = /* @__PURE__ */ M("span", { children: [
7764
7772
  c.recordsSelected.replace(
7765
7773
  "{numberOfSelectedRows}",
7766
7774
  e.toString()
@@ -7838,7 +7846,7 @@ const il = _t(xh), si = (e, t = "14px -apple-system") => {
7838
7846
  const ee = A == null ? void 0 : A.filter(
7839
7847
  (se) => u && u.includes(se.id)
7840
7848
  ).length;
7841
- return c ? null : o === void 0 ? /* @__PURE__ */ s(tt, { className: "pb-4" }) : /* @__PURE__ */ N(Ye, { align: "bottom", className: "pb-4", children: [
7849
+ return c ? null : o === void 0 ? /* @__PURE__ */ s(tt, { className: "pb-4" }) : /* @__PURE__ */ M(Ye, { align: "bottom", className: "pb-4", children: [
7842
7850
  /* @__PURE__ */ s(Fe, { span: T ? 8 : 12, children: /* @__PURE__ */ s(
7843
7851
  Ul,
7844
7852
  {
@@ -7887,7 +7895,7 @@ const il = _t(xh), si = (e, t = "14px -apple-system") => {
7887
7895
  if (F !== null && W && W.length > 0)
7888
7896
  return Th(W, A, 600);
7889
7897
  }, [W, A, F]), U = Q(() => h && (F != null && F.columns.some((ee) => ee.sum !== void 0)) ? h - 30 : h, [h, F == null ? void 0 : F.columns]);
7890
- return F === null || !B || ((me = B == null ? void 0 : B.columns) == null ? void 0 : me.length) === 0 ? /* @__PURE__ */ s(tt, { style: { padding: "2rem" } }) : /* @__PURE__ */ N(hr, { children: [
7898
+ return F === null || !B || ((me = B == null ? void 0 : B.columns) == null ? void 0 : me.length) === 0 ? /* @__PURE__ */ s(tt, { style: { padding: "2rem" } }) : /* @__PURE__ */ M(hr, { children: [
7891
7899
  X,
7892
7900
  /* @__PURE__ */ s(
7893
7901
  Wc,
@@ -7958,7 +7966,7 @@ const ll = (e) => {
7958
7966
  },
7959
7967
  [g]
7960
7968
  ), se = O(() => v || G, [v, G]), Z = O(async () => {
7961
- const fe = await M.getHandler().nameSearch({
7969
+ const fe = await N.getHandler().nameSearch({
7962
7970
  model: t,
7963
7971
  payload: l,
7964
7972
  limit: U.current,
@@ -7966,9 +7974,9 @@ const ll = (e) => {
7966
7974
  context: d
7967
7975
  });
7968
7976
  if (W(fe.length), f == null || f(fe.length), fe.length > 0) {
7969
- const Pe = fe.map((Ne) => Ne == null ? void 0 : Ne[0]), { colors: Te, status: He } = qt(u), Be = {};
7977
+ const Pe = fe.map((Me) => Me == null ? void 0 : Me[0]), { colors: Te, status: He } = qt(u), Be = {};
7970
7978
  Te && (Be.colors = Te), He && (Be.status = He);
7971
- const Ie = await M.getHandler().readEvalUiObjects({
7979
+ const Ie = await N.getHandler().readEvalUiObjects({
7972
7980
  model: t,
7973
7981
  ids: Pe,
7974
7982
  arch: u == null ? void 0 : u.arch,
@@ -7977,7 +7985,7 @@ const ll = (e) => {
7977
7985
  attrs: Be
7978
7986
  }), ce = Ie[0];
7979
7987
  me.current = [...ce], X(_n(Ie[1])), B(gr(Ie[1]));
7980
- const Ue = ce.map((Ne) => Ne.id), Ee = h !== void 0 ? xn({
7988
+ const Ue = ce.map((Me) => Me.id), Ee = h !== void 0 ? xn({
7981
7989
  resultsToSort: ce,
7982
7990
  sorter: h,
7983
7991
  fields: { ...u.fields, ...m.fields }
@@ -8002,7 +8010,7 @@ const ll = (e) => {
8002
8010
  async (fe) => {
8003
8011
  const { params: Pe, newOffset: Te } = fe || {}, He = en(Pe || R, b), { colors: Be, status: Ie } = qt(u), ce = {};
8004
8012
  Be && (ce.colors = Be), Ie && (ce.status = Ie);
8005
- const { totalItems: Ue, results: Ee, attrsEvaluated: Ne } = await M.getHandler().searchForTree({
8013
+ const { totalItems: Ue, results: Ee, attrsEvaluated: Me } = await N.getHandler().searchForTree({
8006
8014
  params: He,
8007
8015
  limit: U.current,
8008
8016
  offset: Te || $,
@@ -8011,7 +8019,7 @@ const ll = (e) => {
8011
8019
  context: d,
8012
8020
  attrs: ce
8013
8021
  });
8014
- X(_n(Ne)), B(gr(Ne)), me.current = [...Ee];
8022
+ X(_n(Me)), B(gr(Me)), me.current = [...Ee];
8015
8023
  const ve = h !== void 0 ? xn({
8016
8024
  resultsToSort: Ee,
8017
8025
  sorter: h,
@@ -8116,7 +8124,7 @@ const ll = (e) => {
8116
8124
  C
8117
8125
  ]), xe = O(
8118
8126
  async (fe) => {
8119
- const Pe = fe[(u == null ? void 0 : u.field_parent) || "child_id"], Te = await M.getHandler().readObjects({
8127
+ const Pe = fe[(u == null ? void 0 : u.field_parent) || "child_id"], Te = await N.getHandler().readObjects({
8120
8128
  model: t,
8121
8129
  ids: Pe,
8122
8130
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
@@ -8125,7 +8133,7 @@ const ll = (e) => {
8125
8133
  return ee([...se(), ...Te]), mn(qt(u), Te);
8126
8134
  },
8127
8135
  [u, t, d, se, ee]
8128
- ), Ce = O(async () => await M.getHandler().searchAllIds({
8136
+ ), Ce = O(async () => await N.getHandler().searchAllIds({
8129
8137
  params: en(R, b),
8130
8138
  model: t,
8131
8139
  context: d,
@@ -8165,8 +8173,8 @@ function Ah(e, t) {
8165
8173
  rootTree: f = !1,
8166
8174
  parentContext: u = {},
8167
8175
  onChangeSelectedRowKeys: m
8168
- } = e, [h, p] = I(!1), [y, g] = I(!1), v = q(!1), b = q(null), [_, C] = I(), [x, R] = I(), [T, w] = I(), [A, k] = I(), [S, F] = I(200), P = q(), { height: E } = Nr(), H = ae(
8169
- Nn
8176
+ } = e, [h, p] = I(!1), [y, g] = I(!1), v = q(!1), b = q(null), [_, C] = I(), [x, R] = I(), [T, w] = I(), [A, k] = I(), [S, F] = I(200), P = q(), { height: E } = Mr(), H = ae(
8177
+ Mn
8170
8178
  ), { processAction: V } = H || {}, $ = ae(
8171
8179
  Ct
8172
8180
  ), {
@@ -8206,7 +8214,7 @@ function Ah(e, t) {
8206
8214
  offset: ce,
8207
8215
  getResults: Ue,
8208
8216
  requestPageChange: Ee,
8209
- changeSort: Ne,
8217
+ changeSort: Me,
8210
8218
  fetchChildrenForRecord: ve,
8211
8219
  colorsForResults: Ae,
8212
8220
  statusForResults: de,
@@ -8258,13 +8266,13 @@ function Ah(e, t) {
8258
8266
  }, at = async () => {
8259
8267
  C(n);
8260
8268
  let We = r;
8261
- r || (We = await M.getHandler().getView({
8269
+ r || (We = await N.getHandler().getView({
8262
8270
  model: n,
8263
8271
  type: "form",
8264
8272
  context: u
8265
8273
  }));
8266
8274
  let ut = o;
8267
- o || (ut = await M.getHandler().getView({
8275
+ o || (ut = await N.getHandler().getView({
8268
8276
  model: n,
8269
8277
  type: "tree",
8270
8278
  context: u
@@ -8281,7 +8289,7 @@ function Ah(e, t) {
8281
8289
  ), he = O(
8282
8290
  async (We) => {
8283
8291
  const { id: ut } = We;
8284
- P.current || (P.current = await M.getHandler().treeButOpen({
8292
+ P.current || (P.current = await N.getHandler().treeButOpen({
8285
8293
  id: x.view_id,
8286
8294
  model: _,
8287
8295
  context: u
@@ -8323,7 +8331,7 @@ function Ah(e, t) {
8323
8331
  }, [Ge, m, ne]), Ve = Q(() => x != null && x.isExpandable ? E - 160 : E - (S + 240), [E, S, x == null ? void 0 : x.isExpandable]), ye = Q(
8324
8332
  () => j == null ? void 0 : j.map((We) => We.id),
8325
8333
  [j]
8326
- ), Ke = O(() => !x || !T ? null : /* @__PURE__ */ N(oe, { children: [
8334
+ ), Ke = O(() => !x || !T ? null : /* @__PURE__ */ M(oe, { children: [
8327
8335
  /* @__PURE__ */ s(
8328
8336
  Yr,
8329
8337
  {
@@ -8363,7 +8371,7 @@ function Ah(e, t) {
8363
8371
  selectedRowKeys: ye,
8364
8372
  onRowSelectionChange: je,
8365
8373
  sorter: me,
8366
- onChangeSort: Ne,
8374
+ onChangeSort: Me,
8367
8375
  onFetchChildrenForRecord: x.isExpandable ? ve : void 0,
8368
8376
  childField: x.field_parent,
8369
8377
  rootTree: f,
@@ -8373,7 +8381,7 @@ function Ah(e, t) {
8373
8381
  ] }), [
8374
8382
  Ve,
8375
8383
  je,
8376
- Ne,
8384
+ Me,
8377
8385
  Ce,
8378
8386
  Ae,
8379
8387
  ve,
@@ -8454,10 +8462,10 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8454
8462
  key: fe,
8455
8463
  treeViewFetching: t
8456
8464
  }), Ie = O((Se) => {
8457
- xe.current = xe.current.map((Me) => {
8458
- const et = Se.find((ue) => ue.id === Me.id);
8459
- return { ...Me, ...et };
8460
- }), se((Me) => Me.map((et) => {
8465
+ xe.current = xe.current.map((Ne) => {
8466
+ const et = Se.find((ue) => ue.id === Ne.id);
8467
+ return { ...Ne, ...et };
8468
+ }), se((Ne) => Ne.map((et) => {
8461
8469
  const ue = Se.find((_e) => _e.id === et.id);
8462
8470
  return { ...et, ...ue };
8463
8471
  }));
@@ -8465,7 +8473,7 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8465
8473
  colorsForResults: ce,
8466
8474
  statusForResults: Ue,
8467
8475
  updateAttributes: Ee,
8468
- clearAttributes: Ne
8476
+ clearAttributes: Me
8469
8477
  } = nl({
8470
8478
  tableRef: l
8471
8479
  }), {
@@ -8494,17 +8502,17 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8494
8502
  updateAttributes: Ee,
8495
8503
  results: P
8496
8504
  }), st = Uo(), [at, te] = ze(
8497
- M.getHandler().searchCount
8505
+ N.getHandler().searchCount
8498
8506
  ), [he, Re] = ze(
8499
- M.getHandler().searchForTree
8507
+ N.getHandler().searchForTree
8500
8508
  ), [ke, Ve] = ze(
8501
- M.getHandler().searchAllIds
8509
+ N.getHandler().searchAllIds
8502
8510
  ), ye = Q(
8503
8511
  () => en(w || [], c),
8504
8512
  [c, w]
8505
8513
  ), Ke = Q(() => (x == null ? void 0 : x.map((Se) => Se.id)) || [], [x]), ot = O(() => {
8506
- const Me = `${JSON.stringify(z ? c : ye)}-${z}`;
8507
- return Me !== je.current ? (je.current = Me, !0) : !1;
8514
+ const Ne = `${JSON.stringify(z ? c : ye)}-${z}`;
8515
+ return Ne !== je.current ? (je.current = Ne, !0) : !1;
8508
8516
  }, [c, ye, z]), Tt = O(async () => {
8509
8517
  me(void 0), H(0), B(!0);
8510
8518
  try {
@@ -8530,12 +8538,12 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8530
8538
  d,
8531
8539
  st
8532
8540
  ]), We = O(() => b, [b]), ut = O(() => _, [_]), Pt = O((Se) => {
8533
- var Me, et, ue, _e;
8534
- return ce.current[(et = (Me = Se.node) == null ? void 0 : Me.data) == null ? void 0 : et.id] ? { color: ce.current[(_e = (ue = Se.node) == null ? void 0 : ue.data) == null ? void 0 : _e.id] } : {};
8541
+ var Ne, et, ue, _e;
8542
+ return ce.current[(et = (Ne = Se.node) == null ? void 0 : Ne.data) == null ? void 0 : et.id] ? { color: ce.current[(_e = (ue = Se.node) == null ? void 0 : ue.data) == null ? void 0 : _e.id] } : {};
8535
8543
  }, []), Ot = O(
8536
8544
  (Se) => {
8537
- var Me;
8538
- return (Me = Ue.current) == null ? void 0 : Me[Se.id];
8545
+ var Ne;
8546
+ return (Ne = Ue.current) == null ? void 0 : Ne[Se.id];
8539
8547
  },
8540
8548
  // eslint-disable-next-line react-hooks/exhaustive-deps
8541
8549
  []
@@ -8549,9 +8557,9 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8549
8557
  R,
8550
8558
  A
8551
8559
  ]), hn = O(
8552
- ({ params: Se, searchValues: Me }) => {
8560
+ ({ params: Se, searchValues: Ne }) => {
8553
8561
  var et;
8554
- g([]), (et = l.current) == null || et.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Me);
8562
+ g([]), (et = l.current) == null || et.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Ne);
8555
8563
  },
8556
8564
  [
8557
8565
  g,
@@ -8564,9 +8572,9 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8564
8572
  () => y == null ? void 0 : y(!1),
8565
8573
  [y]
8566
8574
  ), gn = O(
8567
- ({ params: Se, values: Me }) => {
8575
+ ({ params: Se, values: Ne }) => {
8568
8576
  var et;
8569
- g([]), (et = l.current) == null || et.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Me), y == null || y(!1);
8577
+ g([]), (et = l.current) == null || et.unselectAll(), S == null || S(void 0), R == null || R(Se), A == null || A(Ne), y == null || y(!1);
8570
8578
  },
8571
8579
  [
8572
8580
  g,
@@ -8605,8 +8613,8 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8605
8613
  const Se = !es(
8606
8614
  w,
8607
8615
  be.current
8608
- ), Me = Oe.current && !p;
8609
- Se && (Me || f === "top") && Qt(), be.current = w, Oe.current = p;
8616
+ ), Ne = Oe.current && !p;
8617
+ Se && (Ne || f === "top") && Qt(), be.current = w, Oe.current = p;
8610
8618
  }, [w, p]);
8611
8619
  const Ut = O(async () => {
8612
8620
  if (!n || t)
@@ -8618,16 +8626,16 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8618
8626
  h(!0);
8619
8627
  let Se;
8620
8628
  if (D != null && D.length) {
8621
- const Nt = yr({
8629
+ const Mt = yr({
8622
8630
  state: D
8623
8631
  });
8624
- Se = vr(Nt);
8632
+ Se = vr(Mt);
8625
8633
  }
8626
- const Me = z ? c : ye, et = (r == null ? void 0 : r.fields_in_conditions) !== void 0, ue = Gr({
8634
+ const Ne = z ? c : ye, et = (r == null ? void 0 : r.fields_in_conditions) !== void 0, ue = Gr({
8627
8635
  treeOoui: n,
8628
8636
  hasFunctionFieldsToParseConditions: et && Ze()
8629
8637
  }), { results: _e, attrsEvaluated: rt } = await he({
8630
- params: Me,
8638
+ params: Ne,
8631
8639
  limit: X,
8632
8640
  offset: (($ || 1) - 1) * X,
8633
8641
  model: o,
@@ -8637,13 +8645,13 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8637
8645
  order: Se,
8638
8646
  name_search: z,
8639
8647
  skipFunctionFields: et,
8640
- onIdsRetrieved: (Nt) => {
8641
- de(Nt);
8648
+ onIdsRetrieved: (Mt) => {
8649
+ de(Mt);
8642
8650
  }
8643
8651
  });
8644
8652
  if (E == null || E({
8645
8653
  model: o,
8646
- params: Me,
8654
+ params: Ne,
8647
8655
  name_search: z,
8648
8656
  context: d
8649
8657
  }), F == null || F(_e), z ? (me(_e.length), H(_e.length), re(!0), B(!1)) : re(!1), !z && ot() && Tt(), _e.length === 0) {
@@ -8680,9 +8688,9 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8680
8688
  H,
8681
8689
  Tt
8682
8690
  ]), Qt = O(async () => {
8683
- Ne(), Ge(), B(!0), v(0), Pe(), g([]), je.current = void 0, z || Ae(), await Ut();
8691
+ Me(), Ge(), B(!0), v(0), Pe(), g([]), je.current = void 0, z || Ae(), await Ut();
8684
8692
  }, [
8685
- Ne,
8693
+ Me,
8686
8694
  Ge,
8687
8695
  v,
8688
8696
  Pe,
@@ -8691,12 +8699,12 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8691
8699
  Ut,
8692
8700
  Ae
8693
8701
  ]), Wt = O(
8694
- (Se, Me) => {
8695
- if (Me === -1) {
8702
+ (Se, Ne) => {
8703
+ if (Ne === -1) {
8696
8704
  u == null || u("infinite");
8697
8705
  return;
8698
8706
  }
8699
- v(0), C(void 0), g([]), L(Se), Me && j(Me);
8707
+ v(0), C(void 0), g([]), L(Se), Ne && j(Ne);
8700
8708
  },
8701
8709
  [
8702
8710
  u,
@@ -8713,10 +8721,10 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8713
8721
  totalItems: U
8714
8722
  }), [ke, w, c, o, d, U]), Vt = O(async () => {
8715
8723
  const Se = await Yt();
8716
- g == null || g(Se.map((Me) => ({ id: Me })));
8724
+ g == null || g(Se.map((Ne) => ({ id: Ne })));
8717
8725
  }, [Yt, g]), Gt = Q(() => Ke.length === 0 ? "unchecked" : Ke.length === X && X > 0 || Ke.length === U ? "checked" : "indeterminate", [Ke, X, U]), jn = O(() => {
8718
- var Se, Me;
8719
- Gt === "unchecked" ? ((Se = l.current) == null || Se.selectAll(), g(ee.map((et) => ({ id: et.id })))) : (g([]), (Me = l.current) == null || Me.unselectAll());
8726
+ var Se, Ne;
8727
+ Gt === "unchecked" ? ((Se = l.current) == null || Se.selectAll(), g(ee.map((et) => ({ id: et.id })))) : (g([]), (Ne = l.current) == null || Ne.unselectAll());
8720
8728
  }, [l, g, ee, Gt]), Un = O(
8721
8729
  (Se) => {
8722
8730
  W(Se), v(0), C(void 0), L(1);
@@ -8728,9 +8736,9 @@ const cl = _t(Ah), _h = ht, Rh = (e) => {
8728
8736
  v
8729
8737
  ]
8730
8738
  ), Wn = O(
8731
- ({ id: Se, selected: Me }) => {
8739
+ ({ id: Se, selected: Ne }) => {
8732
8740
  g((et) => {
8733
- if (Me) {
8741
+ if (Ne) {
8734
8742
  const ue = ee.find((_e) => _e.id === Se);
8735
8743
  return ue && !et.some((_e) => _e.id === Se) ? [...et, ue] : et;
8736
8744
  }
@@ -9034,7 +9042,7 @@ function Ph(e, t) {
9034
9042
  const Ue = Q(() => ce ? /* @__PURE__ */ s(qo, { aggregates: Ie, isLoading: Be }) : null, [Ie, Be, ce]), Ee = O(
9035
9043
  (Ge) => /* @__PURE__ */ s(tr, { color: Ge, style: { marginLeft: 7 } }),
9036
9044
  []
9037
- ), Ne = Q(
9045
+ ), Me = Q(
9038
9046
  () => ({
9039
9047
  overflow: "hidden",
9040
9048
  height: `${v}px`,
@@ -9042,7 +9050,7 @@ function Ph(e, t) {
9042
9050
  }),
9043
9051
  [v, l]
9044
9052
  ), ve = Te !== void 0 && Pe, Ae = ve && j !== void 0 && j !== null && j === ht, de = Q(() => typeof j != "number" || isNaN(j) || j < 0 ? (X == null ? void 0 : X.length) || 0 : j || 0, [j, X]), Ze = Q(() => (X == null ? void 0 : X.length) > 0 && (typeof j != "number" || isNaN(j) || j < 0) ? X == null ? void 0 : X.length : f ? ht : Y || _h, [X == null ? void 0 : X.length, j, f, Y]);
9045
- return /* @__PURE__ */ N(En, { children: [
9053
+ return /* @__PURE__ */ M(En, { children: [
9046
9054
  /* @__PURE__ */ s(
9047
9055
  Eh,
9048
9056
  {
@@ -9079,7 +9087,7 @@ function Ph(e, t) {
9079
9087
  )
9080
9088
  }
9081
9089
  ),
9082
- /* @__PURE__ */ s("div", { ref: p, style: Ne, children: C ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
9090
+ /* @__PURE__ */ s("div", { ref: p, style: Me, children: C ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
9083
9091
  dl,
9084
9092
  {
9085
9093
  columns: w,
@@ -9128,7 +9136,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9128
9136
  availableViews: m,
9129
9137
  searchTreeNameSearch: h,
9130
9138
  limit: p
9131
- } = e, y = q(t), [g, v] = I(er), { treeMaxLimit: b } = on(), { setLimit: _ } = Mn();
9139
+ } = e, y = q(t), [g, v] = I(er), { treeMaxLimit: b } = on(), { setLimit: _ } = Nn();
9132
9140
  Ft(() => {
9133
9141
  if (p === 0) {
9134
9142
  v("infinite");
@@ -9197,7 +9205,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9197
9205
  const A = O((k) => {
9198
9206
  v(k), k === "paginated" && (_ == null || _(p || ht)), k === "infinite" && (_ == null || _(0));
9199
9207
  }, []);
9200
- return t ? /* @__PURE__ */ N(En, { children: [
9208
+ return t ? /* @__PURE__ */ M(En, { children: [
9201
9209
  /* @__PURE__ */ s(Br, { showSummary: g !== "infinite", children: /* @__PURE__ */ s(
9202
9210
  tf,
9203
9211
  {
@@ -9251,9 +9259,9 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9251
9259
  }
9252
9260
  )
9253
9261
  ] }) : null;
9254
- }, Ct = Nl(
9262
+ }, Ct = Ml(
9255
9263
  null
9256
- ), Nh = (e) => {
9264
+ ), Mh = (e) => {
9257
9265
  const {
9258
9266
  children: t,
9259
9267
  currentView: n,
@@ -9293,7 +9301,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9293
9301
  )
9294
9302
  ), [xe, Ce] = I(0), [fe, Pe] = I(void 0), [Te, He] = I(), [Be, Ie] = I(er), [ce, Ue] = I(
9295
9303
  P
9296
- ), [Ee, Ne] = I(
9304
+ ), [Ee, Me] = I(
9297
9305
  A !== void 0 ? A : ht
9298
9306
  ), [ve, Ae] = I(r), [de, Ze] = I(
9299
9307
  F || 1
@@ -9301,7 +9309,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9301
9309
  le(() => {
9302
9310
  m && m.length > 0 && !h && (p == null || p(0), f == null || f(m[0].id));
9303
9311
  }, [m]), le(() => {
9304
- Ne(A !== void 0 ? A : ht);
9312
+ Me(A !== void 0 ? A : ht);
9305
9313
  }, [A]), le(() => {
9306
9314
  a.length === 1 ? be(a[0]) : a.length > 1 && be(
9307
9315
  a.filter(
@@ -9372,7 +9380,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9372
9380
  searchValues: Oe,
9373
9381
  setSearchValues: je,
9374
9382
  limit: Ee,
9375
- setLimit: Ne,
9383
+ setLimit: Me,
9376
9384
  setTitle: Ae,
9377
9385
  isActive: k,
9378
9386
  setTreeFirstVisibleRow: Ce,
@@ -9391,7 +9399,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9391
9399
  children: t
9392
9400
  }
9393
9401
  );
9394
- }, Mh = () => !!ae(Ct), Mn = () => {
9402
+ }, Nh = () => !!ae(Ct), Nn = () => {
9395
9403
  const e = ae(Ct);
9396
9404
  return e || {
9397
9405
  title: "",
@@ -9501,7 +9509,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9501
9509
  viewData: d
9502
9510
  } = e, [f, u] = I(!1), [m, h] = I(), p = ae(
9503
9511
  Ct
9504
- ), { setGraphIsLoading: y = void 0 } = p || {}, [g] = ze(M.getHandler().getView);
9512
+ ), { setGraphIsLoading: y = void 0 } = p || {}, [g] = ze(N.getHandler().getView);
9505
9513
  Dt(t, () => ({
9506
9514
  refresh: () => {
9507
9515
  v();
@@ -9569,7 +9577,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9569
9577
  }
9570
9578
  }, $n = _t($h), Lh = (e) => {
9571
9579
  const { model: t, domain: n = [], context: r = {}, view_id: o, manualIds: a } = e, [i, l] = I(!1), [c, d] = I(), [f, u] = I(), [m] = ze(
9572
- M.getHandler().readForView
9580
+ N.getHandler().readForView
9573
9581
  ), h = O(async () => {
9574
9582
  l(!0), d(void 0), a && n.push(["id", "in", a]);
9575
9583
  try {
@@ -9661,7 +9669,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9661
9669
  tooltip: i,
9662
9670
  card: l = !1
9663
9671
  } = e, { token: c } = Bh(), d = Object.keys(a).length > 0;
9664
- return /* @__PURE__ */ N(
9672
+ return /* @__PURE__ */ M(
9665
9673
  "div",
9666
9674
  {
9667
9675
  className: d ? "shadow-md" : void 0,
@@ -9675,7 +9683,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9675
9683
  borderRadius: c.borderRadius
9676
9684
  },
9677
9685
  children: [
9678
- /* @__PURE__ */ N(
9686
+ /* @__PURE__ */ M(
9679
9687
  Ye,
9680
9688
  {
9681
9689
  align: "middle",
@@ -9696,8 +9704,8 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9696
9704
  cursor: d ? "grab" : void 0,
9697
9705
  overflow: "hidden"
9698
9706
  },
9699
- children: i ? /* @__PURE__ */ N(oe, { children: [
9700
- /* @__PURE__ */ s(Mt, { title: i, children: /* @__PURE__ */ s(kn, { className: "pr-1 text-xs" }) }),
9707
+ children: i ? /* @__PURE__ */ M(oe, { children: [
9708
+ /* @__PURE__ */ s(Nt, { title: i, children: /* @__PURE__ */ s(kn, { className: "pr-1 text-xs" }) }),
9701
9709
  /* @__PURE__ */ s(ai, { ellipsis: !0, children: t })
9702
9710
  ] }) : /* @__PURE__ */ s(
9703
9711
  ai,
@@ -9735,7 +9743,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9735
9743
  }, Wh = (e) => {
9736
9744
  var p;
9737
9745
  const { token: t } = jh(), { ooui: n, value: r } = e, { locale: o } = ge(), [a, i] = I(n.icon), [l, c] = I(n.color), [d] = ze(
9738
- M.getHandler().parseCondition
9746
+ N.getHandler().parseCondition
9739
9747
  );
9740
9748
  le(() => {
9741
9749
  async function y(g, v) {
@@ -9755,12 +9763,12 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9755
9763
  }
9756
9764
  y(n.icon, i), y(n.color, c);
9757
9765
  }, [n.icon, n.color, r]);
9758
- const f = /* @__PURE__ */ N(oe, { children: [
9759
- /* @__PURE__ */ N("span", { children: [
9766
+ const f = /* @__PURE__ */ M(oe, { children: [
9767
+ /* @__PURE__ */ M("span", { children: [
9760
9768
  n.label,
9761
9769
  " "
9762
9770
  ] }),
9763
- n.tooltip && /* @__PURE__ */ s(Mt, { title: n.tooltip, children: /* @__PURE__ */ s(
9771
+ n.tooltip && /* @__PURE__ */ s(Nt, { title: n.tooltip, children: /* @__PURE__ */ s(
9764
9772
  Ai,
9765
9773
  {
9766
9774
  className: "pr-1 text-xs",
@@ -9781,7 +9789,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9781
9789
  };
9782
9790
  m = r ? Qe(r).format(y[n.fieldType]) : " ";
9783
9791
  }
9784
- if (n.fieldType === "many2one" && r && ((p = n.raw_props) != null && p.relation) && (m = /* @__PURE__ */ N(it, { children: [
9792
+ if (n.fieldType === "many2one" && r && ((p = n.raw_props) != null && p.relation) && (m = /* @__PURE__ */ M(it, { children: [
9785
9793
  m,
9786
9794
  /* @__PURE__ */ s(jr, { id: r[0], model: n.raw_props.relation })
9787
9795
  ] })), r && (n.fieldType === "float" || n.fieldType === "integer"))
@@ -9815,11 +9823,11 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9815
9823
  t && d();
9816
9824
  }, [t, o]), c && c.message !== "active_id_not_found")
9817
9825
  return /* @__PURE__ */ s(oa, { error: c });
9818
- const { id: h, model: p, limit: y, domain: g, context: v, initialView: b, description: _ } = a || {}, C = f ? ul : $n, x = _ ? /* @__PURE__ */ N(oe, { children: [
9819
- /* @__PURE__ */ s(Mt, { title: _, children: /* @__PURE__ */ s(kn, { className: "pr-1 text-xs" }) }),
9826
+ const { id: h, model: p, limit: y, domain: g, context: v, initialView: b, description: _ } = a || {}, C = f ? ul : $n, x = _ ? /* @__PURE__ */ M(oe, { children: [
9827
+ /* @__PURE__ */ s(Nt, { title: _, children: /* @__PURE__ */ s(kn, { className: "pr-1 text-xs" }) }),
9820
9828
  /* @__PURE__ */ s("span", { children: (a == null ? void 0 : a.title) || "" })
9821
9829
  ] }) : /* @__PURE__ */ s("span", { children: (a == null ? void 0 : a.title) || "" });
9822
- return /* @__PURE__ */ N(
9830
+ return /* @__PURE__ */ M(
9823
9831
  fl,
9824
9832
  {
9825
9833
  id: h,
@@ -9874,7 +9882,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9874
9882
  let R = [];
9875
9883
  try {
9876
9884
  if (p && (R = [["id", "in", a]]), n.domain) {
9877
- const A = await M.getHandler().evalDomain({
9885
+ const A = await N.getHandler().evalDomain({
9878
9886
  domain: n.domain,
9879
9887
  values: pn({
9880
9888
  fields: g == null ? void 0 : g.getFields(),
@@ -9885,7 +9893,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9885
9893
  });
9886
9894
  R = [...R, ...A];
9887
9895
  }
9888
- const w = (await M.getHandler().search({
9896
+ const w = (await N.getHandler().search({
9889
9897
  model: m,
9890
9898
  params: R,
9891
9899
  fieldsToRetrieve: [y],
@@ -9957,7 +9965,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
9957
9965
  case "text":
9958
9966
  return qg;
9959
9967
  case "button":
9960
- return No;
9968
+ return Mo;
9961
9969
  case "buttonGroup":
9962
9970
  return hd;
9963
9971
  case "selection":
@@ -10038,7 +10046,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
10038
10046
  }
10039
10047
  }, Jh = (e) => {
10040
10048
  const { ooui: t } = e, { type: n } = t, r = zh(n);
10041
- return r ? Ml(r, e) : null;
10049
+ return r ? Nl(r, e) : null;
10042
10050
  }, Qh = ({
10043
10051
  item: e,
10044
10052
  responsiveBehaviour: t
@@ -10159,7 +10167,7 @@ const kh = _t(Ph), er = "legacy", Vh = (e) => {
10159
10167
  onAutorefreshableFieldsChange: i,
10160
10168
  isActive: l
10161
10169
  } = e, c = q(null), [d, f] = I(!0), [u, m] = ze(
10162
- M.getHandler().readObjects
10170
+ N.getHandler().readObjects
10163
10171
  ), h = ts();
10164
10172
  le(() => {
10165
10173
  l === !1 && y(), (l === void 0 || l === !0) && !h && y(), (l === void 0 || l === !0) && h && g();
@@ -10243,8 +10251,8 @@ function ug(e, t) {
10243
10251
  setTitle: Ie = void 0,
10244
10252
  isActive: ce = void 0
10245
10253
  } = (C ? xe : {}) || {}, Ue = ae(
10246
- Nn
10247
- ), { processAction: Ee, globalValues: Ne } = Ue || {};
10254
+ Mn
10255
+ ), { processAction: Ee, globalValues: Me } = Ue || {};
10248
10256
  Dt(t, () => ({
10249
10257
  submitForm: Wt,
10250
10258
  getFields: Ge,
@@ -10303,10 +10311,10 @@ function ug(e, t) {
10303
10311
  active_id: de(),
10304
10312
  active_ids: [de()],
10305
10313
  parent_id: be,
10306
- ...Ne
10307
- }), [de, be, Ne]), ke = async (K) => {
10314
+ ...Me
10315
+ }), [de, be, Me]), ke = async (K) => {
10308
10316
  const J = de() ? E == null ? void 0 : E.context : {};
10309
- return await M.getHandler().defaultGet({
10317
+ return await N.getHandler().defaultGet({
10310
10318
  model: n,
10311
10319
  fields: K,
10312
10320
  context: { ...v, ...J },
@@ -10393,13 +10401,13 @@ function ug(e, t) {
10393
10401
  }) : (ot == null || ot(), K(!0));
10394
10402
  }), hn = async () => {
10395
10403
  if (l) {
10396
- const K = await M.getHandler().getActionStringForModel(n);
10397
- return (await M.getHandler().getViewsForAction({
10404
+ const K = await N.getHandler().getActionStringForModel(n);
10405
+ return (await N.getHandler().getViewsForAction({
10398
10406
  action: K,
10399
10407
  context: v
10400
10408
  })).views.get("form");
10401
10409
  }
10402
- return await M.getHandler().getView({
10410
+ return await N.getHandler().getView({
10403
10411
  model: n,
10404
10412
  type: "form",
10405
10413
  context: v
@@ -10430,14 +10438,14 @@ function ug(e, t) {
10430
10438
  fields: K,
10431
10439
  values: {}
10432
10440
  });
10433
- if (pe = (await M.getHandler().readObjects({
10441
+ if (pe = (await N.getHandler().readObjects({
10434
10442
  model: n,
10435
10443
  ids: [de()],
10436
10444
  fields: ag(K, De == null ? void 0 : De.contextForFields),
10437
10445
  context: v
10438
10446
  }))[0], g)
10439
10447
  return { values: pe, defaultGetCalled: ie };
10440
- const ct = await M.getHandler().search({
10448
+ const ct = await N.getHandler().search({
10441
10449
  params: [
10442
10450
  ["res_model", "=", n],
10443
10451
  ["res_id", "=", de()]
@@ -10458,7 +10466,7 @@ function ug(e, t) {
10458
10466
  target: ye(D),
10459
10467
  fields: D
10460
10468
  });
10461
- await M.getHandler().update({
10469
+ await N.getHandler().update({
10462
10470
  model: n,
10463
10471
  id: de(),
10464
10472
  values: { ...pe, ...R },
@@ -10469,7 +10477,7 @@ function ug(e, t) {
10469
10477
  }
10470
10478
  }), U.current = ye(D);
10471
10479
  } else {
10472
- const pe = ye(D), ie = await M.getHandler().create({
10480
+ const pe = ye(D), ie = await N.getHandler().create({
10473
10481
  model: n,
10474
10482
  values: { ...pe, ...R },
10475
10483
  fields: D,
@@ -10604,7 +10612,7 @@ function ug(e, t) {
10604
10612
  },
10605
10613
  parentValues: Oe == null ? void 0 : Oe(),
10606
10614
  onChangeFieldActionArgs: J.args
10607
- }), ie = await M.getHandler().executeOnChange({
10615
+ }), ie = await N.getHandler().executeOnChange({
10608
10616
  model: n,
10609
10617
  action: J.method,
10610
10618
  ids: de() ? [de()] : [],
@@ -10651,7 +10659,7 @@ function ug(e, t) {
10651
10659
  action: K,
10652
10660
  context: J
10653
10661
  }) {
10654
- const pe = await M.getHandler().execute({
10662
+ const pe = await N.getHandler().execute({
10655
10663
  model: n,
10656
10664
  action: K,
10657
10665
  payload: [de()],
@@ -10678,8 +10686,8 @@ function ug(e, t) {
10678
10686
  } else
10679
10687
  await Ot({ forceRefresh: !0 });
10680
10688
  }
10681
- async function Me({ action: K }) {
10682
- const J = await M.getHandler().executeWorkflow({
10689
+ async function Ne({ action: K }) {
10690
+ const J = await N.getHandler().executeWorkflow({
10683
10691
  model: n,
10684
10692
  action: K,
10685
10693
  payload: de()
@@ -10690,7 +10698,7 @@ function ug(e, t) {
10690
10698
  action: K,
10691
10699
  context: J
10692
10700
  }) {
10693
- const pe = (await M.getHandler().readObjects({
10701
+ const pe = (await N.getHandler().readObjects({
10694
10702
  model: "ir.actions.actions",
10695
10703
  ids: [parseInt(K)],
10696
10704
  context: v
@@ -10752,7 +10760,7 @@ function ug(e, t) {
10752
10760
  onAutorefreshableFieldsChange: lt,
10753
10761
  isActive: ce
10754
10762
  });
10755
- async function Nt({
10763
+ async function Mt({
10756
10764
  type: K,
10757
10765
  action: J,
10758
10766
  context: pe
@@ -10769,7 +10777,7 @@ function ug(e, t) {
10769
10777
  try {
10770
10778
  !f && (Ve() || de() === void 0) && (ie = !0, rt(!0), m === "2many" ? (await Ut({ callOnSubmitSucceed: !1 }), Z.current = !0) : await Wt({ callOnSubmitSucceed: !1 }));
10771
10779
  const De = Z.current ? he() : {}, ct = { ...pe, ...De };
10772
- K === "object" ? await Se({ action: J, context: ct }) : K === "workflow" ? await Me({ action: J }) : K === "action" && await et({ action: J, context: ct }), ie && rt(!1);
10780
+ K === "object" ? await Se({ action: J, context: ct }) : K === "workflow" ? await Ne({ action: J }) : K === "action" && await et({ action: J, context: ct }), ie && rt(!1);
10773
10781
  } catch (De) {
10774
10782
  ie && rt(!1), wt(De);
10775
10783
  }
@@ -10785,7 +10793,7 @@ function ug(e, t) {
10785
10793
  activeModel: n,
10786
10794
  setFieldValue: Tt,
10787
10795
  getFieldValue: We,
10788
- executeButtonAction: Nt,
10796
+ executeButtonAction: Mt,
10789
10797
  getContext: te,
10790
10798
  submitForm: Wt,
10791
10799
  fetchValues: Ot,
@@ -10810,9 +10818,9 @@ function ug(e, t) {
10810
10818
  }
10811
10819
  )
10812
10820
  }
10813
- ) }), Kr = () => /* @__PURE__ */ N(oe, { children: [
10821
+ ) }), Kr = () => /* @__PURE__ */ M(oe, { children: [
10814
10822
  /* @__PURE__ */ s(Ir, {}),
10815
- /* @__PURE__ */ s(Ye, { justify: "end", children: /* @__PURE__ */ N(it, { children: [
10823
+ /* @__PURE__ */ s(Ye, { justify: "end", children: /* @__PURE__ */ M(it, { children: [
10816
10824
  /* @__PURE__ */ s(
10817
10825
  qe,
10818
10826
  {
@@ -10847,7 +10855,7 @@ function ug(e, t) {
10847
10855
  var J;
10848
10856
  ne((J = K.bounds) == null ? void 0 : J.width);
10849
10857
  },
10850
- children: ({ measureRef: K }) => /* @__PURE__ */ N("div", { className: "pb-2", ref: K, children: [
10858
+ children: ({ measureRef: K }) => /* @__PURE__ */ M("div", { className: "pb-2", ref: K, children: [
10851
10859
  F && /* @__PURE__ */ s(oa, { className: "mt-5 mb-10", error: F }),
10852
10860
  dr(),
10853
10861
  i && Kr()
@@ -10865,12 +10873,12 @@ const Ln = _t(ug), Hn = (e) => {
10865
10873
  isMenuAction: i = !1,
10866
10874
  actionData: l,
10867
10875
  ...c
10868
- } = e, { model: d } = c, { modalWidth: f } = Nr(), [u, m] = I(r), [h, p] = I(!1), [y, g] = I(), { action_id: v, res_id: b, action_type: _, view_id: C } = l || {};
10876
+ } = e, { model: d } = c, { modalWidth: f } = Mr(), [u, m] = I(r), [h, p] = I(!1), [y, g] = I(), { action_id: v, res_id: b, action_type: _, view_id: C } = l || {};
10869
10877
  le(() => {
10870
10878
  i && x();
10871
10879
  }, [l, i]);
10872
10880
  async function x() {
10873
- const A = await M.getHandler().isShortcutFavorite({
10881
+ const A = await N.getHandler().isShortcutFavorite({
10874
10882
  action_id: v,
10875
10883
  action_type: _,
10876
10884
  view_id: C,
@@ -10880,12 +10888,12 @@ const Ln = _t(ug), Hn = (e) => {
10880
10888
  }
10881
10889
  async function R() {
10882
10890
  if (h && y)
10883
- await M.getHandler().removeFavourite({
10891
+ await N.getHandler().removeFavourite({
10884
10892
  shortcut_id: y
10885
10893
  });
10886
10894
  else {
10887
10895
  const { action_id: A, res_id: k, action_type: S, view_id: F } = l;
10888
- await M.getHandler().addFavourite({
10896
+ await N.getHandler().addFavourite({
10889
10897
  action_id: A,
10890
10898
  action_type: S,
10891
10899
  view_id: F,
@@ -10895,7 +10903,7 @@ const Ln = _t(ug), Hn = (e) => {
10895
10903
  p(!h);
10896
10904
  }
10897
10905
  function T() {
10898
- return /* @__PURE__ */ N(Ye, { align: "middle", children: [
10906
+ return /* @__PURE__ */ M(Ye, { align: "middle", children: [
10899
10907
  /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(
10900
10908
  qe,
10901
10909
  {
@@ -10943,7 +10951,7 @@ const Ln = _t(ug), Hn = (e) => {
10943
10951
  domain: a,
10944
10952
  context: i = {}
10945
10953
  }) => {
10946
- const [l, c] = I(!1), [d, f] = I([]), [u, m] = I(!1), { modalWidth: h, modalHeight: p } = Nr(), { t: y } = ge(), {
10954
+ const [l, c] = I(!1), [d, f] = I([]), [u, m] = I(!1), { modalWidth: h, modalHeight: p } = Mr(), { t: y } = ge(), {
10947
10955
  treeView: g,
10948
10956
  formView: v,
10949
10957
  loading: b
@@ -10991,8 +10999,8 @@ const Ln = _t(ug), Hn = (e) => {
10991
10999
  },
10992
11000
  [x, C]
10993
11001
  );
10994
- return /* @__PURE__ */ N(oe, { children: [
10995
- /* @__PURE__ */ N(
11002
+ return /* @__PURE__ */ M(oe, { children: [
11003
+ /* @__PURE__ */ M(
10996
11004
  xt,
10997
11005
  {
10998
11006
  title: y("search"),
@@ -11021,7 +11029,7 @@ const Ln = _t(ug), Hn = (e) => {
11021
11029
  }
11022
11030
  ),
11023
11031
  /* @__PURE__ */ s(Ir, {}),
11024
- /* @__PURE__ */ s(Ye, { justify: "end", children: /* @__PURE__ */ N(it, { children: [
11032
+ /* @__PURE__ */ s(Ye, { justify: "end", children: /* @__PURE__ */ M(it, { children: [
11025
11033
  /* @__PURE__ */ s(
11026
11034
  qe,
11027
11035
  {
@@ -11096,7 +11104,7 @@ const Ln = _t(ug), Hn = (e) => {
11096
11104
  if (P.current && P.current.length > 0)
11097
11105
  G(R.current);
11098
11106
  else {
11099
- const B = await M.getHandler().nameSearch({
11107
+ const B = await N.getHandler().nameSearch({
11100
11108
  model: a,
11101
11109
  payload: R.current,
11102
11110
  context: { ...S == null ? void 0 : S(), ...l }
@@ -11111,7 +11119,7 @@ const Ln = _t(ug), Hn = (e) => {
11111
11119
  }
11112
11120
  }, G = async (B) => {
11113
11121
  if (await ne(), P.current && P.current.length > 0) {
11114
- const U = await M.getHandler().searchAllIds({
11122
+ const U = await N.getHandler().searchAllIds({
11115
11123
  params: P.current,
11116
11124
  model: a,
11117
11125
  context: { ...S == null ? void 0 : S(), ...l },
@@ -11124,7 +11132,7 @@ const Ln = _t(ug), Hn = (e) => {
11124
11132
  }, j = async (B) => {
11125
11133
  g(!0);
11126
11134
  try {
11127
- const U = await M.getHandler().execute({
11135
+ const U = await N.getHandler().execute({
11128
11136
  action: "name_get",
11129
11137
  payload: [B],
11130
11138
  model: a,
@@ -11138,7 +11146,7 @@ const Ln = _t(ug), Hn = (e) => {
11138
11146
  }
11139
11147
  };
11140
11148
  async function ne() {
11141
- d && (P.current = await M.getHandler().evalDomain({
11149
+ d && (P.current = await N.getHandler().evalDomain({
11142
11150
  domain: d,
11143
11151
  values: pn({
11144
11152
  fields: k(),
@@ -11156,7 +11164,7 @@ const Ln = _t(ug), Hn = (e) => {
11156
11164
  async function X(B) {
11157
11165
  B.keyCode === 13 ? (B.preventDefault(), B.stopPropagation(), await W()) : B.code === "Backspace" && V !== void 0 && (B.preventDefault(), B.stopPropagation(), L([void 0, ""]));
11158
11166
  }
11159
- return /* @__PURE__ */ N(Ye, { gutter: 8, wrap: !1, children: [
11167
+ return /* @__PURE__ */ M(Ye, { gutter: 8, wrap: !1, children: [
11160
11168
  /* @__PURE__ */ s(Fe, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ s(
11161
11169
  o && !i ? hg : pt,
11162
11170
  {
@@ -11285,12 +11293,12 @@ const Ln = _t(ug), Hn = (e) => {
11285
11293
  }, h = () => {
11286
11294
  f(!1);
11287
11295
  const y = document.querySelector("#confirm-modal-container");
11288
- y && (Ni(y).unmount(), y.remove());
11296
+ y && (Mi(y).unmount(), y.remove());
11289
11297
  };
11290
11298
  return /* @__PURE__ */ s(
11291
11299
  xt,
11292
11300
  {
11293
- title: /* @__PURE__ */ N("span", { children: [
11301
+ title: /* @__PURE__ */ M("span", { children: [
11294
11302
  r && /* @__PURE__ */ s("span", { style: { marginRight: 8 }, children: r }),
11295
11303
  e
11296
11304
  ] }),
@@ -11308,7 +11316,7 @@ const Ln = _t(ug), Hn = (e) => {
11308
11316
  }, gl = (e) => {
11309
11317
  const t = document.createElement("div");
11310
11318
  document.body.appendChild(t);
11311
- const n = Ni(t);
11319
+ const n = Mi(t);
11312
11320
  return n.render(
11313
11321
  /* @__PURE__ */ s(
11314
11322
  yg,
@@ -11361,7 +11369,7 @@ const Ln = _t(ug), Hn = (e) => {
11361
11369
  onRefreshParentValues: r
11362
11370
  }) => {
11363
11371
  const { t: o } = ge(), a = ae(
11364
- Nn
11372
+ Mn
11365
11373
  ), i = ae(
11366
11374
  Rt
11367
11375
  ), { processAction: l } = a || {}, { openRelate: c } = i || {}, d = O(async () => {
@@ -11444,7 +11452,7 @@ const Ln = _t(ug), Hn = (e) => {
11444
11452
  if (!e)
11445
11453
  return;
11446
11454
  a(!0);
11447
- const l = await M.getHandler().duplicate({
11455
+ const l = await N.getHandler().duplicate({
11448
11456
  id: e,
11449
11457
  model: t,
11450
11458
  context: r
@@ -11507,9 +11515,9 @@ function wg(e) {
11507
11515
  selectedRowItems: p.map((D) => ({ id: D })),
11508
11516
  onRefreshParentValues: C
11509
11517
  });
11510
- return /* @__PURE__ */ N("div", { className: "flex mb-2 pt-3", children: [
11518
+ return /* @__PURE__ */ M("div", { className: "flex mb-2 pt-3", children: [
11511
11519
  /* @__PURE__ */ s(wl, { title: t, token: R }),
11512
- /* @__PURE__ */ N("div", { className: "flex-none h-8 pl-2", children: [
11520
+ /* @__PURE__ */ M("div", { className: "flex-none h-8 pl-2", children: [
11513
11521
  i !== "graph" && y && /* @__PURE__ */ s(
11514
11522
  mt,
11515
11523
  {
@@ -11519,7 +11527,7 @@ function wg(e) {
11519
11527
  onClick: r
11520
11528
  }
11521
11529
  ),
11522
- m && y && /* @__PURE__ */ N(oe, { children: [
11530
+ m && y && /* @__PURE__ */ M(oe, { children: [
11523
11531
  /* @__PURE__ */ s(Bt, {}),
11524
11532
  /* @__PURE__ */ s(
11525
11533
  mt,
@@ -11543,7 +11551,7 @@ function wg(e) {
11543
11551
  onDelete: l
11544
11552
  }
11545
11553
  ),
11546
- (i === "tree" || i === "form") && /* @__PURE__ */ N(oe, { children: [
11554
+ (i === "tree" || i === "form") && /* @__PURE__ */ M(oe, { children: [
11547
11555
  /* @__PURE__ */ s(Bt, {}),
11548
11556
  /* @__PURE__ */ s(
11549
11557
  mt,
@@ -11559,7 +11567,7 @@ function wg(e) {
11559
11567
  }
11560
11568
  )
11561
11569
  ] }),
11562
- (i === "form" || i === "tree") && /* @__PURE__ */ N(oe, { children: [
11570
+ (i === "form" || i === "tree") && /* @__PURE__ */ M(oe, { children: [
11563
11571
  /* @__PURE__ */ s(Bt, {}),
11564
11572
  /* @__PURE__ */ s(
11565
11573
  mt,
@@ -11585,7 +11593,7 @@ function wg(e) {
11585
11593
  onNextItem: u
11586
11594
  }
11587
11595
  ),
11588
- g && /* @__PURE__ */ N(oe, { children: [
11596
+ g && /* @__PURE__ */ M(oe, { children: [
11589
11597
  /* @__PURE__ */ s(Bt, {}),
11590
11598
  /* @__PURE__ */ s(
11591
11599
  mt,
@@ -11596,8 +11604,8 @@ function wg(e) {
11596
11604
  }
11597
11605
  )
11598
11606
  ] }),
11599
- v && /* @__PURE__ */ N(oe, { children: [
11600
- ((V = v.action) == null ? void 0 : V.length) > 0 && /* @__PURE__ */ N(oe, { children: [
11607
+ v && /* @__PURE__ */ M(oe, { children: [
11608
+ ((V = v.action) == null ? void 0 : V.length) > 0 && /* @__PURE__ */ M(oe, { children: [
11601
11609
  /* @__PURE__ */ s(Bt, {}),
11602
11610
  /* @__PURE__ */ s(
11603
11611
  Kt,
@@ -11607,7 +11615,7 @@ function wg(e) {
11607
11615
  }
11608
11616
  )
11609
11617
  ] }),
11610
- (($ = v.print) == null ? void 0 : $.length) > 0 && /* @__PURE__ */ N(oe, { children: [
11618
+ (($ = v.print) == null ? void 0 : $.length) > 0 && /* @__PURE__ */ M(oe, { children: [
11611
11619
  /* @__PURE__ */ s(Bt, {}),
11612
11620
  /* @__PURE__ */ s(
11613
11621
  Kt,
@@ -11617,7 +11625,7 @@ function wg(e) {
11617
11625
  }
11618
11626
  )
11619
11627
  ] }),
11620
- i === "form" && ((L = v.relate) == null ? void 0 : L.length) > 0 && /* @__PURE__ */ N(oe, { children: [
11628
+ i === "form" && ((L = v.relate) == null ? void 0 : L.length) > 0 && /* @__PURE__ */ M(oe, { children: [
11621
11629
  /* @__PURE__ */ s(Bt, {}),
11622
11630
  /* @__PURE__ */ s(
11623
11631
  Kt,
@@ -11651,7 +11659,7 @@ const Sl = nt(
11651
11659
  totalItems: t
11652
11660
  }) => {
11653
11661
  const n = t === 0 ? "_" : (e + 1).toString();
11654
- return /* @__PURE__ */ N("span", { className: "pl-1 pr-1", children: [
11662
+ return /* @__PURE__ */ M("span", { className: "pl-1 pr-1", children: [
11655
11663
  "(",
11656
11664
  n,
11657
11665
  "/",
@@ -11669,7 +11677,7 @@ const Cl = nt(
11669
11677
  onNextItem: r
11670
11678
  }) => {
11671
11679
  const { t: o } = ge();
11672
- return /* @__PURE__ */ N(oe, { children: [
11680
+ return /* @__PURE__ */ M(oe, { children: [
11673
11681
  /* @__PURE__ */ s(Bt, {}),
11674
11682
  /* @__PURE__ */ s(
11675
11683
  mt,
@@ -11799,7 +11807,7 @@ const xg = (e) => {
11799
11807
  }
11800
11808
  };
11801
11809
  async function je() {
11802
- me && (L.current = await M.getHandler().evalDomain({
11810
+ me && (L.current = await N.getHandler().evalDomain({
11803
11811
  domain: me,
11804
11812
  values: pn({
11805
11813
  fields: m(),
@@ -11829,12 +11837,12 @@ const xg = (e) => {
11829
11837
  d(c + 1);
11830
11838
  }) : d(c + 1));
11831
11839
  }, Pe = async () => {
11832
- const te = Z[c].id, he = (await M.getHandler().readObjects({
11840
+ const te = Z[c].id, he = (await N.getHandler().readObjects({
11833
11841
  model: B,
11834
11842
  ids: [te],
11835
11843
  fields: o.get("form").fields,
11836
11844
  context: { ...p == null ? void 0 : p(), ...U }
11837
- }))[0], Re = (await M.getHandler().readObjects({
11845
+ }))[0], Re = (await N.getHandler().readObjects({
11838
11846
  model: B,
11839
11847
  ids: [te],
11840
11848
  fields: o.get("tree").fields,
@@ -11935,7 +11943,7 @@ const xg = (e) => {
11935
11943
  });
11936
11944
  }
11937
11945
  Y(Ve), V || A(!1);
11938
- }, Ne = async (te) => {
11946
+ }, Me = async (te) => {
11939
11947
  const { id: he } = te;
11940
11948
  let Re = a;
11941
11949
  const ke = a.find((Ve) => Ve.id === he);
@@ -11945,12 +11953,12 @@ const xg = (e) => {
11945
11953
  const he = a, Re = te.filter((ke) => !a.find((Ve) => Ve.id === ke));
11946
11954
  try {
11947
11955
  for (const ke of Re) {
11948
- const Ve = (await M.getHandler().readObjects({
11956
+ const Ve = (await N.getHandler().readObjects({
11949
11957
  model: B,
11950
11958
  ids: [ke],
11951
11959
  fields: o.get("form").fields,
11952
11960
  context: { ...p == null ? void 0 : p(), ...U }
11953
- }))[0], ye = (await M.getHandler().readObjects({
11961
+ }))[0], ye = (await N.getHandler().readObjects({
11954
11962
  model: B,
11955
11963
  ids: [ke],
11956
11964
  fields: o.get("tree").fields,
@@ -12022,7 +12030,7 @@ const xg = (e) => {
12022
12030
  treeView: o.get("tree"),
12023
12031
  results: te,
12024
12032
  loading: C,
12025
- onRowClicked: ((Ve = o.get("form")) == null ? void 0 : Ve.fields) !== void 0 ? Ne : void 0,
12033
+ onRowClicked: ((Ve = o.get("form")) == null ? void 0 : Ve.fields) !== void 0 ? Me : void 0,
12026
12034
  showPagination: !1,
12027
12035
  selectedRowKeys: E,
12028
12036
  onRowSelectionChange: H,
@@ -12052,7 +12060,7 @@ const xg = (e) => {
12052
12060
  if (R)
12053
12061
  return /* @__PURE__ */ s(vt, { className: "mt-10", message: R, type: "error", banner: !0 });
12054
12062
  const Ze = V;
12055
- return C ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ N(oe, { children: [
12063
+ return C ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ M(oe, { children: [
12056
12064
  /* @__PURE__ */ s(
12057
12065
  Tl,
12058
12066
  {
@@ -12145,7 +12153,7 @@ const xg = (e) => {
12145
12153
  l();
12146
12154
  }, [i]);
12147
12155
  async function l() {
12148
- t && (n.current = await M.getHandler().evalDomain({
12156
+ t && (n.current = await N.getHandler().evalDomain({
12149
12157
  domain: t,
12150
12158
  values: pn({
12151
12159
  fields: r(),
@@ -12236,12 +12244,12 @@ const xg = (e) => {
12236
12244
  async ({ id: p }) => {
12237
12245
  if (!o)
12238
12246
  return;
12239
- const y = (await M.getHandler().readObjects({
12247
+ const y = (await N.getHandler().readObjects({
12240
12248
  model: t,
12241
12249
  ids: [p],
12242
12250
  fields: o.fields,
12243
12251
  context: n
12244
- }))[0], g = (await M.getHandler().readObjects({
12252
+ }))[0], g = (await N.getHandler().readObjects({
12245
12253
  model: t,
12246
12254
  ids: [p],
12247
12255
  fields: r.fields,
@@ -12470,7 +12478,7 @@ const Og = ({
12470
12478
  const { id: R } = x;
12471
12479
  let T = o;
12472
12480
  const w = o.find((A) => A.id === R);
12473
- (w == null ? void 0 : w.values) === void 0 && (T = await M.getHandler().readObjects({
12481
+ (w == null ? void 0 : w.values) === void 0 && (T = await N.getHandler().readObjects({
12474
12482
  model: c,
12475
12483
  ids: [x.id],
12476
12484
  fields: d.fields,
@@ -12507,7 +12515,7 @@ const Og = ({
12507
12515
  async (h) => {
12508
12516
  const p = [...n], y = h.filter((g) => !n.find((v) => v.id === g));
12509
12517
  try {
12510
- (await M.getHandler().readObjects({
12518
+ (await N.getHandler().readObjects({
12511
12519
  model: i,
12512
12520
  ids: y,
12513
12521
  fields: {
@@ -12611,7 +12619,7 @@ const Og = ({
12611
12619
  })
12612
12620
  });
12613
12621
  return P ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
12614
- Mi,
12622
+ Ni,
12615
12623
  {
12616
12624
  ref: b,
12617
12625
  height: t || Pg,
@@ -12654,7 +12662,7 @@ const Og = ({
12654
12662
  model: r,
12655
12663
  domain: a
12656
12664
  });
12657
- }, Ng = ["form", "tree", "graph"], Mg = (e) => {
12665
+ }, Mg = ["form", "tree", "graph"], Ng = (e) => {
12658
12666
  var Te, He, Be;
12659
12667
  const t = q(null), { value: n, onChange: r, ooui: o, views: a } = e, { items: i = [] } = n || {}, l = Ag({ one2manyItems: i }), { currentView: c, setCurrentView: d, itemIndex: f, setItemIndex: u } = ae(
12660
12668
  Bn
@@ -12785,7 +12793,7 @@ const Og = ({
12785
12793
  var Ie;
12786
12794
  return ((Ie = a.get("form")) == null ? void 0 : Ie.fields) !== void 0;
12787
12795
  }, [a]);
12788
- return /* @__PURE__ */ N(oe, { children: [
12796
+ return /* @__PURE__ */ M(oe, { children: [
12789
12797
  /* @__PURE__ */ s(
12790
12798
  Tl,
12791
12799
  {
@@ -12895,7 +12903,7 @@ const Og = ({
12895
12903
  limit: 0
12896
12904
  }
12897
12905
  ),
12898
- !Ng.includes(c) && /* @__PURE__ */ N("span", { children: [
12906
+ !Mg.includes(c) && /* @__PURE__ */ M("span", { children: [
12899
12907
  "Unsupported view ",
12900
12908
  c
12901
12909
  ] })
@@ -12914,7 +12922,7 @@ const Og = ({
12914
12922
  if (o && o[T]) {
12915
12923
  const w = o[T];
12916
12924
  if (b && !w.toolbar && (T === "form" || T === "tree")) {
12917
- const A = await M.getHandler().getToolbar({
12925
+ const A = await N.getHandler().getToolbar({
12918
12926
  model: r,
12919
12927
  type: T,
12920
12928
  context: { ...y == null ? void 0 : y(), ...i }
@@ -12923,7 +12931,7 @@ const Og = ({
12923
12931
  }
12924
12932
  return w;
12925
12933
  }
12926
- return await M.getHandler().getView({
12934
+ return await N.getHandler().getView({
12927
12935
  model: r,
12928
12936
  type: T,
12929
12937
  context: { ...y == null ? void 0 : y(), ...i }
@@ -12976,7 +12984,7 @@ const Og = ({
12976
12984
  ) });
12977
12985
  }, Hg = (e) => {
12978
12986
  const { ooui: t, value: n } = e;
12979
- return t.infinite || n && Array.isArray(n.items) && n.items.length >= $g ? /* @__PURE__ */ s(Mg, { ...e }) : /* @__PURE__ */ s(xg, { ...e });
12987
+ return t.infinite || n && Array.isArray(n.items) && n.items.length >= $g ? /* @__PURE__ */ s(Ng, { ...e }) : /* @__PURE__ */ s(xg, { ...e });
12980
12988
  }, { useToken: Bg } = Xe, jg = (e) => {
12981
12989
  const { ooui: t } = e, { required: n } = t;
12982
12990
  return /* @__PURE__ */ s($e, { required: n, type: "number", ...e, children: /* @__PURE__ */ s(Ug, { ooui: t }) });
@@ -13082,7 +13090,7 @@ function Gg(e) {
13082
13090
  children: r.filter((i) => !i.invisible).map((i) => /* @__PURE__ */ s(
13083
13091
  Wg,
13084
13092
  {
13085
- tab: /* @__PURE__ */ N(oe, { children: [
13093
+ tab: /* @__PURE__ */ M(oe, { children: [
13086
13094
  a(i.icon),
13087
13095
  " ",
13088
13096
  i.label
@@ -13138,7 +13146,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13138
13146
  formHasChanges: d,
13139
13147
  elementHasLostFocus: f
13140
13148
  } = a || {}, [u, m] = I(!1), { t: h } = ge();
13141
- return i ? /* @__PURE__ */ N(oe, { children: [
13149
+ return i ? /* @__PURE__ */ M(oe, { children: [
13142
13150
  /* @__PURE__ */ s(
13143
13151
  "div",
13144
13152
  {
@@ -13185,7 +13193,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13185
13193
  }
13186
13194
  }
13187
13195
  )
13188
- ] }) : /* @__PURE__ */ N(oe, { children: [
13196
+ ] }) : /* @__PURE__ */ M(oe, { children: [
13189
13197
  /* @__PURE__ */ s(Ye, { gutter: 8, wrap: !1, children: /* @__PURE__ */ s(
13190
13198
  Co,
13191
13199
  {
@@ -13216,7 +13224,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13216
13224
  ] });
13217
13225
  }, Jg = (e) => {
13218
13226
  const { ooui: t } = e, { label: n, icon: r } = t, o = St(r || "");
13219
- return /* @__PURE__ */ s(Ir, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ N(it, { children: [
13227
+ return /* @__PURE__ */ s(Ir, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ M(it, { children: [
13220
13228
  o ? /* @__PURE__ */ s(o, {}) : null,
13221
13229
  n
13222
13230
  ] }) });
@@ -13238,7 +13246,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13238
13246
  g.registersAmount === "selected" && (n == null ? void 0 : n.length) !== 0 && (v = [
13239
13247
  ["id", "in", n == null ? void 0 : n.map((C) => C.id)]
13240
13248
  ]);
13241
- const { datas: b } = await M.getHandler().exportData({
13249
+ const { datas: b } = await N.getHandler().exportData({
13242
13250
  model: e,
13243
13251
  fields: ry({
13244
13252
  keys: g.selectedKeys,
@@ -13255,7 +13263,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13255
13263
  },
13256
13264
  [r, n, e, o, t, a, c]
13257
13265
  ), f = O(async () => {
13258
- const g = await M.getHandler().getFields({
13266
+ const g = await N.getHandler().getFields({
13259
13267
  model: e,
13260
13268
  context: t,
13261
13269
  fields: []
@@ -13263,7 +13271,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13263
13271
  return i.current["/"] = g, ci({ fields: g });
13264
13272
  }, [e, t, i]), u = O(
13265
13273
  async (g) => {
13266
- const b = Io(g, i.current)[To(g)], _ = b.relation, C = await M.getHandler().getFields({
13274
+ const b = Io(g, i.current)[To(g)], _ = b.relation, C = await N.getHandler().getFields({
13267
13275
  model: _,
13268
13276
  context: t,
13269
13277
  fields: []
@@ -13302,7 +13310,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13302
13310
  };
13303
13311
  }, [t, e, u]), h = O(
13304
13312
  async (g) => {
13305
- await M.getHandler().deleteObjects({
13313
+ await N.getHandler().deleteObjects({
13306
13314
  model: "ir.exports",
13307
13315
  ids: [g.id],
13308
13316
  context: t
@@ -13313,7 +13321,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13313
13321
  async (g) => {
13314
13322
  if (l.current.has(g))
13315
13323
  return l.current.get(g);
13316
- const v = M.getHandler().getFields({
13324
+ const v = N.getHandler().getFields({
13317
13325
  model: g,
13318
13326
  context: t,
13319
13327
  fields: []
@@ -13323,7 +13331,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13323
13331
  [l, t]
13324
13332
  ), y = O(
13325
13333
  async (g) => {
13326
- const v = await p("ir.exports"), b = await p("ir.exports.line"), _ = await M.getHandler().create({
13334
+ const v = await p("ir.exports"), b = await p("ir.exports.line"), _ = await N.getHandler().create({
13327
13335
  model: "ir.exports",
13328
13336
  values: {
13329
13337
  name: g.name,
@@ -13333,7 +13341,7 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13333
13341
  context: t
13334
13342
  });
13335
13343
  return await Promise.all(
13336
- g.fields.map(async (C) => await M.getHandler().create({
13344
+ g.fields.map(async (C) => await N.getHandler().create({
13337
13345
  model: "ir.exports.line",
13338
13346
  values: {
13339
13347
  name: C.key,
@@ -13385,11 +13393,11 @@ const { useToken: Kg } = Xe, { TextArea: Co } = pt, qg = (e) => {
13385
13393
  model: e,
13386
13394
  context: t
13387
13395
  }) => {
13388
- const n = await M.getHandler().search({
13396
+ const n = await N.getHandler().search({
13389
13397
  model: "ir.exports",
13390
13398
  params: [["resource", "=", e]],
13391
13399
  context: t
13392
- }), r = n.flatMap((a) => a.export_fields), o = await M.getHandler().readObjects({
13400
+ }), r = n.flatMap((a) => a.export_fields), o = await N.getHandler().readObjects({
13393
13401
  model: "ir.exports.line",
13394
13402
  ids: r,
13395
13403
  context: t
@@ -13628,7 +13636,7 @@ const Rl = nt(cy), dy = (e) => {
13628
13636
  }
13629
13637
  const h = t && c && c[0], p = t && c && c[1] && parseInt(c[1]);
13630
13638
  f([p, void 0]), m(h);
13631
- }, [t]), /* @__PURE__ */ N(Ye, { gutter: 8, wrap: !1, children: [
13639
+ }, [t]), /* @__PURE__ */ M(Ye, { gutter: 8, wrap: !1, children: [
13632
13640
  /* @__PURE__ */ s(Fe, { flex: "1", children: /* @__PURE__ */ s(
13633
13641
  zi,
13634
13642
  {
@@ -13671,7 +13679,7 @@ const Rl = nt(cy), dy = (e) => {
13671
13679
  const { ooui: t } = e, { required: n } = t;
13672
13680
  return /* @__PURE__ */ s($e, { required: n, ...e, children: /* @__PURE__ */ s(vy, { ooui: t }) });
13673
13681
  }, vy = (e) => {
13674
- const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: a, filenameField: i } = t, { token: l } = gy(), c = a && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, d = q(null), { setFieldValue: f, getFieldValue: u } = ae(Je) || {}, { t: m } = ge(), h = n ? Md(n) : "", p = (_) => {
13682
+ const { ooui: t, value: n, onChange: r } = e, { readOnly: o, required: a, filenameField: i } = t, { token: l } = gy(), c = a && !o ? { backgroundColor: l.colorPrimaryBg } : void 0, d = q(null), { setFieldValue: f, getFieldValue: u } = ae(Je) || {}, { t: m } = ge(), h = n ? Nd(n) : "", p = (_) => {
13675
13683
  r == null || r(_);
13676
13684
  };
13677
13685
  async function y() {
@@ -13690,8 +13698,8 @@ const Rl = nt(cy), dy = (e) => {
13690
13698
  function b() {
13691
13699
  f(i, void 0), p(void 0);
13692
13700
  }
13693
- return /* @__PURE__ */ N(Ye, { gutter: 8, children: [
13694
- /* @__PURE__ */ N(Fe, { style: { paddingBottom: 5 }, children: [
13701
+ return /* @__PURE__ */ M(Ye, { gutter: 8, children: [
13702
+ /* @__PURE__ */ M(Fe, { style: { paddingBottom: 5 }, children: [
13695
13703
  /* @__PURE__ */ s(
13696
13704
  "input",
13697
13705
  {
@@ -13712,7 +13720,7 @@ const Rl = nt(cy), dy = (e) => {
13712
13720
  }
13713
13721
  )
13714
13722
  ] }),
13715
- /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ N(it, { children: [
13723
+ /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ M(it, { children: [
13716
13724
  /* @__PURE__ */ s(
13717
13725
  qe,
13718
13726
  {
@@ -13754,7 +13762,7 @@ const Rl = nt(cy), dy = (e) => {
13754
13762
  onOpenAttachmentLink: a,
13755
13763
  onOpenAttachmentDetail: i,
13756
13764
  onListAllAttachments: l
13757
- } = e, { t: c } = ge(), d = q(null), f = /* @__PURE__ */ N(qe, { children: [
13765
+ } = e, { t: c } = ge(), d = q(null), f = /* @__PURE__ */ M(qe, { children: [
13758
13766
  /* @__PURE__ */ s(us, {}),
13759
13767
  `(${t})`,
13760
13768
  /* @__PURE__ */ s(Ar, { style: { fontSize: 12 } })
@@ -13766,9 +13774,9 @@ const Rl = nt(cy), dy = (e) => {
13766
13774
  onRetrieveData: async () => [
13767
13775
  {
13768
13776
  items: n.map((u) => {
13769
- const m = u.link ? us : Eo, h = /* @__PURE__ */ N(Ye, { wrap: !1, align: "middle", gutter: 8, children: [
13777
+ const m = u.link ? us : Eo, h = /* @__PURE__ */ M(Ye, { wrap: !1, align: "middle", gutter: 8, children: [
13770
13778
  /* @__PURE__ */ s(Fe, { style: { textAlign: "center" }, children: (u.datas_fname || u.link) && /* @__PURE__ */ s(
13771
- Mt,
13779
+ Nt,
13772
13780
  {
13773
13781
  title: u.link ? c("openAttachmentLink") : c("download"),
13774
13782
  children: /* @__PURE__ */ s(
@@ -13783,7 +13791,7 @@ const Rl = nt(cy), dy = (e) => {
13783
13791
  )
13784
13792
  }
13785
13793
  ) }),
13786
- /* @__PURE__ */ s(Fe, { style: { textAlign: "center" }, children: /* @__PURE__ */ s(Mt, { title: c("openAttachment"), children: /* @__PURE__ */ s(
13794
+ /* @__PURE__ */ s(Fe, { style: { textAlign: "center" }, children: /* @__PURE__ */ s(Nt, { title: c("openAttachment"), children: /* @__PURE__ */ s(
13787
13795
  zn,
13788
13796
  {
13789
13797
  style: { cursor: "pointer" },
@@ -13805,8 +13813,8 @@ const Rl = nt(cy), dy = (e) => {
13805
13813
  ],
13806
13814
  placement: "bottomRight",
13807
13815
  disabled: r,
13808
- header: /* @__PURE__ */ N("div", { style: { padding: 5 }, children: [
13809
- /* @__PURE__ */ N(
13816
+ header: /* @__PURE__ */ M("div", { style: { padding: 5 }, children: [
13817
+ /* @__PURE__ */ M(
13810
13818
  "a",
13811
13819
  {
13812
13820
  style: { display: "block", paddingBottom: 5 },
@@ -13822,7 +13830,7 @@ const Rl = nt(cy), dy = (e) => {
13822
13830
  ]
13823
13831
  }
13824
13832
  ),
13825
- /* @__PURE__ */ N(
13833
+ /* @__PURE__ */ M(
13826
13834
  "a",
13827
13835
  {
13828
13836
  style: { display: "block" },
@@ -13854,7 +13862,7 @@ function wy(e) {
13854
13862
  if (!(!t || t.length === 0)) {
13855
13863
  c(!0);
13856
13864
  try {
13857
- const v = await M.getHandler().readObjects({
13865
+ const v = await N.getHandler().readObjects({
13858
13866
  model: "ir.attachment",
13859
13867
  ids: t.map((b) => b.id),
13860
13868
  fieldsToRetrieve: ["name", "datas_fname", "link"],
@@ -13882,7 +13890,7 @@ function wy(e) {
13882
13890
  m(!0);
13883
13891
  let b;
13884
13892
  try {
13885
- b = (await M.getHandler().readObjects({
13893
+ b = (await N.getHandler().readObjects({
13886
13894
  model: "ir.attachment",
13887
13895
  ids: [v.id],
13888
13896
  context: i.current.getContext()
@@ -13906,7 +13914,7 @@ function wy(e) {
13906
13914
  );
13907
13915
  return le(() => {
13908
13916
  p();
13909
- }, [p]), /* @__PURE__ */ N(oe, { children: [
13917
+ }, [p]), /* @__PURE__ */ M(oe, { children: [
13910
13918
  /* @__PURE__ */ s(
13911
13919
  by,
13912
13920
  {
@@ -13943,8 +13951,8 @@ const Sy = () => {
13943
13951
  setCurrentItemIndex: o,
13944
13952
  results: a,
13945
13953
  searchQuery: i
13946
- } = Mn(), [l, c] = ze(
13947
- M.getHandler().searchForTree
13954
+ } = Nn(), [l, c] = ze(
13955
+ N.getHandler().searchForTree
13948
13956
  );
13949
13957
  le(() => () => {
13950
13958
  c();
@@ -14046,7 +14054,7 @@ function Cy({ toolbar: e }) {
14046
14054
  setPreviousView: S,
14047
14055
  goToResourceId: F,
14048
14056
  isActive: P
14049
- } = Mn(), { openDefaultActionForModel: E } = t || {}, H = Q(
14057
+ } = Nn(), { openDefaultActionForModel: E } = t || {}, H = Q(
14050
14058
  () => f || b || R || _,
14051
14059
  [f, b, R, _]
14052
14060
  ), V = O(
@@ -14063,7 +14071,7 @@ function Cy({ toolbar: e }) {
14063
14071
  onRefreshParentValues: $
14064
14072
  }), G = O(async () => {
14065
14073
  try {
14066
- v == null || v(!0), await M.getHandler().deleteObjects({
14074
+ v == null || v(!0), await N.getHandler().deleteObjects({
14067
14075
  model: g,
14068
14076
  ids: [u],
14069
14077
  context: w.current.getContext()
@@ -14092,7 +14100,7 @@ function Cy({ toolbar: e }) {
14092
14100
  ]), j = O(async () => {
14093
14101
  try {
14094
14102
  C == null || C(!0);
14095
- const U = await M.getHandler().duplicate({
14103
+ const U = await N.getHandler().duplicate({
14096
14104
  id: u,
14097
14105
  model: g,
14098
14106
  context: w.current.getContext()
@@ -14169,8 +14177,8 @@ function Cy({ toolbar: e }) {
14169
14177
  l,
14170
14178
  w
14171
14179
  ]
14172
- ), i ? /* @__PURE__ */ N(it, { wrap: !0, children: [
14173
- R && /* @__PURE__ */ N(oe, { children: [
14180
+ ), i ? /* @__PURE__ */ M(it, { wrap: !0, children: [
14181
+ R && /* @__PURE__ */ M(oe, { children: [
14174
14182
  /* @__PURE__ */ s(tt, {}),
14175
14183
  /* @__PURE__ */ s(dt, {}),
14176
14184
  /* @__PURE__ */ s(dt, {})
@@ -14281,7 +14289,7 @@ const xy = nt(Cy), Ol = nt(
14281
14289
  tryAction: r
14282
14290
  }) => {
14283
14291
  const { t: o } = ge();
14284
- return /* @__PURE__ */ N(it, { children: [
14292
+ return /* @__PURE__ */ M(it, { children: [
14285
14293
  /* @__PURE__ */ s(
14286
14294
  yt,
14287
14295
  {
@@ -14320,7 +14328,7 @@ const di = (e, t) => ({
14320
14328
  const v = (b) => {
14321
14329
  r == null || r(b.target.value);
14322
14330
  };
14323
- return /* @__PURE__ */ N(Ye, { gutter: 8, wrap: !1, align: "middle", children: [
14331
+ return /* @__PURE__ */ M(Ye, { gutter: 8, wrap: !1, align: "middle", children: [
14324
14332
  l ? null : /* @__PURE__ */ s(Fe, { flex: "none", style: { paddingRight: 0 }, children: h ? /* @__PURE__ */ s(
14325
14333
  qe,
14326
14334
  {
@@ -14408,7 +14416,7 @@ const di = (e, t) => ({
14408
14416
  var f;
14409
14417
  return d && ((f = i.current) == null ? void 0 : f.focus());
14410
14418
  },
14411
- children: /* @__PURE__ */ N(Et, { layout: "vertical", onFinish: c, autoComplete: "off", children: [
14419
+ children: /* @__PURE__ */ M(Et, { layout: "vertical", onFinish: c, autoComplete: "off", children: [
14412
14420
  /* @__PURE__ */ s(
14413
14421
  Et.Item,
14414
14422
  {
@@ -14423,7 +14431,7 @@ const di = (e, t) => ({
14423
14431
  children: /* @__PURE__ */ s(pt, { style: { width: "100%" }, autoFocus: !0, ref: i })
14424
14432
  }
14425
14433
  ),
14426
- /* @__PURE__ */ s(Ye, { align: "middle", justify: "end", children: /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ N(it, { children: [
14434
+ /* @__PURE__ */ s(Ye, { align: "middle", justify: "end", children: /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ M(it, { children: [
14427
14435
  /* @__PURE__ */ s(
14428
14436
  qe,
14429
14437
  {
@@ -14482,7 +14490,7 @@ function _y({ refreshGraph: e }) {
14482
14490
  previousView: d,
14483
14491
  setPreviousView: f
14484
14492
  } = ae(Ct);
14485
- return /* @__PURE__ */ N(it, { wrap: !0, children: [
14493
+ return /* @__PURE__ */ M(it, { wrap: !0, children: [
14486
14494
  /* @__PURE__ */ s(
14487
14495
  fa,
14488
14496
  {
@@ -14602,7 +14610,7 @@ const Ry = (e) => {
14602
14610
  c == null ? void 0 : c.search_fields
14603
14611
  ]
14604
14612
  );
14605
- return !n || !t ? null : /* @__PURE__ */ N(oe, { children: [
14613
+ return !n || !t ? null : /* @__PURE__ */ M(oe, { children: [
14606
14614
  /* @__PURE__ */ s(Br, { title: t.title || t.name, children: /* @__PURE__ */ s(
14607
14615
  _y,
14608
14616
  {
@@ -14662,7 +14670,7 @@ const Ry = (e) => {
14662
14670
  setResults: u,
14663
14671
  setCurrentItemIndex: m
14664
14672
  } = e;
14665
- return t ? /* @__PURE__ */ N(oe, { children: [
14673
+ return t ? /* @__PURE__ */ M(oe, { children: [
14666
14674
  /* @__PURE__ */ s(Br, { children: /* @__PURE__ */ s(xy, { toolbar: i == null ? void 0 : i.toolbar }) }),
14667
14675
  /* @__PURE__ */ s(
14668
14676
  Ln,
@@ -14701,7 +14709,7 @@ const Ry = (e) => {
14701
14709
  };
14702
14710
  function Dy() {
14703
14711
  const { isLoading: e, dashboardRef: t, moveItemsEnabled: n, setMoveItemsEnabled: r } = ae(ss), { t: o } = ge();
14704
- return /* @__PURE__ */ N(it, { wrap: !0, children: [
14712
+ return /* @__PURE__ */ M(it, { wrap: !0, children: [
14705
14713
  /* @__PURE__ */ s(
14706
14714
  yt,
14707
14715
  {
@@ -14753,7 +14761,7 @@ const Py = (e) => {
14753
14761
  const { dashboardData: t, visible: n } = e, r = q(), o = ae(
14754
14762
  Rt
14755
14763
  ), { openShortcut: a } = o || {};
14756
- return !t || !n ? null : /* @__PURE__ */ N(
14764
+ return !t || !n ? null : /* @__PURE__ */ M(
14757
14765
  Ey,
14758
14766
  {
14759
14767
  dashboardRef: r,
@@ -14794,7 +14802,7 @@ async function ky(e) {
14794
14802
  function Vy({
14795
14803
  currentTab: e
14796
14804
  }) {
14797
- const { currentView: t, searchParams: n, currentId: r, limit: o, currentPage: a, order: i } = Mn(), { currentTab: l } = jo(), c = e || l;
14805
+ const { currentView: t, searchParams: n, currentId: r, limit: o, currentPage: a, order: i } = Nn(), { currentTab: l } = jo(), c = e || l;
14798
14806
  if (!(c != null && c.action))
14799
14807
  return { shareUrl: null, canShare: !1 };
14800
14808
  const d = {
@@ -14812,7 +14820,7 @@ function Vy({
14812
14820
  let p = !!f;
14813
14821
  return h === "form" && (p = !!f && !!r), { shareUrl: m, canShare: p };
14814
14822
  }
14815
- const Ny = () => {
14823
+ const My = () => {
14816
14824
  const { currentTab: e } = jo(), { title: t } = on(), { shareUrl: n } = Vy({ currentTab: e });
14817
14825
  le(() => {
14818
14826
  if (n) {
@@ -14823,7 +14831,7 @@ const Ny = () => {
14823
14831
  document.title = t, e != null && e.title && e.title.length > 0 && (document.title = (e == null ? void 0 : e.title) + " - " + t);
14824
14832
  }, [e, t]);
14825
14833
  };
14826
- function My(e, t) {
14834
+ function Ny(e, t) {
14827
14835
  const {
14828
14836
  domain: n,
14829
14837
  model: r,
@@ -14882,7 +14890,7 @@ function My(e, t) {
14882
14890
  const [Ae, de] = ve;
14883
14891
  de !== "dashboard" ? Ue.push({
14884
14892
  viewTuple: ve,
14885
- promise: M.getHandler().getView({
14893
+ promise: N.getHandler().getView({
14886
14894
  model: r,
14887
14895
  type: de,
14888
14896
  id: Ae,
@@ -14949,12 +14957,12 @@ function My(e, t) {
14949
14957
  }
14950
14958
  }
14951
14959
  }
14952
- let Ne;
14953
- !d && ce.find((ve) => ve.type === "tree") ? Ne = ce.find(
14960
+ let Me;
14961
+ !d && ce.find((ve) => ve.type === "tree") ? Me = ce.find(
14954
14962
  (Ae) => Ae.type === "tree"
14955
- ) : d ? Ne = ce.find((Ae) => d.id ? Ae.type === d.type && Ae.view_id === d.id : Ae.type === d.type) : Ne = ce.find(
14963
+ ) : d ? Me = ce.find((Ae) => d.id ? Ae.type === d.type && Ae.view_id === d.id : Ae.type === d.type) : Me = ce.find(
14956
14964
  (Ae) => Ae.type === "form"
14957
- ), Ne || (wt(
14965
+ ), Me || (wt(
14958
14966
  `Error determining the first view to show for model ${r}.
14959
14967
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`
14960
14968
  ), console.error(
@@ -14964,11 +14972,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
14964
14972
  views: a,
14965
14973
  initialView: d,
14966
14974
  availableViews: ce,
14967
- currentViewToAssign: Ne,
14975
+ currentViewToAssign: Me,
14968
14976
  action_id: h,
14969
14977
  action_type: p
14970
14978
  })
14971
- ), xe == null || xe(c)), fe(Ne), T(ce), A(!1);
14979
+ ), xe == null || xe(c)), fe(Me), T(ce), A(!1);
14972
14980
  }, [
14973
14981
  d,
14974
14982
  fe,
@@ -15001,14 +15009,14 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15001
15009
  async function Be(ce, Ue) {
15002
15010
  var ve;
15003
15011
  B(!0);
15004
- let Ee, Ne;
15012
+ let Ee, Me;
15005
15013
  if (ce.length === 1) {
15006
- Ee = "form", Ne = [];
15014
+ Ee = "form", Me = [];
15007
15015
  const Ae = ce[0], de = $.findIndex((Ge) => Ge.id === Ae);
15008
15016
  let Ze;
15009
15017
  if (de === -1) {
15010
15018
  try {
15011
- Ze = (ve = await M.getHandler().readObjects({
15019
+ Ze = (ve = await N.getHandler().readObjects({
15012
15020
  model: r,
15013
15021
  ids: [Ae],
15014
15022
  context: o
@@ -15022,7 +15030,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15022
15030
  } else
15023
15031
  Ze = $[de];
15024
15032
  } else
15025
- Ee = "tree", Ne = [["id", "in", ce]];
15033
+ Ee = "tree", Me = [["id", "in", ce]];
15026
15034
  if (B(!1), X(!1), Ue && Ee === "form") {
15027
15035
  Ce(ce[0]);
15028
15036
  const Ae = R.find(
@@ -15032,7 +15040,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15032
15040
  } else {
15033
15041
  const Ae = a.find((de) => de[1] === Ee);
15034
15042
  je({
15035
- domain: Ne,
15043
+ domain: Me,
15036
15044
  context: o,
15037
15045
  model: r,
15038
15046
  views: a,
@@ -15056,8 +15064,8 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15056
15064
  fe(ce);
15057
15065
  }
15058
15066
  }
15059
- return w ? /* @__PURE__ */ s(tt, {}) : C ? /* @__PURE__ */ N(
15060
- Nh,
15067
+ return w ? /* @__PURE__ */ s(tt, {}) : C ? /* @__PURE__ */ M(
15068
+ Mh,
15061
15069
  {
15062
15070
  title: i,
15063
15071
  currentView: C,
@@ -15143,7 +15151,7 @@ const $y = ({
15143
15151
  searchTreeNameSearch: p,
15144
15152
  setCurrentView: y,
15145
15153
  setCurrentId: g
15146
- }) => (Ny(), e.map((v) => {
15154
+ }) => (My(), e.map((v) => {
15147
15155
  switch (v.type) {
15148
15156
  case "form":
15149
15157
  return /* @__PURE__ */ s(
@@ -15212,7 +15220,7 @@ const $y = ({
15212
15220
  `${v.type}-${v.view_id}`
15213
15221
  );
15214
15222
  }
15215
- })), Dl = _t(My);
15223
+ })), Dl = _t(Ny);
15216
15224
  const Ly = Jc(Qc), Hy = (e) => {
15217
15225
  const { children: t = [], onPositionItemsChanged: n } = e, r = It.Children.map(
15218
15226
  t,
@@ -15255,7 +15263,7 @@ function By(e) {
15255
15263
  } = e, [c, d] = I(!1), [f, u] = I(!1), [m, h] = I(), [p, y] = I(), [g, v] = I(), [b, _] = I(1), [C, x] = I(0), R = q(ht), T = q([]), [w, A] = I(0), [k, S] = I([]), [F, P] = I(void 0), [E, H] = I(), [V, $] = I(), [L, D] = I(), [W, G] = I(!1), j = q([]), ne = (Z) => {
15256
15264
  G(!0), _(Z), x((Z - 1) * R.current);
15257
15265
  }, X = async () => {
15258
- const Z = j.current.length > 0 ? j.current : a, re = en(T.current, Z), { colors: z } = qt(p), { totalItems: Y, results: be, attrsEvaluated: Oe } = await M.getHandler().searchForTree({
15266
+ const Z = j.current.length > 0 ? j.current : a, re = en(T.current, Z), { colors: z } = qt(p), { totalItems: Y, results: be, attrsEvaluated: Oe } = await N.getHandler().searchForTree({
15259
15267
  params: re,
15260
15268
  limit: R.current,
15261
15269
  offset: C,
@@ -15293,20 +15301,20 @@ function By(e) {
15293
15301
  d(!1);
15294
15302
  }
15295
15303
  }, U = async () => {
15296
- const Z = await M.getHandler().getViewsForAction({
15304
+ const Z = await N.getHandler().getViewsForAction({
15297
15305
  action: t,
15298
15306
  context: l
15299
15307
  });
15300
15308
  j.current = Z.domain, v(Z.views.get("form")), y(Z.views.get("tree")), h(Z.model), R.current = Z.limit;
15301
15309
  }, me = async () => {
15302
15310
  h(n);
15303
- const Z = await M.getHandler().getView({
15311
+ const Z = await N.getHandler().getView({
15304
15312
  model: n,
15305
15313
  type: "form",
15306
15314
  context: l
15307
15315
  });
15308
15316
  v(Z);
15309
- const re = await M.getHandler().getView({
15317
+ const re = await N.getHandler().getView({
15310
15318
  model: n,
15311
15319
  type: "tree",
15312
15320
  id: r,
@@ -15324,7 +15332,7 @@ function By(e) {
15324
15332
  model: m,
15325
15333
  treeView: p
15326
15334
  });
15327
- }, se = () => !p || !g ? null : /* @__PURE__ */ N("div", { style: { overflowY: "scroll" }, children: [
15335
+ }, se = () => !p || !g ? null : /* @__PURE__ */ M("div", { style: { overflowY: "scroll" }, children: [
15328
15336
  V && /* @__PURE__ */ s(vt, { className: "mt-10", message: V, type: "error", banner: !0 }),
15329
15337
  /* @__PURE__ */ s(
15330
15338
  cr,
@@ -15361,7 +15369,7 @@ const jy = nt(By), Uy = (e) => {
15361
15369
  o();
15362
15370
  }, [t]);
15363
15371
  async function o() {
15364
- const a = await M.getHandler().search({
15372
+ const a = await N.getHandler().search({
15365
15373
  params: [],
15366
15374
  model: t,
15367
15375
  limit: 1
@@ -15375,9 +15383,9 @@ function Wy(e, t) {
15375
15383
  setIsLoading: m,
15376
15384
  openAction: h,
15377
15385
  moveItemsEnabled: p
15378
- } = ae(ss), y = q(), g = q(), [v] = ze(M.getHandler().getView), [b] = ze(
15379
- M.getHandler().readObjects
15380
- ), [_] = ze(M.getHandler().update), C = Jt(
15386
+ } = ae(ss), y = q(), g = q(), [v] = ze(N.getHandler().getView), [b] = ze(
15387
+ N.getHandler().readObjects
15388
+ ), [_] = ze(N.getHandler().update), C = Jt(
15381
15389
  Lt.FEATURE_READFORVIEW
15382
15390
  );
15383
15391
  le(() => {
@@ -15623,8 +15631,8 @@ function Wy(e, t) {
15623
15631
  fl,
15624
15632
  {
15625
15633
  id: $,
15626
- title: j ? /* @__PURE__ */ N(oe, { children: [
15627
- /* @__PURE__ */ s(Mt, { title: j, children: /* @__PURE__ */ s(kn, { className: "pr-1 text-xs" }) }),
15634
+ title: j ? /* @__PURE__ */ M(oe, { children: [
15635
+ /* @__PURE__ */ s(Nt, { title: j, children: /* @__PURE__ */ s(kn, { className: "pr-1 text-xs" }) }),
15628
15636
  /* @__PURE__ */ s("span", { children: G })
15629
15637
  ] }) : /* @__PURE__ */ s("span", { children: G }),
15630
15638
  parms: ee,
@@ -15654,7 +15662,7 @@ const Yy = _t(Wy), Gy = (e) => {
15654
15662
  u(!0);
15655
15663
  let w = [];
15656
15664
  if (n.domain) {
15657
- const A = await M.getHandler().evalDomain({
15665
+ const A = await N.getHandler().evalDomain({
15658
15666
  domain: n.domain,
15659
15667
  values: pn({
15660
15668
  fields: v == null ? void 0 : v.getFields(),
@@ -15666,7 +15674,7 @@ const Yy = _t(Wy), Gy = (e) => {
15666
15674
  w = [...w, ...A];
15667
15675
  }
15668
15676
  try {
15669
- const k = (await M.getHandler().search({
15677
+ const k = (await N.getHandler().search({
15670
15678
  model: m,
15671
15679
  params: w,
15672
15680
  fieldsToRetrieve: [y],
@@ -15698,7 +15706,7 @@ const Yy = _t(Wy), Gy = (e) => {
15698
15706
  A.push({ id: S, operation: "pendingLink" });
15699
15707
  }), _(A);
15700
15708
  };
15701
- return f && i.length === 0 ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ N("div", { className: "flex flex-row", children: [
15709
+ return f && i.length === 0 ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ M("div", { className: "flex flex-row", children: [
15702
15710
  /* @__PURE__ */ s(
15703
15711
  qn.Group,
15704
15712
  {
@@ -15709,7 +15717,7 @@ const Yy = _t(Wy), Gy = (e) => {
15709
15717
  children: /* @__PURE__ */ s(Ye, { children: i.map((w) => /* @__PURE__ */ s(Fe, { span: Math.floor(24 / g), children: /* @__PURE__ */ s(qn, { value: w.value, children: w.label }) })) })
15710
15718
  }
15711
15719
  ),
15712
- !p && /* @__PURE__ */ N(it, { children: [
15720
+ !p && /* @__PURE__ */ M(it, { children: [
15713
15721
  /* @__PURE__ */ s(
15714
15722
  qe,
15715
15723
  {
@@ -15824,8 +15832,8 @@ const Yy = _t(Wy), Gy = (e) => {
15824
15832
  const p = St(h);
15825
15833
  return p && /* @__PURE__ */ s(p, {});
15826
15834
  };
15827
- return /* @__PURE__ */ s("ul", { style: c, children: (e.value || []).map((h, p) => /* @__PURE__ */ N("li", { style: d(h.active), children: [
15828
- /* @__PURE__ */ N(it, { children: [
15835
+ return /* @__PURE__ */ s("ul", { style: c, children: (e.value || []).map((h, p) => /* @__PURE__ */ M("li", { style: d(h.active), children: [
15836
+ /* @__PURE__ */ M(it, { children: [
15829
15837
  h.icon && m(h.icon),
15830
15838
  " ",
15831
15839
  h.title
@@ -15870,20 +15878,20 @@ const Yy = _t(Wy), Gy = (e) => {
15870
15878
  function cv({ text: e }) {
15871
15879
  const t = e.split(`
15872
15880
  `);
15873
- return /* @__PURE__ */ s("div", { children: t.map((n, r) => /* @__PURE__ */ N(En, { children: [
15881
+ return /* @__PURE__ */ s("div", { children: t.map((n, r) => /* @__PURE__ */ M(En, { children: [
15874
15882
  n,
15875
15883
  r !== t.length - 1 && /* @__PURE__ */ s("br", {})
15876
15884
  ] }, r)) });
15877
15885
  }
15878
15886
  const dv = (e) => {
15879
15887
  const { data: t, style: n } = e, { t: r } = ge();
15880
- return /* @__PURE__ */ N(Ao, { style: { ...n, textAlign: "start" }, children: [
15888
+ return /* @__PURE__ */ M(Ao, { style: { ...n, textAlign: "start" }, children: [
15881
15889
  /* @__PURE__ */ s(
15882
15890
  iv,
15883
15891
  {
15884
15892
  avatar: /* @__PURE__ */ s(lv, { email: t.email, theme: "mp" }),
15885
15893
  title: t.author,
15886
- description: /* @__PURE__ */ N(it, { direction: "horizontal", children: [
15894
+ description: /* @__PURE__ */ M(it, { direction: "horizontal", children: [
15887
15895
  /* @__PURE__ */ s("span", { title: t.date, children: Qe(t.date).fromNow() }),
15888
15896
  t.isAuthor && /* @__PURE__ */ s(Fo, { color: "blue", children: r("author") })
15889
15897
  ] }),
@@ -15946,7 +15954,7 @@ const dv = (e) => {
15946
15954
  return u && /* @__PURE__ */ s(u, {});
15947
15955
  }
15948
15956
  }
15949
- const d = l.map((f) => /* @__PURE__ */ s(No, { ooui: f }, f.id));
15957
+ const d = l.map((f) => /* @__PURE__ */ s(Mo, { ooui: f }, f.id));
15950
15958
  return /* @__PURE__ */ s(
15951
15959
  vt,
15952
15960
  {
@@ -16028,7 +16036,7 @@ function Tv(e, t) {
16028
16036
  u.current.set(T, w);
16029
16037
  }
16030
16038
  async function y(T) {
16031
- const { actionRawData: w, res_id: A, limit: k } = T, S = await M.getHandler().getFields({
16039
+ const { actionRawData: w, res_id: A, limit: k } = T, S = await N.getHandler().getFields({
16032
16040
  model: T.model,
16033
16041
  context: l
16034
16042
  });
@@ -16037,7 +16045,7 @@ function Tv(e, t) {
16037
16045
  );
16038
16046
  const P = A || F.active_id || F.id;
16039
16047
  if (P) {
16040
- const V = await M.getHandler().readObjects({
16048
+ const V = await N.getHandler().readObjects({
16041
16049
  model: T.model,
16042
16050
  context: l,
16043
16051
  ids: [P]
@@ -16052,7 +16060,7 @@ function Tv(e, t) {
16052
16060
  }) : E = {};
16053
16061
  const H = await (async () => {
16054
16062
  try {
16055
- return w != null && w.domain && Array.isArray(w.domain) && w.domain.length > 0 ? w.domain : w && w.domain && !Array.isArray(w.domain) ? await M.getHandler().evalDomain({
16063
+ return w != null && w.domain && Array.isArray(w.domain) && w.domain.length > 0 ? w.domain : w && w.domain && !Array.isArray(w.domain) ? await N.getHandler().evalDomain({
16056
16064
  domain: w.domain,
16057
16065
  values: { ...F || {}, ...i },
16058
16066
  context: { ...l, ...E },
@@ -16079,7 +16087,7 @@ function Tv(e, t) {
16079
16087
  view_id: w,
16080
16088
  res_id: A
16081
16089
  }) {
16082
- const k = await M.getHandler().getView({
16090
+ const k = await N.getHandler().getView({
16083
16091
  model: T,
16084
16092
  id: w || void 0,
16085
16093
  type: "form",
@@ -16106,7 +16114,7 @@ function Tv(e, t) {
16106
16114
  res_id: S,
16107
16115
  domain: F = []
16108
16116
  }) {
16109
- const P = await M.getHandler().getActionData({
16117
+ const P = await N.getHandler().getActionData({
16110
16118
  action: T,
16111
16119
  context: l
16112
16120
  });
@@ -16119,7 +16127,7 @@ function Tv(e, t) {
16119
16127
  values: i
16120
16128
  }), D = P.domain, W = await (async () => {
16121
16129
  try {
16122
- return D ? await M.getHandler().evalDomain({
16130
+ return D ? await N.getHandler().evalDomain({
16123
16131
  domain: D,
16124
16132
  values: i,
16125
16133
  context: { ...l, ...L }
@@ -16142,7 +16150,7 @@ function Tv(e, t) {
16142
16150
  else if (re === "dashboard")
16143
16151
  me.push([void 0, "dashboard"]);
16144
16152
  else {
16145
- const { view_id: z } = await M.getHandler().getView({
16153
+ const { view_id: z } = await N.getHandler().getView({
16146
16154
  model: G,
16147
16155
  type: re,
16148
16156
  id: Z,
@@ -16218,7 +16226,7 @@ function Tv(e, t) {
16218
16226
  } = T, [D, W] = H[0], G = { id: D, type: W }, j = P, ne = Zt({
16219
16227
  context: j,
16220
16228
  values: { ...A, ...i }
16221
- }), X = E, we = E ? await M.getHandler().evalDomain({
16229
+ }), X = E, we = E ? await N.getHandler().evalDomain({
16222
16230
  domain: E,
16223
16231
  values: pn({
16224
16232
  fields: w,
@@ -16255,7 +16263,7 @@ function Tv(e, t) {
16255
16263
  overrideUnsettedLimit: F = !1,
16256
16264
  values: P = {},
16257
16265
  domain: E
16258
- } = T, H = `${A},${w}`, V = await M.getHandler().getActionData({
16266
+ } = T, H = `${A},${w}`, V = await N.getHandler().getActionData({
16259
16267
  action: H,
16260
16268
  context: l
16261
16269
  }), $ = V.context, L = Zt({
@@ -16265,7 +16273,7 @@ function Tv(e, t) {
16265
16273
  });
16266
16274
  let D = [];
16267
16275
  const W = E && E.length > 0 ? E : V.domain;
16268
- (E == null ? void 0 : E.length) > 0 ? D = E : V.domain && (D = await M.getHandler().evalDomain({
16276
+ (E == null ? void 0 : E.length) > 0 ? D = E : V.domain && (D = await N.getHandler().evalDomain({
16269
16277
  domain: V.domain,
16270
16278
  values: { ...i, ...P },
16271
16279
  context: { ...l, ...L }
@@ -16285,7 +16293,7 @@ function Tv(e, t) {
16285
16293
  else if (Y === "dashboard")
16286
16294
  me.push([void 0, "dashboard"]);
16287
16295
  else {
16288
- const { view_id: be } = await M.getHandler().getView({
16296
+ const { view_id: be } = await N.getHandler().getView({
16289
16297
  model: G,
16290
16298
  type: Y,
16291
16299
  id: z,
@@ -16329,7 +16337,7 @@ function Tv(e, t) {
16329
16337
  res_id: S,
16330
16338
  domain: F
16331
16339
  }) {
16332
- const P = await M.getHandler().getActionStringForModel(T);
16340
+ const P = await N.getHandler().getActionStringForModel(T);
16333
16341
  await v({
16334
16342
  action: P,
16335
16343
  values: w,
@@ -16360,7 +16368,7 @@ function Tv(e, t) {
16360
16368
  order: X
16361
16369
  } = T, we = Vo();
16362
16370
  if (P !== "current" && P !== void 0) {
16363
- const B = await M.getHandler().getView({
16371
+ const B = await N.getHandler().getView({
16364
16372
  model: k,
16365
16373
  type: "form",
16366
16374
  id: E.type === "form" ? E.id : void 0,
@@ -16440,7 +16448,7 @@ function Tv(e, t) {
16440
16448
  const _b = _t(Tv), { useToken: Iv } = Xe;
16441
16449
  function Fv(e) {
16442
16450
  const { label: t, onClose: n, tabKey: r, isActive: o, onSelected: a } = e, { token: i } = Iv(), l = o ? i.colorBgContainer : i.colorPrimaryBg;
16443
- return /* @__PURE__ */ N(
16451
+ return /* @__PURE__ */ M(
16444
16452
  "div",
16445
16453
  {
16446
16454
  onClick: () => {
@@ -16654,9 +16662,9 @@ const { useToken: Rv } = Xe, Eb = (e) => {
16654
16662
  onToggleFavourite: k,
16655
16663
  onItemClick: R,
16656
16664
  placement: "bottomRight",
16657
- header: /* @__PURE__ */ N("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
16665
+ header: /* @__PURE__ */ M("div", { style: { width: 300, padding: 5, display: "flex" }, children: [
16658
16666
  /* @__PURE__ */ s("div", { style: { paddingLeft: 15, color: "#ccc" }, children: f == null ? void 0 : f("favorites").toUpperCase() }),
16659
- /* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(Mt, { title: f == null ? void 0 : f("edit_favorites"), children: /* @__PURE__ */ s(
16667
+ /* @__PURE__ */ s("div", { style: { flexGrow: 1, paddingLeft: 10 }, children: /* @__PURE__ */ s(Nt, { title: f == null ? void 0 : f("edit_favorites"), children: /* @__PURE__ */ s(
16660
16668
  ki,
16661
16669
  {
16662
16670
  style: { color: u.colorPrimary, cursor: "pointer" },
@@ -16678,7 +16686,7 @@ export {
16678
16686
  rv as ArrowStepsField,
16679
16687
  yy as Binary,
16680
16688
  kd as Boolean,
16681
- No as Button,
16689
+ Mo as Button,
16682
16690
  hd as ButtonGroup,
16683
16691
  yv as Carousel,
16684
16692
  Wi as Char,
@@ -16687,7 +16695,7 @@ export {
16687
16695
  fv as CommentsTimelineField,
16688
16696
  na as ConfigContext,
16689
16697
  mu as ConfigContextProvider,
16690
- M as ConnectionProvider,
16698
+ N as ConnectionProvider,
16691
16699
  qu as ContentRootProvider,
16692
16700
  Ob as CurrentTabContent,
16693
16701
  Yy as Dashboard,