@gisce/react-ooui 2.81.0-alpha.5 → 2.81.0-alpha.6

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,9 +3,9 @@ var $l = (e, t, n) => t in e ? Ml(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var is = (e, t, n) => ($l(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import { jsx as s, jsxs as $, Fragment as ce } from "react/jsx-runtime";
5
5
  import Zt, { useContext as le, useState as I, useEffect as de, useRef as z, memo as nt, useCallback as E, useMemo as Q, forwardRef as $t, useImperativeHandle as Lt, Fragment as Ln, createContext as Vl, createElement as Nl } from "react";
6
- import { Tooltip as Jt, theme as et, Typography as an, Form as kt, Row as Ge, Col as Ie, Modal as It, Button as ze, Dropdown as Ll, Menu as as, Space as it, Spin as tt, Divider as Rr, Input as xt, Select as hn, Checkbox as Jn, Alert as Rt, Timeline as ii, message as ls, Popover as Hl, DatePicker as ai, TimePicker as jl, InputNumber as _r, Layout as li, Progress as Bl, Avatar as ci, Tag as To, ColorPicker as di, Badge as rr, Pagination as Ul, Empty as ui, Statistic as Yl, Card as Io, Tabs as fi, Radio as cs, Switch as Wl, Steps as ds, Carousel as Gl } from "antd";
6
+ import { Tooltip as Jt, theme as et, Typography as an, Form as kt, Row as Ge, Col as Ie, Modal as It, Button as ze, Dropdown as Ll, Menu as as, Space as it, Spin as tt, Divider as Rr, Input as xt, Select as hn, Checkbox as Jn, Alert as Rt, Timeline as ii, message as ls, Popover as Hl, DatePicker as ai, TimePicker as Bl, InputNumber as _r, Layout as li, Progress as jl, Avatar as ci, Tag as To, ColorPicker as di, Badge as rr, Pagination as Ul, Empty as ui, Statistic as Yl, Card as Io, Tabs as fi, Radio as cs, Switch as Wl, Steps as ds, Carousel as Gl } from "antd";
7
7
  import { Label as Hn, Field as co, Tree as mi, Reference as ql, Selection as Ao, Many2one as pi, Boolean as zl, parseContext as rn, graphProcessor as hi, graphFieldUtils as Jl, Integer as uo, SearchFieldTypes as nn, SearchFilter as gi, parseContextFields as Kl, parseDomainFields as Ql, parseGraph as yi, Container as Xl, Form as vi, transformDomainForChildWidget as Ro, Button as Zl } from "@gisce/ooui";
8
- import ec, { QuestionCircleOutlined as bi, ExclamationCircleOutlined as Dr, LoadingOutlined as Ht, DownOutlined as Er, CloseOutlined as jn, CheckOutlined as or, TranslationOutlined as wi, FolderOpenOutlined as _o, DownloadOutlined as Do, ClearOutlined as sr, FormOutlined as Kn, TableOutlined as Eo, AreaChartOutlined as tc, CalendarOutlined as nc, FileAddOutlined as Or, CloseCircleFilled as rc, CopyOutlined as ir, FilterOutlined as xi, DeleteOutlined as Oo, InfoCircleOutlined as Pr, ReloadOutlined as kr, ThunderboltOutlined as Mr, PrinterOutlined as $r, SearchOutlined as ar, UpOutlined as oc, ExportOutlined as Si, EnterOutlined as Vr, PlusSquareOutlined as Ci, MinusSquareOutlined as Fi, StarFilled as sc, StarOutlined as ic, LeftOutlined as Ti, RightOutlined as Ii, ApiOutlined as ac, AlignLeftOutlined as lc, EyeOutlined as cc, LinkOutlined as us, SaveOutlined as dc, EditOutlined as Ai, PlusOutlined as uc, BorderOuterOutlined as fc, SettingOutlined as mc } from "@ant-design/icons";
8
+ import ec, { QuestionCircleOutlined as bi, ExclamationCircleOutlined as Dr, LoadingOutlined as Ht, DownOutlined as Er, CloseOutlined as Bn, CheckOutlined as or, TranslationOutlined as wi, FolderOpenOutlined as _o, DownloadOutlined as Do, ClearOutlined as sr, FormOutlined as Kn, TableOutlined as Eo, AreaChartOutlined as tc, CalendarOutlined as nc, FileAddOutlined as Or, CloseCircleFilled as rc, CopyOutlined as ir, FilterOutlined as xi, DeleteOutlined as Oo, InfoCircleOutlined as Pr, ReloadOutlined as kr, ThunderboltOutlined as Mr, PrinterOutlined as $r, SearchOutlined as ar, UpOutlined as oc, ExportOutlined as Si, EnterOutlined as Vr, PlusSquareOutlined as Ci, MinusSquareOutlined as Fi, StarFilled as sc, StarOutlined as ic, LeftOutlined as Ti, RightOutlined as Ii, ApiOutlined as ac, AlignLeftOutlined as lc, EyeOutlined as cc, LinkOutlined as us, SaveOutlined as dc, EditOutlined as Ai, PlusOutlined as uc, BorderOuterOutlined as fc, SettingOutlined as mc } from "@ant-design/icons";
9
9
  import { Interweave as zt } from "interweave";
10
10
  import Qe from "dayjs";
11
11
  import { default as hb } from "dayjs";
@@ -31,8 +31,8 @@ import { fileTypeFromBuffer as Vc } from "file-type-buffer-browser";
31
31
  import { generate as Nc } from "@ant-design/colors";
32
32
  import Lc from "antd/es/date-picker/locale/en_US";
33
33
  import Hc from "antd/es/date-picker/locale/es_ES";
34
- import jc from "antd/es/date-picker/locale/ca_ES";
35
- import { InfiniteTable as Oi, Table as Bc, PaginatedTable as Uc } from "@gisce/react-formiga-table";
34
+ import Bc from "antd/es/date-picker/locale/ca_ES";
35
+ import { InfiniteTable as Oi, Table as jc, PaginatedTable as Uc } from "@gisce/react-formiga-table";
36
36
  import Pi from "antd/es/typography/Link";
37
37
  import { isPresetStatusColor as ki, isPresetColor as Mi } from "antd/lib/_util/colors";
38
38
  import Yc from "validator";
@@ -424,7 +424,12 @@ const { confirm: md } = It, Xt = ({
424
424
  icon: v(),
425
425
  type: t.primary ? "primary" : "default",
426
426
  danger: t.danger,
427
- style: { whiteSpace: "normal", height: "auto" },
427
+ style: {
428
+ whiteSpace: "normal",
429
+ height: "auto",
430
+ paddingTop: "3px",
431
+ paddingBottom: "3px"
432
+ },
428
433
  children: r
429
434
  }
430
435
  ) });
@@ -755,7 +760,7 @@ const Li = (e) => {
755
760
  /* @__PURE__ */ s(
756
761
  ze,
757
762
  {
758
- icon: /* @__PURE__ */ s(jn, {}),
763
+ icon: /* @__PURE__ */ s(Bn, {}),
759
764
  onClick: n,
760
765
  disabled: p,
761
766
  children: c("cancel")
@@ -801,11 +806,11 @@ const { info: yd } = It, un = (e) => {
801
806
  centered: !0,
802
807
  content: e
803
808
  });
804
- }, { useToken: vd } = et, jr = nt(({ content: e }) => {
809
+ }, { useToken: vd } = et, Br = nt(({ content: e }) => {
805
810
  const { token: t } = vd();
806
811
  return /* @__PURE__ */ s("div", { style: { color: t.colorTextDisabled }, children: e });
807
812
  });
808
- jr.displayName = "AddonElement";
813
+ Br.displayName = "AddonElement";
809
814
  const { defaultAlgorithm: bd, defaultSeed: wd } = et, $o = bd(wd), Xn = nt(
810
815
  ({
811
816
  component: e,
@@ -816,7 +821,7 @@ const { defaultAlgorithm: bd, defaultSeed: wd } = et, $o = bd(wd), Xn = nt(
816
821
  disabled: i,
817
822
  ...a
818
823
  }) => {
819
- const l = E((c) => c ? /* @__PURE__ */ s(jr, { content: c }) : null, []);
824
+ const l = E((c) => c ? /* @__PURE__ */ s(Br, { content: c }) : null, []);
820
825
  return /* @__PURE__ */ s(
821
826
  e,
822
827
  {
@@ -833,11 +838,11 @@ const { defaultAlgorithm: bd, defaultSeed: wd } = et, $o = bd(wd), Xn = nt(
833
838
  }
834
839
  );
835
840
  Xn.displayName = "BaseInput";
836
- const ji = (e) => {
841
+ const Bi = (e) => {
837
842
  const { ooui: t, isSearchField: n = !1 } = e, { id: r, readOnly: o, required: i, translatable: a } = t;
838
- let l = /* @__PURE__ */ s(Bi, { ooui: t, isSearchField: n });
843
+ let l = /* @__PURE__ */ s(ji, { ooui: t, isSearchField: n });
839
844
  return a && !o && !n && (l = /* @__PURE__ */ s(Ui, { ooui: t, field: r })), /* @__PURE__ */ s(He, { required: i, ...e, children: l });
840
- }, Bi = nt(
845
+ }, ji = nt(
841
846
  ({
842
847
  value: e,
843
848
  ooui: t,
@@ -885,7 +890,7 @@ const ji = (e) => {
885
890
  );
886
891
  }
887
892
  );
888
- Bi.displayName = "CharInput";
893
+ ji.displayName = "CharInput";
889
894
  const Ui = nt(
890
895
  ({
891
896
  ooui: e,
@@ -1045,7 +1050,7 @@ const qi = (e) => new Promise((t, n) => {
1045
1050
  const r = new FileReader();
1046
1051
  r.readAsDataURL(e), r.onload = (o) => t(o.target.result.split(",")[1]), r.onerror = (o) => n(o);
1047
1052
  });
1048
- function Br(e, t) {
1053
+ function jr(e, t) {
1049
1054
  const n = atob(e), r = new Array(n.length);
1050
1055
  for (let l = 0; l < n.length; l++)
1051
1056
  r[l] = n.charCodeAt(l);
@@ -1312,7 +1317,7 @@ const Lo = async (e) => {
1312
1317
  }, Ki = (e) => {
1313
1318
  const t = e.filter((n) => n.id && n.id < 0).map((n) => n.id);
1314
1319
  return t.length === 0 ? -1 : Math.min(...t) - 1;
1315
- }, jd = (e, t) => {
1320
+ }, Bd = (e, t) => {
1316
1321
  const n = {};
1317
1322
  return Object.keys(e).forEach((r) => {
1318
1323
  var o;
@@ -1320,7 +1325,7 @@ const Lo = async (e) => {
1320
1325
  (i) => i.operation !== "pendingRemove"
1321
1326
  ) : n[r] = e[r];
1322
1327
  }), n;
1323
- }, Bd = ({
1328
+ }, jd = ({
1324
1329
  values: e,
1325
1330
  fields: t
1326
1331
  }) => {
@@ -2434,23 +2439,23 @@ const { getValueForOperator: bs } = hi, gu = (e) => {
2434
2439
  }, [t, o]);
2435
2440
  async function M({
2436
2441
  domain: O,
2437
- isTotal: B
2442
+ isTotal: j
2438
2443
  }) {
2439
- if (B)
2444
+ if (j)
2440
2445
  return await V({ domain: O });
2441
2446
  if (d && f) {
2442
2447
  const J = u || await C({
2443
2448
  params: O,
2444
2449
  model: t,
2445
2450
  context: r
2446
- }), j = await T({
2451
+ }), B = await T({
2447
2452
  model: t,
2448
2453
  ids: J,
2449
2454
  fieldsToRetrieve: [d],
2450
2455
  context: r
2451
2456
  });
2452
2457
  return bs({
2453
- values: j.map((ae) => ae[d]),
2458
+ values: B.map((ae) => ae[d]),
2454
2459
  operator: f
2455
2460
  });
2456
2461
  } else
@@ -2462,18 +2467,18 @@ const { getValueForOperator: bs } = hi, gu = (e) => {
2462
2467
  }
2463
2468
  async function V({ domain: O }) {
2464
2469
  if (d && f) {
2465
- const B = await C({
2470
+ const j = await C({
2466
2471
  params: O,
2467
2472
  model: t,
2468
2473
  context: r
2469
2474
  }), J = await T({
2470
2475
  model: t,
2471
- ids: B,
2476
+ ids: j,
2472
2477
  fieldsToRetrieve: [d],
2473
2478
  context: r
2474
2479
  });
2475
2480
  return bs({
2476
- values: J.map((j) => j[d]),
2481
+ values: J.map((B) => B[d]),
2477
2482
  operator: f
2478
2483
  });
2479
2484
  } else
@@ -2485,36 +2490,36 @@ const { getValueForOperator: bs } = hi, gu = (e) => {
2485
2490
  }
2486
2491
  async function H() {
2487
2492
  h(!0), R(void 0);
2488
- let O, B;
2493
+ let O, j;
2489
2494
  try {
2490
2495
  const J = await M({ domain: n, isTotal: !1 });
2491
2496
  if (g(J), i) {
2492
- const j = await k({
2497
+ const B = await k({
2493
2498
  domain: i,
2494
2499
  values: {},
2495
2500
  context: r
2496
2501
  });
2497
2502
  O = await M({
2498
- domain: j,
2503
+ domain: B,
2499
2504
  isTotal: !0
2500
2505
  }), S(O);
2501
2506
  }
2502
- if (O ? (B = Math.round(J / O * 100 * 100) / 100, b(B)) : b(0), o) {
2503
- const j = await N({
2507
+ if (O ? (j = Math.round(J / O * 100 * 100) / 100, b(j)) : b(0), o) {
2508
+ const B = await N({
2504
2509
  condition: o,
2505
- values: { value: J, percent: B },
2510
+ values: { value: J, percent: j },
2506
2511
  context: r
2507
2512
  });
2508
- A(j);
2513
+ A(B);
2509
2514
  }
2510
2515
  if (l)
2511
2516
  if (l.indexOf(":") !== -1) {
2512
- const j = await N({
2517
+ const B = await N({
2513
2518
  condition: l,
2514
- values: { value: J, percent: B },
2519
+ values: { value: J, percent: j },
2515
2520
  context: r
2516
2521
  });
2517
- D(j);
2522
+ D(B);
2518
2523
  } else
2519
2524
  D(l);
2520
2525
  R(void 0);
@@ -3047,7 +3052,7 @@ const Pu = ({
3047
3052
  }, Zn = (e) => Object.keys(e).reduce((t, n) => {
3048
3053
  const r = e[n];
3049
3054
  return r !== "" && r !== void 0 && (t[n] = r), t;
3050
- }, {}), ju = (e, t) => {
3055
+ }, {}), Bu = (e, t) => {
3051
3056
  if (!e || !Array.isArray(e) || !t)
3052
3057
  return {};
3053
3058
  const n = e.reduce((r, o) => {
@@ -3066,12 +3071,12 @@ const Pu = ({
3066
3071
  return r;
3067
3072
  }, {});
3068
3073
  return Zn(n);
3069
- }, Ct = 80, { confirm: Bu } = It, Bn = ({
3074
+ }, Ct = 80, { confirm: ju } = It, jn = ({
3070
3075
  onOk: e,
3071
3076
  onCancel: t,
3072
3077
  t: n
3073
3078
  }) => {
3074
- Bu({
3079
+ ju({
3075
3080
  title: n("unsavedChanges"),
3076
3081
  icon: /* @__PURE__ */ s(Dr, {}),
3077
3082
  centered: !0,
@@ -3114,7 +3119,7 @@ function Ho(e) {
3114
3119
  ], [n, t.view_id, l]);
3115
3120
  function d(u) {
3116
3121
  if (i) {
3117
- Bn({
3122
+ jn({
3118
3123
  t: l,
3119
3124
  onOk: () => {
3120
3125
  u();
@@ -3204,7 +3209,7 @@ function ia(e) {
3204
3209
  Et
3205
3210
  ), { t: o } = he(), i = () => {
3206
3211
  if (n) {
3207
- Bn({
3212
+ jn({
3208
3213
  t: o,
3209
3214
  onOk: () => {
3210
3215
  r();
@@ -3254,7 +3259,7 @@ function aa(e) {
3254
3259
  )
3255
3260
  ] });
3256
3261
  }
3257
- async function jo(e, t, n) {
3262
+ async function Bo(e, t, n) {
3258
3263
  const r = (await L.getHandler().getLogInfo({
3259
3264
  model: e,
3260
3265
  ids: [t]
@@ -3332,8 +3337,8 @@ function Yu(e) {
3332
3337
  }
3333
3338
  );
3334
3339
  }
3335
- var Bt = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e.FEATURE_GET_TOOLBAR = "get_toolbar", e.FEATURE_MANY2ONE_SORT = "many2one_sort", e.FEATURE_LOGGABLE_ACTIONS = "user_action_logs", e))(Bt || {});
3336
- const lb = Object.values(Bt), Vt = Zt.createContext(null), Wu = (e) => {
3340
+ var jt = /* @__PURE__ */ ((e) => (e.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", e.FEATURE_ADVANCED_EXPORT = "export_data2", e.FEATURE_OMNISEARCH = "omnisearch", e.FEATURE_READFORVIEW = "read_for_view", e.FEATURE_USERVIEWPREFS = "user_view_prefs", e.FEATURE_GET_TOOLBAR = "get_toolbar", e.FEATURE_MANY2ONE_SORT = "many2one_sort", e.FEATURE_LOGGABLE_ACTIONS = "user_action_logs", e))(jt || {});
3341
+ const lb = Object.values(jt), Vt = Zt.createContext(null), Wu = (e) => {
3337
3342
  const {
3338
3343
  children: t,
3339
3344
  openAction: n,
@@ -3369,7 +3374,7 @@ const lb = Object.values(Bt), Vt = Zt.createContext(null), Wu = (e) => {
3369
3374
  }
3370
3375
  );
3371
3376
  };
3372
- function Bo() {
3377
+ function jo() {
3373
3378
  return le(Vt) || {};
3374
3379
  }
3375
3380
  const yn = Zt.createContext(null), Fs = async (e) => {
@@ -3405,7 +3410,7 @@ const yn = Zt.createContext(null), Fs = async (e) => {
3405
3410
  });
3406
3411
  return;
3407
3412
  }
3408
- const { ids: H } = N || {}, O = H || [], B = typeof P == "string" ? rn({
3413
+ const { ids: H } = N || {}, O = H || [], j = typeof P == "string" ? rn({
3409
3414
  context: P,
3410
3415
  fields: R,
3411
3416
  values: C
@@ -3416,7 +3421,7 @@ const yn = Zt.createContext(null), Fs = async (e) => {
3416
3421
  name: M,
3417
3422
  datas: N,
3418
3423
  ids: O,
3419
- context: { ...T, ...B }
3424
+ context: { ...T, ...j }
3420
3425
  });
3421
3426
  l(!0), i.current = !0, o.current = setInterval(() => {
3422
3427
  b(J);
@@ -3433,7 +3438,7 @@ const yn = Zt.createContext(null), Fs = async (e) => {
3433
3438
  }), w.state && i.current === !0) {
3434
3439
  i.current = !1, clearInterval(o.current), l(!1);
3435
3440
  const R = await Mn(w.result);
3436
- Br(w.result, R.mime);
3441
+ jr(w.result, R.mime);
3437
3442
  }
3438
3443
  } catch (R) {
3439
3444
  i.current = !1, clearInterval(o.current), l(!1), m(R.exception || R);
@@ -3513,7 +3518,7 @@ const yn = Zt.createContext(null), Fs = async (e) => {
3513
3518
  context: N
3514
3519
  }), {};
3515
3520
  } else {
3516
- const { initialView: O, views: B } = await qu({
3521
+ const { initialView: O, views: j } = await qu({
3517
3522
  model: T.res_model,
3518
3523
  context: N,
3519
3524
  view_mode: T.view_mode,
@@ -3524,7 +3529,7 @@ const yn = Zt.createContext(null), Fs = async (e) => {
3524
3529
  context: N,
3525
3530
  domain: M,
3526
3531
  model: T.res_model,
3527
- views: B,
3532
+ views: j,
3528
3533
  title: T.name,
3529
3534
  initialView: O,
3530
3535
  action_id: T.id,
@@ -3765,7 +3770,7 @@ function Ur({ res_id: e, searchParams: t }) {
3765
3770
  const n = z(null), { currentView: r, limit: o, currentPage: i, order: a } = bn(), l = {
3766
3771
  id: r.view_id,
3767
3772
  type: r.type
3768
- }, { token: c } = et.useToken(), { t: d } = he(), [f, u] = I(!1), { currentTab: m } = Bo(), p = E(
3773
+ }, { token: c } = et.useToken(), { t: d } = he(), [f, u] = I(!1), { currentTab: m } = jo(), p = E(
3769
3774
  (S) => {
3770
3775
  try {
3771
3776
  const x = document.createElement("textarea");
@@ -3876,11 +3881,11 @@ function nf({
3876
3881
  setSearchParams: P,
3877
3882
  setSearchValues: k
3878
3883
  } = le(Et), N = ln(
3879
- Bt.FEATURE_ADVANCED_EXPORT
3880
- ), { t: M } = he(), [V, H] = I(!1), O = z(!0), { showErrorNotification: B } = gt(), J = E(() => {
3884
+ jt.FEATURE_ADVANCED_EXPORT
3885
+ ), { t: M } = he(), [V, H] = I(!1), O = z(!0), { showErrorNotification: j } = gt(), J = E(() => {
3881
3886
  var ne;
3882
3887
  (ne = p == null ? void 0 : p.current) == null || ne.refreshResults();
3883
- }, [p]), { actionButtonProps: j, printButtonProps: ae } = ca({
3888
+ }, [p]), { actionButtonProps: B, printButtonProps: ae } = ca({
3884
3889
  toolbar: n,
3885
3890
  disabled: x,
3886
3891
  parentContext: e,
@@ -3903,7 +3908,7 @@ function nf({
3903
3908
  context: { ...e }
3904
3909
  }) && ((ne = p == null ? void 0 : p.current) == null || ne.refreshResults());
3905
3910
  } catch (Z) {
3906
- B(Z);
3911
+ j(Z);
3907
3912
  } finally {
3908
3913
  u == null || u(!1);
3909
3914
  }
@@ -3913,7 +3918,7 @@ function nf({
3913
3918
  p,
3914
3919
  l,
3915
3920
  u,
3916
- B
3921
+ j
3917
3922
  ]), W = E(async () => {
3918
3923
  var ne;
3919
3924
  try {
@@ -3923,7 +3928,7 @@ function nf({
3923
3928
  context: { ...e }
3924
3929
  }), h == null || h(void 0), y == null || y(void 0), (ne = p == null ? void 0 : p.current) == null || ne.refreshResults();
3925
3930
  } catch (Z) {
3926
- B(Z);
3931
+ j(Z);
3927
3932
  } finally {
3928
3933
  c == null || c(!1);
3929
3934
  }
@@ -3935,7 +3940,7 @@ function nf({
3935
3940
  h,
3936
3941
  y,
3937
3942
  c,
3938
- B
3943
+ j
3939
3944
  ]), ee = E(
3940
3945
  (ne) => {
3941
3946
  A == null || A(i), a == null || a(ne);
@@ -4078,7 +4083,7 @@ function nf({
4078
4083
  icon: /* @__PURE__ */ s(Pr, {}),
4079
4084
  tooltip: M("showLogs"),
4080
4085
  disabled: !(l && (l == null ? void 0 : l.length) === 1) || x,
4081
- onClick: () => jo(m, l[0].id, M)
4086
+ onClick: () => Bo(m, l[0].id, M)
4082
4087
  }
4083
4088
  ),
4084
4089
  /* @__PURE__ */ s(
@@ -4104,7 +4109,7 @@ function nf({
4104
4109
  )
4105
4110
  ] }),
4106
4111
  /* @__PURE__ */ s(pt, {}),
4107
- /* @__PURE__ */ s(Kt, { icon: /* @__PURE__ */ s(Mr, {}), ...j }),
4112
+ /* @__PURE__ */ s(Kt, { icon: /* @__PURE__ */ s(Mr, {}), ...B }),
4108
4113
  /* @__PURE__ */ s(Kt, { icon: /* @__PURE__ */ s($r, {}), ...ae }),
4109
4114
  N && /* @__PURE__ */ $(ce, { children: [
4110
4115
  /* @__PURE__ */ s(pt, {}),
@@ -4133,7 +4138,7 @@ function nf({
4133
4138
  }
4134
4139
  ),
4135
4140
  /* @__PURE__ */ s(
4136
- jg,
4141
+ Bg,
4137
4142
  {
4138
4143
  visible: V,
4139
4144
  onClose: () => H(!1),
@@ -4387,7 +4392,7 @@ const { useToken: of } = et, { Title: sf, Text: hr } = an, Yr = ({
4387
4392
  return { getColumnState: i, updateColumnState: a };
4388
4393
  }, cf = (e) => {
4389
4394
  const t = ln(
4390
- Bt.FEATURE_USERVIEWPREFS
4395
+ jt.FEATURE_USERVIEWPREFS
4391
4396
  ), {
4392
4397
  getColumnState: n,
4393
4398
  updateColumnState: r
@@ -4558,7 +4563,7 @@ const { useToken: of } = et, { Title: sf, Text: hr } = an, Yr = ({
4558
4563
  }, df = {
4559
4564
  en_US: Lc,
4560
4565
  es_ES: Hc,
4561
- ca_ES: jc
4566
+ ca_ES: Bc
4562
4567
  }, ha = () => {
4563
4568
  const { locale: e } = he();
4564
4569
  return df[e];
@@ -4665,7 +4670,7 @@ const { useToken: of } = et, { Title: sf, Text: hr } = an, Yr = ({
4665
4670
  autocompleteWithZeros: r !== void 0
4666
4671
  });
4667
4672
  return /* @__PURE__ */ s(
4668
- jl,
4673
+ Bl,
4669
4674
  {
4670
4675
  ...o,
4671
4676
  ref: i,
@@ -4749,7 +4754,7 @@ const { useToken: of } = et, { Title: sf, Text: hr } = an, Yr = ({
4749
4754
  const { ooui: t } = e, { id: n, decimalDigits: r, readOnly: o, required: i } = t, a = le(Xe), { elementHasLostFocus: l } = a || {}, c = Q(() => i && !o, [i, o]), d = Q(
4750
4755
  () => c ? wf : _r,
4751
4756
  [c]
4752
- ), f = E((m) => m ? /* @__PURE__ */ s(jr, { content: m }) : null, []), u = E((m) => `${m}`.replace(/[^0-9.-]+/g, ""), []);
4757
+ ), f = E((m) => m ? /* @__PURE__ */ s(Br, { content: m }) : null, []), u = E((m) => `${m}`.replace(/[^0-9.-]+/g, ""), []);
4753
4758
  return /* @__PURE__ */ s(He, { required: c, type: "number", ...e, children: /* @__PURE__ */ s(
4754
4759
  d,
4755
4760
  {
@@ -4775,7 +4780,7 @@ const wf = Ft(_r)`
4775
4780
  const { ooui: t, onChange: n } = e, { id: r, readOnly: o, required: i } = t, { token: a } = xf(), l = i && !o ? { backgroundColor: a.colorPrimaryBg } : void 0, c = le(Xe), { elementHasLostFocus: d } = c || {}, f = Q(() => i && !o, [i, o]), u = Q(
4776
4781
  () => f ? Tf : _r,
4777
4782
  [f]
4778
- ), m = E((y) => y ? /* @__PURE__ */ s(jr, { content: y }) : null, []), p = E((y) => y === void 0 ? "" : typeof y == "string" && !isNaN(parseFloat(y)) ? `${Math.trunc(parseFloat(y))}`.replace(/[^0-9\-]+/g, "") : typeof y == "number" ? `${Math.trunc(y)}`.replace(/[^0-9\-]+/g, "") : "", []), h = E(
4783
+ ), m = E((y) => y ? /* @__PURE__ */ s(Br, { content: y }) : null, []), p = E((y) => y === void 0 ? "" : typeof y == "string" && !isNaN(parseFloat(y)) ? `${Math.trunc(parseFloat(y))}`.replace(/[^0-9\-]+/g, "") : typeof y == "number" ? `${Math.trunc(y)}`.replace(/[^0-9\-]+/g, "") : "", []), h = E(
4779
4784
  (y) => {
4780
4785
  const g = y;
4781
4786
  n == null || n(g);
@@ -4913,7 +4918,7 @@ function ya(e) {
4913
4918
  return /* @__PURE__ */ s(Ef, { layout: "vertical", ooui: t, showLabel: !0 });
4914
4919
  default:
4915
4920
  return /* @__PURE__ */ s(
4916
- ji,
4921
+ Bi,
4917
4922
  {
4918
4923
  ooui: t,
4919
4924
  layout: "vertical",
@@ -5017,7 +5022,7 @@ const { useToken: kf } = et, { Title: Mf } = an, { Header: $f, Content: Vf, Foot
5017
5022
  ze,
5018
5023
  {
5019
5024
  type: "text",
5020
- icon: /* @__PURE__ */ s(jn, {}),
5025
+ icon: /* @__PURE__ */ s(Bn, {}),
5021
5026
  onClick: t,
5022
5027
  "aria-label": "Close"
5023
5028
  }
@@ -5144,7 +5149,7 @@ function Hf() {
5144
5149
  }
5145
5150
  return eo = e, eo;
5146
5151
  }
5147
- var jf = Array.prototype.slice, Bf = va, Rs = Object.keys, yr = Rs ? function(t) {
5152
+ var Bf = Array.prototype.slice, jf = va, Rs = Object.keys, yr = Rs ? function(t) {
5148
5153
  return Rs(t);
5149
5154
  } : Hf(), _s = Object.keys;
5150
5155
  yr.shim = function() {
@@ -5154,7 +5159,7 @@ yr.shim = function() {
5154
5159
  return n && n.length === arguments.length;
5155
5160
  }(1, 2);
5156
5161
  t || (Object.keys = function(r) {
5157
- return Bf(r) ? _s(jf.call(r)) : _s(r);
5162
+ return jf(r) ? _s(Bf.call(r)) : _s(r);
5158
5163
  });
5159
5164
  } else
5160
5165
  Object.keys = yr;
@@ -5217,7 +5222,7 @@ var ba = yr, wa = function() {
5217
5222
  return o;
5218
5223
  }, Xf = Qf, xa = Function.prototype.bind || Xf, Os = {}.hasOwnProperty, no = Function.prototype.call, Zf = no.bind ? no.bind(Os) : function(e, t) {
5219
5224
  return no.call(Os, e, t);
5220
- }, Be, Nn = SyntaxError, Sa = Function, Pn = TypeError, ro = function(e) {
5225
+ }, je, Nn = SyntaxError, Sa = Function, Pn = TypeError, ro = function(e) {
5221
5226
  try {
5222
5227
  return Sa('"use strict"; return (' + e + ").constructor;")();
5223
5228
  } catch {
@@ -5243,22 +5248,22 @@ var oo = function() {
5243
5248
  }
5244
5249
  }() : oo, In = Wf(), tm = qf(), bt = Object.getPrototypeOf || (tm ? function(e) {
5245
5250
  return e.__proto__;
5246
- } : null), Dn = {}, nm = typeof Uint8Array > "u" || !bt ? Be : bt(Uint8Array), mn = {
5247
- "%AggregateError%": typeof AggregateError > "u" ? Be : AggregateError,
5251
+ } : null), Dn = {}, nm = typeof Uint8Array > "u" || !bt ? je : bt(Uint8Array), mn = {
5252
+ "%AggregateError%": typeof AggregateError > "u" ? je : AggregateError,
5248
5253
  "%Array%": Array,
5249
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? Be : ArrayBuffer,
5250
- "%ArrayIteratorPrototype%": In && bt ? bt([][Symbol.iterator]()) : Be,
5251
- "%AsyncFromSyncIteratorPrototype%": Be,
5254
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? je : ArrayBuffer,
5255
+ "%ArrayIteratorPrototype%": In && bt ? bt([][Symbol.iterator]()) : je,
5256
+ "%AsyncFromSyncIteratorPrototype%": je,
5252
5257
  "%AsyncFunction%": Dn,
5253
5258
  "%AsyncGenerator%": Dn,
5254
5259
  "%AsyncGeneratorFunction%": Dn,
5255
5260
  "%AsyncIteratorPrototype%": Dn,
5256
- "%Atomics%": typeof Atomics > "u" ? Be : Atomics,
5257
- "%BigInt%": typeof BigInt > "u" ? Be : BigInt,
5258
- "%BigInt64Array%": typeof BigInt64Array > "u" ? Be : BigInt64Array,
5259
- "%BigUint64Array%": typeof BigUint64Array > "u" ? Be : BigUint64Array,
5261
+ "%Atomics%": typeof Atomics > "u" ? je : Atomics,
5262
+ "%BigInt%": typeof BigInt > "u" ? je : BigInt,
5263
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? je : BigInt64Array,
5264
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? je : BigUint64Array,
5260
5265
  "%Boolean%": Boolean,
5261
- "%DataView%": typeof DataView > "u" ? Be : DataView,
5266
+ "%DataView%": typeof DataView > "u" ? je : DataView,
5262
5267
  "%Date%": Date,
5263
5268
  "%decodeURI%": decodeURI,
5264
5269
  "%decodeURIComponent%": decodeURIComponent,
@@ -5268,49 +5273,49 @@ var oo = function() {
5268
5273
  "%eval%": eval,
5269
5274
  // eslint-disable-line no-eval
5270
5275
  "%EvalError%": EvalError,
5271
- "%Float32Array%": typeof Float32Array > "u" ? Be : Float32Array,
5272
- "%Float64Array%": typeof Float64Array > "u" ? Be : Float64Array,
5273
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? Be : FinalizationRegistry,
5276
+ "%Float32Array%": typeof Float32Array > "u" ? je : Float32Array,
5277
+ "%Float64Array%": typeof Float64Array > "u" ? je : Float64Array,
5278
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? je : FinalizationRegistry,
5274
5279
  "%Function%": Sa,
5275
5280
  "%GeneratorFunction%": Dn,
5276
- "%Int8Array%": typeof Int8Array > "u" ? Be : Int8Array,
5277
- "%Int16Array%": typeof Int16Array > "u" ? Be : Int16Array,
5278
- "%Int32Array%": typeof Int32Array > "u" ? Be : Int32Array,
5281
+ "%Int8Array%": typeof Int8Array > "u" ? je : Int8Array,
5282
+ "%Int16Array%": typeof Int16Array > "u" ? je : Int16Array,
5283
+ "%Int32Array%": typeof Int32Array > "u" ? je : Int32Array,
5279
5284
  "%isFinite%": isFinite,
5280
5285
  "%isNaN%": isNaN,
5281
- "%IteratorPrototype%": In && bt ? bt(bt([][Symbol.iterator]())) : Be,
5282
- "%JSON%": typeof JSON == "object" ? JSON : Be,
5283
- "%Map%": typeof Map > "u" ? Be : Map,
5284
- "%MapIteratorPrototype%": typeof Map > "u" || !In || !bt ? Be : bt((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5286
+ "%IteratorPrototype%": In && bt ? bt(bt([][Symbol.iterator]())) : je,
5287
+ "%JSON%": typeof JSON == "object" ? JSON : je,
5288
+ "%Map%": typeof Map > "u" ? je : Map,
5289
+ "%MapIteratorPrototype%": typeof Map > "u" || !In || !bt ? je : bt((/* @__PURE__ */ new Map())[Symbol.iterator]()),
5285
5290
  "%Math%": Math,
5286
5291
  "%Number%": Number,
5287
5292
  "%Object%": Object,
5288
5293
  "%parseFloat%": parseFloat,
5289
5294
  "%parseInt%": parseInt,
5290
- "%Promise%": typeof Promise > "u" ? Be : Promise,
5291
- "%Proxy%": typeof Proxy > "u" ? Be : Proxy,
5295
+ "%Promise%": typeof Promise > "u" ? je : Promise,
5296
+ "%Proxy%": typeof Proxy > "u" ? je : Proxy,
5292
5297
  "%RangeError%": RangeError,
5293
5298
  "%ReferenceError%": ReferenceError,
5294
- "%Reflect%": typeof Reflect > "u" ? Be : Reflect,
5299
+ "%Reflect%": typeof Reflect > "u" ? je : Reflect,
5295
5300
  "%RegExp%": RegExp,
5296
- "%Set%": typeof Set > "u" ? Be : Set,
5297
- "%SetIteratorPrototype%": typeof Set > "u" || !In || !bt ? Be : bt((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5298
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? Be : SharedArrayBuffer,
5301
+ "%Set%": typeof Set > "u" ? je : Set,
5302
+ "%SetIteratorPrototype%": typeof Set > "u" || !In || !bt ? je : bt((/* @__PURE__ */ new Set())[Symbol.iterator]()),
5303
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? je : SharedArrayBuffer,
5299
5304
  "%String%": String,
5300
- "%StringIteratorPrototype%": In && bt ? bt(""[Symbol.iterator]()) : Be,
5301
- "%Symbol%": In ? Symbol : Be,
5305
+ "%StringIteratorPrototype%": In && bt ? bt(""[Symbol.iterator]()) : je,
5306
+ "%Symbol%": In ? Symbol : je,
5302
5307
  "%SyntaxError%": Nn,
5303
5308
  "%ThrowTypeError%": em,
5304
5309
  "%TypedArray%": nm,
5305
5310
  "%TypeError%": Pn,
5306
- "%Uint8Array%": typeof Uint8Array > "u" ? Be : Uint8Array,
5307
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Be : Uint8ClampedArray,
5308
- "%Uint16Array%": typeof Uint16Array > "u" ? Be : Uint16Array,
5309
- "%Uint32Array%": typeof Uint32Array > "u" ? Be : Uint32Array,
5311
+ "%Uint8Array%": typeof Uint8Array > "u" ? je : Uint8Array,
5312
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? je : Uint8ClampedArray,
5313
+ "%Uint16Array%": typeof Uint16Array > "u" ? je : Uint16Array,
5314
+ "%Uint32Array%": typeof Uint32Array > "u" ? je : Uint32Array,
5310
5315
  "%URIError%": URIError,
5311
- "%WeakMap%": typeof WeakMap > "u" ? Be : WeakMap,
5312
- "%WeakRef%": typeof WeakRef > "u" ? Be : WeakRef,
5313
- "%WeakSet%": typeof WeakSet > "u" ? Be : WeakSet
5316
+ "%WeakMap%": typeof WeakMap > "u" ? je : WeakMap,
5317
+ "%WeakRef%": typeof WeakRef > "u" ? je : WeakRef,
5318
+ "%WeakSet%": typeof WeakSet > "u" ? je : WeakSet
5314
5319
  };
5315
5320
  if (bt)
5316
5321
  try {
@@ -5617,11 +5622,11 @@ tr.boundFunctionsHaveNames = function() {
5617
5622
  return tr() && typeof Hm == "function" && (function() {
5618
5623
  }).bind().name !== "";
5619
5624
  };
5620
- var jm = tr, Hs = Ra, Bm = Ko(), Um = jm.functionsHaveConfigurableNames(), Ym = TypeError, Wm = function(t, n) {
5625
+ var Bm = tr, Hs = Ra, jm = Ko(), Um = Bm.functionsHaveConfigurableNames(), Ym = TypeError, Wm = function(t, n) {
5621
5626
  if (typeof t != "function")
5622
5627
  throw new Ym("`fn` is not a function");
5623
5628
  var r = arguments.length > 2 && !!arguments[2];
5624
- return (!r || Um) && (Bm ? Hs(t, "name", n, !0, !0) : Hs(t, "name", n)), t;
5629
+ return (!r || Um) && (jm ? Hs(t, "name", n, !0, !0) : Hs(t, "name", n)), t;
5625
5630
  }, Gm = Wm, qm = Object, zm = TypeError, Na = Gm(function() {
5626
5631
  if (this != null && this !== qm(this))
5627
5632
  throw new zm("RegExp.prototype.flags getter called on non-object");
@@ -5645,22 +5650,22 @@ var jm = tr, Hs = Ra, Bm = Ko(), Um = jm.functionsHaveConfigurableNames(), Ym =
5645
5650
  }
5646
5651
  }
5647
5652
  return Jm;
5648
- }, Xm = fr.supportsDescriptors, Zm = La, ep = Object.getOwnPropertyDescriptor, tp = Object.defineProperty, np = TypeError, js = Object.getPrototypeOf, rp = /a/, op = function() {
5649
- if (!Xm || !js)
5653
+ }, Xm = fr.supportsDescriptors, Zm = La, ep = Object.getOwnPropertyDescriptor, tp = Object.defineProperty, np = TypeError, Bs = Object.getPrototypeOf, rp = /a/, op = function() {
5654
+ if (!Xm || !Bs)
5650
5655
  throw new np("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
5651
- var t = Zm(), n = js(rp), r = ep(n, "flags");
5656
+ var t = Zm(), n = Bs(rp), r = ep(n, "flags");
5652
5657
  return (!r || r.get !== t) && tp(n, "flags", {
5653
5658
  configurable: !0,
5654
5659
  enumerable: !1,
5655
5660
  get: t
5656
5661
  }), t;
5657
- }, sp = fr, ip = Jo, ap = Na, Ha = La, lp = op, ja = ip(Ha());
5658
- sp(ja, {
5662
+ }, sp = fr, ip = Jo, ap = Na, Ha = La, lp = op, Ba = ip(Ha());
5663
+ sp(Ba, {
5659
5664
  getPolyfill: Ha,
5660
5665
  implementation: ap,
5661
5666
  shim: lp
5662
5667
  });
5663
- var cp = ja, dp = Date.prototype.getDay, up = function(t) {
5668
+ var cp = Ba, dp = Date.prototype.getDay, up = function(t) {
5664
5669
  try {
5665
5670
  return dp.call(t), !0;
5666
5671
  } catch {
@@ -5668,8 +5673,8 @@ var cp = ja, dp = Date.prototype.getDay, up = function(t) {
5668
5673
  }
5669
5674
  }, fp = Object.prototype.toString, mp = "[object Date]", pp = zo(), hp = function(t) {
5670
5675
  return typeof t != "object" || t === null ? !1 : pp ? up(t) : fp.call(t) === mp;
5671
- }, Bs = ba, Us = gm, Ys = Mm, Ws = Lm, Gs = cp, qs = hp, zs = Date.prototype.getTime;
5672
- function Ba(e, t, n) {
5676
+ }, js = ba, Us = gm, Ys = Mm, Ws = Lm, Gs = cp, qs = hp, zs = Date.prototype.getTime;
5677
+ function ja(e, t, n) {
5673
5678
  var r = n || {};
5674
5679
  return (r.strict ? Ys(e, t) : e === t) ? !0 : !e || !t || typeof e != "object" && typeof t != "object" ? r.strict ? Ys(e, t) : e == t : gp(e, t, r);
5675
5680
  }
@@ -5704,7 +5709,7 @@ function gp(e, t, n) {
5704
5709
  if (typeof e != typeof t)
5705
5710
  return !1;
5706
5711
  try {
5707
- var d = Bs(e), f = Bs(t);
5712
+ var d = js(e), f = js(t);
5708
5713
  } catch {
5709
5714
  return !1;
5710
5715
  }
@@ -5714,11 +5719,11 @@ function gp(e, t, n) {
5714
5719
  if (d[r] != f[r])
5715
5720
  return !1;
5716
5721
  for (r = d.length - 1; r >= 0; r--)
5717
- if (o = d[r], !Ba(e[o], t[o], n))
5722
+ if (o = d[r], !ja(e[o], t[o], n))
5718
5723
  return !1;
5719
5724
  return !0;
5720
5725
  }
5721
- var yp = Ba;
5726
+ var yp = ja;
5722
5727
  const Xo = /* @__PURE__ */ Vi(yp), Ua = $t(
5723
5728
  (e, t) => {
5724
5729
  const { onSubmit: n, searchValues: r, searchFields: o, onChange: i, onClear: a } = e, [l] = kt.useForm(), [c, d] = I({}), [f, u] = I(""), { t: m } = he();
@@ -6340,8 +6345,8 @@ const nr = ({
6340
6345
  values: H,
6341
6346
  context: r
6342
6347
  });
6343
- l(O, a), M.forEach((B) => {
6344
- S.current[B.id] = B;
6348
+ l(O, a), M.forEach((j) => {
6349
+ S.current[j.id] = j;
6345
6350
  });
6346
6351
  } catch (O) {
6347
6352
  O.name !== "AbortError" && console.error("Error parsing conditions:", O);
@@ -6426,33 +6431,33 @@ const nr = ({
6426
6431
  f(!1), u.current = [];
6427
6432
  return;
6428
6433
  }
6429
- const H = Object.entries(m).filter(([O, B]) => B.is_function === !0).map(([O]) => O);
6434
+ const H = Object.entries(m).filter(([O, j]) => j.is_function === !0).map(([O]) => O);
6430
6435
  f(H.length > 0), u.current = H;
6431
6436
  }, [m]);
6432
6437
  const R = E(() => {
6433
- var B, J;
6438
+ var j, J;
6434
6439
  if (!t)
6435
6440
  return !1;
6436
- const H = ((B = t.fields_in_conditions) == null ? void 0 : B.colors) || [], O = ((J = t.fields_in_conditions) == null ? void 0 : J.status) || [];
6437
- return H.some((j) => u.current.includes(j)) || O.some((j) => u.current.includes(j));
6441
+ const H = ((j = t.fields_in_conditions) == null ? void 0 : j.colors) || [], O = ((J = t.fields_in_conditions) == null ? void 0 : J.status) || [];
6442
+ return H.some((B) => u.current.includes(B)) || O.some((B) => u.current.includes(B));
6438
6443
  }, [t]), C = E(async () => {
6439
6444
  if (!d || h.size === 0 || !o || !u.current.length || !a)
6440
6445
  return;
6441
6446
  const H = Array.from(h).filter(
6442
- (O) => !g.current.has(O) && !v.current.find((B) => B.id === O)
6447
+ (O) => !g.current.has(O) && !v.current.find((j) => j.id === O)
6443
6448
  );
6444
6449
  if (H.length !== 0)
6445
6450
  try {
6446
- H.forEach((j) => g.current.add(j));
6451
+ H.forEach((B) => g.current.add(B));
6447
6452
  const { results: O } = await x({
6448
6453
  searchIds: H,
6449
6454
  fieldsToRetrieve: u.current
6450
- }), B = on(a, O), J = [...v.current];
6451
- B.forEach((j) => {
6455
+ }), j = on(a, O), J = [...v.current];
6456
+ j.forEach((B) => {
6452
6457
  const ae = J.findIndex(
6453
- (X) => X.id === j.id
6458
+ (X) => X.id === B.id
6454
6459
  );
6455
- ae >= 0 ? J[ae] = j : J.push(j);
6460
+ ae >= 0 ? J[ae] = B : J.push(B);
6456
6461
  }), v.current = J;
6457
6462
  } catch (O) {
6458
6463
  O.name !== "AbortError" && console.error("Error updating function fields:", O);
@@ -6470,8 +6475,8 @@ const nr = ({
6470
6475
  const T = E(
6471
6476
  (H) => {
6472
6477
  !H || H.length === 0 || (y((O) => {
6473
- const B = new Set(O);
6474
- return H.forEach((J) => B.add(J)), B;
6478
+ const j = new Set(O);
6479
+ return H.forEach((J) => j.add(J)), j;
6475
6480
  }), d && o && a && setTimeout(() => {
6476
6481
  C();
6477
6482
  }, 100));
@@ -6481,21 +6486,21 @@ const nr = ({
6481
6486
  async (H) => {
6482
6487
  var J;
6483
6488
  if (i == null || i(H), H.length === 0 || !u.current.some(
6484
- (j) => H.some((ae) => ae[j] !== void 0)
6489
+ (B) => H.some((ae) => ae[B] !== void 0)
6485
6490
  ) || !R() || !a || !l)
6486
6491
  return;
6487
- const O = H.map((j) => ({ ...c == null ? void 0 : c.find((X) => X.id === j.id), ...j })), B = nr({
6492
+ const O = H.map((B) => ({ ...c == null ? void 0 : c.find((X) => X.id === B.id), ...B })), j = nr({
6488
6493
  treeOoui: a
6489
6494
  });
6490
6495
  try {
6491
- const j = await _({
6492
- conditions: B,
6496
+ const B = await _({
6497
+ conditions: j,
6493
6498
  values: O,
6494
6499
  context: r
6495
6500
  });
6496
- l(j, a), (J = n == null ? void 0 : n.current) == null || J.refreshRowStyles();
6497
- } catch (j) {
6498
- j.name !== "AbortError" && console.error("Error parsing conditions:", j);
6501
+ l(B, a), (J = n == null ? void 0 : n.current) == null || J.refreshRowStyles();
6502
+ } catch (B) {
6503
+ B.name !== "AbortError" && console.error("Error parsing conditions:", B);
6499
6504
  }
6500
6505
  },
6501
6506
  [
@@ -6509,20 +6514,20 @@ const nr = ({
6509
6514
  n
6510
6515
  ]
6511
6516
  ), k = E(() => {
6512
- var B, J;
6513
- const H = ((B = n == null ? void 0 : n.current) == null ? void 0 : B.getVisibleRows()) || [];
6517
+ var j, J;
6518
+ const H = ((j = n == null ? void 0 : n.current) == null ? void 0 : j.getVisibleRows()) || [];
6514
6519
  if (H.length === 0 || v.current.length === 0)
6515
6520
  return;
6516
- const O = v.current.filter((j) => {
6521
+ const O = v.current.filter((B) => {
6517
6522
  const ae = H.find(
6518
- (ge) => (ge == null ? void 0 : ge.id) === (j == null ? void 0 : j.id)
6523
+ (ge) => (ge == null ? void 0 : ge.id) === (B == null ? void 0 : B.id)
6519
6524
  );
6520
6525
  return ae ? u.current.some(
6521
- (ge) => j[ge] !== ae[ge]
6526
+ (ge) => B[ge] !== ae[ge]
6522
6527
  ) : !1;
6523
6528
  }).filter(Boolean);
6524
- O.length > 0 && (O.forEach((j) => g.current.delete(j.id)), P(O), (J = n == null ? void 0 : n.current) == null || J.updateRows(O));
6525
- }, [n, P]), N = E((H, O) => u.current.includes(O) ? !v.current.find((B) => B.id === (H == null ? void 0 : H.id)) : !1, []);
6529
+ O.length > 0 && (O.forEach((B) => g.current.delete(B.id)), P(O), (J = n == null ? void 0 : n.current) == null || J.updateRows(O));
6530
+ }, [n, P]), N = E((H, O) => u.current.includes(O) ? !v.current.find((j) => j.id === (H == null ? void 0 : H.id)) : !1, []);
6526
6531
  Ze(() => (d && F && (k(), b.current = setInterval(
6527
6532
  k,
6528
6533
  Fp
@@ -6678,7 +6683,7 @@ const Rp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Qa,
6678
6683
  align-items: center;
6679
6684
  width: 100%;
6680
6685
  min-width: 0;
6681
- `, Dp = Ft(Bl)`
6686
+ `, Dp = Ft(jl)`
6682
6687
  flex: 1;
6683
6688
  min-width: 0;
6684
6689
  .ant-progress-outer {
@@ -7115,14 +7120,14 @@ const Np = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Xa,
7115
7120
  m = m.hour(p).minute(h), i(m.format(ht.time.dateInternalFormat));
7116
7121
  }
7117
7122
  }
7118
- }, jp = (e, t) => {
7123
+ }, Bp = (e, t) => {
7119
7124
  if (!e)
7120
7125
  return !0;
7121
7126
  const n = el();
7122
7127
  return n.day.test(e) || n.dayMonth.test(e) || n.fullDate.test(e) || t && (n.fullDate.test(e) || n.withHours.test(e) || n.withMinutes.test(e));
7123
7128
  }, vn = Zt.createContext(
7124
7129
  null
7125
- ), Bp = ({
7130
+ ), jp = ({
7126
7131
  children: e,
7127
7132
  initialView: t
7128
7133
  }) => {
@@ -7348,7 +7353,7 @@ const Np = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Xa,
7348
7353
  char: zp
7349
7354
  }, nl = (e, t) => {
7350
7355
  const { t: n } = he(), r = ln(
7351
- Bt.FEATURE_MANY2ONE_SORT
7356
+ jt.FEATURE_MANY2ONE_SORT
7352
7357
  ), o = Qn(() => {
7353
7358
  if (e)
7354
7359
  return No(
@@ -7402,9 +7407,9 @@ function ah(e, t) {
7402
7407
  treeFirstVisibleRow: V,
7403
7408
  selectedRowItems: H,
7404
7409
  setSearchParams: O,
7405
- searchValues: B,
7410
+ searchValues: j,
7406
7411
  searchParams: J,
7407
- setSearchValues: j,
7412
+ setSearchValues: B,
7408
7413
  searchTreeNameSearch: ae,
7409
7414
  setSearchTreeNameSearch: X,
7410
7415
  setResults: ge,
@@ -7417,7 +7422,7 @@ function ah(e, t) {
7417
7422
  } = Wa({ useLocalState: !c }), Y = u || ae, te = z(Y), ne = z(!1), Z = z(), ve = z(), Oe = z(!1);
7418
7423
  de(() => {
7419
7424
  var we, Le;
7420
- Y !== void 0 && te.current === void 0 || typeof Y == "string" && typeof te.current == "string" && Y !== te.current ? (ne.current = !!Y, O == null || O([]), j == null || j({}), (we = h.current) == null || we.unselectAll()) : Y === void 0 && te.current !== void 0 && (ne.current = !1, (Le = h.current) == null || Le.unselectAll()), te.current = Y;
7425
+ Y !== void 0 && te.current === void 0 || typeof Y == "string" && typeof te.current == "string" && Y !== te.current ? (ne.current = !!Y, O == null || O([]), B == null || B({}), (we = h.current) == null || we.unselectAll()) : Y === void 0 && te.current !== void 0 && (ne.current = !1, (Le = h.current) == null || Le.unselectAll()), te.current = Y;
7421
7426
  }, [Y]);
7422
7427
  const Se = Q(() => {
7423
7428
  if (w)
@@ -7453,7 +7458,7 @@ function ah(e, t) {
7453
7458
  treeOoui: Se,
7454
7459
  updateAttributes: Fe,
7455
7460
  results: re
7456
- }), { columns: $e, strings: Re } = nl(Se, d), je = Q(() => {
7461
+ }), { columns: $e, strings: Re } = nl(Se, d), Be = Q(() => {
7457
7462
  if ($e)
7458
7463
  return $e.map((we) => ({
7459
7464
  ...we,
@@ -7692,7 +7697,7 @@ function ah(e, t) {
7692
7697
  readonly: !1,
7693
7698
  ref: h,
7694
7699
  height: D,
7695
- columns: je,
7700
+ columns: Be,
7696
7701
  onRequestData: De,
7697
7702
  onRowDoubleClick: i,
7698
7703
  onRowStyle: Ne,
@@ -7718,7 +7723,7 @@ function ah(e, t) {
7718
7723
  $e,
7719
7724
  Se,
7720
7725
  D,
7721
- je,
7726
+ Be,
7722
7727
  De,
7723
7728
  i,
7724
7729
  Ne,
@@ -7775,7 +7780,7 @@ function ah(e, t) {
7775
7780
  limit: 0,
7776
7781
  offset: 0,
7777
7782
  isSearching: !1,
7778
- searchValues: B,
7783
+ searchValues: j,
7779
7784
  searchVisible: !0
7780
7785
  }),
7781
7786
  [
@@ -7783,26 +7788,26 @@ function ah(e, t) {
7783
7788
  R == null ? void 0 : R.search_fields,
7784
7789
  w == null ? void 0 : w.fields,
7785
7790
  w == null ? void 0 : w.search_fields,
7786
- B
7791
+ j
7787
7792
  ]
7788
7793
  ), Nt = E(() => {
7789
7794
  var we;
7790
- me([]), (we = h.current) == null || we.unselectAll(), X == null || X(void 0), O == null || O([]), j == null || j(void 0);
7795
+ me([]), (we = h.current) == null || we.unselectAll(), X == null || X(void 0), O == null || O([]), B == null || B(void 0);
7791
7796
  }, [
7792
7797
  me,
7793
7798
  X,
7794
7799
  O,
7795
- j
7800
+ B
7796
7801
  ]), Cn = E(
7797
7802
  ({ params: we, searchValues: Le }) => {
7798
7803
  var ot;
7799
- me([]), (ot = h.current) == null || ot.unselectAll(), X == null || X(void 0), O == null || O(we), j == null || j(Le);
7804
+ me([]), (ot = h.current) == null || ot.unselectAll(), X == null || X(void 0), O == null || O(we), B == null || B(Le);
7800
7805
  },
7801
7806
  [
7802
7807
  me,
7803
7808
  X,
7804
7809
  O,
7805
- j
7810
+ B
7806
7811
  ]
7807
7812
  ), Fn = Q(
7808
7813
  () => ({
@@ -7812,7 +7817,7 @@ function ah(e, t) {
7812
7817
  R == null ? void 0 : R.search_fields,
7813
7818
  w == null ? void 0 : w.search_fields
7814
7819
  ]),
7815
- searchValues: B
7820
+ searchValues: j
7816
7821
  }),
7817
7822
  [
7818
7823
  P,
@@ -7820,21 +7825,21 @@ function ah(e, t) {
7820
7825
  R == null ? void 0 : R.search_fields,
7821
7826
  w == null ? void 0 : w.fields,
7822
7827
  w == null ? void 0 : w.search_fields,
7823
- B
7828
+ j
7824
7829
  ]
7825
- ), jt = E(
7830
+ ), Bt = E(
7826
7831
  () => k == null ? void 0 : k(!1),
7827
7832
  [k]
7828
7833
  ), cn = E(
7829
7834
  ({ params: we, values: Le }) => {
7830
7835
  var ot;
7831
- me([]), (ot = h.current) == null || ot.unselectAll(), X == null || X(void 0), O == null || O(we), j == null || j(Le), k == null || k(!1);
7836
+ me([]), (ot = h.current) == null || ot.unselectAll(), X == null || X(void 0), O == null || O(we), B == null || B(Le), k == null || k(!1);
7832
7837
  },
7833
7838
  [
7834
7839
  me,
7835
7840
  X,
7836
7841
  O,
7837
- j,
7842
+ B,
7838
7843
  k
7839
7844
  ]
7840
7845
  ), Tn = Y && S && b !== void 0 && b !== null && b === Ct;
@@ -7851,7 +7856,7 @@ function ah(e, t) {
7851
7856
  Ya,
7852
7857
  {
7853
7858
  ...Fn,
7854
- onClose: jt,
7859
+ onClose: Bt,
7855
7860
  onSubmit: cn
7856
7861
  }
7857
7862
  ),
@@ -7960,8 +7965,8 @@ const rl = $t(ah), ei = (e, t = "14px -apple-system") => {
7960
7965
  } = e, D = z(null), [w, R] = I([]), C = z(!1), [T, P] = I(), { t: k } = he(), N = z(r), M = le(
7961
7966
  Et
7962
7967
  ), { title: V = void 0, setTitle: H = void 0 } = (S ? M : {}) || {}, O = ln(
7963
- Bt.FEATURE_MANY2ONE_SORT
7964
- ), B = Q(() => {
7968
+ jt.FEATURE_MANY2ONE_SORT
7969
+ ), j = Q(() => {
7965
7970
  if (T)
7966
7971
  return No(
7967
7972
  T,
@@ -7989,7 +7994,7 @@ const rl = $t(ah), ei = (e, t = "14px -apple-system") => {
7989
7994
  }, [a]), de(() => {
7990
7995
  N.current = r;
7991
7996
  }, [r]);
7992
- const J = (n - 1) * N.current + 1, j = J - 1 + w.length, ae = o === void 0 ? null : o === 0 ? k("no_results") : k("summary").replace("{from}", J == null ? void 0 : J.toString()).replace("{to}", j == null ? void 0 : j.toString()).replace("{total}", o == null ? void 0 : o.toString()), X = Q(() => {
7997
+ const J = (n - 1) * N.current + 1, B = J - 1 + w.length, ae = o === void 0 ? null : o === 0 ? k("no_results") : k("summary").replace("{from}", J == null ? void 0 : J.toString()).replace("{to}", B == null ? void 0 : B.toString()).replace("{total}", o == null ? void 0 : o.toString()), X = Q(() => {
7993
7998
  if (!f || i.isExpandable)
7994
7999
  return null;
7995
8000
  const ee = w == null ? void 0 : w.filter(
@@ -8041,13 +8046,13 @@ const rl = $t(ah), ei = (e, t = "14px -apple-system") => {
8041
8046
  ue.push(`${Y.label}: ${Math.round(te * 100) / 100}`);
8042
8047
  }), /* @__PURE__ */ s("div", { className: "p-1 pb-0 pl-2 mt-2 ", children: ue.join(", ") });
8043
8048
  }, [w, u, T]), re = Q(() => {
8044
- if (T !== null && B && B.length > 0)
8045
- return lh(B, w, 600);
8046
- }, [B, w, T]), U = Q(() => p && (T != null && T.columns.some((ee) => ee.sum !== void 0)) ? p - 30 : p, [p, T == null ? void 0 : T.columns]);
8049
+ if (T !== null && j && j.length > 0)
8050
+ return lh(j, w, 600);
8051
+ }, [j, w, T]), U = Q(() => p && (T != null && T.columns.some((ee) => ee.sum !== void 0)) ? p - 30 : p, [p, T == null ? void 0 : T.columns]);
8047
8052
  return T === null || !re || ((W = re == null ? void 0 : re.columns) == null ? void 0 : W.length) === 0 ? /* @__PURE__ */ s(tt, { style: { padding: "2rem" } }) : /* @__PURE__ */ $(vr, { children: [
8048
8053
  X,
8049
8054
  /* @__PURE__ */ s(
8050
- Bc,
8055
+ jc,
8051
8056
  {
8052
8057
  ref: D,
8053
8058
  height: U,
@@ -8109,9 +8114,9 @@ const sl = (e) => {
8109
8114
  searchParams: A = [],
8110
8115
  setSearchValues: _,
8111
8116
  clearSelection: D
8112
- } = e, [w, R] = I(!1), [C, T] = I(!1), [P, k] = I(), [N, M] = I(1), [V, H] = I(0), [O, B] = I(), [J, j] = I([]), [ae, X] = I(void 0), [ge, re] = I(void 0), U = z(S || Ct), W = z([]), ee = E(
8117
+ } = e, [w, R] = I(!1), [C, T] = I(!1), [P, k] = I(), [N, M] = I(1), [V, H] = I(0), [O, j] = I(), [J, B] = I([]), [ae, X] = I(void 0), [ge, re] = I(void 0), U = z(S || Ct), W = z([]), ee = E(
8113
8118
  (fe) => {
8114
- g == null || g([...fe]), j([...fe]);
8119
+ g == null || g([...fe]), B([...fe]);
8115
8120
  },
8116
8121
  [g]
8117
8122
  ), ue = E(() => v || J, [v, J]), oe = E(async () => {
@@ -8122,7 +8127,7 @@ const sl = (e) => {
8122
8127
  attrs: b,
8123
8128
  context: d
8124
8129
  });
8125
- if (B(fe.length), f == null || f(fe.length), fe.length > 0) {
8130
+ if (j(fe.length), f == null || f(fe.length), fe.length > 0) {
8126
8131
  const Fe = fe.map((Re) => Re == null ? void 0 : Re[0]), { colors: Ae, status: ke } = Qt(u), Ue = {};
8127
8132
  Ae && (Ue.colors = Ae), ke && (Ue.status = ke);
8128
8133
  const be = await L.getHandler().readEvalUiObjects({
@@ -8169,13 +8174,13 @@ const sl = (e) => {
8169
8174
  attrs: Ye
8170
8175
  });
8171
8176
  X($n(Re)), re(br(Re)), W.current = [...$e];
8172
- const je = p !== void 0 ? On({
8177
+ const Be = p !== void 0 ? On({
8173
8178
  resultsToSort: $e,
8174
8179
  sorter: p,
8175
8180
  fields: { ...u.fields, ...m.fields }
8176
8181
  }) : [...W.current];
8177
- if (ee(je), v && je.length > 0) {
8178
- const _e = je.findIndex(
8182
+ if (ee(Be), v && Be.length > 0) {
8183
+ const _e = Be.findIndex(
8179
8184
  (Je) => F === Je.id
8180
8185
  );
8181
8186
  _e === -1 ? y == null || y(0) : y == null || y(_e);
@@ -8183,7 +8188,7 @@ const sl = (e) => {
8183
8188
  y == null || y(void 0);
8184
8189
  R(!1);
8185
8190
  const Me = await ye();
8186
- B(Me), f == null || f(Me);
8191
+ j(Me), f == null || f(Me);
8187
8192
  },
8188
8193
  [
8189
8194
  y,
@@ -8329,9 +8334,9 @@ function uh(e, t) {
8329
8334
  ), {
8330
8335
  setResults: H = void 0,
8331
8336
  setCurrentItemIndex: O = void 0,
8332
- currentId: B = void 0,
8337
+ currentId: j = void 0,
8333
8338
  results: J = void 0,
8334
- selectedRowItems: j = void 0,
8339
+ selectedRowItems: B = void 0,
8335
8340
  setSelectedRowItems: ae = void 0,
8336
8341
  searchParams: X = [],
8337
8342
  setSearchParams: ge = void 0,
@@ -8363,7 +8368,7 @@ function uh(e, t) {
8363
8368
  offset: ye,
8364
8369
  getResults: $e,
8365
8370
  requestPageChange: Re,
8366
- changeSort: je,
8371
+ changeSort: Be,
8367
8372
  fetchChildrenForRecord: Me,
8368
8373
  colorsForResults: _e,
8369
8374
  statusForResults: Je,
@@ -8389,7 +8394,7 @@ function uh(e, t) {
8389
8394
  setResultsActionView: H,
8390
8395
  resultsActionView: J,
8391
8396
  domain: c,
8392
- currentId: B,
8397
+ currentId: j,
8393
8398
  setActionViewTotalItems: ue,
8394
8399
  limit: Z,
8395
8400
  setLimit: ve,
@@ -8478,8 +8483,8 @@ function uh(e, t) {
8478
8483
  const We = await Ve();
8479
8484
  ae == null || ae(We.map((lt) => ({ id: lt }))), m == null || m(We);
8480
8485
  }, [Ve, m, ae]), Ne = Q(() => x != null && x.isExpandable ? k - 160 : k - (C + 240), [k, C, x == null ? void 0 : x.isExpandable]), Ee = Q(
8481
- () => j == null ? void 0 : j.map((We) => We.id),
8482
- [j]
8486
+ () => B == null ? void 0 : B.map((We) => We.id),
8487
+ [B]
8483
8488
  ), Ot = E(() => !x || !_ ? null : /* @__PURE__ */ $(ce, { children: [
8484
8489
  /* @__PURE__ */ s(
8485
8490
  Gr,
@@ -8520,7 +8525,7 @@ function uh(e, t) {
8520
8525
  selectedRowKeys: Ee,
8521
8526
  onRowSelectionChange: Se,
8522
8527
  sorter: W,
8523
- onChangeSort: je,
8528
+ onChangeSort: Be,
8524
8529
  onFetchChildrenForRecord: x.isExpandable ? Me : void 0,
8525
8530
  childField: x.field_parent,
8526
8531
  rootTree: f,
@@ -8530,7 +8535,7 @@ function uh(e, t) {
8530
8535
  ] }), [
8531
8536
  Ne,
8532
8537
  Se,
8533
- je,
8538
+ Be,
8534
8539
  fe,
8535
8540
  _e,
8536
8541
  Me,
@@ -8599,9 +8604,9 @@ const il = $t(uh), fh = Ct, mh = (e) => {
8599
8604
  currentPage: V,
8600
8605
  setCurrentPage: H,
8601
8606
  order: O,
8602
- setOrder: B,
8607
+ setOrder: j,
8603
8608
  limit: J,
8604
- setLimit: j
8609
+ setLimit: B
8605
8610
  } = Wa({ useLocalState: !i }), { treeMaxLimit: ae } = en(), X = Math.min(J, ae), [ge, re] = I(!0), [U, W] = I(), [ee, ue] = I([]), [oe, Y] = I(!1), te = a || R, ne = z(te), Z = z(D), ve = z(h), Oe = z(), Se = z([]), Ce = z(!1), fe = (r == null ? void 0 : r.fields_in_conditions) !== void 0, Fe = Q(() => pa({ treeViewId: r == null ? void 0 : r.view_id, model: o }), [r == null ? void 0 : r.view_id, o]), [Ae, ke] = qe(
8606
8611
  L.getHandler().parseConditions
8607
8612
  ), {
@@ -8622,7 +8627,7 @@ const il = $t(uh), fh = Ct, mh = (e) => {
8622
8627
  }));
8623
8628
  }, []), {
8624
8629
  colorsForResults: Re,
8625
- statusForResults: je,
8630
+ statusForResults: Be,
8626
8631
  updateAttributes: Me,
8627
8632
  clearAttributes: _e
8628
8633
  } = Ga({
@@ -8694,7 +8699,7 @@ const il = $t(uh), fh = Ct, mh = (e) => {
8694
8699
  }, []), vt = E(
8695
8700
  (se) => {
8696
8701
  var Te;
8697
- return (Te = je.current) == null ? void 0 : Te[se.id];
8702
+ return (Te = Be.current) == null ? void 0 : Te[se.id];
8698
8703
  },
8699
8704
  // eslint-disable-next-line react-hooks/exhaustive-deps
8700
8705
  []
@@ -8860,12 +8865,12 @@ const il = $t(uh), fh = Ct, mh = (e) => {
8860
8865
  u == null || u("infinite");
8861
8866
  return;
8862
8867
  }
8863
- v(0), S(void 0), g([]), H(se), Te && j(Te);
8868
+ v(0), S(void 0), g([]), H(se), Te && B(Te);
8864
8869
  },
8865
8870
  [
8866
8871
  u,
8867
8872
  H,
8868
- j,
8873
+ B,
8869
8874
  g,
8870
8875
  S,
8871
8876
  v
@@ -8875,7 +8880,7 @@ const il = $t(uh), fh = Ct, mh = (e) => {
8875
8880
  model: o,
8876
8881
  context: d,
8877
8882
  totalItems: U
8878
- }), [Ee, D, c, o, d, U]), jt = E(async () => {
8883
+ }), [Ee, D, c, o, d, U]), Bt = E(async () => {
8879
8884
  const se = await Fn();
8880
8885
  g == null || g(se.map((Te) => ({ id: Te })));
8881
8886
  }, [Fn, g]), cn = Q(() => yt.length === 0 ? "unchecked" : yt.length === X && X > 0 || yt.length === U ? "checked" : "indeterminate", [yt, X, U]), Tn = E(() => {
@@ -8883,10 +8888,10 @@ const il = $t(uh), fh = Ct, mh = (e) => {
8883
8888
  cn === "unchecked" ? ((se = l.current) == null || se.selectAll(), g(ee.map((Ke) => ({ id: Ke.id })))) : (g([]), (Te = l.current) == null || Te.unselectAll());
8884
8889
  }, [l, g, ee, cn]), we = E(
8885
8890
  (se) => {
8886
- B(se), v(0), S(void 0), H(1);
8891
+ j(se), v(0), S(void 0), H(1);
8887
8892
  },
8888
8893
  [
8889
- B,
8894
+ j,
8890
8895
  H,
8891
8896
  S,
8892
8897
  v
@@ -8964,7 +8969,7 @@ const il = $t(uh), fh = Ct, mh = (e) => {
8964
8969
  results: ee,
8965
8970
  onRequestPageChange: Cn,
8966
8971
  treeIsLoading: m,
8967
- selectAllRecords: jt,
8972
+ selectAllRecords: Bt,
8968
8973
  onHeaderCheckboxClick: Tn,
8969
8974
  headerCheckboxState: cn,
8970
8975
  getColumnStateInProgress: be,
@@ -8973,7 +8978,7 @@ const il = $t(uh), fh = Ct, mh = (e) => {
8973
8978
  currentPage: V,
8974
8979
  limit: X,
8975
8980
  order: O,
8976
- setOrder: B,
8981
+ setOrder: j,
8977
8982
  setTreeFirstVisibleColumn: S,
8978
8983
  onGetFirstVisibleColumn: Yt,
8979
8984
  onSortChange: we,
@@ -9222,9 +9227,9 @@ function vh(e, t) {
9222
9227
  onSearchFilterClear: V,
9223
9228
  onSearchFilterSubmit: H,
9224
9229
  onSideSearchFilterClose: O,
9225
- onSideSearchFilterSubmit: B,
9230
+ onSideSearchFilterSubmit: j,
9226
9231
  totalRowsLoading: J,
9227
- totalRows: j,
9232
+ totalRows: B,
9228
9233
  onRowStyle: ae,
9229
9234
  results: X,
9230
9235
  onRequestPageChange: ge,
@@ -9277,7 +9282,7 @@ function vh(e, t) {
9277
9282
  refreshResults: T,
9278
9283
  getFields: () => v == null ? void 0 : v.fields
9279
9284
  }));
9280
- const je = Q(() => Re ? /* @__PURE__ */ s(Go, { aggregates: $e, isLoading: ye }) : null, [$e, ye, Re]), Me = E(
9285
+ const Be = Q(() => Re ? /* @__PURE__ */ s(Go, { aggregates: $e, isLoading: ye }) : null, [$e, ye, Re]), Me = E(
9281
9286
  (G) => /* @__PURE__ */ s(rr, { color: G, style: { marginLeft: 7 } }),
9282
9287
  []
9283
9288
  ), _e = Q(
@@ -9287,7 +9292,7 @@ function vh(e, t) {
9287
9292
  ...l ? {} : { display: "none" }
9288
9293
  }),
9289
9294
  [S, l]
9290
- ), Je = Ae !== void 0 && Fe, rt = Je && j !== void 0 && j !== null && j === Ct, Ve = Q(() => typeof j != "number" || isNaN(j) || j < 0 ? (X == null ? void 0 : X.length) || 0 : j || 0, [j, X]), dt = Q(() => (X == null ? void 0 : X.length) > 0 && (typeof j != "number" || isNaN(j) || j < 0) ? X == null ? void 0 : X.length : f ? Ct : ne || fh, [X == null ? void 0 : X.length, j, f, ne]), ft = v == null ? void 0 : v.isExpandable;
9295
+ ), Je = Ae !== void 0 && Fe, rt = Je && B !== void 0 && B !== null && B === Ct, Ve = Q(() => typeof B != "number" || isNaN(B) || B < 0 ? (X == null ? void 0 : X.length) || 0 : B || 0, [B, X]), dt = Q(() => (X == null ? void 0 : X.length) > 0 && (typeof B != "number" || isNaN(B) || B < 0) ? X == null ? void 0 : X.length : f ? Ct : ne || fh, [X == null ? void 0 : X.length, B, f, ne]), ft = v == null ? void 0 : v.isExpandable;
9291
9296
  return /* @__PURE__ */ $(Ln, { children: [
9292
9297
  !ft && /* @__PURE__ */ s(
9293
9298
  ph,
@@ -9300,7 +9305,7 @@ function vh(e, t) {
9300
9305
  onSearchFilterClear: V,
9301
9306
  onSearchFilterSubmit: H,
9302
9307
  onSideSearchFilterClose: O,
9303
- onSideSearchFilterSubmit: B
9308
+ onSideSearchFilterSubmit: j
9304
9309
  }
9305
9310
  ),
9306
9311
  !ft && /* @__PURE__ */ s(
@@ -9342,7 +9347,7 @@ function vh(e, t) {
9342
9347
  onGetFirstVisibleRowIndex: k,
9343
9348
  onGetFirstVisibleColumn: Oe,
9344
9349
  setTreeFirstVisibleColumn: ve,
9345
- footerComp: je,
9350
+ footerComp: Be,
9346
9351
  statusComp: Me,
9347
9352
  onRowStatus: P,
9348
9353
  onRowStyle: ae,
@@ -9532,10 +9537,10 @@ const bh = $t(vh), pn = "legacy", wh = (e) => {
9532
9537
  initialSearchParams: C,
9533
9538
  initialCurrentPage: T,
9534
9539
  initialOrder: P
9535
- } = e, [k, N] = I(!1), [M, V] = I(!1), [H, O] = I(!1), [B, J] = I(!0), [j, ae] = I(!0), [X, ge] = I([]), [re, U] = I(!1), [W, ee] = I(
9540
+ } = e, [k, N] = I(!1), [M, V] = I(!1), [H, O] = I(!1), [j, J] = I(!0), [B, ae] = I(!0), [X, ge] = I([]), [re, U] = I(!1), [W, ee] = I(
9536
9541
  C || []
9537
9542
  ), [ue, oe] = I(!1), [Y, te] = I(!0), [ne, Z] = I(), [ve, Oe] = I(
9538
- ju(
9543
+ Bu(
9539
9544
  C || [],
9540
9545
  n.fields
9541
9546
  )
@@ -9543,7 +9548,7 @@ const bh = $t(vh), pn = "legacy", wh = (e) => {
9543
9548
  P
9544
9549
  ), [$e, Re] = I(
9545
9550
  w !== void 0 ? w : Ct
9546
- ), [je, Me] = I(r), [_e, Je] = I(
9551
+ ), [Be, Me] = I(r), [_e, Je] = I(
9547
9552
  T || 1
9548
9553
  );
9549
9554
  de(() => {
@@ -9571,7 +9576,7 @@ const bh = $t(vh), pn = "legacy", wh = (e) => {
9571
9576
  Et.Provider,
9572
9577
  {
9573
9578
  value: {
9574
- title: je,
9579
+ title: Be,
9575
9580
  currentView: n,
9576
9581
  setCurrentView: o,
9577
9582
  availableViews: i,
@@ -9592,9 +9597,9 @@ const bh = $t(vh), pn = "legacy", wh = (e) => {
9592
9597
  currentModel: y,
9593
9598
  removingItem: H,
9594
9599
  setRemovingItem: O,
9595
- formIsLoading: B,
9600
+ formIsLoading: j,
9596
9601
  setFormIsLoading: J,
9597
- treeIsLoading: j,
9602
+ treeIsLoading: B,
9598
9603
  setTreeIsLoading: ae,
9599
9604
  attachments: X,
9600
9605
  setAttachments: ge,
@@ -10055,7 +10060,7 @@ const bh = $t(vh), pn = "legacy", wh = (e) => {
10055
10060
  return n.card ? /* @__PURE__ */ s(Io, { children: h }) : h;
10056
10061
  }, Dh = (e) => {
10057
10062
  const { ooui: t } = e, { actionId: n, height: r } = t, { activeId: o } = $i(), { actionData: i, treeShortcut: a, loading: l, error: c, fetchData: d } = fu(n), f = ln(
10058
- Bt.FEATURE_READFORVIEW
10063
+ jt.FEATURE_READFORVIEW
10059
10064
  ), u = le(
10060
10065
  Vt
10061
10066
  ), { openShortcut: m } = u || {};
@@ -10198,7 +10203,7 @@ const bh = $t(vh), pn = "legacy", wh = (e) => {
10198
10203
  case "label":
10199
10204
  return Lr;
10200
10205
  case "char":
10201
- return ji;
10206
+ return Bi;
10202
10207
  case "text":
10203
10208
  return Dg;
10204
10209
  case "button":
@@ -10325,10 +10330,10 @@ const bh = $t(vh), pn = "legacy", wh = (e) => {
10325
10330
  for (let i = 0; i < e; i++)
10326
10331
  o += i % 2 ? n : r, i + 1 < e && (o += " ");
10327
10332
  return o;
10328
- }, jh = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), rs = (e) => {
10333
+ }, Bh = (e) => e.map((n) => n.reduce((r, o) => r + o.colspan, 0)).reduce((n, r) => Math.max(n, r)), rs = (e) => {
10329
10334
  const { container: t, responsiveBehaviour: n } = e, { rows: r } = t;
10330
10335
  let { columns: o } = t;
10331
- const i = jh(r);
10336
+ const i = Bh(r);
10332
10337
  i < o && (o = i);
10333
10338
  let a = !1, l = [];
10334
10339
  const c = r.map((u, m) => {
@@ -10363,7 +10368,7 @@ const bh = $t(vh), pn = "legacy", wh = (e) => {
10363
10368
  minHeight: 0,
10364
10369
  minWidth: 0
10365
10370
  }, children: c });
10366
- }, dl = Zt.createContext(null), Bh = (e) => {
10371
+ }, dl = Zt.createContext(null), jh = (e) => {
10367
10372
  const { children: t, setTitle: n } = e;
10368
10373
  return /* @__PURE__ */ s(
10369
10374
  dl.Provider,
@@ -10501,7 +10506,7 @@ function zh(e, t) {
10501
10506
  forcedValues: A = {},
10502
10507
  parentWidth: _,
10503
10508
  onMustRefreshParent: D
10504
- } = e, { t: w } = he(), [R, C] = I(!1), [T, P] = I(), [k, N] = I(), [M] = kt.useForm(), [V, H] = I(), [O, B] = I(), J = le(dl), [j, ae] = I(), [X, ge] = I(!1), re = z(), U = z({}), W = z({}), ee = z(!1), ue = z(!1), oe = z(!1), te = (_ !== void 0 ? _ : j) < qh, ne = le(Xe), { activeId: Z, getPlainValues: ve } = ne || {}, Oe = z(!1), Se = le(
10509
+ } = e, { t: w } = he(), [R, C] = I(!1), [T, P] = I(), [k, N] = I(), [M] = kt.useForm(), [V, H] = I(), [O, j] = I(), J = le(dl), [B, ae] = I(), [X, ge] = I(!1), re = z(), U = z({}), W = z({}), ee = z(!1), ue = z(!1), oe = z(!1), te = (_ !== void 0 ? _ : B) < qh, ne = le(Xe), { activeId: Z, getPlainValues: ve } = ne || {}, Oe = z(!1), Se = le(
10505
10510
  Et
10506
10511
  ), {
10507
10512
  setFormIsSaving: Ce = void 0,
@@ -10514,7 +10519,7 @@ function zh(e, t) {
10514
10519
  isActive: Ye = void 0
10515
10520
  } = (S ? Se : {}) || {}, ye = le(
10516
10521
  yn
10517
- ), { processAction: $e, globalValues: Re } = ye || {}, { showErrorNotification: je } = gt({
10522
+ ), { processAction: $e, globalValues: Re } = ye || {}, { showErrorNotification: Be } = gt({
10518
10523
  onButtonAction: (q) => {
10519
10524
  _t({ actionData: q });
10520
10525
  }
@@ -10559,7 +10564,7 @@ function zh(e, t) {
10559
10564
  ...pe,
10560
10565
  type: K.type || "error"
10561
10566
  }))) || []
10562
- ), je(T);
10567
+ ), Be(T);
10563
10568
  }
10564
10569
  }, [T]);
10565
10570
  const G = (q, K, pe, xe) => {
@@ -10645,7 +10650,7 @@ function zh(e, t) {
10645
10650
  o,
10646
10651
  Ce
10647
10652
  ]), wn = (q, K) => {
10648
- jt({
10653
+ Bt({
10649
10654
  values: {
10650
10655
  ..._n(M.getFieldsValue(!0), O),
10651
10656
  [q]: K
@@ -10667,7 +10672,7 @@ function zh(e, t) {
10667
10672
  try {
10668
10673
  h ? q = { arch: h.arch, fields: h.fields } : q = await Fn();
10669
10674
  const { fields: K, arch: pe } = q;
10670
- B(K), H(pe), await Nt({
10675
+ j(K), H(pe), await Nt({
10671
10676
  fields: K,
10672
10677
  arch: pe
10673
10678
  });
@@ -10679,14 +10684,14 @@ function zh(e, t) {
10679
10684
  Ae == null || Ae(!0), P(void 0), dt(), q != null && q.fields ? (pe = q.fields, xe = q.arch) : (pe = O, xe = V), p && (q == null ? void 0 : q.forceRefresh) !== !0 ? K = p : { values: K, defaultGetCalled: Pe } = await cn({
10680
10685
  fields: pe,
10681
10686
  arch: xe
10682
- }), b && (K = { ...Xd(b), ...K }), U.current = _n(K, pe), jt({
10687
+ }), b && (K = { ...Xd(b), ...K }), U.current = _n(K, pe), Bt({
10683
10688
  values: K,
10684
10689
  fields: pe,
10685
10690
  reset: !0,
10686
10691
  isDefaultGet: Pe
10687
10692
  }), se({ fields: pe, arch: xe, values: K }), Ae == null || Ae(!1), fe == null || fe(!1), Pe && ge(!0);
10688
10693
  }, Cn = async () => new Promise(async (q) => {
10689
- Yt() ? Bn({
10694
+ Yt() ? jn({
10690
10695
  t: w,
10691
10696
  onOk: () => {
10692
10697
  St == null || St(), q(!0);
@@ -10708,7 +10713,7 @@ function zh(e, t) {
10708
10713
  type: "form",
10709
10714
  context: v
10710
10715
  });
10711
- }, jt = E(
10716
+ }, Bt = E(
10712
10717
  ({
10713
10718
  values: q,
10714
10719
  fields: K,
@@ -10799,19 +10804,19 @@ function zh(e, t) {
10799
10804
  oe.current
10800
10805
  ), oe.current = !1;
10801
10806
  const xe = ie();
10802
- return u && (re.current = void 0, jt({ values: {}, fields: O, reset: !0 })), { succeed: !0, id: xe };
10807
+ return u && (re.current = void 0, Bt({ values: {}, fields: O, reset: !0 })), { succeed: !0, id: xe };
10803
10808
  }
10804
10809
  if (!Yt() && ie() && pe)
10805
10810
  return ue.current = !1, fe == null || fe(!1), St == null || St(), { succeed: !0, id: ie() };
10806
10811
  if (await Sn())
10807
- return ue.current = !1, je({
10812
+ return ue.current = !1, Be({
10808
10813
  type: "error",
10809
10814
  title: w("formHasErrors"),
10810
10815
  body: w("fillRequiredFields")
10811
10816
  }), { succeed: !1, id: ie() };
10812
10817
  C(!0), Ce == null || Ce(!0);
10813
10818
  try {
10814
- m === "api" ? await Tn(q) : await we(q), u && (re.current = void 0, jt({ values: {}, fields: O, reset: !0 })), await Nt({ forceRefresh: !0 }), K = !0, je({
10819
+ m === "api" ? await Tn(q) : await we(q), u && (re.current = void 0, Bt({ values: {}, fields: O, reset: !0 })), await Nt({ forceRefresh: !0 }), K = !0, Be({
10815
10820
  type: "success",
10816
10821
  title: w("savedRegisters"),
10817
10822
  duration: 3
@@ -10832,7 +10837,7 @@ function zh(e, t) {
10832
10837
  const Pe = new vi(q);
10833
10838
  return Pe.parse(K, {
10834
10839
  readOnly: f || xe,
10835
- values: jd(
10840
+ values: Bd(
10836
10841
  {
10837
10842
  ...pe,
10838
10843
  ...lt()
@@ -10896,7 +10901,7 @@ function zh(e, t) {
10896
10901
  await ct(pe);
10897
10902
  }
10898
10903
  } catch (K) {
10899
- je(K);
10904
+ Be(K);
10900
10905
  }
10901
10906
  }, ct = async (q) => {
10902
10907
  const K = k == null ? void 0 : k.onChangeFields[q];
@@ -10929,7 +10934,7 @@ function zh(e, t) {
10929
10934
  const Pe = {
10930
10935
  ...ut(O),
10931
10936
  ...xe.value
10932
- }, mt = Bd({
10937
+ }, mt = jd({
10933
10938
  values: Pe,
10934
10939
  fields: O
10935
10940
  });
@@ -10937,7 +10942,7 @@ function zh(e, t) {
10937
10942
  fields: O,
10938
10943
  arch: V,
10939
10944
  values: mt
10940
- }), jt({
10945
+ }), Bt({
10941
10946
  values: mt,
10942
10947
  fields: O,
10943
10948
  reset: !1
@@ -10951,7 +10956,7 @@ function zh(e, t) {
10951
10956
  message: mt,
10952
10957
  type: "warning"
10953
10958
  }
10954
- ]), je({
10959
+ ]), Be({
10955
10960
  type: "warning",
10956
10961
  title: Pe,
10957
10962
  body: mt,
@@ -10969,7 +10974,7 @@ function zh(e, t) {
10969
10974
  fields: Pe,
10970
10975
  arch: V,
10971
10976
  values: ut(Pe)
10972
- }), B(Pe);
10977
+ }), j(Pe);
10973
10978
  }
10974
10979
  };
10975
10980
  async function Wt({
@@ -11060,13 +11065,13 @@ function zh(e, t) {
11060
11065
  U.current = {
11061
11066
  ...U.current,
11062
11067
  ...q
11063
- }, se({ fields: O, arch: V, values: K }), jt({
11068
+ }, se({ fields: O, arch: V, values: K }), Bt({
11064
11069
  values: K,
11065
11070
  fields: O,
11066
11071
  reset: !1
11067
11072
  });
11068
11073
  },
11069
- [V, jt, O, ut, se]
11074
+ [V, Bt, O, ut, se]
11070
11075
  );
11071
11076
  Wh({
11072
11077
  model: n,
@@ -11087,7 +11092,7 @@ function zh(e, t) {
11087
11092
  return;
11088
11093
  }
11089
11094
  if (await Sn()) {
11090
- je({
11095
+ Be({
11091
11096
  type: "error",
11092
11097
  title: w("formHasErrors"),
11093
11098
  body: w("fillRequiredFields")
@@ -11100,7 +11105,7 @@ function zh(e, t) {
11100
11105
  const Pe = oe.current ? We() : {}, mt = { ...pe, ...Pe };
11101
11106
  q === "object" ? await Wt({ action: K, context: mt }) : q === "workflow" ? await Gt({ action: K }) : q === "action" && await Tt({ action: K, context: mt }), xe && Dt(!1);
11102
11107
  } catch (Pe) {
11103
- xe && Dt(!1), je(Pe);
11108
+ xe && Dt(!1), Be(Pe);
11104
11109
  }
11105
11110
  }
11106
11111
  const Ol = () => !k && !T ? /* @__PURE__ */ s(tt, {}) : !n && !h || !F ? null : /* @__PURE__ */ s(ce, { children: /* @__PURE__ */ s(
@@ -11152,7 +11157,7 @@ function zh(e, t) {
11152
11157
  /* @__PURE__ */ s(
11153
11158
  ze,
11154
11159
  {
11155
- icon: /* @__PURE__ */ s(jn, {}),
11160
+ icon: /* @__PURE__ */ s(Bn, {}),
11156
11161
  disabled: R,
11157
11162
  onClick: async () => {
11158
11163
  await Cn();
@@ -11244,7 +11249,7 @@ const Yn = $t(zh), Wn = (e) => {
11244
11249
  ] });
11245
11250
  }
11246
11251
  const D = f * 0.95;
11247
- return /* @__PURE__ */ s(Bh, { setTitle: m, children: /* @__PURE__ */ s(
11252
+ return /* @__PURE__ */ s(jh, { setTitle: m, children: /* @__PURE__ */ s(
11248
11253
  It,
11249
11254
  {
11250
11255
  title: a ? _() : u,
@@ -11376,7 +11381,7 @@ const Yn = $t(zh), Wn = (e) => {
11376
11381
  children: y("ok")
11377
11382
  }
11378
11383
  ),
11379
- /* @__PURE__ */ s(ze, { icon: /* @__PURE__ */ s(jn, {}), onClick: A, children: y("cancel") })
11384
+ /* @__PURE__ */ s(ze, { icon: /* @__PURE__ */ s(Bn, {}), onClick: A, children: y("cancel") })
11380
11385
  ] }) })
11381
11386
  ]
11382
11387
  }
@@ -11424,7 +11429,7 @@ const Yn = $t(zh), Wn = (e) => {
11424
11429
  }, [t]);
11425
11430
  const O = (U) => {
11426
11431
  n == null || n(U), C == null || C();
11427
- }, B = (U) => {
11432
+ }, j = (U) => {
11428
11433
  A.current = U.target.value, O([void 0, ""]);
11429
11434
  }, J = async () => {
11430
11435
  if (!y && S !== H) {
@@ -11435,14 +11440,14 @@ const Yn = $t(zh), Wn = (e) => {
11435
11440
  g(!0);
11436
11441
  try {
11437
11442
  if (P.current && P.current.length > 0)
11438
- j(A.current);
11443
+ B(A.current);
11439
11444
  else {
11440
11445
  const U = await L.getHandler().nameSearch({
11441
11446
  model: i,
11442
11447
  payload: A.current,
11443
11448
  context: { ...R == null ? void 0 : R(), ...l }
11444
11449
  });
11445
- U.length === 1 ? (A.current = void 0, O(U[0])) : j(A.current);
11450
+ U.length === 1 ? (A.current = void 0, O(U[0])) : B(A.current);
11446
11451
  }
11447
11452
  } catch (U) {
11448
11453
  M(U);
@@ -11450,7 +11455,7 @@ const Yn = $t(zh), Wn = (e) => {
11450
11455
  g(!1);
11451
11456
  }
11452
11457
  }
11453
- }, j = async (U) => {
11458
+ }, B = async (U) => {
11454
11459
  if (await X(), P.current && P.current.length > 0) {
11455
11460
  const W = await L.getHandler().searchAllIds({
11456
11461
  params: P.current,
@@ -11504,7 +11509,7 @@ const Yn = $t(zh), Wn = (e) => {
11504
11509
  type: "text",
11505
11510
  value: S,
11506
11511
  disabled: a,
11507
- onChange: B,
11512
+ onChange: j,
11508
11513
  style: {
11509
11514
  ...f,
11510
11515
  borderTopRightRadius: 0,
@@ -11540,7 +11545,7 @@ const Yn = $t(zh), Wn = (e) => {
11540
11545
  icon: y ? /* @__PURE__ */ s(Ht, {}) : /* @__PURE__ */ s(ar, {}),
11541
11546
  disabled: a || y,
11542
11547
  onClick: () => {
11543
- F.current = !0, j(H);
11548
+ F.current = !0, B(H);
11544
11549
  },
11545
11550
  style: { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 },
11546
11551
  tabIndex: -1
@@ -11877,7 +11882,7 @@ function ng(e) {
11877
11882
  icon: /* @__PURE__ */ s(Pr, {}),
11878
11883
  tooltip: _("showLogs"),
11879
11884
  disabled: !(a === "form" && x !== void 0 && x > 0 || a === "tree" && h.length === 1 && (h == null ? void 0 : h[0]) !== void 0 && parseInt(h[0]) > 0),
11880
- onClick: () => jo(
11885
+ onClick: () => Bo(
11881
11886
  o,
11882
11887
  a === "form" ? x : parseInt(h[0]),
11883
11888
  _
@@ -12071,7 +12076,7 @@ const sg = (e) => {
12071
12076
  domain: h,
12072
12077
  fetchValues: y,
12073
12078
  getAllHierarchyValues: g
12074
- } = f || {}, { t: v } = he(), [b, F] = I(!1), [S, x] = I(!1), [A, _] = I(), [D, w] = I(!1), [R, C] = I(!1), [T, P] = I(), [k, N] = I([]), [M, V] = I(!1), [H, O] = I([]), [B, J] = I(), j = z(), [ae, X] = I(void 0), ge = z(), {
12079
+ } = f || {}, { t: v } = he(), [b, F] = I(!1), [S, x] = I(!1), [A, _] = I(), [D, w] = I(!1), [R, C] = I(!1), [T, P] = I(), [k, N] = I([]), [M, V] = I(!1), [H, O] = I([]), [j, J] = I(), B = z(), [ae, X] = I(void 0), ge = z(), {
12075
12080
  readOnly: re,
12076
12081
  relation: U,
12077
12082
  context: W,
@@ -12117,7 +12122,7 @@ const sg = (e) => {
12117
12122
  context: { ...p == null ? void 0 : p(), ...W },
12118
12123
  currentView: G || a
12119
12124
  });
12120
- return j.current || (j.current = Ne.map((Ot) => Ot.id)), (a || G) === "tree" && Ee && X(Ee), Z(Ne), Ne;
12125
+ return B.current || (B.current = Ne.map((Ot) => Ot.id)), (a || G) === "tree" && Ee && X(Ee), Z(Ne), Ne;
12121
12126
  } catch (Ne) {
12122
12127
  _(Ne);
12123
12128
  } finally {
@@ -12180,7 +12185,7 @@ const sg = (e) => {
12180
12185
  } : Ne);
12181
12186
  Z(De);
12182
12187
  }, ke = (G) => {
12183
- b ? Bn({
12188
+ b ? jn({
12184
12189
  t: v,
12185
12190
  onOk: () => {
12186
12191
  Ae(), G(), F(!1);
@@ -12268,7 +12273,7 @@ const sg = (e) => {
12268
12273
  });
12269
12274
  }
12270
12275
  Z(Ne), M || w(!1);
12271
- }, je = async (G) => {
12276
+ }, Be = async (G) => {
12272
12277
  const { id: me } = G;
12273
12278
  let ie = i;
12274
12279
  const De = i.find((Ne) => Ne.id === me);
@@ -12339,9 +12344,9 @@ const sg = (e) => {
12339
12344
  }
12340
12345
  );
12341
12346
  let G = [];
12342
- if (Y.some((Ee) => Ee.treeValues) && (G = B ? On({
12347
+ if (Y.some((Ee) => Ee.treeValues) && (G = j ? On({
12343
12348
  resultsToSort: Y.map((Ee) => Ee.treeValues),
12344
- sorter: B,
12349
+ sorter: j,
12345
12350
  fields: {
12346
12351
  ...o.get("tree").fields,
12347
12352
  ...((De = o.get("form")) == null ? void 0 : De.fields) || {}
@@ -12355,11 +12360,11 @@ const sg = (e) => {
12355
12360
  treeView: o.get("tree"),
12356
12361
  results: G,
12357
12362
  loading: S,
12358
- onRowClicked: ((Ne = o.get("form")) == null ? void 0 : Ne.fields) !== void 0 ? je : void 0,
12363
+ onRowClicked: ((Ne = o.get("form")) == null ? void 0 : Ne.fields) !== void 0 ? Be : void 0,
12359
12364
  showPagination: !1,
12360
12365
  selectedRowKeys: k,
12361
12366
  onRowSelectionChange: N,
12362
- sorter: B,
12367
+ sorter: j,
12363
12368
  onChangeSort: J,
12364
12369
  context: { ...p == null ? void 0 : p(), ...W },
12365
12370
  colorsForResults: ae,
@@ -12617,7 +12622,7 @@ const sg = (e) => {
12617
12622
  return {
12618
12623
  showFormChangesDialogIfNeeded: E(
12619
12624
  (h) => {
12620
- a ? Bn({
12625
+ a ? jn({
12621
12626
  t: d,
12622
12627
  onOk: () => {
12623
12628
  m(), h(), l(!1);
@@ -12913,7 +12918,7 @@ const fg = ({
12913
12918
  showPointerCursorInRows: g = !0
12914
12919
  }) => {
12915
12920
  const v = z(), b = c || v, F = z({}), S = z(), x = z(), A = z(e), { t: _ } = he(), D = ln(
12916
- Bt.FEATURE_MANY2ONE_SORT
12921
+ jt.FEATURE_MANY2ONE_SORT
12917
12922
  );
12918
12923
  Ze(() => {
12919
12924
  var M, V;
@@ -12938,19 +12943,19 @@ const fg = ({
12938
12943
  }) => {
12939
12944
  const O = wr({
12940
12945
  state: H
12941
- }), { results: B, colors: J, status: j } = await a({
12946
+ }), { results: j, colors: J, status: B } = await a({
12942
12947
  allItems: A.current,
12943
12948
  startRow: M,
12944
12949
  endRow: V,
12945
12950
  sortFields: O
12946
12951
  });
12947
- return F.current = { ...F.current, ...J }, !S.current && j && (S.current = {}), j && (S.current = { ...S.current, ...j }), B;
12952
+ return F.current = { ...F.current, ...J }, !S.current && B && (S.current = {}), B && (S.current = { ...S.current, ...B }), j;
12948
12953
  },
12949
12954
  [a]
12950
12955
  ), T = E((M) => {
12951
- var V, H, O, B;
12956
+ var V, H, O, j;
12952
12957
  if (F.current[(H = (V = M.node) == null ? void 0 : V.data) == null ? void 0 : H.id])
12953
- return { color: F.current[(B = (O = M.node) == null ? void 0 : O.data) == null ? void 0 : B.id] };
12958
+ return { color: F.current[(j = (O = M.node) == null ? void 0 : O.data) == null ? void 0 : j.id] };
12954
12959
  }, []), { loading: P, getColumnState: k, updateColumnState: N } = Yo({
12955
12960
  key: pg({
12956
12961
  ...p,
@@ -13040,7 +13045,7 @@ const fg = ({
13040
13045
  }), H = Q(() => {
13041
13046
  const { title: be } = i.get(c) || {};
13042
13047
  return be || o.label;
13043
- }, [c, o.label, i]), O = o.type === "many2many", B = E(
13048
+ }, [c, o.label, i]), O = o.type === "many2many", j = E(
13044
13049
  (be) => {
13045
13050
  var Ye, ye;
13046
13051
  r == null || r({
@@ -13051,7 +13056,7 @@ const fg = ({
13051
13056
  [r, i]
13052
13057
  ), {
13053
13058
  formHasChanges: J,
13054
- onFormChanges: j,
13059
+ onFormChanges: B,
13055
13060
  showFormChangesDialogIfNeeded: ae,
13056
13061
  setFormHasChanges: X
13057
13062
  } = lg({
@@ -13060,7 +13065,7 @@ const fg = ({
13060
13065
  treeView: i.get("tree"),
13061
13066
  relation: p,
13062
13067
  context: D,
13063
- triggerChange: B
13068
+ triggerChange: j
13064
13069
  }), {
13065
13070
  showFormModal: ge,
13066
13071
  modalItem: re,
@@ -13074,7 +13079,7 @@ const fg = ({
13074
13079
  inv_field: o.inv_field,
13075
13080
  showFormChangesDialogIfNeeded: ae,
13076
13081
  currentView: c,
13077
- triggerChange: B,
13082
+ triggerChange: j,
13078
13083
  items: l,
13079
13084
  setCurrentView: d,
13080
13085
  setItemIndex: u,
@@ -13089,7 +13094,7 @@ const fg = ({
13089
13094
  } = mg({
13090
13095
  showFormChangesDialogIfNeeded: ae,
13091
13096
  currentView: c,
13092
- triggerChange: B,
13097
+ triggerChange: j,
13093
13098
  items: l,
13094
13099
  views: i,
13095
13100
  context: D,
@@ -13097,7 +13102,7 @@ const fg = ({
13097
13102
  }), { showRemoveConfirm: ve } = dg({
13098
13103
  isMany2many: O,
13099
13104
  items: l,
13100
- triggerChange: B,
13105
+ triggerChange: j,
13101
13106
  setFormHasChanges: X,
13102
13107
  selectedRowKeys: T,
13103
13108
  setSelectedRowKeys: P
@@ -13198,7 +13203,7 @@ const fg = ({
13198
13203
  context: D,
13199
13204
  relation: p,
13200
13205
  readOnly: m || !1,
13201
- onChange: j
13206
+ onChange: B
13202
13207
  }
13203
13208
  ),
13204
13209
  /* @__PURE__ */ s(
@@ -13258,7 +13263,7 @@ const fg = ({
13258
13263
  S();
13259
13264
  }, [t]);
13260
13265
  const b = ln(
13261
- Bt.FEATURE_GET_TOOLBAR
13266
+ jt.FEATURE_GET_TOOLBAR
13262
13267
  ), F = async (_) => {
13263
13268
  if (o && o[_]) {
13264
13269
  const D = o[_];
@@ -13296,7 +13301,7 @@ const fg = ({
13296
13301
  d(!1);
13297
13302
  }
13298
13303
  };
13299
- return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ s(tt, {}) : f ? /* @__PURE__ */ s(Rt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ s(Bp, { initialView: l, children: /* @__PURE__ */ s(
13304
+ return n && n.length > 0 ? l = n[0] : l = "tree", c ? /* @__PURE__ */ s(tt, {}) : f ? /* @__PURE__ */ s(Rt, { className: "mt-10", message: f, type: "error", banner: !0 }) : /* @__PURE__ */ s(jp, { initialView: l, children: /* @__PURE__ */ s(
13300
13305
  He,
13301
13306
  {
13302
13307
  required: i,
@@ -13620,7 +13625,7 @@ const { useToken: _g } = et, { TextArea: xo } = xt, Dg = (e) => {
13620
13625
  });
13621
13626
  i(), await new Promise((S) => setTimeout(S, 200));
13622
13627
  const F = await Mn(b);
13623
- Br(b, F.mime);
13628
+ jr(b, F.mime);
13624
13629
  },
13625
13630
  [r, n, e, o, t, i, c]
13626
13631
  ), f = E(async () => {
@@ -13826,7 +13831,7 @@ const { useToken: _g } = et, { TextArea: xo } = xt, Dg = (e) => {
13826
13831
  const i = r.split("/").length, a = o.split("/").length;
13827
13832
  return i - a;
13828
13833
  }), n;
13829
- }, jg = (e) => {
13834
+ }, Bg = (e) => {
13830
13835
  const {
13831
13836
  visible: t,
13832
13837
  onClose: n,
@@ -13868,7 +13873,7 @@ const { useToken: _g } = et, { TextArea: xo } = xt, Dg = (e) => {
13868
13873
  onRemovePredefinedExport: y
13869
13874
  }
13870
13875
  );
13871
- }, Bg = ({
13876
+ }, jg = ({
13872
13877
  mode: e,
13873
13878
  showTime: t = !1,
13874
13879
  onChange: n
@@ -13892,7 +13897,7 @@ const { useToken: _g } = et, { TextArea: xo } = xt, Dg = (e) => {
13892
13897
  if (!a.defaultPrevented) {
13893
13898
  if (a.key === "Enter") {
13894
13899
  const c = a.target.value;
13895
- if (!jp(c, t))
13900
+ if (!Bp(c, t))
13896
13901
  return;
13897
13902
  a.preventDefault(), Hp({
13898
13903
  currentValue: c,
@@ -13953,7 +13958,7 @@ const { useToken: _g } = et, { TextArea: xo } = xt, Dg = (e) => {
13953
13958
  );
13954
13959
  },
13955
13960
  [n, f]
13956
- ), { handleKeyDown: p, handleBlur: h } = Bg({
13961
+ ), { handleKeyDown: p, handleBlur: h } = jg({
13957
13962
  mode: f,
13958
13963
  showTime: o,
13959
13964
  onChange: n
@@ -14071,7 +14076,7 @@ const Il = nt(Wg), Gg = (e) => {
14071
14076
  }
14072
14077
  async function g() {
14073
14078
  const F = await Mn(n);
14074
- Br(n, F.mime);
14079
+ jr(n, F.mime);
14075
14080
  }
14076
14081
  async function v(F) {
14077
14082
  F.stopPropagation(), F.preventDefault();
@@ -14284,7 +14289,7 @@ function ny(e) {
14284
14289
  if (m(!1), !!F)
14285
14290
  if (F.datas) {
14286
14291
  const S = await Mn(F.datas);
14287
- Br(F.datas, S.mime);
14292
+ jr(F.datas, S.mime);
14288
14293
  } else
14289
14294
  i(F);
14290
14295
  },
@@ -14442,17 +14447,17 @@ function oy({ toolbar: e }) {
14442
14447
  [u, F, _, S]
14443
14448
  ), V = E(
14444
14449
  (W) => {
14445
- f ? Bn({ t: n, onOk: W }) : W();
14450
+ f ? jn({ t: n, onOk: W }) : W();
14446
14451
  },
14447
14452
  [f, n]
14448
14453
  ), H = E(() => {
14449
14454
  V(() => w.current.fetchValues());
14450
- }, [V, w]), { actionButtonProps: O, printButtonProps: B, relateButtonProps: J } = gl({
14455
+ }, [V, w]), { actionButtonProps: O, printButtonProps: j, relateButtonProps: J } = gl({
14451
14456
  toolbar: e,
14452
14457
  mustDisableButtons: M,
14453
14458
  formRef: w,
14454
14459
  onRefreshParentValues: H
14455
- }), j = E(async () => {
14460
+ }), B = E(async () => {
14456
14461
  try {
14457
14462
  b == null || b(!0), await L.getHandler().deleteObjects({
14458
14463
  model: v,
@@ -14609,7 +14614,7 @@ function oy({ toolbar: e }) {
14609
14614
  onClick: () => Xt({
14610
14615
  confirmMessage: n("confirmRemoveItem"),
14611
14616
  t: n,
14612
- onOk: j
14617
+ onOk: B
14613
14618
  })
14614
14619
  }
14615
14620
  ),
@@ -14620,7 +14625,7 @@ function oy({ toolbar: e }) {
14620
14625
  icon: /* @__PURE__ */ s(Pr, {}),
14621
14626
  tooltip: n("showLogs"),
14622
14627
  disabled: M || m === void 0,
14623
- onClick: () => jo(v, m, n)
14628
+ onClick: () => Bo(v, m, n)
14624
14629
  }
14625
14630
  ),
14626
14631
  /* @__PURE__ */ s(
@@ -14656,7 +14661,7 @@ function oy({ toolbar: e }) {
14656
14661
  ),
14657
14662
  /* @__PURE__ */ s(pt, {}),
14658
14663
  /* @__PURE__ */ s(Kt, { icon: /* @__PURE__ */ s(Mr, {}), ...O }),
14659
- /* @__PURE__ */ s(Kt, { icon: /* @__PURE__ */ s($r, {}), ...B }),
14664
+ /* @__PURE__ */ s(Kt, { icon: /* @__PURE__ */ s($r, {}), ...j }),
14660
14665
  /* @__PURE__ */ s(Kt, { icon: /* @__PURE__ */ s(Vr, {}), ...J }),
14661
14666
  /* @__PURE__ */ s(
14662
14667
  ny,
@@ -14826,7 +14831,7 @@ const ri = (e, t) => ({
14826
14831
  /* @__PURE__ */ s(
14827
14832
  ze,
14828
14833
  {
14829
- icon: /* @__PURE__ */ s(jn, {}),
14834
+ icon: /* @__PURE__ */ s(Bn, {}),
14830
14835
  htmlType: "button",
14831
14836
  onClick: r,
14832
14837
  disabled: o,
@@ -14962,12 +14967,12 @@ const uy = (e) => {
14962
14967
  currentView: P
14963
14968
  } = f || {}, [k, N] = I(!0);
14964
14969
  de(() => {
14965
- var j;
14966
- (j = d.current) == null || j.refresh();
14970
+ var B;
14971
+ (B = d.current) == null || B.refresh();
14967
14972
  }, [R]), de(() => {
14968
14973
  t.view_id !== P.view_id && N(!0);
14969
14974
  }, [P]);
14970
- const { clear: M, searchFilterLoading: V, searchError: H, offset: O, tableRefreshing: B } = sl({
14975
+ const { clear: M, searchFilterLoading: V, searchError: H, offset: O, tableRefreshing: j } = sl({
14971
14976
  model: r,
14972
14977
  setSearchTreeNameSearch: A,
14973
14978
  setSelectedRowItems: y,
@@ -15023,8 +15028,8 @@ const uy = (e) => {
15023
15028
  onClear: M,
15024
15029
  offset: O,
15025
15030
  isSearching: V,
15026
- onSubmit: (j) => {
15027
- N(!1), g == null || g(j.params), b == null || b(!1);
15031
+ onSubmit: (B) => {
15032
+ N(!1), g == null || g(B.params), b == null || b(!1);
15028
15033
  },
15029
15034
  searchError: H,
15030
15035
  searchVisible: v,
@@ -15032,7 +15037,7 @@ const uy = (e) => {
15032
15037
  showLimitOptions: !1
15033
15038
  }
15034
15039
  ),
15035
- B ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
15040
+ j ? /* @__PURE__ */ s(tt, {}) : /* @__PURE__ */ s(
15036
15041
  Un,
15037
15042
  {
15038
15043
  ref: d,
@@ -15043,7 +15048,7 @@ const uy = (e) => {
15043
15048
  domain: sn(R || [], i),
15044
15049
  limit: k ? D : void 0,
15045
15050
  fixedHeight: Au,
15046
- manualIds: k && h && h.length > 0 ? h.map((j) => j.id) : void 0
15051
+ manualIds: k && h && h.length > 0 ? h.map((B) => B.id) : void 0
15047
15052
  }
15048
15053
  )
15049
15054
  ] });
@@ -15194,7 +15199,7 @@ async function gy(e) {
15194
15199
  function yy({
15195
15200
  currentTab: e
15196
15201
  }) {
15197
- const { currentView: t, searchParams: n, currentId: r, limit: o, currentPage: i, order: a } = bn(), { currentTab: l } = Bo(), c = e || l;
15202
+ const { currentView: t, searchParams: n, currentId: r, limit: o, currentPage: i, order: a } = bn(), { currentTab: l } = jo(), c = e || l;
15198
15203
  if (!(c != null && c.action))
15199
15204
  return { shareUrl: null, canShare: !1 };
15200
15205
  const d = {
@@ -15213,7 +15218,7 @@ function yy({
15213
15218
  return p === "form" && (h = !!f && !!r), { shareUrl: m, canShare: h };
15214
15219
  }
15215
15220
  const vy = () => {
15216
- const { currentTab: e } = Bo(), { title: t } = en(), { shareUrl: n } = yy({ currentTab: e });
15221
+ const { currentTab: e } = jo(), { title: t } = en(), { shareUrl: n } = yy({ currentTab: e });
15217
15222
  de(() => {
15218
15223
  if (n) {
15219
15224
  const r = new URL(n, window.location.origin);
@@ -15245,7 +15250,7 @@ function by(e, t) {
15245
15250
  order: F
15246
15251
  } = e, [S, x] = I(), [A, _] = I([]), [D, w] = I(!0), R = m || void 0, [C, T] = I(
15247
15252
  R
15248
- ), [P, k] = I([]), [N, M] = I(), [V, H] = I([]), [O, B] = I(), [J, j] = I(0), [ae, X] = I(!1), [ge, re] = I(!1), [U, W] = I(), { t: ee } = he(), { showErrorNotification: ue } = gt(), oe = z(), Y = z(), te = le(
15253
+ ), [P, k] = I([]), [N, M] = I(), [V, H] = I([]), [O, j] = I(), [J, B] = I(0), [ae, X] = I(!1), [ge, re] = I(!1), [U, W] = I(), { t: ee } = he(), { showErrorNotification: ue } = gt(), oe = z(), Y = z(), te = le(
15249
15254
  Vt
15250
15255
  ), {
15251
15256
  setCurrentView: ne,
@@ -15349,12 +15354,12 @@ function by(e, t) {
15349
15354
  }
15350
15355
  }
15351
15356
  }
15352
- let je;
15353
- !d && ye.find((Me) => Me.type === "tree") ? je = ye.find(
15357
+ let Be;
15358
+ !d && ye.find((Me) => Me.type === "tree") ? Be = ye.find(
15354
15359
  (_e) => _e.type === "tree"
15355
- ) : d ? je = ye.find((_e) => d.id ? _e.type === d.type && _e.view_id === d.id : _e.type === d.type) : je = ye.find(
15360
+ ) : d ? Be = ye.find((_e) => d.id ? _e.type === d.type && _e.view_id === d.id : _e.type === d.type) : Be = ye.find(
15356
15361
  (_e) => _e.type === "form"
15357
- ), je || (ue({
15362
+ ), Be || (ue({
15358
15363
  type: "error",
15359
15364
  title: "Error determining the first view to show for model",
15360
15365
  message: `Error determining the first view to show for model ${r}.
@@ -15366,11 +15371,11 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15366
15371
  views: i,
15367
15372
  initialView: d,
15368
15373
  availableViews: ye,
15369
- currentViewToAssign: je,
15374
+ currentViewToAssign: Be,
15370
15375
  action_id: p,
15371
15376
  action_type: h
15372
15377
  })
15373
- ), Ce == null || Ce(c)), Fe(je), _(ye), w(!1);
15378
+ ), Ce == null || Ce(c)), Fe(Be), _(ye), w(!1);
15374
15379
  }, [
15375
15380
  d,
15376
15381
  Fe,
@@ -15404,9 +15409,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15404
15409
  async function be(ye, $e) {
15405
15410
  var Me;
15406
15411
  re(!0);
15407
- let Re, je;
15412
+ let Re, Be;
15408
15413
  if (ye.length === 1) {
15409
- Re = "form", je = [];
15414
+ Re = "form", Be = [];
15410
15415
  const _e = ye[0], Je = V.findIndex((Ve) => Ve.id === _e);
15411
15416
  let rt;
15412
15417
  if (Je === -1) {
@@ -15425,7 +15430,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15425
15430
  } else
15426
15431
  rt = V[Je];
15427
15432
  } else
15428
- Re = "tree", je = [["id", "in", ye]];
15433
+ Re = "tree", Be = [["id", "in", ye]];
15429
15434
  if (re(!1), X(!1), $e && Re === "form") {
15430
15435
  fe(ye[0]);
15431
15436
  const _e = A.find(
@@ -15435,7 +15440,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15435
15440
  } else {
15436
15441
  const _e = i.find((Je) => Je[1] === Re);
15437
15442
  Se({
15438
- domain: je,
15443
+ domain: Be,
15439
15444
  context: o,
15440
15445
  model: r,
15441
15446
  views: i,
@@ -15477,9 +15482,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
15477
15482
  setResults: H,
15478
15483
  currentModel: r,
15479
15484
  sorter: O,
15480
- setSorter: B,
15485
+ setSorter: j,
15481
15486
  totalItems: J,
15482
- setTotalItems: j,
15487
+ setTotalItems: B,
15483
15488
  selectedRowItems: P,
15484
15489
  setSelectedRowItems: k,
15485
15490
  setSearchTreeNameSearch: W,
@@ -15655,10 +15660,10 @@ function Cy(e) {
15655
15660
  domain: i = [],
15656
15661
  visible: a = !0,
15657
15662
  parentContext: l = {}
15658
- } = e, [c, d] = I(!1), [f, u] = I(!1), [m, p] = I(), [h, y] = I(), [g, v] = I(), [b, F] = I(1), [S, x] = I(0), A = z(Ct), _ = z([]), [D, w] = I(0), [R, C] = I([]), [T, P] = I(void 0), [k, N] = I(), [M, V] = I(), [H, O] = I(), [B, J] = I(!1), j = z([]), ae = (oe) => {
15663
+ } = e, [c, d] = I(!1), [f, u] = I(!1), [m, p] = I(), [h, y] = I(), [g, v] = I(), [b, F] = I(1), [S, x] = I(0), A = z(Ct), _ = z([]), [D, w] = I(0), [R, C] = I([]), [T, P] = I(void 0), [k, N] = I(), [M, V] = I(), [H, O] = I(), [j, J] = I(!1), B = z([]), ae = (oe) => {
15659
15664
  J(!0), F(oe), x((oe - 1) * A.current);
15660
15665
  }, X = async () => {
15661
- const oe = j.current.length > 0 ? j.current : i, Y = sn(_.current, oe), { colors: te } = Qt(h), { totalItems: ne, results: Z, attrsEvaluated: ve } = await L.getHandler().searchForTree({
15666
+ const oe = B.current.length > 0 ? B.current : i, Y = sn(_.current, oe), { colors: te } = Qt(h), { totalItems: ne, results: Z, attrsEvaluated: ve } = await L.getHandler().searchForTree({
15662
15667
  params: Y,
15663
15668
  limit: A.current,
15664
15669
  offset: S,
@@ -15700,7 +15705,7 @@ function Cy(e) {
15700
15705
  action: t,
15701
15706
  context: l
15702
15707
  });
15703
- j.current = oe.domain, v(oe.views.get("form")), y(oe.views.get("tree")), p(oe.model), A.current = oe.limit;
15708
+ B.current = oe.domain, v(oe.views.get("form")), y(oe.views.get("tree")), p(oe.model), A.current = oe.limit;
15704
15709
  }, W = async () => {
15705
15710
  p(n);
15706
15711
  const oe = await L.getHandler().getView({
@@ -15739,7 +15744,7 @@ function Cy(e) {
15739
15744
  treeView: h,
15740
15745
  results: R,
15741
15746
  onRequestPageChange: ae,
15742
- loading: B,
15747
+ loading: j,
15743
15748
  onRowClicked: ee,
15744
15749
  colorsForResults: T,
15745
15750
  sorter: k,
@@ -15781,7 +15786,7 @@ function Iy(e, t) {
15781
15786
  } = le(ss), y = z(), g = z(), [v] = qe(L.getHandler().getView), [b] = qe(
15782
15787
  L.getHandler().readObjects
15783
15788
  ), [F] = qe(L.getHandler().update), S = ln(
15784
- Bt.FEATURE_READFORVIEW
15789
+ jt.FEATURE_READFORVIEW
15785
15790
  );
15786
15791
  de(() => {
15787
15792
  x();
@@ -15864,7 +15869,7 @@ function Iy(e, t) {
15864
15869
  return;
15865
15870
  const P = T.filter((V) => {
15866
15871
  const H = a.find(
15867
- (B) => B.id === V.id
15872
+ (j) => j.id === V.id
15868
15873
  );
15869
15874
  if (!H)
15870
15875
  return !1;
@@ -15909,9 +15914,9 @@ function Iy(e, t) {
15909
15914
  const { actionData: k, values: N } = T, { position: M, id: V } = N, {
15910
15915
  actionId: H,
15911
15916
  actionType: O,
15912
- key: B,
15917
+ key: j,
15913
15918
  title: J,
15914
- description: j,
15919
+ description: B,
15915
15920
  views: ae,
15916
15921
  model: X,
15917
15922
  context: ge,
@@ -15985,7 +15990,7 @@ function Iy(e, t) {
15985
15990
  {
15986
15991
  action_id: H,
15987
15992
  action_type: O,
15988
- tabKey: B,
15993
+ tabKey: j,
15989
15994
  title: J,
15990
15995
  views: ae,
15991
15996
  model: X,
@@ -16030,7 +16035,7 @@ function Iy(e, t) {
16030
16035
  parms: ee,
16031
16036
  action: oe,
16032
16037
  openAction: p,
16033
- tooltip: j,
16038
+ tooltip: B,
16034
16039
  children: ue
16035
16040
  },
16036
16041
  `griditem-${V}`
@@ -16233,7 +16238,7 @@ const Ay = $t(Iy), Ry = (e) => {
16233
16238
  /* @__PURE__ */ s("div", { style: f }),
16234
16239
  /* @__PURE__ */ s("div", { style: u(p.active) })
16235
16240
  ] }, h)) });
16236
- }, Ly = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ny, {}) }), Hy = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(jy, { ...e }) }), jy = (e) => {
16241
+ }, Ly = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Ny, {}) }), Hy = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(By, { ...e }) }), By = (e) => {
16237
16242
  const { ooui: t, value: n, onChange: r } = e, { lang: o, height: i, readOnly: a } = t, l = le(Xe), { elementHasLostFocus: c } = l || {}, d = E(
16238
16243
  (u) => {
16239
16244
  c && u.onDidBlurEditorWidget(() => c());
@@ -16261,7 +16266,7 @@ const Ay = $t(Iy), Ry = (e) => {
16261
16266
  onChange: r
16262
16267
  }
16263
16268
  );
16264
- }, { Meta: By } = Io, { Text: Uy } = an, Yy = ({ email: e, size: t = 40, theme: n = "" }) => {
16269
+ }, { Meta: jy } = Io, { Text: Uy } = an, Yy = ({ email: e, size: t = 40, theme: n = "" }) => {
16265
16270
  const r = `https://www.gravatar.com/avatar/${ed(
16266
16271
  e
16267
16272
  )}?s=${t}&d=${n}`;
@@ -16279,7 +16284,7 @@ const Gy = (e) => {
16279
16284
  const { data: t, style: n } = e, { t: r } = he();
16280
16285
  return /* @__PURE__ */ $(Io, { style: { ...n, textAlign: "start" }, children: [
16281
16286
  /* @__PURE__ */ s(
16282
- By,
16287
+ jy,
16283
16288
  {
16284
16289
  avatar: /* @__PURE__ */ s(Yy, { email: t.email, theme: "mp" }),
16285
16290
  title: t.author,
@@ -16399,7 +16404,7 @@ function sv() {
16399
16404
  }
16400
16405
  function iv(e, t) {
16401
16406
  const { children: n } = e, [r, o] = I("welcome"), { t: i } = he(), { showErrorNotification: a } = gt(), { globalValues: l, rootContext: c } = en(), d = du(
16402
- Bt.FEATURE_LOGGABLE_ACTIONS
16407
+ jt.FEATURE_LOGGABLE_ACTIONS
16403
16408
  ), [f, u] = qe(
16404
16409
  L.getHandler().logAction
16405
16410
  );
@@ -16526,13 +16531,13 @@ function iv(e, t) {
16526
16531
  });
16527
16532
  return;
16528
16533
  }
16529
- const [V, H] = R.split(","), O = parseInt(H), B = M.context, J = rn({
16530
- context: B,
16534
+ const [V, H] = R.split(","), O = parseInt(H), j = M.context, J = rn({
16535
+ context: j,
16531
16536
  values: l
16532
- }), j = M.domain, ae = await (async () => {
16537
+ }), B = M.domain, ae = await (async () => {
16533
16538
  try {
16534
- return j ? await L.getHandler().evalDomain({
16535
- domain: j,
16539
+ return B ? await L.getHandler().evalDomain({
16540
+ domain: B,
16536
16541
  values: l,
16537
16542
  context: { ...c, ...J }
16538
16543
  }) : [];
@@ -16589,8 +16594,8 @@ function iv(e, t) {
16589
16594
  treeExpandable: ue,
16590
16595
  limit: ee,
16591
16596
  actionRawData: {
16592
- context: B,
16593
- domain: j
16597
+ context: j,
16598
+ domain: B
16594
16599
  }
16595
16600
  });
16596
16601
  }
@@ -16625,9 +16630,9 @@ function iv(e, t) {
16625
16630
  domain: V,
16626
16631
  views: H,
16627
16632
  target: O,
16628
- string: B,
16633
+ string: j,
16629
16634
  limit: J
16630
- } = R, [j, ae] = H[0], X = { id: j, type: ae }, ge = M, re = rn({
16635
+ } = R, [B, ae] = H[0], X = { id: B, type: ae }, ge = M, re = rn({
16631
16636
  context: ge,
16632
16637
  values: { ...T, ...l }
16633
16638
  }), U = V, W = V ? await L.getHandler().evalDomain({
@@ -16645,7 +16650,7 @@ function iv(e, t) {
16645
16650
  views: H,
16646
16651
  context: { ...c, ...re },
16647
16652
  domain: W,
16648
- title: B,
16653
+ title: j,
16649
16654
  initialView: X,
16650
16655
  action_id: P,
16651
16656
  action_type: k,
@@ -16670,14 +16675,14 @@ function iv(e, t) {
16670
16675
  } = R, H = `${T},${C}`, O = await L.getHandler().getActionData({
16671
16676
  action: H,
16672
16677
  context: c
16673
- }), B = O.context, J = rn({
16674
- context: B,
16678
+ }), j = O.context, J = rn({
16679
+ context: j,
16675
16680
  values: { ...l, ...M },
16676
16681
  fields: {}
16677
16682
  });
16678
- let j = [];
16683
+ let B = [];
16679
16684
  const ae = V && V.length > 0 ? V : O.domain;
16680
- (V == null ? void 0 : V.length) > 0 ? j = V : O.domain && (j = await L.getHandler().evalDomain({
16685
+ (V == null ? void 0 : V.length) > 0 ? B = V : O.domain && (B = await L.getHandler().evalDomain({
16681
16686
  domain: O.domain,
16682
16687
  values: { ...l, ...M },
16683
16688
  context: { ...c, ...J }
@@ -16714,7 +16719,7 @@ function iv(e, t) {
16714
16719
  [Y, te] = oe.find((Z) => Z[0] === void 0 ? !1 : Z[0] === k);
16715
16720
  const ne = { id: Y, type: te };
16716
16721
  w({
16717
- domain: j,
16722
+ domain: B,
16718
16723
  context: { ...c, ...J },
16719
16724
  model: X,
16720
16725
  views: oe,
@@ -16727,7 +16732,7 @@ function iv(e, t) {
16727
16732
  treeExpandable: ue,
16728
16733
  limit: N && (ee === 0 || ee === !1) ? Ct : ee,
16729
16734
  actionRawData: {
16730
- context: B,
16735
+ context: j,
16731
16736
  domain: ae,
16732
16737
  values: M
16733
16738
  }
@@ -16763,9 +16768,9 @@ function iv(e, t) {
16763
16768
  initialView: V,
16764
16769
  action_id: H,
16765
16770
  action_type: O,
16766
- res_id: B,
16771
+ res_id: j,
16767
16772
  values: J,
16768
- forced_values: j,
16773
+ forced_values: B,
16769
16774
  treeExpandable: ae = !1,
16770
16775
  limit: X,
16771
16776
  searchParams: ge,
@@ -16797,7 +16802,7 @@ function iv(e, t) {
16797
16802
  actionData: {
16798
16803
  action_id: H,
16799
16804
  action_type: O,
16800
- res_id: B,
16805
+ res_id: j,
16801
16806
  view_id: ue.view_id
16802
16807
  }
16803
16808
  });
@@ -16818,9 +16823,9 @@ function iv(e, t) {
16818
16823
  domain: C,
16819
16824
  setCanWeClose: v,
16820
16825
  initialView: ue,
16821
- res_id: B,
16826
+ res_id: j,
16822
16827
  formDefaultValues: J,
16823
- formForcedValues: j,
16828
+ formForcedValues: B,
16824
16829
  treeExpandable: ae,
16825
16830
  limit: X,
16826
16831
  initialSearchParams: ge,
@@ -16916,7 +16921,7 @@ function lv(e) {
16916
16921
  alignItems: "center"
16917
16922
  },
16918
16923
  children: /* @__PURE__ */ s(
16919
- jn,
16924
+ Bn,
16920
16925
  {
16921
16926
  style: {
16922
16927
  color: a.colorPrimaryActive
@@ -17104,7 +17109,7 @@ export {
17104
17109
  Mo as Button,
17105
17110
  pd as ButtonGroup,
17106
17111
  Zy as Carousel,
17107
- ji as Char,
17112
+ Bi as Char,
17108
17113
  Hy as CodeEditor,
17109
17114
  tv as ColorPicker,
17110
17115
  zy as CommentsTimelineField,
@@ -17119,8 +17124,8 @@ export {
17119
17124
  qg as DateTime,
17120
17125
  ly as Email,
17121
17126
  lb as ErpAllFeatureKeys,
17122
- Bt as ErpFeatureKeys,
17123
- jg as ExportModal,
17127
+ jt as ErpFeatureKeys,
17128
+ Bg as ExportModal,
17124
17129
  fb as FavouriteButton,
17125
17130
  qo as Float,
17126
17131
  Fg as FloatTime,