@gisce/react-ooui 2.126.0-alpha.6 → 2.126.0-alpha.8

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,14 +3,14 @@ var ru = (t, e, n) => e in t ? nu(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var Ei = (t, e, n) => (ru(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import { jsx as s, jsxs as H, Fragment as Re } from "react/jsx-runtime";
5
5
  import pn, { useContext as Me, useState as E, useEffect as ye, useRef as X, memo as tt, useCallback as T, useMemo as K, forwardRef as qt, useImperativeHandle as rn, Fragment as Gn, createContext as ou, createElement as Qa } from "react";
6
- import { Tooltip as Ht, theme as ot, Typography as Zt, Form as Mt, Row as ut, Col as Xe, Modal as Wt, Button as Ke, Dropdown as js, Menu as Xa, Space as yt, Spin as dt, Divider as Kr, Input as Nt, Select as yn, Checkbox as Pr, Empty as hr, Alert as zt, Timeline as Za, Progress as su, Badge as Kn, message as gr, Popover as iu, Avatar as Mo, Tag as Us, ColorPicker as el, DatePicker as au, TimePicker as lu, InputNumber as Jr, Layout as tl, Pagination as cu, Statistic as du, Card as Qr, QRCode as uu, Tabs as nl, Mentions as fu, Radio as Ii, Switch as rl, Steps as Ri, Carousel as mu } from "antd";
6
+ import { Tooltip as Ht, theme as ot, Typography as Zt, Form as Mt, Row as ut, Col as Xe, Modal as Wt, Button as Ke, Dropdown as js, Menu as Xa, Space as yt, Spin as dt, Divider as Kr, Input as Nt, Select as yn, Checkbox as Lr, Empty as hr, Alert as zt, Timeline as Za, Progress as su, Badge as Kn, message as gr, Popover as iu, Avatar as Mo, Tag as Us, ColorPicker as el, DatePicker as au, TimePicker as lu, InputNumber as Jr, Layout as tl, Pagination as cu, Statistic as du, Card as Qr, QRCode as uu, Tabs as nl, Mentions as fu, Radio as Ii, Switch as rl, Steps as Ri, Carousel as mu } from "antd";
7
7
  import { Label as xr, Field as Ss, Tree as ol, Tags as Fi, Reference as Oi, Selection as Co, Many2one as No, Boolean as pu, parseContext as Nn, parseContextFields as hu, parseDomainFields as gu, transformDomainForChildWidget as ko, graphProcessor as sl, graphFieldUtils as yu, Integer as Ts, SearchFieldTypes as Mn, SearchFilter as il, parseGraph as al, Container as vu, Form as ll, KanbanCard as bu, Button as cl, Kanban as dl } from "@gisce/ooui";
8
- import wu, { QuestionCircleOutlined as ul, ExclamationCircleOutlined as $o, LoadingOutlined as tn, DownOutlined as Xr, CloseOutlined as $n, CheckOutlined as Ln, TranslationOutlined as fl, ExportOutlined as Vr, ThunderboltOutlined as Lo, PrinterOutlined as Po, EnterOutlined as Vo, CloseCircleFilled as ml, SearchOutlined as Sr, PlusOutlined as Br, FolderOpenOutlined as Ws, DownloadOutlined as zs, ClearOutlined as Tr, FormOutlined as xo, TableOutlined as pl, AreaChartOutlined as Cu, CalendarOutlined as xu, BorderOuterOutlined as hl, FileAddOutlined as Bo, FilterOutlined as dr, EditOutlined as gl, CopyOutlined as Jn, DeleteOutlined as Ho, InfoCircleOutlined as jo, ReloadOutlined as Zr, SaveOutlined as _s, UpOutlined as Su, PlusSquareOutlined as yl, MinusSquareOutlined as vl, StarFilled as Tu, StarOutlined as _u, LeftOutlined as bl, RightOutlined as wl, ApiOutlined as Au, AlignLeftOutlined as Eu, EyeOutlined as Iu, LinkOutlined as Di, MessageOutlined as Ru, BellFilled as Fu, BellOutlined as Ou, ExclamationCircleFilled as Du, SendOutlined as Mu, SettingOutlined as Nu, EllipsisOutlined as ku } from "@ant-design/icons";
8
+ import wu, { QuestionCircleOutlined as ul, ExclamationCircleOutlined as $o, LoadingOutlined as tn, DownOutlined as Xr, CloseOutlined as $n, CheckOutlined as Pn, TranslationOutlined as fl, ExportOutlined as Vr, ThunderboltOutlined as Po, PrinterOutlined as Lo, EnterOutlined as Vo, CloseCircleFilled as ml, SearchOutlined as Sr, PlusOutlined as Br, FolderOpenOutlined as Ws, DownloadOutlined as zs, ClearOutlined as Tr, FormOutlined as xo, TableOutlined as pl, AreaChartOutlined as Cu, CalendarOutlined as xu, BorderOuterOutlined as hl, FileAddOutlined as Bo, FilterOutlined as dr, EditOutlined as gl, CopyOutlined as Jn, DeleteOutlined as Ho, InfoCircleOutlined as jo, ReloadOutlined as Zr, SaveOutlined as _s, UpOutlined as Su, PlusSquareOutlined as yl, MinusSquareOutlined as vl, StarFilled as Tu, StarOutlined as _u, LeftOutlined as bl, RightOutlined as wl, ApiOutlined as Au, AlignLeftOutlined as Eu, EyeOutlined as Iu, LinkOutlined as Di, MessageOutlined as Ru, BellFilled as Fu, BellOutlined as Ou, ExclamationCircleFilled as Du, SendOutlined as Mu, SettingOutlined as Nu, EllipsisOutlined as ku } from "@ant-design/icons";
9
9
  import { Interweave as xn } from "interweave";
10
10
  import it from "dayjs";
11
11
  import $u from "dayjs/plugin/advancedFormat";
12
- import Lu from "dayjs/plugin/customParseFormat";
13
- import Pu from "dayjs/plugin/isoWeek";
12
+ import Pu from "dayjs/plugin/customParseFormat";
13
+ import Lu from "dayjs/plugin/isoWeek";
14
14
  import Vu from "dayjs/plugin/timezone";
15
15
  import Bu from "dayjs/plugin/duration";
16
16
  import Hu from "dayjs/plugin/relativeTime";
@@ -51,7 +51,7 @@ import { useSortable as Df, SortableContext as Mf, verticalListSortingStrategy a
51
51
  import { AnimatePresence as Rl, motion as Es } from "framer-motion";
52
52
  import { useVirtualizer as kf } from "@tanstack/react-virtual";
53
53
  import $f from "focus-trap-react";
54
- const ft = pn.createContext(null), Lf = (t) => {
54
+ const ft = pn.createContext(null), Pf = (t) => {
55
55
  const {
56
56
  children: e,
57
57
  activeId: n,
@@ -146,7 +146,7 @@ const ft = pn.createContext(null), Lf = (t) => {
146
146
  refreshCounter: 0
147
147
  };
148
148
  };
149
- var Pn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
149
+ var Ln = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
150
150
  function _r(t) {
151
151
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
152
152
  }
@@ -154,7 +154,7 @@ var Fl = { exports: {} };
154
154
  (function(t, e) {
155
155
  (function(n, r) {
156
156
  t.exports = r();
157
- })(Pn, function() {
157
+ })(Ln, function() {
158
158
  var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, o = /([+-]|\d\d)/g;
159
159
  return function(i, a, d) {
160
160
  var c = a.prototype;
@@ -231,13 +231,13 @@ var Fl = { exports: {} };
231
231
  };
232
232
  });
233
233
  })(Fl);
234
- var Pf = Fl.exports;
235
- const Vf = /* @__PURE__ */ _r(Pf);
234
+ var Lf = Fl.exports;
235
+ const Vf = /* @__PURE__ */ _r(Lf);
236
236
  var Ol = { exports: {} };
237
237
  (function(t, e) {
238
238
  (function(n, r) {
239
239
  t.exports = r();
240
- })(Pn, function() {
240
+ })(Ln, function() {
241
241
  return function(n, r, o) {
242
242
  var i = "h:mm A", a = { lastDay: "[Yesterday at] " + i, sameDay: "[Today at] " + i, nextDay: "[Tomorrow at] " + i, nextWeek: "dddd [at] " + i, lastWeek: "[Last] dddd [at] " + i, sameElse: "MM/DD/YYYY" };
243
243
  r.prototype.calendar = function(d, c) {
@@ -253,7 +253,7 @@ var Dl = { exports: {} };
253
253
  (function(t, e) {
254
254
  (function(n, r) {
255
255
  t.exports = r();
256
- })(Pn, function() {
256
+ })(Ln, function() {
257
257
  return function(n, r, o) {
258
258
  r.prototype.isToday = function() {
259
259
  var i = "YYYY-MM-DD", a = o();
@@ -268,7 +268,7 @@ var Ml = { exports: {} };
268
268
  (function(t, e) {
269
269
  (function(n, r) {
270
270
  t.exports = r();
271
- })(Pn, function() {
271
+ })(Ln, function() {
272
272
  return function(n, r, o) {
273
273
  r.prototype.isYesterday = function() {
274
274
  var i = "YYYY-MM-DD", a = o().subtract(1, "day");
@@ -283,7 +283,7 @@ var Nl = { exports: {} };
283
283
  (function(t, e) {
284
284
  (function(n, r) {
285
285
  t.exports = r();
286
- })(Pn, function() {
286
+ })(Ln, function() {
287
287
  return function(n, r, o) {
288
288
  o.updateLocale = function(i, a) {
289
289
  var d = o.Ls[i];
@@ -301,7 +301,7 @@ var Gf = { exports: {} };
301
301
  (function(t, e) {
302
302
  (function(n, r) {
303
303
  t.exports = r(it);
304
- })(Pn, function(n) {
304
+ })(Ln, function(n) {
305
305
  function r(a) {
306
306
  return a && typeof a == "object" && "default" in a ? a : { default: a };
307
307
  }
@@ -315,7 +315,7 @@ var Kf = { exports: {} };
315
315
  (function(t, e) {
316
316
  (function(n, r) {
317
317
  t.exports = r();
318
- })(Pn, function() {
318
+ })(Ln, function() {
319
319
  return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(n) {
320
320
  var r = ["th", "st", "nd", "rd"], o = n % 100;
321
321
  return "[" + n + (r[(o - 20) % 10] || r[o] || r[0]) + "]";
@@ -326,7 +326,7 @@ var Jf = { exports: {} };
326
326
  (function(t, e) {
327
327
  (function(n, r) {
328
328
  t.exports = r(it);
329
- })(Pn, function(n) {
329
+ })(Ln, function(n) {
330
330
  function r(a) {
331
331
  return a && typeof a == "object" && "default" in a ? a : { default: a };
332
332
  }
@@ -338,8 +338,8 @@ var Jf = { exports: {} };
338
338
  })(Jf);
339
339
  it.extend(Vf);
340
340
  it.extend($u);
341
- it.extend(Lu);
342
341
  it.extend(Pu);
342
+ it.extend(Lu);
343
343
  it.extend(Vu);
344
344
  it.extend(Bu);
345
345
  it.extend(Hu);
@@ -825,22 +825,22 @@ const kl = (t) => {
825
825
  params: [["translatable", "=", "1"]],
826
826
  fieldsToRetrieve: ["code", "name"],
827
827
  model: "res.lang"
828
- })).map((L) => ({
829
- code: L.code,
830
- name: L.name
828
+ })).map((P) => ({
829
+ code: P.code,
830
+ name: P.name
831
831
  }));
832
832
  return f == null || f(D), D;
833
833
  }
834
834
  async function w(O) {
835
835
  const D = {};
836
- for (const L of O) {
836
+ for (const P of O) {
837
837
  const M = (await q.getHandler().readObjects({
838
838
  model: r,
839
839
  ids: [o],
840
840
  fieldsToRetrieve: [i],
841
- context: { lang: L.code }
841
+ context: { lang: P.code }
842
842
  }))[0];
843
- D[L.code] = M[i] || "";
843
+ D[P.code] = M[i] || "";
844
844
  }
845
845
  v.current = D, y(D);
846
846
  }
@@ -852,10 +852,10 @@ const kl = (t) => {
852
852
  {
853
853
  rows: 4,
854
854
  value: h[O.code] || "",
855
- onChange: (L) => {
855
+ onChange: (P) => {
856
856
  y({
857
857
  ...h,
858
- [O.code]: L.target.value
858
+ [O.code]: P.target.value
859
859
  });
860
860
  },
861
861
  disabled: p
@@ -898,7 +898,7 @@ const kl = (t) => {
898
898
  /* @__PURE__ */ s(
899
899
  Ke,
900
900
  {
901
- icon: p ? /* @__PURE__ */ s(tn, {}) : /* @__PURE__ */ s(Ln, {}),
901
+ icon: p ? /* @__PURE__ */ s(tn, {}) : /* @__PURE__ */ s(Pn, {}),
902
902
  disabled: p,
903
903
  onClick: S,
904
904
  style: { marginLeft: 15 },
@@ -925,7 +925,7 @@ const kl = (t) => {
925
925
  }
926
926
  );
927
927
  };
928
- function Lt(t) {
928
+ function Pt(t) {
929
929
  const { tooltip: e, ...n } = t;
930
930
  return /* @__PURE__ */ s(Ht, { title: e, children: /* @__PURE__ */ s(Ke, { ...n }) });
931
931
  }
@@ -967,11 +967,11 @@ const { defaultAlgorithm: lm, defaultSeed: cm } = ot, Ks = lm(cm), jr = tt(
967
967
  }
968
968
  );
969
969
  jr.displayName = "BaseInput";
970
- const Ll = (t) => {
970
+ const Pl = (t) => {
971
971
  const { ooui: e, isSearchField: n = !1 } = t, { id: r, readOnly: o, required: i, translatable: a } = e;
972
- let d = /* @__PURE__ */ s(Pl, { ooui: e, isSearchField: n });
972
+ let d = /* @__PURE__ */ s(Ll, { ooui: e, isSearchField: n });
973
973
  return a && !o && !n && (d = /* @__PURE__ */ s(Vl, { ooui: e, field: r })), /* @__PURE__ */ s(vt, { children: /* @__PURE__ */ s(Ze, { required: i, ...t, children: d }) });
974
- }, Pl = tt(
974
+ }, Ll = tt(
975
975
  ({
976
976
  value: t,
977
977
  ooui: e,
@@ -1025,7 +1025,7 @@ const Ll = (t) => {
1025
1025
  );
1026
1026
  }
1027
1027
  );
1028
- Pl.displayName = "CharInput";
1028
+ Ll.displayName = "CharInput";
1029
1029
  const Vl = tt(
1030
1030
  ({
1031
1031
  ooui: t,
@@ -1097,7 +1097,7 @@ const Vl = tt(
1097
1097
  }
1098
1098
  ) }),
1099
1099
  /* @__PURE__ */ s(Xe, { flex: "none", children: /* @__PURE__ */ s(
1100
- Lt,
1100
+ Pt,
1101
1101
  {
1102
1102
  tooltip: m("translate"),
1103
1103
  icon: /* @__PURE__ */ s(fl, {}),
@@ -1158,8 +1158,8 @@ const dm = ht(Nt)`
1158
1158
  return /* @__PURE__ */ s(Ze, { ...t, valuePropName: "checked", children: /* @__PURE__ */ s(Cm, { id: n, readOnly: r, required: o }) });
1159
1159
  }, Cm = (t) => {
1160
1160
  const { required: e, readOnly: n, ...r } = t;
1161
- return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(e && !n ? xm : Pr, { disabled: n, ...r }) });
1162
- }, xm = ht(Pr)`
1161
+ return /* @__PURE__ */ s("div", { className: "flex flex-row", children: /* @__PURE__ */ s(e && !n ? xm : Lr, { disabled: n, ...r }) });
1162
+ }, xm = ht(Lr)`
1163
1163
  .ant-checkbox-inner {
1164
1164
  background-color: ${ki.colorPrimaryBg};
1165
1165
  }
@@ -1223,7 +1223,7 @@ const dm = ht(Nt)`
1223
1223
  )) || []).length > 0 && (r[o] = e[o]);
1224
1224
  } else if (Array.isArray(e[o]))
1225
1225
  if (n[o].type === "many2one") {
1226
- if (!Li(t[o]) && !Li(e[o]))
1226
+ if (!Pi(t[o]) && !Pi(e[o]))
1227
1227
  return;
1228
1228
  if (Array.isArray(t[o])) {
1229
1229
  const l = JSON.stringify(t[o]), f = JSON.stringify(e[o]);
@@ -1336,7 +1336,7 @@ const Vn = ({
1336
1336
  }), Im = (t, e) => t.replace(
1337
1337
  /\{([^}]+)\}/g,
1338
1338
  (n, r) => e[r] !== void 0 ? e[r] : n
1339
- ), Li = (t) => !(!Array.isArray(t) || t.length !== 2 || t[0] === void 0 && t[1] === ""), Rm = () => {
1339
+ ), Pi = (t) => !(!Array.isArray(t) || t.length !== 2 || t[0] === void 0 && t[1] === ""), Rm = () => {
1340
1340
  const [t, e] = Ne(
1341
1341
  q.getHandler().checkPermission
1342
1342
  );
@@ -2031,7 +2031,7 @@ const Cn = pn.createContext(null), $m = (t) => {
2031
2031
  function Qn() {
2032
2032
  return Me(Cn) || {};
2033
2033
  }
2034
- function Lm(t) {
2034
+ function Pm(t) {
2035
2035
  const n = Buffer.from(t, "base64").length / 1e3;
2036
2036
  return `${Math.round((n + Number.EPSILON) * 100) / 100} KB`;
2037
2037
  }
@@ -2060,10 +2060,10 @@ function Gl(t, e, n) {
2060
2060
  for (let l = 0; l < r.length; l++)
2061
2061
  o[l] = r.charCodeAt(l);
2062
2062
  const i = new Uint8Array(o), a = new Blob([i], { type: e }), d = URL.createObjectURL(a);
2063
- return window.open(d) ? (setTimeout(() => URL.revokeObjectURL(d), 1e3), !0) : (URL.revokeObjectURL(d), Js(t, e, n), !1);
2063
+ return window.open(d) ? !0 : (URL.revokeObjectURL(d), Js(t, e, n), !1);
2064
2064
  }
2065
2065
  var kt = /* @__PURE__ */ ((t) => (t.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", t.FEATURE_ADVANCED_EXPORT = "export_data2", t.FEATURE_OMNISEARCH = "omnisearch", t.FEATURE_READFORVIEW = "read_for_view", t.FEATURE_USERVIEWPREFS = "user_view_prefs", t.FEATURE_GET_TOOLBAR = "get_toolbar", t.FEATURE_MANY2ONE_SORT = "many2one_sort", t.FEATURE_LOGGABLE_ACTIONS = "user_action_logs", t.FEATURE_USER_FLAGS = "user_feature_flags", t.FEATURE_CHECK_PERMS = "check_perms", t.FEATURE_SAVED_SEARCHES = "saved_searches", t.FEATURE_USER_NOTIFICATIONS = "user_notifications", t.FEATURE_SSE_SESSION_NOTIFICATIONS = "sse_session_notifications", t.FEATURE_COMMENTS_SYSTEM = "comments_system", t.FEATURE_GET_ATTACHMENTS = "get_attachments", t))(kt || {});
2066
- const IS = Object.values(kt), Jt = 80, kn = "ir.actions.act_window", Pm = "ir.actions.act_window_close", Vm = "ir.actions.wizard", Is = "ir.actions.report.xml", Bm = "ir.actions.act_url", Hm = "ir.actions.actions", jm = "ir.act.update_token", ns = "9007199254740991";
2066
+ const IS = Object.values(kt), Jt = 80, kn = "ir.actions.act_window", Lm = "ir.actions.act_window_close", Vm = "ir.actions.wizard", Is = "ir.actions.report.xml", Bm = "ir.actions.act_url", Hm = "ir.actions.actions", jm = "ir.act.update_token", ns = "9007199254740991";
2067
2067
  function ln(t) {
2068
2068
  if (t == null)
2069
2069
  return null;
@@ -2092,7 +2092,7 @@ function So(t, e) {
2092
2092
  const n = ln(t), r = ln(e);
2093
2093
  return n === null || r === null ? !1 : String(n) === String(r);
2094
2094
  }
2095
- function Pi(t) {
2095
+ function Li(t) {
2096
2096
  return /^-?\d+$/.test(t);
2097
2097
  }
2098
2098
  function Um(t, e, n = !0) {
@@ -2103,7 +2103,7 @@ function Um(t, e, n = !0) {
2103
2103
  return 1;
2104
2104
  if (o === null)
2105
2105
  return -1;
2106
- const i = String(r), a = String(o), d = Pi(i), c = Pi(a);
2106
+ const i = String(r), a = String(o), d = Li(i), c = Li(a);
2107
2107
  if (d !== c)
2108
2108
  return d ? -1 : 1;
2109
2109
  if (!d) {
@@ -2391,7 +2391,7 @@ const Rs = (t) => {
2391
2391
  context: {}
2392
2392
  }
2393
2393
  );
2394
- async function x(L) {
2394
+ async function x(P) {
2395
2395
  var ee;
2396
2396
  const {
2397
2397
  reportData: M,
@@ -2400,13 +2400,13 @@ const Rs = (t) => {
2400
2400
  context: A = {},
2401
2401
  treeView: N,
2402
2402
  view_id: k
2403
- } = L, {
2403
+ } = P, {
2404
2404
  context: j,
2405
2405
  model: Q,
2406
2406
  datas: V = {},
2407
2407
  report_name: B,
2408
2408
  type: $,
2409
- id: P
2409
+ id: L
2410
2410
  } = M;
2411
2411
  if (!k && N) {
2412
2412
  const te = Rs(N);
@@ -2434,7 +2434,7 @@ const Rs = (t) => {
2434
2434
  try {
2435
2435
  g({
2436
2436
  action_type: $,
2437
- action_id: P,
2437
+ action_id: L,
2438
2438
  context: A
2439
2439
  });
2440
2440
  } catch (we) {
@@ -2454,11 +2454,11 @@ const Rs = (t) => {
2454
2454
  i.current = !1, clearInterval(o.current), m(te), d(!1);
2455
2455
  }
2456
2456
  }
2457
- async function w(L) {
2457
+ async function w(P) {
2458
2458
  let M;
2459
2459
  try {
2460
2460
  if (M = await q.getHandler().getReport({
2461
- id: L
2461
+ id: P
2462
2462
  }), M.state && i.current === !0) {
2463
2463
  i.current = !1, clearInterval(o.current), d(!1);
2464
2464
  const F = await yr(M.result);
@@ -2473,7 +2473,7 @@ const Rs = (t) => {
2473
2473
  }
2474
2474
  }
2475
2475
  async function _({
2476
- actionData: L,
2476
+ actionData: P,
2477
2477
  fields: M,
2478
2478
  values: F,
2479
2479
  context: R,
@@ -2481,10 +2481,10 @@ const Rs = (t) => {
2481
2481
  treeView: N,
2482
2482
  view_id: k
2483
2483
  }) {
2484
- const { type: j } = L;
2484
+ const { type: j } = P;
2485
2485
  if (A && f.current.push(A), j === Is)
2486
2486
  return await x({
2487
- reportData: L,
2487
+ reportData: P,
2488
2488
  fields: M,
2489
2489
  values: F,
2490
2490
  context: R,
@@ -2492,10 +2492,10 @@ const Rs = (t) => {
2492
2492
  view_id: k
2493
2493
  });
2494
2494
  if (j === kn)
2495
- return await S({ actionData: L, fields: M, values: F, context: R });
2495
+ return await S({ actionData: P, fields: M, values: F, context: R });
2496
2496
  if (j === Bm)
2497
2497
  window.open(
2498
- Im(L.url, { ...F, context: R }),
2498
+ Im(P.url, { ...F, context: R }),
2499
2499
  "_blank"
2500
2500
  );
2501
2501
  else
@@ -2506,16 +2506,16 @@ const Rs = (t) => {
2506
2506
  }), {};
2507
2507
  }
2508
2508
  async function S({
2509
- actionData: L,
2509
+ actionData: P,
2510
2510
  fields: M = {},
2511
2511
  values: F = {},
2512
2512
  context: R = {}
2513
2513
  }) {
2514
2514
  var B;
2515
- let A = L;
2516
- L.res_model || (A = (await q.getHandler().readObjects({
2515
+ let A = P;
2516
+ P.res_model || (A = (await q.getHandler().readObjects({
2517
2517
  model: kn,
2518
- ids: [parseInt(L.id)],
2518
+ ids: [parseInt(P.id)],
2519
2519
  context: R
2520
2520
  }))[0]);
2521
2521
  const N = A.context, k = typeof (A == null ? void 0 : A.context) == "string" ? Nn({
@@ -2551,7 +2551,7 @@ const Rs = (t) => {
2551
2551
  actionData: A
2552
2552
  }), {};
2553
2553
  } else {
2554
- const { initialView: $, views: P } = await Gm({
2554
+ const { initialView: $, views: L } = await Gm({
2555
2555
  model: A.res_model,
2556
2556
  context: j,
2557
2557
  view_mode: A.view_mode,
@@ -2562,7 +2562,7 @@ const Rs = (t) => {
2562
2562
  context: j,
2563
2563
  domain: Q,
2564
2564
  model: A.res_model,
2565
- views: P,
2565
+ views: L,
2566
2566
  title: A.name,
2567
2567
  initialView: $,
2568
2568
  action_id: A.id,
@@ -2578,7 +2578,7 @@ const Rs = (t) => {
2578
2578
  }
2579
2579
  }
2580
2580
  function I({
2581
- domain: L,
2581
+ domain: P,
2582
2582
  model: M,
2583
2583
  formView: F,
2584
2584
  context: R,
@@ -2596,10 +2596,10 @@ const Rs = (t) => {
2596
2596
  } catch (Q) {
2597
2597
  console.error(Q);
2598
2598
  }
2599
- y ? O({ domain: L, model: M, formView: F, context: R, actionData: A }) : (C({ domain: L, model: M, context: R, formView: F, actionData: A }), v(!0));
2599
+ y ? O({ domain: P, model: M, formView: F, context: R, actionData: A }) : (C({ domain: P, model: M, context: R, formView: F, actionData: A }), v(!0));
2600
2600
  }
2601
2601
  async function O({
2602
- domain: L,
2602
+ domain: P,
2603
2603
  model: M,
2604
2604
  formView: F,
2605
2605
  context: R,
@@ -2611,7 +2611,7 @@ const Rs = (t) => {
2611
2611
  context: {},
2612
2612
  formView: void 0,
2613
2613
  actionData: void 0
2614
- }), v(!1), await new Promise((N) => setTimeout(N, 300)), C({ domain: L, model: M, context: R, formView: F, actionData: A }), v(!0);
2614
+ }), v(!1), await new Promise((N) => setTimeout(N, 300)), C({ domain: P, model: M, context: R, formView: F, actionData: A }), v(!0);
2615
2615
  }
2616
2616
  async function D() {
2617
2617
  Vi(f.current), f.current = [], v(!1), C({
@@ -2759,13 +2759,13 @@ const Km = qt(qm), Jm = ({
2759
2759
  id: "action",
2760
2760
  name: c("action"),
2761
2761
  disabled: !m || m.length === 0,
2762
- icon: /* @__PURE__ */ s(Lo, {})
2762
+ icon: /* @__PURE__ */ s(Po, {})
2763
2763
  },
2764
2764
  {
2765
2765
  id: "print",
2766
2766
  name: c("report"),
2767
2767
  disabled: !g || g.length === 0,
2768
- icon: /* @__PURE__ */ s(Po, {})
2768
+ icon: /* @__PURE__ */ s(Lo, {})
2769
2769
  },
2770
2770
  {
2771
2771
  id: "divider",
@@ -2857,20 +2857,20 @@ const Km = qt(qm), Jm = ({
2857
2857
  });
2858
2858
  a(F), I = F.fields, O = F.toolbar;
2859
2859
  }
2860
- const L = Qm({ fields: I, toolbar: O });
2860
+ const P = Qm({ fields: I, toolbar: O });
2861
2861
  let M = {};
2862
- return L.length > 0 && (M = { ...(D = await b({
2862
+ return P.length > 0 && (M = { ...(D = await b({
2863
2863
  model: n,
2864
2864
  ids: [e],
2865
- fieldsToRetrieve: L,
2865
+ fieldsToRetrieve: P,
2866
2866
  context: r
2867
2867
  })) == null ? void 0 : D[0] }), M = { ...Hn(M, I), active_id: e }, c(M), O ? {
2868
2868
  actionItems: O.action,
2869
2869
  relateItems: O.relate,
2870
2870
  printItems: O.print
2871
2871
  } : void 0;
2872
- } catch (L) {
2873
- console.error("Error in Many2oneSuffix fetchData:", L);
2872
+ } catch (P) {
2873
+ console.error("Error in Many2oneSuffix fetchData:", P);
2874
2874
  return;
2875
2875
  }
2876
2876
  }, [r, g, y, e, n, b, x]);
@@ -2971,7 +2971,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
2971
2971
  getContext: y,
2972
2972
  elementHasLostFocus: v,
2973
2973
  getAllHierarchyValues: b
2974
- } = p || {}, [C, x] = E([]), [w, _] = E(!1), [S, I] = E(!1), [O, D] = E(!1), [L, M] = E(!1), [F, R] = E([]), A = X([]), N = X(!1), k = X(/* @__PURE__ */ new Set()), j = K(
2974
+ } = p || {}, [C, x] = E([]), [w, _] = E(!1), [S, I] = E(!1), [O, D] = E(!1), [P, M] = E(!1), [F, R] = E([]), A = X([]), N = X(!1), k = X(/* @__PURE__ */ new Set()), j = K(
2975
2975
  () => {
2976
2976
  var re, Y, Z, fe;
2977
2977
  return {
@@ -2991,7 +2991,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
2991
2991
  ), $ = K(() => {
2992
2992
  let re = !0;
2993
2993
  return B === !0 && (re = !1), r.showMenu !== void 0 && (re = r.showMenu), re;
2994
- }, [r.showMenu, B]), P = K(() => o ? e == null ? [] : Array.isArray(e) && e.length > 0 && Array.isArray(e[0]) && (typeof e[0][0] == "number" || typeof e[0][0] == "string") ? e : Array.isArray(e) && (typeof e[0] == "number" || typeof e[0] == "string") ? [[e[0], e[1]]] : [] : [], [e, o]), U = K(() => {
2994
+ }, [r.showMenu, B]), L = K(() => o ? e == null ? [] : Array.isArray(e) && e.length > 0 && Array.isArray(e[0]) && (typeof e[0][0] == "number" || typeof e[0][0] == "string") ? e : Array.isArray(e) && (typeof e[0] == "number" || typeof e[0] == "string") ? [[e[0], e[1]]] : [] : [], [e, o]), U = K(() => {
2995
2995
  if (!o && e != null) {
2996
2996
  if (typeof e == "number")
2997
2997
  return [e, ""];
@@ -2999,8 +2999,8 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
2999
2999
  return e;
3000
3000
  }
3001
3001
  }, [e, o]), W = U == null ? void 0 : U[0], z = (U == null ? void 0 : U[1]) ?? "", ee = K(
3002
- () => P.map((re) => re[0]),
3003
- [P]
3002
+ () => L.map((re) => re[0]),
3003
+ [L]
3004
3004
  ), [te, we] = Ne(
3005
3005
  q.getHandler().evalDomain
3006
3006
  ), [ue, ie] = Ne(
@@ -3192,8 +3192,8 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3192
3192
  n,
3193
3193
  ce
3194
3194
  ]), Je(() => {
3195
- if (o && a && P.length > 0) {
3196
- const re = P.filter(
3195
+ if (o && a && L.length > 0) {
3196
+ const re = L.filter(
3197
3197
  ([Y, Z]) => !Z && !k.current.has(Y)
3198
3198
  ).map(([Y]) => Y);
3199
3199
  re.length > 0 && (re.forEach(
@@ -3209,7 +3209,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3209
3209
  Z.forEach((Ie) => {
3210
3210
  fe.set(Ie[0], Ie[1]);
3211
3211
  });
3212
- const Te = P.map(
3212
+ const Te = L.map(
3213
3213
  ([Ie, ke]) => !ke && fe.has(Ie) ? [Ie, fe.get(Ie)] : [Ie, ke]
3214
3214
  );
3215
3215
  n == null || n(Te);
@@ -3219,7 +3219,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3219
3219
  }
3220
3220
  }, [
3221
3221
  o,
3222
- P,
3222
+ L,
3223
3223
  a,
3224
3224
  c,
3225
3225
  y,
@@ -3234,21 +3234,21 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3234
3234
  ), ve = T(
3235
3235
  (re) => {
3236
3236
  const Y = new Set(
3237
- P.map(([Te]) => Te)
3238
- ), Z = re.filter((Te) => !Y.has(Te)), fe = P.filter(
3237
+ L.map(([Te]) => Te)
3238
+ ), Z = re.filter((Te) => !Y.has(Te)), fe = L.filter(
3239
3239
  ([Te]) => re.some((Ie) => Ie === Te)
3240
3240
  );
3241
3241
  De(Z, fe);
3242
3242
  },
3243
- [P, De]
3243
+ [L, De]
3244
3244
  ), Ce = T(
3245
3245
  (re) => {
3246
- const Y = P.filter(
3246
+ const Y = L.filter(
3247
3247
  ([Z]) => Z !== re
3248
3248
  );
3249
3249
  G(Y);
3250
3250
  },
3251
- [P, G]
3251
+ [L, G]
3252
3252
  ), He = T(
3253
3253
  (re) => {
3254
3254
  !o && re.code === "Backspace" && W !== void 0 && (re.preventDefault(), re.stopPropagation(), ne([void 0, ""]), ae(""));
@@ -3268,15 +3268,15 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3268
3268
  if (D(!1), re.length !== 0)
3269
3269
  if (o) {
3270
3270
  const Y = new Set(
3271
- P.map(([fe]) => fe)
3271
+ L.map(([fe]) => fe)
3272
3272
  ), Z = re.filter((fe) => !Y.has(fe));
3273
- De(Z, P);
3273
+ De(Z, L);
3274
3274
  } else
3275
3275
  await ge(re[0]);
3276
3276
  },
3277
3277
  [
3278
3278
  o,
3279
- P,
3279
+ L,
3280
3280
  ge,
3281
3281
  De
3282
3282
  ]
@@ -3325,7 +3325,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3325
3325
  [z]
3326
3326
  ), de = T(
3327
3327
  (re) => {
3328
- const { value: Y, closable: Z, onClose: fe } = re, Te = P.find(([$e]) => $e === Y), Ie = (Te == null ? void 0 : Te[1]) || `ID: ${Y}`;
3328
+ const { value: Y, closable: Z, onClose: fe } = re, Te = L.find(([$e]) => $e === Y), Ie = (Te == null ? void 0 : Te[1]) || `ID: ${Y}`;
3329
3329
  return /* @__PURE__ */ H(lp, { children: [
3330
3330
  /* @__PURE__ */ s("span", { children: Ie }),
3331
3331
  Z && !d && /* @__PURE__ */ s(cp, { onClick: ($e) => {
@@ -3333,7 +3333,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3333
3333
  }, children: /* @__PURE__ */ s($n, {}) })
3334
3334
  ] });
3335
3335
  },
3336
- [P, Ce, d]
3336
+ [L, Ce, d]
3337
3337
  );
3338
3338
  return /* @__PURE__ */ H(Re, { children: [
3339
3339
  /* @__PURE__ */ s(ap, { $hideInput: !o && !S && !!W, children: /* @__PURE__ */ H(
@@ -3370,7 +3370,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3370
3370
  ] }) : void 0,
3371
3371
  children: [
3372
3372
  !o && W && z && /* @__PURE__ */ s(yn.Option, { value: W, children: z }, W),
3373
- o && P.map(([re, Y]) => /* @__PURE__ */ s(yn.Option, { value: re, children: Y || `ID: ${re}` }, re))
3373
+ o && L.map(([re, Y]) => /* @__PURE__ */ s(yn.Option, { value: re, children: Y || `ID: ${re}` }, re))
3374
3374
  ]
3375
3375
  }
3376
3376
  ) }),
@@ -3391,7 +3391,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3391
3391
  {
3392
3392
  model: a,
3393
3393
  parentContext: { ...y == null ? void 0 : y(), ...c },
3394
- visible: L,
3394
+ visible: P,
3395
3395
  onSubmitSucceed: Ae,
3396
3396
  onCancel: ze
3397
3397
  }
@@ -3531,7 +3531,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3531
3531
  ] }),
3532
3532
  e.showControls && /* @__PURE__ */ s(ut, { gutter: 8, wrap: !1, justify: "center", className: "pt-5", children: /* @__PURE__ */ H(yt, { children: [
3533
3533
  /* @__PURE__ */ s(
3534
- Lt,
3534
+ Pt,
3535
3535
  {
3536
3536
  tooltip: c("uploadNewImage"),
3537
3537
  icon: /* @__PURE__ */ s(Ws, {}),
@@ -3542,7 +3542,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3542
3542
  }
3543
3543
  ),
3544
3544
  /* @__PURE__ */ s(
3545
- Lt,
3545
+ Pt,
3546
3546
  {
3547
3547
  tooltip: c("download"),
3548
3548
  disabled: !n,
@@ -3551,7 +3551,7 @@ const RS = Object.values(Tt), { defaultAlgorithm: Xm, defaultSeed: Zm } = ot, An
3551
3551
  }
3552
3552
  ),
3553
3553
  /* @__PURE__ */ s(
3554
- Lt,
3554
+ Pt,
3555
3555
  {
3556
3556
  tooltip: c("clear"),
3557
3557
  disabled: o || !n,
@@ -3842,7 +3842,7 @@ const tc = ({
3842
3842
  const D = (M) => {
3843
3843
  const F = jt(M);
3844
3844
  return F && /* @__PURE__ */ s(F, {});
3845
- }, L = w.map((M) => {
3845
+ }, P = w.map((M) => {
3846
3846
  var R, A, N, k;
3847
3847
  const F = {
3848
3848
  children: /* @__PURE__ */ s(
@@ -3861,7 +3861,7 @@ const tc = ({
3861
3861
  return (N = M.values) != null && N[C] && (F.dot = D(M.values[C])), (k = M.values) != null && k[x] && (F.color = !El(M.values[x]) && !Il(M.values[x]) && !M.values[x].toString().startsWith("#") ? Ar(M.values[x]) : M.values[x]), F;
3862
3862
  });
3863
3863
  return /* @__PURE__ */ H(Re, { children: [
3864
- /* @__PURE__ */ s(Za, { style: { padding: "1rem" }, items: L }),
3864
+ /* @__PURE__ */ s(Za, { style: { padding: "1rem" }, items: P }),
3865
3865
  /* @__PURE__ */ s(
3866
3866
  Rn,
3867
3867
  {
@@ -4228,7 +4228,7 @@ const { getValueForOperator: ji } = sl, Ep = (t) => {
4228
4228
  manualIds: m,
4229
4229
  fixedHeight: p,
4230
4230
  showTotal: g
4231
- } = t, [h, y] = E(!1), [v, b] = E(), [C, x] = E(0), [w, _] = E(), [S, I] = E(), [O, D] = E(), [L, M] = E(), [F] = Ne(
4231
+ } = t, [h, y] = E(!1), [v, b] = E(), [C, x] = E(0), [w, _] = E(), [S, I] = E(), [O, D] = E(), [P, M] = E(), [F] = Ne(
4232
4232
  q.getHandler().searchAllIds
4233
4233
  ), [R] = Ne(
4234
4234
  q.getHandler().readObjects
@@ -4249,13 +4249,13 @@ const { getValueForOperator: ji } = sl, Ep = (t) => {
4249
4249
  if ($)
4250
4250
  return await Q({ domain: B });
4251
4251
  if (f && u) {
4252
- const P = m || await F({
4252
+ const L = m || await F({
4253
4253
  params: B,
4254
4254
  model: e,
4255
4255
  context: r
4256
4256
  }), U = await R({
4257
4257
  model: e,
4258
- ids: P,
4258
+ ids: L,
4259
4259
  fieldsToRetrieve: [f],
4260
4260
  context: r
4261
4261
  });
@@ -4276,14 +4276,14 @@ const { getValueForOperator: ji } = sl, Ep = (t) => {
4276
4276
  params: B,
4277
4277
  model: e,
4278
4278
  context: r
4279
- }), P = await R({
4279
+ }), L = await R({
4280
4280
  model: e,
4281
4281
  ids: $,
4282
4282
  fieldsToRetrieve: [f],
4283
4283
  context: r
4284
4284
  });
4285
4285
  return ji({
4286
- values: P.map((U) => U[f]),
4286
+ values: L.map((U) => U[f]),
4287
4287
  operator: u
4288
4288
  });
4289
4289
  } else
@@ -4297,8 +4297,8 @@ const { getValueForOperator: ji } = sl, Ep = (t) => {
4297
4297
  y(!0), M(void 0);
4298
4298
  let B, $;
4299
4299
  try {
4300
- const P = await j({ domain: n, isTotal: !1 });
4301
- if (b(P), i) {
4300
+ const L = await j({ domain: n, isTotal: !1 });
4301
+ if (b(L), i) {
4302
4302
  const U = await N({
4303
4303
  domain: i,
4304
4304
  values: {},
@@ -4309,10 +4309,10 @@ const { getValueForOperator: ji } = sl, Ep = (t) => {
4309
4309
  isTotal: !0
4310
4310
  }), _(B);
4311
4311
  }
4312
- if (B ? ($ = Math.round(P / B * 100 * 100) / 100, x($)) : x(0), o) {
4312
+ if (B ? ($ = Math.round(L / B * 100 * 100) / 100, x($)) : x(0), o) {
4313
4313
  const U = await k({
4314
4314
  condition: o,
4315
- values: { value: P, percent: $ },
4315
+ values: { value: L, percent: $ },
4316
4316
  context: r
4317
4317
  });
4318
4318
  I(U);
@@ -4321,19 +4321,19 @@ const { getValueForOperator: ji } = sl, Ep = (t) => {
4321
4321
  if (c.indexOf(":") !== -1) {
4322
4322
  const U = await k({
4323
4323
  condition: c,
4324
- values: { value: P, percent: $ },
4324
+ values: { value: L, percent: $ },
4325
4325
  context: r
4326
4326
  });
4327
4327
  D(U);
4328
4328
  } else
4329
4329
  D(c);
4330
4330
  M(void 0);
4331
- } catch (P) {
4332
- M(JSON.stringify(P));
4331
+ } catch (L) {
4332
+ M(JSON.stringify(L));
4333
4333
  }
4334
4334
  y(!1);
4335
4335
  }
4336
- return h ? /* @__PURE__ */ s(no, {}) : L ? (console.error(L), /* @__PURE__ */ s(zt, { className: "mt-10", message: L, type: "error", banner: !0 })) : /* @__PURE__ */ s(
4336
+ return h ? /* @__PURE__ */ s(no, {}) : P ? (console.error(P), /* @__PURE__ */ s(zt, { className: "mt-10", message: P, type: "error", banner: !0 })) : /* @__PURE__ */ s(
4337
4337
  lc,
4338
4338
  {
4339
4339
  value: v,
@@ -4687,7 +4687,7 @@ const $p = {
4687
4687
  labelHeight: 28
4688
4688
  }
4689
4689
  }
4690
- }, Lp = (t) => {
4690
+ }, Pp = (t) => {
4691
4691
  const e = t.reduce((c, l) => c + l.value, 0), r = t.map((c) => c.value / e * 100).map(
4692
4692
  (c) => Math.round(c * 100) / 100
4693
4693
  ), o = r.reduce((c, l) => c + l, 0);
@@ -4703,7 +4703,7 @@ const $p = {
4703
4703
  x: c.x,
4704
4704
  percent: d[l]
4705
4705
  }));
4706
- }, { Text: zi } = Zt, Pp = 400, Vp = tt(af), Bp = tt(lf), Hp = tt(cf), jp = {
4706
+ }, { Text: zi } = Zt, Lp = 400, Vp = tt(af), Bp = tt(lf), Hp = tt(cf), jp = {
4707
4707
  line: Vp,
4708
4708
  bar: Bp,
4709
4709
  pie: Hp
@@ -4724,7 +4724,7 @@ const $p = {
4724
4724
  return e.reduce((y, v) => y + v.value, 0);
4725
4725
  }, [e, t]), l = K(() => {
4726
4726
  if (t === "pie")
4727
- return Lp(e);
4727
+ return Pp(e);
4728
4728
  }, [e, t]), f = T(
4729
4729
  (h) => {
4730
4730
  if (!l)
@@ -5055,7 +5055,7 @@ function ti(t) {
5055
5055
  }
5056
5056
  return /* @__PURE__ */ H("div", { style: { display: "flex" }, children: [
5057
5057
  /* @__PURE__ */ s(
5058
- Lt,
5058
+ Pt,
5059
5059
  {
5060
5060
  tooltip: a ? d("viewAs") + " " + d(a.type) : "",
5061
5061
  icon: qi(a),
@@ -5105,7 +5105,7 @@ function Xt(t) {
5105
5105
  ...c
5106
5106
  } = t;
5107
5107
  return /* @__PURE__ */ H(
5108
- Lt,
5108
+ Pt,
5109
5109
  {
5110
5110
  type: d,
5111
5111
  tooltip: o,
@@ -5167,7 +5167,7 @@ function gc(t) {
5167
5167
  }
5168
5168
  ) }),
5169
5169
  /* @__PURE__ */ s(
5170
- Lt,
5170
+ Pt,
5171
5171
  {
5172
5172
  ...n,
5173
5173
  style: { width: 46, zIndex: 0 }
@@ -5300,7 +5300,7 @@ const { useToken: th } = ot, nh = (t) => {
5300
5300
  },
5301
5301
  children: [
5302
5302
  /* @__PURE__ */ s("strong", { children: j.name }),
5303
- /* @__PURE__ */ s(Ln, { style: { color: f.colorPrimary } })
5303
+ /* @__PURE__ */ s(Pn, { style: { color: f.colorPrimary } })
5304
5304
  ]
5305
5305
  }
5306
5306
  ) : j.name
@@ -5323,7 +5323,7 @@ const { useToken: th } = ot, nh = (t) => {
5323
5323
  }
5324
5324
  },
5325
5325
  [i, S, _]
5326
- ), L = T(
5326
+ ), P = T(
5327
5327
  (N) => {
5328
5328
  const k = N.originalData || N;
5329
5329
  if (k != null && k.domain) {
@@ -5371,7 +5371,7 @@ const { useToken: th } = ot, nh = (t) => {
5371
5371
  onToggle: n,
5372
5372
  activeIcon: /* @__PURE__ */ s(dr, {}),
5373
5373
  inactiveIcon: /* @__PURE__ */ s(dr, {}),
5374
- onItemClick: L,
5374
+ onItemClick: P,
5375
5375
  placement: "bottomRight",
5376
5376
  disabled: o,
5377
5377
  header: /* @__PURE__ */ H("div", { style: { width: 300, padding: 5 }, children: [
@@ -5629,7 +5629,7 @@ function Go({ res_id: t, searchParams: e }) {
5629
5629
  style: {
5630
5630
  marginRight: 8
5631
5631
  },
5632
- icon: f ? /* @__PURE__ */ s(Ln, { style: { color: c.colorSuccess } }) : /* @__PURE__ */ s(Jn, { style: { color: c.colorTextSecondary } }),
5632
+ icon: f ? /* @__PURE__ */ s(Pn, { style: { color: c.colorSuccess } }) : /* @__PURE__ */ s(Jn, { style: { color: c.colorTextSecondary } }),
5633
5633
  onClick: () => p(y)
5634
5634
  }
5635
5635
  ),
@@ -5684,7 +5684,7 @@ function dh({
5684
5684
  setPreviousView: I,
5685
5685
  previousView: O,
5686
5686
  results: D,
5687
- limit: L,
5687
+ limit: P,
5688
5688
  totalItems: M,
5689
5689
  isActive: F,
5690
5690
  treeType: R,
@@ -5695,7 +5695,7 @@ function dh({
5695
5695
  kt.FEATURE_ADVANCED_EXPORT
5696
5696
  ), Q = nn(
5697
5697
  kt.FEATURE_SAVED_SEARCHES
5698
- ), { t: V } = Oe(), [B, $] = E(!1), P = X(!0), { showErrorNotification: U } = Ot(), W = T(() => {
5698
+ ), { t: V } = Oe(), [B, $] = E(!1), L = X(!0), { showErrorNotification: U } = Ot(), W = T(() => {
5699
5699
  var le;
5700
5700
  (le = h == null ? void 0 : h.current) == null || le.refreshResults();
5701
5701
  }, [h]), z = T(() => {
@@ -5814,8 +5814,8 @@ function dh({
5814
5814
  );
5815
5815
  ye(() => {
5816
5816
  if (R === "infinite" && _ === void 0) {
5817
- if (P.current) {
5818
- P.current = !1;
5817
+ if (L.current) {
5818
+ L.current = !1;
5819
5819
  return;
5820
5820
  }
5821
5821
  setTimeout(() => {
@@ -5950,8 +5950,8 @@ function dh({
5950
5950
  )
5951
5951
  ] }),
5952
5952
  /* @__PURE__ */ s(Bt, {}),
5953
- /* @__PURE__ */ s(_n, { icon: /* @__PURE__ */ s(Lo, {}), ...ee }),
5954
- /* @__PURE__ */ s(_n, { icon: /* @__PURE__ */ s(Po, {}), ...te }),
5953
+ /* @__PURE__ */ s(_n, { icon: /* @__PURE__ */ s(Po, {}), ...ee }),
5954
+ /* @__PURE__ */ s(_n, { icon: /* @__PURE__ */ s(Lo, {}), ...te }),
5955
5955
  j && /* @__PURE__ */ H(Re, { children: [
5956
5956
  /* @__PURE__ */ s(Bt, {}),
5957
5957
  /* @__PURE__ */ s(
@@ -5985,7 +5985,7 @@ function dh({
5985
5985
  onClose: () => $(!1),
5986
5986
  model: g,
5987
5987
  domain: ie,
5988
- limit: L,
5988
+ limit: P,
5989
5989
  totalRegisters: M || 0,
5990
5990
  selectedRegistersToExport: l,
5991
5991
  visibleRegisters: (D == null ? void 0 : D.length) || 0,
@@ -6498,7 +6498,7 @@ const xh = (t) => /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(Ic,
6498
6498
  },
6499
6499
  title: o("copyToClipboard"),
6500
6500
  children: i === l ? /* @__PURE__ */ s(
6501
- Ln,
6501
+ Pn,
6502
6502
  {
6503
6503
  style: {
6504
6504
  fontSize: r.fontSizeSM,
@@ -6640,7 +6640,7 @@ const xh = (t) => /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(Ic,
6640
6640
  Ke,
6641
6641
  {
6642
6642
  title: i("copyToClipboard"),
6643
- icon: f ? /* @__PURE__ */ s(Ln, { style: { color: o.colorSuccess } }) : /* @__PURE__ */ s(Jn, { style: { color: o.colorTextSecondary } }),
6643
+ icon: f ? /* @__PURE__ */ s(Pn, { style: { color: o.colorSuccess } }) : /* @__PURE__ */ s(Jn, { style: { color: o.colorTextSecondary } }),
6644
6644
  onClick: h,
6645
6645
  style: {
6646
6646
  flexShrink: 0,
@@ -6704,7 +6704,7 @@ const _h = ({
6704
6704
  justifyContent: "center",
6705
6705
  alignContent: "center"
6706
6706
  },
6707
- children: /* @__PURE__ */ s(Pr, { checked: t, disabled: !0 })
6707
+ children: /* @__PURE__ */ s(Lr, { checked: t, disabled: !0 })
6708
6708
  }
6709
6709
  ),
6710
6710
  [t]
@@ -6814,10 +6814,10 @@ const _h = ({
6814
6814
  () => /* @__PURE__ */ s("div", { style: { textAlign: "right" }, children: n ? /* @__PURE__ */ s(Nh, { value: t }) : t }),
6815
6815
  [n, t]
6816
6816
  );
6817
- }, Lh = ({ value: t }) => K(
6817
+ }, Ph = ({ value: t }) => K(
6818
6818
  () => /* @__PURE__ */ s(Zs, { value: t, style: { maxHeight: "30px" } }),
6819
6819
  [t]
6820
- ), Ph = ({
6820
+ ), Lh = ({
6821
6821
  value: t,
6822
6822
  ooui: e
6823
6823
  }) => K(
@@ -6884,7 +6884,7 @@ const _h = ({
6884
6884
  many2many: Ki,
6885
6885
  progressbar: Oh,
6886
6886
  float_time: Dh,
6887
- image: Lh,
6887
+ image: Ph,
6888
6888
  integer: $h,
6889
6889
  float: kh,
6890
6890
  reference: Hh,
@@ -6895,7 +6895,7 @@ const _h = ({
6895
6895
  avatar: jh,
6896
6896
  tags: Uh,
6897
6897
  email: Ah,
6898
- colorPicker: Ph,
6898
+ colorPicker: Lh,
6899
6899
  char: Rh
6900
6900
  };
6901
6901
  function Wh({
@@ -7697,7 +7697,7 @@ function kc(t) {
7697
7697
  return /* @__PURE__ */ s(hg, { layout: "vertical", ooui: e, showLabel: !0 });
7698
7698
  default:
7699
7699
  return /* @__PURE__ */ s(vt, { children: /* @__PURE__ */ s(
7700
- Ll,
7700
+ Pl,
7701
7701
  {
7702
7702
  ooui: e,
7703
7703
  layout: "vertical",
@@ -7971,7 +7971,7 @@ vo.shim = function() {
7971
7971
  Object.keys = vo;
7972
7972
  return Object.keys || vo;
7973
7973
  };
7974
- var Lc = vo, Pc = function() {
7974
+ var Pc = vo, Lc = function() {
7975
7975
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
7976
7976
  return !1;
7977
7977
  if (typeof Symbol.iterator == "symbol")
@@ -7997,9 +7997,9 @@ var Lc = vo, Pc = function() {
7997
7997
  return !1;
7998
7998
  }
7999
7999
  return !0;
8000
- }, Eg = Pc, ci = function() {
8000
+ }, Eg = Lc, ci = function() {
8001
8001
  return Eg() && !!Symbol.toStringTag;
8002
- }, Vc = Object, Ig = Error, Rg = EvalError, Fg = RangeError, Og = ReferenceError, Dg = SyntaxError, Bc = TypeError, Mg = URIError, Ng = Math.abs, kg = Math.floor, $g = Math.max, Lg = Math.min, Pg = Math.pow, Vg = Math.round, Bg = Number.isNaN || function(e) {
8002
+ }, Vc = Object, Ig = Error, Rg = EvalError, Fg = RangeError, Og = ReferenceError, Dg = SyntaxError, Bc = TypeError, Mg = URIError, Ng = Math.abs, kg = Math.floor, $g = Math.max, Pg = Math.min, Lg = Math.pow, Vg = Math.round, Bg = Number.isNaN || function(e) {
8003
8003
  return e !== e;
8004
8004
  }, Hg = Bg, jg = function(e) {
8005
8005
  return Hg(e) || e === 0 ? e : e < 0 ? -1 : 1;
@@ -8022,7 +8022,7 @@ function zg() {
8022
8022
  if (ra)
8023
8023
  return as;
8024
8024
  ra = 1;
8025
- var t = typeof Symbol < "u" && Symbol, e = Pc;
8025
+ var t = typeof Symbol < "u" && Symbol, e = Lc;
8026
8026
  return as = function() {
8027
8027
  return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
8028
8028
  }, as;
@@ -8158,7 +8158,7 @@ function sy() {
8158
8158
  var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = oo;
8159
8159
  return ys = n.call(t, e), ys;
8160
8160
  }
8161
- var st, iy = Vc, ay = Ig, ly = Rg, cy = Fg, dy = Og, Cr = Dg, mr = Bc, uy = Mg, fy = Ng, my = kg, py = $g, hy = Lg, gy = Pg, yy = Vg, vy = jg, Wc = Function, vs = function(t) {
8161
+ var st, iy = Vc, ay = Ig, ly = Rg, cy = Fg, dy = Og, Cr = Dg, mr = Bc, uy = Mg, fy = Ng, my = kg, py = $g, hy = Pg, gy = Lg, yy = Vg, vy = jg, Wc = Function, vs = function(t) {
8162
8162
  try {
8163
8163
  return Wc('"use strict"; return (' + t + ").constructor;")();
8164
8164
  } catch {
@@ -8425,7 +8425,7 @@ var fi = Yc.exports, qc = Qo, Gc = fi, My = Gc(qc("String.prototype.indexOf")),
8425
8425
  return Xo(arguments);
8426
8426
  }();
8427
8427
  Xo.isLegacyArguments = Jc;
8428
- var Ly = $y ? Xo : Jc, Py = Qo, Ds = Py("%Object.defineProperty%", !0), Ms = function() {
8428
+ var Py = $y ? Xo : Jc, Ly = Qo, Ds = Ly("%Object.defineProperty%", !0), Ms = function() {
8429
8429
  if (Ds)
8430
8430
  try {
8431
8431
  return Ds({}, "a", { value: 1 }), !0;
@@ -8468,7 +8468,7 @@ var mi = Ms, Vy = mi(), pi = Qo, ya = Vy && pi("%Object.defineProperty%", !0), B
8468
8468
  e[n] = r;
8469
8469
  else
8470
8470
  throw new By("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
8471
- }, Hy = Lc, jy = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", Uy = Object.prototype.toString, Wy = Array.prototype.concat, ba = Qc, zy = function(t) {
8471
+ }, Hy = Pc, jy = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", Uy = Object.prototype.toString, Wy = Array.prototype.concat, ba = Qc, zy = function(t) {
8472
8472
  return typeof t == "function" && Uy.call(t) === "[object Function]";
8473
8473
  }, Xc = mi(), Yy = function(t, e, n, r) {
8474
8474
  if (e in t) {
@@ -8602,7 +8602,7 @@ var Rv = dd, Fv = Date.prototype.getDay, Ov = function(e) {
8602
8602
  }
8603
8603
  }, Dv = Object.prototype.toString, Mv = "[object Date]", Nv = ci(), kv = function(e) {
8604
8604
  return typeof e != "object" || e === null ? !1 : Nv ? Ov(e) : Dv.call(e) === Mv;
8605
- }, Sa = Lc, Ta = Ly, _a = tv, Aa = sv, Ea = Rv, Ia = kv, Ra = Date.prototype.getTime;
8605
+ }, Sa = Pc, Ta = Py, _a = tv, Aa = sv, Ea = Rv, Ia = kv, Ra = Date.prototype.getTime;
8606
8606
  function ud(t, e, n) {
8607
8607
  var r = n || {};
8608
8608
  return (r.strict ? _a(t, e) : t === e) ? !0 : !t || !e || typeof t != "object" && typeof e != "object" ? r.strict ? _a(t, e) : t == e : $v(t, e, r);
@@ -8652,8 +8652,8 @@ function $v(t, e, n) {
8652
8652
  return !1;
8653
8653
  return !0;
8654
8654
  }
8655
- var Lv = ud;
8656
- const Rr = /* @__PURE__ */ _r(Lv), { Text: Pv } = Zt, Vv = ({
8655
+ var Pv = ud;
8656
+ const Rr = /* @__PURE__ */ _r(Pv), { Text: Lv } = Zt, Vv = ({
8657
8657
  currentModel: t,
8658
8658
  context: e,
8659
8659
  searchParams: n,
@@ -8771,7 +8771,7 @@ const Rr = /* @__PURE__ */ _r(Lv), { Text: Pv } = Zt, Vv = ({
8771
8771
  f,
8772
8772
  u,
8773
8773
  i
8774
- ]), L = T(() => {
8774
+ ]), P = T(() => {
8775
8775
  d && (w(!0), S(m || ""), C(!0));
8776
8776
  }, [d, m]), M = ct(async () => {
8777
8777
  if (!d || !t || !(n != null && n.length))
@@ -8916,7 +8916,7 @@ const Rr = /* @__PURE__ */ _r(Lv), { Text: Pv } = Zt, Vv = ({
8916
8916
  autoFocus: !0
8917
8917
  }
8918
8918
  ) : /* @__PURE__ */ s(
8919
- Pv,
8919
+ Lv,
8920
8920
  {
8921
8921
  style: {
8922
8922
  fontSize: "14px",
@@ -8955,7 +8955,7 @@ const Rr = /* @__PURE__ */ _r(Lv), { Text: Pv } = Zt, Vv = ({
8955
8955
  ), $ = K(
8956
8956
  () => !!(o && !y),
8957
8957
  [o, y]
8958
- ), P = T(() => {
8958
+ ), L = T(() => {
8959
8959
  d && (i == null || i(null), p(""), v(!1));
8960
8960
  }, [d, i]);
8961
8961
  return {
@@ -8968,9 +8968,9 @@ const Rr = /* @__PURE__ */ _r(Lv), { Text: Pv } = Zt, Vv = ({
8968
8968
  setShowSaveModal: C,
8969
8969
  setModalInputValue: S,
8970
8970
  handleSave: D,
8971
- handleSaveAsNew: L,
8971
+ handleSaveAsNew: P,
8972
8972
  handleModalSave: M,
8973
- handleClear: P,
8973
+ handleClear: L,
8974
8974
  renderSavedSearchTitle: j,
8975
8975
  shouldShowSaveButtons: Q,
8976
8976
  shouldShowSingleSaveButton: V,
@@ -9016,13 +9016,13 @@ const Rr = /* @__PURE__ */ _r(Lv), { Text: Pv } = Zt, Vv = ({
9016
9016
  }) => {
9017
9017
  if (!o)
9018
9018
  return;
9019
- const O = o == null ? void 0 : o.rows, D = O == null ? void 0 : O.flatMap((R) => R), L = D == null ? void 0 : D.filter(
9019
+ const O = o == null ? void 0 : o.rows, D = O == null ? void 0 : O.flatMap((R) => R), P = D == null ? void 0 : D.filter(
9020
9020
  (R) => R && R.id !== void 0 && R.label !== void 0
9021
9021
  ), M = Object.keys(c).reduce((R, A) => {
9022
9022
  const N = A.replace(/#.*$/, "");
9023
9023
  return R[N] === void 0 && (R[N] = c[A] !== void 0), R;
9024
- }, {}), F = S ? L.reduce((R, A) => (R[A.id] = M[A.id], R), {}) : M;
9025
- return L.filter((R) => S ? F[R.id] === !0 : !0).sort((R, A) => {
9024
+ }, {}), F = S ? P.reduce((R, A) => (R[A.id] = M[A.id], R), {}) : M;
9025
+ return P.filter((R) => S ? F[R.id] === !0 : !0).sort((R, A) => {
9026
9026
  const N = R, k = A;
9027
9027
  if (S) {
9028
9028
  const j = y.indexOf(N.id), Q = y.indexOf(k.id);
@@ -9093,9 +9093,9 @@ const Rr = /* @__PURE__ */ _r(Lv), { Text: Pv } = Zt, Vv = ({
9093
9093
  }, 150);
9094
9094
  }
9095
9095
  }
9096
- const L = O.filter((M) => !D.includes(M));
9097
- L.length > 0 && v((M) => {
9098
- const F = L.map(
9096
+ const P = O.filter((M) => !D.includes(M));
9097
+ P.length > 0 && v((M) => {
9098
+ const F = P.map(
9099
9099
  (R) => R.replace(/#.*$/, "")
9100
9100
  );
9101
9101
  return M.filter((R) => !F.includes(R));
@@ -9268,7 +9268,7 @@ const hi = (t) => {
9268
9268
  }, [n, h]);
9269
9269
  const {
9270
9270
  savedSearchName: D,
9271
- hasChanges: L,
9271
+ hasChanges: P,
9272
9272
  showSaveModal: M,
9273
9273
  isModalSaveAsNew: F,
9274
9274
  modalInputValue: R,
@@ -9280,7 +9280,7 @@ const hi = (t) => {
9280
9280
  handleClear: V,
9281
9281
  renderSavedSearchTitle: B,
9282
9282
  shouldShowSaveButtons: $,
9283
- shouldShowSingleSaveButton: P,
9283
+ shouldShowSingleSaveButton: L,
9284
9284
  shouldShowSaveButtonGroup: U,
9285
9285
  shouldShowSaveAsNew: W
9286
9286
  } = Vv({
@@ -9429,9 +9429,9 @@ const hi = (t) => {
9429
9429
  ) : null, [
9430
9430
  $,
9431
9431
  U,
9432
- P,
9433
- W,
9434
9432
  L,
9433
+ W,
9434
+ P,
9435
9435
  u,
9436
9436
  k,
9437
9437
  j
@@ -9662,7 +9662,7 @@ function Zo(t) {
9662
9662
  _
9663
9663
  );
9664
9664
  o({ params: A, offset: R, limit: F, searchValues: M });
9665
- }, L = T(() => {
9665
+ }, P = T(() => {
9666
9666
  if (!g || !y)
9667
9667
  return !1;
9668
9668
  const M = g.rows.reduce(
@@ -9697,7 +9697,7 @@ function Zo(t) {
9697
9697
  /* @__PURE__ */ s(
9698
9698
  Hv,
9699
9699
  {
9700
- hideAdvancedFilter: (L() || (y == null ? void 0 : y._rows.length) === 0) && !p,
9700
+ hideAdvancedFilter: (P() || (y == null ? void 0 : y._rows.length) === 0) && !p,
9701
9701
  advancedFilter: b,
9702
9702
  onAdvancedFilterToggle: () => {
9703
9703
  C(!b);
@@ -9728,7 +9728,7 @@ function Zo(t) {
9728
9728
  function gi({
9729
9729
  useLocalState: t = !1
9730
9730
  }) {
9731
- const e = gb() && !t, n = Gt(), [r, o] = E(!1), [i, a] = E(!1), [d, c] = E([]), [l, f] = E(0), [u, m] = E(void 0), [p, g] = E([]), [h, y] = E({}), [v, b] = E(), [C, x] = E([]), [w, _] = E(), [S, I] = E(0), [O, D] = E(), [L, M] = E(1), [F, R] = E(qn), [A, N] = E(Jt);
9731
+ const e = gb() && !t, n = Gt(), [r, o] = E(!1), [i, a] = E(!1), [d, c] = E([]), [l, f] = E(0), [u, m] = E(void 0), [p, g] = E([]), [h, y] = E({}), [v, b] = E(), [C, x] = E([]), [w, _] = E(), [S, I] = E(0), [O, D] = E(), [P, M] = E(1), [F, R] = E(qn), [A, N] = E(Jt);
9732
9732
  return e ? {
9733
9733
  treeIsLoading: n.viewIsLoading ?? !1,
9734
9734
  setTreeIsLoading: n.setViewIsLoading ?? (() => {
@@ -9804,7 +9804,7 @@ function gi({
9804
9804
  isActive: void 0,
9805
9805
  order: O,
9806
9806
  setOrder: D,
9807
- currentPage: L,
9807
+ currentPage: P,
9808
9808
  setCurrentPage: M,
9809
9809
  treeType: F,
9810
9810
  setTreeType: R,
@@ -9847,45 +9847,45 @@ const Fr = () => {
9847
9847
  context: r,
9848
9848
  fields: h
9849
9849
  })
9850
- ), [D, L] = Ne(
9850
+ ), [D, P] = Ne(
9851
9851
  q.getHandler().parseConditions
9852
9852
  ), M = Fr();
9853
9853
  ye(() => {
9854
9854
  o === !1 && Q(), (o === void 0 || o === !0) && !M && Q(), (o === void 0 || o === !0) && M && V();
9855
9855
  }, [o, M]), ye(() => () => {
9856
- O(), L(), w.current && (clearInterval(w.current), w.current = null), C.current.clear(), x.current = [], g.current = [];
9857
- }, []), ye(() => (o || (O(), L(), C.current.clear()), () => {
9858
- O(), L();
9859
- }), [o, O, L]), ye(() => {
9856
+ O(), P(), w.current && (clearInterval(w.current), w.current = null), C.current.clear(), x.current = [], g.current = [];
9857
+ }, []), ye(() => (o || (O(), P(), C.current.clear()), () => {
9858
+ O(), P();
9859
+ }), [o, O, P]), ye(() => {
9860
9860
  if (!h) {
9861
9861
  p(!1), g.current = [];
9862
9862
  return;
9863
9863
  }
9864
- const $ = Object.entries(h).filter(([P, U]) => U.is_function === !0).map(([P]) => P);
9864
+ const $ = Object.entries(h).filter(([L, U]) => U.is_function === !0).map(([L]) => L);
9865
9865
  p($.length > 0), g.current = $;
9866
9866
  }, [h]);
9867
9867
  const F = T(() => {
9868
9868
  var U, W;
9869
9869
  if (!e)
9870
9870
  return !1;
9871
- const $ = ((U = e.fields_in_conditions) == null ? void 0 : U.colors) || [], P = ((W = e.fields_in_conditions) == null ? void 0 : W.status) || [];
9872
- return $.some((z) => g.current.includes(z)) || P.some((z) => g.current.includes(z));
9871
+ const $ = ((U = e.fields_in_conditions) == null ? void 0 : U.colors) || [], L = ((W = e.fields_in_conditions) == null ? void 0 : W.status) || [];
9872
+ return $.some((z) => g.current.includes(z)) || L.some((z) => g.current.includes(z));
9873
9873
  }, [e]), R = T(async () => {
9874
9874
  if (!m || v.size === 0 || !o || !g.current.length || !a)
9875
9875
  return;
9876
9876
  const $ = Array.from(v).filter(
9877
- (P) => P > 0 && // Skip negative/temporal IDs
9878
- !C.current.has(P) && !x.current.find((U) => U.id === P)
9877
+ (L) => L > 0 && // Skip negative/temporal IDs
9878
+ !C.current.has(L) && !x.current.find((U) => U.id === L)
9879
9879
  );
9880
9880
  if ($.length !== 0)
9881
9881
  try {
9882
9882
  $.forEach((z) => C.current.add(z));
9883
- const { results: P } = await I({
9883
+ const { results: L } = await I({
9884
9884
  searchIds: $,
9885
9885
  fieldsToRetrieve: g.current
9886
9886
  }), U = await cn(
9887
9887
  a,
9888
- P,
9888
+ L,
9889
9889
  r,
9890
9890
  u
9891
9891
  ), W = [...x.current];
@@ -9895,8 +9895,8 @@ const Fr = () => {
9895
9895
  );
9896
9896
  ee >= 0 ? W[ee] = z : W.push(z), C.current.delete(z.id);
9897
9897
  }), x.current = W;
9898
- } catch (P) {
9899
- $.forEach((U) => C.current.delete(U)), P.name !== "AbortError" && console.error("Error updating function fields:", P);
9898
+ } catch (L) {
9899
+ $.forEach((U) => C.current.delete(U)), L.name !== "AbortError" && console.error("Error updating function fields:", L);
9900
9900
  }
9901
9901
  }, [
9902
9902
  m,
@@ -9913,12 +9913,12 @@ const Fr = () => {
9913
9913
  ($) => {
9914
9914
  if (!$ || $.length === 0)
9915
9915
  return;
9916
- const P = $.filter((W) => W > 0);
9917
- if (P.length === 0)
9916
+ const L = $.filter((W) => W > 0);
9917
+ if (L.length === 0)
9918
9918
  return;
9919
9919
  b((W) => {
9920
9920
  const z = new Set(W);
9921
- return P.forEach((ee) => z.add(ee)), z;
9921
+ return L.forEach((ee) => z.add(ee)), z;
9922
9922
  }), g.current.length > 0 && o && a && setTimeout(() => {
9923
9923
  R();
9924
9924
  }, 100);
@@ -9931,13 +9931,13 @@ const Fr = () => {
9931
9931
  (z) => $.some((ee) => ee[z] !== void 0)
9932
9932
  ) || !F() || !a || !d)
9933
9933
  return;
9934
- const P = $.map((z) => ({ ...c == null ? void 0 : c.find((te) => te.id === z.id), ...z })), U = zr({
9934
+ const L = $.map((z) => ({ ...c == null ? void 0 : c.find((te) => te.id === z.id), ...z })), U = zr({
9935
9935
  treeOoui: a
9936
9936
  });
9937
9937
  try {
9938
9938
  const z = await D({
9939
9939
  conditions: U,
9940
- values: P,
9940
+ values: L,
9941
9941
  context: r
9942
9942
  });
9943
9943
  d(z, a), (W = n == null ? void 0 : n.current) == null || W.refreshRowStyles();
@@ -9960,7 +9960,7 @@ const Fr = () => {
9960
9960
  const $ = ((U = n == null ? void 0 : n.current) == null ? void 0 : U.getVisibleRows()) || [];
9961
9961
  if ($.length === 0 || x.current.length === 0)
9962
9962
  return;
9963
- const P = x.current.filter((z) => {
9963
+ const L = x.current.filter((z) => {
9964
9964
  const ee = $.find(
9965
9965
  (we) => (we == null ? void 0 : we.id) === (z == null ? void 0 : z.id)
9966
9966
  );
@@ -9968,9 +9968,9 @@ const Fr = () => {
9968
9968
  (we) => z[we] !== ee[we]
9969
9969
  ) : !1;
9970
9970
  }).filter(Boolean);
9971
- P.length > 0 && (N(P), (W = n == null ? void 0 : n.current) == null || W.updateRows(P));
9971
+ L.length > 0 && (N(L), (W = n == null ? void 0 : n.current) == null || W.updateRows(L));
9972
9972
  }, [n, N]), j = T(
9973
- ($, P) => f || !g.current.includes(P) ? !1 : C.current.has($ == null ? void 0 : $.id) ? !0 : !x.current.find((U) => U.id === ($ == null ? void 0 : $.id)),
9973
+ ($, L) => f || !g.current.includes(L) ? !1 : C.current.has($ == null ? void 0 : $.id) ? !0 : !x.current.find((U) => U.id === ($ == null ? void 0 : $.id)),
9974
9974
  [f]
9975
9975
  );
9976
9976
  Je(() => (m && _ && (k(), w.current = setInterval(
@@ -9980,27 +9980,27 @@ const Fr = () => {
9980
9980
  w.current && (clearInterval(w.current), w.current = null);
9981
9981
  }), [m, _, k, c]);
9982
9982
  const Q = T(() => {
9983
- S(!1), w.current && (clearInterval(w.current), w.current = null), O(), L(), C.current.clear();
9984
- }, [O, L]), V = T(() => {
9983
+ S(!1), w.current && (clearInterval(w.current), w.current = null), O(), P(), C.current.clear();
9984
+ }, [O, P]), V = T(() => {
9985
9985
  y && S(!0);
9986
9986
  }, [y]), B = T(($) => {
9987
9987
  if (!$ || $.length === 0)
9988
9988
  return;
9989
- const P = [...x.current];
9989
+ const L = [...x.current];
9990
9990
  $.forEach((U) => {
9991
- const W = P.findIndex(
9991
+ const W = L.findIndex(
9992
9992
  (z) => z.id === U.id
9993
9993
  );
9994
9994
  if (W >= 0) {
9995
- const z = { ...P[W] };
9995
+ const z = { ...L[W] };
9996
9996
  g.current.forEach((ee) => {
9997
9997
  U[ee] !== void 0 && (z[ee] = U[ee]);
9998
- }), P[W] = z;
9998
+ }), L[W] = z;
9999
9999
  } else
10000
10000
  g.current.some(
10001
10001
  (ee) => U[ee] !== void 0
10002
- ) && P.push(U);
10003
- }), x.current = P;
10002
+ ) && L.push(U);
10003
+ }), x.current = L;
10004
10004
  }, []);
10005
10005
  return ye(() => {
10006
10006
  l && l(B);
@@ -10041,7 +10041,7 @@ const Fr = () => {
10041
10041
  [o]
10042
10042
  );
10043
10043
  ye(() => {
10044
- i === !1 && D(), (i === void 0 || i === !0) && !w && D(), (i === void 0 || i === !0) && w && L();
10044
+ i === !1 && D(), (i === void 0 || i === !0) && !w && D(), (i === void 0 || i === !0) && w && P();
10045
10045
  }, [i, w]);
10046
10046
  const I = T(() => {
10047
10047
  var A, N;
@@ -10075,7 +10075,7 @@ const Fr = () => {
10075
10075
  const Q = zr({
10076
10076
  treeOoui: a
10077
10077
  }), V = j.map((B) => ({ ...l == null ? void 0 : l.find(
10078
- (P) => P.id === B.id
10078
+ (L) => L.id === B.id
10079
10079
  ), ...B }));
10080
10080
  try {
10081
10081
  const B = await C({
@@ -10125,7 +10125,7 @@ const Fr = () => {
10125
10125
  ]);
10126
10126
  const D = T(() => {
10127
10127
  y(!1), g.current && (clearInterval(g.current), g.current = null), b(), x();
10128
- }, [b, x]), L = T(() => {
10128
+ }, [b, x]), P = T(() => {
10129
10129
  y(!0);
10130
10130
  }, []);
10131
10131
  ye(() => () => {
@@ -10134,7 +10134,7 @@ const Fr = () => {
10134
10134
  const M = T(() => {
10135
10135
  _.current = {};
10136
10136
  }, []);
10137
- return { pause: D, resume: L, clear: M };
10137
+ return { pause: D, resume: P, clear: M };
10138
10138
  }, yi = ({
10139
10139
  model: t,
10140
10140
  treeView: e,
@@ -10339,7 +10339,7 @@ function Xv(t, e) {
10339
10339
  It(
10340
10340
  Tt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
10341
10341
  );
10342
- const C = X([]), x = X(!1), { showErrorNotification: w } = Ot(), { setCurrentSavedSearch: _ } = Gt(), [S, I] = E(), [O, D] = E(!1), L = X(), M = X(null), F = oi({
10342
+ const C = X([]), x = X(!1), { showErrorNotification: w } = Ot(), { setCurrentSavedSearch: _ } = Gt(), [S, I] = E(), [O, D] = E(!1), P = X(), M = X(null), F = oi({
10343
10343
  elementRef: M,
10344
10344
  offset: Jv
10345
10345
  }), R = y !== void 0 ? y : F, [A, N] = Ne(
@@ -10352,7 +10352,7 @@ function Xv(t, e) {
10352
10352
  ye(() => () => {
10353
10353
  N(), j(), V();
10354
10354
  }, []);
10355
- const { treeView: B, formView: $, loading: P } = ri({
10355
+ const { treeView: B, formView: $, loading: L } = ri({
10356
10356
  model: n,
10357
10357
  formViewProps: r,
10358
10358
  treeViewProps: o,
@@ -10380,10 +10380,10 @@ function Xv(t, e) {
10380
10380
  setOrder: Ue
10381
10381
  } = gi({ useLocalState: !c }), ve = u || G, Ce = X(ve), He = X(!1), Ve = X(), Ge = X(), Fe = X(!1), Be = X(ve), We = X(!1);
10382
10382
  ye(() => {
10383
- L.current !== void 0 && L.current !== S && (te == null || te(0), setTimeout(() => {
10383
+ P.current !== void 0 && P.current !== S && (te == null || te(0), setTimeout(() => {
10384
10384
  var nt;
10385
10385
  (nt = b.current) == null || nt.scrollToTop();
10386
- }, 0)), L.current = S, Be.current = ve;
10386
+ }, 0)), P.current = S, Be.current = ve;
10387
10387
  }, [S]), ye(() => {
10388
10388
  var $t, Ft, hn, tr;
10389
10389
  const nt = ve && ve.trim().length > 0, lt = Ce.current && typeof Ce.current == "string" && Ce.current.trim().length > 0;
@@ -10420,7 +10420,7 @@ function Xv(t, e) {
10420
10420
  refreshFunctionFields: ke,
10421
10421
  clearAutorefreshableFields: $e,
10422
10422
  addRecordsToCheckFunctionFields: Qe,
10423
- onHasFunctionFieldsToParseConditions: Le,
10423
+ onHasFunctionFieldsToParseConditions: Pe,
10424
10424
  shouldMakeDeferredFunctionRead: Rt
10425
10425
  } = yi({
10426
10426
  model: n,
@@ -10449,18 +10449,18 @@ function Xv(t, e) {
10449
10449
  }
10450
10450
  )
10451
10451
  }));
10452
- }, [ze, Ie, ve]), Pt = K(
10452
+ }, [ze, Ie, ve]), Lt = K(
10453
10453
  () => wn(oe || [], a),
10454
10454
  [a, oe]
10455
10455
  ), gt = T(() => {
10456
- const lt = `${JSON.stringify(ve ? a : Pt)}-${ve}`;
10456
+ const lt = `${JSON.stringify(ve ? a : Lt)}-${ve}`;
10457
10457
  return lt !== Ve.current ? (Ve.current = lt, !0) : !1;
10458
- }, [a, Pt, ve]), Qt = T(async () => {
10458
+ }, [a, Lt, ve]), Qt = T(async () => {
10459
10459
  if (!ve && !Fe.current) {
10460
10460
  Fe.current = !0;
10461
10461
  try {
10462
10462
  const nt = await A({
10463
- params: ve ? a : Pt,
10463
+ params: ve ? a : Lt,
10464
10464
  model: n,
10465
10465
  context: l,
10466
10466
  name_search: ve
@@ -10474,7 +10474,7 @@ function Xv(t, e) {
10474
10474
  }
10475
10475
  }, [
10476
10476
  a,
10477
- Pt,
10477
+ Lt,
10478
10478
  n,
10479
10479
  ve,
10480
10480
  l,
@@ -10506,9 +10506,9 @@ function Xv(t, e) {
10506
10506
  Ue == null || Ue(fo), Ft = Wr(Dr);
10507
10507
  }
10508
10508
  x.current = !0;
10509
- const hn = ve ? a : Pt, tr = zr({
10509
+ const hn = ve ? a : Lt, tr = zr({
10510
10510
  treeOoui: Ae,
10511
- hasFunctionFieldsToParseConditions: Rt && Le()
10511
+ hasFunctionFieldsToParseConditions: Rt && Pe()
10512
10512
  }), { results: On, attrsEvaluated: nr } = await k({
10513
10513
  params: hn,
10514
10514
  limit: lt - nt,
@@ -10552,11 +10552,11 @@ function Xv(t, e) {
10552
10552
  De,
10553
10553
  Qe,
10554
10554
  a,
10555
- Pt,
10555
+ Lt,
10556
10556
  n,
10557
10557
  gt,
10558
10558
  ve,
10559
- Le,
10559
+ Pe,
10560
10560
  l,
10561
10561
  k,
10562
10562
  ae,
@@ -10570,7 +10570,7 @@ function Xv(t, e) {
10570
10570
  Rt
10571
10571
  ]
10572
10572
  ), dn = T(async () => ve ? C.current : S ? (await Q({
10573
- params: ve ? a : Pt,
10573
+ params: ve ? a : Lt,
10574
10574
  model: n,
10575
10575
  context: l,
10576
10576
  totalItems: S
@@ -10579,7 +10579,7 @@ function Xv(t, e) {
10579
10579
  S,
10580
10580
  Q,
10581
10581
  a,
10582
- Pt,
10582
+ Lt,
10583
10583
  n,
10584
10584
  l
10585
10585
  ]), {
@@ -10823,7 +10823,7 @@ function Xv(t, e) {
10823
10823
  )
10824
10824
  }
10825
10825
  ),
10826
- /* @__PURE__ */ s("div", { ref: M, style: At, children: P || Z ? /* @__PURE__ */ s(dt, {}) : qe })
10826
+ /* @__PURE__ */ s("div", { ref: M, style: At, children: L || Z ? /* @__PURE__ */ s(dt, {}) : qe })
10827
10827
  ] });
10828
10828
  }
10829
10829
  const bi = qt(Xv), Na = (t, e = "14px -apple-system") => {
@@ -10890,10 +10890,10 @@ const bi = qt(Xv), Na = (t, e = "14px -apple-system") => {
10890
10890
  var ka = Object.prototype.hasOwnProperty;
10891
10891
  function $a(t, e, n) {
10892
10892
  for (n of t.keys())
10893
- if (Lr(n, e))
10893
+ if (Pr(n, e))
10894
10894
  return n;
10895
10895
  }
10896
- function Lr(t, e) {
10896
+ function Pr(t, e) {
10897
10897
  var n, r, o;
10898
10898
  if (t === e)
10899
10899
  return !0;
@@ -10904,7 +10904,7 @@ function Lr(t, e) {
10904
10904
  return t.toString() === e.toString();
10905
10905
  if (n === Array) {
10906
10906
  if ((r = t.length) === e.length)
10907
- for (; r-- && Lr(t[r], e[r]); )
10907
+ for (; r-- && Pr(t[r], e[r]); )
10908
10908
  ;
10909
10909
  return r === -1;
10910
10910
  }
@@ -10920,7 +10920,7 @@ function Lr(t, e) {
10920
10920
  if (t.size !== e.size)
10921
10921
  return !1;
10922
10922
  for (r of t)
10923
- if (o = r[0], o && typeof o == "object" && (o = $a(e, o), !o) || !Lr(r[1], e.get(o)))
10923
+ if (o = r[0], o && typeof o == "object" && (o = $a(e, o), !o) || !Pr(r[1], e.get(o)))
10924
10924
  return !1;
10925
10925
  return !0;
10926
10926
  }
@@ -10941,7 +10941,7 @@ function Lr(t, e) {
10941
10941
  if (!n || typeof t == "object") {
10942
10942
  r = 0;
10943
10943
  for (n in t)
10944
- if (ka.call(t, n) && ++r && !ka.call(e, n) || !(n in e) || !Lr(t[n], e[n]))
10944
+ if (ka.call(t, n) && ++r && !ka.call(e, n) || !(n in e) || !Pr(t[n], e[n]))
10945
10945
  return !1;
10946
10946
  return Object.keys(e).length === r;
10947
10947
  }
@@ -10996,7 +10996,7 @@ const yd = qt(
10996
10996
  context: w,
10997
10997
  readonly: _,
10998
10998
  onSelectAllRecords: S
10999
- } = t, I = X(null), [O, D] = E([]), L = X([]), M = X(!1), [F, R] = E(), { t: A } = Oe(), N = X(r), k = Me(
10999
+ } = t, I = X(null), [O, D] = E([]), P = X([]), M = X(!1), [F, R] = E(), { t: A } = Oe(), N = X(r), k = Me(
11000
11000
  en
11001
11001
  ), { title: j = void 0, setTitle: Q = void 0 } = (x ? k : {}) || {}, V = nn(
11002
11002
  kt.FEATURE_MANY2ONE_SORT
@@ -11022,9 +11022,9 @@ const yd = qt(
11022
11022
  const ie = vn(i);
11023
11023
  R(ie), ie.string && j !== ie.string && (Q == null || Q(ie.string));
11024
11024
  }, [i, j]), ye(() => {
11025
- if (!!Lr(L.current, a) || !F)
11025
+ if (!!Pr(P.current, a) || !F)
11026
11026
  return;
11027
- L.current = [...a], M.current = !1, (async () => {
11027
+ P.current = [...a], M.current = !1, (async () => {
11028
11028
  const oe = await cn(
11029
11029
  F,
11030
11030
  a,
@@ -11035,7 +11035,7 @@ const yd = qt(
11035
11035
  }, [a, F, w]), ye(() => {
11036
11036
  N.current = r;
11037
11037
  }, [r]);
11038
- const P = (n - 1) * N.current + 1, U = P - 1 + O.length, W = o === void 0 ? null : o === 0 ? A("no_results") : A("summary").replace("{from}", P == null ? void 0 : P.toString()).replace("{to}", U == null ? void 0 : U.toString()).replace("{total}", o == null ? void 0 : o.toString()), z = K(() => {
11038
+ const L = (n - 1) * N.current + 1, U = L - 1 + O.length, W = o === void 0 ? null : o === 0 ? A("no_results") : A("summary").replace("{from}", L == null ? void 0 : L.toString()).replace("{to}", U == null ? void 0 : U.toString()).replace("{total}", o == null ? void 0 : o.toString()), z = K(() => {
11039
11039
  if (!f || i.isExpandable)
11040
11040
  return null;
11041
11041
  const ie = O == null ? void 0 : O.filter(
@@ -11171,9 +11171,9 @@ const vd = (t) => {
11171
11171
  clearSelection: I
11172
11172
  } = t, O = It(
11173
11173
  Tt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
11174
- ), [D, L] = E(!1), [M, F] = E(!1), [R, A] = E(), [N, k] = E(1), [j, Q] = E(0), [V, B] = E(), [$, P] = E([]), [U, W] = E(void 0), [z, ee] = E(void 0), te = X(x || Jt), we = X([]), ue = T(
11174
+ ), [D, P] = E(!1), [M, F] = E(!1), [R, A] = E(), [N, k] = E(1), [j, Q] = E(0), [V, B] = E(), [$, L] = E([]), [U, W] = E(void 0), [z, ee] = E(void 0), te = X(x || Jt), we = X([]), ue = T(
11175
11175
  (ge) => {
11176
- y == null || y([...ge]), P([...ge]);
11176
+ y == null || y([...ge]), L([...ge]);
11177
11177
  },
11178
11178
  [y]
11179
11179
  ), ie = v || $, ce = T(async () => {
@@ -11204,7 +11204,7 @@ const vd = (t) => {
11204
11204
  ue(Fe), Ge.length > 0 ? h == null || h(0) : h == null || h(void 0);
11205
11205
  } else
11206
11206
  ue([]), h == null || h(void 0);
11207
- L(!1), c.current = !0;
11207
+ P(!1), c.current = !0;
11208
11208
  }, [
11209
11209
  ue,
11210
11210
  c,
@@ -11243,7 +11243,7 @@ const vd = (t) => {
11243
11243
  ze === -1 ? h == null || h(0) : h == null || h(ze);
11244
11244
  } else
11245
11245
  h == null || h(void 0);
11246
- L(!1);
11246
+ P(!1);
11247
11247
  const Ae = await Ge();
11248
11248
  B(Ae), f == null || f(Ae);
11249
11249
  },
@@ -11265,9 +11265,9 @@ const vd = (t) => {
11265
11265
  ), ne = T(
11266
11266
  async (ge) => {
11267
11267
  try {
11268
- L(!0), a == null || a(!0), d && !c.current ? await ce() : await oe(ge), I == null || I();
11268
+ P(!0), a == null || a(!0), d && !c.current ? await ce() : await oe(ge), I == null || I();
11269
11269
  } catch (De) {
11270
- A(typeof De == "string" ? De : De.message), L(!1);
11270
+ A(typeof De == "string" ? De : De.message), P(!1);
11271
11271
  } finally {
11272
11272
  r == null || r([]), F(!1), a == null || a(!1);
11273
11273
  }
@@ -11321,9 +11321,9 @@ const vd = (t) => {
11321
11321
  ]
11322
11322
  ), ae = T(
11323
11323
  (ge) => {
11324
- L(!0), k(ge), Q((ge - 1) * x);
11324
+ P(!0), k(ge), Q((ge - 1) * x);
11325
11325
  },
11326
- [L, x, Q, k]
11326
+ [P, x, Q, k]
11327
11327
  ), se = T(() => {
11328
11328
  D || (n == null || n(void 0), o == null || o([]), S == null || S({}), A(void 0), Q(0), k(1), w == null || w(x || Jt));
11329
11329
  }, [
@@ -11389,7 +11389,7 @@ function rb(t, e) {
11389
11389
  rootTree: f = !1,
11390
11390
  parentContext: u = {},
11391
11391
  onChangeSelectedRowKeys: m
11392
- } = t, [p, g] = E(!1), [h, y] = E(!1), v = X(!1), b = X(null), [C, x] = E(), [w, _] = E(), [S, I] = E(), [O, D] = E(), [L, M] = E(200), F = X(), { height: R } = zo(), A = Me(
11392
+ } = t, [p, g] = E(!1), [h, y] = E(!1), v = X(!1), b = X(null), [C, x] = E(), [w, _] = E(), [S, I] = E(), [O, D] = E(), [P, M] = E(200), F = X(), { height: R } = zo(), A = Me(
11393
11393
  In
11394
11394
  ), { processAction: N } = A || {}, k = Me(
11395
11395
  en
@@ -11399,7 +11399,7 @@ function rb(t, e) {
11399
11399
  currentId: V = void 0,
11400
11400
  results: B = void 0,
11401
11401
  selectedRowItems: $ = void 0,
11402
- setSelectedRowItems: P = void 0,
11402
+ setSelectedRowItems: L = void 0,
11403
11403
  searchParams: U = [],
11404
11404
  setSearchParams: W = void 0,
11405
11405
  searchVisible: z = !0,
@@ -11415,9 +11415,9 @@ function rb(t, e) {
11415
11415
  setLimit: pe = void 0
11416
11416
  } = (f ? k : {}) || {}, { showErrorNotification: ae } = Ot(), se = T(
11417
11417
  ($e) => {
11418
- P == null || P($e.map((Qe) => ({ id: Qe }))), m == null || m($e);
11418
+ L == null || L($e.map((Qe) => ({ id: Qe }))), m == null || m($e);
11419
11419
  },
11420
- [m, P]
11420
+ [m, L]
11421
11421
  ), {
11422
11422
  submit: le,
11423
11423
  clear: Ee,
@@ -11510,9 +11510,9 @@ function rb(t, e) {
11510
11510
  model: C,
11511
11511
  context: u
11512
11512
  }));
11513
- const Le = F.current[0][2];
11513
+ const Pe = F.current[0][2];
11514
11514
  await (N == null ? void 0 : N({
11515
- actionData: Le,
11515
+ actionData: Pe,
11516
11516
  fields: w.fields,
11517
11517
  values: {
11518
11518
  active_id: Qe,
@@ -11530,8 +11530,8 @@ function rb(t, e) {
11530
11530
  if (w != null && w.isExpandable) {
11531
11531
  try {
11532
11532
  await Se($e);
11533
- } catch (Le) {
11534
- ae(Le);
11533
+ } catch (Pe) {
11534
+ ae(Pe);
11535
11535
  }
11536
11536
  return;
11537
11537
  }
@@ -11552,8 +11552,8 @@ function rb(t, e) {
11552
11552
  ]
11553
11553
  ), Y = T(async () => {
11554
11554
  const $e = await he();
11555
- P == null || P($e.map((Qe) => ({ id: Qe }))), m == null || m($e);
11556
- }, [he, m, P]), Z = K(() => w != null && w.isExpandable ? R - 160 : R - (L + 240), [R, L, w == null ? void 0 : w.isExpandable]), fe = K(
11555
+ L == null || L($e.map((Qe) => ({ id: Qe }))), m == null || m($e);
11556
+ }, [he, m, L]), Z = K(() => w != null && w.isExpandable ? R - 160 : R - (P + 240), [R, P, w == null ? void 0 : w.isExpandable]), fe = K(
11557
11557
  () => $ == null ? void 0 : $.map(($e) => $e.id),
11558
11558
  [$]
11559
11559
  ), Te = T(() => !w || !S ? null : /* @__PURE__ */ H(Re, { children: [
@@ -11666,7 +11666,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
11666
11666
  treeFirstVisibleRow: I,
11667
11667
  treeFirstVisibleColumn: O,
11668
11668
  setTreeFirstVisibleColumn: D,
11669
- selectedRowItems: L,
11669
+ selectedRowItems: P,
11670
11670
  setSearchParams: M,
11671
11671
  searchValues: F,
11672
11672
  searchParams: R,
@@ -11678,7 +11678,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
11678
11678
  setSearchQuery: V,
11679
11679
  setTotalItems: B,
11680
11680
  isActive: $,
11681
- currentPage: P,
11681
+ currentPage: L,
11682
11682
  setCurrentPage: U,
11683
11683
  order: W,
11684
11684
  setOrder: z,
@@ -11723,7 +11723,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
11723
11723
  ), Te = K(
11724
11724
  () => wn(R || [], c),
11725
11725
  [c, R]
11726
- ), Ie = K(() => (L == null ? void 0 : L.map((qe) => qe.id)) || [], [L]), ke = T(() => {
11726
+ ), Ie = K(() => (P == null ? void 0 : P.map((qe) => qe.id)) || [], [P]), ke = T(() => {
11727
11727
  const rt = `${JSON.stringify(ge ? c : Te)}-${ge}`;
11728
11728
  return rt !== Ce.current ? (Ce.current = rt, !0) : !1;
11729
11729
  }, [c, Te, ge]), $e = T(async () => {
@@ -11750,7 +11750,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
11750
11750
  o,
11751
11751
  l,
11752
11752
  de
11753
- ]), Qe = T(() => I, [I]), Le = T(() => O, [O]), Rt = T((qe) => {
11753
+ ]), Qe = T(() => I, [I]), Pe = T(() => O, [O]), Rt = T((qe) => {
11754
11754
  var rt, mt, pt, At, sn;
11755
11755
  return (pt = g == null ? void 0 : g.current) != null && pt[(mt = (rt = qe.node) == null ? void 0 : rt.data) == null ? void 0 : mt.id] ? { color: g.current[(sn = (At = qe.node) == null ? void 0 : At.data) == null ? void 0 : sn.id] } : {};
11756
11756
  }, []), Ye = T(
@@ -11769,7 +11769,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
11769
11769
  k,
11770
11770
  M,
11771
11771
  A
11772
- ]), Pt = T(
11772
+ ]), Lt = T(
11773
11773
  ({ params: qe, searchValues: rt }) => {
11774
11774
  var mt;
11775
11775
  _([]), (mt = d.current) == null || mt.unselectAll(), k == null || k(void 0), M == null || M(qe), A == null || A(rt);
@@ -11807,7 +11807,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
11807
11807
  const { results: pt, attrsEvaluated: At } = await re({
11808
11808
  params: rt,
11809
11809
  limit: ce,
11810
- offset: y ? 0 : ((P || 1) - 1) * ce,
11810
+ offset: y ? 0 : ((L || 1) - 1) * ce,
11811
11811
  model: o,
11812
11812
  fields: r.field_parent ? { ...r.fields, [r.field_parent]: {} } : r.fields,
11813
11813
  context: l,
@@ -11854,7 +11854,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
11854
11854
  re,
11855
11855
  ce,
11856
11856
  y,
11857
- P,
11857
+ L,
11858
11858
  o,
11859
11859
  r,
11860
11860
  l,
@@ -11904,7 +11904,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
11904
11904
  r,
11905
11905
  n,
11906
11906
  ce,
11907
- P,
11907
+ L,
11908
11908
  ge,
11909
11909
  c,
11910
11910
  W
@@ -12034,7 +12034,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
12034
12034
  setTreeFirstVisibleRow: S,
12035
12035
  onRowHasBeenSelected: bt,
12036
12036
  onSearchFilterClear: _t,
12037
- onSearchFilterSubmit: Pt,
12037
+ onSearchFilterSubmit: Lt,
12038
12038
  onSideSearchFilterClose: gt,
12039
12039
  onSideSearchFilterSubmit: dn,
12040
12040
  totalRowsLoading: oe,
@@ -12046,12 +12046,12 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
12046
12046
  selectAllRecords: Dt,
12047
12047
  onHeaderCheckboxClick: wt,
12048
12048
  headerCheckboxState: on,
12049
- currentPage: P,
12049
+ currentPage: L,
12050
12050
  limit: ce,
12051
12051
  order: W,
12052
12052
  setOrder: z,
12053
12053
  setTreeFirstVisibleColumn: D,
12054
- onGetFirstVisibleColumn: Le,
12054
+ onGetFirstVisibleColumn: Pe,
12055
12055
  onSortChange: Ct,
12056
12056
  isFieldLoading: We,
12057
12057
  setSearchVisible: w,
@@ -12160,7 +12160,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
12160
12160
  onChangeTreeType: I,
12161
12161
  onFetchChildrenForRecord: O,
12162
12162
  childField: D,
12163
- autoRefresh: L
12163
+ autoRefresh: P
12164
12164
  }) => !t || !e ? null : /* @__PURE__ */ s(
12165
12165
  ff,
12166
12166
  {
@@ -12189,7 +12189,7 @@ const bd = qt(rb), ob = Jt, sb = (t) => {
12189
12189
  initialSortState: w,
12190
12190
  onSortChange: _,
12191
12191
  onChangeTableType: I,
12192
- autoRefresh: L,
12192
+ autoRefresh: P,
12193
12193
  expandableOpts: O ? {
12194
12194
  expandIcon: yl,
12195
12195
  collapseIcon: vl,
@@ -12286,7 +12286,7 @@ function ub(t, e) {
12286
12286
  if (w)
12287
12287
  return vn(w);
12288
12288
  }, [w]), {
12289
- columns: L,
12289
+ columns: P,
12290
12290
  strings: M,
12291
12291
  getColumnState: F,
12292
12292
  updateColumnState: R,
@@ -12303,9 +12303,9 @@ function ub(t, e) {
12303
12303
  model: n
12304
12304
  }) : void 0,
12305
12305
  tableRef: v
12306
- }), V = K(() => L || [], [L]), B = w == null ? void 0 : w.isExpandable, {
12306
+ }), V = K(() => P || [], [P]), B = w == null ? void 0 : w.isExpandable, {
12307
12307
  searchVisible: $,
12308
- searchValues: P,
12308
+ searchValues: L,
12309
12309
  selectedRowKeys: U,
12310
12310
  refresh: W,
12311
12311
  onRowStatus: z,
@@ -12356,15 +12356,15 @@ function ub(t, e) {
12356
12356
  autoRefresh: y
12357
12357
  }), xe = K(() => {
12358
12358
  const Qe = Ae !== void 0;
12359
- return V.map((Le) => ({
12360
- ...Le,
12361
- isSortable: Qe ? !1 : Le.isSortable,
12359
+ return V.map((Pe) => ({
12360
+ ...Pe,
12361
+ isSortable: Qe ? !1 : Pe.isSortable,
12362
12362
  render: (Rt, Ye) => /* @__PURE__ */ s(
12363
12363
  es,
12364
12364
  {
12365
12365
  value: Rt,
12366
12366
  record: Ye,
12367
- column: Le,
12367
+ column: Pe,
12368
12368
  isFieldLoading: Fe
12369
12369
  }
12370
12370
  )
@@ -12407,7 +12407,7 @@ function ub(t, e) {
12407
12407
  formView: _,
12408
12408
  treeView: w,
12409
12409
  searchVisible: $,
12410
- searchValues: P,
12410
+ searchValues: L,
12411
12411
  onSearchFilterClear: ue,
12412
12412
  onSearchFilterSubmit: ie,
12413
12413
  onSideSearchFilterClose: ce,
@@ -12683,7 +12683,7 @@ const wd = qt(ub), { useToken: fb } = ot, Cd = ({
12683
12683
  setSearchVisible: I,
12684
12684
  setSearchParams: O,
12685
12685
  setSearchValues: D
12686
- } = Me(en), { fetchSavedSearches: L, handleClearSavedSearch: M, subtitle: F } = Cd({
12686
+ } = Me(en), { fetchSavedSearches: P, handleClearSavedSearch: M, subtitle: F } = Cd({
12687
12687
  model: r,
12688
12688
  context: o,
12689
12689
  viewRef: n,
@@ -12732,7 +12732,7 @@ const wd = qt(ub), { useToken: fb } = ot, Cd = ({
12732
12732
  toolbar: a == null ? void 0 : a.toolbar,
12733
12733
  parentContext: o,
12734
12734
  treeExpandable: _o(a),
12735
- onRefetchSavedSearches: L,
12735
+ onRefetchSavedSearches: P,
12736
12736
  onClearSavedSearch: M
12737
12737
  }
12738
12738
  ) }),
@@ -12812,19 +12812,19 @@ const wd = qt(ub), { useToken: fb } = ot, Cd = ({
12812
12812
  goToResourceId: I,
12813
12813
  limit: O,
12814
12814
  isActive: D,
12815
- initialSearchParams: L,
12815
+ initialSearchParams: P,
12816
12816
  initialCurrentPage: M,
12817
12817
  initialOrder: F,
12818
12818
  permissions: R,
12819
12819
  permissionsLoading: A,
12820
12820
  permissionsError: N,
12821
12821
  initialOpenComments: k
12822
- } = t, [j, Q] = E(!1), [V, B] = E(!1), [$, P] = E(!1), [U, W] = E(!0), [z, ee] = E(!0), [te, we] = E([]), [ue, ie] = E(!1), [ce, oe] = E(
12823
- L || []
12822
+ } = t, [j, Q] = E(!1), [V, B] = E(!1), [$, L] = E(!1), [U, W] = E(!0), [z, ee] = E(!0), [te, we] = E([]), [ue, ie] = E(!1), [ce, oe] = E(
12823
+ P || []
12824
12824
  ), [ne, G] = E(!1), [pe, ae] = E(!0), [se, le] = E(), Ee = T(() => {
12825
12825
  le(n), c();
12826
12826
  }, [n, c, le]), ge = K(() => !i || i.length === 0 ? (n == null ? void 0 : n.fields) || {} : i.reduce((gt, Qt) => ({ ...gt, ...Qt.fields || {} }), {}), [i, n]), [De, Ue] = E(
12827
- mc(L || [], ge)
12827
+ mc(P || [], ge)
12828
12828
  ), [ve, Ce] = E(0), [He, Ve] = E(void 0), [Ge, Fe] = E(), [Be, We] = E(qn), [Ae, ze] = E(
12829
12829
  F
12830
12830
  ), [xe, he] = E(
@@ -12833,7 +12833,7 @@ const wd = qt(ub), { useToken: fb } = ot, Cd = ({
12833
12833
  M || 1
12834
12834
  ), [re, Y] = E(null), [Z, fe] = E([]), [Te, Ie] = E(
12835
12835
  k ?? !1
12836
- ), [ke, $e] = E(0), [Qe, Le] = E(), [Rt, Ye] = E({ fn: void 0 }), _t = T(
12836
+ ), [ke, $e] = E(0), [Qe, Pe] = E(), [Rt, Ye] = E({ fn: void 0 }), _t = T(
12837
12837
  (gt) => {
12838
12838
  Ye({ fn: gt });
12839
12839
  },
@@ -12856,7 +12856,7 @@ const wd = qt(ub), { useToken: fb } = ot, Cd = ({
12856
12856
  )[0]
12857
12857
  );
12858
12858
  }, [n]);
12859
- const Pt = async () => {
12859
+ const Lt = async () => {
12860
12860
  var gt;
12861
12861
  return await ((gt = a.current) == null ? void 0 : gt.submitForm());
12862
12862
  };
@@ -12874,7 +12874,7 @@ const wd = qt(ub), { useToken: fb } = ot, Cd = ({
12874
12874
  setFormHasChanges: B,
12875
12875
  formRef: a,
12876
12876
  viewRef: d,
12877
- onFormSave: Pt,
12877
+ onFormSave: Lt,
12878
12878
  onNewClicked: Ee,
12879
12879
  currentId: l,
12880
12880
  setCurrentId: f,
@@ -12884,7 +12884,7 @@ const wd = qt(ub), { useToken: fb } = ot, Cd = ({
12884
12884
  setResults: u,
12885
12885
  currentModel: h,
12886
12886
  removingItem: $,
12887
- setRemovingItem: P,
12887
+ setRemovingItem: L,
12888
12888
  formIsLoading: U,
12889
12889
  setFormIsLoading: W,
12890
12890
  viewIsLoading: z,
@@ -12939,7 +12939,7 @@ const wd = qt(ub), { useToken: fb } = ot, Cd = ({
12939
12939
  refreshComments: Rt.fn,
12940
12940
  setRefreshComments: _t,
12941
12941
  objectProps: Qe,
12942
- setObjectProps: Le,
12942
+ setObjectProps: Pe,
12943
12943
  permissions: R,
12944
12944
  permissionsLoading: A,
12945
12945
  permissionsError: N
@@ -13241,7 +13241,7 @@ const wd = qt(ub), { useToken: fb } = ot, Cd = ({
13241
13241
  default:
13242
13242
  return /* @__PURE__ */ s(Re, { children: `Graph ${m.type} not implemented` });
13243
13243
  }
13244
- }, Ci = qt(bb), { useToken: wb } = ot, { Text: La } = Zt, xd = (t) => {
13244
+ }, Ci = qt(bb), { useToken: wb } = ot, { Text: Pa } = Zt, xd = (t) => {
13245
13245
  const {
13246
13246
  title: e,
13247
13247
  children: n,
@@ -13288,9 +13288,9 @@ const wd = qt(ub), { useToken: fb } = ot, Cd = ({
13288
13288
  },
13289
13289
  children: a ? /* @__PURE__ */ H(Re, { children: [
13290
13290
  /* @__PURE__ */ s(Ht, { title: a, children: /* @__PURE__ */ s(jo, { className: "pr-1 text-xs" }) }),
13291
- /* @__PURE__ */ s(La, { ellipsis: !0, children: e })
13291
+ /* @__PURE__ */ s(Pa, { ellipsis: !0, children: e })
13292
13292
  ] }) : /* @__PURE__ */ s(
13293
- La,
13293
+ Pa,
13294
13294
  {
13295
13295
  ellipsis: !0,
13296
13296
  style: {
@@ -13465,7 +13465,7 @@ function xb(t) {
13465
13465
  treeExpandable: c,
13466
13466
  fixedHeight: l,
13467
13467
  autoRefresh: f
13468
- } = t, [u, m] = E(!1), [p, g] = E(!1), [h, y] = E(), [v, b] = E(), [C, x] = E(), [w, _] = E(1), [S, I] = E(0), O = X(Jt), D = X([]), [L, M] = E(0), [F, R] = E([]), [A, N] = E(void 0), [k, j] = E(), [Q, V] = E(), [B, $] = E(), [P, U] = E(!1), [W, z] = E(qn), ee = X([]), { treeMaxLimit: te } = an(), we = (se) => {
13468
+ } = t, [u, m] = E(!1), [p, g] = E(!1), [h, y] = E(), [v, b] = E(), [C, x] = E(), [w, _] = E(1), [S, I] = E(0), O = X(Jt), D = X([]), [P, M] = E(0), [F, R] = E([]), [A, N] = E(void 0), [k, j] = E(), [Q, V] = E(), [B, $] = E(), [L, U] = E(!1), [W, z] = E(qn), ee = X([]), { treeMaxLimit: te } = an(), we = (se) => {
13469
13469
  U(!0), _(se), I((se - 1) * O.current);
13470
13470
  }, ue = async () => {
13471
13471
  const se = ee.current.length > 0 ? ee.current : i, le = wn(D.current, se), { colors: Ee } = vn(v), { totalItems: ge, results: De, attrsEvaluated: Ue } = await q.getHandler().searchForTree({
@@ -13590,13 +13590,13 @@ function xb(t) {
13590
13590
  lo,
13591
13591
  {
13592
13592
  showPagination: !1,
13593
- total: L,
13593
+ total: P,
13594
13594
  limit: O.current,
13595
13595
  page: w,
13596
13596
  treeView: v,
13597
13597
  results: F,
13598
13598
  onRequestPageChange: we,
13599
- loading: P,
13599
+ loading: L,
13600
13600
  onRowClicked: pe,
13601
13601
  colorsForResults: A,
13602
13602
  sorter: k,
@@ -13631,14 +13631,14 @@ const Td = tt(xb), { useToken: Sb } = ot, Tb = 3 * 1e3, _b = (t) => {
13631
13631
  async function I(O, D) {
13632
13632
  if (O && O.includes(":"))
13633
13633
  try {
13634
- const L = await g({
13634
+ const P = await g({
13635
13635
  condition: O,
13636
13636
  values: { value: r },
13637
13637
  context: {}
13638
13638
  });
13639
- D(L);
13640
- } catch (L) {
13641
- console.error("Error evaluando icono:", L);
13639
+ D(P);
13640
+ } catch (P) {
13641
+ console.error("Error evaluando icono:", P);
13642
13642
  }
13643
13643
  else
13644
13644
  D(O);
@@ -13895,24 +13895,24 @@ const Td = tt(xb), { useToken: Sb } = ot, Tb = 3 * 1e3, _b = (t) => {
13895
13895
  return Array.isArray(R) && (A = R[1]), { label: A, value: F.id };
13896
13896
  });
13897
13897
  d(M);
13898
- } catch (L) {
13899
- l(L);
13898
+ } catch (P) {
13899
+ l(P);
13900
13900
  } finally {
13901
13901
  u(!1);
13902
13902
  }
13903
13903
  }
13904
13904
  const I = (D) => {
13905
- const L = o.map((F) => D.includes(F.id) ? F.operation === "pendingRemove" ? {
13905
+ const P = o.map((F) => D.includes(F.id) ? F.operation === "pendingRemove" ? {
13906
13906
  ...F,
13907
13907
  operation: "pendingLink"
13908
- } : F : { id: F.id, operation: "pendingRemove" }), M = L.map((F) => F.id);
13908
+ } : F : { id: F.id, operation: "pendingRemove" }), M = P.map((F) => F.id);
13909
13909
  D.filter((F) => !M.includes(F)).forEach((F) => {
13910
- L.push({ id: F, operation: "pendingLink" });
13911
- }), _(L);
13910
+ P.push({ id: F, operation: "pendingLink" });
13911
+ }), _(P);
13912
13912
  }, O = (D) => {
13913
- const { label: L, closable: M, onClose: F } = D, R = (k) => {
13913
+ const { label: P, closable: M, onClose: F } = D, R = (k) => {
13914
13914
  k.preventDefault(), k.stopPropagation();
13915
- }, A = Ar(L), N = A && Wl(A);
13915
+ }, A = Ar(P), N = A && Wl(A);
13916
13916
  return /* @__PURE__ */ s(
13917
13917
  si,
13918
13918
  {
@@ -13921,7 +13921,7 @@ const Td = tt(xb), { useToken: Sb } = ot, Tb = 3 * 1e3, _b = (t) => {
13921
13921
  closable: M,
13922
13922
  onClose: F,
13923
13923
  closeIcon: /* @__PURE__ */ s("span", { style: { color: N && N.text }, children: "X" }),
13924
- children: L
13924
+ children: P
13925
13925
  }
13926
13926
  );
13927
13927
  };
@@ -13936,7 +13936,7 @@ const Td = tt(xb), { useToken: Sb } = ot, Tb = 3 * 1e3, _b = (t) => {
13936
13936
  options: a,
13937
13937
  onChange: I,
13938
13938
  loading: f,
13939
- filterOption: (D, L) => L.label.toLowerCase().includes(D.toString().toLowerCase())
13939
+ filterOption: (D, P) => P.label.toLowerCase().includes(D.toString().toLowerCase())
13940
13940
  }
13941
13941
  ) }) });
13942
13942
  }, Db = (t) => {
@@ -14085,7 +14085,7 @@ const Td = tt(xb), { useToken: Sb } = ot, Tb = 3 * 1e3, _b = (t) => {
14085
14085
  children: t.name
14086
14086
  }
14087
14087
  );
14088
- }, kb = 200, $b = (t) => /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(Lb, { ooui: t.ooui, value: t.value }) }), Lb = (t) => {
14088
+ }, kb = 200, $b = (t) => /* @__PURE__ */ s(Ze, { ...t, children: /* @__PURE__ */ s(Pb, { ooui: t.ooui, value: t.value }) }), Pb = (t) => {
14089
14089
  const { value: e, ooui: n } = t;
14090
14090
  if (!e)
14091
14091
  return null;
@@ -14108,7 +14108,7 @@ const Td = tt(xb), { useToken: Sb } = ot, Tb = 3 * 1e3, _b = (t) => {
14108
14108
  }
14109
14109
  ) });
14110
14110
  };
14111
- function Pb(t) {
14111
+ function Lb(t) {
14112
14112
  const { ooui: e, responsiveBehaviour: n } = t, r = jt(e.icon || ""), { t: o } = Oe(), i = e.title ? /* @__PURE__ */ H("span", { children: [
14113
14113
  r && /* @__PURE__ */ s("span", { style: { marginRight: "8px" }, children: pn.createElement(r) }),
14114
14114
  e.title
@@ -14144,7 +14144,7 @@ const Vb = (t) => {
14144
14144
  case "label":
14145
14145
  return Wo;
14146
14146
  case "char":
14147
- return Ll;
14147
+ return Pl;
14148
14148
  case "text":
14149
14149
  return kw;
14150
14150
  case "button":
@@ -14176,7 +14176,7 @@ const Vb = (t) => {
14176
14176
  case "many2many":
14177
14177
  return Aw;
14178
14178
  case "separator":
14179
- return Lw;
14179
+ return Pw;
14180
14180
  case "reference":
14181
14181
  return Xw;
14182
14182
  case "binary":
@@ -14233,7 +14233,7 @@ const Vb = (t) => {
14233
14233
  case "qrcode":
14234
14234
  return $b;
14235
14235
  case "card":
14236
- return Pb;
14236
+ return Lb;
14237
14237
  case "avatar":
14238
14238
  return wh;
14239
14239
  default:
@@ -14479,7 +14479,7 @@ function Zb(t, e) {
14479
14479
  forcedValues: S = {},
14480
14480
  parentWidth: I,
14481
14481
  onMustRefreshParent: O
14482
- } = t, { t: D } = Oe(), [L, M] = E(!1), [F, R] = E(), [A, N] = E(), [k] = Mt.useForm(), [j, Q] = E(), [V, B] = E(), $ = Me(_d), [P, U] = E(), [W, z] = E(!1), [ee, te] = E(0), we = X(), ue = X({}), ie = X(null), ce = X({}), oe = X({}), ne = X(!1), G = X(!1), pe = X(!1), se = (I !== void 0 ? I : P) < Xb, le = Me(ft), { activeId: Ee, getPlainValues: ge } = le || {}, De = X(!1), Ue = Me(
14482
+ } = t, { t: D } = Oe(), [P, M] = E(!1), [F, R] = E(), [A, N] = E(), [k] = Mt.useForm(), [j, Q] = E(), [V, B] = E(), $ = Me(_d), [L, U] = E(), [W, z] = E(!1), [ee, te] = E(0), we = X(), ue = X({}), ie = X(null), ce = X({}), oe = X({}), ne = X(!1), G = X(!1), pe = X(!1), se = (I !== void 0 ? I : L) < Xb, le = Me(ft), { activeId: Ee, getPlainValues: ge } = le || {}, De = X(!1), Ue = Me(
14483
14483
  en
14484
14484
  ), {
14485
14485
  setFormIsSaving: ve = void 0,
@@ -14513,7 +14513,7 @@ function Zb(t, e) {
14513
14513
  } = Qb();
14514
14514
  rn(e, () => ({
14515
14515
  submitForm: er,
14516
- getFields: Pt,
14516
+ getFields: Lt,
14517
14517
  getValues: Ct,
14518
14518
  getPlainValues: gt,
14519
14519
  getContext: dn,
@@ -14539,29 +14539,29 @@ function Zb(t, e) {
14539
14539
  if (F) {
14540
14540
  const _e = F;
14541
14541
  _e.fields && Array.isArray(_e.fields) && Qe(
14542
- ((be = _e.fields) == null ? void 0 : be.map((Pe) => ({
14543
- ...Pe,
14542
+ ((be = _e.fields) == null ? void 0 : be.map((Le) => ({
14543
+ ...Le,
14544
14544
  type: _e.type || "error"
14545
14545
  }))) || []
14546
14546
  ), Y(F);
14547
14547
  }
14548
14548
  }, [F]);
14549
- const Le = (be, _e, Pe, je) => {
14550
- Ce == null || Ce(!1), ve == null || ve(!1), a == null || a(be, _e, Pe, je), He == null || He(be), De.current && (O == null || O());
14549
+ const Pe = (be, _e, Le, je) => {
14550
+ Ce == null || Ce(!1), ve == null || ve(!1), a == null || a(be, _e, Le, je), He == null || He(be), De.current && (O == null || O());
14551
14551
  }, Rt = (be) => {
14552
14552
  ve == null || ve(!1), f == null || f(be);
14553
14553
  }, Ye = T(() => r || we.current, [r]), _t = r || we.current;
14554
- function Pt() {
14554
+ function Lt() {
14555
14555
  return V;
14556
14556
  }
14557
14557
  function gt() {
14558
- const be = Ct(), _e = Pt(), Pe = {};
14558
+ const be = Ct(), _e = Lt(), Le = {};
14559
14559
  return Object.keys(be).forEach((je) => {
14560
14560
  const et = be[je];
14561
- _e[je] && _e[je].type === "many2one" && et && Array.isArray(et) && et.length === 2 ? Pe[je] = et[0] : _e[je] && (_e[je].type === "one2many" || _e[je].type === "many2many") && et && et.items ? Pe[je] = et.items.filter((xt) => xt.operation !== "pendingRemove").map((xt) => xt.id) : Pe[je] = et;
14561
+ _e[je] && _e[je].type === "many2one" && et && Array.isArray(et) && et.length === 2 ? Le[je] = et[0] : _e[je] && (_e[je].type === "one2many" || _e[je].type === "many2many") && et && et.items ? Le[je] = et.items.filter((xt) => xt.operation !== "pendingRemove").map((xt) => xt.id) : Le[je] = et;
14562
14562
  }), {
14563
14563
  ...at(),
14564
- ...Pe
14564
+ ...Le
14565
14565
  };
14566
14566
  }
14567
14567
  function Qt() {
@@ -14682,10 +14682,10 @@ function Zb(t, e) {
14682
14682
  fields: h.fields,
14683
14683
  object_props: h.object_props
14684
14684
  } : be = await Tn();
14685
- const { fields: _e, arch: Pe, object_props: je } = be;
14686
- B(_e), Q(Pe), await At({
14685
+ const { fields: _e, arch: Le, object_props: je } = be;
14686
+ B(_e), Q(Le), await At({
14687
14687
  fields: _e,
14688
- arch: Pe,
14688
+ arch: Le,
14689
14689
  object_props: je
14690
14690
  });
14691
14691
  } catch (_e) {
@@ -14693,17 +14693,17 @@ function Zb(t, e) {
14693
14693
  }
14694
14694
  }, At = async (be) => {
14695
14695
  te((xt) => xt + 1);
14696
- let _e, Pe, je, et;
14697
- Ve == null || Ve(!0), R(void 0), $e(), be != null && be.fields ? (Pe = be.fields, je = be.arch) : (Pe = V, je = j), g && (be == null ? void 0 : be.forceRefresh) !== !0 ? _e = g : { values: _e, defaultGetCalled: et } = await fn({
14698
- fields: Pe,
14696
+ let _e, Le, je, et;
14697
+ Ve == null || Ve(!0), R(void 0), $e(), be != null && be.fields ? (Le = be.fields, je = be.arch) : (Le = V, je = j), g && (be == null ? void 0 : be.forceRefresh) !== !0 ? _e = g : { values: _e, defaultGetCalled: et } = await fn({
14698
+ fields: Le,
14699
14699
  arch: je,
14700
14700
  object_props: (be == null ? void 0 : be.object_props) ?? Fe
14701
- }), C && (_e = { ...Ul(C), ..._e }), ue.current = Hn(_e, Pe), ie.current === null && (ie.current = Hn(_e, Pe)), un({
14701
+ }), C && (_e = { ...Ul(C), ..._e }), ue.current = Hn(_e, Le), ie.current === null && (ie.current = Hn(_e, Le)), un({
14702
14702
  values: _e,
14703
- fields: Pe,
14703
+ fields: Le,
14704
14704
  reset: !0,
14705
14705
  isDefaultGet: et
14706
- }), lt({ fields: Pe, arch: je, values: _e }), Ve == null || Ve(!1), Ce == null || Ce(!1), et && z(!0);
14706
+ }), lt({ fields: Le, arch: je, values: _e }), Ve == null || Ve(!1), Ce == null || Ce(!1), et && z(!0);
14707
14707
  }, sn = async () => new Promise(async (be) => {
14708
14708
  on() ? Er({
14709
14709
  t: D,
@@ -14732,10 +14732,10 @@ function Zb(t, e) {
14732
14732
  ({
14733
14733
  values: be,
14734
14734
  fields: _e,
14735
- reset: Pe,
14735
+ reset: Le,
14736
14736
  isDefaultGet: je = !1
14737
14737
  }) => {
14738
- const xt = { ...Pe ? {} : k.getFieldsValue(!0), ...be }, Mr = Hn(xt, _e), rr = Object.keys(_e).map((or) => ({
14738
+ const xt = { ...Le ? {} : k.getFieldsValue(!0), ...be }, Mr = Hn(xt, _e), rr = Object.keys(_e).map((or) => ({
14739
14739
  name: or,
14740
14740
  touched: !1,
14741
14741
  value: Mr[or] !== void 0 ? Mr[or] : void 0
@@ -14746,10 +14746,10 @@ function Zb(t, e) {
14746
14746
  ), fn = async ({
14747
14747
  fields: be,
14748
14748
  arch: _e,
14749
- object_props: Pe
14749
+ object_props: Le
14750
14750
  }) => {
14751
14751
  let je = {}, et = !1;
14752
- if (Be && Be(Pe || {}), Ye()) {
14752
+ if (Be && Be(Le || {}), Ye()) {
14753
14753
  const xt = A || nt({
14754
14754
  arch: _e,
14755
14755
  fields: be,
@@ -14762,7 +14762,7 @@ function Zb(t, e) {
14762
14762
  context: b
14763
14763
  }))[0], v)
14764
14764
  return { values: je, defaultGetCalled: et };
14765
- const Mr = !(Pe != null && Pe.without_attachments);
14765
+ const Mr = !(Le != null && Le.without_attachments);
14766
14766
  let rr = [];
14767
14767
  if (Mr) {
14768
14768
  const or = async () => q.getHandler().search({
@@ -14807,7 +14807,7 @@ function Zb(t, e) {
14807
14807
  }, Zn = async (be) => {
14808
14808
  const { callOnSubmitSucceed: _e = !0 } = be || {};
14809
14809
  if (Ye()) {
14810
- const Pe = mo({
14810
+ const Le = mo({
14811
14811
  source: ue.current,
14812
14812
  target: wt(V),
14813
14813
  fields: V
@@ -14815,7 +14815,7 @@ function Zb(t, e) {
14815
14815
  await q.getHandler().update({
14816
14816
  model: n,
14817
14817
  id: Ye(),
14818
- values: { ...Pe, ...S },
14818
+ values: { ...Le, ...S },
14819
14819
  fields: V,
14820
14820
  context: {
14821
14821
  ...b,
@@ -14823,26 +14823,26 @@ function Zb(t, e) {
14823
14823
  }
14824
14824
  }), ue.current = wt(V);
14825
14825
  } else {
14826
- const Pe = wt(V), je = await q.getHandler().create({
14826
+ const Le = wt(V), je = await q.getHandler().create({
14827
14827
  model: n,
14828
- values: { ...Pe, ...S },
14828
+ values: { ...Le, ...S },
14829
14829
  fields: V,
14830
14830
  context: {
14831
14831
  ...b,
14832
14832
  ...A == null ? void 0 : A.context
14833
14833
  }
14834
14834
  });
14835
- we.current = je, ue.current = Pe;
14835
+ we.current = je, ue.current = Le;
14836
14836
  }
14837
- y && await y([Ye()]), !v && _e && (Le == null || Le(Ye(), Ct(), Vt()));
14837
+ y && await y([Ye()]), !v && _e && (Pe == null || Pe(Ye(), Ct(), Vt()));
14838
14838
  }, Fn = async (be) => {
14839
14839
  const { callOnSubmitSucceed: _e = !0 } = be || {};
14840
- !v && _e && (Le == null || Le(Ye(), Ct(), Vt()));
14840
+ !v && _e && (Pe == null || Pe(Ye(), Ct(), Vt()));
14841
14841
  }, er = async (be) => {
14842
14842
  let _e = !1;
14843
- const { callOnSubmitSucceed: Pe = !0 } = be || {};
14844
- if (G.current = !0, R(void 0), $e(), pe.current && !on() && Ye() && Pe) {
14845
- G.current = !1, Ce == null || Ce(!1), Le == null || Le(
14843
+ const { callOnSubmitSucceed: Le = !0 } = be || {};
14844
+ if (G.current = !0, R(void 0), $e(), pe.current && !on() && Ye() && Le) {
14845
+ G.current = !1, Ce == null || Ce(!1), Pe == null || Pe(
14846
14846
  Ye(),
14847
14847
  Ct(),
14848
14848
  Vt(),
@@ -14855,13 +14855,13 @@ function Zb(t, e) {
14855
14855
  reset: !0
14856
14856
  })), { succeed: !0, id: je };
14857
14857
  }
14858
- if (!on() && Ye() && Pe) {
14858
+ if (!on() && Ye() && Le) {
14859
14859
  const je = wt(V), et = mo({
14860
14860
  source: ie.current || ue.current,
14861
14861
  target: je,
14862
14862
  fields: V
14863
14863
  });
14864
- return Object.keys(et).length > 0 ? (G.current = !1, Ce == null || Ce(!1), Le == null || Le(Ye(), Ct(), Vt()), { succeed: !0, id: Ye() }) : (G.current = !1, Ce == null || Ce(!1), bt == null || bt(), { succeed: !0, id: Ye() });
14864
+ return Object.keys(et).length > 0 ? (G.current = !1, Ce == null || Ce(!1), Pe == null || Pe(Ye(), Ct(), Vt()), { succeed: !0, id: Ye() }) : (G.current = !1, Ce == null || Ce(!1), bt == null || bt(), { succeed: !0, id: Ye() });
14865
14865
  }
14866
14866
  if (await mt())
14867
14867
  return G.current = !1, Y({
@@ -14890,7 +14890,7 @@ function Zb(t, e) {
14890
14890
  ({
14891
14891
  fields: be,
14892
14892
  arch: _e,
14893
- values: Pe,
14893
+ values: Le,
14894
14894
  operationInProgress: je = !1
14895
14895
  }) => {
14896
14896
  const et = new ll(be);
@@ -14898,7 +14898,7 @@ function Zb(t, e) {
14898
14898
  readOnly: u || je,
14899
14899
  values: vp(
14900
14900
  {
14901
- ...Pe,
14901
+ ...Le,
14902
14902
  ...at()
14903
14903
  },
14904
14904
  be
@@ -14910,14 +14910,14 @@ function Zb(t, e) {
14910
14910
  ({
14911
14911
  fields: be,
14912
14912
  arch: _e,
14913
- values: Pe,
14913
+ values: Le,
14914
14914
  operationInProgress: je = !1
14915
14915
  }) => {
14916
14916
  var xt;
14917
14917
  const et = nt({
14918
14918
  arch: _e,
14919
14919
  fields: be,
14920
- values: Pe,
14920
+ values: Le,
14921
14921
  operationInProgress: je
14922
14922
  });
14923
14923
  N(et), et.string && et.string !== We && (Ae == null || Ae(et.string)), $ && et.string && ((xt = $.setTitle) == null || xt.call($, et.string));
@@ -14932,9 +14932,9 @@ function Zb(t, e) {
14932
14932
  source: ce.current,
14933
14933
  target: wt(V),
14934
14934
  fields: V
14935
- }), Pe = Object.keys(_e);
14936
- if (Pe.length !== 0 && !(Tm({
14937
- changedFields: Pe,
14935
+ }), Le = Object.keys(_e);
14936
+ if (Le.length !== 0 && !(Tm({
14937
+ changedFields: Le,
14938
14938
  formOoui: A,
14939
14939
  types: [
14940
14940
  "text",
@@ -14951,13 +14951,13 @@ function Zb(t, e) {
14951
14951
  const je = Hn(k.getFieldsValue(!0), V);
14952
14952
  ce.current = je, l == null || l(je), Ce == null || Ce(!0), Object.keys(je).forEach((et) => {
14953
14953
  ke(et);
14954
- }), hn(Pe);
14954
+ }), hn(Le);
14955
14955
  }
14956
14956
  }, Ft = Tl($t, 100), hn = async (be) => {
14957
14957
  try {
14958
14958
  for (let _e = 0; _e < be.length; _e += 1) {
14959
- const Pe = be[_e];
14960
- await tr(Pe);
14959
+ const Le = be[_e];
14960
+ await tr(Le);
14961
14961
  }
14962
14962
  } catch (_e) {
14963
14963
  Y(_e);
@@ -14972,7 +14972,7 @@ function Zb(t, e) {
14972
14972
  });
14973
14973
  return;
14974
14974
  }
14975
- const Pe = Am({
14975
+ const Le = Am({
14976
14976
  values: {
14977
14977
  ...wt(V),
14978
14978
  context: {
@@ -14986,7 +14986,7 @@ function Zb(t, e) {
14986
14986
  model: n,
14987
14987
  action: _e.method,
14988
14988
  ids: Ye() ? [Ye()] : [],
14989
- payload: Pe,
14989
+ payload: Le,
14990
14990
  fields: V
14991
14991
  });
14992
14992
  if (je.value) {
@@ -15040,7 +15040,7 @@ function Zb(t, e) {
15040
15040
  action: be,
15041
15041
  context: _e
15042
15042
  }) {
15043
- const Pe = await q.getHandler().execute({
15043
+ const Le = await q.getHandler().execute({
15044
15044
  model: n,
15045
15045
  action: be,
15046
15046
  payload: [Ye()],
@@ -15050,20 +15050,20 @@ function Zb(t, e) {
15050
15050
  ..._e
15051
15051
  }
15052
15052
  });
15053
- if (typeof Pe == "object" && Pe !== null && Object.keys(Pe).length === 0 && v)
15054
- Le == null || Le(Ye(), Ct(), Vt());
15055
- else if (Pe.type && Pe.type === Pm)
15056
- Le == null || Le(Ye(), Ct(), Vt());
15057
- else if (Pe.type && Pe.type === jm)
15058
- Se == null || Se(Pe);
15059
- else if (Pe.type) {
15053
+ if (typeof Le == "object" && Le !== null && Object.keys(Le).length === 0 && v)
15054
+ Pe == null || Pe(Ye(), Ct(), Vt());
15055
+ else if (Le.type && Le.type === Lm)
15056
+ Pe == null || Pe(Ye(), Ct(), Vt());
15057
+ else if (Le.type && Le.type === jm)
15058
+ Se == null || Se(Le);
15059
+ else if (Le.type) {
15060
15060
  let je = {};
15061
- Pe.context && (je = Nn({
15062
- context: Pe.context,
15061
+ Le.context && (je = Nn({
15062
+ context: Le.context,
15063
15063
  fields: V,
15064
15064
  values: Ct()
15065
15065
  })), await Et({
15066
- actionData: Pe,
15066
+ actionData: Le,
15067
15067
  context: { ..._e, ...je }
15068
15068
  });
15069
15069
  } else
@@ -15075,24 +15075,24 @@ function Zb(t, e) {
15075
15075
  action: be,
15076
15076
  payload: Ye()
15077
15077
  });
15078
- _e.type && _e.type === "ir.actions.act_window_close" ? Le == null || Le(Ye(), Ct(), Vt()) : await At({ forceRefresh: !0 });
15078
+ _e.type && _e.type === "ir.actions.act_window_close" ? Pe == null || Pe(Ye(), Ct(), Vt()) : await At({ forceRefresh: !0 });
15079
15079
  }
15080
15080
  async function uo({
15081
15081
  action: be,
15082
15082
  context: _e
15083
15083
  }) {
15084
- const Pe = (await q.getHandler().readObjects({
15084
+ const Le = (await q.getHandler().readObjects({
15085
15085
  model: Hm,
15086
15086
  ids: [parseInt(be)],
15087
15087
  context: b
15088
15088
  }))[0];
15089
- await Et({ actionData: Pe, context: _e });
15089
+ await Et({ actionData: Le, context: _e });
15090
15090
  }
15091
15091
  async function Et({
15092
15092
  actionData: be,
15093
15093
  context: _e = {}
15094
15094
  }) {
15095
- const { closeParent: Pe } = await (he == null ? void 0 : he({
15095
+ const { closeParent: Le } = await (he == null ? void 0 : he({
15096
15096
  actionData: be,
15097
15097
  fields: V,
15098
15098
  values: Ct(),
@@ -15105,7 +15105,7 @@ function Zb(t, e) {
15105
15105
  De.current = !0, await At({ forceRefresh: !0 });
15106
15106
  }
15107
15107
  })) || {};
15108
- !w && Pe && (Le == null || Le(Ye(), Ct(), Vt()));
15108
+ !w && Le && (Pe == null || Pe(Ye(), Ct(), Vt()));
15109
15109
  }
15110
15110
  function fo() {
15111
15111
  $t({ elementHasLostFocus: !0 });
@@ -15146,7 +15146,7 @@ function Zb(t, e) {
15146
15146
  async function Zd({
15147
15147
  type: be,
15148
15148
  action: _e,
15149
- context: Pe
15149
+ context: Le
15150
15150
  }) {
15151
15151
  if (be === "cancel") {
15152
15152
  bt == null || bt();
@@ -15163,19 +15163,19 @@ function Zb(t, e) {
15163
15163
  let je = !1;
15164
15164
  try {
15165
15165
  !u && (on() || Ye() === void 0) && (je = !0, Dr(!0), p === "2many" ? (await Zn({ callOnSubmitSucceed: !1 }), pe.current = !0) : await er({ callOnSubmitSucceed: !1 }));
15166
- const et = pe.current ? Kt() : {}, xt = { ...Pe, ...et };
15166
+ const et = pe.current ? Kt() : {}, xt = { ...Le, ...et };
15167
15167
  be === "object" ? await On({ action: _e, context: xt }) : be === "workflow" ? await nr({ action: _e }) : be === "action" && await uo({ action: _e, context: xt }), je && Dr(!1);
15168
15168
  } catch (et) {
15169
15169
  je && Dr(!1), Y(et);
15170
15170
  }
15171
15171
  }
15172
15172
  const eu = () => !A && !F ? /* @__PURE__ */ s(dt, {}) : !n && !h || !x ? null : /* @__PURE__ */ s(Re, { children: /* @__PURE__ */ s(
15173
- Lf,
15173
+ Pf,
15174
15174
  {
15175
15175
  getValues: Ct,
15176
15176
  getPlainValues: gt,
15177
15177
  getAllHierarchyValues: Qt,
15178
- getFields: Pt,
15178
+ getFields: Lt,
15179
15179
  domain: C,
15180
15180
  activeId: _t,
15181
15181
  activeModel: n,
@@ -15222,7 +15222,7 @@ function Zb(t, e) {
15222
15222
  Ke,
15223
15223
  {
15224
15224
  icon: /* @__PURE__ */ s(Vr, {}),
15225
- disabled: L,
15225
+ disabled: P,
15226
15226
  onClick: Sn,
15227
15227
  children: D("openInNewTab")
15228
15228
  }
@@ -15232,7 +15232,7 @@ function Zb(t, e) {
15232
15232
  Ke,
15233
15233
  {
15234
15234
  icon: /* @__PURE__ */ s($n, {}),
15235
- disabled: L,
15235
+ disabled: P,
15236
15236
  onClick: async () => {
15237
15237
  await sn();
15238
15238
  },
@@ -15242,9 +15242,9 @@ function Zb(t, e) {
15242
15242
  /* @__PURE__ */ s(
15243
15243
  Ke,
15244
15244
  {
15245
- disabled: L || u,
15246
- loading: L,
15247
- icon: /* @__PURE__ */ s(Ln, {}),
15245
+ disabled: P || u,
15246
+ loading: P,
15247
+ icon: /* @__PURE__ */ s(Pn, {}),
15248
15248
  onClick: async () => {
15249
15249
  await er();
15250
15250
  },
@@ -15429,9 +15429,9 @@ const Or = qt(Zb), ew = (t) => {
15429
15429
  }
15430
15430
  });
15431
15431
  Je(() => {
15432
- a && !w && L();
15432
+ a && !w && P();
15433
15433
  }, [d, a]);
15434
- async function L() {
15434
+ async function P() {
15435
15435
  const A = await q.getHandler().isShortcutFavorite({
15436
15436
  action_id: v,
15437
15437
  action_type: C,
@@ -15550,7 +15550,7 @@ const Or = qt(Zb), ew = (t) => {
15550
15550
  }, [f, S, _]), D = K(
15551
15551
  () => w ? bi : bd,
15552
15552
  [w]
15553
- ), L = T(() => {
15553
+ ), P = T(() => {
15554
15554
  l(!0);
15555
15555
  }, []), M = T(() => {
15556
15556
  l(!1), S();
@@ -15596,7 +15596,7 @@ const Or = qt(Zb), ew = (t) => {
15596
15596
  {
15597
15597
  disabled: m || !d,
15598
15598
  icon: /* @__PURE__ */ s(Bo, {}),
15599
- onClick: L,
15599
+ onClick: P,
15600
15600
  children: y("new")
15601
15601
  }
15602
15602
  ),
@@ -15604,7 +15604,7 @@ const Or = qt(Zb), ew = (t) => {
15604
15604
  Ke,
15605
15605
  {
15606
15606
  disabled: m,
15607
- icon: m ? /* @__PURE__ */ s(tn, {}) : /* @__PURE__ */ s(Ln, {}),
15607
+ icon: m ? /* @__PURE__ */ s(tn, {}) : /* @__PURE__ */ s(Pn, {}),
15608
15608
  onClick: O,
15609
15609
  type: "primary",
15610
15610
  children: y("ok")
@@ -15657,7 +15657,7 @@ const Or = qt(Zb), ew = (t) => {
15657
15657
  domain: I,
15658
15658
  getFields: O,
15659
15659
  getContext: D,
15660
- elementHasLostFocus: L,
15660
+ elementHasLostFocus: P,
15661
15661
  getAllHierarchyValues: M
15662
15662
  } = S || {}, F = X([]), [R, A] = E([]), { showErrorNotification: N } = Ot(), { permissions: k } = Ur({
15663
15663
  model: i,
@@ -15669,14 +15669,14 @@ const Or = qt(Zb), ew = (t) => {
15669
15669
  }, [e]), ye(() => {
15670
15670
  B && $.length === 0 ? ee(B) : B && $.length > 0 ? w($) : !B && !$ && w(_.current || "");
15671
15671
  }, [e]);
15672
- const P = (G) => {
15673
- n == null || n(G), L == null || L();
15672
+ const L = (G) => {
15673
+ n == null || n(G), P == null || P();
15674
15674
  }, U = (G) => {
15675
- _.current = G.target.value, P([void 0, ""]);
15675
+ _.current = G.target.value, L([void 0, ""]);
15676
15676
  }, W = async () => {
15677
15677
  if (!h && x !== $) {
15678
15678
  if (await new Promise((G) => setTimeout(G, 100)), C.current) {
15679
- P([void 0, ""]);
15679
+ L([void 0, ""]);
15680
15680
  return;
15681
15681
  }
15682
15682
  y(!0);
@@ -15689,7 +15689,7 @@ const Or = qt(Zb), ew = (t) => {
15689
15689
  payload: _.current,
15690
15690
  context: { ...D == null ? void 0 : D(), ...d }
15691
15691
  });
15692
- G.length === 1 ? (_.current = void 0, P(G[0])) : z(_.current);
15692
+ G.length === 1 ? (_.current = void 0, L(G[0])) : z(_.current);
15693
15693
  }
15694
15694
  } catch (G) {
15695
15695
  N(G);
@@ -15718,7 +15718,7 @@ const Or = qt(Zb), ew = (t) => {
15718
15718
  model: i,
15719
15719
  context: { ...D == null ? void 0 : D(), ...d }
15720
15720
  });
15721
- P([G, pe[0][1]]);
15721
+ L([G, pe[0][1]]);
15722
15722
  } catch (pe) {
15723
15723
  N(pe);
15724
15724
  } finally {
@@ -15742,7 +15742,7 @@ const Or = qt(Zb), ew = (t) => {
15742
15742
  )), A(F.current);
15743
15743
  }
15744
15744
  async function we(G) {
15745
- G.keyCode === 13 ? (G.preventDefault(), G.stopPropagation(), await W()) : G.code === "Backspace" && B !== void 0 && (G.preventDefault(), G.stopPropagation(), P([void 0, ""]));
15745
+ G.keyCode === 13 ? (G.preventDefault(), G.stopPropagation(), await W()) : G.code === "Backspace" && B !== void 0 && (G.preventDefault(), G.stopPropagation(), L([void 0, ""]));
15746
15746
  }
15747
15747
  const ue = o && !a ? sw : Nt, ie = It(
15748
15748
  Tt.FEATURE_MANY2ONE_DISABLE_FOLDER
@@ -16119,14 +16119,14 @@ function cw(t) {
16119
16119
  currentId: _,
16120
16120
  onOpenInListView: S,
16121
16121
  canOpenInListView: I
16122
- } = t, { token: O } = lw(), { t: D } = Oe(), { activeModel: L } = eo(), { permissions: M } = Ur({
16122
+ } = t, { token: O } = lw(), { t: D } = Oe(), { activeModel: P } = eo(), { permissions: M } = Ur({
16123
16123
  model: o,
16124
16124
  permissions: ["create", "write", "unlink"],
16125
16125
  enabled: !0
16126
16126
  }), { permissions: F } = Ur({
16127
- model: L,
16127
+ model: P,
16128
16128
  permissions: ["write"],
16129
- enabled: !!L
16129
+ enabled: !!P
16130
16130
  }), R = (M == null ? void 0 : M.create) ?? !1, A = (M == null ? void 0 : M.write) ?? !1, N = (M == null ? void 0 : M.unlink) ?? !1, k = (F == null ? void 0 : F.write) ?? !1, { duplicatingItem: j, duplicate: Q } = aw({
16131
16131
  currentId: a === "form" ? _ : parseInt(g[0]),
16132
16132
  currentModel: o,
@@ -16141,7 +16141,7 @@ function cw(t) {
16141
16141
  formRef: x,
16142
16142
  onRefreshParentValues: w
16143
16143
  }), {
16144
- actionButtonProps: P,
16144
+ actionButtonProps: L,
16145
16145
  printButtonProps: U
16146
16146
  } = vc({
16147
16147
  toolbar: v,
@@ -16157,7 +16157,7 @@ function cw(t) {
16157
16157
  /* @__PURE__ */ s(Dd, { title: e, token: O }),
16158
16158
  /* @__PURE__ */ H("div", { className: "flex-none h-8 pl-2", children: [
16159
16159
  a !== "graph" && h && /* @__PURE__ */ s(
16160
- Lt,
16160
+ Pt,
16161
16161
  {
16162
16162
  tooltip: D("createNewItem"),
16163
16163
  icon: /* @__PURE__ */ s(Bo, {}),
@@ -16168,7 +16168,7 @@ function cw(t) {
16168
16168
  m && h && /* @__PURE__ */ H(Re, { children: [
16169
16169
  /* @__PURE__ */ s(gn, {}),
16170
16170
  /* @__PURE__ */ s(
16171
- Lt,
16171
+ Pt,
16172
16172
  {
16173
16173
  tooltip: D("searchExistingItem"),
16174
16174
  icon: /* @__PURE__ */ s(Sr, {}),
@@ -16190,7 +16190,7 @@ function cw(t) {
16190
16190
  (a === "tree" || a === "form") && /* @__PURE__ */ H(Re, { children: [
16191
16191
  /* @__PURE__ */ s(gn, {}),
16192
16192
  /* @__PURE__ */ s(
16193
- Lt,
16193
+ Pt,
16194
16194
  {
16195
16195
  icon: /* @__PURE__ */ s(jo, {}),
16196
16196
  tooltip: D("showLogs"),
@@ -16206,7 +16206,7 @@ function cw(t) {
16206
16206
  (a === "form" || a === "tree") && /* @__PURE__ */ H(Re, { children: [
16207
16207
  /* @__PURE__ */ s(gn, {}),
16208
16208
  /* @__PURE__ */ s(
16209
- Lt,
16209
+ Pt,
16210
16210
  {
16211
16211
  icon: /* @__PURE__ */ s(Jn, {}),
16212
16212
  tooltip: D("duplicate"),
@@ -16223,7 +16223,7 @@ function cw(t) {
16223
16223
  S && /* @__PURE__ */ H(Re, { children: [
16224
16224
  /* @__PURE__ */ s(gn, {}),
16225
16225
  /* @__PURE__ */ s(
16226
- Lt,
16226
+ Pt,
16227
16227
  {
16228
16228
  icon: /* @__PURE__ */ s(Vr, {}),
16229
16229
  tooltip: D("openInListView"),
@@ -16244,7 +16244,7 @@ function cw(t) {
16244
16244
  y && /* @__PURE__ */ H(Re, { children: [
16245
16245
  /* @__PURE__ */ s(gn, {}),
16246
16246
  /* @__PURE__ */ s(
16247
- Lt,
16247
+ Pt,
16248
16248
  {
16249
16249
  tooltip: D("toggleViewMode"),
16250
16250
  icon: /* @__PURE__ */ s(Eu, {}),
@@ -16258,8 +16258,8 @@ function cw(t) {
16258
16258
  /* @__PURE__ */ s(
16259
16259
  _n,
16260
16260
  {
16261
- icon: /* @__PURE__ */ s(Lo, {}),
16262
- ...a === "form" ? V : P
16261
+ icon: /* @__PURE__ */ s(Po, {}),
16262
+ ...a === "form" ? V : L
16263
16263
  }
16264
16264
  )
16265
16265
  ] }),
@@ -16268,7 +16268,7 @@ function cw(t) {
16268
16268
  /* @__PURE__ */ s(
16269
16269
  _n,
16270
16270
  {
16271
- icon: /* @__PURE__ */ s(Po, {}),
16271
+ icon: /* @__PURE__ */ s(Lo, {}),
16272
16272
  ...a === "form" ? B : U
16273
16273
  }
16274
16274
  )
@@ -16328,7 +16328,7 @@ const Nd = tt(
16328
16328
  return /* @__PURE__ */ H(Re, { children: [
16329
16329
  /* @__PURE__ */ s(gn, {}),
16330
16330
  /* @__PURE__ */ s(
16331
- Lt,
16331
+ Pt,
16332
16332
  {
16333
16333
  tooltip: o("previousItem"),
16334
16334
  icon: /* @__PURE__ */ s(bl, {}),
@@ -16344,7 +16344,7 @@ const Nd = tt(
16344
16344
  }
16345
16345
  ),
16346
16346
  /* @__PURE__ */ s(
16347
- Lt,
16347
+ Pt,
16348
16348
  {
16349
16349
  tooltip: o("nextItem"),
16350
16350
  icon: /* @__PURE__ */ s(wl, {}),
@@ -16365,7 +16365,7 @@ const kd = tt(
16365
16365
  }) => {
16366
16366
  const { t: o } = Oe();
16367
16367
  return /* @__PURE__ */ s(Kn, { count: e.length, children: /* @__PURE__ */ s(
16368
- Lt,
16368
+ Pt,
16369
16369
  {
16370
16370
  tooltip: o(t ? "unlink" : "delete"),
16371
16371
  icon: t ? /* @__PURE__ */ s(Au, {}) : /* @__PURE__ */ s(Ho, {}),
@@ -16401,7 +16401,7 @@ const fw = (t) => {
16401
16401
  domain: g,
16402
16402
  fetchValues: h,
16403
16403
  getAllHierarchyValues: y
16404
- } = f || {}, { t: v } = Oe(), [b, C] = E(!1), [x, w] = E(!1), [_, S] = E(), [I, O] = E(!1), [D, L] = E(!1), [M, F] = E(), [R, A] = E([]), [N, k] = E(!1), [j, Q] = E([]), [V, B] = E(), $ = X(), [P, U] = E(void 0), W = X(), {
16404
+ } = f || {}, { t: v } = Oe(), [b, C] = E(!1), [x, w] = E(!1), [_, S] = E(), [I, O] = E(!1), [D, P] = E(!1), [M, F] = E(), [R, A] = E([]), [N, k] = E(!1), [j, Q] = E([]), [V, B] = E(), $ = X(), [L, U] = E(void 0), W = X(), {
16405
16405
  readOnly: z,
16406
16406
  relation: ee,
16407
16407
  context: te,
@@ -16543,8 +16543,8 @@ const fw = (t) => {
16543
16543
  }) : (k(!0), F({ defaultValues: Se }), O(!0));
16544
16544
  }, He = async () => {
16545
16545
  a === "form" ? Ue(() => {
16546
- L(!0);
16547
- }) : L(!0);
16546
+ P(!0);
16547
+ }) : P(!0);
16548
16548
  }, Ve = async () => {
16549
16549
  w(!0), C(!1), S(void 0);
16550
16550
  try {
@@ -16695,7 +16695,7 @@ const fw = (t) => {
16695
16695
  sorter: V,
16696
16696
  onChangeSort: B,
16697
16697
  context: { ...p == null ? void 0 : p(), ...te },
16698
- colorsForResults: P,
16698
+ colorsForResults: L,
16699
16699
  readonly: z,
16700
16700
  scrollY: r == null ? void 0 : r.height
16701
16701
  }
@@ -16790,10 +16790,10 @@ const fw = (t) => {
16790
16790
  context: { ...p == null ? void 0 : p(), ...te },
16791
16791
  visible: D,
16792
16792
  onSelectValues: async (J) => {
16793
- L(!1), We(J);
16793
+ P(!1), We(J);
16794
16794
  },
16795
16795
  onCloseModal: () => {
16796
- L(!1);
16796
+ P(!1);
16797
16797
  }
16798
16798
  }
16799
16799
  )
@@ -16904,7 +16904,7 @@ const fw = (t) => {
16904
16904
  onGetFirstVisibileRowIndex: f,
16905
16905
  onSelectionCheckboxClicked: c
16906
16906
  };
16907
- }, Ld = ({
16907
+ }, Pd = ({
16908
16908
  items: t,
16909
16909
  relation: e,
16910
16910
  context: n,
@@ -16977,7 +16977,7 @@ const fw = (t) => {
16977
16977
  getOriginalItemsWithRestoredItemId: f,
16978
16978
  onFormChanges: u
16979
16979
  };
16980
- }, Pd = ({
16980
+ }, Ld = ({
16981
16981
  one2manyItems: t
16982
16982
  }) => St(() => t.filter((e) => e.operation !== "pendingRemove"), [t]), Ti = qt(
16983
16983
  ({
@@ -17151,19 +17151,19 @@ const Bd = ({
17151
17151
  treeValues: { ...I, id: _ }
17152
17152
  });
17153
17153
  else if (_)
17154
- D = o.map((L) => L.id === _ ? {
17154
+ D = o.map((P) => P.id === _ ? {
17155
17155
  id: _,
17156
17156
  operation: Yt(_) ? "pendingUpdate" : "pendingCreate",
17157
17157
  values: { ...I, id: _ },
17158
17158
  treeValues: { ...I, id: _ }
17159
- } : L);
17159
+ } : P);
17160
17160
  else {
17161
- const L = ec(o);
17161
+ const P = ec(o);
17162
17162
  D = o.concat({
17163
- id: L,
17163
+ id: P,
17164
17164
  operation: "pendingCreate",
17165
- values: { ...I, id: L },
17166
- treeValues: { ...I, id: L }
17165
+ values: { ...I, id: P },
17166
+ treeValues: { ...I, id: P }
17167
17167
  });
17168
17168
  }
17169
17169
  i(D), setTimeout(() => {
@@ -17254,7 +17254,7 @@ const Bd = ({
17254
17254
  onCloseSearchModal: u,
17255
17255
  onSelectSearchValues: p
17256
17256
  };
17257
- }, jd = (t) => `columnState-${t.parentViewId}-${t.treeViewId}-${t.one2ManyFieldName}-${t.model}`, Pa = 400, hw = (t, e) => t.filter((n) => {
17257
+ }, jd = (t) => `columnState-${t.parentViewId}-${t.treeViewId}-${t.one2ManyFieldName}-${t.model}`, La = 400, hw = (t, e) => t.filter((n) => {
17258
17258
  const r = e.find((o) => o.id === n.id);
17259
17259
  return r ? JSON.stringify(n.treeValues) !== JSON.stringify(r.treeValues) : !0;
17260
17260
  }), gw = ({
@@ -17280,11 +17280,11 @@ const Bd = ({
17280
17280
  }) => {
17281
17281
  const C = X(null), x = l || C, w = It(
17282
17282
  Tt.FEATURE_MANY2ONE_SELECTION_TO_LAZY
17283
- ), _ = X(), S = X(t), [I, O] = E(0), [D, L] = E(), [M, F] = E(0), R = X([]), [A, N] = E([]), [k, j] = E(!1), Q = St(() => t.length, [t]), {
17283
+ ), _ = X(), S = X(t), [I, O] = E(0), [D, P] = E(), [M, F] = E(0), R = X([]), [A, N] = E([]), [k, j] = E(!1), Q = St(() => t.length, [t]), {
17284
17284
  columns: V,
17285
17285
  strings: B,
17286
17286
  colorsForResults: $,
17287
- statusForResults: P,
17287
+ statusForResults: L,
17288
17288
  onRowStyle: U,
17289
17289
  statusComponent: W,
17290
17290
  onRowStatus: z,
@@ -17344,7 +17344,7 @@ const Bd = ({
17344
17344
  endRow: J,
17345
17345
  sortFields: re
17346
17346
  });
17347
- if (Z && ($.current = { ...$.current, ...Z }), fe && (P.current || (P.current = {}), P.current = { ...P.current, ...fe }), Z || fe) {
17347
+ if (Z && ($.current = { ...$.current, ...Z }), fe && (L.current || (L.current = {}), L.current = { ...L.current, ...fe }), Z || fe) {
17348
17348
  const Ie = Y.map((ke) => ({
17349
17349
  id: ke.id,
17350
17350
  colors: Z == null ? void 0 : Z[ke.id],
@@ -17358,7 +17358,7 @@ const Bd = ({
17358
17358
  [
17359
17359
  $,
17360
17360
  d,
17361
- P,
17361
+ L,
17362
17362
  o,
17363
17363
  G,
17364
17364
  ue
@@ -17376,7 +17376,7 @@ const Bd = ({
17376
17376
  endRow: t.length,
17377
17377
  sortFields: de
17378
17378
  });
17379
- if (Se && ($.current = { ...$.current, ...Se }), re && (P.current || (P.current = {}), P.current = { ...P.current, ...re }), Se || re) {
17379
+ if (Se && ($.current = { ...$.current, ...Se }), re && (L.current || (L.current = {}), L.current = { ...L.current, ...re }), Se || re) {
17380
17380
  const Z = J.map((fe) => ({
17381
17381
  id: fe.id,
17382
17382
  colors: Se == null ? void 0 : Se[fe.id],
@@ -17394,7 +17394,7 @@ const Bd = ({
17394
17394
  t,
17395
17395
  d,
17396
17396
  $,
17397
- P,
17397
+ L,
17398
17398
  o,
17399
17399
  G,
17400
17400
  ue
@@ -17432,7 +17432,7 @@ const Bd = ({
17432
17432
  var de;
17433
17433
  ie(), v === "paginated" ? F((J) => J + 1) : (de = x == null ? void 0 : x.current) == null || de.refresh();
17434
17434
  }, [ie, v, x]), Ue = mn(O), ve = mn(
17435
- L
17435
+ P
17436
17436
  ), Ce = mn(te), He = mn(ee), Ve = mn(z), Ge = mn(U), Fe = T(
17437
17437
  (de) => {
17438
17438
  de.selected ? c([...h, de.id]) : c(
@@ -17441,7 +17441,7 @@ const Bd = ({
17441
17441
  },
17442
17442
  [h, c]
17443
17443
  ), Be = K(() => h.length === 0 ? "unchecked" : h.length === oe.length ? "checked" : "indeterminate", [h, oe.length]), We = mn((de) => {
17444
- R.current = de, O(0), L(void 0), v === "paginated" && t.length > 0 && se().then(N);
17444
+ R.current = de, O(0), P(void 0), v === "paginated" && t.length > 0 && se().then(N);
17445
17445
  }), Ae = mn(se);
17446
17446
  Je(() => {
17447
17447
  v === "paginated" && (t.length > 0 ? Ae().then(N) : N([]));
@@ -17477,7 +17477,7 @@ const Bd = ({
17477
17477
  {
17478
17478
  tableRef: x,
17479
17479
  onRowStyle: Ge,
17480
- availableHeight: e || Pa,
17480
+ availableHeight: e || La,
17481
17481
  columns: pe,
17482
17482
  treeOoui: o,
17483
17483
  strings: B,
@@ -17507,7 +17507,7 @@ const Bd = ({
17507
17507
  qs,
17508
17508
  {
17509
17509
  ref: x,
17510
- height: e || Pa,
17510
+ height: e || La,
17511
17511
  columns: pe,
17512
17512
  onRequestData: ae,
17513
17513
  onRowDoubleClick: n,
@@ -17533,7 +17533,7 @@ const Bd = ({
17533
17533
  );
17534
17534
  }, yw = ["form", "tree", "graph"], vw = (t) => {
17535
17535
  var We, Ae, ze;
17536
- const e = X(null), { value: n, onChange: r, ooui: o, views: i, treeType: a, onUserSelectTreeType: d } = t, { items: c = [] } = n || {}, l = Pd({ one2manyItems: c }), { currentView: f, setCurrentView: u, itemIndex: m, setItemIndex: p, setTreeType: g } = Me(Bn), {
17536
+ const e = X(null), { value: n, onChange: r, ooui: o, views: i, treeType: a, onUserSelectTreeType: d } = t, { items: c = [] } = n || {}, l = Ld({ one2manyItems: c }), { currentView: f, setCurrentView: u, itemIndex: m, setItemIndex: p, setTreeType: g } = Me(Bn), {
17537
17537
  readOnly: h,
17538
17538
  relation: y,
17539
17539
  context: v,
@@ -17543,7 +17543,7 @@ const Bd = ({
17543
17543
  activeId: w,
17544
17544
  getContext: _,
17545
17545
  fetchValues: S
17546
- } = x || {}, I = X(), O = i.size > 1, D = ((We = i.get("form")) == null ? void 0 : We.fields) !== void 0, L = K(() => ({ ..._ == null ? void 0 : _(), ...v }), [_, v]), M = $d({
17546
+ } = x || {}, I = X(), O = i.size > 1, D = ((We = i.get("form")) == null ? void 0 : We.fields) !== void 0, P = K(() => ({ ..._ == null ? void 0 : _(), ...v }), [_, v]), M = $d({
17547
17547
  widgetDomain: b,
17548
17548
  fieldName: C
17549
17549
  }), {
@@ -17557,7 +17557,7 @@ const Bd = ({
17557
17557
  } = mw({
17558
17558
  treeView: i.get("tree"),
17559
17559
  relation: y,
17560
- context: L,
17560
+ context: P,
17561
17561
  allRowsIds: l.filter((xe) => xe.id !== void 0).map((xe) => xe.id),
17562
17562
  gridRef: e
17563
17563
  }), V = K(() => {
@@ -17573,16 +17573,16 @@ const Bd = ({
17573
17573
  },
17574
17574
  [r, i]
17575
17575
  ), {
17576
- formHasChanges: P,
17576
+ formHasChanges: L,
17577
17577
  onFormChanges: U,
17578
17578
  showFormChangesDialogIfNeeded: W,
17579
17579
  setFormHasChanges: z
17580
- } = Ld({
17580
+ } = Pd({
17581
17581
  items: l,
17582
17582
  formView: i.get("form"),
17583
17583
  treeView: i.get("tree"),
17584
17584
  relation: y,
17585
- context: L,
17585
+ context: P,
17586
17586
  triggerChange: $
17587
17587
  }), {
17588
17588
  showFormModal: ee,
@@ -17601,7 +17601,7 @@ const Bd = ({
17601
17601
  items: l,
17602
17602
  setCurrentView: u,
17603
17603
  setItemIndex: p,
17604
- context: L,
17604
+ context: P,
17605
17605
  relation: y,
17606
17606
  formView: i.get("form"),
17607
17607
  onAfterSubmit: () => {
@@ -17619,7 +17619,7 @@ const Bd = ({
17619
17619
  triggerChange: $,
17620
17620
  items: l,
17621
17621
  views: i,
17622
- context: L,
17622
+ context: P,
17623
17623
  relation: y
17624
17624
  }), se = T(
17625
17625
  async (xe) => {
@@ -17682,7 +17682,7 @@ const Bd = ({
17682
17682
  Fe && Ve({
17683
17683
  model: y,
17684
17684
  domain: [["id", "in", Ge]],
17685
- context: L,
17685
+ context: P,
17686
17686
  views: [
17687
17687
  [(xe = i.get("tree")) == null ? void 0 : xe.view_id, "tree"],
17688
17688
  [(he = i.get("form")) == null ? void 0 : he.view_id, "form"]
@@ -17693,7 +17693,7 @@ const Bd = ({
17693
17693
  action_id: -1,
17694
17694
  action_type: "ir.actions.act_window"
17695
17695
  });
17696
- }, [Fe, Ve, y, Ge, L, i, V]);
17696
+ }, [Fe, Ve, y, Ge, P, i, V]);
17697
17697
  return /* @__PURE__ */ H(Re, { children: [
17698
17698
  /* @__PURE__ */ s(
17699
17699
  Si,
@@ -17704,7 +17704,7 @@ const Bd = ({
17704
17704
  model: y,
17705
17705
  readOnly: h || !1,
17706
17706
  isMany2Many: B,
17707
- formHasChanges: P,
17707
+ formHasChanges: L,
17708
17708
  totalItems: l.length,
17709
17709
  currentItemIndex: m,
17710
17710
  onDelete: le,
@@ -17718,7 +17718,7 @@ const Bd = ({
17718
17718
  showToggleButton: O,
17719
17719
  toolbar: (ze = i.get(f)) == null ? void 0 : ze.toolbar,
17720
17720
  treeView: i.get("tree"),
17721
- context: { ..._ == null ? void 0 : _(), ...L },
17721
+ context: { ..._ == null ? void 0 : _(), ...P },
17722
17722
  formRef: I,
17723
17723
  onRefreshParentValues: () => {
17724
17724
  var xe;
@@ -17738,7 +17738,7 @@ const Bd = ({
17738
17738
  onFetchRecords: R,
17739
17739
  ooui: F,
17740
17740
  treeView: i.get("tree"),
17741
- context: L,
17741
+ context: P,
17742
17742
  onRowDoubleClick: ge,
17743
17743
  showPointerCursorInRows: ve,
17744
17744
  onRowSelectionChange: N,
@@ -17762,7 +17762,7 @@ const Bd = ({
17762
17762
  ref: I,
17763
17763
  items: l,
17764
17764
  formView: i.get("form"),
17765
- context: L,
17765
+ context: P,
17766
17766
  relation: y,
17767
17767
  readOnly: h || !1,
17768
17768
  onChange: U
@@ -17779,7 +17779,7 @@ const Bd = ({
17779
17779
  defaultValues: te == null ? void 0 : te.defaultValues,
17780
17780
  visible: ee,
17781
17781
  onSubmitSucceed: ie,
17782
- parentContext: L,
17782
+ parentContext: P,
17783
17783
  onCancel: ue,
17784
17784
  readOnly: h,
17785
17785
  mustClearAfterSave: we,
@@ -17794,7 +17794,7 @@ const Bd = ({
17794
17794
  {
17795
17795
  domain: M,
17796
17796
  model: y,
17797
- context: L,
17797
+ context: P,
17798
17798
  visible: ne,
17799
17799
  onSelectValues: se,
17800
17800
  onCloseModal: pe
@@ -17807,7 +17807,7 @@ const Bd = ({
17807
17807
  view_id: i.get("graph").view_id,
17808
17808
  model: y,
17809
17809
  domain: [[`${o.inv_field}`, "=", w]],
17810
- context: L,
17810
+ context: P,
17811
17811
  limit: 0
17812
17812
  }
17813
17813
  ),
@@ -17915,7 +17915,7 @@ const Bd = ({
17915
17915
  const k = Cw(t, w.current);
17916
17916
  w.current = t, C.current = {}, x.current && (x.current = {}), k.length > 0 && (async () => {
17917
17917
  var $;
17918
- const V = k.filter((P) => P.treeValues).map((P) => P.treeValues);
17918
+ const V = k.filter((L) => L.treeValues).map((L) => L.treeValues);
17919
17919
  if (V.length === 0)
17920
17920
  return;
17921
17921
  const B = await cn(
@@ -17926,7 +17926,7 @@ const Bd = ({
17926
17926
  ($ = b == null ? void 0 : b.current) == null || $.updateRows(B);
17927
17927
  })(), (j = b == null ? void 0 : b.current) == null || j.unselectAll();
17928
17928
  }, [t, o, i]);
17929
- const D = St(() => t.length, [t]), L = St(() => Qs(
17929
+ const D = St(() => t.length, [t]), P = St(() => Qs(
17930
17930
  o,
17931
17931
  {
17932
17932
  ...Ko
@@ -17941,13 +17941,13 @@ const Bd = ({
17941
17941
  }) => {
17942
17942
  const V = br({
17943
17943
  state: Q
17944
- }), { results: B, colors: $, status: P } = await a({
17944
+ }), { results: B, colors: $, status: L } = await a({
17945
17945
  allItems: _.current,
17946
17946
  startRow: k,
17947
17947
  endRow: j,
17948
17948
  sortFields: V
17949
17949
  });
17950
- return C.current = { ...C.current, ...$ }, !x.current && P && (x.current = {}), P && (x.current = { ...x.current, ...P }), B;
17950
+ return C.current = { ...C.current, ...$ }, !x.current && L && (x.current = {}), L && (x.current = { ...x.current, ...L }), B;
17951
17951
  },
17952
17952
  [a]
17953
17953
  ), F = T((k) => {
@@ -17965,7 +17965,7 @@ const Bd = ({
17965
17965
  {
17966
17966
  ref: b,
17967
17967
  height: e || ww,
17968
- columns: L,
17968
+ columns: P,
17969
17969
  onRequestData: M,
17970
17970
  onRowDoubleClick: n,
17971
17971
  showPointerCursorInRows: y,
@@ -18006,7 +18006,7 @@ const Bd = ({
18006
18006
  });
18007
18007
  }, Tw = ["form", "tree", "graph"], _w = (t) => {
18008
18008
  var De, Ue, ve;
18009
- const e = X(null), { value: n, onChange: r, ooui: o, views: i } = t, { items: a = [] } = n || {}, d = Pd({ one2manyItems: a }), { currentView: c, setCurrentView: l, itemIndex: f, setItemIndex: u } = Me(
18009
+ const e = X(null), { value: n, onChange: r, ooui: o, views: i } = t, { items: a = [] } = n || {}, d = Ld({ one2manyItems: a }), { currentView: c, setCurrentView: l, itemIndex: f, setItemIndex: u } = Me(
18010
18010
  Bn
18011
18011
  ), {
18012
18012
  readOnly: m,
@@ -18023,7 +18023,7 @@ const Bd = ({
18023
18023
  fieldName: y
18024
18024
  }), {
18025
18025
  treeOoui: D,
18026
- onTreeFetchRows: L,
18026
+ onTreeFetchRows: P,
18027
18027
  selectedRowKeys: M,
18028
18028
  setSelectedRowKeys: F,
18029
18029
  onChangeFirstVisibleRowIndex: R,
@@ -18055,9 +18055,9 @@ const Bd = ({
18055
18055
  ), {
18056
18056
  formHasChanges: B,
18057
18057
  onFormChanges: $,
18058
- showFormChangesDialogIfNeeded: P,
18058
+ showFormChangesDialogIfNeeded: L,
18059
18059
  setFormHasChanges: U
18060
- } = Ld({
18060
+ } = Pd({
18061
18061
  items: d,
18062
18062
  formView: i.get("form"),
18063
18063
  treeView: i.get("tree"),
@@ -18075,7 +18075,7 @@ const Bd = ({
18075
18075
  } = Bd({
18076
18076
  activeId: b,
18077
18077
  inv_field: o.inv_field,
18078
- showFormChangesDialogIfNeeded: P,
18078
+ showFormChangesDialogIfNeeded: L,
18079
18079
  currentView: c,
18080
18080
  triggerChange: V,
18081
18081
  items: d,
@@ -18090,7 +18090,7 @@ const Bd = ({
18090
18090
  onCloseSearchModal: ne,
18091
18091
  searchItem: G
18092
18092
  } = Hd({
18093
- showFormChangesDialogIfNeeded: P,
18093
+ showFormChangesDialogIfNeeded: L,
18094
18094
  currentView: c,
18095
18095
  triggerChange: V,
18096
18096
  items: d,
@@ -18106,7 +18106,7 @@ const Bd = ({
18106
18106
  setSelectedRowKeys: F
18107
18107
  }), ae = () => {
18108
18108
  const Ce = Array.from(i.keys()), He = Ce[(Ce.indexOf(c) + 1) % Ce.length];
18109
- c === "form" ? P(() => {
18109
+ c === "form" ? L(() => {
18110
18110
  l(He);
18111
18111
  }) : l(He);
18112
18112
  }, se = ct(
@@ -18117,12 +18117,12 @@ const Bd = ({
18117
18117
  // eslint-disable-next-line react-hooks/exhaustive-deps
18118
18118
  [d]
18119
18119
  ), le = T(() => {
18120
- f > 0 && (c === "form" ? P(() => {
18120
+ f > 0 && (c === "form" ? L(() => {
18121
18121
  u(f - 1);
18122
18122
  }) : u(f - 1));
18123
- }, [c, f, u, P]), Ee = T(() => {
18123
+ }, [c, f, u, L]), Ee = T(() => {
18124
18124
  const Ce = d.length;
18125
- f < Ce - 1 && (c === "form" ? P(() => {
18125
+ f < Ce - 1 && (c === "form" ? L(() => {
18126
18126
  u(f + 1);
18127
18127
  }) : u(f + 1));
18128
18128
  }, [
@@ -18130,7 +18130,7 @@ const Bd = ({
18130
18130
  f,
18131
18131
  d.length,
18132
18132
  u,
18133
- P
18133
+ L
18134
18134
  ]), ge = K(() => {
18135
18135
  var Ce;
18136
18136
  return ((Ce = i.get("form")) == null ? void 0 : Ce.fields) !== void 0;
@@ -18174,7 +18174,7 @@ const Bd = ({
18174
18174
  height: o.height,
18175
18175
  items: d,
18176
18176
  readOnly: m || !1,
18177
- onFetchRecords: L,
18177
+ onFetchRecords: P,
18178
18178
  ooui: D,
18179
18179
  context: I,
18180
18180
  onRowDoubleClick: se,
@@ -18263,7 +18263,7 @@ const Bd = ({
18263
18263
  q.getHandler().getToolbar
18264
18264
  );
18265
18265
  Je(() => {
18266
- L();
18266
+ P();
18267
18267
  }, [e]), ye(() => () => {
18268
18268
  _(), x();
18269
18269
  }, []);
@@ -18303,7 +18303,7 @@ const Bd = ({
18303
18303
  type: R,
18304
18304
  context: { ...h == null ? void 0 : h(), ...a }
18305
18305
  });
18306
- }, L = async () => {
18306
+ }, P = async () => {
18307
18307
  l(!0), u(void 0);
18308
18308
  try {
18309
18309
  if (n && n.length > 0) {
@@ -18514,7 +18514,7 @@ function Mw(t) {
18514
18514
  }
18515
18515
  );
18516
18516
  }
18517
- const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
18517
+ const { useToken: Nw } = ot, { TextArea: Ps } = Nt, kw = (t) => {
18518
18518
  const { ooui: e } = t, { id: n, readOnly: r, required: o, height: i, translatable: a } = e, { token: d } = Nw(), c = o && !r ? { backgroundColor: d.colorPrimaryBg } : void 0, l = Me(ft), { elementHasLostFocus: f } = l || {};
18519
18519
  return /* @__PURE__ */ s(Ze, { required: o, ...t, children: a ? /* @__PURE__ */ s(
18520
18520
  $w,
@@ -18524,7 +18524,7 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
18524
18524
  requiredStyle: c
18525
18525
  }
18526
18526
  ) : /* @__PURE__ */ s(
18527
- Ls,
18527
+ Ps,
18528
18528
  {
18529
18529
  disabled: r || a,
18530
18530
  style: {
@@ -18563,7 +18563,7 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
18563
18563
  u || m(!0);
18564
18564
  },
18565
18565
  children: /* @__PURE__ */ s(
18566
- Ls,
18566
+ Ps,
18567
18567
  {
18568
18568
  value: t,
18569
18569
  onChange: (g) => {
@@ -18600,7 +18600,7 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
18600
18600
  )
18601
18601
  ] }) : /* @__PURE__ */ H(Re, { children: [
18602
18602
  /* @__PURE__ */ s(ut, { gutter: 8, wrap: !1, children: /* @__PURE__ */ s(
18603
- Ls,
18603
+ Ps,
18604
18604
  {
18605
18605
  value: t,
18606
18606
  onChange: (g) => {
@@ -18616,7 +18616,7 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
18616
18616
  }
18617
18617
  ) }),
18618
18618
  /* @__PURE__ */ s(ut, { justify: "end", style: { paddingTop: 5 }, children: /* @__PURE__ */ s(
18619
- Lt,
18619
+ Pt,
18620
18620
  {
18621
18621
  tooltip: p("translate"),
18622
18622
  icon: /* @__PURE__ */ s(fl, {}),
@@ -18627,13 +18627,13 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
18627
18627
  }
18628
18628
  ) })
18629
18629
  ] });
18630
- }, Lw = (t) => {
18630
+ }, Pw = (t) => {
18631
18631
  const { ooui: e } = t, { label: n, icon: r } = e, o = jt(r || "");
18632
18632
  return /* @__PURE__ */ s(Kr, { orientation: "left", className: "text-sm", children: (o || n) && /* @__PURE__ */ H(yt, { children: [
18633
18633
  o ? /* @__PURE__ */ s(o, {}) : null,
18634
18634
  n
18635
18635
  ] }) });
18636
- }, Pw = ({
18636
+ }, Lw = ({
18637
18637
  model: t,
18638
18638
  context: e,
18639
18639
  selectedRegistersToExport: n,
@@ -18791,12 +18791,12 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
18791
18791
  }, Wd = (t) => t.type === "many2one" || t.type === "one2many" || t.type === "many2many", Vw = ({
18792
18792
  parentKey: t,
18793
18793
  key: e
18794
- }) => `${t ? t + "/" : ""}${e}`, Ps = (t) => t.indexOf("/") === -1 ? t : t.split("/").slice(0, -1).join("/"), Vs = (t) => {
18794
+ }) => `${t ? t + "/" : ""}${e}`, Ls = (t) => t.indexOf("/") === -1 ? t : t.split("/").slice(0, -1).join("/"), Vs = (t) => {
18795
18795
  if (t.indexOf("/") === -1)
18796
18796
  return t;
18797
18797
  const e = t.split("/");
18798
18798
  return e[e.length - 1];
18799
- }, Bs = (t, e) => t.indexOf("/") === -1 ? e["/"] : e == null ? void 0 : e[Ps(t)], Bw = ({
18799
+ }, Bs = (t, e) => t.indexOf("/") === -1 ? e["/"] : e == null ? void 0 : e[Ls(t)], Bw = ({
18800
18800
  title: t,
18801
18801
  parentTitle: e
18802
18802
  }) => `${e ? e + " → " : ""}${t}`, Hw = async ({
@@ -18826,8 +18826,8 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
18826
18826
  ...new Set(
18827
18827
  e.filter((n) => {
18828
18828
  var r, o;
18829
- return n.indexOf("/") === -1 ? !((r = t["/"]) != null && r[n]) : !((o = t == null ? void 0 : t[Ps(n)]) != null && o[n]);
18830
- }).map((n) => Ps(n))
18829
+ return n.indexOf("/") === -1 ? !((r = t["/"]) != null && r[n]) : !((o = t == null ? void 0 : t[Ls(n)]) != null && o[n]);
18830
+ }).map((n) => Ls(n))
18831
18831
  )
18832
18832
  ]), Uw = async ({
18833
18833
  predefinedExports: t,
@@ -18888,7 +18888,7 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
18888
18888
  onGetPredefinedExports: p,
18889
18889
  onSavePredefinedExport: g,
18890
18890
  onRemovePredefinedExport: h
18891
- } = Pw({
18891
+ } = Lw({
18892
18892
  model: r,
18893
18893
  context: o,
18894
18894
  domain: d,
@@ -19025,7 +19025,7 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
19025
19025
  const { ooui: e } = t, { required: n } = e;
19026
19026
  return /* @__PURE__ */ s(Ze, { required: n, ...t, children: /* @__PURE__ */ s(n0, { ooui: e }) });
19027
19027
  }, n0 = (t) => {
19028
- const { ooui: e, value: n, onChange: r } = t, { readOnly: o, required: i, filenameField: a } = e, { token: d } = e0(), c = i && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, l = X(null), { setFieldValue: f, getFieldValue: u } = Me(ft) || {}, { t: m } = Oe(), p = n ? Lm(n) : "", g = (C) => {
19028
+ const { ooui: e, value: n, onChange: r } = t, { readOnly: o, required: i, filenameField: a } = e, { token: d } = e0(), c = i && !o ? { backgroundColor: d.colorPrimaryBg } : void 0, l = X(null), { setFieldValue: f, getFieldValue: u } = Me(ft) || {}, { t: m } = Oe(), p = n ? Pm(n) : "", g = (C) => {
19029
19029
  r == null || r(C);
19030
19030
  };
19031
19031
  async function h() {
@@ -19080,7 +19080,7 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
19080
19080
  ),
19081
19081
  /* @__PURE__ */ s(Ke, { icon: /* @__PURE__ */ s(Iu, {}), disabled: !n, onClick: y, children: m("open") }),
19082
19082
  /* @__PURE__ */ s(
19083
- Lt,
19083
+ Pt,
19084
19084
  {
19085
19085
  tooltip: m("download"),
19086
19086
  disabled: !n,
@@ -19089,7 +19089,7 @@ const { useToken: Nw } = ot, { TextArea: Ls } = Nt, kw = (t) => {
19089
19089
  }
19090
19090
  ),
19091
19091
  /* @__PURE__ */ s(
19092
- Lt,
19092
+ Pt,
19093
19093
  {
19094
19094
  tooltip: m("clear"),
19095
19095
  disabled: o || !n,
@@ -19287,7 +19287,7 @@ function o0(t) {
19287
19287
  const s0 = (t) => {
19288
19288
  const { disabled: e, commentCount: n, onClick: r } = t, { t: o } = Oe();
19289
19289
  return /* @__PURE__ */ H(
19290
- Lt,
19290
+ Pt,
19291
19291
  {
19292
19292
  tooltip: o("comments"),
19293
19293
  disabled: e,
@@ -19413,7 +19413,7 @@ function l0({ toolbar: t }) {
19413
19413
  setResults: I,
19414
19414
  formIsLoading: O,
19415
19415
  attachments: D,
19416
- formRef: L,
19416
+ formRef: P,
19417
19417
  setFormHasChanges: M,
19418
19418
  previousView: F,
19419
19419
  setPreviousView: R,
@@ -19425,7 +19425,7 @@ function l0({ toolbar: t }) {
19425
19425
  commentCount: V,
19426
19426
  refreshComments: B,
19427
19427
  objectProps: $
19428
- } = Gt(), { openDefaultActionForModel: P } = e || {}, U = r && !($ != null && $.without_comments), W = !($ != null && $.without_attachments), z = K(
19428
+ } = Gt(), { openDefaultActionForModel: L } = e || {}, U = r && !($ != null && $.without_comments), W = !($ != null && $.without_attachments), z = K(
19429
19429
  () => p || w || O || _,
19430
19430
  [p, w, O, _]
19431
19431
  ), ee = T(
@@ -19435,20 +19435,20 @@ function l0({ toolbar: t }) {
19435
19435
  [m, n]
19436
19436
  ), te = T(() => {
19437
19437
  ee(() => {
19438
- L.current.fetchValues(), B == null || B();
19438
+ P.current.fetchValues(), B == null || B();
19439
19439
  });
19440
- }, [ee, L, B]), { actionButtonProps: we, printButtonProps: ue, relateButtonProps: ie } = Od({
19440
+ }, [ee, P, B]), { actionButtonProps: we, printButtonProps: ue, relateButtonProps: ie } = Od({
19441
19441
  toolbar: t,
19442
19442
  model: C,
19443
19443
  mustDisableButtons: z,
19444
- formRef: L,
19444
+ formRef: P,
19445
19445
  onRefreshParentValues: te
19446
19446
  }), ce = T(async () => {
19447
19447
  try {
19448
19448
  x == null || x(!0), await q.getHandler().deleteObjects({
19449
19449
  model: C,
19450
19450
  ids: [g],
19451
- context: L.current.getContext()
19451
+ context: P.current.getContext()
19452
19452
  });
19453
19453
  const se = h == null ? void 0 : h.filter(
19454
19454
  (Ee) => Ee.id !== g
@@ -19465,7 +19465,7 @@ function l0({ toolbar: t }) {
19465
19465
  g,
19466
19466
  v,
19467
19467
  C,
19468
- L,
19468
+ P,
19469
19469
  h,
19470
19470
  b,
19471
19471
  y,
@@ -19478,7 +19478,7 @@ function l0({ toolbar: t }) {
19478
19478
  const se = await q.getHandler().duplicate({
19479
19479
  id: g,
19480
19480
  model: C,
19481
- context: L.current.getContext()
19481
+ context: P.current.getContext()
19482
19482
  });
19483
19483
  se && await (A == null ? void 0 : A([se]));
19484
19484
  } catch (se) {
@@ -19489,7 +19489,7 @@ function l0({ toolbar: t }) {
19489
19489
  }, [
19490
19490
  g,
19491
19491
  C,
19492
- L,
19492
+ P,
19493
19493
  A,
19494
19494
  S,
19495
19495
  d
@@ -19500,46 +19500,46 @@ function l0({ toolbar: t }) {
19500
19500
  [l, R, M, f]
19501
19501
  ), G = T(async () => {
19502
19502
  const se = await pr({ onFormSave: u });
19503
- se.succeed && (P == null || P({
19503
+ se.succeed && (L == null || L({
19504
19504
  ...Ha(
19505
19505
  C,
19506
19506
  se.currentId
19507
19507
  ),
19508
19508
  initialViewType: "form"
19509
19509
  }));
19510
- }, [C, u, P]), pe = T(async () => {
19510
+ }, [C, u, L]), pe = T(async () => {
19511
19511
  const se = await pr({ onFormSave: u });
19512
- se.succeed && (P == null || P({
19512
+ se.succeed && (L == null || L({
19513
19513
  ...Ha(
19514
19514
  C,
19515
19515
  se.currentId
19516
19516
  ),
19517
19517
  initialViewType: "tree"
19518
19518
  }));
19519
- }, [C, u, P]), ae = T(
19519
+ }, [C, u, L]), ae = T(
19520
19520
  async (se) => {
19521
- (await pr({ onFormSave: u })).succeed && (P == null || P({
19521
+ (await pr({ onFormSave: u })).succeed && (L == null || L({
19522
19522
  model: "ir.attachment",
19523
19523
  res_id: se.id,
19524
19524
  initialViewType: "form"
19525
19525
  }));
19526
19526
  },
19527
- [u, P]
19527
+ [u, L]
19528
19528
  );
19529
19529
  return jn(
19530
19530
  "pagedown",
19531
19531
  async () => {
19532
- !N || !await L.current.cancelUnsavedChanges() || o();
19532
+ !N || !await P.current.cancelUnsavedChanges() || o();
19533
19533
  },
19534
19534
  { enableOnFormTags: !0, preventDefault: !0 },
19535
- [N, o, L]
19535
+ [N, o, P]
19536
19536
  ), jn(
19537
19537
  "pageup",
19538
19538
  async () => {
19539
- !N || !await L.current.cancelUnsavedChanges() || i();
19539
+ !N || !await P.current.cancelUnsavedChanges() || i();
19540
19540
  },
19541
19541
  { enableOnFormTags: !0, preventDefault: !0 },
19542
- [N, i, L]
19542
+ [N, i, P]
19543
19543
  ), jn(
19544
19544
  "ctrl+s,command+s",
19545
19545
  () => N && (u == null ? void 0 : u()),
@@ -19548,7 +19548,7 @@ function l0({ toolbar: t }) {
19548
19548
  ), jn(
19549
19549
  "ctrl+l,command+l",
19550
19550
  async () => {
19551
- !N || !F || !await L.current.cancelUnsavedChanges() || (R == null || R(l), f == null || f(F));
19551
+ !N || !F || !await P.current.cancelUnsavedChanges() || (R == null || R(l), f == null || f(F));
19552
19552
  },
19553
19553
  { enableOnFormTags: !0, preventDefault: !0 },
19554
19554
  [
@@ -19557,7 +19557,7 @@ function l0({ toolbar: t }) {
19557
19557
  l,
19558
19558
  R,
19559
19559
  f,
19560
- L
19560
+ P
19561
19561
  ]
19562
19562
  ), l ? /* @__PURE__ */ H(yt, { wrap: !0, children: [
19563
19563
  O && /* @__PURE__ */ H(Re, { children: [
@@ -19646,8 +19646,8 @@ function l0({ toolbar: t }) {
19646
19646
  }
19647
19647
  ),
19648
19648
  /* @__PURE__ */ s(Bt, {}),
19649
- /* @__PURE__ */ s(_n, { icon: /* @__PURE__ */ s(Lo, {}), ...we }),
19650
- /* @__PURE__ */ s(_n, { icon: /* @__PURE__ */ s(Po, {}), ...ue }),
19649
+ /* @__PURE__ */ s(_n, { icon: /* @__PURE__ */ s(Po, {}), ...we }),
19650
+ /* @__PURE__ */ s(_n, { icon: /* @__PURE__ */ s(Lo, {}), ...ue }),
19651
19651
  /* @__PURE__ */ s(_n, { icon: /* @__PURE__ */ s(Vo, {}), ...ie }),
19652
19652
  /* @__PURE__ */ s(
19653
19653
  o0,
@@ -19722,7 +19722,7 @@ const Ha = (t, e) => ({
19722
19722
  d ? null : /* @__PURE__ */ s(Xe, { flex: "none", style: { paddingRight: 0 }, children: p ? /* @__PURE__ */ s(
19723
19723
  Ke,
19724
19724
  {
19725
- icon: /* @__PURE__ */ s(Ln, {}),
19725
+ icon: /* @__PURE__ */ s(Pn, {}),
19726
19726
  onClick: () => {
19727
19727
  o(n) && (g(!1), y(!1));
19728
19728
  },
@@ -19962,7 +19962,7 @@ const h0 = {
19962
19962
  setViewIsLoading: I = void 0,
19963
19963
  limit: O,
19964
19964
  setLimit: D,
19965
- searchParams: L,
19965
+ searchParams: P,
19966
19966
  searchValues: M,
19967
19967
  setSearchValues: F,
19968
19968
  currentView: R,
@@ -19972,14 +19972,14 @@ const h0 = {
19972
19972
  ye(() => {
19973
19973
  n && V(!0);
19974
19974
  }, [n]);
19975
- const P = St(
19976
- () => wn(L || [], i),
19977
- [i, L]
19975
+ const L = St(
19976
+ () => wn(P || [], i),
19977
+ [i, P]
19978
19978
  ), U = ct(async () => {
19979
19979
  if (!n)
19980
19980
  return;
19981
19981
  const ne = await q.getHandler().searchAllIds({
19982
- params: N ? i : P,
19982
+ params: N ? i : L,
19983
19983
  model: r,
19984
19984
  context: o,
19985
19985
  totalItems: A
@@ -19989,7 +19989,7 @@ const h0 = {
19989
19989
  n,
19990
19990
  N,
19991
19991
  i,
19992
- P,
19992
+ L,
19993
19993
  r,
19994
19994
  o,
19995
19995
  A
@@ -20010,7 +20010,7 @@ const h0 = {
20010
20010
  n,
20011
20011
  N,
20012
20012
  i,
20013
- P,
20013
+ L,
20014
20014
  A,
20015
20015
  k,
20016
20016
  h
@@ -20023,7 +20023,7 @@ const h0 = {
20023
20023
  model: r,
20024
20024
  setSearchTreeNameSearch: S,
20025
20025
  setSelectedRowItems: y,
20026
- searchParams: L,
20026
+ searchParams: P,
20027
20027
  setSearchValues: F,
20028
20028
  setSearchParams: v,
20029
20029
  setSearchVisible: C,
@@ -20095,9 +20095,9 @@ const h0 = {
20095
20095
  viewData: e,
20096
20096
  model: r,
20097
20097
  context: o,
20098
- domain: wn(L || [], i),
20098
+ domain: wn(P || [], i),
20099
20099
  limit: k ? O : void 0,
20100
- fixedHeight: Pp,
20100
+ fixedHeight: Lp,
20101
20101
  manualIds: B
20102
20102
  }
20103
20103
  )
@@ -20398,14 +20398,14 @@ const M0 = {
20398
20398
  }
20399
20399
  )
20400
20400
  }
20401
- ) }) }), { Text: go } = Zt, { useToken: $0 } = ot, L0 = {
20401
+ ) }) }), { Text: go } = Zt, { useToken: $0 } = ot, P0 = {
20402
20402
  display: "flex",
20403
20403
  alignItems: "center",
20404
20404
  gap: 12,
20405
20405
  marginTop: 16,
20406
20406
  marginBottom: 12,
20407
20407
  width: "100%"
20408
- }, P0 = {
20408
+ }, L0 = {
20409
20409
  display: "flex",
20410
20410
  alignItems: "center",
20411
20411
  gap: 8
@@ -20473,7 +20473,10 @@ const M0 = {
20473
20473
  backgroundColor: e ? l.colorPrimaryBg : l.colorFillTertiary,
20474
20474
  padding: "8px 12px",
20475
20475
  borderRadius: 12,
20476
- display: "inline-block"
20476
+ display: "inline-block",
20477
+ maxWidth: "100%",
20478
+ overflowWrap: "break-word",
20479
+ wordBreak: "break-word"
20477
20480
  }),
20478
20481
  [l.colorPrimaryBg, l.colorFillTertiary, e]
20479
20482
  ), I = K(
@@ -20505,7 +20508,7 @@ const M0 = {
20505
20508
  transition: "background-color 0.1s ease-out"
20506
20509
  }),
20507
20510
  [u, e, c]
20508
- ), L = K(
20511
+ ), P = K(
20509
20512
  () => ({
20510
20513
  position: "absolute",
20511
20514
  top: "50%",
@@ -20537,7 +20540,7 @@ const M0 = {
20537
20540
  c == null || c(t.id);
20538
20541
  }
20539
20542
  });
20540
- }, [f, c, t.id]), k = /* @__PURE__ */ s("div", { style: P0, children: e ? /* @__PURE__ */ H(Re, { children: [
20543
+ }, [f, c, t.id]), k = /* @__PURE__ */ s("div", { style: L0, children: e ? /* @__PURE__ */ H(Re, { children: [
20541
20544
  /* @__PURE__ */ s(go, { style: Wa, children: h }),
20542
20545
  /* @__PURE__ */ s(
20543
20546
  Do,
@@ -20559,7 +20562,7 @@ const M0 = {
20559
20562
  /* @__PURE__ */ s(go, { style: Wa, children: h })
20560
20563
  ] }) }), j = /* @__PURE__ */ s(Ht, { title: y, children: /* @__PURE__ */ s(go, { style: O, children: v }) });
20561
20564
  return /* @__PURE__ */ s(vt, { children: /* @__PURE__ */ H(Re, { children: [
20562
- r && o && /* @__PURE__ */ H("div", { style: L0, children: [
20565
+ r && o && /* @__PURE__ */ H("div", { style: P0, children: [
20563
20566
  /* @__PURE__ */ s("div", { style: x }),
20564
20567
  /* @__PURE__ */ s(go, { style: w, children: o }),
20565
20568
  /* @__PURE__ */ s("div", { style: x })
@@ -20579,7 +20582,7 @@ const M0 = {
20579
20582
  {
20580
20583
  role: "button",
20581
20584
  "aria-label": f("delete"),
20582
- style: L,
20585
+ style: P,
20583
20586
  onClick: N,
20584
20587
  onMouseEnter: M,
20585
20588
  onMouseLeave: F,
@@ -20683,7 +20686,7 @@ const H0 = tt(Kd), { Title: j0, Text: U0 } = Zt, { useToken: W0 } = ot, z0 = (t)
20683
20686
  onToggleMute: b,
20684
20687
  lastMessageRead: C,
20685
20688
  onMarkAsRead: x
20686
- } = t, { token: w } = W0(), { t: _ } = Oe(), [S, I] = E(""), [O, D] = E([]), [L, M] = E(e), [F, R] = E([]), [A, N] = E(!1), [k, j] = E(!1), [Q, V] = E(!1), [B, $] = E(!1), [P, U] = E(!1), [W, z] = E(!1), ee = X(null), te = X(null), we = X(null), ue = X(/* @__PURE__ */ new Map()), ie = X(null), ce = X(r), oe = X(null), ne = n.length > 0 ? n[0].id : null, G = C !== void 0, pe = K(
20689
+ } = t, { token: w } = W0(), { t: _ } = Oe(), [S, I] = E(""), [O, D] = E([]), [P, M] = E(e), [F, R] = E([]), [A, N] = E(!1), [k, j] = E(!1), [Q, V] = E(!1), [B, $] = E(!1), [L, U] = E(!1), [W, z] = E(!1), ee = X(null), te = X(null), we = X(null), ue = X(/* @__PURE__ */ new Map()), ie = X(null), ce = X(r), oe = X(null), ne = n.length > 0 ? n[0].id : null, G = C !== void 0, pe = K(
20687
20690
  () => O.some((he) => he.status === "sending"),
20688
20691
  [O]
20689
20692
  ), ae = K(() => {
@@ -20780,7 +20783,7 @@ const H0 = tt(Kd), { Title: j0, Text: U0 } = Zt, { useToken: W0 } = ot, z0 = (t)
20780
20783
  []
20781
20784
  );
20782
20785
  ye(() => {
20783
- e && n.length > 0 && !r && !Q && G && P && (ae && B && oe.current ? (V(!0), requestAnimationFrame(() => {
20786
+ e && n.length > 0 && !r && !Q && G && L && (ae && B && oe.current ? (V(!0), requestAnimationFrame(() => {
20784
20787
  requestAnimationFrame(() => {
20785
20788
  oe.current && ve(oe.current);
20786
20789
  });
@@ -20791,7 +20794,7 @@ const H0 = tt(Kd), { Title: j0, Text: U0 } = Zt, { useToken: W0 } = ot, z0 = (t)
20791
20794
  r,
20792
20795
  Q,
20793
20796
  G,
20794
- P,
20797
+ L,
20795
20798
  ae,
20796
20799
  B,
20797
20800
  Ue,
@@ -20860,7 +20863,7 @@ const H0 = tt(Kd), { Title: j0, Text: U0 } = Zt, { useToken: W0 } = ot, z0 = (t)
20860
20863
  }, []), xe = T(() => {
20861
20864
  j(!1);
20862
20865
  }, []);
20863
- return L ? /* @__PURE__ */ s(Rl, { onExitComplete: He, children: e && /* @__PURE__ */ H(
20866
+ return P ? /* @__PURE__ */ s(Rl, { onExitComplete: He, children: e && /* @__PURE__ */ H(
20864
20867
  Es.div,
20865
20868
  {
20866
20869
  initial: { width: 0, opacity: 0 },
@@ -21173,7 +21176,7 @@ const H0 = tt(Kd), { Title: j0, Text: U0 } = Zt, { useToken: W0 } = ot, z0 = (t)
21173
21176
  comments: I,
21174
21177
  participants: O,
21175
21178
  userStatus: D,
21176
- loading: L,
21179
+ loading: P,
21177
21180
  fetchComments: M,
21178
21181
  addComment: F,
21179
21182
  deleteComment: R,
@@ -21216,7 +21219,7 @@ const H0 = tt(Kd), { Title: j0, Text: U0 } = Zt, { useToken: W0 } = ot, z0 = (t)
21216
21219
  [F, M, N]
21217
21220
  ), $ = T(() => {
21218
21221
  h == null || h(!1);
21219
- }, [h]), P = T(
21222
+ }, [h]), L = T(
21220
21223
  (ee, te) => {
21221
21224
  if (ee === void 0 || !u)
21222
21225
  return;
@@ -21276,7 +21279,7 @@ const H0 = tt(Kd), { Title: j0, Text: U0 } = Zt, { useToken: W0 } = ot, z0 = (t)
21276
21279
  actionDomain: i,
21277
21280
  id: o,
21278
21281
  parentContext: d,
21279
- onSubmitSucceed: P
21282
+ onSubmitSucceed: L
21280
21283
  }
21281
21284
  ) }),
21282
21285
  S && o !== void 0 && /* @__PURE__ */ s(
@@ -21284,7 +21287,7 @@ const H0 = tt(Kd), { Title: j0, Text: U0 } = Zt, { useToken: W0 } = ot, z0 = (t)
21284
21287
  {
21285
21288
  visible: g ?? !1,
21286
21289
  comments: I,
21287
- loading: L,
21290
+ loading: P,
21288
21291
  model: r,
21289
21292
  resourceId: o,
21290
21293
  onClose: $,
@@ -21295,7 +21298,7 @@ const H0 = tt(Kd), { Title: j0, Text: U0 } = Zt, { useToken: W0 } = ot, z0 = (t)
21295
21298
  currentUserId: x == null ? void 0 : x.uid,
21296
21299
  canAddComment: b == null ? void 0 : b.write,
21297
21300
  participants: O,
21298
- participantsLoading: L,
21301
+ participantsLoading: P,
21299
21302
  isParticipant: k,
21300
21303
  isMuted: j,
21301
21304
  muteUpdating: Q,
@@ -21559,7 +21562,7 @@ const lC = ({
21559
21562
  }, [f]), { runAction: I } = Jd({
21560
21563
  context: d,
21561
21564
  onRefreshParentValues: S
21562
- }), { attributes: O, listeners: D, setNodeRef: L, isDragging: M } = Df({
21565
+ }), { attributes: O, listeners: D, setNodeRef: P, isDragging: M } = Df({
21563
21566
  id: e.id,
21564
21567
  disabled: !r,
21565
21568
  data: { columnId: m }
@@ -21577,10 +21580,10 @@ const lC = ({
21577
21580
  widgetMap: z
21578
21581
  };
21579
21582
  }, [n, e]), N = St(() => n.card_fields.filter(($) => {
21580
- const P = A.get($.id);
21581
- return !P || !P.invisible;
21583
+ const L = A.get($.id);
21584
+ return !L || !L.invisible;
21582
21585
  }), [n.card_fields, A]), k = T(
21583
- ($, P) => {
21586
+ ($, L) => {
21584
21587
  const U = $.id;
21585
21588
  if (!U || !n.fields[U])
21586
21589
  return null;
@@ -21610,7 +21613,7 @@ const lC = ({
21610
21613
  ie(),
21611
21614
  /* @__PURE__ */ s("span", { style: { fontSize: "12px", fontWeight: 600 }, children: oe })
21612
21615
  ] });
21613
- return P && c ? /* @__PURE__ */ s("div", { style: { marginBottom: "4px" }, children: /* @__PURE__ */ s(Ga, { onClick: ue, children: ne }) }, U) : /* @__PURE__ */ s(
21616
+ return L && c ? /* @__PURE__ */ s("div", { style: { marginBottom: "4px" }, children: /* @__PURE__ */ s(Ga, { onClick: ue, children: ne }) }, U) : /* @__PURE__ */ s(
21614
21617
  "div",
21615
21618
  {
21616
21619
  style: { marginBottom: "4px" },
@@ -21624,18 +21627,18 @@ const lC = ({
21624
21627
  ie(),
21625
21628
  /* @__PURE__ */ s(qa, { strong: !0, style: { fontSize: "12px" }, children: W ? W.toString() : "-" })
21626
21629
  ] });
21627
- return P && c ? /* @__PURE__ */ s("div", { style: { marginBottom: "4px" }, children: /* @__PURE__ */ s(Ga, { onClick: ue, children: ce }) }, U) : /* @__PURE__ */ s("div", { style: { marginBottom: "4px" }, children: ce }, U);
21630
+ return L && c ? /* @__PURE__ */ s("div", { style: { marginBottom: "4px" }, children: /* @__PURE__ */ s(Ga, { onClick: ue, children: ce }) }, U) : /* @__PURE__ */ s("div", { style: { marginBottom: "4px" }, children: ce }, U);
21628
21631
  },
21629
21632
  [e, d, n.fields, c]
21630
21633
  ), j = T(
21631
- async ($, P) => {
21634
+ async ($, L) => {
21632
21635
  if ($.stopPropagation(), !b) {
21633
- C(P.id);
21636
+ C(L.id);
21634
21637
  try {
21635
- if (P.buttonType === "object") {
21638
+ if (L.buttonType === "object") {
21636
21639
  const U = await w({
21637
21640
  model: o,
21638
- action: P.id,
21641
+ action: L.id,
21639
21642
  payload: [e.id],
21640
21643
  context: {
21641
21644
  ...d,
@@ -21669,7 +21672,7 @@ const lC = ({
21669
21672
  x
21670
21673
  ]
21671
21674
  ), Q = St(() => R.reduce(
21672
- ($, P) => ($[P.id] = (U) => j(U, P), $),
21675
+ ($, L) => ($[L.id] = (U) => j(U, L), $),
21673
21676
  {}
21674
21677
  ), [R, j]), V = T(
21675
21678
  ($) => {
@@ -21683,7 +21686,7 @@ const lC = ({
21683
21686
  return /* @__PURE__ */ H(
21684
21687
  "div",
21685
21688
  {
21686
- ref: L,
21689
+ ref: P,
21687
21690
  style: { ...F, position: "relative" },
21688
21691
  ...O,
21689
21692
  ...D,
@@ -21714,7 +21717,7 @@ const lC = ({
21714
21717
  a && /* @__PURE__ */ s(pC, { $color: a }),
21715
21718
  /* @__PURE__ */ H(vt, { children: [
21716
21719
  /* @__PURE__ */ s("div", { style: { marginBottom: "8px" }, children: N.map(
21717
- ($, P) => k($, P === 0)
21720
+ ($, L) => k($, L === 0)
21718
21721
  ) }),
21719
21722
  R.length > 0 && /* @__PURE__ */ s(yt, { size: [8, 8], wrap: !0, children: R.map(($) => /* @__PURE__ */ s(
21720
21723
  Ke,
@@ -21747,7 +21750,7 @@ const lC = ({
21747
21750
  fieldsToRetrieve: d = [],
21748
21751
  enabled: c = !0,
21749
21752
  kanbanDef: l
21750
- } = t, [f, u] = E([]), [m, p] = E({}), [g, h] = E(!1), [y, v] = E(!1), [b, C] = E(!1), [x, w] = E(null), [_, S] = E(0), [I, O] = E(!0), [D, L] = E(0), [M, F] = E({}), [R, A] = E({}), N = 30, [k, j] = Ne(
21753
+ } = t, [f, u] = E([]), [m, p] = E({}), [g, h] = E(!1), [y, v] = E(!1), [b, C] = E(!1), [x, w] = E(null), [_, S] = E(0), [I, O] = E(!0), [D, P] = E(0), [M, F] = E({}), [R, A] = E({}), N = 30, [k, j] = Ne(
21751
21754
  q.getHandler().searchForTree
21752
21755
  ), [Q, V] = Ne(
21753
21756
  q.getHandler().readAggregates
@@ -21757,7 +21760,7 @@ const lC = ({
21757
21760
  ye(() => () => {
21758
21761
  j(), V(), $();
21759
21762
  }, []);
21760
- const P = St(() => {
21763
+ const L = St(() => {
21761
21764
  if (!(l != null && l.aggregations))
21762
21765
  return;
21763
21766
  const te = l.aggregations;
@@ -21787,9 +21790,9 @@ const lC = ({
21787
21790
  context: r,
21788
21791
  name_search: a
21789
21792
  });
21790
- L(ae);
21793
+ P(ae);
21791
21794
  } catch (ae) {
21792
- ae.name !== "AbortError" && console.error("Error fetching column count:", ae), L(0);
21795
+ ae.name !== "AbortError" && console.error("Error fetching column count:", ae), P(0);
21793
21796
  }
21794
21797
  const ue = [
21795
21798
  .../* @__PURE__ */ new Set([...d, l.column_field])
@@ -21814,13 +21817,13 @@ const lC = ({
21814
21817
  name_search: a
21815
21818
  }
21816
21819
  );
21817
- if (u(G), a ? (S(0), O(!1)) : te ? (S((ae) => ae + N), O(G.length === N)) : (S(N), O(G.length === N)), P && !te)
21820
+ if (u(G), a ? (S(0), O(!1)) : te ? (S((ae) => ae + N), O(G.length === N)) : (S(N), O(G.length === N)), L && !te)
21818
21821
  if (G.length > 0)
21819
21822
  try {
21820
21823
  const se = await Q({
21821
21824
  model: e,
21822
21825
  domain: U,
21823
- aggregateFields: P,
21826
+ aggregateFields: L,
21824
21827
  context: r
21825
21828
  }), le = {};
21826
21829
  Object.entries(se).forEach(([Ee, ge]) => {
@@ -21863,7 +21866,7 @@ const lC = ({
21863
21866
  a,
21864
21867
  r,
21865
21868
  d,
21866
- P,
21869
+ L,
21867
21870
  l,
21868
21871
  k,
21869
21872
  B,
@@ -21993,7 +21996,7 @@ const lC = ({
21993
21996
  onMoveToPosition: I,
21994
21997
  onSelectAllInColumn: O,
21995
21998
  isFirstColumn: D = !1,
21996
- isLastColumn: L = !1,
21999
+ isLastColumn: P = !1,
21997
22000
  allColumns: M = [],
21998
22001
  activeId: F = null,
21999
22002
  overId: R = null,
@@ -22003,7 +22006,7 @@ const lC = ({
22003
22006
  label: k,
22004
22007
  originalValue: j
22005
22008
  } = n, { t: Q } = Oe(), { token: V } = CC(), [B, $] = E(!1), {
22006
- records: P,
22009
+ records: L,
22007
22010
  count: U,
22008
22011
  aggregates: W,
22009
22012
  colorsForRecords: z,
@@ -22035,15 +22038,15 @@ const lC = ({
22035
22038
  ), ye(() => {
22036
22039
  v(N, U);
22037
22040
  }, [N, U, v]), Je(() => {
22038
- b && P.length > 0 && b(N, P, z, ee);
22039
- }, [N, P, z, ee, b]);
22041
+ b && L.length > 0 && b(N, L, z, ee);
22042
+ }, [N, L, z, ee, b]);
22040
22043
  const { setNodeRef: G } = Tf({
22041
22044
  id: N
22042
- }), pe = K(() => P.map((me) => me.id), [P]), ae = u !== void 0 && U > u, se = K(() => W && Object.keys(W).length > 0 ? Object.values(W).map((me) => `${me.label}: ${me.amount}`).join(", ") : null, [W]), le = X(null);
22045
+ }), pe = K(() => L.map((me) => me.id), [L]), ae = u !== void 0 && U > u, se = K(() => W && Object.keys(W).length > 0 ? Object.values(W).map((me) => `${me.label}: ${me.amount}`).join(", ") : null, [W]), le = X(null);
22043
22046
  ye(() => {
22044
22047
  se && !we && !ie && (le.current = se);
22045
22048
  }, [se, we, ie]);
22046
- const Ee = K(() => se && !we && !ie ? se : le.current ? le.current : we && W && Object.keys(W).length > 0 ? Object.values(W).map((me) => `${me.label}: ...`).join(", ") : null, [se, W, we, ie]), ge = K(() => p ? P.reduce((me, de) => (me[de.id] = () => p(de), me), {}) : {}, [P, p]), De = K(() => g ? P.reduce((me, de) => (me[de.id] = (J) => g(de, N, J), me), {}) : {}, [P, g, N]), Ue = K(() => P.some((me) => ee == null ? void 0 : ee[me.id]), [P, ee]), ve = K(
22049
+ const Ee = K(() => se && !we && !ie ? se : le.current ? le.current : we && W && Object.keys(W).length > 0 ? Object.values(W).map((me) => `${me.label}: ...`).join(", ") : null, [se, W, we, ie]), ge = K(() => p ? L.reduce((me, de) => (me[de.id] = () => p(de), me), {}) : {}, [L, p]), De = K(() => g ? L.reduce((me, de) => (me[de.id] = (J) => g(de, N, J), me), {}) : {}, [L, g, N]), Ue = K(() => L.some((me) => ee == null ? void 0 : ee[me.id]), [L, ee]), ve = K(
22047
22050
  () => M.filter((me) => me.id !== N),
22048
22051
  [M, N]
22049
22052
  ), Ce = K(
@@ -22067,7 +22070,7 @@ const lC = ({
22067
22070
  key: "selectAllCards",
22068
22071
  label: Q("select_all_cards"),
22069
22072
  icon: /* @__PURE__ */ s(IC, { size: 16 }),
22070
- disabled: P.length === 0
22073
+ disabled: L.length === 0
22071
22074
  }
22072
22075
  ]
22073
22076
  },
@@ -22085,7 +22088,7 @@ const lC = ({
22085
22088
  key: "moveRight",
22086
22089
  label: Q("move_right"),
22087
22090
  icon: /* @__PURE__ */ s(_C, { size: 16 }),
22088
- disabled: L
22091
+ disabled: P
22089
22092
  },
22090
22093
  {
22091
22094
  key: "moveBefore",
@@ -22114,9 +22117,9 @@ const lC = ({
22114
22117
  Q,
22115
22118
  f,
22116
22119
  D,
22117
- L,
22120
+ P,
22118
22121
  ve,
22119
- P.length
22122
+ L.length
22120
22123
  ]
22121
22124
  ), He = T(
22122
22125
  ({ key: me }) => {
@@ -22162,12 +22165,12 @@ const lC = ({
22162
22165
  ), ze = T(
22163
22166
  (me) => {
22164
22167
  var J;
22165
- const de = (J = P[me]) == null ? void 0 : J.id;
22168
+ const de = (J = L[me]) == null ? void 0 : J.id;
22166
22169
  return de !== void 0 ? de : `${N}-placeholder-${me}`;
22167
22170
  },
22168
- [P, N]
22171
+ [L, N]
22169
22172
  ), xe = kf({
22170
- count: P.length,
22173
+ count: L.length,
22171
22174
  getScrollElement: () => Be.current,
22172
22175
  estimateSize: Ae,
22173
22176
  getItemKey: ze,
@@ -22176,8 +22179,8 @@ const lC = ({
22176
22179
  }), he = xe.getVirtualItems();
22177
22180
  return ye(() => {
22178
22181
  const [me] = [...he].reverse();
22179
- me && me.index >= P.length - 5 && ce && !ue && ne();
22180
- }, [he, P.length, ce, ue, ne]), U === 0 && !l.drag ? null : /* @__PURE__ */ H(
22182
+ me && me.index >= L.length - 5 && ce && !ue && ne();
22183
+ }, [he, L.length, ce, ue, ne]), U === 0 && !l.drag ? null : /* @__PURE__ */ H(
22181
22184
  "div",
22182
22185
  {
22183
22186
  style: {
@@ -22325,7 +22328,7 @@ const lC = ({
22325
22328
  position: "relative"
22326
22329
  },
22327
22330
  children: he.map((me) => {
22328
- const de = P[me.index];
22331
+ const de = L[me.index];
22329
22332
  return /* @__PURE__ */ s(
22330
22333
  "div",
22331
22334
  {
@@ -22384,7 +22387,7 @@ const lC = ({
22384
22387
  ] })
22385
22388
  }
22386
22389
  ),
22387
- P.length === 0 && !we && /* @__PURE__ */ s(
22390
+ L.length === 0 && !we && /* @__PURE__ */ s(
22388
22391
  "div",
22389
22392
  {
22390
22393
  style: {
@@ -22556,9 +22559,9 @@ const lC = ({
22556
22559
  onDragSuccess: x,
22557
22560
  onOpenColumnInNewTab: w,
22558
22561
  onSelectAllInColumn: _
22559
- } = t, { t: S } = Oe(), { showErrorNotification: I } = Ot(), [O, D] = E(null), [L, M] = E(null), [F, R] = E({}), [A, N] = E(null), [k, j] = E(
22562
+ } = t, { t: S } = Oe(), { showErrorNotification: I } = Ot(), [O, D] = E(null), [P, M] = E(null), [F, R] = E({}), [A, N] = E(null), [k, j] = E(
22560
22563
  null
22561
- ), Q = X({}), V = X({}), B = X({}), $ = X({}), P = X({}), U = X({}), [W, z] = E([]), ee = X(!1), { getColumnPrefs: te, saveColumnPrefs: we } = OC(
22564
+ ), Q = X({}), V = X({}), B = X({}), $ = X({}), L = X({}), U = X({}), [W, z] = E([]), ee = X(!1), { getColumnPrefs: te, saveColumnPrefs: we } = OC(
22562
22565
  o,
22563
22566
  r
22564
22567
  );
@@ -22631,10 +22634,10 @@ const lC = ({
22631
22634
  return;
22632
22635
  }
22633
22636
  if (typeof Z.id == "string") {
22634
- const Qe = n.find((Le) => Le.id === Z.id);
22637
+ const Qe = n.find((Pe) => Pe.id === Z.id);
22635
22638
  if (Qe) {
22636
- const Le = Q.current[Qe.id];
22637
- M(Qe.id), Le ? (N(Le.recordId), j(Le.position)) : (N(null), j(null));
22639
+ const Pe = Q.current[Qe.id];
22640
+ M(Qe.id), Pe ? (N(Pe.recordId), j(Pe.position)) : (N(null), j(null));
22638
22641
  }
22639
22642
  return;
22640
22643
  }
@@ -22644,7 +22647,7 @@ const lC = ({
22644
22647
  N(Te);
22645
22648
  const Qe = Z.rect;
22646
22649
  if (Qe) {
22647
- const Le = Qe.top + Qe.height / 2, _t = (Y.activatorEvent && "clientY" in Y.activatorEvent ? Y.activatorEvent.clientY : 0) + Y.delta.y < Le ? "above" : "below";
22650
+ const Pe = Qe.top + Qe.height / 2, _t = (Y.activatorEvent && "clientY" in Y.activatorEvent ? Y.activatorEvent.clientY : 0) + Y.delta.y < Pe ? "above" : "below";
22648
22651
  j(_t), Q.current[Ie] = {
22649
22652
  recordId: Te,
22650
22653
  position: _t
@@ -22656,14 +22659,14 @@ const lC = ({
22656
22659
  }
22657
22660
  const ke = $.current[Te];
22658
22661
  if (ke) {
22659
- const Qe = ke[f.column_field], Le = se(Qe);
22660
- if (Le) {
22661
- if (M(Le.id), Te !== fe.id) {
22662
+ const Qe = ke[f.column_field], Pe = se(Qe);
22663
+ if (Pe) {
22664
+ if (M(Pe.id), Te !== fe.id) {
22662
22665
  N(Te);
22663
22666
  const Rt = Z.rect;
22664
22667
  if (Rt) {
22665
22668
  const Ye = Rt.top + Rt.height / 2, gt = (Y.activatorEvent && "clientY" in Y.activatorEvent ? Y.activatorEvent.clientY : 0) + Y.delta.y < Ye ? "above" : "below";
22666
- j(gt), Q.current[Le.id] = {
22669
+ j(gt), Q.current[Pe.id] = {
22667
22670
  recordId: Te,
22668
22671
  position: gt
22669
22672
  };
@@ -22688,8 +22691,8 @@ const lC = ({
22688
22691
  if (fe === "above")
22689
22692
  return { prevId: $e > 0 ? ke[$e - 1] : null, nextId: Z };
22690
22693
  {
22691
- const Qe = Z, Le = $e < ke.length - 1 ? ke[$e + 1] : null;
22692
- return { prevId: Qe, nextId: Le };
22694
+ const Qe = Z, Pe = $e < ke.length - 1 ? ke[$e + 1] : null;
22695
+ return { prevId: Qe, nextId: Pe };
22693
22696
  }
22694
22697
  },
22695
22698
  []
@@ -22702,14 +22705,14 @@ const lC = ({
22702
22705
  },
22703
22706
  [g]
22704
22707
  ), Ue = T(() => {
22705
- Object.values(P.current).forEach((Y) => {
22708
+ Object.values(L.current).forEach((Y) => {
22706
22709
  Y && Y.refresh();
22707
22710
  });
22708
22711
  }, []), ve = T(
22709
22712
  (Y, Z) => {
22710
- const fe = P.current[Z];
22713
+ const fe = L.current[Z];
22711
22714
  fe && fe.refresh();
22712
- const Te = P.current[Y];
22715
+ const Te = L.current[Y];
22713
22716
  Te && Te.refresh();
22714
22717
  },
22715
22718
  []
@@ -22743,7 +22746,7 @@ const lC = ({
22743
22746
  z((Te) => {
22744
22747
  if (Te.indexOf(Y) === -1)
22745
22748
  return Te;
22746
- const ke = Te.filter((Le) => Le !== Y), $e = ke.indexOf(Z);
22749
+ const ke = Te.filter((Pe) => Pe !== Y), $e = ke.indexOf(Z);
22747
22750
  if ($e === -1)
22748
22751
  return Te;
22749
22752
  const Qe = fe === "before" ? $e : $e + 1;
@@ -22771,14 +22774,14 @@ const lC = ({
22771
22774
  ke();
22772
22775
  return;
22773
22776
  }
22774
- let Le;
22777
+ let Pe;
22775
22778
  if (typeof fe.id == "string")
22776
- Le = n.find((at) => at.id === fe.id);
22779
+ Pe = n.find((at) => at.id === fe.id);
22777
22780
  else {
22778
22781
  const at = (Vt = fe.data.current) == null ? void 0 : Vt.columnId;
22779
- at && (Le = n.find((Dt) => Dt.id === at));
22782
+ at && (Pe = n.find((Dt) => Dt.id === at));
22780
22783
  }
22781
- if (!Le) {
22784
+ if (!Pe) {
22782
22785
  ke();
22783
22786
  return;
22784
22787
  }
@@ -22787,18 +22790,18 @@ const lC = ({
22787
22790
  ke();
22788
22791
  return;
22789
22792
  }
22790
- const Pt = _t.id === Le.id;
22793
+ const Lt = _t.id === Pe.id;
22791
22794
  let gt = Te, Qt = Ie;
22792
- if (!gt && Le) {
22793
- const at = Q.current[Le.id];
22795
+ if (!gt && Pe) {
22796
+ const at = Q.current[Pe.id];
22794
22797
  at && (gt = at.recordId, Qt = at.position);
22795
22798
  }
22796
22799
  ke();
22797
22800
  try {
22798
- if (Pt) {
22801
+ if (Lt) {
22799
22802
  if (gt && Qt) {
22800
22803
  const { prevId: bt, nextId: Sn } = ge(
22801
- Le.id,
22804
+ Pe.id,
22802
22805
  gt,
22803
22806
  Qt,
22804
22807
  $e
@@ -22815,7 +22818,7 @@ const lC = ({
22815
22818
  ]
22816
22819
  });
22817
22820
  }
22818
- const Ct = P.current[Le.id];
22821
+ const Ct = L.current[Pe.id];
22819
22822
  Ct && Ct.refresh();
22820
22823
  return;
22821
22824
  }
@@ -22824,7 +22827,7 @@ const lC = ({
22824
22827
  Ye,
22825
22828
  S
22826
22829
  ), Dt = Un(
22827
- Le.originalValue,
22830
+ Pe.originalValue,
22828
22831
  Ye,
22829
22832
  S
22830
22833
  ), on = ((Kt = f.on_change_column) == null ? void 0 : Kt.method) || "on_change_column";
@@ -22853,7 +22856,7 @@ const lC = ({
22853
22856
  }
22854
22857
  if (gt && Qt) {
22855
22858
  const { prevId: Ct, nextId: bt } = ge(
22856
- Le.id,
22859
+ Pe.id,
22857
22860
  gt,
22858
22861
  Qt,
22859
22862
  $e
@@ -22870,9 +22873,9 @@ const lC = ({
22870
22873
  ]
22871
22874
  });
22872
22875
  }
22873
- ve(_t.id, Le.id);
22876
+ ve(_t.id, Pe.id);
22874
22877
  } catch (at) {
22875
- x && x(Le.id, _t.id), I(at);
22878
+ x && x(Pe.id, _t.id), I(at);
22876
22879
  }
22877
22880
  },
22878
22881
  [
@@ -22901,7 +22904,7 @@ const lC = ({
22901
22904
  );
22902
22905
  const We = T(
22903
22906
  (Y, Z) => {
22904
- Z ? P.current[Y] = Z : delete P.current[Y], y(Y, Z);
22907
+ Z ? L.current[Y] = Z : delete L.current[Y], y(Y, Z);
22905
22908
  },
22906
22909
  [y]
22907
22910
  ), Ae = St(() => {
@@ -22995,7 +22998,7 @@ const lC = ({
22995
22998
  selectedCardIds: h,
22996
22999
  onCountChange: v,
22997
23000
  onRecordsUpdate: De,
22998
- isOver: L === Y.id,
23001
+ isOver: P === Y.id,
22999
23002
  onAddCardClick: ze[Y.id],
23000
23003
  onRefreshAll: Ue,
23001
23004
  onOpenColumnInNewTab: J,
@@ -23068,10 +23071,10 @@ const lC = ({
23068
23071
  if (O === "selection") {
23069
23072
  const D = i.selection || i.selectionValues;
23070
23073
  if (D)
23071
- return D.map(([L, M]) => ({
23072
- id: String(L),
23074
+ return D.map(([P, M]) => ({
23075
+ id: String(P),
23073
23076
  label: String(M),
23074
- originalValue: L
23077
+ originalValue: P
23075
23078
  }));
23076
23079
  }
23077
23080
  return null;
@@ -23123,14 +23126,14 @@ const lC = ({
23123
23126
  }
23124
23127
  p(!0), h(null);
23125
23128
  try {
23126
- const D = wn(n, a), L = await y({
23129
+ const D = wn(n, a), P = await y({
23127
23130
  model: e,
23128
23131
  params: D,
23129
23132
  context: r,
23130
23133
  fieldsToRetrieve: [o],
23131
23134
  limit: 1e3
23132
23135
  }), M = /* @__PURE__ */ new Map();
23133
- L.forEach((R) => {
23136
+ P.forEach((R) => {
23134
23137
  const A = R[o], N = Un(
23135
23138
  A,
23136
23139
  i,
@@ -23218,7 +23221,7 @@ const lC = ({
23218
23221
  ) && n.fields.state && B.push("state"), [...new Set(B)];
23219
23222
  }, [x, n.fields]), {
23220
23223
  columns: D,
23221
- isLoading: L,
23224
+ isLoading: P,
23222
23225
  error: M
23223
23226
  } = kC({
23224
23227
  model: r,
@@ -23232,14 +23235,14 @@ const lC = ({
23232
23235
  }), F = X(/* @__PURE__ */ new Map()), R = X(null), A = X({});
23233
23236
  ye(() => {
23234
23237
  const B = d && d.trim().length > 0, $ = b.current && typeof b.current == "string" && b.current.trim().length > 0;
23235
- !B && $ && F.current.forEach((P) => {
23236
- P.refresh();
23238
+ !B && $ && F.current.forEach((L) => {
23239
+ L.refresh();
23237
23240
  }), b.current = d;
23238
23241
  }, [d]);
23239
23242
  const N = T((B) => {
23240
23243
  B.forEach(($) => {
23241
- const P = F.current.get($);
23242
- P && P.refresh();
23244
+ const L = F.current.get($);
23245
+ L && L.refresh();
23243
23246
  });
23244
23247
  }, []);
23245
23248
  rn(
@@ -23265,11 +23268,11 @@ const lC = ({
23265
23268
  ...A.current,
23266
23269
  [B]: $
23267
23270
  };
23268
- const P = Object.values(A.current).reduce(
23271
+ const L = Object.values(A.current).reduce(
23269
23272
  (U, W) => U + W,
23270
23273
  0
23271
23274
  );
23272
- p == null || p(P);
23275
+ p == null || p(L);
23273
23276
  },
23274
23277
  [p]
23275
23278
  ), Q = T(
@@ -23279,8 +23282,8 @@ const lC = ({
23279
23282
  [N]
23280
23283
  );
23281
23284
  ye(() => {
23282
- m == null || m(L);
23283
- }, [L, m]);
23285
+ m == null || m(P);
23286
+ }, [P, m]);
23284
23287
  const V = St(() => _ ? /* @__PURE__ */ s(
23285
23288
  zt,
23286
23289
  {
@@ -23297,7 +23300,7 @@ const lC = ({
23297
23300
  type: "error",
23298
23301
  showIcon: !0
23299
23302
  }
23300
- ) : !x || L && D.length === 0 ? /* @__PURE__ */ s(dt, { size: "large" }) : /* @__PURE__ */ s(vt, { children: /* @__PURE__ */ s(
23303
+ ) : !x || P && D.length === 0 ? /* @__PURE__ */ s(dt, { size: "large" }) : /* @__PURE__ */ s(vt, { children: /* @__PURE__ */ s(
23301
23304
  NC,
23302
23305
  {
23303
23306
  ref: R,
@@ -23328,7 +23331,7 @@ const lC = ({
23328
23331
  M,
23329
23332
  x,
23330
23333
  D,
23331
- L,
23334
+ P,
23332
23335
  r,
23333
23336
  n.view_id,
23334
23337
  o,
@@ -23351,9 +23354,9 @@ const lC = ({
23351
23354
  C
23352
23355
  ]);
23353
23356
  return /* @__PURE__ */ s(Re, { children: V });
23354
- }, LC = tt(
23357
+ }, PC = tt(
23355
23358
  qt($C)
23356
- ), PC = ({
23359
+ ), LC = ({
23357
23360
  selectedItems: t,
23358
23361
  setSelectedItems: e,
23359
23362
  getOrderedIds: n
@@ -23396,7 +23399,7 @@ const lC = ({
23396
23399
  setSearchValues: C,
23397
23400
  searchTreeNameSearch: x,
23398
23401
  setSearchTreeNameSearch: w
23399
- } = gi({ useLocalState: !1 }), [_, S] = E(!1), [I, O] = E(), [D, L] = E(null), [M, F] = E(null), R = d, A = X(null), N = X(null), k = X(null), j = X({}), Q = oi({
23402
+ } = gi({ useLocalState: !1 }), [_, S] = E(!1), [I, O] = E(), [D, P] = E(null), [M, F] = E(null), R = d, A = X(null), N = X(null), k = X(null), j = X({}), Q = oi({
23400
23403
  elementRef: A,
23401
23404
  offset: VC,
23402
23405
  dependencies: [k.current],
@@ -23430,7 +23433,7 @@ const lC = ({
23430
23433
  return (Ae == null ? void 0 : Ae.id) ?? null;
23431
23434
  },
23432
23435
  [n.fields, u]
23433
- ), P = T((Fe) => {
23436
+ ), L = T((Fe) => {
23434
23437
  O(Fe), S(!0);
23435
23438
  }, []), U = T(
23436
23439
  (Fe, Be) => {
@@ -23442,7 +23445,7 @@ const lC = ({
23442
23445
  if (Be.includes(Fe))
23443
23446
  return Be;
23444
23447
  return null;
23445
- }, []), { handleSelect: z, clearSelection: ee } = PC({
23448
+ }, []), { handleSelect: z, clearSelection: ee } = LC({
23446
23449
  selectedItems: g || [],
23447
23450
  setSelectedItems: h || (() => {
23448
23451
  }),
@@ -23458,7 +23461,7 @@ const lC = ({
23458
23461
  },
23459
23462
  [ee]
23460
23463
  ), ue = T((Fe) => {
23461
- L(Fe), O(void 0), S(!0);
23464
+ P(Fe), O(void 0), S(!0);
23462
23465
  }, []), ie = T(
23463
23466
  (Fe, Be, We) => {
23464
23467
  var Ae, ze, xe;
@@ -23489,14 +23492,14 @@ const lC = ({
23489
23492
  (Fe) => {
23490
23493
  S(!1);
23491
23494
  const Be = I;
23492
- O(void 0), L(null), ie(Fe == null ? void 0 : Fe.id, Fe == null ? void 0 : Fe.values, Be);
23495
+ O(void 0), P(null), ie(Fe == null ? void 0 : Fe.id, Fe == null ? void 0 : Fe.values, Be);
23493
23496
  },
23494
23497
  [I, ie]
23495
23498
  ), oe = T(
23496
23499
  (Fe, Be) => {
23497
23500
  var We;
23498
23501
  if (S(!1), D && B)
23499
- (We = R.current) == null || We.refreshColumns([D.id]), L(null);
23502
+ (We = R.current) == null || We.refreshColumns([D.id]), P(null);
23500
23503
  else {
23501
23504
  const Ae = I;
23502
23505
  O(void 0), ie(Fe, Be, Ae);
@@ -23642,7 +23645,7 @@ const lC = ({
23642
23645
  style: V,
23643
23646
  onClick: we,
23644
23647
  children: /* @__PURE__ */ s(
23645
- LC,
23648
+ PC,
23646
23649
  {
23647
23650
  ref: R,
23648
23651
  kanbanView: n,
@@ -23651,7 +23654,7 @@ const lC = ({
23651
23654
  context: o,
23652
23655
  searchParams: y || [],
23653
23656
  nameSearch: x,
23654
- onCardClick: P,
23657
+ onCardClick: L,
23655
23658
  onCardSelect: te,
23656
23659
  onColumnRecordIdsChange: U,
23657
23660
  selectedCardIds: Ve,
@@ -23749,7 +23752,7 @@ function zC(t, e) {
23749
23752
  currentPage: C,
23750
23753
  order: x,
23751
23754
  openComments: w
23752
- } = t, [_, S] = E(), [I, O] = E([]), [D, L] = E(!0), M = p || void 0, [F, R] = E(M), [A, N] = E([]), [k, j] = E(), [Q, V] = E([]), [B, $] = E(), [P, U] = E(), [W, z] = E(!1), [ee, te] = E(!1), [we, ue] = E(), { t: ie } = Oe(), { showErrorNotification: ce } = Ot(), {
23755
+ } = t, [_, S] = E(), [I, O] = E([]), [D, P] = E(!0), M = p || void 0, [F, R] = E(M), [A, N] = E([]), [k, j] = E(), [Q, V] = E([]), [B, $] = E(), [L, U] = E(), [W, z] = E(!1), [ee, te] = E(!1), [we, ue] = E(), { t: ie } = Oe(), { showErrorNotification: ce } = Ot(), {
23753
23756
  permissions: oe,
23754
23757
  loading: ne,
23755
23758
  error: G
@@ -23788,7 +23791,7 @@ function zC(t, e) {
23788
23791
  canWeClose: Ge
23789
23792
  }));
23790
23793
  const Ve = T(async () => {
23791
- L(!0);
23794
+ P(!0);
23792
23795
  const Ae = [], ze = [];
23793
23796
  for (const me of i) {
23794
23797
  const [de, J] = me;
@@ -23890,7 +23893,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
23890
23893
  action_id: g,
23891
23894
  action_type: h
23892
23895
  })
23893
- ), ve == null || ve(c)), He(he), O(Ae), L(!1);
23896
+ ), ve == null || ve(c)), He(he), O(Ae), P(!1);
23894
23897
  }, [
23895
23898
  l,
23896
23899
  He,
@@ -24007,7 +24010,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
24007
24010
  currentModel: r,
24008
24011
  sorter: B,
24009
24012
  setSorter: $,
24010
- totalItems: P,
24013
+ totalItems: L,
24011
24014
  setTotalItems: U,
24012
24015
  selectedRowItems: A,
24013
24016
  setSelectedRowItems: N,
@@ -24212,7 +24215,7 @@ function KC(t, e) {
24212
24215
  refresh: () => {
24213
24216
  w();
24214
24217
  },
24215
- configDashboard: L
24218
+ configDashboard: P
24216
24219
  }));
24217
24220
  async function w() {
24218
24221
  l(!0), m(!0), u(void 0);
@@ -24325,7 +24328,7 @@ function KC(t, e) {
24325
24328
  context: r
24326
24329
  });
24327
24330
  }
24328
- async function L() {
24331
+ async function P() {
24329
24332
  p(i);
24330
24333
  }
24331
24334
  return c ? /* @__PURE__ */ s(tn, {}) : f ? (console.error(f), /* @__PURE__ */ s(zt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 })) : /* @__PURE__ */ s(GC, { onPositionItemsChanged: D, children: a.map((M, F) => {
@@ -24335,7 +24338,7 @@ function KC(t, e) {
24335
24338
  key: V,
24336
24339
  title: B,
24337
24340
  description: $,
24338
- views: P,
24341
+ views: L,
24339
24342
  model: U,
24340
24343
  context: W,
24341
24344
  domain: z,
@@ -24354,7 +24357,7 @@ function KC(t, e) {
24354
24357
  ue = /* @__PURE__ */ s(
24355
24358
  ne,
24356
24359
  {
24357
- view_id: P.filter(
24360
+ view_id: L.filter(
24358
24361
  (G) => G[1] === "graph"
24359
24362
  )[0][0],
24360
24363
  model: U,
@@ -24369,7 +24372,7 @@ function KC(t, e) {
24369
24372
  Sd,
24370
24373
  {
24371
24374
  model: U,
24372
- view_id: P.filter(
24375
+ view_id: L.filter(
24373
24376
  (oe) => oe[1] === "form"
24374
24377
  )[0][0],
24375
24378
  actionDomain: z
@@ -24382,12 +24385,12 @@ function KC(t, e) {
24382
24385
  {
24383
24386
  model: U,
24384
24387
  domain: z,
24385
- view_id: P.filter(
24388
+ view_id: L.filter(
24386
24389
  (oe) => oe[1] === "tree"
24387
24390
  )[0][0],
24388
24391
  treeExpandable: R.treeExpandable,
24389
24392
  onRowClicked: (oe) => {
24390
- const ne = P.find((G) => {
24393
+ const ne = L.find((G) => {
24391
24394
  const [, pe] = G;
24392
24395
  return pe === "form";
24393
24396
  });
@@ -24421,7 +24424,7 @@ function KC(t, e) {
24421
24424
  action_type: Q,
24422
24425
  tabKey: V,
24423
24426
  title: B,
24424
- views: P,
24427
+ views: L,
24425
24428
  model: U,
24426
24429
  context: W,
24427
24430
  domain: z,
@@ -24434,7 +24437,7 @@ function KC(t, e) {
24434
24437
  );
24435
24438
  }
24436
24439
  let ie;
24437
- const ce = P.find((oe) => {
24440
+ const ce = L.find((oe) => {
24438
24441
  const [, ne] = oe;
24439
24442
  return ne === "tree";
24440
24443
  });
@@ -24505,10 +24508,10 @@ const JC = qt(KC), QC = (t) => {
24505
24508
  params: I,
24506
24509
  fieldsToRetrieve: [h],
24507
24510
  context: { ...b == null ? void 0 : b(), ...p }
24508
- })).map((L) => {
24509
- const M = L[h];
24511
+ })).map((P) => {
24512
+ const M = P[h];
24510
24513
  let F = M;
24511
- return Array.isArray(M) && (F = M[1]), { label: F, value: L.id };
24514
+ return Array.isArray(M) && (F = M[1]), { label: F, value: P.id };
24512
24515
  });
24513
24516
  d(D);
24514
24517
  } catch (O) {
@@ -24524,23 +24527,23 @@ const JC = qt(KC), QC = (t) => {
24524
24527
  }, _ = () => {
24525
24528
  S([]);
24526
24529
  }, S = (I) => {
24527
- const O = o.map((L) => I.includes(L.id) ? L.operation === "pendingRemove" ? {
24528
- ...L,
24530
+ const O = o.map((P) => I.includes(P.id) ? P.operation === "pendingRemove" ? {
24531
+ ...P,
24529
24532
  operation: "original"
24530
- } : L : { id: L.id, operation: "pendingRemove" }), D = O.map((L) => L.id);
24531
- I.filter((L) => !D.includes(L)).forEach((L) => {
24532
- O.push({ id: L, operation: "pendingLink" });
24533
+ } : P : { id: P.id, operation: "pendingRemove" }), D = O.map((P) => P.id);
24534
+ I.filter((P) => !D.includes(P)).forEach((P) => {
24535
+ O.push({ id: P, operation: "pendingLink" });
24533
24536
  }), C(O);
24534
24537
  };
24535
24538
  return f && a.length === 0 ? /* @__PURE__ */ s(dt, {}) : /* @__PURE__ */ s(Re, { children: /* @__PURE__ */ H("div", { className: "flex flex-row", children: [
24536
24539
  /* @__PURE__ */ s(
24537
- Pr.Group,
24540
+ Lr.Group,
24538
24541
  {
24539
24542
  value: a.length ? i : [],
24540
24543
  disabled: g,
24541
24544
  onChange: S,
24542
24545
  style: { width: "100%" },
24543
- children: /* @__PURE__ */ s(ut, { children: a.map((I) => /* @__PURE__ */ s(Xe, { span: Math.floor(24 / y), children: /* @__PURE__ */ s(Pr, { value: I.value, children: I.label }) }, I.value)) })
24546
+ children: /* @__PURE__ */ s(ut, { children: a.map((I) => /* @__PURE__ */ s(Xe, { span: Math.floor(24 / y), children: /* @__PURE__ */ s(Lr, { value: I.value, children: I.label }) }, I.value)) })
24544
24547
  }
24545
24548
  ),
24546
24549
  !g && /* @__PURE__ */ H(yt, { children: [
@@ -24912,7 +24915,7 @@ function Rx(t, e) {
24912
24915
  return console.error($), [];
24913
24916
  }
24914
24917
  })();
24915
- L({
24918
+ P({
24916
24919
  ...F,
24917
24920
  limit: N,
24918
24921
  context: { ...c, ...V },
@@ -24936,7 +24939,7 @@ function Rx(t, e) {
24936
24939
  type: "form",
24937
24940
  context: c
24938
24941
  });
24939
- return await L({
24942
+ return await P({
24940
24943
  action_id: -1,
24941
24944
  action_type: kn,
24942
24945
  model: F,
@@ -24971,7 +24974,7 @@ function Rx(t, e) {
24971
24974
  });
24972
24975
  return;
24973
24976
  }
24974
- const [B, $] = F.split(","), P = ln($), U = V.context, W = Nn({
24977
+ const [B, $] = F.split(","), L = ln($), U = V.context, W = Nn({
24975
24978
  context: U,
24976
24979
  values: d
24977
24980
  }), z = V.domain, ee = await (async () => {
@@ -25018,7 +25021,7 @@ function Rx(t, e) {
25018
25021
  const [ae, se] = G[0];
25019
25022
  pe = { id: ae, type: se };
25020
25023
  }
25021
- L({
25024
+ P({
25022
25025
  domain: [...ee, ...j],
25023
25026
  context: { ...c, ...W },
25024
25027
  model: te,
@@ -25027,7 +25030,7 @@ function Rx(t, e) {
25027
25030
  target: ie,
25028
25031
  initialView: pe,
25029
25032
  action_type: B,
25030
- action_id: P,
25033
+ action_id: L,
25031
25034
  values: R,
25032
25035
  forced_values: A,
25033
25036
  res_id: k,
@@ -25070,7 +25073,7 @@ function Rx(t, e) {
25070
25073
  domain: V,
25071
25074
  views: B,
25072
25075
  target: $,
25073
- string: P,
25076
+ string: L,
25074
25077
  limit: U
25075
25078
  } = F, [W, z] = B[0], ee = { id: W, type: z }, te = Q, we = Nn({
25076
25079
  context: te,
@@ -25084,13 +25087,13 @@ function Rx(t, e) {
25084
25087
  fields: R,
25085
25088
  context: { ...c, ...we }
25086
25089
  }) : [];
25087
- L({
25090
+ P({
25088
25091
  model: j,
25089
25092
  target: $,
25090
25093
  views: B,
25091
25094
  context: { ...c, ...we },
25092
25095
  domain: ie,
25093
- title: P,
25096
+ title: L,
25094
25097
  initialView: ee,
25095
25098
  action_id: N,
25096
25099
  action_type: k,
@@ -25113,18 +25116,18 @@ function Rx(t, e) {
25113
25116
  values: Q = {},
25114
25117
  domain: V,
25115
25118
  name: B
25116
- } = F, $ = `${A},${R}`, P = await q.getHandler().getActionData({
25119
+ } = F, $ = `${A},${R}`, L = await q.getHandler().getActionData({
25117
25120
  action: $,
25118
25121
  context: c
25119
- }), U = P.context, W = Nn({
25122
+ }), U = L.context, W = Nn({
25120
25123
  context: U,
25121
25124
  values: { ...d, ...Q },
25122
25125
  fields: {}
25123
25126
  });
25124
25127
  let z = [];
25125
- const ee = V && V.length > 0 ? V : P.domain;
25126
- (V == null ? void 0 : V.length) > 0 ? z = V : P.domain && (z = await q.getHandler().evalDomain({
25127
- domain: P.domain,
25128
+ const ee = V && V.length > 0 ? V : L.domain;
25129
+ (V == null ? void 0 : V.length) > 0 ? z = V : L.domain && (z = await q.getHandler().evalDomain({
25130
+ domain: L.domain,
25128
25131
  values: { ...d, ...Q },
25129
25132
  context: { ...c, ...W }
25130
25133
  }));
@@ -25135,7 +25138,7 @@ function Rx(t, e) {
25135
25138
  target: ie,
25136
25139
  view_type: ce,
25137
25140
  limit: oe
25138
- } = P, ne = ce === "tree", G = [];
25141
+ } = L, ne = ce === "tree", G = [];
25139
25142
  for (const le of we) {
25140
25143
  const [Ee, ge] = le;
25141
25144
  if (Ee)
@@ -25159,7 +25162,7 @@ function Rx(t, e) {
25159
25162
  } else
25160
25163
  [pe, ae] = G.find((le) => le[0] === void 0 ? !1 : le[0] === k);
25161
25164
  const se = { id: pe, type: ae };
25162
- L({
25165
+ P({
25163
25166
  domain: z,
25164
25167
  context: { ...c, ...W },
25165
25168
  model: te,
@@ -25199,7 +25202,7 @@ function Rx(t, e) {
25199
25202
  context: Q
25200
25203
  });
25201
25204
  }
25202
- async function L(F) {
25205
+ async function P(F) {
25203
25206
  var ne;
25204
25207
  const {
25205
25208
  domain: R,
@@ -25211,7 +25214,7 @@ function Rx(t, e) {
25211
25214
  initialView: V,
25212
25215
  action_id: B,
25213
25216
  action_type: $,
25214
- res_id: P,
25217
+ res_id: L,
25215
25218
  values: U,
25216
25219
  forced_values: W,
25217
25220
  readOnly: z,
@@ -25247,7 +25250,7 @@ function Rx(t, e) {
25247
25250
  actionData: {
25248
25251
  action_id: B,
25249
25252
  action_type: $,
25250
- res_id: P,
25253
+ res_id: L,
25251
25254
  view_id: G.view_id
25252
25255
  }
25253
25256
  });
@@ -25268,7 +25271,7 @@ function Rx(t, e) {
25268
25271
  domain: R,
25269
25272
  setCanWeClose: C,
25270
25273
  initialView: G,
25271
- res_id: P,
25274
+ res_id: L,
25272
25275
  formDefaultValues: U,
25273
25276
  formForcedValues: W,
25274
25277
  formReadOnly: z,
@@ -25304,7 +25307,7 @@ function Rx(t, e) {
25304
25307
  k.push([$, B]);
25305
25308
  }
25306
25309
  const [j, Q] = k[0];
25307
- return await L({
25310
+ return await P({
25308
25311
  action_id: -1,
25309
25312
  action_type: kn,
25310
25313
  model: F,
@@ -25323,7 +25326,7 @@ function Rx(t, e) {
25323
25326
  $m,
25324
25327
  {
25325
25328
  openShortcut: O,
25326
- openAction: L,
25329
+ openAction: P,
25327
25330
  openRelate: I,
25328
25331
  openDefaultActionForModel: D,
25329
25332
  tabs: m,
@@ -25402,7 +25405,7 @@ export {
25402
25405
  xx as ab,
25403
25406
  Tx as ac,
25404
25407
  $b as ad,
25405
- Lb as ae,
25408
+ Pb as ae,
25406
25409
  RS as af,
25407
25410
  Tt as ag,
25408
25411
  pb as ah,
@@ -25410,7 +25413,7 @@ export {
25410
25413
  hb as aj,
25411
25414
  Jt as ak,
25412
25415
  kn as al,
25413
- Pm as am,
25416
+ Lm as am,
25414
25417
  Is as an,
25415
25418
  Bm as ao,
25416
25419
  jm as ap,
@@ -25423,17 +25426,17 @@ export {
25423
25426
  _i as aw,
25424
25427
  In as ax,
25425
25428
  nm as b,
25426
- Ll as c,
25429
+ Pl as c,
25427
25430
  wm as d,
25428
25431
  ep as e,
25429
25432
  lo as f,
25430
- Pb as g,
25433
+ Lb as g,
25431
25434
  Zo as h,
25432
25435
  Or as i,
25433
25436
  li as j,
25434
25437
  Rw as k,
25435
25438
  kw as l,
25436
- Lw as m,
25439
+ Pw as m,
25437
25440
  bd as n,
25438
25441
  Rn as o,
25439
25442
  co as p,
@@ -25448,4 +25451,4 @@ export {
25448
25451
  Km as y,
25449
25452
  JC as z
25450
25453
  };
25451
- //# sourceMappingURL=TabContent-703c6792.mjs.map
25454
+ //# sourceMappingURL=TabContent-8e63aa1e.mjs.map