@gisce/react-ooui 2.105.0 → 2.105.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,11 +2,11 @@ var jc = Object.defineProperty;
2
2
  var Uc = (t, e, n) => e in t ? jc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var Ws = (t, e, n) => (Uc(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import { jsx as s, jsxs as L, Fragment as Ce } from "react/jsx-runtime";
5
- import Qt, { useContext as ve, useState as F, useEffect as ce, useRef as J, memo as at, useCallback as I, useMemo as ee, forwardRef as Lt, useImperativeHandle as Kt, Fragment as Kn, createContext as Wc, createElement as qc } from "react";
5
+ import Zt, { useContext as ve, useState as F, useEffect as ce, useRef as J, memo as at, useCallback as I, useMemo as ee, forwardRef as Lt, useImperativeHandle as Kt, Fragment as Kn, createContext as Wc, createElement as qc } from "react";
6
6
  import { Tooltip as Pt, theme as rt, Typography as un, Form as Nt, Row as Xe, Col as Ne, Modal as _t, Button as Ye, Dropdown as sa, Menu as ia, Space as lt, Spin as ot, Divider as Kr, Input as yt, Select as Sn, Checkbox as ur, Alert as Dt, Timeline as aa, Badge as Jn, message as qs, Popover as Gc, Progress as Yc, Avatar as la, Tag as os, ColorPicker as ca, DatePicker as zc, TimePicker as Kc, InputNumber as Jr, Layout as da, Pagination as Jc, Empty as ua, Statistic as Xc, Card as ss, Tabs as fa, Radio as Gs, Switch as Qc, Steps as Ys, Carousel as Zc } from "antd";
7
7
  import { Label as Xn, Field as Ho, Tree as pa, Tags as zs, Reference as Ks, Selection as is, Many2one as ma, Boolean as ed, parseContext as mn, graphProcessor as ha, graphFieldUtils as td, parseContextFields as nd, parseDomainFields as rd, Integer as Bo, SearchFieldTypes as pn, SearchFilter as ga, parseGraph as ya, Container as od, Form as va, transformDomainForChildWidget as as, Button as sd } from "@gisce/ooui";
8
- import id, { QuestionCircleOutlined as ba, ExclamationCircleOutlined as Xr, LoadingOutlined as Zt, DownOutlined as xr, CloseOutlined as Fn, CheckOutlined as Qn, TranslationOutlined as wa, FolderOpenOutlined as ls, DownloadOutlined as cs, ClearOutlined as Zn, FormOutlined as fr, TableOutlined as ds, AreaChartOutlined as ad, CalendarOutlined as ld, FileAddOutlined as Qr, CloseCircleFilled as cd, FilterOutlined as Ln, EditOutlined as us, CopyOutlined as Cr, DeleteOutlined as fs, InfoCircleOutlined as Zr, ReloadOutlined as eo, ThunderboltOutlined as to, PrinterOutlined as no, ExportOutlined as xa, EnterOutlined as ro, SearchOutlined as Tr, SaveOutlined as jo, PlusOutlined as Uo, UpOutlined as dd, PlusSquareOutlined as Ca, MinusSquareOutlined as Ta, StarFilled as ud, StarOutlined as fd, LeftOutlined as Sa, RightOutlined as Fa, ApiOutlined as pd, AlignLeftOutlined as md, EyeOutlined as hd, LinkOutlined as Js, BorderOuterOutlined as gd, SettingOutlined as yd } from "@ant-design/icons";
9
- import { Interweave as nn } from "interweave";
8
+ import id, { QuestionCircleOutlined as ba, ExclamationCircleOutlined as Xr, LoadingOutlined as en, DownOutlined as xr, CloseOutlined as Fn, CheckOutlined as Qn, TranslationOutlined as wa, FolderOpenOutlined as ls, DownloadOutlined as cs, ClearOutlined as Zn, FormOutlined as fr, TableOutlined as ds, AreaChartOutlined as ad, CalendarOutlined as ld, FileAddOutlined as Qr, CloseCircleFilled as cd, FilterOutlined as Ln, EditOutlined as us, CopyOutlined as Cr, DeleteOutlined as fs, InfoCircleOutlined as Zr, ReloadOutlined as eo, ThunderboltOutlined as to, PrinterOutlined as no, ExportOutlined as xa, EnterOutlined as ro, SearchOutlined as Tr, SaveOutlined as jo, PlusOutlined as Uo, UpOutlined as dd, PlusSquareOutlined as Ca, MinusSquareOutlined as Ta, StarFilled as ud, StarOutlined as fd, LeftOutlined as Sa, RightOutlined as Fa, ApiOutlined as pd, AlignLeftOutlined as md, EyeOutlined as hd, LinkOutlined as Js, BorderOuterOutlined as gd, SettingOutlined as yd } from "@ant-design/icons";
9
+ import { Interweave as rn } from "interweave";
10
10
  import dt from "dayjs";
11
11
  import { default as p0 } from "dayjs";
12
12
  import vd from "dayjs/plugin/advancedFormat";
@@ -51,7 +51,7 @@ import { restrictToHorizontalAxis as fu } from "@dnd-kit/modifiers";
51
51
  import { useSortable as pu, sortableKeyboardCoordinates as mu, SortableContext as hu, horizontalListSortingStrategy as gu } from "@dnd-kit/sortable";
52
52
  import { AnimatePresence as yu, motion as Zs } from "framer-motion";
53
53
  import vu from "focus-trap-react";
54
- const et = Qt.createContext(null), bu = (t) => {
54
+ const et = Zt.createContext(null), bu = (t) => {
55
55
  const {
56
56
  children: e,
57
57
  activeId: n,
@@ -319,7 +319,7 @@ const { Text: Fu, Title: Au } = un, { useToken: Iu } = rt, Ru = {
319
319
  }
320
320
  }
321
321
  ) }),
322
- /* @__PURE__ */ s("span", { className: "pr-2", title: p, children: /* @__PURE__ */ s(v, { level: c, type: l, children: /* @__PURE__ */ s(nn, { content: u }) }) })
322
+ /* @__PURE__ */ s("span", { className: "pr-2", title: p, children: /* @__PURE__ */ s(v, { level: c, type: l, children: /* @__PURE__ */ s(rn, { content: u }) }) })
323
323
  ]
324
324
  }
325
325
  );
