@gisce/react-ooui 2.102.2 → 2.102.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ var Bc = (t, e, n) => e in t ? Hc(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var Us = (t, e, n) => (Bc(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import { jsx as s, jsxs as L, Fragment as xe } from "react/jsx-runtime";
5
5
  import zt, { useContext as ye, useState as F, useEffect as ce, useRef as X, memo as it, useCallback as I, useMemo as te, forwardRef as Bt, useImperativeHandle as Gt, Fragment as Jn, createContext as jc, createElement as Uc } from "react";
6
- import { Tooltip as Pt, theme as tt, Typography as ln, Form as $t, Row as Xe, Col as $e, Modal as Rt, Button as Ge, Dropdown as oa, Menu as sa, Space as lt, Spin as ot, Divider as Yr, Input as ht, Select as Cn, Checkbox as dr, Alert as _t, Timeline as ia, Badge as Xn, message as Ws, Popover as Wc, Progress as qc, Avatar as aa, Tag as rs, ColorPicker as la, DatePicker as Gc, TimePicker as Yc, InputNumber as zr, Layout as ca, Pagination as zc, Empty as da, Statistic as Kc, Card as os, Tabs as ua, Radio as qs, Switch as Jc, Steps as Gs, Carousel as Xc } from "antd";
6
+ import { Tooltip as Pt, theme as tt, Typography as ln, Form as Nt, Row as Xe, Col as Ne, Modal as Rt, Button as Ge, Dropdown as oa, Menu as sa, Space as lt, Spin as ot, Divider as Yr, Input as ht, Select as Cn, Checkbox as dr, Alert as _t, Timeline as ia, Badge as Xn, message as Ws, Popover as Wc, Progress as qc, Avatar as aa, Tag as rs, ColorPicker as la, DatePicker as Gc, TimePicker as Yc, InputNumber as zr, Layout as ca, Pagination as zc, Empty as da, Statistic as Kc, Card as os, Tabs as ua, Radio as qs, Switch as Jc, Steps as Gs, Carousel as Xc } from "antd";
7
7
  import { Label as Qn, Field as Lo, Tree as fa, Tags as Ys, Reference as zs, Selection as ss, Many2one as pa, Boolean as Qc, parseContext as pn, graphProcessor as ma, graphFieldUtils as Zc, parseContextFields as ed, parseDomainFields as td, Integer as Ho, SearchFieldTypes as fn, SearchFilter as ha, parseGraph as ga, Container as nd, Form as ya, transformDomainForChildWidget as is, Button as rd } from "@gisce/ooui";
8
8
  import od, { QuestionCircleOutlined as va, ExclamationCircleOutlined as Kr, LoadingOutlined as Kt, DownOutlined as br, CloseOutlined as Tn, CheckOutlined as Zn, TranslationOutlined as ba, FolderOpenOutlined as as, DownloadOutlined as ls, ClearOutlined as er, FormOutlined as ur, TableOutlined as cs, AreaChartOutlined as sd, CalendarOutlined as id, FileAddOutlined as Jr, CloseCircleFilled as ad, FilterOutlined as Hn, EditOutlined as ds, CopyOutlined as wr, DeleteOutlined as us, InfoCircleOutlined as Xr, ReloadOutlined as Qr, ThunderboltOutlined as Zr, PrinterOutlined as eo, ExportOutlined as wa, EnterOutlined as to, SearchOutlined as xr, SaveOutlined as Bo, PlusOutlined as jo, UpOutlined as ld, PlusSquareOutlined as xa, MinusSquareOutlined as Ca, StarFilled as cd, StarOutlined as dd, LeftOutlined as Ta, RightOutlined as Sa, ApiOutlined as ud, AlignLeftOutlined as fd, EyeOutlined as pd, LinkOutlined as Ks, BorderOuterOutlined as md, SettingOutlined as hd } from "@ant-design/icons";
9
9
  import { Interweave as Zt } from "interweave";
@@ -17,7 +17,7 @@ import wd from "dayjs/plugin/duration";
17
17
  import xd from "dayjs/plugin/relativeTime";
18
18
  import Cd from "dayjs/plugin/weekday";
19
19
  import Td from "dayjs/plugin/localeData";
20
- import { useLocale as Fe, Icon as Uo, iconMapper as Lt, useNotificationContext as Sd, FormigaConfigProvider as Fd, mergeStrings as Ad, Dropdown as Fa, ToggleDropdownButton as Id, getTablerIcon as Aa, DropdownButton as rn, Many2OneSuffix as Rd, Many2OneSuffixModal as Js, DateValue as Ed, DateTimeValue as _d, useDatePickerLocale as Od, SkeletonPill as Dd, PaginationHeader as Md, FieldSet as kd, ExportModal as Pd, DateInput as $d, HTMLPreview as Nd, FavouriteButton as Vd } from "@gisce/react-formiga-components";
20
+ import { useLocale as Fe, Icon as Uo, iconMapper as Lt, useNotificationContext as Sd, FormigaConfigProvider as Fd, mergeStrings as Ad, Dropdown as Fa, ToggleDropdownButton as Id, getTablerIcon as Aa, DropdownButton as rn, Many2OneSuffix as Rd, Many2OneSuffixModal as Js, DateValue as Ed, DateTimeValue as _d, useDatePickerLocale as Od, SkeletonPill as Dd, PaginationHeader as Md, FieldSet as kd, ExportModal as Pd, DateInput as Nd, HTMLPreview as $d, FavouriteButton as Vd } from "@gisce/react-formiga-components";
21
21
  import Ld from "antd/lib/input/TextArea";
22
22
  import It from "styled-components";
23
23
  import fs from "react-measure";
@@ -33,7 +33,7 @@ import { InfiniteTable as ms, Table as Gd, PaginatedTable as Yd } from "@gisce/r
33
33
  import Ra from "antd/es/typography/Link";
34
34
  import { isPresetStatusColor as Ea, isPresetColor as _a } from "antd/lib/_util/colors";
35
35
  import zd from "validator";
36
- import Nr from "antd/es/alert/ErrorBoundary";
36
+ import $r from "antd/es/alert/ErrorBoundary";
37
37
  import "@gisce/react-formiga-table/style.css";
38
38
  import { GridUi as Kd } from "@gisce/fiber-diagram";
39
39
  import Jd from "tinycolor2";
@@ -336,7 +336,7 @@ function Ye({
336
336
  validator: l
337
337
  }) {
338
338
  var _;
339
- const { id: d, label: f, tooltip: u } = t, { t: p } = Fe(), m = $t.useFormInstance(), g = a ? [
339
+ const { id: d, label: f, tooltip: u } = t, { t: p } = Fe(), m = Nt.useFormInstance(), g = a ? [
340
340
  {
341
341
  required: !0,
342
342
  message: p("fillRequiredField"),
@@ -344,7 +344,7 @@ function Ye({
344
344
  validator: l
345
345
  }
346
346
  ] : void 0, { getFieldMessage: h, getFieldMessageType: v } = Cr(), y = h(d), b = v(d), x = y || (t.tooltipInline ? t.tooltip : null), C = ((_ = m.getFieldError(d)) == null ? void 0 : _.length) > 0 || !!y && b === "error", w = !!y && b === "warning", O = () => /* @__PURE__ */ s(
347
- $t.Item,
347
+ Nt.Item,
348
348
  {
349
349
  className: "mb-0",
350
350
  name: d,
@@ -372,8 +372,8 @@ function Ye({
372
372
  }
373
373
  );
374
374
  return n === "horizontal" ? (() => /* @__PURE__ */ L(Xe, { align: "middle", className: "pb-1 pt-1", children: [
375
- /* @__PURE__ */ s($e, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ s("div", { className: "flex flex-col items-end", children: T }) }),
376
- /* @__PURE__ */ s($e, { flex: "auto", children: O() })
375
+ /* @__PURE__ */ s(Ne, { className: "ml-2", flex: "7rem", children: /* @__PURE__ */ s("div", { className: "flex flex-col items-end", children: T }) }),
376
+ /* @__PURE__ */ s(Ne, { flex: "auto", children: O() })
377
377
  ] }))() : (() => /* @__PURE__ */ L(xe, { children: [
378
378
  T,
379
379
  O()
@@ -754,8 +754,8 @@ const Ma = (t) => {
754
754
  }
755
755
  function O() {
756
756
  return d.map((R, _) => /* @__PURE__ */ L(Xe, { style: { paddingBottom: 20 }, children: [
757
- /* @__PURE__ */ s($e, { flex: "8rem", style: { paddingRight: 10 }, children: R.name }),
758
- /* @__PURE__ */ s($e, { flex: "auto", children: /* @__PURE__ */ s(
757
+ /* @__PURE__ */ s(Ne, { flex: "8rem", style: { paddingRight: 10 }, children: R.name }),
758
+ /* @__PURE__ */ s(Ne, { flex: "auto", children: /* @__PURE__ */ s(
759
759
  Ld,
760
760
  {
761
761
  rows: 4,
@@ -877,9 +877,9 @@ const { defaultAlgorithm: ku, defaultSeed: Pu } = tt, gs = ku(Pu), fr = it(
877
877
  fr.displayName = "BaseInput";
878
878
  const Pa = (t) => {
879
879
  const { ooui: e, isSearchField: n = !1 } = t, { id: r, readOnly: o, required: i, translatable: a } = e;
880
- let c = /* @__PURE__ */ s($a, { ooui: e, isSearchField: n });
881
- return a && !o && !n && (c = /* @__PURE__ */ s(Na, { ooui: e, field: r })), /* @__PURE__ */ s(Ye, { required: i, ...t, children: c });
882
- }, $a = it(
880
+ let c = /* @__PURE__ */ s(Na, { ooui: e, isSearchField: n });
881
+ return a && !o && !n && (c = /* @__PURE__ */ s($a, { ooui: e, field: r })), /* @__PURE__ */ s(Ye, { required: i, ...t, children: c });
882
+ }, Na = it(
883
883
  ({
884
884
  value: t,
885
885
  ooui: e,
@@ -927,8 +927,8 @@ const Pa = (t) => {
927
927
  );
928
928
  }
929
929
  );
930
- $a.displayName = "CharInput";
931
- const Na = it(
930
+ Na.displayName = "CharInput";
931
+ const $a = it(
932
932
  ({
933
933
  ooui: t,
934
934
  value: e,
@@ -961,7 +961,7 @@ const Na = it(
961
961
  u(!1), c == null || c({
962
962
  forceRefresh: !0
963
963
  });
964
- }, [c]), C = h ? Nu : $u;
964
+ }, [c]), C = h ? $u : Nu;
965
965
  return i ? /* @__PURE__ */ L(xe, { children: [
966
966
  /* @__PURE__ */ s("div", { onClick: y, children: /* @__PURE__ */ s(
967
967
  fr,
@@ -987,7 +987,7 @@ const Na = it(
987
987
  }
988
988
  )
989
989
  ] }) : /* @__PURE__ */ L(Xe, { gutter: 8, wrap: !1, children: [
990
- /* @__PURE__ */ s($e, { flex: "auto", children: /* @__PURE__ */ s(
990
+ /* @__PURE__ */ s(Ne, { flex: "auto", children: /* @__PURE__ */ s(
991
991
  fr,
992
992
  {
993
993
  component: h ? Va : ht,
@@ -998,7 +998,7 @@ const Na = it(
998
998
  onBlur: d
999
999
  }
1000
1000
  ) }),
1001
- /* @__PURE__ */ s($e, { flex: "none", children: /* @__PURE__ */ s(
1001
+ /* @__PURE__ */ s(Ne, { flex: "none", children: /* @__PURE__ */ s(
1002
1002
  Tt,
1003
1003
  {
1004
1004
  tooltip: p("translate"),
@@ -1010,13 +1010,13 @@ const Na = it(
1010
1010
  ] });
1011
1011
  }
1012
1012
  );
1013
- Na.displayName = "TranslatableCharComp";
1014
- const $u = It(ht)`
1013
+ $a.displayName = "TranslatableCharComp";
1014
+ const Nu = It(ht)`
1015
1015
  &.ant-input {
1016
1016
  cursor: ${(t) => t.disabled ? "pointer" : "text"};
1017
1017
  pointer-events: ${(t) => t.disabled ? "none" : "auto"};
1018
1018
  }
1019
- `, Nu = It(ht)`
1019
+ `, $u = It(ht)`
1020
1020
  &.ant-input {
1021
1021
  background-color: ${gs.colorPrimaryBg};
1022
1022
  cursor: pointer;
@@ -1608,7 +1608,7 @@ const Ga = ({
1608
1608
  } else
1609
1609
  n[r] = t[r];
1610
1610
  }), n;
1611
- }, Nn = (t, e) => sf(t, e), bo = ({
1611
+ }, $n = (t, e) => sf(t, e), bo = ({
1612
1612
  source: t,
1613
1613
  target: e,
1614
1614
  fields: n
@@ -1816,7 +1816,7 @@ const Sn = ({
1816
1816
  const S = Lt(M);
1817
1817
  return S && /* @__PURE__ */ s(S, {});
1818
1818
  }, D = w.map((M) => {
1819
- var E, k, P, $;
1819
+ var E, k, P, N;
1820
1820
  const S = {
1821
1821
  children: /* @__PURE__ */ s(
1822
1822
  pf,
@@ -1831,7 +1831,7 @@ const Sn = ({
1831
1831
  }
1832
1832
  )
1833
1833
  };
1834
- return (P = M.values) != null && P[x] && (S.dot = _(M.values[x])), ($ = M.values) != null && $[C] && (S.color = !Ea(M.values[C]) && !_a(M.values[C]) && !M.values[C].toString().startsWith("#") ? Tr(M.values[C]) : M.values[C]), S;
1834
+ return (P = M.values) != null && P[x] && (S.dot = _(M.values[x])), (N = M.values) != null && N[C] && (S.color = !Ea(M.values[C]) && !_a(M.values[C]) && !M.values[C].toString().startsWith("#") ? Tr(M.values[C]) : M.values[C]), S;
1835
1835
  });
1836
1836
  return /* @__PURE__ */ L(xe, { children: [
1837
1837
  /* @__PURE__ */ s(ia, { style: { padding: "1rem" }, items: D }),
@@ -2614,8 +2614,8 @@ function Sf({
2614
2614
  padding: "0.2rem"
2615
2615
  },
2616
2616
  children: /* @__PURE__ */ L(Xe, { align: "middle", children: [
2617
- h && /* @__PURE__ */ s($e, { style: { fontSize: f * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ s(h, {}) }),
2618
- /* @__PURE__ */ L($e, { children: [
2617
+ h && /* @__PURE__ */ s(Ne, { style: { fontSize: f * 1, color: a, paddingRight: "10px" }, children: /* @__PURE__ */ s(h, {}) }),
2618
+ /* @__PURE__ */ L(Ne, { children: [
2619
2619
  /* @__PURE__ */ s(Wo, { style: { fontSize: f * 0.8, margin: 0, color: a }, children: h ? ` ${r}%` : `${r}%` }),
2620
2620
  /* @__PURE__ */ s(
2621
2621
  Wo,
@@ -2664,10 +2664,10 @@ const { getValueForOperator: oi } = ma, Ff = (t) => {
2664
2664
  }, [e, o]);
2665
2665
  async function P({
2666
2666
  domain: H,
2667
- isTotal: N
2667
+ isTotal: $
2668
2668
  }) {
2669
- if (N)
2670
- return await $({ domain: H });
2669
+ if ($)
2670
+ return await N({ domain: H });
2671
2671
  if (d && f) {
2672
2672
  const V = u || await D({
2673
2673
  params: H,
@@ -2690,15 +2690,15 @@ const { getValueForOperator: oi } = ma, Ff = (t) => {
2690
2690
  context: r
2691
2691
  });
2692
2692
  }
2693
- async function $({ domain: H }) {
2693
+ async function N({ domain: H }) {
2694
2694
  if (d && f) {
2695
- const N = await D({
2695
+ const $ = await D({
2696
2696
  params: H,
2697
2697
  model: e,
2698
2698
  context: r
2699
2699
  }), V = await M({
2700
2700
  model: e,
2701
- ids: N,
2701
+ ids: $,
2702
2702
  fieldsToRetrieve: [d],
2703
2703
  context: r
2704
2704
  });
@@ -2715,7 +2715,7 @@ const { getValueForOperator: oi } = ma, Ff = (t) => {
2715
2715
  }
2716
2716
  async function q() {
2717
2717
  g(!0), _(void 0);
2718
- let H, N;
2718
+ let H, $;
2719
2719
  try {
2720
2720
  const V = await P({ domain: n, isTotal: !1 });
2721
2721
  if (v(V), i) {
@@ -2729,10 +2729,10 @@ const { getValueForOperator: oi } = ma, Ff = (t) => {
2729
2729
  isTotal: !0
2730
2730
  }), C(H);
2731
2731
  }
2732
- if (H ? (N = Math.round(V / H * 100 * 100) / 100, b(N)) : b(0), o) {
2732
+ if (H ? ($ = Math.round(V / H * 100 * 100) / 100, b($)) : b(0), o) {
2733
2733
  const G = await k({
2734
2734
  condition: o,
2735
- values: { value: V, percent: N },
2735
+ values: { value: V, percent: $ },
2736
2736
  context: r
2737
2737
  });
2738
2738
  O(G);
@@ -2741,7 +2741,7 @@ const { getValueForOperator: oi } = ma, Ff = (t) => {
2741
2741
  if (c.indexOf(":") !== -1) {
2742
2742
  const G = await k({
2743
2743
  condition: c,
2744
- values: { value: V, percent: N },
2744
+ values: { value: V, percent: $ },
2745
2745
  context: r
2746
2746
  });
2747
2747
  A(G);
@@ -3118,8 +3118,8 @@ const kf = {
3118
3118
  x: l.x,
3119
3119
  percent: c[d]
3120
3120
  }));
3121
- }, { Text: ai } = ln, $f = 400, Nf = it(Bd), Vf = it(jd), Lf = it(Ud), Hf = {
3122
- line: Nf,
3121
+ }, { Text: ai } = ln, Nf = 400, $f = it(Bd), Vf = it(jd), Lf = it(Ud), Hf = {
3122
+ line: $f,
3123
3123
  bar: Vf,
3124
3124
  pie: Lf
3125
3125
  }, sl = ({
@@ -3553,7 +3553,7 @@ async function xs(t, e, n) {
3553
3553
  );
3554
3554
  }
3555
3555
  function Xf(t) {
3556
- const { onSearch: e, disabled: n = !1, searchText: r } = t, { t: o } = Fe(), [i] = $t.useForm(), [a, c] = F(!1), l = X(!1), d = X(r);
3556
+ const { onSearch: e, disabled: n = !1, searchText: r } = t, { t: o } = Fe(), [i] = Nt.useForm(), [a, c] = F(!1), l = X(!1), d = X(r);
3557
3557
  function f(m) {
3558
3558
  const g = m.search;
3559
3559
  d.current = g, e(g);
@@ -3571,14 +3571,14 @@ function Xf(t) {
3571
3571
  d.current = g, c(g.length > 0);
3572
3572
  };
3573
3573
  return /* @__PURE__ */ s(
3574
- $t,
3574
+ Nt,
3575
3575
  {
3576
3576
  form: i,
3577
3577
  onFinish: f,
3578
3578
  autoComplete: "off",
3579
3579
  initialValues: { search: r },
3580
3580
  children: /* @__PURE__ */ L(Xe, { align: "middle", justify: "end", children: [
3581
- /* @__PURE__ */ s($e, { children: /* @__PURE__ */ s($t.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ s(
3581
+ /* @__PURE__ */ s(Ne, { children: /* @__PURE__ */ s(Nt.Item, { name: "search", noStyle: !0, children: /* @__PURE__ */ s(
3582
3582
  ht,
3583
3583
  {
3584
3584
  autoFocus: !0,
@@ -3594,7 +3594,7 @@ function Xf(t) {
3594
3594
  ) })
3595
3595
  }
3596
3596
  ) }) }),
3597
- /* @__PURE__ */ s($e, { children: /* @__PURE__ */ s(
3597
+ /* @__PURE__ */ s(Ne, { children: /* @__PURE__ */ s(
3598
3598
  Ge,
3599
3599
  {
3600
3600
  htmlType: "submit",
@@ -3607,7 +3607,7 @@ function Xf(t) {
3607
3607
  }
3608
3608
  );
3609
3609
  }
3610
- var St = /* @__PURE__ */ ((t) => (t.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", t.FEATURE_ADVANCED_EXPORT = "export_data2", t.FEATURE_OMNISEARCH = "omnisearch", t.FEATURE_READFORVIEW = "read_for_view", t.FEATURE_USERVIEWPREFS = "user_view_prefs", t.FEATURE_GET_TOOLBAR = "get_toolbar", t.FEATURE_MANY2ONE_SORT = "many2one_sort", t.FEATURE_LOGGABLE_ACTIONS = "user_action_logs", t.FEATURE_USER_FLAGS = "user_feature_flags", t.FEATURE_CHECK_PERMS = "check_perms", t.FEATURE_SAVED_SEARCHES = "saved_searches", t.FEATURE_USER_NOTIFICATIONS = "user_notifications", t))(St || {});
3610
+ var St = /* @__PURE__ */ ((t) => (t.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", t.FEATURE_ADVANCED_EXPORT = "export_data2", t.FEATURE_OMNISEARCH = "omnisearch", t.FEATURE_READFORVIEW = "read_for_view", t.FEATURE_USERVIEWPREFS = "user_view_prefs", t.FEATURE_GET_TOOLBAR = "get_toolbar", t.FEATURE_MANY2ONE_SORT = "many2one_sort", t.FEATURE_LOGGABLE_ACTIONS = "user_action_logs", t.FEATURE_USER_FLAGS = "user_feature_flags", t.FEATURE_CHECK_PERMS = "check_perms", t.FEATURE_SAVED_SEARCHES = "saved_searches", t.FEATURE_USER_NOTIFICATIONS = "user_notifications", t.FEATURE_SSE_SESSION_NOTIFICATIONS = "sse_session_notifications", t))(St || {});
3611
3611
  const Xw = Object.values(St), jt = zt.createContext(null), Qf = (t) => {
3612
3612
  const {
3613
3613
  children: e,
@@ -3706,10 +3706,10 @@ const { useToken: Zf } = tt, ep = (t) => {
3706
3706
  }
3707
3707
  )
3708
3708
  }
3709
- ], [c, C, f.colorPrimary]), R = te(() => !x || x.length === 0 ? (b == null ? void 0 : b.fields) || {} : x.reduce((P, $) => ({ ...P, ...$.fields || {} }), {}), [x, b]), _ = I(
3709
+ ], [c, C, f.colorPrimary]), R = te(() => !x || x.length === 0 ? (b == null ? void 0 : b.fields) || {} : x.reduce((P, N) => ({ ...P, ...N.fields || {} }), {}), [x, b]), _ = I(
3710
3710
  async (P) => {
3711
- var $;
3712
- if (O != null && O.isEnabled && ((($ = O == null ? void 0 : O.params) == null ? void 0 : $.types) || []).includes("ir.search"))
3711
+ var N;
3712
+ if (O != null && O.isEnabled && (((N = O == null ? void 0 : O.params) == null ? void 0 : N.types) || []).includes("ir.search"))
3713
3713
  try {
3714
3714
  await T({
3715
3715
  action_type: "ir.search",
@@ -3723,16 +3723,16 @@ const { useToken: Zf } = tt, ep = (t) => {
3723
3723
  [i, T, O]
3724
3724
  ), D = I(
3725
3725
  (P) => {
3726
- const $ = P.originalData || P;
3727
- if ($ != null && $.domain) {
3728
- w == null || w($), v == null || v($.domain);
3726
+ const N = P.originalData || P;
3727
+ if (N != null && N.domain) {
3728
+ w == null || w(N), v == null || v(N.domain);
3729
3729
  const q = al(
3730
- $.domain,
3730
+ N.domain,
3731
3731
  R
3732
3732
  );
3733
3733
  y == null || y(q), a && setTimeout(() => {
3734
3734
  a();
3735
- }, 100), _($.id);
3735
+ }, 100), _(N.id);
3736
3736
  }
3737
3737
  },
3738
3738
  [
@@ -3853,17 +3853,17 @@ const { useToken: Zf } = tt, ep = (t) => {
3853
3853
  var W;
3854
3854
  const { reportData: M, fields: S, values: E, context: k = {} } = D, {
3855
3855
  context: P,
3856
- model: $,
3856
+ model: N,
3857
3857
  datas: q = {},
3858
3858
  report_name: H,
3859
- type: N,
3859
+ type: $,
3860
3860
  id: V
3861
3861
  } = M;
3862
- if (N !== "ir.actions.report.xml") {
3862
+ if ($ !== "ir.actions.report.xml") {
3863
3863
  p({
3864
3864
  type: "error",
3865
3865
  title: "Error",
3866
- body: `${N} action not supported`
3866
+ body: `${$} action not supported`
3867
3867
  });
3868
3868
  return;
3869
3869
  }
@@ -3873,10 +3873,10 @@ const { useToken: Zf } = tt, ep = (t) => {
3873
3873
  values: E
3874
3874
  }) : P;
3875
3875
  try {
3876
- if (m != null && m.isEnabled && (((W = m == null ? void 0 : m.params) == null ? void 0 : W.types) || []).includes(N))
3876
+ if (m != null && m.isEnabled && (((W = m == null ? void 0 : m.params) == null ? void 0 : W.types) || []).includes($))
3877
3877
  try {
3878
3878
  g({
3879
- action_type: N,
3879
+ action_type: $,
3880
3880
  action_id: V,
3881
3881
  context: k
3882
3882
  });
@@ -3884,7 +3884,7 @@ const { useToken: Zf } = tt, ep = (t) => {
3884
3884
  console.error(Z);
3885
3885
  }
3886
3886
  const ne = await B.getHandler().createReport({
3887
- model: $,
3887
+ model: N,
3888
3888
  name: H,
3889
3889
  datas: q,
3890
3890
  ids: K,
@@ -3953,16 +3953,16 @@ const { useToken: Zf } = tt, ep = (t) => {
3953
3953
  ids: [parseInt(D.id)],
3954
3954
  context: E
3955
3955
  }))[0]);
3956
- const P = k.context, $ = typeof (k == null ? void 0 : k.context) == "string" ? pn({
3956
+ const P = k.context, N = typeof (k == null ? void 0 : k.context) == "string" ? pn({
3957
3957
  context: k.context,
3958
3958
  fields: M,
3959
3959
  values: { ...S, ...r }
3960
3960
  }) : (k == null ? void 0 : k.context) || {}, q = {
3961
3961
  ...E,
3962
- ...$
3962
+ ...N
3963
3963
  };
3964
3964
  let H = [];
3965
- const N = k.domain;
3965
+ const $ = k.domain;
3966
3966
  if (k.domain && (H = await B.getHandler().evalDomain({
3967
3967
  domain: k.domain,
3968
3968
  values: Sn({
@@ -4005,7 +4005,7 @@ const { useToken: Zf } = tt, ep = (t) => {
4005
4005
  res_id: k.res_id,
4006
4006
  actionRawData: {
4007
4007
  context: P,
4008
- domain: N,
4008
+ domain: $,
4009
4009
  fields: M,
4010
4010
  values: S
4011
4011
  }
@@ -4020,12 +4020,12 @@ const { useToken: Zf } = tt, ep = (t) => {
4020
4020
  actionData: k
4021
4021
  }) {
4022
4022
  var q;
4023
- const { type: P, id: $ } = k || {};
4023
+ const { type: P, id: N } = k || {};
4024
4024
  if (m != null && m.isEnabled && (((q = m == null ? void 0 : m.params) == null ? void 0 : q.types) || []).includes(P))
4025
4025
  try {
4026
4026
  g({
4027
4027
  action_type: P,
4028
- action_id: $,
4028
+ action_id: N,
4029
4029
  context: E
4030
4030
  });
4031
4031
  } catch (H) {
@@ -4294,7 +4294,7 @@ const op = "action", sp = ["active_id", "active_ids", "id"], ip = ["target", "co
4294
4294
  Object.entries(t).filter(([e]) => sp.includes(e))
4295
4295
  ), cp = Aa("IconExternalLink"), dp = Aa("IconShare2");
4296
4296
  function lo({ res_id: t, searchParams: e }) {
4297
- const n = X(null), { currentView: r, limit: o, currentPage: i, order: a } = Nt(), c = {
4297
+ const n = X(null), { currentView: r, limit: o, currentPage: i, order: a } = $t(), c = {
4298
4298
  id: r.view_id,
4299
4299
  type: r.type
4300
4300
  }, { token: l } = tt.useToken(), { t: d } = Fe(), [f, u] = F(!1), { currentTab: p } = Fr(), m = I(
@@ -4409,12 +4409,12 @@ function up({
4409
4409
  treeType: E,
4410
4410
  setSearchParams: k,
4411
4411
  setSearchValues: P,
4412
- permissions: $
4412
+ permissions: N
4413
4413
  } = ye(Ot), q = qt(
4414
4414
  St.FEATURE_ADVANCED_EXPORT
4415
4415
  ), H = qt(
4416
4416
  St.FEATURE_SAVED_SEARCHES
4417
- ), { t: N } = Fe(), [V, G] = F(!1), K = X(!0), { showErrorNotification: U } = wt(), W = I(() => {
4417
+ ), { t: $ } = Fe(), [V, G] = F(!1), K = X(!0), { showErrorNotification: U } = wt(), W = I(() => {
4418
4418
  var le;
4419
4419
  (le = h == null ? void 0 : h.current) == null || le.refreshResults();
4420
4420
  }, [h]), ne = I(() => {
@@ -4546,17 +4546,17 @@ function up({
4546
4546
  );
4547
4547
  const he = I(() => {
4548
4548
  on({
4549
- confirmMessage: N("confirmDuplicate"),
4550
- t: N,
4549
+ confirmMessage: $("confirmDuplicate"),
4550
+ t: $,
4551
4551
  onOk: z
4552
4552
  });
4553
- }, [z, N]), oe = I(() => {
4553
+ }, [z, $]), oe = I(() => {
4554
4554
  on({
4555
- confirmMessage: N("confirmRemove"),
4556
- t: N,
4555
+ confirmMessage: $("confirmRemove"),
4556
+ t: $,
4557
4557
  onOk: Q
4558
4558
  });
4559
- }, [Q, N]);
4559
+ }, [Q, $]);
4560
4560
  return /* @__PURE__ */ L(lt, { wrap: !0, children: [
4561
4561
  T && /* @__PURE__ */ L(xe, { children: [
4562
4562
  /* @__PURE__ */ s(ot, {}),
@@ -4593,7 +4593,7 @@ function up({
4593
4593
  style: { color: x ? "white" : void 0 }
4594
4594
  }
4595
4595
  ),
4596
- tooltip: N("advanced_search"),
4596
+ tooltip: $("advanced_search"),
4597
4597
  type: x ? "primary" : "default",
4598
4598
  onClick: () => C == null ? void 0 : C(!x),
4599
4599
  disabled: p || u || T,
@@ -4601,13 +4601,13 @@ function up({
4601
4601
  }
4602
4602
  ),
4603
4603
  /* @__PURE__ */ s(bt, {}),
4604
- /* @__PURE__ */ s(cl, { disabled: T || !($ != null && $.create) }),
4604
+ /* @__PURE__ */ s(cl, { disabled: T || !(N != null && N.create) }),
4605
4605
  /* @__PURE__ */ s(
4606
4606
  Et,
4607
4607
  {
4608
4608
  icon: /* @__PURE__ */ s(wr, {}),
4609
- tooltip: N("duplicate"),
4610
- disabled: !d || (d == null ? void 0 : d.length) !== 1 || p || T || !($ != null && $.create),
4609
+ tooltip: $("duplicate"),
4610
+ disabled: !d || (d == null ? void 0 : d.length) !== 1 || p || T || !(N != null && N.create),
4611
4611
  loading: p,
4612
4612
  onClick: he
4613
4613
  }
@@ -4616,8 +4616,8 @@ function up({
4616
4616
  ll,
4617
4617
  {
4618
4618
  icon: /* @__PURE__ */ s(us, {}),
4619
- tooltip: N("delete"),
4620
- disabled: !(d && (d == null ? void 0 : d.length) > 0) || T || !($ != null && $.unlink),
4619
+ tooltip: $("delete"),
4620
+ disabled: !(d && (d == null ? void 0 : d.length) > 0) || T || !(N != null && N.unlink),
4621
4621
  loading: u,
4622
4622
  onClick: oe
4623
4623
  }
@@ -4628,16 +4628,16 @@ function up({
4628
4628
  Et,
4629
4629
  {
4630
4630
  icon: /* @__PURE__ */ s(Xr, {}),
4631
- tooltip: N("showLogs"),
4631
+ tooltip: $("showLogs"),
4632
4632
  disabled: !(d && (d == null ? void 0 : d.length) === 1) || T,
4633
- onClick: () => xs(g, d[0].id, N)
4633
+ onClick: () => xs(g, d[0].id, $)
4634
4634
  }
4635
4635
  ),
4636
4636
  /* @__PURE__ */ s(
4637
4637
  Et,
4638
4638
  {
4639
4639
  icon: /* @__PURE__ */ s(Qr, {}),
4640
- tooltip: N("refresh"),
4640
+ tooltip: $("refresh"),
4641
4641
  disabled: p || u || T,
4642
4642
  onClick: W
4643
4643
  }
@@ -4667,15 +4667,15 @@ function up({
4667
4667
  icon: /* @__PURE__ */ s(hl, {}),
4668
4668
  onRetrieveData: async () => [
4669
4669
  {
4670
- label: N("export"),
4670
+ label: $("export"),
4671
4671
  items: [
4672
4672
  {
4673
4673
  id: "print_screen",
4674
- name: N("printScreen")
4674
+ name: $("printScreen")
4675
4675
  },
4676
4676
  {
4677
4677
  id: "export",
4678
- name: N("advancedExport")
4678
+ name: $("advancedExport")
4679
4679
  }
4680
4680
  ]
4681
4681
  }
@@ -4685,7 +4685,7 @@ function up({
4685
4685
  }
4686
4686
  ),
4687
4687
  /* @__PURE__ */ s(
4688
- $v,
4688
+ Nv,
4689
4689
  {
4690
4690
  visible: V,
4691
4691
  onClose: () => G(!1),
@@ -4826,12 +4826,12 @@ const { useToken: pp } = tt, { Title: mp, Text: Mr } = ln, co = ({
4826
4826
  },
4827
4827
  align: "middle",
4828
4828
  children: [
4829
- /* @__PURE__ */ L($e, { flex: 2, children: [
4829
+ /* @__PURE__ */ L(Ne, { flex: 2, children: [
4830
4830
  /* @__PURE__ */ s(mp, { level: 3, style: { marginBottom: 0 }, children: t || o }),
4831
4831
  r,
4832
4832
  g
4833
4833
  ] }),
4834
- /* @__PURE__ */ s($e, { flex: 3, children: /* @__PURE__ */ s(Xe, { justify: "end", children: e }) })
4834
+ /* @__PURE__ */ s(Ne, { flex: 3, children: /* @__PURE__ */ s(Xe, { justify: "end", children: e }) })
4835
4835
  ]
4836
4836
  }
4837
4837
  ),
@@ -5201,7 +5201,7 @@ const bp = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(wl,
5201
5201
  ids: [e],
5202
5202
  fieldsToRetrieve: _,
5203
5203
  context: r
5204
- })) == null ? void 0 : R[0] }), D = { ...Nn(D, T), active_id: e }, c(D), A ? {
5204
+ })) == null ? void 0 : R[0] }), D = { ...$n(D, T), active_id: e }, c(D), A ? {
5205
5205
  actionItems: A.action,
5206
5206
  relateItems: A.relate,
5207
5207
  printItems: A.print
@@ -5527,7 +5527,7 @@ const Ep = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(xl,
5527
5527
  () => /* @__PURE__ */ s(Fp, { m2oField: t, ooui: e }),
5528
5528
  [t, e]
5529
5529
  ), Pp = ({ value: t }) => {
5530
- const { treeType: e } = Nt(), { treeType: n } = Tl() || {}, r = (n || e) === "infinite";
5530
+ const { treeType: e } = $t(), { treeType: n } = Tl() || {}, r = (n || e) === "infinite";
5531
5531
  return te(() => {
5532
5532
  const o = /* @__PURE__ */ s(
5533
5533
  Zt,
@@ -5572,7 +5572,7 @@ const Ep = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(xl,
5572
5572
  }
5573
5573
  ) : o;
5574
5574
  }, [t, r]);
5575
- }, $p = ({ value: t }) => /* @__PURE__ */ s(Ed, { value: t }), Np = ({
5575
+ }, Np = ({ value: t }) => /* @__PURE__ */ s(Ed, { value: t }), $p = ({
5576
5576
  value: t,
5577
5577
  ooui: e
5578
5578
  }) => te(() => t ? e.fieldType === "many2one" ? /* @__PURE__ */ s(xe, { children: t[1] }) : /* @__PURE__ */ s(xe, { children: t }) : /* @__PURE__ */ s(xe, {}), [t, e.fieldType]), Vp = ({
@@ -5660,13 +5660,13 @@ const Ep = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(xl,
5660
5660
  reference: qp,
5661
5661
  tag: Up,
5662
5662
  selection: Wp,
5663
- date: $p,
5663
+ date: Np,
5664
5664
  datetime: Vp,
5665
5665
  avatar: Gp,
5666
5666
  tags: Yp,
5667
5667
  email: Mp,
5668
5668
  colorPicker: jp,
5669
- char: Np
5669
+ char: $p
5670
5670
  };
5671
5671
  function zp({
5672
5672
  tableRef: t
@@ -6108,8 +6108,8 @@ const hr = ({
6108
6108
  }
6109
6109
  ),
6110
6110
  /* @__PURE__ */ L("div", { className: "flex flex-col gap-2 w-full", children: [
6111
- /* @__PURE__ */ s(Xe, { className: "w-full", children: /* @__PURE__ */ s($e, { span: 24, children: /* @__PURE__ */ s(Fl, { ...t, ooui: i[0], showLabel: !1 }) }) }),
6112
- /* @__PURE__ */ s(Xe, { className: "w-full", children: /* @__PURE__ */ s($e, { span: 24, children: /* @__PURE__ */ s(Ye, { ...t, ooui: i[1], showLabel: !1, children: /* @__PURE__ */ s(tm, {}) }) }) })
6111
+ /* @__PURE__ */ s(Xe, { className: "w-full", children: /* @__PURE__ */ s(Ne, { span: 24, children: /* @__PURE__ */ s(Fl, { ...t, ooui: i[0], showLabel: !1 }) }) }),
6112
+ /* @__PURE__ */ s(Xe, { className: "w-full", children: /* @__PURE__ */ s(Ne, { span: 24, children: /* @__PURE__ */ s(Ye, { ...t, ooui: i[1], showLabel: !1, children: /* @__PURE__ */ s(tm, {}) }) }) })
6113
6113
  ] })
6114
6114
  ] });
6115
6115
  }, tm = ({
@@ -6121,7 +6121,7 @@ const hr = ({
6121
6121
  []
6122
6122
  );
6123
6123
  return /* @__PURE__ */ L(Xe, { gutter: 8, children: [
6124
- /* @__PURE__ */ s($e, { span: 12, children: /* @__PURE__ */ s(
6124
+ /* @__PURE__ */ s(Ne, { span: 12, children: /* @__PURE__ */ s(
6125
6125
  qo,
6126
6126
  {
6127
6127
  placeholder: "Start time",
@@ -6134,7 +6134,7 @@ const hr = ({
6134
6134
  }
6135
6135
  }
6136
6136
  ) }),
6137
- /* @__PURE__ */ s($e, { span: 12, children: /* @__PURE__ */ s(
6137
+ /* @__PURE__ */ s(Ne, { span: 12, children: /* @__PURE__ */ s(
6138
6138
  qo,
6139
6139
  {
6140
6140
  placeholder: "End time",
@@ -6242,9 +6242,9 @@ function um(t) {
6242
6242
  wrap: !1,
6243
6243
  style: { width: "100%" },
6244
6244
  children: [
6245
- /* @__PURE__ */ s($e, { flex: "1", children: c("#from") }),
6246
- /* @__PURE__ */ s($e, { className: "pb-1", children: /* @__PURE__ */ s("span", { className: "px-2 h-full", children: " - " }) }),
6247
- /* @__PURE__ */ s($e, { flex: "1", children: c("#to") })
6245
+ /* @__PURE__ */ s(Ne, { flex: "1", children: c("#from") }),
6246
+ /* @__PURE__ */ s(Ne, { className: "pb-1", children: /* @__PURE__ */ s("span", { className: "px-2 h-full", children: " - " }) }),
6247
+ /* @__PURE__ */ s(Ne, { flex: "1", children: c("#to") })
6248
6248
  ]
6249
6249
  }
6250
6250
  )
@@ -6617,7 +6617,7 @@ var Rl = kr, El = function() {
6617
6617
  return !0;
6618
6618
  }, Rm = El, Es = function() {
6619
6619
  return Rm() && !!Symbol.toStringTag;
6620
- }, _l = Object, Em = Error, _m = EvalError, Om = RangeError, Dm = ReferenceError, Mm = SyntaxError, Ol = TypeError, km = URIError, Pm = Math.abs, $m = Math.floor, Nm = Math.max, Vm = Math.min, Lm = Math.pow, Hm = Math.round, Bm = Number.isNaN || function(e) {
6620
+ }, _l = Object, Em = Error, _m = EvalError, Om = RangeError, Dm = ReferenceError, Mm = SyntaxError, Ol = TypeError, km = URIError, Pm = Math.abs, Nm = Math.floor, $m = Math.max, Vm = Math.min, Lm = Math.pow, Hm = Math.round, Bm = Number.isNaN || function(e) {
6621
6621
  return e !== e;
6622
6622
  }, jm = Bm, Um = function(e) {
6623
6623
  return jm(e) || e === 0 ? e : e < 0 ? -1 : 1;
@@ -6628,14 +6628,14 @@ if (Pr)
6628
6628
  } catch {
6629
6629
  Pr = null;
6630
6630
  }
6631
- var _s = Pr, $r = Object.defineProperty || !1;
6632
- if ($r)
6631
+ var _s = Pr, Nr = Object.defineProperty || !1;
6632
+ if (Nr)
6633
6633
  try {
6634
- $r({}, "a", { value: 1 });
6634
+ Nr({}, "a", { value: 1 });
6635
6635
  } catch {
6636
- $r = !1;
6636
+ Nr = !1;
6637
6637
  }
6638
- var qm = $r, So, vi;
6638
+ var qm = Nr, So, vi;
6639
6639
  function Gm() {
6640
6640
  if (vi)
6641
6641
  return So;
@@ -6776,24 +6776,24 @@ function ih() {
6776
6776
  var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Ar;
6777
6777
  return ko = n.call(t, e), ko;
6778
6778
  }
6779
- var qe, ah = _l, lh = Em, ch = _m, dh = Om, uh = Dm, Kn = Mm, Un = Ol, fh = km, ph = Pm, mh = $m, hh = Nm, gh = Vm, yh = Lm, vh = Hm, bh = Um, Pl = Function, Po = function(t) {
6779
+ var qe, ah = _l, lh = Em, ch = _m, dh = Om, uh = Dm, Kn = Mm, Un = Ol, fh = km, ph = Pm, mh = Nm, hh = $m, gh = Vm, yh = Lm, vh = Hm, bh = Um, Pl = Function, Po = function(t) {
6780
6780
  try {
6781
6781
  return Pl('"use strict"; return (' + t + ").constructor;")();
6782
6782
  } catch {
6783
6783
  }
6784
- }, yr = _s, wh = qm, $o = function() {
6784
+ }, yr = _s, wh = qm, No = function() {
6785
6785
  throw new Un();
6786
6786
  }, xh = yr ? function() {
6787
6787
  try {
6788
- return arguments.callee, $o;
6788
+ return arguments.callee, No;
6789
6789
  } catch {
6790
6790
  try {
6791
6791
  return yr(arguments, "callee").get;
6792
6792
  } catch {
6793
- return $o;
6793
+ return No;
6794
6794
  }
6795
6795
  }
6796
- }() : $o, Pn = Gm()(), Ct = sh(), Ch = Ml(), Th = Dl(), $l = kl(), Ir = Os(), Vn = {}, Sh = typeof Uint8Array > "u" || !Ct ? qe : Ct(Uint8Array), bn = {
6796
+ }() : No, Pn = Gm()(), Ct = sh(), Ch = Ml(), Th = Dl(), Nl = kl(), Ir = Os(), Vn = {}, Sh = typeof Uint8Array > "u" || !Ct ? qe : Ct(Uint8Array), bn = {
6797
6797
  __proto__: null,
6798
6798
  "%AggregateError%": typeof AggregateError > "u" ? qe : AggregateError,
6799
6799
  "%Array%": Array,
@@ -6865,7 +6865,7 @@ var qe, ah = _l, lh = Em, ch = _m, dh = Om, uh = Dm, Kn = Mm, Un = Ol, fh = km,
6865
6865
  "%WeakRef%": typeof WeakRef > "u" ? qe : WeakRef,
6866
6866
  "%WeakSet%": typeof WeakSet > "u" ? qe : WeakSet,
6867
6867
  "%Function.prototype.call%": Ir,
6868
- "%Function.prototype.apply%": $l,
6868
+ "%Function.prototype.apply%": Nl,
6869
6869
  "%Object.defineProperty%": wh,
6870
6870
  "%Object.getPrototypeOf%": Ch,
6871
6871
  "%Math.abs%": ph,
@@ -6953,7 +6953,7 @@ var Ah = function t(e) {
6953
6953
  "%URIErrorPrototype%": ["URIError", "prototype"],
6954
6954
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
6955
6955
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
6956
- }, Rr = Ar, Ur = ih(), Ih = Rr.call(Ir, Array.prototype.concat), Rh = Rr.call($l, Array.prototype.splice), Oi = Rr.call(Ir, String.prototype.replace), Wr = Rr.call(Ir, String.prototype.slice), Eh = Rr.call(Ir, RegExp.prototype.exec), _h = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Oh = /\\(\\)?/g, Dh = function(e) {
6956
+ }, Rr = Ar, Ur = ih(), Ih = Rr.call(Ir, Array.prototype.concat), Rh = Rr.call(Nl, Array.prototype.splice), Oi = Rr.call(Ir, String.prototype.replace), Wr = Rr.call(Ir, String.prototype.slice), Eh = Rr.call(Ir, RegExp.prototype.exec), _h = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Oh = /\\(\\)?/g, Dh = function(e) {
6957
6957
  var n = Wr(e, 0, 1), r = Wr(e, -1);
6958
6958
  if (n === "%" && r !== "%")
6959
6959
  throw new Kn("invalid intrinsic syntax, expected closing `%`");
@@ -7006,7 +7006,7 @@ var Ah = function t(e) {
7006
7006
  }
7007
7007
  }
7008
7008
  return c;
7009
- }, Nl = { exports: {} };
7009
+ }, $l = { exports: {} };
7010
7010
  (function(t) {
7011
7011
  var e = Ar, n = uo, r = n("%Function.prototype.apply%"), o = n("%Function.prototype.call%"), i = n("%Reflect.apply%", !0) || e.call(o, r), a = n("%Object.getOwnPropertyDescriptor%", !0), c = n("%Object.defineProperty%", !0), l = n("%Math.max%");
7012
7012
  if (c)
@@ -7031,19 +7031,19 @@ var Ah = function t(e) {
7031
7031
  return i(e, r, arguments);
7032
7032
  };
7033
7033
  c ? c(t.exports, "apply", { value: d }) : t.exports.apply = d;
7034
- })(Nl);
7035
- var Ds = Nl.exports, Vl = uo, Ll = Ds, kh = Ll(Vl("String.prototype.indexOf")), Hl = function(e, n) {
7034
+ })($l);
7035
+ var Ds = $l.exports, Vl = uo, Ll = Ds, kh = Ll(Vl("String.prototype.indexOf")), Hl = function(e, n) {
7036
7036
  var r = Vl(e, !!n);
7037
7037
  return typeof r == "function" && kh(e, ".prototype.") > -1 ? Ll(r) : r;
7038
- }, Ph = Es(), $h = Hl, Go = $h("Object.prototype.toString"), fo = function(e) {
7038
+ }, Ph = Es(), Nh = Hl, Go = Nh("Object.prototype.toString"), fo = function(e) {
7039
7039
  return Ph && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : Go(e) === "[object Arguments]";
7040
7040
  }, Bl = function(e) {
7041
7041
  return fo(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && Go(e) !== "[object Array]" && Go(e.callee) === "[object Function]";
7042
- }, Nh = function() {
7042
+ }, $h = function() {
7043
7043
  return fo(arguments);
7044
7044
  }();
7045
7045
  fo.isLegacyArguments = Bl;
7046
- var Vh = Nh ? fo : Bl, Lh = uo, Yo = Lh("%Object.defineProperty%", !0), zo = function() {
7046
+ var Vh = $h ? fo : Bl, Lh = uo, Yo = Lh("%Object.defineProperty%", !0), zo = function() {
7047
7047
  if (Yo)
7048
7048
  try {
7049
7049
  return Yo({}, "a", { value: 1 }), !0;
@@ -7061,19 +7061,19 @@ zo.hasArrayLengthDefineBug = function() {
7061
7061
  return !0;
7062
7062
  }
7063
7063
  };
7064
- var Ms = zo, Hh = Ms(), ks = uo, Di = Hh && ks("%Object.defineProperty%", !0), Bh = ks("%SyntaxError%"), $n = ks("%TypeError%"), Mi = _s, jl = function(e, n, r) {
7064
+ var Ms = zo, Hh = Ms(), ks = uo, Di = Hh && ks("%Object.defineProperty%", !0), Bh = ks("%SyntaxError%"), Nn = ks("%TypeError%"), Mi = _s, jl = function(e, n, r) {
7065
7065
  if (!e || typeof e != "object" && typeof e != "function")
7066
- throw new $n("`obj` must be an object or a function`");
7066
+ throw new Nn("`obj` must be an object or a function`");
7067
7067
  if (typeof n != "string" && typeof n != "symbol")
7068
- throw new $n("`property` must be a string or a symbol`");
7068
+ throw new Nn("`property` must be a string or a symbol`");
7069
7069
  if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
7070
- throw new $n("`nonEnumerable`, if provided, must be a boolean or null");
7070
+ throw new Nn("`nonEnumerable`, if provided, must be a boolean or null");
7071
7071
  if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
7072
- throw new $n("`nonWritable`, if provided, must be a boolean or null");
7072
+ throw new Nn("`nonWritable`, if provided, must be a boolean or null");
7073
7073
  if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
7074
- throw new $n("`nonConfigurable`, if provided, must be a boolean or null");
7074
+ throw new Nn("`nonConfigurable`, if provided, must be a boolean or null");
7075
7075
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
7076
- throw new $n("`loose`, if provided, must be a boolean");
7076
+ throw new Nn("`loose`, if provided, must be a boolean");
7077
7077
  var o = arguments.length > 3 ? arguments[3] : null, i = arguments.length > 4 ? arguments[4] : null, a = arguments.length > 5 ? arguments[5] : null, c = arguments.length > 6 ? arguments[6] : !1, l = !!Mi && Mi(e, n);
7078
7078
  if (Di)
7079
7079
  Di(e, n, {
@@ -7126,13 +7126,13 @@ Qh(zl, {
7126
7126
  var ng = zl, Ko = Hl, Kl = Es(), Jl, Xl, Jo, Xo;
7127
7127
  if (Kl) {
7128
7128
  Jl = Ko("Object.prototype.hasOwnProperty"), Xl = Ko("RegExp.prototype.exec"), Jo = {};
7129
- var No = function() {
7129
+ var $o = function() {
7130
7130
  throw Jo;
7131
7131
  };
7132
7132
  Xo = {
7133
- toString: No,
7134
- valueOf: No
7135
- }, typeof Symbol.toPrimitive == "symbol" && (Xo[Symbol.toPrimitive] = No);
7133
+ toString: $o,
7134
+ valueOf: $o
7135
+ }, typeof Symbol.toPrimitive == "symbol" && (Xo[Symbol.toPrimitive] = $o);
7136
7136
  }
7137
7137
  var rg = Ko("Object.prototype.toString"), og = Object.getOwnPropertyDescriptor, sg = "[object RegExp]", ig = Kl ? function(e) {
7138
7138
  if (!e || typeof e != "object")
@@ -7169,11 +7169,11 @@ vr.boundFunctionsHaveNames = function() {
7169
7169
  return vr() && typeof ag == "function" && (function() {
7170
7170
  }).bind().name !== "";
7171
7171
  };
7172
- var lg = vr, $i = jl, cg = Ms(), dg = lg.functionsHaveConfigurableNames(), ug = TypeError, fg = function(e, n) {
7172
+ var lg = vr, Ni = jl, cg = Ms(), dg = lg.functionsHaveConfigurableNames(), ug = TypeError, fg = function(e, n) {
7173
7173
  if (typeof e != "function")
7174
7174
  throw new ug("`fn` is not a function");
7175
7175
  var r = arguments.length > 2 && !!arguments[2];
7176
- return (!r || dg) && (cg ? $i(e, "name", n, !0, !0) : $i(e, "name", n)), e;
7176
+ return (!r || dg) && (cg ? Ni(e, "name", n, !0, !0) : Ni(e, "name", n)), e;
7177
7177
  }, pg = fg, mg = Object, hg = TypeError, Ql = pg(function() {
7178
7178
  if (this != null && this !== mg(this))
7179
7179
  throw new hg("RegExp.prototype.flags getter called on non-object");
@@ -7197,10 +7197,10 @@ var lg = vr, $i = jl, cg = Ms(), dg = lg.functionsHaveConfigurableNames(), ug =
7197
7197
  }
7198
7198
  }
7199
7199
  return gg;
7200
- }, bg = Er.supportsDescriptors, wg = Zl, xg = Object.getOwnPropertyDescriptor, Cg = Object.defineProperty, Tg = TypeError, Ni = Object.getPrototypeOf, Sg = /a/, Fg = function() {
7201
- if (!bg || !Ni)
7200
+ }, bg = Er.supportsDescriptors, wg = Zl, xg = Object.getOwnPropertyDescriptor, Cg = Object.defineProperty, Tg = TypeError, $i = Object.getPrototypeOf, Sg = /a/, Fg = function() {
7201
+ if (!bg || !$i)
7202
7202
  throw new Tg("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
7203
- var e = wg(), n = Ni(Sg), r = xg(n, "flags");
7203
+ var e = wg(), n = $i(Sg), r = xg(n, "flags");
7204
7204
  return (!r || r.get !== e) && Cg(n, "flags", {
7205
7205
  configurable: !0,
7206
7206
  enumerable: !1,
@@ -7218,12 +7218,12 @@ var _g = tc, Og = Date.prototype.getDay, Dg = function(e) {
7218
7218
  } catch {
7219
7219
  return !1;
7220
7220
  }
7221
- }, Mg = Object.prototype.toString, kg = "[object Date]", Pg = Es(), $g = function(e) {
7221
+ }, Mg = Object.prototype.toString, kg = "[object Date]", Pg = Es(), Ng = function(e) {
7222
7222
  return typeof e != "object" || e === null ? !1 : Pg ? Dg(e) : Mg.call(e) === kg;
7223
- }, Vi = Rl, Li = Vh, Hi = ng, Bi = ig, ji = _g, Ui = $g, Wi = Date.prototype.getTime;
7223
+ }, Vi = Rl, Li = Vh, Hi = ng, Bi = ig, ji = _g, Ui = Ng, Wi = Date.prototype.getTime;
7224
7224
  function nc(t, e, n) {
7225
7225
  var r = n || {};
7226
- return (r.strict ? Hi(t, e) : t === e) ? !0 : !t || !e || typeof t != "object" && typeof e != "object" ? r.strict ? Hi(t, e) : t == e : Ng(t, e, r);
7226
+ return (r.strict ? Hi(t, e) : t === e) ? !0 : !t || !e || typeof t != "object" && typeof e != "object" ? r.strict ? Hi(t, e) : t == e : $g(t, e, r);
7227
7227
  }
7228
7228
  function qi(t) {
7229
7229
  return t == null;
@@ -7231,7 +7231,7 @@ function qi(t) {
7231
7231
  function Gi(t) {
7232
7232
  return !(!t || typeof t != "object" || typeof t.length != "number" || typeof t.copy != "function" || typeof t.slice != "function" || t.length > 0 && typeof t[0] != "number");
7233
7233
  }
7234
- function Ng(t, e, n) {
7234
+ function $g(t, e, n) {
7235
7235
  var r, o;
7236
7236
  if (typeof t != typeof e || qi(t) || qi(e) || t.prototype !== e.prototype || Li(t) !== Li(e))
7237
7237
  return !1;
@@ -7287,7 +7287,7 @@ const nr = /* @__PURE__ */ Oa(Vg), { Text: Lg } = ln, Hg = ({
7287
7287
  setCurrentSavedSearch: d,
7288
7288
  savedSearches: f,
7289
7289
  setSavedSearches: u
7290
- } = Nt(), [p, m] = F(
7290
+ } = $t(), [p, m] = F(
7291
7291
  (o == null ? void 0 : o.name) || ""
7292
7292
  ), [g, h] = F(!1), [v, y] = F(!1), [b, x] = F(!1), [C, w] = F(!1), [O, T] = F(""), [A] = Me(
7293
7293
  B.getHandler().update
@@ -7513,7 +7513,7 @@ const nr = /* @__PURE__ */ Oa(Vg), { Text: Lg } = ln, Hg = ({
7513
7513
  U.key === "Enter" ? (h(!1), k()) : U.key === "Escape" && (m((o == null ? void 0 : o.name) || ""), h(!1));
7514
7514
  },
7515
7515
  [o, k]
7516
- ), $ = ct(async () => {
7516
+ ), N = ct(async () => {
7517
7517
  h(!1), k();
7518
7518
  }, [k]), q = ct(
7519
7519
  (U) => c && p && (o || v) ? /* @__PURE__ */ L("div", { children: [
@@ -7528,7 +7528,7 @@ const nr = /* @__PURE__ */ Oa(Vg), { Text: Lg } = ln, Hg = ({
7528
7528
  value: p,
7529
7529
  onChange: E,
7530
7530
  onKeyDown: P,
7531
- onBlur: $,
7531
+ onBlur: N,
7532
7532
  size: "small",
7533
7533
  style: { width: "200px", fontSize: "14px" },
7534
7534
  autoFocus: !0
@@ -7555,7 +7555,7 @@ const nr = /* @__PURE__ */ Oa(Vg), { Text: Lg } = ln, Hg = ({
7555
7555
  g,
7556
7556
  E,
7557
7557
  P,
7558
- $,
7558
+ N,
7559
7559
  S,
7560
7560
  c
7561
7561
  ]
@@ -7567,7 +7567,7 @@ const nr = /* @__PURE__ */ Oa(Vg), { Text: Lg } = ln, Hg = ({
7567
7567
  r,
7568
7568
  o
7569
7569
  ]
7570
- ), N = te(() => !!(!o || o && !v), [o, v]), V = te(
7570
+ ), $ = te(() => !!(!o || o && !v), [o, v]), V = te(
7571
7571
  () => !!(o && v),
7572
7572
  [o, v]
7573
7573
  ), G = te(
@@ -7591,13 +7591,13 @@ const nr = /* @__PURE__ */ Oa(Vg), { Text: Lg } = ln, Hg = ({
7591
7591
  handleClear: K,
7592
7592
  renderSavedSearchTitle: q,
7593
7593
  shouldShowSaveButtons: H,
7594
- shouldShowSingleSaveButton: N,
7594
+ shouldShowSingleSaveButton: $,
7595
7595
  shouldShowSaveButtonGroup: V,
7596
7596
  shouldShowSaveAsNew: G
7597
7597
  };
7598
7598
  }, rc = Bt(
7599
7599
  (t, e) => {
7600
- const { onSubmit: n, searchValues: r, searchFields: o, onChange: i, onClear: a } = t, [c] = $t.useForm(), [l, d] = F({}), [f, u] = F(""), { t: p } = Fe(), [m, g] = F(0), h = X(null), [v, y] = F([]);
7600
+ const { onSubmit: n, searchValues: r, searchFields: o, onChange: i, onClear: a } = t, [c] = Nt.useForm(), [l, d] = F({}), [f, u] = F(""), { t: p } = Fe(), [m, g] = F(0), h = X(null), [v, y] = F([]);
7601
7601
  We(() => {
7602
7602
  c.setFieldsValue(r);
7603
7603
  const w = jn(r || {});
@@ -7641,8 +7641,8 @@ const nr = /* @__PURE__ */ Oa(Vg), { Text: Lg } = ln, Hg = ({
7641
7641
  return R.filter((M) => O ? D[M.id] === !0 : !0).sort((M, S) => {
7642
7642
  const E = M, k = S;
7643
7643
  if (O) {
7644
- const P = v.indexOf(E.id), $ = v.indexOf(k.id);
7645
- return P - $;
7644
+ const P = v.indexOf(E.id), N = v.indexOf(k.id);
7645
+ return P - N;
7646
7646
  }
7647
7647
  return qr(E.label).localeCompare(
7648
7648
  qr(k.label)
@@ -7723,7 +7723,7 @@ const nr = /* @__PURE__ */ Oa(Vg), { Text: Lg } = ln, Hg = ({
7723
7723
  [c]
7724
7724
  );
7725
7725
  return /* @__PURE__ */ s(Jn, { children: /* @__PURE__ */ s(
7726
- $t,
7726
+ Nt,
7727
7727
  {
7728
7728
  form: c,
7729
7729
  onFinish: n,
@@ -7848,7 +7848,7 @@ const oc = (t) => {
7848
7848
  } = t, f = X(), { t: u } = Fe(), p = X(), m = X(null), {
7849
7849
  currentSavedSearch: g,
7850
7850
  searchParams: h
7851
- } = Nt(), [v, y] = F([]), [b, x] = F({}), C = Ht(() => v, [v]), w = Ht(() => `${u("filter")} (${(C == null ? void 0 : C.length) || 0})`, [u, C]), O = Ht(() => {
7851
+ } = $t(), [v, y] = F([]), [b, x] = F({}), C = Ht(() => v, [v]), w = Ht(() => `${u("filter")} (${(C == null ? void 0 : C.length) || 0})`, [u, C]), O = Ht(() => {
7852
7852
  if (!b)
7853
7853
  return 0;
7854
7854
  const z = /* @__PURE__ */ new Set();
@@ -7872,10 +7872,10 @@ const oc = (t) => {
7872
7872
  setShowSaveModal: E,
7873
7873
  setModalInputValue: k,
7874
7874
  handleSave: P,
7875
- handleSaveAsNew: $,
7875
+ handleSaveAsNew: N,
7876
7876
  handleModalSave: q,
7877
7877
  handleClear: H,
7878
- renderSavedSearchTitle: N,
7878
+ renderSavedSearchTitle: $,
7879
7879
  shouldShowSaveButtons: V,
7880
7880
  shouldShowSingleSaveButton: G,
7881
7881
  shouldShowSaveButtonGroup: K,
@@ -7996,7 +7996,7 @@ const oc = (t) => {
7996
7996
  }
7997
7997
  ],
7998
7998
  onClick: ({ key: z }) => {
7999
- z === "saveAsNew" && $();
7999
+ z === "saveAsNew" && N();
8000
8000
  }
8001
8001
  },
8002
8002
  placement: "bottomRight",
@@ -8015,7 +8015,7 @@ const oc = (t) => {
8015
8015
  {
8016
8016
  size: "small",
8017
8017
  icon: U ? /* @__PURE__ */ s(jo, {}) : /* @__PURE__ */ s(Bo, {}),
8018
- onClick: U ? $ : P,
8018
+ onClick: U ? N : P,
8019
8019
  style: { height: "24px" },
8020
8020
  children: u(U ? "saveAsNewSearchFilter" : "saveSearchFilter")
8021
8021
  }
@@ -8027,13 +8027,13 @@ const oc = (t) => {
8027
8027
  _,
8028
8028
  u,
8029
8029
  P,
8030
- $
8030
+ N
8031
8031
  ]);
8032
8032
  return /* @__PURE__ */ L(xe, { children: [
8033
8033
  /* @__PURE__ */ s(
8034
8034
  Sm,
8035
8035
  {
8036
- title: N(w),
8036
+ title: $(w),
8037
8037
  isOpen: n,
8038
8038
  onClose: r,
8039
8039
  headerButtons: j,
@@ -8079,7 +8079,7 @@ const oc = (t) => {
8079
8079
  },
8080
8080
  [S, R, k]
8081
8081
  ),
8082
- children: /* @__PURE__ */ s($t, { layout: "vertical", children: /* @__PURE__ */ s($t.Item, { label: u("searchFilterName"), required: !0, children: /* @__PURE__ */ s(
8082
+ children: /* @__PURE__ */ s(Nt, { layout: "vertical", children: /* @__PURE__ */ s(Nt.Item, { label: u("searchFilterName"), required: !0, children: /* @__PURE__ */ s(
8083
8083
  ht,
8084
8084
  {
8085
8085
  value: S || R || "",
@@ -8172,11 +8172,11 @@ function Ug(t) {
8172
8172
  hideAdvancedFilter: i
8173
8173
  } = t, { t: a } = Fe();
8174
8174
  return /* @__PURE__ */ L(Xe, { children: [
8175
- !i && /* @__PURE__ */ s($e, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ L("a", { className: "text-xs", onClick: e, children: [
8175
+ !i && /* @__PURE__ */ s(Ne, { span: 12, className: "text-left pt-4 pb-2 pl-2", children: /* @__PURE__ */ L("a", { className: "text-xs", onClick: e, children: [
8176
8176
  n ? /* @__PURE__ */ s(ld, { className: "pr-1" }) : /* @__PURE__ */ s(br, { className: "pr-1" }),
8177
8177
  a(n ? "simple_search" : "advanced_search")
8178
8178
  ] }) }),
8179
- /* @__PURE__ */ L($e, { span: i ? 24 : 12, className: "text-right pb-2", children: [
8179
+ /* @__PURE__ */ L(Ne, { span: i ? 24 : 12, className: "text-right pb-2", children: [
8180
8180
  /* @__PURE__ */ s(Ge, { className: "mr-5", icon: /* @__PURE__ */ s(er, {}), onClick: r, children: a("clear") }),
8181
8181
  /* @__PURE__ */ s(
8182
8182
  Ge,
@@ -8228,7 +8228,7 @@ function po(t) {
8228
8228
  searchError: u,
8229
8229
  searchValues: p,
8230
8230
  showLimitOptions: m = !0
8231
- } = t, [g, h] = F(), [v, y] = F(), [b, x] = F(!1), C = X(), { token: w } = qg(), [O] = $t.useForm();
8231
+ } = t, [g, h] = F(), [v, y] = F(), [b, x] = F(!1), C = X(), { token: w } = qg(), [O] = Nt.useForm();
8232
8232
  ce(() => {
8233
8233
  O.setFieldsValue(p);
8234
8234
  }, [p]), ce(() => {
@@ -8238,7 +8238,7 @@ function po(t) {
8238
8238
  if (!v)
8239
8239
  return;
8240
8240
  const D = b ? v : g, M = D == null ? void 0 : D.rows;
8241
- return M == null ? void 0 : M.map((S, E) => /* @__PURE__ */ s(Xe, { children: S.map((k, P) => /* @__PURE__ */ s($e, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ s(Al, { field: k }) }, P)) }, E));
8241
+ return M == null ? void 0 : M.map((S, E) => /* @__PURE__ */ s(Xe, { children: S.map((k, P) => /* @__PURE__ */ s(Ne, { xs: 24, className: "p-2", xl: 6, children: /* @__PURE__ */ s(Al, { field: k }) }, P)) }, E));
8242
8242
  };
8243
8243
  We(() => {
8244
8244
  x(!1), C.current = new ha(n, e), C.current.parse(), h(C.current._simpleSearchContainer), y(C.current._advancedSearchContainer);
@@ -8274,7 +8274,7 @@ function po(t) {
8274
8274
  },
8275
8275
  children: ({ measureRef: D }) => /* @__PURE__ */ s("div", { ref: D, children: /* @__PURE__ */ L("div", { style: { display: d ? "block" : "none" }, children: [
8276
8276
  /* @__PURE__ */ L(
8277
- $t,
8277
+ Nt,
8278
8278
  {
8279
8279
  className: "p-3 shadow-md",
8280
8280
  style: { borderRadius: w.borderRadius },
@@ -8318,7 +8318,7 @@ function po(t) {
8318
8318
  function sc({
8319
8319
  useLocalState: t = !1
8320
8320
  }) {
8321
- const e = gy() && !t, n = Nt(), [r, o] = F(!1), [i, a] = F(!1), [c, l] = F([]), [d, f] = F(0), [u, p] = F(void 0), [m, g] = F([]), [h, v] = F({}), [y, b] = F(), [x, C] = F([]), [w, O] = F(), [T, A] = F(0), [R, _] = F(), [D, M] = F(1), [S, E] = F(xn), [k, P] = F(At);
8321
+ const e = gy() && !t, n = $t(), [r, o] = F(!1), [i, a] = F(!1), [c, l] = F([]), [d, f] = F(0), [u, p] = F(void 0), [m, g] = F([]), [h, v] = F({}), [y, b] = F(), [x, C] = F([]), [w, O] = F(), [T, A] = F(0), [R, _] = F(), [D, M] = F(1), [S, E] = F(xn), [k, P] = F(At);
8322
8322
  return e ? {
8323
8323
  treeIsLoading: n.treeIsLoading ?? !1,
8324
8324
  setTreeIsLoading: n.setTreeIsLoading ?? (() => {
@@ -8554,7 +8554,7 @@ const rr = () => {
8554
8554
  ) : !1;
8555
8555
  }).filter(Boolean);
8556
8556
  G.length > 0 && (k(G), (U = n == null ? void 0 : n.current) == null || U.updateRows(G));
8557
- }, [n, k]), $ = I(
8557
+ }, [n, k]), N = I(
8558
8558
  (V, G) => f || !m.current.includes(G) ? !1 : b.current.has(V == null ? void 0 : V.id) ? !0 : !x.current.find((K) => K.id === (V == null ? void 0 : V.id)),
8559
8559
  [f]
8560
8560
  );
@@ -8568,7 +8568,7 @@ const rr = () => {
8568
8568
  O(!1), C.current && (clearInterval(C.current), C.current = null), A(), _(), b.current.clear();
8569
8569
  }, [A, _]), H = I(() => {
8570
8570
  h && O(!0);
8571
- }, [h]), N = I((V) => {
8571
+ }, [h]), $ = I((V) => {
8572
8572
  if (!V || V.length === 0)
8573
8573
  return;
8574
8574
  const G = [...x.current];
@@ -8588,18 +8588,18 @@ const rr = () => {
8588
8588
  }), x.current = G;
8589
8589
  }, []);
8590
8590
  return ce(() => {
8591
- d && d(N);
8592
- }, [d, N]), {
8591
+ d && d($);
8592
+ }, [d, $]), {
8593
8593
  refresh: () => {
8594
8594
  y(/* @__PURE__ */ new Set()), x.current = [], b.current.clear();
8595
8595
  },
8596
8596
  addRecordsToCheckFunctionFields: E,
8597
- isFieldLoading: $,
8597
+ isFieldLoading: N,
8598
8598
  hasFunctionFields: u,
8599
8599
  pause: q,
8600
8600
  resume: H,
8601
8601
  onHasFunctionFieldsToParseConditions: M,
8602
- syncExternalRecordUpdates: N
8602
+ syncExternalRecordUpdates: $
8603
8603
  };
8604
8604
  }, zg = 3 * 1e3, Kg = (t) => {
8605
8605
  const {
@@ -8649,30 +8649,30 @@ const rr = () => {
8649
8649
  a,
8650
8650
  k,
8651
8651
  r
8652
- ), $ = P.filter((q) => {
8652
+ ), N = P.filter((q) => {
8653
8653
  const H = w.current[q.id];
8654
8654
  return O(q, H);
8655
8655
  });
8656
- if (p && c && a && T() && $.length > 0) {
8656
+ if (p && c && a && T() && N.length > 0) {
8657
8657
  const q = hr({
8658
8658
  treeOoui: a
8659
- }), H = $.map((N) => ({ ...d == null ? void 0 : d.find(
8660
- (G) => G.id === N.id
8661
- ), ...N }));
8659
+ }), H = N.map(($) => ({ ...d == null ? void 0 : d.find(
8660
+ (G) => G.id === $.id
8661
+ ), ...$ }));
8662
8662
  try {
8663
- const N = await b({
8663
+ const $ = await b({
8664
8664
  conditions: q,
8665
8665
  values: H,
8666
8666
  context: r
8667
8667
  });
8668
- c(N, a), $.forEach((V) => {
8668
+ c($, a), N.forEach((V) => {
8669
8669
  w.current[V.id] = V;
8670
8670
  });
8671
- } catch (N) {
8672
- N.name !== "AbortError" && console.error("Error parsing conditions:", N);
8671
+ } catch ($) {
8672
+ $.name !== "AbortError" && console.error("Error parsing conditions:", $);
8673
8673
  }
8674
8674
  }
8675
- (E = e.current) == null || E.updateRows(P), f == null || f($);
8675
+ (E = e.current) == null || E.updateRows(P), f == null || f(N);
8676
8676
  } catch (k) {
8677
8677
  console.error(k);
8678
8678
  }
@@ -8822,10 +8822,10 @@ const rr = () => {
8822
8822
  className: "pb-4",
8823
8823
  style: { height: 40, maxHeight: 40, overflow: "hidden" },
8824
8824
  children: [
8825
- /* @__PURE__ */ s($e, { span: o, children: /* @__PURE__ */ s(Xg, { selectedRowKeys: e }) }),
8826
- n && /* @__PURE__ */ s($e, { span: 12, className: "text-center", children: n }),
8825
+ /* @__PURE__ */ s(Ne, { span: o, children: /* @__PURE__ */ s(Xg, { selectedRowKeys: e }) }),
8826
+ n && /* @__PURE__ */ s(Ne, { span: 12, className: "text-center", children: n }),
8827
8827
  /* @__PURE__ */ L(
8828
- $e,
8828
+ Ne,
8829
8829
  {
8830
8830
  span: o,
8831
8831
  style: { paddingRight: 10 },
@@ -8879,7 +8879,7 @@ const ac = ({
8879
8879
  tableRef: t,
8880
8880
  autoRefresh: e
8881
8881
  }) => {
8882
- const { isActive: n } = Nt(), r = rr();
8882
+ const { isActive: n } = $t(), r = rr();
8883
8883
  ce(() => {
8884
8884
  var o, i, a, c;
8885
8885
  !e || !t.current || (n === !1 || !r ? (i = (o = t.current).pauseAutoRefresh) == null || i.call(o) : (n === void 0 || n === !0) && r && ((c = (a = t.current).resumeAutoRefresh) == null || c.call(a)));
@@ -8903,20 +8903,20 @@ function ey(t, e) {
8903
8903
  hideSelectionColumn: h = !1,
8904
8904
  fixedHeight: v,
8905
8905
  autoRefresh: y
8906
- } = t, b = X(null), x = X([]), C = X(!1), { showErrorNotification: w } = wt(), { setCurrentSavedSearch: O } = Nt(), [T, A] = F(), [R, _] = F(!1), D = X(null), M = gl({
8906
+ } = t, b = X(null), x = X([]), C = X(!1), { showErrorNotification: w } = wt(), { setCurrentSavedSearch: O } = $t(), [T, A] = F(), [R, _] = F(!1), D = X(null), M = gl({
8907
8907
  elementRef: D,
8908
8908
  offset: Qg
8909
8909
  }), S = v !== void 0 ? v : M, [E, k] = Me(
8910
8910
  B.getHandler().searchCount
8911
- ), [P, $] = Me(
8911
+ ), [P, N] = Me(
8912
8912
  B.getHandler().searchForTree
8913
8913
  ), [q, H] = Me(
8914
8914
  B.getHandler().searchAllIds
8915
8915
  );
8916
8916
  ce(() => () => {
8917
- k(), $(), H();
8917
+ k(), N(), H();
8918
8918
  }, []);
8919
- const { treeView: N, formView: V, loading: G } = Cs({
8919
+ const { treeView: $, formView: V, loading: G } = Cs({
8920
8920
  model: n,
8921
8921
  formViewProps: r,
8922
8922
  treeViewProps: o,
@@ -8942,15 +8942,15 @@ function ey(t, e) {
8942
8942
  isActive: re,
8943
8943
  order: pe,
8944
8944
  setOrder: _e
8945
- } = sc({ useLocalState: !l }), ve = u || ae, Ae = X(ve), we = X(!1), Ne = X(), ze = X(), Oe = X(!1);
8945
+ } = sc({ useLocalState: !l }), ve = u || ae, Ae = X(ve), we = X(!1), $e = X(), ze = X(), Oe = X(!1);
8946
8946
  ce(() => {
8947
8947
  var Ue, ft;
8948
8948
  ve !== void 0 && Ae.current === void 0 || typeof ve == "string" && typeof Ae.current == "string" && ve !== Ae.current ? (we.current = !!ve, j == null || j([]), Q == null || Q({}), (Ue = b.current) == null || Ue.unselectAll()) : ve === void 0 && Ae.current !== void 0 && (we.current = !1, (ft = b.current) == null || ft.unselectAll()), Ae.current = ve;
8949
8949
  }, [ve]);
8950
8950
  const Pe = te(() => {
8951
- if (N)
8952
- return en(N);
8953
- }, [N]), {
8951
+ if ($)
8952
+ return en($);
8953
+ }, [$]), {
8954
8954
  columns: Re,
8955
8955
  strings: Ze,
8956
8956
  colorsForResults: He,
@@ -8966,8 +8966,8 @@ function ey(t, e) {
8966
8966
  } = Fs({
8967
8967
  treeOoui: Pe,
8968
8968
  parentContext: d,
8969
- columnStateKey: N ? yl({
8970
- treeViewId: N.view_id,
8969
+ columnStateKey: $ ? yl({
8970
+ treeViewId: $.view_id,
8971
8971
  model: n
8972
8972
  }) : void 0,
8973
8973
  tableRef: b
@@ -8980,7 +8980,7 @@ function ey(t, e) {
8980
8980
  shouldMakeDeferredFunctionRead: Le
8981
8981
  } = Ps({
8982
8982
  model: n,
8983
- treeView: N,
8983
+ treeView: $,
8984
8984
  tableRef: b,
8985
8985
  context: d,
8986
8986
  isActive: re,
@@ -9010,7 +9010,7 @@ function ey(t, e) {
9010
9010
  [a, z]
9011
9011
  ), cn = I(() => {
9012
9012
  const ft = `${JSON.stringify(ve ? a : xt)}-${ve}`;
9013
- return ft !== Ne.current ? (Ne.current = ft, !0) : !1;
9013
+ return ft !== $e.current ? ($e.current = ft, !0) : !1;
9014
9014
  }, [a, xt, ve]), Xt = I(async () => {
9015
9015
  if (!ve && !Oe.current) {
9016
9016
  Oe.current = !0, A(void 0), le(0);
@@ -9070,7 +9070,7 @@ function ey(t, e) {
9070
9070
  limit: ft - Ue,
9071
9071
  offset: Ue,
9072
9072
  model: n,
9073
- fields: N != null && N.field_parent ? { ...N == null ? void 0 : N.fields, [N == null ? void 0 : N.field_parent]: {} } : N == null ? void 0 : N.fields,
9073
+ fields: $ != null && $.field_parent ? { ...$ == null ? void 0 : $.fields, [$ == null ? void 0 : $.field_parent]: {} } : $ == null ? void 0 : $.fields,
9074
9074
  context: d,
9075
9075
  attrs: go,
9076
9076
  order: vt,
@@ -9121,7 +9121,7 @@ function ey(t, e) {
9121
9121
  oe,
9122
9122
  le,
9123
9123
  Pe,
9124
- N,
9124
+ $,
9125
9125
  ge,
9126
9126
  Le
9127
9127
  ]
@@ -9249,7 +9249,7 @@ function ey(t, e) {
9249
9249
  }, [z, U]);
9250
9250
  const Be = I(async () => {
9251
9251
  var Ue;
9252
- at([]), Ie(), nt(), Ne.current = void 0, _(!1), (Ue = b == null ? void 0 : b.current) == null || Ue.refresh(), De();
9252
+ at([]), Ie(), nt(), $e.current = void 0, _(!1), (Ue = b == null ? void 0 : b.current) == null || Ue.refresh(), De();
9253
9253
  }, [
9254
9254
  at,
9255
9255
  Ie,
@@ -9258,7 +9258,7 @@ function ey(t, e) {
9258
9258
  ]);
9259
9259
  Gt(e, () => ({
9260
9260
  refreshResults: Be,
9261
- getFields: () => N == null ? void 0 : N.fields
9261
+ getFields: () => $ == null ? void 0 : $.fields
9262
9262
  }));
9263
9263
  const Qe = te(
9264
9264
  () => ({
@@ -9269,10 +9269,10 @@ function ey(t, e) {
9269
9269
  [S, c]
9270
9270
  ), rt = te(
9271
9271
  () => ({
9272
- fields: { ...V == null ? void 0 : V.fields, ...N == null ? void 0 : N.fields },
9272
+ fields: { ...V == null ? void 0 : V.fields, ...$ == null ? void 0 : $.fields },
9273
9273
  searchFields: zn([
9274
9274
  V == null ? void 0 : V.search_fields,
9275
- N == null ? void 0 : N.search_fields
9275
+ $ == null ? void 0 : $.search_fields
9276
9276
  ]),
9277
9277
  showLimitOptions: !1,
9278
9278
  limit: 0,
@@ -9284,8 +9284,8 @@ function ey(t, e) {
9284
9284
  [
9285
9285
  V == null ? void 0 : V.fields,
9286
9286
  V == null ? void 0 : V.search_fields,
9287
- N == null ? void 0 : N.fields,
9288
- N == null ? void 0 : N.search_fields,
9287
+ $ == null ? void 0 : $.fields,
9288
+ $ == null ? void 0 : $.search_fields,
9289
9289
  fe
9290
9290
  ]
9291
9291
  ), ut = I(() => {
@@ -9310,10 +9310,10 @@ function ey(t, e) {
9310
9310
  ), nn = te(
9311
9311
  () => ({
9312
9312
  isOpen: U,
9313
- fields: { ...V == null ? void 0 : V.fields, ...N == null ? void 0 : N.fields },
9313
+ fields: { ...V == null ? void 0 : V.fields, ...$ == null ? void 0 : $.fields },
9314
9314
  searchFields: zn([
9315
9315
  V == null ? void 0 : V.search_fields,
9316
- N == null ? void 0 : N.search_fields
9316
+ $ == null ? void 0 : $.search_fields
9317
9317
  ]),
9318
9318
  searchValues: fe,
9319
9319
  currentModel: n,
@@ -9324,8 +9324,8 @@ function ey(t, e) {
9324
9324
  U,
9325
9325
  V == null ? void 0 : V.fields,
9326
9326
  V == null ? void 0 : V.search_fields,
9327
- N == null ? void 0 : N.fields,
9328
- N == null ? void 0 : N.search_fields,
9327
+ $ == null ? void 0 : $.fields,
9328
+ $ == null ? void 0 : $.search_fields,
9329
9329
  fe,
9330
9330
  n,
9331
9331
  d,
@@ -9382,7 +9382,7 @@ function ey(t, e) {
9382
9382
  /* @__PURE__ */ s("div", { ref: D, style: Qe, children: G || be ? /* @__PURE__ */ s(ot, {}) : Yt })
9383
9383
  ] });
9384
9384
  }
9385
- const $s = Bt(ey), zi = (t, e = "14px -apple-system") => {
9385
+ const Ns = Bt(ey), zi = (t, e = "14px -apple-system") => {
9386
9386
  const r = document.createElement("canvas").getContext("2d");
9387
9387
  r.font = e;
9388
9388
  const o = r.measureText(t);
@@ -9530,9 +9530,9 @@ const lc = Bt(
9530
9530
  context: w,
9531
9531
  readonly: O,
9532
9532
  onSelectAllRecords: T
9533
- } = t, A = X(null), [R, _] = F([]), D = X([]), M = X(!1), [S, E] = F(), { t: k } = Fe(), P = X(r), $ = ye(
9533
+ } = t, A = X(null), [R, _] = F([]), D = X([]), M = X(!1), [S, E] = F(), { t: k } = Fe(), P = X(r), N = ye(
9534
9534
  Ot
9535
- ), { title: q = void 0, setTitle: H = void 0 } = (C ? $ : {}) || {}, N = qt(
9535
+ ), { title: q = void 0, setTitle: H = void 0 } = (C ? N : {}) || {}, $ = qt(
9536
9536
  St.FEATURE_MANY2ONE_SORT
9537
9537
  ), V = te(() => {
9538
9538
  if (S)
@@ -9542,9 +9542,9 @@ const lc = Bt(
9542
9542
  ...Ss
9543
9543
  },
9544
9544
  w,
9545
- N
9545
+ $
9546
9546
  );
9547
- }, [S, w, N]);
9547
+ }, [S, w, $]);
9548
9548
  Gt(e, () => ({
9549
9549
  unselectAll: () => {
9550
9550
  var j;
@@ -9570,7 +9570,7 @@ const lc = Bt(
9570
9570
  (fe) => u && u.includes(fe.id)
9571
9571
  ).length;
9572
9572
  return l ? null : o === void 0 ? /* @__PURE__ */ s(ot, { className: "pb-4" }) : /* @__PURE__ */ L(Xe, { align: "bottom", className: "pb-4", children: [
9573
- /* @__PURE__ */ s($e, { span: T ? 8 : 12, children: /* @__PURE__ */ s(
9573
+ /* @__PURE__ */ s(Ne, { span: T ? 8 : 12, children: /* @__PURE__ */ s(
9574
9574
  zc,
9575
9575
  {
9576
9576
  total: o,
@@ -9580,7 +9580,7 @@ const lc = Bt(
9580
9580
  onChange: c
9581
9581
  }
9582
9582
  ) }),
9583
- T && /* @__PURE__ */ s($e, { span: 8, className: "text-center", children: /* @__PURE__ */ s(
9583
+ T && /* @__PURE__ */ s(Ne, { span: 8, className: "text-center", children: /* @__PURE__ */ s(
9584
9584
  ry,
9585
9585
  {
9586
9586
  numberOfVisibleSelectedRows: j,
@@ -9590,7 +9590,7 @@ const lc = Bt(
9590
9590
  onSelectAllRecords: T
9591
9591
  }
9592
9592
  ) }),
9593
- /* @__PURE__ */ s($e, { span: T ? 8 : 12, className: "text-right", children: U })
9593
+ /* @__PURE__ */ s(Ne, { span: T ? 8 : 12, className: "text-right", children: U })
9594
9594
  ] });
9595
9595
  }, [
9596
9596
  R,
@@ -9618,7 +9618,7 @@ const lc = Bt(
9618
9618
  if (S !== null && V && V.length > 0)
9619
9619
  return ty(V, R, 600);
9620
9620
  }, [V, R, S]), ie = te(() => m && (S != null && S.columns.some((j) => j.sum !== void 0)) ? m - 30 : m, [m, S == null ? void 0 : S.columns]);
9621
- return S === null || !Z || ((ue = Z == null ? void 0 : Z.columns) == null ? void 0 : ue.length) === 0 ? /* @__PURE__ */ s(ot, { style: { padding: "2rem" } }) : /* @__PURE__ */ L(Nr, { children: [
9621
+ return S === null || !Z || ((ue = Z == null ? void 0 : Z.columns) == null ? void 0 : ue.length) === 0 ? /* @__PURE__ */ s(ot, { style: { padding: "2rem" } }) : /* @__PURE__ */ L($r, { children: [
9622
9622
  W,
9623
9623
  /* @__PURE__ */ s(
9624
9624
  Gd,
@@ -9683,7 +9683,7 @@ const cc = (t) => {
9683
9683
  searchParams: O = [],
9684
9684
  setSearchValues: T,
9685
9685
  clearSelection: A
9686
- } = t, [R, _] = F(!1), [D, M] = F(!1), [S, E] = F(), [k, P] = F(1), [$, q] = F(0), [H, N] = F(), [V, G] = F([]), [K, U] = F(void 0), [W, ne] = F(void 0), Z = X(C || At), ie = X([]), ue = I(
9686
+ } = t, [R, _] = F(!1), [D, M] = F(!1), [S, E] = F(), [k, P] = F(1), [N, q] = F(0), [H, $] = F(), [V, G] = F([]), [K, U] = F(void 0), [W, ne] = F(void 0), Z = X(C || At), ie = X([]), ue = I(
9687
9687
  (re) => {
9688
9688
  v == null || v([...re]), G([...re]);
9689
9689
  },
@@ -9696,7 +9696,7 @@ const cc = (t) => {
9696
9696
  attrs: b,
9697
9697
  context: d
9698
9698
  });
9699
- if (N(re.length), f == null || f(re.length), re.length > 0) {
9699
+ if ($(re.length), f == null || f(re.length), re.length > 0) {
9700
9700
  const pe = re.map((Pe) => Pe == null ? void 0 : Pe[0]), { colors: _e, status: ve } = en(u), Ae = {};
9701
9701
  _e && (Ae.colors = _e), ve && (Ae.status = ve);
9702
9702
  const we = await B.getHandler().readEvalUiObjects({
@@ -9706,10 +9706,10 @@ const cc = (t) => {
9706
9706
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
9707
9707
  context: d,
9708
9708
  attrs: Ae
9709
- }), Ne = we[0];
9710
- ie.current = [...Ne], U(Gn(we[1])), ne(Vr(we[1]));
9711
- const ze = Ne.map((Pe) => Pe.id), Oe = m !== void 0 ? Bn({
9712
- resultsToSort: Ne,
9709
+ }), $e = we[0];
9710
+ ie.current = [...$e], U(Gn(we[1])), ne(Vr(we[1]));
9711
+ const ze = $e.map((Pe) => Pe.id), Oe = m !== void 0 ? Bn({
9712
+ resultsToSort: $e,
9713
9713
  sorter: m,
9714
9714
  fields: { ...u.fields, ...p.fields }
9715
9715
  }) : [...ie.current];
@@ -9731,16 +9731,16 @@ const cc = (t) => {
9731
9731
  f
9732
9732
  ]), z = I(
9733
9733
  async (re) => {
9734
- const { params: pe, newOffset: _e } = re || {}, ve = sn(pe || O, b), { colors: Ae, status: we } = en(u), Ne = {};
9735
- Ae && (Ne.colors = Ae), we && (Ne.status = we);
9734
+ const { params: pe, newOffset: _e } = re || {}, ve = sn(pe || O, b), { colors: Ae, status: we } = en(u), $e = {};
9735
+ Ae && ($e.colors = Ae), we && ($e.status = we);
9736
9736
  const { totalItems: ze, results: Oe, attrsEvaluated: Pe } = await B.getHandler().searchForTree({
9737
9737
  params: ve,
9738
9738
  limit: Z.current,
9739
- offset: _e || $,
9739
+ offset: _e || N,
9740
9740
  model: e,
9741
9741
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
9742
9742
  context: d,
9743
- attrs: Ne
9743
+ attrs: $e
9744
9744
  });
9745
9745
  U(Gn(Pe)), ne(Vr(Pe)), ie.current = [...Oe];
9746
9746
  const Re = m !== void 0 ? Bn({
@@ -9757,7 +9757,7 @@ const cc = (t) => {
9757
9757
  h == null || h(void 0);
9758
9758
  _(!1);
9759
9759
  const Ze = await ze();
9760
- N(Ze), f == null || f(Ze);
9760
+ $(Ze), f == null || f(Ze);
9761
9761
  },
9762
9762
  [
9763
9763
  h,
@@ -9771,7 +9771,7 @@ const cc = (t) => {
9771
9771
  p,
9772
9772
  m,
9773
9773
  f,
9774
- $,
9774
+ N,
9775
9775
  O
9776
9776
  ]
9777
9777
  ), Q = I(
@@ -9870,7 +9870,7 @@ const cc = (t) => {
9870
9870
  searchFilterLoading: D,
9871
9871
  searchError: S,
9872
9872
  page: k,
9873
- offset: $,
9873
+ offset: N,
9874
9874
  limit: Z.current,
9875
9875
  results: j,
9876
9876
  // Return the computed results value directly
@@ -9899,12 +9899,12 @@ function oy(t, e) {
9899
9899
  onChangeSelectedRowKeys: p
9900
9900
  } = t, [m, g] = F(!1), [h, v] = F(!1), y = X(!1), b = X(null), [x, C] = F(), [w, O] = F(), [T, A] = F(), [R, _] = F(), [D, M] = F(200), S = X(), { height: E } = oo(), k = ye(
9901
9901
  Fn
9902
- ), { processAction: P } = k || {}, $ = ye(
9902
+ ), { processAction: P } = k || {}, N = ye(
9903
9903
  Ot
9904
9904
  ), {
9905
9905
  setResults: q = void 0,
9906
9906
  setCurrentItemIndex: H = void 0,
9907
- currentId: N = void 0,
9907
+ currentId: $ = void 0,
9908
9908
  results: V = void 0,
9909
9909
  selectedRowItems: G = void 0,
9910
9910
  setSelectedRowItems: K = void 0,
@@ -9921,7 +9921,7 @@ function oy(t, e) {
9921
9921
  setSearchValues: ae = void 0,
9922
9922
  limit: Y = At,
9923
9923
  setLimit: me = void 0
9924
- } = (f ? $ : {}) || {}, { showErrorNotification: he } = wt(), oe = I(
9924
+ } = (f ? N : {}) || {}, { showErrorNotification: he } = wt(), oe = I(
9925
9925
  (Le) => {
9926
9926
  K == null || K(Le.map((st) => ({ id: st }))), p == null || p(Le);
9927
9927
  },
@@ -9934,7 +9934,7 @@ function oy(t, e) {
9934
9934
  searchFilterLoading: ve,
9935
9935
  searchError: Ae,
9936
9936
  page: we,
9937
- limit: Ne,
9937
+ limit: $e,
9938
9938
  offset: ze,
9939
9939
  results: Oe,
9940
9940
  requestPageChange: Pe,
@@ -9964,7 +9964,7 @@ function oy(t, e) {
9964
9964
  setResultsActionView: q,
9965
9965
  resultsActionView: V,
9966
9966
  domain: l,
9967
- currentId: N,
9967
+ currentId: $,
9968
9968
  setActionViewTotalItems: j,
9969
9969
  limit: Y,
9970
9970
  setLimit: me,
@@ -10089,7 +10089,7 @@ function oy(t, e) {
10089
10089
  ref: b,
10090
10090
  context: u,
10091
10091
  total: Je,
10092
- limit: Ne,
10092
+ limit: $e,
10093
10093
  page: we,
10094
10094
  treeView: w,
10095
10095
  results: Oe,
@@ -10119,7 +10119,7 @@ function oy(t, e) {
10119
10119
  T,
10120
10120
  Oe,
10121
10121
  Y,
10122
- Ne,
10122
+ $e,
10123
10123
  ze,
10124
10124
  ge,
10125
10125
  ee,
@@ -10178,10 +10178,10 @@ const dc = Bt(oy), sy = At, iy = (t) => {
10178
10178
  searchParams: E,
10179
10179
  setSearchValues: k,
10180
10180
  searchTreeNameSearch: P,
10181
- setSearchTreeNameSearch: $,
10181
+ setSearchTreeNameSearch: N,
10182
10182
  setResults: q,
10183
10183
  results: H,
10184
- setSearchQuery: N,
10184
+ setSearchQuery: $,
10185
10185
  setTotalItems: V,
10186
10186
  isActive: G,
10187
10187
  currentPage: K,
@@ -10190,7 +10190,7 @@ const dc = Bt(oy), sy = At, iy = (t) => {
10190
10190
  setOrder: ne,
10191
10191
  limit: Z,
10192
10192
  setLimit: ie
10193
- } = sc({ useLocalState: !i }), { treeMaxLimit: ue } = Jt(), { setCurrentSavedSearch: j } = Nt(), fe = v ? 0 : Math.min(Z, ue), [z, Q] = F(!0), [ae, Y] = F(), [me, he] = F([]), [oe, le] = F(!1), re = a || P, pe = X(re), _e = X(E), ve = X(C), Ae = X(), we = X([]), Ne = X(!1), [ze, Oe] = Me(
10193
+ } = sc({ useLocalState: !i }), { treeMaxLimit: ue } = Jt(), { setCurrentSavedSearch: j } = $t(), fe = v ? 0 : Math.min(Z, ue), [z, Q] = F(!0), [ae, Y] = F(), [me, he] = F([]), [oe, le] = F(!1), re = a || P, pe = X(re), _e = X(E), ve = X(C), Ae = X(), we = X([]), $e = X(!1), [ze, Oe] = Me(
10194
10194
  B.getHandler().parseConditions
10195
10195
  ), Pe = I((Ee) => {
10196
10196
  we.current = we.current.map((Be) => {
@@ -10266,22 +10266,22 @@ const dc = Bt(oy), sy = At, iy = (t) => {
10266
10266
  []
10267
10267
  ), cn = I(() => {
10268
10268
  var Ee;
10269
- O([]), (Ee = c.current) == null || Ee.unselectAll(), $ == null || $(void 0), M == null || M([]), k == null || k(void 0);
10269
+ O([]), (Ee = c.current) == null || Ee.unselectAll(), N == null || N(void 0), M == null || M([]), k == null || k(void 0);
10270
10270
  }, [
10271
10271
  O,
10272
10272
  c,
10273
- $,
10273
+ N,
10274
10274
  M,
10275
10275
  k
10276
10276
  ]), Xt = I(
10277
10277
  ({ params: Ee, searchValues: Be }) => {
10278
10278
  var Qe;
10279
- O([]), (Qe = c.current) == null || Qe.unselectAll(), $ == null || $(void 0), M == null || M(Ee), k == null || k(Be);
10279
+ O([]), (Qe = c.current) == null || Qe.unselectAll(), N == null || N(void 0), M == null || M(Ee), k == null || k(Be);
10280
10280
  },
10281
10281
  [
10282
10282
  O,
10283
10283
  c,
10284
- $,
10284
+ N,
10285
10285
  M,
10286
10286
  k
10287
10287
  ]
@@ -10291,9 +10291,9 @@ const dc = Bt(oy), sy = At, iy = (t) => {
10291
10291
  ), yt = I(async () => {
10292
10292
  if (!n || e)
10293
10293
  return [];
10294
- if (Ne.current)
10294
+ if ($e.current)
10295
10295
  return [];
10296
- Ne.current = !0;
10296
+ $e.current = !0;
10297
10297
  try {
10298
10298
  x(!0);
10299
10299
  let Ee;
@@ -10323,7 +10323,7 @@ const dc = Bt(oy), sy = At, iy = (t) => {
10323
10323
  ke && Ke(nn);
10324
10324
  }
10325
10325
  });
10326
- if (N == null || N({
10326
+ if ($ == null || $({
10327
10327
  model: o,
10328
10328
  params: Be,
10329
10329
  name_search: re,
@@ -10337,7 +10337,7 @@ const dc = Bt(oy), sy = At, iy = (t) => {
10337
10337
  } catch (Ee) {
10338
10338
  throw x(!1), Se(Ee), console.error(Ee), Ee;
10339
10339
  } finally {
10340
- Ne.current = !1;
10340
+ $e.current = !1;
10341
10341
  }
10342
10342
  }, [
10343
10343
  n,
@@ -10357,7 +10357,7 @@ const dc = Bt(oy), sy = At, iy = (t) => {
10357
10357
  o,
10358
10358
  r,
10359
10359
  d,
10360
- N,
10360
+ $,
10361
10361
  q,
10362
10362
  p,
10363
10363
  Dt,
@@ -10377,12 +10377,12 @@ const dc = Bt(oy), sy = At, iy = (t) => {
10377
10377
  ]), Rn = I(
10378
10378
  ({ params: Ee, values: Be, closeSidebar: Qe = !0 }) => {
10379
10379
  var rt;
10380
- O([]), (rt = c.current) == null || rt.unselectAll(), $ == null || $(void 0), M == null || M(Ee), k == null || k(Be), w == null || w(!Qe), Qe || at(), (!Ee || Ee.length === 0) && (j == null || j(null));
10380
+ O([]), (rt = c.current) == null || rt.unselectAll(), N == null || N(void 0), M == null || M(Ee), k == null || k(Be), w == null || w(!Qe), Qe || at(), (!Ee || Ee.length === 0) && (j == null || j(null));
10381
10381
  },
10382
10382
  [
10383
10383
  O,
10384
10384
  c,
10385
- $,
10385
+ N,
10386
10386
  M,
10387
10387
  k,
10388
10388
  w,
@@ -10626,7 +10626,7 @@ const dc = Bt(oy), sy = At, iy = (t) => {
10626
10626
  onSubmit: l
10627
10627
  }
10628
10628
  );
10629
- }, Ns = it(
10629
+ }, $s = it(
10630
10630
  ({
10631
10631
  columns: t,
10632
10632
  treeOoui: e,
@@ -10695,8 +10695,8 @@ const dc = Bt(oy), sy = At, iy = (t) => {
10695
10695
  }
10696
10696
  )
10697
10697
  );
10698
- Ns.displayName = "PaginatedTableComponent";
10699
- const ly = it(Ns), Wt = (t) => {
10698
+ $s.displayName = "PaginatedTableComponent";
10699
+ const ly = it($s), Wt = (t) => {
10700
10700
  const e = X(t);
10701
10701
  return ce(() => {
10702
10702
  e.current = t;
@@ -10785,7 +10785,7 @@ function fy(t, e) {
10785
10785
  updateColumnState: E,
10786
10786
  isColumnStateLoading: k,
10787
10787
  updateAttributes: P,
10788
- clearAttributes: $,
10788
+ clearAttributes: N,
10789
10789
  colorsForResults: q,
10790
10790
  statusForResults: H
10791
10791
  } = Fs({
@@ -10796,7 +10796,7 @@ function fy(t, e) {
10796
10796
  model: n
10797
10797
  }) : void 0,
10798
10798
  tableRef: y
10799
- }), N = te(() => D || [], [D]), V = w == null ? void 0 : w.isExpandable, {
10799
+ }), $ = te(() => D || [], [D]), V = w == null ? void 0 : w.isExpandable, {
10800
10800
  searchVisible: G,
10801
10801
  searchValues: K,
10802
10802
  selectedRowKeys: U,
@@ -10821,7 +10821,7 @@ function fy(t, e) {
10821
10821
  currentPage: ve,
10822
10822
  limit: Ae,
10823
10823
  order: we,
10824
- setTreeFirstVisibleColumn: Ne,
10824
+ setTreeFirstVisibleColumn: $e,
10825
10825
  onGetFirstVisibleColumn: ze,
10826
10826
  onSortChange: Oe,
10827
10827
  isFieldLoading: Pe,
@@ -10842,14 +10842,14 @@ function fy(t, e) {
10842
10842
  context: d,
10843
10843
  onChangeTreeType: p,
10844
10844
  updateAttributes: P,
10845
- clearAttributes: $,
10845
+ clearAttributes: N,
10846
10846
  colorsForResults: q,
10847
10847
  statusForResults: H,
10848
10848
  disablePagination: m || V,
10849
10849
  autoRefresh: v
10850
10850
  }), Je = te(() => {
10851
10851
  const st = He !== void 0;
10852
- return N.map((Mt) => ({
10852
+ return $.map((Mt) => ({
10853
10853
  ...Mt,
10854
10854
  isSortable: st ? !1 : Mt.isSortable,
10855
10855
  render: (xt, cn) => /* @__PURE__ */ s(
@@ -10862,7 +10862,7 @@ function fy(t, e) {
10862
10862
  }
10863
10863
  )
10864
10864
  }));
10865
- }, [Pe, N, He]), { handleExpandableRowDoubleClick: ke } = cy({
10865
+ }, [Pe, $, He]), { handleExpandableRowDoubleClick: ke } = cy({
10866
10866
  treeView: w,
10867
10867
  currentModel: n,
10868
10868
  parentContext: d
@@ -10932,7 +10932,7 @@ function fy(t, e) {
10932
10932
  }
10933
10933
  ),
10934
10934
  /* @__PURE__ */ s("div", { ref: b, style: De, children: T ? /* @__PURE__ */ s(ot, {}) : /* @__PURE__ */ s(
10935
- Ns,
10935
+ $s,
10936
10936
  {
10937
10937
  columns: Je,
10938
10938
  treeOoui: _,
@@ -10947,7 +10947,7 @@ function fy(t, e) {
10947
10947
  setTreeFirstVisibleRow: ie,
10948
10948
  onGetFirstVisibleRowIndex: Z,
10949
10949
  onGetFirstVisibleColumn: ze,
10950
- setTreeFirstVisibleColumn: Ne,
10950
+ setTreeFirstVisibleColumn: $e,
10951
10951
  footerComp: Ie,
10952
10952
  statusComp: de,
10953
10953
  onRowStatus: ne,
@@ -10983,7 +10983,7 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
10983
10983
  availableViews: p,
10984
10984
  searchTreeNameSearch: m,
10985
10985
  limit: g
10986
- } = t, h = X(e), [v, y] = F(xn), { treeMaxLimit: b, globalValues: x } = Jt(), { setLimit: C } = Nt();
10986
+ } = t, h = X(e), [v, y] = F(xn), { treeMaxLimit: b, globalValues: x } = Jt(), { setLimit: C } = $t();
10987
10987
  We(() => {
10988
10988
  const j = Wa({
10989
10989
  treeView: a,
@@ -11005,15 +11005,15 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11005
11005
  setSearchParams: E,
11006
11006
  setSearchValues: k,
11007
11007
  searchParams: P,
11008
- isActive: $
11009
- } = ye(Ot), { token: q } = py(), { t: H } = Fe(), N = qt(
11008
+ isActive: N
11009
+ } = ye(Ot), { token: q } = py(), { t: H } = Fe(), $ = qt(
11010
11010
  St.FEATURE_SAVED_SEARCHES
11011
11011
  ), [V] = Me(
11012
11012
  B.getHandler().searchAllIds
11013
11013
  ), [G] = Me(
11014
11014
  B.getHandler().readEvalUiObjects
11015
11015
  ), K = I(async () => {
11016
- if (!N || !r)
11016
+ if (!$ || !r)
11017
11017
  return D == null || D([]), _ == null || _(null), [];
11018
11018
  try {
11019
11019
  const j = await V({
@@ -11038,7 +11038,7 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11038
11038
  return console.error("Error fetching saved searches:", j), D == null || D([]), _ == null || _(null), [];
11039
11039
  }
11040
11040
  }, [
11041
- N,
11041
+ $,
11042
11042
  r,
11043
11043
  o,
11044
11044
  x,
@@ -11052,18 +11052,18 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11052
11052
  }, [v]), ce(() => {
11053
11053
  K();
11054
11054
  }, []);
11055
- const U = X($);
11055
+ const U = X(N);
11056
11056
  ce(() => {
11057
- $ && !U.current && N && K(), U.current = $;
11058
- }, [$]), ce(() => {
11059
- if (N && M && M.length > 0 && P && !R) {
11057
+ N && !U.current && $ && K(), U.current = N;
11058
+ }, [N]), ce(() => {
11059
+ if ($ && M && M.length > 0 && P && !R) {
11060
11060
  const j = M.find(
11061
11061
  (fe) => nr(fe.domain, P)
11062
11062
  );
11063
11063
  j && (_ == null || _(j));
11064
11064
  }
11065
11065
  }, [
11066
- N,
11066
+ $,
11067
11067
  M,
11068
11068
  P,
11069
11069
  R,
@@ -11201,7 +11201,7 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11201
11201
  }
11202
11202
  ) }),
11203
11203
  v === "infinite" && /* @__PURE__ */ s(
11204
- $s,
11204
+ Ns,
11205
11205
  {
11206
11206
  ref: n,
11207
11207
  rootTree: !0,
@@ -11280,11 +11280,11 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11280
11280
  permissions: E,
11281
11281
  permissionsLoading: k,
11282
11282
  permissionsError: P
11283
- } = t, [$, q] = F(!1), [H, N] = F(!1), [V, G] = F(!1), [K, U] = F(!0), [W, ne] = F(!0), [Z, ie] = F([]), [ue, j] = F(!1), [fe, z] = F(
11283
+ } = t, [N, q] = F(!1), [H, $] = F(!1), [V, G] = F(!1), [K, U] = F(!0), [W, ne] = F(!0), [Z, ie] = F([]), [ue, j] = F(!1), [fe, z] = F(
11284
11284
  D || []
11285
11285
  ), [Q, ae] = F(!1), [Y, me] = F(!0), [he, oe] = F(), le = te(() => !i || i.length === 0 ? (n == null ? void 0 : n.fields) || {} : i.reduce((De, nt) => ({ ...De, ...nt.fields || {} }), {}), [i, n]), [re, pe] = F(
11286
11286
  al(D || [], le)
11287
- ), [_e, ve] = F(0), [Ae, we] = F(void 0), [Ne, ze] = F(), [Oe, Pe] = F(xn), [Re, Ze] = F(
11287
+ ), [_e, ve] = F(0), [Ae, we] = F(void 0), [$e, ze] = F(), [Oe, Pe] = F(xn), [Re, Ze] = F(
11288
11288
  S
11289
11289
  ), [He, Ke] = F(
11290
11290
  R !== void 0 ? R : At
@@ -11320,10 +11320,10 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11320
11320
  currentView: n,
11321
11321
  setCurrentView: o,
11322
11322
  availableViews: i,
11323
- formIsSaving: $,
11323
+ formIsSaving: N,
11324
11324
  setFormIsSaving: q,
11325
11325
  formHasChanges: H,
11326
- setFormHasChanges: N,
11326
+ setFormHasChanges: $,
11327
11327
  formRef: a,
11328
11328
  searchTreeRef: c,
11329
11329
  onFormSave: de,
@@ -11372,7 +11372,7 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11372
11372
  treeFirstVisibleRow: _e,
11373
11373
  treeFirstVisibleColumn: Ae,
11374
11374
  setTreeFirstVisibleColumn: we,
11375
- searchQuery: Ne,
11375
+ searchQuery: $e,
11376
11376
  setSearchQuery: ze,
11377
11377
  treeType: Oe,
11378
11378
  setTreeType: Pe,
@@ -11391,7 +11391,7 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11391
11391
  children: e
11392
11392
  }
11393
11393
  );
11394
- }, gy = () => !!ye(Ot), Nt = () => {
11394
+ }, gy = () => !!ye(Ot), $t = () => {
11395
11395
  const t = ye(Ot);
11396
11396
  return t || {
11397
11397
  title: "",
@@ -11695,7 +11695,7 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11695
11695
  wrap: !1,
11696
11696
  children: [
11697
11697
  /* @__PURE__ */ s(
11698
- $e,
11698
+ Ne,
11699
11699
  {
11700
11700
  flex: "auto",
11701
11701
  className: "draggable-head",
@@ -11721,7 +11721,7 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11721
11721
  )
11722
11722
  }
11723
11723
  ),
11724
- r && /* @__PURE__ */ s($e, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ s(Xe, { justify: "end", align: "middle", children: /* @__PURE__ */ s(
11724
+ r && /* @__PURE__ */ s(Ne, { flex: "25px", style: { padding: "0.5rem" }, children: /* @__PURE__ */ s(Xe, { justify: "end", align: "middle", children: /* @__PURE__ */ s(
11725
11725
  wa,
11726
11726
  {
11727
11727
  style: { cursor: "pointer" },
@@ -11733,8 +11733,8 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11733
11733
  ]
11734
11734
  }
11735
11735
  ),
11736
- !d && /* @__PURE__ */ s("div", { style: { padding: 10 }, children: /* @__PURE__ */ s(Nr, { children: n }) }),
11737
- d && /* @__PURE__ */ s(Nr, { children: n })
11736
+ !d && /* @__PURE__ */ s("div", { style: { padding: 10 }, children: /* @__PURE__ */ s($r, { children: n }) }),
11737
+ d && /* @__PURE__ */ s($r, { children: n })
11738
11738
  ]
11739
11739
  }
11740
11740
  );
@@ -11828,7 +11828,7 @@ const uc = Bt(fy), { useToken: py } = tt, xn = "legacy", my = (t) => {
11828
11828
  cancelRequest: c
11829
11829
  };
11830
11830
  }, pc = (t) => {
11831
- const { model: e, fixedHeight: n, autoRefresh: r } = t, [o, i] = F(), a = X(null), c = X(null), { isActive: l } = Nt(), d = rr();
11831
+ const { model: e, fixedHeight: n, autoRefresh: r } = t, [o, i] = F(), a = X(null), c = X(null), { isActive: l } = $t(), d = rr();
11832
11832
  ce(() => {
11833
11833
  f();
11834
11834
  }, [e]), ce(() => (c.current && (clearInterval(c.current), c.current = null), r && o && l !== !1 && d && (c.current = setInterval(async () => {
@@ -11865,7 +11865,7 @@ function Cy(t) {
11865
11865
  treeExpandable: l,
11866
11866
  fixedHeight: d,
11867
11867
  autoRefresh: f
11868
- } = t, [u, p] = F(!1), [m, g] = F(!1), [h, v] = F(), [y, b] = F(), [x, C] = F(), [w, O] = F(1), [T, A] = F(0), R = X(At), _ = X([]), [D, M] = F(0), [S, E] = F([]), [k, P] = F(void 0), [$, q] = F(), [H, N] = F(), [V, G] = F(), [K, U] = F(!1), [W, ne] = F(xn), Z = X([]), { treeMaxLimit: ie } = Jt(), ue = (oe) => {
11868
+ } = t, [u, p] = F(!1), [m, g] = F(!1), [h, v] = F(), [y, b] = F(), [x, C] = F(), [w, O] = F(1), [T, A] = F(0), R = X(At), _ = X([]), [D, M] = F(0), [S, E] = F([]), [k, P] = F(void 0), [N, q] = F(), [H, $] = F(), [V, G] = F(), [K, U] = F(!1), [W, ne] = F(xn), Z = X([]), { treeMaxLimit: ie } = Jt(), ue = (oe) => {
11869
11869
  U(!0), O(oe), A((oe - 1) * R.current);
11870
11870
  }, j = async () => {
11871
11871
  const oe = Z.current.length > 0 ? Z.current : i, le = sn(_.current, oe), { colors: re } = en(y), { totalItems: pe, results: _e, attrsEvaluated: ve } = await B.getHandler().searchForTree({
@@ -11880,7 +11880,7 @@ function Cy(t) {
11880
11880
  P(Gn(ve));
11881
11881
  const Ae = Bn({
11882
11882
  resultsToSort: _e,
11883
- sorter: $,
11883
+ sorter: N,
11884
11884
  fields: { ...y.fields, ...x.fields }
11885
11885
  });
11886
11886
  U(!1), E(Ae);
@@ -11890,7 +11890,7 @@ function Cy(t) {
11890
11890
  try {
11891
11891
  U(!0), await j();
11892
11892
  } catch (oe) {
11893
- N(JSON.stringify(oe));
11893
+ $(JSON.stringify(oe));
11894
11894
  }
11895
11895
  };
11896
11896
  ce(() => {
@@ -11953,7 +11953,7 @@ function Cy(t) {
11953
11953
  }, he = () => !y || !x ? null : (H && console.error(H), /* @__PURE__ */ L("div", { style: { overflowY: "scroll", padding: 4 }, children: [
11954
11954
  H && /* @__PURE__ */ s(_t, { className: "mt-10", message: H, type: "error", banner: !0 }),
11955
11955
  W === "infinite" && /* @__PURE__ */ s(
11956
- $s,
11956
+ Ns,
11957
11957
  {
11958
11958
  hideHeaders: !0,
11959
11959
  rootTree: !1,
@@ -11999,7 +11999,7 @@ function Cy(t) {
11999
11999
  loading: K,
12000
12000
  onRowClicked: me,
12001
12001
  colorsForResults: k,
12002
- sorter: $,
12002
+ sorter: N,
12003
12003
  onChangeSort: (oe) => {
12004
12004
  q == null || q(oe);
12005
12005
  const le = Bn({
@@ -12017,7 +12017,7 @@ function Cy(t) {
12017
12017
  }
12018
12018
  const mc = it(Cy), { useToken: Ty } = tt, Sy = 3 * 1e3, Fy = (t) => {
12019
12019
  const { ooui: e } = t, { refreshCounter: n } = Cr(), r = e.actionId !== void 0, o = e.actionField !== void 0;
12020
- return /* @__PURE__ */ s(Ye, { ooui: e, children: r || o ? /* @__PURE__ */ s(Nr, { children: /* @__PURE__ */ s(Iy, { ooui: e }, n) }) : /* @__PURE__ */ s(Ay, { ooui: e }, n) });
12020
+ return /* @__PURE__ */ s(Ye, { ooui: e, children: r || o ? /* @__PURE__ */ s($r, { children: /* @__PURE__ */ s(Iy, { ooui: e }, n) }) : /* @__PURE__ */ s(Ay, { ooui: e }, n) });
12021
12021
  }, Ay = (t) => {
12022
12022
  var T;
12023
12023
  const { token: e } = Ty(), { ooui: n, value: r } = t, { locale: o } = Fe(), { getContext: i } = Cr(), [a, c] = F(n.icon), [l, d] = F(n.color), [f, u] = F(null), [p, m] = F(!1), [g, h] = Me(
@@ -12173,7 +12173,7 @@ const mc = it(Cy), { useToken: Ty } = tt, Sy = 3 * 1e3, Fy = (t) => {
12173
12173
  fixedHeight: e,
12174
12174
  autoRefresh: n
12175
12175
  }) => {
12176
- const { initialView: r, views: o, model: i, domain: a, context: c, limit: l } = t, d = ao(St.FEATURE_READFORVIEW), f = d != null && d.isEnabled ? Vs : An, { openShortcut: u } = Fr(), p = X(null), m = X(null), { isActive: g } = Nt(), h = rr();
12176
+ const { initialView: r, views: o, model: i, domain: a, context: c, limit: l } = t, d = ao(St.FEATURE_READFORVIEW), f = d != null && d.isEnabled ? Vs : An, { openShortcut: u } = Fr(), p = X(null), m = X(null), { isActive: g } = $t(), h = rr();
12177
12177
  ce(() => (m.current && (clearInterval(m.current), m.current = null), n && p.current && r.type === "graph" && g !== !1 && h && (m.current = setInterval(() => {
12178
12178
  var y;
12179
12179
  (y = p.current) == null || y.refresh();
@@ -12310,8 +12310,8 @@ const mc = it(Cy), { useToken: Ty } = tt, Sy = 3 * 1e3, Fy = (t) => {
12310
12310
  D.push({ id: S, operation: "pendingLink" });
12311
12311
  }), O(D);
12312
12312
  }, R = (_) => {
12313
- const { label: D, closable: M, onClose: S } = _, E = ($) => {
12314
- $.preventDefault(), $.stopPropagation();
12313
+ const { label: D, closable: M, onClose: S } = _, E = (N) => {
12314
+ N.preventDefault(), N.stopPropagation();
12315
12315
  }, k = Tr(D), P = k && Xa(k);
12316
12316
  return /* @__PURE__ */ s(
12317
12317
  Ts,
@@ -12421,7 +12421,7 @@ const mc = it(Cy), { useToken: Ty } = tt, Sy = 3 * 1e3, Fy = (t) => {
12421
12421
  case "json":
12422
12422
  return Eb;
12423
12423
  case "comments_timeline":
12424
- return Nb;
12424
+ return $b;
12425
12425
  case "html_preview":
12426
12426
  return Vb;
12427
12427
  case "alert":
@@ -12462,10 +12462,10 @@ const mc = it(Cy), { useToken: Ty } = tt, Sy = 3 * 1e3, Fy = (t) => {
12462
12462
  r.push(new Qn({ string: "" }));
12463
12463
  }
12464
12464
  }), r;
12465
- }, $y = ({
12465
+ }, Ny = ({
12466
12466
  row: t,
12467
12467
  numberOfColumns: e
12468
- }) => t.map((n) => (n._mustExpand && (n.colspan = e), n)), Ny = (t, e) => {
12468
+ }) => t.map((n) => (n._mustExpand && (n.colspan = e), n)), $y = (t, e) => {
12469
12469
  const n = t.map((r) => r instanceof Qn && r.fieldForLabel || r instanceof nd ? "auto" : "1fr");
12470
12470
  if (n.length < e) {
12471
12471
  const r = e - n.length;
@@ -12486,7 +12486,7 @@ const mc = it(Cy), { useToken: Ty } = tt, Sy = 3 * 1e3, Fy = (t) => {
12486
12486
  i < o && (o = i);
12487
12487
  let a = !1, c = [];
12488
12488
  const l = r.map((u, p) => {
12489
- const m = u.filter((v) => !v.invisible), g = $y({
12489
+ const m = u.filter((v) => !v.invisible), g = Ny({
12490
12490
  row: m,
12491
12491
  numberOfColumns: o
12492
12492
  });
@@ -12509,7 +12509,7 @@ const mc = it(Cy), { useToken: Ty } = tt, Sy = 3 * 1e3, Fy = (t) => {
12509
12509
  },
12510
12510
  v.key
12511
12511
  )));
12512
- }), d = r.length === 1 ? Ny(c, o) : Vy(o, a);
12512
+ }), d = r.length === 1 ? $y(c, o) : Vy(o, a);
12513
12513
  return /* @__PURE__ */ s("div", { style: {
12514
12514
  display: "grid",
12515
12515
  gridTemplateColumns: n ? "auto" : d,
@@ -12655,7 +12655,7 @@ function Gy(t, e) {
12655
12655
  forcedValues: O = {},
12656
12656
  parentWidth: T,
12657
12657
  onMustRefreshParent: A
12658
- } = t, { t: R } = Fe(), [_, D] = F(!1), [M, S] = F(), [E, k] = F(), [P] = $t.useForm(), [$, q] = F(), [H, N] = F(), V = ye(hc), [G, K] = F(), [U, W] = F(!1), [ne, Z] = F(0), ie = X(), ue = X({}), j = X({}), fe = X(!1), z = X(!1), Q = X(!1), Y = (T !== void 0 ? T : G) < qy, me = ye(et), { activeId: he, getPlainValues: oe } = me || {}, le = X(!1), re = ye(
12658
+ } = t, { t: R } = Fe(), [_, D] = F(!1), [M, S] = F(), [E, k] = F(), [P] = Nt.useForm(), [N, q] = F(), [H, $] = F(), V = ye(hc), [G, K] = F(), [U, W] = F(!1), [ne, Z] = F(0), ie = X(), ue = X({}), j = X({}), fe = X(!1), z = X(!1), Q = X(!1), Y = (T !== void 0 ? T : G) < qy, me = ye(et), { activeId: he, getPlainValues: oe } = me || {}, le = X(!1), re = ye(
12659
12659
  Ot
12660
12660
  ), {
12661
12661
  setFormIsSaving: pe = void 0,
@@ -12663,7 +12663,7 @@ function Gy(t, e) {
12663
12663
  setCurrentId: ve = void 0,
12664
12664
  setFormIsLoading: Ae = void 0,
12665
12665
  setAttachments: we = void 0,
12666
- title: Ne = void 0,
12666
+ title: $e = void 0,
12667
12667
  setTitle: ze = void 0,
12668
12668
  isActive: Oe = void 0
12669
12669
  } = (C ? re : {}) || {}, Pe = ye(
@@ -12779,7 +12779,7 @@ function Gy(t, e) {
12779
12779
  ).length !== 0, gt = I(
12780
12780
  (J) => {
12781
12781
  const se = P.getFieldsValue(!0);
12782
- return Nn(se, J);
12782
+ return $n(se, J);
12783
12783
  },
12784
12784
  [P]
12785
12785
  ), yt = I(() => {
@@ -12801,7 +12801,7 @@ function Gy(t, e) {
12801
12801
  ]), Rn = (J, se) => {
12802
12802
  Yt({
12803
12803
  values: {
12804
- ...Nn(P.getFieldsValue(!0), H),
12804
+ ...$n(P.getFieldsValue(!0), H),
12805
12805
  [J]: se
12806
12806
  },
12807
12807
  fields: H,
@@ -12821,7 +12821,7 @@ function Gy(t, e) {
12821
12821
  try {
12822
12822
  g ? J = { arch: g.arch, fields: g.fields } : J = await _n();
12823
12823
  const { fields: se, arch: Ce } = J;
12824
- N(se), q(Ce), await Vt({
12824
+ $(se), q(Ce), await Vt({
12825
12825
  fields: se,
12826
12826
  arch: Ce
12827
12827
  });
@@ -12831,10 +12831,10 @@ function Gy(t, e) {
12831
12831
  }, Vt = async (J) => {
12832
12832
  Z((mt) => mt + 1);
12833
12833
  let se, Ce, Te, je;
12834
- Ae == null || Ae(!0), S(void 0), ee(), J != null && J.fields ? (Ce = J.fields, Te = J.arch) : (Ce = H, Te = $), m && (J == null ? void 0 : J.forceRefresh) !== !0 ? se = m : { values: se, defaultGetCalled: je } = await On({
12834
+ Ae == null || Ae(!0), S(void 0), ee(), J != null && J.fields ? (Ce = J.fields, Te = J.arch) : (Ce = H, Te = N), m && (J == null ? void 0 : J.forceRefresh) !== !0 ? se = m : { values: se, defaultGetCalled: je } = await On({
12835
12835
  fields: Ce,
12836
12836
  arch: Te
12837
- }), b && (se = { ...cf(b), ...se }), ue.current = Nn(se, Ce), Yt({
12837
+ }), b && (se = { ...cf(b), ...se }), ue.current = $n(se, Ce), Yt({
12838
12838
  values: se,
12839
12839
  fields: Ce,
12840
12840
  reset: !0,
@@ -12870,7 +12870,7 @@ function Gy(t, e) {
12870
12870
  reset: Ce,
12871
12871
  isDefaultGet: Te = !1
12872
12872
  }) => {
12873
- const mt = { ...Ce ? {} : P.getFieldsValue(!0), ...J }, yo = Nn(mt, se), Lc = Object.keys(se).map((vo) => ({
12873
+ const mt = { ...Ce ? {} : P.getFieldsValue(!0), ...J }, yo = $n(mt, se), Lc = Object.keys(se).map((vo) => ({
12874
12874
  name: vo,
12875
12875
  touched: !1,
12876
12876
  value: yo[vo] !== void 0 ? yo[vo] : void 0
@@ -13011,9 +13011,9 @@ function Gy(t, e) {
13011
13011
  values: Ce,
13012
13012
  operationInProgress: Te
13013
13013
  });
13014
- k(je), je.string && je.string !== Ne && (ze == null || ze(je.string)), V && je.string && ((mt = V.setTitle) == null || mt.call(V, je.string));
13014
+ k(je), je.string && je.string !== $e && (ze == null || ze(je.string)), V && je.string && ((mt = V.setTitle) == null || mt.call(V, je.string));
13015
13015
  },
13016
- [V, rt, ze, Ne]
13016
+ [V, rt, ze, $e]
13017
13017
  ), kt = async ({
13018
13018
  elementHasLostFocus: J = !1
13019
13019
  }) => {
@@ -13039,7 +13039,7 @@ function Gy(t, e) {
13039
13039
  "many2one"
13040
13040
  ]
13041
13041
  }) && J !== !0)) {
13042
- const Te = Nn(P.getFieldsValue(!0), H);
13042
+ const Te = $n(P.getFieldsValue(!0), H);
13043
13043
  j.current = Te, l == null || l(Te), _e == null || _e(!0), Object.keys(Te).forEach((je) => {
13044
13044
  Ve(je);
13045
13045
  }), Dn(Ce);
@@ -13058,7 +13058,7 @@ function Gy(t, e) {
13058
13058
  if (!se) {
13059
13059
  ut({
13060
13060
  fields: H,
13061
- arch: $,
13061
+ arch: N,
13062
13062
  values: gt(H)
13063
13063
  });
13064
13064
  return;
@@ -13090,7 +13090,7 @@ function Gy(t, e) {
13090
13090
  });
13091
13091
  ut({
13092
13092
  fields: H,
13093
- arch: $,
13093
+ arch: N,
13094
13094
  values: mt
13095
13095
  }), Yt({
13096
13096
  values: mt,
@@ -13122,9 +13122,9 @@ function Gy(t, e) {
13122
13122
  });
13123
13123
  ut({
13124
13124
  fields: je,
13125
- arch: $,
13125
+ arch: N,
13126
13126
  values: gt(je)
13127
- }), N(je);
13127
+ }), $(je);
13128
13128
  }
13129
13129
  };
13130
13130
  async function sr({
@@ -13202,26 +13202,26 @@ function Gy(t, e) {
13202
13202
  function Mn(J) {
13203
13203
  ut({
13204
13204
  fields: H,
13205
- arch: $,
13205
+ arch: N,
13206
13206
  values: gt(H),
13207
13207
  operationInProgress: J
13208
13208
  });
13209
13209
  }
13210
13210
  const go = I(
13211
13211
  (J) => {
13212
- if (!$)
13212
+ if (!N)
13213
13213
  return;
13214
13214
  const se = { ...gt(H), ...J };
13215
13215
  ue.current = {
13216
13216
  ...ue.current,
13217
13217
  ...J
13218
- }, ut({ fields: H, arch: $, values: se }), Yt({
13218
+ }, ut({ fields: H, arch: N, values: se }), Yt({
13219
13219
  values: se,
13220
13220
  fields: H,
13221
13221
  reset: !1
13222
13222
  });
13223
13223
  },
13224
- [$, Yt, H, gt, ut]
13224
+ [N, Yt, H, gt, ut]
13225
13225
  );
13226
13226
  Uy({
13227
13227
  model: n,
@@ -13285,7 +13285,7 @@ function Gy(t, e) {
13285
13285
  clearAllFieldMessages: ee,
13286
13286
  refreshCounter: ne,
13287
13287
  children: /* @__PURE__ */ s(
13288
- $t,
13288
+ Nt,
13289
13289
  {
13290
13290
  form: P,
13291
13291
  onFieldsChange: () => {
@@ -13387,7 +13387,7 @@ const or = Bt(Gy), In = (t) => {
13387
13387
  }
13388
13388
  function A() {
13389
13389
  return /* @__PURE__ */ L(Xe, { align: "middle", children: [
13390
- !w && /* @__PURE__ */ s($e, { children: /* @__PURE__ */ s(
13390
+ !w && /* @__PURE__ */ s(Ne, { children: /* @__PURE__ */ s(
13391
13391
  Ge,
13392
13392
  {
13393
13393
  type: m ? "primary" : "default",
@@ -13396,7 +13396,7 @@ const or = Bt(Gy), In = (t) => {
13396
13396
  onClick: T
13397
13397
  }
13398
13398
  ) }),
13399
- /* @__PURE__ */ s($e, { style: { paddingLeft: w ? 0 : 10 }, children: u })
13399
+ /* @__PURE__ */ s(Ne, { style: { paddingLeft: w ? 0 : 10 }, children: u })
13400
13400
  ] });
13401
13401
  }
13402
13402
  const R = f * 0.95;
@@ -13471,7 +13471,7 @@ const or = Bt(Gy), In = (t) => {
13471
13471
  }
13472
13472
  O(f);
13473
13473
  }, [f, T, O]), _ = te(
13474
- () => w ? $s : dc,
13474
+ () => w ? Ns : dc,
13475
13475
  [w]
13476
13476
  ), D = I(() => {
13477
13477
  d(!0);
@@ -13629,11 +13629,11 @@ const or = Bt(Gy), In = (t) => {
13629
13629
  getContext: _,
13630
13630
  elementHasLostFocus: D,
13631
13631
  getAllHierarchyValues: M
13632
- } = T || {}, S = X([]), [E, k] = F([]), { showErrorNotification: P } = wt(), { permissions: $ } = Gr({
13632
+ } = T || {}, S = X([]), [E, k] = F([]), { showErrorNotification: P } = wt(), { permissions: N } = Gr({
13633
13633
  model: i,
13634
13634
  permissions: ["create", "write"],
13635
13635
  enabled: !0
13636
- }), q = ($ == null ? void 0 : $.create) ?? !1, H = ($ == null ? void 0 : $.write) ?? !1, N = r.showSearch ?? !0, V = e && e[0] || void 0, G = e && e[1] || "";
13636
+ }), q = (N == null ? void 0 : N.create) ?? !1, H = (N == null ? void 0 : N.write) ?? !1, $ = r.showSearch ?? !0, V = e && e[0] || void 0, G = e && e[1] || "";
13637
13637
  ce(() => {
13638
13638
  !Array.isArray(e) && e && Z(e);
13639
13639
  }, [e]), ce(() => {
@@ -13726,7 +13726,7 @@ const or = Bt(Gy), In = (t) => {
13726
13726
  return z === !0 && (Y = !1), r.showMenu !== void 0 && (Y = r.showMenu), Y;
13727
13727
  }, [r.showMenu, z]);
13728
13728
  return /* @__PURE__ */ L(Xe, { gutter: 8, wrap: !1, children: [
13729
- /* @__PURE__ */ s($e, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ s(
13729
+ /* @__PURE__ */ s(Ne, { flex: "auto", style: { paddingRight: 0 }, children: /* @__PURE__ */ s(
13730
13730
  j,
13731
13731
  {
13732
13732
  type: "text",
@@ -13735,7 +13735,7 @@ const or = Bt(Gy), In = (t) => {
13735
13735
  onChange: U,
13736
13736
  style: {
13737
13737
  ...f,
13738
- ...N || Q ? { borderTopRightRadius: 0, borderBottomRightRadius: 0 } : {}
13738
+ ...$ || Q ? { borderTopRightRadius: 0, borderBottomRightRadius: 0 } : {}
13739
13739
  },
13740
13740
  onBlur: W,
13741
13741
  onKeyDown: ue,
@@ -13749,7 +13749,7 @@ const or = Bt(Gy), In = (t) => {
13749
13749
  )
13750
13750
  }
13751
13751
  ) }),
13752
- Q && /* @__PURE__ */ s($e, { flex: "none", style: { paddingRight: 0, paddingLeft: 0 }, children: /* @__PURE__ */ s(
13752
+ Q && /* @__PURE__ */ s(Ne, { flex: "none", style: { paddingRight: 0, paddingLeft: 0 }, children: /* @__PURE__ */ s(
13753
13753
  Ge,
13754
13754
  {
13755
13755
  icon: /* @__PURE__ */ s(as, {}),
@@ -13757,11 +13757,11 @@ const or = Bt(Gy), In = (t) => {
13757
13757
  onClick: () => {
13758
13758
  g(!0);
13759
13759
  },
13760
- style: N ? { borderRadius: 0 } : { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 },
13760
+ style: $ ? { borderRadius: 0 } : { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 },
13761
13761
  tabIndex: -1
13762
13762
  }
13763
13763
  ) }),
13764
- N && /* @__PURE__ */ s($e, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ s(
13764
+ $ && /* @__PURE__ */ s(Ne, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ s(
13765
13765
  Ge,
13766
13766
  {
13767
13767
  icon: h ? /* @__PURE__ */ s(Kt, {}) : /* @__PURE__ */ s(xr, {}),
@@ -14101,14 +14101,14 @@ function tv(t) {
14101
14101
  C == null || C();
14102
14102
  },
14103
14103
  context: a === "tree" ? b : (ne = x == null ? void 0 : x.current) == null ? void 0 : ne.getContext()
14104
- }), { actionButtonProps: $, printButtonProps: q, relateButtonProps: H } = xc({
14104
+ }), { actionButtonProps: N, printButtonProps: q, relateButtonProps: H } = xc({
14105
14105
  toolbar: y,
14106
14106
  model: o,
14107
14107
  mustDisableButtons: n,
14108
14108
  formRef: x,
14109
14109
  onRefreshParentValues: C
14110
14110
  }), {
14111
- actionButtonProps: N,
14111
+ actionButtonProps: $,
14112
14112
  printButtonProps: V
14113
14113
  } = fl({
14114
14114
  toolbar: y,
@@ -14212,7 +14212,7 @@ function tv(t) {
14212
14212
  rn,
14213
14213
  {
14214
14214
  icon: /* @__PURE__ */ s(Zr, {}),
14215
- ...a === "form" ? $ : N
14215
+ ...a === "form" ? N : $
14216
14216
  }
14217
14217
  )
14218
14218
  ] }),
@@ -14354,7 +14354,7 @@ const ov = (t) => {
14354
14354
  domain: g,
14355
14355
  fetchValues: h,
14356
14356
  getAllHierarchyValues: v
14357
- } = f || {}, { t: y } = Fe(), [b, x] = F(!1), [C, w] = F(!1), [O, T] = F(), [A, R] = F(!1), [_, D] = F(!1), [M, S] = F(), [E, k] = F([]), [P, $] = F(!1), [q, H] = F([]), [N, V] = F(), G = X(), [K, U] = F(void 0), W = X(), {
14357
+ } = f || {}, { t: y } = Fe(), [b, x] = F(!1), [C, w] = F(!1), [O, T] = F(), [A, R] = F(!1), [_, D] = F(!1), [M, S] = F(), [E, k] = F([]), [P, N] = F(!1), [q, H] = F([]), [$, V] = F(), G = X(), [K, U] = F(void 0), W = X(), {
14358
14358
  readOnly: ne,
14359
14359
  relation: Z,
14360
14360
  context: ie,
@@ -14492,9 +14492,9 @@ const ov = (t) => {
14492
14492
  const { inv_field: ee } = r;
14493
14493
  let be;
14494
14494
  ee && u && (be = { [ee]: u }), a === "form" ? ve(() => {
14495
- $(!0), S({ defaultValues: be }), R(!0);
14496
- }) : ($(!0), S({ defaultValues: be }), R(!0));
14497
- }, Ne = async () => {
14495
+ N(!0), S({ defaultValues: be }), R(!0);
14496
+ }) : (N(!0), S({ defaultValues: be }), R(!0));
14497
+ }, $e = async () => {
14498
14498
  a === "form" ? ve(() => {
14499
14499
  D(!0);
14500
14500
  }) : D(!0);
@@ -14558,7 +14558,7 @@ const ov = (t) => {
14558
14558
  const { id: be } = ee;
14559
14559
  let ge = i;
14560
14560
  const Ie = i.find((de) => de.id === be);
14561
- (Ie == null ? void 0 : Ie.values) === void 0 && (ge = await he("form")), S(ge.find((de) => de.id === be)), $(!1), R(!0);
14561
+ (Ie == null ? void 0 : Ie.values) === void 0 && (ge = await he("form")), S(ge.find((de) => de.id === be)), N(!1), R(!0);
14562
14562
  }, Ze = async (ee) => {
14563
14563
  w(!0);
14564
14564
  const be = i, ge = ee.filter((Ie) => !i.find((de) => de.id === Ie));
@@ -14625,9 +14625,9 @@ const ov = (t) => {
14625
14625
  }
14626
14626
  );
14627
14627
  let ee = [];
14628
- if (z.some((De) => De.treeValues) && (ee = N ? Bn({
14628
+ if (z.some((De) => De.treeValues) && (ee = $ ? Bn({
14629
14629
  resultsToSort: z.map((De) => De.treeValues),
14630
- sorter: N,
14630
+ sorter: $,
14631
14631
  fields: {
14632
14632
  ...o.get("tree").fields,
14633
14633
  ...((Ie = o.get("form")) == null ? void 0 : Ie.fields) || {}
@@ -14645,7 +14645,7 @@ const ov = (t) => {
14645
14645
  showPagination: !1,
14646
14646
  selectedRowKeys: E,
14647
14647
  onRowSelectionChange: k,
14648
- sorter: N,
14648
+ sorter: $,
14649
14649
  onChangeSort: V,
14650
14650
  context: { ...m == null ? void 0 : m(), ...ie },
14651
14651
  colorsForResults: K,
@@ -14689,7 +14689,7 @@ const ov = (t) => {
14689
14689
  onToggleViewMode: le,
14690
14690
  onPreviousItem: re,
14691
14691
  onNextItem: pe,
14692
- onSearchItem: Ne,
14692
+ onSearchItem: $e,
14693
14693
  selectedRowKeys: E,
14694
14694
  showCreateButton: ((Se = o.get("form")) == null ? void 0 : Se.fields) !== void 0,
14695
14695
  showToggleButton: o.size > 1,
@@ -14715,7 +14715,7 @@ const ov = (t) => {
14715
14715
  onSubmitSucceed: Pe,
14716
14716
  parentContext: { ...m == null ? void 0 : m(), ...ie },
14717
14717
  onCancel: (ee) => {
14718
- if ($(!1), ee != null && ee.id && (ee != null && ee.values)) {
14718
+ if (N(!1), ee != null && ee.id && (ee != null && ee.values)) {
14719
14719
  const be = i.map(
14720
14720
  (ge) => ge.id === ee.id ? {
14721
14721
  ...ge,
@@ -15205,9 +15205,9 @@ const _c = ({
15205
15205
  treeType: y,
15206
15206
  onChangeTreeType: b
15207
15207
  }) => {
15208
- const x = X(null), C = d || x, w = X(), O = X(t), [T, A] = F(0), [R, _] = F(), [D, M] = F(0), S = X([]), [E, k] = F([]), [P, $] = F(!1), q = Ht(() => t.length, [t]), {
15208
+ const x = X(null), C = d || x, w = X(), O = X(t), [T, A] = F(0), [R, _] = F(), [D, M] = F(0), S = X([]), [E, k] = F([]), [P, N] = F(!1), q = Ht(() => t.length, [t]), {
15209
15209
  columns: H,
15210
- strings: N,
15210
+ strings: $,
15211
15211
  colorsForResults: V,
15212
15212
  statusForResults: G,
15213
15213
  onRowStyle: K,
@@ -15290,8 +15290,8 @@ const _c = ({
15290
15290
  ]
15291
15291
  ), he = I(async () => {
15292
15292
  if (y !== "paginated" || t.length === 0)
15293
- return $(!1), [];
15294
- $(!0);
15293
+ return N(!1), [];
15294
+ N(!0);
15295
15295
  try {
15296
15296
  const Se = Yn({
15297
15297
  state: S.current
@@ -15312,7 +15312,7 @@ const _c = ({
15312
15312
  const ge = Ve.map((Ie) => Ie.id).filter(Boolean);
15313
15313
  return ge.length > 0 && ae(ge), Ve;
15314
15314
  } finally {
15315
- $(!1);
15315
+ N(!1);
15316
15316
  }
15317
15317
  }, [
15318
15318
  y,
@@ -15330,7 +15330,7 @@ const _c = ({
15330
15330
  w.current = t;
15331
15331
  return;
15332
15332
  }
15333
- w.current = t, j(), y === "paginated" ? (M((ee) => ee + 1), t.length > 0 ? he().then(k) : (k([]), $(!1))) : (Se = C == null ? void 0 : C.current) == null || Se.refresh(), (Ve = C == null ? void 0 : C.current) == null || Ve.unselectAll();
15333
+ w.current = t, j(), y === "paginated" ? (M((ee) => ee + 1), t.length > 0 ? he().then(k) : (k([]), N(!1))) : (Se = C == null ? void 0 : C.current) == null || Se.refresh(), (Ve = C == null ? void 0 : C.current) == null || Ve.unselectAll();
15334
15334
  }, [t, y]);
15335
15335
  const oe = I(() => {
15336
15336
  if (p) {
@@ -15346,7 +15346,7 @@ const _c = ({
15346
15346
  j(), y === "paginated" ? M((Ve) => Ve + 1) : (Se = C == null ? void 0 : C.current) == null || Se.refresh();
15347
15347
  }, [j, y, C]), _e = Wt(A), ve = Wt(
15348
15348
  _
15349
- ), Ae = Wt(Z), we = Wt(ne), Ne = Wt(W), ze = Wt(K), Oe = I(
15349
+ ), Ae = Wt(Z), we = Wt(ne), $e = Wt(W), ze = Wt(K), Oe = I(
15350
15350
  (Se) => {
15351
15351
  Se.selected ? l([...h, Se.id]) : l(
15352
15352
  h.filter((Ve) => Ve !== Se.id)
@@ -15393,7 +15393,7 @@ const _c = ({
15393
15393
  availableHeight: e || Qi,
15394
15394
  columns: Y,
15395
15395
  treeOoui: o,
15396
- strings: N,
15396
+ strings: $,
15397
15397
  isLoading: P,
15398
15398
  results: He,
15399
15399
  handleRowDoubleClick: ke,
@@ -15406,7 +15406,7 @@ const _c = ({
15406
15406
  setTreeFirstVisibleColumn: ve,
15407
15407
  footerComp: fe,
15408
15408
  statusComp: U,
15409
- onRowStatus: Ne,
15409
+ onRowStatus: $e,
15410
15410
  headerCheckboxState: Pe,
15411
15411
  onHeaderCheckboxClick: re,
15412
15412
  refresh: pe,
@@ -15440,12 +15440,12 @@ const _c = ({
15440
15440
  hasStatusColumn: o.status !== null,
15441
15441
  statusComponent: U,
15442
15442
  onRowStatus: W,
15443
- strings: N,
15443
+ strings: $,
15444
15444
  onChangeTableType: b
15445
15445
  }
15446
15446
  );
15447
15447
  }, lv = ["form", "tree", "graph"], cv = (t) => {
15448
- var we, Ne, ze;
15448
+ var we, $e, ze;
15449
15449
  const e = X(null), { value: n, onChange: r, ooui: o, views: i, treeType: a } = t, { items: c = [] } = n || {}, l = Rc({ one2manyItems: c }), { currentView: d, setCurrentView: f, itemIndex: u, setItemIndex: p, setTreeType: m } = ye(mn), {
15450
15450
  readOnly: g,
15451
15451
  relation: h,
@@ -15465,7 +15465,7 @@ const _c = ({
15465
15465
  selectedRowKeys: E,
15466
15466
  setSelectedRowKeys: k,
15467
15467
  onChangeFirstVisibleRowIndex: P,
15468
- onGetFirstVisibileRowIndex: $,
15468
+ onGetFirstVisibileRowIndex: N,
15469
15469
  onSelectionCheckboxClicked: q
15470
15470
  } = sv({
15471
15471
  treeView: i.get("tree"),
@@ -15476,7 +15476,7 @@ const _c = ({
15476
15476
  }), H = te(() => {
15477
15477
  const { title: Oe } = i.get(d) || {};
15478
15478
  return Oe || o.label;
15479
- }, [d, o.label, i]), N = o.type === "many2many", V = I(
15479
+ }, [d, o.label, i]), $ = o.type === "many2many", V = I(
15480
15480
  (Oe) => {
15481
15481
  var Pe, Re;
15482
15482
  r == null || r({
@@ -15531,7 +15531,7 @@ const _c = ({
15531
15531
  context: _,
15532
15532
  relation: h
15533
15533
  }), { showRemoveConfirm: he } = Ec({
15534
- isMany2many: N,
15534
+ isMany2many: $,
15535
15535
  items: l,
15536
15536
  triggerChange: V,
15537
15537
  setFormHasChanges: W,
@@ -15581,10 +15581,10 @@ const _c = ({
15581
15581
  {
15582
15582
  mode: d,
15583
15583
  title: H,
15584
- currentId: (Ne = l[u]) == null ? void 0 : Ne.id,
15584
+ currentId: ($e = l[u]) == null ? void 0 : $e.id,
15585
15585
  model: h,
15586
15586
  readOnly: g || !1,
15587
- isMany2Many: N,
15587
+ isMany2Many: $,
15588
15588
  formHasChanges: G,
15589
15589
  totalItems: l.length,
15590
15590
  currentItemIndex: u,
@@ -15622,7 +15622,7 @@ const _c = ({
15622
15622
  onRowSelectionChange: k,
15623
15623
  relation: h,
15624
15624
  onChangeFirstVisibleRowIndex: P,
15625
- onGetFirstVisibleRowIndex: $,
15625
+ onGetFirstVisibleRowIndex: N,
15626
15626
  selectedRowKeys: E,
15627
15627
  onSelectionCheckboxClicked: q,
15628
15628
  dataForHash: {
@@ -15775,12 +15775,12 @@ const _c = ({
15775
15775
  St.FEATURE_MANY2ONE_SORT
15776
15776
  );
15777
15777
  We(() => {
15778
- var P, $;
15778
+ var P, N;
15779
15779
  if (O.current = t, w.current === void 0) {
15780
15780
  w.current = t;
15781
15781
  return;
15782
15782
  }
15783
- w.current = t, (P = b == null ? void 0 : b.current) == null || P.refresh(), ($ = b == null ? void 0 : b.current) == null || $.unselectAll();
15783
+ w.current = t, (P = b == null ? void 0 : b.current) == null || P.refresh(), (N = b == null ? void 0 : b.current) == null || N.unselectAll();
15784
15784
  }, [t]);
15785
15785
  const R = Ht(() => t.length, [t]), _ = Ht(() => vs(
15786
15786
  o,
@@ -15792,24 +15792,24 @@ const _c = ({
15792
15792
  ), [i, o, A]), D = I(
15793
15793
  async ({
15794
15794
  startRow: P,
15795
- endRow: $,
15795
+ endRow: N,
15796
15796
  state: q
15797
15797
  }) => {
15798
15798
  const H = Yn({
15799
15799
  state: q
15800
- }), { results: N, colors: V, status: G } = await a({
15800
+ }), { results: $, colors: V, status: G } = await a({
15801
15801
  allItems: O.current,
15802
15802
  startRow: P,
15803
- endRow: $,
15803
+ endRow: N,
15804
15804
  sortFields: H
15805
15805
  });
15806
- return x.current = { ...x.current, ...V }, !C.current && G && (C.current = {}), G && (C.current = { ...C.current, ...G }), N;
15806
+ return x.current = { ...x.current, ...V }, !C.current && G && (C.current = {}), G && (C.current = { ...C.current, ...G }), $;
15807
15807
  },
15808
15808
  [a]
15809
15809
  ), M = I((P) => {
15810
- var $, q, H, N;
15811
- if (x.current[(q = ($ = P.node) == null ? void 0 : $.data) == null ? void 0 : q.id])
15812
- return { color: x.current[(N = (H = P.node) == null ? void 0 : H.data) == null ? void 0 : N.id] };
15810
+ var N, q, H, $;
15811
+ if (x.current[(q = (N = P.node) == null ? void 0 : N.data) == null ? void 0 : q.id])
15812
+ return { color: x.current[($ = (H = P.node) == null ? void 0 : H.data) == null ? void 0 : $.id] };
15813
15813
  }, []), { loading: S, getColumnState: E, updateColumnState: k } = vl({
15814
15814
  key: Dc({
15815
15815
  ...m,
@@ -15839,8 +15839,8 @@ const _c = ({
15839
15839
  hasStatusColumn: o.status !== null,
15840
15840
  statusComponent: (P) => /* @__PURE__ */ s(Xn, { color: P, style: { marginLeft: 7 } }),
15841
15841
  onRowStatus: (P) => {
15842
- var $;
15843
- return ($ = C.current) == null ? void 0 : $[P.id];
15842
+ var N;
15843
+ return (N = C.current) == null ? void 0 : N[P.id];
15844
15844
  },
15845
15845
  strings: {
15846
15846
  resetTableViewLabel: T("resetTableView")
@@ -15891,7 +15891,7 @@ const _c = ({
15891
15891
  context: A,
15892
15892
  allRowsIds: c.filter((we) => we.id !== void 0).map((we) => we.id),
15893
15893
  gridRef: e
15894
- }), [, $] = pv({
15894
+ }), [, N] = pv({
15895
15895
  ooui: _,
15896
15896
  model: m,
15897
15897
  items: c,
@@ -15899,11 +15899,11 @@ const _c = ({
15899
15899
  }), q = te(() => {
15900
15900
  const { title: we } = i.get(l) || {};
15901
15901
  return we || o.label;
15902
- }, [l, o.label, i]), H = o.type === "many2many", N = I(
15902
+ }, [l, o.label, i]), H = o.type === "many2many", $ = I(
15903
15903
  (we) => {
15904
- var Ne, ze;
15904
+ var $e, ze;
15905
15905
  r == null || r({
15906
- fields: ((Ne = i.get("form")) == null ? void 0 : Ne.fields) || ((ze = i.get("tree")) == null ? void 0 : ze.fields),
15906
+ fields: (($e = i.get("form")) == null ? void 0 : $e.fields) || ((ze = i.get("tree")) == null ? void 0 : ze.fields),
15907
15907
  items: we
15908
15908
  });
15909
15909
  },
@@ -15919,7 +15919,7 @@ const _c = ({
15919
15919
  treeView: i.get("tree"),
15920
15920
  relation: m,
15921
15921
  context: A,
15922
- triggerChange: N
15922
+ triggerChange: $
15923
15923
  }), {
15924
15924
  showFormModal: W,
15925
15925
  modalItem: ne,
@@ -15933,7 +15933,7 @@ const _c = ({
15933
15933
  inv_field: o.inv_field,
15934
15934
  showFormChangesDialogIfNeeded: K,
15935
15935
  currentView: l,
15936
- triggerChange: N,
15936
+ triggerChange: $,
15937
15937
  items: c,
15938
15938
  setCurrentView: d,
15939
15939
  setItemIndex: u,
@@ -15948,7 +15948,7 @@ const _c = ({
15948
15948
  } = Oc({
15949
15949
  showFormChangesDialogIfNeeded: K,
15950
15950
  currentView: l,
15951
- triggerChange: N,
15951
+ triggerChange: $,
15952
15952
  items: c,
15953
15953
  views: i,
15954
15954
  context: A,
@@ -15956,19 +15956,19 @@ const _c = ({
15956
15956
  }), { showRemoveConfirm: me } = Ec({
15957
15957
  isMany2many: H,
15958
15958
  items: c,
15959
- triggerChange: N,
15959
+ triggerChange: $,
15960
15960
  setFormHasChanges: U,
15961
15961
  selectedRowKeys: M,
15962
15962
  setSelectedRowKeys: S
15963
15963
  }), he = () => {
15964
- const we = Array.from(i.keys()), Ne = we[(we.indexOf(l) + 1) % we.length];
15964
+ const we = Array.from(i.keys()), $e = we[(we.indexOf(l) + 1) % we.length];
15965
15965
  l === "form" ? K(() => {
15966
- d(Ne);
15967
- }) : d(Ne);
15966
+ d($e);
15967
+ }) : d($e);
15968
15968
  }, oe = ct(
15969
15969
  (we) => {
15970
- var Ne;
15971
- (Ne = i.get("form")) != null && Ne.fields && fe(we);
15970
+ var $e;
15971
+ ($e = i.get("form")) != null && $e.fields && fe(we);
15972
15972
  },
15973
15973
  // eslint-disable-next-line react-hooks/exhaustive-deps
15974
15974
  [c]
@@ -16045,7 +16045,7 @@ const _c = ({
16045
16045
  treeViewId: t.treeViewId,
16046
16046
  one2ManyFieldName: v
16047
16047
  },
16048
- aggregates: $
16048
+ aggregates: N
16049
16049
  }
16050
16050
  ),
16051
16051
  l === "form" && /* @__PURE__ */ s(
@@ -16717,7 +16717,7 @@ const { useToken: Sv } = tt, { TextArea: Zo } = ht, Fv = (t) => {
16717
16717
  const i = r.split("/").length, a = o.split("/").length;
16718
16718
  return i - a;
16719
16719
  }), n;
16720
- }, $v = (t) => {
16720
+ }, Nv = (t) => {
16721
16721
  const {
16722
16722
  visible: e,
16723
16723
  onClose: n,
@@ -16759,10 +16759,10 @@ const { useToken: Sv } = tt, { TextArea: Zo } = ht, Fv = (t) => {
16759
16759
  onRemovePredefinedExport: h
16760
16760
  }
16761
16761
  );
16762
- }, Nv = (t) => {
16762
+ }, $v = (t) => {
16763
16763
  const { ooui: e, showTime: n = !1 } = t, { required: r, readOnly: o = !1, timezone: i } = e;
16764
16764
  return /* @__PURE__ */ s(Ye, { required: r, ...t, children: /* @__PURE__ */ s(
16765
- $d,
16765
+ Nd,
16766
16766
  {
16767
16767
  id: e._id,
16768
16768
  required: r,
@@ -16771,7 +16771,7 @@ const { useToken: Sv } = tt, { TextArea: Zo } = ht, Fv = (t) => {
16771
16771
  timezone: i
16772
16772
  }
16773
16773
  ) });
16774
- }, Pc = it(Nv), Vv = (t) => {
16774
+ }, Pc = it($v), Vv = (t) => {
16775
16775
  const { ooui: e } = t;
16776
16776
  return /* @__PURE__ */ s(Pc, { ooui: e });
16777
16777
  }, Lv = (t) => {
@@ -16806,7 +16806,7 @@ const { useToken: Sv } = tt, { TextArea: Zo } = ht, Fv = (t) => {
16806
16806
  const m = e && l && l[0], g = e && l && l[1] && parseInt(l[1]);
16807
16807
  f([g, void 0]), p(m);
16808
16808
  }, [e]), /* @__PURE__ */ L(Xe, { gutter: 8, wrap: !1, children: [
16809
- /* @__PURE__ */ s($e, { flex: "1", children: /* @__PURE__ */ s(
16809
+ /* @__PURE__ */ s(Ne, { flex: "1", children: /* @__PURE__ */ s(
16810
16810
  Ha,
16811
16811
  {
16812
16812
  ooui: new ss({
@@ -16825,7 +16825,7 @@ const { useToken: Sv } = tt, { TextArea: Zo } = ht, Fv = (t) => {
16825
16825
  value: u
16826
16826
  }
16827
16827
  ) }),
16828
- /* @__PURE__ */ s($e, { flex: "3", children: /* @__PURE__ */ s(
16828
+ /* @__PURE__ */ s(Ne, { flex: "3", children: /* @__PURE__ */ s(
16829
16829
  yc,
16830
16830
  {
16831
16831
  ooui: new pa({
@@ -16868,7 +16868,7 @@ const { useToken: Sv } = tt, { TextArea: Zo } = ht, Fv = (t) => {
16868
16868
  f(a, void 0), g(void 0);
16869
16869
  }
16870
16870
  return /* @__PURE__ */ L(Xe, { gutter: 8, children: [
16871
- /* @__PURE__ */ L($e, { style: { paddingBottom: 5 }, children: [
16871
+ /* @__PURE__ */ L(Ne, { style: { paddingBottom: 5 }, children: [
16872
16872
  /* @__PURE__ */ s(
16873
16873
  "input",
16874
16874
  {
@@ -16889,7 +16889,7 @@ const { useToken: Sv } = tt, { TextArea: Zo } = ht, Fv = (t) => {
16889
16889
  }
16890
16890
  )
16891
16891
  ] }),
16892
- /* @__PURE__ */ s($e, { children: /* @__PURE__ */ L(lt, { children: [
16892
+ /* @__PURE__ */ s(Ne, { children: /* @__PURE__ */ L(lt, { children: [
16893
16893
  /* @__PURE__ */ s(
16894
16894
  Ge,
16895
16895
  {
@@ -16944,7 +16944,7 @@ const { useToken: Sv } = tt, { TextArea: Zo } = ht, Fv = (t) => {
16944
16944
  {
16945
16945
  items: n.map((u) => {
16946
16946
  const p = u.link ? Ks : ls, m = /* @__PURE__ */ L(Xe, { wrap: !1, align: "middle", gutter: 8, children: [
16947
- /* @__PURE__ */ s($e, { style: { textAlign: "center" }, children: (u.datas_fname || u.link) && /* @__PURE__ */ s(
16947
+ /* @__PURE__ */ s(Ne, { style: { textAlign: "center" }, children: (u.datas_fname || u.link) && /* @__PURE__ */ s(
16948
16948
  Pt,
16949
16949
  {
16950
16950
  title: u.link ? l("openAttachmentLink") : l("download"),
@@ -16960,7 +16960,7 @@ const { useToken: Sv } = tt, { TextArea: Zo } = ht, Fv = (t) => {
16960
16960
  )
16961
16961
  }
16962
16962
  ) }),
16963
- /* @__PURE__ */ s($e, { style: { textAlign: "center" }, children: /* @__PURE__ */ s(Pt, { title: l("openAttachment"), children: /* @__PURE__ */ s(
16963
+ /* @__PURE__ */ s(Ne, { style: { textAlign: "center" }, children: /* @__PURE__ */ s(Pt, { title: l("openAttachment"), children: /* @__PURE__ */ s(
16964
16964
  ur,
16965
16965
  {
16966
16966
  style: { cursor: "pointer" },
@@ -17116,7 +17116,7 @@ const Kv = () => {
17116
17116
  setCurrentItemIndex: o,
17117
17117
  results: i,
17118
17118
  searchQuery: a
17119
- } = Nt(), [c, l] = Me(
17119
+ } = $t(), [c, l] = Me(
17120
17120
  B.getHandler().searchForTree
17121
17121
  );
17122
17122
  ce(() => () => {
@@ -17221,7 +17221,7 @@ function Jv({ toolbar: t }) {
17221
17221
  goToResourceId: E,
17222
17222
  isActive: k,
17223
17223
  permissions: P
17224
- } = Nt(), { openDefaultActionForModel: $ } = e || {}, q = te(
17224
+ } = $t(), { openDefaultActionForModel: N } = e || {}, q = te(
17225
17225
  () => p || C || A || w,
17226
17226
  [p, C, A, w]
17227
17227
  ), H = I(
@@ -17229,14 +17229,14 @@ function Jv({ toolbar: t }) {
17229
17229
  u ? tr({ t: n, onOk: j }) : j();
17230
17230
  },
17231
17231
  [u, n]
17232
- ), N = I(() => {
17232
+ ), $ = I(() => {
17233
17233
  H(() => _.current.fetchValues());
17234
17234
  }, [H, _]), { actionButtonProps: V, printButtonProps: G, relateButtonProps: K } = xc({
17235
17235
  toolbar: t,
17236
17236
  model: b,
17237
17237
  mustDisableButtons: q,
17238
17238
  formRef: _,
17239
- onRefreshParentValues: N
17239
+ onRefreshParentValues: $
17240
17240
  }), U = I(async () => {
17241
17241
  try {
17242
17242
  x == null || x(!0), await B.getHandler().deleteObjects({
@@ -17294,31 +17294,31 @@ function Jv({ toolbar: t }) {
17294
17294
  [l, S, D, d]
17295
17295
  ), Z = I(async () => {
17296
17296
  const j = await Wn({ onFormSave: f });
17297
- j.succeed && ($ == null || $({
17297
+ j.succeed && (N == null || N({
17298
17298
  ...ta(
17299
17299
  b,
17300
17300
  j.currentId
17301
17301
  ),
17302
17302
  initialViewType: "form"
17303
17303
  }));
17304
- }, [b, f, $]), ie = I(async () => {
17304
+ }, [b, f, N]), ie = I(async () => {
17305
17305
  const j = await Wn({ onFormSave: f });
17306
- j.succeed && ($ == null || $({
17306
+ j.succeed && (N == null || N({
17307
17307
  ...ta(
17308
17308
  b,
17309
17309
  j.currentId
17310
17310
  ),
17311
17311
  initialViewType: "tree"
17312
17312
  }));
17313
- }, [b, f, $]), ue = I(
17313
+ }, [b, f, N]), ue = I(
17314
17314
  async (j) => {
17315
- (await Wn({ onFormSave: f })).succeed && ($ == null || $({
17315
+ (await Wn({ onFormSave: f })).succeed && (N == null || N({
17316
17316
  model: "ir.attachment",
17317
17317
  res_id: j.id,
17318
17318
  initialViewType: "form"
17319
17319
  }));
17320
17320
  },
17321
- [f, $]
17321
+ [f, N]
17322
17322
  );
17323
17323
  return yn(
17324
17324
  "pagedown",
@@ -17414,7 +17414,7 @@ function Jv({ toolbar: t }) {
17414
17414
  icon: /* @__PURE__ */ s(Qr, {}),
17415
17415
  tooltip: n("refresh"),
17416
17416
  disabled: q || m === void 0,
17417
- onClick: N
17417
+ onClick: $
17418
17418
  }
17419
17419
  ),
17420
17420
  /* @__PURE__ */ s(bt, {}),
@@ -17431,7 +17431,7 @@ function Jv({ toolbar: t }) {
17431
17431
  ),
17432
17432
  /* @__PURE__ */ s(bt, {}),
17433
17433
  /* @__PURE__ */ s(
17434
- $c,
17434
+ Nc,
17435
17435
  {
17436
17436
  disabled: q || i,
17437
17437
  onPreviousClick: o,
@@ -17457,7 +17457,7 @@ function Jv({ toolbar: t }) {
17457
17457
  /* @__PURE__ */ s(lo, { res_id: m })
17458
17458
  ] }) : null;
17459
17459
  }
17460
- const Xv = it(Jv), $c = it(
17460
+ const Xv = it(Jv), Nc = it(
17461
17461
  ({
17462
17462
  disabled: t,
17463
17463
  onPreviousClick: e,
@@ -17487,7 +17487,7 @@ const Xv = it(Jv), $c = it(
17487
17487
  ] });
17488
17488
  }
17489
17489
  );
17490
- $c.displayName = "NavigationButtons";
17490
+ Nc.displayName = "NavigationButtons";
17491
17491
  const ta = (t, e) => ({
17492
17492
  model: "ir.attachment",
17493
17493
  domain: [
@@ -17496,7 +17496,7 @@ const ta = (t, e) => ({
17496
17496
  ],
17497
17497
  values: { selection_associated_object: `${t},${e}` },
17498
17498
  forced_values: { res_model: t, res_id: e }
17499
- }), { useToken: Qv } = tt, Nc = (t) => {
17499
+ }), { useToken: Qv } = tt, $c = (t) => {
17500
17500
  const { ooui: e, value: n, onChange: r, valueValidator: o, linkPrefix: i = "" } = t, { id: a, readOnly: c, required: l } = e, { token: d } = Qv(), f = l && !c ? { backgroundColor: d.colorPrimaryBg } : void 0, u = ye(et), { elementHasLostFocus: p } = u || {}, [m, g] = F(!1), [h, v] = F(!1);
17501
17501
  ce(() => {
17502
17502
  c && !m && v(!1), !n && !c && (g(!0), v(!0));
@@ -17505,7 +17505,7 @@ const ta = (t, e) => ({
17505
17505
  r == null || r(b.target.value);
17506
17506
  };
17507
17507
  return /* @__PURE__ */ L(Xe, { gutter: 8, wrap: !1, align: "middle", children: [
17508
- c ? null : /* @__PURE__ */ s($e, { flex: "none", style: { paddingRight: 0 }, children: m ? /* @__PURE__ */ s(
17508
+ c ? null : /* @__PURE__ */ s(Ne, { flex: "none", style: { paddingRight: 0 }, children: m ? /* @__PURE__ */ s(
17509
17509
  Ge,
17510
17510
  {
17511
17511
  icon: /* @__PURE__ */ s(Zn, {}),
@@ -17526,7 +17526,7 @@ const ta = (t, e) => ({
17526
17526
  tabIndex: -1
17527
17527
  }
17528
17528
  ) }),
17529
- /* @__PURE__ */ s($e, { flex: "auto", style: { paddingLeft: 0 }, children: h ? /* @__PURE__ */ s(
17529
+ /* @__PURE__ */ s(Ne, { flex: "auto", style: { paddingLeft: 0 }, children: h ? /* @__PURE__ */ s(
17530
17530
  ht,
17531
17531
  {
17532
17532
  style: {
@@ -17555,7 +17555,7 @@ const ta = (t, e) => ({
17555
17555
  }, Zv = (t) => {
17556
17556
  const { ooui: e } = t, { required: n } = e;
17557
17557
  return /* @__PURE__ */ s(Ye, { required: n, ...t, children: /* @__PURE__ */ s(
17558
- Nc,
17558
+ $c,
17559
17559
  {
17560
17560
  ooui: e,
17561
17561
  valueValidator: (r) => r ? Xd(r) : !1
@@ -17564,7 +17564,7 @@ const ta = (t, e) => ({
17564
17564
  }, eb = (t) => {
17565
17565
  const { ooui: e } = t, { required: n } = e;
17566
17566
  return /* @__PURE__ */ s(Ye, { required: n, ...t, children: e.multi ? /* @__PURE__ */ s(_p, { readonly: e.readOnly, maxLength: e.size }) : /* @__PURE__ */ s(
17567
- Nc,
17567
+ $c,
17568
17568
  {
17569
17569
  ooui: e,
17570
17570
  linkPrefix: "mailto:",
@@ -17592,9 +17592,9 @@ const ta = (t, e) => ({
17592
17592
  var f;
17593
17593
  return d && ((f = a.current) == null ? void 0 : f.focus());
17594
17594
  },
17595
- children: /* @__PURE__ */ L($t, { layout: "vertical", onFinish: l, autoComplete: "off", children: [
17595
+ children: /* @__PURE__ */ L(Nt, { layout: "vertical", onFinish: l, autoComplete: "off", children: [
17596
17596
  /* @__PURE__ */ s(
17597
- $t.Item,
17597
+ Nt.Item,
17598
17598
  {
17599
17599
  name: "id",
17600
17600
  label: i("searchId"),
@@ -17607,7 +17607,7 @@ const ta = (t, e) => ({
17607
17607
  children: /* @__PURE__ */ s(ht, { style: { width: "100%" }, autoFocus: !0, ref: a })
17608
17608
  }
17609
17609
  ),
17610
- /* @__PURE__ */ s(Xe, { align: "middle", justify: "end", children: /* @__PURE__ */ s($e, { children: /* @__PURE__ */ L(lt, { children: [
17610
+ /* @__PURE__ */ s(Xe, { align: "middle", justify: "end", children: /* @__PURE__ */ s(Ne, { children: /* @__PURE__ */ L(lt, { children: [
17611
17611
  /* @__PURE__ */ s(
17612
17612
  Ge,
17613
17613
  {
@@ -17749,9 +17749,9 @@ const rb = (t) => {
17749
17749
  currentView: E,
17750
17750
  totalItems: k,
17751
17751
  searchTreeNameSearch: P
17752
- } = u || {}, [$, q] = F(!0), [H, N] = F(!0), [V, G] = F();
17752
+ } = u || {}, [N, q] = F(!0), [H, $] = F(!0), [V, G] = F();
17753
17753
  ce(() => {
17754
- n && N(!0);
17754
+ n && $(!0);
17755
17755
  }, [n]);
17756
17756
  const K = Ht(
17757
17757
  () => sn(D || [], i),
@@ -17776,15 +17776,15 @@ const rb = (t) => {
17776
17776
  k
17777
17777
  ]), W = ct(async () => {
17778
17778
  if (n) {
17779
- if (N(!0), k === void 0 || (h == null ? void 0 : h.length) !== k && k !== void 0)
17779
+ if ($(!0), k === void 0 || (h == null ? void 0 : h.length) !== k && k !== void 0)
17780
17780
  await U();
17781
17781
  else {
17782
- const ae = $ && h && h.length > 0 ? h.map((Y) => Y.id) : void 0;
17782
+ const ae = N && h && h.length > 0 ? h.map((Y) => Y.id) : void 0;
17783
17783
  G(ae);
17784
17784
  }
17785
- N(!1);
17785
+ $(!1);
17786
17786
  }
17787
- }, [n, k, h, U, $]);
17787
+ }, [n, k, h, U, N]);
17788
17788
  We(() => {
17789
17789
  W();
17790
17790
  }, [
@@ -17793,7 +17793,7 @@ const rb = (t) => {
17793
17793
  i,
17794
17794
  K,
17795
17795
  k,
17796
- $,
17796
+ N,
17797
17797
  h
17798
17798
  ]);
17799
17799
  const ne = te(() => e.view_id !== E.view_id, [E.view_id, e.view_id]);
@@ -17876,8 +17876,8 @@ const rb = (t) => {
17876
17876
  model: r,
17877
17877
  context: o,
17878
17878
  domain: sn(D || [], i),
17879
- limit: $ ? R : void 0,
17880
- fixedHeight: $f,
17879
+ limit: N ? R : void 0,
17880
+ fixedHeight: Nf,
17881
17881
  manualIds: V
17882
17882
  }
17883
17883
  )
@@ -17935,7 +17935,7 @@ const rb = (t) => {
17935
17935
  );
17936
17936
  };
17937
17937
  function ib() {
17938
- const { isLoading: t, dashboardRef: e, moveItemsEnabled: n, setMoveItemsEnabled: r } = ye(js), { permissions: o } = Nt(), { t: i } = Fe();
17938
+ const { isLoading: t, dashboardRef: e, moveItemsEnabled: n, setMoveItemsEnabled: r } = ye(js), { permissions: o } = $t(), { t: i } = Fe();
17939
17939
  return /* @__PURE__ */ L(lt, { wrap: !0, children: [
17940
17940
  (o == null ? void 0 : o.write) && /* @__PURE__ */ s(
17941
17941
  Et,
@@ -18029,7 +18029,7 @@ async function lb(t) {
18029
18029
  function cb({
18030
18030
  currentTab: t
18031
18031
  }) {
18032
- const { currentView: e, searchParams: n, currentId: r, limit: o, currentPage: i, order: a } = Nt(), { currentTab: c } = Fr(), l = t || c;
18032
+ const { currentView: e, searchParams: n, currentId: r, limit: o, currentPage: i, order: a } = $t(), { currentTab: c } = Fr(), l = t || c;
18033
18033
  if (!(l != null && l.action))
18034
18034
  return { shareUrl: null, canShare: !1 };
18035
18035
  const d = {
@@ -18080,7 +18080,7 @@ function ub(t, e) {
18080
18080
  order: x
18081
18081
  } = t, [C, w] = F(), [O, T] = F([]), [A, R] = F(!0), _ = p || void 0, [D, M] = F(
18082
18082
  _
18083
- ), [S, E] = F([]), [k, P] = F(), [$, q] = F([]), [H, N] = F(), [V, G] = F(), [K, U] = F(!1), [W, ne] = F(!1), [Z, ie] = F(), { t: ue } = Fe(), { showErrorNotification: j } = wt(), {
18083
+ ), [S, E] = F([]), [k, P] = F(), [N, q] = F([]), [H, $] = F(), [V, G] = F(), [K, U] = F(!1), [W, ne] = F(!1), [Z, ie] = F(), { t: ue } = Fe(), { showErrorNotification: j } = wt(), {
18084
18084
  permissions: fe,
18085
18085
  loading: z,
18086
18086
  error: Q
@@ -18104,7 +18104,7 @@ function ub(t, e) {
18104
18104
  ze();
18105
18105
  },
18106
18106
  { enableOnFormTags: !0, preventDefault: !0 },
18107
- [re, le, C, k, $]
18107
+ [re, le, C, k, N]
18108
18108
  );
18109
18109
  function ve(Re) {
18110
18110
  M(Re), oe == null || oe(Re);
@@ -18116,7 +18116,7 @@ function ub(t, e) {
18116
18116
  [he]
18117
18117
  );
18118
18118
  Gt(e, () => ({
18119
- canWeClose: Ne
18119
+ canWeClose: $e
18120
18120
  }));
18121
18121
  const we = I(async () => {
18122
18122
  R(!0);
@@ -18228,7 +18228,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
18228
18228
  l,
18229
18229
  j
18230
18230
  ]);
18231
- c({ tabKey: l, canWeClose: Ne }), We(() => {
18231
+ c({ tabKey: l, canWeClose: $e }), We(() => {
18232
18232
  const Re = O.find((He) => He.type === "tree"), Ze = O.find((He) => d.id ? He.type === d.type && He.view_id === d.id : He.type === d.type);
18233
18233
  Ae(Ze || Re), p ? oe == null || oe(_) : (ve(void 0), P(void 0)), we();
18234
18234
  }, [r, i, p]), We(() => {
@@ -18244,7 +18244,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
18244
18244
  message: `Error loading permissions for model ${r}: ${Q.message}`
18245
18245
  });
18246
18246
  }, [Q, r, j]);
18247
- async function Ne() {
18247
+ async function $e() {
18248
18248
  return C && C.type === "form" ? await ae.current.cancelUnsavedChanges() : !0;
18249
18249
  }
18250
18250
  async function ze() {
@@ -18256,7 +18256,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
18256
18256
  let He, Ke;
18257
18257
  if (Re.length === 1) {
18258
18258
  He = "form", Ke = [];
18259
- const ke = Re[0], Se = $.findIndex((ee) => ee.id === ke);
18259
+ const ke = Re[0], Se = N.findIndex((ee) => ee.id === ke);
18260
18260
  let Ve;
18261
18261
  if (Se === -1) {
18262
18262
  try {
@@ -18275,7 +18275,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
18275
18275
  return;
18276
18276
  }
18277
18277
  } else
18278
- Ve = $[Se];
18278
+ Ve = N[Se];
18279
18279
  } else
18280
18280
  He = "tree", Ke = [["id", "in", Re]];
18281
18281
  if (ne(!1), U(!1), Ze && He === "form") {
@@ -18325,11 +18325,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
18325
18325
  setCurrentId: ve,
18326
18326
  setCurrentItemIndex: P,
18327
18327
  currentItemIndex: k,
18328
- results: $,
18328
+ results: N,
18329
18329
  setResults: q,
18330
18330
  currentModel: r,
18331
18331
  sorter: H,
18332
- setSorter: N,
18332
+ setSorter: $,
18333
18333
  totalItems: V,
18334
18334
  setTotalItems: G,
18335
18335
  selectedRowItems: S,
@@ -18357,7 +18357,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
18357
18357
  context: o,
18358
18358
  domain: n,
18359
18359
  formDefaultValues: f,
18360
- results: $,
18360
+ results: N,
18361
18361
  setResults: q,
18362
18362
  setCurrentItemIndex: P,
18363
18363
  formForcedValues: u,
@@ -18528,8 +18528,8 @@ function hb(t, e) {
18528
18528
  items: k,
18529
18529
  model: E,
18530
18530
  context: r
18531
- }), $ = await R(P);
18532
- u(void 0), c($), d(!1), p(!1);
18531
+ }), N = await R(P);
18532
+ u(void 0), c(N), d(!1), p(!1);
18533
18533
  } catch (M) {
18534
18534
  u(JSON.stringify(M));
18535
18535
  }
@@ -18578,8 +18578,8 @@ function hb(t, e) {
18578
18578
  for (const k of M) {
18579
18579
  const { values: P } = k;
18580
18580
  if (P.action_id && P.action_id.length > 0) {
18581
- const $ = parseInt(P.action_id[0], 10), q = el({
18582
- actionId: $,
18581
+ const N = parseInt(P.action_id[0], 10), q = el({
18582
+ actionId: N,
18583
18583
  rootContext: r
18584
18584
  }).then((H) => ({ ...k, actionData: H }));
18585
18585
  S.push(q);
@@ -18590,9 +18590,9 @@ function hb(t, e) {
18590
18590
  async function _(M) {
18591
18591
  if (!g)
18592
18592
  return;
18593
- const S = M.filter(($) => {
18593
+ const S = M.filter((N) => {
18594
18594
  const q = a.find(
18595
- (N) => N.id === $.id
18595
+ ($) => $.id === N.id
18596
18596
  );
18597
18597
  if (!q)
18598
18598
  return !1;
@@ -18602,19 +18602,19 @@ function hb(t, e) {
18602
18602
  ...JSON.parse(q.position.replace(/'/g, '"')),
18603
18603
  id: q.id
18604
18604
  };
18605
- return JSON.stringify($) !== JSON.stringify(H);
18605
+ return JSON.stringify(N) !== JSON.stringify(H);
18606
18606
  });
18607
18607
  if (S.length === 0)
18608
18608
  return;
18609
- const k = a.filter(($) => S.map((q) => q.id).includes($.id)).map(($) => {
18609
+ const k = a.filter((N) => S.map((q) => q.id).includes(N.id)).map((N) => {
18610
18610
  const q = {
18611
- ...S.find((H) => H.id === $.id)
18611
+ ...S.find((H) => H.id === N.id)
18612
18612
  };
18613
- return delete q.id, { ...$ }, {
18614
- ...$,
18613
+ return delete q.id, { ...N }, {
18614
+ ...N,
18615
18615
  operation: "pendingUpdate",
18616
18616
  values: {
18617
- ...$.values,
18617
+ ...N.values,
18618
18618
  position: JSON.stringify(q).replace(/"/g, "'")
18619
18619
  }
18620
18620
  };
@@ -18634,10 +18634,10 @@ function hb(t, e) {
18634
18634
  m(i);
18635
18635
  }
18636
18636
  return l ? /* @__PURE__ */ s(Kt, {}) : f ? (console.error(f), /* @__PURE__ */ s(_t, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 })) : /* @__PURE__ */ s(mb, { onPositionItemsChanged: _, children: a.map((M, S) => {
18637
- const { actionData: E, values: k } = M, { position: P, id: $ } = k, {
18637
+ const { actionData: E, values: k } = M, { position: P, id: N } = k, {
18638
18638
  actionId: q,
18639
18639
  actionType: H,
18640
- key: N,
18640
+ key: $,
18641
18641
  title: V,
18642
18642
  description: G,
18643
18643
  views: K,
@@ -18667,10 +18667,10 @@ function hb(t, e) {
18667
18667
  domain: ne,
18668
18668
  limit: ie
18669
18669
  },
18670
- $
18670
+ N
18671
18671
  );
18672
18672
  } else if ((Z == null ? void 0 : Z.type) === "form")
18673
- j = /* @__PURE__ */ s(pc, { model: U, actionDomain: ne }, $);
18673
+ j = /* @__PURE__ */ s(pc, { model: U, actionDomain: ne }, N);
18674
18674
  else if ((Z == null ? void 0 : Z.type) === "tree")
18675
18675
  j = /* @__PURE__ */ s(
18676
18676
  mc,
@@ -18705,7 +18705,7 @@ function hb(t, e) {
18705
18705
  }
18706
18706
  }
18707
18707
  },
18708
- $
18708
+ N
18709
18709
  );
18710
18710
  else if (Z !== void 0) {
18711
18711
  const Q = Z && Array.isArray(Z.id) ? { ...Z, id: Z.id[0] } : Z;
@@ -18714,7 +18714,7 @@ function hb(t, e) {
18714
18714
  {
18715
18715
  action_id: q,
18716
18716
  action_type: H,
18717
- tabKey: N,
18717
+ tabKey: $,
18718
18718
  title: V,
18719
18719
  views: K,
18720
18720
  model: U,
@@ -18725,7 +18725,7 @@ function hb(t, e) {
18725
18725
  initialView: Q,
18726
18726
  limit: ie
18727
18727
  },
18728
- $
18728
+ N
18729
18729
  );
18730
18730
  }
18731
18731
  let fe;
@@ -18754,7 +18754,7 @@ function hb(t, e) {
18754
18754
  return /* @__PURE__ */ s(
18755
18755
  fc,
18756
18756
  {
18757
- id: $,
18757
+ id: N,
18758
18758
  title: V,
18759
18759
  parms: ue,
18760
18760
  action: fe,
@@ -18762,7 +18762,7 @@ function hb(t, e) {
18762
18762
  tooltip: G,
18763
18763
  children: j
18764
18764
  },
18765
- `griditem-${$}`
18765
+ `griditem-${N}`
18766
18766
  );
18767
18767
  }) });
18768
18768
  }
@@ -18835,7 +18835,7 @@ const gb = Bt(hb), yb = (t) => {
18835
18835
  disabled: g,
18836
18836
  onChange: T,
18837
18837
  style: { width: "100%" },
18838
- children: /* @__PURE__ */ s(Xe, { children: a.map((A) => /* @__PURE__ */ s($e, { span: Math.floor(24 / v), children: /* @__PURE__ */ s(dr, { value: A.value, children: A.label }) }, A.value)) })
18838
+ children: /* @__PURE__ */ s(Xe, { children: a.map((A) => /* @__PURE__ */ s(Ne, { span: Math.floor(24 / v), children: /* @__PURE__ */ s(dr, { value: A.value, children: A.label }) }, A.value)) })
18839
18839
  }
18840
18840
  ),
18841
18841
  !g && /* @__PURE__ */ L(lt, { children: [
@@ -19025,7 +19025,7 @@ const Pb = (t) => {
19025
19025
  }, na = (t) => {
19026
19026
  const e = Lt(t);
19027
19027
  return e && /* @__PURE__ */ s(e, {});
19028
- }, $b = (t) => {
19028
+ }, Nb = (t) => {
19029
19029
  const { value: e, ooui: n } = t, r = (e || []).map((o) => {
19030
19030
  if (o.type === "action")
19031
19031
  return {
@@ -19055,7 +19055,7 @@ const Pb = (t) => {
19055
19055
  }
19056
19056
  }
19057
19057
  );
19058
- }, Nb = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($b, { ooui: t.ooui }) }), Vb = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Nd, {}) }), Lb = (t) => {
19058
+ }, $b = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s(Nb, { ooui: t.ooui }) }), Vb = (t) => /* @__PURE__ */ s(Ye, { ...t, children: /* @__PURE__ */ s($d, {}) }), Lb = (t) => {
19059
19059
  const { ooui: e } = t, n = ye(et);
19060
19060
  let { title: r, text: o, alertType: i, icon: a, buttons: c } = e;
19061
19061
  if (e.fieldType && e.id) {
@@ -19181,7 +19181,7 @@ function Kb(t, e) {
19181
19181
  g.current.set(S, E);
19182
19182
  }
19183
19183
  async function C(S) {
19184
- const { actionRawData: E, res_id: k, limit: P } = S, $ = await B.getHandler().getFields({
19184
+ const { actionRawData: E, res_id: k, limit: P } = S, N = await B.getHandler().getFields({
19185
19185
  model: S.model,
19186
19186
  context: l
19187
19187
  });
@@ -19197,19 +19197,19 @@ function Kb(t, e) {
19197
19197
  });
19198
19198
  q = { ...q, ...G[0] };
19199
19199
  }
19200
- let N;
19201
- E != null && E.context && typeof E.context == "object" && E.context !== null ? N = E : E && E.context ? N = E && pn({
19200
+ let $;
19201
+ E != null && E.context && typeof E.context == "object" && E.context !== null ? $ = E : E && E.context ? $ = E && pn({
19202
19202
  context: E.context,
19203
- fields: $,
19203
+ fields: N,
19204
19204
  values: { ...c, ...q || {} }
19205
- }) : N = {};
19205
+ }) : $ = {};
19206
19206
  const V = await (async () => {
19207
19207
  try {
19208
19208
  return E != null && E.domain && Array.isArray(E.domain) && E.domain.length > 0 ? E.domain : E && E.domain && !Array.isArray(E.domain) ? await B.getHandler().evalDomain({
19209
19209
  domain: E.domain,
19210
19210
  values: { ...q || {}, ...c },
19211
- context: { ...l, ...N },
19212
- fields: $
19211
+ context: { ...l, ...$ },
19212
+ fields: N
19213
19213
  }) : [];
19214
19214
  } catch (G) {
19215
19215
  return console.error(G), [];
@@ -19218,12 +19218,12 @@ function Kb(t, e) {
19218
19218
  D({
19219
19219
  ...S,
19220
19220
  limit: P,
19221
- context: { ...l, ...N },
19221
+ context: { ...l, ...$ },
19222
19222
  domain: V,
19223
19223
  actionRawData: {
19224
19224
  ...E,
19225
19225
  values: q,
19226
- fields: $
19226
+ fields: N
19227
19227
  }
19228
19228
  });
19229
19229
  }
@@ -19256,15 +19256,15 @@ function Kb(t, e) {
19256
19256
  values: E,
19257
19257
  forced_values: k,
19258
19258
  initialViewType: P,
19259
- res_id: $,
19259
+ res_id: N,
19260
19260
  domain: q = [],
19261
19261
  context: H = {}
19262
19262
  }) {
19263
- const N = await B.getHandler().getActionData({
19263
+ const $ = await B.getHandler().getActionData({
19264
19264
  action: S,
19265
19265
  context: l
19266
19266
  });
19267
- if (N.type === "ir.actions.wizard") {
19267
+ if ($.type === "ir.actions.wizard") {
19268
19268
  a({
19269
19269
  type: "error",
19270
19270
  title: "Error",
@@ -19272,10 +19272,10 @@ function Kb(t, e) {
19272
19272
  });
19273
19273
  return;
19274
19274
  }
19275
- const [V, G] = S.split(","), K = parseInt(G), U = N.context, W = pn({
19275
+ const [V, G] = S.split(","), K = parseInt(G), U = $.context, W = pn({
19276
19276
  context: U,
19277
19277
  values: c
19278
- }), ne = N.domain, Z = await (async () => {
19278
+ }), ne = $.domain, Z = await (async () => {
19279
19279
  try {
19280
19280
  return ne ? await B.getHandler().evalDomain({
19281
19281
  domain: ne,
@@ -19292,7 +19292,7 @@ function Kb(t, e) {
19292
19292
  target: fe,
19293
19293
  view_type: z,
19294
19294
  limit: Q
19295
- } = N, ae = z === "tree", Y = [];
19295
+ } = $, ae = z === "tree", Y = [];
19296
19296
  for (const he of ue) {
19297
19297
  const [oe, le] = he;
19298
19298
  if (oe)
@@ -19331,7 +19331,7 @@ function Kb(t, e) {
19331
19331
  action_id: K,
19332
19332
  values: E,
19333
19333
  forced_values: k,
19334
- res_id: $,
19334
+ res_id: N,
19335
19335
  treeExpandable: ae,
19336
19336
  limit: Q,
19337
19337
  actionRawData: {
@@ -19346,9 +19346,9 @@ function Kb(t, e) {
19346
19346
  key: k,
19347
19347
  action: P
19348
19348
  }) {
19349
- let $ = [...p];
19350
- p.length === 1 && p[0].key === "welcome" && ($ = [...p.filter((q) => q.key !== "welcome")]), m([
19351
- ...$,
19349
+ let N = [...p];
19350
+ p.length === 1 && p[0].key === "welcome" && (N = [...p.filter((q) => q.key !== "welcome")]), m([
19351
+ ...N,
19352
19352
  {
19353
19353
  title: S,
19354
19354
  key: k,
@@ -19363,12 +19363,12 @@ function Kb(t, e) {
19363
19363
  fields: E,
19364
19364
  values: k,
19365
19365
  action_id: P,
19366
- action_type: $
19366
+ action_type: N
19367
19367
  }) {
19368
19368
  const {
19369
19369
  res_model: q,
19370
19370
  context: H,
19371
- domain: N,
19371
+ domain: $,
19372
19372
  views: V,
19373
19373
  target: G,
19374
19374
  string: K,
@@ -19376,8 +19376,8 @@ function Kb(t, e) {
19376
19376
  } = S, [W, ne] = V[0], Z = { id: W, type: ne }, ie = H, ue = pn({
19377
19377
  context: ie,
19378
19378
  values: { ...k, ...c }
19379
- }), j = N, fe = N ? await B.getHandler().evalDomain({
19380
- domain: N,
19379
+ }), j = $, fe = $ ? await B.getHandler().evalDomain({
19380
+ domain: $,
19381
19381
  values: Sn({
19382
19382
  fields: E,
19383
19383
  values: { ...k, ...c }
@@ -19394,7 +19394,7 @@ function Kb(t, e) {
19394
19394
  title: K,
19395
19395
  initialView: Z,
19396
19396
  action_id: P,
19397
- action_type: $,
19397
+ action_type: N,
19398
19398
  limit: U,
19399
19399
  actionRawData: {
19400
19400
  context: ie,
@@ -19409,10 +19409,10 @@ function Kb(t, e) {
19409
19409
  action_id: E,
19410
19410
  action_type: k,
19411
19411
  res_id: P,
19412
- view_id: $,
19412
+ view_id: N,
19413
19413
  overrideUnsettedLimit: q = !1,
19414
19414
  values: H = {},
19415
- domain: N
19415
+ domain: $
19416
19416
  } = S, V = `${k},${E}`, G = await B.getHandler().getActionData({
19417
19417
  action: V,
19418
19418
  context: l
@@ -19422,8 +19422,8 @@ function Kb(t, e) {
19422
19422
  fields: {}
19423
19423
  });
19424
19424
  let W = [];
19425
- const ne = N && N.length > 0 ? N : G.domain;
19426
- (N == null ? void 0 : N.length) > 0 ? W = N : G.domain && (W = await B.getHandler().evalDomain({
19425
+ const ne = $ && $.length > 0 ? $ : G.domain;
19426
+ ($ == null ? void 0 : $.length) > 0 ? W = $ : G.domain && (W = await B.getHandler().evalDomain({
19427
19427
  domain: G.domain,
19428
19428
  values: { ...c, ...H },
19429
19429
  context: { ...l, ...U }
@@ -19453,11 +19453,11 @@ function Kb(t, e) {
19453
19453
  }
19454
19454
  }
19455
19455
  let Y, me;
19456
- if ($ == null) {
19456
+ if (N == null) {
19457
19457
  const oe = ae.find((le) => le[0] === void 0);
19458
19458
  Y = void 0, me = oe[1];
19459
19459
  } else
19460
- [Y, me] = ae.find((oe) => oe[0] === void 0 ? !1 : oe[0] === $);
19460
+ [Y, me] = ae.find((oe) => oe[0] === void 0 ? !1 : oe[0] === N);
19461
19461
  const he = { id: Y, type: me };
19462
19462
  D({
19463
19463
  domain: W,
@@ -19484,17 +19484,17 @@ function Kb(t, e) {
19484
19484
  values: E,
19485
19485
  forced_values: k,
19486
19486
  initialViewType: P,
19487
- res_id: $,
19487
+ res_id: N,
19488
19488
  domain: q,
19489
19489
  context: H
19490
19490
  }) {
19491
- const N = await B.getHandler().getActionStringForModel(S);
19491
+ const $ = await B.getHandler().getActionStringForModel(S);
19492
19492
  await O({
19493
- action: N,
19493
+ action: $,
19494
19494
  values: E,
19495
19495
  forced_values: k,
19496
19496
  initialViewType: P,
19497
- res_id: $,
19497
+ res_id: N,
19498
19498
  domain: q,
19499
19499
  context: H
19500
19500
  });
@@ -19505,10 +19505,10 @@ function Kb(t, e) {
19505
19505
  domain: E,
19506
19506
  context: k,
19507
19507
  model: P,
19508
- views: $,
19508
+ views: N,
19509
19509
  title: q,
19510
19510
  target: H,
19511
- initialView: N,
19511
+ initialView: $,
19512
19512
  action_id: V,
19513
19513
  action_type: G,
19514
19514
  res_id: K,
@@ -19534,7 +19534,7 @@ function Kb(t, e) {
19534
19534
  const Q = await B.getHandler().getView({
19535
19535
  model: P,
19536
19536
  type: "form",
19537
- id: N.type === "form" ? N.id : void 0,
19537
+ id: $.type === "form" ? $.id : void 0,
19538
19538
  context: { ...l, ...k }
19539
19539
  });
19540
19540
  h.current.openActionModal({
@@ -19550,7 +19550,7 @@ function Kb(t, e) {
19550
19550
  }
19551
19551
  });
19552
19552
  } else {
19553
- const Q = N && Array.isArray(N.id) ? { ...N, id: N.id[0] } : N;
19553
+ const Q = $ && Array.isArray($.id) ? { ...$, id: $.id[0] } : $;
19554
19554
  T({
19555
19555
  title: q,
19556
19556
  content: /* @__PURE__ */ s(
@@ -19560,7 +19560,7 @@ function Kb(t, e) {
19560
19560
  action_type: G,
19561
19561
  tabKey: fe,
19562
19562
  title: q,
19563
- views: $,
19563
+ views: N,
19564
19564
  model: P,
19565
19565
  context: { ...k, ...l },
19566
19566
  domain: E,
@@ -19587,24 +19587,24 @@ function Kb(t, e) {
19587
19587
  title: k,
19588
19588
  viewModes: P = ["tree", "form"]
19589
19589
  }) {
19590
- const $ = [];
19590
+ const N = [];
19591
19591
  for (const V of P)
19592
19592
  if (V === "dashboard")
19593
- $.push([void 0, "dashboard"]);
19593
+ N.push([void 0, "dashboard"]);
19594
19594
  else {
19595
19595
  const { view_id: G } = await B.getHandler().getView({
19596
19596
  model: S,
19597
19597
  type: V,
19598
19598
  context: l
19599
19599
  });
19600
- $.push([G, V]);
19600
+ N.push([G, V]);
19601
19601
  }
19602
- const [q, H] = $[0];
19602
+ const [q, H] = N[0];
19603
19603
  return await D({
19604
19604
  action_id: -1,
19605
19605
  action_type: "ir.actions.act_window",
19606
19606
  model: S,
19607
- views: $,
19607
+ views: N,
19608
19608
  context: l,
19609
19609
  domain: E,
19610
19610
  title: k || S,
@@ -20068,7 +20068,7 @@ export {
20068
20068
  Pa as Char,
20069
20069
  Eb as CodeEditor,
20070
20070
  Wb as ColorPicker,
20071
- Nb as CommentsTimelineField,
20071
+ $b as CommentsTimelineField,
20072
20072
  Za as ConfigContext,
20073
20073
  xf as ConfigContextProvider,
20074
20074
  B as ConnectionProvider,
@@ -20082,7 +20082,7 @@ export {
20082
20082
  eb as Email,
20083
20083
  Xw as ErpAllFeatureKeys,
20084
20084
  St as ErpFeatureKeys,
20085
- $v as ExportModal,
20085
+ Nv as ExportModal,
20086
20086
  n0 as FavouriteButton,
20087
20087
  Rs as Float,
20088
20088
  bv as FloatTime,