@@ -423,7 +423,7 @@ const { confirm: Eu } = _t, ln = ({
423
423
  h();
424
424
  }
425
425
  function y() {
426
- return p ? /* @__PURE__ */ s(Zt, {}) : /* @__PURE__ */ s(Wo, { icon: c });
426
+ return p ? /* @__PURE__ */ s(en, {}) : /* @__PURE__ */ s(Wo, { icon: c });
427
427
  }
428
428
  return /* @__PURE__ */ s(ze, { ooui: e, children: /* @__PURE__ */ s(
429
429
  Ye,
@@ -457,7 +457,7 @@ const { confirm: Eu } = _t, ln = ({
457
457
  } = n || {}, m = ve(et), { executeButtonAction: g } = m || {}, [h, v] = F(!1), { t: y } = Se();
458
458
  function b() {
459
459
  if (h)
460
- return /* @__PURE__ */ s(Zt, {});
460
+ return /* @__PURE__ */ s(en, {});
461
461
  if (d) {
462
462
  const w = Ht(d);
463
463
  return w && /* @__PURE__ */ s(w, {});
@@ -534,7 +534,7 @@ const { confirm: Eu } = _t, ln = ({
534
534
  }
535
535
  function y() {
536
536
  if (m)
537
- return /* @__PURE__ */ s(Zt, {});
537
+ return /* @__PURE__ */ s(en, {});
538
538
  if (d) {
539
539
  const b = Ht(d);
540
540
  return b && /* @__PURE__ */ s(b, {});
@@ -630,7 +630,7 @@ const Ma = (t) => {
630
630
  showErrorNotification: (o) => {
631
631
  if ((o == null ? void 0 : o.code) !== "ERR_CANCELED") {
632
632
  if (typeof o == "object" && o !== null && "type" in o && "title" in o) {
633
- const i = ["success", "error", "info", "warning"].includes(o.type) ? o.type : "info", a = o.body ? /* @__PURE__ */ s(nn, { content: o.body.replace(/\n/g, "<br />") }) : "";
633
+ const i = ["success", "error", "info", "warning"].includes(o.type) ? o.type : "info", a = o.body ? /* @__PURE__ */ s(rn, { content: o.body.replace(/\n/g, "<br />") }) : "";
634
634
  if (i === "warning" || i === "error") {
635
635
  const l = o.buttons || [];
636
636
  let d;
@@ -688,7 +688,7 @@ const Ma = (t) => {
688
688
  );
689
689
  _t.error({
690
690
  title: i.title,
691
- content: /* @__PURE__ */ s(nn, { content: i.message.replace(/\n/g, "<br />") }),
691
+ content: /* @__PURE__ */ s(rn, { content: i.message.replace(/\n/g, "<br />") }),
692
692
  centered: !0,
693
693
  onOk: o.onOk
694
694
  });
@@ -697,7 +697,7 @@ const Ma = (t) => {
697
697
  if (typeof o == "string") {
698
698
  _t.error({
699
699
  title: "Error",
700
- content: /* @__PURE__ */ s(nn, { content: o }),
700
+ content: /* @__PURE__ */ s(rn, { content: o }),
701
701
  centered: !0,
702
702
  onOk: o.onOk
703
703
  });
@@ -705,7 +705,7 @@ const Ma = (t) => {
705
705
  }
706
706
  _t.error({
707
707
  title: "Error",
708
- content: /* @__PURE__ */ s(nn, { content: JSON.stringify(o) }),
708
+ content: /* @__PURE__ */ s(rn, { content: JSON.stringify(o) }),
709
709
  centered: !0,
710
710
  onOk: o.onOk
711
711
  });
@@ -806,7 +806,7 @@ const Ma = (t) => {
806
806
  /* @__PURE__ */ s(
807
807
  Ye,
808
808
  {
809
- icon: m ? /* @__PURE__ */ s(Zt, {}) : /* @__PURE__ */ s(Qn, {}),
809
+ icon: m ? /* @__PURE__ */ s(en, {}) : /* @__PURE__ */ s(Qn, {}),
810
810
  disabled: m,
811
811
  onClick: T,
812
812
  style: { marginLeft: 15 },
@@ -1196,7 +1196,7 @@ const vs = (t) => {
1196
1196
  }
1197
1197
  }
1198
1198
  );
1199
- }, rn = (t) => {
1199
+ }, on = (t) => {
1200
1200
  const e = t.arch, n = t.fields, r = new pa(n);
1201
1201
  return r.parse(e), r;
1202
1202
  };
@@ -1226,7 +1226,7 @@ const bs = (t, e, n, r = !1) => t.columns.map((i) => {
1226
1226
  },
1227
1227
  isSortable: a !== "one2many" && !i.isFunction && (a !== "many2one" || r) || i.isSortable
1228
1228
  };
1229
- }), on = async (t, e, n = {}) => {
1229
+ }), Qt = async (t, e, n = {}) => {
1230
1230
  const r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1231
1231
  e.forEach((l) => {
1232
1232
  Object.keys(l).forEach((d) => {
@@ -1444,7 +1444,7 @@ const ws = async (t) => {
1444
1444
  };
1445
1445
  let u = [], p;
1446
1446
  if (a === "tree" && (o != null && o.arch)) {
1447
- const v = (h = rn(o)) == null ? void 0 : h.colors, y = await B.getHandler().readEvalUiObjects({
1447
+ const v = (h = on(o)) == null ? void 0 : h.colors, y = await B.getHandler().readEvalUiObjects({
1448
1448
  model: n,
1449
1449
  ids: d,
1450
1450
  arch: o == null ? void 0 : o.arch,
@@ -1537,20 +1537,27 @@ const Ya = ({
1537
1537
  return c && (c.operation === "original" || c.operation === "pendingLink") && a > 0;
1538
1538
  }), i = t.filter((a) => a && a.operation !== "original" && a.operation !== "pendingLink");
1539
1539
  return { realItemsIds: o, otherItems: i };
1540
- }, za = ({
1540
+ }, za = async ({
1541
1541
  finalResultIds: t,
1542
1542
  fetchedItems: e,
1543
- otherItems: n
1543
+ otherItems: n,
1544
+ treeOoui: r,
1545
+ context: o
1544
1546
  }) => {
1545
- const r = t.map((o) => {
1546
- var a;
1547
- const i = e.find((c) => c.id === o);
1548
- return i || ((a = n.find((c) => c.id === o)) == null ? void 0 : a.treeValues);
1547
+ const i = await Promise.all(
1548
+ n.map(async (c) => c.treeValues ? (await Qt(
1549
+ r,
1550
+ [c.treeValues],
1551
+ o
1552
+ ))[0] : c.treeValues)
1553
+ );
1554
+ return t.map((c) => {
1555
+ const l = e.find((f) => f.id === c);
1556
+ if (l)
1557
+ return l;
1558
+ const d = n.findIndex((f) => f.id === c);
1559
+ return d !== -1 ? i[d] : void 0;
1549
1560
  });
1550
- return r.sort((o, i) => {
1551
- const a = e.findIndex((l) => l.id === o.id), c = e.findIndex((l) => l.id === i.id);
1552
- return a - c;
1553
- }), r;
1554
1561
  }, Ka = async (t, e, n, r) => await B.getHandler().searchAllIds({
1555
1562
  model: e,
1556
1563
  params: [["id", "in", t]],
@@ -1571,7 +1578,7 @@ const Ya = ({
1571
1578
  const c = e.filter((u) => u > 0), l = a ? Object.keys(n.fields).reduce((u, p) => (n.fields[p].is_function || u.push(p), u), []) : Object.keys(n.fields);
1572
1579
  if (l.length === 0 || c.length === 0)
1573
1580
  return {
1574
- items: await on(
1581
+ items: await Qt(
1575
1582
  i,
1576
1583
  e.map((u) => ({ id: u })),
1577
1584
  r
@@ -1590,7 +1597,7 @@ const Ya = ({
1590
1597
  fieldsToRetrieve: l
1591
1598
  }), f = e.map((u) => u > 0 ? d[0].find((p) => p.id === u) || { id: u } : { id: u });
1592
1599
  return {
1593
- items: await on(i, f, r),
1600
+ items: await Qt(i, f, r),
1594
1601
  colors: qn(d[1] || {}),
1595
1602
  status: Hr(d[1] || {})
1596
1603
  };
@@ -2244,7 +2251,7 @@ const An = ({
2244
2251
  devMode: !1,
2245
2252
  treeMaxLimit: Za,
2246
2253
  onActionTriggered: void 0
2247
- }, el = Qt.createContext(Cf), Jt = () => {
2254
+ }, el = Zt.createContext(Cf), Jt = () => {
2248
2255
  const t = ve(el);
2249
2256
  if (!t)
2250
2257
  throw new Error(
@@ -2435,7 +2442,7 @@ const Sf = (t) => {
2435
2442
  `) !== -1) {
2436
2443
  const { message: o, type: i, title: a } = Ma(t);
2437
2444
  n = /* @__PURE__ */ s(
2438
- nn,
2445
+ rn,
2439
2446
  {
2440
2447
  content: `${a}<br />${o.replace(/\n/g, "<br />")}`
2441
2448
  }
@@ -3471,7 +3478,7 @@ function Ot(t) {
3471
3478
  disabled: n,
3472
3479
  ...l,
3473
3480
  children: [
3474
- r ? /* @__PURE__ */ s(Zt, {}) : i,
3481
+ r ? /* @__PURE__ */ s(en, {}) : i,
3475
3482
  a
3476
3483
  ]
3477
3484
  }
@@ -3612,7 +3619,7 @@ function ep(t) {
3612
3619
  );
3613
3620
  }
3614
3621
  var St = /* @__PURE__ */ ((t) => (t.FEATURE_VIEW_JSON_ATTRS = "view_json_attrs", t.FEATURE_ADVANCED_EXPORT = "export_data2", t.FEATURE_OMNISEARCH = "omnisearch", t.FEATURE_READFORVIEW = "read_for_view", t.FEATURE_USERVIEWPREFS = "user_view_prefs", t.FEATURE_GET_TOOLBAR = "get_toolbar", t.FEATURE_MANY2ONE_SORT = "many2one_sort", t.FEATURE_LOGGABLE_ACTIONS = "user_action_logs", t.FEATURE_USER_FLAGS = "user_feature_flags", t.FEATURE_CHECK_PERMS = "check_perms", t.FEATURE_SAVED_SEARCHES = "saved_searches", t.FEATURE_USER_NOTIFICATIONS = "user_notifications", t.FEATURE_SSE_SESSION_NOTIFICATIONS = "sse_session_notifications", t))(St || {});
3615
- const s0 = Object.values(St), jt = Qt.createContext(null), tp = (t) => {
3622
+ const s0 = Object.values(St), jt = Zt.createContext(null), tp = (t) => {
3616
3623
  const {
3617
3624
  children: e,
3618
3625
  openAction: n,
@@ -3830,7 +3837,7 @@ const { useToken: np } = rt, rp = (t) => {
3830
3837
  ) })
3831
3838
  }
3832
3839
  );
3833
- }, In = Qt.createContext(null), ui = async (t) => {
3840
+ }, In = Zt.createContext(null), ui = async (t) => {
3834
3841
  var e;
3835
3842
  for (let n = 0; n < t.length; n++)
3836
3843
  await ((e = t == null ? void 0 : t[n]) == null ? void 0 : e.call(t));
@@ -5483,7 +5490,7 @@ const Dp = (t) => /* @__PURE__ */ s(ze, { ...t, children: /* @__PURE__ */ s(Cl,
5483
5490
  ]
5484
5491
  }
5485
5492
  );
5486
- }, hn = Qt.createContext(
5493
+ }, hn = Zt.createContext(
5487
5494
  null
5488
5495
  ), Mp = ({
5489
5496
  children: t,
@@ -5534,12 +5541,12 @@ const Dp = (t) => /* @__PURE__ */ s(ze, { ...t, children: /* @__PURE__ */ s(Cl,
5534
5541
  const { treeType: e } = $t(), { treeType: n } = Sl() || {}, r = (n || e) === "infinite";
5535
5542
  return ee(() => {
5536
5543
  const o = /* @__PURE__ */ s(
5537
- nn,
5544
+ rn,
5538
5545
  {
5539
5546
  content: t == null ? void 0 : t.toString().replace(/(?:\r\n|\r|\n)/g, "<br>")
5540
5547
  }
5541
5548
  ), i = /* @__PURE__ */ s(
5542
- nn,
5549
+ rn,
5543
5550
  {
5544
5551
  content: t == null ? void 0 : t.toString().replace(/(?:\r\n|\r|\n|<br\s*\/?>)/g, " ")
5545
5552
  }
@@ -5758,7 +5765,7 @@ const yr = ({
5758
5765
  },
5759
5766
  [a]
5760
5767
  ), y = I(
5761
- (C) => Qt.createElement(Jn, { color: C, style: { marginLeft: 7 } }),
5768
+ (C) => Zt.createElement(Jn, { color: C, style: { marginLeft: 7 } }),
5762
5769
  []
5763
5770
  ), b = I(
5764
5771
  (C) => {
@@ -5805,7 +5812,7 @@ const yr = ({
5805
5812
  paddingLeft: 2
5806
5813
  },
5807
5814
  children: [
5808
- e && /* @__PURE__ */ s(Zt, {}),
5815
+ e && /* @__PURE__ */ s(en, {}),
5809
5816
  !e && n && n.join(", ")
5810
5817
  ]
5811
5818
  }
@@ -5908,7 +5915,7 @@ const yr = ({
5908
5915
  domain: i
5909
5916
  });
5910
5917
  return {
5911
- footerComponent: ee(() => l ? Qt.createElement(Is, { aggregates: c, isLoading: a }) : null, [c, a, l]),
5918
+ footerComponent: ee(() => l ? Zt.createElement(Is, { aggregates: c, isLoading: a }) : null, [c, a, l]),
5912
5919
  aggregates: c,
5913
5920
  hasAggregates: l,
5914
5921
  isLoading: a
@@ -8473,7 +8480,7 @@ const nr = () => {
8473
8480
  const { results: G } = await T({
8474
8481
  searchIds: V,
8475
8482
  fieldsToRetrieve: m.current
8476
- }), K = await on(
8483
+ }), K = await Qt(
8477
8484
  a,
8478
8485
  G,
8479
8486
  r
@@ -8649,7 +8656,7 @@ const nr = () => {
8649
8656
  fields: u,
8650
8657
  fieldsToRetrieve: o,
8651
8658
  context: r
8652
- }), P = await on(
8659
+ }), P = await Qt(
8653
8660
  a,
8654
8661
  M,
8655
8662
  r
@@ -8953,7 +8960,7 @@ function ry(t, e) {
8953
8960
  }, [we]);
8954
8961
  const Pe = ee(() => {
8955
8962
  if ($)
8956
- return rn($);
8963
+ return on($);
8957
8964
  }, [$]), {
8958
8965
  columns: Ae,
8959
8966
  strings: Qe,
@@ -9041,7 +9048,7 @@ function ry(t, e) {
9041
9048
  E,
9042
9049
  de,
9043
9050
  w
9044
- ]), en = ct(
9051
+ ]), tn = ct(
9045
9052
  async ({
9046
9053
  startRow: je,
9047
9054
  endRow: ut,
@@ -9098,7 +9105,7 @@ function ry(t, e) {
9098
9105
  }
9099
9106
  if (Ke.current = mt, we ? (A(fn.length), de(fn.length), _(!0)) : _(!1), fn.length === 0)
9100
9107
  return x.current = [], A(0), de(0), [];
9101
- const Mr = await on(
9108
+ const Mr = await Qt(
9102
9109
  Pe,
9103
9110
  fn,
9104
9111
  d
@@ -9161,7 +9168,7 @@ function ry(t, e) {
9161
9168
  }) => {
9162
9169
  try {
9163
9170
  K == null || K(!0), je === 0 && !we && _n();
9164
- const mt = await en({
9171
+ const mt = await tn({
9165
9172
  startRow: je,
9166
9173
  endRow: ut,
9167
9174
  state: Mt
@@ -9172,7 +9179,7 @@ function ry(t, e) {
9172
9179
  }
9173
9180
  },
9174
9181
  [
9175
- en,
9182
+ tn,
9176
9183
  de,
9177
9184
  K,
9178
9185
  w,
@@ -9555,13 +9562,13 @@ const cc = Lt(
9555
9562
  (j = A.current) == null || j.unselectAll();
9556
9563
  }
9557
9564
  })), ce(() => {
9558
- const j = rn(i);
9565
+ const j = on(i);
9559
9566
  E(j), j.string && q !== j.string && (H == null || H(j.string));
9560
9567
  }, [i, q]), ce(() => {
9561
9568
  if (!!dr(D.current, a) || !S)
9562
9569
  return;
9563
9570
  D.current = [...a], k.current = !1, (async () => {
9564
- const z = await on(S, a, w);
9571
+ const z = await Qt(S, a, w);
9565
9572
  _(z);
9566
9573
  })();
9567
9574
  }, [a, S, w]), ce(() => {
@@ -9649,7 +9656,7 @@ const cc = Lt(
9649
9656
  expandableOpts: b ? {
9650
9657
  expandIcon: Ca,
9651
9658
  collapseIcon: Ta,
9652
- loadingIcon: Zt,
9659
+ loadingIcon: en,
9653
9660
  onFetchChildrenForRecord: b,
9654
9661
  childField: x
9655
9662
  } : void 0
@@ -9701,7 +9708,7 @@ const dc = (t) => {
9701
9708
  context: d
9702
9709
  });
9703
9710
  if ($(re.length), f == null || f(re.length), re.length > 0) {
9704
- const pe = re.map((Pe) => Pe == null ? void 0 : Pe[0]), { colors: Ie, status: we } = rn(u), Fe = {};
9711
+ const pe = re.map((Pe) => Pe == null ? void 0 : Pe[0]), { colors: Ie, status: we } = on(u), Fe = {};
9705
9712
  Ie && (Fe.colors = Ie), we && (Fe.status = we);
9706
9713
  const xe = await B.getHandler().readEvalUiObjects({
9707
9714
  model: e,
@@ -9735,7 +9742,7 @@ const dc = (t) => {
9735
9742
  f
9736
9743
  ]), z = I(
9737
9744
  async (re) => {
9738
- const { params: pe, newOffset: Ie } = re || {}, we = cn(pe || O, b), { colors: Fe, status: xe } = rn(u), $e = {};
9745
+ const { params: pe, newOffset: Ie } = re || {}, we = cn(pe || O, b), { colors: Fe, status: xe } = on(u), $e = {};
9739
9746
  Fe && ($e.colors = Fe), xe && ($e.status = xe);
9740
9747
  const { totalItems: Ke, results: Oe, attrsEvaluated: Pe } = await B.getHandler().searchForTree({
9741
9748
  params: we,
@@ -9857,7 +9864,7 @@ const dc = (t) => {
9857
9864
  fields: u.field_parent ? { ...u.fields, [u.field_parent]: {} } : u.fields,
9858
9865
  context: d
9859
9866
  });
9860
- return ue([...j, ...Ie]), await on(rn(u), Ie, d);
9867
+ return ue([...j, ...Ie]), await Qt(on(u), Ie, d);
9861
9868
  },
9862
9869
  [u, e, d, j, ue]
9863
9870
  ), de = I(async () => await B.getHandler().searchAllIds({
@@ -10289,7 +10296,7 @@ const uc = Lt(ay), ly = Rt, cy = (t) => {
10289
10296
  k,
10290
10297
  M
10291
10298
  ]
10292
- ), en = I(
10299
+ ), tn = I(
10293
10300
  () => w == null ? void 0 : w(!1),
10294
10301
  [w]
10295
10302
  ), pt = I(async () => {
@@ -10336,7 +10343,7 @@ const uc = Lt(ay), ly = Rt, cy = (t) => {
10336
10343
  xe.current = [], Y(0), V(0), he([]), x(!1);
10337
10344
  return;
10338
10345
  }
10339
- const bt = await on(n, nt, d);
10346
+ const bt = await Qt(n, nt, d);
10340
10347
  p == null || p(vt, n), x(!1), xe.current = [...bt], he([...bt]);
10341
10348
  } catch (Ee) {
10342
10349
  throw x(!1), Te(Ee), console.error(Ee), Ee;
@@ -10494,7 +10501,7 @@ const uc = Lt(ay), ly = Rt, cy = (t) => {
10494
10501
  ids: Ve,
10495
10502
  fields: tt,
10496
10503
  context: d
10497
- }), vt = await on(n, nt, d), bt = [...me, ...vt], Xt = yr({
10504
+ }), vt = await Qt(n, nt, d), bt = [...me, ...vt], Xt = yr({
10498
10505
  treeOoui: n
10499
10506
  });
10500
10507
  try {
@@ -10534,7 +10541,7 @@ const uc = Lt(ay), ly = Rt, cy = (t) => {
10534
10541
  onRowHasBeenSelected: or,
10535
10542
  onSearchFilterClear: Ut,
10536
10543
  onSearchFilterSubmit: _n,
10537
- onSideSearchFilterClose: en,
10544
+ onSideSearchFilterClose: tn,
10538
10545
  onSideSearchFilterSubmit: It,
10539
10546
  totalRowsLoading: z,
10540
10547
  totalRows: ae,
@@ -10692,7 +10699,7 @@ const uc = Lt(ay), ly = Rt, cy = (t) => {
10692
10699
  expandableOpts: R ? {
10693
10700
  expandIcon: Ca,
10694
10701
  collapseIcon: Ta,
10695
- loadingIcon: Zt,
10702
+ loadingIcon: en,
10696
10703
  onFetchChildrenForRecord: R,
10697
10704
  childField: _
10698
10705
  } : void 0
@@ -10781,7 +10788,7 @@ function hy(t, e) {
10781
10788
  offset: w != null && w.isExpandable ? my : py
10782
10789
  }), R = h !== void 0 ? h : A, _ = ee(() => {
10783
10790
  if (w)
10784
- return rn(w);
10791
+ return on(w);
10785
10792
  }, [w]), {
10786
10793
  columns: D,
10787
10794
  strings: k,
@@ -11872,7 +11879,7 @@ function Fy(t) {
11872
11879
  } = t, [u, p] = F(!1), [m, g] = F(!1), [h, v] = F(), [y, b] = F(), [x, C] = F(), [w, O] = F(1), [T, A] = F(0), R = J(Rt), _ = J([]), [D, k] = F(0), [S, E] = F([]), [M, P] = F(void 0), [N, q] = F(), [H, $] = F(), [V, G] = F(), [K, U] = F(!1), [W, te] = F(Tn), Q = J([]), { treeMaxLimit: ie } = Jt(), ue = (oe) => {
11873
11880
  U(!0), O(oe), A((oe - 1) * R.current);
11874
11881
  }, j = async () => {
11875
- const oe = Q.current.length > 0 ? Q.current : i, de = cn(_.current, oe), { colors: re } = rn(y), { totalItems: pe, results: Ie, attrsEvaluated: we } = await B.getHandler().searchForTree({
11882
+ const oe = Q.current.length > 0 ? Q.current : i, de = cn(_.current, oe), { colors: re } = on(y), { totalItems: pe, results: Ie, attrsEvaluated: we } = await B.getHandler().searchForTree({
11876
11883
  params: de,
11877
11884
  limit: R.current,
11878
11885
  offset: T,
@@ -12521,7 +12528,7 @@ const hc = at(Fy), { useToken: Ay } = rt, Iy = 3 * 1e3, Ry = (t) => {
12521
12528
  minHeight: 0,
12522
12529
  minWidth: 0
12523
12530
  }, children: l });
12524
- }, gc = Qt.createContext(null), Uy = (t) => {
12531
+ }, gc = Zt.createContext(null), Uy = (t) => {
12525
12532
  const { children: e, setTitle: n } = t;
12526
12533
  return /* @__PURE__ */ s(
12527
12534
  gc.Provider,
@@ -12774,7 +12781,7 @@ function Ky(t, e) {
12774
12781
  context: { ...y, ...se },
12775
12782
  extraValues: w
12776
12783
  });
12777
- }, en = () => Object.keys(
12784
+ }, tn = () => Object.keys(
12778
12785
  wo({
12779
12786
  source: ue.current,
12780
12787
  target: pt(H),
@@ -12845,7 +12852,7 @@ function Ky(t, e) {
12845
12852
  isDefaultGet: He
12846
12853
  }), bt({ fields: be, arch: _e, values: se }), Fe == null || Fe(!1), Ie == null || Ie(!1), He && W(!0);
12847
12854
  }, vn = async () => new Promise(async (ne) => {
12848
- en() ? er({
12855
+ tn() ? er({
12849
12856
  t: R,
12850
12857
  onOk: () => {
12851
12858
  It == null || It(), ne(!0);
@@ -12950,7 +12957,7 @@ function Ky(t, e) {
12950
12957
  }, nt = async (ne) => {
12951
12958
  let se = !1;
12952
12959
  const { callOnSubmitSucceed: be = !0 } = ne || {};
12953
- if (z.current = !0, S(void 0), ye(), X.current && !en() && le() && be) {
12960
+ if (z.current = !0, S(void 0), ye(), X.current && !tn() && le() && be) {
12954
12961
  z.current = !1, Ie == null || Ie(!1), ge == null || ge(
12955
12962
  le(),
12956
12963
  it(),
@@ -12960,7 +12967,7 @@ function Ky(t, e) {
12960
12967
  const _e = le();
12961
12968
  return u && (ie.current = void 0, qt({ values: {}, fields: H, reset: !0 })), { succeed: !0, id: _e };
12962
12969
  }
12963
- if (!en() && le() && be)
12970
+ if (!tn() && le() && be)
12964
12971
  return z.current = !1, Ie == null || Ie(!1), It == null || It(), { succeed: !0, id: le() };
12965
12972
  if (await yn())
12966
12973
  return z.current = !1, Be({
@@ -12970,7 +12977,7 @@ function Ky(t, e) {
12970
12977
  }), { succeed: !1, id: le() };
12971
12978
  D(!0), pe == null || pe(!0);
12972
12979
  try {
12973
- p === "api" ? await Ve(ne) : await tt(ne), u && (ie.current = void 0, qt({ values: {}, fields: H, reset: !0 })), await Wt({ forceRefresh: !0 }), se = !0, Be({
12980
+ p === "api" ? await Ve(ne) : await tt(ne), u && (ie.current = void 0, qt({ values: {}, fields: H, reset: !0 })), p !== "2many" && await Wt({ forceRefresh: !0 }), se = !0, p !== "2many" && Be({
12974
12981
  type: "success",
12975
12982
  title: R("savedRegisters"),
12976
12983
  duration: 3
@@ -13257,7 +13264,7 @@ function Ky(t, e) {
13257
13264
  }
13258
13265
  let _e = !1;
13259
13266
  try {
13260
- !f && (en() || le() === void 0) && (_e = !0, ir(!0), p === "2many" ? (await Ve({ callOnSubmitSucceed: !1 }), X.current = !0) : await nt({ callOnSubmitSucceed: !1 }));
13267
+ !f && (tn() || le() === void 0) && (_e = !0, ir(!0), p === "2many" ? (await Ve({ callOnSubmitSucceed: !1 }), X.current = !0) : await nt({ callOnSubmitSucceed: !1 }));
13261
13268
  const He = X.current ? Vt() : {}, gt = { ...be, ...He };
13262
13269
  ne === "object" ? await je({ action: se, context: gt }) : ne === "workflow" ? await ut({ action: se }) : ne === "action" && await Mt({ action: se, context: gt }), _e && ir(!1);
13263
13270
  } catch (He) {
@@ -13280,7 +13287,7 @@ function Ky(t, e) {
13280
13287
  getContext: At,
13281
13288
  submitForm: nt,
13282
13289
  fetchValues: Wt,
13283
- formHasChanges: en,
13290
+ formHasChanges: tn,
13284
13291
  elementHasLostFocus: kr,
13285
13292
  formView: g,
13286
13293
  fieldMessages: Je,
@@ -13533,7 +13540,7 @@ const rr = Lt(Ky), En = (t) => {
13533
13540
  Ye,
13534
13541
  {
13535
13542
  disabled: p,
13536
- icon: p ? /* @__PURE__ */ s(Zt, {}) : /* @__PURE__ */ s(Qn, {}),
13543
+ icon: p ? /* @__PURE__ */ s(en, {}) : /* @__PURE__ */ s(Qn, {}),
13537
13544
  onClick: R,
13538
13545
  type: "primary",
13539
13546
  children: v("ok")
@@ -13770,7 +13777,7 @@ const rr = Lt(Ky), En = (t) => {
13770
13777
  $ && /* @__PURE__ */ s(Ne, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ s(
13771
13778
  Ye,
13772
13779
  {
13773
- icon: h ? /* @__PURE__ */ s(Zt, {}) : /* @__PURE__ */ s(Tr, {}),
13780
+ icon: h ? /* @__PURE__ */ s(en, {}) : /* @__PURE__ */ s(Tr, {}),
13774
13781
  disabled: a || h,
13775
13782
  onClick: () => {
13776
13783
  x.current = !0, te(G);
@@ -14137,7 +14144,7 @@ function ov(t) {
14137
14144
  }
14138
14145
  ),
14139
14146
  p && h && /* @__PURE__ */ L(Ce, { children: [
14140
- /* @__PURE__ */ s(tn, {}),
14147
+ /* @__PURE__ */ s(nn, {}),
14141
14148
  /* @__PURE__ */ s(
14142
14149
  Tt,
14143
14150
  {
@@ -14148,7 +14155,7 @@ function ov(t) {
14148
14155
  }
14149
14156
  )
14150
14157
  ] }),
14151
- a !== "graph" && /* @__PURE__ */ s(tn, {}),
14158
+ a !== "graph" && /* @__PURE__ */ s(nn, {}),
14152
14159
  a !== "graph" && /* @__PURE__ */ s(
14153
14160
  Ac,
14154
14161
  {
@@ -14159,7 +14166,7 @@ function ov(t) {
14159
14166
  }
14160
14167
  ),
14161
14168
  (a === "tree" || a === "form") && /* @__PURE__ */ L(Ce, { children: [
14162
- /* @__PURE__ */ s(tn, {}),
14169
+ /* @__PURE__ */ s(nn, {}),
14163
14170
  /* @__PURE__ */ s(
14164
14171
  Tt,
14165
14172
  {
@@ -14175,7 +14182,7 @@ function ov(t) {
14175
14182
  )
14176
14183
  ] }),
14177
14184
  (a === "form" || a === "tree") && /* @__PURE__ */ L(Ce, { children: [
14178
- /* @__PURE__ */ s(tn, {}),
14185
+ /* @__PURE__ */ s(nn, {}),
14179
14186
  /* @__PURE__ */ s(
14180
14187
  Tt,
14181
14188
  {
@@ -14201,7 +14208,7 @@ function ov(t) {
14201
14208
  }
14202
14209
  ),
14203
14210
  v && /* @__PURE__ */ L(Ce, { children: [
14204
- /* @__PURE__ */ s(tn, {}),
14211
+ /* @__PURE__ */ s(nn, {}),
14205
14212
  /* @__PURE__ */ s(
14206
14213
  Tt,
14207
14214
  {
@@ -14213,7 +14220,7 @@ function ov(t) {
14213
14220
  ] }),
14214
14221
  y && /* @__PURE__ */ L(Ce, { children: [
14215
14222
  ((Q = y.action) == null ? void 0 : Q.length) > 0 && /* @__PURE__ */ L(Ce, { children: [
14216
- /* @__PURE__ */ s(tn, {}),
14223
+ /* @__PURE__ */ s(nn, {}),
14217
14224
  /* @__PURE__ */ s(
14218
14225
  an,
14219
14226
  {
@@ -14223,7 +14230,7 @@ function ov(t) {
14223
14230
  )
14224
14231
  ] }),
14225
14232
  ((ie = y.print) == null ? void 0 : ie.length) > 0 && /* @__PURE__ */ L(Ce, { children: [
14226
- /* @__PURE__ */ s(tn, {}),
14233
+ /* @__PURE__ */ s(nn, {}),
14227
14234
  /* @__PURE__ */ s(
14228
14235
  an,
14229
14236
  {
@@ -14233,7 +14240,7 @@ function ov(t) {
14233
14240
  )
14234
14241
  ] }),
14235
14242
  a === "form" && ((ue = y.relate) == null ? void 0 : ue.length) > 0 && /* @__PURE__ */ L(Ce, { children: [
14236
- /* @__PURE__ */ s(tn, {}),
14243
+ /* @__PURE__ */ s(nn, {}),
14237
14244
  /* @__PURE__ */ s(
14238
14245
  an,
14239
14246
  {
@@ -14258,8 +14265,8 @@ const Tc = at(({ title: t, token: e }) => /* @__PURE__ */ s(
14258
14265
  }
14259
14266
  ));
14260
14267
  Tc.displayName = "Title";
14261
- const tn = at(() => /* @__PURE__ */ s("div", { className: "inline-block w-3" }));
14262
- tn.displayName = "Separator";
14268
+ const nn = at(() => /* @__PURE__ */ s("div", { className: "inline-block w-3" }));
14269
+ nn.displayName = "Separator";
14263
14270
  const Sc = at(
14264
14271
  ({
14265
14272
  currentItemIndex: t,
@@ -14285,7 +14292,7 @@ const Fc = at(
14285
14292
  }) => {
14286
14293
  const { t: o } = Se();
14287
14294
  return /* @__PURE__ */ L(Ce, { children: [
14288
- /* @__PURE__ */ s(tn, {}),
14295
+ /* @__PURE__ */ s(nn, {}),
14289
14296
  /* @__PURE__ */ s(
14290
14297
  Tt,
14291
14298
  {
@@ -14809,7 +14816,10 @@ const av = (t) => {
14809
14816
  i.length === 0 ? m = !0 : m = !1, m ? (a(r), (g = o.current) == null || g.setSelectedRows(r)) : (a([]), (h = o.current) == null || h.setSelectedRows([]));
14810
14817
  }, [r, o, i.length]), d = I((m) => {
14811
14818
  c.current = m;
14812
- }, []), f = I(() => c.current, []), u = ee(() => rn(t), [t]);
14819
+ }, []), f = I(() => c.current, []), u = ee(() => {
14820
+ if (t)
14821
+ return on(t);
14822
+ }, [t]);
14813
14823
  return {
14814
14824
  onTreeFetchRows: ct(
14815
14825
  async ({
@@ -14827,23 +14837,27 @@ const av = (t) => {
14827
14837
  const C = y ? (await Ka(b, e, n, y)).slice(
14828
14838
  g,
14829
14839
  h
14830
- ) : b, w = Ja(u), {
14831
- items: O,
14832
- colors: T,
14833
- status: A
14834
- } = await Xa({
14835
- relation: e,
14836
- ids: C,
14837
- treeView: t,
14838
- context: n,
14839
- attrs: w,
14840
- treeOoui: u,
14841
- skipFunctionFields: !0
14842
- }), _ = C.length < h - g && x.length > 0 ? [...C, ...x.map((k) => k.id)] : C;
14843
- return { results: za({
14840
+ ) : b, w = Ja(u);
14841
+ let O = [], T = {}, A = {};
14842
+ if (C.length > 0) {
14843
+ const k = await Xa({
14844
+ relation: e,
14845
+ ids: C,
14846
+ treeView: t,
14847
+ context: n,
14848
+ attrs: w,
14849
+ treeOoui: u,
14850
+ skipFunctionFields: !0
14851
+ });
14852
+ O = k.items, T = k.colors, A = k.status;
14853
+ }
14854
+ const _ = C.length < h - g && x.length > 0 ? [...C, ...x.map((k) => k.id)] : C;
14855
+ return { results: await za({
14844
14856
  finalResultIds: _,
14845
14857
  fetchedItems: O,
14846
- otherItems: x
14858
+ otherItems: x,
14859
+ treeOoui: u,
14860
+ context: n
14847
14861
  }), colors: T, status: A };
14848
14862
  },
14849
14863
  [n, e, u, t]
@@ -14880,7 +14894,7 @@ const av = (t) => {
14880
14894
  }))[0], v = (await B.getHandler().readObjects({
14881
14895
  model: e,
14882
14896
  ids: [g],
14883
- fields: r.fields,
14897
+ fields: r == null ? void 0 : r.fields,
14884
14898
  context: n
14885
14899
  }))[0];
14886
14900
  return t.map((b) => b.id === g ? {
@@ -14890,7 +14904,7 @@ const av = (t) => {
14890
14904
  treeValues: v
14891
14905
  } : b);
14892
14906
  },
14893
- [n, o, t, e, r.fields]
14907
+ [n, o, t, e, r == null ? void 0 : r.fields]
14894
14908
  ), u = I(
14895
14909
  (g) => {
14896
14910
  c(!0), i(g);
@@ -15379,7 +15393,7 @@ const Oc = ({
15379
15393
  fields: Z,
15380
15394
  context: a
15381
15395
  });
15382
- return await on(o, ye, a);
15396
+ return await Qt(o, ye, a);
15383
15397
  } catch (Z) {
15384
15398
  return console.error("Error fetching children:", Z), [];
15385
15399
  }
@@ -15612,7 +15626,7 @@ const Oc = ({
15612
15626
  }
15613
15627
  }
15614
15628
  ),
15615
- d === "tree" && /* @__PURE__ */ s(
15629
+ d === "tree" && i.get("tree") && /* @__PURE__ */ s(
15616
15630
  dv,
15617
15631
  {
15618
15632
  gridRef: e,
@@ -15640,7 +15654,7 @@ const Oc = ({
15640
15654
  onChangeTreeType: Fe ? we : void 0
15641
15655
  }
15642
15656
  ),
15643
- d === "form" && /* @__PURE__ */ s(
15657
+ d === "form" && i.get("form") && /* @__PURE__ */ s(
15644
15658
  js,
15645
15659
  {
15646
15660
  ref: T,
@@ -15684,7 +15698,7 @@ const Oc = ({
15684
15698
  onCloseModal: Y
15685
15699
  }
15686
15700
  ),
15687
- d === "graph" && /* @__PURE__ */ s(
15701
+ d === "graph" && i.get("graph") && /* @__PURE__ */ s(
15688
15702
  Rn,
15689
15703
  {
15690
15704
  viewData: i.get("graph"),
@@ -15713,7 +15727,10 @@ const Oc = ({
15713
15727
  i.length === 0 ? m = !0 : m = !1, m ? (a(r), (g = o.current) == null || g.setSelectedRows(r)) : (a([]), (h = o.current) == null || h.setSelectedRows([]));
15714
15728
  }, [r, o, i.length]), d = I((m) => {
15715
15729
  c.current = m;
15716
- }, []), f = I(() => c.current, []), u = ee(() => rn(t), [t]);
15730
+ }, []), f = I(() => c.current, []), u = ee(() => {
15731
+ if (t)
15732
+ return on(t);
15733
+ }, [t]);
15717
15734
  return {
15718
15735
  onTreeFetchRows: ct(
15719
15736
  async ({
@@ -15743,10 +15760,12 @@ const Oc = ({
15743
15760
  attrs: w,
15744
15761
  treeOoui: u
15745
15762
  }), _ = C.length < h - g && x.length > 0 ? [...C, ...x.map((k) => k.id)] : C;
15746
- return { results: za({
15763
+ return { results: await za({
15747
15764
  finalResultIds: _,
15748
15765
  fetchedItems: O,
15749
- otherItems: x
15766
+ otherItems: x,
15767
+ treeOoui: u,
15768
+ context: n
15750
15769
  }), colors: T, status: A };
15751
15770
  },
15752
15771
  [n, e, u, t]
@@ -16028,7 +16047,7 @@ const Oc = ({
16028
16047
  }
16029
16048
  }
16030
16049
  ),
16031
- l === "tree" && /* @__PURE__ */ s(
16050
+ l === "tree" && i.get("tree") && /* @__PURE__ */ s(
16032
16051
  hv,
16033
16052
  {
16034
16053
  gridRef: e,
@@ -16054,7 +16073,7 @@ const Oc = ({
16054
16073
  aggregates: N
16055
16074
  }
16056
16075
  ),
16057
- l === "form" && /* @__PURE__ */ s(
16076
+ l === "form" && i.get("form") && /* @__PURE__ */ s(
16058
16077
  js,
16059
16078
  {
16060
16079
  ref: w,
@@ -16098,7 +16117,7 @@ const Oc = ({
16098
16117
  onCloseModal: ae
16099
16118
  }
16100
16119
  ),
16101
- l === "graph" && /* @__PURE__ */ s(
16120
+ l === "graph" && i.get("graph") && /* @__PURE__ */ s(
16102
16121
  Rn,
16103
16122
  {
16104
16123
  viewData: i.get("graph"),
@@ -17923,7 +17942,7 @@ const ib = (t) => {
17923
17942
  }
17924
17943
  )
17925
17944
  ] }) : null;
17926
- }, Us = Qt.createContext(null), lb = (t) => {
17945
+ }, Us = Zt.createContext(null), lb = (t) => {
17927
17946
  const [e, n] = F(!1), [r, o] = F(!1), { children: i, dashboardRef: a, openAction: c } = t;
17928
17947
  return /* @__PURE__ */ s(
17929
17948
  Us.Provider,
@@ -18478,7 +18497,7 @@ const hb = ({
18478
18497
  }
18479
18498
  })), Lc = Lt(mb);
18480
18499
  const gb = su(iu), yb = (t) => {
18481
- const { children: e = [], onPositionItemsChanged: n } = t, r = Qt.Children.map(
18500
+ const { children: e = [], onPositionItemsChanged: n } = t, r = Zt.Children.map(
18482
18501
  e,
18483
18502
  (o) => {
18484
18503
  const { parms: i, id: a } = o.props;
@@ -18639,7 +18658,7 @@ function vb(t, e) {
18639
18658
  async function D() {
18640
18659
  m(i);
18641
18660
  }
18642
- return l ? /* @__PURE__ */ s(Zt, {}) : f ? (console.error(f), /* @__PURE__ */ s(Dt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 })) : /* @__PURE__ */ s(yb, { onPositionItemsChanged: _, children: a.map((k, S) => {
18661
+ return l ? /* @__PURE__ */ s(en, {}) : f ? (console.error(f), /* @__PURE__ */ s(Dt, { className: "mt-10 mb-20", message: f, type: "error", banner: !0 })) : /* @__PURE__ */ s(yb, { onPositionItemsChanged: _, children: a.map((k, S) => {
18643
18662
  const { actionData: E, values: M } = k, { position: P, id: N } = M, {
18644
18663
  actionId: q,
18645
18664
  actionType: H,
@@ -19157,8 +19176,8 @@ const $b = (t) => {
19157
19176
  return /* @__PURE__ */ s(
19158
19177
  Dt,
19159
19178
  {
19160
- message: /* @__PURE__ */ s(nn, { content: r }),
19161
- description: /* @__PURE__ */ s(nn, { content: o }),
19179
+ message: /* @__PURE__ */ s(rn, { content: r }),
19180
+ description: /* @__PURE__ */ s(rn, { content: o }),
19162
19181
  type: i,
19163
19182
  showIcon: !0,
19164
19183
  action: d ? /* @__PURE__ */ s(lt, { direction: "vertical", children: d }) : null,
@@ -19998,7 +20017,7 @@ function ew(t) {
19998
20017
  };
19999
20018
  return /* @__PURE__ */ s("div", { style: e.key !== r ? o : void 0, children: e.content });
20000
20019
  }
20001
- const tw = Qt.memo(ew, () => !0);
20020
+ const tw = Zt.memo(ew, () => !0);
20002
20021
  function c0() {
20003
20022
  const t = ve(
20004
20023
  jt